pptx-react-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.
Files changed (93) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{AiChatPanel-QSLHTGVJ.mjs → AiChatPanel-J454XIIH.mjs} +3 -3
  3. package/dist/AiChatPanel-J454XIIH.mjs.br +0 -0
  4. package/dist/AiChatPanel-J454XIIH.mjs.gz +0 -0
  5. package/dist/{AiChatPanel-7HRJ4S4C.js → AiChatPanel-MQVOZRFF.js} +27 -27
  6. package/dist/AiChatPanel-MQVOZRFF.js.br +0 -0
  7. package/dist/AiChatPanel-MQVOZRFF.js.gz +0 -0
  8. package/dist/{Model3DScene-Y6HLZTGK.mjs → Model3DScene-55QORGUN.mjs} +1 -1
  9. package/dist/Model3DScene-55QORGUN.mjs.br +0 -0
  10. package/dist/Model3DScene-55QORGUN.mjs.gz +0 -0
  11. package/dist/{Model3DScene-KWSDT2D3.js → Model3DScene-DOUI6JRZ.js} +2 -2
  12. package/dist/Model3DScene-DOUI6JRZ.js.br +0 -0
  13. package/dist/Model3DScene-DOUI6JRZ.js.gz +0 -0
  14. package/dist/{chunk-WT4CDZTL.mjs → chunk-25QXZE72.mjs} +3 -3
  15. package/dist/chunk-25QXZE72.mjs.br +0 -0
  16. package/dist/chunk-25QXZE72.mjs.gz +0 -0
  17. package/dist/{chunk-IBJI47S5.mjs → chunk-7AF2NBUG.mjs} +56 -87
  18. package/dist/chunk-7AF2NBUG.mjs.br +0 -0
  19. package/dist/chunk-7AF2NBUG.mjs.gz +0 -0
  20. package/dist/{chunk-QZOYWWRS.mjs → chunk-A7GYYKBJ.mjs} +1 -1
  21. package/dist/chunk-A7GYYKBJ.mjs.br +0 -0
  22. package/dist/chunk-A7GYYKBJ.mjs.gz +0 -0
  23. package/dist/{chunk-6WRRLRD3.js → chunk-BVLOOTMZ.js} +5 -5
  24. package/dist/chunk-BVLOOTMZ.js.br +0 -0
  25. package/dist/chunk-BVLOOTMZ.js.gz +0 -0
  26. package/dist/{chunk-OR5OFOPF.mjs → chunk-HCO265KK.mjs} +1 -1
  27. package/dist/chunk-HCO265KK.mjs.br +0 -0
  28. package/dist/chunk-HCO265KK.mjs.gz +0 -0
  29. package/dist/{chunk-C5AWWNUO.js → chunk-MUZNHZYN.js} +821 -821
  30. package/dist/chunk-MUZNHZYN.js.br +0 -0
  31. package/dist/chunk-MUZNHZYN.js.gz +0 -0
  32. package/dist/{chunk-X5GF6MJ3.js → chunk-SJFX3MLL.js} +1155 -1186
  33. package/dist/chunk-SJFX3MLL.js.br +0 -0
  34. package/dist/chunk-SJFX3MLL.js.gz +0 -0
  35. package/dist/{chunk-VKDTFKEB.js → chunk-WH6YGNQR.js} +1473 -4055
  36. package/dist/chunk-WH6YGNQR.js.br +0 -0
  37. package/dist/chunk-WH6YGNQR.js.gz +0 -0
  38. package/dist/{chunk-CJ5OP7LJ.mjs → chunk-WSE25DQM.mjs} +1467 -4056
  39. package/dist/chunk-WSE25DQM.mjs.br +0 -0
  40. package/dist/chunk-WSE25DQM.mjs.gz +0 -0
  41. package/dist/{chunk-TRM25AE7.js → chunk-WTMXET6X.js} +187 -187
  42. package/dist/chunk-WTMXET6X.js.br +0 -0
  43. package/dist/chunk-WTMXET6X.js.gz +0 -0
  44. package/dist/index.d.ts +52 -65
  45. package/dist/index.js +61 -61
  46. package/dist/index.js.br +0 -0
  47. package/dist/index.js.gz +0 -0
  48. package/dist/index.mjs +5 -5
  49. package/dist/index.mjs.br +0 -0
  50. package/dist/index.mjs.gz +0 -0
  51. package/dist/internals.d.ts +52 -65
  52. package/dist/internals.js +104 -104
  53. package/dist/internals.js.br +0 -0
  54. package/dist/internals.js.gz +0 -0
  55. package/dist/internals.mjs +3 -3
  56. package/dist/internals.mjs.br +0 -0
  57. package/dist/internals.mjs.gz +0 -0
  58. package/dist/viewer/index.d.ts +52 -65
  59. package/dist/viewer/index.js +26 -26
  60. package/dist/viewer/index.js.br +0 -0
  61. package/dist/viewer/index.js.gz +0 -0
  62. package/dist/viewer/index.mjs +5 -5
  63. package/dist/viewer/index.mjs.br +0 -0
  64. package/dist/viewer/index.mjs.gz +0 -0
  65. package/package.json +3 -2
  66. package/dist/AiChatPanel-7HRJ4S4C.js.br +0 -0
  67. package/dist/AiChatPanel-7HRJ4S4C.js.gz +0 -0
  68. package/dist/AiChatPanel-QSLHTGVJ.mjs.br +0 -0
  69. package/dist/AiChatPanel-QSLHTGVJ.mjs.gz +0 -0
  70. package/dist/Model3DScene-KWSDT2D3.js.br +0 -0
  71. package/dist/Model3DScene-KWSDT2D3.js.gz +0 -0
  72. package/dist/Model3DScene-Y6HLZTGK.mjs.br +0 -0
  73. package/dist/Model3DScene-Y6HLZTGK.mjs.gz +0 -0
  74. package/dist/chunk-6WRRLRD3.js.br +0 -0
  75. package/dist/chunk-6WRRLRD3.js.gz +0 -0
  76. package/dist/chunk-C5AWWNUO.js.br +0 -0
  77. package/dist/chunk-C5AWWNUO.js.gz +0 -0
  78. package/dist/chunk-CJ5OP7LJ.mjs.br +0 -0
  79. package/dist/chunk-CJ5OP7LJ.mjs.gz +0 -0
  80. package/dist/chunk-IBJI47S5.mjs.br +0 -0
  81. package/dist/chunk-IBJI47S5.mjs.gz +0 -0
  82. package/dist/chunk-OR5OFOPF.mjs.br +0 -0
  83. package/dist/chunk-OR5OFOPF.mjs.gz +0 -0
  84. package/dist/chunk-QZOYWWRS.mjs.br +0 -0
  85. package/dist/chunk-QZOYWWRS.mjs.gz +0 -0
  86. package/dist/chunk-TRM25AE7.js.br +0 -0
  87. package/dist/chunk-TRM25AE7.js.gz +0 -0
  88. package/dist/chunk-VKDTFKEB.js.br +0 -0
  89. package/dist/chunk-VKDTFKEB.js.gz +0 -0
  90. package/dist/chunk-WT4CDZTL.mjs.br +0 -0
  91. package/dist/chunk-WT4CDZTL.mjs.gz +0 -0
  92. package/dist/chunk-X5GF6MJ3.js.br +0 -0
  93. package/dist/chunk-X5GF6MJ3.js.gz +0 -0
Binary file
Binary file
package/dist/index.d.ts CHANGED
@@ -3231,22 +3231,65 @@ declare global {
3231
3231
  'pptx-ui-theme-editor': PptxUiThemeEditorElement;
3232
3232
  }
3233
3233
  }
3234
+ /** One row of a context menu. Hosts decide `id`, wording, gating and what activation does. */
3235
+ interface ContextMenuViewItem {
3236
+ /** Stable command id, echoed by `menu-request`. */
3237
+ id: string;
3238
+ /** Already-translated visible label. */
3239
+ label: string;
3240
+ /** Draw a rule before this row. */
3241
+ separatorBefore?: boolean;
3242
+ /** Group heading shown before this row; the row and the ones after it join that group. */
3243
+ heading?: string;
3244
+ /** Destructive command (Delete): tinted. */
3245
+ danger?: boolean;
3246
+ /** Offered but unavailable: announced and drawn dim, skipped by arrow keys. */
3247
+ disabled?: boolean;
3248
+ /** A toggle (Grid and Guides, Ruler) in this state; omitted for one-shot commands. */
3249
+ checked?: boolean;
3250
+ }
3251
+ /** Everything the controlled element needs to draw one menu. */
3252
+ interface ContextMenuViewState {
3253
+ /** Pointer position, in viewport pixels. The element clamps it into the window. */
3254
+ x: number;
3255
+ y: number;
3256
+ /** Accessible name of the menu. */
3257
+ label: string;
3258
+ items: readonly ContextMenuViewItem[];
3259
+ /**
3260
+ * Test-hook attributes copied onto the host element (`data-pptx-context-menu`,
3261
+ * `data-pptx-canvas-context-menu`, ...). Only `data-pptx-*` names are accepted.
3262
+ */
3263
+ markers?: readonly string[];
3264
+ /** Stacking order; defaults to {@link CONTEXT_MENU_EDITOR_LAYER}. */
3265
+ zIndex?: number;
3266
+ /** Move focus onto the first command on open. Default true. */
3267
+ autoFocus?: boolean;
3268
+ }
3234
3269
  interface PptxUiCompatToastsElement extends HTMLElement {
3235
3270
  state: CompatToastsViewState;
3236
3271
  }
3237
- declare global {
3238
- interface HTMLElementTagNameMap {
3239
- 'pptx-ui-compat-toasts': PptxUiCompatToastsElement;
3240
- }
3241
- }
3242
3272
  interface PptxUiDialogFooterElement extends HTMLElement {
3243
3273
  state: DialogFooterViewState;
3244
3274
  /** Move keyboard focus to an action, e.g. the primary one when a dialog opens. */
3245
3275
  focusAction(id: string): void;
3246
3276
  }
3277
+ interface PptxUiPasteOptionsElement extends HTMLElement {
3278
+ state: PasteOptionsViewState;
3279
+ }
3280
+ interface PptxUiReadOnlyBannerElement extends HTMLElement {
3281
+ state: ReadOnlyBannerViewState;
3282
+ }
3283
+ interface PptxUiContextMenuElement extends HTMLElement {
3284
+ state: ContextMenuViewState;
3285
+ }
3247
3286
  declare global {
3248
3287
  interface HTMLElementTagNameMap {
3288
+ 'pptx-ui-compat-toasts': PptxUiCompatToastsElement;
3289
+ 'pptx-ui-context-menu': PptxUiContextMenuElement;
3249
3290
  'pptx-ui-dialog-footer': PptxUiDialogFooterElement;
3291
+ 'pptx-ui-paste-options': PptxUiPasteOptionsElement;
3292
+ 'pptx-ui-read-only-banner': PptxUiReadOnlyBannerElement;
3250
3293
  }
3251
3294
  }
3252
3295
  interface PptxUiMobileBarElement extends HTMLElement {
@@ -3265,14 +3308,6 @@ declare global {
3265
3308
  'pptx-ui-mobile-toolbar': PptxUiMobileToolbarElement;
3266
3309
  }
3267
3310
  }
3268
- interface PptxUiPasteOptionsElement extends HTMLElement {
3269
- state: PasteOptionsViewState;
3270
- }
3271
- declare global {
3272
- interface HTMLElementTagNameMap {
3273
- 'pptx-ui-paste-options': PptxUiPasteOptionsElement;
3274
- }
3275
- }
3276
3311
  interface PptxUiPresentToolbarElement extends HTMLElement {
3277
3312
  state: PresentToolbarViewState;
3278
3313
  /** Close an open colour palette, e.g. when the host auto-hides the bar. */
@@ -3291,14 +3326,6 @@ declare global {
3291
3326
  'pptx-ui-presenter-console': PptxUiPresenterConsoleElement;
3292
3327
  }
3293
3328
  }
3294
- interface PptxUiReadOnlyBannerElement extends HTMLElement {
3295
- state: ReadOnlyBannerViewState;
3296
- }
3297
- declare global {
3298
- interface HTMLElementTagNameMap {
3299
- 'pptx-ui-read-only-banner': PptxUiReadOnlyBannerElement;
3300
- }
3301
- }
3302
3329
  interface PptxUiRibbonAnimationsElement extends HTMLElement {
3303
3330
  state: RibbonAnimationsViewState;
3304
3331
  }
@@ -3436,52 +3463,12 @@ declare global {
3436
3463
  'pptx-ui-title-bar': PptxUiTitleBarElement;
3437
3464
  }
3438
3465
  }
3439
- /** One row of a context menu. Hosts decide `id`, wording, gating and what activation does. */
3440
- interface ContextMenuViewItem {
3441
- /** Stable command id, echoed by `menu-request`. */
3442
- id: string;
3443
- /** Already-translated visible label. */
3444
- label: string;
3445
- /** Draw a rule before this row. */
3446
- separatorBefore?: boolean;
3447
- /** Group heading shown before this row; the row and the ones after it join that group. */
3448
- heading?: string;
3449
- /** Destructive command (Delete): tinted. */
3450
- danger?: boolean;
3451
- /** Offered but unavailable: announced and drawn dim, skipped by arrow keys. */
3452
- disabled?: boolean;
3453
- /** A toggle (Grid and Guides, Ruler) in this state; omitted for one-shot commands. */
3454
- checked?: boolean;
3455
- }
3456
- /** Everything the controlled element needs to draw one menu. */
3457
- interface ContextMenuViewState {
3458
- /** Pointer position, in viewport pixels. The element clamps it into the window. */
3459
- x: number;
3460
- y: number;
3461
- /** Accessible name of the menu. */
3462
- label: string;
3463
- items: readonly ContextMenuViewItem[];
3464
- /**
3465
- * Test-hook attributes copied onto the host element (`data-pptx-context-menu`,
3466
- * `data-pptx-canvas-context-menu`, ...). Only `data-pptx-*` names are accepted.
3467
- */
3468
- markers?: readonly string[];
3469
- /** Stacking order; defaults to {@link CONTEXT_MENU_EDITOR_LAYER}. */
3470
- zIndex?: number;
3471
- /** Move focus onto the first command on open. Default true. */
3472
- autoFocus?: boolean;
3473
- }
3474
- interface PptxUiContextMenuElement extends HTMLElement {
3475
- state: ContextMenuViewState;
3476
- }
3477
- declare global {
3478
- interface HTMLElementTagNameMap {
3479
- 'pptx-ui-context-menu': PptxUiContextMenuElement;
3480
- }
3481
- }
3482
3466
  //#endregion
3483
3467
  //#region src/web-components/select-value.d.ts
3484
- /** Public DOM shape used by all bindings; the element is not a native select. */
3468
+ /**
3469
+ * Public DOM shape of `pptx-ui-select`, used by every binding. The element is ooxml-ui's
3470
+ * `office-ui-select` under the pptx tag (see `office-aliases.ts`); it is not a native select.
3471
+ */
3485
3472
  interface PptxUiSelectElement extends HTMLElement {
3486
3473
  value: string;
3487
3474
  disabled: boolean;
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkX5GF6MJ3_js = require('./chunk-X5GF6MJ3.js');
4
- require('./chunk-6WRRLRD3.js');
5
- var chunkC5AWWNUO_js = require('./chunk-C5AWWNUO.js');
6
- var chunkTRM25AE7_js = require('./chunk-TRM25AE7.js');
7
- var chunkVKDTFKEB_js = require('./chunk-VKDTFKEB.js');
3
+ var chunkSJFX3MLL_js = require('./chunk-SJFX3MLL.js');
4
+ require('./chunk-BVLOOTMZ.js');
5
+ var chunkMUZNHZYN_js = require('./chunk-MUZNHZYN.js');
6
+ var chunkWTMXET6X_js = require('./chunk-WTMXET6X.js');
7
+ var chunkWH6YGNQR_js = require('./chunk-WH6YGNQR.js');
8
8
  var chunkLKL6DQ55_js = require('./chunk-LKL6DQ55.js');
9
9
  require('./chunk-4VNS5WPM.js');
10
10
 
@@ -12,227 +12,227 @@ require('./chunk-4VNS5WPM.js');
12
12
 
13
13
  Object.defineProperty(exports, "PowerPointViewer", {
14
14
  enumerable: true,
15
- get: function () { return chunkX5GF6MJ3_js.PowerPointViewer; }
15
+ get: function () { return chunkSJFX3MLL_js.PowerPointViewer; }
16
16
  });
17
17
  Object.defineProperty(exports, "SlideCanvas", {
18
18
  enumerable: true,
19
- get: function () { return chunkX5GF6MJ3_js.SlideCanvas; }
19
+ get: function () { return chunkSJFX3MLL_js.SlideCanvas; }
20
20
  });
21
21
  Object.defineProperty(exports, "SlideTemplateGalleryDialog", {
22
22
  enumerable: true,
23
- get: function () { return chunkX5GF6MJ3_js.SlideTemplateGalleryDialog; }
23
+ get: function () { return chunkSJFX3MLL_js.SlideTemplateGalleryDialog; }
24
24
  });
25
25
  Object.defineProperty(exports, "SlideTemplatePreview", {
26
26
  enumerable: true,
27
- get: function () { return chunkX5GF6MJ3_js.SlideTemplatePreview; }
27
+ get: function () { return chunkSJFX3MLL_js.SlideTemplatePreview; }
28
28
  });
29
29
  Object.defineProperty(exports, "Toolbar", {
30
30
  enumerable: true,
31
- get: function () { return chunkX5GF6MJ3_js.Toolbar; }
31
+ get: function () { return chunkSJFX3MLL_js.Toolbar; }
32
32
  });
33
33
  Object.defineProperty(exports, "ViewerThemeProvider", {
34
34
  enumerable: true,
35
- get: function () { return chunkX5GF6MJ3_js.ViewerThemeProvider; }
35
+ get: function () { return chunkSJFX3MLL_js.ViewerThemeProvider; }
36
36
  });
37
37
  Object.defineProperty(exports, "useViewerTheme", {
38
38
  enumerable: true,
39
- get: function () { return chunkX5GF6MJ3_js.useViewerTheme; }
39
+ get: function () { return chunkSJFX3MLL_js.useViewerTheme; }
40
40
  });
41
41
  Object.defineProperty(exports, "renderToCanvas", {
42
42
  enumerable: true,
43
- get: function () { return chunkC5AWWNUO_js.renderToCanvas; }
43
+ get: function () { return chunkMUZNHZYN_js.renderToCanvas; }
44
44
  });
45
45
  Object.defineProperty(exports, "useViewerBuildingBlocks", {
46
46
  enumerable: true,
47
- get: function () { return chunkC5AWWNUO_js.useViewerBuildingBlocks; }
47
+ get: function () { return chunkMUZNHZYN_js.useViewerBuildingBlocks; }
48
48
  });
49
49
  Object.defineProperty(exports, "getAnimationInitialStyle", {
50
50
  enumerable: true,
51
- get: function () { return chunkTRM25AE7_js.getAnimationInitialStyle; }
51
+ get: function () { return chunkWTMXET6X_js.getAnimationInitialStyle; }
52
52
  });
53
53
  Object.defineProperty(exports, "AVATAR_COLOR_SWATCHES", {
54
54
  enumerable: true,
55
- get: function () { return chunkVKDTFKEB_js.AVATAR_COLOR_SWATCHES; }
55
+ get: function () { return chunkWH6YGNQR_js.AVATAR_COLOR_SWATCHES; }
56
56
  });
57
57
  Object.defineProperty(exports, "BACKSTAGE_CARD_IDS", {
58
58
  enumerable: true,
59
- get: function () { return chunkVKDTFKEB_js.BACKSTAGE_CARD_IDS; }
59
+ get: function () { return chunkWH6YGNQR_js.BACKSTAGE_CARD_IDS; }
60
60
  });
61
61
  Object.defineProperty(exports, "BACKSTAGE_PAGE_IDS", {
62
62
  enumerable: true,
63
- get: function () { return chunkVKDTFKEB_js.BACKSTAGE_PAGE_IDS; }
63
+ get: function () { return chunkWH6YGNQR_js.BACKSTAGE_PAGE_IDS; }
64
64
  });
65
65
  Object.defineProperty(exports, "CANVAS_CONTEXT_MENU_COMMAND_IDS", {
66
66
  enumerable: true,
67
- get: function () { return chunkVKDTFKEB_js.CANVAS_CONTEXT_MENU_COMMAND_IDS; }
67
+ get: function () { return chunkWH6YGNQR_js.CANVAS_CONTEXT_MENU_COMMAND_IDS; }
68
68
  });
69
69
  Object.defineProperty(exports, "DEFAULT_VIEWER_PROFILE", {
70
70
  enumerable: true,
71
- get: function () { return chunkVKDTFKEB_js.DEFAULT_VIEWER_PROFILE; }
71
+ get: function () { return chunkWH6YGNQR_js.DEFAULT_VIEWER_PROFILE; }
72
72
  });
73
73
  Object.defineProperty(exports, "EDITOR_SHORTCUT_ACTION_IDS", {
74
74
  enumerable: true,
75
- get: function () { return chunkVKDTFKEB_js.EDITOR_SHORTCUT_ACTION_IDS; }
75
+ get: function () { return chunkWH6YGNQR_js.EDITOR_SHORTCUT_ACTION_IDS; }
76
76
  });
77
77
  Object.defineProperty(exports, "ELEMENT_CONTEXT_MENU_COMMAND_IDS", {
78
78
  enumerable: true,
79
- get: function () { return chunkVKDTFKEB_js.ELEMENT_CONTEXT_MENU_COMMAND_IDS; }
79
+ get: function () { return chunkWH6YGNQR_js.ELEMENT_CONTEXT_MENU_COMMAND_IDS; }
80
80
  });
81
81
  Object.defineProperty(exports, "OPTIONS_PAGE_IDS", {
82
82
  enumerable: true,
83
- get: function () { return chunkVKDTFKEB_js.OPTIONS_PAGE_IDS; }
83
+ get: function () { return chunkWH6YGNQR_js.OPTIONS_PAGE_IDS; }
84
84
  });
85
85
  Object.defineProperty(exports, "OPTIONS_SECTION_IDS", {
86
86
  enumerable: true,
87
- get: function () { return chunkVKDTFKEB_js.OPTIONS_SECTION_IDS; }
87
+ get: function () { return chunkWH6YGNQR_js.OPTIONS_SECTION_IDS; }
88
88
  });
89
89
  Object.defineProperty(exports, "OPTIONS_SETTING_IDS", {
90
90
  enumerable: true,
91
- get: function () { return chunkVKDTFKEB_js.OPTIONS_SETTING_IDS; }
91
+ get: function () { return chunkWH6YGNQR_js.OPTIONS_SETTING_IDS; }
92
92
  });
93
93
  Object.defineProperty(exports, "PPTX_OPEN_ACCEPT", {
94
94
  enumerable: true,
95
- get: function () { return chunkVKDTFKEB_js.PPTX_OPEN_ACCEPT; }
95
+ get: function () { return chunkWH6YGNQR_js.PPTX_OPEN_ACCEPT; }
96
96
  });
97
97
  Object.defineProperty(exports, "PRESENTATION_OPEN_EXTENSIONS", {
98
98
  enumerable: true,
99
- get: function () { return chunkVKDTFKEB_js.PRESENTATION_OPEN_EXTENSIONS; }
99
+ get: function () { return chunkWH6YGNQR_js.PRESENTATION_OPEN_EXTENSIONS; }
100
100
  });
101
101
  Object.defineProperty(exports, "RIBBON_TAB_IDS", {
102
102
  enumerable: true,
103
- get: function () { return chunkVKDTFKEB_js.RIBBON_TAB_IDS; }
103
+ get: function () { return chunkWH6YGNQR_js.RIBBON_TAB_IDS; }
104
104
  });
105
105
  Object.defineProperty(exports, "SLIDE_TEMPLATES", {
106
106
  enumerable: true,
107
- get: function () { return chunkVKDTFKEB_js.SLIDE_TEMPLATES; }
107
+ get: function () { return chunkWH6YGNQR_js.SLIDE_TEMPLATES; }
108
108
  });
109
109
  Object.defineProperty(exports, "THEME_CATALOG", {
110
110
  enumerable: true,
111
- get: function () { return chunkVKDTFKEB_js.THEME_CATALOG; }
111
+ get: function () { return chunkWH6YGNQR_js.THEME_CATALOG; }
112
112
  });
113
113
  Object.defineProperty(exports, "TOOLBAR_BUTTON_IDS", {
114
114
  enumerable: true,
115
- get: function () { return chunkVKDTFKEB_js.TOOLBAR_BUTTON_IDS; }
115
+ get: function () { return chunkWH6YGNQR_js.TOOLBAR_BUTTON_IDS; }
116
116
  });
117
117
  Object.defineProperty(exports, "VIEWER_DIALOG_IDS", {
118
118
  enumerable: true,
119
- get: function () { return chunkVKDTFKEB_js.VIEWER_DIALOG_IDS; }
119
+ get: function () { return chunkWH6YGNQR_js.VIEWER_DIALOG_IDS; }
120
120
  });
121
121
  Object.defineProperty(exports, "VIEWER_EXPORT_FORMAT_IDS", {
122
122
  enumerable: true,
123
- get: function () { return chunkVKDTFKEB_js.VIEWER_EXPORT_FORMAT_IDS; }
123
+ get: function () { return chunkWH6YGNQR_js.VIEWER_EXPORT_FORMAT_IDS; }
124
124
  });
125
125
  Object.defineProperty(exports, "VIEWER_FEATURE_IDS", {
126
126
  enumerable: true,
127
- get: function () { return chunkVKDTFKEB_js.VIEWER_FEATURE_IDS; }
127
+ get: function () { return chunkWH6YGNQR_js.VIEWER_FEATURE_IDS; }
128
128
  });
129
129
  Object.defineProperty(exports, "VIEWER_PANEL_IDS", {
130
130
  enumerable: true,
131
- get: function () { return chunkVKDTFKEB_js.VIEWER_PANEL_IDS; }
131
+ get: function () { return chunkWH6YGNQR_js.VIEWER_PANEL_IDS; }
132
132
  });
133
133
  Object.defineProperty(exports, "VIEWER_PREFS_STORAGE_KEY", {
134
134
  enumerable: true,
135
- get: function () { return chunkVKDTFKEB_js.VIEWER_PREFS_STORAGE_KEY; }
135
+ get: function () { return chunkWH6YGNQR_js.VIEWER_PREFS_STORAGE_KEY; }
136
136
  });
137
137
  Object.defineProperty(exports, "buildSlideTemplateContent", {
138
138
  enumerable: true,
139
- get: function () { return chunkVKDTFKEB_js.buildSlideTemplateContent; }
139
+ get: function () { return chunkWH6YGNQR_js.buildSlideTemplateContent; }
140
140
  });
141
141
  Object.defineProperty(exports, "buildSlideTemplateSlide", {
142
142
  enumerable: true,
143
- get: function () { return chunkVKDTFKEB_js.buildSlideTemplateSlide; }
143
+ get: function () { return chunkWH6YGNQR_js.buildSlideTemplateSlide; }
144
144
  });
145
145
  Object.defineProperty(exports, "clearAllLocalViewerData", {
146
146
  enumerable: true,
147
- get: function () { return chunkVKDTFKEB_js.clearAllLocalViewerData; }
147
+ get: function () { return chunkWH6YGNQR_js.clearAllLocalViewerData; }
148
148
  });
149
149
  Object.defineProperty(exports, "clearStoredViewerPrefs", {
150
150
  enumerable: true,
151
- get: function () { return chunkVKDTFKEB_js.clearStoredViewerPrefs; }
151
+ get: function () { return chunkWH6YGNQR_js.clearStoredViewerPrefs; }
152
152
  });
153
153
  Object.defineProperty(exports, "createImageElementFromFile", {
154
154
  enumerable: true,
155
- get: function () { return chunkVKDTFKEB_js.createImageElementFromFile; }
155
+ get: function () { return chunkWH6YGNQR_js.createImageElementFromFile; }
156
156
  });
157
157
  Object.defineProperty(exports, "defaultCssVars", {
158
158
  enumerable: true,
159
- get: function () { return chunkVKDTFKEB_js.defaultCssVars; }
159
+ get: function () { return chunkWH6YGNQR_js.defaultCssVars; }
160
160
  });
161
161
  Object.defineProperty(exports, "defaultRadius", {
162
162
  enumerable: true,
163
- get: function () { return chunkVKDTFKEB_js.defaultRadius; }
163
+ get: function () { return chunkWH6YGNQR_js.defaultRadius; }
164
164
  });
165
165
  Object.defineProperty(exports, "defaultThemeColors", {
166
166
  enumerable: true,
167
- get: function () { return chunkVKDTFKEB_js.defaultThemeColors; }
167
+ get: function () { return chunkWH6YGNQR_js.defaultThemeColors; }
168
168
  });
169
169
  Object.defineProperty(exports, "describeCollaborationShellState", {
170
170
  enumerable: true,
171
- get: function () { return chunkVKDTFKEB_js.describeCollaborationShellState; }
171
+ get: function () { return chunkWH6YGNQR_js.describeCollaborationShellState; }
172
172
  });
173
173
  Object.defineProperty(exports, "getLocalStorageUsageSummary", {
174
174
  enumerable: true,
175
- get: function () { return chunkVKDTFKEB_js.getLocalStorageUsageSummary; }
175
+ get: function () { return chunkWH6YGNQR_js.getLocalStorageUsageSummary; }
176
176
  });
177
177
  Object.defineProperty(exports, "isLegacyBinaryPresentation", {
178
178
  enumerable: true,
179
- get: function () { return chunkVKDTFKEB_js.isLegacyBinaryPresentation; }
179
+ get: function () { return chunkWH6YGNQR_js.isLegacyBinaryPresentation; }
180
180
  });
181
181
  Object.defineProperty(exports, "isSupportedPresentationFile", {
182
182
  enumerable: true,
183
- get: function () { return chunkVKDTFKEB_js.isSupportedPresentationFile; }
183
+ get: function () { return chunkWH6YGNQR_js.isSupportedPresentationFile; }
184
184
  });
185
185
  Object.defineProperty(exports, "presentationBaseName", {
186
186
  enumerable: true,
187
- get: function () { return chunkVKDTFKEB_js.presentationBaseName; }
187
+ get: function () { return chunkWH6YGNQR_js.presentationBaseName; }
188
188
  });
189
189
  Object.defineProperty(exports, "readStoredViewerPrefs", {
190
190
  enumerable: true,
191
- get: function () { return chunkVKDTFKEB_js.readStoredViewerPrefs; }
191
+ get: function () { return chunkWH6YGNQR_js.readStoredViewerPrefs; }
192
192
  });
193
193
  Object.defineProperty(exports, "resolveProfileInitial", {
194
194
  enumerable: true,
195
- get: function () { return chunkVKDTFKEB_js.resolveProfileInitial; }
195
+ get: function () { return chunkWH6YGNQR_js.resolveProfileInitial; }
196
196
  });
197
197
  Object.defineProperty(exports, "resolveThemeCatalogEntry", {
198
198
  enumerable: true,
199
- get: function () { return chunkVKDTFKEB_js.resolveThemeCatalogEntry; }
199
+ get: function () { return chunkWH6YGNQR_js.resolveThemeCatalogEntry; }
200
200
  });
201
201
  Object.defineProperty(exports, "saveViewerProfile", {
202
202
  enumerable: true,
203
- get: function () { return chunkVKDTFKEB_js.saveViewerProfile; }
203
+ get: function () { return chunkWH6YGNQR_js.saveViewerProfile; }
204
204
  });
205
205
  Object.defineProperty(exports, "savedPresentationFileName", {
206
206
  enumerable: true,
207
- get: function () { return chunkVKDTFKEB_js.savedPresentationFileName; }
207
+ get: function () { return chunkWH6YGNQR_js.savedPresentationFileName; }
208
208
  });
209
209
  Object.defineProperty(exports, "themeToCssVars", {
210
210
  enumerable: true,
211
- get: function () { return chunkVKDTFKEB_js.themeToCssVars; }
211
+ get: function () { return chunkWH6YGNQR_js.themeToCssVars; }
212
212
  });
213
213
  Object.defineProperty(exports, "vermilionDarkColors", {
214
214
  enumerable: true,
215
- get: function () { return chunkVKDTFKEB_js.vermilionDarkColors; }
215
+ get: function () { return chunkWH6YGNQR_js.vermilionDarkColors; }
216
216
  });
217
217
  Object.defineProperty(exports, "vermilionDarkTheme", {
218
218
  enumerable: true,
219
- get: function () { return chunkVKDTFKEB_js.vermilionDarkTheme; }
219
+ get: function () { return chunkWH6YGNQR_js.vermilionDarkTheme; }
220
220
  });
221
221
  Object.defineProperty(exports, "vermilionLightColors", {
222
222
  enumerable: true,
223
- get: function () { return chunkVKDTFKEB_js.vermilionLightColors; }
223
+ get: function () { return chunkWH6YGNQR_js.vermilionLightColors; }
224
224
  });
225
225
  Object.defineProperty(exports, "vermilionLightTheme", {
226
226
  enumerable: true,
227
- get: function () { return chunkVKDTFKEB_js.vermilionLightTheme; }
227
+ get: function () { return chunkWH6YGNQR_js.vermilionLightTheme; }
228
228
  });
229
229
  Object.defineProperty(exports, "vermilionRadius", {
230
230
  enumerable: true,
231
- get: function () { return chunkVKDTFKEB_js.vermilionRadius; }
231
+ get: function () { return chunkWH6YGNQR_js.vermilionRadius; }
232
232
  });
233
233
  Object.defineProperty(exports, "writeStoredViewerPrefs", {
234
234
  enumerable: true,
235
- get: function () { return chunkVKDTFKEB_js.writeStoredViewerPrefs; }
235
+ get: function () { return chunkWH6YGNQR_js.writeStoredViewerPrefs; }
236
236
  });
237
237
  Object.defineProperty(exports, "LOCALE_CATALOG", {
238
238
  enumerable: true,
package/dist/index.js.br CHANGED
Binary file
package/dist/index.js.gz CHANGED
Binary file
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- export { PowerPointViewer, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, Toolbar, ViewerThemeProvider, useViewerTheme } from './chunk-IBJI47S5.mjs';
2
- import './chunk-OR5OFOPF.mjs';
3
- export { renderToCanvas, useViewerBuildingBlocks } from './chunk-WT4CDZTL.mjs';
4
- export { getAnimationInitialStyle } from './chunk-QZOYWWRS.mjs';
5
- export { AVATAR_COLOR_SWATCHES, BACKSTAGE_CARD_IDS, BACKSTAGE_PAGE_IDS, CANVAS_CONTEXT_MENU_COMMAND_IDS, DEFAULT_VIEWER_PROFILE, EDITOR_SHORTCUT_ACTION_IDS, ELEMENT_CONTEXT_MENU_COMMAND_IDS, OPTIONS_PAGE_IDS, OPTIONS_SECTION_IDS, OPTIONS_SETTING_IDS, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, RIBBON_TAB_IDS, SLIDE_TEMPLATES, THEME_CATALOG, TOOLBAR_BUTTON_IDS, VIEWER_DIALOG_IDS, VIEWER_EXPORT_FORMAT_IDS, VIEWER_FEATURE_IDS, VIEWER_PANEL_IDS, VIEWER_PREFS_STORAGE_KEY, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, createImageElementFromFile, defaultCssVars, defaultRadius, defaultThemeColors, describeCollaborationShellState, getLocalStorageUsageSummary, isLegacyBinaryPresentation, isSupportedPresentationFile, presentationBaseName, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, savedPresentationFileName, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from './chunk-CJ5OP7LJ.mjs';
1
+ export { PowerPointViewer, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, Toolbar, ViewerThemeProvider, useViewerTheme } from './chunk-7AF2NBUG.mjs';
2
+ import './chunk-HCO265KK.mjs';
3
+ export { renderToCanvas, useViewerBuildingBlocks } from './chunk-25QXZE72.mjs';
4
+ export { getAnimationInitialStyle } from './chunk-A7GYYKBJ.mjs';
5
+ export { AVATAR_COLOR_SWATCHES, BACKSTAGE_CARD_IDS, BACKSTAGE_PAGE_IDS, CANVAS_CONTEXT_MENU_COMMAND_IDS, DEFAULT_VIEWER_PROFILE, EDITOR_SHORTCUT_ACTION_IDS, ELEMENT_CONTEXT_MENU_COMMAND_IDS, OPTIONS_PAGE_IDS, OPTIONS_SECTION_IDS, OPTIONS_SETTING_IDS, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, RIBBON_TAB_IDS, SLIDE_TEMPLATES, THEME_CATALOG, TOOLBAR_BUTTON_IDS, VIEWER_DIALOG_IDS, VIEWER_EXPORT_FORMAT_IDS, VIEWER_FEATURE_IDS, VIEWER_PANEL_IDS, VIEWER_PREFS_STORAGE_KEY, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, createImageElementFromFile, defaultCssVars, defaultRadius, defaultThemeColors, describeCollaborationShellState, getLocalStorageUsageSummary, isLegacyBinaryPresentation, isSupportedPresentationFile, presentationBaseName, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, savedPresentationFileName, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from './chunk-WSE25DQM.mjs';
6
6
  export { LOCALE_CATALOG } from './chunk-Q4HRYUEP.mjs';
7
7
  import './chunk-XGB3TDIC.mjs';
package/dist/index.mjs.br CHANGED
Binary file
package/dist/index.mjs.gz CHANGED
Binary file
@@ -3582,22 +3582,65 @@ declare global {
3582
3582
  'pptx-ui-theme-editor': PptxUiThemeEditorElement;
3583
3583
  }
3584
3584
  }
3585
+ /** One row of a context menu. Hosts decide `id`, wording, gating and what activation does. */
3586
+ interface ContextMenuViewItem {
3587
+ /** Stable command id, echoed by `menu-request`. */
3588
+ id: string;
3589
+ /** Already-translated visible label. */
3590
+ label: string;
3591
+ /** Draw a rule before this row. */
3592
+ separatorBefore?: boolean;
3593
+ /** Group heading shown before this row; the row and the ones after it join that group. */
3594
+ heading?: string;
3595
+ /** Destructive command (Delete): tinted. */
3596
+ danger?: boolean;
3597
+ /** Offered but unavailable: announced and drawn dim, skipped by arrow keys. */
3598
+ disabled?: boolean;
3599
+ /** A toggle (Grid and Guides, Ruler) in this state; omitted for one-shot commands. */
3600
+ checked?: boolean;
3601
+ }
3602
+ /** Everything the controlled element needs to draw one menu. */
3603
+ interface ContextMenuViewState {
3604
+ /** Pointer position, in viewport pixels. The element clamps it into the window. */
3605
+ x: number;
3606
+ y: number;
3607
+ /** Accessible name of the menu. */
3608
+ label: string;
3609
+ items: readonly ContextMenuViewItem[];
3610
+ /**
3611
+ * Test-hook attributes copied onto the host element (`data-pptx-context-menu`,
3612
+ * `data-pptx-canvas-context-menu`, ...). Only `data-pptx-*` names are accepted.
3613
+ */
3614
+ markers?: readonly string[];
3615
+ /** Stacking order; defaults to {@link CONTEXT_MENU_EDITOR_LAYER}. */
3616
+ zIndex?: number;
3617
+ /** Move focus onto the first command on open. Default true. */
3618
+ autoFocus?: boolean;
3619
+ }
3585
3620
  interface PptxUiCompatToastsElement extends HTMLElement {
3586
3621
  state: CompatToastsViewState;
3587
3622
  }
3588
- declare global {
3589
- interface HTMLElementTagNameMap {
3590
- 'pptx-ui-compat-toasts': PptxUiCompatToastsElement;
3591
- }
3592
- }
3593
3623
  interface PptxUiDialogFooterElement extends HTMLElement {
3594
3624
  state: DialogFooterViewState;
3595
3625
  /** Move keyboard focus to an action, e.g. the primary one when a dialog opens. */
3596
3626
  focusAction(id: string): void;
3597
3627
  }
3628
+ interface PptxUiPasteOptionsElement extends HTMLElement {
3629
+ state: PasteOptionsViewState;
3630
+ }
3631
+ interface PptxUiReadOnlyBannerElement extends HTMLElement {
3632
+ state: ReadOnlyBannerViewState;
3633
+ }
3634
+ interface PptxUiContextMenuElement extends HTMLElement {
3635
+ state: ContextMenuViewState;
3636
+ }
3598
3637
  declare global {
3599
3638
  interface HTMLElementTagNameMap {
3639
+ 'pptx-ui-compat-toasts': PptxUiCompatToastsElement;
3640
+ 'pptx-ui-context-menu': PptxUiContextMenuElement;
3600
3641
  'pptx-ui-dialog-footer': PptxUiDialogFooterElement;
3642
+ 'pptx-ui-paste-options': PptxUiPasteOptionsElement;
3643
+ 'pptx-ui-read-only-banner': PptxUiReadOnlyBannerElement;
3601
3644
  }
3602
3645
  }
3603
3646
  interface PptxUiMobileBarElement extends HTMLElement {
@@ -3616,14 +3659,6 @@ declare global {
3616
3659
  'pptx-ui-mobile-toolbar': PptxUiMobileToolbarElement;
3617
3660
  }
3618
3661
  }
3619
- interface PptxUiPasteOptionsElement extends HTMLElement {
3620
- state: PasteOptionsViewState;
3621
- }
3622
- declare global {
3623
- interface HTMLElementTagNameMap {
3624
- 'pptx-ui-paste-options': PptxUiPasteOptionsElement;
3625
- }
3626
- }
3627
3662
  interface PptxUiPresentToolbarElement extends HTMLElement {
3628
3663
  state: PresentToolbarViewState;
3629
3664
  /** Close an open colour palette, e.g. when the host auto-hides the bar. */
@@ -3642,14 +3677,6 @@ declare global {
3642
3677
  'pptx-ui-presenter-console': PptxUiPresenterConsoleElement;
3643
3678
  }
3644
3679
  }
3645
- interface PptxUiReadOnlyBannerElement extends HTMLElement {
3646
- state: ReadOnlyBannerViewState;
3647
- }
3648
- declare global {
3649
- interface HTMLElementTagNameMap {
3650
- 'pptx-ui-read-only-banner': PptxUiReadOnlyBannerElement;
3651
- }
3652
- }
3653
3680
  interface PptxUiRibbonAnimationsElement extends HTMLElement {
3654
3681
  state: RibbonAnimationsViewState;
3655
3682
  }
@@ -3787,52 +3814,12 @@ declare global {
3787
3814
  'pptx-ui-title-bar': PptxUiTitleBarElement;
3788
3815
  }
3789
3816
  }
3790
- /** One row of a context menu. Hosts decide `id`, wording, gating and what activation does. */
3791
- interface ContextMenuViewItem {
3792
- /** Stable command id, echoed by `menu-request`. */
3793
- id: string;
3794
- /** Already-translated visible label. */
3795
- label: string;
3796
- /** Draw a rule before this row. */
3797
- separatorBefore?: boolean;
3798
- /** Group heading shown before this row; the row and the ones after it join that group. */
3799
- heading?: string;
3800
- /** Destructive command (Delete): tinted. */
3801
- danger?: boolean;
3802
- /** Offered but unavailable: announced and drawn dim, skipped by arrow keys. */
3803
- disabled?: boolean;
3804
- /** A toggle (Grid and Guides, Ruler) in this state; omitted for one-shot commands. */
3805
- checked?: boolean;
3806
- }
3807
- /** Everything the controlled element needs to draw one menu. */
3808
- interface ContextMenuViewState {
3809
- /** Pointer position, in viewport pixels. The element clamps it into the window. */
3810
- x: number;
3811
- y: number;
3812
- /** Accessible name of the menu. */
3813
- label: string;
3814
- items: readonly ContextMenuViewItem[];
3815
- /**
3816
- * Test-hook attributes copied onto the host element (`data-pptx-context-menu`,
3817
- * `data-pptx-canvas-context-menu`, ...). Only `data-pptx-*` names are accepted.
3818
- */
3819
- markers?: readonly string[];
3820
- /** Stacking order; defaults to {@link CONTEXT_MENU_EDITOR_LAYER}. */
3821
- zIndex?: number;
3822
- /** Move focus onto the first command on open. Default true. */
3823
- autoFocus?: boolean;
3824
- }
3825
- interface PptxUiContextMenuElement extends HTMLElement {
3826
- state: ContextMenuViewState;
3827
- }
3828
- declare global {
3829
- interface HTMLElementTagNameMap {
3830
- 'pptx-ui-context-menu': PptxUiContextMenuElement;
3831
- }
3832
- }
3833
3817
  //#endregion
3834
3818
  //#region src/web-components/select-value.d.ts
3835
- /** Public DOM shape used by all bindings; the element is not a native select. */
3819
+ /**
3820
+ * Public DOM shape of `pptx-ui-select`, used by every binding. The element is ooxml-ui's
3821
+ * `office-ui-select` under the pptx tag (see `office-aliases.ts`); it is not a native select.
3822
+ */
3836
3823
  interface PptxUiSelectElement extends HTMLElement {
3837
3824
  value: string;
3838
3825
  disabled: boolean;