pptx-vue-viewer 4.5.0 → 4.6.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/CHANGELOG.md +44 -0
- package/README.md +27 -26
- package/dist/{AiChatPanel-C3ESiOhR.js → AiChatPanel-C16ojpwB.js} +2 -2
- package/dist/AiChatPanel-C16ojpwB.js.br +0 -0
- package/dist/AiChatPanel-C16ojpwB.js.gz +0 -0
- package/dist/{AiChatPanel-D0CdZo3r.cjs → AiChatPanel-DJYzeX-D.cjs} +1 -1
- package/dist/AiChatPanel-DJYzeX-D.cjs.br +0 -0
- package/dist/AiChatPanel-DJYzeX-D.cjs.gz +0 -0
- package/dist/gif-encoder-0ZCLxy-9.cjs +2 -0
- package/dist/gif-encoder-0ZCLxy-9.cjs.br +0 -0
- package/dist/gif-encoder-0ZCLxy-9.cjs.gz +0 -0
- package/dist/gif-encoder-CgIIdXtK.js +2 -0
- package/dist/gif-encoder-CgIIdXtK.js.br +0 -0
- package/dist/gif-encoder-CgIIdXtK.js.gz +0 -0
- package/dist/i18n/de.cjs +1 -0
- package/dist/i18n/de.cjs.br +0 -0
- package/dist/i18n/de.cjs.gz +0 -0
- package/dist/i18n/de.mjs +1 -0
- package/dist/i18n/de.mjs.br +0 -0
- package/dist/i18n/de.mjs.gz +0 -0
- package/dist/i18n/es.cjs +1 -0
- package/dist/i18n/es.cjs.br +0 -0
- package/dist/i18n/es.cjs.gz +0 -0
- package/dist/i18n/es.mjs +1 -0
- package/dist/i18n/es.mjs.br +0 -0
- package/dist/i18n/es.mjs.gz +0 -0
- package/dist/i18n/fr.cjs +1 -0
- package/dist/i18n/fr.cjs.br +0 -0
- package/dist/i18n/fr.cjs.gz +0 -0
- package/dist/i18n/fr.mjs +1 -0
- package/dist/i18n/fr.mjs.br +0 -0
- package/dist/i18n/fr.mjs.gz +0 -0
- package/dist/i18n/zh-CN.cjs +1 -0
- package/dist/i18n/zh-CN.cjs.br +0 -0
- package/dist/i18n/zh-CN.cjs.gz +0 -0
- package/dist/i18n/zh-CN.mjs +1 -0
- package/dist/i18n/zh-CN.mjs.br +0 -0
- package/dist/i18n/zh-CN.mjs.gz +0 -0
- package/dist/{i18n-CDuAZ9uT.js → i18n-CEXYdAVl.js} +1 -0
- package/dist/i18n-CEXYdAVl.js.br +0 -0
- package/dist/{i18n-CDuAZ9uT.js.gz → i18n-CEXYdAVl.js.gz} +0 -0
- package/dist/{i18n-DPsrnKK_.cjs → i18n-Dooc9JxQ.cjs} +1 -0
- package/dist/i18n-Dooc9JxQ.cjs.br +0 -0
- package/dist/{i18n-DPsrnKK_.cjs.gz → i18n-Dooc9JxQ.cjs.gz} +0 -0
- package/dist/i18n.cjs +1 -1
- package/dist/i18n.cjs.br +0 -0
- package/dist/i18n.cjs.gz +0 -0
- package/dist/i18n.js +1 -1
- package/dist/i18n.js.br +2 -1
- package/dist/i18n.js.gz +0 -0
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.br +0 -0
- package/dist/index.cjs.gz +0 -0
- package/dist/index.d.ts +469 -1
- package/dist/index.js +3 -3
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/internals.cjs +1 -1
- package/dist/internals.cjs.br +0 -0
- package/dist/internals.cjs.gz +0 -0
- package/dist/internals.d.ts +141 -1
- package/dist/internals.js +2 -2
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/pptx-vue-viewer.css +1 -1
- package/dist/pptx-vue-viewer.css.br +0 -0
- package/dist/pptx-vue-viewer.css.gz +0 -0
- package/dist/{useViewerSettingsDialog-DG9s22Hd.cjs → useViewerSettingsDialog-CdkMG9ce.cjs} +7664 -6990
- package/dist/useViewerSettingsDialog-CdkMG9ce.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-CdkMG9ce.cjs.gz +0 -0
- package/dist/{useViewerSettingsDialog-D3fF9v6l.js → useViewerSettingsDialog-ln5W1gt1.js} +5753 -5209
- package/dist/useViewerSettingsDialog-ln5W1gt1.js.br +0 -0
- package/dist/useViewerSettingsDialog-ln5W1gt1.js.gz +0 -0
- package/dist/viewer/index.cjs +1 -1
- package/dist/viewer/index.cjs.br +0 -0
- package/dist/viewer/index.cjs.gz +0 -0
- package/dist/viewer/index.d.ts +388 -1
- package/dist/viewer/index.js +3 -3
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/{viewer-BrnxTiWa.cjs → viewer-DnCJnKEZ.cjs} +7534 -7417
- package/dist/viewer-DnCJnKEZ.cjs.br +0 -0
- package/dist/viewer-DnCJnKEZ.cjs.gz +0 -0
- package/dist/{viewer-DK5UNDHj.js → viewer-UZOm0R5A.js} +11324 -11207
- package/dist/viewer-UZOm0R5A.js.br +0 -0
- package/dist/viewer-UZOm0R5A.js.gz +0 -0
- package/package.json +1 -1
- package/dist/AiChatPanel-C3ESiOhR.js.br +0 -0
- package/dist/AiChatPanel-C3ESiOhR.js.gz +0 -0
- package/dist/AiChatPanel-D0CdZo3r.cjs.br +0 -0
- package/dist/AiChatPanel-D0CdZo3r.cjs.gz +0 -0
- package/dist/gif-encoder-BvGs54nm.cjs +0 -2
- package/dist/gif-encoder-BvGs54nm.cjs.br +0 -0
- package/dist/gif-encoder-BvGs54nm.cjs.gz +0 -0
- package/dist/gif-encoder-CtHMXqIj.js +0 -2
- package/dist/gif-encoder-CtHMXqIj.js.br +0 -0
- package/dist/gif-encoder-CtHMXqIj.js.gz +0 -0
- package/dist/i18n-CDuAZ9uT.js.br +0 -0
- package/dist/i18n-DPsrnKK_.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-D3fF9v6l.js.br +0 -0
- package/dist/useViewerSettingsDialog-D3fF9v6l.js.gz +0 -0
- package/dist/useViewerSettingsDialog-DG9s22Hd.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-DG9s22Hd.cjs.gz +0 -0
- package/dist/viewer-BrnxTiWa.cjs.br +0 -0
- package/dist/viewer-BrnxTiWa.cjs.gz +0 -0
- package/dist/viewer-DK5UNDHj.js.br +0 -0
- package/dist/viewer-DK5UNDHj.js.gz +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -540,6 +540,33 @@ declare type BackgroundInput = {
|
|
|
540
540
|
source: string;
|
|
541
541
|
};
|
|
542
542
|
|
|
543
|
+
export declare const BACKSTAGE_CARD_IDS: readonly BackstageCardId[];
|
|
544
|
+
|
|
545
|
+
export declare const BACKSTAGE_PAGE_IDS: readonly BackstagePage[];
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Every action card the File-tab backstage can show, keyed by the operation it
|
|
549
|
+
* triggers rather than by its wording.
|
|
550
|
+
*
|
|
551
|
+
* The five bindings used to hardcode a title and a body string each, which made
|
|
552
|
+
* the whole backstage untranslatable and let the copy drift: the same card
|
|
553
|
+
* carried four different descriptions depending on which binding you opened it
|
|
554
|
+
* in. Both halves now live here as a dictionary key plus an English fallback,
|
|
555
|
+
* so a wording change lands everywhere at once and a translator only has to
|
|
556
|
+
* translate it once.
|
|
557
|
+
*/
|
|
558
|
+
declare type BackstageCardId = 'protect' | 'inspect' | 'embedFonts' | 'signatures' | 'versionHistory' | 'saveAsPptx' | 'saveAsPpsx' | 'saveAsPptm' | 'saveAsPpt' | 'pdf' | 'png' | 'video' | 'gif' | 'json' | 'copyImage' | 'print' | 'share';
|
|
559
|
+
|
|
560
|
+
/** File tab (backstage) customisation. */
|
|
561
|
+
export declare interface BackstageCustomization {
|
|
562
|
+
/** Navigation entries (pages) to remove from the File tab. */
|
|
563
|
+
hiddenPages?: readonly BackstagePage[];
|
|
564
|
+
/** Action cards to remove from the pages that show them. */
|
|
565
|
+
hiddenCards?: readonly BackstageCardId[];
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
declare type BackstagePage = 'home' | 'new' | 'open' | 'info' | 'save' | 'saveAs' | 'print' | 'share' | 'export' | 'close' | 'account' | 'options';
|
|
569
|
+
|
|
543
570
|
/**
|
|
544
571
|
* 3-D effect properties, text warp (WordArt) presets, and scene/shape bevel
|
|
545
572
|
* definitions parsed from OOXML `a:sp3d`, `a:scene3d`, and `a:bodyPr/a:prstTxWarp`.
|
|
@@ -678,6 +705,24 @@ declare interface BulletInfo {
|
|
|
678
705
|
ownedByParagraph?: boolean;
|
|
679
706
|
}
|
|
680
707
|
|
|
708
|
+
export declare const CANVAS_CONTEXT_MENU_COMMAND_IDS: readonly ["paste", "layout", "reset-slide", "format-background", "grid-and-guides", "ruler"];
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* The right-click menu for the empty slide canvas (no element under the
|
|
712
|
+
* cursor), as distinct from {@link ./context-menu-commands}'s per-element menu.
|
|
713
|
+
*
|
|
714
|
+
* Right-clicking empty canvas used to do nothing at all in every binding: React
|
|
715
|
+
* and Vue both bailed out early (`getElementIdFromEvent` returns `null`, so the
|
|
716
|
+
* handler just returns) rather than opening a menu, and the other three never
|
|
717
|
+
* wired a handler for it either. PowerPoint offers Paste, Layout, Reset,
|
|
718
|
+
* Format Background and view toggles (Grid and Guides, Ruler) from this menu;
|
|
719
|
+
* this module is the one list every binding renders instead of five omissions.
|
|
720
|
+
*
|
|
721
|
+
* @module render/canvas-context-menu-commands
|
|
722
|
+
*/
|
|
723
|
+
/** Every command the empty-canvas context menu can offer, in no particular order. */
|
|
724
|
+
declare type CanvasContextMenuCommandId = 'paste' | 'layout' | 'reset-slide' | 'format-background' | 'grid-and-guides' | 'ruler';
|
|
725
|
+
|
|
681
726
|
/** Canvas dimensions in pixels. */
|
|
682
727
|
export declare interface CanvasSize {
|
|
683
728
|
width: number;
|
|
@@ -1083,6 +1128,21 @@ declare interface ContentPartPptxElement extends PptxElementBase {
|
|
|
1083
1128
|
inkPartRawXml?: XmlObject;
|
|
1084
1129
|
}
|
|
1085
1130
|
|
|
1131
|
+
/** Every command a canvas context menu can offer, in no particular order. */
|
|
1132
|
+
declare type ContextMenuCommandId = 'copy' | 'cut' | 'paste' | 'duplicate' | 'edit-text' | 'bring-forward' | 'send-backward' | 'bring-front' | 'send-back' | 'ai-ask' | 'ai-fix' | 'comment' | 'hyperlink' | 'table-insert-row-above' | 'table-insert-row-below' | 'table-delete-row' | 'table-insert-col-left' | 'table-insert-col-right' | 'table-delete-col' | 'table-merge-selected' | 'table-merge-right' | 'table-merge-down' | 'table-split' | 'group' | 'ungroup' | 'save-as-picture' | 'edit-alt-text' | 'size-and-position' | 'format-shape' | 'delete';
|
|
1133
|
+
|
|
1134
|
+
/** Right-click menu customisation. */
|
|
1135
|
+
export declare interface ContextMenuCustomization {
|
|
1136
|
+
/** Entries to remove from the element (right-click on a shape) menu. */
|
|
1137
|
+
hiddenElementCommands?: readonly ContextMenuCommandId[];
|
|
1138
|
+
/** Entries to remove from the empty-canvas menu. */
|
|
1139
|
+
hiddenCanvasCommands?: readonly CanvasContextMenuCommandId[];
|
|
1140
|
+
/** Remove the element context menu entirely. */
|
|
1141
|
+
disableElementMenu?: boolean;
|
|
1142
|
+
/** Remove the empty-canvas context menu entirely. */
|
|
1143
|
+
disableCanvasMenu?: boolean;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1086
1146
|
/**
|
|
1087
1147
|
* Decode a local image File/Blob into a centred element, fitting the slide
|
|
1088
1148
|
* without upscaling. Dimensions are slide pixels; image bytes are preserved.
|
|
@@ -1233,6 +1293,8 @@ declare interface CustomGeometryTextRect {
|
|
|
1233
1293
|
*/
|
|
1234
1294
|
export declare function defaultCssVars(): Record<string, string>;
|
|
1235
1295
|
|
|
1296
|
+
declare type DefaultExportFormat = 'pptx' | 'pdf' | 'png';
|
|
1297
|
+
|
|
1236
1298
|
/** Default border-radius. */
|
|
1237
1299
|
export declare const defaultRadius = "0.5rem";
|
|
1238
1300
|
|
|
@@ -1274,9 +1336,16 @@ declare interface DeltaOp {
|
|
|
1274
1336
|
*/
|
|
1275
1337
|
export declare function describeCollaborationShellState(state: Pick<CollaborationShellState, 'canEdit' | 'status' | 'connectedCount'>, translate: CollaborationShellTranslate): string;
|
|
1276
1338
|
|
|
1339
|
+
declare type DisplayOptimization = 'appearance' | 'compatibility';
|
|
1340
|
+
|
|
1277
1341
|
/** Active drawing/inking tool. Mirrors React `DrawingTool`. */
|
|
1278
1342
|
export declare type DrawingTool = 'select' | 'pen' | 'highlighter' | 'eraser' | 'freeform';
|
|
1279
1343
|
|
|
1344
|
+
export declare const EDITOR_SHORTCUT_ACTION_IDS: readonly ["undo", "redo", "copy", "cut", "paste", "duplicate", "delete", "selectAll", "group", "ungroup", "nudge", "prevSlide", "nextSlide", "escape", "find", "findReplace", "toggleShortcuts", "alignLeft", "alignCenter", "alignRight", "alignJustify", "increaseFontSize", "decreaseFontSize", "copyFormat", "pasteFormat", "newSlide", "hyperlink", "clearFormatting", "cycleSelectionNext", "cycleSelectionPrev", "pasteSpecial"];
|
|
1345
|
+
|
|
1346
|
+
/** A logical editor command produced by one key press. */
|
|
1347
|
+
declare type EditorKeyActionName = 'undo' | 'redo' | 'copy' | 'cut' | 'paste' | 'duplicate' | 'delete' | 'selectAll' | 'group' | 'ungroup' | 'nudge' | 'prevSlide' | 'nextSlide' | 'escape' | 'find' | 'findReplace' | 'toggleShortcuts' | 'alignLeft' | 'alignCenter' | 'alignRight' | 'alignJustify' | 'increaseFontSize' | 'decreaseFontSize' | 'copyFormat' | 'pasteFormat' | 'newSlide' | 'hyperlink' | 'clearFormatting' | 'cycleSelectionNext' | 'cycleSelectionPrev' | 'pasteSpecial';
|
|
1348
|
+
|
|
1280
1349
|
/** Typed CT_AlphaOutsetEffect with original XML retained for lossless edits. */
|
|
1281
1350
|
declare interface EffectDagAlphaOutset {
|
|
1282
1351
|
kind: 'alphaOutset';
|
|
@@ -1342,6 +1411,8 @@ declare interface EffectDagXfrm {
|
|
|
1342
1411
|
ty?: number;
|
|
1343
1412
|
}
|
|
1344
1413
|
|
|
1414
|
+
export declare const ELEMENT_CONTEXT_MENU_COMMAND_IDS: readonly ["copy", "cut", "paste", "duplicate", "edit-text", "bring-forward", "send-backward", "bring-front", "send-back", "ai-ask", "ai-fix", "comment", "hyperlink", "table-insert-row-above", "table-insert-row-below", "table-delete-row", "table-insert-col-left", "table-insert-col-right", "table-delete-col", "table-merge-selected", "table-merge-right", "table-merge-down", "table-split", "group", "ungroup", "save-as-picture", "edit-alt-text", "size-and-position", "format-shape", "delete"];
|
|
1415
|
+
|
|
1345
1416
|
/** Opaque clipboard payload: only its presence gates the Paste button. */
|
|
1346
1417
|
export declare type ElementClipboardPayload = Record<string, unknown>;
|
|
1347
1418
|
|
|
@@ -1446,6 +1517,8 @@ export declare interface ExternalCollaborationSnapshot {
|
|
|
1446
1517
|
synced: boolean;
|
|
1447
1518
|
}
|
|
1448
1519
|
|
|
1520
|
+
declare type FeedbackSoundScheme = 'modern' | 'classic';
|
|
1521
|
+
|
|
1449
1522
|
declare type FillInput = {
|
|
1450
1523
|
type: 'solid';
|
|
1451
1524
|
color: string;
|
|
@@ -1630,6 +1703,8 @@ declare interface ImagePptxElement extends PptxElementBase, PptxShapeProperties,
|
|
|
1630
1703
|
type: 'image';
|
|
1631
1704
|
}
|
|
1632
1705
|
|
|
1706
|
+
declare type ImageResolutionPreset = 'highFidelity' | 'ppi330' | 'ppi220' | 'ppi150' | 'ppi96';
|
|
1707
|
+
|
|
1633
1708
|
/**
|
|
1634
1709
|
* A freehand ink / drawing stroke captured with a stylus or mouse.
|
|
1635
1710
|
*
|
|
@@ -1819,6 +1894,19 @@ export declare function isLegacyBinaryPresentation(name: string | null | undefin
|
|
|
1819
1894
|
*/
|
|
1820
1895
|
export declare function isSupportedPresentationFile(name: string | null | undefined): boolean;
|
|
1821
1896
|
|
|
1897
|
+
/** Editor keyboard-shortcut customisation. */
|
|
1898
|
+
export declare interface KeyboardCustomization {
|
|
1899
|
+
/** Turn every editor shortcut off (the host owns the keyboard). */
|
|
1900
|
+
disableAll?: boolean;
|
|
1901
|
+
/** Editor commands whose shortcut is turned off. */
|
|
1902
|
+
disabled?: readonly EditorKeyActionName[];
|
|
1903
|
+
/**
|
|
1904
|
+
* Replacement chords per command. A remapped command no longer answers to
|
|
1905
|
+
* its built-in chord; it answers to the chord(s) given here instead.
|
|
1906
|
+
*/
|
|
1907
|
+
remap?: Partial<Record<EditorKeyActionName, ShortcutChord | readonly ShortcutChord[]>>;
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1822
1910
|
/** A `{ path, name }` layout option for the New-Slide dropdown. */
|
|
1823
1911
|
export declare interface LayoutOption {
|
|
1824
1912
|
path: string;
|
|
@@ -2190,12 +2278,78 @@ declare interface OlePptxElement extends PptxElementBase {
|
|
|
2190
2278
|
extensionXml?: PptxGraphicFrameExtension[];
|
|
2191
2279
|
}
|
|
2192
2280
|
|
|
2281
|
+
declare type OpenDocumentsView = 'savedView' | 'normal' | 'outline' | 'slideSorter' | 'notes';
|
|
2282
|
+
|
|
2283
|
+
export declare const OPTIONS_PAGE_IDS: readonly OptionsPageId[];
|
|
2284
|
+
|
|
2285
|
+
export declare const OPTIONS_SECTION_IDS: readonly OptionsSectionId[];
|
|
2286
|
+
|
|
2287
|
+
export declare const OPTIONS_SETTING_IDS: readonly OptionsSettingId[];
|
|
2288
|
+
|
|
2289
|
+
/** File > Options (the Settings dialog) customisation. */
|
|
2290
|
+
export declare interface OptionsCustomization {
|
|
2291
|
+
/** Whole pages to remove from the dialog's category rail. */
|
|
2292
|
+
hiddenPages?: readonly OptionsPageId[];
|
|
2293
|
+
/** Sections (`<page>.<section>`) to remove from their page. */
|
|
2294
|
+
hiddenSections?: readonly OptionsSectionId[];
|
|
2295
|
+
/** Individual settings (`<group>.<key>`) to remove wherever they appear. */
|
|
2296
|
+
hiddenSettings?: readonly OptionsSettingId[];
|
|
2297
|
+
/**
|
|
2298
|
+
* Settings pinned to a fixed value. The value is forced into the options
|
|
2299
|
+
* store, user edits to it are ignored, and the control renders read-only.
|
|
2300
|
+
* Add the id to `hiddenSettings` too to lock it invisibly.
|
|
2301
|
+
*/
|
|
2302
|
+
locked?: OptionsSettingValues;
|
|
2303
|
+
/**
|
|
2304
|
+
* Host defaults: the value a setting starts at when the user has not saved
|
|
2305
|
+
* a choice of their own. "Reset" returns to these, not to the built-ins.
|
|
2306
|
+
*/
|
|
2307
|
+
defaults?: OptionsSettingValues;
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
/**
|
|
2311
|
+
* A File > Options page: the ten PowerPoint categories plus `ai`, the AI
|
|
2312
|
+
* assistant page a binding adds when the host configured an assistant.
|
|
2313
|
+
*/
|
|
2314
|
+
export declare type OptionsPageId = ViewerOptionsTabId | 'ai';
|
|
2315
|
+
|
|
2316
|
+
declare type OptionsPrintColorMode = 'color' | 'grayscale' | 'blackAndWhite';
|
|
2317
|
+
|
|
2318
|
+
declare type OptionsPrintWhat = 'slides' | 'handouts' | 'notes' | 'outline';
|
|
2319
|
+
|
|
2320
|
+
/**
|
|
2321
|
+
* One section of an Options page, addressed as `<page>.<section>`, for
|
|
2322
|
+
* example `general.personalize` or `advanced.print`. The full list is
|
|
2323
|
+
* `OPTIONS_SECTION_IDS` (derived from the schema at runtime).
|
|
2324
|
+
*/
|
|
2325
|
+
export declare type OptionsSectionId = `${ViewerOptionsTabId}.${string}`;
|
|
2326
|
+
|
|
2327
|
+
/**
|
|
2328
|
+
* One File > Options setting, addressed as `<group>.<key>`, for example
|
|
2329
|
+
* `general.userName` or `advanced.showGrid`. The union is derived from the
|
|
2330
|
+
* `ViewerOptions` model itself, so a typo is a compile error.
|
|
2331
|
+
*/
|
|
2332
|
+
export declare type OptionsSettingId = { [G in ViewerOptionsGroupId]: `${G}.${PrimitiveKeys<ViewerOptions[G]>}`; }[ViewerOptionsGroupId];
|
|
2333
|
+
|
|
2334
|
+
/** Values a host forces onto settings. */
|
|
2335
|
+
export declare type OptionsSettingValues = Partial<Record<OptionsSettingId, ViewerOptionPrimitive>>;
|
|
2336
|
+
|
|
2193
2337
|
/**
|
|
2194
2338
|
* Parse the session nonce from the current page URL hash. Returns `null` if the
|
|
2195
2339
|
* hash is not in the expected `#pptx-audience&nonce=<uuid>` form.
|
|
2196
2340
|
*/
|
|
2197
2341
|
export declare function parseAudienceNonce(): string | null;
|
|
2198
2342
|
|
|
2343
|
+
/** A parsed `Mod+Shift+D` chord. */
|
|
2344
|
+
declare interface ParsedShortcutChord {
|
|
2345
|
+
key: string;
|
|
2346
|
+
mod: boolean;
|
|
2347
|
+
ctrl: boolean;
|
|
2348
|
+
meta: boolean;
|
|
2349
|
+
alt: boolean;
|
|
2350
|
+
shift: boolean;
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2199
2353
|
/**
|
|
2200
2354
|
* Table background style (CT_TableBackgroundStyle, ECMA-376 §21.1.3.7).
|
|
2201
2355
|
*
|
|
@@ -2838,7 +2992,7 @@ export declare interface PowerPointViewerEmits {
|
|
|
2838
2992
|
* </script>
|
|
2839
2993
|
* ```
|
|
2840
2994
|
*/
|
|
2841
|
-
export declare interface PowerPointViewerExpose extends PowerPointViewerAPI {
|
|
2995
|
+
export declare interface PowerPointViewerExpose extends PowerPointViewerAPI, ViewerCustomizationApi {
|
|
2842
2996
|
/** Serialise the current presentation to `.pptx` bytes. */
|
|
2843
2997
|
getContent: () => Promise<Uint8Array>;
|
|
2844
2998
|
}
|
|
@@ -2988,6 +3142,17 @@ export declare interface PowerPointViewerProps {
|
|
|
2988
3142
|
* @see {@link ToolbarActionId}
|
|
2989
3143
|
*/
|
|
2990
3144
|
hiddenActions?: ToolbarActionId[];
|
|
3145
|
+
/**
|
|
3146
|
+
* Framework-neutral UI customisation. See docs/guide/customization.md.
|
|
3147
|
+
*
|
|
3148
|
+
* Hides ribbon tabs/buttons, Options pages/sections/settings, File tab
|
|
3149
|
+
* pages/cards, context-menu commands, panels, features and dialogs; locks
|
|
3150
|
+
* settings or sets host defaults; disables or remaps editor shortcuts.
|
|
3151
|
+
* Unioned with `hiddenActions`. The imperative helpers on the component
|
|
3152
|
+
* handle (`hideRibbonTab`, `lockSetting`, ...) edit the same state, and a
|
|
3153
|
+
* NEW object passed here replaces those imperative edits wholesale.
|
|
3154
|
+
*/
|
|
3155
|
+
customization?: ViewerCustomization;
|
|
2991
3156
|
/**
|
|
2992
3157
|
* Initial theme-catalog selection key (e.g. `'vermilionDark'`), used only
|
|
2993
3158
|
* when no persisted preference exists. Has no effect when the `theme` prop
|
|
@@ -11521,6 +11686,9 @@ declare interface PresentationThemeInput {
|
|
|
11521
11686
|
};
|
|
11522
11687
|
}
|
|
11523
11688
|
|
|
11689
|
+
/** Keys of an options group whose value is a primitive (not an array). */
|
|
11690
|
+
declare type PrimitiveKeys<T> = { [K in keyof T]: T[K] extends ViewerOptionPrimitive ? K : never; }[keyof T] & string;
|
|
11691
|
+
|
|
11524
11692
|
declare interface Props extends RibbonProps {
|
|
11525
11693
|
}
|
|
11526
11694
|
|
|
@@ -11535,6 +11703,8 @@ declare interface Props extends RibbonProps {
|
|
|
11535
11703
|
*/
|
|
11536
11704
|
export declare function provideViewerTheme(theme: MaybeRefOrGetter<ViewerTheme | undefined>): void;
|
|
11537
11705
|
|
|
11706
|
+
declare type QuickAccessPosition = 'above' | 'below';
|
|
11707
|
+
|
|
11538
11708
|
/**
|
|
11539
11709
|
* Remember `data` as the deck this tab has open, so the next load can restore
|
|
11540
11710
|
* it. Resolves `false` when the browser refused to store it; callers treat that
|
|
@@ -11638,6 +11808,33 @@ export declare function renderToCanvas(element: HTMLElement, options?: Partial<O
|
|
|
11638
11808
|
|
|
11639
11809
|
declare type Resolvable<T> = T | (() => T | Promise<T>);
|
|
11640
11810
|
|
|
11811
|
+
/** The normalised, set-based view of a customisation. Treat as immutable. */
|
|
11812
|
+
export declare interface ResolvedCustomization {
|
|
11813
|
+
hiddenActions: ReadonlySet<ToolbarActionId>;
|
|
11814
|
+
hiddenOptionsPages: ReadonlySet<OptionsPageId>;
|
|
11815
|
+
hiddenOptionsSections: ReadonlySet<OptionsSectionId>;
|
|
11816
|
+
hiddenSettings: ReadonlySet<OptionsSettingId>;
|
|
11817
|
+
lockedSettings: OptionsSettingValues;
|
|
11818
|
+
defaultSettings: OptionsSettingValues;
|
|
11819
|
+
hiddenBackstagePages: ReadonlySet<BackstagePage>;
|
|
11820
|
+
hiddenBackstageCards: ReadonlySet<BackstageCardId>;
|
|
11821
|
+
hiddenElementCommands: ReadonlySet<ContextMenuCommandId>;
|
|
11822
|
+
hiddenCanvasCommands: ReadonlySet<CanvasContextMenuCommandId>;
|
|
11823
|
+
elementMenuEnabled: boolean;
|
|
11824
|
+
canvasMenuEnabled: boolean;
|
|
11825
|
+
hiddenPanels: ReadonlySet<ViewerPanelId>;
|
|
11826
|
+
disabledFeatures: ReadonlySet<ViewerFeatureId>;
|
|
11827
|
+
hiddenDialogs: ReadonlySet<ViewerDialogId>;
|
|
11828
|
+
keyboard: ResolvedKeyboardCustomization;
|
|
11829
|
+
}
|
|
11830
|
+
|
|
11831
|
+
/** The normalised keyboard slice of a resolved customisation. */
|
|
11832
|
+
declare interface ResolvedKeyboardCustomization {
|
|
11833
|
+
disableAll: boolean;
|
|
11834
|
+
disabled: ReadonlySet<EditorKeyActionName>;
|
|
11835
|
+
remap: ReadonlyMap<EditorKeyActionName, readonly ParsedShortcutChord[]>;
|
|
11836
|
+
}
|
|
11837
|
+
|
|
11641
11838
|
/**
|
|
11642
11839
|
* The deck to reopen on load: this tab's remembered bytes, upgraded to a newer
|
|
11643
11840
|
* autosave snapshot of the same file when the viewer wrote one after they were
|
|
@@ -11646,6 +11843,16 @@ declare type Resolvable<T> = T | (() => T | Promise<T>);
|
|
|
11646
11843
|
*/
|
|
11647
11844
|
export declare function restoreSessionDeck(): Promise<SessionDeck | null>;
|
|
11648
11845
|
|
|
11846
|
+
export declare const RIBBON_TAB_IDS: readonly ToolbarTabId[];
|
|
11847
|
+
|
|
11848
|
+
/** Ribbon and toolbar customisation. */
|
|
11849
|
+
export declare interface RibbonCustomization {
|
|
11850
|
+
/** Ribbon tabs to remove (the File tab included, unlike Customize Ribbon). */
|
|
11851
|
+
hiddenTabs?: readonly ToolbarTabId[];
|
|
11852
|
+
/** Top-level toolbar buttons / control clusters to remove. */
|
|
11853
|
+
hiddenButtons?: readonly ToolbarButtonId[];
|
|
11854
|
+
}
|
|
11855
|
+
|
|
11649
11856
|
/**
|
|
11650
11857
|
* Aggregate ribbon contract (state + callbacks). Mirrors React `ToolbarProps`.
|
|
11651
11858
|
* The shell (`RibbonToolbar.vue`) passes the relevant subset to each section.
|
|
@@ -11906,6 +12113,16 @@ export declare function savedPresentationFileName(sourceName: string | null | un
|
|
|
11906
12113
|
/** The formats the save path can produce. */
|
|
11907
12114
|
export declare type SavedPresentationFormat = 'pptx' | 'ppsx' | 'pptm' | 'ppt';
|
|
11908
12115
|
|
|
12116
|
+
/**
|
|
12117
|
+
* Full PowerPoint "File > Options" parity model.
|
|
12118
|
+
*
|
|
12119
|
+
* Groups mirror the ten categories of PowerPoint's Options dialog. Values are
|
|
12120
|
+
* flat primitives per group so the dialog panes can be rendered generically
|
|
12121
|
+
* from `VIEWER_OPTIONS_SCHEMA` in every binding. The legacy six-toggle
|
|
12122
|
+
* `ViewerPreferences` surface stays supported via the mapping helpers below.
|
|
12123
|
+
*/
|
|
12124
|
+
declare type ScreenTipStyle = 'descriptions' | 'plain' | 'off';
|
|
12125
|
+
|
|
11909
12126
|
/**
|
|
11910
12127
|
* session-restore: keep the deck a host app has open across a page refresh.
|
|
11911
12128
|
*
|
|
@@ -12454,6 +12671,13 @@ declare interface ShapeStyle {
|
|
|
12454
12671
|
inheritedEffectStyle?: ShapeStyle;
|
|
12455
12672
|
}
|
|
12456
12673
|
|
|
12674
|
+
/**
|
|
12675
|
+
* A shortcut chord in the form `Mod+Shift+D`: modifiers `Mod` (Ctrl on
|
|
12676
|
+
* Windows/Linux, Cmd on macOS), `Ctrl`, `Meta`, `Alt`, `Shift`, joined by `+`,
|
|
12677
|
+
* followed by a `KeyboardEvent.key` value (`D`, `Delete`, `ArrowLeft`, `F2`).
|
|
12678
|
+
*/
|
|
12679
|
+
export declare type ShortcutChord = string;
|
|
12680
|
+
|
|
12457
12681
|
/**
|
|
12458
12682
|
* Fluent builder for a single slide.
|
|
12459
12683
|
*
|
|
@@ -13845,6 +14069,8 @@ declare interface ThemeCatalogEntry {
|
|
|
13845
14069
|
*/
|
|
13846
14070
|
export declare function themeToCssVars(theme: ViewerTheme | undefined, omitDefaults?: boolean): Record<string, string>;
|
|
13847
14071
|
|
|
14072
|
+
export declare const TOOLBAR_BUTTON_IDS: readonly ["share", "broadcast", "export", "undo", "redo", "record", "notes", "fullscreen", "zoom", "navigation"];
|
|
14073
|
+
|
|
13848
14074
|
export declare type ToolbarActionId = ToolbarButtonId | ToolbarTabId;
|
|
13849
14075
|
|
|
13850
14076
|
/**
|
|
@@ -14119,6 +14345,142 @@ export declare const vermilionLightTheme: ViewerTheme;
|
|
|
14119
14345
|
/** Shared border-radius for the vermilion presets (slightly sharper than the default). */
|
|
14120
14346
|
export declare const vermilionRadius = "0.375rem";
|
|
14121
14347
|
|
|
14348
|
+
export declare const VIEWER_DIALOG_IDS: readonly ["options", "share", "broadcast", "print", "export"];
|
|
14349
|
+
|
|
14350
|
+
export declare const VIEWER_EXPORT_FORMAT_IDS: readonly ["pdf", "png", "video", "gif", "json", "copyImage"];
|
|
14351
|
+
|
|
14352
|
+
export declare const VIEWER_FEATURE_IDS: readonly ["ai", "collaboration", "comments", "presentMode"];
|
|
14353
|
+
|
|
14354
|
+
export declare const VIEWER_PANEL_IDS: readonly ["statusBar", "slidesPane", "inspector", "notes", "quickAccessToolbar", "titleBar"];
|
|
14355
|
+
|
|
14356
|
+
declare interface ViewerAccessibilityOptions {
|
|
14357
|
+
showAccessibilityStatus: boolean;
|
|
14358
|
+
feedbackWithSound: boolean;
|
|
14359
|
+
soundScheme: FeedbackSoundScheme;
|
|
14360
|
+
showShortcutKeysInScreenTips: boolean;
|
|
14361
|
+
reducedMotion: boolean;
|
|
14362
|
+
}
|
|
14363
|
+
|
|
14364
|
+
declare interface ViewerAdvancedOptions {
|
|
14365
|
+
autoSelectEntireWord: boolean;
|
|
14366
|
+
allowTextDragAndDrop: boolean;
|
|
14367
|
+
maximumUndoSteps: number;
|
|
14368
|
+
useSmartCutAndPaste: boolean;
|
|
14369
|
+
showPasteOptionsButton: boolean;
|
|
14370
|
+
imageDefaultResolution: ImageResolutionPreset;
|
|
14371
|
+
doNotCompressImages: boolean;
|
|
14372
|
+
chartPropertiesFollowDataPoint: boolean;
|
|
14373
|
+
recentPresentationsCount: number;
|
|
14374
|
+
showVerticalRuler: boolean;
|
|
14375
|
+
showGrid: boolean;
|
|
14376
|
+
snapToGrid: boolean;
|
|
14377
|
+
disableHardwareAcceleration: boolean;
|
|
14378
|
+
/**
|
|
14379
|
+
* Force every opt-in interactive 3D scene (SmartArt, bar/line/area/pie/
|
|
14380
|
+
* surface charts) to fall back to its flat 2D rendering, even when the
|
|
14381
|
+
* host has enabled that scene via its own `smartArt3D`/`*Chart3D` prop.
|
|
14382
|
+
* A host opting in says "this deck may want 3D"; this is the viewer
|
|
14383
|
+
* user's own override for when the WebGL scenes it renders are too much
|
|
14384
|
+
* for their machine. See `resolve3DRenderingFlags`.
|
|
14385
|
+
*/
|
|
14386
|
+
disable3DRendering: boolean;
|
|
14387
|
+
/**
|
|
14388
|
+
* `p:animEffect/@filter="pixelate"` defaults to snapping the element to
|
|
14389
|
+
* its end state (`cutIn`/`cutOut`), matching PowerPoint's own behaviour
|
|
14390
|
+
* (COM `CreateVideo` frame-diffing shows PowerPoint performs no animation
|
|
14391
|
+
* at all for this filter value). This turns on the blocky mosaic reveal
|
|
14392
|
+
* this renderer can build instead, for a viewer that would rather show
|
|
14393
|
+
* something animating than PowerPoint's own instant swap. See
|
|
14394
|
+
* `resolveFilterEffect` in `animation-filter-effects.ts` and
|
|
14395
|
+
* `docs/guide/visual-effects.md`.
|
|
14396
|
+
*/
|
|
14397
|
+
pixelateMosaicAnimation: boolean;
|
|
14398
|
+
openDocumentsView: OpenDocumentsView;
|
|
14399
|
+
slideShowShowMenuOnRightClick: boolean;
|
|
14400
|
+
slideShowShowPopupToolbar: boolean;
|
|
14401
|
+
slideShowPromptKeepInkAnnotations: boolean;
|
|
14402
|
+
slideShowEndWithBlackSlide: boolean;
|
|
14403
|
+
printInBackground: boolean;
|
|
14404
|
+
printHighQuality: boolean;
|
|
14405
|
+
printUseMostRecentSettings: boolean;
|
|
14406
|
+
printWhat: OptionsPrintWhat;
|
|
14407
|
+
printColorMode: OptionsPrintColorMode;
|
|
14408
|
+
printHiddenSlides: boolean;
|
|
14409
|
+
printScaleToFit: boolean;
|
|
14410
|
+
printFrameSlides: boolean;
|
|
14411
|
+
}
|
|
14412
|
+
|
|
14413
|
+
/**
|
|
14414
|
+
* The whole customisation object. Every field is optional; omitted fields hide
|
|
14415
|
+
* nothing and lock nothing.
|
|
14416
|
+
*/
|
|
14417
|
+
export declare interface ViewerCustomization {
|
|
14418
|
+
ribbon?: RibbonCustomization;
|
|
14419
|
+
options?: OptionsCustomization;
|
|
14420
|
+
backstage?: BackstageCustomization;
|
|
14421
|
+
contextMenu?: ContextMenuCustomization;
|
|
14422
|
+
keyboard?: KeyboardCustomization;
|
|
14423
|
+
/** Chrome regions to remove (`true` hides). */
|
|
14424
|
+
hiddenPanels?: readonly ViewerPanelId[];
|
|
14425
|
+
/** Feature areas to switch off (their buttons, menus, pages and panels). */
|
|
14426
|
+
disabledFeatures?: readonly ViewerFeatureId[];
|
|
14427
|
+
/** Dialogs to remove, along with every entry point that opens them. */
|
|
14428
|
+
hiddenDialogs?: readonly ViewerDialogId[];
|
|
14429
|
+
/** Export formats to remove from File > Export. */
|
|
14430
|
+
hiddenExportFormats?: readonly ViewerExportFormatId[];
|
|
14431
|
+
}
|
|
14432
|
+
|
|
14433
|
+
/** The imperative methods every binding's component handle exposes. */
|
|
14434
|
+
export declare interface ViewerCustomizationApi {
|
|
14435
|
+
/** The current customisation object (a snapshot; do not mutate). */
|
|
14436
|
+
getCustomization(): ViewerCustomization;
|
|
14437
|
+
/** Replace the whole customisation. */
|
|
14438
|
+
setCustomization(next: ViewerCustomization): void;
|
|
14439
|
+
/** Merge a partial customisation (see `mergeCustomization`). */
|
|
14440
|
+
updateCustomization(patch: ViewerCustomization): void;
|
|
14441
|
+
/** Drop every customisation, back to the stock UI. */
|
|
14442
|
+
resetCustomization(): void;
|
|
14443
|
+
hideRibbonTab(tab: ToolbarTabId): void;
|
|
14444
|
+
showRibbonTab(tab: ToolbarTabId): void;
|
|
14445
|
+
hideToolbarButton(button: ToolbarButtonId): void;
|
|
14446
|
+
showToolbarButton(button: ToolbarButtonId): void;
|
|
14447
|
+
hideOptionsPage(page: OptionsPageId): void;
|
|
14448
|
+
showOptionsPage(page: OptionsPageId): void;
|
|
14449
|
+
hideOptionsSection(section: OptionsSectionId): void;
|
|
14450
|
+
showOptionsSection(section: OptionsSectionId): void;
|
|
14451
|
+
hideSetting(setting: OptionsSettingId): void;
|
|
14452
|
+
showSetting(setting: OptionsSettingId): void;
|
|
14453
|
+
/** Pin a setting to `value`; `hidden` also removes it from the dialog. */
|
|
14454
|
+
lockSetting(setting: OptionsSettingId, value: ViewerOptionPrimitive, hidden?: boolean): void;
|
|
14455
|
+
unlockSetting(setting: OptionsSettingId): void;
|
|
14456
|
+
/** Set (or with `undefined`, clear) the host default for a setting. */
|
|
14457
|
+
setSettingDefault(setting: OptionsSettingId, value: ViewerOptionPrimitive | undefined): void;
|
|
14458
|
+
hideBackstagePage(page: BackstagePage): void;
|
|
14459
|
+
showBackstagePage(page: BackstagePage): void;
|
|
14460
|
+
hideBackstageCard(card: BackstageCardId): void;
|
|
14461
|
+
showBackstageCard(card: BackstageCardId): void;
|
|
14462
|
+
hideContextMenuCommand(command: ContextMenuCommandId): void;
|
|
14463
|
+
showContextMenuCommand(command: ContextMenuCommandId): void;
|
|
14464
|
+
hideCanvasContextMenuCommand(command: CanvasContextMenuCommandId): void;
|
|
14465
|
+
showCanvasContextMenuCommand(command: CanvasContextMenuCommandId): void;
|
|
14466
|
+
disableShortcut(action: EditorKeyActionName): void;
|
|
14467
|
+
enableShortcut(action: EditorKeyActionName): void;
|
|
14468
|
+
/** Move a command onto new chord(s); `undefined` restores the built-in chord. */
|
|
14469
|
+
remapShortcut(action: EditorKeyActionName, chords: ShortcutChord | readonly ShortcutChord[] | undefined): void;
|
|
14470
|
+
setPanelVisible(panel: ViewerPanelId, visible: boolean): void;
|
|
14471
|
+
setFeatureEnabled(feature: ViewerFeatureId, enabled: boolean): void;
|
|
14472
|
+
setDialogAvailable(dialog: ViewerDialogId, available: boolean): void;
|
|
14473
|
+
}
|
|
14474
|
+
|
|
14475
|
+
/** Dialogs (and the entry points that open them) a host can remove. */
|
|
14476
|
+
export declare type ViewerDialogId = 'options' | 'share' | 'broadcast' | 'print' | 'export';
|
|
14477
|
+
|
|
14478
|
+
/** Export formats offered by the File > Export page. */
|
|
14479
|
+
export declare type ViewerExportFormatId = 'pdf' | 'png' | 'video' | 'gif' | 'json' | 'copyImage';
|
|
14480
|
+
|
|
14481
|
+
/** Feature areas that can be switched off as a whole. */
|
|
14482
|
+
export declare type ViewerFeatureId = 'ai' | 'collaboration' | 'comments' | 'presentMode';
|
|
14483
|
+
|
|
14122
14484
|
/**
|
|
14123
14485
|
* A font supplied by the host application. The package never ships fonts:
|
|
14124
14486
|
* applications provide a licensed URL, data URL, or blob URL for their users.
|
|
@@ -14131,12 +14493,112 @@ declare interface ViewerFontSource {
|
|
|
14131
14493
|
style?: 'normal' | 'italic';
|
|
14132
14494
|
}
|
|
14133
14495
|
|
|
14496
|
+
declare interface ViewerGeneralOptions {
|
|
14497
|
+
displayOptimization: DisplayOptimization;
|
|
14498
|
+
showMiniToolbar: boolean;
|
|
14499
|
+
enableLivePreview: boolean;
|
|
14500
|
+
collapseRibbonAutomatically: boolean;
|
|
14501
|
+
collapseSearchByDefault: boolean;
|
|
14502
|
+
screenTipStyle: ScreenTipStyle;
|
|
14503
|
+
userName: string;
|
|
14504
|
+
userInitials: string;
|
|
14505
|
+
showStartScreen: boolean;
|
|
14506
|
+
/**
|
|
14507
|
+
* Lets the user hand a local font file to the viewer so decks authored
|
|
14508
|
+
* with a font the browser lacks render with the real face.
|
|
14509
|
+
*
|
|
14510
|
+
* Off by default. The registration reads a file the user picks and adds it
|
|
14511
|
+
* to the page's font set for the session, which is a capability a host
|
|
14512
|
+
* embedding the viewer should opt into rather than inherit.
|
|
14513
|
+
*/
|
|
14514
|
+
enableCustomFontUpload: boolean;
|
|
14515
|
+
}
|
|
14516
|
+
|
|
14134
14517
|
/** Viewer interaction mode: read-only, edit, presentation, or master-view. */
|
|
14135
14518
|
export declare type ViewerMode = 'preview' | 'edit' | 'present' | 'master';
|
|
14136
14519
|
|
|
14137
14520
|
/** Viewer interaction mode. Mirrors React `ViewerMode`. */
|
|
14138
14521
|
declare type ViewerMode_2 = 'preview' | 'edit' | 'present' | 'master';
|
|
14139
14522
|
|
|
14523
|
+
declare type ViewerOptionPrimitive = boolean | number | string;
|
|
14524
|
+
|
|
14525
|
+
declare interface ViewerOptions {
|
|
14526
|
+
general: ViewerGeneralOptions;
|
|
14527
|
+
proofing: ViewerProofingOptions;
|
|
14528
|
+
save: ViewerSaveOptions;
|
|
14529
|
+
accessibility: ViewerAccessibilityOptions;
|
|
14530
|
+
advanced: ViewerAdvancedOptions;
|
|
14531
|
+
ribbon: ViewerRibbonOptions;
|
|
14532
|
+
quickAccess: ViewerQuickAccessOptions;
|
|
14533
|
+
trust: ViewerTrustOptions;
|
|
14534
|
+
}
|
|
14535
|
+
|
|
14536
|
+
declare type ViewerOptionsGroupId = keyof ViewerOptions;
|
|
14537
|
+
|
|
14538
|
+
/**
|
|
14539
|
+
* Control/section/tab descriptor types for the File > Options schema, plus
|
|
14540
|
+
* the terse constructors the tab-definition modules build panes with.
|
|
14541
|
+
*/
|
|
14542
|
+
declare type ViewerOptionsTabId = 'general' | 'proofing' | 'save' | 'language' | 'accessibility' | 'advanced' | 'ribbon' | 'quickAccess' | 'addIns' | 'trust';
|
|
14543
|
+
|
|
14544
|
+
/**
|
|
14545
|
+
* Chrome regions a host can remove. Each id maps onto one region in every
|
|
14546
|
+
* binding; see `VIEWER_PANEL_IDS` for the catalogue.
|
|
14547
|
+
*/
|
|
14548
|
+
export declare type ViewerPanelId = 'statusBar' | 'slidesPane' | 'inspector' | 'notes' | 'quickAccessToolbar' | 'titleBar';
|
|
14549
|
+
|
|
14550
|
+
declare interface ViewerProofingOptions {
|
|
14551
|
+
autoCorrectTwoInitialCapitals: boolean;
|
|
14552
|
+
autoCorrectCapitalizeFirstLetter: boolean;
|
|
14553
|
+
autoCorrectCapitalizeDayNames: boolean;
|
|
14554
|
+
autoCorrectSmartQuotes: boolean;
|
|
14555
|
+
autoCorrectHyphensToDash: boolean;
|
|
14556
|
+
autoCorrectFractions: boolean;
|
|
14557
|
+
autoCorrectOrdinals: boolean;
|
|
14558
|
+
ignoreUppercase: boolean;
|
|
14559
|
+
ignoreWordsWithNumbers: boolean;
|
|
14560
|
+
ignoreInternetAddresses: boolean;
|
|
14561
|
+
flagRepeatedWords: boolean;
|
|
14562
|
+
checkSpellingAsYouType: boolean;
|
|
14563
|
+
hideSpellingErrors: boolean;
|
|
14564
|
+
}
|
|
14565
|
+
|
|
14566
|
+
declare interface ViewerQuickAccessOptions {
|
|
14567
|
+
visible: boolean;
|
|
14568
|
+
position: QuickAccessPosition;
|
|
14569
|
+
showCommandLabels: boolean;
|
|
14570
|
+
/** Ordered ids from `QUICK_ACCESS_COMMAND_CATALOG`. */
|
|
14571
|
+
commandIds: string[];
|
|
14572
|
+
}
|
|
14573
|
+
|
|
14574
|
+
declare interface ViewerRibbonOptions {
|
|
14575
|
+
/** Ribbon tabs unticked in Customize Ribbon. The File tab can never be hidden. */
|
|
14576
|
+
hiddenTabIds: ToolbarTabId[];
|
|
14577
|
+
}
|
|
14578
|
+
|
|
14579
|
+
/**
|
|
14580
|
+
* File > Options > Save.
|
|
14581
|
+
*
|
|
14582
|
+
* Font embedding deliberately has NO entry here. It is owned by the File >
|
|
14583
|
+
* Fonts panel, whose toggle is the one the save path reads (see
|
|
14584
|
+
* `render/font-embedding`: `describeFontEmbedding` decides the toggle's start
|
|
14585
|
+
* position and whether it can do anything at all, `embeddedFontSaveOptions`
|
|
14586
|
+
* turns it into the `PptxHandler.save()` slice). This group used to carry a
|
|
14587
|
+
* second `embedFonts` boolean, plus an `embedAllFontCharacters` companion, and
|
|
14588
|
+
* neither was read by anything: the pane moved a switch that changed no saved
|
|
14589
|
+
* byte, while the panel next door moved the real one. Two switches for one
|
|
14590
|
+
* setting, one of them lying, is worse than one switch in a less
|
|
14591
|
+
* PowerPoint-shaped place.
|
|
14592
|
+
*/
|
|
14593
|
+
declare interface ViewerSaveOptions {
|
|
14594
|
+
autoSave: boolean;
|
|
14595
|
+
autoRecoverIntervalMinutes: number;
|
|
14596
|
+
keepLastAutoRecoveredVersion: boolean;
|
|
14597
|
+
defaultExportFormat: DefaultExportFormat;
|
|
14598
|
+
cacheRetentionDays: number;
|
|
14599
|
+
clearCacheOnClose: boolean;
|
|
14600
|
+
}
|
|
14601
|
+
|
|
14140
14602
|
/**
|
|
14141
14603
|
* Full viewer theme configuration.
|
|
14142
14604
|
*
|
|
@@ -14217,6 +14679,12 @@ export declare interface ViewerThemeColors {
|
|
|
14217
14679
|
ring: string;
|
|
14218
14680
|
}
|
|
14219
14681
|
|
|
14682
|
+
declare interface ViewerTrustOptions {
|
|
14683
|
+
openInProtectedView: boolean;
|
|
14684
|
+
allowExternalContent: boolean;
|
|
14685
|
+
confirmExternalHyperlinks: boolean;
|
|
14686
|
+
}
|
|
14687
|
+
|
|
14220
14688
|
/** Host layout policy, independent of authored slide dimensions and user zoom. */
|
|
14221
14689
|
export declare interface ViewportFitOptions {
|
|
14222
14690
|
/** Per-side padding. Omission keeps the binding's existing decorative allowance. */
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as
|
|
3
|
-
export {
|
|
1
|
+
import { C as a, Ca as s, Cd as e, Ec as i, Fa as o, Fr as r, Ia as t, Md as l, Mi as m, Mr as n, Mu as w, Nu as c, Oc as d, Oi as p, Pa as u, Qn as C, Qp as S, Ra as M, S as b, Tc as g, Vl as f, Vp as j, Xi as R, Xt as V, Yt as v, _i as E, _m as F, et as O, fc as P, gi as T, gm as h, hi as k, hm as x, if as y, ir as I, it as Q, jc as X, ks as _, ll as A, mm as B, ou as D, pm as N, sp as Y, sr as q, tp as z, tr as G, w as H, wd as J, wu as K, x as L, yu as U } from "./useViewerSettingsDialog-ln5W1gt1.js";
|
|
2
|
+
import { A as W, E as Z, M as $, T as aa, a as sa, c as ea, i as ia, j as oa, k as ra, l as ta, n as la, r as ma, s as na, t as wa, w as ca } from "./viewer-UZOm0R5A.js";
|
|
3
|
+
export { C as AUDIENCE_HASH, G as BACKSTAGE_CARD_IDS, I as BACKSTAGE_PAGE_IDS, q as CANVAS_CONTEXT_MENU_COMMAND_IDS, ta as CollaborationCursors, ra as CollaborationStatusIndicator, n as EDITOR_SHORTCUT_ACTION_IDS, r as ELEMENT_CONTEXT_MENU_COMMAND_IDS, V as ElementRenderer, na as FollowModeBar, k as OPTIONS_PAGE_IDS, T as OPTIONS_SECTION_IDS, E as OPTIONS_SETTING_IDS, p as PPTX_OPEN_ACCEPT, m as PRESENTATION_OPEN_EXTENSIONS, sa as PowerPointViewer, R as RIBBON_TAB_IDS, ea as RemoteSelectionOverlay, aa as RibbonToolbar, ca as SlideCanvas, v as SlideStage, s as TOOLBAR_BUTTON_IDS, u as VIEWER_DIALOG_IDS, o as VIEWER_EXPORT_FORMAT_IDS, t as VIEWER_FEATURE_IDS, M as VIEWER_PANEL_IDS, _ as clearAudienceContent, Z as cn, P as createImageElementFromFile, g as defaultCssVars, i as defaultRadius, d as defaultThemeColors, X as describeCollaborationShellState, L as exportAllSlidesToSvg, b as exportAllSlidesToSvgBlobs, a as exportSlideToSvg, H as exportSlideToSvgBlob, A as forgetSessionDeck, f as getSessionTabId, D as isAudienceTab, U as isLegacyBinaryPresentation, K as isSupportedPresentationFile, w as loadAudienceContent, c as loadSessionDeck, e as parseAudienceNonce, J as parsePresentationSessionId, l as presentationBaseName, W as provideViewerTheme, y as rememberSessionDeck, O as renderToCanvas, z as restoreSessionDeck, Y as savedPresentationFileName, j as storeAudienceContent, S as themeToCssVars, Q as useCollaboration, wa as useCollaborativeHistory, la as useCollaborativeState, ma as usePresenceTracking, oa as useThemeStyle, $ as useViewerTheme, ia as useYjsProvider, N as vermilionDarkColors, B as vermilionDarkTheme, x as vermilionLightColors, h as vermilionLightTheme, F as vermilionRadius };
|
package/dist/index.js.br
CHANGED
|
Binary file
|
package/dist/index.js.gz
CHANGED
|
Binary file
|