pptx-react-viewer 4.36.3 → 4.38.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 +58 -0
- package/dist/{chunk-F76MGAHF.mjs → chunk-3SFBCFHJ.mjs} +43 -6
- package/dist/chunk-3SFBCFHJ.mjs.br +0 -0
- package/dist/chunk-3SFBCFHJ.mjs.gz +0 -0
- package/dist/{chunk-JPVT7TY7.mjs → chunk-LLH3I2XY.mjs} +630 -677
- package/dist/chunk-LLH3I2XY.mjs.br +0 -0
- package/dist/chunk-LLH3I2XY.mjs.gz +0 -0
- package/dist/{chunk-VCRUM3NE.js → chunk-Q5WEQ37H.js} +1621 -1668
- package/dist/chunk-Q5WEQ37H.js.br +0 -0
- package/dist/chunk-Q5WEQ37H.js.gz +0 -0
- package/dist/{chunk-ODFNNB5X.js → chunk-TCEDOLGE.js} +42 -4
- package/dist/chunk-TCEDOLGE.js.br +0 -0
- package/dist/chunk-TCEDOLGE.js.gz +0 -0
- package/dist/i18n/de.cjs +142 -8
- package/dist/i18n/de.cjs.br +0 -0
- package/dist/i18n/de.cjs.gz +0 -0
- package/dist/i18n/de.mjs +142 -8
- package/dist/i18n/de.mjs.br +0 -0
- package/dist/i18n/de.mjs.gz +0 -0
- package/dist/i18n/es.cjs +142 -8
- package/dist/i18n/es.cjs.br +0 -0
- package/dist/i18n/es.cjs.gz +0 -0
- package/dist/i18n/es.mjs +142 -8
- package/dist/i18n/es.mjs.br +0 -0
- package/dist/i18n/es.mjs.gz +0 -0
- package/dist/i18n/fr.cjs +142 -8
- package/dist/i18n/fr.cjs.br +0 -0
- package/dist/i18n/fr.cjs.gz +0 -0
- package/dist/i18n/fr.mjs +142 -8
- package/dist/i18n/fr.mjs.br +0 -0
- package/dist/i18n/fr.mjs.gz +0 -0
- package/dist/i18n/zh-CN.cjs +143 -9
- package/dist/i18n/zh-CN.cjs.br +0 -0
- package/dist/i18n/zh-CN.cjs.gz +0 -0
- package/dist/i18n/zh-CN.mjs +143 -9
- package/dist/i18n/zh-CN.mjs.br +0 -0
- package/dist/i18n/zh-CN.mjs.gz +0 -0
- package/dist/index.d.ts +21 -5
- package/dist/index.js +22 -22
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +34 -30
- package/dist/internals.js +80 -80
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +1 -1
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/pptx-viewer.css +1 -1
- package/dist/pptx-viewer.css.br +0 -0
- package/dist/pptx-viewer.css.gz +0 -0
- package/dist/viewer/index.d.ts +17 -3
- package/dist/viewer/index.js +17 -17
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +2 -2
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +3 -3
- package/dist/chunk-F76MGAHF.mjs.br +0 -0
- package/dist/chunk-F76MGAHF.mjs.gz +0 -0
- package/dist/chunk-JPVT7TY7.mjs.br +0 -0
- package/dist/chunk-JPVT7TY7.mjs.gz +0 -0
- package/dist/chunk-ODFNNB5X.js.br +0 -0
- package/dist/chunk-ODFNNB5X.js.gz +0 -0
- package/dist/chunk-VCRUM3NE.js.br +0 -0
- package/dist/chunk-VCRUM3NE.js.gz +0 -0
package/dist/internals.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CollaborationRole, CollaborationConfig, PowerPointViewerAPI, ViewerCustomizationApi, ShapeAdjustmentHandleDescriptor, ChangeCaseMode, ResolvedKeyboardCustomization, FindResult, EditorImagePasteOptions, InsertChartKind, PasteSpecialFormat, SlidePasteRequest, SlideTemplateId, MorphTransitionPlan, ElementAnimationState, ZoomNavigationTarget, PresentationSnapshot, ViewerMode, ShapeAdjustmentDragState, InlineTextEditSnapshot, InlineListReadResult, FreeformToolKind, CollaborationLivePatcher, SlideSizeEmu, ElementClipboardPayload, CropSession, FontEmbeddingDescriptor, MasterViewTarget, ViewportFitOptions, ToolbarActionId, CollaborationShellState, AnimationApplyGroup, RulerUnit, FieldSubstitutionContext, EditPointsCommandId, EditPointsElementPatch, PresentationPointerTool, RunProgramNotice, BorrowedCollaborationAwareness, CollabLoadOrigin, AuthoredSlideRange, FragmentedLayer, PrintSettings, ThemeEditorEdit, CompareResult, ReadOnlyRecommendation, CompatibilityWarningToast, DeviceOrientation, ResolvedCustomization, DeckSavePurpose, ZoomExcursion, TouchGestureCallbacks, ViewerOptionsStore, ViewerOptions, AutosaveRecoveryPrompt, VirtualizedRange, ToolbarTabId } from 'ooxml-ui/pptx';
|
|
1
|
+
import { CollaborationRole, CollaborationConfig, PowerPointViewerAPI, ViewerCustomizationApi, ShapeAdjustmentHandleDescriptor, ChangeCaseMode, ResolvedKeyboardCustomization, FindResult, EditorImagePasteOptions, InsertChartKind, PasteSpecialFormat, SlidePasteRequest, SlideTemplateId, MorphTransitionPlan, ElementAnimationState, ZoomNavigationTarget, PresentationSnapshot, ViewerMode, ShapeAdjustmentDragState, InlineTextEditSnapshot, InlineListReadResult, FreeformToolKind, CollaborationLivePatcher, SlideSizeEmu, ElementClipboardPayload, CropSession, FontEmbeddingDescriptor, MasterViewTarget, ViewportFitOptions, ToolbarActionId, CollaborationShellState, AnimationApplyGroup, ReviewCommentsHost, RulerUnit, FieldSubstitutionContext, EditPointsCommandId, EditPointsElementPatch, PresentationPointerTool, RunProgramNotice, BorrowedCollaborationAwareness, CollabLoadOrigin, AuthoredSlideRange, FragmentedLayer, PrintSettings, ThemeEditorEdit, CompareResult, ReadOnlyRecommendation, CompatibilityWarningToast, DeviceOrientation, ResolvedCustomization, DeckSavePurpose, ZoomExcursion, TouchGestureCallbacks, 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
3
|
import { PptxSlide, PptxElement, PptxElementAnimation, TextStyle, PptxHeaderFooter, ShapeStyle, PptxCommentMention, SmartArtLayout, InkPptxElement, ShapePptxElement, MergeShapeOperation, PptxSlideTransition, PptxAction, PptxSlideMaster, PptxModernCommentAuthor, PptxTheme, 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 * as Y from 'yjs';
|
|
@@ -13,7 +13,7 @@ import React$1, { Dispatch, SetStateAction, MutableRefObject, RefObject, Forward
|
|
|
13
13
|
*/
|
|
14
14
|
type SupportedShapeType = 'rect' | 'roundRect' | 'ellipse' | 'triangle' | 'rtTriangle' | 'diamond' | 'cylinder' | 'parallelogram' | 'trapezoid' | 'pentagon' | 'hexagon' | 'octagon' | 'chevron' | 'star5' | 'star6' | 'star8' | 'plus' | 'heart' | 'cloud' | 'sun' | 'moon' | 'pie' | 'plaque' | 'teardrop' | 'line' | 'rtArrow' | 'leftArrow' | 'upArrow' | 'downArrow' | 'connector' | 'freeform';
|
|
15
15
|
/** The pixel dimensions of the slide canvas (presentation slide size). */
|
|
16
|
-
interface CanvasSize {
|
|
16
|
+
interface CanvasSize$1 {
|
|
17
17
|
/** Width of the canvas in CSS pixels. */
|
|
18
18
|
width: number;
|
|
19
19
|
/** Height of the canvas in CSS pixels. */
|
|
@@ -296,7 +296,7 @@ interface ToolbarProps {
|
|
|
296
296
|
onArmFreeformTool?: (tool: FreeformToolKind | null) => void;
|
|
297
297
|
onAddTextBox: () => void;
|
|
298
298
|
onAddShape: () => void;
|
|
299
|
-
onAddTable: () => void;
|
|
299
|
+
onAddTable: (rows?: number, columns?: number) => void;
|
|
300
300
|
onAddChart?: (chartKind: InsertChartKind) => void;
|
|
301
301
|
onAddSmartArt: () => void;
|
|
302
302
|
onAddEquation: () => void;
|
|
@@ -432,6 +432,8 @@ interface ToolbarProps {
|
|
|
432
432
|
isCommentsPanelOpen?: boolean;
|
|
433
433
|
spellCheckActive?: boolean;
|
|
434
434
|
slideCommentCount?: number;
|
|
435
|
+
/** Review > Comments Previous / Next / Delete: the deck's slides and how to rewrite them. */
|
|
436
|
+
reviewComments?: ReviewCommentsHost;
|
|
435
437
|
formatPainterActive?: boolean;
|
|
436
438
|
onToggleFormatPainter?: () => void;
|
|
437
439
|
canActivateFormatPainter?: boolean;
|
|
@@ -527,7 +529,7 @@ interface CanvasInteractionHandlers {
|
|
|
527
529
|
//#region src/viewer/hooks/useEditorHistory.d.ts
|
|
528
530
|
interface EditorHistoryInput {
|
|
529
531
|
slides: PptxSlide[];
|
|
530
|
-
canvasSize: CanvasSize;
|
|
532
|
+
canvasSize: CanvasSize$1;
|
|
531
533
|
activeSlideIndex: number;
|
|
532
534
|
templateElementsBySlideId: Record<string, PptxElement[]>;
|
|
533
535
|
selectedElementId: string | null;
|
|
@@ -556,7 +558,7 @@ interface EditorHistoryInput {
|
|
|
556
558
|
*/
|
|
557
559
|
onDirty?: () => void;
|
|
558
560
|
setSlides: (slides: PptxSlide[]) => void;
|
|
559
|
-
setCanvasSize: (size: CanvasSize) => void;
|
|
561
|
+
setCanvasSize: (size: CanvasSize$1) => void;
|
|
560
562
|
setActiveSlideIndex: (index: number) => void;
|
|
561
563
|
setTemplateElementsBySlideId: (map: Record<string, PptxElement[]>) => void;
|
|
562
564
|
setSelectedElementId: (id: string | null) => void;
|
|
@@ -665,7 +667,7 @@ declare function useElementOperations(input: UseElementOperationsInput): Element
|
|
|
665
667
|
interface UseCanvasInteractionsInput {
|
|
666
668
|
mode: ViewerMode;
|
|
667
669
|
canEdit: boolean;
|
|
668
|
-
canvasSize: CanvasSize;
|
|
670
|
+
canvasSize: CanvasSize$1;
|
|
669
671
|
activeSlideIndex: number;
|
|
670
672
|
selectedElementId: string | null;
|
|
671
673
|
selectedElementIds: string[];
|
|
@@ -917,7 +919,7 @@ interface HyperlinkEditData {
|
|
|
917
919
|
interface UseInsertElementsInput {
|
|
918
920
|
activeSlide: PptxSlide | undefined;
|
|
919
921
|
activeSlideIndex: number;
|
|
920
|
-
canvasSize: CanvasSize;
|
|
922
|
+
canvasSize: CanvasSize$1;
|
|
921
923
|
newShapeType: SupportedShapeType;
|
|
922
924
|
selectedElements: PptxElement[];
|
|
923
925
|
ops: ElementOperations;
|
|
@@ -928,7 +930,7 @@ interface InsertElementHandlers {
|
|
|
928
930
|
addElement: (element: PptxElement) => void;
|
|
929
931
|
handleAddTextBox: () => void;
|
|
930
932
|
handleAddShape: () => void;
|
|
931
|
-
handleAddTable: () => void;
|
|
933
|
+
handleAddTable: (rows?: number, columns?: number) => void;
|
|
932
934
|
handleAddChart: (chartKind: InsertChartKind) => void;
|
|
933
935
|
handleInsertSmartArt: (layout: SmartArtLayout, defaultItems: string[]) => void;
|
|
934
936
|
handleInsertEquation: (omml: Record<string, unknown>) => void;
|
|
@@ -1327,7 +1329,7 @@ interface UseViewerDialogsInput {
|
|
|
1327
1329
|
/** Zero-based index of the active slide. */
|
|
1328
1330
|
activeSlideIndex: number;
|
|
1329
1331
|
/** Slide canvas dimensions (used for guide positioning). */
|
|
1330
|
-
canvasSize: CanvasSize;
|
|
1332
|
+
canvasSize: CanvasSize$1;
|
|
1331
1333
|
/** Ref to the container element (used for viewport width detection). */
|
|
1332
1334
|
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
1333
1335
|
/** Custom shows defined in the presentation. */
|
|
@@ -1598,8 +1600,8 @@ interface ViewerCoreState extends InlineEditingState, EditPointsModeState {
|
|
|
1598
1600
|
templateElementsBySlideId: Record<string, PptxElement[]>;
|
|
1599
1601
|
setTemplateElementsBySlideId: React$1.Dispatch<React$1.SetStateAction<Record<string, PptxElement[]>>>;
|
|
1600
1602
|
/** Width and height of the slide canvas in CSS pixels. */
|
|
1601
|
-
canvasSize: CanvasSize;
|
|
1602
|
-
setCanvasSize: React$1.Dispatch<React$1.SetStateAction<CanvasSize>>;
|
|
1603
|
+
canvasSize: CanvasSize$1;
|
|
1604
|
+
setCanvasSize: React$1.Dispatch<React$1.SetStateAction<CanvasSize$1>>;
|
|
1603
1605
|
/**
|
|
1604
1606
|
* `p:sldSz` in EMU, seeded from the loaded deck and updated by Design >
|
|
1605
1607
|
* Slide Size. It is what a save persists: the pixel `canvasSize` above
|
|
@@ -1702,8 +1704,8 @@ interface ViewerCoreState extends InlineEditingState, EditPointsModeState {
|
|
|
1702
1704
|
handoutMaster: PptxHandoutMaster | undefined;
|
|
1703
1705
|
setHandoutMaster: React$1.Dispatch<React$1.SetStateAction<PptxHandoutMaster | undefined>>;
|
|
1704
1706
|
/** Canvas dimensions for the notes page view (may differ from slide canvas). */
|
|
1705
|
-
notesCanvasSize: CanvasSize | undefined;
|
|
1706
|
-
setNotesCanvasSize: React$1.Dispatch<React$1.SetStateAction<CanvasSize | undefined>>;
|
|
1707
|
+
notesCanvasSize: CanvasSize$1 | undefined;
|
|
1708
|
+
setNotesCanvasSize: React$1.Dispatch<React$1.SetStateAction<CanvasSize$1 | undefined>>;
|
|
1707
1709
|
/** User-defined custom document properties. */
|
|
1708
1710
|
customProperties: PptxCustomProperty[];
|
|
1709
1711
|
setCustomProperties: React$1.Dispatch<React$1.SetStateAction<PptxCustomProperty[]>>;
|
|
@@ -1919,7 +1921,7 @@ interface UseEditorOperationsInput {
|
|
|
1919
1921
|
selectedElement: PptxElement | null;
|
|
1920
1922
|
selectedElementId: string | null;
|
|
1921
1923
|
selectedElementIds: string[];
|
|
1922
|
-
canvasSize: CanvasSize;
|
|
1924
|
+
canvasSize: CanvasSize$1;
|
|
1923
1925
|
dialogs: ViewerDialogsResult;
|
|
1924
1926
|
presentation: UsePresentationModeResult;
|
|
1925
1927
|
/** Display name for comment authoring. */
|
|
@@ -2014,7 +2016,7 @@ interface SlideCanvasProps {
|
|
|
2014
2016
|
imagePaste?: CanvasImagePasteHandlers;
|
|
2015
2017
|
activeSlide: PptxSlide | undefined;
|
|
2016
2018
|
templateElements: PptxElement[];
|
|
2017
|
-
canvasSize: CanvasSize;
|
|
2019
|
+
canvasSize: CanvasSize$1;
|
|
2018
2020
|
zoom: ZoomViewport;
|
|
2019
2021
|
mode: ViewerMode;
|
|
2020
2022
|
canEdit: boolean;
|
|
@@ -2632,7 +2634,7 @@ interface SelectionBounds {
|
|
|
2632
2634
|
maxY: number;
|
|
2633
2635
|
}
|
|
2634
2636
|
interface UseZoomViewportInput extends ViewportFitOptions {
|
|
2635
|
-
canvasSize: CanvasSize;
|
|
2637
|
+
canvasSize: CanvasSize$1;
|
|
2636
2638
|
selectedElements: PptxElement[];
|
|
2637
2639
|
}
|
|
2638
2640
|
interface UseZoomViewportResult {
|
|
@@ -2644,8 +2646,8 @@ interface UseZoomViewportResult {
|
|
|
2644
2646
|
renderScaleRef: React.MutableRefObject<number>;
|
|
2645
2647
|
scale: number;
|
|
2646
2648
|
setScale: (scale: number) => void;
|
|
2647
|
-
editorDimensions: CanvasSize | null;
|
|
2648
|
-
setEditorDimensions: (dims: CanvasSize | null) => void;
|
|
2649
|
+
editorDimensions: CanvasSize$1 | null;
|
|
2650
|
+
setEditorDimensions: (dims: CanvasSize$1 | null) => void;
|
|
2649
2651
|
fitScale: number;
|
|
2650
2652
|
editorScale: number;
|
|
2651
2653
|
handleZoomIn: () => void;
|
|
@@ -2787,7 +2789,7 @@ interface UseLoadContentInput {
|
|
|
2787
2789
|
setSlides: React.Dispatch<React.SetStateAction<PptxSlide[]>>;
|
|
2788
2790
|
setTemplateElementsBySlideId: React.Dispatch<React.SetStateAction<Record<string, PptxElement[]>>>;
|
|
2789
2791
|
mediaDataUrls: Map<string, string>;
|
|
2790
|
-
setCanvasSize: React.Dispatch<React.SetStateAction<CanvasSize>>;
|
|
2792
|
+
setCanvasSize: React.Dispatch<React.SetStateAction<CanvasSize$1>>;
|
|
2791
2793
|
/** Seeds the EMU `p:sldSz` that a save persists (see `ViewerCoreState.slideSizeEmu`). */
|
|
2792
2794
|
setSlideSizeEmu: React.Dispatch<React.SetStateAction<SlideSizeEmu | undefined>>;
|
|
2793
2795
|
setHeaderFooter: React.Dispatch<React.SetStateAction<PptxHeaderFooter>>;
|
|
@@ -2817,7 +2819,7 @@ interface UseLoadContentInput {
|
|
|
2817
2819
|
setViewProperties: React.Dispatch<React.SetStateAction<PptxViewProperties | undefined>>;
|
|
2818
2820
|
setNotesMaster: React.Dispatch<React.SetStateAction<PptxNotesMaster | undefined>>;
|
|
2819
2821
|
setHandoutMaster: React.Dispatch<React.SetStateAction<PptxHandoutMaster | undefined>>;
|
|
2820
|
-
setNotesCanvasSize: React.Dispatch<React.SetStateAction<CanvasSize | undefined>>;
|
|
2822
|
+
setNotesCanvasSize: React.Dispatch<React.SetStateAction<CanvasSize$1 | undefined>>;
|
|
2821
2823
|
setCustomProperties: React.Dispatch<React.SetStateAction<PptxCustomProperty[]>>;
|
|
2822
2824
|
setTagCollections: React.Dispatch<React.SetStateAction<PptxTagCollection[]>>;
|
|
2823
2825
|
setCoreProperties: React.Dispatch<React.SetStateAction<PptxCoreProperties | undefined>>;
|
|
@@ -2875,7 +2877,7 @@ declare function useLoadContent({ content, clearSelection, history, setSlides, s
|
|
|
2875
2877
|
interface UsePointerHandlersInput {
|
|
2876
2878
|
editorScale: number;
|
|
2877
2879
|
canvasStageRef: React.RefObject<HTMLDivElement | null>;
|
|
2878
|
-
canvasSize: CanvasSize;
|
|
2880
|
+
canvasSize: CanvasSize$1;
|
|
2879
2881
|
activeSlide: PptxSlide | undefined;
|
|
2880
2882
|
activeSlideIndex: number;
|
|
2881
2883
|
gridSpacingPx: number;
|
|
@@ -2936,7 +2938,7 @@ interface UseSerializeInput {
|
|
|
2936
2938
|
editTemplateMode?: boolean;
|
|
2937
2939
|
masterViewTarget?: MasterViewTarget | null;
|
|
2938
2940
|
/** The pixel canvas the raw Slide Size W/H inputs edit. */
|
|
2939
|
-
canvasSize: CanvasSize;
|
|
2941
|
+
canvasSize: CanvasSize$1;
|
|
2940
2942
|
/**
|
|
2941
2943
|
* The EMU `p:sldSz` the viewer is holding (seeded on load, replaced by a
|
|
2942
2944
|
* preset/orientation pick). Passed with `canvasSize` to
|
|
@@ -3065,7 +3067,7 @@ interface UseExportHandlersInput {
|
|
|
3065
3067
|
/** Live theme, carried into the deck-JSON export document. */
|
|
3066
3068
|
theme: PptxTheme | undefined;
|
|
3067
3069
|
/** Slide canvas size in CSS pixels, carried into the deck-JSON export. */
|
|
3068
|
-
canvasSize: CanvasSize;
|
|
3070
|
+
canvasSize: CanvasSize$1;
|
|
3069
3071
|
/** The EMU `p:sldSz` the viewer holds, for the deck-JSON export's slide size. */
|
|
3070
3072
|
slideSizeEmu?: SlideSizeEmu | undefined;
|
|
3071
3073
|
/**
|
|
@@ -3180,7 +3182,7 @@ declare function useThemeHandlers(input: UseThemeHandlersInput): ThemeHandlersRe
|
|
|
3180
3182
|
interface UsePropertyHandlersInput {
|
|
3181
3183
|
slides: PptxSlide[];
|
|
3182
3184
|
activeSlideIndex: number;
|
|
3183
|
-
canvasSize: CanvasSize;
|
|
3185
|
+
canvasSize: CanvasSize$1;
|
|
3184
3186
|
setContent: React.Dispatch<React.SetStateAction<ArrayBuffer | Uint8Array | null>>;
|
|
3185
3187
|
setPresentationProperties: React.Dispatch<React.SetStateAction<PptxPresentationProperties>>;
|
|
3186
3188
|
setCoreProperties: React.Dispatch<React.SetStateAction<PptxCoreProperties | null>>;
|
|
@@ -3408,7 +3410,7 @@ interface UseIOHandlersInput {
|
|
|
3408
3410
|
state: ViewerState;
|
|
3409
3411
|
slides: PptxSlide[];
|
|
3410
3412
|
activeSlideIndex: number;
|
|
3411
|
-
canvasSize: CanvasSize;
|
|
3413
|
+
canvasSize: CanvasSize$1;
|
|
3412
3414
|
filePath: string | undefined;
|
|
3413
3415
|
history: EditorHistoryResult;
|
|
3414
3416
|
ops: ElementOperations;
|
|
@@ -3643,6 +3645,8 @@ interface ViewerIntegrationResult {
|
|
|
3643
3645
|
recovery: UseRecoveryDetectionResult;
|
|
3644
3646
|
isEncryptedDialogOpen: boolean;
|
|
3645
3647
|
setIsEncryptedDialogOpen: Dispatch<SetStateAction<boolean>>;
|
|
3648
|
+
/** Stable `PowerPointViewerAPI` view of the live handle (region `context.viewer`). */
|
|
3649
|
+
viewerApi: PowerPointViewerAPI;
|
|
3646
3650
|
/** The loaded core handler, exposed for the AI bridge (`getHandler`). */
|
|
3647
3651
|
handlerRef: RefObject<PptxHandler | null>;
|
|
3648
3652
|
/**
|
|
@@ -3969,7 +3973,7 @@ interface UseExportSaveAsInput {
|
|
|
3969
3973
|
/** Live theme, carried into the deck-JSON export document. */
|
|
3970
3974
|
theme: PptxTheme | undefined;
|
|
3971
3975
|
/** Slide canvas size in CSS pixels, carried into the deck-JSON export. */
|
|
3972
|
-
canvasSize: CanvasSize;
|
|
3976
|
+
canvasSize: CanvasSize$1;
|
|
3973
3977
|
/** The EMU `p:sldSz` the viewer holds; see `UseExportHandlersInput`. */
|
|
3974
3978
|
slideSizeEmu?: SlideSizeEmu | undefined;
|
|
3975
3979
|
}
|
|
@@ -4424,7 +4428,7 @@ interface PresentationTransitionOverlayProps {
|
|
|
4424
4428
|
/** Template/master elements that belong to the outgoing slide. */
|
|
4425
4429
|
templateElements: PptxElement[];
|
|
4426
4430
|
/** Canvas dimensions (slide width × height in EMU-derived px). */
|
|
4427
|
-
canvasSize: CanvasSize;
|
|
4431
|
+
canvasSize: CanvasSize$1;
|
|
4428
4432
|
/** Transition definition from the incoming slide. */
|
|
4429
4433
|
transition: PptxSlideTransition;
|
|
4430
4434
|
/** Resolved transition duration in ms. */
|
|
@@ -4465,7 +4469,7 @@ declare function PresentationTransitionOverlay({ outgoingSlide, templateElements
|
|
|
4465
4469
|
//#endregion
|
|
4466
4470
|
//#region src/viewer/components/MorphTransitionOverlay.d.ts
|
|
4467
4471
|
interface MorphTransitionOverlayProps {
|
|
4468
|
-
canvasSize: CanvasSize;
|
|
4472
|
+
canvasSize: CanvasSize$1;
|
|
4469
4473
|
scale: number;
|
|
4470
4474
|
morphPlan: MorphTransitionPlan;
|
|
4471
4475
|
outgoingSlide: PptxSlide;
|
|
@@ -4489,7 +4493,7 @@ declare function MorphTransitionOverlay({ canvasSize, scale, morphPlan, outgoing
|
|
|
4489
4493
|
interface SlideLayerProps {
|
|
4490
4494
|
slide: PptxSlide;
|
|
4491
4495
|
templateElements: PptxElement[];
|
|
4492
|
-
canvasSize: CanvasSize;
|
|
4496
|
+
canvasSize: CanvasSize$1;
|
|
4493
4497
|
}
|
|
4494
4498
|
declare function SlideLayer({ slide, templateElements, canvasSize }: SlideLayerProps): React$1.ReactElement;
|
|
4495
4499
|
//#endregion
|
|
@@ -4498,7 +4502,7 @@ interface FragmentedTransitionLayerProps {
|
|
|
4498
4502
|
layer: FragmentedLayer;
|
|
4499
4503
|
slide: PptxSlide;
|
|
4500
4504
|
templateElements: PptxElement[];
|
|
4501
|
-
canvasSize: CanvasSize;
|
|
4505
|
+
canvasSize: CanvasSize$1;
|
|
4502
4506
|
scale: number;
|
|
4503
4507
|
zIndex: number;
|
|
4504
4508
|
layerName: 'outgoing' | 'incoming';
|