pptx-vue-viewer 4.74.0 → 4.75.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 (81) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +0 -1
  3. package/dist/i18n/de.cjs +5 -0
  4. package/dist/i18n/de.cjs.br +0 -0
  5. package/dist/i18n/de.cjs.gz +0 -0
  6. package/dist/i18n/de.mjs +5 -0
  7. package/dist/i18n/de.mjs.br +0 -0
  8. package/dist/i18n/de.mjs.gz +0 -0
  9. package/dist/i18n/es.cjs +5 -0
  10. package/dist/i18n/es.cjs.br +0 -0
  11. package/dist/i18n/es.cjs.gz +0 -0
  12. package/dist/i18n/es.mjs +5 -0
  13. package/dist/i18n/es.mjs.br +0 -0
  14. package/dist/i18n/es.mjs.gz +0 -0
  15. package/dist/i18n/fr.cjs +5 -0
  16. package/dist/i18n/fr.cjs.br +0 -0
  17. package/dist/i18n/fr.cjs.gz +0 -0
  18. package/dist/i18n/fr.mjs +5 -0
  19. package/dist/i18n/fr.mjs.br +0 -0
  20. package/dist/i18n/fr.mjs.gz +0 -0
  21. package/dist/i18n/zh-CN.cjs +5 -0
  22. package/dist/i18n/zh-CN.cjs.br +0 -0
  23. package/dist/i18n/zh-CN.cjs.gz +0 -0
  24. package/dist/i18n/zh-CN.mjs +5 -0
  25. package/dist/i18n/zh-CN.mjs.br +0 -0
  26. package/dist/i18n/zh-CN.mjs.gz +0 -0
  27. package/dist/index.cjs +403 -55
  28. package/dist/index.cjs.br +0 -0
  29. package/dist/index.cjs.gz +0 -0
  30. package/dist/index.d.ts +252 -22
  31. package/dist/index.js +356 -5
  32. package/dist/index.js.br +0 -0
  33. package/dist/index.js.gz +0 -0
  34. package/dist/internals.cjs +1 -1
  35. package/dist/internals.cjs.br +0 -0
  36. package/dist/internals.cjs.gz +0 -0
  37. package/dist/internals.d.ts +2 -29
  38. package/dist/internals.js +1 -1
  39. package/dist/internals.js.br +0 -0
  40. package/dist/internals.js.gz +0 -0
  41. package/dist/pptx-vue-viewer.css +1 -1
  42. package/dist/pptx-vue-viewer.css.br +0 -0
  43. package/dist/pptx-vue-viewer.css.gz +0 -0
  44. package/dist/{useViewerSettingsDialog-Bz0RdicV.js → useViewerSettingsDialog-C0heOUkp.js} +969 -988
  45. package/dist/useViewerSettingsDialog-C0heOUkp.js.br +0 -0
  46. package/dist/useViewerSettingsDialog-C0heOUkp.js.gz +0 -0
  47. package/dist/{useViewerSettingsDialog-B33MOSx-.cjs → useViewerSettingsDialog-DVOl4qYL.cjs} +1045 -1063
  48. package/dist/useViewerSettingsDialog-DVOl4qYL.cjs.br +0 -0
  49. package/dist/useViewerSettingsDialog-DVOl4qYL.cjs.gz +0 -0
  50. package/dist/viewer/index.cjs +1 -1
  51. package/dist/viewer/index.cjs.br +0 -0
  52. package/dist/viewer/index.cjs.gz +0 -0
  53. package/dist/viewer/index.d.ts +47 -24
  54. package/dist/viewer/index.js +2 -2
  55. package/dist/viewer/index.js.br +0 -0
  56. package/dist/viewer/index.js.gz +0 -0
  57. package/dist/{viewer-Dwl_oBxY.js → viewer-BFzBz7EU.js} +7759 -7205
  58. package/dist/viewer-BFzBz7EU.js.br +0 -0
  59. package/dist/viewer-BFzBz7EU.js.gz +0 -0
  60. package/dist/{viewer-Co39Flri.cjs → viewer-DUQQxRyn.cjs} +5151 -4587
  61. package/dist/viewer-DUQQxRyn.cjs.br +0 -0
  62. package/dist/viewer-DUQQxRyn.cjs.gz +0 -0
  63. package/dist/{y-webrtc-DOVNm7CC.cjs → y-webrtc-Bb_f0RaI.cjs} +1 -1
  64. package/dist/y-webrtc-Bb_f0RaI.cjs.br +0 -0
  65. package/dist/y-webrtc-Bb_f0RaI.cjs.gz +0 -0
  66. package/dist/{y-webrtc-CwHdtPzt.js → y-webrtc-C0fD1Ijr.js} +1 -1
  67. package/dist/y-webrtc-C0fD1Ijr.js.br +0 -0
  68. package/dist/y-webrtc-C0fD1Ijr.js.gz +0 -0
  69. package/package.json +3 -3
  70. package/dist/useViewerSettingsDialog-B33MOSx-.cjs.br +0 -0
  71. package/dist/useViewerSettingsDialog-B33MOSx-.cjs.gz +0 -0
  72. package/dist/useViewerSettingsDialog-Bz0RdicV.js.br +0 -0
  73. package/dist/useViewerSettingsDialog-Bz0RdicV.js.gz +0 -0
  74. package/dist/viewer-Co39Flri.cjs.br +0 -0
  75. package/dist/viewer-Co39Flri.cjs.gz +0 -0
  76. package/dist/viewer-Dwl_oBxY.js.br +0 -0
  77. package/dist/viewer-Dwl_oBxY.js.gz +0 -0
  78. package/dist/y-webrtc-CwHdtPzt.js.br +0 -0
  79. package/dist/y-webrtc-CwHdtPzt.js.gz +0 -0
  80. package/dist/y-webrtc-DOVNm7CC.cjs.br +0 -0
  81. package/dist/y-webrtc-DOVNm7CC.cjs.gz +0 -0
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const e = require("../useViewerSettingsDialog-B33MOSx-.cjs"), t = require("../viewer-Co39Flri.cjs");
2
+ const e = require("../useViewerSettingsDialog-DVOl4qYL.cjs"), t = require("../viewer-DUQQxRyn.cjs");
3
3
  let r = require("ooxml-ui/pptx");
4
4
  Object.defineProperty(exports, "AUDIENCE_HASH", {
5
5
  enumerable: !0,
Binary file
Binary file
@@ -103,6 +103,9 @@ import { Ref } from 'vue';
103
103
  import { ReviewCommentsHost } from 'ooxml-ui/pptx';
104
104
  import { RibbonAddInTab } from 'ooxml-ui/pptx';
105
105
  import { RibbonContextualTabId } from 'ooxml-ui/pptx';
106
+ import { RibbonDisplayController } from 'ooxml-ui/pptx';
107
+ import { RibbonDisplayMode } from 'ooxml-ui/pptx';
108
+ import { RibbonDisplayState } from 'ooxml-ui/pptx';
106
109
  import { RulerUnit } from 'ooxml-ui/pptx';
107
110
  import { SanitizedPresence } from 'ooxml-ui/pptx';
108
111
  import { SectionSlideGroup } from 'ooxml-ui/pptx';
@@ -143,64 +146,66 @@ declare const __VLS_base_2: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, Compo
143
146
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
144
147
 
145
148
  declare const __VLS_export: DefineComponent<PowerPointViewerProps, PowerPointViewerExpose, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
146
- change: () => any;
147
- error: (message: string) => any;
148
- load: (detail: ViewerLoadDetail) => any;
149
- "collaboration-status": (status: ConnectionStatus) => any;
150
- autosave: (content: Uint8Array<ArrayBufferLike>) => any;
151
149
  "dirty-change": (isDirty: boolean) => any;
152
150
  "content-change": (content: Uint8Array<ArrayBufferLike>) => any;
151
+ autosave: (content: Uint8Array<ArrayBufferLike>) => any;
153
152
  "active-slide-change": (value: number) => any;
154
153
  "zoom-change": (value: number) => any;
155
154
  "slide-count-change": (value: number) => any;
155
+ "ribbon-display-change": (mode: RibbonDisplayMode) => any;
156
156
  "mode-change": (mode: string) => any;
157
157
  "selection-change": (elementIds: string[]) => any;
158
158
  "start-collaboration": (config: CollaborationConfig) => any;
159
159
  "stop-collaboration": () => any;
160
160
  "collaboration-change": (state: CollaborationState) => any;
161
+ load: (detail: ViewerLoadDetail) => any;
162
+ error: (message: string) => any;
161
163
  "autosave-toggle": (enabled: boolean) => any;
162
164
  "autosave-status": (status: ViewerAutosaveStatus) => any;
163
165
  "autosave-recovery": (record: AutosaveRecord) => any;
166
+ change: () => any;
164
167
  "properties-change": (updates: Partial< PptxCoreProperties>) => any;
165
168
  "notes-update": (notes: string) => any;
166
169
  "presentation-change": (presenting: boolean) => any;
170
+ "collaboration-status": (status: ConnectionStatus) => any;
167
171
  }, string, PublicProps, Readonly<PowerPointViewerProps> & Readonly<{
168
- onChange?: (() => any) | undefined;
169
- onError?: ((message: string) => any) | undefined;
170
- onLoad?: ((detail: ViewerLoadDetail) => any) | undefined;
171
- "onCollaboration-status"?: ((status: ConnectionStatus) => any) | undefined;
172
- onAutosave?: ((content: Uint8Array<ArrayBufferLike>) => any) | undefined;
173
172
  "onDirty-change"?: ((isDirty: boolean) => any) | undefined;
174
173
  "onContent-change"?: ((content: Uint8Array<ArrayBufferLike>) => any) | undefined;
174
+ onAutosave?: ((content: Uint8Array<ArrayBufferLike>) => any) | undefined;
175
175
  "onActive-slide-change"?: ((value: number) => any) | undefined;
176
176
  "onZoom-change"?: ((value: number) => any) | undefined;
177
177
  "onSlide-count-change"?: ((value: number) => any) | undefined;
178
+ "onRibbon-display-change"?: ((mode: RibbonDisplayMode) => any) | undefined;
178
179
  "onMode-change"?: ((mode: string) => any) | undefined;
179
180
  "onSelection-change"?: ((elementIds: string[]) => any) | undefined;
180
181
  "onStart-collaboration"?: ((config: CollaborationConfig) => any) | undefined;
181
182
  "onStop-collaboration"?: (() => any) | undefined;
182
183
  "onCollaboration-change"?: ((state: CollaborationState) => any) | undefined;
184
+ onLoad?: ((detail: ViewerLoadDetail) => any) | undefined;
185
+ onError?: ((message: string) => any) | undefined;
183
186
  "onAutosave-toggle"?: ((enabled: boolean) => any) | undefined;
184
187
  "onAutosave-status"?: ((status: ViewerAutosaveStatus) => any) | undefined;
185
188
  "onAutosave-recovery"?: ((record: AutosaveRecord) => any) | undefined;
189
+ onChange?: (() => any) | undefined;
186
190
  "onProperties-change"?: ((updates: Partial< PptxCoreProperties>) => any) | undefined;
187
191
  "onNotes-update"?: ((notes: string) => any) | undefined;
188
192
  "onPresentation-change"?: ((presenting: boolean) => any) | undefined;
193
+ "onCollaboration-status"?: ((status: ConnectionStatus) => any) | undefined;
189
194
  }>, {
190
- allowExternalContent: boolean;
191
- canEdit: boolean;
192
195
  autosave: boolean;
196
+ canEdit: boolean;
193
197
  readOnly: boolean;
198
+ showToolbar: boolean;
199
+ showThumbnails: boolean;
200
+ showCompatibilityToasts: boolean;
201
+ smartArt3D: boolean;
202
+ surfaceChart3D: boolean;
194
203
  barChart3D: boolean;
195
204
  lineChart3D: boolean;
196
205
  areaChart3D: boolean;
197
206
  pieChart3D: boolean;
198
- surfaceChart3D: boolean;
199
- smartArt3D: boolean;
200
207
  googleFonts: GoogleFontsOption_2;
201
- showToolbar: boolean;
202
- showThumbnails: boolean;
203
- showCompatibilityToasts: boolean;
208
+ allowExternalContent: boolean;
204
209
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
205
210
 
206
211
  declare const __VLS_export_10: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
@@ -236,18 +241,18 @@ declare const __VLS_export_17: DefineComponent<{
236
241
  }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
237
242
 
238
243
  declare const __VLS_export_18: DefineComponent<__VLS_Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
239
- cancel: () => any;
240
244
  change: (text: string, snapshot?: InlineTextEditSnapshot | undefined) => any;
241
245
  format: (updates: Partial<TextStyle>) => any;
246
+ cancel: () => any;
242
247
  commit: () => any;
243
248
  listSession: (event: {
244
249
  controller: InlineListController;
245
250
  active: boolean;
246
251
  }) => any;
247
252
  }, string, PublicProps, Readonly<__VLS_Props_15> & Readonly<{
248
- onCancel?: (() => any) | undefined;
249
253
  onChange?: ((text: string, snapshot?: InlineTextEditSnapshot | undefined) => any) | undefined;
250
254
  onFormat?: ((updates: Partial<TextStyle>) => any) | undefined;
255
+ onCancel?: (() => any) | undefined;
251
256
  onCommit?: (() => any) | undefined;
252
257
  onListSession?: ((event: {
253
258
  controller: InlineListController;
@@ -365,26 +370,26 @@ declare const __VLS_export_4: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, Com
365
370
  "onToggle-section-collapse"?: ((sectionId: string) => any) | undefined;
366
371
  }>, {
367
372
  canEdit: boolean;
373
+ theme: PptxTheme;
368
374
  locale: string;
375
+ customProperties: readonly PptxCustomProperty[];
376
+ templateElementsBySlideId: Record<string, PptxElement[]>;
369
377
  headerFooter: PptxHeaderFooter;
370
- theme: PptxTheme;
371
378
  tableStyleMap: ParsedTableStyleMap;
372
379
  firstSlideNumber: number;
373
380
  mediaDataUrls: Map<string, string>;
374
- templateElementsBySlideId: Record<string, PptxElement[]>;
375
- customProperties: readonly PptxCustomProperty[];
376
381
  sectionGroups: SectionGroup[];
377
382
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
378
383
 
379
384
  declare const __VLS_export_5: DefineComponent<SlideThumbnailProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SlideThumbnailProps> & Readonly<{}>, {
385
+ theme: PptxTheme;
380
386
  locale: string;
387
+ customProperties: readonly PptxCustomProperty[];
381
388
  headerFooter: PptxHeaderFooter;
382
- theme: PptxTheme;
383
389
  tableStyleMap: ParsedTableStyleMap;
384
390
  firstSlideNumber: number;
385
391
  mediaDataUrls: Map<string, string>;
386
392
  templateElements: PptxElement[];
387
- customProperties: readonly PptxCustomProperty[];
388
393
  previewWidth: number;
389
394
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
390
395
 
@@ -1381,6 +1386,7 @@ export declare const PowerPointViewer: typeof __VLS_export;
1381
1386
  * - `onActiveSlideChange` → `@active-slide-change`
1382
1387
  * - `onModeChange` → `@mode-change`
1383
1388
  * - `onZoomChange` → `@zoom-change`
1389
+ * - `onRibbonDisplayChange` → `@ribbon-display-change`
1384
1390
  * - `onSelectionChange` → `@selection-change`
1385
1391
  * - `onSlideCountChange` → `@slide-count-change`
1386
1392
  * - `onLoad` → `@load`
@@ -1396,6 +1402,11 @@ export declare interface PowerPointViewerEmits {
1396
1402
  (e: 'content-change' | 'autosave', content: Uint8Array): void;
1397
1403
  /** Fired when the active slide, zoom level, or slide count changes. */
1398
1404
  (e: 'active-slide-change' | 'zoom-change' | 'slide-count-change', value: number): void;
1405
+ /**
1406
+ * Fired only when the user picks a Ribbon Display Options mode (the menu,
1407
+ * Ctrl+F1, a double click on a tab), never for a change of the `ribbonDisplay` prop.
1408
+ */
1409
+ (e: 'ribbon-display-change', mode: RibbonDisplayMode): void;
1399
1410
  /** Fired when the viewer mode changes. */
1400
1411
  (e: 'mode-change', mode: string): void;
1401
1412
  /** Fired when element selection changes. */
@@ -1684,6 +1695,14 @@ export declare interface PowerPointViewerProps {
1684
1695
  * `true`; `false` leaves the canvas (and the thumbnail pane, if shown).
1685
1696
  */
1686
1697
  showToolbar?: boolean;
1698
+ /**
1699
+ * Ribbon Display Options: the starting mode. `always` (the default) docks
1700
+ * the tabs and commands above the slide; `tabs` shows only the tab row and
1701
+ * lays a chosen tab's commands over the slide; `fullScreen` hides the title
1702
+ * bar and the ribbon behind a strip. A later change from the host applies
1703
+ * without firing `ribbon-display-change`.
1704
+ */
1705
+ ribbonDisplay?: RibbonDisplayMode;
1687
1706
  /**
1688
1707
  * Show the slide thumbnail pane. Default `true`. The pane still follows
1689
1708
  * the user's own collapse toggle and the `slidesPane` customisation panel.
@@ -1786,6 +1805,10 @@ export { PptxAiUIMessage }
1786
1805
  export { PptxAiWritePolicy }
1787
1806
 
1788
1807
  declare interface Props extends RibbonProps {
1808
+ /** Ribbon Display Options state; absent, the ribbon docks as in `always` mode. */
1809
+ ribbonDisplay?: RibbonDisplayState;
1810
+ /** The viewer's Ribbon Display Options controller (menu, tab clicks, double clicks). */
1811
+ ribbonDisplayController?: RibbonDisplayController;
1789
1812
  }
1790
1813
 
1791
1814
  /**
@@ -1,3 +1,3 @@
1
- import { An as a, C as s, Cr as e, Er as r, Gn as n, In as o, L as t, Ln as i, M as l, Mn as d, N as S, P as R, Q as m, Qn as b, S as C, Sr as w, Tr as c, Z as u, Zn as v, br as x, cr as T, d as g, er as h, h as j, it as p, j as y, jn as E, mt as I, sr as M, tr as P, vr as f, w as A, wr as O, x as Z, xr as D, yr as L } from "../useViewerSettingsDialog-Bz0RdicV.js";
2
- import { C as Q, S as V, _ as k, a as q, b as B, c as F, d as G, f as N, g as W, h as _, i as z, l as H, m as J, n as K, o as U, p as X, r as Y, s as $, t as aa, u as sa, v as ea, w as ra, x as na, y as oa } from "../viewer-Dwl_oBxY.js";
1
+ import { An as a, C as s, Cr as e, Er as r, Gn as n, In as o, L as t, Ln as i, M as l, Mn as d, N as S, P as R, Q as m, Qn as b, S as C, Sr as w, Tr as c, Z as u, Zn as v, br as x, cr as T, d as g, er as h, h as j, it as p, j as y, jn as E, mt as I, sr as M, tr as P, vr as f, w as A, wr as O, x as Z, xr as D, yr as L } from "../useViewerSettingsDialog-C0heOUkp.js";
2
+ import { C as Q, S as V, _ as k, a as q, b as B, c as F, d as G, f as N, g as W, h as _, i as z, l as H, m as J, n as K, o as U, p as X, r as Y, s as $, t as aa, u as sa, v as ea, w as ra, x as na, y as oa } from "../viewer-BFzBz7EU.js";
3
3
  export { N as AUDIENCE_HASH, T as ChartRenderer, oa as CollaborationCursors, ra as CollaborationStatusIndicator, M as ConnectorRenderer, w as DEFAULT_CANVAS_HEIGHT, e as DEFAULT_CANVAS_WIDTH, O as DEFAULT_FILL_COLOR, c as DEFAULT_STROKE_COLOR, r as DEFAULT_TEXT_COLOR, E as ElementRenderer, P as EquationRenderer, G as FollowModeBar, h as InkRenderer, Q as InlineTextEditor, b as Model3DRenderer, v as OleRenderer, H as PowerPointViewer, ea as RemoteSelectionOverlay, na as RibbonToolbar, V as SelectionOverlay, B as SlideCanvas, a as SlideStage, F as SlideThumbnail, sa as SlidesPane, n as SmartArtRenderer, i as TableRenderer, o as WordArtText, d as ZoomRenderer, l as buildInitialGuides, X as clearAudienceContent, S as collectImagePaths, R as collectMediaElements, Z as exportAllSlidesToSvg, C as exportAllSlidesToSvgBlobs, s as exportSlideToSvg, A as exportSlideToSvgBlob, f as getContainerStyle, L as getImageSrc, K as getResolvedShapeClipPath, Y as getResolvedShapeClipPathFor, x as getShapeFillStrokeStyle, D as getTextBlockStyle, J as isAudienceTab, _ as loadAudienceContent, aa as overlayInlineTextSnapshot, W as parseAudienceNonce, k as storeAudienceContent, I as useCollaboration, z as useCollaborativeHistory, q as useCollaborativeState, p as useEditorHistory, m as useEditorOperations, u as useElementDrag, t as useInlineEditing, y as useLoadContent, U as usePresenceTracking, j as useSectionOperations, g as useSlideOperations, $ as useYjsProvider };
Binary file
Binary file