pptx-vue-viewer 3.21.0 → 4.1.0

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.
Files changed (137) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +8 -0
  3. package/dist/{AiChatPanel-C3SFixYS.cjs → AiChatPanel-C9eK71Og.cjs} +1 -1
  4. package/dist/AiChatPanel-C9eK71Og.cjs.br +0 -0
  5. package/dist/AiChatPanel-C9eK71Og.cjs.gz +0 -0
  6. package/dist/{AiChatPanel-YRXQsZFL.js → AiChatPanel-JedADygv.js} +2 -2
  7. package/dist/AiChatPanel-JedADygv.js.br +0 -0
  8. package/dist/AiChatPanel-JedADygv.js.gz +0 -0
  9. package/dist/canvas_emf-converter-CXU7lu1I.cjs +1 -0
  10. package/dist/canvas_emf-converter-CXU7lu1I.cjs.br +0 -0
  11. package/dist/canvas_emf-converter-CXU7lu1I.cjs.gz +0 -0
  12. package/dist/canvas_emf-converter-HimA9Y3J.js +3 -0
  13. package/dist/canvas_emf-converter-HimA9Y3J.js.br +0 -0
  14. package/dist/canvas_emf-converter-HimA9Y3J.js.gz +0 -0
  15. package/dist/{dist-Bg15Buin.cjs → dist-Br8KDhMp.cjs} +18542 -18480
  16. package/dist/dist-Br8KDhMp.cjs.br +0 -0
  17. package/dist/dist-Br8KDhMp.cjs.gz +0 -0
  18. package/dist/{dist-Ceczn6iD.js → dist-DSVV_5rB.js} +18328 -18266
  19. package/dist/dist-DSVV_5rB.js.br +0 -0
  20. package/dist/dist-DSVV_5rB.js.gz +0 -0
  21. package/dist/gif-encoder-CICb6ayU.cjs +2 -0
  22. package/dist/gif-encoder-CICb6ayU.cjs.br +0 -0
  23. package/dist/gif-encoder-CICb6ayU.cjs.gz +0 -0
  24. package/dist/gif-encoder-D7z5XpDB.js +2 -0
  25. package/dist/gif-encoder-D7z5XpDB.js.br +0 -0
  26. package/dist/gif-encoder-D7z5XpDB.js.gz +0 -0
  27. package/dist/i18n/de.cjs +2 -0
  28. package/dist/i18n/de.cjs.br +0 -0
  29. package/dist/i18n/de.cjs.gz +0 -0
  30. package/dist/i18n/de.mjs +2 -0
  31. package/dist/i18n/de.mjs.br +0 -0
  32. package/dist/i18n/de.mjs.gz +0 -0
  33. package/dist/i18n/es.cjs +2 -0
  34. package/dist/i18n/es.cjs.br +0 -0
  35. package/dist/i18n/es.cjs.gz +0 -0
  36. package/dist/i18n/es.mjs +2 -0
  37. package/dist/i18n/es.mjs.br +0 -0
  38. package/dist/i18n/es.mjs.gz +0 -0
  39. package/dist/i18n/fr.cjs +2 -0
  40. package/dist/i18n/fr.cjs.br +0 -0
  41. package/dist/i18n/fr.cjs.gz +0 -0
  42. package/dist/i18n/fr.mjs +2 -0
  43. package/dist/i18n/fr.mjs.br +0 -0
  44. package/dist/i18n/fr.mjs.gz +0 -0
  45. package/dist/i18n/zh-CN.cjs +2 -0
  46. package/dist/i18n/zh-CN.cjs.br +0 -0
  47. package/dist/i18n/zh-CN.cjs.gz +0 -0
  48. package/dist/i18n/zh-CN.mjs +2 -0
  49. package/dist/i18n/zh-CN.mjs.br +0 -0
  50. package/dist/i18n/zh-CN.mjs.gz +0 -0
  51. package/dist/{i18n-BMYGC7RW.cjs → i18n-BUjfZOiM.cjs} +2 -0
  52. package/dist/i18n-BUjfZOiM.cjs.br +0 -0
  53. package/dist/i18n-BUjfZOiM.cjs.gz +0 -0
  54. package/dist/{i18n-CRTWC-4k.js → i18n-cTdK-NvK.js} +2 -0
  55. package/dist/i18n-cTdK-NvK.js.br +0 -0
  56. package/dist/i18n-cTdK-NvK.js.gz +0 -0
  57. package/dist/i18n.cjs +1 -1
  58. package/dist/i18n.cjs.br +0 -0
  59. package/dist/i18n.cjs.gz +0 -0
  60. package/dist/i18n.js +1 -1
  61. package/dist/i18n.js.br +0 -0
  62. package/dist/i18n.js.gz +0 -0
  63. package/dist/index.cjs +2 -2
  64. package/dist/index.cjs.br +0 -0
  65. package/dist/index.cjs.gz +0 -0
  66. package/dist/index.d.ts +137 -3
  67. package/dist/index.js +3 -3
  68. package/dist/index.js.br +0 -0
  69. package/dist/index.js.gz +0 -0
  70. package/dist/internals.cjs +1 -1
  71. package/dist/internals.cjs.br +0 -0
  72. package/dist/internals.cjs.gz +0 -0
  73. package/dist/internals.d.ts +115 -0
  74. package/dist/internals.js +2 -2
  75. package/dist/internals.js.br +0 -0
  76. package/dist/internals.js.gz +0 -0
  77. package/dist/pptx-vue-viewer.css +4 -4
  78. package/dist/pptx-vue-viewer.css.br +0 -0
  79. package/dist/pptx-vue-viewer.css.gz +0 -0
  80. package/dist/smartart-3d-DNJZ9ZbV.js +278 -0
  81. package/dist/smartart-3d-DNJZ9ZbV.js.br +0 -0
  82. package/dist/smartart-3d-DNJZ9ZbV.js.gz +0 -0
  83. package/dist/smartart-3d-Dm0vCBX4.cjs +276 -0
  84. package/dist/smartart-3d-Dm0vCBX4.cjs.br +0 -0
  85. package/dist/smartart-3d-Dm0vCBX4.cjs.gz +0 -0
  86. package/dist/{useViewerSettingsDialog-DC5oTNB9.js → useViewerSettingsDialog-Cgs5nn6a.js} +8520 -7542
  87. package/dist/useViewerSettingsDialog-Cgs5nn6a.js.br +0 -0
  88. package/dist/useViewerSettingsDialog-Cgs5nn6a.js.gz +0 -0
  89. package/dist/{useViewerSettingsDialog-0H_Y-M2X.cjs → useViewerSettingsDialog-w5_IIp3-.cjs} +10052 -9053
  90. package/dist/useViewerSettingsDialog-w5_IIp3-.cjs.br +0 -0
  91. package/dist/useViewerSettingsDialog-w5_IIp3-.cjs.gz +0 -0
  92. package/dist/viewer/index.cjs +2 -2
  93. package/dist/viewer/index.cjs.br +0 -0
  94. package/dist/viewer/index.cjs.gz +0 -0
  95. package/dist/viewer/index.d.ts +735 -20
  96. package/dist/viewer/index.js +3 -3
  97. package/dist/viewer/index.js.br +0 -0
  98. package/dist/viewer/index.js.gz +0 -0
  99. package/dist/{viewer-DD0gCFhg.js → viewer-Bj84aywU.js} +10492 -10433
  100. package/dist/viewer-Bj84aywU.js.br +0 -0
  101. package/dist/viewer-Bj84aywU.js.gz +0 -0
  102. package/dist/{viewer-DfAhm6nQ.cjs → viewer-DW4Hra5s.cjs} +716 -647
  103. package/dist/viewer-DW4Hra5s.cjs.br +0 -0
  104. package/dist/viewer-DW4Hra5s.cjs.gz +0 -0
  105. package/package.json +2 -2
  106. package/dist/AiChatPanel-C3SFixYS.cjs.br +0 -0
  107. package/dist/AiChatPanel-C3SFixYS.cjs.gz +0 -0
  108. package/dist/AiChatPanel-YRXQsZFL.js.br +0 -0
  109. package/dist/AiChatPanel-YRXQsZFL.js.gz +0 -0
  110. package/dist/dist-Bg15Buin.cjs.br +0 -0
  111. package/dist/dist-Bg15Buin.cjs.gz +0 -0
  112. package/dist/dist-Ceczn6iD.js.br +0 -0
  113. package/dist/dist-Ceczn6iD.js.gz +0 -0
  114. package/dist/gif-encoder-B-tt5tMj.js +0 -2
  115. package/dist/gif-encoder-B-tt5tMj.js.br +0 -3
  116. package/dist/gif-encoder-B-tt5tMj.js.gz +0 -0
  117. package/dist/gif-encoder-BsQ4Gn3G.cjs +0 -2
  118. package/dist/gif-encoder-BsQ4Gn3G.cjs.br +0 -0
  119. package/dist/gif-encoder-BsQ4Gn3G.cjs.gz +0 -0
  120. package/dist/i18n-BMYGC7RW.cjs.br +0 -0
  121. package/dist/i18n-BMYGC7RW.cjs.gz +0 -0
  122. package/dist/i18n-CRTWC-4k.js.br +0 -0
  123. package/dist/i18n-CRTWC-4k.js.gz +0 -0
  124. package/dist/smartart-3d-DbBWzji8.cjs +0 -203
  125. package/dist/smartart-3d-DbBWzji8.cjs.br +0 -0
  126. package/dist/smartart-3d-DbBWzji8.cjs.gz +0 -0
  127. package/dist/smartart-3d-m84Wdu08.js +0 -205
  128. package/dist/smartart-3d-m84Wdu08.js.br +0 -0
  129. package/dist/smartart-3d-m84Wdu08.js.gz +0 -0
  130. package/dist/useViewerSettingsDialog-0H_Y-M2X.cjs.br +0 -0
  131. package/dist/useViewerSettingsDialog-0H_Y-M2X.cjs.gz +0 -0
  132. package/dist/useViewerSettingsDialog-DC5oTNB9.js.br +0 -0
  133. package/dist/useViewerSettingsDialog-DC5oTNB9.js.gz +0 -0
  134. package/dist/viewer-DD0gCFhg.js.br +0 -0
  135. package/dist/viewer-DD0gCFhg.js.gz +0 -0
  136. package/dist/viewer-DfAhm6nQ.cjs.br +0 -0
  137. package/dist/viewer-DfAhm6nQ.cjs.gz +0 -0
package/CHANGELOG.md CHANGED
@@ -7,6 +7,25 @@ A release listed with no entries carried no Conventional Commit in this package'
7
7
  scope: scripts/release-plan.mjs re-releases a package whenever any of its files
8
8
  change, not only on conventional ones.
9
9
 
10
+ ## [4.0.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vue-viewer@4.0.0) - 2026-09-18
11
+
12
+ ### Bug Fixes
13
+
14
+ - **core:** Switch to emf-converter's unified convertMetafileToDataUrl (by @ChristopherVR) ([70a2ea5](https://github.com/ChristopherVR/pptx-viewer/commit/70a2ea5059af31627dfa1f0a7ebe5e12219804bb))
15
+
16
+ ## [3.21.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vue-viewer@3.21.0) - 2026-09-17
17
+
18
+ ### Features
19
+
20
+ - **shared:** Support host-owned collaboration sessions (by @Sudhansh6) ([cd44eb3](https://github.com/ChristopherVR/pptx-viewer/commit/cd44eb3e79ff6d23e9b92d6f9b0a4eb4ea4f228e))
21
+ - **vue:** Borrow host collaboration resources (by @Sudhansh6) ([dd3da37](https://github.com/ChristopherVR/pptx-viewer/commit/dd3da37e075383148806576ffaf6aec764696052))
22
+
23
+ ### Bug Fixes
24
+
25
+ - **shared:** Preserve consecutive collaborative text breaks (by @Sudhansh6) ([10d1667](https://github.com/ChristopherVR/pptx-viewer/commit/10d1667b3b41cf650985324b2accf7b006bf53c1))
26
+ - **shared:** Unify host session readiness and writeback (by @Sudhansh6) ([4635d01](https://github.com/ChristopherVR/pptx-viewer/commit/4635d01dd9f0d6cd48cfbd3f1ad9968acfd02906))
27
+ - **vue:** Share host readiness and retire paused text edits (by @Sudhansh6) ([d350c60](https://github.com/ChristopherVR/pptx-viewer/commit/d350c609ed3efac87c2f68ae836b6e869e6954be))
28
+
10
29
  ## [3.20.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vue-viewer@3.20.1) - 2026-09-17
11
30
 
12
31
  ### Bug Fixes
package/README.md CHANGED
@@ -266,6 +266,14 @@ for the `addElement` contract and a core-factory example.
266
266
 
267
267
  ### Composing a custom viewer shell
268
268
 
269
+ For host-owned collaboration, `useCollaboration` accepts a reactive `collaboration`
270
+ getter or shallow ref and exposes `shellState`: effective `canEdit`, connection
271
+ status, sanitized remote users and connected count. Use it for both custom controls
272
+ and their edit handlers. The public `/viewer` entry also exports `InlineTextEditor`
273
+ and `useInlineEditing` for reusing the native inline editing behavior.
274
+ See the [custom-shell collaboration guide](https://christophervr.github.io/pptx-viewer/vue/collaboration#custom-host-chrome)
275
+ and `demos/demo-vue/src/HostOwnedHeadlessEditor.vue` for complete wiring.
276
+
269
277
  `<PowerPointViewer>` bundles the slide canvas, ribbon, inspector, and every
270
278
  dialog into one component. If you only want a subset, for example your own
271
279
  chrome around just the ribbon and the slide canvas, import the pieces
@@ -1,4 +1,4 @@
1
- const e = require("./useViewerSettingsDialog-0H_Y-M2X.cjs"), t = require("./viewer-DfAhm6nQ.cjs");
1
+ const e = require("./useViewerSettingsDialog-w5_IIp3-.cjs"), t = require("./viewer-DW4Hra5s.cjs");
2
2
  let r = require("vue"), a = require("lucide-vue-next"), n = require("ai");
3
3
  var o = /* @__PURE__ */ new Set([
4
4
  "input-available",
Binary file
Binary file
@@ -1,5 +1,5 @@
1
- import { Zn as e } from "./useViewerSettingsDialog-DC5oTNB9.js";
2
- import { S as t, T as a, _ as s, b as r, d as l, f as o, g as n, h as i, m as p, o as d, p as c, u, v as m, x, y as g } from "./viewer-DD0gCFhg.js";
1
+ import { Zn as e } from "./useViewerSettingsDialog-Cgs5nn6a.js";
2
+ import { S as t, T as a, _ as s, b as r, d as l, f as o, g as n, h as i, m as p, o as d, p as c, u, v as m, x, y as g } from "./viewer-Bj84aywU.js";
3
3
  import { Fragment as f, Suspense as b, computed as v, createBlock as h, createCommentVNode as y, createElementBlock as k, createElementVNode as w, createTextVNode as C, createVNode as P, defineComponent as S, nextTick as T, normalizeClass as I, normalizeStyle as j, onBeforeUnmount as _, onMounted as A, openBlock as E, ref as M, renderList as F, resolveDynamicComponent as B, shallowRef as D, toDisplayString as N, unref as L, vModelText as R, watch as H, withAsyncContext as W, withCtx as z, withDirectives as V } from "vue";
4
4
  import { Bot as K, ChartColumn as O, Check as U, Crosshair as Z, Eye as $, Film as q, GitMerge as G, History as J, LayoutTemplate as Q, LoaderCircle as X, MessageSquare as Y, MessageSquarePlus as ee, Move as te, Navigation as ae, Palette as se, Pin as re, PinOff as le, Plus as oe, Search as ne, Send as ie, Shapes as pe, Sparkles as de, Square as ce, StickyNote as ue, Table as me, Trash2 as xe, TriangleAlert as ge, Type as fe, User as be, Wrench as ve, X as he } from "lucide-vue-next";
5
5
  import { getToolOrDynamicToolName as ye, isDynamicToolUIPart as ke, isToolUIPart as we } from "ai";
Binary file
Binary file
@@ -0,0 +1 @@
1
+ throw new Error("Could not resolve \"@napi-rs/canvas\" imported by \"emf-converter\". Is it installed?");
@@ -0,0 +1,3 @@
1
+ var r = {};
2
+ throw new Error("Could not resolve \"@napi-rs/canvas\" imported by \"emf-converter\". Is it installed?");
3
+ export { r as default };