zenn-cli 0.1.144-alpha.1 → 0.1.144

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ const c={};function a({src:s,id:t}){return new Promise((n,i)=>{if(document.getElementById(t)){const e=setInterval(()=>{c[t]&&(clearInterval(e),n())},100)}else{const e=document.createElement("script");e.setAttribute("src",s),e.setAttribute("id",t),document.head.appendChild(e),e.onload=()=>{c[t]=!0,n()},e.onerror=o=>i(o)}})}function d({href:s,id:t}){return new Promise((n,i)=>{if(document.getElementById(t))return n();const r=document.createElement("link");r.setAttribute("href",s),r.setAttribute("rel","stylesheet"),r.setAttribute("id",t),document.head.appendChild(r),r.onload=()=>{n()},r.onerror=e=>i(e)})}const l="katex-container";class m extends HTMLElement{constructor(){super();const t=document.createElement("div");t.setAttribute("id",l),this._container=t}async connectedCallback(){this.render()}async render(){typeof katex>"u"&&await a({src:"https://cdn.jsdelivr.net/npm/katex/dist/katex.min.js",id:"katex-js"}),d({href:"https://cdn.jsdelivr.net/npm/katex/dist/katex.min.css",id:"katex-css"});const t=!!this.getAttribute("display-mode"),n=this.textContent||this.innerText;katex==null||katex.render(n,this._container,{macros:{"\\RR":"\\mathbb{R}"},throwOnError:!1,displayMode:t}),this.innerHTML=this._container.innerHTML}}customElements.define("embed-katex",m);
@@ -678,4 +678,4 @@ PERFORMANCE OF THIS SOFTWARE.
678
678
  .layout__main {
679
679
  flex: 1;
680
680
  }
681
- `;const eC=()=>{const e=Oe.useLocation();return M.useEffect(()=>{e.hash||window.scrollTo(0,0)},[e]),null},tC=()=>(M.useEffect(()=>{Jm(()=>import("./index-1912a68d.js"),[])},[]),D(w3,{children:D(aF,{children:T(Oe.RoconRoot,{children:[D(eC,{}),D(Z2,{children:D(U2,{})})]})})})),rC=Al.createRoot(document.getElementById("root"));rC.render(D(tC,{}));
681
+ `;const eC=()=>{const e=Oe.useLocation();return M.useEffect(()=>{e.hash||window.scrollTo(0,0)},[e]),null},tC=()=>(M.useEffect(()=>{Jm(()=>import("./index-24296a7f.js"),[])},[]),D(w3,{children:D(aF,{children:T(Oe.RoconRoot,{children:[D(eC,{}),D(Z2,{children:D(U2,{})})]})})})),rC=Al.createRoot(document.getElementById("root"));rC.render(D(tC,{}));
@@ -12,7 +12,7 @@
12
12
 
13
13
  <!-- 埋め込み要素のイベントを処理するためのスクリプト -->
14
14
  <script src="https://embed.zenn.studio/js/listen-embed-event.js"></script>
15
- <script type="module" crossorigin src="/assets/index-d0a8bd4a.js"></script>
15
+ <script type="module" crossorigin src="/assets/index-3d972f8b.js"></script>
16
16
  <link rel="stylesheet" href="/assets/index-50cfb215.css">
17
17
  </head>
18
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zenn-cli",
3
- "version": "0.1.144-alpha.1",
3
+ "version": "0.1.144",
4
4
  "description": "Preview Zenn content locally.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -98,10 +98,10 @@
98
98
  "webpack": "^5.75.0",
99
99
  "webpack-cli": "^5.0.1",
100
100
  "ws": "^8.12.1",
101
- "zenn-content-css": "0.1.144-alpha.1",
102
- "zenn-embed-elements": "0.1.144-alpha.1",
103
- "zenn-markdown-html": "0.1.144-alpha.1",
104
- "zenn-model": "0.1.144-alpha.1"
101
+ "zenn-content-css": "0.1.144",
102
+ "zenn-embed-elements": "0.1.144",
103
+ "zenn-markdown-html": "0.1.144",
104
+ "zenn-model": "0.1.144"
105
105
  },
106
106
  "engines": {
107
107
  "node": ">=14.0.0"
@@ -109,5 +109,5 @@
109
109
  "publishConfig": {
110
110
  "access": "public"
111
111
  },
112
- "gitHead": "49ee25dead9bcc576d9dc71b6872bd29688a8061"
112
+ "gitHead": "a304e0a7092e4bc0d40fb2eeb866f4643617d045"
113
113
  }
@@ -1 +0,0 @@
1
- const c={};function d({src:s,id:t}){return new Promise((n,i)=>{if(document.getElementById(t)){const e=setInterval(()=>{c[t]&&(clearInterval(e),n())},100)}else{const e=document.createElement("script");e.setAttribute("src",s),e.setAttribute("id",t),document.head.appendChild(e),e.onload=()=>{c[t]=!0,n()},e.onerror=a=>i(a)}})}function l({href:s,id:t}){return new Promise((n,i)=>{if(document.getElementById(t))return n();const r=document.createElement("link");r.setAttribute("href",s),r.setAttribute("rel","stylesheet"),r.setAttribute("id",t),document.head.appendChild(r),r.onload=()=>{n()},r.onerror=e=>i(e)})}const o="0.13.13",m="katex-container";class u extends HTMLElement{constructor(){super();const t=document.createElement("div");t.setAttribute("id",m),this._container=t}async connectedCallback(){this.render()}async render(){typeof katex>"u"&&await d({src:`https://cdn.jsdelivr.net/npm/katex@${o}/dist/katex.min.js`,id:"katex-js"}),l({href:`https://cdn.jsdelivr.net/npm/katex@${o}/dist/katex.min.css`,id:"katex-css"});const t=!!this.getAttribute("display-mode"),n=this.textContent||this.innerText;katex==null||katex.render(n,this._container,{macros:{"\\RR":"\\mathbb{R}"},throwOnError:!1,displayMode:t}),this.innerHTML=this._container.innerHTML}}customElements.define("embed-katex",u);