pptx-react-viewer 2.3.0 → 2.4.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.
Files changed (151) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/{AiChatPanel-HC3CE3TL.js → AiChatPanel-HLLGXBZF.js} +23 -24
  3. package/dist/AiChatPanel-HLLGXBZF.js.br +0 -0
  4. package/dist/AiChatPanel-HLLGXBZF.js.gz +0 -0
  5. package/dist/{AiChatPanel-PXZYHJUB.mjs → AiChatPanel-SXYMXFYS.mjs} +4 -5
  6. package/dist/AiChatPanel-SXYMXFYS.mjs.br +0 -0
  7. package/dist/AiChatPanel-SXYMXFYS.mjs.gz +0 -0
  8. package/dist/{Model3DScene-ZG4HTMPX.mjs → Model3DScene-IECT4RWT.mjs} +1 -2
  9. package/dist/Model3DScene-IECT4RWT.mjs.br +0 -0
  10. package/dist/Model3DScene-IECT4RWT.mjs.gz +0 -0
  11. package/dist/{Model3DScene-37QZRHV5.js → Model3DScene-ZQBWLAMC.js} +2 -3
  12. package/dist/Model3DScene-ZQBWLAMC.js.br +0 -0
  13. package/dist/Model3DScene-ZQBWLAMC.js.gz +0 -0
  14. package/dist/{PowerPointViewer-gmU5rc7K.d.ts → PowerPointViewer-Cjn1RgSz.d.ts} +2 -2
  15. package/dist/{PowerPointViewer-gmU5rc7K.d.ts.map → PowerPointViewer-Cjn1RgSz.d.ts.map} +1 -1
  16. package/dist/{SurfaceChart3DScene-QIREQ66D.js → SurfaceChart3DScene-4KRMRWW6.js} +2 -3
  17. package/dist/SurfaceChart3DScene-4KRMRWW6.js.br +0 -0
  18. package/dist/SurfaceChart3DScene-4KRMRWW6.js.gz +0 -0
  19. package/dist/{SurfaceChart3DScene-Z7R6DZXN.mjs → SurfaceChart3DScene-52C3IMPQ.mjs} +1 -2
  20. package/dist/SurfaceChart3DScene-52C3IMPQ.mjs.br +0 -0
  21. package/dist/SurfaceChart3DScene-52C3IMPQ.mjs.gz +0 -0
  22. package/dist/audience-content-store-BMlth_3U.d.ts +386 -0
  23. package/dist/audience-content-store-BMlth_3U.d.ts.map +1 -0
  24. package/dist/{chunk-YIFO3WQO.js → chunk-25VSL2BB.js} +1 -0
  25. package/dist/chunk-25VSL2BB.js.br +0 -0
  26. package/dist/chunk-25VSL2BB.js.gz +0 -0
  27. package/dist/{chunk-EUIFPDXZ.js → chunk-5GHLRHBR.js} +3 -3
  28. package/dist/chunk-5GHLRHBR.js.br +0 -0
  29. package/dist/chunk-5GHLRHBR.js.gz +0 -0
  30. package/dist/{chunk-P7UVBRFO.js → chunk-5TPQJWEO.js} +248 -249
  31. package/dist/chunk-5TPQJWEO.js.br +0 -0
  32. package/dist/chunk-5TPQJWEO.js.gz +0 -0
  33. package/dist/{chunk-VOHTAUN4.mjs → chunk-G6Q3NXRV.mjs} +3 -4
  34. package/dist/chunk-G6Q3NXRV.mjs.br +0 -0
  35. package/dist/chunk-G6Q3NXRV.mjs.gz +0 -0
  36. package/dist/{chunk-J5A22DZ7.mjs → chunk-KK7FWBGO.mjs} +36 -41
  37. package/dist/chunk-KK7FWBGO.mjs.br +0 -0
  38. package/dist/chunk-KK7FWBGO.mjs.gz +0 -0
  39. package/dist/{chunk-I5LEMC5C.mjs → chunk-LRIXPSVT.mjs} +4 -6
  40. package/dist/chunk-LRIXPSVT.mjs.br +0 -0
  41. package/dist/chunk-LRIXPSVT.mjs.gz +0 -0
  42. package/dist/{chunk-M5YR3QSB.mjs → chunk-Q6FC2552.mjs} +1 -1
  43. package/dist/chunk-Q6FC2552.mjs.br +0 -0
  44. package/dist/{chunk-M5YR3QSB.mjs.gz → chunk-Q6FC2552.mjs.gz} +0 -0
  45. package/dist/{chunk-3TB45PVK.js → chunk-QBZA2GMB.mjs} +47751 -32270
  46. package/dist/chunk-QBZA2GMB.mjs.br +0 -0
  47. package/dist/chunk-QBZA2GMB.mjs.gz +0 -0
  48. package/dist/{chunk-L7JNCVTF.js → chunk-VEZO33T2.js} +314 -316
  49. package/dist/chunk-VEZO33T2.js.br +0 -0
  50. package/dist/chunk-VEZO33T2.js.gz +0 -0
  51. package/dist/{chunk-JFNMD6TM.mjs → chunk-WK56SFN7.js} +48250 -31698
  52. package/dist/chunk-WK56SFN7.js.br +0 -0
  53. package/dist/chunk-WK56SFN7.js.gz +0 -0
  54. package/dist/{chunk-ZLSVW5GP.js → chunk-XSBFV6TL.js} +876 -881
  55. package/dist/chunk-XSBFV6TL.js.br +0 -0
  56. package/dist/chunk-XSBFV6TL.js.gz +0 -0
  57. package/dist/{chunk-PZTPX3HK.mjs → chunk-Z6HIZWIQ.mjs} +1 -0
  58. package/dist/chunk-Z6HIZWIQ.mjs.br +0 -0
  59. package/dist/chunk-Z6HIZWIQ.mjs.gz +0 -0
  60. package/dist/i18n.js +4 -4
  61. package/dist/i18n.js.br +0 -0
  62. package/dist/i18n.js.gz +0 -0
  63. package/dist/i18n.mjs +1 -1
  64. package/dist/i18n.mjs.br +0 -0
  65. package/dist/i18n.mjs.gz +0 -0
  66. package/dist/index.d.ts +79 -87
  67. package/dist/index.js +39 -40
  68. package/dist/index.js.br +0 -0
  69. package/dist/index.js.gz +0 -0
  70. package/dist/index.mjs +6 -7
  71. package/dist/index.mjs.br +0 -0
  72. package/dist/index.mjs.gz +0 -0
  73. package/dist/internals.d.ts +506 -514
  74. package/dist/internals.d.ts.map +1 -1
  75. package/dist/internals.js +79 -81
  76. package/dist/internals.js.br +0 -0
  77. package/dist/internals.js.gz +0 -0
  78. package/dist/internals.mjs +4 -6
  79. package/dist/internals.mjs.br +0 -0
  80. package/dist/internals.mjs.gz +0 -0
  81. package/dist/pptx-viewer.css +1 -1
  82. package/dist/pptx-viewer.css.br +0 -0
  83. package/dist/pptx-viewer.css.gz +0 -0
  84. package/dist/{animation-timeline-eb5z0SHW.d.ts → types-DciBT90G.d.ts} +4 -3
  85. package/dist/types-DciBT90G.d.ts.map +1 -0
  86. package/dist/{useViewerBuildingBlocks-CjureTRf.d.ts → useViewerBuildingBlocks-DMDZRawe.d.ts} +4 -4
  87. package/dist/{useViewerBuildingBlocks-CjureTRf.d.ts.map → useViewerBuildingBlocks-DMDZRawe.d.ts.map} +1 -1
  88. package/dist/viewer/index.d.ts +79 -88
  89. package/dist/viewer/index.js +22 -24
  90. package/dist/viewer/index.js.br +0 -0
  91. package/dist/viewer/index.js.gz +0 -0
  92. package/dist/viewer/index.mjs +6 -8
  93. package/dist/viewer/index.mjs.br +0 -0
  94. package/dist/viewer/index.mjs.gz +0 -0
  95. package/package.json +4 -4
  96. package/dist/AiChatPanel-HC3CE3TL.js.br +0 -0
  97. package/dist/AiChatPanel-HC3CE3TL.js.gz +0 -0
  98. package/dist/AiChatPanel-PXZYHJUB.mjs.br +0 -0
  99. package/dist/AiChatPanel-PXZYHJUB.mjs.gz +0 -0
  100. package/dist/Model3DScene-37QZRHV5.js.br +0 -0
  101. package/dist/Model3DScene-37QZRHV5.js.gz +0 -0
  102. package/dist/Model3DScene-ZG4HTMPX.mjs.br +0 -0
  103. package/dist/Model3DScene-ZG4HTMPX.mjs.gz +0 -0
  104. package/dist/SurfaceChart3DScene-QIREQ66D.js.br +0 -0
  105. package/dist/SurfaceChart3DScene-QIREQ66D.js.gz +0 -0
  106. package/dist/SurfaceChart3DScene-Z7R6DZXN.mjs.br +0 -0
  107. package/dist/SurfaceChart3DScene-Z7R6DZXN.mjs.gz +0 -0
  108. package/dist/animation-timeline-eb5z0SHW.d.ts.map +0 -1
  109. package/dist/chunk-3TB45PVK.js.br +0 -0
  110. package/dist/chunk-3TB45PVK.js.gz +0 -0
  111. package/dist/chunk-4AAFZFGH.mjs +0 -27633
  112. package/dist/chunk-4AAFZFGH.mjs.br +0 -0
  113. package/dist/chunk-4AAFZFGH.mjs.gz +0 -0
  114. package/dist/chunk-EUIFPDXZ.js.br +0 -0
  115. package/dist/chunk-EUIFPDXZ.js.gz +0 -0
  116. package/dist/chunk-I5LEMC5C.mjs.br +0 -0
  117. package/dist/chunk-I5LEMC5C.mjs.gz +0 -0
  118. package/dist/chunk-IKBO6CZC.js +0 -2
  119. package/dist/chunk-IKBO6CZC.js.br +0 -3
  120. package/dist/chunk-IKBO6CZC.js.gz +0 -0
  121. package/dist/chunk-J5A22DZ7.mjs.br +0 -0
  122. package/dist/chunk-J5A22DZ7.mjs.gz +0 -0
  123. package/dist/chunk-JFNMD6TM.mjs.br +0 -0
  124. package/dist/chunk-JFNMD6TM.mjs.gz +0 -0
  125. package/dist/chunk-KDW3LLG5.js +0 -28067
  126. package/dist/chunk-KDW3LLG5.js.br +0 -0
  127. package/dist/chunk-KDW3LLG5.js.gz +0 -0
  128. package/dist/chunk-L7JNCVTF.js.br +0 -0
  129. package/dist/chunk-L7JNCVTF.js.gz +0 -0
  130. package/dist/chunk-M5YR3QSB.mjs.br +0 -0
  131. package/dist/chunk-P7UVBRFO.js.br +0 -0
  132. package/dist/chunk-P7UVBRFO.js.gz +0 -0
  133. package/dist/chunk-PZTPX3HK.mjs.br +0 -0
  134. package/dist/chunk-PZTPX3HK.mjs.gz +0 -0
  135. package/dist/chunk-T5U6P2JH.mjs +0 -1
  136. package/dist/chunk-T5U6P2JH.mjs.br +0 -0
  137. package/dist/chunk-T5U6P2JH.mjs.gz +0 -0
  138. package/dist/chunk-VOHTAUN4.mjs.br +0 -0
  139. package/dist/chunk-VOHTAUN4.mjs.gz +0 -0
  140. package/dist/chunk-YIFO3WQO.js.br +0 -0
  141. package/dist/chunk-YIFO3WQO.js.gz +0 -0
  142. package/dist/chunk-ZLSVW5GP.js.br +0 -0
  143. package/dist/chunk-ZLSVW5GP.js.gz +0 -0
  144. package/dist/dist-FTEVZZPM.js +0 -2283
  145. package/dist/dist-FTEVZZPM.js.br +0 -0
  146. package/dist/dist-FTEVZZPM.js.gz +0 -0
  147. package/dist/dist-L7GZVBMG.mjs +0 -2
  148. package/dist/dist-L7GZVBMG.mjs.br +0 -0
  149. package/dist/dist-L7GZVBMG.mjs.gz +0 -0
  150. package/dist/index-CDCSXtK3.d.ts +0 -685
  151. package/dist/index-CDCSXtK3.d.ts.map +0 -1
@@ -534,6 +534,62 @@ interface PptxCustomPathProperties {
534
534
  customGeometryTextRect?: CustomGeometryTextRect;
535
535
  }
536
536
  //#endregion
537
+ //#region src/core/types/effect-dag.d.ts
538
+ type EffectDagBlendMode = 'darken' | 'lighten' | 'mult' | 'over' | 'screen';
539
+ type EffectDagContainerType = 'sib' | 'tree';
540
+ type EffectDagNode = EffectDagContainer | EffectDagBlend | EffectDagXfrm | EffectDagRelOff | EffectDagBlur | EffectDagAlphaOutset | EffectDagPresetShadow | EffectDagRawLeaf;
541
+ interface EffectDagContainer {
542
+ kind: 'cont';
543
+ type: EffectDagContainerType;
544
+ name?: string;
545
+ children: EffectDagNode[];
546
+ }
547
+ interface EffectDagBlend {
548
+ kind: 'blend';
549
+ mode: EffectDagBlendMode;
550
+ container: EffectDagContainer;
551
+ }
552
+ interface EffectDagXfrm {
553
+ kind: 'xfrmEffect';
554
+ sx?: number;
555
+ sy?: number;
556
+ kx?: number;
557
+ ky?: number;
558
+ tx?: number;
559
+ ty?: number;
560
+ }
561
+ interface EffectDagRelOff {
562
+ kind: 'relOff';
563
+ tx?: number;
564
+ ty?: number;
565
+ }
566
+ /** Typed CT_BlurEffect with its original payload retained for lossless edits. */
567
+ interface EffectDagBlur {
568
+ kind: 'blur';
569
+ radiusEmu?: number;
570
+ grow?: boolean;
571
+ xml: XmlObject;
572
+ }
573
+ /** Typed CT_AlphaOutsetEffect with original XML retained for lossless edits. */
574
+ interface EffectDagAlphaOutset {
575
+ kind: 'alphaOutset';
576
+ radiusEmu?: number;
577
+ xml: XmlObject;
578
+ }
579
+ /** Typed CT_PresetShadowEffect with colour and extension XML retained verbatim. */
580
+ interface EffectDagPresetShadow {
581
+ kind: 'prstShdw';
582
+ preset?: `shdw${number}`;
583
+ distanceEmu?: number;
584
+ direction?: number;
585
+ xml: XmlObject;
586
+ }
587
+ interface EffectDagRawLeaf {
588
+ kind: 'raw';
589
+ tag: string;
590
+ xml: Record<string, unknown>;
591
+ }
592
+ //#endregion
537
593
  //#region src/core/types/three-d.d.ts
538
594
  /**
539
595
  * 3-D effect properties, text warp (WordArt) presets, and scene/shape bevel
@@ -996,6 +1052,15 @@ interface ShapeStyle {
996
1052
  lineGlowOpacity?: number;
997
1053
  /** Raw `a:effectDag` XML node preserved for round-trip serialisation. */
998
1054
  effectDagXml?: XmlObject;
1055
+ /**
1056
+ * Typed effect graph parsed from {@link ShapeStyle.effectDagXml}. The four
1057
+ * structural container nodes (`a:cont`, `a:blend`, `a:xfrmEffect`,
1058
+ * `a:relOff`) are fully typed; any other leaf effect (e.g. `a:outerShdw`,
1059
+ * `a:glow`, `a:alphaInv`) is captured as
1060
+ * {@link import('./effect-dag').EffectDagRawLeaf} so we never have to
1061
+ * recurse into the full effect taxonomy.
1062
+ */
1063
+ effectDagTree?: EffectDagContainer;
999
1064
  /** Grayscale flag from effectDag `a:grayscl`. */
1000
1065
  dagGrayscale?: boolean;
1001
1066
  /** Bi-level threshold (0-100) from effectDag `a:biLevel`. */
@@ -1430,6 +1495,20 @@ interface TextStyle {
1430
1495
  textPresetShadowDirection?: number;
1431
1496
  /** Text blur effect radius in px (`a:blur`). */
1432
1497
  textBlurRadius?: number;
1498
+ /**
1499
+ * Raw `a:effectDag` XML node from `a:rPr`, preserved verbatim for
1500
+ * round-trip serialisation. Mirrors the shape-level
1501
+ * {@link import('./shape-style').ShapeStyle.effectDagXml} field.
1502
+ */
1503
+ textEffectDagXml?: XmlObject;
1504
+ /**
1505
+ * Typed effect graph parsed from `textEffectDagXml`. The four structural
1506
+ * container nodes (`a:cont`, `a:blend`, `a:xfrmEffect`, `a:relOff`) are
1507
+ * fully typed; any other leaf effect is captured as
1508
+ * {@link import('./effect-dag').EffectDagRawLeaf} so we never have to
1509
+ * recurse into the full effect taxonomy.
1510
+ */
1511
+ textEffectDagTree?: EffectDagContainer;
1433
1512
  /** Text alpha modulation fixed (0-100) from `a:alphaModFix`. */
1434
1513
  textAlphaModFix?: number;
1435
1514
  /** Text alpha modulation from `a:alphaMod` (0-100 percentage). */
@@ -2820,62 +2899,6 @@ interface PptxChartData {
2820
2899
  clrMapOvr?: Record<string, string>;
2821
2900
  }
2822
2901
  //#endregion
2823
- //#region src/core/types/effect-dag.d.ts
2824
- type EffectDagBlendMode = 'darken' | 'lighten' | 'mult' | 'over' | 'screen';
2825
- type EffectDagContainerType = 'sib' | 'tree';
2826
- type EffectDagNode = EffectDagContainer | EffectDagBlend | EffectDagXfrm | EffectDagRelOff | EffectDagBlur | EffectDagAlphaOutset | EffectDagPresetShadow | EffectDagRawLeaf;
2827
- interface EffectDagContainer {
2828
- kind: 'cont';
2829
- type: EffectDagContainerType;
2830
- name?: string;
2831
- children: EffectDagNode[];
2832
- }
2833
- interface EffectDagBlend {
2834
- kind: 'blend';
2835
- mode: EffectDagBlendMode;
2836
- container: EffectDagContainer;
2837
- }
2838
- interface EffectDagXfrm {
2839
- kind: 'xfrmEffect';
2840
- sx?: number;
2841
- sy?: number;
2842
- kx?: number;
2843
- ky?: number;
2844
- tx?: number;
2845
- ty?: number;
2846
- }
2847
- interface EffectDagRelOff {
2848
- kind: 'relOff';
2849
- tx?: number;
2850
- ty?: number;
2851
- }
2852
- /** Typed CT_BlurEffect with its original payload retained for lossless edits. */
2853
- interface EffectDagBlur {
2854
- kind: 'blur';
2855
- radiusEmu?: number;
2856
- grow?: boolean;
2857
- xml: XmlObject;
2858
- }
2859
- /** Typed CT_AlphaOutsetEffect with original XML retained for lossless edits. */
2860
- interface EffectDagAlphaOutset {
2861
- kind: 'alphaOutset';
2862
- radiusEmu?: number;
2863
- xml: XmlObject;
2864
- }
2865
- /** Typed CT_PresetShadowEffect with colour and extension XML retained verbatim. */
2866
- interface EffectDagPresetShadow {
2867
- kind: 'prstShdw';
2868
- preset?: `shdw${number}`;
2869
- distanceEmu?: number;
2870
- direction?: number;
2871
- xml: XmlObject;
2872
- }
2873
- interface EffectDagRawLeaf {
2874
- kind: 'raw';
2875
- tag: string;
2876
- xml: Record<string, unknown>;
2877
- }
2878
- //#endregion
2879
2902
  //#region src/core/types/image.d.ts
2880
2903
  /**
2881
2904
  * Image recolour/adjustment properties parsed from blip extensions.
@@ -3078,36 +3101,6 @@ interface PptxImageProperties {
3078
3101
  /** Crop-to-shape — CSS clip-path shape name. */
3079
3102
  cropShape?: PptxCropShape;
3080
3103
  }
3081
- declare module "./internals" {
3082
- interface TextStyle {
3083
- /**
3084
- * Raw `a:effectDag` XML node from `a:rPr`, preserved verbatim for
3085
- * round-trip serialisation. Mirrors the shape-level
3086
- * {@link import('./shape-style').ShapeStyle.effectDagXml} field.
3087
- */
3088
- textEffectDagXml?: XmlObject;
3089
- /**
3090
- * Typed effect graph parsed from `textEffectDagXml`. The four structural
3091
- * container nodes (`a:cont`, `a:blend`, `a:xfrmEffect`, `a:relOff`) are
3092
- * fully typed; any other leaf effect is captured as
3093
- * {@link EffectDagRawLeaf} so we never have to recurse into the full
3094
- * effect taxonomy.
3095
- */
3096
- textEffectDagTree?: EffectDagContainer;
3097
- }
3098
- }
3099
- declare module "./internals" {
3100
- interface ShapeStyle {
3101
- /**
3102
- * Typed effect graph parsed from {@link ShapeStyle.effectDagXml}. The four
3103
- * structural container nodes (`a:cont`, `a:blend`, `a:xfrmEffect`,
3104
- * `a:relOff`) are fully typed; any other leaf effect (e.g. `a:outerShdw`,
3105
- * `a:glow`, `a:alphaInv`) is captured as {@link EffectDagRawLeaf} so we
3106
- * never have to recurse into the full effect taxonomy.
3107
- */
3108
- effectDagTree?: EffectDagContainer;
3109
- }
3110
- }
3111
3104
  //#endregion
3112
3105
  //#region src/core/types/media.d.ts
3113
3106
  /**
@@ -6837,7 +6830,6 @@ interface PptxEmbeddedFont {
6837
6830
  originalPartBytes?: Uint8Array;
6838
6831
  }
6839
6832
 
6840
- //#endregion
6841
6833
  //#region src/core/types/theme-presets.d.ts
6842
6834
  /**
6843
6835
  * A complete theme preset that can be applied to a presentation.
@@ -9471,243 +9463,80 @@ interface ViewerBuildingBlocksResult {
9471
9463
  }
9472
9464
  declare function useViewerBuildingBlocks(input: UseViewerBuildingBlocksInput): ViewerBuildingBlocksResult;
9473
9465
 
9474
- //#region src/viewer/hooks/presentation-mode/types.d.ts
9466
+ //#region src/viewer/hooks/useThemeSwitching.d.ts
9467
+ interface UseThemeSwitchingInput {
9468
+ /** Ref to the PptxHandler instance. */
9469
+ handlerRef: RefObject<PptxHandler | null>;
9470
+ /** Current parsed presentation data (null when nothing is loaded). */
9471
+ data: PptxData | null;
9472
+ /** Callback to update the presentation data after theme switch. */
9473
+ onDataChange: (newData: PptxData) => void;
9474
+ /** Optional callback fired when theme switch completes successfully. */
9475
+ onThemeChanged?: (preset: PptxThemePreset) => void;
9476
+ }
9477
+ interface ThemeSwitchingResult {
9478
+ /** All available built-in theme presets. */
9479
+ presets: readonly PptxThemePreset[];
9480
+ /**
9481
+ * Apply a theme preset to the current presentation.
9482
+ * Updates both the in-memory ZIP and all resolved element colours.
9483
+ */
9484
+ switchToPreset: (preset: PptxThemePreset) => Promise<void>;
9485
+ /**
9486
+ * Apply a custom colour scheme (and optional font scheme) to the
9487
+ * current presentation.
9488
+ */
9489
+ switchToCustom: (colorScheme: PptxThemeColorScheme, fontScheme?: PptxThemeFontScheme, themeName?: string) => Promise<void>;
9490
+ /**
9491
+ * Get the preset matching the current presentation theme (if any).
9492
+ * Returns undefined if the current theme does not match a built-in preset.
9493
+ */
9494
+ currentPreset: PptxThemePreset | undefined;
9495
+ }
9475
9496
  /**
9476
- * How a forward/backward slide advance was requested.
9497
+ * React hook providing theme switching capabilities for the PowerPoint viewer.
9477
9498
  *
9478
- * - `'click'`: a click/tap on the slide surface (PowerPoint's "On Mouse Click"
9479
- * advance). This is the only trigger governed by `advanceOnClick`.
9480
- * - `'explicit'`: keyboard, navigation buttons, action triggers, and timed
9481
- * auto-advance. These always navigate regardless of `advanceOnClick`, matching
9482
- * PowerPoint (arrow keys / Next always work even when click-advance is off).
9499
+ * @example
9500
+ * ```tsx
9501
+ * const { presets, switchToPreset, currentPreset } = useThemeSwitching({
9502
+ * handlerRef,
9503
+ * data,
9504
+ * onDataChange: setData,
9505
+ * });
9506
+ *
9507
+ * return (
9508
+ * <div>
9509
+ * {presets.map(preset => (
9510
+ * <button
9511
+ * key={preset.id}
9512
+ * onClick={() => switchToPreset(preset)}
9513
+ * aria-pressed={preset.id === currentPreset?.id}
9514
+ * >
9515
+ * {preset.name}
9516
+ * </button>
9517
+ * ))}
9518
+ * </div>
9519
+ * );
9520
+ * ```
9483
9521
  */
9484
- type SlideAdvanceTrigger = 'click' | 'explicit';
9522
+ declare function useThemeSwitching(input: UseThemeSwitchingInput): ThemeSwitchingResult;
9523
+ //#endregion
9524
+ //#region ../../node_modules/.bun/lib0@0.2.117/node_modules/lib0/observable.d.ts
9485
9525
  /**
9486
- * State describing the transition overlay that plays while advancing into a
9487
- * slide that carries a `p:transition`. The outgoing slide is snapshotted into
9488
- * an animated overlay layer while the incoming slide renders underneath on the
9489
- * main stage; the overlay tears down once `durationMs` elapses.
9526
+ * Handles named events.
9527
+ *
9528
+ * @deprecated
9529
+ * @template N
9490
9530
  */
9491
- interface PresentationTransitionOverlayState {
9492
- /** Index of the leaving slide, rendered (animated) in the overlay layer. */
9493
- outgoingSlideIndex: number;
9494
- /** Index of the arriving slide, already live on the main stage. */
9495
- incomingSlideIndex: number;
9496
- /** The incoming slide's transition definition (drives the CSS animation). */
9497
- transition: PptxSlideTransition;
9498
- /** Resolved transition duration (ms). */
9499
- durationMs: number;
9500
- }
9501
- interface UsePresentationModeInput {
9502
- mode: ViewerMode;
9503
- slides: PptxSlide[];
9504
- visibleSlideIndexes: number[];
9505
- activeSlideIndex: number;
9506
- containerRef: React.RefObject<HTMLElement | null>;
9507
- /** Raw PPTX bytes: forwarded to audience window for content sharing. */
9508
- content?: ArrayBuffer | Uint8Array | null;
9509
- onSetMode: (mode: ViewerMode) => void;
9510
- onSetActiveSlideIndex: (index: number) => void;
9531
+ declare class Observable<N> {
9511
9532
  /**
9512
- * Play a sound file for an action/transition. When `options.loop` is true the
9513
- * audio repeats until the next animation sound plays or the show exits
9514
- * (used for transition sounds flagged with `soundLoop`).
9533
+ * Some desc.
9534
+ * @type {Map<N, any>}
9515
9535
  */
9516
- onPlayActionSound?: (soundPath: string, options?: {
9517
- loop?: boolean;
9518
- }) => void;
9519
- /** Select a pointer tool (Ctrl+L laser, Ctrl+P pen, Ctrl+A arrow, Ctrl+E eraser). */
9520
- onSetPointerTool?: (tool: PresentationPointerTool | 'arrow') => void;
9521
- /** Erase the current slide's ink annotations (E). */
9522
- onEraseAnnotations?: () => void;
9523
- /** Show or hide ink markup (Ctrl+M). */
9524
- onToggleInkMarkup?: () => void;
9525
- /** Show or hide the slide-show chrome (Ctrl+H). */
9526
- onToggleToolbar?: () => void;
9527
- /** Open the All Slides navigator (Ctrl+S). */
9528
- onShowAllSlides?: () => void;
9529
- /** Called to persist rehearsal timings into slide transitions. */
9530
- onSaveRehearsalTimings?: (timings: Record<number, number>) => void;
9531
- /** Whether to loop continuously (kiosk or explicit loop setting). */
9532
- loopContinuously?: boolean;
9533
- /** Whether to play animations during the slide show (false = skip all animations). */
9534
- showWithAnimation?: boolean;
9535
- /** Whether to use rehearsed auto-advance timings (false = manual advance only). */
9536
- useTimings?: boolean;
9536
+ _observers: Map<N, any>;
9537
9537
  /**
9538
- * Options > Advanced > "End with black slide". When true (PowerPoint's
9539
- * default), advancing past the last slide shows a black end-of-show
9540
- * screen; the next advance (or a click on it) exits. When false,
9541
- * advancing past the last slide exits the show directly.
9542
- */
9543
- endWithBlackSlide?: boolean;
9544
- }
9545
- interface UsePresentationModeResult {
9546
- presentationSlideIndex: number;
9547
- setPresentationSlideIndex: (index: number) => void;
9548
- presentationSlideVisible: boolean;
9549
- /** Active slide-transition overlay, or `null` when no transition is playing. */
9550
- transitionOverlay: PresentationTransitionOverlayState | null;
9551
- /** Tear down the transition overlay once its animation completes. */
9552
- handleTransitionOverlayComplete: () => void;
9553
- presentationAnimations: PresentationAnimationRuntime[];
9554
- presentationElementStates: Map<string, ElementAnimationState>;
9555
- presentationKeyframesCss: string;
9556
- clearPresentationTimers: () => void;
9557
- runPresentationEntranceAnimations: (slideIndex: number) => void;
9558
- /** True while the black "End of slide show" screen is displayed. */
9559
- endOfShowVisible: boolean;
9560
- /** Whether the All Slides navigator (Ctrl+S) is open during the show. */
9561
- allSlidesOpen: boolean;
9562
- openAllSlides: () => void;
9563
- closeAllSlides: () => void;
9564
- movePresentationSlide: (direction: 1 | -1, trigger?: SlideAdvanceTrigger) => void;
9565
- navigateToSlide: (slideIndex: number) => void;
9566
- handlePresentationAction: (action: PptxAction) => void;
9567
- /**
9568
- * Handle a shape click in presentation mode. If the shape is an interactive
9569
- * trigger, play its animation sequence. Returns `true` if handled.
9570
- */
9571
- handleInteractiveShapeClick: (shapeId: string) => boolean;
9572
- /** Set of shape IDs that are interactive sequence triggers on the current slide. */
9573
- interactiveTriggerShapeIds: ReadonlySet<string>;
9574
- /** Set of shape IDs that are hover animation triggers on the current slide. */
9575
- hoverTriggerShapeIds: ReadonlySet<string>;
9576
- /** Handle hover start on a shape. If the shape has a hover sequence, play it. Returns `true` if handled. */
9577
- handleHoverStart: (shapeId: string) => boolean;
9578
- /** Handle hover end on a shape. Resets the hover sequence for replay. */
9579
- handleHoverEnd: (shapeId: string) => void;
9580
- /** Must be called from a user-gesture handler (click) to satisfy browser fullscreen policy. */
9581
- enterPresentMode: () => void;
9582
- /** Whether presenter view (split-screen with notes) is active instead of fullscreen. */
9583
- presenterMode: boolean;
9584
- /** Enter presenter view mode (no fullscreen, shows notes panel). */
9585
- enterPresenterView: () => void;
9586
- /** Toggle between fullscreen and presenter view during presentation. */
9587
- togglePresenterView: () => void;
9588
- /** Timestamp (ms) when the presentation started: used for elapsed timer. */
9589
- presentationStartTime: number | null;
9590
- /** Whether the current presentation session is in rehearse-timings mode. */
9591
- rehearsing: boolean;
9592
- /** Enter rehearse-timings mode (fullscreen presentation + timing HUD). */
9593
- enterRehearsalMode: () => void;
9594
- /** Recorded timings in ms, keyed by slide index. Populated during rehearsal. */
9595
- recordedTimings: Record<number, number>;
9596
- /** Timestamp when the current slide started (ms since epoch). */
9597
- slideStartTime: number | null;
9598
- /** Whether the rehearsal summary dialog should be shown. */
9599
- showRehearsalSummary: boolean;
9600
- /** Dismiss the rehearsal summary (discard timings). */
9601
- dismissRehearsalSummary: () => void;
9602
- /** Save recorded timings into each slide's transition.advanceAfterMs. */
9603
- saveRehearsalTimings: () => void;
9604
- /** Whether rehearsal timer is paused. */
9605
- rehearsalPaused: boolean;
9606
- /** Toggle the rehearsal timer pause state. */
9607
- toggleRehearsalPause: () => void;
9608
- /** Handle a zoom element click in presentation mode. */
9609
- handleZoomClick: (targetSlideIndex: number, returnSlideIndex: number) => void;
9610
- /** Ref holding the slide index to return to after zoom navigation. */
9611
- zoomReturnSlideIndex: React.RefObject<number | null>;
9612
- /** Navigate back to the zoom summary slide. Returns true if navigation occurred. */
9613
- returnToZoomSlide: () => boolean;
9614
- /** Clear the stored zoom return index. */
9615
- clearZoomReturn: () => void;
9616
- /** Open the audience display in a separate browser window. Returns `true` if successful. */
9617
- openAudienceWindow: () => boolean;
9618
- /** Close the audience display window. */
9619
- closeAudienceWindow: () => void;
9620
- /** Whether the audience window is currently open. */
9621
- isAudienceWindowOpen: () => boolean;
9622
- /** Send a slide index to the audience window explicitly. */
9623
- syncSlideToAudience: (slideIndex: number) => void;
9624
- syncStateToAudience: (snapshot: PresentationSnapshot) => void;
9625
- presenterSnapshot: PresentationSnapshot;
9626
- setPresenterBlackout: (blackout: PresentationSnapshot['blackout']) => void;
9627
- togglePresenterTimer: () => void;
9628
- resetPresenterTimer: () => void;
9629
- stepPresenterZoom: (direction: 1 | -1) => void;
9630
- resetPresenterZoom: () => void;
9631
- setPresenterCaption: (caption: string) => void;
9632
- setPresenterSubtitlesVisible: (visible: boolean) => void;
9633
- updatePresenterSnapshot: (patch: Partial<PresentationSnapshot>) => void;
9634
- swapPresenterDisplays: () => Promise<boolean>;
9635
- }
9636
- //#endregion
9637
- //#region src/viewer/hooks/useThemeSwitching.d.ts
9638
- interface UseThemeSwitchingInput {
9639
- /** Ref to the PptxHandler instance. */
9640
- handlerRef: RefObject<PptxHandler | null>;
9641
- /** Current parsed presentation data (null when nothing is loaded). */
9642
- data: PptxData | null;
9643
- /** Callback to update the presentation data after theme switch. */
9644
- onDataChange: (newData: PptxData) => void;
9645
- /** Optional callback fired when theme switch completes successfully. */
9646
- onThemeChanged?: (preset: PptxThemePreset) => void;
9647
- }
9648
- interface ThemeSwitchingResult {
9649
- /** All available built-in theme presets. */
9650
- presets: readonly PptxThemePreset[];
9651
- /**
9652
- * Apply a theme preset to the current presentation.
9653
- * Updates both the in-memory ZIP and all resolved element colours.
9654
- */
9655
- switchToPreset: (preset: PptxThemePreset) => Promise<void>;
9656
- /**
9657
- * Apply a custom colour scheme (and optional font scheme) to the
9658
- * current presentation.
9659
- */
9660
- switchToCustom: (colorScheme: PptxThemeColorScheme, fontScheme?: PptxThemeFontScheme, themeName?: string) => Promise<void>;
9661
- /**
9662
- * Get the preset matching the current presentation theme (if any).
9663
- * Returns undefined if the current theme does not match a built-in preset.
9664
- */
9665
- currentPreset: PptxThemePreset | undefined;
9666
- }
9667
- /**
9668
- * React hook providing theme switching capabilities for the PowerPoint viewer.
9669
- *
9670
- * @example
9671
- * ```tsx
9672
- * const { presets, switchToPreset, currentPreset } = useThemeSwitching({
9673
- * handlerRef,
9674
- * data,
9675
- * onDataChange: setData,
9676
- * });
9677
- *
9678
- * return (
9679
- * <div>
9680
- * {presets.map(preset => (
9681
- * <button
9682
- * key={preset.id}
9683
- * onClick={() => switchToPreset(preset)}
9684
- * aria-pressed={preset.id === currentPreset?.id}
9685
- * >
9686
- * {preset.name}
9687
- * </button>
9688
- * ))}
9689
- * </div>
9690
- * );
9691
- * ```
9692
- */
9693
- declare function useThemeSwitching(input: UseThemeSwitchingInput): ThemeSwitchingResult;
9694
- //#endregion
9695
- //#region ../../node_modules/.bun/lib0@0.2.117/node_modules/lib0/observable.d.ts
9696
- /**
9697
- * Handles named events.
9698
- *
9699
- * @deprecated
9700
- * @template N
9701
- */
9702
- declare class Observable<N> {
9703
- /**
9704
- * Some desc.
9705
- * @type {Map<N, any>}
9706
- */
9707
- _observers: Map<N, any>;
9708
- /**
9709
- * @param {N} name
9710
- * @param {function} f
9538
+ * @param {N} name
9539
+ * @param {function} f
9711
9540
  */
9712
9541
  on(name: N, f: Function): void;
9713
9542
  /**
@@ -9986,67 +9815,149 @@ interface UseFollowModeResult {
9986
9815
  followUser: (clientId: number | null) => void;
9987
9816
  }
9988
9817
  declare function useFollowMode({ collab, activeSlideIndex, setActiveSlideIndex, slideCount }: UseFollowModeInput): UseFollowModeResult;
9989
- //#endregion
9990
- //#region src/viewer/hooks/presentation-mode/useAnimationPlayback.d.ts
9991
- interface UseAnimationPlaybackInput {
9818
+ interface UsePresenterWindowInput {
9819
+ currentSlideIndex: number;
9820
+ isPresenterMode: boolean;
9821
+ /** Raw PPTX bytes to share with the audience tab via IndexedDB. */
9822
+ content?: ArrayBuffer | Uint8Array | null;
9823
+ snapshot: PresentationSnapshot;
9824
+ }
9825
+ interface UsePresenterWindowResult {
9826
+ openAudienceWindow: () => boolean;
9827
+ closeAudienceWindow: () => void;
9828
+ isAudienceWindowOpen: () => boolean;
9829
+ syncSlideToAudience: (slideIndex: number) => void;
9830
+ syncStateToAudience: (snapshot: PresentationSnapshot) => void;
9831
+ swapDisplays: () => Promise<boolean>;
9832
+ }
9833
+ declare function usePresenterWindow(input: UsePresenterWindowInput): UsePresenterWindowResult;
9834
+
9835
+ //#region src/viewer/hooks/useEditorHistory.d.ts
9836
+ interface EditorHistoryInput {
9992
9837
  slides: PptxSlide[];
9993
- onPlayActionSound?: (soundPath: string) => void;
9994
- /** When false, all animations are skipped (elements shown immediately). */
9995
- showWithAnimation?: boolean;
9838
+ canvasSize: CanvasSize;
9839
+ activeSlideIndex: number;
9840
+ templateElementsBySlideId: Record<string, PptxElement[]>;
9841
+ selectedElementId: string | null;
9842
+ selectedElementIds: string[];
9843
+ editTemplateMode: boolean;
9844
+ headerFooter: PptxHeaderFooter;
9845
+ loading: boolean;
9846
+ error: string | null;
9847
+ /**
9848
+ * Undo-stack depth (File > Options > Advanced > "Maximum number of undos",
9849
+ * resolved via the shared `resolveHistoryDepth`). Defaults to 120.
9850
+ */
9851
+ maxHistoryEntries?: number;
9852
+ hasActivePointerInteraction: () => boolean;
9853
+ pointerCommitNonce: number;
9854
+ setSlides: (slides: PptxSlide[]) => void;
9855
+ setCanvasSize: (size: CanvasSize) => void;
9856
+ setActiveSlideIndex: (index: number) => void;
9857
+ setTemplateElementsBySlideId: (map: Record<string, PptxElement[]>) => void;
9858
+ setSelectedElementId: (id: string | null) => void;
9859
+ setSelectedElementIds: (ids: string[]) => void;
9860
+ setEditTemplateMode: (mode: boolean) => void;
9861
+ setHeaderFooter: (hf: PptxHeaderFooter) => void;
9996
9862
  }
9997
- interface UseAnimationPlaybackResult {
9998
- presentationAnimations: PresentationAnimationRuntime[];
9999
- presentationElementStates: Map<string, ElementAnimationState>;
10000
- presentationKeyframesCss: string;
10001
- interactiveTriggerShapeIds: ReadonlySet<string>;
10002
- hoverTriggerShapeIds: ReadonlySet<string>;
10003
- clearPresentationTimers: () => void;
10004
- playNextAnimationGroup: () => boolean;
10005
- handleInteractiveShapeClick: (shapeId: string) => boolean;
10006
- handleHoverStart: (shapeId: string) => boolean;
10007
- handleHoverEnd: (shapeId: string) => void;
10008
- runPresentationEntranceAnimations: (slideIndex: number) => void;
10009
- /** Exposed so the orchestrator can schedule additional timers (e.g. auto-advance). */
10010
- presentationTimersRef: React.RefObject<number[]>;
9863
+ interface EditorHistoryResult {
9864
+ canUndo: boolean;
9865
+ canRedo: boolean;
9866
+ undoLabel: string | undefined;
9867
+ redoLabel: string | undefined;
9868
+ handleUndo: () => void;
9869
+ handleRedo: () => void;
9870
+ resetHistory: () => void;
9871
+ markDirty: () => void;
9872
+ buildHistorySnapshot: (actionLabel?: string) => EditorHistorySnapshot;
10011
9873
  }
10012
- declare function useAnimationPlayback(input: UseAnimationPlaybackInput): UseAnimationPlaybackResult;
9874
+ declare function useEditorHistory(input: EditorHistoryInput): EditorHistoryResult;
10013
9875
  //#endregion
10014
- //#region src/viewer/hooks/presentation-mode/useRehearsalTimings.d.ts
10015
- interface UseRehearsalTimingsInput {
10016
- containerRef: React.RefObject<HTMLElement | null>;
10017
- onSetMode: (mode: ViewerMode) => void;
10018
- onSaveRehearsalTimings?: (timings: Record<number, number>) => void;
10019
- setPresentationStartTime: (time: number | null) => void;
10020
- setPresenterMode: (mode: boolean) => void;
9876
+ //#region src/viewer/hooks/useZoomViewport.d.ts
9877
+ /** Axis-aligned bounding box used by zoom / viewport helpers. */
9878
+ interface SelectionBounds {
9879
+ minX: number;
9880
+ minY: number;
9881
+ maxX: number;
9882
+ maxY: number;
10021
9883
  }
10022
- interface UseRehearsalTimingsResult {
10023
- rehearsing: boolean;
10024
- setRehearsing: React.Dispatch<React.SetStateAction<boolean>>;
10025
- recordedTimings: Record<number, number>;
10026
- slideStartTime: number | null;
10027
- showRehearsalSummary: boolean;
10028
- setShowRehearsalSummary: React.Dispatch<React.SetStateAction<boolean>>;
10029
- rehearsalPaused: boolean;
10030
- recordCurrentSlideTime: (slideIndex: number) => void;
10031
- dismissRehearsalSummary: () => void;
10032
- saveRehearsalTimings: () => void;
10033
- enterRehearsalMode: () => void;
10034
- toggleRehearsalPause: () => void;
9884
+ interface UseZoomViewportInput {
9885
+ canvasSize: CanvasSize;
9886
+ selectedElements: PptxElement[];
10035
9887
  }
10036
- declare function useRehearsalTimings(input: UseRehearsalTimingsInput): UseRehearsalTimingsResult;
9888
+ interface UseZoomViewportResult {
9889
+ editWrapperRef: React.RefObject<HTMLDivElement | null>;
9890
+ canvasStageRef: React.RefObject<HTMLDivElement | null>;
9891
+ canvasViewportRef: React.RefObject<HTMLDivElement | null>;
9892
+ renderScaleRef: React.MutableRefObject<number>;
9893
+ scale: number;
9894
+ setScale: (scale: number) => void;
9895
+ editorDimensions: CanvasSize | null;
9896
+ setEditorDimensions: (dims: CanvasSize | null) => void;
9897
+ fitScale: number;
9898
+ editorScale: number;
9899
+ handleZoomIn: () => void;
9900
+ handleZoomOut: () => void;
9901
+ handleResetZoom: () => void;
9902
+ handleZoomToFit: () => void;
9903
+ handleZoomToSelection: () => void;
9904
+ handleWheel: (e: WheelEvent) => void;
9905
+ centerBoundsInViewport: (bounds: SelectionBounds, nextScale: number) => void;
9906
+ getCanvasPointFromClient: (clientX: number, clientY: number) => {
9907
+ x: number;
9908
+ y: number;
9909
+ } | null;
9910
+ }
9911
+ declare function useZoomViewport({ canvasSize, selectedElements }: UseZoomViewportInput): UseZoomViewportResult;
10037
9912
  //#endregion
10038
- //#region src/viewer/hooks/presentation-mode/usePresentationKeyboard.d.ts
10039
- interface UsePresentationKeyboardInput {
9913
+ //#region src/viewer/hooks/presentation-mode/types.d.ts
9914
+ /**
9915
+ * How a forward/backward slide advance was requested.
9916
+ *
9917
+ * - `'click'`: a click/tap on the slide surface (PowerPoint's "On Mouse Click"
9918
+ * advance). This is the only trigger governed by `advanceOnClick`.
9919
+ * - `'explicit'`: keyboard, navigation buttons, action triggers, and timed
9920
+ * auto-advance. These always navigate regardless of `advanceOnClick`, matching
9921
+ * PowerPoint (arrow keys / Next always work even when click-advance is off).
9922
+ */
9923
+ type SlideAdvanceTrigger = 'click' | 'explicit';
9924
+ /**
9925
+ * State describing the transition overlay that plays while advancing into a
9926
+ * slide that carries a `p:transition`. The outgoing slide is snapshotted into
9927
+ * an animated overlay layer while the incoming slide renders underneath on the
9928
+ * main stage; the overlay tears down once `durationMs` elapses.
9929
+ */
9930
+ interface PresentationTransitionOverlayState {
9931
+ /** Index of the leaving slide, rendered (animated) in the overlay layer. */
9932
+ outgoingSlideIndex: number;
9933
+ /** Index of the arriving slide, already live on the main stage. */
9934
+ incomingSlideIndex: number;
9935
+ /** The incoming slide's transition definition (drives the CSS animation). */
9936
+ transition: PptxSlideTransition;
9937
+ /** Resolved transition duration (ms). */
9938
+ durationMs: number;
9939
+ }
9940
+ interface UsePresentationModeInput {
10040
9941
  mode: ViewerMode;
10041
- movePresentationSlide: (direction: 1 | -1) => void;
10042
- /** Jump to a 0-based slide index (Home / End / typed slide number). */
10043
- navigateToSlide: (index: number) => void;
10044
- /** Total slide count, so End can resolve the last slide. */
10045
- slideCount: number;
9942
+ slides: PptxSlide[];
9943
+ visibleSlideIndexes: number[];
9944
+ activeSlideIndex: number;
9945
+ containerRef: React.RefObject<HTMLElement | null>;
9946
+ /** Raw PPTX bytes: forwarded to audience window for content sharing. */
9947
+ content?: ArrayBuffer | Uint8Array | null;
10046
9948
  onSetMode: (mode: ViewerMode) => void;
10047
- /** Select a pointer tool (Ctrl+L / Ctrl+P / Ctrl+A / Ctrl+E). */
9949
+ onSetActiveSlideIndex: (index: number) => void;
9950
+ /**
9951
+ * Play a sound file for an action/transition. When `options.loop` is true the
9952
+ * audio repeats until the next animation sound plays or the show exits
9953
+ * (used for transition sounds flagged with `soundLoop`).
9954
+ */
9955
+ onPlayActionSound?: (soundPath: string, options?: {
9956
+ loop?: boolean;
9957
+ }) => void;
9958
+ /** Select a pointer tool (Ctrl+L laser, Ctrl+P pen, Ctrl+A arrow, Ctrl+E eraser). */
10048
9959
  onSetPointerTool?: (tool: PresentationPointerTool | 'arrow') => void;
10049
- /** Erase this slide's ink annotations (E). */
9960
+ /** Erase the current slide's ink annotations (E). */
10050
9961
  onEraseAnnotations?: () => void;
10051
9962
  /** Show or hide ink markup (Ctrl+M). */
10052
9963
  onToggleInkMarkup?: () => void;
@@ -10054,168 +9965,113 @@ interface UsePresentationKeyboardInput {
10054
9965
  onToggleToolbar?: () => void;
10055
9966
  /** Open the All Slides navigator (Ctrl+S). */
10056
9967
  onShowAllSlides?: () => void;
10057
- onToggleBlackScreen?: () => void;
10058
- onToggleWhiteScreen?: () => void;
10059
- rehearsing: boolean;
10060
- recordCurrentSlideTime: (slideIndex: number) => void;
10061
- presentationSlideIndex: number;
10062
- setShowRehearsalSummary: (value: boolean) => void;
10063
- }
10064
- /**
10065
- * Registers PowerPoint's slide-show shortcuts while a show is running.
10066
- *
10067
- * The key-to-action mapping lives in `pptx-viewer-shared` so every binding
10068
- * resolves the same chords; this hook only performs the resulting actions.
10069
- */
10070
- declare function usePresentationKeyboard(input: UsePresentationKeyboardInput): void;
10071
- //#endregion
10072
- //#region src/viewer/hooks/presentation-mode/useSlideNavigation.d.ts
10073
- interface UseSlideNavigationInput {
10074
- slides: PptxSlide[];
10075
- visibleSlideIndexes: number[];
10076
- presentationSlideIndex: number;
10077
- setPresentationSlideIndex: (index: number) => void;
10078
- setPresentationSlideVisible: (visible: boolean) => void;
10079
- setTransitionOverlay: (state: PresentationTransitionOverlayState | null) => void;
10080
- onSetMode: (mode: ViewerMode) => void;
10081
- onSetActiveSlideIndex: (index: number) => void;
10082
- onPlayActionSound?: (soundPath: string) => void;
9968
+ /** Called to persist rehearsal timings into slide transitions. */
9969
+ onSaveRehearsalTimings?: (timings: Record<number, number>) => void;
9970
+ /** Whether to loop continuously (kiosk or explicit loop setting). */
10083
9971
  loopContinuously?: boolean;
10084
- /** Whether to use rehearsed auto-advance timings. When false, slides advance only on click. */
9972
+ /** Whether to play animations during the slide show (false = skip all animations). */
9973
+ showWithAnimation?: boolean;
9974
+ /** Whether to use rehearsed auto-advance timings (false = manual advance only). */
10085
9975
  useTimings?: boolean;
10086
9976
  /**
10087
- * Fired when the user advances past the last slide (no loop, no rehearsal).
10088
- * The presentation-mode hook uses it for PowerPoint's "End with black
10089
- * slide" behavior. When absent, advancing past the end clamps as before.
9977
+ * Options > Advanced > "End with black slide". When true (PowerPoint's
9978
+ * default), advancing past the last slide shows a black end-of-show
9979
+ * screen; the next advance (or a click on it) exits. When false,
9980
+ * advancing past the last slide exits the show directly.
10090
9981
  */
10091
- onAdvancePastLastSlide?: () => void;
10092
- playNextAnimationGroup: () => boolean;
9982
+ endWithBlackSlide?: boolean;
9983
+ }
9984
+ interface UsePresentationModeResult {
9985
+ presentationSlideIndex: number;
9986
+ setPresentationSlideIndex: (index: number) => void;
9987
+ presentationSlideVisible: boolean;
9988
+ /** Active slide-transition overlay, or `null` when no transition is playing. */
9989
+ transitionOverlay: PresentationTransitionOverlayState | null;
9990
+ /** Tear down the transition overlay once its animation completes. */
9991
+ handleTransitionOverlayComplete: () => void;
9992
+ presentationAnimations: PresentationAnimationRuntime[];
9993
+ presentationElementStates: Map<string, ElementAnimationState>;
9994
+ presentationKeyframesCss: string;
10093
9995
  clearPresentationTimers: () => void;
10094
9996
  runPresentationEntranceAnimations: (slideIndex: number) => void;
10095
- presentationTimersRef: {
10096
- current: number[];
10097
- };
10098
- rehearsing: boolean;
10099
- recordCurrentSlideTime: (slideIndex: number) => void;
10100
- setShowRehearsalSummary: (value: boolean) => void;
10101
- }
10102
- interface UseSlideNavigationResult {
9997
+ /** True while the black "End of slide show" screen is displayed. */
9998
+ endOfShowVisible: boolean;
9999
+ /** Whether the All Slides navigator (Ctrl+S) is open during the show. */
10000
+ allSlidesOpen: boolean;
10001
+ openAllSlides: () => void;
10002
+ closeAllSlides: () => void;
10103
10003
  movePresentationSlide: (direction: 1 | -1, trigger?: SlideAdvanceTrigger) => void;
10104
10004
  navigateToSlide: (slideIndex: number) => void;
10105
10005
  handlePresentationAction: (action: PptxAction) => void;
10106
- scheduleAutoAdvanceForSlide: (slideIndex: number) => void;
10107
- }
10108
- declare function useSlideNavigation(input: UseSlideNavigationInput): UseSlideNavigationResult;
10109
- interface UsePresenterWindowInput {
10110
- currentSlideIndex: number;
10111
- isPresenterMode: boolean;
10112
- /** Raw PPTX bytes to share with the audience tab via IndexedDB. */
10113
- content?: ArrayBuffer | Uint8Array | null;
10114
- snapshot: PresentationSnapshot;
10115
- }
10116
- interface UsePresenterWindowResult {
10006
+ /**
10007
+ * Handle a shape click in presentation mode. If the shape is an interactive
10008
+ * trigger, play its animation sequence. Returns `true` if handled.
10009
+ */
10010
+ handleInteractiveShapeClick: (shapeId: string) => boolean;
10011
+ /** Set of shape IDs that are interactive sequence triggers on the current slide. */
10012
+ interactiveTriggerShapeIds: ReadonlySet<string>;
10013
+ /** Set of shape IDs that are hover animation triggers on the current slide. */
10014
+ hoverTriggerShapeIds: ReadonlySet<string>;
10015
+ /** Handle hover start on a shape. If the shape has a hover sequence, play it. Returns `true` if handled. */
10016
+ handleHoverStart: (shapeId: string) => boolean;
10017
+ /** Handle hover end on a shape. Resets the hover sequence for replay. */
10018
+ handleHoverEnd: (shapeId: string) => void;
10019
+ /** Must be called from a user-gesture handler (click) to satisfy browser fullscreen policy. */
10020
+ enterPresentMode: () => void;
10021
+ /** Whether presenter view (split-screen with notes) is active instead of fullscreen. */
10022
+ presenterMode: boolean;
10023
+ /** Enter presenter view mode (no fullscreen, shows notes panel). */
10024
+ enterPresenterView: () => void;
10025
+ /** Toggle between fullscreen and presenter view during presentation. */
10026
+ togglePresenterView: () => void;
10027
+ /** Timestamp (ms) when the presentation started: used for elapsed timer. */
10028
+ presentationStartTime: number | null;
10029
+ /** Whether the current presentation session is in rehearse-timings mode. */
10030
+ rehearsing: boolean;
10031
+ /** Enter rehearse-timings mode (fullscreen presentation + timing HUD). */
10032
+ enterRehearsalMode: () => void;
10033
+ /** Recorded timings in ms, keyed by slide index. Populated during rehearsal. */
10034
+ recordedTimings: Record<number, number>;
10035
+ /** Timestamp when the current slide started (ms since epoch). */
10036
+ slideStartTime: number | null;
10037
+ /** Whether the rehearsal summary dialog should be shown. */
10038
+ showRehearsalSummary: boolean;
10039
+ /** Dismiss the rehearsal summary (discard timings). */
10040
+ dismissRehearsalSummary: () => void;
10041
+ /** Save recorded timings into each slide's transition.advanceAfterMs. */
10042
+ saveRehearsalTimings: () => void;
10043
+ /** Whether rehearsal timer is paused. */
10044
+ rehearsalPaused: boolean;
10045
+ /** Toggle the rehearsal timer pause state. */
10046
+ toggleRehearsalPause: () => void;
10047
+ /** Handle a zoom element click in presentation mode. */
10048
+ handleZoomClick: (targetSlideIndex: number, returnSlideIndex: number) => void;
10049
+ /** Ref holding the slide index to return to after zoom navigation. */
10050
+ zoomReturnSlideIndex: React.RefObject<number | null>;
10051
+ /** Navigate back to the zoom summary slide. Returns true if navigation occurred. */
10052
+ returnToZoomSlide: () => boolean;
10053
+ /** Clear the stored zoom return index. */
10054
+ clearZoomReturn: () => void;
10055
+ /** Open the audience display in a separate browser window. Returns `true` if successful. */
10117
10056
  openAudienceWindow: () => boolean;
10057
+ /** Close the audience display window. */
10118
10058
  closeAudienceWindow: () => void;
10059
+ /** Whether the audience window is currently open. */
10119
10060
  isAudienceWindowOpen: () => boolean;
10061
+ /** Send a slide index to the audience window explicitly. */
10120
10062
  syncSlideToAudience: (slideIndex: number) => void;
10121
10063
  syncStateToAudience: (snapshot: PresentationSnapshot) => void;
10122
- swapDisplays: () => Promise<boolean>;
10123
- }
10124
- declare function usePresenterWindow(input: UsePresenterWindowInput): UsePresenterWindowResult;
10125
- //#endregion
10126
- //#region src/viewer/hooks/presentation-mode/useAudienceMode.d.ts
10127
- interface UseAudienceModeInput {
10128
- mode: ViewerMode;
10129
- onSetMode: (mode: ViewerMode) => void;
10130
- onSetActiveSlideIndex: (index: number) => void;
10131
- containerRef: React.RefObject<HTMLElement | null>;
10132
- onSnapshot?: (snapshot: PresentationSnapshot) => void;
10133
- }
10134
- /**
10135
- * When the page was opened with the `#pptx-audience` hash, this hook:
10136
- * 1. Auto-enters fullscreen presentation mode after content loads
10137
- * 2. Listens on BroadcastChannel for slide-change messages from the presenter
10138
- * 3. Exits presentation mode when the presenter sends an exit signal
10139
- */
10140
- declare function useAudienceMode(input: UseAudienceModeInput): void;
10141
-
10142
- //#region src/viewer/hooks/useEditorHistory.d.ts
10143
- interface EditorHistoryInput {
10144
- slides: PptxSlide[];
10145
- canvasSize: CanvasSize;
10146
- activeSlideIndex: number;
10147
- templateElementsBySlideId: Record<string, PptxElement[]>;
10148
- selectedElementId: string | null;
10149
- selectedElementIds: string[];
10150
- editTemplateMode: boolean;
10151
- headerFooter: PptxHeaderFooter;
10152
- loading: boolean;
10153
- error: string | null;
10154
- /**
10155
- * Undo-stack depth (File > Options > Advanced > "Maximum number of undos",
10156
- * resolved via the shared `resolveHistoryDepth`). Defaults to 120.
10157
- */
10158
- maxHistoryEntries?: number;
10159
- hasActivePointerInteraction: () => boolean;
10160
- pointerCommitNonce: number;
10161
- setSlides: (slides: PptxSlide[]) => void;
10162
- setCanvasSize: (size: CanvasSize) => void;
10163
- setActiveSlideIndex: (index: number) => void;
10164
- setTemplateElementsBySlideId: (map: Record<string, PptxElement[]>) => void;
10165
- setSelectedElementId: (id: string | null) => void;
10166
- setSelectedElementIds: (ids: string[]) => void;
10167
- setEditTemplateMode: (mode: boolean) => void;
10168
- setHeaderFooter: (hf: PptxHeaderFooter) => void;
10169
- }
10170
- interface EditorHistoryResult {
10171
- canUndo: boolean;
10172
- canRedo: boolean;
10173
- undoLabel: string | undefined;
10174
- redoLabel: string | undefined;
10175
- handleUndo: () => void;
10176
- handleRedo: () => void;
10177
- resetHistory: () => void;
10178
- markDirty: () => void;
10179
- buildHistorySnapshot: (actionLabel?: string) => EditorHistorySnapshot;
10180
- }
10181
- declare function useEditorHistory(input: EditorHistoryInput): EditorHistoryResult;
10182
- //#endregion
10183
- //#region src/viewer/hooks/useZoomViewport.d.ts
10184
- /** Axis-aligned bounding box used by zoom / viewport helpers. */
10185
- interface SelectionBounds {
10186
- minX: number;
10187
- minY: number;
10188
- maxX: number;
10189
- maxY: number;
10190
- }
10191
- interface UseZoomViewportInput {
10192
- canvasSize: CanvasSize;
10193
- selectedElements: PptxElement[];
10194
- }
10195
- interface UseZoomViewportResult {
10196
- editWrapperRef: React.RefObject<HTMLDivElement | null>;
10197
- canvasStageRef: React.RefObject<HTMLDivElement | null>;
10198
- canvasViewportRef: React.RefObject<HTMLDivElement | null>;
10199
- renderScaleRef: React.MutableRefObject<number>;
10200
- scale: number;
10201
- setScale: (scale: number) => void;
10202
- editorDimensions: CanvasSize | null;
10203
- setEditorDimensions: (dims: CanvasSize | null) => void;
10204
- fitScale: number;
10205
- editorScale: number;
10206
- handleZoomIn: () => void;
10207
- handleZoomOut: () => void;
10208
- handleResetZoom: () => void;
10209
- handleZoomToFit: () => void;
10210
- handleZoomToSelection: () => void;
10211
- handleWheel: (e: WheelEvent) => void;
10212
- centerBoundsInViewport: (bounds: SelectionBounds, nextScale: number) => void;
10213
- getCanvasPointFromClient: (clientX: number, clientY: number) => {
10214
- x: number;
10215
- y: number;
10216
- } | null;
10064
+ presenterSnapshot: PresentationSnapshot;
10065
+ setPresenterBlackout: (blackout: PresentationSnapshot['blackout']) => void;
10066
+ togglePresenterTimer: () => void;
10067
+ resetPresenterTimer: () => void;
10068
+ stepPresenterZoom: (direction: 1 | -1) => void;
10069
+ resetPresenterZoom: () => void;
10070
+ setPresenterCaption: (caption: string) => void;
10071
+ setPresenterSubtitlesVisible: (visible: boolean) => void;
10072
+ updatePresenterSnapshot: (patch: Partial<PresentationSnapshot>) => void;
10073
+ swapPresenterDisplays: () => Promise<boolean>;
10217
10074
  }
10218
- declare function useZoomViewport({ canvasSize, selectedElements }: UseZoomViewportInput): UseZoomViewportResult;
10219
10075
  //#endregion
10220
10076
  //#region src/viewer/hooks/usePresentationMode.d.ts
10221
10077
  declare function usePresentationMode(input: UsePresentationModeInput): UsePresentationModeResult;
@@ -12150,6 +12006,126 @@ interface UseSwipeNavigationResult {
12150
12006
  }
12151
12007
  declare function useSwipeNavigation(input: UseSwipeNavigationInput): UseSwipeNavigationResult;
12152
12008
  //#endregion
12009
+ //#region src/viewer/hooks/presentation-mode/useAnimationPlayback.d.ts
12010
+ interface UseAnimationPlaybackInput {
12011
+ slides: PptxSlide[];
12012
+ onPlayActionSound?: (soundPath: string) => void;
12013
+ /** When false, all animations are skipped (elements shown immediately). */
12014
+ showWithAnimation?: boolean;
12015
+ }
12016
+ interface UseAnimationPlaybackResult {
12017
+ presentationAnimations: PresentationAnimationRuntime[];
12018
+ presentationElementStates: Map<string, ElementAnimationState>;
12019
+ presentationKeyframesCss: string;
12020
+ interactiveTriggerShapeIds: ReadonlySet<string>;
12021
+ hoverTriggerShapeIds: ReadonlySet<string>;
12022
+ clearPresentationTimers: () => void;
12023
+ playNextAnimationGroup: () => boolean;
12024
+ handleInteractiveShapeClick: (shapeId: string) => boolean;
12025
+ handleHoverStart: (shapeId: string) => boolean;
12026
+ handleHoverEnd: (shapeId: string) => void;
12027
+ runPresentationEntranceAnimations: (slideIndex: number) => void;
12028
+ /** Exposed so the orchestrator can schedule additional timers (e.g. auto-advance). */
12029
+ presentationTimersRef: React.RefObject<number[]>;
12030
+ }
12031
+ declare function useAnimationPlayback(input: UseAnimationPlaybackInput): UseAnimationPlaybackResult;
12032
+ //#endregion
12033
+ //#region src/viewer/hooks/presentation-mode/useRehearsalTimings.d.ts
12034
+ interface UseRehearsalTimingsInput {
12035
+ containerRef: React.RefObject<HTMLElement | null>;
12036
+ onSetMode: (mode: ViewerMode) => void;
12037
+ onSaveRehearsalTimings?: (timings: Record<number, number>) => void;
12038
+ setPresentationStartTime: (time: number | null) => void;
12039
+ setPresenterMode: (mode: boolean) => void;
12040
+ }
12041
+ interface UseRehearsalTimingsResult {
12042
+ rehearsing: boolean;
12043
+ setRehearsing: React.Dispatch<React.SetStateAction<boolean>>;
12044
+ recordedTimings: Record<number, number>;
12045
+ slideStartTime: number | null;
12046
+ showRehearsalSummary: boolean;
12047
+ setShowRehearsalSummary: React.Dispatch<React.SetStateAction<boolean>>;
12048
+ rehearsalPaused: boolean;
12049
+ recordCurrentSlideTime: (slideIndex: number) => void;
12050
+ dismissRehearsalSummary: () => void;
12051
+ saveRehearsalTimings: () => void;
12052
+ enterRehearsalMode: () => void;
12053
+ toggleRehearsalPause: () => void;
12054
+ }
12055
+ declare function useRehearsalTimings(input: UseRehearsalTimingsInput): UseRehearsalTimingsResult;
12056
+ //#endregion
12057
+ //#region src/viewer/hooks/presentation-mode/usePresentationKeyboard.d.ts
12058
+ interface UsePresentationKeyboardInput {
12059
+ mode: ViewerMode;
12060
+ movePresentationSlide: (direction: 1 | -1) => void;
12061
+ /** Jump to a 0-based slide index (Home / End / typed slide number). */
12062
+ navigateToSlide: (index: number) => void;
12063
+ /** Total slide count, so End can resolve the last slide. */
12064
+ slideCount: number;
12065
+ onSetMode: (mode: ViewerMode) => void;
12066
+ /** Select a pointer tool (Ctrl+L / Ctrl+P / Ctrl+A / Ctrl+E). */
12067
+ onSetPointerTool?: (tool: PresentationPointerTool | 'arrow') => void;
12068
+ /** Erase this slide's ink annotations (E). */
12069
+ onEraseAnnotations?: () => void;
12070
+ /** Show or hide ink markup (Ctrl+M). */
12071
+ onToggleInkMarkup?: () => void;
12072
+ /** Show or hide the slide-show chrome (Ctrl+H). */
12073
+ onToggleToolbar?: () => void;
12074
+ /** Open the All Slides navigator (Ctrl+S). */
12075
+ onShowAllSlides?: () => void;
12076
+ onToggleBlackScreen?: () => void;
12077
+ onToggleWhiteScreen?: () => void;
12078
+ rehearsing: boolean;
12079
+ recordCurrentSlideTime: (slideIndex: number) => void;
12080
+ presentationSlideIndex: number;
12081
+ setShowRehearsalSummary: (value: boolean) => void;
12082
+ }
12083
+ /**
12084
+ * Registers PowerPoint's slide-show shortcuts while a show is running.
12085
+ *
12086
+ * The key-to-action mapping lives in `pptx-viewer-shared` so every binding
12087
+ * resolves the same chords; this hook only performs the resulting actions.
12088
+ */
12089
+ declare function usePresentationKeyboard(input: UsePresentationKeyboardInput): void;
12090
+ //#endregion
12091
+ //#region src/viewer/hooks/presentation-mode/useSlideNavigation.d.ts
12092
+ interface UseSlideNavigationInput {
12093
+ slides: PptxSlide[];
12094
+ visibleSlideIndexes: number[];
12095
+ presentationSlideIndex: number;
12096
+ setPresentationSlideIndex: (index: number) => void;
12097
+ setPresentationSlideVisible: (visible: boolean) => void;
12098
+ setTransitionOverlay: (state: PresentationTransitionOverlayState | null) => void;
12099
+ onSetMode: (mode: ViewerMode) => void;
12100
+ onSetActiveSlideIndex: (index: number) => void;
12101
+ onPlayActionSound?: (soundPath: string) => void;
12102
+ loopContinuously?: boolean;
12103
+ /** Whether to use rehearsed auto-advance timings. When false, slides advance only on click. */
12104
+ useTimings?: boolean;
12105
+ /**
12106
+ * Fired when the user advances past the last slide (no loop, no rehearsal).
12107
+ * The presentation-mode hook uses it for PowerPoint's "End with black
12108
+ * slide" behavior. When absent, advancing past the end clamps as before.
12109
+ */
12110
+ onAdvancePastLastSlide?: () => void;
12111
+ playNextAnimationGroup: () => boolean;
12112
+ clearPresentationTimers: () => void;
12113
+ runPresentationEntranceAnimations: (slideIndex: number) => void;
12114
+ presentationTimersRef: {
12115
+ current: number[];
12116
+ };
12117
+ rehearsing: boolean;
12118
+ recordCurrentSlideTime: (slideIndex: number) => void;
12119
+ setShowRehearsalSummary: (value: boolean) => void;
12120
+ }
12121
+ interface UseSlideNavigationResult {
12122
+ movePresentationSlide: (direction: 1 | -1, trigger?: SlideAdvanceTrigger) => void;
12123
+ navigateToSlide: (slideIndex: number) => void;
12124
+ handlePresentationAction: (action: PptxAction) => void;
12125
+ scheduleAutoAdvanceForSlide: (slideIndex: number) => void;
12126
+ }
12127
+ declare function useSlideNavigation(input: UseSlideNavigationInput): UseSlideNavigationResult;
12128
+ //#endregion
12153
12129
  //#region src/viewer/hooks/presentation-mode/useZoomNavigation.d.ts
12154
12130
  /**
12155
12131
  * Input for the useZoomNavigation sub-hook.
@@ -12194,6 +12170,22 @@ interface UseZoomNavigationResult {
12194
12170
  * the summary zoom slide.
12195
12171
  */
12196
12172
  declare function useZoomNavigation(input: UseZoomNavigationInput): UseZoomNavigationResult;
12173
+ //#endregion
12174
+ //#region src/viewer/hooks/presentation-mode/useAudienceMode.d.ts
12175
+ interface UseAudienceModeInput {
12176
+ mode: ViewerMode;
12177
+ onSetMode: (mode: ViewerMode) => void;
12178
+ onSetActiveSlideIndex: (index: number) => void;
12179
+ containerRef: React.RefObject<HTMLElement | null>;
12180
+ onSnapshot?: (snapshot: PresentationSnapshot) => void;
12181
+ }
12182
+ /**
12183
+ * When the page was opened with the `#pptx-audience` hash, this hook:
12184
+ * 1. Auto-enters fullscreen presentation mode after content loads
12185
+ * 2. Listens on BroadcastChannel for slide-change messages from the presenter
12186
+ * 3. Exits presentation mode when the presenter sends an exit signal
12187
+ */
12188
+ declare function useAudienceMode(input: UseAudienceModeInput): void;
12197
12189
 
12198
12190
  export { MIN_TOUCH_TARGET, MOBILE_BREAKPOINT, 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 };
12199
12191
  export type { AnnotationHandlersResult, AnnotationStroke, AutosaveStatus, CanvasInteractionHandlers, CollaborationConfig, CollaborationContextValue, ConnectionStatus, ContentLifecycleResult, DerivedElementState, DerivedSlideState, DeviceOrientation, EditorHistoryInput, EditorHistoryResult, EditorOperationsResult, ElementManipulationHandlers, ElementOperations, ExportHandlersResult, ExportSaveAsResult, IOHandlersResult, InsertElementHandlers, LayoutSwitchingResult, MergeShapesHandlerInput, MergeShapesHandlers, ModalDismissDrag, ModalDismissDragHandlers, PresentationSetupResult, PresentationTool, PrintHandlersResult, PropertyHandlersResult, SectionOperations, SheetDismissDrag, SheetDismissDragHandlers, SlideManagementHandlers, TableOperationHandlers, ThemeHandlersResult, ThemeSwitchingResult, ToolbarVisibility, TouchGestureCallbacks, UseAnimationPlaybackInput, UseAnimationPlaybackResult, UseAnnotationHandlersInput, UseAutosaveInput, UseAutosaveResult, UseBroadcastFollowerInput, UseCanvasInteractionsInput, UseCollaborativeHistoryInput, UseCollaborativeHistoryResult, UseCollaborativeStateInput, UseContentLifecycleInput, UseDerivedElementStateInput, UseDerivedSlideStateInput, UseDialogCustomShowsInput, UseDialogCustomShowsResult, UseEditorOperationsInput, UseElementManipulationInput, UseElementOperationsInput, UseExportHandlersInput, UseExportSaveAsInput, UseFollowModeInput, UseFollowModeResult, UseFontInjectionInput, UseIOHandlersInput, UseInsertElementsInput, UseIsMobileInput, UseIsMobileResult, UseKeyboardInsetsResult, UseKeyboardShortcutWiringInput, UseKeyboardShortcutsInput, UseLayoutSwitchingInput, UseLoadContentInput, UseLoadContentResult, UsePointerHandlersInput, UsePresenceTrackingInput, UsePresenceTrackingResult, UsePresentationAnnotationsResult, UsePresentationSetupInput, UsePresenterWindowInput, UsePresenterWindowResult, UsePrintHandlersInput, UsePropertyHandlersInput, UseRecoveryDetectionInput, UseReducedMotionResult, UseRehearsalTimingsInput, UseRehearsalTimingsResult, UseResizablePanelsResult, UseSectionOperationsInput, UseSerializeInput, UseSlideManagementInput, UseSlideNavigationInput, UseSlideNavigationResult, UseSwipeNavigationInput, UseSwipeNavigationResult, UseTableOperationsInput, UseThemeHandlersInput, UseThemeSwitchingInput, UseTouchGesturesInput, UseViewerBuildingBlocksInput, UseViewerCoreStateInput, UseViewerDialogsInput, UseViewerIntegrationInput, UseViewerOptionsResult, UseViewerStateInput, UseYjsDocumentSyncInput, UseYjsProviderInput, UseYjsProviderResult, UseZoomNavigationInput, UseZoomNavigationResult, UserPresence, ViewerBuildingBlocksResult, ViewerCoreState, ViewerDialogsResult, ViewerIntegrationResult, ViewerState, ViewerUIState, VirtualizedRange, VirtualizedSlidesOptions, VirtualizedSlidesResult };