pptx-vue-viewer 3.17.0 → 3.18.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 (94) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +27 -25
  3. package/dist/{AiChatPanel-DHzr7ZJl.cjs → AiChatPanel-B7L2Dp2W.cjs} +1 -1
  4. package/dist/AiChatPanel-B7L2Dp2W.cjs.br +0 -0
  5. package/dist/AiChatPanel-B7L2Dp2W.cjs.gz +0 -0
  6. package/dist/{AiChatPanel-BfD6F0f2.js → AiChatPanel-BskP7nIk.js} +2 -2
  7. package/dist/AiChatPanel-BskP7nIk.js.br +0 -0
  8. package/dist/AiChatPanel-BskP7nIk.js.gz +0 -0
  9. package/dist/{dist-BE8BiAYR.cjs → dist-C3OhsVJE.cjs} +8904 -8372
  10. package/dist/dist-C3OhsVJE.cjs.br +0 -0
  11. package/dist/dist-C3OhsVJE.cjs.gz +0 -0
  12. package/dist/{dist-BgJIlU8L.js → dist-CWBXKbsp.js} +7908 -7376
  13. package/dist/dist-CWBXKbsp.js.br +0 -0
  14. package/dist/dist-CWBXKbsp.js.gz +0 -0
  15. package/dist/gif-encoder-DORBR7ab.js +2 -0
  16. package/dist/gif-encoder-DORBR7ab.js.br +0 -0
  17. package/dist/gif-encoder-DORBR7ab.js.gz +0 -0
  18. package/dist/gif-encoder-igJcupGa.cjs +2 -0
  19. package/dist/gif-encoder-igJcupGa.cjs.br +0 -0
  20. package/dist/gif-encoder-igJcupGa.cjs.gz +0 -0
  21. package/dist/{i18n-Dcy5T7sR.js → i18n-CAMMcPHf.cjs} +34 -2
  22. package/dist/i18n-CAMMcPHf.cjs.br +0 -0
  23. package/dist/{i18n-Be5czKtA.cjs.gz → i18n-CAMMcPHf.cjs.gz} +0 -0
  24. package/dist/{i18n-Be5czKtA.cjs → i18n-CJDMN5xG.js} +14 -17
  25. package/dist/i18n-CJDMN5xG.js.br +0 -0
  26. package/dist/{i18n-Dcy5T7sR.js.gz → i18n-CJDMN5xG.js.gz} +0 -0
  27. package/dist/i18n.cjs +1 -1
  28. package/dist/i18n.cjs.br +0 -0
  29. package/dist/i18n.cjs.gz +0 -0
  30. package/dist/i18n.js +5 -5
  31. package/dist/i18n.js.br +0 -0
  32. package/dist/i18n.js.gz +0 -0
  33. package/dist/index.cjs +1 -1
  34. package/dist/index.cjs.br +0 -0
  35. package/dist/index.cjs.gz +0 -0
  36. package/dist/index.js +2 -2
  37. package/dist/index.js.br +0 -0
  38. package/dist/index.js.gz +0 -0
  39. package/dist/internals.cjs +1 -1
  40. package/dist/internals.cjs.br +0 -0
  41. package/dist/internals.cjs.gz +0 -0
  42. package/dist/internals.js +1 -1
  43. package/dist/internals.js.br +0 -0
  44. package/dist/internals.js.gz +0 -0
  45. package/dist/pptx-vue-viewer.css +1 -1
  46. package/dist/pptx-vue-viewer.css.br +0 -0
  47. package/dist/pptx-vue-viewer.css.gz +0 -0
  48. package/dist/{useViewerSettingsDialog-B9JF7jtB.cjs → useViewerSettingsDialog-At0VtvFj.cjs} +4348 -4310
  49. package/dist/useViewerSettingsDialog-At0VtvFj.cjs.br +0 -0
  50. package/dist/useViewerSettingsDialog-At0VtvFj.cjs.gz +0 -0
  51. package/dist/{useViewerSettingsDialog-Da50h8r8.js → useViewerSettingsDialog-CLSowN49.js} +7357 -7319
  52. package/dist/useViewerSettingsDialog-CLSowN49.js.br +0 -0
  53. package/dist/useViewerSettingsDialog-CLSowN49.js.gz +0 -0
  54. package/dist/viewer/PowerPointViewer.vue.d.ts.map +1 -1
  55. package/dist/viewer/components/ribbon/ArrangeSection.vue.d.ts.map +1 -1
  56. package/dist/viewer/composables/useAlignGroup.d.ts +5 -0
  57. package/dist/viewer/composables/useAlignGroup.d.ts.map +1 -1
  58. package/dist/viewer/index.cjs +1 -1
  59. package/dist/viewer/index.cjs.br +0 -0
  60. package/dist/viewer/index.cjs.gz +0 -0
  61. package/dist/viewer/index.js +2 -2
  62. package/dist/viewer/index.js.br +0 -0
  63. package/dist/viewer/index.js.gz +0 -0
  64. package/dist/{viewer-CibpDvHC.cjs → viewer-BAa4Nn4b.cjs} +32 -31
  65. package/dist/viewer-BAa4Nn4b.cjs.br +0 -0
  66. package/dist/viewer-BAa4Nn4b.cjs.gz +0 -0
  67. package/dist/{viewer-DyQ3HU5L.js → viewer-BUzQMo78.js} +10520 -10519
  68. package/dist/viewer-BUzQMo78.js.br +0 -0
  69. package/dist/viewer-BUzQMo78.js.gz +0 -0
  70. package/package.json +6 -6
  71. package/dist/AiChatPanel-BfD6F0f2.js.br +0 -0
  72. package/dist/AiChatPanel-BfD6F0f2.js.gz +0 -0
  73. package/dist/AiChatPanel-DHzr7ZJl.cjs.br +0 -0
  74. package/dist/AiChatPanel-DHzr7ZJl.cjs.gz +0 -0
  75. package/dist/dist-BE8BiAYR.cjs.br +0 -0
  76. package/dist/dist-BE8BiAYR.cjs.gz +0 -0
  77. package/dist/dist-BgJIlU8L.js.br +0 -0
  78. package/dist/dist-BgJIlU8L.js.gz +0 -0
  79. package/dist/gif-encoder-CoihXBNP.js +0 -2
  80. package/dist/gif-encoder-CoihXBNP.js.br +0 -0
  81. package/dist/gif-encoder-CoihXBNP.js.gz +0 -0
  82. package/dist/gif-encoder-TDme_9wN.cjs +0 -2
  83. package/dist/gif-encoder-TDme_9wN.cjs.br +0 -0
  84. package/dist/gif-encoder-TDme_9wN.cjs.gz +0 -0
  85. package/dist/i18n-Be5czKtA.cjs.br +0 -0
  86. package/dist/i18n-Dcy5T7sR.js.br +0 -0
  87. package/dist/useViewerSettingsDialog-B9JF7jtB.cjs.br +0 -0
  88. package/dist/useViewerSettingsDialog-B9JF7jtB.cjs.gz +0 -0
  89. package/dist/useViewerSettingsDialog-Da50h8r8.js.br +0 -0
  90. package/dist/useViewerSettingsDialog-Da50h8r8.js.gz +0 -0
  91. package/dist/viewer-CibpDvHC.cjs.br +0 -0
  92. package/dist/viewer-CibpDvHC.cjs.gz +0 -0
  93. package/dist/viewer-DyQ3HU5L.js.br +0 -0
  94. package/dist/viewer-DyQ3HU5L.js.gz +0 -0
package/CHANGELOG.md CHANGED
@@ -7,6 +7,44 @@ 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
+ ## [3.17.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vue-viewer@3.17.1) - 2026-09-14
11
+
12
+ ### Bug Fixes
13
+
14
+ - **i18n:** Localize inspector and ribbon controls (by @yunfeizhu) ([a657a76](https://github.com/ChristopherVR/pptx-viewer/commit/a657a766d653106f04d50f7b13a94a6c12c77f1e))
15
+
16
+ ## [3.17.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vue-viewer@3.17.0) - 2026-09-13
17
+
18
+ ### Features
19
+
20
+ - **shared:** Add configurable viewport fit options (by @Sudhansh6) ([93e3218](https://github.com/ChristopherVR/pptx-viewer/commit/93e3218de54ce8d153761e2fba83f3558fc3051b))
21
+ - **vue:** Add configurable viewport fit options (by @Sudhansh6) ([5b3bdac](https://github.com/ChristopherVR/pptx-viewer/commit/5b3bdace56a56b10bf0175179f28fb2c3f9ee9d8))
22
+ - **shared:** Expose public element insertion across viewers (by @Sudhansh6) ([2701047](https://github.com/ChristopherVR/pptx-viewer/commit/2701047d5011b5d7ce8408009addc1dc31f6e3f7))
23
+
24
+ ### Bug Fixes
25
+
26
+ - **core:** Preserve empty paragraph insertion formatting (by @Sudhansh6) ([121f6bf](https://github.com/ChristopherVR/pptx-viewer/commit/121f6bf9f64a29ab07e07b5d4f042a4b075d7876))
27
+ - **shared:** Preserve empty paragraph insertion formatting (by @Sudhansh6) ([b34d0f5](https://github.com/ChristopherVR/pptx-viewer/commit/b34d0f5ab9879e02f1de85c0e50b15f3947735c3))
28
+ - **vue:** Preserve empty paragraph insertion formatting (by @Sudhansh6) ([4a82f35](https://github.com/ChristopherVR/pptx-viewer/commit/4a82f35e14e66cb0e48c7780f3355fa8aca4b4c2))
29
+ - **vue,angular:** Honor public edit and preview mode switches (by @Sudhansh6) ([97b1e7b](https://github.com/ChristopherVR/pptx-viewer/commit/97b1e7b494d793fae1069583a7db1aa385550329))
30
+ - **shared:** Continue inserted paragraphs from the local list (by @Sudhansh6) ([78b8226](https://github.com/ChristopherVR/pptx-viewer/commit/78b82261a320b93052627ec9e6e460c4845f6f32))
31
+ - **shared:** Leave empty clipboard paste shortcuts unclaimed (by @Sudhansh6) ([aec446f](https://github.com/ChristopherVR/pptx-viewer/commit/aec446f7f36371ad2f9c1cf3e68b7aaeb4f2cc28))
32
+
33
+ ### Other
34
+
35
+ - Retain empty paragraph styles with source alignment (by @Sudhansh6) ([d979cd2](https://github.com/ChristopherVR/pptx-viewer/commit/d979cd25b7c05cef0fc4d4501c39d2bb11e572e0))
36
+ - Integrate semantic list commands with empty paragraph formatting (by @Sudhansh6) ([c5d9a6f](https://github.com/ChristopherVR/pptx-viewer/commit/c5d9a6f4f52c44180111c1f5fca0f10299dce47a))
37
+ - Sync main font and SmartArt fixes (by @Sudhansh6) ([f2066eb](https://github.com/ChristopherVR/pptx-viewer/commit/f2066eb87b62884cadd77593e8b36426398c3312))
38
+ - Sync main paragraph and history fixes (by @Sudhansh6) ([a18a2d7](https://github.com/ChristopherVR/pptx-viewer/commit/a18a2d7fe2bccf7d8c49b72d7a80087d423d1da0))
39
+ - Sync viewport fit changes from main (by @Sudhansh6) ([3c3c0bd](https://github.com/ChristopherVR/pptx-viewer/commit/3c3c0bdb2f88648dd20ffac9b6fd5a691741253d))
40
+ - Sync public insertion with viewport fit API (by @Sudhansh6) ([47df3db](https://github.com/ChristopherVR/pptx-viewer/commit/47df3db6bb7bb6bbee06e36c9ff9565b2fc61252))
41
+ - Sync public insertion with empty paragraph formatting (by @Sudhansh6) ([d1ad9c9](https://github.com/ChristopherVR/pptx-viewer/commit/d1ad9c9562313085cab62f3b9f9fa0abc6d0fa1f))
42
+ - Integrate preview and save-state fixes into insertion (by @Sudhansh6) ([1c33fb5](https://github.com/ChristopherVR/pptx-viewer/commit/1c33fb571634306e6dd989291185313e3cdafb49))
43
+
44
+ ### Documentation
45
+
46
+ - Move viewport fitting into developer guides (by @Sudhansh6) ([60707eb](https://github.com/ChristopherVR/pptx-viewer/commit/60707ebf8f261779b2ebfa41ff0741267a672bd3))
47
+
10
48
  ## [3.16.7](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vue-viewer@3.16.7) - 2026-09-13
11
49
 
12
50
  ### Bug Fixes
package/README.md CHANGED
@@ -53,7 +53,7 @@ npm install vue vue-i18n jszip fast-xml-parser
53
53
  ```
54
54
 
55
55
  **Optional:** `three` enables interactive GLB/GLTF 3D models and the
56
- `smartArt3D` renderer; without it those elements fall back to poster images /
56
+ `smartArt3D` and 3D chart renderers; without it those elements fall back to poster images /
57
57
  flat SVG.
58
58
 
59
59
  The `pptx-viewer-core` engine is **bundled in**, so you don't install it
@@ -178,30 +178,32 @@ See the [cross-binding defaults](../../docs/guide/viewport-fit.md).
178
178
 
179
179
  ### Props
180
180
 
181
- | Prop | Type | Default | Description |
182
- | -------------------- | ------------------------------------ | ------- | ------------------------------------------------------------------------------------------------------------------------- |
183
- | `content` | `Uint8Array \| ArrayBuffer` | n/a | The `.pptx` bytes to render. **Required.** |
184
- | `theme` | `ViewerTheme` | n/a | Color/radius overrides applied as CSS custom properties. Always wins over the File > Options theme picker. |
185
- | `class` | `string` | n/a | Class applied to the root element. |
186
- | `canEdit` | `boolean` | `false` | Enables the editor toolbar, inspector, and drag-and-drop editing. |
187
- | `filePath` | `string` | n/a | Original file path, used for autosave recovery and version history. |
188
- | `fileName` | `string` | n/a | Display name of the open document, shown in the title bar. |
189
- | `fonts` | `ViewerFontSource[]` | n/a | Licensed font sources supplied by the host application. |
190
- | `autosave` | `boolean` | `false` | Enables debounced autosave (emits `@autosave` with serialised bytes). |
191
- | `autosaveIntervalMs` | `number` | `2000` | Autosave debounce window in milliseconds. |
192
- | `authorName` | `string` | n/a | Author name for comments/annotations and collaboration presence. |
193
- | `collaboration` | `CollaborationConfig` | n/a | Yjs real-time collaboration config (server URL, room, role). |
194
- | `shareDefaults` | `{ roomId?, userName?, serverUrl? }` | n/a | Seed values for the Share dialog fields. |
195
- | `onOpenFile` | `() => void` | n/a | Host override for File > Open; bypasses the built-in file picker. |
196
- | `smartArt3D` | `boolean` | `false` | Opt-in Three.js 3D SmartArt renderer (needs the optional `three` peer; falls back to SVG without it). |
197
- | `hiddenActions` | `ToolbarActionId[]` | n/a | Individual toolbar buttons and/or ribbon tabs to hide (e.g. `['share', 'broadcast', 'insert']`). Omit to show everything. |
198
- | `defaultThemeKey` | `string` | n/a | Initial File > Options > Appearance selection when no persisted preference exists. |
199
- | `availableThemes` | `ThemeCatalogEntry[]` | n/a | Theme choices offered by File > Options > Appearance (defaults to the built-in catalog). |
200
- | `onThemeChange` | `(key: string) => void` | n/a | Host hook for the appearance picker; when set, the host owns persisting the choice. |
201
- | `defaultLocale` | `string` | n/a | Initial locale code when no persisted preference exists. |
202
- | `availableLocales` | `LocaleCatalogEntry[]` | n/a | Locale choices offered by File > Options > Language (defaults to the host `vue-i18n` locales). |
203
- | `onLocaleChange` | `(code: string) => void` | n/a | Host hook for the language picker; when set, the host owns applying/persisting the switch. |
204
- | `accountAuth` | `AccountAuthConfig` | n/a | Optional sign-in hook point for File > Account (disabled unless `enabled: true`). |
181
+ | Prop | Type | Default | Description |
182
+ | -------------------------------------------------------------------------- | ------------------------------------ | ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
183
+ | `content` | `Uint8Array \| ArrayBuffer` | n/a | The `.pptx` bytes to render. **Required.** |
184
+ | `theme` | `ViewerTheme` | n/a | Color/radius overrides applied as CSS custom properties. Always wins over the File > Options theme picker. |
185
+ | `class` | `string` | n/a | Class applied to the root element. |
186
+ | `canEdit` | `boolean` | `false` | Enables the editor toolbar, inspector, and drag-and-drop editing. |
187
+ | `filePath` | `string` | n/a | Original file path, used for autosave recovery and version history. |
188
+ | `fileName` | `string` | n/a | Display name of the open document, shown in the title bar. |
189
+ | `fonts` | `ViewerFontSource[]` | n/a | Licensed font sources supplied by the host application. |
190
+ | `autosave` | `boolean` | `true` | Enables debounced autosave (emits `@autosave` with serialised bytes). |
191
+ | `autosaveIntervalMs` | `number` | File > Options cadence | Autosave debounce window in milliseconds. |
192
+ | `authorName` | `string` | n/a | Author name for comments/annotations and collaboration presence. |
193
+ | `collaboration` | `CollaborationConfig` | n/a | Yjs real-time collaboration config (server URL, room, role). |
194
+ | `shareDefaults` | `{ roomId?, userName?, serverUrl? }` | n/a | Seed values for the Share dialog fields. |
195
+ | `onOpenFile` | `() => void` | n/a | Host override for File > Open; bypasses the built-in file picker. |
196
+ | `smartArt3D` | `boolean` | `false` | Opt-in Three.js 3D SmartArt renderer (needs the optional `three` peer; falls back to SVG without it). |
197
+ | `surfaceChart3D`, `barChart3D`, `lineChart3D`, `areaChart3D`, `pieChart3D` | `boolean` | `false` | Independently opt in to interactive Three.js renderers for the matching 3D chart kinds; each falls back to SVG when WebGL is unavailable. |
198
+ | `ai` | `PptxAiConfig` | n/a | Optional AI assistant configuration. The SDK peers load only when its panel is opened. |
199
+ | `hiddenActions` | `ToolbarActionId[]` | n/a | Individual toolbar buttons and/or ribbon tabs to hide (e.g. `['share', 'broadcast', 'insert']`). Omit to show everything. |
200
+ | `defaultThemeKey` | `string` | n/a | Initial File > Options > Appearance selection when no persisted preference exists. |
201
+ | `availableThemes` | `ThemeCatalogEntry[]` | n/a | Theme choices offered by File > Options > Appearance (defaults to the built-in catalog). |
202
+ | `onThemeChange` | `(key: string) => void` | n/a | Host hook for the appearance picker; when set, the host owns persisting the choice. |
203
+ | `defaultLocale` | `string` | n/a | Initial locale code when no persisted preference exists. |
204
+ | `availableLocales` | `LocaleCatalogEntry[]` | n/a | Locale choices offered by File > Options > Language (defaults to the host `vue-i18n` locales). |
205
+ | `onLocaleChange` | `(code: string) => void` | n/a | Host hook for the language picker; when set, the host owns applying/persisting the switch. |
206
+ | `accountAuth` | `AccountAuthConfig` | n/a | Optional sign-in hook point for File > Account (disabled unless `enabled: true`). |
205
207
 
206
208
  ### Events
207
209
 
@@ -1,4 +1,4 @@
1
- const e = require("./useViewerSettingsDialog-B9JF7jtB.cjs"), t = require("./viewer-CibpDvHC.cjs");
1
+ const e = require("./useViewerSettingsDialog-At0VtvFj.cjs"), t = require("./viewer-BAa4Nn4b.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 { xn as e } from "./useViewerSettingsDialog-Da50h8r8.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-DyQ3HU5L.js";
1
+ import { xn as e } from "./useViewerSettingsDialog-CLSowN49.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-BUzQMo78.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 $, Eye as q, Film as G, GitMerge as J, History as Q, LayoutTemplate as X, LoaderCircle as Y, MessageSquare as Z, 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