pptx-vanilla-viewer 3.61.0 → 3.61.1

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,11 +1,10 @@
1
- import { a as __reExport, i as __exportAll, r as index_d_exports$2 } from "./transition-overlay-xJ7M4VZA.js";
1
+ import { a as __reExport, i as __exportAll, r as index_d_exports$2 } from "./transition-overlay-DWTE59Vf.js";
2
2
  import { PptxAiBridge, PptxAiConfig, PptxAiConfig as PptxAiConfig$1, PptxAiConnection, PptxAiContextStrategy, PptxAiToolName, PptxAiWritePolicy } from "ooxml-ui/pptx/ai";
3
3
  import { PptxAiAssistant, PptxAiAssistant as PptxAiAssistant$1 } from "ooxml-ui/pptx/ai/host";
4
4
  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, 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, 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, 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";
5
5
  import { LocaleCatalogEntry, TranslationKey, TranslationMessages, Translator, createTranslator, keyToLabel, translationsEn } from "ooxml-ui/pptx/i18n";
6
6
  import { LoadPresentationOptions, LoadedPresentation, loadPresentation, revokeBlobUrls } from "ooxml-ui/pptx/dom";
7
7
  import { Options } from "html2canvas-pro";
8
- //#region src/viewer/state/store.d.ts
9
8
  /**
10
9
  * A tiny framework-free reactive store: `get` / `set(patch)` / `subscribe`.
11
10
  *
@@ -26,8 +25,6 @@ interface Store<T extends object> {
26
25
  }
27
26
  export declare function createStore<T extends object>(initial: T): Store<T>;
28
27
  import * as import_ooxml_ui_pptx_dom from "ooxml-ui/pptx/dom";
29
- //#endregion
30
- //#region src/viewer/state/viewer-state.d.ts
31
28
  /** Why the last password attempt failed; see `checkModifyPassword` (`ooxml-ui/pptx`). */
32
29
  type ModifyPasswordErrorReason$1 = ReadOnlyBannerPasswordError;
33
30
  /** `zoom` is either an explicit scale factor (1 = 100%) or fit-to-viewport. */
@@ -373,8 +370,6 @@ interface ViewerState {
373
370
  export declare function createInitialViewerState(inspectorInitiallyOpen?: boolean): ViewerState;
374
371
  /** Clamp a slide index into the valid range for the given slide count. */
375
372
  declare function clampSlideIndex(index: number, slideCount: number): number;
376
- //#endregion
377
- //#region src/viewer/editor/editor-animation-actions.d.ts
378
373
  /**
379
374
  * Element-animation actions for the ribbon's Animations tab.
380
375
  *
@@ -438,8 +433,6 @@ interface AnimationActions {
438
433
  reorderAnimation(elementId: string, direction: 'up' | 'down'): void;
439
434
  moveAnimation(elementId: string, index: number): void;
440
435
  }
441
- //#endregion
442
- //#region src/viewer/editor/editor-arrange-actions.d.ts
443
436
  /**
444
437
  * Z-order, align, flip, and group/ungroup actions for the ribbon's
445
438
  * Home > Arrange group.
@@ -460,8 +453,6 @@ interface ArrangeActions {
460
453
  groupSelected(): void;
461
454
  ungroupSelected(): void;
462
455
  }
463
- //#endregion
464
- //#region src/viewer/editor/editor-background-actions.d.ts
465
456
  /**
466
457
  * Slide-background actions for the ribbon's Design > Format Background panel.
467
458
  * Solid-colour fill only (matches the docked panel's scope: a single colour
@@ -475,8 +466,6 @@ interface SlideBackgroundActions {
475
466
  /** Toggle PowerPoint's "Hide Background Graphics" (`p:sld/@showMasterSp`). */
476
467
  setHideBackgroundGraphics(hide: boolean): void;
477
468
  }
478
- //#endregion
479
- //#region src/viewer/editor/editor-chart-format-actions.d.ts
480
469
  /**
481
470
  * The chart Format task pane and Chart Format > Current Selection: which chart
482
471
  * element they target, whether the pane is open, and the two edits they make
@@ -495,8 +484,6 @@ interface ChartFormatActions {
495
484
  /** Reset to Match Style on the current chart element. */
496
485
  resetChartFormatSelection(): void;
497
486
  }
498
- //#endregion
499
- //#region src/viewer/editor/editor-clipboard-actions.d.ts
500
487
  /**
501
488
  * Cut/copy/paste actions for the ribbon's Home > Clipboard group, backed by
502
489
  * the shared `element-clipboard.ts` codec. The in-memory clipboard payload
@@ -520,8 +507,6 @@ interface ClipboardActions {
520
507
  /** Replace one element by id, e.g. after rasterizing it to a picture. */
521
508
  replaceElement(elementId: string, next: index_d_exports$2.PptxElement): void;
522
509
  }
523
- //#endregion
524
- //#region src/viewer/editor/editor-comment-actions.d.ts
525
510
  interface CommentActions {
526
511
  addComment(text: string, elementId?: string, mentions?: index_d_exports$2.PptxCommentMention[]): string | null;
527
512
  /**
@@ -537,8 +522,6 @@ interface CommentActions {
537
522
  /** Rewrite the comments of several slides as ONE history entry (Review > Delete Slide / All Comments). */
538
523
  applyChanges(changes: readonly SlideCommentsChange[]): void;
539
524
  }
540
- //#endregion
541
- //#region src/viewer/editor/editor-crop-actions.d.ts
542
525
  /**
543
526
  * Picture Format > Crop: the on-canvas crop mode lifecycle plus the one-click
544
527
  * crops under the Crop dropdown. The decisions (what may be cropped, what a
@@ -564,8 +547,6 @@ interface CropActions {
564
547
  cropFill(): void;
565
548
  cropFit(): void;
566
549
  }
567
- //#endregion
568
- //#region src/viewer/editor/editor-deck-actions.d.ts
569
550
  /**
570
551
  * Deck-level mutations driven by the no-selection inspector Properties tab
571
552
  * (React's `PresentationPropertiesPanel`): presentation show settings, theme
@@ -624,8 +605,6 @@ interface DeckActions {
624
605
  /** Record a styleId for save-time removal from `ppt/tableStyles.xml`. */
625
606
  deleteTableStyle(styleId: string): void;
626
607
  }
627
- //#endregion
628
- //#region src/viewer/editor/editor-gallery-actions.d.ts
629
608
  /**
630
609
  * The ribbon style galleries' dispatcher. What a pick writes is decided by the
631
610
  * shared `applyRibbonGalleryItem`; this only routes the result onto the
@@ -644,8 +623,6 @@ interface GalleryActions {
644
623
  /** The original deck while a preview shows; the ribbon builds its galleries from it. */
645
624
  heldDeckStyleState(): DeckStyleState | undefined;
646
625
  }
647
- //#endregion
648
- //#region src/viewer/editor/editor-ink-actions.d.ts
649
626
  /**
650
627
  * Ink stroke actions for the Draw ribbon tab: commit a freehand pen/
651
628
  * highlighter stroke as a new `InkPptxElement`, or erase an existing one.
@@ -674,8 +651,6 @@ interface InkActions {
674
651
  */
675
652
  eraseInkElement(id: string): boolean;
676
653
  }
677
- //#endregion
678
- //#region src/viewer/editor/editor-insert.d.ts
679
654
  /**
680
655
  * Insert-element factories for the vanilla editor.
681
656
  *
@@ -688,15 +663,11 @@ interface InkActions {
688
663
  */
689
664
  /** The element kinds the Insert ribbon tab can create directly. */
690
665
  type InsertKind = 'text' | 'table' | 'shape';
691
- //#endregion
692
- //#region src/viewer/editor/table-editor-mutations.d.ts
693
666
  interface TableCellPosition {
694
667
  row: number;
695
668
  column: number;
696
669
  }
697
670
  type TableStructureAction = 'insertRowAbove' | 'insertRowBelow' | 'deleteRow' | 'insertColumnLeft' | 'insertColumnRight' | 'deleteColumn';
698
- //#endregion
699
- //#region src/viewer/editor/editor-inspector-actions.d.ts
700
671
  /**
701
672
  * Element-type-aware inspector actions: text vertical-align/wrap/autofit,
702
673
  * gradient fill + fill/stroke opacity, image brightness/contrast/saturation +
@@ -753,8 +724,6 @@ interface InspectorActions {
753
724
  setSmartArtLayout(layout: index_d_exports$2.SmartArtLayoutType): void;
754
725
  setSmartArtColorScheme(scheme: index_d_exports$2.SmartArtColorScheme): void;
755
726
  }
756
- //#endregion
757
- //#region src/viewer/editor/editor-live-colors.d.ts
758
727
  /** Which of the inspector's native colour pickers an event comes from. */
759
728
  type LiveColorTarget = 'fill' | 'line' | 'text';
760
729
  /** The native colour input events a live picker reports. */
@@ -776,8 +745,6 @@ interface LiveColorActions {
776
745
  /** The shape style of element `id` now (what an effects drag the selection left goes back on). */
777
746
  shapeStyleOf(id: string): index_d_exports$2.ShapeStyle | undefined;
778
747
  }
779
- //#endregion
780
- //#region src/viewer/editor/editor-master-view-crud-actions.d.ts
781
748
  interface MasterViewCrudActions {
782
749
  /**
783
750
  * Run one sidebar command (`addLayout` / `duplicateLayout` / `deleteLayout` /
@@ -789,14 +756,10 @@ interface MasterViewCrudActions {
789
756
  */
790
757
  runMasterViewCrudAction(id: MasterViewCrudActionId): Promise<void>;
791
758
  }
792
- //#endregion
793
- //#region src/viewer/editor/editor-merge-actions.d.ts
794
759
  /** Shape Format > Merge Shapes (Union / Combine / Fragment / Intersect / Subtract). */
795
760
  interface MergeActions {
796
761
  mergeShapes(operation: index_d_exports$2.MergeShapeOperation): void;
797
762
  }
798
- //#endregion
799
- //#region src/viewer/editor/editor-section-actions.d.ts
800
763
  /** History-aware slide section actions exposed to the rail and Home ribbon. */
801
764
  interface SectionActions {
802
765
  addSection(name: string, afterSlideIndex?: number): string | null;
@@ -806,8 +769,6 @@ interface SectionActions {
806
769
  moveSlidesToSection(slideIndexes: number[], targetSectionId: string): void;
807
770
  toggleSection(sectionId: string): void;
808
771
  }
809
- //#endregion
810
- //#region src/viewer/editor/editor-slide-actions.d.ts
811
772
  /**
812
773
  * New/duplicate/delete-slide actions for the ribbon's Home > Slides group,
813
774
  * backed by the shared `slide-operations.ts` factory. Every mutation is
@@ -836,8 +797,6 @@ interface SlideActions {
836
797
  /** Reset the current slide to its own layout's defaults (React's Reset). */
837
798
  resetSlide(): void;
838
799
  }
839
- //#endregion
840
- //#region src/viewer/editor/editor-text-actions.d.ts
841
800
  /**
842
801
  * Character + paragraph formatting actions for the ribbon's Home > Font and
843
802
  * Home > Paragraph groups. Every method is a thin `applyToSelected` wrapper
@@ -872,8 +831,6 @@ interface TextActions {
872
831
  setTextDirection(direction: index_d_exports$2.TextStyle['textDirection']): void;
873
832
  setColumnCount(count: number): void;
874
833
  }
875
- //#endregion
876
- //#region src/viewer/editor/editor-transition-actions.d.ts
877
834
  /**
878
835
  * Slide-transition actions for the ribbon's Transitions tab. Playback already
879
836
  * reads `PptxSlide.transition` (see `animation/presentation-playback.ts`), so
@@ -918,8 +875,6 @@ interface TransitionActions {
918
875
  */
919
876
  applyTransitionChange(changes: Partial<index_d_exports$2.PptxSlideTransition>): void;
920
877
  }
921
- //#endregion
922
- //#region src/viewer/editor/editor-edit-ops.d.ts
923
878
  /** A geometry patch from the inspector (all fields optional). */
924
879
  interface GeometryPatch {
925
880
  x?: number;
@@ -992,8 +947,6 @@ interface EditActions extends TextActions, ArrangeActions, ClipboardActions, Sli
992
947
  resetSelectedImage(): void;
993
948
  resetSelectedCrop(): void;
994
949
  }
995
- //#endregion
996
- //#region src/viewer/editor/editor-find-replace-actions.d.ts
997
950
  /**
998
951
  * Find & Replace actions for the ribbon's Home > Editing panel. The session
999
952
  * (matches, current match, replace plans, the search after a replace) is the
@@ -1023,8 +976,6 @@ interface FindReplaceActions {
1023
976
  /** The panel closed: drop the matches (the query stays for the next search). */
1024
977
  close?(): void;
1025
978
  }
1026
- //#endregion
1027
- //#region src/viewer/ui/accessibility-panel.d.ts
1028
979
  interface AccessibilityPanel {
1029
980
  el: HTMLElement;
1030
981
  open(issues: readonly index_d_exports$2.AccessibilityIssue[]): void;
@@ -1036,8 +987,6 @@ interface AccessibilityPanel {
1036
987
  * while the View ribbon is its discoverable entry point.
1037
988
  */
1038
989
  declare function createAccessibilityPanel(doc: Document, t: Translator, onSelectSlide: (index: number) => void): AccessibilityPanel;
1039
- //#endregion
1040
- //#region src/viewer/ui/region-set.d.ts
1041
990
  /** What the viewer lends the region machinery. */
1042
991
  interface RegionSupport {
1043
992
  getResolved(): ResolvedCustomization$1;
@@ -1084,8 +1033,6 @@ interface RegionSet {
1084
1033
  /** Destroy every live and parked host and run every owned teardown. */
1085
1034
  destroy(): void;
1086
1035
  }
1087
- //#endregion
1088
- //#region src/viewer/ui/inspector/types.d.ts
1089
1036
  /**
1090
1037
  * The inspector edit actions: universal geometry + flat fill/stroke, plus the
1091
1038
  * element-type-aware sections (text anchor/wrap/autofit, gradient fill +
@@ -1510,8 +1457,6 @@ interface Inspector {
1510
1457
  updateDeck(state: InspectorDeckState): void;
1511
1458
  setEditable(editable: boolean): void;
1512
1459
  }
1513
- //#endregion
1514
- //#region src/viewer/ui/inspector/inspector.d.ts
1515
1460
  /**
1516
1461
  * The property inspector: a right-hand panel with React's three-tab strip
1517
1462
  * (Elements | Properties | Comments). The Properties tab shows the
@@ -1522,8 +1467,6 @@ interface Inspector {
1522
1467
  * panels. All labels from the shared `pptx.*` dictionary.
1523
1468
  */
1524
1469
  declare function createInspector(doc: Document, t: Translator, handlers: InspectorHandlers): Inspector;
1525
- //#endregion
1526
- //#region src/viewer/ui/master-view-sidebar.d.ts
1527
1470
  interface MasterViewSidebarOptions {
1528
1471
  tab: index_d_exports$2.MasterViewTab;
1529
1472
  masters: readonly index_d_exports$2.PptxSlideMaster[];
@@ -1563,8 +1506,6 @@ interface MasterViewSidebar {
1563
1506
  setVisible(visible: boolean): void;
1564
1507
  }
1565
1508
  declare function createMasterViewSidebar(doc: Document, t: Translator): MasterViewSidebar;
1566
- //#endregion
1567
- //#region src/viewer/ui/ribbon/ribbon-types.d.ts
1568
1509
  /** Ribbon tab identifiers this wave implements (see `ribbon-tabs.ts` for the full future roster). */
1569
1510
  type RibbonTabId = 'file' | 'home' | 'insert' | 'draw' | 'design' | 'transitions' | 'animations' | 'slideShow' | 'record' | 'review' | 'view' | 'help';
1570
1511
  /** Nav-row handlers: always-visible (both edit and read-only chrome). */
@@ -1844,8 +1785,6 @@ interface RibbonSelectionState {
1844
1785
  /** Chart Format > Current Selection: the selected chart's current element. */
1845
1786
  chartFormatTarget?: string;
1846
1787
  }
1847
- //#endregion
1848
- //#region src/viewer/ui/mobile-action-sheets.d.ts
1849
1788
  /** Paint one slide at `scale`, the same callback the desktop rail is given. */
1850
1789
  type MobileThumbnailRenderer = (slide: index_d_exports$2.PptxSlide, scale: number) => HTMLElement;
1851
1790
  interface MobileActionSheets {
@@ -1868,8 +1807,6 @@ declare function createMobileActionSheets(doc: Document, t: Translator, handlers
1868
1807
  * request back to it, so Insert behaves exactly as on the ribbon (dialogs, undo, selection).
1869
1808
  */
1870
1809
  insertSource?: () => PptxUiRibbonInsertElement | null): MobileActionSheets;
1871
- //#endregion
1872
- //#region src/viewer/ui/mobile-toolbar.d.ts
1873
1810
  interface MobileToolbarHandlers {
1874
1811
  openMenu(): void;
1875
1812
  undo(): void;
@@ -1900,8 +1837,6 @@ interface MobileToolbar {
1900
1837
  * `collaboration` slots; Share is the collaboration pill, so it is not drawn.
1901
1838
  */
1902
1839
  declare function createMobileToolbar(doc: Document, t: Translator, handlers: MobileToolbarHandlers, hiddenActions?: readonly ToolbarActionId$1[]): MobileToolbar;
1903
- //#endregion
1904
- //#region src/viewer/ui/notes-panel.d.ts
1905
1840
  /** State the panel needs to reflect: the slide to read notes from, and whether edits are allowed. */
1906
1841
  interface NotesPanelUpdate {
1907
1842
  slide: index_d_exports$2.PptxSlide | undefined;
@@ -1932,8 +1867,6 @@ interface NotesPanel {
1932
1867
  * `change` / `blur`, never per keystroke.
1933
1868
  */
1934
1869
  declare function createNotesPanel(doc: Document, t: Translator, onToggle: () => void, onCommit: (notes: string, notesSegments?: index_d_exports$2.TextSegment[]) => void): NotesPanel;
1935
- //#endregion
1936
- //#region src/viewer/ui/presentation-toolbar.d.ts
1937
1870
  /**
1938
1871
  * The floating slide-show toolbar, matching React's `PresentationToolbar`.
1939
1872
  *
@@ -1991,8 +1924,6 @@ interface PresentationToolbar {
1991
1924
  * measured against (the `.pptxv` root, which is also the fullscreen element).
1992
1925
  */
1993
1926
  declare function createPresentationToolbar(doc: Document, t: Translator, container: HTMLElement, handlers: PresentationToolbarHandlers): PresentationToolbar;
1994
- //#endregion
1995
- //#region src/viewer/ui/presentation-touch-controls.d.ts
1996
1927
  interface PresentationTouchControlHandlers {
1997
1928
  previous(): void;
1998
1929
  next(): void;
@@ -2009,12 +1940,8 @@ interface PresentationTouchControls {
2009
1940
  * presentation mode).
2010
1941
  */
2011
1942
  declare function createPresentationTouchControls(doc: Document, t: Translator, handlers: PresentationTouchControlHandlers, hiddenActions?: readonly ToolbarActionId$1[]): PresentationTouchControls;
2012
- //#endregion
2013
- //#region src/viewer/ui/read-only-banner.d.ts
2014
1943
  /** Why the last password attempt failed; see `checkModifyPassword` (`ooxml-ui/pptx`). */
2015
1944
  type ModifyPasswordErrorReason = ReadOnlyBannerPasswordError;
2016
- //#endregion
2017
- //#region src/viewer/ui/ribbon/tabs/view-tab.d.ts
2018
1945
  /** The View > Show toggles, as the viewer state currently holds them. */
2019
1946
  interface ViewToggleState {
2020
1947
  showGrid: boolean;
@@ -2023,8 +1950,6 @@ interface ViewToggleState {
2023
1950
  snapToGrid: boolean;
2024
1951
  snapToShape: boolean;
2025
1952
  }
2026
- //#endregion
2027
- //#region src/viewer/ui/ribbon/ribbon-api.d.ts
2028
1953
  /** The imperative handle `createRibbon` returns (split out to keep `ribbon.ts` in budget). */
2029
1954
  interface Ribbon {
2030
1955
  el: HTMLElement;
@@ -2078,8 +2003,6 @@ interface Ribbon {
2078
2003
  /** Apply Options > General ScreenTip style to the tab-bar tooltips. */
2079
2004
  applyScreenTips(tip: (label: string) => string | undefined): void;
2080
2005
  }
2081
- //#endregion
2082
- //#region src/viewer/ui/ribbon/ribbon.d.ts
2083
2006
  /**
2084
2007
  * The tabbed editing ribbon: a React-aligned command row, tab bar, and
2085
2008
  * swappable tab content. Slide navigation and zoom live in the status bar,
@@ -2091,8 +2014,6 @@ interface Ribbon {
2091
2014
  * that tab's own module (see `ribbon-types.ts` handlers vs. this file).
2092
2015
  */
2093
2016
  export declare function createRibbon(doc: Document, t: Translator, handlers: RibbonHandlers, hiddenActions?: readonly ToolbarActionId$1[], accountAuth?: AccountAuthConfig$1): Ribbon;
2094
- //#endregion
2095
- //#region src/viewer/ui/shortcut-panel.d.ts
2096
2017
  interface ShortcutPanel {
2097
2018
  el: HTMLElement;
2098
2019
  /** Show or hide the panel; bound to "?" and to the Help ribbon entry. */
@@ -2112,8 +2033,6 @@ interface ShortcutPanel {
2112
2033
  * e2e suite locates it by.
2113
2034
  */
2114
2035
  declare function createShortcutPanel(doc: Document, t: Translator): ShortcutPanel;
2115
- //#endregion
2116
- //#region src/viewer/ui/status-bar.d.ts
2117
2036
  interface StatusBar {
2118
2037
  el: HTMLElement;
2119
2038
  /** Reflect the slide counter and zoom percent. */
@@ -2127,8 +2046,6 @@ interface StatusBar {
2127
2046
  active view (derived, not hardcoded). */
2128
2047
  setPresenting(presenting: boolean): void;
2129
2048
  }
2130
- //#endregion
2131
- //#region src/viewer/editor/editor-controller.d.ts
2132
2049
  interface EditorController {
2133
2050
  hasActivePointerInteraction(): boolean;
2134
2051
  /** (Re)wire listeners + overlay into the current chrome (after mount). */
@@ -2183,8 +2100,6 @@ interface EditorController {
2183
2100
  downloadPptx(fileName?: string): Promise<void>;
2184
2101
  destroy(): void;
2185
2102
  }
2186
- //#endregion
2187
- //#region src/viewer/editor/selection-overlay.d.ts
2188
2103
  /**
2189
2104
  * The selection overlay: a screen-space layer positioned over the slide stage
2190
2105
  * (a sibling of the rendered stage inside `stageWrap`, NEVER inside the
@@ -2204,8 +2119,6 @@ interface OverlayBox {
2204
2119
  height: number;
2205
2120
  rotation: number;
2206
2121
  }
2207
- //#endregion
2208
- //#region src/viewer/editor/inline-text-editor-types.d.ts
2209
2122
  interface InlineEditorSession {
2210
2123
  el: HTMLElement;
2211
2124
  /** Recognize a merged model revision before the ordinary model replacement guard. */
@@ -2254,8 +2167,6 @@ interface OpenInlineEditorOptions {
2254
2167
  */
2255
2168
  onLiveFormatKey?(event: KeyboardEvent): boolean;
2256
2169
  }
2257
- //#endregion
2258
- //#region src/viewer/editor/inline-text-editor.d.ts
2259
2170
  /**
2260
2171
  * Inline text editing: a contenteditable surface positioned over the element
2261
2172
  * (in the editor overlay layer). On commit the plain text is remapped back
@@ -2274,8 +2185,6 @@ export declare function canInlineEditElement(element: index_d_exports$2.PptxElem
2274
2185
  * and on Escape; all keystrokes stay local (never trigger viewer shortcuts).
2275
2186
  */
2276
2187
  export declare function openInlineEditor(options: OpenInlineEditorOptions): InlineEditorSession;
2277
- //#endregion
2278
- //#region src/viewer/ui/thumbnail-sections.d.ts
2279
2188
  interface ThumbnailSectionActions {
2280
2189
  toggle(sectionId: string): void;
2281
2190
  rename(sectionId: string, name: string): void;
@@ -2284,8 +2193,6 @@ interface ThumbnailSectionActions {
2284
2193
  /** Add a new section starting at `slideIndex` (the slide after the section's last). */
2285
2194
  addAfter(slideIndex: number): void;
2286
2195
  }
2287
- //#endregion
2288
- //#region src/viewer/ui/thumbnails.d.ts
2289
2196
  /** The item-2 multi-select/context-menu deps; all optional so existing callers keep working. */
2290
2197
  interface ThumbnailRailMenuDeps {
2291
2198
  /** The viewer store, for the built-in Layout list; omit with `openLayout`. */
@@ -2323,8 +2230,6 @@ interface ThumbnailRail {
2323
2230
  * thumbnail navigates to it. Rebuilt only when the slide list changes.
2324
2231
  */
2325
2232
  declare function createThumbnailRail(doc: Document, t: Translator, onSelect: (index: number) => void, onAddSlide?: () => void, menuDeps?: ThumbnailRailMenuDeps): ThumbnailRail;
2326
- //#endregion
2327
- //#region src/viewer/ui/title-bar.d.ts
2328
2233
  /** Autosave lifecycle states the title-bar status text reflects. */
2329
2234
  type TitleBarAutosaveKind = 'idle' | 'saving' | 'saved' | 'error';
2330
2235
  /** Live Quick Access Toolbar config (File > Options > Quick Access Toolbar). */
@@ -2397,8 +2302,6 @@ interface TitleBar {
2397
2302
  /** Switch the strips between the title bar and the below-ribbon dock. */
2398
2303
  setQuickAccessDetached(detached: boolean): void;
2399
2304
  }
2400
- //#endregion
2401
- //#region src/viewer/ui/chrome.d.ts
2402
2305
  interface ChromeOptions {
2403
2306
  showToolbar: boolean;
2404
2307
  showThumbnails: boolean;
@@ -2544,8 +2447,6 @@ interface ViewerChrome {
2544
2447
  * assembly; all behaviour is wired by the caller through the handlers.
2545
2448
  */
2546
2449
  declare function buildViewerChrome(doc: Document, t: Translator, options: ChromeOptions): ViewerChrome;
2547
- //#endregion
2548
- //#region src/viewer/ui/icon-paths.d.ts
2549
2450
  declare const ICON_PATHS: {
2550
2451
  readonly 'chevron-left': readonly ['M15 18l-6-6 6-6'];
2551
2452
  readonly 'chevron-right': readonly ['M9 18l6-6-6-6'];
@@ -2680,12 +2581,8 @@ declare const ICON_PATHS: {
2680
2581
  readonly crop: readonly ['M6 2v14a2 2 0 0 0 2 2h14', 'M18 22V8a2 2 0 0 0-2-2H2'];
2681
2582
  };
2682
2583
  type IconName = keyof typeof ICON_PATHS;
2683
- //#endregion
2684
- //#region src/viewer/ui/icons.d.ts
2685
2584
  /** Build a 16x16 stroked icon `<svg>` for the given name. */
2686
2585
  declare function createIcon(doc: Document, name: IconName): SVGSVGElement;
2687
- //#endregion
2688
- //#region src/viewer/ui/controls.d.ts
2689
2586
  /**
2690
2587
  * Small reusable DOM control builders for the editing chrome (format toolbar +
2691
2588
  * inspector). Each returns the element plus an imperative handle so the editor
@@ -2760,8 +2657,6 @@ interface NumberFieldHandle {
2760
2657
  * shown before the input (e.g. "X", "W").
2761
2658
  */
2762
2659
  declare function makeNumberField(doc: Document, options: NumberFieldOptions): NumberFieldHandle;
2763
- //#endregion
2764
- //#region src/viewer/ui/dropdown.d.ts
2765
2660
  /** One selectable entry in a {@link makeDropdown} menu. */
2766
2661
  interface DropdownItem<T> {
2767
2662
  label: string;
@@ -2816,8 +2711,6 @@ interface DropdownHandle<T> {
2816
2711
  * spacing, character spacing, change case, ...).
2817
2712
  */
2818
2713
  declare function makeDropdown<T>(doc: Document, options: DropdownOptions<T>): DropdownHandle<T>;
2819
- //#endregion
2820
- //#region src/viewer/ui/element-context-menu-commands.d.ts
2821
2714
  /** The AI hooks the two AI entries need (structurally the `AiFocusController`). */
2822
2715
  interface ContextMenuAiHooks {
2823
2716
  askAboutSelection(): void;
@@ -2851,8 +2744,6 @@ declare function readTableCellTarget(target: EventTarget | null): TableCellPosit
2851
2744
  declare function resolveTableTarget(state: ViewerState, element: index_d_exports$2.PptxElement | null, target: EventTarget | null): ContextMenuTableTarget | null;
2852
2745
  /** Run `id` against the live editor actions. Table commands no-op without a cell. */
2853
2746
  declare function runContextMenuCommand(id: ContextMenuCommandId, deps: ContextMenuCommandDeps, table: ContextMenuTableTarget | null): void;
2854
- //#endregion
2855
- //#region src/viewer/ui/element-context-menu.d.ts
2856
2747
  interface ElementContextMenuDeps extends ContextMenuCommandDeps {
2857
2748
  doc: Document;
2858
2749
  /**
@@ -2875,8 +2766,6 @@ interface ElementContextMenu {
2875
2766
  }
2876
2767
  /** Attach the element context menu to the editing canvas. */
2877
2768
  declare function mountElementContextMenu(deps: ElementContextMenuDeps): ElementContextMenu;
2878
- //#endregion
2879
- //#region src/viewer/ui/presentation-context-menu.d.ts
2880
2769
  interface PresentationContextMenuDeps {
2881
2770
  doc: Document;
2882
2771
  store: Store<ViewerState>;
@@ -2899,8 +2788,6 @@ interface PresentationContextMenu {
2899
2788
  }
2900
2789
  /** Attach the slide-show right-click menu to the presentation root. */
2901
2790
  declare function mountPresentationContextMenu(deps: PresentationContextMenuDeps): PresentationContextMenu;
2902
- //#endregion
2903
- //#region src/viewer/ui/keyboard.d.ts
2904
2791
  interface KeyboardHandlers {
2905
2792
  next(): void;
2906
2793
  prev(): void;
@@ -2946,8 +2833,6 @@ interface KeyboardHandlers {
2946
2833
  * Returns a detach function. Keys typed into a field (an input, a textarea, a select or an editable region) are left to it.
2947
2834
  */
2948
2835
  declare function attachKeyboardNavigation(root: HTMLElement, handlers: KeyboardHandlers): () => void;
2949
- //#endregion
2950
- //#region src/viewer/ui/touch-gestures.d.ts
2951
2836
  interface TouchGestureHandlers {
2952
2837
  /** Read the current effective scale, including fit-to-viewport resolution. */
2953
2838
  getScale(): number;
@@ -2964,8 +2849,6 @@ interface TouchGestureHandlers {
2964
2849
  * editing so they cannot steal element move/resize gestures.
2965
2850
  */
2966
2851
  declare function attachTouchGestures(target: HTMLElement, handlers: TouchGestureHandlers): () => void;
2967
- //#endregion
2968
- //#region src/viewer/ui/presentation.d.ts
2969
2852
  interface PresentationController {
2970
2853
  /** Enter presentation mode (real Fullscreen API on the target element). */
2971
2854
  enter(): Promise<void>;
@@ -2985,8 +2868,6 @@ interface PresentationController {
2985
2868
  * degrades to a plain state toggle so the viewer still hides its chrome.
2986
2869
  */
2987
2870
  declare function createPresentationController(target: HTMLElement, onChange: (presenting: boolean) => void): PresentationController;
2988
- //#endregion
2989
- //#region src/viewer/ui/ribbon/find-replace-panel.d.ts
2990
2871
  interface FindReplacePanel {
2991
2872
  el: HTMLElement;
2992
2873
  toggle(): void;
@@ -3002,8 +2883,6 @@ interface FindReplacePanel {
3002
2883
  * in-canvas match highlighting (React's alone).
3003
2884
  */
3004
2885
  declare function createFindReplacePanel(doc: Document, t: Translator, actions: FindReplaceActions): FindReplacePanel;
3005
- //#endregion
3006
- //#region src/viewer/ui/ribbon/ribbon-tab-bar.d.ts
3007
2886
  interface RibbonTabBar {
3008
2887
  el: HTMLElement;
3009
2888
  setActive(tab: RibbonTabId | RibbonContextualTabId | string): void;
@@ -3036,8 +2915,6 @@ interface RibbonTabBarActions {
3036
2915
  * `collab/collab-ui.ts`), which stays hidden until then.
3037
2916
  */
3038
2917
  declare function createRibbonTabBar(doc: Document, t: Translator, onSelect: (tab: RibbonTabId | RibbonContextualTabId | string) => void, hiddenActions?: readonly ToolbarActionId$1[], actions?: RibbonTabBarActions): RibbonTabBar;
3039
- //#endregion
3040
- //#region src/viewer/ui/ribbon/ribbon-tabs.d.ts
3041
2918
  /**
3042
2919
  * The ribbon tab registry: id + i18n label key, in display order.
3043
2920
  *
@@ -3063,8 +2940,6 @@ declare const RIBBON_TABS: readonly RibbonTabDef[];
3063
2940
  declare const DEFAULT_RIBBON_TAB: RibbonTabId;
3064
2941
  /** True when `id` is a known ribbon tab (guards persisted/host-supplied tab ids). */
3065
2942
  declare function isRibbonTab(id: string): id is RibbonTabId;
3066
- //#endregion
3067
- //#region src/viewer/ui/slides-pane.d.ts
3068
2943
  /** Options of {@link createSlidesPane}. Every field can be changed later with `update`. */
3069
2944
  interface SlidesPaneOptions {
3070
2945
  /**
@@ -3183,8 +3058,6 @@ interface SlidesPane {
3183
3058
  * `pptx-vanilla-viewer/styles.css`) scoped under a `.pptxv` ancestor.
3184
3059
  */
3185
3060
  export declare function createSlidesPane(container: HTMLElement, initial: SlidesPaneOptions): SlidesPane;
3186
- //#endregion
3187
- //#region src/viewer/ui/ruler-strips.d.ts
3188
3061
  /**
3189
3062
  * The View > Rulers strips: a horizontal ruler along the top of the slide, a
3190
3063
  * vertical one down the left, and the corner square where they meet.
@@ -3231,8 +3104,6 @@ interface RulerStrips {
3231
3104
  destroy(): void;
3232
3105
  }
3233
3106
  declare function createRulerStrips(doc: Document, onCreateGuide: (axis: 'h' | 'v', position: number) => void): RulerStrips;
3234
- //#endregion
3235
- //#region src/viewer/ui/protected-view-banner.d.ts
3236
3107
  /**
3237
3108
  * PowerPoint's Protected View bar: a persistent strip below the Ribbon while
3238
3109
  * Trust Center > "Open documents in Protected View" is holding a freshly
@@ -3245,8 +3116,6 @@ interface ProtectedViewBanner {
3245
3116
  setActive(active: boolean): void;
3246
3117
  }
3247
3118
  declare function createProtectedViewBanner(doc: Document, t: Translator, onEnableEditing: () => void): ProtectedViewBanner;
3248
- //#endregion
3249
- //#region src/viewer/animation/presentation-playback.d.ts
3250
3119
  /** Everything the controller needs after a stage (re)render. */
3251
3120
  interface SyncStageParams {
3252
3121
  doc: Document;
@@ -3352,8 +3221,6 @@ interface PresentationPlayback {
3352
3221
  */
3353
3222
  readonly elementStates: ReadonlyMap<string, ElementAnimationState>;
3354
3223
  }
3355
- //#endregion
3356
- //#region src/viewer/render-controller.d.ts
3357
3224
  interface RenderControllerDeps {
3358
3225
  doc: Document;
3359
3226
  store: Store<ViewerState>;
@@ -3488,8 +3355,6 @@ interface RenderController {
3488
3355
  * halves small; it owns no state of its own.
3489
3356
  */
3490
3357
  declare function createRenderController(deps: RenderControllerDeps): RenderController;
3491
- //#endregion
3492
- //#region src/viewer/autosave/autosave-controller.d.ts
3493
3358
  /**
3494
3359
  * The vanilla adapter of the shared recovery autosave engine
3495
3360
  * (`createAutosaveController` in `ooxml-ui/pptx`) and of the shared recovery
@@ -3567,8 +3432,6 @@ interface AutosaveController {
3567
3432
  destroy(): void;
3568
3433
  }
3569
3434
  declare function createAutosaveController(deps: AutosaveControllerDeps): AutosaveController;
3570
- //#endregion
3571
- //#region src/viewer/export/export-types.d.ts
3572
3435
  /**
3573
3436
  * Types shared by the per-format export runners (`export-gif.ts`,
3574
3437
  * `export-video.ts`, `export-print.ts`) and the controller that wraps them
@@ -3632,8 +3495,6 @@ interface ExportCaptureDeps {
3632
3495
  /** Options > Advanced > "High quality" raster scale for the print fallback path. */
3633
3496
  getPrintHighQuality?(): boolean;
3634
3497
  }
3635
- //#endregion
3636
- //#region src/viewer/export/export-gif.d.ts
3637
3498
  /**
3638
3499
  * Animated-GIF export for the vanilla binding. All slides are captured (one
3639
3500
  * frame per slide) via the injected `rasterizeSlide`, then encoded with the
@@ -3674,8 +3535,6 @@ interface ExportGifOptions {
3674
3535
  * `AbortError` when `signal` aborts between slide captures.
3675
3536
  */
3676
3537
  declare function runGifExport(deps: ExportCaptureDeps, options?: ExportGifOptions): Promise<void>;
3677
- //#endregion
3678
- //#region src/viewer/export/export-print.d.ts
3679
3538
  /**
3680
3539
  * Print for the vanilla binding. The shared `planPrintJob` decides what prints
3681
3540
  * (range, current slide, hidden slides), through which path and under which
@@ -3716,8 +3575,6 @@ interface PrintOptions extends Partial<PrintSettings> {
3716
3575
  * `AbortError` when `signal` aborts between slide captures.
3717
3576
  */
3718
3577
  declare function runPrint(deps: ExportCaptureDeps, options?: PrintOptions): Promise<boolean>;
3719
- //#endregion
3720
- //#region src/viewer/export/export-video.d.ts
3721
3578
  /**
3722
3579
  * WebM video export for the vanilla binding, driven by the shared `video-plan`
3723
3580
  * module: `planVideoSegments` (per-slide segment timing + frame counts),
@@ -3755,8 +3612,6 @@ interface ExportVideoDeps extends ExportCaptureDeps {
3755
3612
  * `AbortError` when `signal` aborts during capture or recording.
3756
3613
  */
3757
3614
  declare function runVideoExport(deps: ExportVideoDeps, options?: ExportVideoOptions): Promise<void>;
3758
- //#endregion
3759
- //#region src/viewer/export/export-controller.d.ts
3760
3615
  /** Options for the multi-slide PDF export (progress + cooperative cancel). */
3761
3616
  interface ExportPdfOptions {
3762
3617
  /** Capture-phase progress callback: `(currentSlide, totalSlides)`. */
@@ -3811,8 +3666,6 @@ interface ExportController {
3811
3666
  * lazily so it stays out of the main bundle.
3812
3667
  */
3813
3668
  declare function createExportController(deps: ExportControllerDeps): ExportController;
3814
- //#endregion
3815
- //#region src/viewer/export/export-progress-modal.d.ts
3816
3669
  /**
3817
3670
  * ExportProgressModal: the progress modal shown while a multi-slide export (PDF / GIF / WebM)
3818
3671
  * runs. A thin adapter over the shared `pptx-ui-export-progress`, which owns the dialog and
@@ -3841,8 +3694,6 @@ interface ExportProgressModalDeps {
3841
3694
  }
3842
3695
  /** Build a (closed) progress modal; `open` mounts it into the host. */
3843
3696
  declare function createExportProgressModal(deps: ExportProgressModalDeps): ExportProgressModal;
3844
- //#endregion
3845
- //#region src/viewer/export/export-progress-ui.d.ts
3846
3697
  /**
3847
3698
  * Wires the multi-slide exports (PDF / GIF / WebM) to the progress modal:
3848
3699
  * a `begin -> run -> end` envelope owning the modal state and the
@@ -3868,8 +3719,6 @@ interface ExportProgressUi {
3868
3719
  cancel(): void;
3869
3720
  }
3870
3721
  declare function createExportProgressUi(deps: ExportProgressUiDeps): ExportProgressUi;
3871
- //#endregion
3872
- //#region src/viewer/export/export-svg.d.ts
3873
3722
  /**
3874
3723
  * Options for the SVG exporters. A local alias rather than a re-export of
3875
3724
  * `pptx-viewer-core`: the declaration bundler wrote a re-export reached
@@ -3881,8 +3730,6 @@ type SvgExportOptions = index_d_exports$2.SvgExportOptions;
3881
3730
  export declare function exportSlideToSvg(slide: index_d_exports$2.PptxSlide, width: number, height: number, options?: SvgExportOptions): string;
3882
3731
  /** Export the selected slides in a parsed presentation as SVG markup. */
3883
3732
  export declare function exportAllSlidesToSvg(data: index_d_exports$2.PptxData, options?: SvgExportOptions): string[];
3884
- //#endregion
3885
- //#region src/viewer/export/rasterize-slide.d.ts
3886
3733
  interface RasterizeSlideDeps {
3887
3734
  doc: Document;
3888
3735
  /** Host the off-screen capture stage is appended to; removed on `destroy()`. */
@@ -3988,8 +3835,6 @@ interface RasterizeSlideController {
3988
3835
  * the life of the controller instead.
3989
3836
  */
3990
3837
  declare function createRasterizeSlide(deps: RasterizeSlideDeps): RasterizeSlideController;
3991
- //#endregion
3992
- //#region src/viewer/export/render-to-canvas.d.ts
3993
3838
  /**
3994
3839
  * A drop-in wrapper around `html2canvas-pro` that first normalises modern CSS
3995
3840
  * colour functions (oklch/oklab/lch/lab/color()) to sRGB and applies the
@@ -4002,8 +3847,6 @@ declare function createRasterizeSlide(deps: RasterizeSlideDeps): RasterizeSlideC
4002
3847
  * the main bundle until export is actually used.
4003
3848
  */
4004
3849
  export declare function renderToCanvas(element: HTMLElement, options?: Partial<Options>): Promise<HTMLCanvasElement>;
4005
- //#endregion
4006
- //#region src/viewer/load/source.d.ts
4007
3850
  /**
4008
3851
  * Content sources accepted by the vanilla viewer: raw bytes, a Blob/File, or
4009
3852
  * a URL string to fetch.
@@ -4011,8 +3854,6 @@ export declare function renderToCanvas(element: HTMLElement, options?: Partial<O
4011
3854
  type PptxViewerSource = ArrayBuffer | Uint8Array | Blob | string;
4012
3855
  /** Normalise any accepted source into an `ArrayBuffer` of `.pptx` bytes. */
4013
3856
  declare function resolveSourceToBuffer(source: PptxViewerSource): Promise<ArrayBuffer>;
4014
- //#endregion
4015
- //#region src/viewer/types.d.ts
4016
3857
  /** Callbacks mirroring the Vue component's emits. */
4017
3858
  interface PptxViewerCallbacks {
4018
3859
  /** Fired before following a link; return false to cancel its default action. */
@@ -4558,8 +4399,6 @@ interface PptxViewerInstance extends PowerPointViewerAPI, ViewerCustomizationApi
4558
4399
  /** Tear down DOM, listeners, Blob URLs, and the core handler. */
4559
4400
  destroy(): void;
4560
4401
  }
4561
- //#endregion
4562
- //#region src/viewer/chrome-lifecycle.d.ts
4563
4402
  /** The mutable pieces `PptxViewer` owns for one chrome mount lifecycle. */
4564
4403
  interface ChromeLifecycle {
4565
4404
  chrome: ViewerChrome;
@@ -4741,8 +4580,6 @@ interface ChromeHost {
4741
4580
  setTheme(theme: ViewerTheme$1 | undefined): void;
4742
4581
  applyPresentationTheme(presetId: string): void;
4743
4582
  }
4744
- //#endregion
4745
- //#region src/viewer/customization-lifecycle.d.ts
4746
4583
  interface ViewerCustomizationLifecycle {
4747
4584
  readonly controller: ViewerCustomizationController;
4748
4585
  /** The current resolved customisation (read lazily by every render site). */
@@ -4764,8 +4601,6 @@ interface ViewerCustomizationLifecycle {
4764
4601
  bind(optionsStore: ViewerOptionsStore, onChange: () => void): void;
4765
4602
  destroy(): void;
4766
4603
  }
4767
- //#endregion
4768
- //#region src/viewer/export-lifecycle.d.ts
4769
4604
  interface ExportLifecycleDeps {
4770
4605
  doc: Document;
4771
4606
  /** Host the off-screen capture stage mounts into; matches the viewer container. */
@@ -4852,8 +4687,6 @@ declare abstract class ViewerExportHost implements ViewerExportApi {
4852
4687
  * file-size budget; owns no state beyond the capture stage.
4853
4688
  */
4854
4689
  declare function createExportLifecycle(deps: ExportLifecycleDeps): ExportLifecycle;
4855
- //#endregion
4856
- //#region src/viewer/customization-host.d.ts
4857
4690
  declare abstract class ViewerCustomizationHost extends ViewerExportHost implements ViewerCustomizationApi$1 {
4858
4691
  protected abstract readonly customization: ViewerCustomizationLifecycle;
4859
4692
  private get customizationApi();
@@ -4897,8 +4730,6 @@ declare abstract class ViewerCustomizationHost extends ViewerExportHost implemen
4897
4730
  addBackstagePage(page: HostBackstagePage): void;
4898
4731
  removeBackstagePage(id: string): void;
4899
4732
  }
4900
- //#endregion
4901
- //#region src/viewer/PptxViewer.d.ts
4902
4733
  /**
4903
4734
  * The zero-framework PowerPoint viewer. Construct via {@link createPptxViewer}:
4904
4735
  * builds chrome inside `container`, loads `options.source` when given, and
@@ -5397,8 +5228,6 @@ export declare class PptxViewer extends ViewerCustomizationHost implements PptxV
5397
5228
  }
5398
5229
  /** Create a PowerPoint viewer inside `container` (see {@link PptxViewerOptions}). */
5399
5230
  export declare function createPptxViewer(container: HTMLElement, options?: PptxViewerOptions): PptxViewerInstance;
5400
- //#endregion
5401
- //#region src/viewer/collab/collaboration-controller-types.d.ts
5402
5231
  interface CollaborationControllerDeps {
5403
5232
  store: Store<ViewerState>;
5404
5233
  /** Live core handler (owner-role write-back re-serializes through it). */
@@ -5470,8 +5299,6 @@ interface CollaborationController {
5470
5299
  /** Stop and release everything (viewer destroy). */
5471
5300
  destroy(): void;
5472
5301
  }
5473
- //#endregion
5474
- //#region src/viewer/collab/collaboration-controller.d.ts
5475
5302
  /**
5476
5303
  * Yjs collaboration with built-in transports or a borrowed host session. The
5477
5304
  * room lifecycle (owned sessions, transport, connection status, first-write
@@ -5482,8 +5309,6 @@ interface CollaborationController {
5482
5309
  * participant's later edit survives) while local edits are being written into the room.
5483
5310
  */
5484
5311
  export declare function createCollaborationController(deps: CollaborationControllerDeps): CollaborationController;
5485
- //#endregion
5486
- //#region src/viewer/collab/ui/collaboration-cursors.d.ts
5487
5312
  /**
5488
5313
  * collaboration-cursors.ts: presentational overlay that renders remote
5489
5314
  * collaborators' cursors above the slide stage. Vanilla port of the Vue
@@ -5503,8 +5328,6 @@ interface CollaborationCursors {
5503
5328
  destroy(): void;
5504
5329
  }
5505
5330
  export declare function createCollaborationCursors(doc: Document): CollaborationCursors;
5506
- //#endregion
5507
- //#region src/viewer/collab/ui/remote-selection-overlay.d.ts
5508
5331
  /**
5509
5332
  * remote-selection-overlay.ts: presentational overlay that draws a coloured
5510
5333
  * rectangle around each element a remote collaborator has selected, labelled
@@ -5528,8 +5351,6 @@ interface RemoteSelectionOverlay {
5528
5351
  update(presences: readonly SanitizedPresence$1[], elements: readonly index_d_exports$2.PptxElement[], activeSlideIndex: number, scale: number): void;
5529
5352
  destroy(): void;
5530
5353
  }
5531
- //#endregion
5532
- //#region src/viewer/collab/collaboration-shell.d.ts
5533
5354
  interface CollaborationShellOptions extends Pick<CollaborationControllerDeps, 'store' | 'getHandler' | 'getSaveOptions' | 'getHistory'> {
5534
5355
  document: Document;
5535
5356
  /** Host permission, independent of the effective store.editable value. */
@@ -5554,8 +5375,6 @@ interface CollaborationShell {
5554
5375
  }
5555
5376
  /** Thin custom-chrome wiring; document ownership and sync stay in the controller. */
5556
5377
  export declare function createCollaborationShell(options: CollaborationShellOptions): CollaborationShell;
5557
- //#endregion
5558
- //#region src/viewer/state-sync.d.ts
5559
5378
  interface StateSyncDeps {
5560
5379
  getChrome(): ViewerChrome;
5561
5380
  renderer: RenderController;
@@ -5567,8 +5386,6 @@ interface StateSyncDeps {
5567
5386
  * {@link PptxViewer} to keep the class focused on its public API.
5568
5387
  */
5569
5388
  declare function createStateSync(deps: StateSyncDeps): StoreListener<ViewerState>;
5570
- //#endregion
5571
- //#region src/viewer/theme-apply.d.ts
5572
5389
  /**
5573
5390
  * Apply a `ViewerTheme` to the viewer root as inline `--pptx-*` custom
5574
5391
  * properties (over the stylesheet defaults), removing whatever the previous
@@ -5576,12 +5393,8 @@ declare function createStateSync(deps: StateSyncDeps): StoreListener<ViewerState
5576
5393
  * back on the next call.
5577
5394
  */
5578
5395
  declare function applyThemeVars(root: HTMLElement, theme: ViewerTheme$1 | undefined, previouslyApplied: readonly string[]): string[];
5579
- //#endregion
5580
- //#region src/viewer/styles/css.d.ts
5581
5396
  /** The full stylesheet text (theme-var defaults + chrome rules + editor + collab chrome). */
5582
5397
  declare function buildViewerCss(): string;
5583
- //#endregion
5584
- //#region src/viewer/styles/inject.d.ts
5585
5398
  /**
5586
5399
  * Inject the viewer stylesheet into a document's `<head>` once (idempotent
5587
5400
  * per document). Called automatically by `createPptxViewer`; hosts using a