pptx-react-viewer 4.75.0 → 4.76.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 (77) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/{chunk-DE4Y5F4T.mjs → chunk-OC4RP2CB.mjs} +552 -350
  3. package/dist/chunk-OC4RP2CB.mjs.br +0 -0
  4. package/dist/chunk-OC4RP2CB.mjs.gz +0 -0
  5. package/dist/{chunk-AZLOOFU2.mjs → chunk-PPOGAZ53.mjs} +645 -262
  6. package/dist/chunk-PPOGAZ53.mjs.br +0 -0
  7. package/dist/chunk-PPOGAZ53.mjs.gz +0 -0
  8. package/dist/{chunk-3AZ6ESJU.js → chunk-SEIVQGH5.js} +1429 -1037
  9. package/dist/chunk-SEIVQGH5.js.br +0 -0
  10. package/dist/chunk-SEIVQGH5.js.gz +0 -0
  11. package/dist/{chunk-RJRDE3C2.js → chunk-XTYBIJ2S.js} +666 -464
  12. package/dist/chunk-XTYBIJ2S.js.br +0 -0
  13. package/dist/chunk-XTYBIJ2S.js.gz +0 -0
  14. package/dist/i18n/de.cjs +5 -0
  15. package/dist/i18n/de.cjs.br +0 -0
  16. package/dist/i18n/de.cjs.gz +0 -0
  17. package/dist/i18n/de.mjs +5 -0
  18. package/dist/i18n/de.mjs.br +0 -0
  19. package/dist/i18n/de.mjs.gz +0 -0
  20. package/dist/i18n/es.cjs +5 -0
  21. package/dist/i18n/es.cjs.br +0 -0
  22. package/dist/i18n/es.cjs.gz +0 -0
  23. package/dist/i18n/es.mjs +5 -0
  24. package/dist/i18n/es.mjs.br +0 -0
  25. package/dist/i18n/es.mjs.gz +0 -0
  26. package/dist/i18n/fr.cjs +5 -0
  27. package/dist/i18n/fr.cjs.br +0 -0
  28. package/dist/i18n/fr.cjs.gz +0 -0
  29. package/dist/i18n/fr.mjs +5 -0
  30. package/dist/i18n/fr.mjs.br +0 -0
  31. package/dist/i18n/fr.mjs.gz +0 -0
  32. package/dist/i18n/zh-CN.cjs +5 -0
  33. package/dist/i18n/zh-CN.cjs.br +0 -0
  34. package/dist/i18n/zh-CN.cjs.gz +0 -0
  35. package/dist/i18n/zh-CN.mjs +5 -0
  36. package/dist/i18n/zh-CN.mjs.br +0 -0
  37. package/dist/i18n/zh-CN.mjs.gz +0 -0
  38. package/dist/index.d.ts +53 -9
  39. package/dist/index.js +24 -24
  40. package/dist/index.js.br +0 -0
  41. package/dist/index.js.gz +0 -0
  42. package/dist/index.mjs +2 -2
  43. package/dist/index.mjs.br +0 -0
  44. package/dist/index.mjs.gz +0 -0
  45. package/dist/internals.d.ts +52 -24
  46. package/dist/internals.js +80 -80
  47. package/dist/internals.js.br +0 -0
  48. package/dist/internals.js.gz +0 -0
  49. package/dist/internals.mjs +1 -1
  50. package/dist/internals.mjs.br +0 -0
  51. package/dist/internals.mjs.gz +0 -0
  52. package/dist/no-i18next.d.ts +53 -9
  53. package/dist/no-i18next.js +24 -24
  54. package/dist/no-i18next.js.br +0 -0
  55. package/dist/no-i18next.js.gz +0 -0
  56. package/dist/no-i18next.mjs +2 -2
  57. package/dist/no-i18next.mjs.br +0 -0
  58. package/dist/no-i18next.mjs.gz +0 -0
  59. package/dist/pptx-viewer.css +1 -1
  60. package/dist/pptx-viewer.css.br +0 -0
  61. package/dist/pptx-viewer.css.gz +0 -0
  62. package/dist/viewer/index.d.ts +13 -0
  63. package/dist/viewer/index.js +17 -17
  64. package/dist/viewer/index.js.br +0 -0
  65. package/dist/viewer/index.js.gz +0 -0
  66. package/dist/viewer/index.mjs +2 -2
  67. package/dist/viewer/index.mjs.br +0 -0
  68. package/dist/viewer/index.mjs.gz +0 -0
  69. package/package.json +3 -3
  70. package/dist/chunk-3AZ6ESJU.js.br +0 -0
  71. package/dist/chunk-3AZ6ESJU.js.gz +0 -0
  72. package/dist/chunk-AZLOOFU2.mjs.br +0 -0
  73. package/dist/chunk-AZLOOFU2.mjs.gz +0 -0
  74. package/dist/chunk-DE4Y5F4T.mjs.br +0 -0
  75. package/dist/chunk-DE4Y5F4T.mjs.gz +0 -0
  76. package/dist/chunk-RJRDE3C2.js.br +0 -0
  77. package/dist/chunk-RJRDE3C2.js.gz +0 -0
@@ -1,9 +1,9 @@
1
1
  import * as ooxml_ui_pptx from 'ooxml-ui/pptx';
2
- import { CollaborationRole, CollaborationConfig, ViewportFitOptions, ViewerFontSource, CanvasSize, DocumentStorage, CloudFileProvider, ViewerAutosaveStatus, AutosaveRecord, ConnectionStatus, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, CollaborationInput, GoogleFontsOption, ListConversionScope, ToolbarActionId, RibbonAddInTab, ViewerCustomization, PptxLoadLimits, PowerPointViewerAPI, ViewerCustomizationApi, CollaborationLivePatcher, InlineListReadResult, EditorImagePasteOptions, ViewerMode, RulerUnit, ElementAnimationState, ShapeAdjustmentHandleDescriptor, InlineTextEditSnapshot, ZoomNavigationTarget, FieldSubstitutionContext, EditPointsCommandId, EditPointsElementPatch, FreeformToolKind, ElementClipboardPayload, AnimationApplyGroup, InsertChartKind, ChangeCaseMode, SlideTemplateId, ReviewCommentsHost, SlidesPaneLayoutGalleryRequest, CollaborationShellState, PptxAutosaveStatus } from 'ooxml-ui/pptx';
3
- export { AVATAR_COLOR_SWATCHES, AccountAuthConfig, BACKSTAGE_CARD_IDS, BACKSTAGE_PAGE_IDS, BackstageCustomization, CANVAS_CONTEXT_MENU_COMMAND_IDS, CollaborationConfig, CollaborationShellState, ContextMenuCustomization, DEFAULT_VIEWER_PROFILE, EDITOR_SHORTCUT_ACTION_IDS, ELEMENT_CONTEXT_MENU_COMMAND_IDS, ElementUpdate, ElementUpdateOptions, ExternalCollaborationAwareness, ExternalCollaborationSession, ExternalCollaborationSnapshot, HostCanvasMenuContext, HostElementMenuContext, HostMenuCommand, KeyboardCustomization, ListConversionScope, LocalStorageUsageSummary, OPTIONS_PAGE_IDS, OPTIONS_SECTION_IDS, OPTIONS_SETTING_IDS, OptionsCustomization, OptionsPageId, OptionsSectionId, OptionsSettingId, OptionsSettingValues, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, PowerPointViewerAPI, RIBBON_TAB_IDS, ResolvedCustomization, RibbonCustomization, SLIDE_TEMPLATES, SavedPresentationFormat, ShortcutChord, SlideTemplateId, SlideTemplateSpec, SlidesPaneLayoutGalleryRequest, StoredViewerPrefs, THEME_CATALOG, TOOLBAR_BUTTON_IDS, ThemeCatalogEntry, ToolbarActionId, ToolbarButtonId, ToolbarTabId, VIEWER_DIALOG_IDS, VIEWER_EXPORT_FORMAT_IDS, VIEWER_FEATURE_IDS, VIEWER_PANEL_IDS, VIEWER_PREFS_STORAGE_KEY, ViewerCustomization, ViewerCustomizationApi, ViewerDialogId, ViewerExportFormatId, ViewerFeatureId, ViewerMode, ViewerPanelId, ViewerProfile, ViewerTheme, ViewerThemeColors, ViewportFitOptions, ViewportFitPadding, 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 'ooxml-ui/pptx';
2
+ import { CollaborationRole, CollaborationConfig, ViewportFitOptions, ViewerFontSource, CanvasSize, DocumentStorage, CloudFileProvider, ViewerAutosaveStatus, AutosaveRecord, ConnectionStatus, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, CollaborationInput, GoogleFontsOption, ListConversionScope, ToolbarActionId, RibbonAddInTab, ViewerCustomization, PptxLoadLimits, PowerPointViewerAPI, ViewerCustomizationApi, CollaborationLivePatcher, InlineListReadResult, EditorImagePasteOptions, ViewerMode, RulerUnit, ElementAnimationState, ShapeAdjustmentHandleDescriptor, InlineTextEditSnapshot, ZoomNavigationTarget, FieldSubstitutionContext, EditPointsCommandId, EditPointsElementPatch, FreeformToolKind, RibbonDisplayController, ElementClipboardPayload, AnimationApplyGroup, InsertChartKind, ChangeCaseMode, SlideTemplateId, ReviewCommentsHost, UseViewerBuildingBlocksActionsOptions, SlidesPaneLayoutGalleryRequest, CollaborationShellState, PptxAutosaveStatus, ViewerBuildingBlockActions } from 'ooxml-ui/pptx';
3
+ export { AVATAR_COLOR_SWATCHES, AccountAuthConfig, BACKSTAGE_CARD_IDS, BACKSTAGE_PAGE_IDS, BackstageCustomization, BuildingBlockActionId, BuildingBlockActionState, BuildingBlockFailureCode, BuildingBlockFindReplace, BuildingBlockLayoutActions, BuildingBlockRequest, BuildingBlockResult, CANVAS_CONTEXT_MENU_COMMAND_IDS, CollaborationConfig, CollaborationShellState, ContextMenuCustomization, DEFAULT_VIEWER_PROFILE, DocumentPropertiesActions, DocumentPropertiesPatch, EDITOR_SHORTCUT_ACTION_IDS, ELEMENT_CONTEXT_MENU_COMMAND_IDS, ElementUpdate, ElementUpdateOptions, ExternalCollaborationAwareness, ExternalCollaborationSession, ExternalCollaborationSnapshot, FontEmbeddingActions, HostCanvasMenuContext, HostElementMenuContext, HostFileLimits, HostMenuCommand, HostSignatureInfo, KeyboardCustomization, ListConversionScope, LocalStorageUsageSummary, OPTIONS_PAGE_IDS, OPTIONS_SECTION_IDS, OPTIONS_SETTING_IDS, OptionsCustomization, OptionsPageId, OptionsSectionId, OptionsSettingId, OptionsSettingValues, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, PasswordProtectionActions, PowerPointViewerAPI, RIBBON_TAB_IDS, ResolvedCustomization, RibbonCustomization, SLIDE_TEMPLATES, SavedPresentationFormat, ShortcutChord, SignatureActions, SlideTemplateId, SlideTemplateSpec, SlidesPaneLayoutGalleryRequest, StoredViewerPrefs, THEME_CATALOG, TOOLBAR_BUTTON_IDS, ThemeCatalogEntry, ToolbarActionId, ToolbarButtonId, ToolbarTabId, VIEWER_DIALOG_IDS, VIEWER_EXPORT_FORMAT_IDS, VIEWER_FEATURE_IDS, VIEWER_PANEL_IDS, VIEWER_PREFS_STORAGE_KEY, ViewerBuildingBlockActions, ViewerCustomization, ViewerCustomizationApi, ViewerDialogId, ViewerExportFormatId, ViewerFeatureId, ViewerMode, ViewerPanelId, ViewerProfile, ViewerTheme, ViewerThemeColors, ViewportFitOptions, ViewportFitPadding, 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 'ooxml-ui/pptx';
4
4
  import * as React$1 from 'react';
5
5
  import React$1__default, { ReactNode, ReactElement } from 'react';
6
- import { PptxCoreProperties, PptxAnimationPreset, PptxNativeAnimation, PptxSlide, PptxElement, TextStyle, InkPptxElement, ShapePptxElement, PptxAction, PptxComment, PptxElementAnimation, ConnectorPptxElement, ParsedTableStyleMap, PptxTheme, ShapeStyle, PptxLayoutOption, PptxLayoutPreview, PptxCustomShow, PptxSlideTransition, PptxPresentationProperties } from 'ooxml-core/pptx';
6
+ import { PptxCoreProperties, PptxAnimationPreset, PptxNativeAnimation, PptxElement, PptxSlide, TextStyle, InkPptxElement, ShapePptxElement, PptxAction, PptxComment, PptxElementAnimation, ConnectorPptxElement, ParsedTableStyleMap, PptxTheme, ShapeStyle, PptxLayoutOption, PptxLayoutPreview, PptxCustomShow, PptxSlideTransition, PptxPresentationProperties } from 'ooxml-core/pptx';
7
7
  import { CollaborationWriteBackState, CollaborationState } from 'ooxml-core/collab';
8
8
  export { CollaborationState } from 'ooxml-core/collab';
9
9
  import { PptxAiConfig } from 'ooxml-ui/pptx/ai';
@@ -194,6 +194,19 @@ interface PowerPointViewerProps extends ViewportFitOptions {
194
194
  onModeChange?: (mode: ooxml_ui_pptx.ViewerMode) => void;
195
195
  /** Callback when the zoom level changes. */
196
196
  onZoomChange?: (zoom: number) => void;
197
+ /**
198
+ * Ribbon Display Options, the starting mode: `always` docks the tabs and commands above the
199
+ * slide (the default), `tabs` shows only the tab row (a chosen tab lays its commands over the
200
+ * slide until a press elsewhere or Escape), `fullScreen` hides the title bar and the ribbon
201
+ * until the strip at the top is pressed. Changing it later applies the mode without calling
202
+ * `onRibbonDisplayChange`.
203
+ */
204
+ ribbonDisplay?: ooxml_ui_pptx.RibbonDisplayMode;
205
+ /**
206
+ * Called when the user picks a Ribbon Display Option (the menu, Ctrl+F1, a double click on a
207
+ * tab). Not called when the host changes `ribbonDisplay`.
208
+ */
209
+ onRibbonDisplayChange?: (mode: ooxml_ui_pptx.RibbonDisplayMode) => void;
197
210
  /** Callback when element selection changes. */
198
211
  onSelectionChange?: (elementIds: string[]) => void;
199
212
  /** Callback when the total slide count changes (slide added/deleted). */
@@ -662,6 +675,11 @@ interface ToolbarProps {
662
675
  isProtectedView?: boolean;
663
676
  /** Drops the Protected View override for this session. Only offered when `isProtectedView` is true. */
664
677
  onEnableEditing?: () => void;
678
+ /**
679
+ * The viewer's Ribbon Display Options controller. Optional: a ribbon rendered on its own
680
+ * stays in the default "always" mode.
681
+ */
682
+ ribbonDisplay?: RibbonDisplayController;
665
683
  isNarrowViewport: boolean;
666
684
  isSidebarCollapsed: boolean;
667
685
  isInspectorPaneOpen: boolean;
@@ -933,6 +951,13 @@ interface TableStyleContext {
933
951
  tableStyleMap?: ParsedTableStyleMap;
934
952
  theme?: PptxTheme;
935
953
  }
954
+ /** Identifies the element omitted after a React client render or lifecycle error. */
955
+ interface ElementRenderErrorContext {
956
+ elementId: string;
957
+ elementType: PptxElement['type'];
958
+ slideId?: string;
959
+ }
960
+ type ElementRenderErrorHandler = (error: Error, context: ElementRenderErrorContext) => void;
936
961
  /** Wiring for Edit Points and the Freeform: Shape / Curve tools. */
937
962
  interface OutlineAuthoringProps {
938
963
  /** The shape in Edit Points mode, or null. */
@@ -957,6 +982,8 @@ interface ZoomViewport {
957
982
  editorScale: number;
958
983
  }
959
984
  interface SlideCanvasProps {
985
+ /** Reports an element omitted after a React render/lifecycle error; defaults to console.error. */
986
+ onElementRenderError?: ElementRenderErrorHandler;
960
987
  /** The viewer-owned live channel; absent for static/custom non-collaborative canvases. */
961
988
  livePatcher?: CollaborationLivePatcher;
962
989
  registerInlineEditReader?: (elementId: string, read: () => InlineListReadResult) => () => void;
@@ -1097,6 +1124,8 @@ interface SlideCanvasProps {
1097
1124
  outlineAuthoring?: OutlineAuthoringProps;
1098
1125
  }
1099
1126
  interface SlidesPaneSidebarProps {
1127
+ /** Reports an element omitted from a thumbnail; defaults to console.error. */
1128
+ onElementRenderError?: ElementRenderErrorHandler;
1100
1129
  slides: PptxSlide[];
1101
1130
  templateElementsBySlideId: Record<string, PptxElement[]>;
1102
1131
  activeSlideIndex: number;
@@ -1139,7 +1168,9 @@ interface SlidesPaneSidebarProps {
1139
1168
  }
1140
1169
  /** The one autosave status every binding renders (`PptxAutosaveStatus` in `ooxml-ui/pptx`). */
1141
1170
  type AutosaveStatus = PptxAutosaveStatus;
1142
- interface UseViewerBuildingBlocksInput extends ViewportFitOptions {
1171
+ interface UseViewerBuildingBlocksInput extends ViewportFitOptions, UseViewerBuildingBlocksActionsOptions {
1172
+ /** Reports an element omitted after a React render/lifecycle error; defaults to console.error. */
1173
+ onElementRenderError?: ElementRenderErrorHandler;
1143
1174
  /** Optional collaboration, including a host-owned document and presence session. */
1144
1175
  collaboration?: CollaborationInput;
1145
1176
  /** PPTX content as ArrayBuffer/Uint8Array, or null/undefined while no file is loaded. */
@@ -1226,7 +1257,11 @@ interface ViewerBuildingBlocksResult {
1226
1257
  * Its open state is the toolbar's sidebar toggle.
1227
1258
  */
1228
1259
  slidesPaneProps: SlidesPaneSidebarProps;
1229
- /** Current viewer mode (edit, view, present, master). */
1260
+ /**
1261
+ * The effective mode, as every binding's building blocks report it: `preview` while the blocks
1262
+ * may not edit (no `canEdit`, a collaboration viewer role), otherwise the viewer's mode (`edit`,
1263
+ * `present`, `master`). `toolbarProps.mode` and `canvasProps.mode` keep the viewer's own mode.
1264
+ */
1230
1265
  mode: ViewerMode;
1231
1266
  /** True while the initial parse of `content` is in progress. */
1232
1267
  loading: boolean;
@@ -1234,18 +1269,26 @@ interface ViewerBuildingBlocksResult {
1234
1269
  error: string | null;
1235
1270
  /** Current autosave-to-localStorage recovery status. */
1236
1271
  autosaveStatus: AutosaveStatus;
1272
+ /**
1273
+ * Operations and state for finishing picker, dialog and layout workflows from host-rendered
1274
+ * controls: image / media insertion, hyperlink, SmartArt and equation editing, Find / Replace
1275
+ * and layout apply / reset, plus which actions can run now. See `docs/react/hooks.md`.
1276
+ */
1277
+ actions: ViewerBuildingBlockActions;
1237
1278
  }
1238
1279
  declare function useViewerBuildingBlocks(input: UseViewerBuildingBlocksInput): ViewerBuildingBlocksResult;
1239
1280
 
1240
1281
  declare function Toolbar(p: ToolbarProps): React$1__default.ReactElement;
1241
1282
  declare function SlideCanvas(props: SlideCanvasProps): React$1.JSX.Element;
1242
- declare function SlidesPaneSidebar({ slides, templateElementsBySlideId, activeSlideIndex, canvasSize, sectionGroups, isOpen, canEdit, onSelectSlide, onSlideContextMenu, onMoveSlide, onAddSlide, onAddSlideAfter, onDuplicateSlides, onDeleteSlides, onHideSlides, onOpenLayoutForSlide, onCollapse: _onCollapse, onAddSection, onRenameSection, onDeleteSection, onMoveSectionUp, onMoveSectionDown, onToggleSectionCollapse, rehearsalTimings, panelWidth, fieldContext, tableStyleContext }: SlidesPaneSidebarProps): React$1__default.ReactElement | null;
1283
+ declare function SlidesPaneSidebar(props: SlidesPaneSidebarProps): React$1__default.ReactElement;
1243
1284
  /**
1244
1285
  * A static, scaled-down drawing of one slide, as the slides pane shows it. It renders from the
1245
1286
  * slide model, so it follows unsaved edits. Feed it from `slidesPaneProps`:
1246
1287
  * `templateElementsBySlideId[slide.id]`, `canvasSize`, `fieldContext` and `tableStyleContext`.
1247
1288
  */
1248
1289
  interface SlideThumbnailProps {
1290
+ /** Reports an element omitted from this preview; defaults to console.error. */
1291
+ onElementRenderError?: ElementRenderErrorHandler;
1249
1292
  /** The slide to draw. A different slide object (every edit makes one) redraws it. */
1250
1293
  slide: PptxSlide;
1251
1294
  /** The slide's inherited layout and master elements, drawn beneath its own. */
@@ -1261,7 +1304,7 @@ interface SlideThumbnailProps {
1261
1304
  /** Theme + table style map for resolving table band/header colours. */
1262
1305
  tableStyleContext?: TableStyleContext;
1263
1306
  }
1264
- declare function SlideThumbnailImpl({ slide, templateElements, canvasSize, previewWidth, fieldContext, tableStyleContext }: SlideThumbnailProps): React$1__default.ReactElement;
1307
+ declare function SlideThumbnailImpl({ slide, templateElements, canvasSize, previewWidth, fieldContext, tableStyleContext, onElementRenderError }: SlideThumbnailProps): React$1__default.ReactElement;
1265
1308
  declare const SlideThumbnail: React$1__default.MemoExoticComponent<typeof SlideThumbnailImpl>;
1266
1309
  interface SlideTemplateGalleryDialogProps {
1267
1310
  isOpen: boolean;
@@ -1272,11 +1315,12 @@ interface SlideTemplateGalleryDialogProps {
1272
1315
  }
1273
1316
  declare function SlideTemplateGalleryDialog({ isOpen, onClose, onInsert, scheme }: SlideTemplateGalleryDialogProps): React$1__default.ReactElement | null;
1274
1317
  interface SlideTemplatePreviewProps {
1318
+ onElementRenderError?: ElementRenderErrorHandler;
1275
1319
  templateId: SlideTemplateId;
1276
1320
  /** Optional deck scheme so the preview shows the deck's theme colours. */
1277
1321
  scheme?: Record<string, string>;
1278
1322
  }
1279
- declare function SlideTemplatePreview({ templateId, scheme }: SlideTemplatePreviewProps): React$1__default.ReactElement;
1323
+ declare function SlideTemplatePreview({ templateId, scheme, onElementRenderError }: SlideTemplatePreviewProps): React$1__default.ReactElement;
1280
1324
  /**
1281
1325
  * A drop-in replacement for `html2canvas(element, options)` that first
1282
1326
  * resolves any oklch / oklab / lch / lab / color() values in the cloned
@@ -1296,4 +1340,4 @@ declare function SlideTemplatePreview({ templateId, scheme }: SlideTemplatePrevi
1296
1340
  declare function renderToCanvas(element: HTMLElement, options?: Partial<Options>): Promise<HTMLCanvasElement>;
1297
1341
 
1298
1342
  export { PowerPointViewer, PptxI18nProvider, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, SlideThumbnail, SlidesPaneSidebar as SlidesPane, Toolbar, ViewerThemeProvider, getAnimationInitialStyle, renderToCanvas, useViewerBuildingBlocks, useViewerTheme };
1299
- export type { CollaborationContextValue, PowerPointViewerHandle, PowerPointViewerProps, PptxI18nProviderProps, PptxTranslate, PptxTranslateParams, SlideCanvasProps, SlideTemplateGalleryDialogProps, SlideTemplatePreviewProps, SlideThumbnailProps, SlidesPaneSidebarProps as SlidesPaneProps, ToolbarProps, UseViewerBuildingBlocksInput, ViewerBuildingBlocksResult, ViewerLoadDetail };
1343
+ export type { CollaborationContextValue, ElementRenderErrorContext, ElementRenderErrorHandler, PowerPointViewerHandle, PowerPointViewerProps, PptxI18nProviderProps, PptxTranslate, PptxTranslateParams, SlideCanvasProps, SlideTemplateGalleryDialogProps, SlideTemplatePreviewProps, SlideThumbnailProps, SlidesPaneSidebarProps as SlidesPaneProps, ToolbarProps, UseViewerBuildingBlocksInput, ViewerBuildingBlocksResult, ViewerLoadDetail };
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkLWGPHJHC_js = require('./chunk-LWGPHJHC.js');
4
- var chunkRJRDE3C2_js = require('./chunk-RJRDE3C2.js');
4
+ var chunkXTYBIJ2S_js = require('./chunk-XTYBIJ2S.js');
5
5
  require('./chunk-MU3BIZ2U.js');
6
- var chunk3AZ6ESJU_js = require('./chunk-3AZ6ESJU.js');
6
+ var chunkSEIVQGH5_js = require('./chunk-SEIVQGH5.js');
7
7
  var chunk6GFSF2ML_js = require('./chunk-6GFSF2ML.js');
8
8
  require('./chunk-PIRHQTI4.js');
9
9
 
@@ -155,91 +155,91 @@ Object.defineProperty(exports, "writeStoredViewerPrefs", {
155
155
  });
156
156
  Object.defineProperty(exports, "PowerPointViewer", {
157
157
  enumerable: true,
158
- get: function () { return chunkRJRDE3C2_js.PowerPointViewer; }
158
+ get: function () { return chunkXTYBIJ2S_js.PowerPointViewer; }
159
159
  });
160
160
  Object.defineProperty(exports, "SlideCanvas", {
161
161
  enumerable: true,
162
- get: function () { return chunkRJRDE3C2_js.SlideCanvas; }
162
+ get: function () { return chunkXTYBIJ2S_js.SlideCanvas; }
163
163
  });
164
164
  Object.defineProperty(exports, "SlideTemplateGalleryDialog", {
165
165
  enumerable: true,
166
- get: function () { return chunkRJRDE3C2_js.SlideTemplateGalleryDialog; }
166
+ get: function () { return chunkXTYBIJ2S_js.SlideTemplateGalleryDialog; }
167
167
  });
168
168
  Object.defineProperty(exports, "SlideTemplatePreview", {
169
169
  enumerable: true,
170
- get: function () { return chunkRJRDE3C2_js.SlideTemplatePreview; }
170
+ get: function () { return chunkXTYBIJ2S_js.SlideTemplatePreview; }
171
171
  });
172
172
  Object.defineProperty(exports, "SlideThumbnail", {
173
173
  enumerable: true,
174
- get: function () { return chunkRJRDE3C2_js.SlideThumbnail; }
174
+ get: function () { return chunkXTYBIJ2S_js.SlideThumbnail; }
175
175
  });
176
176
  Object.defineProperty(exports, "SlidesPane", {
177
177
  enumerable: true,
178
- get: function () { return chunkRJRDE3C2_js.SlidesPaneSidebar; }
178
+ get: function () { return chunkXTYBIJ2S_js.SlidesPaneSidebar; }
179
179
  });
180
180
  Object.defineProperty(exports, "THEME_CATALOG", {
181
181
  enumerable: true,
182
- get: function () { return chunkRJRDE3C2_js.THEME_CATALOG; }
182
+ get: function () { return chunkXTYBIJ2S_js.THEME_CATALOG; }
183
183
  });
184
184
  Object.defineProperty(exports, "Toolbar", {
185
185
  enumerable: true,
186
- get: function () { return chunkRJRDE3C2_js.Toolbar; }
186
+ get: function () { return chunkXTYBIJ2S_js.Toolbar; }
187
187
  });
188
188
  Object.defineProperty(exports, "ViewerThemeProvider", {
189
189
  enumerable: true,
190
- get: function () { return chunkRJRDE3C2_js.ViewerThemeProvider; }
190
+ get: function () { return chunkXTYBIJ2S_js.ViewerThemeProvider; }
191
191
  });
192
192
  Object.defineProperty(exports, "defaultCssVars", {
193
193
  enumerable: true,
194
- get: function () { return chunkRJRDE3C2_js.defaultCssVars; }
194
+ get: function () { return chunkXTYBIJ2S_js.defaultCssVars; }
195
195
  });
196
196
  Object.defineProperty(exports, "defaultRadius", {
197
197
  enumerable: true,
198
- get: function () { return chunkRJRDE3C2_js.defaultRadius; }
198
+ get: function () { return chunkXTYBIJ2S_js.defaultRadius; }
199
199
  });
200
200
  Object.defineProperty(exports, "defaultThemeColors", {
201
201
  enumerable: true,
202
- get: function () { return chunkRJRDE3C2_js.defaultThemeColors; }
202
+ get: function () { return chunkXTYBIJ2S_js.defaultThemeColors; }
203
203
  });
204
204
  Object.defineProperty(exports, "resolveThemeCatalogEntry", {
205
205
  enumerable: true,
206
- get: function () { return chunkRJRDE3C2_js.resolveThemeCatalogEntry; }
206
+ get: function () { return chunkXTYBIJ2S_js.resolveThemeCatalogEntry; }
207
207
  });
208
208
  Object.defineProperty(exports, "themeToCssVars", {
209
209
  enumerable: true,
210
- get: function () { return chunkRJRDE3C2_js.themeToCssVars; }
210
+ get: function () { return chunkXTYBIJ2S_js.themeToCssVars; }
211
211
  });
212
212
  Object.defineProperty(exports, "useViewerTheme", {
213
213
  enumerable: true,
214
- get: function () { return chunkRJRDE3C2_js.useViewerTheme; }
214
+ get: function () { return chunkXTYBIJ2S_js.useViewerTheme; }
215
215
  });
216
216
  Object.defineProperty(exports, "vermilionDarkColors", {
217
217
  enumerable: true,
218
- get: function () { return chunkRJRDE3C2_js.vermilionDarkColors; }
218
+ get: function () { return chunkXTYBIJ2S_js.vermilionDarkColors; }
219
219
  });
220
220
  Object.defineProperty(exports, "vermilionDarkTheme", {
221
221
  enumerable: true,
222
- get: function () { return chunkRJRDE3C2_js.vermilionDarkTheme; }
222
+ get: function () { return chunkXTYBIJ2S_js.vermilionDarkTheme; }
223
223
  });
224
224
  Object.defineProperty(exports, "vermilionLightColors", {
225
225
  enumerable: true,
226
- get: function () { return chunkRJRDE3C2_js.vermilionLightColors; }
226
+ get: function () { return chunkXTYBIJ2S_js.vermilionLightColors; }
227
227
  });
228
228
  Object.defineProperty(exports, "vermilionLightTheme", {
229
229
  enumerable: true,
230
- get: function () { return chunkRJRDE3C2_js.vermilionLightTheme; }
230
+ get: function () { return chunkXTYBIJ2S_js.vermilionLightTheme; }
231
231
  });
232
232
  Object.defineProperty(exports, "vermilionRadius", {
233
233
  enumerable: true,
234
- get: function () { return chunkRJRDE3C2_js.vermilionRadius; }
234
+ get: function () { return chunkXTYBIJ2S_js.vermilionRadius; }
235
235
  });
236
236
  Object.defineProperty(exports, "renderToCanvas", {
237
237
  enumerable: true,
238
- get: function () { return chunk3AZ6ESJU_js.renderToCanvas; }
238
+ get: function () { return chunkSEIVQGH5_js.renderToCanvas; }
239
239
  });
240
240
  Object.defineProperty(exports, "useViewerBuildingBlocks", {
241
241
  enumerable: true,
242
- get: function () { return chunk3AZ6ESJU_js.useViewerBuildingBlocks; }
242
+ get: function () { return chunkSEIVQGH5_js.useViewerBuildingBlocks; }
243
243
  });
244
244
  Object.defineProperty(exports, "PptxI18nProvider", {
245
245
  enumerable: true,
Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  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, LOCALE_CATALOG, OPTIONS_PAGE_IDS, OPTIONS_SECTION_IDS, OPTIONS_SETTING_IDS, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, RIBBON_TAB_IDS, SLIDE_TEMPLATES, 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, describeCollaborationShellState, getLocalStorageUsageSummary, isLegacyBinaryPresentation, isSupportedPresentationFile, presentationBaseName, readStoredViewerPrefs, resolveProfileInitial, saveViewerProfile, savedPresentationFileName, writeStoredViewerPrefs } from './chunk-FFTZYNL4.mjs';
2
- export { PowerPointViewer, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, SlideThumbnail, SlidesPaneSidebar as SlidesPane, THEME_CATALOG, Toolbar, ViewerThemeProvider, defaultCssVars, defaultRadius, defaultThemeColors, resolveThemeCatalogEntry, themeToCssVars, useViewerTheme, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius } from './chunk-DE4Y5F4T.mjs';
2
+ export { PowerPointViewer, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, SlideThumbnail, SlidesPaneSidebar as SlidesPane, THEME_CATALOG, Toolbar, ViewerThemeProvider, defaultCssVars, defaultRadius, defaultThemeColors, resolveThemeCatalogEntry, themeToCssVars, useViewerTheme, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius } from './chunk-OC4RP2CB.mjs';
3
3
  import './chunk-RMEWSJZU.mjs';
4
- export { renderToCanvas, useViewerBuildingBlocks } from './chunk-AZLOOFU2.mjs';
4
+ export { renderToCanvas, useViewerBuildingBlocks } from './chunk-PPOGAZ53.mjs';
5
5
  export { PptxI18nProvider, getAnimationInitialStyle } from './chunk-N3YK2BCA.mjs';
6
6
  import './chunk-UV2HVMKZ.mjs';
Binary file
Binary file