pptx-react-viewer 4.62.0 → 4.62.2
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 +24 -0
- package/dist/ai.d.ts +0 -1
- package/dist/{chunk-WLTJX2JE.mjs → chunk-ELMWZISD.mjs} +1 -1
- package/dist/chunk-ELMWZISD.mjs.br +0 -0
- package/dist/{chunk-WLTJX2JE.mjs.gz → chunk-ELMWZISD.mjs.gz} +0 -0
- package/dist/{chunk-QIETGQJD.js → chunk-JSVQTF3Z.js} +1 -1
- package/dist/chunk-JSVQTF3Z.js.br +0 -0
- package/dist/chunk-JSVQTF3Z.js.gz +0 -0
- package/dist/i18n/de.d.cts +0 -2
- package/dist/i18n/de.d.mts +0 -2
- package/dist/i18n/es.d.cts +0 -2
- package/dist/i18n/es.d.mts +0 -2
- package/dist/i18n/fr.d.cts +0 -2
- package/dist/i18n/fr.d.mts +0 -2
- package/dist/i18n/zh-CN.d.cts +0 -2
- package/dist/i18n/zh-CN.d.mts +0 -2
- package/dist/index.d.ts +0 -44
- package/dist/index.js +21 -21
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +0 -204
- package/dist/viewer/index.d.ts +0 -36
- package/dist/viewer/index.js +5 -5
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +1 -1
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +7 -6
- package/src/styles/theme.css +205 -0
- package/dist/chunk-QIETGQJD.js.br +0 -0
- package/dist/chunk-QIETGQJD.js.gz +0 -0
- package/dist/chunk-WLTJX2JE.mjs.br +0 -0
package/dist/internals.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import * as Y from 'yjs';
|
|
|
6
6
|
import { Doc } from 'yjs';
|
|
7
7
|
import React$1, { MutableRefObject, Dispatch, SetStateAction, RefObject, ForwardedRef } from 'react';
|
|
8
8
|
|
|
9
|
-
//#region src/viewer/types-core.d.ts
|
|
10
9
|
/**
|
|
11
10
|
* Union of all shape preset types that the viewer can insert or render.
|
|
12
11
|
* Maps to OOXML `a:prstGeom` preset values (e.g. "rect", "ellipse").
|
|
@@ -95,8 +94,6 @@ interface EditorHistorySnapshot {
|
|
|
95
94
|
theme?: HistoryTheme;
|
|
96
95
|
actionLabel?: string;
|
|
97
96
|
}
|
|
98
|
-
//#endregion
|
|
99
|
-
//#region src/viewer/hooks/collaboration/types.d.ts
|
|
100
97
|
/** Connection lifecycle states for the Yjs WebSocket provider. */
|
|
101
98
|
type ConnectionStatus$1 = 'disconnected' | 'connecting' | 'connected' | 'error';
|
|
102
99
|
/**
|
|
@@ -153,8 +150,6 @@ interface CollaborationContextValue {
|
|
|
153
150
|
/** Called by the document sync with the write-back status (undefined clears it). */
|
|
154
151
|
reportWriteBack?: (state: CollaborationWriteBackState | undefined) => void;
|
|
155
152
|
}
|
|
156
|
-
//#endregion
|
|
157
|
-
//#region src/viewer/types-ui.d.ts
|
|
158
153
|
/**
|
|
159
154
|
* Base handle interface for file viewer components.
|
|
160
155
|
* Defined locally to avoid dependency on external file-viewer plugin packages.
|
|
@@ -237,7 +232,6 @@ interface PowerPointViewerHandle extends FileViewerHandle, PowerPointViewerAPI,
|
|
|
237
232
|
getContent: () => Promise<Uint8Array>;
|
|
238
233
|
}
|
|
239
234
|
|
|
240
|
-
//#region src/viewer/components/toolbar/toolbar-types.d.ts
|
|
241
235
|
interface ToolbarProps {
|
|
242
236
|
fileName?: string;
|
|
243
237
|
mode: ViewerMode;
|
|
@@ -504,8 +498,6 @@ interface ToolbarProps {
|
|
|
504
498
|
*/
|
|
505
499
|
onQuickCommand?: (id: string) => void;
|
|
506
500
|
}
|
|
507
|
-
//#endregion
|
|
508
|
-
//#region src/viewer/hooks/useInlineEditingState.d.ts
|
|
509
501
|
interface PendingInlineEditReader {
|
|
510
502
|
elementId: string;
|
|
511
503
|
read: () => InlineListReadResult;
|
|
@@ -521,8 +513,6 @@ interface InlineEditingState {
|
|
|
521
513
|
inlineEditingReaderRef?: MutableRefObject<PendingInlineEditReader | undefined>;
|
|
522
514
|
registerInlineEditReader?: (elementId: string, read: () => InlineListReadResult) => () => void;
|
|
523
515
|
}
|
|
524
|
-
//#endregion
|
|
525
|
-
//#region src/viewer/hooks/pointer-handler-types.d.ts
|
|
526
516
|
interface UsePointerHandlersInput {
|
|
527
517
|
editorScale: number;
|
|
528
518
|
canvasStageRef: React.RefObject<HTMLDivElement | null>;
|
|
@@ -580,16 +570,12 @@ interface UsePointerHandlersInput {
|
|
|
580
570
|
*/
|
|
581
571
|
gestureRef?: React.MutableRefObject<CanvasGestures | null>;
|
|
582
572
|
}
|
|
583
|
-
//#endregion
|
|
584
|
-
//#region src/viewer/hooks/canvas-gestures.d.ts
|
|
585
573
|
interface CanvasGestures {
|
|
586
574
|
/** Start the gesture armed in `dragStateRef` (move) or `resizeStateRef` (resize). */
|
|
587
575
|
begin(kind: Exclude<GestureKind, 'rotate'>, id: string, pointer: PointerLike): void;
|
|
588
576
|
isActive(): boolean;
|
|
589
577
|
dispose(): void;
|
|
590
578
|
}
|
|
591
|
-
//#endregion
|
|
592
|
-
//#region src/viewer/hooks/canvas-interaction-types.d.ts
|
|
593
579
|
/**
|
|
594
580
|
* Shared type for canvas interaction handler signatures.
|
|
595
581
|
*/
|
|
@@ -610,8 +596,6 @@ interface CanvasInteractionHandlers {
|
|
|
610
596
|
handleFormatText: (updates: Partial<TextStyle>) => void;
|
|
611
597
|
handleInlineEditCommit: () => void;
|
|
612
598
|
}
|
|
613
|
-
//#endregion
|
|
614
|
-
//#region src/viewer/hooks/useEditorHistory.d.ts
|
|
615
599
|
interface EditorHistoryInput {
|
|
616
600
|
slides: PptxSlide[];
|
|
617
601
|
canvasSize: CanvasSize$1;
|
|
@@ -708,8 +692,6 @@ interface EditorHistoryResult {
|
|
|
708
692
|
buildHistorySnapshot: (actionLabel?: string) => EditorHistorySnapshot;
|
|
709
693
|
}
|
|
710
694
|
declare function useEditorHistory(input: EditorHistoryInput): EditorHistoryResult;
|
|
711
|
-
//#endregion
|
|
712
|
-
//#region src/viewer/hooks/element-operations-types.d.ts
|
|
713
695
|
/**
|
|
714
696
|
* View > Slide Master routing.
|
|
715
697
|
*
|
|
@@ -793,11 +775,7 @@ interface ElementOperations {
|
|
|
793
775
|
updateActiveElements: (updater: (els: PptxElement[]) => PptxElement[]) => void;
|
|
794
776
|
serializeSlides: () => Promise<Uint8Array | null>;
|
|
795
777
|
}
|
|
796
|
-
//#endregion
|
|
797
|
-
//#region src/viewer/hooks/useElementOperations.d.ts
|
|
798
778
|
declare function useElementOperations(input: UseElementOperationsInput): ElementOperations;
|
|
799
|
-
//#endregion
|
|
800
|
-
//#region src/viewer/hooks/useCanvasInteractions.d.ts
|
|
801
779
|
interface UseCanvasInteractionsInput {
|
|
802
780
|
mode: ViewerMode;
|
|
803
781
|
canEdit: boolean;
|
|
@@ -860,8 +838,6 @@ interface UseCanvasInteractionsInput {
|
|
|
860
838
|
transformCommittedText?: (text: string, previous?: string) => string;
|
|
861
839
|
}
|
|
862
840
|
declare function useCanvasInteractions(input: UseCanvasInteractionsInput): CanvasInteractionHandlers;
|
|
863
|
-
//#endregion
|
|
864
|
-
//#region src/viewer/hooks/useComments-helpers.d.ts
|
|
865
841
|
interface UseCommentsInput {
|
|
866
842
|
slides: PptxSlide[];
|
|
867
843
|
activeSlideIndex: number;
|
|
@@ -899,11 +875,7 @@ interface UseCommentsResult {
|
|
|
899
875
|
handleReplyDraftChange: (commentId: string, draft: string, mentions?: PptxCommentMention[]) => void;
|
|
900
876
|
handleSubmitReply: (slideIndex: number, commentId: string) => void;
|
|
901
877
|
}
|
|
902
|
-
//#endregion
|
|
903
|
-
//#region src/viewer/hooks/useComments.d.ts
|
|
904
878
|
declare function useComments({ slides, canEdit, userName, selectedElementId, onUpdateSlides, onMarkDirty }: UseCommentsInput): UseCommentsResult;
|
|
905
|
-
//#endregion
|
|
906
|
-
//#region src/viewer/hooks/element-manipulation-types.d.ts
|
|
907
879
|
interface UseElementManipulationInput {
|
|
908
880
|
activeSlide: PptxSlide | undefined;
|
|
909
881
|
activeSlideIndex: number;
|
|
@@ -995,11 +967,7 @@ interface GroupAlignLayerHandlers {
|
|
|
995
967
|
handleMergeShapes: (operation: MergeShapeOperation) => void;
|
|
996
968
|
canMergeShapes: boolean;
|
|
997
969
|
}
|
|
998
|
-
//#endregion
|
|
999
|
-
//#region src/viewer/hooks/useElementManipulation.d.ts
|
|
1000
970
|
declare function useElementManipulation(input: UseElementManipulationInput): ElementManipulationHandlers;
|
|
1001
|
-
//#endregion
|
|
1002
|
-
//#region src/viewer/hooks/useFindReplace.d.ts
|
|
1003
971
|
interface UseFindReplaceInput {
|
|
1004
972
|
slides: PptxSlide[];
|
|
1005
973
|
mode: string;
|
|
@@ -1036,8 +1004,6 @@ interface UseFindReplaceResult {
|
|
|
1036
1004
|
handleReplaceAll: () => void;
|
|
1037
1005
|
}
|
|
1038
1006
|
declare function useFindReplace({ slides, mode, onShowMatch, onUpdateSlides, onMarkDirty, keyboard }: UseFindReplaceInput): UseFindReplaceResult;
|
|
1039
|
-
//#endregion
|
|
1040
|
-
//#region src/viewer/components/hyperlink-edit-types.d.ts
|
|
1041
1007
|
/** The type of hyperlink target. */
|
|
1042
1008
|
type HyperlinkTargetType = 'url' | 'email' | 'slide' | 'file' | 'action';
|
|
1043
1009
|
/** Supported action verbs for action hyperlinks. */
|
|
@@ -1053,8 +1019,6 @@ interface HyperlinkEditData {
|
|
|
1053
1019
|
filePath: string;
|
|
1054
1020
|
actionVerb: HyperlinkActionVerb;
|
|
1055
1021
|
}
|
|
1056
|
-
//#endregion
|
|
1057
|
-
//#region src/viewer/hooks/useInsertElements.d.ts
|
|
1058
1022
|
interface UseInsertElementsInput {
|
|
1059
1023
|
activeSlide: PptxSlide | undefined;
|
|
1060
1024
|
activeSlideIndex: number;
|
|
@@ -1084,8 +1048,6 @@ interface InsertElementHandlers {
|
|
|
1084
1048
|
handleMediaFileChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
1085
1049
|
}
|
|
1086
1050
|
declare function useInsertElements(input: UseInsertElementsInput): InsertElementHandlers;
|
|
1087
|
-
//#endregion
|
|
1088
|
-
//#region src/viewer/hooks/usePasteSpecial.d.ts
|
|
1089
1051
|
/** The pasted element the "Paste Options" toolbar is currently anchored to. */
|
|
1090
1052
|
interface PasteOptionsToolbarState {
|
|
1091
1053
|
elementId: string;
|
|
@@ -1106,8 +1068,6 @@ interface UsePasteSpecialResult {
|
|
|
1106
1068
|
reformatPastedElement: (format: PasteSpecialFormat) => Promise<void>;
|
|
1107
1069
|
dismissPasteOptionsToolbar: () => void;
|
|
1108
1070
|
}
|
|
1109
|
-
//#endregion
|
|
1110
|
-
//#region src/viewer/hooks/presentation-mode/useCustomShowRunner.d.ts
|
|
1111
1071
|
/**
|
|
1112
1072
|
* useCustomShowRunner: the runtime side of `ppaction://customshow?id=<id>[&return=true]`.
|
|
1113
1073
|
*
|
|
@@ -1131,8 +1091,6 @@ interface CustomShowDescriptor {
|
|
|
1131
1091
|
id: string;
|
|
1132
1092
|
slideRIds: string[];
|
|
1133
1093
|
}
|
|
1134
|
-
//#endregion
|
|
1135
|
-
//#region src/viewer/hooks/presentation-mode/types.d.ts
|
|
1136
1094
|
/**
|
|
1137
1095
|
* How a forward/backward slide advance was requested.
|
|
1138
1096
|
*
|
|
@@ -1356,11 +1314,7 @@ interface UsePresentationModeResult {
|
|
|
1356
1314
|
updatePresenterSnapshot: (patch: Partial<PresentationSnapshot>) => void;
|
|
1357
1315
|
swapPresenterDisplays: () => Promise<boolean>;
|
|
1358
1316
|
}
|
|
1359
|
-
//#endregion
|
|
1360
|
-
//#region src/viewer/hooks/usePresentationMode.d.ts
|
|
1361
1317
|
declare function usePresentationMode(input: UsePresentationModeInput): UsePresentationModeResult;
|
|
1362
|
-
//#endregion
|
|
1363
|
-
//#region src/viewer/hooks/useSectionOperations.d.ts
|
|
1364
1318
|
interface UseSectionOperationsInput {
|
|
1365
1319
|
sections: PptxSection[];
|
|
1366
1320
|
setSections: React.Dispatch<React.SetStateAction<PptxSection[]>>;
|
|
@@ -1383,8 +1337,6 @@ interface SectionOperations {
|
|
|
1383
1337
|
toggleSectionCollapse: (sectionId: string) => void;
|
|
1384
1338
|
}
|
|
1385
1339
|
declare function useSectionOperations(input: UseSectionOperationsInput): SectionOperations;
|
|
1386
|
-
//#endregion
|
|
1387
|
-
//#region src/viewer/hooks/useSlideManagement.d.ts
|
|
1388
1340
|
interface UseSlideManagementInput {
|
|
1389
1341
|
slides: PptxSlide[];
|
|
1390
1342
|
activeSlide: PptxSlide | undefined;
|
|
@@ -1417,8 +1369,6 @@ interface SlideManagementHandlers {
|
|
|
1417
1369
|
handleInsertSlideFromTemplate: (templateId: SlideTemplateId) => void;
|
|
1418
1370
|
}
|
|
1419
1371
|
declare function useSlideManagement(input: UseSlideManagementInput): SlideManagementHandlers;
|
|
1420
|
-
//#endregion
|
|
1421
|
-
//#region src/viewer/hooks/table-operation-types.d.ts
|
|
1422
1372
|
interface UseTableOperationsInput {
|
|
1423
1373
|
selectedElement: PptxElement | null;
|
|
1424
1374
|
tableEditorState: TableCellEditorState | null;
|
|
@@ -1446,11 +1396,7 @@ interface TableMergeHandlers {
|
|
|
1446
1396
|
handleSplitCell: () => void;
|
|
1447
1397
|
}
|
|
1448
1398
|
type TableOperationHandlers = TableStructHandlers & TableMergeHandlers;
|
|
1449
|
-
//#endregion
|
|
1450
|
-
//#region src/viewer/hooks/useTableOperations.d.ts
|
|
1451
1399
|
declare function useTableOperations(input: UseTableOperationsInput): TableOperationHandlers;
|
|
1452
|
-
//#endregion
|
|
1453
|
-
//#region src/viewer/hooks/viewer-dialog-types.d.ts
|
|
1454
1400
|
/**
|
|
1455
1401
|
* Input dependencies required by the {@link useViewerDialogs} hook.
|
|
1456
1402
|
*
|
|
@@ -1646,11 +1592,7 @@ interface ViewerDialogsResult {
|
|
|
1646
1592
|
/** Runs an accessibility check across all slides and opens the results panel. */
|
|
1647
1593
|
handleRunAccessibilityCheck: () => void;
|
|
1648
1594
|
}
|
|
1649
|
-
//#endregion
|
|
1650
|
-
//#region src/viewer/hooks/useViewerDialogs.d.ts
|
|
1651
1595
|
declare function useViewerDialogs(input: UseViewerDialogsInput): ViewerDialogsResult;
|
|
1652
|
-
//#endregion
|
|
1653
|
-
//#region src/viewer/hooks/useCropSessionState.d.ts
|
|
1654
1596
|
interface CropSessionState {
|
|
1655
1597
|
/** The open crop session, or null outside crop mode. */
|
|
1656
1598
|
cropSession: CropSession | null;
|
|
@@ -1659,8 +1601,6 @@ interface CropSessionState {
|
|
|
1659
1601
|
/** Open or close the session; keeps the ref and the state in step. */
|
|
1660
1602
|
setCropSession: (session: CropSession | null) => void;
|
|
1661
1603
|
}
|
|
1662
|
-
//#endregion
|
|
1663
|
-
//#region src/viewer/hooks/useEditPointsState.d.ts
|
|
1664
1604
|
/**
|
|
1665
1605
|
* Viewer state for the two outline-authoring modes: Edit Points on one shape,
|
|
1666
1606
|
* and the armed Freeform: Shape / Curve drawing tool. At most one is active;
|
|
@@ -1674,16 +1614,12 @@ interface EditPointsModeState {
|
|
|
1674
1614
|
activeFreeformTool: FreeformToolKind | null;
|
|
1675
1615
|
setActiveFreeformTool: (tool: FreeformToolKind | null) => void;
|
|
1676
1616
|
}
|
|
1677
|
-
//#endregion
|
|
1678
|
-
//#region src/viewer/hooks/useSlideChangeSelection.d.ts
|
|
1679
1617
|
interface SlideChangeSelection {
|
|
1680
1618
|
/** The slide the last {@link showSlideSelection} selected on, until the next slide change. */
|
|
1681
1619
|
slideSelectionRef: MutableRefObject<number | null>;
|
|
1682
1620
|
/** Go to `slideIndex` and select `elementId` there (nothing, for null), across the slide change. */
|
|
1683
1621
|
showSlideSelection: (slideIndex: number, elementId: string | null) => void;
|
|
1684
1622
|
}
|
|
1685
|
-
//#endregion
|
|
1686
|
-
//#region src/viewer/hooks/viewer-core-state-types.d.ts
|
|
1687
1623
|
/**
|
|
1688
1624
|
* Input parameters for the {@link useViewerCoreState} hook.
|
|
1689
1625
|
*
|
|
@@ -1944,8 +1880,6 @@ interface ViewerCoreState extends InlineEditingState, EditPointsModeState, Slide
|
|
|
1944
1880
|
/** Elements for the handout master (when handout tab is active). */
|
|
1945
1881
|
handoutMasterElements: PptxElement[];
|
|
1946
1882
|
}
|
|
1947
|
-
//#endregion
|
|
1948
|
-
//#region src/viewer/hooks/useViewerCoreState.d.ts
|
|
1949
1883
|
/**
|
|
1950
1884
|
* Initializes and returns the core viewer state (refs, useState values,
|
|
1951
1885
|
* and derived element/master state).
|
|
@@ -1957,8 +1891,6 @@ interface ViewerCoreState extends InlineEditingState, EditPointsModeState, Slide
|
|
|
1957
1891
|
* value, setter, and derived field.
|
|
1958
1892
|
*/
|
|
1959
1893
|
declare function useViewerCoreState(_input: UseViewerCoreStateInput): ViewerCoreState;
|
|
1960
|
-
//#endregion
|
|
1961
|
-
//#region src/viewer/hooks/useViewerUIState.d.ts
|
|
1962
1894
|
interface ViewerUIState {
|
|
1963
1895
|
isCompactToolbarOpen: boolean;
|
|
1964
1896
|
setIsCompactToolbarOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
@@ -2052,8 +1984,6 @@ interface ViewerUIState {
|
|
|
2052
1984
|
setEyedropperActive: React.Dispatch<React.SetStateAction<boolean>>;
|
|
2053
1985
|
}
|
|
2054
1986
|
declare function useViewerUIState(inspectorInitiallyOpen?: boolean): ViewerUIState;
|
|
2055
|
-
//#endregion
|
|
2056
|
-
//#region src/viewer/hooks/useViewerState.d.ts
|
|
2057
1987
|
/**
|
|
2058
1988
|
* Input parameters for the {@link useViewerState} hook.
|
|
2059
1989
|
*
|
|
@@ -2081,8 +2011,6 @@ type ViewerState = ViewerCoreState & ViewerUIState & CropSessionState;
|
|
|
2081
2011
|
* @returns The merged {@link ViewerState} containing every ref, state value, and setter.
|
|
2082
2012
|
*/
|
|
2083
2013
|
declare function useViewerState(input: UseViewerStateInput): ViewerState;
|
|
2084
|
-
//#endregion
|
|
2085
|
-
//#region src/viewer/hooks/useEditorOperations.d.ts
|
|
2086
2014
|
interface UseEditorOperationsInput {
|
|
2087
2015
|
state: ViewerState;
|
|
2088
2016
|
history: EditorHistoryResult;
|
|
@@ -2138,11 +2066,7 @@ interface EditorOperationsResult {
|
|
|
2138
2066
|
pasteFormatToSelection: (targetIds: string[]) => void;
|
|
2139
2067
|
}
|
|
2140
2068
|
declare function useEditorOperations(input: UseEditorOperationsInput): EditorOperationsResult;
|
|
2141
|
-
//#endregion
|
|
2142
|
-
//#region src/viewer/hooks/useCanvasImagePaste.d.ts
|
|
2143
2069
|
type CanvasImagePasteHandlers = Pick<EditorImagePasteOptions, 'getTarget' | 'insertElement'>;
|
|
2144
|
-
//#endregion
|
|
2145
|
-
//#region src/viewer/utils/table-band-style.d.ts
|
|
2146
2070
|
/**
|
|
2147
2071
|
* Table band / header / emphasis styling for the React table renderer.
|
|
2148
2072
|
*
|
|
@@ -2160,8 +2084,6 @@ interface TableStyleContext {
|
|
|
2160
2084
|
tableStyleMap?: ParsedTableStyleMap;
|
|
2161
2085
|
theme?: PptxTheme;
|
|
2162
2086
|
}
|
|
2163
|
-
//#endregion
|
|
2164
|
-
//#region src/viewer/components/canvas/OutlineAuthoringLayer.d.ts
|
|
2165
2087
|
/** Wiring for Edit Points and the Freeform: Shape / Curve tools. */
|
|
2166
2088
|
interface OutlineAuthoringProps {
|
|
2167
2089
|
/** The shape in Edit Points mode, or null. */
|
|
@@ -2177,8 +2099,6 @@ interface OutlineAuthoringProps {
|
|
|
2177
2099
|
onFreeformCommit: (element: ShapePptxElement) => void;
|
|
2178
2100
|
onFreeformCancel: () => void;
|
|
2179
2101
|
}
|
|
2180
|
-
//#endregion
|
|
2181
|
-
//#region src/viewer/components/canvas/canvas-types.d.ts
|
|
2182
2102
|
interface ZoomViewport {
|
|
2183
2103
|
canvasViewportRef: React$1.RefObject<HTMLDivElement | null>;
|
|
2184
2104
|
/** Optional mount notification for hook-owned fit and wheel listeners. */
|
|
@@ -2327,8 +2247,6 @@ interface SlideCanvasProps {
|
|
|
2327
2247
|
aiActive?: boolean;
|
|
2328
2248
|
outlineAuthoring?: OutlineAuthoringProps;
|
|
2329
2249
|
}
|
|
2330
|
-
//#endregion
|
|
2331
|
-
//#region src/viewer/components/slides-pane/types.d.ts
|
|
2332
2250
|
interface SlidesPaneSidebarProps {
|
|
2333
2251
|
slides: PptxSlide[];
|
|
2334
2252
|
templateElementsBySlideId: Record<string, PptxElement[]>;
|
|
@@ -2370,8 +2288,6 @@ interface SlidesPaneSidebarProps {
|
|
|
2370
2288
|
/** Theme + table style map so thumbnails resolve table band/header colours. */
|
|
2371
2289
|
tableStyleContext?: TableStyleContext;
|
|
2372
2290
|
}
|
|
2373
|
-
//#endregion
|
|
2374
|
-
//#region src/viewer/hooks/useAutosave.d.ts
|
|
2375
2291
|
/** The one autosave status every binding renders (`PptxAutosaveStatus` in `ooxml-ui/pptx`). */
|
|
2376
2292
|
type AutosaveStatus = PptxAutosaveStatus;
|
|
2377
2293
|
interface UseAutosaveInput {
|
|
@@ -2423,8 +2339,6 @@ interface UseAutosaveResult {
|
|
|
2423
2339
|
triggerAutosave: () => Promise<void>;
|
|
2424
2340
|
}
|
|
2425
2341
|
declare function useAutosave(input: UseAutosaveInput): UseAutosaveResult;
|
|
2426
|
-
//#endregion
|
|
2427
|
-
//#region src/viewer/hooks/useViewerBuildingBlocks-types.d.ts
|
|
2428
2342
|
interface UseViewerBuildingBlocksInput extends ViewportFitOptions {
|
|
2429
2343
|
/** Optional collaboration, including a host-owned document and presence session. */
|
|
2430
2344
|
collaboration?: CollaborationInput;
|
|
@@ -2521,11 +2435,8 @@ interface ViewerBuildingBlocksResult {
|
|
|
2521
2435
|
/** Current autosave-to-localStorage recovery status. */
|
|
2522
2436
|
autosaveStatus: AutosaveStatus;
|
|
2523
2437
|
}
|
|
2524
|
-
//#endregion
|
|
2525
|
-
//#region src/viewer/hooks/useViewerBuildingBlocks.d.ts
|
|
2526
2438
|
declare function useViewerBuildingBlocks(input: UseViewerBuildingBlocksInput): ViewerBuildingBlocksResult;
|
|
2527
2439
|
|
|
2528
|
-
//#region src/viewer/hooks/useThemeSwitching.d.ts
|
|
2529
2440
|
interface UseThemeSwitchingInput {
|
|
2530
2441
|
/** Ref to the PptxHandler instance. */
|
|
2531
2442
|
handlerRef: RefObject<PptxHandler | null>;
|
|
@@ -2582,8 +2493,6 @@ interface ThemeSwitchingResult {
|
|
|
2582
2493
|
* ```
|
|
2583
2494
|
*/
|
|
2584
2495
|
declare function useThemeSwitching(input: UseThemeSwitchingInput): ThemeSwitchingResult;
|
|
2585
|
-
//#endregion
|
|
2586
|
-
//#region ../../../../node_modules/.bun/lib0@0.2.119/node_modules/lib0/observable.d.ts
|
|
2587
2496
|
/**
|
|
2588
2497
|
* Handles named events.
|
|
2589
2498
|
*
|
|
@@ -2623,8 +2532,6 @@ declare class Observable<N> {
|
|
|
2623
2532
|
emit(name: N, args: Array<any>): void;
|
|
2624
2533
|
destroy(): void;
|
|
2625
2534
|
}
|
|
2626
|
-
//#endregion
|
|
2627
|
-
//#region ../../../../node_modules/.bun/y-protocols@1.0.7+dd3713061a4ad7f6/node_modules/y-protocols/awareness.d.ts
|
|
2628
2535
|
/**
|
|
2629
2536
|
* @typedef {Object} MetaClientState
|
|
2630
2537
|
* @property {number} MetaClientState.clock
|
|
@@ -2701,8 +2608,6 @@ type MetaClientState = {
|
|
|
2701
2608
|
*/
|
|
2702
2609
|
lastUpdated: number;
|
|
2703
2610
|
};
|
|
2704
|
-
//#endregion
|
|
2705
|
-
//#region src/viewer/hooks/collaboration/useYjsProvider.d.ts
|
|
2706
2611
|
interface UseYjsProviderInput {
|
|
2707
2612
|
/**
|
|
2708
2613
|
* Collaboration config, or `undefined` when collaboration is inactive. The
|
|
@@ -2741,8 +2646,6 @@ interface UseYjsProviderResult {
|
|
|
2741
2646
|
* (or the full/headless viewer) to attach a host-owned external session.
|
|
2742
2647
|
*/
|
|
2743
2648
|
declare function useYjsProvider({ config: inputConfig }: UseYjsProviderInput): UseYjsProviderResult;
|
|
2744
|
-
//#endregion
|
|
2745
|
-
//#region src/viewer/hooks/collaboration/usePresenceTracking.d.ts
|
|
2746
2649
|
interface UsePresenceTrackingInput {
|
|
2747
2650
|
awareness: Awareness | BorrowedCollaborationAwareness | null;
|
|
2748
2651
|
localClientId: number | null;
|
|
@@ -2761,8 +2664,6 @@ interface UsePresenceTrackingResult {
|
|
|
2761
2664
|
broadcastPresence: (update: Partial<Omit<UserPresence, 'clientId'>>) => void;
|
|
2762
2665
|
}
|
|
2763
2666
|
declare function usePresenceTracking({ awareness, localClientId, userName, userColor, userAvatar, role, canvasWidth, canvasHeight }: UsePresenceTrackingInput): UsePresenceTrackingResult;
|
|
2764
|
-
//#endregion
|
|
2765
|
-
//#region src/viewer/hooks/collaboration/useCollaborativeState.d.ts
|
|
2766
2667
|
interface UseCollaborativeStateInput {
|
|
2767
2668
|
/**
|
|
2768
2669
|
* Collaboration config, or `undefined` when collaboration is inactive. The
|
|
@@ -2775,8 +2676,6 @@ interface UseCollaborativeStateInput {
|
|
|
2775
2676
|
canvasHeight: number;
|
|
2776
2677
|
}
|
|
2777
2678
|
declare function useCollaborativeState({ config: requested, canvasWidth, canvasHeight }: UseCollaborativeStateInput): CollaborationContextValue | null;
|
|
2778
|
-
//#endregion
|
|
2779
|
-
//#region src/viewer/hooks/collaboration/useCollaborativeHistory.d.ts
|
|
2780
2679
|
interface UseCollaborativeHistoryInput {
|
|
2781
2680
|
/** The local user's client ID (from Yjs awareness). */
|
|
2782
2681
|
localClientId: number | null;
|
|
@@ -2800,8 +2699,6 @@ interface UseCollaborativeHistoryResult {
|
|
|
2800
2699
|
canRedo: boolean;
|
|
2801
2700
|
}
|
|
2802
2701
|
declare function useCollaborativeHistory({ localClientId: _localClientId, handleUndo, handleRedo, canUndo, canRedo }: UseCollaborativeHistoryInput): UseCollaborativeHistoryResult;
|
|
2803
|
-
//#endregion
|
|
2804
|
-
//#region src/viewer/hooks/collaboration/useYjsDocumentSync.d.ts
|
|
2805
2702
|
interface UseYjsDocumentSyncInput {
|
|
2806
2703
|
doc: Doc | null;
|
|
2807
2704
|
slides: PptxSlide[];
|
|
@@ -2821,8 +2718,6 @@ interface UseYjsDocumentSyncInput {
|
|
|
2821
2718
|
onWriteBackStatus?: (state: CollaborationWriteBackState | undefined) => void;
|
|
2822
2719
|
}
|
|
2823
2720
|
declare function useYjsDocumentSync(input: UseYjsDocumentSyncInput): void;
|
|
2824
|
-
//#endregion
|
|
2825
|
-
//#region src/viewer/hooks/collaboration/useBroadcastFollower.d.ts
|
|
2826
2721
|
interface UseBroadcastFollowerInput {
|
|
2827
2722
|
/** The collaboration context (null when collaboration is disabled). */
|
|
2828
2723
|
collab: CollaborationContextValue | null;
|
|
@@ -2839,8 +2734,6 @@ interface UseBroadcastFollowerInput {
|
|
|
2839
2734
|
paused?: boolean;
|
|
2840
2735
|
}
|
|
2841
2736
|
declare function useBroadcastFollower({ collab, activeSlideIndex, setActiveSlideIndex, slideCount, paused }: UseBroadcastFollowerInput): void;
|
|
2842
|
-
//#endregion
|
|
2843
|
-
//#region src/viewer/hooks/collaboration/useFollowMode.d.ts
|
|
2844
2737
|
interface UseFollowModeInput {
|
|
2845
2738
|
/** The collaboration context (null when collaboration is disabled). */
|
|
2846
2739
|
collab: CollaborationContextValue | null;
|
|
@@ -2875,7 +2768,6 @@ interface UsePresenterWindowResult {
|
|
|
2875
2768
|
}
|
|
2876
2769
|
declare function usePresenterWindow(input: UsePresenterWindowInput): UsePresenterWindowResult;
|
|
2877
2770
|
|
|
2878
|
-
//#region src/viewer/hooks/useZoomViewport.d.ts
|
|
2879
2771
|
/** Axis-aligned bounding box used by zoom / viewport helpers. */
|
|
2880
2772
|
interface SelectionBounds {
|
|
2881
2773
|
minX: number;
|
|
@@ -2913,8 +2805,6 @@ interface UseZoomViewportResult {
|
|
|
2913
2805
|
} | null;
|
|
2914
2806
|
}
|
|
2915
2807
|
declare function useZoomViewport({ canvasSize, selectedElements, fitPadding, maxFitScale }: UseZoomViewportInput): UseZoomViewportResult;
|
|
2916
|
-
//#endregion
|
|
2917
|
-
//#region src/viewer/hooks/usePresentationAnnotations.types.d.ts
|
|
2918
2808
|
/**
|
|
2919
2809
|
* Types for presentation annotation state.
|
|
2920
2810
|
*/
|
|
@@ -2978,11 +2868,7 @@ interface UsePresentationAnnotationsResult {
|
|
|
2978
2868
|
/** Clear all annotations across all slides. */
|
|
2979
2869
|
clearAllAnnotations: () => void;
|
|
2980
2870
|
}
|
|
2981
|
-
//#endregion
|
|
2982
|
-
//#region src/viewer/hooks/usePresentationAnnotations.d.ts
|
|
2983
2871
|
declare function usePresentationAnnotations(input: UsePresentationAnnotationsInput): UsePresentationAnnotationsResult;
|
|
2984
|
-
//#endregion
|
|
2985
|
-
//#region src/viewer/hooks/useSheetDismissDrag.d.ts
|
|
2986
2872
|
interface SheetDismissDragHandlers {
|
|
2987
2873
|
onPointerDown: (e: React$1.PointerEvent) => void;
|
|
2988
2874
|
onPointerMove: (e: React$1.PointerEvent) => void;
|
|
@@ -3006,8 +2892,6 @@ interface SheetDismissDrag {
|
|
|
3006
2892
|
* be swiped closed while the inspector's handle was purely decorative.
|
|
3007
2893
|
*/
|
|
3008
2894
|
declare function useSheetDismissDrag(onClose: () => void, threshold?: number): SheetDismissDrag;
|
|
3009
|
-
//#endregion
|
|
3010
|
-
//#region src/viewer/hooks/useModalDismissDrag.d.ts
|
|
3011
2895
|
interface ModalDismissDragHandlers {
|
|
3012
2896
|
onPointerDown: (e: React$1.PointerEvent) => void;
|
|
3013
2897
|
onPointerMove: (e: React$1.PointerEvent) => void;
|
|
@@ -3030,8 +2914,6 @@ interface ModalDismissDrag {
|
|
|
3030
2914
|
* - dragging the header down past `threshold` px invokes `onClose`.
|
|
3031
2915
|
*/
|
|
3032
2916
|
declare function useModalDismissDrag(onClose: () => void, threshold?: number): ModalDismissDrag;
|
|
3033
|
-
//#endregion
|
|
3034
|
-
//#region src/viewer/hooks/useLoadContent.d.ts
|
|
3035
2917
|
interface UseLoadContentInput {
|
|
3036
2918
|
content: ArrayBuffer | Uint8Array | null | undefined;
|
|
3037
2919
|
clearSelection: () => void;
|
|
@@ -3128,11 +3010,7 @@ interface UseLoadContentResult {
|
|
|
3128
3010
|
handlerRef: React.MutableRefObject<PptxHandler | null>;
|
|
3129
3011
|
}
|
|
3130
3012
|
declare function useLoadContent({ content, clearSelection, history, setSlides, setTemplateElementsBySlideId, mediaDataUrls, setCanvasSize, setSlideSizeEmu, setHeaderFooter, setFirstSlideNumber, setLayoutOptions, setSlideMasters, setModernCommentAuthors, setRecentColors, setTheme, setTableStyleMap, setTableStylesDefaultId, setTableStylesToDelete, setThemeOptions, setCustomShows, setActiveCustomShowId, setSections, setPresentationProperties, setViewProperties, setNotesMaster, setHandoutMaster, setNotesCanvasSize, setCustomProperties, setTagCollections, setCoreProperties, setAppProperties, setEmbeddedFonts, setActiveSlideIndex, setHasMacros, setHasDigitalSignatures, setDigitalSignatureCount, setGuides, setReadOnlyRecommendation, setModifyVerifier, setCompatToasts, setLoading, setError, setIsDirty, setIsEncrypted, onContentApplied, allowExternalImages, initialSlide, limits }: UseLoadContentInput): UseLoadContentResult;
|
|
3131
|
-
//#endregion
|
|
3132
|
-
//#region src/viewer/hooks/usePointerHandlers.d.ts
|
|
3133
3013
|
declare function usePointerHandlers(input: UsePointerHandlersInput): void;
|
|
3134
|
-
//#endregion
|
|
3135
|
-
//#region src/viewer/hooks/useSerialize.d.ts
|
|
3136
3014
|
interface UseSerializeInput {
|
|
3137
3015
|
slides: PptxSlide[];
|
|
3138
3016
|
/** Separated master/layout (template) elements, merged back at save time. */
|
|
@@ -3240,8 +3118,6 @@ interface UseSerializeInput {
|
|
|
3240
3118
|
*/
|
|
3241
3119
|
type SerializeSlides = (format?: PptxSaveFormat) => Promise<Uint8Array | null>;
|
|
3242
3120
|
declare function useSerialize(input: UseSerializeInput): SerializeSlides;
|
|
3243
|
-
//#endregion
|
|
3244
|
-
//#region src/viewer/hooks/export-handler-types.d.ts
|
|
3245
3121
|
interface UseExportHandlersInput {
|
|
3246
3122
|
slides: PptxSlide[];
|
|
3247
3123
|
/** Separated master/layout (template) elements, merged back at save time. */
|
|
@@ -3326,11 +3202,7 @@ interface ExportHandlersResult {
|
|
|
3326
3202
|
exportProgress: number;
|
|
3327
3203
|
exportStatusMessage: string;
|
|
3328
3204
|
}
|
|
3329
|
-
//#endregion
|
|
3330
|
-
//#region src/viewer/hooks/useExportHandlers.d.ts
|
|
3331
3205
|
declare function useExportHandlers(input: UseExportHandlersInput): ExportHandlersResult;
|
|
3332
|
-
//#endregion
|
|
3333
|
-
//#region src/viewer/hooks/usePrintHandlers.d.ts
|
|
3334
3206
|
interface UsePrintHandlersInput {
|
|
3335
3207
|
/** The editable slides (template elements partitioned out, as the viewer state holds them). */
|
|
3336
3208
|
slides: PptxSlide[];
|
|
@@ -3357,8 +3229,6 @@ interface PrintHandlersResult {
|
|
|
3357
3229
|
setIsPrintDialogOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
3358
3230
|
}
|
|
3359
3231
|
declare function usePrintHandlers(input: UsePrintHandlersInput): PrintHandlersResult;
|
|
3360
|
-
//#endregion
|
|
3361
|
-
//#region src/viewer/hooks/useThemeHandlers.d.ts
|
|
3362
3232
|
interface UseThemeHandlersInput {
|
|
3363
3233
|
handlerRef: RefObject<PptxHandler | null>;
|
|
3364
3234
|
setTheme: React.Dispatch<React.SetStateAction<Record<string, unknown> | null>>;
|
|
@@ -3408,8 +3278,6 @@ interface ThemeHandlersResult {
|
|
|
3408
3278
|
handleSwitchTheme: (themePath: string) => Promise<void>;
|
|
3409
3279
|
}
|
|
3410
3280
|
declare function useThemeHandlers(input: UseThemeHandlersInput): ThemeHandlersResult;
|
|
3411
|
-
//#endregion
|
|
3412
|
-
//#region src/viewer/hooks/usePropertyHandlers.d.ts
|
|
3413
3281
|
interface UsePropertyHandlersInput {
|
|
3414
3282
|
slides: PptxSlide[];
|
|
3415
3283
|
activeSlideIndex: number;
|
|
@@ -3450,8 +3318,6 @@ interface PropertyHandlersResult {
|
|
|
3450
3318
|
usedFontFamilies: string[];
|
|
3451
3319
|
}
|
|
3452
3320
|
declare function usePropertyHandlers(input: UsePropertyHandlersInput): PropertyHandlersResult;
|
|
3453
|
-
//#endregion
|
|
3454
|
-
//#region src/viewer/hooks/useDerivedSlideState.d.ts
|
|
3455
3321
|
interface UseDerivedSlideStateInput {
|
|
3456
3322
|
slides: PptxSlide[];
|
|
3457
3323
|
sections: Array<{
|
|
@@ -3499,8 +3365,6 @@ interface DerivedSlideState {
|
|
|
3499
3365
|
authoredRange: AuthoredSlideRange | undefined;
|
|
3500
3366
|
}
|
|
3501
3367
|
declare function useDerivedSlideState(input: UseDerivedSlideStateInput): DerivedSlideState;
|
|
3502
|
-
//#endregion
|
|
3503
|
-
//#region src/viewer/hooks/useAnnotationHandlers.d.ts
|
|
3504
3368
|
interface UseAnnotationHandlersInput {
|
|
3505
3369
|
mode: ViewerMode;
|
|
3506
3370
|
presentation: UsePresentationModeResult;
|
|
@@ -3524,8 +3388,6 @@ interface AnnotationHandlersResult {
|
|
|
3524
3388
|
handleEnterRehearsalMode: () => void;
|
|
3525
3389
|
}
|
|
3526
3390
|
declare function useAnnotationHandlers(input: UseAnnotationHandlersInput): AnnotationHandlersResult;
|
|
3527
|
-
//#endregion
|
|
3528
|
-
//#region src/viewer/hooks/useRecoveryDetection.d.ts
|
|
3529
3391
|
interface UseRecoveryDetectionInput {
|
|
3530
3392
|
filePath: string | undefined;
|
|
3531
3393
|
/** Public document name rendered in the recovery message. */
|
|
@@ -3559,8 +3421,6 @@ interface UseRecoveryDetectionResult {
|
|
|
3559
3421
|
discarding: boolean;
|
|
3560
3422
|
}
|
|
3561
3423
|
declare function useRecoveryDetection(input: UseRecoveryDetectionInput): UseRecoveryDetectionResult;
|
|
3562
|
-
//#endregion
|
|
3563
|
-
//#region src/viewer/hooks/usePresentationSetup.d.ts
|
|
3564
3424
|
interface UsePresentationSetupInput {
|
|
3565
3425
|
mode: ViewerMode;
|
|
3566
3426
|
slides: PptxSlide[];
|
|
@@ -3645,8 +3505,6 @@ interface PresentationSetupResult {
|
|
|
3645
3505
|
setExitModeHandler: (handler: ((nextMode: ViewerMode) => void) | null) => void;
|
|
3646
3506
|
}
|
|
3647
3507
|
declare function usePresentationSetup(input: UsePresentationSetupInput): PresentationSetupResult;
|
|
3648
|
-
//#endregion
|
|
3649
|
-
//#region src/viewer/hooks/useIOHandlers.d.ts
|
|
3650
3508
|
interface UseIOHandlersInput {
|
|
3651
3509
|
state: ViewerState;
|
|
3652
3510
|
slides: PptxSlide[];
|
|
@@ -3691,8 +3549,6 @@ interface IOHandlersResult {
|
|
|
3691
3549
|
propertyHandlers: PropertyHandlersResult;
|
|
3692
3550
|
}
|
|
3693
3551
|
declare function useIOHandlers(input: UseIOHandlersInput): IOHandlersResult;
|
|
3694
|
-
//#endregion
|
|
3695
|
-
//#region src/viewer/hooks/useContentLifecycle.d.ts
|
|
3696
3552
|
interface UseContentLifecycleInput {
|
|
3697
3553
|
content: ArrayBuffer | Uint8Array | null;
|
|
3698
3554
|
filePath: string | undefined;
|
|
@@ -3758,8 +3614,6 @@ interface ContentLifecycleResult {
|
|
|
3758
3614
|
autosaveStatus: AutosaveStatus;
|
|
3759
3615
|
}
|
|
3760
3616
|
declare function useContentLifecycle(input: UseContentLifecycleInput): ContentLifecycleResult;
|
|
3761
|
-
//#endregion
|
|
3762
|
-
//#region src/viewer/hooks/useKeyboardShortcutWiring.d.ts
|
|
3763
3617
|
interface UseKeyboardShortcutWiringInput {
|
|
3764
3618
|
state: ViewerState;
|
|
3765
3619
|
mode: ViewerMode;
|
|
@@ -3797,8 +3651,6 @@ interface UseKeyboardShortcutWiringInput {
|
|
|
3797
3651
|
customization?: ResolvedCustomization;
|
|
3798
3652
|
}
|
|
3799
3653
|
declare function useKeyboardShortcutWiring(input: UseKeyboardShortcutWiringInput): void;
|
|
3800
|
-
//#endregion
|
|
3801
|
-
//#region src/viewer/hooks/useViewerIntegration.d.ts
|
|
3802
3654
|
interface UseViewerIntegrationInput {
|
|
3803
3655
|
transformCommittedText?: (text: string, previous?: string) => string;
|
|
3804
3656
|
state: ViewerState;
|
|
@@ -3929,8 +3781,6 @@ interface ViewerIntegrationResult {
|
|
|
3929
3781
|
loadVersion: number;
|
|
3930
3782
|
}
|
|
3931
3783
|
declare function useViewerIntegration(input: UseViewerIntegrationInput): ViewerIntegrationResult;
|
|
3932
|
-
//#endregion
|
|
3933
|
-
//#region src/viewer/hooks/useReducedMotion.d.ts
|
|
3934
3784
|
interface UseReducedMotionResult {
|
|
3935
3785
|
/** Whether the OS reports prefers-reduced-motion: reduce. */
|
|
3936
3786
|
osReducedMotion: boolean;
|
|
@@ -3951,8 +3801,6 @@ interface UseReducedMotionResult {
|
|
|
3951
3801
|
* @returns {@link UseReducedMotionResult}
|
|
3952
3802
|
*/
|
|
3953
3803
|
declare function useReducedMotion(): UseReducedMotionResult;
|
|
3954
|
-
//#endregion
|
|
3955
|
-
//#region src/viewer/hooks/useViewerOptions.d.ts
|
|
3956
3804
|
interface UseViewerOptionsResult {
|
|
3957
3805
|
/** Imperative store: `setValue`, `setRibbonTabHidden`, `reset`, ... */
|
|
3958
3806
|
optionsStore: ViewerOptionsStore;
|
|
@@ -3965,8 +3813,6 @@ interface UseViewerOptionsResult {
|
|
|
3965
3813
|
* so choices survive reloads without any host wiring.
|
|
3966
3814
|
*/
|
|
3967
3815
|
declare function useViewerOptions(): UseViewerOptionsResult;
|
|
3968
|
-
//#endregion
|
|
3969
|
-
//#region src/viewer/hooks/useToolbarVisibility.d.ts
|
|
3970
3816
|
interface ToolbarVisibility {
|
|
3971
3817
|
/** True when `id` is present in the host's `hiddenActions` list. */
|
|
3972
3818
|
isHidden: (id: ToolbarActionId) => boolean;
|
|
@@ -3998,8 +3844,6 @@ declare function computeToolbarVisibility(hiddenActions: readonly ToolbarActionI
|
|
|
3998
3844
|
* Recomputed only when the list reference or the hidden-tab set changes.
|
|
3999
3845
|
*/
|
|
4000
3846
|
declare function useToolbarVisibility(hiddenActions: readonly ToolbarActionId[] | undefined): ToolbarVisibility;
|
|
4001
|
-
//#endregion
|
|
4002
|
-
//#region src/viewer/hooks/useLayoutSwitching.d.ts
|
|
4003
3847
|
/**
|
|
4004
3848
|
* Input for {@link useLayoutSwitching}.
|
|
4005
3849
|
*/
|
|
@@ -4062,8 +3906,6 @@ interface LayoutSwitchingResult {
|
|
|
4062
3906
|
* ```
|
|
4063
3907
|
*/
|
|
4064
3908
|
declare function useLayoutSwitching(input: UseLayoutSwitchingInput): LayoutSwitchingResult;
|
|
4065
|
-
//#endregion
|
|
4066
|
-
//#region src/viewer/hooks/useVirtualizedSlides.d.ts
|
|
4067
3909
|
interface VirtualizedSlidesOptions {
|
|
4068
3910
|
/** Total number of slide items. */
|
|
4069
3911
|
totalItems: number;
|
|
@@ -4079,8 +3921,6 @@ interface VirtualizedSlidesResult extends VirtualizedRange {
|
|
|
4079
3921
|
scrollToIndex: (index: number, behavior?: ScrollBehavior) => void;
|
|
4080
3922
|
}
|
|
4081
3923
|
declare function useVirtualizedSlides({ totalItems, itemHeight, overscan }: VirtualizedSlidesOptions): VirtualizedSlidesResult;
|
|
4082
|
-
//#endregion
|
|
4083
|
-
//#region src/viewer/hooks/useIsMobile.d.ts
|
|
4084
3924
|
/**
|
|
4085
3925
|
* Minimum touch target size (px) per WCAG accessibility guidelines. Re-exported
|
|
4086
3926
|
* from `pptx-viewer-shared`'s `MIN_TOUCH_TARGET_PX` (the single source of truth
|
|
@@ -4107,8 +3947,6 @@ interface UseIsMobileResult {
|
|
|
4107
3947
|
viewportHeight: number;
|
|
4108
3948
|
}
|
|
4109
3949
|
declare function useIsMobile(): UseIsMobileResult;
|
|
4110
|
-
//#endregion
|
|
4111
|
-
//#region src/viewer/hooks/useTouchGestures.d.ts
|
|
4112
3950
|
interface UseTouchGesturesInput {
|
|
4113
3951
|
/** The element to attach touch listeners to. */
|
|
4114
3952
|
targetRef: React.RefObject<HTMLElement | null>;
|
|
@@ -4120,8 +3958,6 @@ interface UseTouchGesturesInput {
|
|
|
4120
3958
|
enabled?: boolean;
|
|
4121
3959
|
}
|
|
4122
3960
|
declare function useTouchGestures(input: UseTouchGesturesInput): void;
|
|
4123
|
-
//#endregion
|
|
4124
|
-
//#region src/viewer/hooks/useKeyboardInsets.d.ts
|
|
4125
3961
|
interface UseKeyboardInsetsResult {
|
|
4126
3962
|
/** CSS pixels the on-screen keyboard currently covers (0 when closed). */
|
|
4127
3963
|
keyboardInset: number;
|
|
@@ -4129,8 +3965,6 @@ interface UseKeyboardInsetsResult {
|
|
|
4129
3965
|
isKeyboardOpen: boolean;
|
|
4130
3966
|
}
|
|
4131
3967
|
declare function useKeyboardInsets(enabled?: boolean): UseKeyboardInsetsResult;
|
|
4132
|
-
//#endregion
|
|
4133
|
-
//#region src/viewer/hooks/useClipboardHandlers.d.ts
|
|
4134
3968
|
interface ClipboardInput {
|
|
4135
3969
|
activeSlide: PptxSlide | undefined;
|
|
4136
3970
|
activeSlideIndex: number;
|
|
@@ -4151,8 +3985,6 @@ interface ClipboardInput {
|
|
|
4151
3985
|
onPasted?: (element: PptxElement) => void;
|
|
4152
3986
|
}
|
|
4153
3987
|
declare function useClipboardHandlers(input: ClipboardInput): ClipboardHandlers;
|
|
4154
|
-
//#endregion
|
|
4155
|
-
//#region src/viewer/hooks/useDerivedElementState.d.ts
|
|
4156
3988
|
interface UseDerivedElementStateInput {
|
|
4157
3989
|
slides: PptxSlide[];
|
|
4158
3990
|
activeSlideIndex: number;
|
|
@@ -4180,8 +4012,6 @@ interface DerivedElementState {
|
|
|
4180
4012
|
handoutMasterElements: PptxElement[];
|
|
4181
4013
|
}
|
|
4182
4014
|
declare function useDerivedElementState(input: UseDerivedElementStateInput): DerivedElementState;
|
|
4183
|
-
//#endregion
|
|
4184
|
-
//#region src/viewer/hooks/useDialogCustomShows.d.ts
|
|
4185
4015
|
interface UseDialogCustomShowsInput {
|
|
4186
4016
|
activeSlide: PptxSlide | undefined;
|
|
4187
4017
|
customShows: Array<{
|
|
@@ -4210,8 +4040,6 @@ interface UseDialogCustomShowsResult {
|
|
|
4210
4040
|
isCurrentSlideInActiveShow: boolean;
|
|
4211
4041
|
}
|
|
4212
4042
|
declare function useDialogCustomShows(input: UseDialogCustomShowsInput): UseDialogCustomShowsResult;
|
|
4213
|
-
//#endregion
|
|
4214
|
-
//#region src/viewer/hooks/useExportSaveAs.d.ts
|
|
4215
4043
|
/**
|
|
4216
4044
|
* useExportSaveAs: Save-As format handlers and the deck-JSON export.
|
|
4217
4045
|
*
|
|
@@ -4269,8 +4097,6 @@ interface ExportSaveAsResult {
|
|
|
4269
4097
|
handleSaveAsPpt: () => void;
|
|
4270
4098
|
}
|
|
4271
4099
|
declare function useExportSaveAs(input: UseExportSaveAsInput): ExportSaveAsResult;
|
|
4272
|
-
//#endregion
|
|
4273
|
-
//#region src/viewer/hooks/useFontInjection.d.ts
|
|
4274
4100
|
interface UseFontInjectionInput {
|
|
4275
4101
|
embeddedFonts: PptxEmbeddedFont[];
|
|
4276
4102
|
slides: PptxSlide[];
|
|
@@ -4278,8 +4104,6 @@ interface UseFontInjectionInput {
|
|
|
4278
4104
|
googleFonts?: GoogleFontsOption;
|
|
4279
4105
|
}
|
|
4280
4106
|
declare function useFontInjection({ embeddedFonts, slides, googleFonts }: UseFontInjectionInput): void;
|
|
4281
|
-
//#endregion
|
|
4282
|
-
//#region src/viewer/hooks/useGroupAlignLayerHandlers.d.ts
|
|
4283
4107
|
interface GroupAlignLayerInput {
|
|
4284
4108
|
activeSlide: PptxSlide | undefined;
|
|
4285
4109
|
activeSlideIndex: number;
|
|
@@ -4298,8 +4122,6 @@ interface GroupAlignLayerInput {
|
|
|
4298
4122
|
history: EditorHistoryResult;
|
|
4299
4123
|
}
|
|
4300
4124
|
declare function useGroupAlignLayerHandlers(input: GroupAlignLayerInput): GroupAlignLayerHandlers;
|
|
4301
|
-
//#endregion
|
|
4302
|
-
//#region src/viewer/hooks/useKeyboardShortcuts.d.ts
|
|
4303
4125
|
interface UseKeyboardShortcutsInput {
|
|
4304
4126
|
/** Container element ref, kept for API compatibility with the shell. */
|
|
4305
4127
|
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
@@ -4386,8 +4208,6 @@ interface UseKeyboardShortcutsInput {
|
|
|
4386
4208
|
onPasteSpecial?: () => void;
|
|
4387
4209
|
}
|
|
4388
4210
|
declare function useKeyboardShortcuts(input: UseKeyboardShortcutsInput): void;
|
|
4389
|
-
//#endregion
|
|
4390
|
-
//#region src/viewer/hooks/useMergeShapesHandler.d.ts
|
|
4391
4211
|
/** Input for the merge shapes handler. */
|
|
4392
4212
|
interface MergeShapesHandlerInput {
|
|
4393
4213
|
activeSlide: PptxSlide | undefined;
|
|
@@ -4405,8 +4225,6 @@ interface MergeShapesHandlers {
|
|
|
4405
4225
|
canMergeShapes: boolean;
|
|
4406
4226
|
}
|
|
4407
4227
|
declare function useMergeShapesHandler(input: MergeShapesHandlerInput): MergeShapesHandlers;
|
|
4408
|
-
//#endregion
|
|
4409
|
-
//#region src/viewer/hooks/useResizablePanels.d.ts
|
|
4410
4228
|
interface ResizablePanelSizes {
|
|
4411
4229
|
leftWidth: number;
|
|
4412
4230
|
rightWidth: number;
|
|
@@ -4418,8 +4236,6 @@ interface UseResizablePanelsResult extends ResizablePanelSizes {
|
|
|
4418
4236
|
onResizeBottom: (delta: number) => void;
|
|
4419
4237
|
}
|
|
4420
4238
|
declare function useResizablePanels(): UseResizablePanelsResult;
|
|
4421
|
-
//#endregion
|
|
4422
|
-
//#region src/viewer/hooks/useSwipeNavigation.d.ts
|
|
4423
4239
|
interface UseSwipeNavigationInput {
|
|
4424
4240
|
/** Whether swipe navigation is active. */
|
|
4425
4241
|
enabled: boolean;
|
|
@@ -4433,8 +4249,6 @@ interface UseSwipeNavigationResult {
|
|
|
4433
4249
|
onTouchEnd: (e: React$1.TouchEvent) => void;
|
|
4434
4250
|
}
|
|
4435
4251
|
declare function useSwipeNavigation(input: UseSwipeNavigationInput): UseSwipeNavigationResult;
|
|
4436
|
-
//#endregion
|
|
4437
|
-
//#region src/viewer/hooks/presentation-mode/useAnimationPlayback.d.ts
|
|
4438
4252
|
interface UseAnimationPlaybackInput {
|
|
4439
4253
|
slides: PptxSlide[];
|
|
4440
4254
|
onPlayActionSound?: (soundPath: string) => void;
|
|
@@ -4508,8 +4322,6 @@ interface UseAnimationPlaybackResult {
|
|
|
4508
4322
|
presentationTimersRef: React.RefObject<number[]>;
|
|
4509
4323
|
}
|
|
4510
4324
|
declare function useAnimationPlayback(input: UseAnimationPlaybackInput): UseAnimationPlaybackResult;
|
|
4511
|
-
//#endregion
|
|
4512
|
-
//#region src/viewer/hooks/presentation-mode/useRehearsalTimings.d.ts
|
|
4513
4325
|
interface UseRehearsalTimingsInput {
|
|
4514
4326
|
containerRef: React.RefObject<HTMLElement | null>;
|
|
4515
4327
|
onSetMode: (mode: ViewerMode) => void;
|
|
@@ -4532,8 +4344,6 @@ interface UseRehearsalTimingsResult {
|
|
|
4532
4344
|
toggleRehearsalPause: () => void;
|
|
4533
4345
|
}
|
|
4534
4346
|
declare function useRehearsalTimings(input: UseRehearsalTimingsInput): UseRehearsalTimingsResult;
|
|
4535
|
-
//#endregion
|
|
4536
|
-
//#region src/viewer/hooks/presentation-mode/usePresentationKeyboard.d.ts
|
|
4537
4347
|
interface UsePresentationKeyboardInput {
|
|
4538
4348
|
mode: ViewerMode;
|
|
4539
4349
|
movePresentationSlide: (direction: 1 | -1) => void;
|
|
@@ -4575,8 +4385,6 @@ interface UsePresentationKeyboardInput {
|
|
|
4575
4385
|
* resolves the same chords; this hook only performs the resulting actions.
|
|
4576
4386
|
*/
|
|
4577
4387
|
declare function usePresentationKeyboard(input: UsePresentationKeyboardInput): void;
|
|
4578
|
-
//#endregion
|
|
4579
|
-
//#region src/viewer/hooks/presentation-mode/useSlideNavigation.d.ts
|
|
4580
4388
|
interface UseSlideNavigationInput {
|
|
4581
4389
|
slides: PptxSlide[];
|
|
4582
4390
|
visibleSlideIndexes: number[];
|
|
@@ -4643,8 +4451,6 @@ interface UseSlideNavigationResult {
|
|
|
4643
4451
|
scheduleAutoAdvanceForSlide: (slideIndex: number) => void;
|
|
4644
4452
|
}
|
|
4645
4453
|
declare function useSlideNavigation(input: UseSlideNavigationInput): UseSlideNavigationResult;
|
|
4646
|
-
//#endregion
|
|
4647
|
-
//#region src/viewer/hooks/presentation-mode/useZoomNavigation.d.ts
|
|
4648
4454
|
/**
|
|
4649
4455
|
* Input for the useZoomNavigation sub-hook.
|
|
4650
4456
|
*/
|
|
@@ -4683,8 +4489,6 @@ interface UseZoomNavigationResult {
|
|
|
4683
4489
|
* `zoomExcursionRef` both hooks share.
|
|
4684
4490
|
*/
|
|
4685
4491
|
declare function useZoomNavigation(input: UseZoomNavigationInput): UseZoomNavigationResult;
|
|
4686
|
-
//#endregion
|
|
4687
|
-
//#region src/viewer/hooks/presentation-mode/useAudienceMode.d.ts
|
|
4688
4492
|
interface UseAudienceModeInput {
|
|
4689
4493
|
mode: ViewerMode;
|
|
4690
4494
|
onSetMode: (mode: ViewerMode) => void;
|
|
@@ -4705,8 +4509,6 @@ interface UseAudienceModeInput {
|
|
|
4705
4509
|
* 3. Exits presentation mode when the presenter sends an exit signal
|
|
4706
4510
|
*/
|
|
4707
4511
|
declare function useAudienceMode(input: UseAudienceModeInput): void;
|
|
4708
|
-
//#endregion
|
|
4709
|
-
//#region src/viewer/components/PresentationTransitionOverlay.d.ts
|
|
4710
4512
|
interface PresentationTransitionOverlayProps {
|
|
4711
4513
|
/** The outgoing (old) slide to render in the overlay layer. */
|
|
4712
4514
|
outgoingSlide: PptxSlide;
|
|
@@ -4758,8 +4560,6 @@ interface PresentationTransitionOverlayProps {
|
|
|
4758
4560
|
onComplete: () => void;
|
|
4759
4561
|
}
|
|
4760
4562
|
declare function PresentationTransitionOverlay({ outgoingSlide, templateElements, canvasSize, transition, durationMs, scale: stageScale, morphPlan, incomingSlide, incomingTemplateElements, onComplete }: PresentationTransitionOverlayProps): React$1.ReactElement | null;
|
|
4761
|
-
//#endregion
|
|
4762
|
-
//#region src/viewer/components/MorphTransitionOverlay.d.ts
|
|
4763
4563
|
interface MorphTransitionOverlayProps {
|
|
4764
4564
|
canvasSize: CanvasSize$1;
|
|
4765
4565
|
scale: number;
|
|
@@ -4780,16 +4580,12 @@ interface MorphTransitionOverlayProps {
|
|
|
4780
4580
|
containerRef?: React$1.RefObject<HTMLDivElement | null>;
|
|
4781
4581
|
}
|
|
4782
4582
|
declare function MorphTransitionOverlay({ canvasSize, scale, morphPlan, outgoingSlide, incomingSlide, containerRef }: MorphTransitionOverlayProps): React$1.ReactElement;
|
|
4783
|
-
//#endregion
|
|
4784
|
-
//#region src/viewer/components/SlideTransitionSlideLayer.d.ts
|
|
4785
4583
|
interface SlideLayerProps {
|
|
4786
4584
|
slide: PptxSlide;
|
|
4787
4585
|
templateElements: PptxElement[];
|
|
4788
4586
|
canvasSize: CanvasSize$1;
|
|
4789
4587
|
}
|
|
4790
4588
|
declare function SlideLayer({ slide, templateElements, canvasSize }: SlideLayerProps): React$1.ReactElement;
|
|
4791
|
-
//#endregion
|
|
4792
|
-
//#region src/viewer/components/FragmentedTransitionLayer.d.ts
|
|
4793
4589
|
interface FragmentedTransitionLayerProps {
|
|
4794
4590
|
layer: FragmentedLayer;
|
|
4795
4591
|
slide: PptxSlide;
|