pptx-vanilla-viewer 3.27.0 → 3.29.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,10 +1,9 @@
1
- import { $ as PptxThemeOption, A as PptxCustomShow, B as PptxModifyVerifier, C as PptxAppProperties, D as PptxCommentMention, E as PptxCommentAuthor, F as PptxHandoutMaster, G as PptxSlideMaster, H as PptxPresentationProperties, I as PptxHeaderFooter, J as PptxTableData, K as PptxSlideTransition, L as PptxImageEffects, M as PptxElement, N as PptxElementAnimation, O as PptxCoreProperties, P as PptxEmbeddedFont, Q as PptxThemeFontScheme, R as PptxLayoutPreview, S as PptxAnimationTrigger, T as PptxComment, U as PptxSection, V as PptxNotesMaster, W as PptxSlide, X as PptxTextStyleLevels, Y as PptxTagCollection, Z as PptxThemeColorScheme, _ as PptxAnimationPreset, a as PptxHandler, at as PptxSmartArtNodeStyle, b as PptxAnimationTimelineAnchor, c as SvgExportOptions, ct as SmartArtLayoutType, d as MediaPptxElement, dt as XmlObject, et as PptxTransitionType, f as OleObjectType, ft as PptxThemeColorRef, g as PptxAnimationDirection, h as PptxAfterAnimationAction, i as MergeShapeOperation, it as PptxSmartArtData, j as PptxData, k as PptxCustomProperty, l as ElementAction, lt as TextSegment, m as ParsedTableStyleMap, nt as ShapeStyle, o as PptxHandlerSaveOptions, ot as SmartArtColorScheme, p as OlePptxElement, q as PptxTableCellStyle, r as AccessibilityIssue, rt as TablePptxElement, s as PptxSaveFormat, st as SmartArtLayout, tt as PptxViewProperties, u as MasterViewTab, ut as TextStyle, v as PptxAnimationRepeatMode, w as PptxChartData, x as PptxAnimationTimingCurve, y as PptxAnimationSequence, z as PptxModernCommentAuthor } from "./transition-overlay-CxqDHlcC.js";
1
+ import { a as __reExport, i as __exportAll, r as index_d_exports$2 } from "./transition-overlay-xJ7M4VZA.js";
2
2
  import { AccountAuthConfig, AccountAuthConfig as AccountAuthConfig$1, AlignEdge, AnimationGroup, AutosaveActivation, AutosaveRecord, AutosaveRecord as AutosaveRecord$1, 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, CollaborationLivePatcher, CollaborationLivePatcher as CollaborationLivePatcher$1, CollaborationRole, CollaborationShellState, CollaborationShellState as CollaborationShellState$1, CollaborationTransport, CompatibilityWarningToast, ConnectionStatus, ConnectionStatus as ConnectionStatus$1, ContextMenuCommandId, ContextMenuCustomization, ContextMenuTableContext, CropElementUpdate, CropSession, DeckSaveIntent, 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, FreeformToolKind, GradientState, Guide, HostCanvasMenuContext, HostElementMenuContext, HostMenuCommand, InlineListReadResult, InlineListReadResult as InlineListReadResult$1, InlineTextEditSnapshot, InlineTextEditSnapshot as InlineTextEditSnapshot$1, InlineTextSelection, InlineTextSelection as InlineTextSelection$1, InsertChartKind, KeyboardCustomization, MasterViewCrudAction, MasterViewCrudActionId, MobileSheetKey, ModifyPasswordCheckResult, 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, PresentationBlackout, PresentationPointerTool, PresentationSnapshot, PrintSettings, RIBBON_TAB_IDS, RasterizeElementResult, RasterizeElementTilesResult, ReadOnlyRecommendation, RemoteCursor, RemoteCursor as RemoteCursor$1, ResolvedCustomization, ResolvedCustomization as ResolvedCustomization$1, RibbonContextualTabId, RibbonControlId, RibbonCustomization, RibbonGalleryApplyResult, RibbonGalleryContext, RibbonGroupId, RibbonTransitionDraft, RulerUnit, RunProgramNotice, SanitizedPresence, SanitizedPresence as SanitizedPresence$1, SavedPresentationFormat, SessionDeck, ShapePresetType, ShareDefaults, ShortcutChord, ShortcutChord as ShortcutChord$1, SlideSizeEmu, SlideSizeRescaleMode, SlideTemplateId, StrokeToInkElementOpts, TOOLBAR_BUTTON_IDS, TextAdvancedChanges, ThemeCatalogEntry, ThemeColorPickerCommit, ToolbarActionId, ToolbarActionId as ToolbarActionId$1, ToolbarButtonId, ToolbarTabId, VIEWER_DIALOG_IDS, VIEWER_EXPORT_FORMAT_IDS, VIEWER_FEATURE_IDS, VIEWER_PANEL_IDS, 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, ViewerTheme, ViewerTheme as ViewerTheme$1, ViewerThemeColors, ViewportFitOptions, ViewportFitOptions as ViewportFitOptions$1, ViewportFitPadding, ZoomNavigationTarget, buildInlineTextCommitPatch, canInteractWithElement, createImageElementFromFile, defaultCssVars, defaultRadius, defaultThemeColors, describeCollaborationShellState, 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";
6
6
  import { Options } from "html2canvas-pro";
7
- //#endregion
8
7
  //#region src/viewer/state/store.d.ts
9
8
  /**
10
9
  * A tiny framework-free reactive store: `get` / `set(patch)` / `subscribe`.
@@ -47,10 +46,10 @@ type DrawTool = 'select' | 'pen' | 'highlighter' | 'eraser' | 'freeform';
47
46
  */
48
47
  interface ViewerState {
49
48
  /** Parsed slides (image/media URLs already patched in by the load pipeline). */
50
- slides: PptxSlide[];
49
+ slides: index_d_exports$2.PptxSlide[];
51
50
  /** Presentation sections used to group slides in the thumbnail rail. */
52
- sections: PptxSection[];
53
- presentationProperties: PptxPresentationProperties;
51
+ sections: index_d_exports$2.PptxSection[];
52
+ presentationProperties: index_d_exports$2.PptxPresentationProperties;
54
53
  /**
55
54
  * View properties (`ppt/viewProps.xml`, `p:viewPr`): grid spacing, snap /
56
55
  * guide toggles, last view, splitter state, etc. `gridSpacing` lives here,
@@ -58,16 +57,16 @@ interface ViewerState {
58
57
  * `p:viewPr`, and a real PowerPoint file never populates it under
59
58
  * `p:presentationPr`.
60
59
  */
61
- viewProperties: PptxViewProperties | undefined;
62
- headerFooter: PptxHeaderFooter;
63
- coreProperties?: PptxCoreProperties;
64
- appProperties?: PptxAppProperties;
65
- customProperties: PptxCustomProperty[];
66
- customShows: PptxCustomShow[];
60
+ viewProperties: index_d_exports$2.PptxViewProperties | undefined;
61
+ headerFooter: index_d_exports$2.PptxHeaderFooter;
62
+ coreProperties?: index_d_exports$2.PptxCoreProperties;
63
+ appProperties?: index_d_exports$2.PptxAppProperties;
64
+ customProperties: index_d_exports$2.PptxCustomProperty[];
65
+ customShows: index_d_exports$2.PptxCustomShow[];
67
66
  /** Office 2021 (p188) comment authors, for the `@`-mention typeahead. */
68
- modernCommentAuthors: PptxModernCommentAuthor[];
67
+ modernCommentAuthors: index_d_exports$2.PptxModernCommentAuthor[];
69
68
  /** Legacy `ppt/commentAuthors.xml` authors, mapped into the typeahead too. */
70
- commentAuthors: PptxCommentAuthor[];
69
+ commentAuthors: index_d_exports$2.PptxCommentAuthor[];
71
70
  /**
72
71
  * The custom show a started slide show is restricted to, or null for the
73
72
  * whole deck. Custom shows were definable here but nothing could select one,
@@ -76,7 +75,7 @@ interface ViewerState {
76
75
  * Angular each hold the same id).
77
76
  */
78
77
  activeCustomShowId: string | null;
79
- embeddedFonts: PptxEmbeddedFont[];
78
+ embeddedFonts: index_d_exports$2.PptxEmbeddedFont[];
80
79
  /**
81
80
  * Bumped whenever a catalogue webfont's glyph-outline bytes are newly
82
81
  * registered into `glyph-outline-cache.ts`'s `GlyphOutlineFontCache` (see
@@ -111,20 +110,20 @@ interface ViewerState {
111
110
  */
112
111
  presentationPassword: string | null;
113
112
  /** Inherited layout/master elements, separated so interaction can be gated. */
114
- templateElementsBySlideId: Record<string, PptxElement[]>;
113
+ templateElementsBySlideId: Record<string, index_d_exports$2.PptxElement[]>;
115
114
  /** Parsed slide masters and layouts used by the dedicated master canvas. */
116
- slideMasters: PptxSlideMaster[];
115
+ slideMasters: index_d_exports$2.PptxSlideMaster[];
117
116
  /** Theme parts discovered in the package (inspector THEME card). */
118
- themeOptions: PptxThemeOption[];
117
+ themeOptions: index_d_exports$2.PptxThemeOption[];
119
118
  /** Parsed notes master and its portrait page size. */
120
- notesMaster?: PptxNotesMaster;
119
+ notesMaster?: index_d_exports$2.PptxNotesMaster;
121
120
  notesCanvasSize?: CanvasSize;
122
121
  /** Parsed handout master. */
123
- handoutMaster?: PptxHandoutMaster;
122
+ handoutMaster?: index_d_exports$2.PptxHandoutMaster;
124
123
  /** Whether the loaded package contains a VBA project. */
125
124
  hasMacros: boolean;
126
125
  /** Active master-workspace tab. */
127
- masterViewTab: MasterViewTab;
126
+ masterViewTab: index_d_exports$2.MasterViewTab;
128
127
  /** Preview layout used by the handout master workspace. */
129
128
  handoutSlidesPerPage: number;
130
129
  /** Active master/layout canvas, or null for normal slide view. */
@@ -148,9 +147,9 @@ interface ViewerState {
148
147
  /** Archive-path to displayable URL map for media + poster frames. */
149
148
  mediaDataUrls: Map<string, string>;
150
149
  /** Presentation theme colours used by scheme-based rendering. */
151
- colorScheme?: PptxThemeColorScheme;
150
+ colorScheme?: index_d_exports$2.PptxThemeColorScheme;
152
151
  /** Presentation theme fonts used by table-style font resolution. */
153
- fontScheme?: PptxThemeFontScheme;
152
+ fontScheme?: index_d_exports$2.PptxThemeFontScheme;
154
153
  /** The loaded theme's name (inspector THEME EDITOR card). */
155
154
  themeName?: string;
156
155
  /**
@@ -162,9 +161,9 @@ interface ViewerState {
162
161
  */
163
162
  customFontFamilies: string[];
164
163
  /** Tag collections parsed from `ppt/tags/*.xml` (inspector TAGS card). */
165
- tagCollections: PptxTagCollection[];
164
+ tagCollections: index_d_exports$2.PptxTagCollection[];
166
165
  /** Parsed presentation table styles keyed by style id. */
167
- tableStyleMap?: ParsedTableStyleMap;
166
+ tableStyleMap?: index_d_exports$2.ParsedTableStyleMap;
168
167
  /** `ppt/tableStyles.xml`'s `<a:tblStyleLst @def>` default style GUID. */
169
168
  tableStylesDefaultId?: string;
170
169
  /**
@@ -255,7 +254,7 @@ interface ViewerState {
255
254
  /** The Paste Options toolbar's target: the elements a normal paste just inserted. */
256
255
  pasteOptionsToolbar: {
257
256
  id: string;
258
- sourceClone: PptxElement;
257
+ sourceClone: index_d_exports$2.PptxElement;
259
258
  }[] | null;
260
259
  /** Active Draw ribbon tool; `'select'` disables the ink-drawing gesture controller. */
261
260
  drawTool: DrawTool;
@@ -307,7 +306,7 @@ interface ViewerState {
307
306
  * {@link readOnlyRecommendation} so `submitReadOnlyPassword` can check a
308
307
  * candidate password against it (`checkModifyPassword`, `pptx-viewer-shared`).
309
308
  */
310
- modifyVerifier?: PptxModifyVerifier;
309
+ modifyVerifier?: index_d_exports$2.PptxModifyVerifier;
311
310
  /**
312
311
  * Whether the read-only recommendation banner's inline password prompt is
313
312
  * open (replaces "Edit anyway"/"Dismiss" while true). Only reachable when
@@ -358,20 +357,20 @@ declare function clampSlideIndex(index: number, slideCount: number): number;
358
357
  interface AnimationTimingPatch {
359
358
  durationMs?: number;
360
359
  delayMs?: number;
361
- trigger?: PptxAnimationTrigger;
362
- direction?: PptxAnimationDirection;
363
- sequence?: PptxAnimationSequence;
364
- timingCurve?: PptxAnimationTimingCurve;
360
+ trigger?: index_d_exports$2.PptxAnimationTrigger;
361
+ direction?: index_d_exports$2.PptxAnimationDirection;
362
+ sequence?: index_d_exports$2.PptxAnimationSequence;
363
+ timingCurve?: index_d_exports$2.PptxAnimationTimingCurve;
365
364
  repeatCount?: number;
366
- repeatMode?: PptxAnimationRepeatMode | 'none';
365
+ repeatMode?: index_d_exports$2.PptxAnimationRepeatMode | 'none';
367
366
  triggerShapeId?: string;
368
367
  /** A bookmark picker option value (see `setTriggerBookmark`). */
369
368
  triggerBookmark?: string;
370
- afterAnimation?: PptxAfterAnimationAction;
369
+ afterAnimation?: index_d_exports$2.PptxAfterAnimationAction;
371
370
  afterAnimationColor?: string;
372
371
  }
373
372
  interface AnimationActions {
374
- addAnimation(group: AnimationGroup, preset: PptxAnimationPreset): void;
373
+ addAnimation(group: AnimationGroup, preset: index_d_exports$2.PptxAnimationPreset): void;
375
374
  removeAnimation(): void;
376
375
  /**
377
376
  * Set (or clear with `'none'`) a single effect bucket on the selected
@@ -379,7 +378,7 @@ interface AnimationActions {
379
378
  * first effect and dropped once all three buckets are empty (shared
380
379
  * `setAnimationEntrance`/`setAnimationExit`/`setAnimationEmphasis`).
381
380
  */
382
- setAnimationEffect(group: AnimationGroup, preset: PptxAnimationPreset | 'none'): void;
381
+ setAnimationEffect(group: AnimationGroup, preset: index_d_exports$2.PptxAnimationPreset | 'none'): void;
383
382
  /**
384
383
  * Apply a catalogue motion path to the selected element by preset id.
385
384
  *
@@ -462,20 +461,20 @@ interface ClipboardActions {
462
461
  * the caller (it needs a DOM rasterize step this module does not perform)
463
462
  * via `replaceElement`.
464
463
  */
465
- reformatPasted(elementId: string, sourceClone: PptxElement, format: PasteSpecialFormat): void;
464
+ reformatPasted(elementId: string, sourceClone: index_d_exports$2.PptxElement, format: PasteSpecialFormat): void;
466
465
  /** Replace one element by id, e.g. after rasterizing it to a picture. */
467
- replaceElement(elementId: string, next: PptxElement): void;
466
+ replaceElement(elementId: string, next: index_d_exports$2.PptxElement): void;
468
467
  }
469
468
  //#endregion
470
469
  //#region src/viewer/editor/editor-comment-actions.d.ts
471
470
  interface CommentActions {
472
- addComment(text: string, elementId?: string, mentions?: PptxCommentMention[]): string | null;
471
+ addComment(text: string, elementId?: string, mentions?: index_d_exports$2.PptxCommentMention[]): string | null;
473
472
  /**
474
473
  * Append a reply under a top-level comment (React's `handleSubmitReply`
475
474
  * nested-`replies` model: the reply carries `threadId` = parent id and
476
475
  * inherits the parent's `elementId` anchor).
477
476
  */
478
- addCommentReply(parentId: string, text: string, mentions?: PptxCommentMention[]): string | null;
477
+ addCommentReply(parentId: string, text: string, mentions?: index_d_exports$2.PptxCommentMention[]): string | null;
479
478
  /** Update a comment's text in place; recurses into `replies` so nested rows are editable too. */
480
479
  editComment(id: string, text: string): void;
481
480
  deleteComment(id: string): void;
@@ -519,19 +518,19 @@ interface CropActions {
519
518
  */
520
519
  interface DeckActions {
521
520
  /** Merge a patch into the presentation-level show/print settings. */
522
- updatePresentationSettings(patch: Partial<PptxPresentationProperties>): void;
521
+ updatePresentationSettings(patch: Partial<index_d_exports$2.PptxPresentationProperties>): void;
523
522
  /** Apply a packaged theme part by archive path (React's `handleApplyTheme`). */
524
523
  applyThemeByPath(themePath: string, allMasters: boolean): void;
525
524
  /** Re-theme the deck from the inspector's THEME EDITOR card. */
526
525
  applyThemeEdit(payload: {
527
- colorScheme: PptxThemeColorScheme;
528
- fontScheme: PptxThemeFontScheme;
526
+ colorScheme: index_d_exports$2.PptxThemeColorScheme;
527
+ fontScheme: index_d_exports$2.PptxThemeFontScheme;
529
528
  name: string;
530
529
  }): void | Promise<void>;
531
530
  /** Replace the deck's `ppt/tags/*.xml` collections (inspector TAGS card). */
532
- updateTagCollections(next: PptxTagCollection[]): void;
531
+ updateTagCollections(next: index_d_exports$2.PptxTagCollection[]): void;
533
532
  /** Patch the active slide (inspector THEME OVERRIDE card). */
534
- updateActiveSlide(patch: Partial<PptxSlide>): void;
533
+ updateActiveSlide(patch: Partial<index_d_exports$2.PptxSlide>): void;
535
534
  /**
536
535
  * Set a layout/master's background colour (inspector SLIDE BACKGROUND
537
536
  * card's template rows, shown while `editTemplateMode` is on). Master
@@ -561,7 +560,7 @@ interface DeckActions {
561
560
  */
562
561
  applySlideSizeRescale(size: SlideSizeEmu, mode: SlideSizeRescaleMode): void;
563
562
  /** Commit a full replacement style map (section edit, create, or delete already applied). */
564
- updateTableStyleMap(nextMap: ParsedTableStyleMap): void;
563
+ updateTableStyleMap(nextMap: index_d_exports$2.ParsedTableStyleMap): void;
565
564
  /** Record a styleId for save-time removal from `ppt/tableStyles.xml`. */
566
565
  deleteTableStyle(styleId: string): void;
567
566
  }
@@ -643,11 +642,11 @@ type TableStructureAction = 'insertRowAbove' | 'insertRowBelow' | 'deleteRow' |
643
642
  interface InspectorActions {
644
643
  /** Flip the selected element's lock (writes noMove/noResize; see elementLockTogglePatch). */
645
644
  toggleElementLock(): void;
646
- setTextVerticalAlign(vAlign: NonNullable<TextStyle['vAlign']>): void;
647
- setTextWrap(wrap: NonNullable<TextStyle['textWrap']>): void;
648
- setAutoFitMode(mode: NonNullable<TextStyle['autoFitMode']>): void;
645
+ setTextVerticalAlign(vAlign: NonNullable<index_d_exports$2.TextStyle['vAlign']>): void;
646
+ setTextWrap(wrap: NonNullable<index_d_exports$2.TextStyle['textWrap']>): void;
647
+ setAutoFitMode(mode: NonNullable<index_d_exports$2.TextStyle['autoFitMode']>): void;
649
648
  setTextAdvanced(patch: TextAdvancedChanges): void;
650
- setTextStyle(patch: Partial<TextStyle>, selection?: InlineTextSelection$1 | null): void;
649
+ setTextStyle(patch: Partial<index_d_exports$2.TextStyle>, selection?: InlineTextSelection$1 | null): void;
651
650
  setFillOpacity(opacity: number): void;
652
651
  setStrokeOpacity(opacity: number): void;
653
652
  setGradientFill(state: GradientState): void;
@@ -658,8 +657,8 @@ interface InspectorActions {
658
657
  setImageContrast(value: number): void;
659
658
  setImageSaturation(value: number): void;
660
659
  setImageCrop(edge: 'left' | 'top' | 'right' | 'bottom', value: number): void;
661
- setImageEffects(patch: Partial<PptxImageEffects>): void;
662
- setElementAction(trigger: 'click' | 'hover', action: ElementAction): void;
660
+ setImageEffects(patch: Partial<index_d_exports$2.PptxImageEffects>): void;
661
+ setElementAction(trigger: 'click' | 'hover', action: index_d_exports$2.ElementAction): void;
663
662
  /** Set the selection's accessibility description (inspector Alt Text field). */
664
663
  setAltText(text: string): void;
665
664
  /** Set the selection's accessibility title (inspector Title field). */
@@ -667,28 +666,28 @@ interface InspectorActions {
667
666
  /** Set the selected OLE element's Object Name (`p:oleObj/@name`). */
668
667
  setOleName(name: string): void;
669
668
  /** Patch an in-place OLE content edit (see `InspectorHandlers.setOleContent`). */
670
- setOleContent(patch: Partial<OlePptxElement>): void;
671
- setChartData(data: PptxChartData): void;
672
- setMediaProperties(patch: Partial<MediaPptxElement>): void;
669
+ setOleContent(patch: Partial<index_d_exports$2.OlePptxElement>): void;
670
+ setChartData(data: index_d_exports$2.PptxChartData): void;
671
+ setMediaProperties(patch: Partial<index_d_exports$2.MediaPptxElement>): void;
673
672
  setTableHeaderRow(enabled: boolean): void;
674
673
  setTableBandedRows(enabled: boolean): void;
675
674
  setTableCellPadding(padding: number): void;
676
- setTableOptions(patch: Partial<PptxTableData>, cellStyle?: Partial<PptxTableCellStyle>): void;
675
+ setTableOptions(patch: Partial<index_d_exports$2.PptxTableData>, cellStyle?: Partial<index_d_exports$2.PptxTableCellStyle>): void;
677
676
  /** Replace the selection's whole table data (inspector data grid). */
678
- setTableData(data: PptxTableData, rawXml?: XmlObject): void;
679
- setTableCellStyle(row: number, column: number, patch: Partial<PptxTableCellStyle>): void;
680
- setTableCellStyles(cells: TableCellPosition[], patch: Partial<PptxTableCellStyle>): void;
677
+ setTableData(data: index_d_exports$2.PptxTableData, rawXml?: index_d_exports$2.XmlObject): void;
678
+ setTableCellStyle(row: number, column: number, patch: Partial<index_d_exports$2.PptxTableCellStyle>): void;
679
+ setTableCellStyles(cells: TableCellPosition[], patch: Partial<index_d_exports$2.PptxTableCellStyle>): void;
681
680
  mutateTableStructure(cell: TableCellPosition, action: TableStructureAction): void;
682
681
  setTableColumnWidth(column: number, percent: number): void;
683
682
  setTableRowHeight(row: number, height: number): void;
684
683
  mergeTableCells(cells: TableCellPosition[]): void;
685
684
  splitTableCell(cell: TableCellPosition): void;
686
685
  setSmartArtNodeText(nodeId: string, text: string): void;
687
- setSmartArtNodeStyle(nodeId: string, patch: Partial<PptxSmartArtNodeStyle>): void;
686
+ setSmartArtNodeStyle(nodeId: string, patch: Partial<index_d_exports$2.PptxSmartArtNodeStyle>): void;
688
687
  mutateSmartArtNode(nodeId: string, action: 'add' | 'addChild' | 'remove' | 'promote' | 'demote'): void;
689
- replaceSmartArtData(data: PptxSmartArtData): void;
690
- setSmartArtLayout(layout: SmartArtLayoutType): void;
691
- setSmartArtColorScheme(scheme: SmartArtColorScheme): void;
688
+ replaceSmartArtData(data: index_d_exports$2.PptxSmartArtData): void;
689
+ setSmartArtLayout(layout: index_d_exports$2.SmartArtLayoutType): void;
690
+ setSmartArtColorScheme(scheme: index_d_exports$2.SmartArtColorScheme): void;
692
691
  }
693
692
  //#endregion
694
693
  //#region src/viewer/editor/editor-master-view-crud-actions.d.ts
@@ -707,7 +706,7 @@ interface MasterViewCrudActions {
707
706
  //#region src/viewer/editor/editor-merge-actions.d.ts
708
707
  /** Shape Format > Merge Shapes (Union / Combine / Fragment / Intersect / Subtract). */
709
708
  interface MergeActions {
710
- mergeShapes(operation: MergeShapeOperation): void;
709
+ mergeShapes(operation: index_d_exports$2.MergeShapeOperation): void;
711
710
  }
712
711
  //#endregion
713
712
  //#region src/viewer/editor/editor-section-actions.d.ts
@@ -770,20 +769,20 @@ interface TextActions {
770
769
  stepFontSize(direction: 'increase' | 'decrease'): void;
771
770
  setFontSize(size: number): void;
772
771
  setFontFamily(family: string): void;
773
- setTextColor(color: string, ref?: PptxThemeColorRef): void;
772
+ setTextColor(color: string, ref?: index_d_exports$2.PptxThemeColorRef): void;
774
773
  setHighlightColor(color: string): void;
775
774
  setCharacterSpacing(value: number): void;
776
775
  changeCase(mode: ChangeCaseMode): void;
777
776
  clearFormatting(): void;
778
777
  /** Set (not toggle) character/paragraph style fields on the selection, e.g. the title-bar search. */
779
- patchSelectedTextStyle(patch: Partial<TextStyle>): void;
778
+ patchSelectedTextStyle(patch: Partial<index_d_exports$2.TextStyle>): void;
780
779
  toggleBulletList(): void;
781
780
  toggleNumberedList(): void;
782
781
  increaseIndent(): void;
783
782
  decreaseIndent(): void;
784
- setTextAlign(align: TextStyle['align']): void;
783
+ setTextAlign(align: index_d_exports$2.TextStyle['align']): void;
785
784
  setLineSpacing(value: number): void;
786
- setTextDirection(direction: TextStyle['textDirection']): void;
785
+ setTextDirection(direction: index_d_exports$2.TextStyle['textDirection']): void;
787
786
  setColumnCount(count: number): void;
788
787
  }
789
788
  //#endregion
@@ -813,7 +812,7 @@ interface TransitionAdvance {
813
812
  afterMs?: number;
814
813
  }
815
814
  interface TransitionActions {
816
- applyTransition(type: PptxTransitionType, durationMs: number, applyToAll: boolean, advance?: TransitionAdvance): void;
815
+ applyTransition(type: index_d_exports$2.PptxTransitionType, durationMs: number, applyToAll: boolean, advance?: TransitionAdvance): void;
817
816
  /**
818
817
  * Commit the Transitions tab's whole draft, so EVERY control on that tab
819
818
  * (preset, duration, advance-on-click, advance-after) takes effect the
@@ -830,7 +829,7 @@ interface TransitionActions {
830
829
  * the Sound picker: a freshly-picked file's `soundData` has no equivalent
831
830
  * in {@link RibbonTransitionDraft}).
832
831
  */
833
- applyTransitionChange(changes: Partial<PptxSlideTransition>): void;
832
+ applyTransitionChange(changes: Partial<index_d_exports$2.PptxSlideTransition>): void;
834
833
  }
835
834
  //#endregion
836
835
  //#region src/viewer/editor/editor-edit-ops.d.ts
@@ -858,10 +857,10 @@ interface EditActions extends TextActions, ArrangeActions, ClipboardActions, Sli
858
857
  masterView: MasterViewCrudActions;
859
858
  comments: CommentActions;
860
859
  toggleFormatPainter(): void;
861
- setShapeFill(color: string, ref?: PptxThemeColorRef): void;
862
- setShapeStroke(color: string, ref?: PptxThemeColorRef): void;
860
+ setShapeFill(color: string, ref?: index_d_exports$2.PptxThemeColorRef): void;
861
+ setShapeStroke(color: string, ref?: index_d_exports$2.PptxThemeColorRef): void;
863
862
  setShapeStrokeWidth(width: number): void;
864
- setShapeStyle(patch: Partial<ShapeStyle>): void;
863
+ setShapeStyle(patch: Partial<index_d_exports$2.ShapeStyle>): void;
865
864
  setShapeType(shapeType: string): void;
866
865
  /** B6: fold a colour into the deck's "Recent colours" MRU list; see `InspectorHandlers.pushRecentColor`. */
867
866
  pushRecentColor(hex: string): void;
@@ -871,10 +870,10 @@ interface EditActions extends TextActions, ArrangeActions, ClipboardActions, Sli
871
870
  insertImage(): Promise<void>;
872
871
  insertMedia(): Promise<void>;
873
872
  /** Existing history-tracked insertion transaction for a prepared element. */
874
- insertElement(element: PptxElement): void;
873
+ insertElement(element: index_d_exports$2.PptxElement): void;
875
874
  /** Insert a default chart for the given dropdown entry (defaults to Column). */
876
875
  insertChart(chartKind?: InsertChartKind): void;
877
- insertSmartArt(layout: SmartArtLayout, defaultItems: string[]): void;
876
+ insertSmartArt(layout: index_d_exports$2.SmartArtLayout, defaultItems: string[]): void;
878
877
  insertEquation(omml: Record<string, unknown>): void;
879
878
  updateEquation(id: string, omml: Record<string, unknown>): void;
880
879
  insertActionButton(shapeType: string): void;
@@ -919,7 +918,7 @@ interface FindReplaceActions {
919
918
  //#region src/viewer/ui/accessibility-panel.d.ts
920
919
  interface AccessibilityPanel {
921
920
  el: HTMLElement;
922
- open(issues: readonly AccessibilityIssue[]): void;
921
+ open(issues: readonly index_d_exports$2.AccessibilityIssue[]): void;
923
922
  close(): void;
924
923
  }
925
924
  /**
@@ -946,31 +945,31 @@ interface InspectorHandlers {
946
945
  */
947
946
  getChartFollowDataPoint(): boolean;
948
947
  /** Merge a patch into the presentation show/print settings (PRESENTATION card). */
949
- updatePresentationSettings(patch: Partial<PptxPresentationProperties>): void;
948
+ updatePresentationSettings(patch: Partial<index_d_exports$2.PptxPresentationProperties>): void;
950
949
  /** Apply a packaged theme part by archive path (THEME card). */
951
950
  applyThemeByPath(themePath: string, allMasters: boolean): void;
952
951
  /** Re-theme the deck from the THEME EDITOR card's staged colours/fonts/name. */
953
952
  applyThemeEdit(payload: {
954
- colorScheme: PptxThemeColorScheme;
955
- fontScheme: PptxThemeFontScheme;
953
+ colorScheme: index_d_exports$2.PptxThemeColorScheme;
954
+ fontScheme: index_d_exports$2.PptxThemeFontScheme;
956
955
  name: string;
957
956
  }): void | Promise<void>;
958
957
  /** Replace the deck's `ppt/tags/*.xml` collections (TAGS card). */
959
- updateTagCollections(next: PptxTagCollection[]): void;
958
+ updateTagCollections(next: index_d_exports$2.PptxTagCollection[]): void;
960
959
  /**
961
960
  * The deck's parsed `ppt/tableStyles.xml` map, for the table properties
962
961
  * panel's "Edit style...". `undefined` means the host has not wired the
963
962
  * table-style-editor feature through; the button then simply does not render.
964
963
  */
965
- getTableStyleMap(): ParsedTableStyleMap | undefined;
964
+ getTableStyleMap(): index_d_exports$2.ParsedTableStyleMap | undefined;
966
965
  /** The current theme colour map (scheme key -> hex), for resolving scheme-based table style colours. */
967
966
  getThemeColorMap(): Record<string, string> | undefined;
968
967
  /** Commit a full replacement style map (section edit, create, or delete already applied). */
969
- updateTableStyleMap(nextMap: ParsedTableStyleMap): void;
968
+ updateTableStyleMap(nextMap: index_d_exports$2.ParsedTableStyleMap): void;
970
969
  /** Record a styleId for save-time removal from `ppt/tableStyles.xml`. */
971
970
  deleteTableStyle(styleId: string): void;
972
971
  /** Patch the active slide (THEME OVERRIDE card). */
973
- updateActiveSlide(patch: Partial<PptxSlide>): void;
972
+ updateActiveSlide(patch: Partial<index_d_exports$2.PptxSlide>): void;
974
973
  /**
975
974
  * Set a layout/master's background colour (SLIDE BACKGROUND card's
976
975
  * template rows, shown while `editTemplateMode` is on). Master Views
@@ -996,15 +995,15 @@ interface InspectorHandlers {
996
995
  */
997
996
  applySlideSizeRescale(size: SlideSizeEmu, mode: SlideSizeRescaleMode): void;
998
997
  /** Add a comment on the current slide (Comments tab). */
999
- addComment(text: string, mentions?: PptxCommentMention[]): void;
998
+ addComment(text: string, mentions?: index_d_exports$2.PptxCommentMention[]): void;
1000
999
  /** Append a reply under a top-level comment (Comments tab reply form). */
1001
- addCommentReply(parentId: string, text: string, mentions?: PptxCommentMention[]): void;
1000
+ addCommentReply(parentId: string, text: string, mentions?: index_d_exports$2.PptxCommentMention[]): void;
1002
1001
  /** Replace a comment's (or reply's) text (Comments tab edit-in-place). */
1003
1002
  editComment(id: string, text: string): void;
1004
1003
  deleteComment(id: string): void;
1005
1004
  toggleCommentResolved(id: string): void;
1006
1005
  /** Set/clear one effect bucket on the selected element (docked Animation panel). */
1007
- setAnimationEffect(group: AnimationGroup, preset: PptxAnimationPreset | 'none'): void;
1006
+ setAnimationEffect(group: AnimationGroup, preset: index_d_exports$2.PptxAnimationPreset | 'none'): void;
1008
1007
  /** Apply/clear a catalogue motion path by preset id (`'none'` clears it). */
1009
1008
  applyMotionPath(presetId: string): void;
1010
1009
  /** Patch timing/effect options on one element's animation entry. */
@@ -1026,11 +1025,11 @@ interface InspectorHandlers {
1026
1025
  * save, so the fill follows a later theme change); omit it to clear a
1027
1026
  * previously-stored ref for a plain/custom/recent pick.
1028
1027
  */
1029
- setShapeFill(color: string, ref?: PptxThemeColorRef): void;
1028
+ setShapeFill(color: string, ref?: index_d_exports$2.PptxThemeColorRef): void;
1030
1029
  /** Same `ref` contract as {@link setShapeFill}, for the stroke colour. */
1031
- setShapeStroke(color: string, ref?: PptxThemeColorRef): void;
1030
+ setShapeStroke(color: string, ref?: index_d_exports$2.PptxThemeColorRef): void;
1032
1031
  setShapeStrokeWidth(width: number): void;
1033
- setShapeStyle(patch: Partial<ShapeStyle>): void;
1032
+ setShapeStyle(patch: Partial<index_d_exports$2.ShapeStyle>): void;
1034
1033
  setShapeType(shapeType: string): void;
1035
1034
  /**
1036
1035
  * B6: fold a colour into the deck's "Recent colours" (`p:clrMru`) MRU list,
@@ -1046,7 +1045,7 @@ interface InspectorHandlers {
1046
1045
  setTextWrap(wrap: InspectorState['textWrap']): void;
1047
1046
  setAutoFitMode(mode: InspectorState['autoFitMode']): void;
1048
1047
  setTextAdvanced(patch: TextAdvancedChanges): void;
1049
- setTextStyle(patch: Partial<TextStyle>, selection?: InlineTextSelection$1 | null): void;
1048
+ setTextStyle(patch: Partial<index_d_exports$2.TextStyle>, selection?: InlineTextSelection$1 | null): void;
1050
1049
  setFillOpacity(opacity: number): void;
1051
1050
  setStrokeOpacity(opacity: number): void;
1052
1051
  setGradientFill(state: GradientState): void;
@@ -1057,11 +1056,11 @@ interface InspectorHandlers {
1057
1056
  setImageContrast(value: number): void;
1058
1057
  setImageSaturation(value: number): void;
1059
1058
  setImageCrop(edge: 'left' | 'top' | 'right' | 'bottom', value: number): void;
1060
- setImageEffects(patch: Partial<PptxImageEffects>): void;
1059
+ setImageEffects(patch: Partial<index_d_exports$2.PptxImageEffects>): void;
1061
1060
  replaceImage(): void;
1062
1061
  resetImage(): void;
1063
1062
  resetCrop(): void;
1064
- setElementAction(trigger: 'click' | 'hover', action: ElementAction): void;
1063
+ setElementAction(trigger: 'click' | 'hover', action: index_d_exports$2.ElementAction): void;
1065
1064
  /** Set the selected element's accessibility description (Alt Text field). */
1066
1065
  setAltText(text: string): void;
1067
1066
  /**
@@ -1085,13 +1084,13 @@ interface InspectorHandlers {
1085
1084
  * element. Callers pass `buildOleContentUpdatePatch`'s output, which
1086
1085
  * already scopes the patch to the fields a content edit can touch.
1087
1086
  */
1088
- setOleContent(patch: Partial<OlePptxElement>): void;
1089
- setChartData(data: PptxChartData): void;
1090
- setMediaProperties(patch: Partial<MediaPptxElement>): void;
1087
+ setOleContent(patch: Partial<index_d_exports$2.OlePptxElement>): void;
1088
+ setChartData(data: index_d_exports$2.PptxChartData): void;
1089
+ setMediaProperties(patch: Partial<index_d_exports$2.MediaPptxElement>): void;
1091
1090
  setTableHeaderRow(enabled: boolean): void;
1092
1091
  setTableBandedRows(enabled: boolean): void;
1093
1092
  setTableCellPadding(padding: number): void;
1094
- setTableOptions(patch: Partial<PptxTableData>, cellStyle?: Partial<PptxTableCellStyle>): void;
1093
+ setTableOptions(patch: Partial<index_d_exports$2.PptxTableData>, cellStyle?: Partial<index_d_exports$2.PptxTableCellStyle>): void;
1095
1094
  /**
1096
1095
  * Replace the selected table's whole `tableData` (inspector data grid).
1097
1096
  *
@@ -1103,16 +1102,16 @@ interface InspectorHandlers {
1103
1102
  * `rawXml` the renderer and save writer actually read for a table parsed from
1104
1103
  * a real deck (a `tableData`-only patch is invisible on such tables).
1105
1104
  */
1106
- setTableData(data: PptxTableData, rawXml?: XmlObject): void;
1107
- setTableCellStyle(row: number, column: number, patch: Partial<PptxTableCellStyle>): void;
1108
- setTableCellStyles(cells: TableCellPosition[], patch: Partial<PptxTableCellStyle>): void;
1105
+ setTableData(data: index_d_exports$2.PptxTableData, rawXml?: index_d_exports$2.XmlObject): void;
1106
+ setTableCellStyle(row: number, column: number, patch: Partial<index_d_exports$2.PptxTableCellStyle>): void;
1107
+ setTableCellStyles(cells: TableCellPosition[], patch: Partial<index_d_exports$2.PptxTableCellStyle>): void;
1109
1108
  mutateTableStructure(cell: TableCellPosition, action: TableStructureAction): void;
1110
1109
  setTableColumnWidth(column: number, percent: number): void;
1111
1110
  setTableRowHeight(row: number, height: number): void;
1112
1111
  mergeTableCells(cells: TableCellPosition[]): void;
1113
1112
  splitTableCell(cell: TableCellPosition): void;
1114
1113
  setSmartArtNodeText(nodeId: string, text: string): void;
1115
- setSmartArtNodeStyle(nodeId: string, patch: Partial<PptxSmartArtNodeStyle>): void;
1114
+ setSmartArtNodeStyle(nodeId: string, patch: Partial<index_d_exports$2.PptxSmartArtNodeStyle>): void;
1116
1115
  mutateSmartArtNode(nodeId: string, action: 'add' | 'addChild' | 'remove' | 'promote' | 'demote'): void;
1117
1116
  /**
1118
1117
  * Commit a whole replacement `smartArtData`, reflowed and history-integrated
@@ -1121,9 +1120,9 @@ interface InspectorHandlers {
1121
1120
  * add/remove, the node to focus next) via the shared `smartart-node-pane-
1122
1121
  * handlers` builders before committing.
1123
1122
  */
1124
- replaceSmartArtData(data: PptxSmartArtData): void;
1125
- setSmartArtLayout(layout: SmartArtLayoutType): void;
1126
- setSmartArtColorScheme(scheme: SmartArtColorScheme): void;
1123
+ replaceSmartArtData(data: index_d_exports$2.PptxSmartArtData): void;
1124
+ setSmartArtLayout(layout: index_d_exports$2.SmartArtLayoutType): void;
1125
+ setSmartArtColorScheme(scheme: index_d_exports$2.SmartArtColorScheme): void;
1127
1126
  }
1128
1127
  /** Selection-derived state the inspector reflects, computed by `buildInspectorState`. */
1129
1128
  interface InspectorState {
@@ -1142,12 +1141,12 @@ interface InspectorState {
1142
1141
  isMedia: boolean;
1143
1142
  isTable: boolean;
1144
1143
  isSmartArt: boolean;
1145
- smartArtData: PptxSmartArtData | undefined;
1144
+ smartArtData: index_d_exports$2.PptxSmartArtData | undefined;
1146
1145
  isGroup: boolean;
1147
1146
  /** Number of children on a selected group, or undefined when not (yet) known. */
1148
1147
  groupChildCount: number | undefined;
1149
1148
  isOle: boolean;
1150
- oleObjectType: OleObjectType | undefined;
1149
+ oleObjectType: index_d_exports$2.OleObjectType | undefined;
1151
1150
  oleFileName: string | undefined;
1152
1151
  oleIsLinked: boolean;
1153
1152
  /** The OLE object's author-assigned name (`p:oleObj/@name`), if any. */
@@ -1157,7 +1156,7 @@ interface InspectorState {
1157
1156
  * needs `oleEmbeddedData`/`oleFileExtension`/`oleShowAsIcon` etc., not just
1158
1157
  * the flattened fields above). `undefined` when the selection isn't OLE.
1159
1158
  */
1160
- oleElement: OlePptxElement | undefined;
1159
+ oleElement: index_d_exports$2.OlePptxElement | undefined;
1161
1160
  x: number;
1162
1161
  y: number;
1163
1162
  width: number;
@@ -1165,12 +1164,12 @@ interface InspectorState {
1165
1164
  rotation: number;
1166
1165
  fillColor: string | undefined;
1167
1166
  /** Theme ref for `fillColor`, if any (highlights the matching theme swatch). */
1168
- fillColorRef: PptxThemeColorRef | undefined;
1167
+ fillColorRef: index_d_exports$2.PptxThemeColorRef | undefined;
1169
1168
  strokeColor: string | undefined;
1170
1169
  /** Theme ref for `strokeColor`, if any (highlights the matching theme swatch). */
1171
- strokeColorRef: PptxThemeColorRef | undefined;
1170
+ strokeColorRef: index_d_exports$2.PptxThemeColorRef | undefined;
1172
1171
  strokeWidth: number;
1173
- shapeStyle: ShapeStyle | undefined;
1172
+ shapeStyle: index_d_exports$2.ShapeStyle | undefined;
1174
1173
  shapeType: string | undefined;
1175
1174
  isConnector: boolean;
1176
1175
  fillOpacity: number;
@@ -1189,7 +1188,7 @@ interface InspectorState {
1189
1188
  paragraphMarginLeft: number;
1190
1189
  textDirection: 'horizontal' | 'vertical' | 'vertical270' | 'eaVert' | 'wordArtVert' | 'wordArtVertRtl' | 'mongolianVert';
1191
1190
  textRtl: boolean;
1192
- textStyle: TextStyle | undefined;
1191
+ textStyle: index_d_exports$2.TextStyle | undefined;
1193
1192
  selectedTextRange: InlineTextSelection$1 | null;
1194
1193
  imageBrightness: number;
1195
1194
  imageContrast: number;
@@ -1203,8 +1202,8 @@ interface InspectorState {
1203
1202
  color: string;
1204
1203
  opacity: number;
1205
1204
  };
1206
- actionClick?: ElementAction;
1207
- actionHover?: ElementAction;
1205
+ actionClick?: index_d_exports$2.ElementAction;
1206
+ actionHover?: index_d_exports$2.ElementAction;
1208
1207
  /** The selected element's alt text (accessibility description), if any. */
1209
1208
  altText: string;
1210
1209
  /** The selected element's accessibility title (`p:cNvPr/@title`), if any. */
@@ -1217,7 +1216,7 @@ interface InspectorState {
1217
1216
  * See shared's `shouldShowAccessibilitySection`.
1218
1217
  */
1219
1218
  showAccessibilitySection: boolean;
1220
- chartData?: PptxChartData;
1219
+ chartData?: index_d_exports$2.PptxChartData;
1221
1220
  /**
1222
1221
  * The on-canvas chart part selection, scoped to the selected chart element:
1223
1222
  * a `pointIndex` ring-highlights one value cell in the data grid and syncs
@@ -1229,7 +1228,7 @@ interface InspectorState {
1229
1228
  seriesIndex: number;
1230
1229
  pointIndex?: number;
1231
1230
  } | null;
1232
- media?: MediaPptxElement;
1231
+ media?: index_d_exports$2.MediaPptxElement;
1233
1232
  mediaPreviewUrl?: string;
1234
1233
  mediaPosterUrl?: string;
1235
1234
  cropLeft: number;
@@ -1255,11 +1254,11 @@ interface InspectorState {
1255
1254
  row: number;
1256
1255
  column: number;
1257
1256
  }>;
1258
- tableCellStyle: PptxTableCellStyle | undefined;
1257
+ tableCellStyle: index_d_exports$2.PptxTableCellStyle | undefined;
1259
1258
  tableColumnWidths: number[];
1260
1259
  tableRowHeights: number[];
1261
1260
  /** The selected table element itself, feeding the inspector data grid. */
1262
- tableElement?: TablePptxElement;
1261
+ tableElement?: index_d_exports$2.TablePptxElement;
1263
1262
  /**
1264
1263
  * B6: the deck's `p:clrMru`, most-recent-first, feeding the "Recent
1265
1264
  * colours" row under the fill/stroke/text colour pickers.
@@ -1291,36 +1290,36 @@ interface InspectorDeckState {
1291
1290
  * offers Maximize/Ensure Fit when there is content to rescale.
1292
1291
  */
1293
1292
  hasDeckElements: boolean;
1294
- elements: readonly PptxElement[];
1293
+ elements: readonly index_d_exports$2.PptxElement[];
1295
1294
  selectedIds: readonly string[];
1296
1295
  /** Primary selected element id (docked Animation panel target), if any. */
1297
1296
  selectedElementId?: string;
1298
- comments: readonly PptxComment[];
1297
+ comments: readonly index_d_exports$2.PptxComment[];
1299
1298
  /** Authors offered by the Comments tab's `@`-mention typeahead. */
1300
- commentMentionAuthors: readonly PptxModernCommentAuthor[];
1299
+ commentMentionAuthors: readonly index_d_exports$2.PptxModernCommentAuthor[];
1301
1300
  /** Named custom shows, for the Action Settings panel's `customShow` picker. */
1302
- customShows: readonly PptxCustomShow[];
1301
+ customShows: readonly index_d_exports$2.PptxCustomShow[];
1303
1302
  docTitle: string | undefined;
1304
1303
  docAuthor: string | undefined;
1305
1304
  editable: boolean;
1306
1305
  /** Presentation show/print settings (PRESENTATION card controls). */
1307
- presentationProperties: PptxPresentationProperties;
1306
+ presentationProperties: index_d_exports$2.PptxPresentationProperties;
1308
1307
  /** Theme parts discovered in the package (THEME card dropdown). */
1309
- themeOptions: readonly PptxThemeOption[];
1308
+ themeOptions: readonly index_d_exports$2.PptxThemeOption[];
1310
1309
  /** The visible slide (THEME OVERRIDE card), or undefined on an empty deck. */
1311
- activeSlide: PptxSlide | undefined;
1310
+ activeSlide: index_d_exports$2.PptxSlide | undefined;
1312
1311
  /** Whether inherited layout/master elements are unlocked for editing. */
1313
1312
  editTemplateMode: boolean;
1314
1313
  /** Slide masters, resolving the active slide's layout/master (SLIDE BACKGROUND card's template rows). */
1315
- slideMasters: readonly PptxSlideMaster[];
1314
+ slideMasters: readonly index_d_exports$2.PptxSlideMaster[];
1316
1315
  /** Presentation theme colours used to preview override target slots. */
1317
- colorScheme: PptxThemeColorScheme | undefined;
1316
+ colorScheme: index_d_exports$2.PptxThemeColorScheme | undefined;
1318
1317
  /** Presentation theme fonts, seeding the THEME EDITOR card's font pair. */
1319
- fontScheme: PptxThemeFontScheme | undefined;
1318
+ fontScheme: index_d_exports$2.PptxThemeFontScheme | undefined;
1320
1319
  /** The loaded theme's name (THEME EDITOR card), when the package has one. */
1321
1320
  themeName: string | undefined;
1322
1321
  /** Tag collections parsed from `ppt/tags/*.xml` (TAGS card). */
1323
- tagCollections: readonly PptxTagCollection[];
1322
+ tagCollections: readonly index_d_exports$2.PptxTagCollection[];
1324
1323
  /** Notes page size in px (NOTES & HANDOUT card), when the package has one. */
1325
1324
  notesCanvasSize: {
1326
1325
  width: number;
@@ -1353,8 +1352,8 @@ declare function createInspector(doc: Document, t: Translator, handlers: Inspect
1353
1352
  //#endregion
1354
1353
  //#region src/viewer/ui/master-view-sidebar.d.ts
1355
1354
  interface MasterViewSidebarOptions {
1356
- tab: MasterViewTab;
1357
- masters: readonly PptxSlideMaster[];
1355
+ tab: index_d_exports$2.MasterViewTab;
1356
+ masters: readonly index_d_exports$2.PptxSlideMaster[];
1358
1357
  active: {
1359
1358
  masterIndex: number;
1360
1359
  layoutIndex: number | null;
@@ -1378,9 +1377,9 @@ interface MasterViewSidebarOptions {
1378
1377
  /** B4: the sidebar's CRUD command list for the current target (`[]` when there is none). */
1379
1378
  crudActions: readonly MasterViewCrudAction[];
1380
1379
  onCrudAction(id: MasterViewCrudActionId): void;
1381
- renderStage(slide: PptxSlide, scale: number): HTMLElement;
1380
+ renderStage(slide: index_d_exports$2.PptxSlide, scale: number): HTMLElement;
1382
1381
  onSelect(masterIndex: number, layoutIndex: number | null): void;
1383
- onTabChange(tab: MasterViewTab): void;
1382
+ onTabChange(tab: index_d_exports$2.MasterViewTab): void;
1384
1383
  onCollapse(): void;
1385
1384
  onHandoutSlidesPerPageChange(count: number): void;
1386
1385
  onMasterBackgroundColorChange(color: string): void;
@@ -1494,14 +1493,14 @@ interface RibbonSlideShowHandlers {
1494
1493
  * The deck's show settings, for the Options cluster's checkbox state (shared
1495
1494
  * `readSlideShowOption` turns them into ticks).
1496
1495
  */
1497
- showOptions(): PptxPresentationProperties;
1496
+ showOptions(): index_d_exports$2.PptxPresentationProperties;
1498
1497
  /**
1499
1498
  * Commit an Options-cluster change onto the deck's show settings. Routes to
1500
1499
  * the same history-integrated `updatePresentationProperties` path the Set Up
1501
1500
  * Show dialog uses, so unticking Use Timings really does stop the show
1502
1501
  * auto-advancing.
1503
1502
  */
1504
- updateShowOptions(patch: Partial<PptxPresentationProperties>): void;
1503
+ updateShowOptions(patch: Partial<index_d_exports$2.PptxPresentationProperties>): void;
1505
1504
  }
1506
1505
  /**
1507
1506
  * Transitions tab handlers, expressed in the shared `ribbon-transitions`
@@ -1519,13 +1518,13 @@ interface RibbonTransitionHandlers {
1519
1518
  /** Commit the tab's whole draft, onto the active slide or every slide. */
1520
1519
  applyDraft(draft: RibbonTransitionDraft, applyToAll: boolean): void;
1521
1520
  /** The ACTIVE slide's raw transition, for fields the draft does not carry (the Sound picker). */
1522
- readTransition(): PptxSlideTransition | undefined;
1521
+ readTransition(): index_d_exports$2.PptxSlideTransition | undefined;
1523
1522
  /**
1524
1523
  * Merge a raw partial change onto the active slide's transition. Used by
1525
1524
  * the Sound picker: a freshly-picked file's `soundData` has no equivalent
1526
1525
  * in {@link RibbonTransitionDraft}.
1527
1526
  */
1528
- applyChange(changes: Partial<PptxSlideTransition>): void;
1527
+ applyChange(changes: Partial<index_d_exports$2.PptxSlideTransition>): void;
1529
1528
  }
1530
1529
  /**
1531
1530
  * Design tab handlers. Both theme commands act on the PRESENTATION theme, as
@@ -1538,8 +1537,8 @@ interface RibbonTransitionHandlers {
1538
1537
  interface RibbonDesignHandlers {
1539
1538
  applyPresentationTheme(presetId: string): void;
1540
1539
  applyThemeEdit(payload: {
1541
- colorScheme: PptxThemeColorScheme;
1542
- fontScheme: PptxThemeFontScheme;
1540
+ colorScheme: index_d_exports$2.PptxThemeColorScheme;
1541
+ fontScheme: index_d_exports$2.PptxThemeFontScheme;
1543
1542
  name: string;
1544
1543
  }): void | Promise<void>;
1545
1544
  }
@@ -1628,13 +1627,13 @@ interface RibbonSelectionState {
1628
1627
  selectionGroupable?: boolean;
1629
1628
  formatPainterActive?: boolean;
1630
1629
  selectedElementId?: string;
1631
- animations?: readonly PptxElementAnimation[];
1630
+ animations?: readonly index_d_exports$2.PptxElementAnimation[];
1632
1631
  /** Read-only anchors for the active slide's deck-native effect groups. */
1633
- animationTimelineAnchors?: readonly PptxAnimationTimelineAnchor[];
1632
+ animationTimelineAnchors?: readonly index_d_exports$2.PptxAnimationTimelineAnchor[];
1634
1633
  /** Available slide layouts for the Slides group's New Slide / Layout menus. */
1635
1634
  layouts?: readonly LayoutOption[];
1636
1635
  /** Artwork for the layout gallery thumbnails, keyed by layout path. */
1637
- layoutPreviews?: ReadonlyMap<string, PptxLayoutPreview>;
1636
+ layoutPreviews?: ReadonlyMap<string, index_d_exports$2.PptxLayoutPreview>;
1638
1637
  /** `layoutPath` of the active slide, marking the current gallery tile. */
1639
1638
  currentLayoutPath?: string;
1640
1639
  /** Theme major/minor latin faces, leading the font dropdown. */
@@ -1662,10 +1661,10 @@ interface RibbonSelectionState {
1662
1661
  //#endregion
1663
1662
  //#region src/viewer/ui/mobile-action-sheets.d.ts
1664
1663
  /** Paint one slide at `scale`, the same callback the desktop rail is given. */
1665
- type MobileThumbnailRenderer = (slide: PptxSlide, scale: number) => HTMLElement;
1664
+ type MobileThumbnailRenderer = (slide: index_d_exports$2.PptxSlide, scale: number) => HTMLElement;
1666
1665
  interface MobileActionSheets {
1667
1666
  el: HTMLElement;
1668
- update(current: number, slides: readonly PptxSlide[], comments: readonly PptxComment[]): void;
1667
+ update(current: number, slides: readonly index_d_exports$2.PptxSlide[], comments: readonly index_d_exports$2.PptxComment[]): void;
1669
1668
  /**
1670
1669
  * Hand the Slides sheet the deck renderer, so it can show the slides
1671
1670
  * themselves rather than a list of their titles (which is all it had, and
@@ -1714,10 +1713,10 @@ declare function createMobileToolbar(doc: Document, t: Translator, handlers: Mob
1714
1713
  //#region src/viewer/ui/notes-panel.d.ts
1715
1714
  /** State the panel needs to reflect: the slide to read notes from, and whether edits are allowed. */
1716
1715
  interface NotesPanelUpdate {
1717
- slide: PptxSlide | undefined;
1716
+ slide: index_d_exports$2.PptxSlide | undefined;
1718
1717
  editable: boolean;
1719
1718
  /** Notes-master per-level text defaults (font size, indent, etc.) to fall back to when a segment omits them. */
1720
- notesStyle?: PptxTextStyleLevels;
1719
+ notesStyle?: index_d_exports$2.PptxTextStyleLevels;
1721
1720
  }
1722
1721
  interface NotesPanel {
1723
1722
  el: HTMLElement;
@@ -1741,7 +1740,7 @@ interface NotesPanel {
1741
1740
  * mobile-safe rationale documented on the Vue editor. Edits commit on
1742
1741
  * `change` / `blur`, never per keystroke.
1743
1742
  */
1744
- declare function createNotesPanel(doc: Document, t: Translator, onToggle: () => void, onCommit: (notes: string, notesSegments?: TextSegment[]) => void): NotesPanel;
1743
+ declare function createNotesPanel(doc: Document, t: Translator, onToggle: () => void, onCommit: (notes: string, notesSegments?: index_d_exports$2.TextSegment[]) => void): NotesPanel;
1745
1744
  //#endregion
1746
1745
  //#region src/viewer/ui/presentation-toolbar.d.ts
1747
1746
  /**
@@ -1848,7 +1847,7 @@ interface Ribbon {
1848
1847
  setEditable(editable: boolean): void;
1849
1848
  setSpellCheck?(enabled: boolean): void;
1850
1849
  /** Reflect the current selection across the Home tab's Font/Paragraph/Arrange groups. */
1851
- updateSelection(selectedElement: PptxElement | undefined, extra: RibbonSelectionState): void;
1850
+ updateSelection(selectedElement: index_d_exports$2.PptxElement | undefined, extra: RibbonSelectionState): void;
1852
1851
  /** Reflect the current Draw tab tool/colour/width (store-driven). */
1853
1852
  setDrawState(state: RibbonDrawState): void;
1854
1853
  setTemplateEditing(active: boolean): void;
@@ -1958,9 +1957,9 @@ interface EditorController {
1958
1957
  duplicateSelected(): string | null;
1959
1958
  getSelectedElementId(): string | null;
1960
1959
  selectElements(ids: string[]): void;
1961
- applyElementPatch(id: string, patch: Partial<PptxElement>): void;
1962
- commitSlides(slides: PptxSlide[], currentSlide?: number): void;
1963
- commitElementUpdates(slides: PptxSlide[], label?: string): void;
1960
+ applyElementPatch(id: string, patch: Partial<index_d_exports$2.PptxElement>): void;
1961
+ commitSlides(slides: index_d_exports$2.PptxSlide[], currentSlide?: number): void;
1962
+ commitElementUpdates(slides: index_d_exports$2.PptxSlide[], label?: string): void;
1964
1963
  /** Switch the Draw ribbon tab's active tool (also clears selection when leaving `'select'`). */
1965
1964
  setDrawTool(tool: DrawTool): void;
1966
1965
  /** Set the pen/highlighter stroke colour used by the next committed stroke. */
@@ -1975,16 +1974,16 @@ interface EditorController {
1975
1974
  getEditActions(): EditActions;
1976
1975
  /** The Find & Replace actions for the ribbon's docked panel. */
1977
1976
  getFindReplaceActions(): FindReplaceActions;
1978
- commitNotes(notes: string, notesSegments?: TextSegment[]): void;
1977
+ commitNotes(notes: string, notesSegments?: index_d_exports$2.TextSegment[]): void;
1979
1978
  setHandoutSlidesPerPage(count: number): void;
1980
- updateDocumentProperties(core: PptxCoreProperties, app: PptxAppProperties, custom: PptxCustomProperty[]): void;
1981
- updatePresentationProperties(value: PptxPresentationProperties): void;
1979
+ updateDocumentProperties(core: index_d_exports$2.PptxCoreProperties, app: index_d_exports$2.PptxAppProperties, custom: index_d_exports$2.PptxCustomProperty[]): void;
1980
+ updatePresentationProperties(value: index_d_exports$2.PptxPresentationProperties): void;
1982
1981
  /** Replace the whole section list as one undoable step (AI deck seam). */
1983
- updateSections(value: PptxSection[]): void;
1984
- updateHeaderFooter(value: PptxHeaderFooter): void;
1985
- updateCustomShows(value: PptxCustomShow[]): void;
1986
- save(format?: PptxSaveFormat): Promise<Uint8Array>;
1987
- downloadAs(format: PptxSaveFormat, fileName?: string): Promise<void>;
1982
+ updateSections(value: index_d_exports$2.PptxSection[]): void;
1983
+ updateHeaderFooter(value: index_d_exports$2.PptxHeaderFooter): void;
1984
+ updateCustomShows(value: index_d_exports$2.PptxCustomShow[]): void;
1985
+ save(format?: index_d_exports$2.PptxSaveFormat): Promise<Uint8Array>;
1986
+ downloadAs(format: index_d_exports$2.PptxSaveFormat, fileName?: string): Promise<void>;
1988
1987
  downloadPptx(fileName?: string): Promise<void>;
1989
1988
  destroy(): void;
1990
1989
  }
@@ -2014,10 +2013,10 @@ interface OverlayBox {
2014
2013
  interface InlineEditorSession {
2015
2014
  el: HTMLElement;
2016
2015
  /** Recognize a merged model revision before the ordinary model replacement guard. */
2017
- checkModel?: (model: PptxElement | undefined) => boolean;
2016
+ checkModel?: (model: index_d_exports$2.PptxElement | undefined) => boolean;
2018
2017
  /** Canonical accepted state only, for retirement before a host permission veto. */
2019
2018
  readAccepted?: () => InlineTextEditSnapshot$1 | undefined;
2020
- activateList(element: PptxElement): boolean | undefined;
2019
+ activateList(element: index_d_exports$2.PptxElement): boolean | undefined;
2021
2020
  readSnapshot(): InlineTextEditSnapshot$1 | undefined;
2022
2021
  readList(): InlineListReadResult$1 | undefined;
2023
2022
  formatSnapshot(snapshot: InlineTextEditSnapshot$1): boolean;
@@ -2033,7 +2032,7 @@ interface OpenInlineEditorOptions {
2033
2032
  /** Element geometry in element px, plus the stage scale for placement. */
2034
2033
  box: OverlayBox;
2035
2034
  scale: number;
2036
- element: PptxElement;
2035
+ element: index_d_exports$2.PptxElement;
2037
2036
  spellCheck?: boolean;
2038
2037
  /** Use the existing connected slide channel, never create another session. */
2039
2038
  collaboration?: {
@@ -2073,7 +2072,7 @@ interface OpenInlineEditorOptions {
2073
2072
  * the literal "[Equation]" placeholder and committing would permanently drop
2074
2073
  * the OMML (`textSegments[].equationXml`). Mirrors the Vue/React/Angular guard.
2075
2074
  */
2076
- export declare function canInlineEditElement(element: PptxElement | undefined): boolean;
2075
+ export declare function canInlineEditElement(element: index_d_exports$2.PptxElement | undefined): boolean;
2077
2076
  /**
2078
2077
  * Open the contenteditable editing surface over an element. Commits on blur
2079
2078
  * and on Escape; all keystrokes stay local (never trigger viewer shortcuts).
@@ -2103,14 +2102,14 @@ interface ThumbnailRailMenuDeps {
2103
2102
  interface ThumbnailRail {
2104
2103
  el: HTMLElement;
2105
2104
  /** Rebuild the rail for a new slide list (uses `renderStage` per slide). */
2106
- render(slides: PptxSlide[], canvasSize: CanvasSize, renderStage: (slide: PptxSlide, scale: number) => HTMLElement, sections?: readonly PptxSection[], sectionActions?: ThumbnailSectionActions): void;
2105
+ render(slides: index_d_exports$2.PptxSlide[], canvasSize: CanvasSize, renderStage: (slide: index_d_exports$2.PptxSlide, scale: number) => HTMLElement, sections?: readonly index_d_exports$2.PptxSection[], sectionActions?: ThumbnailSectionActions): void;
2107
2106
  /** Highlight the active slide and scroll it into view. */
2108
2107
  setActive(index: number): void;
2109
2108
  /** Show or hide the rail. */
2110
2109
  setVisible(visible: boolean): void;
2111
2110
  /** Show or hide the pinned Add Slide footer (editing enabled only). */
2112
2111
  setAddSlideVisible(visible: boolean): void;
2113
- renderMasters(masters: readonly PptxSlideMaster[], canvasSize: CanvasSize, renderStage: (slide: PptxSlide, scale: number) => HTMLElement, onSelect: (masterIndex: number, layoutIndex: number | null) => void, active: {
2112
+ renderMasters(masters: readonly index_d_exports$2.PptxSlideMaster[], canvasSize: CanvasSize, renderStage: (slide: index_d_exports$2.PptxSlide, scale: number) => HTMLElement, onSelect: (masterIndex: number, layoutIndex: number | null) => void, active: {
2114
2113
  masterIndex: number;
2115
2114
  layoutIndex: number | null;
2116
2115
  }): void;
@@ -2240,7 +2239,7 @@ interface ChromeOptions {
2240
2239
  /** Header click on the notes panel; shares the ribbon Notes button's handler. */
2241
2240
  onToggleNotes(): void;
2242
2241
  /** Fired when the notes textarea commits (change/blur) in editable mode. */
2243
- onCommitNotes(notes: string, notesSegments?: TextSegment[]): void;
2242
+ onCommitNotes(notes: string, notesSegments?: index_d_exports$2.TextSegment[]): void;
2244
2243
  /** "Enable Editing" click on the Protected View banner. */
2245
2244
  onEnableEditing(): void;
2246
2245
  /** "Edit anyway" click on the read-only recommendation banner. */
@@ -2596,7 +2595,7 @@ declare function makeDropdown<T>(doc: Document, options: DropdownOptions<T>): Dr
2596
2595
  /** The AI hooks the two AI entries need (structurally the `AiFocusController`). */
2597
2596
  interface ContextMenuAiHooks {
2598
2597
  askAboutSelection(): void;
2599
- fixElement(element: PptxElement | null, slideIndex: number): void;
2598
+ fixElement(element: index_d_exports$2.PptxElement | null, slideIndex: number): void;
2600
2599
  }
2601
2600
  /** The table cell the menu was opened on, plus what the shared builder asks about it. */
2602
2601
  interface ContextMenuTableTarget {
@@ -2623,7 +2622,7 @@ declare function readTableCellTarget(target: EventTarget | null): TableCellPosit
2623
2622
  * table cell. The cell under the cursor wins over the stored selection so the
2624
2623
  * commands act on what the user actually aimed at.
2625
2624
  */
2626
- declare function resolveTableTarget(state: ViewerState, element: PptxElement | null, target: EventTarget | null): ContextMenuTableTarget | null;
2625
+ declare function resolveTableTarget(state: ViewerState, element: index_d_exports$2.PptxElement | null, target: EventTarget | null): ContextMenuTableTarget | null;
2627
2626
  /** Run `id` against the live editor actions. Table commands no-op without a cell. */
2628
2627
  declare function runContextMenuCommand(id: ContextMenuCommandId, deps: ContextMenuCommandDeps, table: ContextMenuTableTarget | null): void;
2629
2628
  //#endregion
@@ -2873,7 +2872,7 @@ interface SwatchPickerHandle {
2873
2872
  /** Set the deck's theme colour map; the theme-swatch grid hides itself when `undefined`. */
2874
2873
  setThemeColorMap(themeColorMap: Record<string, string> | undefined): void;
2875
2874
  /** Highlight the swatch matching the element's current theme ref, if any. */
2876
- setSelectedRef(ref: PptxThemeColorRef | undefined): void;
2875
+ setSelectedRef(ref: index_d_exports$2.PptxThemeColorRef | undefined): void;
2877
2876
  }
2878
2877
  /**
2879
2878
  * A reusable swatch-grid colour picker: a small pill trigger (icon + a
@@ -2955,7 +2954,7 @@ interface SyncStageParams {
2955
2954
  /** The freshly rendered, fully-visible main stage node. */
2956
2955
  stage: HTMLElement;
2957
2956
  /** The slide the stage renders, or `undefined` when empty. */
2958
- slide: PptxSlide | undefined;
2957
+ slide: index_d_exports$2.PptxSlide | undefined;
2959
2958
  /** Zero-based index of the rendered slide. */
2960
2959
  slideIndex: number;
2961
2960
  /** True only when the live (fullscreen) presentation stage is active. */
@@ -3031,7 +3030,7 @@ interface PresentationPlayback {
3031
3030
  * override for the upcoming `syncStage` call, then returns the slide
3032
3031
  * index the caller should navigate to.
3033
3032
  */
3034
- navigateToZoomTarget(target: ZoomNavigationTarget, returnSlideIndex: number, slides: readonly PptxSlide[]): number;
3033
+ navigateToZoomTarget(target: ZoomNavigationTarget, returnSlideIndex: number, slides: readonly index_d_exports$2.PptxSlide[]): number;
3035
3034
  /**
3036
3035
  * Consulted by a forward advance BEFORE it computes the natural next
3037
3036
  * slide: once the show reaches the end of a pending zoom excursion's
@@ -3122,25 +3121,25 @@ interface RenderControllerDeps {
3122
3121
  onZoomClick(target: ZoomNavigationTarget, returnSlideIndex: number): void;
3123
3122
  /** A canvas comment marker dot was clicked; bring the comments UI on screen. */
3124
3123
  onCommentMarkerClick?(commentId: string): void;
3125
- onSmartArtNodeTextChange?(element: PptxElement, nodeId: string, text: string): void;
3126
- onSmartArtNodeFillChange?(element: PptxElement, nodeId: string, fill: string): void;
3124
+ onSmartArtNodeTextChange?(element: index_d_exports$2.PptxElement, nodeId: string, text: string): void;
3125
+ onSmartArtNodeFillChange?(element: index_d_exports$2.PptxElement, nodeId: string, fill: string): void;
3127
3126
  /**
3128
3127
  * Commit a chart data point dragged on the canvas. Gated on `interactive`
3129
3128
  * below with the SmartArt hooks, so thumbnails, the presenter console and
3130
3129
  * export rasters never arm the chart marks.
3131
3130
  */
3132
- onChartPointChange?(element: PptxElement, chartData: PptxChartData): void;
3131
+ onChartPointChange?(element: index_d_exports$2.PptxElement, chartData: index_d_exports$2.PptxChartData): void;
3133
3132
  /**
3134
3133
  * A table column/row boundary was dragged on the canvas. Gated on
3135
3134
  * `interactive` with the other on-canvas edit hooks.
3136
3135
  */
3137
- onTableResizeColumns?(element: PptxElement, widths: number[]): void;
3138
- onTableResizeRow?(element: PptxElement, rowIndex: number, height: number): void;
3136
+ onTableResizeColumns?(element: index_d_exports$2.PptxElement, widths: number[]): void;
3137
+ onTableResizeRow?(element: index_d_exports$2.PptxElement, rowIndex: number, height: number): void;
3139
3138
  /**
3140
3139
  * A chart part was pressed on the canvas. Gated on `interactive` with the
3141
3140
  * other chart/SmartArt hooks. See `ElementRenderContext.onChartPartSelect`.
3142
3141
  */
3143
- onChartPartSelect?(element: PptxElement, part: ChartPartRef): void;
3142
+ onChartPartSelect?(element: index_d_exports$2.PptxElement, part: ChartPartRef): void;
3144
3143
  /**
3145
3144
  * Invoked after every stage render (the stage host is rebuilt with
3146
3145
  * `replaceChildren`); the editor re-mounts its overlay layer here.
@@ -3159,7 +3158,7 @@ interface RenderController {
3159
3158
  * surfaces outside the main canvas such as Reading View. Same path the
3160
3159
  * thumbnail rail draws through, so no surface grows its own element renderer.
3161
3160
  */
3162
- renderSlideNode(slide: PptxSlide, scale: number): HTMLElement;
3161
+ renderSlideNode(slide: index_d_exports$2.PptxSlide, scale: number): HTMLElement;
3163
3162
  /** Resolve the requested zoom into a concrete scale factor. */
3164
3163
  effectiveScale(): number;
3165
3164
  /**
@@ -3223,7 +3222,7 @@ type AutosaveStatus = 'idle' | 'saving' | 'saved' | 'error';
3223
3222
  interface AutosaveControllerDeps {
3224
3223
  store: Store<ViewerState>;
3225
3224
  /** Live core handler used to serialize the current slides to `.pptx` bytes. */
3226
- getHandler: () => PptxHandler | null;
3225
+ getHandler: () => index_d_exports$2.PptxHandler | null;
3227
3226
  /** IndexedDB key for the recovery snapshot (usually the open file's name). */
3228
3227
  filePath: string;
3229
3228
  /** Public document name rendered in the recovery message. */
@@ -3573,9 +3572,9 @@ declare function createExportProgressUi(deps: ExportProgressUiDeps): ExportProgr
3573
3572
  //#endregion
3574
3573
  //#region src/viewer/export/export-svg.d.ts
3575
3574
  /** Export one parsed slide as resolution-independent SVG markup. */
3576
- export declare function exportSlideToSvg(slide: PptxSlide, width: number, height: number, options?: SvgExportOptions): string;
3575
+ export declare function exportSlideToSvg(slide: index_d_exports$2.PptxSlide, width: number, height: number, options?: index_d_exports$2.SvgExportOptions): string;
3577
3576
  /** Export the selected slides in a parsed presentation as SVG markup. */
3578
- export declare function exportAllSlidesToSvg(data: PptxData, options?: SvgExportOptions): string[];
3577
+ export declare function exportAllSlidesToSvg(data: index_d_exports$2.PptxData, options?: index_d_exports$2.SvgExportOptions): string[];
3579
3578
  //#endregion
3580
3579
  //#region src/viewer/export/rasterize-slide.d.ts
3581
3580
  interface RasterizeSlideDeps {
@@ -4030,9 +4029,9 @@ interface PptxViewerInstance extends PowerPointViewerAPI, ViewerCustomizationApi
4030
4029
  canUndo(): boolean;
4031
4030
  canRedo(): boolean;
4032
4031
  /** Serialise the (edited) presentation to `.pptx` bytes and clear dirty. */
4033
- save(format?: PptxSaveFormat): Promise<Uint8Array>;
4032
+ save(format?: index_d_exports$2.PptxSaveFormat): Promise<Uint8Array>;
4034
4033
  /** Save and download a presentation in a supported OpenXML format. */
4035
- downloadAs(format: PptxSaveFormat, fileName?: string): Promise<void>;
4034
+ downloadAs(format: index_d_exports$2.PptxSaveFormat, fileName?: string): Promise<void>;
4036
4035
  /** `save()` + trigger a browser download (default `presentation.pptx`). */
4037
4036
  downloadPptx(fileName?: string): Promise<void>;
4038
4037
  /** Delete the selected element (no-op without a selection). */
@@ -4085,7 +4084,7 @@ interface PptxViewerInstance extends PowerPointViewerAPI, ViewerCustomizationApi
4085
4084
  * (or `null`). Enables advanced operations (save, markdown conversion,
4086
4085
  * archive access) without extra APIs here.
4087
4086
  */
4088
- getHandler(): PptxHandler | null;
4087
+ getHandler(): index_d_exports$2.PptxHandler | null;
4089
4088
  /**
4090
4089
  * Start (or restart) a real-time collaboration session. Resolves once the
4091
4090
  * transport is created; connection status arrives via
@@ -4135,7 +4134,7 @@ interface ChromeHost {
4135
4134
  /** The viewer's live theme (kept in sync by `setTheme`); read on mount/remount instead of the static `options.theme`. */
4136
4135
  currentTheme: ViewerTheme$1 | undefined;
4137
4136
  editor: {
4138
- commitNotes(notes: string, notesSegments?: TextSegment[]): void;
4137
+ commitNotes(notes: string, notesSegments?: index_d_exports$2.TextSegment[]): void;
4139
4138
  getEditActions(): EditActions;
4140
4139
  getFindReplaceActions(): FindReplaceActions;
4141
4140
  setDrawTool(tool: DrawTool): void;
@@ -4182,7 +4181,7 @@ interface ChromeHost {
4182
4181
  /** Whether the host permits that switch to change anything. */
4183
4182
  isAutosaveToggleAvailable(): boolean;
4184
4183
  downloadPptx(): Promise<void>;
4185
- downloadAs(format: PptxSaveFormat): Promise<void>;
4184
+ downloadAs(format: index_d_exports$2.PptxSaveFormat): Promise<void>;
4186
4185
  toggleNotes(): void;
4187
4186
  goToSlide(index: number): void;
4188
4187
  /** Home: the show's first slide (skips a hidden slide 1 while presenting). */
@@ -4259,7 +4258,7 @@ interface ChromeHost {
4259
4258
  * The deck's parsed `ppt/tableStyles.xml` map, for the table properties
4260
4259
  * panel's "Edit style...".
4261
4260
  */
4262
- getTableStyleMap(): ParsedTableStyleMap | undefined;
4261
+ getTableStyleMap(): index_d_exports$2.ParsedTableStyleMap | undefined;
4263
4262
  /** The current theme colour map (scheme key -> hex), for resolving scheme-based table style colours. */
4264
4263
  getThemeColorMap(): Record<string, string> | undefined;
4265
4264
  toggleTemplateEditing(): void;
@@ -4564,14 +4563,14 @@ export declare class PptxViewer extends ViewerCustomizationHost implements PptxV
4564
4563
  getActiveSlideIndex: () => number;
4565
4564
  setActiveSlideIndex: (index: number) => void;
4566
4565
  isDirty: () => boolean;
4567
- getSlides: () => readonly PptxSlide[];
4568
- getSlide: (index: number) => PptxSlide | undefined;
4569
- getActiveSlide: () => PptxSlide | undefined;
4570
- getElements: (index?: number) => readonly PptxElement[];
4571
- getElementById: (id: string, index?: number) => PptxElement | undefined;
4566
+ getSlides: () => readonly index_d_exports$2.PptxSlide[];
4567
+ getSlide: (index: number) => index_d_exports$2.PptxSlide | undefined;
4568
+ getActiveSlide: () => index_d_exports$2.PptxSlide | undefined;
4569
+ getElements: (index?: number) => readonly index_d_exports$2.PptxElement[];
4570
+ getElementById: (id: string, index?: number) => index_d_exports$2.PptxElement | undefined;
4572
4571
  updateElements: (updates: readonly ElementUpdate$1[], options?: ElementUpdateOptions$1) => Promise<void>;
4573
- updateElement: (id: string, updates: Partial<PptxElement>) => void;
4574
- addElement: (element: PptxElement) => string | undefined;
4572
+ updateElement: (id: string, updates: Partial<index_d_exports$2.PptxElement>) => void;
4573
+ addElement: (element: index_d_exports$2.PptxElement) => string | undefined;
4575
4574
  deleteElements: (ids: string[]) => void;
4576
4575
  duplicateElement: (id: string) => string | undefined;
4577
4576
  getSelectedElementIds: () => string[];
@@ -4815,7 +4814,7 @@ export declare class PptxViewer extends ViewerCustomizationHost implements PptxV
4815
4814
  * The deck's parsed `ppt/tableStyles.xml` map, for the table properties
4816
4815
  * panel's "Edit style...".
4817
4816
  */
4818
- getTableStyleMap(): ParsedTableStyleMap | undefined;
4817
+ getTableStyleMap(): index_d_exports$2.ParsedTableStyleMap | undefined;
4819
4818
  /** The current theme colour map (scheme key -> hex), for resolving scheme-based table style colours. */
4820
4819
  getThemeColorMap(): Record<string, string> | undefined;
4821
4820
  /**
@@ -4827,8 +4826,8 @@ export declare class PptxViewer extends ViewerCustomizationHost implements PptxV
4827
4826
  getRecentPresentationsCount(): number;
4828
4827
  canUndo: () => boolean;
4829
4828
  canRedo: () => boolean;
4830
- save(format?: PptxSaveFormat): Promise<Uint8Array>;
4831
- downloadAs(format: PptxSaveFormat, fileName?: string): Promise<void>;
4829
+ save(format?: index_d_exports$2.PptxSaveFormat): Promise<Uint8Array>;
4830
+ downloadAs(format: index_d_exports$2.PptxSaveFormat, fileName?: string): Promise<void>;
4832
4831
  downloadPptx(fileName?: string): Promise<void>;
4833
4832
  /**
4834
4833
  * Options > Accessibility > "feedback with sound" cue, plus Options > Save >
@@ -4846,7 +4845,7 @@ export declare class PptxViewer extends ViewerCustomizationHost implements PptxV
4846
4845
  enterPresentation(): Promise<void>;
4847
4846
  exitPresentation(): Promise<void>;
4848
4847
  getRegistry: () => index_d_exports$1.ElementRendererRegistry;
4849
- getHandler: () => PptxHandler | null;
4848
+ getHandler: () => index_d_exports$2.PptxHandler | null;
4850
4849
  startCollaboration(config: CollaborationConfig): Promise<void>;
4851
4850
  stopCollaboration: () => void;
4852
4851
  getCollaborationStatus: () => ConnectionStatus;
@@ -4879,14 +4878,14 @@ export declare function createPptxViewer(container: HTMLElement, options?: PptxV
4879
4878
  interface CollaborationControllerDeps {
4880
4879
  store: Store<ViewerState>;
4881
4880
  /** Live core handler (owner-role write-back re-serializes through it). */
4882
- getHandler: () => PptxHandler | null;
4881
+ getHandler: () => index_d_exports$2.PptxHandler | null;
4883
4882
  /**
4884
4883
  * Session-level save options (view properties, table styles, tags, deck
4885
4884
  * properties, ...), built the same way as the Save/Export path
4886
4885
  * (`buildDeckSaveOptions`). Without this the elected-writer write-back
4887
4886
  * dropped every session-level edit outside `slides`.
4888
4887
  */
4889
- getSaveOptions?: () => PptxHandlerSaveOptions;
4888
+ getSaveOptions?: () => index_d_exports$2.PptxHandlerSaveOptions;
4890
4889
  /** Enforce the read-only `viewer` role by disabling editing. */
4891
4890
  setEditable: (editable: boolean) => void;
4892
4891
  /** When supplied, apply a session restriction without replacing host edit permission. */
@@ -4995,7 +4994,7 @@ export declare function createCollaborationCursors(doc: Document): Collaboration
4995
4994
  interface RemoteSelectionOverlay {
4996
4995
  /** Mount as a sibling of the rendered stage inside the stage wrap. */
4997
4996
  el: HTMLElement;
4998
- update(presences: readonly SanitizedPresence$1[], elements: readonly PptxElement[], activeSlideIndex: number, scale: number): void;
4997
+ update(presences: readonly SanitizedPresence$1[], elements: readonly index_d_exports$2.PptxElement[], activeSlideIndex: number, scale: number): void;
4999
4998
  destroy(): void;
5000
4999
  }
5001
5000
  //#endregion
@@ -5063,7 +5062,7 @@ declare function ensureViewerStyles(doc: Document): void;
5063
5062
  /** The complete viewer stylesheet text (for hosts that self-manage CSS). */
5064
5063
  export declare function getViewerCss(): string;
5065
5064
  declare namespace index_d_exports {
5066
- export { AccessibilityPanel, AutosaveController, AutosaveRecord, AutosaveStatus, ButtonHandle, ChromeOptions, CollaborationConfig, CollaborationController, CollaborationRole, CollaborationTransport, ColorControlHandle, ConnectionStatus, ContextMenuAiHooks, ContextMenuCommandDeps, ContextMenuTableTarget, DEFAULT_RIBBON_TAB, DrawTool, DropdownHandle, DropdownItem, DropdownOptions, EditActions, ElementContextMenu, ElementContextMenuDeps, ExportCaptureDeps, ExportController, ExportControllerDeps, ExportGifOptions, ExportLifecycle, ExportLifecycleDeps, ExportPdfOptions, ExportProgress, ExportProgressModal, ExportProgressModalDeps, ExportProgressUi, ExportProgressUiDeps, ExportVideoDeps, ExportVideoOptions, FindReplaceActions, FindReplacePanel, IconName, Inspector, InspectorHandlers, InspectorState, KeyboardHandlers, LoadPresentationOptions, LoadedPresentation, MasterViewSidebar, MasterViewSidebarOptions, MobileActionSheets, MobileToolbar, MobileToolbarHandlers, NotesPanel, NotesPanelUpdate, NumberFieldHandle, OFFICE_STANDARD_SWATCHES, OpenPrintWindow, PptxViewer, PptxViewerCallbacks, PptxViewerInstance, PptxViewerOptions, PptxViewerSource, PresentationContextMenu, PresentationContextMenuDeps, PresentationController, PresentationToolbar, PresentationToolbarHandlers, PresentationToolbarState, PresentationTouchControls, PrintOptions, ProtectedViewBanner, RIBBON_TABS, RasterizeSlide, RasterizeSlideController, RasterizeSlideDeps, RasterizeSlideToRaster, RasterizeSlideToTiles, RenderController, RenderControllerDeps, Ribbon, RibbonDesignHandlers, RibbonDrawHandlers, RibbonDrawState, RibbonEditState, RibbonFileHandlers, RibbonHandlers, RibbonInsertHandlers, RibbonNavHandlers, RibbonNavState, RibbonPrimaryHandlers, RibbonSelectionState, RibbonSlideShowHandlers, RibbonTabBar, RibbonTabDef, RibbonTabId, RulerSelection, RulerStrips, RulerStripsState, ShortcutPanel, StateSyncDeps, Store, StoreListener, SvgExportOptions, SwatchPickerHandle, SwatchPickerOptions, ThumbnailRail, TouchGestureHandlers, TranslationMessages, Translator, ViewerChrome, ViewerExportApi, ViewerExportHost, ViewerState, ZoomLevel, applyThemeVars, attachKeyboardNavigation, attachTouchGestures, buildViewerChrome, buildViewerCss, clampSlideIndex, createAccessibilityPanel, createAutosaveController, createCollaborationController, createExportController, createExportLifecycle, createExportProgressModal, createExportProgressUi, createFindReplacePanel, createIcon, createInitialViewerState, createInspector, createMasterViewSidebar, createMobileActionSheets, createMobileToolbar, createNotesPanel, createPptxViewer, createPresentationController, createPresentationToolbar, createPresentationTouchControls, createProtectedViewBanner, createRasterizeSlide, createRenderController, createRibbon, createRibbonTabBar, createRulerStrips, createShortcutPanel, createStateSync, createStore, createThumbnailRail, createTranslator, ensureViewerStyles, exportAllSlidesToSvg, exportSlideToSvg, getViewerCss, isRibbonTab, loadPresentation, makeButton, makeColorControl, makeDropdown, makeNumberField, makeSwatchPicker, mountElementContextMenu, mountPresentationContextMenu, readTableCellTarget, renderToCanvas, resolveSourceToBuffer, resolveTableTarget, revokeBlobUrls, runContextMenuCommand, runGifExport, runPrint, runVideoExport };
5065
+ export { AccessibilityPanel, AutosaveController, AutosaveRecord, AutosaveStatus, ButtonHandle, ChromeOptions, CollaborationConfig, CollaborationController, CollaborationRole, CollaborationTransport, ColorControlHandle, ConnectionStatus, ContextMenuAiHooks, ContextMenuCommandDeps, ContextMenuTableTarget, DEFAULT_RIBBON_TAB, DrawTool, DropdownHandle, DropdownItem, DropdownOptions, EditActions, ElementContextMenu, ElementContextMenuDeps, ExportCaptureDeps, ExportController, ExportControllerDeps, ExportGifOptions, ExportLifecycle, ExportLifecycleDeps, ExportPdfOptions, ExportProgress, ExportProgressModal, ExportProgressModalDeps, ExportProgressUi, ExportProgressUiDeps, ExportVideoDeps, ExportVideoOptions, FindReplaceActions, FindReplacePanel, IconName, Inspector, InspectorHandlers, InspectorState, KeyboardHandlers, LoadPresentationOptions, LoadedPresentation, MasterViewSidebar, MasterViewSidebarOptions, MobileActionSheets, MobileToolbar, MobileToolbarHandlers, NotesPanel, NotesPanelUpdate, NumberFieldHandle, OFFICE_STANDARD_SWATCHES, OpenPrintWindow, PptxViewer, PptxViewerCallbacks, PptxViewerInstance, PptxViewerOptions, PptxViewerSource, PresentationContextMenu, PresentationContextMenuDeps, PresentationController, PresentationToolbar, PresentationToolbarHandlers, PresentationToolbarState, PresentationTouchControls, PrintOptions, ProtectedViewBanner, RIBBON_TABS, RasterizeSlide, RasterizeSlideController, RasterizeSlideDeps, RasterizeSlideToRaster, RasterizeSlideToTiles, RenderController, RenderControllerDeps, Ribbon, RibbonDesignHandlers, RibbonDrawHandlers, RibbonDrawState, RibbonEditState, RibbonFileHandlers, RibbonHandlers, RibbonInsertHandlers, RibbonNavHandlers, RibbonNavState, RibbonPrimaryHandlers, RibbonSelectionState, RibbonSlideShowHandlers, RibbonTabBar, RibbonTabDef, RibbonTabId, RulerSelection, RulerStrips, RulerStripsState, ShortcutPanel, StateSyncDeps, Store, StoreListener, index_d_exports$2.SvgExportOptions as SvgExportOptions, SwatchPickerHandle, SwatchPickerOptions, ThumbnailRail, TouchGestureHandlers, TranslationMessages, Translator, ViewerChrome, ViewerExportApi, ViewerExportHost, ViewerState, ZoomLevel, applyThemeVars, attachKeyboardNavigation, attachTouchGestures, buildViewerChrome, buildViewerCss, clampSlideIndex, createAccessibilityPanel, createAutosaveController, createCollaborationController, createExportController, createExportLifecycle, createExportProgressModal, createExportProgressUi, createFindReplacePanel, createIcon, createInitialViewerState, createInspector, createMasterViewSidebar, createMobileActionSheets, createMobileToolbar, createNotesPanel, createPptxViewer, createPresentationController, createPresentationToolbar, createPresentationTouchControls, createProtectedViewBanner, createRasterizeSlide, createRenderController, createRibbon, createRibbonTabBar, createRulerStrips, createShortcutPanel, createStateSync, createStore, createThumbnailRail, createTranslator, ensureViewerStyles, exportAllSlidesToSvg, exportSlideToSvg, getViewerCss, isRibbonTab, loadPresentation, makeButton, makeColorControl, makeDropdown, makeNumberField, makeSwatchPicker, mountElementContextMenu, mountPresentationContextMenu, readTableCellTarget, renderToCanvas, resolveSourceToBuffer, resolveTableTarget, revokeBlobUrls, runContextMenuCommand, runGifExport, runPrint, runVideoExport };
5067
5066
  }
5068
5067
  type CssStyleMap = index_d_exports$1.CssStyleMap;
5069
5068
  type ElementRenderContext = index_d_exports$1.ElementRenderContext;