pptx-vue-viewer 1.1.16 → 1.1.18

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 (69) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.cjs.br +0 -0
  3. package/dist/index.cjs.gz +0 -0
  4. package/dist/index.js +1 -1
  5. package/dist/index.js.br +0 -0
  6. package/dist/index.js.gz +0 -0
  7. package/dist/viewer/PowerPointViewer.vue.d.ts.map +1 -1
  8. package/dist/viewer/components/ComparePanel.vue.d.ts +34 -0
  9. package/dist/viewer/components/ComparePanel.vue.d.ts.map +1 -0
  10. package/dist/viewer/components/CustomShowsPanel.vue.d.ts +27 -0
  11. package/dist/viewer/components/CustomShowsPanel.vue.d.ts.map +1 -0
  12. package/dist/viewer/components/EquationEditorDialog.vue.d.ts +38 -0
  13. package/dist/viewer/components/EquationEditorDialog.vue.d.ts.map +1 -0
  14. package/dist/viewer/components/HandoutMasterPanel.vue.d.ts +13 -0
  15. package/dist/viewer/components/HandoutMasterPanel.vue.d.ts.map +1 -0
  16. package/dist/viewer/components/HeaderFooterPanel.vue.d.ts +14 -0
  17. package/dist/viewer/components/HeaderFooterPanel.vue.d.ts.map +1 -0
  18. package/dist/viewer/components/InsertSmartArtDialog.vue.d.ts +31 -0
  19. package/dist/viewer/components/InsertSmartArtDialog.vue.d.ts.map +1 -0
  20. package/dist/viewer/components/MasterViewSidebar.vue.d.ts +29 -0
  21. package/dist/viewer/components/MasterViewSidebar.vue.d.ts.map +1 -0
  22. package/dist/viewer/components/NotesMasterPanel.vue.d.ts +8 -0
  23. package/dist/viewer/components/NotesMasterPanel.vue.d.ts.map +1 -0
  24. package/dist/viewer/components/SectionList.vue.d.ts +34 -0
  25. package/dist/viewer/components/SectionList.vue.d.ts.map +1 -0
  26. package/dist/viewer/components/SettingsDialog.vue.d.ts +34 -0
  27. package/dist/viewer/components/SettingsDialog.vue.d.ts.map +1 -0
  28. package/dist/viewer/components/SlideDiffRow.vue.d.ts +28 -0
  29. package/dist/viewer/components/SlideDiffRow.vue.d.ts.map +1 -0
  30. package/dist/viewer/components/SlideMastersList.vue.d.ts +19 -0
  31. package/dist/viewer/components/SlideMastersList.vue.d.ts.map +1 -0
  32. package/dist/viewer/components/SlidesPaneControls.vue.d.ts +2 -2
  33. package/dist/viewer/components/SmartArtPreviews.vue.d.ts +17 -0
  34. package/dist/viewer/components/SmartArtPreviews.vue.d.ts.map +1 -0
  35. package/dist/viewer/components/VersionHistoryPanel.vue.d.ts +38 -0
  36. package/dist/viewer/components/VersionHistoryPanel.vue.d.ts.map +1 -0
  37. package/dist/viewer/components/latex-to-omml.d.ts +13 -0
  38. package/dist/viewer/components/latex-to-omml.d.ts.map +1 -0
  39. package/dist/viewer/components/smart-art-presets.d.ts +31 -0
  40. package/dist/viewer/components/smart-art-presets.d.ts.map +1 -0
  41. package/dist/viewer/components/viewer-settings.d.ts +56 -0
  42. package/dist/viewer/components/viewer-settings.d.ts.map +1 -0
  43. package/dist/viewer/composables/slide-compare.d.ts +66 -0
  44. package/dist/viewer/composables/slide-compare.d.ts.map +1 -0
  45. package/dist/viewer/composables/useCustomShows.d.ts +51 -0
  46. package/dist/viewer/composables/useCustomShows.d.ts.map +1 -0
  47. package/dist/viewer/composables/useLoadContent.d.ts +11 -1
  48. package/dist/viewer/composables/useLoadContent.d.ts.map +1 -1
  49. package/dist/viewer/composables/useSectionOperations.d.ts +67 -0
  50. package/dist/viewer/composables/useSectionOperations.d.ts.map +1 -0
  51. package/dist/viewer/composables/useVersionHistory.d.ts +73 -0
  52. package/dist/viewer/composables/useVersionHistory.d.ts.map +1 -0
  53. package/dist/viewer/index.cjs +1 -1
  54. package/dist/viewer/index.cjs.br +0 -0
  55. package/dist/viewer/index.cjs.gz +0 -0
  56. package/dist/viewer/index.js +1 -1
  57. package/dist/viewer/index.js.br +0 -0
  58. package/dist/viewer/index.js.gz +0 -0
  59. package/dist/{viewer-CZvXHM4n.js → viewer-BwIIU3HV.js} +6410 -5300
  60. package/dist/viewer-BwIIU3HV.js.br +0 -0
  61. package/dist/viewer-BwIIU3HV.js.gz +0 -0
  62. package/dist/{viewer-C4oRgY8q.cjs → viewer-CeeHIv08.cjs} +9883 -8773
  63. package/dist/viewer-CeeHIv08.cjs.br +0 -0
  64. package/dist/viewer-CeeHIv08.cjs.gz +0 -0
  65. package/package.json +1 -1
  66. package/dist/viewer-C4oRgY8q.cjs.br +0 -0
  67. package/dist/viewer-C4oRgY8q.cjs.gz +0 -0
  68. package/dist/viewer-CZvXHM4n.js.br +0 -0
  69. package/dist/viewer-CZvXHM4n.js.gz +0 -0
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const e = require("./viewer-C4oRgY8q.cjs");
2
+ const e = require("./viewer-CeeHIv08.cjs");
3
3
  let r = require("clsx"), t = require("tailwind-merge");
4
4
  exports.ElementRenderer = e.ElementRenderer_default, exports.PowerPointViewer = e.PowerPointViewer_default, exports.SlideCanvas = e.SlideCanvas_default, exports.SlideStage = e.SlideStage_default, exports.cn = function(...e) {
5
5
  return (0, t.twMerge)((0, r.clsx)(e));
package/dist/index.cjs.br CHANGED
Binary file
package/dist/index.cjs.gz CHANGED
Binary file
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as a, F as s, N as e, P as r, R as i, S as o, a as t, o as m, s as n, t as l, w } from "./viewer-CZvXHM4n.js";
1
+ import { C as a, F as s, N as e, P as r, R as i, S as o, a as t, o as m, s as n, t as l, w } from "./viewer-BwIIU3HV.js";
2
2
  import { clsx as d } from "clsx";
3
3
  import { twMerge as f } from "tailwind-merge";
4
4
  function p(...a) {
package/dist/index.js.br CHANGED
Binary file
package/dist/index.js.gz CHANGED
Binary file
@@ -1 +1 @@
1
- {"version":3,"file":"PowerPointViewer.vue.d.ts","sourceRoot":"","sources":["../../src/viewer/PowerPointViewer.vue"],"names":[],"mappings":"AAi3CA,OAAO,KAAK,EACX,mBAAmB,EAEnB,sBAAsB,EACtB,qBAAqB,EACrB,MAAM,SAAS,CAAC;AA8lEjB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;6EAKhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"PowerPointViewer.vue.d.ts","sourceRoot":"","sources":["../../src/viewer/PowerPointViewer.vue"],"names":[],"mappings":"AAgqDA,OAAO,KAAK,EACX,mBAAmB,EAEnB,sBAAsB,EACtB,qBAAqB,EACrB,MAAM,SAAS,CAAC;AA2nFjB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;6EAKhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,34 @@
1
+ import { CompareResult } from '../composables/slide-compare';
2
+ import { CanvasSize } from '../types';
3
+ /**
4
+ * ComparePanel — side panel showing slide-level diffs between two versions.
5
+ *
6
+ * Vue port of the React `ComparePanel.tsx`. Lists each non-trivial
7
+ * {@link SlideDiff} as a {@link SlideDiffRow}; the user can accept/reject
8
+ * individual diffs or accept all at once. Accepted/rejected state is tracked
9
+ * locally and propagated to the host via emits, which carry the diff index.
10
+ */
11
+ type __VLS_Props = {
12
+ /** Whether the panel is visible. */
13
+ open: boolean;
14
+ /** The comparison result, or `null` when nothing to compare. */
15
+ compareResult: CompareResult | null;
16
+ /** Canvas dimensions used to render diff thumbnails. */
17
+ canvasSize: CanvasSize;
18
+ /** Resolved media data URLs for thumbnail rendering. */
19
+ mediaDataUrls: Map<string, string>;
20
+ };
21
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
22
+ close: () => any;
23
+ "accept-slide": (diffIndex: number) => any;
24
+ "reject-slide": (diffIndex: number) => any;
25
+ "accept-all": () => any;
26
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
27
+ onClose?: (() => any) | undefined;
28
+ "onAccept-slide"?: ((diffIndex: number) => any) | undefined;
29
+ "onReject-slide"?: ((diffIndex: number) => any) | undefined;
30
+ "onAccept-all"?: (() => any) | undefined;
31
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
32
+ declare const _default: typeof __VLS_export;
33
+ export default _default;
34
+ //# sourceMappingURL=ComparePanel.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComparePanel.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/ComparePanel.vue"],"names":[],"mappings":"AAmNA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAG3C;;;;;;;GAOG;AACH,KAAK,WAAW,GAAG;IAClB,oCAAoC;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,gEAAgE;IAChE,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IACpC,wDAAwD;IACxD,UAAU,EAAE,UAAU,CAAC;IACvB,wDAAwD;IACxD,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC,CAAC;AA0LF,QAAA,MAAM,YAAY;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,27 @@
1
+ import { PptxCustomShow, PptxSlide } from 'pptx-viewer-core';
2
+ type __VLS_Props = {
3
+ /** All custom shows. */
4
+ customShows: PptxCustomShow[];
5
+ /** All slides, used to render the membership checklist. */
6
+ slides: PptxSlide[];
7
+ /** Id of the currently selected show, or `null`. */
8
+ activeShowId: string | null;
9
+ };
10
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ select: (showId: string) => any;
12
+ create: (name: string) => any;
13
+ rename: (showId: string, name: string) => any;
14
+ delete: (showId: string) => any;
15
+ "toggle-slide": (showId: string, slideRId: string) => any;
16
+ "move-slide": (showId: string, from: number, to: number) => any;
17
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ onSelect?: ((showId: string) => any) | undefined;
19
+ onCreate?: ((name: string) => any) | undefined;
20
+ onRename?: ((showId: string, name: string) => any) | undefined;
21
+ onDelete?: ((showId: string) => any) | undefined;
22
+ "onToggle-slide"?: ((showId: string, slideRId: string) => any) | undefined;
23
+ "onMove-slide"?: ((showId: string, from: number, to: number) => any) | undefined;
24
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
+ declare const _default: typeof __VLS_export;
26
+ export default _default;
27
+ //# sourceMappingURL=CustomShowsPanel.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomShowsPanel.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/CustomShowsPanel.vue"],"names":[],"mappings":"AA8WA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGlE,KAAK,WAAW,GAAG;IAClB,wBAAwB;IACxB,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,2DAA2D;IAC3D,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,oDAAoD;IACpD,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B,CAAC;AA2VF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,38 @@
1
+ import { PptxElement, TextSegment } from 'pptx-viewer-core';
2
+ /**
3
+ * EquationEditorDialog — LaTeX input with a live MathML preview for inserting or
4
+ * editing an OMML equation.
5
+ *
6
+ * Vue port of the React `EquationEditorDialog.tsx`. The user types LaTeX (or
7
+ * picks a template); it is converted LaTeX → OMML (`convertLatexToOmml`) → MathML
8
+ * (`convertOmmlToMathMl`, reused from `pptx-viewer-shared`, the same path
9
+ * `EquationRenderer` uses) for the live preview. On confirm it emits both:
10
+ *
11
+ * - `insert(element)` — a ready-to-add core {@link PptxElement} (a shape
12
+ * carrying the equation as a `textSegments[].equationXml` OMML tree, so
13
+ * `SmartArtRenderer`/`EquationRenderer` render it directly). Route to
14
+ * `ops.addElement`.
15
+ * - `apply(segment)` — the equation {@link TextSegment} alone, for updating an
16
+ * existing equation in place. Route to `ops.updateText` / a segment patch.
17
+ *
18
+ * When `existingOmml` is supplied the dialog opens in edit mode, seeding the
19
+ * textarea from the reverse `convertOmmlToLatex`.
20
+ */
21
+ type __VLS_Props = {
22
+ /** Whether the dialog is open. */
23
+ open: boolean;
24
+ /** When editing an existing equation, its OMML; otherwise null/undefined. */
25
+ existingOmml?: Record<string, unknown> | null;
26
+ };
27
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
28
+ insert: (element: PptxElement) => any;
29
+ close: () => any;
30
+ apply: (segment: TextSegment) => any;
31
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
32
+ onInsert?: ((element: PptxElement) => any) | undefined;
33
+ onClose?: (() => any) | undefined;
34
+ onApply?: ((segment: TextSegment) => any) | undefined;
35
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
36
+ declare const _default: typeof __VLS_export;
37
+ export default _default;
38
+ //# sourceMappingURL=EquationEditorDialog.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EquationEditorDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/EquationEditorDialog.vue"],"names":[],"mappings":"AAqaA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAa,MAAM,kBAAkB,CAAC;AAQ5E;;;;;;;;;;;;;;;;;;GAkBG;AACH,KAAK,WAAW,GAAG;IAClB,kCAAkC;IAClC,IAAI,EAAE,OAAO,CAAC;IACd,6EAA6E;IAC7E,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CAC9C,CAAC;AAgWF,QAAA,MAAM,YAAY;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,13 @@
1
+ import { PptxHandoutMaster } from 'pptx-viewer-core';
2
+ type __VLS_Props = {
3
+ handoutMaster: PptxHandoutMaster | undefined;
4
+ slidesPerPage: number;
5
+ };
6
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "slides-per-page-change": (count: number) => any;
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ "onSlides-per-page-change"?: ((count: number) => any) | undefined;
10
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
13
+ //# sourceMappingURL=HandoutMasterPanel.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HandoutMasterPanel.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/HandoutMasterPanel.vue"],"names":[],"mappings":"AA+KA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,KAAK,WAAW,GAAG;IAClB,aAAa,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC7C,aAAa,EAAE,MAAM,CAAC;CACtB,CAAC;AAuIF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,14 @@
1
+ import { PptxHeaderFooter } from 'pptx-viewer-core';
2
+ type __VLS_Props = {
3
+ headerFooter: PptxHeaderFooter | undefined;
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ close: () => any;
7
+ update: (next: PptxHeaderFooter) => any;
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onClose?: (() => any) | undefined;
10
+ onUpdate?: ((next: PptxHeaderFooter) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ //# sourceMappingURL=HeaderFooterPanel.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderFooterPanel.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/HeaderFooterPanel.vue"],"names":[],"mappings":"AAAA,OA8QO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGzD,KAAK,WAAW,GAAG;IAClB,YAAY,EAAE,gBAAgB,GAAG,SAAS,CAAC;CAC3C,CAAC;AAwOF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,31 @@
1
+ import { PptxElement } from 'pptx-viewer-core';
2
+ /**
3
+ * InsertSmartArtDialog — gallery + node-text entry for inserting a SmartArt
4
+ * graphic.
5
+ *
6
+ * Vue port of the React `InsertSmartArtDialog.tsx`. Built on
7
+ * {@link ModalDialog}, it shows a category sidebar + a thumbnail gallery
8
+ * (`SmartArtPreviews.vue`). Picking a preset seeds an editable textarea with one
9
+ * node per line (the preset's `defaultItems`); the user can add/remove/edit
10
+ * lines before inserting.
11
+ *
12
+ * On insert it builds a fully-formed core {@link SmartArtPptxElement} (so
13
+ * `SmartArtRenderer.vue` can render it directly, with no further core call —
14
+ * there is no `createSmartArtElement` factory in core, so the literal is built
15
+ * here exactly as the React `handleInsertSmartArt` handler does) and emits it
16
+ * via the `insert` event. The host routes the payload to `ops.addElement`.
17
+ */
18
+ type __VLS_Props = {
19
+ /** Whether the dialog is open. */
20
+ open: boolean;
21
+ };
22
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
23
+ insert: (element: PptxElement) => any;
24
+ close: () => any;
25
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
26
+ onInsert?: ((element: PptxElement) => any) | undefined;
27
+ onClose?: (() => any) | undefined;
28
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
+ declare const _default: typeof __VLS_export;
30
+ export default _default;
31
+ //# sourceMappingURL=InsertSmartArtDialog.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InsertSmartArtDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/InsertSmartArtDialog.vue"],"names":[],"mappings":"AAgXA,OAAO,KAAK,EACX,WAAW,EAIX,MAAM,kBAAkB,CAAC;AAQ1B;;;;;;;;;;;;;;;GAeG;AACH,KAAK,WAAW,GAAG;IAClB,kCAAkC;IAClC,IAAI,EAAE,OAAO,CAAC;CACd,CAAC;AA4SF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,29 @@
1
+ import { PptxSlideMaster, PptxNotesMaster, PptxHandoutMaster, MasterViewTab } from 'pptx-viewer-core';
2
+ import { CanvasSize } from '../types';
3
+ type __VLS_Props = {
4
+ slideMasters: PptxSlideMaster[];
5
+ activeMasterIndex: number;
6
+ activeLayoutIndex: number | null;
7
+ canvasSize: CanvasSize;
8
+ mediaDataUrls: Map<string, string>;
9
+ masterViewTab: MasterViewTab;
10
+ notesMaster: PptxNotesMaster | undefined;
11
+ handoutMaster: PptxHandoutMaster | undefined;
12
+ handoutSlidesPerPage: number;
13
+ };
14
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ collapse: () => any;
16
+ "select-master": (index: number) => any;
17
+ "select-layout": (masterIndex: number, layoutIndex: number) => any;
18
+ "tab-change": (tab: MasterViewTab) => any;
19
+ "handout-slides-per-page-change": (count: number) => any;
20
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
21
+ onCollapse?: (() => any) | undefined;
22
+ "onSelect-master"?: ((index: number) => any) | undefined;
23
+ "onSelect-layout"?: ((masterIndex: number, layoutIndex: number) => any) | undefined;
24
+ "onTab-change"?: ((tab: MasterViewTab) => any) | undefined;
25
+ "onHandout-slides-per-page-change"?: ((count: number) => any) | undefined;
26
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
+ declare const _default: typeof __VLS_export;
28
+ export default _default;
29
+ //# sourceMappingURL=MasterViewSidebar.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MasterViewSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/MasterViewSidebar.vue"],"names":[],"mappings":"AA8MA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,KAAK,EACX,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAK3C,KAAK,WAAW,GAAG;IAClB,YAAY,EAAE,eAAe,EAAE,CAAC;IAChC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,aAAa,EAAE,aAAa,CAAC;IAC7B,WAAW,EAAE,eAAe,GAAG,SAAS,CAAC;IACzC,aAAa,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC7C,oBAAoB,EAAE,MAAM,CAAC;CAC7B,CAAC;AAsLF,QAAA,MAAM,YAAY;;;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,8 @@
1
+ import { PptxNotesMaster } from 'pptx-viewer-core';
2
+ type __VLS_Props = {
3
+ notesMaster: PptxNotesMaster | undefined;
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
8
+ //# sourceMappingURL=NotesMasterPanel.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotesMasterPanel.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/NotesMasterPanel.vue"],"names":[],"mappings":"AAyJA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGxD,KAAK,WAAW,GAAG;IAClB,WAAW,EAAE,eAAe,GAAG,SAAS,CAAC;CACzC,CAAC;AA6HF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,34 @@
1
+ import { SectionGroup } from '../composables/useSectionOperations';
2
+ import { CanvasSize } from '../types';
3
+ type __VLS_Props = {
4
+ /** Slides grouped by section (from `useSectionOperations().slidesBySection`). */
5
+ groups: SectionGroup[];
6
+ /** Canvas dimensions, for scaling thumbnails. */
7
+ canvasSize: CanvasSize;
8
+ /** Media data-URL map, threaded to `SlideStage`. */
9
+ mediaDataUrls: Map<string, string>;
10
+ /** Index of the currently active slide (for highlighting). */
11
+ activeIndex: number;
12
+ /** When false, edit affordances (rename/add/move/delete) are hidden. */
13
+ canEdit?: boolean;
14
+ };
15
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ select: (index: number) => any;
17
+ rename: (sectionId: string, name: string) => any;
18
+ delete: (sectionId: string) => any;
19
+ "toggle-collapse": (sectionId: string) => any;
20
+ "move-up": (sectionId: string) => any;
21
+ "move-down": (sectionId: string) => any;
22
+ "add-section": (afterSlideIndex: number) => any;
23
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
24
+ onSelect?: ((index: number) => any) | undefined;
25
+ onRename?: ((sectionId: string, name: string) => any) | undefined;
26
+ onDelete?: ((sectionId: string) => any) | undefined;
27
+ "onToggle-collapse"?: ((sectionId: string) => any) | undefined;
28
+ "onMove-up"?: ((sectionId: string) => any) | undefined;
29
+ "onMove-down"?: ((sectionId: string) => any) | undefined;
30
+ "onAdd-section"?: ((afterSlideIndex: number) => any) | undefined;
31
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
32
+ declare const _default: typeof __VLS_export;
33
+ export default _default;
34
+ //# sourceMappingURL=SectionList.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionList.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/SectionList.vue"],"names":[],"mappings":"AA0dA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAG3C,KAAK,WAAW,GAAG;IAClB,iFAAiF;IACjF,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,iDAAiD;IACjD,UAAU,EAAE,UAAU,CAAC;IACvB,oDAAoD;IACpD,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,8DAA8D;IAC9D,WAAW,EAAE,MAAM,CAAC;IACpB,wEAAwE;IACxE,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAkXF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,34 @@
1
+ import { ViewerSettings } from './viewer-settings';
2
+ /**
3
+ * SettingsDialog — viewer/editor preferences on a tabbed `ModalDialog`.
4
+ *
5
+ * Vue counterpart of the React package's `SettingsDialog.tsx`. It exposes the
6
+ * same boolean preferences (autosave, spell-check, show-grid, show-rulers,
7
+ * snap-to-grid, reduced-motion) on a "General" tab, plus a read-only keyboard
8
+ * "Shortcuts" reference tab.
9
+ *
10
+ * Where the React dialog threaded each setting through its own prop/callback
11
+ * (and kept `autoSave` as dialog-local state), the Vue port takes the whole
12
+ * `ViewerSettings` object as one `settings` prop and emits a single
13
+ * `update(settings)` with the full next value whenever a toggle flips. The host
14
+ * owns persistence; this component is purely presentational.
15
+ *
16
+ * The form is seeded from `settings` each time the dialog opens, so a host can
17
+ * pass a live reactive object or re-feed it on every open — both work.
18
+ */
19
+ type __VLS_Props = {
20
+ /** Whether the dialog is visible. */
21
+ open: boolean;
22
+ /** Current viewer settings. */
23
+ settings: ViewerSettings;
24
+ };
25
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
26
+ close: () => any;
27
+ update: (settings: ViewerSettings) => any;
28
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
29
+ onClose?: (() => any) | undefined;
30
+ onUpdate?: ((settings: ViewerSettings) => any) | undefined;
31
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
32
+ declare const _default: typeof __VLS_export;
33
+ export default _default;
34
+ //# sourceMappingURL=SettingsDialog.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SettingsDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/SettingsDialog.vue"],"names":[],"mappings":"AAqQA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;;;;;;;;;;;;GAgBG;AACH,KAAK,WAAW,GAAG;IAClB,qCAAqC;IACrC,IAAI,EAAE,OAAO,CAAC;IACd,+BAA+B;IAC/B,QAAQ,EAAE,cAAc,CAAC;CACzB,CAAC;AAiOF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,28 @@
1
+ import { SlideDiff } from '../composables/slide-compare';
2
+ import { CanvasSize } from '../types';
3
+ /**
4
+ * SlideDiffRow — a single expandable slide-diff entry.
5
+ *
6
+ * Vue port of the React `SlideDiffRow.tsx`. Shows the slide's status badge,
7
+ * change count, and (when expanded) side-by-side base/incoming thumbnails plus
8
+ * the per-element change list and accept/reject actions. Unchanged diffs render
9
+ * nothing (the parent filters them, but we guard here too).
10
+ */
11
+ type __VLS_Props = {
12
+ diff: SlideDiff;
13
+ diffIndex: number;
14
+ canvasSize: CanvasSize;
15
+ mediaDataUrls: Map<string, string>;
16
+ accepted: boolean;
17
+ rejected: boolean;
18
+ };
19
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
20
+ accept: (index: number) => any;
21
+ reject: (index: number) => any;
22
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
23
+ onAccept?: ((index: number) => any) | undefined;
24
+ onReject?: ((index: number) => any) | undefined;
25
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ //# sourceMappingURL=SlideDiffRow.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SlideDiffRow.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/SlideDiffRow.vue"],"names":[],"mappings":"AAsWA,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAG3C;;;;;;;GAOG;AACH,KAAK,WAAW,GAAG;IAClB,IAAI,EAAE,SAAS,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;CAClB,CAAC;AAsTF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,19 @@
1
+ import { PptxSlideMaster } from 'pptx-viewer-core';
2
+ import { CanvasSize } from '../types';
3
+ type __VLS_Props = {
4
+ slideMasters: PptxSlideMaster[];
5
+ activeMasterIndex: number;
6
+ activeLayoutIndex: number | null;
7
+ canvasSize: CanvasSize;
8
+ mediaDataUrls: Map<string, string>;
9
+ };
10
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ "select-master": (index: number) => any;
12
+ "select-layout": (masterIndex: number, layoutIndex: number) => any;
13
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ "onSelect-master"?: ((index: number) => any) | undefined;
15
+ "onSelect-layout"?: ((masterIndex: number, layoutIndex: number) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ //# sourceMappingURL=SlideMastersList.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SlideMastersList.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/SlideMastersList.vue"],"names":[],"mappings":"AAsPA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAa,eAAe,EAAmB,MAAM,kBAAkB,CAAC;AAIpF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAG3C,KAAK,WAAW,GAAG;IAClB,YAAY,EAAE,eAAe,EAAE,CAAC;IAChC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC,CAAC;AAsOF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -4,12 +4,12 @@ type __VLS_Props = {
4
4
  };
5
5
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
6
  add: () => any;
7
- duplicate: () => any;
8
7
  delete: () => any;
8
+ duplicate: () => any;
9
9
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
10
  onAdd?: (() => any) | undefined;
11
- onDuplicate?: (() => any) | undefined;
12
11
  onDelete?: (() => any) | undefined;
12
+ onDuplicate?: (() => any) | undefined;
13
13
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
14
  declare const _default: typeof __VLS_export;
15
15
  export default _default;
@@ -0,0 +1,17 @@
1
+ import { SmartArtLayout } from 'pptx-viewer-core';
2
+ /**
3
+ * SmartArtPreviews — a tiny SVG thumbnail for a SmartArt {@link SmartArtLayout}.
4
+ *
5
+ * Vue port of the React `SmartArtPreviews.tsx` `getPreviewForLayout` resolver.
6
+ * Each layout maps to one of a handful of schematic glyphs (block list, chevron
7
+ * process, cycle, radial, hierarchy, venn, or a generic fallback). Used by
8
+ * `InsertSmartArtDialog.vue` to populate the gallery tiles.
9
+ */
10
+ type __VLS_Props = {
11
+ /** The layout to draw a thumbnail for. */
12
+ layout: SmartArtLayout;
13
+ };
14
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
17
+ //# sourceMappingURL=SmartArtPreviews.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SmartArtPreviews.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/SmartArtPreviews.vue"],"names":[],"mappings":"AAoOA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGvD;;;;;;;GAOG;AACH,KAAK,WAAW,GAAG;IAClB,0CAA0C;IAC1C,MAAM,EAAE,cAAc,CAAC;CACvB,CAAC;AAuSF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,38 @@
1
+ import { SlideVersion } from '../composables/useVersionHistory';
2
+ import { CanvasSize } from '../types';
3
+ /**
4
+ * VersionHistoryPanel — lists captured slide-version snapshots.
5
+ *
6
+ * Vue port of the React `VersionHistoryPanel.tsx`, adapted to the Vue port's
7
+ * in-memory version model (the React panel read serialised blobs from the
8
+ * autosave IndexedDB store; here the host supplies a reactive list of
9
+ * {@link SlideVersion} snapshots from `useVersionHistory`).
10
+ *
11
+ * The user can preview a version's first slide (rendered via `SlideStage`),
12
+ * restore it, delete it, or compare it against the current document. All
13
+ * mutations are emitted to the host, which owns the version store.
14
+ */
15
+ type __VLS_Props = {
16
+ /** Whether the panel is visible. */
17
+ open: boolean;
18
+ /** Captured versions, newest last. */
19
+ versions: SlideVersion[];
20
+ /** Canvas dimensions used to render version previews. */
21
+ canvasSize: CanvasSize;
22
+ /** Resolved media data URLs for preview rendering. */
23
+ mediaDataUrls: Map<string, string>;
24
+ };
25
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
26
+ close: () => any;
27
+ delete: (id: string) => any;
28
+ restore: (id: string) => any;
29
+ compare: (id: string) => any;
30
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
31
+ onClose?: (() => any) | undefined;
32
+ onDelete?: ((id: string) => any) | undefined;
33
+ onRestore?: ((id: string) => any) | undefined;
34
+ onCompare?: ((id: string) => any) | undefined;
35
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
36
+ declare const _default: typeof __VLS_export;
37
+ export default _default;
38
+ //# sourceMappingURL=VersionHistoryPanel.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VersionHistoryPanel.vue.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/VersionHistoryPanel.vue"],"names":[],"mappings":"AA2RA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAG3C;;;;;;;;;;;GAWG;AACH,KAAK,WAAW,GAAG;IAClB,oCAAoC;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,sCAAsC;IACtC,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,yDAAyD;IACzD,UAAU,EAAE,UAAU,CAAC;IACvB,sDAAsD;IACtD,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC,CAAC;AAuOF,QAAA,MAAM,YAAY;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Convert a LaTeX math string into an OMML XML object (fast-xml-parser shape).
3
+ *
4
+ * The returned object has the shape `{ "m:oMathPara": { "m:oMath": { … } } }`,
5
+ * matching what the core pipeline stores as `TextSegment.equationXml`.
6
+ */
7
+ export declare function convertLatexToOmml(latex: string): Record<string, unknown>;
8
+ /**
9
+ * Best-effort reverse-convert an OMML node back to LaTeX for editing. Complex
10
+ * equations may not round-trip perfectly.
11
+ */
12
+ export declare function convertOmmlToLatex(omml: Record<string, unknown>): string;
13
+ //# sourceMappingURL=latex-to-omml.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"latex-to-omml.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/latex-to-omml.ts"],"names":[],"mappings":"AA0lBA;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAmCzE;AAoLD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAgBxE"}
@@ -0,0 +1,31 @@
1
+ import { SmartArtLayout } from 'pptx-viewer-core';
2
+ /**
3
+ * smart-art-presets — the SmartArt insert-gallery catalogue.
4
+ *
5
+ * Vue port of the React package's `smart-art-presets.ts`. Pure data + types,
6
+ * kept framework-agnostic and unit-testable; consumed by `SmartArtPreviews.vue`
7
+ * (thumbnail resolution) and `InsertSmartArtDialog.vue` (gallery + node-text
8
+ * entry). Each preset names a core {@link SmartArtLayout}, the sidebar category
9
+ * it lives under, a human-readable label, and the default node texts inserted
10
+ * when the user picks it without editing.
11
+ */
12
+ /** The five categories surfaced in the dialog's left sidebar. */
13
+ export type SmartArtCategory = 'list' | 'process' | 'cycle' | 'hierarchy' | 'relationship';
14
+ /** A single entry in the SmartArt insert gallery. */
15
+ export interface SmartArtPreset {
16
+ /** Core layout kind this preset inserts. */
17
+ layout: SmartArtLayout;
18
+ /** Display label (English fallback). */
19
+ label: string;
20
+ /** Sidebar category. */
21
+ category: SmartArtCategory;
22
+ /** Default node texts to seed the new SmartArt with. */
23
+ defaultItems: string[];
24
+ }
25
+ export declare const PRESETS: SmartArtPreset[];
26
+ /** Sidebar tabs, in display order. `label` is a (best-effort) i18n key. */
27
+ export declare const CATEGORIES: Array<{
28
+ id: SmartArtCategory;
29
+ label: string;
30
+ }>;
31
+ //# sourceMappingURL=smart-art-presets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smart-art-presets.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/smart-art-presets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD;;;;;;;;;GASG;AAIH,iEAAiE;AACjE,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,WAAW,GAAG,cAAc,CAAC;AAE3F,qDAAqD;AACrD,MAAM,WAAW,cAAc;IAC9B,4CAA4C;IAC5C,MAAM,EAAE,cAAc,CAAC;IACvB,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,wDAAwD;IACxD,YAAY,EAAE,MAAM,EAAE,CAAC;CACvB;AAID,eAAO,MAAM,OAAO,EAAE,cAAc,EA0KnC,CAAC;AAIF,2EAA2E;AAC3E,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC;IAAE,EAAE,EAAE,gBAAgB,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAMrE,CAAC"}
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Viewer settings model for the Vue Settings dialog.
3
+ *
4
+ * Mirrors the boolean preferences exposed by the React package's
5
+ * `SettingsDialog.tsx` (`packages/react/src/viewer/components/SettingsDialog.tsx`):
6
+ * autosave, spell-check, show-grid, show-rulers, snap-to-grid, reduced-motion.
7
+ *
8
+ * The React dialog drives these through individual props/callbacks
9
+ * (`showGrid` + `onSetShowGrid`, etc.) with `autoSave` kept as dialog-local
10
+ * state. The Vue port consolidates them into a single `ViewerSettings` object
11
+ * so the dialog can take one `settings` prop and emit one `update(settings)`
12
+ * payload, which is easier to wire into a host's reactive state.
13
+ *
14
+ * These are pure data — no framework imports — so the type/defaults stay
15
+ * trivially reusable and unit-testable.
16
+ */
17
+ /** User-tunable viewer/editor preferences surfaced by the Settings dialog. */
18
+ export interface ViewerSettings {
19
+ /** Autosave the presentation in the background. */
20
+ autoSave: boolean;
21
+ /** Run the browser spell-checker over editable text. */
22
+ spellCheck: boolean;
23
+ /** Show the alignment grid overlay on the canvas. */
24
+ showGrid: boolean;
25
+ /** Show horizontal/vertical rulers around the canvas. */
26
+ showRulers: boolean;
27
+ /** Snap element drag/resize to the grid. */
28
+ snapToGrid: boolean;
29
+ /** Honour the user's reduced-motion preference (disable animations). */
30
+ reducedMotion: boolean;
31
+ }
32
+ /** Default viewer settings — matches the React dialog's initial state. */
33
+ export declare const DEFAULT_VIEWER_SETTINGS: ViewerSettings;
34
+ /** A single entry in the keyboard-shortcuts reference tab. */
35
+ export interface ShortcutReferenceItem {
36
+ /** Human-readable action name. */
37
+ action: string;
38
+ /** The key combination(s) that trigger it. */
39
+ shortcut: string;
40
+ }
41
+ /**
42
+ * Keyboard-shortcut reference shown in the dialog's "Shortcuts" tab.
43
+ * Ported verbatim from the React package's `SHORTCUT_REFERENCE_ITEMS`
44
+ * (`packages/react/src/viewer/constants/toolbar.ts`).
45
+ */
46
+ export declare const SHORTCUT_REFERENCE_ITEMS: ShortcutReferenceItem[];
47
+ /** A toggleable setting's metadata for rendering the General tab. */
48
+ export interface SettingToggleSpec {
49
+ /** The `ViewerSettings` boolean key this toggle controls. */
50
+ key: keyof ViewerSettings;
51
+ /** Display label. */
52
+ label: string;
53
+ }
54
+ /** Ordered list of the General-tab toggles (mirrors the React dialog order). */
55
+ export declare const SETTING_TOGGLES: SettingToggleSpec[];
56
+ //# sourceMappingURL=viewer-settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"viewer-settings.d.ts","sourceRoot":"","sources":["../../../src/viewer/components/viewer-settings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,8EAA8E;AAC9E,MAAM,WAAW,cAAc;IAC9B,mDAAmD;IACnD,QAAQ,EAAE,OAAO,CAAC;IAClB,wDAAwD;IACxD,UAAU,EAAE,OAAO,CAAC;IACpB,qDAAqD;IACrD,QAAQ,EAAE,OAAO,CAAC;IAClB,yDAAyD;IACzD,UAAU,EAAE,OAAO,CAAC;IACpB,4CAA4C;IAC5C,UAAU,EAAE,OAAO,CAAC;IACpB,wEAAwE;IACxE,aAAa,EAAE,OAAO,CAAC;CACvB;AAED,0EAA0E;AAC1E,eAAO,MAAM,uBAAuB,EAAE,cAOrC,CAAC;AAEF,8DAA8D;AAC9D,MAAM,WAAW,qBAAqB;IACrC,kCAAkC;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,8CAA8C;IAC9C,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,qBAAqB,EAa3D,CAAC;AAEF,qEAAqE;AACrE,MAAM,WAAW,iBAAiB;IACjC,6DAA6D;IAC7D,GAAG,EAAE,MAAM,cAAc,CAAC;IAC1B,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;CACd;AAED,gFAAgF;AAChF,eAAO,MAAM,eAAe,EAAE,iBAAiB,EAO9C,CAAC"}