pptx-react-viewer 4.51.1 → 4.52.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 +63 -0
- package/dist/{AiChatPanel-EV22O7UO.js → AiChatPanel-7GJQ66GR.js} +19 -19
- package/dist/AiChatPanel-7GJQ66GR.js.br +0 -0
- package/dist/AiChatPanel-7GJQ66GR.js.gz +0 -0
- package/dist/{AiChatPanel-R323KNGN.mjs → AiChatPanel-AI75AT6C.mjs} +1 -1
- package/dist/AiChatPanel-AI75AT6C.mjs.br +0 -0
- package/dist/AiChatPanel-AI75AT6C.mjs.gz +0 -0
- package/dist/{chunk-V4DY4IWP.mjs → chunk-3KXEJCMG.mjs} +283 -300
- package/dist/chunk-3KXEJCMG.mjs.br +0 -0
- package/dist/chunk-3KXEJCMG.mjs.gz +0 -0
- package/dist/{chunk-Z22RD3E2.js → chunk-3TN5SUQR.js} +4 -1
- package/dist/chunk-3TN5SUQR.js.br +0 -0
- package/dist/chunk-3TN5SUQR.js.gz +0 -0
- package/dist/{chunk-YJ4DAS4V.js → chunk-6GAWXARM.js} +479 -496
- package/dist/chunk-6GAWXARM.js.br +0 -0
- package/dist/chunk-6GAWXARM.js.gz +0 -0
- package/dist/{chunk-KCUXY7DE.mjs → chunk-E6A6ZBAM.mjs} +49 -69
- package/dist/chunk-E6A6ZBAM.mjs.br +0 -0
- package/dist/chunk-E6A6ZBAM.mjs.gz +0 -0
- package/dist/{chunk-VRX5NJY2.js → chunk-I63IFSNX.js} +597 -617
- package/dist/chunk-I63IFSNX.js.br +0 -0
- package/dist/chunk-I63IFSNX.js.gz +0 -0
- package/dist/{chunk-ZCGYPCZM.mjs → chunk-ID37Y3HG.mjs} +4 -1
- package/dist/chunk-ID37Y3HG.mjs.br +0 -0
- package/dist/chunk-ID37Y3HG.mjs.gz +0 -0
- package/dist/i18n/de.cjs +1 -24
- package/dist/i18n/de.cjs.br +0 -0
- package/dist/i18n/de.cjs.gz +0 -0
- package/dist/i18n/de.mjs +1 -24
- package/dist/i18n/de.mjs.br +0 -0
- package/dist/i18n/de.mjs.gz +0 -0
- package/dist/i18n/es.cjs +1 -24
- package/dist/i18n/es.cjs.br +0 -0
- package/dist/i18n/es.cjs.gz +0 -0
- package/dist/i18n/es.mjs +1 -24
- package/dist/i18n/es.mjs.br +0 -0
- package/dist/i18n/es.mjs.gz +0 -0
- package/dist/i18n/fr.cjs +1 -24
- package/dist/i18n/fr.cjs.br +0 -0
- package/dist/i18n/fr.cjs.gz +0 -0
- package/dist/i18n/fr.mjs +1 -24
- package/dist/i18n/fr.mjs.br +0 -0
- package/dist/i18n/fr.mjs.gz +0 -0
- package/dist/i18n/zh-CN.cjs +0 -23
- package/dist/i18n/zh-CN.cjs.br +0 -0
- package/dist/i18n/zh-CN.cjs.gz +0 -0
- package/dist/i18n/zh-CN.mjs +0 -23
- package/dist/i18n/zh-CN.mjs.br +0 -0
- package/dist/i18n/zh-CN.mjs.gz +0 -0
- package/dist/index.d.ts +13 -1
- package/dist/index.js +25 -25
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +59 -17
- package/dist/internals.js +81 -81
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +2 -2
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/viewer/index.d.ts +13 -1
- package/dist/viewer/index.js +20 -20
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +3 -3
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +3 -3
- package/dist/AiChatPanel-EV22O7UO.js.br +0 -0
- package/dist/AiChatPanel-EV22O7UO.js.gz +0 -0
- package/dist/AiChatPanel-R323KNGN.mjs.br +0 -0
- package/dist/AiChatPanel-R323KNGN.mjs.gz +0 -0
- package/dist/chunk-KCUXY7DE.mjs.br +0 -0
- package/dist/chunk-KCUXY7DE.mjs.gz +0 -0
- package/dist/chunk-V4DY4IWP.mjs.br +0 -0
- package/dist/chunk-V4DY4IWP.mjs.gz +0 -0
- package/dist/chunk-VRX5NJY2.js.br +0 -0
- package/dist/chunk-VRX5NJY2.js.gz +0 -0
- package/dist/chunk-YJ4DAS4V.js.br +0 -0
- package/dist/chunk-YJ4DAS4V.js.gz +0 -0
- package/dist/chunk-Z22RD3E2.js.br +0 -0
- package/dist/chunk-Z22RD3E2.js.gz +0 -0
- package/dist/chunk-ZCGYPCZM.mjs.br +0 -0
- package/dist/chunk-ZCGYPCZM.mjs.gz +0 -0
package/dist/internals.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CollaborationRole, CollaborationConfig, PowerPointViewerAPI, ViewerCustomizationApi, PptxAutosaveStatus, ShapeAdjustmentHandleDescriptor, ChangeCaseMode, ResolvedKeyboardCustomization, FindResult, EditorImagePasteOptions, InsertChartKind, InsertChartOptions, PasteSpecialFormat, SlidePasteRequest, SlideTemplateId, MorphTransitionPlan, ElementAnimationState, ZoomNavigationTarget, PresentationSnapshot, DocumentStorage, InlineTextDraftSink, ViewerMode, ShapeAdjustmentDragState, GestureKind, PointerLike, InlineTextEditSnapshot, InlineListReadResult, FreeformToolKind, CollaborationLivePatcher, SlideSizeEmu, ElementClipboardPayload, CropSession, FontEmbeddingDescriptor, MasterViewTarget, ViewportFitOptions, CollaborationInput, ToolbarActionId, CollaborationShellState, AnimationApplyGroup, ReviewCommentsHost, RulerUnit, FieldSubstitutionContext, EditPointsCommandId, EditPointsElementPatch, PresentationPointerTool, RunProgramNotice, BorrowedCollaborationAwareness, CollabLoadOrigin, AuthoredSlideRange, DocumentSaveReason, FragmentedLayer, PrintSettings, ThemeEditorEdit, CompareResult, ReadOnlyRecommendation, CompatibilityWarningToast, DeviceOrientation, ResolvedCustomization, AutosaveRecord, DeckSavePurpose, ZoomExcursion, TouchGestureCallbacks, ViewerAutosaveStatus, ViewerOptionsStore, ViewerOptions, AutosaveRecoveryPrompt, VirtualizedRange, ToolbarTabId } from 'ooxml-ui/pptx';
|
|
1
|
+
import { CollaborationRole, CollaborationConfig, HistoryTheme, PowerPointViewerAPI, ViewerCustomizationApi, PptxAutosaveStatus, ShapeAdjustmentHandleDescriptor, ChangeCaseMode, ResolvedKeyboardCustomization, FindResult, EditorImagePasteOptions, InsertChartKind, InsertChartOptions, PasteSpecialFormat, SlidePasteRequest, SlideTemplateId, MorphTransitionPlan, ElementAnimationState, ZoomNavigationTarget, PresentationSnapshot, DocumentStorage, InlineTextDraftSink, ViewerMode, ShapeAdjustmentDragState, GestureKind, PointerLike, InlineTextEditSnapshot, InlineListReadResult, FreeformToolKind, CollaborationLivePatcher, SlideSizeEmu, ElementClipboardPayload, CropSession, FontEmbeddingDescriptor, MasterViewTarget, ViewportFitOptions, CollaborationInput, GoogleFontsOption, ToolbarActionId, CollaborationShellState, AnimationApplyGroup, ReviewCommentsHost, RulerUnit, FieldSubstitutionContext, EditPointsCommandId, EditPointsElementPatch, PresentationPointerTool, RunProgramNotice, BorrowedCollaborationAwareness, CollabLoadOrigin, AuthoredSlideRange, DocumentSaveReason, FragmentedLayer, PrintSettings, ThemeEditorEdit, CompareResult, ReadOnlyRecommendation, CompatibilityWarningToast, DeviceOrientation, ResolvedCustomization, AutosaveRecord, DeckSavePurpose, ZoomExcursion, TouchGestureCallbacks, ViewerAutosaveStatus, ViewerOptionsStore, ViewerOptions, AutosaveRecoveryPrompt, VirtualizedRange, ToolbarTabId } from 'ooxml-ui/pptx';
|
|
2
2
|
export { CINEMATIC_TRANSITION_KEYFRAMES, CollaborationConfig, DEFAULT_MORPH_DURATION_MS, DEFAULT_TRANSITION_DURATION_MS, DeviceOrientation, EASE, INSTANT, MOBILE_BREAKPOINT, P14_TRANSITION_KEYFRAMES, P14_TRANSITION_KEYFRAMES_2, P14_TRANSITION_KEYFRAMES_ALL, RANDOM_ELIGIBLE_TYPES, ResolvedDirection, ResolvedDirection8, SLIDE_TRANSITION_KEYFRAMES, SLIDE_TRANSITION_KEYFRAMES_CSS, SlideTransitionAnimations, TABLET_BREAKPOINT, TRANSITION_SPEED_DURATION_MS, TouchGestureCallbacks, VirtualizedRange, WHEEL_SPOKE_COUNTS, computeVirtualRange, getCinematicTransitionAnimations, getP14TransitionAnimations, getSlideTransitionAnimations, resolveDirection, resolveDirection8, resolveOrientation, resolveSlideTransition, resolveTransitionDurationMs, resolveWheelSpokeCount } from 'ooxml-ui/pptx';
|
|
3
|
-
import { PptxSlide, PptxElement, PptxElementAnimation, TextStyle, PptxHeaderFooter, ShapeStyle, PptxCommentMention, SmartArtLayout, InkPptxElement, ShapePptxElement, MergeShapeOperation, PptxSlideTransition, PptxAction,
|
|
3
|
+
import { PptxSlide, PptxElement, PptxElementAnimation, TextStyle, PptxHeaderFooter, PptxTheme, PptxSlideMaster, ShapeStyle, PptxCommentMention, SmartArtLayout, InkPptxElement, ShapePptxElement, MergeShapeOperation, PptxSlideTransition, PptxAction, PptxModernCommentAuthor, ParsedTableStyleMap, PptxThemeOption, PptxCustomShow, PptxSection, PptxPresentationProperties, PptxViewProperties, PptxNotesMaster, PptxHandoutMaster, PptxCustomProperty, PptxTagCollection, PptxCoreProperties, PptxAppProperties, PptxEmbeddedFont, MasterViewTab, PptxSlideLayout, PptxHandler, PptxLayoutOption, PptxLayoutPreview, PptxComment, ConnectorPptxElement, PptxThemePreset, PptxThemeColorScheme, PptxThemeFontScheme, PptxData, PptxHandlerSaveOptions, PptxSaveFormat, TextSegment, PptxModifyVerifier } from 'ooxml-core/pptx';
|
|
4
4
|
import { CollaborationWriteBackState } from 'ooxml-core/collab';
|
|
5
5
|
import * as Y from 'yjs';
|
|
6
6
|
import { Doc } from 'yjs';
|
|
@@ -91,6 +91,8 @@ interface EditorHistorySnapshot {
|
|
|
91
91
|
activeSlideIndex: number;
|
|
92
92
|
slides: PptxSlide[];
|
|
93
93
|
templateElementsBySlideId: Record<string, PptxElement[]>;
|
|
94
|
+
/** The theme at that point, so undoing a theme pick puts the theme back with the slides. */
|
|
95
|
+
theme?: HistoryTheme;
|
|
94
96
|
actionLabel?: string;
|
|
95
97
|
}
|
|
96
98
|
//#endregion
|
|
@@ -639,6 +641,22 @@ interface EditorHistoryInput {
|
|
|
639
641
|
* Slide or a notes edit left the flag false and crash recovery never ran.
|
|
640
642
|
*/
|
|
641
643
|
onDirty?: () => void;
|
|
644
|
+
/**
|
|
645
|
+
* The deck's theme. Its colour scheme, font scheme and name are recorded with every snapshot,
|
|
646
|
+
* so a theme pick is an undo step like any other edit.
|
|
647
|
+
*/
|
|
648
|
+
theme?: PptxTheme | undefined;
|
|
649
|
+
/**
|
|
650
|
+
* The slide masters. The theme part each one uses is recorded with the theme, so a theme
|
|
651
|
+
* applied by path is an undo step too, and its Undo points the masters back.
|
|
652
|
+
*/
|
|
653
|
+
slideMasters?: readonly PptxSlideMaster[] | undefined;
|
|
654
|
+
/**
|
|
655
|
+
* Put a recorded theme back (an undo or redo crossing a theme change). The slides come back
|
|
656
|
+
* with the snapshot; the theme has to be written to the handler's theme part too, which this
|
|
657
|
+
* hook cannot reach, so the theme handlers do it.
|
|
658
|
+
*/
|
|
659
|
+
onRestoreTheme?: (theme: HistoryTheme) => void;
|
|
642
660
|
setSlides: (slides: PptxSlide[]) => void;
|
|
643
661
|
setCanvasSize: (size: CanvasSize$1) => void;
|
|
644
662
|
setActiveSlideIndex: (index: number) => void;
|
|
@@ -649,7 +667,12 @@ interface EditorHistoryInput {
|
|
|
649
667
|
setHeaderFooter: (hf: PptxHeaderFooter) => void;
|
|
650
668
|
}
|
|
651
669
|
interface EditorHistoryResult {
|
|
652
|
-
|
|
670
|
+
/**
|
|
671
|
+
* Commit `slides` as one undo step. Pass `nextSlideMasters` when the same commit replaces the
|
|
672
|
+
* slide masters (a slide paste brings its own): the step's after state records their theme
|
|
673
|
+
* parts, so the masters arriving a render later are not read as a second step.
|
|
674
|
+
*/
|
|
675
|
+
commitSlides: (slides: PptxSlide[], label?: string, beforeSlides?: PptxSlide[], nextSlideMasters?: readonly PptxSlideMaster[]) => void;
|
|
653
676
|
canUndo: boolean;
|
|
654
677
|
canRedo: boolean;
|
|
655
678
|
undoLabel: string | undefined;
|
|
@@ -657,6 +680,11 @@ interface EditorHistoryResult {
|
|
|
657
680
|
handleUndo: () => void;
|
|
658
681
|
handleRedo: () => void;
|
|
659
682
|
resetHistory: () => void;
|
|
683
|
+
/**
|
|
684
|
+
* Drop the undo and redo steps that would bring back a state `reaches` matches, with the steps
|
|
685
|
+
* behind them: a Slide Master view command removed a layout the package cannot get back.
|
|
686
|
+
*/
|
|
687
|
+
forgetHistory: (reaches: (snapshot: EditorHistorySnapshot) => boolean) => void;
|
|
660
688
|
/**
|
|
661
689
|
* Pause (`true`) and resume (`false`) change tracking. A gallery hover preview swaps the
|
|
662
690
|
* slides in for a moment; while tracking is held that is neither an undo step nor an edit, and
|
|
@@ -2332,6 +2360,8 @@ interface UseViewerBuildingBlocksInput extends ViewportFitOptions {
|
|
|
2332
2360
|
* the handle's `goTo` to move an open deck.
|
|
2333
2361
|
*/
|
|
2334
2362
|
initialSlide?: number;
|
|
2363
|
+
/** As `PowerPointViewer`'s `googleFonts`: the Google Fonts fallback policy (off, or a self-hosted mirror). */
|
|
2364
|
+
googleFonts?: GoogleFontsOption;
|
|
2335
2365
|
/** Whether the built-in autosave-to-localStorage recovery timer is active. Defaults to true. */
|
|
2336
2366
|
autosaveEnabled?: boolean;
|
|
2337
2367
|
/** Display name used as the author for comments. */
|
|
@@ -3182,11 +3212,21 @@ declare function useExportHandlers(input: UseExportHandlersInput): ExportHandler
|
|
|
3182
3212
|
//#endregion
|
|
3183
3213
|
//#region src/viewer/hooks/usePrintHandlers.d.ts
|
|
3184
3214
|
interface UsePrintHandlersInput {
|
|
3215
|
+
/** The editable slides (template elements partitioned out, as the viewer state holds them). */
|
|
3185
3216
|
slides: PptxSlide[];
|
|
3186
3217
|
activeSlideIndex: number;
|
|
3187
3218
|
canvasStageRef: RefObject<HTMLDivElement | null>;
|
|
3188
3219
|
setActiveSlideIndex: React.Dispatch<React.SetStateAction<number>>;
|
|
3189
|
-
/**
|
|
3220
|
+
/** Slide size in CSS pixels: the vector slides are exported at it. */
|
|
3221
|
+
canvasSize: CanvasSize$1;
|
|
3222
|
+
/**
|
|
3223
|
+
* The layout and master elements partitioned out of each slide, merged back
|
|
3224
|
+
* for the vector export and the outline (`buildSaveSlides`).
|
|
3225
|
+
*/
|
|
3226
|
+
templateElementsBySlideId?: Record<string, PptxElement[]>;
|
|
3227
|
+
/** The deck's handout master, painted on every handouts page. */
|
|
3228
|
+
handoutMaster?: PptxHandoutMaster;
|
|
3229
|
+
/** @deprecated Pass `canvasSize` and `handoutMaster`; only its `handoutMaster` is still read. */
|
|
3190
3230
|
pptxData?: PptxData;
|
|
3191
3231
|
}
|
|
3192
3232
|
interface PrintHandlersResult {
|
|
@@ -3201,13 +3241,14 @@ declare function usePrintHandlers(input: UsePrintHandlersInput): PrintHandlersRe
|
|
|
3201
3241
|
//#region src/viewer/hooks/useThemeHandlers.d.ts
|
|
3202
3242
|
interface UseThemeHandlersInput {
|
|
3203
3243
|
handlerRef: RefObject<PptxHandler | null>;
|
|
3204
|
-
serializeSlides: () => Promise<Uint8Array | null>;
|
|
3205
|
-
setContent: React.Dispatch<React.SetStateAction<ArrayBuffer | Uint8Array | null>>;
|
|
3206
|
-
onContentChange: ((data: Uint8Array) => void) | undefined;
|
|
3207
3244
|
setTheme: React.Dispatch<React.SetStateAction<Record<string, unknown> | null>>;
|
|
3208
3245
|
setSlideMasters: React.Dispatch<React.SetStateAction<Array<Record<string, unknown>>>>;
|
|
3209
3246
|
slideMasters: Array<Record<string, unknown>>;
|
|
3247
|
+
/** The deck's theme parts as loaded; an undo back to the loaded theme restores its name. */
|
|
3248
|
+
themeOptions?: PptxThemeOption[];
|
|
3210
3249
|
history: EditorHistoryResult;
|
|
3250
|
+
/** The live slides, which a theme applied by path re-themes in place. */
|
|
3251
|
+
slides: PptxSlide[];
|
|
3211
3252
|
/** Current live slides, re-coloured in place on a scheme-colour change. */
|
|
3212
3253
|
setSlides: React.Dispatch<React.SetStateAction<PptxSlide[]>>;
|
|
3213
3254
|
/**
|
|
@@ -3234,13 +3275,15 @@ interface ThemeHandlersResult {
|
|
|
3234
3275
|
handleUpdateThemeName: (name: string) => Promise<void>;
|
|
3235
3276
|
handleApplyThemeToPresentation: () => Promise<void>;
|
|
3236
3277
|
handleApplyThemeData: (colorScheme: PptxThemeColorScheme, fontScheme: PptxThemeFontScheme, themeName?: string) => Promise<void>;
|
|
3278
|
+
/** Undo or redo crossed a theme change: put that theme back (see `useEditorHistory`). */
|
|
3279
|
+
handleRestoreHistoryTheme: (theme: HistoryTheme) => Promise<void>;
|
|
3237
3280
|
handleSetTemplateBackground: (path: string, backgroundColor: string | undefined) => void;
|
|
3238
3281
|
handleGetTemplateBackgroundColor: (path: string) => string | undefined;
|
|
3239
3282
|
/** Return theme parts discovered in the loaded PPTX archive. */
|
|
3240
3283
|
handleGetAvailableThemes: () => Promise<PptxThemeOption[]>;
|
|
3241
3284
|
/**
|
|
3242
|
-
* Switch
|
|
3243
|
-
*
|
|
3285
|
+
* Switch every slide master to an existing theme part by its archive path, in place, as one
|
|
3286
|
+
* undo step.
|
|
3244
3287
|
*/
|
|
3245
3288
|
handleSwitchTheme: (themePath: string) => Promise<void>;
|
|
3246
3289
|
}
|
|
@@ -3503,14 +3546,7 @@ interface UseIOHandlersInput {
|
|
|
3503
3546
|
* output format, so the downloaded file carries every save option Save does.
|
|
3504
3547
|
*/
|
|
3505
3548
|
serializeSlides: SerializeSlides;
|
|
3506
|
-
/**
|
|
3507
|
-
* Plaintext serialisation for bytes the viewer feeds straight back into its
|
|
3508
|
-
* own loader. "Apply theme" does exactly that, and the loader has no password
|
|
3509
|
-
* to offer, so it must never receive an encrypted package.
|
|
3510
|
-
*/
|
|
3511
|
-
serializeForRecovery: () => Promise<Uint8Array | null>;
|
|
3512
3549
|
setContent: React$1.Dispatch<React$1.SetStateAction<ArrayBuffer | Uint8Array | null>>;
|
|
3513
|
-
onContentChange: ((content: Uint8Array) => void) | undefined;
|
|
3514
3550
|
/** The host's `onPropertiesChange` (document-properties edits). */
|
|
3515
3551
|
onPropertiesChange?: ((updates: Partial<PptxCoreProperties>) => void) | undefined;
|
|
3516
3552
|
/** The host's `onNotesUpdate` (speaker-notes edits). */
|
|
@@ -3571,6 +3607,8 @@ interface UseContentLifecycleInput {
|
|
|
3571
3607
|
allowExternalImages?: boolean;
|
|
3572
3608
|
/** Forwarded to {@link useLoadContent}: the host `initialSlide` prop. */
|
|
3573
3609
|
initialSlide?: number;
|
|
3610
|
+
/** Forwarded to {@link useFontInjection}: the host `googleFonts` prop. */
|
|
3611
|
+
googleFonts?: GoogleFontsOption;
|
|
3574
3612
|
/** Forwarded to {@link useLoadContent}: see `useReadOnlyRecommendationState`. */
|
|
3575
3613
|
setReadOnlyRecommendation: React$1.Dispatch<React$1.SetStateAction<ReadOnlyRecommendation>>;
|
|
3576
3614
|
/** Forwarded to {@link useLoadContent}: see `useReadOnlyRecommendationState`. */
|
|
@@ -3673,6 +3711,8 @@ interface UseViewerIntegrationInput {
|
|
|
3673
3711
|
allowExternalImages?: boolean;
|
|
3674
3712
|
/** Host `initialSlide` prop: the slide shown after each load; forwarded to `useContentLifecycle`. */
|
|
3675
3713
|
initialSlide?: number;
|
|
3714
|
+
/** Host `googleFonts` prop: the Google Fonts fallback policy; forwarded to `useFontInjection`. */
|
|
3715
|
+
googleFonts?: GoogleFontsOption;
|
|
3676
3716
|
/** Forwarded to `useContentLifecycle` -> `useLoadContent`: see `useReadOnlyRecommendationState`. */
|
|
3677
3717
|
setReadOnlyRecommendation: Dispatch<SetStateAction<ReadOnlyRecommendation>>;
|
|
3678
3718
|
/** Forwarded to `useContentLifecycle` -> `useLoadContent`: see `useReadOnlyRecommendationState`. */
|
|
@@ -4102,8 +4142,10 @@ declare function useExportSaveAs(input: UseExportSaveAsInput): ExportSaveAsResul
|
|
|
4102
4142
|
interface UseFontInjectionInput {
|
|
4103
4143
|
embeddedFonts: PptxEmbeddedFont[];
|
|
4104
4144
|
slides: PptxSlide[];
|
|
4145
|
+
/** Host `googleFonts` policy: unset loads from Google, `false` disables, `{ baseUrl }` mirrors. */
|
|
4146
|
+
googleFonts?: GoogleFontsOption;
|
|
4105
4147
|
}
|
|
4106
|
-
declare function useFontInjection({ embeddedFonts, slides }: UseFontInjectionInput): void;
|
|
4148
|
+
declare function useFontInjection({ embeddedFonts, slides, googleFonts }: UseFontInjectionInput): void;
|
|
4107
4149
|
//#endregion
|
|
4108
4150
|
//#region src/viewer/hooks/useGroupAlignLayerHandlers.d.ts
|
|
4109
4151
|
interface GroupAlignLayerInput {
|
package/dist/internals.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunk6GAWXARM_js = require('./chunk-6GAWXARM.js');
|
|
4
|
+
require('./chunk-3TN5SUQR.js');
|
|
5
5
|
require('./chunk-PIRHQTI4.js');
|
|
6
6
|
var pptx = require('ooxml-ui/pptx');
|
|
7
7
|
|
|
@@ -9,319 +9,319 @@ var pptx = require('ooxml-ui/pptx');
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "FragmentedTransitionLayer", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunk6GAWXARM_js.FragmentedTransitionLayer; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "MIN_TOUCH_TARGET", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunk6GAWXARM_js.MIN_TOUCH_TARGET; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "MOBILE_BREAKPOINT", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunk6GAWXARM_js.MOBILE_BREAKPOINT; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "MorphTransitionOverlay", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunk6GAWXARM_js.MorphTransitionOverlay; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "PresentationTransitionOverlay", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunk6GAWXARM_js.PresentationTransitionOverlay; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "SlideLayer", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunk6GAWXARM_js.SlideLayer; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "TABLET_BREAKPOINT", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunk6GAWXARM_js.TABLET_BREAKPOINT; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "computeToolbarVisibility", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunk6GAWXARM_js.computeToolbarVisibility; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "computeVirtualRange", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunk6GAWXARM_js.computeVirtualRange; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "useAnimationPlayback", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunk6GAWXARM_js.useAnimationPlayback; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "useAnnotationHandlers", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunk6GAWXARM_js.useAnnotationHandlers; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "useAudienceMode", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunk6GAWXARM_js.useAudienceMode; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "useAutosave", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunk6GAWXARM_js.useAutosave; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "useBroadcastFollower", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunk6GAWXARM_js.useBroadcastFollower; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "useCanvasInteractions", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunk6GAWXARM_js.useCanvasInteractions; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "useClipboardHandlers", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunk6GAWXARM_js.useClipboardHandlers; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "useCollaborativeHistory", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunk6GAWXARM_js.useCollaborativeHistory; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "useCollaborativeState", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunk6GAWXARM_js.useCollaborativeState; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "useComments", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunk6GAWXARM_js.useComments; }
|
|
85
85
|
});
|
|
86
86
|
Object.defineProperty(exports, "useContentLifecycle", {
|
|
87
87
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunk6GAWXARM_js.useContentLifecycle; }
|
|
89
89
|
});
|
|
90
90
|
Object.defineProperty(exports, "useDerivedElementState", {
|
|
91
91
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunk6GAWXARM_js.useDerivedElementState; }
|
|
93
93
|
});
|
|
94
94
|
Object.defineProperty(exports, "useDerivedSlideState", {
|
|
95
95
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunk6GAWXARM_js.useDerivedSlideState; }
|
|
97
97
|
});
|
|
98
98
|
Object.defineProperty(exports, "useDialogCustomShows", {
|
|
99
99
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunk6GAWXARM_js.useDialogCustomShows; }
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "useEditorHistory", {
|
|
103
103
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunk6GAWXARM_js.useEditorHistory; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "useEditorOperations", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunk6GAWXARM_js.useEditorOperations; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "useElementManipulation", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunk6GAWXARM_js.useElementManipulation; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "useElementOperations", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunk6GAWXARM_js.useElementOperations; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "useExportHandlers", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunk6GAWXARM_js.useExportHandlers; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "useExportSaveAs", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunk6GAWXARM_js.useExportSaveAs; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "useFindReplace", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunk6GAWXARM_js.useFindReplace; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "useFollowMode", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunk6GAWXARM_js.useFollowMode; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "useFontInjection", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunk6GAWXARM_js.useFontInjection; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "useGroupAlignLayerHandlers", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunk6GAWXARM_js.useGroupAlignLayerHandlers; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "useIOHandlers", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunk6GAWXARM_js.useIOHandlers; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "useInsertElements", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunk6GAWXARM_js.useInsertElements; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "useIsMobile", {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunk6GAWXARM_js.useIsMobile; }
|
|
153
153
|
});
|
|
154
154
|
Object.defineProperty(exports, "useKeyboardInsets", {
|
|
155
155
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunk6GAWXARM_js.useKeyboardInsets; }
|
|
157
157
|
});
|
|
158
158
|
Object.defineProperty(exports, "useKeyboardShortcutWiring", {
|
|
159
159
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunk6GAWXARM_js.useKeyboardShortcutWiring; }
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(exports, "useKeyboardShortcuts", {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunk6GAWXARM_js.useKeyboardShortcuts; }
|
|
165
165
|
});
|
|
166
166
|
Object.defineProperty(exports, "useLayoutSwitching", {
|
|
167
167
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunk6GAWXARM_js.useLayoutSwitching; }
|
|
169
169
|
});
|
|
170
170
|
Object.defineProperty(exports, "useLoadContent", {
|
|
171
171
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunk6GAWXARM_js.useLoadContent; }
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "useMergeShapesHandler", {
|
|
175
175
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunk6GAWXARM_js.useMergeShapesHandler; }
|
|
177
177
|
});
|
|
178
178
|
Object.defineProperty(exports, "useModalDismissDrag", {
|
|
179
179
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunk6GAWXARM_js.useModalDismissDrag; }
|
|
181
181
|
});
|
|
182
182
|
Object.defineProperty(exports, "usePointerHandlers", {
|
|
183
183
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunk6GAWXARM_js.usePointerHandlers; }
|
|
185
185
|
});
|
|
186
186
|
Object.defineProperty(exports, "usePresenceTracking", {
|
|
187
187
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunk6GAWXARM_js.usePresenceTracking; }
|
|
189
189
|
});
|
|
190
190
|
Object.defineProperty(exports, "usePresentationAnnotations", {
|
|
191
191
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunk6GAWXARM_js.usePresentationAnnotations; }
|
|
193
193
|
});
|
|
194
194
|
Object.defineProperty(exports, "usePresentationKeyboard", {
|
|
195
195
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunk6GAWXARM_js.usePresentationKeyboard; }
|
|
197
197
|
});
|
|
198
198
|
Object.defineProperty(exports, "usePresentationMode", {
|
|
199
199
|
enumerable: true,
|
|
200
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunk6GAWXARM_js.usePresentationMode; }
|
|
201
201
|
});
|
|
202
202
|
Object.defineProperty(exports, "usePresentationSetup", {
|
|
203
203
|
enumerable: true,
|
|
204
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunk6GAWXARM_js.usePresentationSetup; }
|
|
205
205
|
});
|
|
206
206
|
Object.defineProperty(exports, "usePresenterWindow", {
|
|
207
207
|
enumerable: true,
|
|
208
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunk6GAWXARM_js.usePresenterWindow; }
|
|
209
209
|
});
|
|
210
210
|
Object.defineProperty(exports, "usePrintHandlers", {
|
|
211
211
|
enumerable: true,
|
|
212
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunk6GAWXARM_js.usePrintHandlers; }
|
|
213
213
|
});
|
|
214
214
|
Object.defineProperty(exports, "usePropertyHandlers", {
|
|
215
215
|
enumerable: true,
|
|
216
|
-
get: function () { return
|
|
216
|
+
get: function () { return chunk6GAWXARM_js.usePropertyHandlers; }
|
|
217
217
|
});
|
|
218
218
|
Object.defineProperty(exports, "useRecoveryDetection", {
|
|
219
219
|
enumerable: true,
|
|
220
|
-
get: function () { return
|
|
220
|
+
get: function () { return chunk6GAWXARM_js.useRecoveryDetection; }
|
|
221
221
|
});
|
|
222
222
|
Object.defineProperty(exports, "useReducedMotion", {
|
|
223
223
|
enumerable: true,
|
|
224
|
-
get: function () { return
|
|
224
|
+
get: function () { return chunk6GAWXARM_js.useReducedMotion; }
|
|
225
225
|
});
|
|
226
226
|
Object.defineProperty(exports, "useRehearsalTimings", {
|
|
227
227
|
enumerable: true,
|
|
228
|
-
get: function () { return
|
|
228
|
+
get: function () { return chunk6GAWXARM_js.useRehearsalTimings; }
|
|
229
229
|
});
|
|
230
230
|
Object.defineProperty(exports, "useResizablePanels", {
|
|
231
231
|
enumerable: true,
|
|
232
|
-
get: function () { return
|
|
232
|
+
get: function () { return chunk6GAWXARM_js.useResizablePanels; }
|
|
233
233
|
});
|
|
234
234
|
Object.defineProperty(exports, "useSectionOperations", {
|
|
235
235
|
enumerable: true,
|
|
236
|
-
get: function () { return
|
|
236
|
+
get: function () { return chunk6GAWXARM_js.useSectionOperations; }
|
|
237
237
|
});
|
|
238
238
|
Object.defineProperty(exports, "useSerialize", {
|
|
239
239
|
enumerable: true,
|
|
240
|
-
get: function () { return
|
|
240
|
+
get: function () { return chunk6GAWXARM_js.useSerialize; }
|
|
241
241
|
});
|
|
242
242
|
Object.defineProperty(exports, "useSheetDismissDrag", {
|
|
243
243
|
enumerable: true,
|
|
244
|
-
get: function () { return
|
|
244
|
+
get: function () { return chunk6GAWXARM_js.useSheetDismissDrag; }
|
|
245
245
|
});
|
|
246
246
|
Object.defineProperty(exports, "useSlideManagement", {
|
|
247
247
|
enumerable: true,
|
|
248
|
-
get: function () { return
|
|
248
|
+
get: function () { return chunk6GAWXARM_js.useSlideManagement; }
|
|
249
249
|
});
|
|
250
250
|
Object.defineProperty(exports, "useSlideNavigation", {
|
|
251
251
|
enumerable: true,
|
|
252
|
-
get: function () { return
|
|
252
|
+
get: function () { return chunk6GAWXARM_js.useSlideNavigation; }
|
|
253
253
|
});
|
|
254
254
|
Object.defineProperty(exports, "useSwipeNavigation", {
|
|
255
255
|
enumerable: true,
|
|
256
|
-
get: function () { return
|
|
256
|
+
get: function () { return chunk6GAWXARM_js.useSwipeNavigation; }
|
|
257
257
|
});
|
|
258
258
|
Object.defineProperty(exports, "useTableOperations", {
|
|
259
259
|
enumerable: true,
|
|
260
|
-
get: function () { return
|
|
260
|
+
get: function () { return chunk6GAWXARM_js.useTableOperations; }
|
|
261
261
|
});
|
|
262
262
|
Object.defineProperty(exports, "useThemeHandlers", {
|
|
263
263
|
enumerable: true,
|
|
264
|
-
get: function () { return
|
|
264
|
+
get: function () { return chunk6GAWXARM_js.useThemeHandlers; }
|
|
265
265
|
});
|
|
266
266
|
Object.defineProperty(exports, "useThemeSwitching", {
|
|
267
267
|
enumerable: true,
|
|
268
|
-
get: function () { return
|
|
268
|
+
get: function () { return chunk6GAWXARM_js.useThemeSwitching; }
|
|
269
269
|
});
|
|
270
270
|
Object.defineProperty(exports, "useToolbarVisibility", {
|
|
271
271
|
enumerable: true,
|
|
272
|
-
get: function () { return
|
|
272
|
+
get: function () { return chunk6GAWXARM_js.useToolbarVisibility; }
|
|
273
273
|
});
|
|
274
274
|
Object.defineProperty(exports, "useTouchGestures", {
|
|
275
275
|
enumerable: true,
|
|
276
|
-
get: function () { return
|
|
276
|
+
get: function () { return chunk6GAWXARM_js.useTouchGestures; }
|
|
277
277
|
});
|
|
278
278
|
Object.defineProperty(exports, "useViewerBuildingBlocks", {
|
|
279
279
|
enumerable: true,
|
|
280
|
-
get: function () { return
|
|
280
|
+
get: function () { return chunk6GAWXARM_js.useViewerBuildingBlocks; }
|
|
281
281
|
});
|
|
282
282
|
Object.defineProperty(exports, "useViewerCoreState", {
|
|
283
283
|
enumerable: true,
|
|
284
|
-
get: function () { return
|
|
284
|
+
get: function () { return chunk6GAWXARM_js.useViewerCoreState; }
|
|
285
285
|
});
|
|
286
286
|
Object.defineProperty(exports, "useViewerDialogs", {
|
|
287
287
|
enumerable: true,
|
|
288
|
-
get: function () { return
|
|
288
|
+
get: function () { return chunk6GAWXARM_js.useViewerDialogs; }
|
|
289
289
|
});
|
|
290
290
|
Object.defineProperty(exports, "useViewerIntegration", {
|
|
291
291
|
enumerable: true,
|
|
292
|
-
get: function () { return
|
|
292
|
+
get: function () { return chunk6GAWXARM_js.useViewerIntegration; }
|
|
293
293
|
});
|
|
294
294
|
Object.defineProperty(exports, "useViewerOptions", {
|
|
295
295
|
enumerable: true,
|
|
296
|
-
get: function () { return
|
|
296
|
+
get: function () { return chunk6GAWXARM_js.useViewerOptions; }
|
|
297
297
|
});
|
|
298
298
|
Object.defineProperty(exports, "useViewerState", {
|
|
299
299
|
enumerable: true,
|
|
300
|
-
get: function () { return
|
|
300
|
+
get: function () { return chunk6GAWXARM_js.useViewerState; }
|
|
301
301
|
});
|
|
302
302
|
Object.defineProperty(exports, "useViewerUIState", {
|
|
303
303
|
enumerable: true,
|
|
304
|
-
get: function () { return
|
|
304
|
+
get: function () { return chunk6GAWXARM_js.useViewerUIState; }
|
|
305
305
|
});
|
|
306
306
|
Object.defineProperty(exports, "useVirtualizedSlides", {
|
|
307
307
|
enumerable: true,
|
|
308
|
-
get: function () { return
|
|
308
|
+
get: function () { return chunk6GAWXARM_js.useVirtualizedSlides; }
|
|
309
309
|
});
|
|
310
310
|
Object.defineProperty(exports, "useYjsDocumentSync", {
|
|
311
311
|
enumerable: true,
|
|
312
|
-
get: function () { return
|
|
312
|
+
get: function () { return chunk6GAWXARM_js.useYjsDocumentSync; }
|
|
313
313
|
});
|
|
314
314
|
Object.defineProperty(exports, "useYjsProvider", {
|
|
315
315
|
enumerable: true,
|
|
316
|
-
get: function () { return
|
|
316
|
+
get: function () { return chunk6GAWXARM_js.useYjsProvider; }
|
|
317
317
|
});
|
|
318
318
|
Object.defineProperty(exports, "useZoomNavigation", {
|
|
319
319
|
enumerable: true,
|
|
320
|
-
get: function () { return
|
|
320
|
+
get: function () { return chunk6GAWXARM_js.useZoomNavigation; }
|
|
321
321
|
});
|
|
322
322
|
Object.defineProperty(exports, "useZoomViewport", {
|
|
323
323
|
enumerable: true,
|
|
324
|
-
get: function () { return
|
|
324
|
+
get: function () { return chunk6GAWXARM_js.useZoomViewport; }
|
|
325
325
|
});
|
|
326
326
|
Object.defineProperty(exports, "CINEMATIC_TRANSITION_KEYFRAMES", {
|
|
327
327
|
enumerable: true,
|
package/dist/internals.js.br
CHANGED
|
Binary file
|
package/dist/internals.js.gz
CHANGED
|
Binary file
|
package/dist/internals.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { FragmentedTransitionLayer, MIN_TOUCH_TARGET, MOBILE_BREAKPOINT, MorphTransitionOverlay, PresentationTransitionOverlay, SlideLayer, TABLET_BREAKPOINT, computeToolbarVisibility, computeVirtualRange, useAnimationPlayback, useAnnotationHandlers, useAudienceMode, useAutosave, useBroadcastFollower, useCanvasInteractions, useClipboardHandlers, useCollaborativeHistory, useCollaborativeState, useComments, useContentLifecycle, useDerivedElementState, useDerivedSlideState, useDialogCustomShows, useEditorHistory, useEditorOperations, useElementManipulation, useElementOperations, useExportHandlers, useExportSaveAs, useFindReplace, useFollowMode, useFontInjection, useGroupAlignLayerHandlers, useIOHandlers, useInsertElements, useIsMobile, useKeyboardInsets, useKeyboardShortcutWiring, useKeyboardShortcuts, useLayoutSwitching, useLoadContent, useMergeShapesHandler, useModalDismissDrag, usePointerHandlers, usePresenceTracking, usePresentationAnnotations, usePresentationKeyboard, usePresentationMode, usePresentationSetup, usePresenterWindow, usePrintHandlers, usePropertyHandlers, useRecoveryDetection, useReducedMotion, useRehearsalTimings, useResizablePanels, useSectionOperations, useSerialize, useSheetDismissDrag, useSlideManagement, useSlideNavigation, useSwipeNavigation, useTableOperations, useThemeHandlers, useThemeSwitching, useToolbarVisibility, useTouchGestures, useViewerBuildingBlocks, useViewerCoreState, useViewerDialogs, useViewerIntegration, useViewerOptions, useViewerState, useViewerUIState, useVirtualizedSlides, useYjsDocumentSync, useYjsProvider, useZoomNavigation, useZoomViewport } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { FragmentedTransitionLayer, MIN_TOUCH_TARGET, MOBILE_BREAKPOINT, MorphTransitionOverlay, PresentationTransitionOverlay, SlideLayer, TABLET_BREAKPOINT, computeToolbarVisibility, computeVirtualRange, useAnimationPlayback, useAnnotationHandlers, useAudienceMode, useAutosave, useBroadcastFollower, useCanvasInteractions, useClipboardHandlers, useCollaborativeHistory, useCollaborativeState, useComments, useContentLifecycle, useDerivedElementState, useDerivedSlideState, useDialogCustomShows, useEditorHistory, useEditorOperations, useElementManipulation, useElementOperations, useExportHandlers, useExportSaveAs, useFindReplace, useFollowMode, useFontInjection, useGroupAlignLayerHandlers, useIOHandlers, useInsertElements, useIsMobile, useKeyboardInsets, useKeyboardShortcutWiring, useKeyboardShortcuts, useLayoutSwitching, useLoadContent, useMergeShapesHandler, useModalDismissDrag, usePointerHandlers, usePresenceTracking, usePresentationAnnotations, usePresentationKeyboard, usePresentationMode, usePresentationSetup, usePresenterWindow, usePrintHandlers, usePropertyHandlers, useRecoveryDetection, useReducedMotion, useRehearsalTimings, useResizablePanels, useSectionOperations, useSerialize, useSheetDismissDrag, useSlideManagement, useSlideNavigation, useSwipeNavigation, useTableOperations, useThemeHandlers, useThemeSwitching, useToolbarVisibility, useTouchGestures, useViewerBuildingBlocks, useViewerCoreState, useViewerDialogs, useViewerIntegration, useViewerOptions, useViewerState, useViewerUIState, useVirtualizedSlides, useYjsDocumentSync, useYjsProvider, useZoomNavigation, useZoomViewport } from './chunk-3KXEJCMG.mjs';
|
|
2
|
+
import './chunk-ID37Y3HG.mjs';
|
|
3
3
|
import './chunk-UV2HVMKZ.mjs';
|
|
4
4
|
export { CINEMATIC_TRANSITION_KEYFRAMES, DEFAULT_MORPH_DURATION_MS, DEFAULT_TRANSITION_DURATION_MS, EASE, INSTANT, P14_TRANSITION_KEYFRAMES, P14_TRANSITION_KEYFRAMES_2, P14_TRANSITION_KEYFRAMES_ALL, RANDOM_ELIGIBLE_TYPES, SLIDE_TRANSITION_KEYFRAMES, SLIDE_TRANSITION_KEYFRAMES_CSS, TRANSITION_SPEED_DURATION_MS, WHEEL_SPOKE_COUNTS, getCinematicTransitionAnimations, getP14TransitionAnimations, getSlideTransitionAnimations, resolveDirection, resolveDirection8, resolveOrientation, resolveSlideTransition, resolveTransitionDurationMs, resolveWheelSpokeCount } from 'ooxml-ui/pptx';
|
package/dist/internals.mjs.br
CHANGED
|
Binary file
|
package/dist/internals.mjs.gz
CHANGED
|
Binary file
|
package/dist/viewer/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as ooxml_ui_pptx from 'ooxml-ui/pptx';
|
|
2
|
-
import { CollaborationRole, CollaborationConfig, ViewportFitOptions, ViewerFontSource, CanvasSize, DocumentStorage, ViewerAutosaveStatus, AutosaveRecord, ConnectionStatus, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, CollaborationInput, ToolbarActionId, RibbonAddInTab, ViewerCustomization, PowerPointViewerAPI, ViewerCustomizationApi, BorrowedCollaborationAwareness } from 'ooxml-ui/pptx';
|
|
2
|
+
import { CollaborationRole, CollaborationConfig, HistoryTheme, ViewportFitOptions, ViewerFontSource, CanvasSize, DocumentStorage, ViewerAutosaveStatus, AutosaveRecord, ConnectionStatus, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, CollaborationInput, GoogleFontsOption, ToolbarActionId, RibbonAddInTab, ViewerCustomization, PowerPointViewerAPI, ViewerCustomizationApi, BorrowedCollaborationAwareness } from 'ooxml-ui/pptx';
|
|
3
3
|
export { CollaborationConfig, CollaborationRole, ElementClipboardPayload, ExternalCollaborationAwareness, ExternalCollaborationSession, ExternalCollaborationSnapshot, SessionDeck, ShapeAdjustmentDragState, ShapeAdjustmentHandleDescriptor, ViewerMode, clearAudienceContent, forgetSessionDeck, getSessionTabId, loadAudienceContent, loadSessionDeck, rememberSessionDeck, restoreSessionDeck, storeAudienceContent } from 'ooxml-ui/pptx';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import React__default, { ReactNode, ReactElement, RefObject } from 'react';
|
|
@@ -102,6 +102,8 @@ interface EditorHistorySnapshot {
|
|
|
102
102
|
activeSlideIndex: number;
|
|
103
103
|
slides: PptxSlide[];
|
|
104
104
|
templateElementsBySlideId: Record<string, PptxElement[]>;
|
|
105
|
+
/** The theme at that point, so undoing a theme pick puts the theme back with the slides. */
|
|
106
|
+
theme?: HistoryTheme;
|
|
105
107
|
actionLabel?: string;
|
|
106
108
|
}
|
|
107
109
|
/** Axis-aligned bounding box for an element, used for hit-testing and alignment. */
|
|
@@ -627,6 +629,16 @@ interface PowerPointViewerProps extends ViewportFitOptions {
|
|
|
627
629
|
* the next load.
|
|
628
630
|
*/
|
|
629
631
|
initialSlide?: number;
|
|
632
|
+
/**
|
|
633
|
+
* Google Fonts fallback for deck fonts that are neither installed nor
|
|
634
|
+
* embedded. Unset: the viewer loads them from `fonts.googleapis.com`.
|
|
635
|
+
* `false`: no request goes to Google (`fonts.googleapis.com` or
|
|
636
|
+
* `fonts.gstatic.com`); text uses installed, embedded or fallback fonts.
|
|
637
|
+
* `{ baseUrl }`: requests go to a self-hosted mirror of the Google Fonts
|
|
638
|
+
* CSS2 API instead, so the user's browser never contacts Google. An
|
|
639
|
+
* invalid `baseUrl` disables the fallback (with a console warning).
|
|
640
|
+
*/
|
|
641
|
+
googleFonts?: GoogleFontsOption;
|
|
630
642
|
/**
|
|
631
643
|
* Show the editor chrome: title bar, ribbon and toolbar, protected-view
|
|
632
644
|
* and read-only banners, the mobile toolbar and the status bar. Default
|