pptx-vanilla-viewer 3.74.0 → 3.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.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { r as index_d_exports$2 } from "./transition-overlay-taaC_b8X.js";
2
- import { AccountAuthConfig, AccountAuthConfig as AccountAuthConfig$1, AlignEdge, AnimationGroup, AutosaveActivation, AutosaveRecord, AutosaveRecord as AutosaveRecord$1, AutosaveRecoveryController, AutosaveRecoveryOffer, BACKSTAGE_CARD_IDS, BACKSTAGE_PAGE_IDS, BackstageCardId, BackstageCustomization, BackstagePage, CANVAS_CONTEXT_MENU_COMMAND_IDS, CanvasContextMenuCommandId, CanvasSize, ChangeCaseMode, ChartPartRef, CloudFileProvider, CloudOpenedFile, CollabLoadOrigin, CollabLoadOrigin as CollabLoadOrigin$1, CollaborationConfig, CollaborationConfig as CollaborationConfig$1, CollaborationHistoryTarget, CollaborationInput, CollaborationInput as CollaborationInput$1, CollaborationLivePatcher, CollaborationLivePatcher as CollaborationLivePatcher$1, CollaborationRole, CollaborationShellState, CollaborationShellState as CollaborationShellState$1, CollaborationState, CollaborationState as CollaborationState$1, CollaborationState as CollaborationState$2, CollaborationTransport, CompatibilityWarningToast, ConnectionStatus, ConnectionStatus as ConnectionStatus$1, ContextMenuCommandId, ContextMenuCustomization, ContextMenuTableContext, CropElementUpdate, CropSession, DeckSaveIntent, DeckStyleState, DeckWebfontProgress, DocumentStorage, EDITOR_SHORTCUT_ACTION_IDS, ELEMENT_CONTEXT_MENU_COMMAND_IDS, EditorKeyActionName, ElementAnimationState, ElementClipboardPayload, ElementUpdate, ElementUpdate as ElementUpdate$1, ElementUpdateOptions, ElementUpdateOptions as ElementUpdateOptions$1, ExternalCollaborationAwareness, ExternalCollaborationSession, ExternalCollaborationSnapshot, FindReplaceStatus, FreeformToolKind, GoogleFontsOption, GradientState, Guide, HostBackstagePage, HostBackstageRegionId, HostCanvasMenuContext, HostElementMenuContext, HostMenuCommand, InlineListReadResult, InlineListReadResult as InlineListReadResult$1, InlineTextDraft, InlineTextEditSnapshot, InlineTextEditSnapshot as InlineTextEditSnapshot$1, InlineTextSelection, InlineTextSelection as InlineTextSelection$1, InsertChartKind, InsertChartOptions, KeyboardCustomization, ListConversionScope, ListConversionScope as ListConversionScope$1, LiveColorInput, MasterViewCrudAction, MasterViewCrudActionId, MobileSheetKey, OPTIONS_PAGE_IDS, OPTIONS_SECTION_IDS, OPTIONS_SETTING_IDS, OptionsCustomization, OptionsPageId, OptionsPageId as OptionsPageId$1, OptionsSectionId, OptionsSectionId as OptionsSectionId$1, OptionsSettingId, OptionsSettingId as OptionsSettingId$1, OptionsSettingValues, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, PasteSpecialFormat, PowerPointViewerAPI, PptxLoadLimits, PptxUiRibbonInsertElement, PresentationBlackout, PresentationPointerTool, PresentationSnapshot, PrintSettings, RIBBON_TAB_IDS, RasterizeElementResult, RasterizeElementTilesResult, ReadOnlyBannerPasswordError, ReadOnlyRecommendation, RemoteCursor, RemoteCursor as RemoteCursor$1, ResolvedCustomization, ResolvedCustomization as ResolvedCustomization$1, ReviewCommentsHost, RibbonAddInTab, RibbonContextualTabId, RibbonControlId, RibbonCustomization, RibbonGalleryApplyResult, RibbonGalleryContext, RibbonGroupId, RibbonTransitionDraft, RulerUnit, RunProgramNotice, SanitizedPresence, SanitizedPresence as SanitizedPresence$1, SaveProgressState, SavedPresentationFormat, SessionDeck, ShapePresetType, ShareDefaults, ShortcutChord, ShortcutChord as ShortcutChord$1, SlideCommentsChange, SlidePasteRequest, SlideSizeEmu, SlideSizeRescaleMode, SlideTemplateId, SlidesPaneBulkSlideOps, SlidesPaneLayoutGalleryRequest, SlidesPaneSingleSlideOps, StatusBarAutosave, StrokeToInkElementOpts, TOOLBAR_BUTTON_IDS, TextAdvancedChanges, ThemeCatalogEntry, ToolbarActionId, ToolbarActionId as ToolbarActionId$1, ToolbarButtonId, ToolbarTabId, VIEWER_DIALOG_IDS, VIEWER_EXPORT_FORMAT_IDS, VIEWER_FEATURE_IDS, VIEWER_PANEL_IDS, ViewerAutosaveStatus, ViewerCapabilityId, ViewerCustomization, ViewerCustomization as ViewerCustomization$1, ViewerCustomizationApi, ViewerCustomizationApi as ViewerCustomizationApi$1, ViewerCustomizationController, ViewerDialogId, ViewerDialogId as ViewerDialogId$1, ViewerExportFormatId, ViewerFeatureId, ViewerFeatureId as ViewerFeatureId$1, ViewerFontSource, ViewerMode, ViewerOptionPrimitive, ViewerOptionsStore, ViewerPanelId, ViewerPanelId as ViewerPanelId$1, ViewerQuickAccessOptions, ViewerRegionContext, ViewerRegionId, ViewerRegionRenderer, ViewerTheme, ViewerTheme as ViewerTheme$1, ViewerThemeColors, ViewportFitOptions, ViewportFitOptions as ViewportFitOptions$1, ViewportFitPadding, ZoomExcursion, ZoomNavigationTarget, buildInlineTextCommitPatch, canInteractWithElement, createImageElementFromFile, createSlidesPaneBulkSlideOps, defaultCssVars, defaultRadius, defaultThemeColors, describeCollaborationShellState, findReplacementAvailability, forgetSessionDeck, getSessionTabId, isLegacyBinaryPresentation, isSupportedPresentationFile, loadPresentationDeck, loadSessionDeck, overlayInlineTextSnapshot, parsePresentationSessionId, presentationBaseName, rememberSessionDeck, restoreSessionDeck, savedPresentationFileName, themeToCssVars, vermilionDarkTheme, vermilionLightTheme } from "ooxml-ui/pptx";
2
+ import { AccountAuthConfig, AccountAuthConfig as AccountAuthConfig$1, AlignEdge, AnimationGroup, AutosaveActivation, AutosaveRecord, AutosaveRecord as AutosaveRecord$1, AutosaveRecoveryController, AutosaveRecoveryOffer, BACKSTAGE_CARD_IDS, BACKSTAGE_PAGE_IDS, BackstageCardId, BackstageCustomization, BackstagePage, BuildingBlockFailureCode, BuildingBlockRequest, BuildingBlockResult, BuildingBlockToolbarGroupId, BuildingBlockToolbarGroupId as BuildingBlockToolbarGroupId$1, CANVAS_CONTEXT_MENU_COMMAND_IDS, CanvasContextMenuCommandId, CanvasSize, ChangeCaseMode, ChartPartRef, CloudFileProvider, CloudOpenedFile, CollabLoadOrigin, CollabLoadOrigin as CollabLoadOrigin$1, CollaborationConfig, CollaborationConfig as CollaborationConfig$1, CollaborationHistoryTarget, CollaborationInput, CollaborationInput as CollaborationInput$1, CollaborationLivePatcher, CollaborationLivePatcher as CollaborationLivePatcher$1, CollaborationRole, CollaborationShellState, CollaborationShellState as CollaborationShellState$1, CollaborationState, CollaborationState as CollaborationState$1, CollaborationState as CollaborationState$2, CollaborationTransport, CompatibilityWarningToast, ConnectionStatus, ConnectionStatus as ConnectionStatus$1, ContextMenuCommandId, ContextMenuCustomization, ContextMenuTableContext, CropElementUpdate, CropSession, DeckSaveIntent, DeckStyleState, DeckWebfontProgress, DocumentStorage, EDITOR_SHORTCUT_ACTION_IDS, ELEMENT_CONTEXT_MENU_COMMAND_IDS, EditorKeyActionName, ElementAnimationState, ElementClipboardPayload, ElementRenderErrorContext, ElementRenderErrorHandler, ElementRenderErrorHandler as ElementRenderErrorHandler$1, ElementUpdate, ElementUpdate as ElementUpdate$1, ElementUpdateOptions, ElementUpdateOptions as ElementUpdateOptions$1, ExternalCollaborationAwareness, ExternalCollaborationSession, ExternalCollaborationSnapshot, FindReplaceStatus, FindResult, FreeformToolKind, GoogleFontsOption, GradientState, Guide, HostBackstagePage, HostBackstageRegionId, HostCanvasMenuContext, HostElementMenuContext, HostMenuCommand, HyperlinkEditData, InlineListReadResult, InlineListReadResult as InlineListReadResult$1, InlineTextDraft, InlineTextEditSnapshot, InlineTextEditSnapshot as InlineTextEditSnapshot$1, InlineTextSelection, InlineTextSelection as InlineTextSelection$1, InsertChartKind, InsertChartOptions, KeyboardCustomization, ListConversionScope, ListConversionScope as ListConversionScope$1, LiveColorInput, MasterViewCrudAction, MasterViewCrudActionId, MobileSheetKey, OPTIONS_PAGE_IDS, OPTIONS_SECTION_IDS, OPTIONS_SETTING_IDS, OptionsCustomization, OptionsPageId, OptionsPageId as OptionsPageId$1, OptionsSectionId, OptionsSectionId as OptionsSectionId$1, OptionsSettingId, OptionsSettingId as OptionsSettingId$1, OptionsSettingValues, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, PasteSpecialFormat, PowerPointViewerAPI, PptxLoadLimits, PptxSaveAcknowledgement, PptxSaveSnapshot, PptxUiRibbonInsertElement, PresentationBlackout, PresentationPointerTool, PresentationSnapshot, PrintSettings, RIBBON_TAB_IDS, RasterizeElementResult, RasterizeElementTilesResult, ReadOnlyBannerPasswordError, ReadOnlyRecommendation, RemoteCursor, RemoteCursor as RemoteCursor$1, ResolvedCustomization, ResolvedCustomization as ResolvedCustomization$1, ReviewCommentsHost, RibbonAddInTab, RibbonContextualTabId, RibbonControlId, RibbonCustomization, RibbonDisplayController, RibbonDisplayMode, RibbonGalleryApplyResult, RibbonGalleryContext, RibbonGroupId, RibbonTransitionDraft, RulerUnit, RunProgramNotice, SanitizedPresence, SanitizedPresence as SanitizedPresence$1, SaveProgressState, SavedPresentationFormat, SessionDeck, ShapePresetType, ShareDefaults, ShortcutChord, ShortcutChord as ShortcutChord$1, SlideCommentsChange, SlidePasteRequest, SlideSizeEmu, SlideSizeRescaleMode, SlideTemplateId, SlidesPaneBulkSlideOps, SlidesPaneLayoutGalleryRequest, SlidesPaneSingleSlideOps, StatusBarAutosave, StrokeToInkElementOpts, TOOLBAR_BUTTON_IDS, TextAdvancedChanges, ThemeCatalogEntry, ToolbarActionId, ToolbarActionId as ToolbarActionId$1, ToolbarButtonId, ToolbarTabId, UseViewerBuildingBlocksActionsOptions, VIEWER_DIALOG_IDS, VIEWER_EXPORT_FORMAT_IDS, VIEWER_FEATURE_IDS, VIEWER_PANEL_IDS, ViewerAutosaveStatus, ViewerBuildingBlockActions, ViewerBuildingBlockActions as ViewerBuildingBlockActions$1, ViewerCapabilityId, ViewerCustomization, ViewerCustomization as ViewerCustomization$1, ViewerCustomizationApi, ViewerCustomizationApi as ViewerCustomizationApi$1, ViewerCustomizationController, ViewerDialogId, ViewerDialogId as ViewerDialogId$1, ViewerExportFormatId, ViewerFeatureId, ViewerFeatureId as ViewerFeatureId$1, ViewerFontSource, ViewerMode, ViewerOptionPrimitive, ViewerOptionsStore, ViewerPanelId, ViewerPanelId as ViewerPanelId$1, ViewerQuickAccessOptions, ViewerRegionContext, ViewerRegionId, ViewerRegionRenderer, ViewerTheme, ViewerTheme as ViewerTheme$1, ViewerThemeColors, ViewportFitOptions, ViewportFitOptions as ViewportFitOptions$1, ViewportFitPadding, ZoomExcursion, ZoomNavigationTarget, buildInlineTextCommitPatch, canInteractWithElement, createImageElementFromFile, createSlidesPaneBulkSlideOps, defaultCssVars, defaultRadius, defaultThemeColors, describeCollaborationShellState, findReplacementAvailability, forgetSessionDeck, getSessionTabId, isLegacyBinaryPresentation, isSupportedPresentationFile, loadPresentationDeck, loadSessionDeck, overlayInlineTextSnapshot, parsePresentationSessionId, presentationBaseName, rememberSessionDeck, restoreSessionDeck, savedPresentationFileName, themeToCssVars, vermilionDarkTheme, vermilionLightTheme } from "ooxml-ui/pptx";
3
3
  import { LocaleCatalogEntry, TranslationKey, TranslationMessages, Translator, createTranslator, keyToLabel, translationsEn } from "ooxml-ui/pptx/i18n";
4
4
  import { LoadPresentationOptions, LoadedPresentation, loadPresentation, revokeBlobUrls } from "ooxml-ui/pptx/dom";
5
5
  import { PptxAiBridge, PptxAiConfig, PptxAiConfig as PptxAiConfig$1, PptxAiConnection, PptxAiContextStrategy, PptxAiToolName, PptxAiWritePolicy } from "ooxml-ui/pptx/ai";
@@ -231,6 +231,13 @@ interface ViewerState {
231
231
  * whenever the general element selection changes (see `selectionState`).
232
232
  */
233
233
  chartPartSelection: index_d_exports$1.ChartPartSelection | null;
234
+ /**
235
+ * The Find bar's matches and current match, which the editing canvas marks in
236
+ * the text (`findTextHighlightsByElement`). Set by the ribbon's Find & Replace
237
+ * session, or by a host find bar (the building blocks).
238
+ */
239
+ findMatches: readonly FindResult[];
240
+ findMatchIndex: number;
234
241
  /**
235
242
  * The chart element Chart Format > Current Selection and the chart Format pane
236
243
  * target (`chartArea`, `series:0`, ...), for the chart `elementId`. Read it
@@ -794,8 +801,12 @@ interface SlideActions {
794
801
  insertSlideFromTemplate(templateId: SlideTemplateId): void;
795
802
  /** Resolved deck theme scheme map for template builds and gallery previews. */
796
803
  getTemplateScheme(): Record<string, string>;
797
- /** Re-key the current slide onto another layout (React's Layout button). */
798
- applyLayout(layoutPath: string): void;
804
+ /**
805
+ * Re-key the current slide onto another layout (React's Layout button). Settles once the
806
+ * layout landed: true when it was applied, false when it could not be (not editable, no deck,
807
+ * or a layout the deck cannot resolve).
808
+ */
809
+ applyLayout(layoutPath: string): Promise<boolean>;
799
810
  /** Reset the current slide to its own layout's defaults (React's Reset). */
800
811
  resetSlide(): void;
801
812
  }
@@ -1541,6 +1552,8 @@ interface RibbonNavHandlers {
1541
1552
  toggleMasterView?(): void;
1542
1553
  /** Show/hide the right-hand property inspector (React's panel toggle). */
1543
1554
  toggleInspector?(): void;
1555
+ /** The viewer's Ribbon Display Options state (the shared headless controller). */
1556
+ getRibbonDisplay?(): import('ooxml-ui/pptx').RibbonDisplayController;
1544
1557
  /**
1545
1558
  * Drop the current selection. Design > Slide Size needs it: the slide-size
1546
1559
  * fields live on the inspector's DECK panel, which only renders when nothing
@@ -2010,6 +2023,11 @@ interface Ribbon {
2010
2023
  * left out; removing the tab that is showing falls back to the default tab.
2011
2024
  */
2012
2025
  setRibbonAddIns(tabs: readonly RibbonAddInTab[]): void;
2026
+ /**
2027
+ * Draw the Ribbon Display Options state again. Call it once the ribbon is in the document:
2028
+ * full-screen mode puts its strip beside the ribbon, which needs the ribbon's parent.
2029
+ */
2030
+ syncRibbonDisplay(): void;
2013
2031
  /** Leave the File backstage and show the normal default ribbon tab. */
2014
2032
  showDefaultTab(): void;
2015
2033
  /** Apply Options > General ScreenTip style to the tab-bar tooltips. */
@@ -2062,6 +2080,19 @@ interface StatusBar {
2062
2080
  active view (derived, not hardcoded). */
2063
2081
  setPresenting(presenting: boolean): void;
2064
2082
  }
2083
+ /** A dialog the viewer would open, offered to the host first (see `requestHostDialog`). */
2084
+ type HostDialogRequest = {
2085
+ kind: 'hyperlink';
2086
+ } | {
2087
+ kind: 'equation';
2088
+ existingOmml: Record<string, unknown> | null;
2089
+ } | {
2090
+ kind: 'find';
2091
+ } |
2092
+ /** The keyboard shortcut help (`?`, Ctrl+/) toggled. */
2093
+ {
2094
+ kind: 'shortcuts';
2095
+ };
2065
2096
  interface EditorController {
2066
2097
  hasActivePointerInteraction(): boolean;
2067
2098
  /** (Re)wire listeners + overlay into the current chrome (after mount). */
@@ -2114,6 +2145,12 @@ interface EditorController {
2114
2145
  save(format?: index_d_exports$2.PptxSaveFormat): Promise<Uint8Array>;
2115
2146
  downloadAs(format: index_d_exports$2.PptxSaveFormat, fileName?: string): Promise<void>;
2116
2147
  downloadPptx(fileName?: string): Promise<void>;
2148
+ /** The revision of the document as it is now (see `createSaveRevisionController`). */
2149
+ getSaveRevision(): number;
2150
+ /** Serialise for a host that persists the deck itself; the document stays dirty. */
2151
+ getSaveSnapshot(): Promise<PptxSaveSnapshot>;
2152
+ /** The host persisted `revision`: clean only if it is still current. */
2153
+ acknowledgeSave(revision: number): PptxSaveAcknowledgement;
2117
2154
  destroy(): void;
2118
2155
  }
2119
2156
  /**
@@ -2320,7 +2357,7 @@ interface TitleBar {
2320
2357
  /** Switch the strips between the title bar and the below-ribbon dock. */
2321
2358
  setQuickAccessDetached(detached: boolean): void;
2322
2359
  }
2323
- interface ChromeOptions {
2360
+ interface ChromeOptions$1 {
2324
2361
  showToolbar: boolean;
2325
2362
  showThumbnails: boolean;
2326
2363
  /**
@@ -2465,7 +2502,7 @@ interface ViewerChrome {
2465
2502
  * viewport + stage host, and the loading/error/empty overlays. Pure DOM
2466
2503
  * assembly; all behaviour is wired by the caller through the handlers.
2467
2504
  */
2468
- declare function buildViewerChrome(doc: Document, t: Translator, options: ChromeOptions): ViewerChrome;
2505
+ declare function buildViewerChrome(doc: Document, t: Translator, options: ChromeOptions$1): ViewerChrome;
2469
2506
  declare const ICON_PATHS: {
2470
2507
  readonly 'chevron-left': readonly ['M15 18l-6-6 6-6'];
2471
2508
  readonly 'chevron-right': readonly ['M9 18l6-6-6-6'];
@@ -2853,9 +2890,12 @@ interface KeyboardHandlers {
2853
2890
  */
2854
2891
  declare function attachKeyboardNavigation(root: HTMLElement, handlers: KeyboardHandlers): () => void;
2855
2892
  interface TouchGestureHandlers {
2856
- /** Read the current effective scale, including fit-to-viewport resolution. */
2893
+ /** Read the current zoom factor relative to fit (1 = fit), as the zoom buttons do. */
2857
2894
  getScale(): number;
2858
- /** Persist a concrete scale after a two-finger pinch. */
2895
+ /**
2896
+ * Persist a fit-relative zoom after a two-finger pinch, already clamped to the
2897
+ * shared bounds the buttons, Ctrl+wheel and `setZoom` use.
2898
+ */
2859
2899
  onPinchZoom(scale: number): void;
2860
2900
  /** Whether a one-finger swipe may change slides at this moment. */
2861
2901
  isSwipeEnabled(): boolean;
@@ -2863,9 +2903,10 @@ interface TouchGestureHandlers {
2863
2903
  onPrevious(): void;
2864
2904
  }
2865
2905
  /**
2866
- * Attach React-parity touch gestures to the stable viewport node. Pinching is
2867
- * available in every mode; slide swipes deliberately stay disabled while
2868
- * editing so they cannot steal element move/resize gestures.
2906
+ * Attach React-parity touch gestures to the stable viewport node. Every pinch
2907
+ * reaches `onPinchZoom` (the viewer ignores it during a slide show); slide
2908
+ * swipes deliberately stay disabled while editing so they cannot steal element
2909
+ * move/resize gestures.
2869
2910
  */
2870
2911
  declare function attachTouchGestures(target: HTMLElement, handlers: TouchGestureHandlers): () => void;
2871
2912
  interface PresentationController {
@@ -3010,6 +3051,11 @@ interface SlidesPaneOptions {
3010
3051
  t?: Translator;
3011
3052
  /** Element renderers; pass the canvas's registry so custom renderers show in thumbnails too. */
3012
3053
  registry?: index_d_exports$1.ElementRendererRegistry;
3054
+ /**
3055
+ * Reports a thumbnail element omitted because its renderer threw (`console.error` when
3056
+ * absent); the rest of the thumbnail still draws.
3057
+ */
3058
+ onElementRenderError?: ElementRenderErrorHandler$1;
3013
3059
  /** A thumbnail was clicked: show that slide. Selecting never edits the deck. */
3014
3060
  onSelectSlide(index: number): void;
3015
3061
  /** The footer's "New slide" button. */
@@ -3083,7 +3129,7 @@ export declare function createSlidesPane(container: HTMLElement, initial: Slides
3083
3129
  * default it has on {@link SlidesPaneOptions}, so a host can spread the options
3084
3130
  * it gives the slides pane.
3085
3131
  */
3086
- interface SlideThumbnailOptions extends Pick<SlidesPaneOptions, 'canvasSize' | 'mediaDataUrls' | 'headerFooter' | 'customProperties' | 'firstSlideNumber' | 'locale' | 'colorScheme' | 'fontScheme' | 'formatScheme' | 'tableStyleMap' | 't' | 'registry'> {
3132
+ interface SlideThumbnailOptions extends Pick<SlidesPaneOptions, 'canvasSize' | 'mediaDataUrls' | 'headerFooter' | 'customProperties' | 'firstSlideNumber' | 'locale' | 'colorScheme' | 'fontScheme' | 'formatScheme' | 'tableStyleMap' | 't' | 'registry' | 'onElementRenderError'> {
3087
3133
  /** The document the thumbnail's nodes are created in. */
3088
3134
  document: Document;
3089
3135
  /** The slide to draw, as the host stores it (unsaved edits included). */
@@ -3401,6 +3447,8 @@ interface RenderControllerDeps {
3401
3447
  * `replaceChildren`); the editor re-mounts its overlay layer here.
3402
3448
  */
3403
3449
  onStageRendered?(): void;
3450
+ /** The host's `onElementRenderError`, read at render time (`console.error` when absent). */
3451
+ getElementRenderErrorHandler?(): ElementRenderErrorHandler$1 | undefined;
3404
3452
  }
3405
3453
  interface RenderController {
3406
3454
  /** Re-render everything (used after a chrome rebuild). */
@@ -3419,6 +3467,11 @@ interface RenderController {
3419
3467
  renderSlideNode(slide: index_d_exports$2.PptxSlide, scale: number): HTMLElement;
3420
3468
  /** Resolve the requested zoom into a concrete scale factor. */
3421
3469
  effectiveScale(): number;
3470
+ /**
3471
+ * The editing canvas's scale, also during a slide show, which draws at its own
3472
+ * fit instead: the stored zoom, or at fit the editing canvas's last fit.
3473
+ */
3474
+ editingScale(): number;
3422
3475
  /**
3423
3476
  * Scale at which the slide exactly fits the viewport, i.e. the scale that
3424
3477
  * {@link zoomPercent} reports as 100%. The zoom controls need it because the
@@ -3964,10 +4017,24 @@ interface PptxViewerCallbacks {
3964
4017
  }) => void;
3965
4018
  /** Fired when a load fails, and for each failed Save / Save As (message is best-effort). */
3966
4019
  onError?: (message: string, error: unknown) => void;
4020
+ /**
4021
+ * Reports a slide element omitted because its renderer threw, with
4022
+ * `{ elementId, elementType, slideId }`. Only that element is left out; the slide, its other
4023
+ * elements and the viewer stay. Defaults to `console.error(error, context)`, which is also
4024
+ * used when this callback throws. An unchanged failed element is not retried or reported
4025
+ * again on each repaint; a replacement element object (or a changed id) is tried again.
4026
+ */
4027
+ onElementRenderError?: import('ooxml-ui/pptx').ElementRenderErrorHandler;
3967
4028
  /** Fired when the active slide changes (zero-based index). */
3968
4029
  onSlideChange?: (index: number) => void;
3969
- /** Fired when the effective zoom scale changes (1 = 100%). */
4030
+ /** Fired when the editing zoom scale changes (1 = 100%); reports the editing zoom during a show too. */
3970
4031
  onZoomChange?: (scale: number) => void;
4032
+ /**
4033
+ * Fired when the user picks a Ribbon Display Options mode (the menu at the right end of the
4034
+ * tab row, Ctrl+F1 or a double click on a tab). Not fired for `setRibbonDisplay`. The viewer
4035
+ * keeps the choice for its own lifetime only; store it here to bring it back next time.
4036
+ */
4037
+ onRibbonDisplayChange?: (mode: RibbonDisplayMode) => void;
3971
4038
  /** Fired when presentation (fullscreen) mode is entered or exited. */
3972
4039
  onPresentationChange?: (presenting: boolean) => void;
3973
4040
  /** Fired after any document mutation (move, resize, edit, undo, ...). */
@@ -4196,6 +4263,13 @@ interface PptxViewerOptions extends PptxViewerCallbacks, ViewportFitOptions$1 {
4196
4263
  * built-in tab, and a drop-down (`items`) is drawn as its items.
4197
4264
  */
4198
4265
  ribbonAddIns?: readonly RibbonAddInTab[];
4266
+ /**
4267
+ * PowerPoint's Ribbon Display Options at start (default `'always'`): `'always'` docks tabs
4268
+ * and commands, `'tabs'` shows the tab row and lays a tab's commands over the slide when it
4269
+ * is chosen, `'fullScreen'` hides the title bar and the ribbon behind a strip at the top.
4270
+ * The user changes it from the ribbon; `setRibbonDisplay` changes it from the host.
4271
+ */
4272
+ ribbonDisplay?: RibbonDisplayMode;
4199
4273
  /**
4200
4274
  * Custom element-renderer registry. Defaults to `createDefaultRegistry()`;
4201
4275
  * pass your own (or mutate the default via `getRegistry()`) to add or
@@ -4401,7 +4475,7 @@ interface PptxViewerInstance extends PowerPointViewerAPI, ViewerCustomizationApi
4401
4475
  * again; pass `showCompatibilityToasts: false` to never show the stack.
4402
4476
  */
4403
4477
  dismissAllCompatToasts(): void;
4404
- /** Effective zoom scale (1 = 100%), after fit resolution. */
4478
+ /** Editing zoom scale (1 = 100%), after fit resolution, also during a show. */
4405
4479
  getZoom(): number;
4406
4480
  /** Set an explicit zoom scale, or `'fit'` for fit-to-viewport. */
4407
4481
  setZoom(zoom: number): void;
@@ -4412,6 +4486,11 @@ interface PptxViewerInstance extends PowerPointViewerAPI, ViewerCustomizationApi
4412
4486
  setTheme(theme: ViewerTheme$1 | undefined): void;
4413
4487
  /** Switch the UI locale (rebuilds the chrome labels). */
4414
4488
  setLocale(locale: string): void;
4489
+ /**
4490
+ * Show or hide the toolbar at runtime (the `showToolbar` option). Rebuilds the
4491
+ * chrome only: the deck, unsaved edits and the undo history are kept.
4492
+ */
4493
+ setShowToolbar(show: boolean): void;
4415
4494
  /** Enter presentation mode (real Fullscreen API). */
4416
4495
  enterPresentation(): Promise<void>;
4417
4496
  /** Exit presentation mode. */
@@ -4508,6 +4587,13 @@ interface PptxViewerInstance extends PowerPointViewerAPI, ViewerCustomizationApi
4508
4587
  * Removing the tab that is showing returns the ribbon to its default tab.
4509
4588
  */
4510
4589
  setRibbonAddIns(tabs: readonly RibbonAddInTab[]): void;
4590
+ /**
4591
+ * Set the Ribbon Display Options mode (`'always'`, `'tabs'` or `'fullScreen'`) from the host.
4592
+ * `onRibbonDisplayChange` is not called for it.
4593
+ */
4594
+ setRibbonDisplay(mode: RibbonDisplayMode): void;
4595
+ /** The current Ribbon Display Options mode. */
4596
+ getRibbonDisplay(): RibbonDisplayMode;
4511
4597
  /** Tear down DOM, listeners, Blob URLs, and the core handler. */
4512
4598
  destroy(): void;
4513
4599
  }
@@ -4517,6 +4603,11 @@ interface ChromeLifecycle {
4517
4603
  presentation: PresentationController;
4518
4604
  detachKeyboard: () => void;
4519
4605
  detachTouchGestures: () => void;
4606
+ /**
4607
+ * Remove Ctrl+wheel / pinch zoom at the pointer and drag-to-pan from the
4608
+ * viewport, and stop scrolling it to the top-left when another slide shows.
4609
+ */
4610
+ detachViewportNavigation: () => void;
4520
4611
  /** Remove the presenting click-to-advance listener. */
4521
4612
  detachPresentationClick: () => void;
4522
4613
  /** Refits the slide when the viewport's content box changes size. */
@@ -4677,6 +4768,8 @@ interface ChromeHost {
4677
4768
  getThemeColorMap(): Record<string, string> | undefined;
4678
4769
  toggleTemplateEditing(): void;
4679
4770
  toggleMasterNavigation(): void;
4771
+ /** Ribbon Display Options state; it survives a chrome rebuild. */
4772
+ readonly ribbonDisplay: import('ooxml-ui/pptx').RibbonDisplayController;
4680
4773
  selectElements(ids: string[]): void;
4681
4774
  exportSlidePng(): Promise<void>;
4682
4775
  copySlideAsImage(): Promise<void>;
@@ -4706,6 +4799,12 @@ interface ViewerCustomizationLifecycle {
4706
4799
  * customisation), `showThumbnails` and `showInspector`.
4707
4800
  */
4708
4801
  getChromeOptions(): PptxViewerOptions;
4802
+ /**
4803
+ * Replace the host's `showToolbar` option after the viewer was created. The
4804
+ * next chrome mount reads it: returns whether the value changed, so the
4805
+ * caller knows to rebuild the chrome.
4806
+ */
4807
+ setShowToolbar(show: boolean): boolean;
4709
4808
  /** The host configured `ai` AND the customisation keeps the AI feature. */
4710
4809
  isAiEnabled(): boolean;
4711
4810
  isDialogAvailable(dialog: ViewerDialogId$1): boolean;
@@ -4930,6 +5029,8 @@ export declare class PptxViewer extends ViewerCustomizationHost implements PptxV
4930
5029
  private optionsController;
4931
5030
  /** The host's ribbon tabs (`ribbonAddIns` option, `setRibbonAddIns`). */
4932
5031
  private ribbonAddIns;
5032
+ /** Ribbon Display Options; owned here so the state survives a chrome rebuild. */
5033
+ readonly ribbonDisplay: RibbonDisplayController;
4933
5034
  /** The host `customization` option + the imperative API's live edits. */
4934
5035
  protected readonly customization: ViewerCustomizationLifecycle;
4935
5036
  /** Region context + subscription for host-replaced regions (built on first use). */
@@ -4937,6 +5038,12 @@ export declare class PptxViewer extends ViewerCustomizationHost implements PptxV
4937
5038
  /** Host-replaced dialog bodies (Options, Share, Broadcast, Print); destroyed with the viewer. */
4938
5039
  private dialogRegions;
4939
5040
  private chromeRegions;
5041
+ /**
5042
+ * Offered every dialog the editor would open (hyperlink, equation, find) before it opens its
5043
+ * own; true means the host took it. The full viewer keeps its dialogs; the building blocks
5044
+ * override this to raise host requests.
5045
+ */
5046
+ protected requestHostDialog(_request: HostDialogRequest): boolean;
4940
5047
  constructor(container: HTMLElement, options?: PptxViewerOptions);
4941
5048
  /**
4942
5049
  * Mount the optional AI assistant (toggle button + lazy chat panel) when the
@@ -4956,6 +5063,10 @@ export declare class PptxViewer extends ViewerCustomizationHost implements PptxV
4956
5063
  * and the glyph outlines for a deck. Each run is tagged, so a superseded
4957
5064
  * run's late result never applies.
4958
5065
  */
5066
+ /** Resolve the open deck's webfonts again (after the host `googleFonts` policy changed). */
5067
+ protected refreshWebfonts(): void;
5068
+ /** Whether the collaboration session (its role or readiness) currently blocks editing. */
5069
+ protected isCollaborationReadOnly(): boolean;
4959
5070
  private syncWebfonts;
4960
5071
  /**
4961
5072
  * Best-effort glyph-outline bytes for catalogue webfonts. A WordArt
@@ -5046,6 +5157,12 @@ export declare class PptxViewer extends ViewerCustomizationHost implements PptxV
5046
5157
  getActiveSlideIndex: () => number;
5047
5158
  setActiveSlideIndex: (index: number) => void;
5048
5159
  isDirty: () => boolean;
5160
+ /** The revision of the document as it is now; changes after every edit. */
5161
+ getSaveRevision: () => number;
5162
+ /** Serialise for a host that persists the deck itself; the document stays dirty. */
5163
+ getSaveSnapshot: () => Promise<PptxSaveSnapshot>;
5164
+ /** The host persisted `revision`: the document is clean only if it is still current. */
5165
+ acknowledgeSave: (revision: number) => PptxSaveAcknowledgement;
5049
5166
  getSlides: () => readonly index_d_exports$2.PptxSlide[];
5050
5167
  getSlide: (index: number) => index_d_exports$2.PptxSlide | undefined;
5051
5168
  getActiveSlide: () => index_d_exports$2.PptxSlide | undefined;
@@ -5207,6 +5324,12 @@ export declare class PptxViewer extends ViewerCustomizationHost implements PptxV
5207
5324
  * host supplied one, otherwise `localStorage` via `writeStoredViewerPrefs`.
5208
5325
  */
5209
5326
  setLocale(locale: string): void;
5327
+ /**
5328
+ * Show or hide the toolbar (the `showToolbar` option) on a live viewer. Only
5329
+ * the chrome is rebuilt, as for a locale switch: the deck, the selection's
5330
+ * slide, unsaved edits and the undo history stay as they are.
5331
+ */
5332
+ setShowToolbar(show: boolean): void;
5210
5333
  setEditable(editable: boolean): void;
5211
5334
  /** Makes the deck read-only (true wins over `editable`) or lifts that restriction. */
5212
5335
  setReadOnly(readOnly: boolean): void;
@@ -5342,6 +5465,7 @@ export declare class PptxViewer extends ViewerCustomizationHost implements PptxV
5342
5465
  * the crash-recovery snapshot for this file is stale (the real file already
5343
5466
  * has the work), so it is discarded unless the user asked to keep it.
5344
5467
  */
5468
+ private discardRecoveryAfterHostSave;
5345
5469
  private afterSuccessfulSave;
5346
5470
  /**
5347
5471
  * Host `onContentChange`: serialise the deck after each committed edit. Calls the editor's
@@ -5378,6 +5502,13 @@ export declare class PptxViewer extends ViewerCustomizationHost implements PptxV
5378
5502
  private effective3DFlags;
5379
5503
  /** The host options with the UI customisation folded in (read on every chrome mount). */
5380
5504
  getChromeOptions(): PptxViewerOptions;
5505
+ /**
5506
+ * Set PowerPoint's Ribbon Display Options from the host: `always` (the docked ribbon), `tabs`
5507
+ * (the tab row; a tab shows its commands over the slide) or `fullScreen` (no title bar or
5508
+ * ribbon until the strip at the top is pressed). `onRibbonDisplayChange` is not called.
5509
+ */
5510
+ setRibbonDisplay(mode: RibbonDisplayMode): void;
5511
+ getRibbonDisplay(): RibbonDisplayMode;
5381
5512
  /** Replace the host's ribbon tabs (the `ribbonAddIns` option); an empty list removes them. */
5382
5513
  setRibbonAddIns(tabs: readonly RibbonAddInTab[]): void;
5383
5514
  /** What the region hosts need from the viewer: context, change subscription. */
@@ -5571,6 +5702,65 @@ declare function buildViewerCss(): string;
5571
5702
  declare function ensureViewerStyles(doc: Document): void;
5572
5703
  /** The complete viewer stylesheet text (for hosts that self-manage CSS). */
5573
5704
  export declare function getViewerCss(): string;
5705
+ /** Viewer options the building blocks decide themselves (they mount no chrome). */
5706
+ type ChromeOptions = 'source' | 'editable' | 'readOnly' | 'showToolbar' | 'showThumbnails' | 'showFormatToolbar' | 'showInspector' | 'showCompatibilityToasts';
5707
+ interface ViewerBuildingBlocksOptions extends Omit<PptxViewerOptions, ChromeOptions>, UseViewerBuildingBlocksActionsOptions {
5708
+ /** The presentation (bytes, a Blob or a URL), or null while no file is open. */
5709
+ content?: PptxViewerSource | null | undefined;
5710
+ /** Whether editing is enabled. Defaults to false (view-only), as React's `canEdit`. */
5711
+ canEdit?: boolean | undefined;
5712
+ /**
5713
+ * Fired by the "Layout" entry of a slide's context menu in the slides pane, after that slide is
5714
+ * made active; the host owns rendering the Layout gallery.
5715
+ */
5716
+ onOpenLayoutGallery?: ((request: SlidesPaneLayoutGalleryRequest) => void) | undefined;
5717
+ }
5718
+ /** The state a custom shell renders around the blocks (a status line, Save enablement). */
5719
+ interface ViewerBuildingBlocksState {
5720
+ /** `preview` until a canvas is mounted and the host grants editing. */
5721
+ mode: ViewerMode;
5722
+ loading: boolean;
5723
+ error: string | null;
5724
+ /** Zero-based active slide, -1 before a deck loads. */
5725
+ slideIndex: number;
5726
+ slideCount: number;
5727
+ canUndo: boolean;
5728
+ canRedo: boolean;
5729
+ dirty: boolean;
5730
+ /**
5731
+ * Effective edit permission plus connection and presence counts, as React's `shellState`;
5732
+ * pass it to `describeCollaborationShellState` for a localised status line.
5733
+ */
5734
+ shellState: CollaborationShellState$1;
5735
+ /** The shared `CollaborationState` of the room the canvas is in (`COLLABORATION_OFF` when none). */
5736
+ collaborationState: CollaborationState$1;
5737
+ }
5738
+ interface ViewerBuildingBlocks {
5739
+ /** Host-owned workflows (pickers, dialogs, Find / Replace, layouts); see the vanilla docs. */
5740
+ readonly actions: ViewerBuildingBlockActions$1;
5741
+ /** The current state; same value `getState()` returns. */
5742
+ readonly state: ViewerBuildingBlocksState;
5743
+ getState(): ViewerBuildingBlocksState;
5744
+ /** The full viewer instance behind the canvas, for its imperative API; null until mounted. */
5745
+ readonly viewer: PptxViewer | null;
5746
+ /** Call `listener` after every change of state, actions or options; returns the unsubscribe. */
5747
+ subscribe(listener: () => void): () => void;
5748
+ /**
5749
+ * Apply new options to the mounted canvas, keeping the open deck: `content`, `canEdit`,
5750
+ * callbacks, `locale`, `theme`, `customization`, `googleFonts`, `allowExternalContent` and
5751
+ * `collaboration` (join, rejoin or leave) at once; `limits` and `initialSlide` on the next load.
5752
+ */
5753
+ update(next: ViewerBuildingBlocksOptions): void;
5754
+ /** Mount the slide canvas (the deck loads here). Returns its disposer. */
5755
+ mountCanvas(host: HTMLElement): () => void;
5756
+ /** Mount the compact toolbar; `include` picks groups. Returns its disposer. */
5757
+ mountToolbar(host: HTMLElement, include?: readonly BuildingBlockToolbarGroupId$1[]): () => void;
5758
+ /** Mount the slide thumbnail rail. Returns its disposer. */
5759
+ mountSlidesPane(host: HTMLElement): () => void;
5760
+ /** Dispose every mounted block and the viewer. */
5761
+ destroy(): void;
5762
+ }
5763
+ export declare function createViewerBuildingBlocks(initial?: ViewerBuildingBlocksOptions): ViewerBuildingBlocks;
5574
5764
  type CssStyleMap = index_d_exports$1.CssStyleMap;
5575
5765
  type ElementRenderContext = index_d_exports$1.ElementRenderContext;
5576
5766
  type ElementRenderer = index_d_exports$1.ElementRenderer;
@@ -5584,5 +5774,5 @@ type createElementRendererRegistry = index_d_exports$1.createElementRendererRegi
5584
5774
  type createSvgEl = index_d_exports$1.createSvgEl;
5585
5775
  type disposePptxRenderStage = index_d_exports$1.disposePptxRenderStage;
5586
5776
  type renderSlideStage = index_d_exports$1.renderSlideStage;
5587
- export { type AccountAuthConfig, type AutosaveRecord, type AutosaveStatus, BACKSTAGE_CARD_IDS, BACKSTAGE_PAGE_IDS, type BackstageCustomization, CANVAS_CONTEXT_MENU_COMMAND_IDS, type CollabLoadOrigin, type CollaborationConfig, type CollaborationController, type CollaborationControllerDeps, type CollaborationCursors, type CollaborationLivePatcher, type CollaborationRole, type CollaborationShell, type CollaborationShellOptions, type CollaborationShellState, type CollaborationState, type CollaborationTransport, type ConnectionStatus, type ContextMenuCustomization, type CssStyleMap, EDITOR_SHORTCUT_ACTION_IDS, ELEMENT_CONTEXT_MENU_COMMAND_IDS, type EditActions, type ElementRenderContext, type ElementRenderer, type ElementRendererRegistry, type ElementUpdate, type ElementUpdateOptions, type ExportGifOptions, type ExportPdfOptions, type ExportProgress, type ExportVideoOptions, type ExternalCollaborationAwareness, type ExternalCollaborationSession, type ExternalCollaborationSnapshot, type FindReplaceActions, type HostCanvasMenuContext, type HostElementMenuContext, type HostMenuCommand, type InlineEditorSession, type InlineListReadResult, type InlineTextEditSnapshot, type InlineTextSelection, type KeyboardCustomization, type ListConversionScope, type LoadPresentationOptions, type LoadedPresentation, OPTIONS_PAGE_IDS, OPTIONS_SECTION_IDS, OPTIONS_SETTING_IDS, type OpenInlineEditorOptions, type OpenPrintWindow, type OptionsCustomization, type OptionsPageId, type OptionsSectionId, type OptionsSettingId, type OptionsSettingValues, type OverlayBox, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, type PptxAiAssistant, type PptxAiBridge, type PptxAiConfig, type PptxAiConnection, type PptxAiContextStrategy, type PptxAiToolName, type PptxAiWritePolicy, type PptxElement, type PptxElementType, type PptxHandler, type PptxHandlerSaveOptions, type PptxSlide, type PptxViewerCallbacks, type PptxViewerInstance, type PptxViewerOptions, type PptxViewerSource, type PrintOptions, RIBBON_TAB_IDS, type RemoteCursor, type RemoteSelectionOverlay, type ResolvedCustomization, type Ribbon, type RibbonCustomization, type RibbonDesignHandlers, type RibbonDrawHandlers, type RibbonDrawState, type RibbonEditState, type RibbonFileHandlers, type RibbonHandlers, type RibbonInsertHandlers, type RibbonNavHandlers, type RibbonNavState, type RibbonPrimaryHandlers, type RibbonSelectionState, type RibbonSlideShowHandlers, type RibbonTabId, type SanitizedPresence, type SavedPresentationFormat, type SessionDeck, type ShortcutChord, type SlideStageOptions, type SlideThumbnailOptions, type SlidesPane, type SlidesPaneBulkSlideOps, type SlidesPaneLayoutGalleryRequest, type SlidesPaneOptions, type SlidesPaneSingleSlideOps, type Store, type SvgExportOptions, TOOLBAR_BUTTON_IDS, type ToolbarActionId, type TranslationKey, type TranslationMessages, type Translator, VIEWER_DIALOG_IDS, VIEWER_EXPORT_FORMAT_IDS, VIEWER_FEATURE_IDS, VIEWER_PANEL_IDS, type ViewerCustomization, type ViewerCustomizationApi, type ViewerDialogId, type ViewerExportFormatId, type ViewerFeatureId, type ViewerPanelId, type ViewerState, type ViewerTheme, type ViewerThemeColors, type ViewportFitOptions, type ViewportFitPadding, type ZoomLevel, applyStyleMap, buildInlineTextCommitPatch, canInteractWithElement, createDefaultRegistry, createEl, createElementRendererRegistry, createImageElementFromFile, createSlidesPaneBulkSlideOps, createSvgEl, createTranslator, defaultCssVars, defaultRadius, defaultThemeColors, describeCollaborationShellState, disposePptxRenderStage, forgetSessionDeck, getSessionTabId, isLegacyBinaryPresentation, isSupportedPresentationFile, keyToLabel, loadPresentation, loadPresentationDeck, loadSessionDeck, overlayInlineTextSnapshot, parsePresentationSessionId, presentationBaseName, rememberSessionDeck, renderSlideStage, restoreSessionDeck, revokeBlobUrls, savedPresentationFileName, themeToCssVars, translationsEn, vermilionDarkTheme, vermilionLightTheme };
5777
+ export { type AccountAuthConfig, type AutosaveRecord, type AutosaveStatus, BACKSTAGE_CARD_IDS, BACKSTAGE_PAGE_IDS, type BackstageCustomization, type BuildingBlockFailureCode, type BuildingBlockRequest, type BuildingBlockResult, type BuildingBlockToolbarGroupId, CANVAS_CONTEXT_MENU_COMMAND_IDS, type CollabLoadOrigin, type CollaborationConfig, type CollaborationController, type CollaborationControllerDeps, type CollaborationCursors, type CollaborationLivePatcher, type CollaborationRole, type CollaborationShell, type CollaborationShellOptions, type CollaborationShellState, type CollaborationState, type CollaborationTransport, type ConnectionStatus, type ContextMenuCustomization, type CssStyleMap, EDITOR_SHORTCUT_ACTION_IDS, ELEMENT_CONTEXT_MENU_COMMAND_IDS, type EditActions, type ElementRenderContext, type ElementRenderErrorContext, type ElementRenderErrorHandler, type ElementRenderer, type ElementRendererRegistry, type ElementUpdate, type ElementUpdateOptions, type ExportGifOptions, type ExportPdfOptions, type ExportProgress, type ExportVideoOptions, type ExternalCollaborationAwareness, type ExternalCollaborationSession, type ExternalCollaborationSnapshot, type FindReplaceActions, type HostCanvasMenuContext, type HostElementMenuContext, type HostMenuCommand, type HyperlinkEditData, type InlineEditorSession, type InlineListReadResult, type InlineTextEditSnapshot, type InlineTextSelection, type KeyboardCustomization, type ListConversionScope, type LoadPresentationOptions, type LoadedPresentation, OPTIONS_PAGE_IDS, OPTIONS_SECTION_IDS, OPTIONS_SETTING_IDS, type OpenInlineEditorOptions, type OpenPrintWindow, type OptionsCustomization, type OptionsPageId, type OptionsSectionId, type OptionsSettingId, type OptionsSettingValues, type OverlayBox, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, type PptxAiAssistant, type PptxAiBridge, type PptxAiConfig, type PptxAiConnection, type PptxAiContextStrategy, type PptxAiToolName, type PptxAiWritePolicy, type PptxElement, type PptxElementType, type PptxHandler, type PptxHandlerSaveOptions, type PptxSlide, type PptxViewerCallbacks, type PptxViewerInstance, type PptxViewerOptions, type PptxViewerSource, type PrintOptions, RIBBON_TAB_IDS, type RemoteCursor, type RemoteSelectionOverlay, type ResolvedCustomization, type Ribbon, type RibbonCustomization, type RibbonDesignHandlers, type RibbonDrawHandlers, type RibbonDrawState, type RibbonEditState, type RibbonFileHandlers, type RibbonHandlers, type RibbonInsertHandlers, type RibbonNavHandlers, type RibbonNavState, type RibbonPrimaryHandlers, type RibbonSelectionState, type RibbonSlideShowHandlers, type RibbonTabId, type SanitizedPresence, type SavedPresentationFormat, type SessionDeck, type ShortcutChord, type SlideStageOptions, type SlideThumbnailOptions, type SlidesPane, type SlidesPaneBulkSlideOps, type SlidesPaneLayoutGalleryRequest, type SlidesPaneOptions, type SlidesPaneSingleSlideOps, type Store, type SvgExportOptions, TOOLBAR_BUTTON_IDS, type ToolbarActionId, type TranslationKey, type TranslationMessages, type Translator, VIEWER_DIALOG_IDS, VIEWER_EXPORT_FORMAT_IDS, VIEWER_FEATURE_IDS, VIEWER_PANEL_IDS, type ViewerBuildingBlockActions, type ViewerBuildingBlocks, type ViewerBuildingBlocksOptions, type ViewerBuildingBlocksState, type ViewerCustomization, type ViewerCustomizationApi, type ViewerDialogId, type ViewerExportFormatId, type ViewerFeatureId, type ViewerPanelId, type ViewerState, type ViewerTheme, type ViewerThemeColors, type ViewportFitOptions, type ViewportFitPadding, type ZoomLevel, applyStyleMap, buildInlineTextCommitPatch, canInteractWithElement, createDefaultRegistry, createEl, createElementRendererRegistry, createImageElementFromFile, createSlidesPaneBulkSlideOps, createSvgEl, createTranslator, defaultCssVars, defaultRadius, defaultThemeColors, describeCollaborationShellState, disposePptxRenderStage, forgetSessionDeck, getSessionTabId, isLegacyBinaryPresentation, isSupportedPresentationFile, keyToLabel, loadPresentation, loadPresentationDeck, loadSessionDeck, overlayInlineTextSnapshot, parsePresentationSessionId, presentationBaseName, rememberSessionDeck, renderSlideStage, restoreSessionDeck, revokeBlobUrls, savedPresentationFileName, themeToCssVars, translationsEn, vermilionDarkTheme, vermilionLightTheme };
5588
5778
  //# sourceMappingURL=index.d.ts.map