pptx-svelte-viewer 4.22.0 → 4.23.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.
@@ -3708,22 +3708,65 @@ declare global {
3708
3708
  'pptx-ui-theme-editor': PptxUiThemeEditorElement;
3709
3709
  }
3710
3710
  }
3711
+ /** One row of a context menu. Hosts decide `id`, wording, gating and what activation does. */
3712
+ interface ContextMenuViewItem {
3713
+ /** Stable command id, echoed by `menu-request`. */
3714
+ id: string;
3715
+ /** Already-translated visible label. */
3716
+ label: string;
3717
+ /** Draw a rule before this row. */
3718
+ separatorBefore?: boolean;
3719
+ /** Group heading shown before this row; the row and the ones after it join that group. */
3720
+ heading?: string;
3721
+ /** Destructive command (Delete): tinted. */
3722
+ danger?: boolean;
3723
+ /** Offered but unavailable: announced and drawn dim, skipped by arrow keys. */
3724
+ disabled?: boolean;
3725
+ /** A toggle (Grid and Guides, Ruler) in this state; omitted for one-shot commands. */
3726
+ checked?: boolean;
3727
+ }
3728
+ /** Everything the controlled element needs to draw one menu. */
3729
+ interface ContextMenuViewState {
3730
+ /** Pointer position, in viewport pixels. The element clamps it into the window. */
3731
+ x: number;
3732
+ y: number;
3733
+ /** Accessible name of the menu. */
3734
+ label: string;
3735
+ items: readonly ContextMenuViewItem[];
3736
+ /**
3737
+ * Test-hook attributes copied onto the host element (`data-pptx-context-menu`,
3738
+ * `data-pptx-canvas-context-menu`, ...). Only `data-pptx-*` names are accepted.
3739
+ */
3740
+ markers?: readonly string[];
3741
+ /** Stacking order; defaults to {@link CONTEXT_MENU_EDITOR_LAYER}. */
3742
+ zIndex?: number;
3743
+ /** Move focus onto the first command on open. Default true. */
3744
+ autoFocus?: boolean;
3745
+ }
3711
3746
  interface PptxUiCompatToastsElement extends HTMLElement {
3712
3747
  state: CompatToastsViewState;
3713
3748
  }
3714
- declare global {
3715
- interface HTMLElementTagNameMap {
3716
- 'pptx-ui-compat-toasts': PptxUiCompatToastsElement;
3717
- }
3718
- }
3719
3749
  interface PptxUiDialogFooterElement extends HTMLElement {
3720
3750
  state: DialogFooterViewState;
3721
3751
  /** Move keyboard focus to an action, e.g. the primary one when a dialog opens. */
3722
3752
  focusAction(id: string): void;
3723
3753
  }
3754
+ interface PptxUiPasteOptionsElement extends HTMLElement {
3755
+ state: PasteOptionsViewState;
3756
+ }
3757
+ interface PptxUiReadOnlyBannerElement extends HTMLElement {
3758
+ state: ReadOnlyBannerViewState;
3759
+ }
3760
+ interface PptxUiContextMenuElement extends HTMLElement {
3761
+ state: ContextMenuViewState;
3762
+ }
3724
3763
  declare global {
3725
3764
  interface HTMLElementTagNameMap {
3765
+ 'pptx-ui-compat-toasts': PptxUiCompatToastsElement;
3766
+ 'pptx-ui-context-menu': PptxUiContextMenuElement;
3726
3767
  'pptx-ui-dialog-footer': PptxUiDialogFooterElement;
3768
+ 'pptx-ui-paste-options': PptxUiPasteOptionsElement;
3769
+ 'pptx-ui-read-only-banner': PptxUiReadOnlyBannerElement;
3727
3770
  }
3728
3771
  }
3729
3772
  interface PptxUiMobileBarElement extends HTMLElement {
@@ -3742,14 +3785,6 @@ declare global {
3742
3785
  'pptx-ui-mobile-toolbar': PptxUiMobileToolbarElement;
3743
3786
  }
3744
3787
  }
3745
- interface PptxUiPasteOptionsElement extends HTMLElement {
3746
- state: PasteOptionsViewState;
3747
- }
3748
- declare global {
3749
- interface HTMLElementTagNameMap {
3750
- 'pptx-ui-paste-options': PptxUiPasteOptionsElement;
3751
- }
3752
- }
3753
3788
  interface PptxUiPresentToolbarElement extends HTMLElement {
3754
3789
  state: PresentToolbarViewState;
3755
3790
  /** Close an open colour palette, e.g. when the host auto-hides the bar. */
@@ -3768,14 +3803,6 @@ declare global {
3768
3803
  'pptx-ui-presenter-console': PptxUiPresenterConsoleElement;
3769
3804
  }
3770
3805
  }
3771
- interface PptxUiReadOnlyBannerElement extends HTMLElement {
3772
- state: ReadOnlyBannerViewState;
3773
- }
3774
- declare global {
3775
- interface HTMLElementTagNameMap {
3776
- 'pptx-ui-read-only-banner': PptxUiReadOnlyBannerElement;
3777
- }
3778
- }
3779
3806
  interface PptxUiRibbonAnimationsElement extends HTMLElement {
3780
3807
  state: RibbonAnimationsViewState;
3781
3808
  }
@@ -3913,52 +3940,12 @@ declare global {
3913
3940
  'pptx-ui-title-bar': PptxUiTitleBarElement;
3914
3941
  }
3915
3942
  }
3916
- /** One row of a context menu. Hosts decide `id`, wording, gating and what activation does. */
3917
- interface ContextMenuViewItem {
3918
- /** Stable command id, echoed by `menu-request`. */
3919
- id: string;
3920
- /** Already-translated visible label. */
3921
- label: string;
3922
- /** Draw a rule before this row. */
3923
- separatorBefore?: boolean;
3924
- /** Group heading shown before this row; the row and the ones after it join that group. */
3925
- heading?: string;
3926
- /** Destructive command (Delete): tinted. */
3927
- danger?: boolean;
3928
- /** Offered but unavailable: announced and drawn dim, skipped by arrow keys. */
3929
- disabled?: boolean;
3930
- /** A toggle (Grid and Guides, Ruler) in this state; omitted for one-shot commands. */
3931
- checked?: boolean;
3932
- }
3933
- /** Everything the controlled element needs to draw one menu. */
3934
- interface ContextMenuViewState {
3935
- /** Pointer position, in viewport pixels. The element clamps it into the window. */
3936
- x: number;
3937
- y: number;
3938
- /** Accessible name of the menu. */
3939
- label: string;
3940
- items: readonly ContextMenuViewItem[];
3941
- /**
3942
- * Test-hook attributes copied onto the host element (`data-pptx-context-menu`,
3943
- * `data-pptx-canvas-context-menu`, ...). Only `data-pptx-*` names are accepted.
3944
- */
3945
- markers?: readonly string[];
3946
- /** Stacking order; defaults to {@link CONTEXT_MENU_EDITOR_LAYER}. */
3947
- zIndex?: number;
3948
- /** Move focus onto the first command on open. Default true. */
3949
- autoFocus?: boolean;
3950
- }
3951
- interface PptxUiContextMenuElement extends HTMLElement {
3952
- state: ContextMenuViewState;
3953
- }
3954
- declare global {
3955
- interface HTMLElementTagNameMap {
3956
- 'pptx-ui-context-menu': PptxUiContextMenuElement;
3957
- }
3958
- }
3959
3943
  //#endregion
3960
3944
  //#region src/web-components/select-value.d.ts
3961
- /** Public DOM shape used by all bindings; the element is not a native select. */
3945
+ /**
3946
+ * Public DOM shape of `pptx-ui-select`, used by every binding. The element is ooxml-ui's
3947
+ * `office-ui-select` under the pptx tag (see `office-aliases.ts`); it is not a native select.
3948
+ */
3962
3949
  interface PptxUiSelectElement extends HTMLElement {
3963
3950
  value: string;
3964
3951
  disabled: boolean;
@@ -1,17 +1,17 @@
1
- import { av as l, iv as v } from "../transition-overlay-WaJAk3v1.js";
2
- import { D as e, M as a, N as o, O as r, a as n, c as d, d as b, f as p, i as c, j as s, k as i, l as m, n as g, o as x, p as w, r as C, s as T, t as $, u as y } from "../export-U9ltadrH.js";
3
- var P = o, V = a, f = i, u = r, A = e, O = s;
1
+ import { lv as l, uv as v } from "../transition-overlay-BvuF3JBf.js";
2
+ import { D as e, M as a, N as o, O as r, a as n, c as d, d as b, f as p, i as c, j as s, k as t, l as m, n as g, o as x, p as w, r as C, s as T, t as $, u } from "../export-_L1hrPhl.js";
3
+ var y = o, P = a, V = t, f = r, A = e, O = s;
4
4
  export {
5
- u as CollaborationCursors,
5
+ f as CollaborationCursors,
6
6
  O as EditorLayer,
7
7
  $ as PowerPointViewer,
8
8
  c as PresentationLoader,
9
9
  A as RemoteSelectionOverlay,
10
- P as Ribbon,
11
- f as SlideCanvas,
10
+ y as Ribbon,
11
+ V as SlideCanvas,
12
12
  C as ViewerState,
13
- V as ViewerToolbar,
14
- y as clampSlideIndex,
13
+ P as ViewerToolbar,
14
+ u as clampSlideIndex,
15
15
  w as createSvelteAiBridge,
16
16
  g as createViewerState,
17
17
  n as exportAllSlidesToSvg,
@@ -21,6 +21,6 @@ export {
21
21
  m as exportSlideToSvgBlob,
22
22
  b as fitScale,
23
23
  p as resolveNavigationKey,
24
- v as zoomInPercent,
25
- l as zoomOutPercent
24
+ l as zoomInPercent,
25
+ v as zoomOutPercent
26
26
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-svelte-viewer",
3
- "version": "4.22.0",
3
+ "version": "4.23.0",
4
4
  "description": "pptx-viewer for Svelte 5: a PowerPoint viewer and editor component to render, edit, present, and export PPTX slides in the browser.",
5
5
  "keywords": [
6
6
  "office",
@@ -116,8 +116,9 @@
116
116
  "html2canvas-pro": "^2.4.2",
117
117
  "jspdf": "^4.2.1",
118
118
  "jszip": "^3.10.2",
119
+ "ooxml-ui": "^0.19.0",
119
120
  "opentype.js": "^2.0.0",
120
- "pptx-viewer-mcp": "^2.6.0"
121
+ "pptx-viewer-mcp": "^2.7.0"
121
122
  },
122
123
  "devDependencies": {
123
124
  "@ai-sdk/svelte": "^5.0.107",