zenn-cli 0.5.3-alpha.5 → 0.5.3-alpha.7
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zenn-cli",
|
|
3
|
-
"version": "0.5.3-alpha.
|
|
3
|
+
"version": "0.5.3-alpha.7",
|
|
4
4
|
"description": "Preview Zenn content locally.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,10 +38,14 @@
|
|
|
38
38
|
"exec:zenn": "node ./dist/server/zenn.js"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
+
"@ai-sdk/fireworks": "^3.0.23",
|
|
42
|
+
"@ai-sdk/openai": "^4.0.28",
|
|
41
43
|
"@secretlint/node": "^11.3.1",
|
|
42
44
|
"@secretlint/secretlint-rule-preset-recommend": "^11.3.1",
|
|
45
|
+
"ai": "^7.0.50",
|
|
43
46
|
"open": "^10.2.0",
|
|
44
|
-
"package-manager-detector": "^1.6.0"
|
|
47
|
+
"package-manager-detector": "^1.6.0",
|
|
48
|
+
"zod": "^4.4.3"
|
|
45
49
|
},
|
|
46
50
|
"devDependencies": {
|
|
47
51
|
"@eslint/js": "^10.0.1",
|
|
@@ -97,10 +101,10 @@
|
|
|
97
101
|
"vitest": "^4.0.6",
|
|
98
102
|
"wait-on": "^9.0.1",
|
|
99
103
|
"ws": "^8.18.3",
|
|
100
|
-
"zenn-content-css": "0.5.3-alpha.
|
|
101
|
-
"zenn-embed-elements": "0.5.3-alpha.
|
|
102
|
-
"zenn-markdown-html": "0.5.3-alpha.
|
|
103
|
-
"zenn-model": "0.5.3-alpha.
|
|
104
|
+
"zenn-content-css": "0.5.3-alpha.7",
|
|
105
|
+
"zenn-embed-elements": "0.5.3-alpha.7",
|
|
106
|
+
"zenn-markdown-html": "0.5.3-alpha.7",
|
|
107
|
+
"zenn-model": "0.5.3-alpha.7"
|
|
104
108
|
},
|
|
105
109
|
"engines": {
|
|
106
110
|
"node": ">=22.12.0"
|
|
@@ -108,5 +112,5 @@
|
|
|
108
112
|
"publishConfig": {
|
|
109
113
|
"access": "public"
|
|
110
114
|
},
|
|
111
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "35c62312e8a3adaa9323c496d4084eef1465b7ec"
|
|
112
116
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={};function t({src:t,id:n}){return new Promise((r,i)=>{if(document.getElementById(n)){let t=setInterval(()=>{e[n]&&(clearInterval(t),r())},100)}else{let a=document.createElement(`script`);a.setAttribute(`src`,t),a.setAttribute(`id`,n),document.head.appendChild(a),a.onload=()=>{e[n]=!0,r()},a.onerror=e=>i(e)}})}function n({href:e,id:t}){return new Promise((n,r)=>{if(document.getElementById(t))return n();let i=document.createElement(`link`);i.setAttribute(`href`,e),i.setAttribute(`rel`,`stylesheet`),i.setAttribute(`id`,t),document.head.appendChild(i),i.onload=()=>{n()},i.onerror=e=>r(e)})}var r=`katex-container`,i=class extends HTMLElement{constructor(){super();let e=document.createElement(`div`);e.setAttribute(`id`,r),this._container=e}async connectedCallback(){this.render()}async render(){typeof katex>`u`&&await t({src:`https://cdn.jsdelivr.net/npm/katex/dist/katex.min.js`,id:`katex-js`}),n({href:`https://cdn.jsdelivr.net/npm/katex/dist/katex.min.css`,id:`katex-css`});let e=!!this.getAttribute(`display-mode`),r=this.textContent||this.innerText;katex?.render(r,this._container,{macros:{"\\RR":`\\mathbb{R}`},throwOnError:!1,displayMode:e}),this.innerHTML=this._container.innerHTML}},a=`zenn-footnote-tooltip`,o=150,s=300,c=!1,l=null,u=null,d,f;function p(){d!==void 0&&(window.clearTimeout(d),d=void 0)}function m(){f!==void 0&&(window.clearTimeout(f),f=void 0)}function h(){return l&&l.isConnected?l:(l=document.createElement(`div`),l.id=a,l.className=`znc zenn-footnote-tooltip`,l.setAttribute(`role`,`tooltip`),l.hidden=!0,l.addEventListener(`mouseenter`,()=>m()),l.addEventListener(`mouseleave`,()=>C()),document.body.appendChild(l),l)}function g(e){if(!(e instanceof Element))return null;let t=e.closest(`sup.footnote-ref > a`);return!(t instanceof HTMLAnchorElement)||l&&l.contains(t)||!t.closest(`.znc`)?null:t}function _(e){try{let t=new URL(e);return t.protocol===`http:`||t.protocol===`https:`}catch{return!1}}function v(e,t){e.querySelectorAll(`.embed-block`).forEach(e=>{let n=e.querySelector(`iframe`)?.getAttribute(`data-content`),r=(()=>{if(!n)return null;try{return decodeURIComponent(n)}catch{return null}})(),i=document.createElement(`a`);r&&_(r)?(i.href=r,i.textContent=r,i.rel=`noreferrer noopener nofollow`,i.target=`_blank`):(i.href=t,i.textContent=`埋め込みコンテンツ`),e.replaceWith(i)})}function y(e){let t=(()=>{try{return decodeURIComponent(e.hash.slice(1))}catch{return null}})();if(!t)return null;let n=document.getElementById(t);if(!n||!n.classList.contains(`footnote-item`))return null;let r=document.createDocumentFragment();return n.childNodes.forEach(e=>{r.appendChild(e.cloneNode(!0))}),r.querySelectorAll(`.footnote-backref`).forEach(e=>e.remove()),v(r,e.getAttribute(`href`)??``),r.textContent?.trim()?r:null}function b(e,t){let n=e.getBoundingClientRect(),r=t.left+t.width/2-n.width/2;r=Math.min(Math.max(8,r),window.innerWidth-n.width-8);let i=t.top-n.height-8;i<8&&(i=t.bottom+8),i=Math.max(Math.min(i,window.innerHeight-n.height-8),8),e.style.left=`${r+window.scrollX}px`,e.style.top=`${i+window.scrollY}px`}function x(e){let t=y(e);if(!t)return;let n=e.getBoundingClientRect();S();let r=h();r.replaceChildren(t),r.hidden=!1,b(r,n),e.setAttribute(`aria-describedby`,a),u=e}function S(){p(),m(),u&&=(u.removeAttribute(`aria-describedby`),null),l&&(l.hidden=!0)}function C(){m(),f=window.setTimeout(S,s)}function w(e){let t=g(e.target);t&&window.matchMedia(`(hover: hover)`).matches&&(m(),t!==u&&(p(),d=window.setTimeout(()=>x(t),o)))}function T(e){let t=g(e.target);t&&(p(),t===u&&C())}function E(e){let t=g(e.target);t&&(m(),t!==u&&x(t))}function D(e){let t=g(e.target)!==null,n=e.target instanceof Node&&!!l&&l.contains(e.target);if(!t&&!n)return;let r=e.relatedTarget;r instanceof Node&&l&&l.contains(r)||g(r)||S()}function O(e){e.key===`Escape`&&(p(),l&&!l.hidden&&S())}function k(){c||typeof document>`u`||(c=!0,document.addEventListener(`mouseover`,w),document.addEventListener(`mouseout`,T),document.addEventListener(`focusin`,E),document.addEventListener(`focusout`,D),document.addEventListener(`keydown`,O))}customElements.define(`embed-katex`,i),k();
|