pptx-vue-viewer 1.22.1 → 1.23.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.
Files changed (73) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +44 -2
  3. package/dist/composables-unstable.cjs +1 -1
  4. package/dist/composables-unstable.cjs.br +0 -0
  5. package/dist/composables-unstable.cjs.gz +0 -0
  6. package/dist/composables-unstable.js +2 -2
  7. package/dist/composables-unstable.js.br +0 -0
  8. package/dist/composables-unstable.js.gz +0 -0
  9. package/dist/{dist-5AOOL1Jo.js → dist-D0gUgHke.js} +43010 -42128
  10. package/dist/dist-D0gUgHke.js.br +0 -0
  11. package/dist/dist-D0gUgHke.js.gz +0 -0
  12. package/dist/{dist-CJQ7zbcU.cjs → dist-DdP6BiXW.cjs} +43097 -42205
  13. package/dist/dist-DdP6BiXW.cjs.br +0 -0
  14. package/dist/dist-DdP6BiXW.cjs.gz +0 -0
  15. package/dist/gif-encoder-BDpN8FLE.js +2 -0
  16. package/dist/gif-encoder-BDpN8FLE.js.br +0 -0
  17. package/dist/gif-encoder-BDpN8FLE.js.gz +0 -0
  18. package/dist/gif-encoder-DVrOQpDc.cjs +2 -0
  19. package/dist/gif-encoder-DVrOQpDc.cjs.br +0 -0
  20. package/dist/gif-encoder-DVrOQpDc.cjs.gz +0 -0
  21. package/dist/index.cjs +2 -2
  22. package/dist/index.cjs.br +0 -0
  23. package/dist/index.cjs.gz +0 -0
  24. package/dist/index.d.ts +2 -2
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +3 -3
  27. package/dist/index.js.br +0 -0
  28. package/dist/index.js.gz +0 -0
  29. package/dist/pptx-vue-viewer.css +1 -1
  30. package/dist/pptx-vue-viewer.css.br +0 -0
  31. package/dist/pptx-vue-viewer.css.gz +0 -0
  32. package/dist/{useViewerSettingsDialog-CkY4fSDh.js → useViewerSettingsDialog-CKnyxHeC.js} +3172 -3083
  33. package/dist/useViewerSettingsDialog-CKnyxHeC.js.br +0 -0
  34. package/dist/useViewerSettingsDialog-CKnyxHeC.js.gz +0 -0
  35. package/dist/{useViewerSettingsDialog-CvBIvcW0.cjs → useViewerSettingsDialog-Du01yrIv.cjs} +3186 -3092
  36. package/dist/useViewerSettingsDialog-Du01yrIv.cjs.br +0 -0
  37. package/dist/useViewerSettingsDialog-Du01yrIv.cjs.gz +0 -0
  38. package/dist/viewer/PowerPointViewer.vue.d.ts.map +1 -1
  39. package/dist/viewer/components/EquationEditorDialog.vue.d.ts.map +1 -1
  40. package/dist/viewer/composables/ribbon-props-state.d.ts +4 -4
  41. package/dist/viewer/index.cjs +2 -2
  42. package/dist/viewer/index.cjs.br +0 -0
  43. package/dist/viewer/index.cjs.gz +0 -0
  44. package/dist/viewer/index.d.ts +2 -0
  45. package/dist/viewer/index.d.ts.map +1 -1
  46. package/dist/viewer/index.js +3 -3
  47. package/dist/viewer/index.js.br +0 -0
  48. package/dist/viewer/index.js.gz +0 -0
  49. package/dist/{viewer-CHxMlR5-.js → viewer-BeIe7G25.js} +6651 -6699
  50. package/dist/viewer-BeIe7G25.js.br +0 -0
  51. package/dist/viewer-BeIe7G25.js.gz +0 -0
  52. package/dist/{viewer-BevWmHKj.cjs → viewer-BkNHVn87.cjs} +264 -307
  53. package/dist/viewer-BkNHVn87.cjs.br +0 -0
  54. package/dist/viewer-BkNHVn87.cjs.gz +0 -0
  55. package/package.json +1 -1
  56. package/dist/dist-5AOOL1Jo.js.br +0 -0
  57. package/dist/dist-5AOOL1Jo.js.gz +0 -0
  58. package/dist/dist-CJQ7zbcU.cjs.br +0 -0
  59. package/dist/dist-CJQ7zbcU.cjs.gz +0 -0
  60. package/dist/gif-encoder-Cg4GoTVC.cjs +0 -2
  61. package/dist/gif-encoder-Cg4GoTVC.cjs.br +0 -0
  62. package/dist/gif-encoder-Cg4GoTVC.cjs.gz +0 -0
  63. package/dist/gif-encoder-upp0UMCu.js +0 -2
  64. package/dist/gif-encoder-upp0UMCu.js.br +0 -0
  65. package/dist/gif-encoder-upp0UMCu.js.gz +0 -0
  66. package/dist/useViewerSettingsDialog-CkY4fSDh.js.br +0 -0
  67. package/dist/useViewerSettingsDialog-CkY4fSDh.js.gz +0 -0
  68. package/dist/useViewerSettingsDialog-CvBIvcW0.cjs.br +0 -0
  69. package/dist/useViewerSettingsDialog-CvBIvcW0.cjs.gz +0 -0
  70. package/dist/viewer-BevWmHKj.cjs.br +0 -0
  71. package/dist/viewer-BevWmHKj.cjs.gz +0 -0
  72. package/dist/viewer-CHxMlR5-.js.br +0 -0
  73. package/dist/viewer-CHxMlR5-.js.gz +0 -0
package/CHANGELOG.md CHANGED
@@ -4,6 +4,18 @@ All notable changes to this project are documented here.
4
4
  This file is generated from [Conventional Commits](https://www.conventionalcommits.org)
5
5
  by [git-cliff](https://git-cliff.org); do not edit it by hand.
6
6
 
7
+ ## [1.23.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vue-viewer@1.23.0) - 2026-07-18
8
+
9
+ ### Features
10
+
11
+ - **vue:** Export RibbonToolbar for independent composition (by @ChristopherVR) ([00a57ca](https://github.com/ChristopherVR/pptx-viewer/commit/00a57ca4f96339edc1b79d544f71330558f2ceff))
12
+
13
+ ### Dependencies
14
+
15
+ - **deps:** Update dependencies to latest and migrate core/shared/locales to TypeScript 7 (by @ChristopherVR) ([cc72948](https://github.com/ChristopherVR/pptx-viewer/commit/cc729482cc5ae4ae56e1219f290c2953ec83c12a))
16
+
17
+ ## [1.22.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vue-viewer@1.22.1) - 2026-07-18
18
+
7
19
  ## [1.22.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vue-viewer@1.22.0) - 2026-07-18
8
20
 
9
21
  ## [1.21.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vue-viewer@1.21.0) - 2026-07-17
package/README.md CHANGED
@@ -214,8 +214,50 @@ async function save() {
214
214
  ### Exported components & helpers
215
215
 
216
216
  `PowerPointViewer`, `SlideCanvas`, `SlideStage`, `ElementRenderer`,
217
- `provideViewerTheme`, `useViewerTheme`, and the `ViewerTheme` / `CanvasSize` /
218
- `CollaborationConfig` / `ToolbarActionId` types.
217
+ `RibbonToolbar`, `provideViewerTheme`, `useViewerTheme`, and the `ViewerTheme` /
218
+ `CanvasSize` / `CollaborationConfig` / `ToolbarActionId` / `RibbonProps` types.
219
+
220
+ ### Composing a custom viewer shell
221
+
222
+ `<PowerPointViewer>` bundles the slide canvas, ribbon, inspector, and every
223
+ dialog into one component. If you only want a subset, for example your own
224
+ chrome around just the ribbon and the slide canvas, import the pieces
225
+ independently instead: `RibbonToolbar` (from `pptx-vue-viewer`, same as
226
+ `SlideCanvas`) and the `useRibbonProps` composable (from the "advanced
227
+ integrations" entry point `pptx-vue-viewer/composables-unstable`) that
228
+ assembles its props. `composables-unstable` has no semver stability
229
+ guarantee, so pin your version when relying on it.
230
+
231
+ ```vue
232
+ <script setup lang="ts">
233
+ import { SlideCanvas, RibbonToolbar } from 'pptx-vue-viewer';
234
+ import {
235
+ useRibbonProps,
236
+ useEditorHistory,
237
+ useSelection,
238
+ // ...plus whichever other composables you need to build the
239
+ // `UseRibbonPropsInput` state/action fields (see ribbon-props-types.ts).
240
+ } from 'pptx-vue-viewer/composables-unstable';
241
+
242
+ // Wire up just the state/handlers your custom shell needs; anything from
243
+ // `UseRibbonPropsInput` you don't use can be a no-op ref/callback.
244
+ const ribbonProps = useRibbonProps({
245
+ /* ribbonMode, canEdit, isMobile, ..., see UseRibbonPropsInput */
246
+ });
247
+ </script>
248
+
249
+ <template>
250
+ <div class="my-custom-shell">
251
+ <RibbonToolbar v-bind="ribbonProps" />
252
+ <SlideCanvas :slide="activeSlide" :scale="zoom" />
253
+ </div>
254
+ </template>
255
+ ```
256
+
257
+ `RibbonToolbar`'s full prop contract is the `RibbonProps` type; `useRibbonProps`
258
+ returns a `ComputedRef<RibbonProps>` built from the same state/action
259
+ composables `PowerPointViewer.vue` itself uses, so `v-bind`ing it straight onto
260
+ `RibbonToolbar` mirrors the bundled component's wiring exactly.
219
261
 
220
262
  ## Localization (i18n)
221
263
 
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const e = require("./useViewerSettingsDialog-CvBIvcW0.cjs");
2
+ const e = require("./useViewerSettingsDialog-Du01yrIv.cjs");
3
3
  let t = require("vue");
4
4
  function s(e) {
5
5
  const t = /* @__PURE__ */ new Set(), s = [];
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import { $ as a, $n as s, $t as t, A as e, At as n, B as u, Bt as l, Ct as i, D as o, Dt as c, E as r, Et as v, F as f, G as d, Gt as g, H as h, Ht as m, I as p, J as w, Jt as y, K as S, Kt as j, L as k, La as x, M as D, Mt as E, N as M, Nt as V, O as $, Ot as q, P as z, Q as A, Qn as B, R as G, St as H, T as I, Tt as J, U as K, Ut as L, V as N, Vt as O, W as Q, Wt as T, X as U, Xt as W, Y as X, Yt as Y, Z, Zt as _, _ as b, _t as C, a as F, an as P, at as R, bt as aa, c as sa, cn as ta, ct as ea, d as na, dt as ua, et as la, f as ia, ft as oa, g as ca, gt as ra, h as va, hn as fa, ht as da, i as ga, in as ha, it as ma, j as pa, jt as wa, k as ya, kr as Sa, kt as ja, l as ka, ln as xa, m as Da, mt as Ea, n as Ma, nn as Va, nt as $a, o as qa, on as za, ot as Aa, p as Ba, pt as Ga, q as Ha, qt as Ia, r as Ja, ri as Ka, rn as La, rt as Na, s as Oa, sn as Qa, st as Ta, t as Ua, tt as Wa, u as Xa, ur as Ya, v as Za, vt as _a, w as ba, wt as Ca, xi as Fa, xt as Pa, y as Ra, yt as as, z as ss, zt as ts } from "./useViewerSettingsDialog-CkY4fSDh.js";
1
+ import { $ as a, $n as s, $t as t, A as e, Ar as n, At as u, B as l, Bt as i, Ct as o, D as c, Dt as r, E as v, Et as f, F as d, G as g, Gt as h, H as m, Ht as p, I as S, J as w, Jt as y, K as j, Kt as A, L as D, M as E, Mt as M, N as V, Nt as $, O as k, Ot as q, P as x, Q as z, R as B, Ra as G, Si as H, St as I, T as J, Tt as K, U as N, Ut as O, V as R, Vt as T, W as U, Wt as W, X, Xt as Y, Y as Z, Yt as _, Z as b, Zt as C, _ as F, _t as L, a as P, an as Q, at as aa, bt as sa, c as ta, cn as ea, ct as na, d as ua, dr as la, dt as ia, er as oa, et as ca, f as ra, ft as va, g as fa, gt as da, h as ga, hn as ha, ht as ma, i as pa, ii as Sa, in as wa, it as ya, j as ja, jt as Aa, k as Da, kt as Ea, l as Ma, ln as Va, m as $a, mt as ka, n as qa, nn as xa, nt as za, o as Ba, on as Ga, ot as Ha, p as Ia, pt as Ja, q as Ka, qt as Na, r as Oa, rn as Ra, rt as Ta, s as Ua, sn as Wa, st as Xa, t as Ya, tt as Za, u as _a, v as ba, vt as Ca, w as Fa, wt as La, xt as Pa, y as Qa, yt as as, z as ss, zt as ts } from "./useViewerSettingsDialog-CKnyxHeC.js";
2
2
  import { computed as es, readonly as ns, ref as us } from "vue";
3
3
  function ls(a = []) {
4
4
  const s = us(is(a)), t = es(() => 0 === s.value.length);
@@ -27,4 +27,4 @@ function is(a) {
27
27
  for (const e of a) s.has(e) || (s.add(e), t.push(e));
28
28
  return t;
29
29
  }
30
- export { Ja as DEFAULT_MAX_VERSIONS, Ca as ERASER_RADIUS, J as HIGHLIGHTER_OPACITY, v as HIGHLIGHTER_WIDTH, B as MOBILE_BREAKPOINT, s as MOBILE_LANDSCAPE_MAX_HEIGHT, oa as NUDGE_LARGE, Ga as NUDGE_SMALL, c as PEN_WIDTH, ca as RIBBON_ALIGN, Ea as SHORTCUT_CATALOG, da as SHORTCUT_GROUP_LABEL_KEYS, l as SMARTART_COLOR_SCHEMES, O as SMARTART_STYLE_OPTIONS, ta as SmartArt3DKey, Ya as TABLET_BREAKPOINT, Ia as TableSelectionKey, Sa as buildClickGroups, k as buildSearchRegex, q as buildStrokePathD, y as computeCellSelection, Ka as computeDocumentStatistics, as as computeElapsed, Fa as countWords, ja as createStroke, n as eraseStrokesAtPoint, G as findMatches, aa as formatRehearseMs, $a as generateCommentId, ra as groupShortcutCatalog, Y as injectTableSelection, Va as inlineEditorRect, x as isMobileViewport, La as nodeIdsInRenderOrder, W as provideTableSelection, ss as replaceInElement, C as resolveShortcutAction, m as smartArtLayoutLabel, ha as textNodeIdsInRenderOrder, b as toShapePreset, ea as useAccessibility, Ta as useAlignGroup, V as useAnimationPlayback, Aa as useAutosave, g as useChartEditing, R as useCollaboration, ma as useCollaborationWiring, Qa as useColorChangeImage, Na as useComments, Wa as useCommentsWiring, la as useContextMenu, a as useCustomShows, A as useCustomShowsWiring, T as useDebouncedCallback, Z as useDocumentPropertiesDialog, j as useDocumentStatistics, U as useEditorHistory, X as useEditorKeyboard, w as useEditorOperations, Ha as useElementDrag, S as useElementInsertion, d as useEmbeddedFonts, Q as useExport, K as useExportProgress, N as useExportWiring, u as useFindReplace, p as useFontEmbedding, f as useFormatPainter, z as useHeaderFooterDialog, M as useInkDrawing, D as useInlineEditing, pa as useInsertElementDialogs, E as useIsMobile, e as useKeyboardInsets, _a as useKeyboardShortcuts, ya as useLoadContent, $ as useMasterViewState, h as useMediaExport, o as useMobileChrome, za as useModel3dScene, r as useMultiSelectOps, I as usePasswordProtection, wa as usePresentationAnnotations, ba as usePresentationModeWiring, Ra as usePrint, Pa as useRehearseTimings, Za as useRibbonActions, va as useRibbonProps, Da as useRibbonUiState, Ba as useSectionOperations, ls as useSelection, ia as useSelectionPaneWiring, fa as useSheetDismissDrag, na as useSignatureWorkflow, ua as useSignatures, Xa as useSlideMutations, ka as useSlideOperations, sa as useSlideShowSettings, xa as useSmartArt3D, ts as useSmartArtEditing, L as useSmartArtFocus, t as useSmartArtHoverRect, P as useSmartArtInlineEditState, Oa as useSmartArtNodeEditContext, qa as useTableCellEditingContext, _ as useTableCellSelection, F as useThemeEditing, i as useToolbarAutoHide, H as useTouchGestures, ga as useVersionHistory, Ma as useVersionHistoryWiring, Ua as useViewerSettingsDialog };
30
+ export { Oa as DEFAULT_MAX_VERSIONS, La as ERASER_RADIUS, K as HIGHLIGHTER_OPACITY, f as HIGHLIGHTER_WIDTH, s as MOBILE_BREAKPOINT, oa as MOBILE_LANDSCAPE_MAX_HEIGHT, va as NUDGE_LARGE, Ja as NUDGE_SMALL, r as PEN_WIDTH, fa as RIBBON_ALIGN, ka as SHORTCUT_CATALOG, ma as SHORTCUT_GROUP_LABEL_KEYS, i as SMARTART_COLOR_SCHEMES, T as SMARTART_STYLE_OPTIONS, ea as SmartArt3DKey, la as TABLET_BREAKPOINT, Na as TableSelectionKey, n as buildClickGroups, D as buildSearchRegex, q as buildStrokePathD, y as computeCellSelection, Sa as computeDocumentStatistics, as as computeElapsed, H as countWords, Ea as createStroke, u as eraseStrokesAtPoint, B as findMatches, sa as formatRehearseMs, za as generateCommentId, da as groupShortcutCatalog, _ as injectTableSelection, xa as inlineEditorRect, G as isMobileViewport, Ra as nodeIdsInRenderOrder, Y as provideTableSelection, ss as replaceInElement, L as resolveShortcutAction, p as smartArtLayoutLabel, wa as textNodeIdsInRenderOrder, F as toShapePreset, na as useAccessibility, Xa as useAlignGroup, $ as useAnimationPlayback, Ha as useAutosave, h as useChartEditing, aa as useCollaboration, ya as useCollaborationWiring, Wa as useColorChangeImage, Ta as useComments, Za as useCommentsWiring, ca as useContextMenu, a as useCustomShows, z as useCustomShowsWiring, W as useDebouncedCallback, b as useDocumentPropertiesDialog, A as useDocumentStatistics, X as useEditorHistory, Z as useEditorKeyboard, w as useEditorOperations, Ka as useElementDrag, j as useElementInsertion, g as useEmbeddedFonts, U as useExport, N as useExportProgress, R as useExportWiring, l as useFindReplace, S as useFontEmbedding, d as useFormatPainter, x as useHeaderFooterDialog, V as useInkDrawing, E as useInlineEditing, ja as useInsertElementDialogs, M as useIsMobile, e as useKeyboardInsets, Ca as useKeyboardShortcuts, Da as useLoadContent, k as useMasterViewState, m as useMediaExport, c as useMobileChrome, Ga as useModel3dScene, v as useMultiSelectOps, J as usePasswordProtection, Aa as usePresentationAnnotations, Fa as usePresentationModeWiring, Qa as usePrint, Pa as useRehearseTimings, ba as useRibbonActions, ga as useRibbonProps, $a as useRibbonUiState, Ia as useSectionOperations, ls as useSelection, ra as useSelectionPaneWiring, ha as useSheetDismissDrag, ua as useSignatureWorkflow, ia as useSignatures, _a as useSlideMutations, Ma as useSlideOperations, ta as useSlideShowSettings, Va as useSmartArt3D, ts as useSmartArtEditing, O as useSmartArtFocus, t as useSmartArtHoverRect, Q as useSmartArtInlineEditState, Ua as useSmartArtNodeEditContext, Ba as useTableCellEditingContext, C as useTableCellSelection, P as useThemeEditing, o as useToolbarAutoHide, I as useTouchGestures, pa as useVersionHistory, qa as useVersionHistoryWiring, Ya as useViewerSettingsDialog };
Binary file
Binary file