Aroy-Art
092042a42d
Some checks failed
Publish Docker rootless image / Push Docker image to Docker Hub (push) Failing after 38s
Publish Docker image / Push Docker image to Docker Hub (push) Failing after 41s
1 line
No EOL
22 KiB
Text
1 line
No EOL
22 KiB
Text
{"version":3,"file":"zero-md.legacy.min.js","sources":["../src/index.js"],"sourcesContent":["export class ZeroMd extends HTMLElement {\n get src() {\n return this.getAttribute('src')\n }\n\n set src(val) {\n this.reflect('src', val)\n }\n\n get manualRender() {\n return this.hasAttribute('manual-render')\n }\n\n set manualRender(val) {\n this.reflect('manual-render', val)\n }\n\n reflect(name, val) {\n if (val === false) {\n this.removeAttribute(name)\n } else {\n this.setAttribute(name, val === true ? '' : val)\n }\n }\n\n static get observedAttributes() {\n return ['src']\n }\n\n attributeChangedCallback(name, old, val) {\n if (name === 'src' && this.connected && !this.manualRender && val !== old) {\n this.render()\n }\n }\n\n constructor(defaults) {\n super()\n this.version = '$VERSION'\n this.config = {\n markedUrl: 'https://cdn.jsdelivr.net/gh/markedjs/marked@4/marked.min.js',\n prismUrl: [\n ['https://cdn.jsdelivr.net/gh/PrismJS/prism@1/prism.min.js', 'data-manual'],\n 'https://cdn.jsdelivr.net/gh/PrismJS/prism@1/plugins/autoloader/prism-autoloader.min.js'\n ],\n cssUrls: [\n 'https://cdn.jsdelivr.net/gh/sindresorhus/github-markdown-css@4/github-markdown.min.css',\n 'https://cdn.jsdelivr.net/gh/PrismJS/prism@1/themes/prism.min.css'\n ],\n hostCss:\n ':host{display:block;position:relative;contain:content;}:host([hidden]){display:none;}',\n ...defaults,\n ...window.ZeroMdConfig\n }\n this.root = this.hasAttribute('no-shadow') ? this : this.attachShadow({ mode: 'open' })\n this.root.prepend(\n ...this.makeNodes(`<div class=\"markdown-styles\"></div><div class=\"markdown-body\"></div>`)\n )\n if (!this.constructor.ready) {\n this.constructor.ready = Promise.all([\n !!window.marked || this.loadScript(this.config.markedUrl),\n !!window.Prism || this.loadScript(this.config.prismUrl)\n ])\n }\n this.clicked = this.clicked.bind(this)\n if (!this.manualRender) {\n // Scroll to hash id after first render. However, `history.scrollRestoration` inteferes with this\n // on refresh. It's much better to use a `setTimeout` rather than to alter the browser's behaviour.\n this.render().then(() => setTimeout(() => this.goto(location.hash), 250))\n }\n this.observer = new MutationObserver(() => {\n this.observeChanges()\n if (!this.manualRender) this.render()\n })\n this.observer.observe(this, { childList: true })\n this.observeChanges()\n }\n\n /**\n * Start observing changes, if not already so, in `template` and `script`.\n */\n observeChanges() {\n this.querySelectorAll('template,script[type=\"text/markdown\"]').forEach((n) => {\n this.observer.observe(n.content || n, {\n childList: true,\n subtree: true,\n attributes: true,\n characterData: true\n })\n })\n }\n\n connectedCallback() {\n this.connected = true\n this.fire('zero-md-connected', {}, { bubbles: false, composed: false })\n this.waitForReady().then(() => {\n this.fire('zero-md-ready')\n })\n if (this.shadowRoot) {\n this.shadowRoot.addEventListener('click', this.clicked)\n }\n }\n\n disconnectedCallback() {\n this.connected = false\n if (this.shadowRoot) {\n this.shadowRoot.removeEventListener('click', this.clicked)\n }\n }\n\n waitForReady() {\n const ready =\n this.connected ||\n new Promise((resolve) => {\n this.addEventListener('zero-md-connected', function handler() {\n this.removeEventListener('zero-md-connected', handler)\n resolve()\n })\n })\n return Promise.all([this.constructor.ready, ready])\n }\n\n fire(name, detail = {}, opts = { bubbles: true, composed: true }) {\n if (detail.msg) {\n console.warn(detail.msg)\n }\n this.dispatchEvent(\n new CustomEvent(name, {\n detail: { node: this, ...detail },\n ...opts\n })\n )\n }\n\n tick() {\n return new Promise((resolve) => requestAnimationFrame(resolve))\n }\n\n // Coerce anything into an array\n arrify(any) {\n return any ? (Array.isArray(any) ? any : [any]) : []\n }\n\n // Promisify an element's onload callback\n onload(node) {\n return new Promise((resolve, reject) => {\n node.onload = resolve\n node.onerror = (err) => reject(err.path ? err.path[0] : err.composedPath()[0])\n })\n }\n\n // Load a url or load (in order) an array of urls via <script> tags\n loadScript(urls) {\n return Promise.all(\n this.arrify(urls).map((item) => {\n const [url, ...attrs] = this.arrify(item)\n const el = document.createElement('script')\n el.src = url\n el.async = false\n attrs.forEach((attr) => el.setAttribute(attr, ''))\n return this.onload(document.head.appendChild(el))\n })\n )\n }\n\n // Scroll to selected element\n goto(sel) {\n let el\n try {\n el = this.root.querySelector(sel)\n } catch {}\n if (el) el.scrollIntoView()\n }\n\n // Hijack same-doc anchor hash links\n clicked(ev) {\n if (ev.metaKey || ev.ctrlKey || ev.altKey || ev.shiftKey || ev.defaultPrevented) {\n return\n }\n const a = ev.target.closest('a')\n if (a && a.hash && a.host === location.host && a.pathname === location.pathname) {\n this.goto(a.hash)\n }\n }\n\n dedent(str) {\n str = str.replace(/^\\n/, '')\n const match = str.match(/^\\s+/)\n return match ? str.replace(new RegExp(`^${match[0]}`, 'gm'), '') : str\n }\n\n getBaseUrl(src) {\n const a = document.createElement('a')\n a.href = src\n return a.href.substring(0, a.href.lastIndexOf('/') + 1)\n }\n\n // Runs Prism highlight async; falls back to sync if Web Workers throw\n highlight(container) {\n return new Promise((resolve) => {\n const unhinted = container.querySelectorAll('pre>code:not([class*=\"language-\"])')\n unhinted.forEach((n) => {\n // Dead simple language detection :)\n const lang = n.innerText.match(/^\\s*</)\n ? 'markup'\n : n.innerText.match(/^\\s*(\\$|#)/)\n ? 'bash'\n : 'js'\n n.classList.add(`language-${lang}`)\n })\n try {\n window.Prism.highlightAllUnder(container, true, resolve())\n } catch {\n window.Prism.highlightAllUnder(container)\n resolve()\n }\n })\n }\n\n /**\n * Converts HTML string into HTMLCollection of nodes\n * @param {string} html\n * @returns {HTMLCollection}\n */\n makeNodes(html) {\n const tpl = document.createElement('template')\n tpl.innerHTML = html\n return tpl.content.children\n }\n\n /**\n * Constructs the styles dom and returns HTML string\n * @returns {string} `markdown-styles` string\n */\n buildStyles() {\n const get = (query) => {\n const node = this.querySelector(query)\n return node ? node.innerHTML || ' ' : ''\n }\n const urls = this.arrify(this.config.cssUrls)\n const html = `<style>${this.config.hostCss}</style>${get('template[data-merge=\"prepend\"]')}${\n get('template:not([data-merge])') ||\n urls.reduce((a, c) => `${a}<link rel=\"stylesheet\" href=\"${c}\">`, '')\n }${get('template[data-merge=\"append\"]')}`\n return html\n }\n\n /**\n * Constructs the markdown body nodes and returns HTML string\n * @param {*} opts Markedjs options\n * @returns {Promise<string>} `markdown-body` string\n */\n async buildMd(opts = {}) {\n const src = async () => {\n if (!this.src) return ''\n const resp = await fetch(this.src)\n if (resp.ok) {\n const md = await resp.text()\n return window.marked.parse(md, {\n baseUrl: this.getBaseUrl(this.src),\n ...opts\n })\n } else {\n this.fire('zero-md-error', {\n msg: `[zero-md] HTTP error ${resp.status} while fetching src`,\n status: resp.status,\n src: this.src\n })\n return ''\n }\n }\n const script = () => {\n const el = this.querySelector('script[type=\"text/markdown\"]')\n if (!el) return ''\n const md = el.hasAttribute('data-dedent') ? this.dedent(el.text) : el.text\n return window.marked.parse(md, opts)\n }\n return (await src()) || script()\n }\n\n /**\n * Returns 32-bit DJB2a hash in base36\n * @param {string} str\n * @returns {string}\n */\n getHash(str) {\n let hash = 5381\n for (let index = 0; index < str.length; index++) {\n hash = ((hash << 5) + hash) ^ str.charCodeAt(index)\n }\n return (hash >>> 0).toString(36)\n }\n\n /**\n * Insert or replace styles node in root from a HTML string. If there are external stylesheet\n * links, wait for them to load.\n * @param {string} html styles string\n * @returns {Promise<boolean|undefined>} returns true if stamped\n */\n async stampStyles(html) {\n const hash = this.getHash(html)\n const target = this.root.querySelector('.markdown-styles')\n if (target.getAttribute('data-hash') !== hash) {\n target.setAttribute('data-hash', hash)\n const nodes = this.makeNodes(html)\n const links = [...nodes].filter(\n (i) => i.tagName === 'LINK' && i.getAttribute('rel') === 'stylesheet'\n )\n target.innerHTML = ''\n target.append(...nodes)\n await Promise.all(links.map((l) => this.onload(l))).catch((err) => {\n this.fire('zero-md-error', {\n msg: '[zero-md] An external stylesheet failed to load',\n status: undefined,\n src: err.href\n })\n })\n return true\n }\n }\n\n /**\n * Insert or replace HTML body string into DOM\n * @param {string} html markdown-body string\n * @param {string[]} [classes] list of classes to apply to `.markdown-body` wrapper\n * @returns {Promise<boolean|undefined>} returns true if stamped\n */\n async stampBody(html, classes) {\n const names = this.arrify(classes)\n const hash = this.getHash(html + JSON.stringify(names))\n const target = this.root.querySelector('.markdown-body')\n if (target.getAttribute('data-hash') !== hash) {\n target.setAttribute('data-hash', hash)\n names.unshift('markdown-body')\n target.setAttribute('class', names.join(' '))\n const nodes = this.makeNodes(html)\n target.innerHTML = ''\n target.append(...nodes)\n await this.highlight(target)\n return true\n }\n }\n\n async render(opts = {}) {\n await this.waitForReady()\n const pending = this.buildMd(opts)\n const styles = await this.stampStyles(this.buildStyles())\n await this.tick()\n const body = await this.stampBody(await pending, opts.classes)\n this.fire('zero-md-rendered', { node: this, stamped: { styles, body } })\n }\n}\n\ncustomElements.define('zero-md', ZeroMd)\n"],"names":["ZeroMd","_HTMLElement","defaults","_this$root","_this","_classCallCheck","_callSuper","this","version","config","_objectSpread","markedUrl","prismUrl","cssUrls","hostCss","window","ZeroMdConfig","root","hasAttribute","_assertThisInitialized","attachShadow","mode","prepend","apply","_toConsumableArray","makeNodes","constructor","ready","Promise","all","marked","loadScript","Prism","clicked","bind","manualRender","render","then","setTimeout","goto","location","hash","observer","MutationObserver","observeChanges","observe","childList","_render","_stampBody","_stampStyles","_buildMd","_inherits","key","get","getAttribute","set","val","reflect","value","name","removeAttribute","setAttribute","old","connected","_this2","querySelectorAll","forEach","n","content","subtree","attributes","characterData","_this3","fire","bubbles","composed","waitForReady","shadowRoot","addEventListener","removeEventListener","_this4","resolve","handler","detail","arguments","length","undefined","opts","msg","console","warn","dispatchEvent","CustomEvent","node","requestAnimationFrame","any","Array","isArray","reject","onload","onerror","err","path","composedPath","urls","_this5","arrify","map","item","_this5$arrify2","_toArray","url","attrs","slice","el","document","createElement","src","async","attr","head","appendChild","sel","querySelector","_unused","scrollIntoView","ev","metaKey","ctrlKey","altKey","shiftKey","defaultPrevented","a","target","closest","host","pathname","str","match","replace","RegExp","concat","href","substring","lastIndexOf","container","lang","innerText","classList","add","highlightAllUnder","_unused2","html","tpl","innerHTML","children","_this6","query","reduce","c","_asyncToGenerator","_regeneratorRuntime","mark","_callee2","script","_this7","_args2","wrap","_context2","prev","next","_ref","_callee","resp","md","_context","abrupt","fetch","sent","ok","text","parse","baseUrl","getBaseUrl","status","stop","dedent","t0","index","charCodeAt","toString","_callee3","nodes","links","_this8","_context3","getHash","filter","i","tagName","append","l","catch","_x","_callee4","classes","names","_context4","JSON","stringify","unshift","join","highlight","_x2","_x3","_callee5","pending","styles","body","_args5","_context5","buildMd","stampStyles","buildStyles","tick","t1","t2","stampBody","call","stamped","_wrapNativeSuper","HTMLElement","customElements","define"],"mappings":"21UAAaA,IAAAA,WAAMC,GAmCjB,SAAAD,EAAYE,GAAU,IAAAC,EAAAC,EAuCC,mGAvCDC,MAAAL,IACpBI,EAAAE,EAAAC,KAAAP,IACKQ,QAAU,QACfJ,EAAKK,OAAMC,EAAAA,EAAA,CACTC,UAAW,8DACXC,SAAU,CACR,CAAC,2DAA4D,eAC7D,0FAEFC,QAAS,CACP,yFACA,oEAEFC,QACE,yFACCZ,GACAa,OAAOC,cAEZZ,EAAKa,KAAOb,EAAKc,aAAa,aAAYC,EAAAf,GAAUA,EAAKgB,aAAa,CAAEC,KAAM,UAC9ElB,EAAAC,EAAKa,MAAKK,QAAOC,MAAApB,EAAAqB,EACZpB,EAAKqB,UAAgF,0EAErFrB,EAAKsB,YAAYC,QACpBvB,EAAKsB,YAAYC,MAAQC,QAAQC,IAAI,GACjCd,OAAOe,QAAU1B,EAAK2B,WAAW3B,EAAKK,OAAOE,aAC7CI,OAAOiB,OAAS5B,EAAK2B,WAAW3B,EAAKK,OAAOG,aAGlDR,EAAK6B,QAAU7B,EAAK6B,QAAQC,KAAIf,EAAAf,IAC3BA,EAAK+B,cAGR/B,EAAKgC,SAASC,MAAK,WAAA,OAAMC,YAAW,WAAA,OAAMlC,EAAKmC,KAAKC,SAASC,KAAK,G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