@office-kit/pptx-dev 0.13.0 → 0.13.1

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/dist/editor.js CHANGED
@@ -1,4 +1,4 @@
1
- import{H as F,J as q}from"./editor-chunks/chunk-Q3KT5ZGJ.js";function $(e,t,o){return F.set(t,o),q(e,t)}var j=class{#e;constructor(){this.#e=new Promise((t,o)=>{let r=indexedDB.open("office-pptx-editor-drafts",1);r.onupgradeneeded=()=>{r.result.createObjectStore("drafts",{keyPath:"id"}).createIndex("projectId","projectId")},r.onsuccess=()=>t(r.result),r.onerror=()=>o(r.error)}),this.#e.catch(()=>{})}async list(t){let o=await this.#e;return new Promise((r,n)=>{let d=o.transaction("drafts").objectStore("drafts").index("projectId").getAll(t);d.onsuccess=()=>r(d.result.filter(l=>l.projectId===t).sort((l,v)=>v.updated-l.updated)),d.onerror=()=>n(d.error)})}async put(t){let o=await this.#e;return new Promise((r,n)=>{let d=o.transaction("drafts","readwrite"),l=d.objectStore("drafts"),v=l.get(t.id);v.onsuccess=()=>{(!v.result||v.result.version<=t.version)&&l.put(t)},d.oncomplete=()=>r(),d.onabort=()=>n(d.error),d.onerror=()=>n(d.error)})}async remove(t,o){let r=await this.#e;return new Promise((n,d)=>{let l=r.transaction("drafts","readwrite"),v=l.objectStore("drafts"),p=v.get(t);p.onsuccess=()=>{(o===void 0||p.result?.version===o)&&v.delete(t)},l.oncomplete=()=>n(),l.onabort=()=>d(l.error),l.onerror=()=>d(l.error)})}};var Z={"Saving\u2026":"\u4FDD\u5B58\u4E2D\u2026","Loading presentation\u2026":"\u30D7\u30EC\u30BC\u30F3\u30C6\u30FC\u30B7\u30E7\u30F3\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026","Unsaved changes":"\u672A\u4FDD\u5B58\u306E\u5909\u66F4","Saved to this project":"\u3053\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306B\u4FDD\u5B58\u6E08\u307F","Building source\u2026":"\u30BD\u30FC\u30B9\u3092\u30D3\u30EB\u30C9\u4E2D\u2026","Use source":"\u30BD\u30FC\u30B9\u3092\u4F7F\u7528","Replace editor changes with the current source?":"\u30A8\u30C7\u30A3\u30BF\u30FC\u3067\u306E\u5909\u66F4\u3092\u73FE\u5728\u306E\u30BD\u30FC\u30B9\u3067\u7F6E\u304D\u63DB\u3048\u307E\u3059\u304B\uFF1F","Preview unavailable":"\u30D7\u30EC\u30D3\u30E5\u30FC\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093","Preview changed. Try again.":"\u30D7\u30EC\u30D3\u30E5\u30FC\u304C\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002","Reconnecting\u2026":"\u518D\u63A5\u7D9A\u4E2D\u2026",Retry:"\u518D\u8A66\u884C","Save failed":"\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F","Source changed":"\u30BD\u30FC\u30B9\u306E\u5909\u66F4","Recover unsaved changes":"\u672A\u4FDD\u5B58\u306E\u5909\u66F4\u3092\u5FA9\u5143","This browser has a recovery copy for this project. Restore it or discard it to continue.":"\u3053\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u5FA9\u5143\u7528\u30B3\u30D4\u30FC\u304C\u30D6\u30E9\u30A6\u30B6\u30FC\u306B\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002\u5FA9\u5143\u3059\u308B\u304B\u7834\u68C4\u3057\u3066\u7D9A\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002","Could not access the recovery copy. Try again.":"\u5FA9\u5143\u7528\u30B3\u30D4\u30FC\u306B\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002","Restore changes":"\u5909\u66F4\u3092\u5FA9\u5143","Discard recovery copy":"\u5FA9\u5143\u7528\u30B3\u30D4\u30FC\u3092\u7834\u68C4","Could not save a recovery copy in this browser. Keep this tab open until the project is saved.":"\u3053\u306E\u30D6\u30E9\u30A6\u30B6\u30FC\u306B\u5FA9\u5143\u7528\u30B3\u30D4\u30FC\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3078\u306E\u4FDD\u5B58\u304C\u5B8C\u4E86\u3059\u308B\u307E\u3067\u3001\u3053\u306E\u30BF\u30D6\u3092\u958B\u3044\u305F\u307E\u307E\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},ee=`
1
+ import{H as F,J as q}from"./editor-chunks/chunk-YPK7M34W.js";function $(e,t,o){return F.set(t,o),q(e,t)}var j=class{#e;constructor(){this.#e=new Promise((t,o)=>{let r=indexedDB.open("office-pptx-editor-drafts",1);r.onupgradeneeded=()=>{r.result.createObjectStore("drafts",{keyPath:"id"}).createIndex("projectId","projectId")},r.onsuccess=()=>t(r.result),r.onerror=()=>o(r.error)}),this.#e.catch(()=>{})}async list(t){let o=await this.#e;return new Promise((r,n)=>{let d=o.transaction("drafts").objectStore("drafts").index("projectId").getAll(t);d.onsuccess=()=>r(d.result.filter(l=>l.projectId===t).sort((l,v)=>v.updated-l.updated)),d.onerror=()=>n(d.error)})}async put(t){let o=await this.#e;return new Promise((r,n)=>{let d=o.transaction("drafts","readwrite"),l=d.objectStore("drafts"),v=l.get(t.id);v.onsuccess=()=>{(!v.result||v.result.version<=t.version)&&l.put(t)},d.oncomplete=()=>r(),d.onabort=()=>n(d.error),d.onerror=()=>n(d.error)})}async remove(t,o){let r=await this.#e;return new Promise((n,d)=>{let l=r.transaction("drafts","readwrite"),v=l.objectStore("drafts"),p=v.get(t);p.onsuccess=()=>{(o===void 0||p.result?.version===o)&&v.delete(t)},l.oncomplete=()=>n(),l.onabort=()=>d(l.error),l.onerror=()=>d(l.error)})}};var Z={"Saving\u2026":"\u4FDD\u5B58\u4E2D\u2026","Loading presentation\u2026":"\u30D7\u30EC\u30BC\u30F3\u30C6\u30FC\u30B7\u30E7\u30F3\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026","Unsaved changes":"\u672A\u4FDD\u5B58\u306E\u5909\u66F4","Saved to this project":"\u3053\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306B\u4FDD\u5B58\u6E08\u307F","Building source\u2026":"\u30BD\u30FC\u30B9\u3092\u30D3\u30EB\u30C9\u4E2D\u2026","Use source":"\u30BD\u30FC\u30B9\u3092\u4F7F\u7528","Replace editor changes with the current source?":"\u30A8\u30C7\u30A3\u30BF\u30FC\u3067\u306E\u5909\u66F4\u3092\u73FE\u5728\u306E\u30BD\u30FC\u30B9\u3067\u7F6E\u304D\u63DB\u3048\u307E\u3059\u304B\uFF1F","Preview unavailable":"\u30D7\u30EC\u30D3\u30E5\u30FC\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093","Preview changed. Try again.":"\u30D7\u30EC\u30D3\u30E5\u30FC\u304C\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002","Reconnecting\u2026":"\u518D\u63A5\u7D9A\u4E2D\u2026",Retry:"\u518D\u8A66\u884C","Save failed":"\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F","Source changed":"\u30BD\u30FC\u30B9\u306E\u5909\u66F4","Recover unsaved changes":"\u672A\u4FDD\u5B58\u306E\u5909\u66F4\u3092\u5FA9\u5143","This browser has a recovery copy for this project. Restore it or discard it to continue.":"\u3053\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u5FA9\u5143\u7528\u30B3\u30D4\u30FC\u304C\u30D6\u30E9\u30A6\u30B6\u30FC\u306B\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002\u5FA9\u5143\u3059\u308B\u304B\u7834\u68C4\u3057\u3066\u7D9A\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002","Could not access the recovery copy. Try again.":"\u5FA9\u5143\u7528\u30B3\u30D4\u30FC\u306B\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002","Restore changes":"\u5909\u66F4\u3092\u5FA9\u5143","Discard recovery copy":"\u5FA9\u5143\u7528\u30B3\u30D4\u30FC\u3092\u7834\u68C4","Could not save a recovery copy in this browser. Keep this tab open until the project is saved.":"\u3053\u306E\u30D6\u30E9\u30A6\u30B6\u30FC\u306B\u5FA9\u5143\u7528\u30B3\u30D4\u30FC\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3078\u306E\u4FDD\u5B58\u304C\u5B8C\u4E86\u3059\u308B\u307E\u3067\u3001\u3053\u306E\u30BF\u30D6\u3092\u958B\u3044\u305F\u307E\u307E\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},ee=`
2
2
  .dev-status { display: contents; }
3
3
  .save-status, .dev-status .conflict { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:5px 12px; font:12px system-ui; color:#304050; background:#eaf3ed; }
4
4
  .compact-host .save-status { gap:6px; padding:3px 8px; font-size:11px; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-kit/pptx-dev",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "Build and preview TSX presentations locally",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -27,10 +27,10 @@
27
27
  "provenance": true
28
28
  },
29
29
  "dependencies": {
30
- "@office-kit/pptx": "^0.24.0",
30
+ "@office-kit/pptx": "^0.24.1",
31
31
  "@office-kit/pptx-dsl": "^0.11.0",
32
- "@office-kit/pptx-editor": "^0.1.0",
33
- "@office-kit/pptx-preview": "^0.15.0",
32
+ "@office-kit/pptx-editor": "^0.1.1",
33
+ "@office-kit/pptx-preview": "^0.16.0",
34
34
  "@xterm/addon-fit": "^0.11.0",
35
35
  "@xterm/xterm": "^6.0.0",
36
36
  "esbuild": "^0.28.1",