pptx-react-viewer 2.3.0 → 2.5.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 (152) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/{AiChatPanel-PXZYHJUB.mjs → AiChatPanel-EMF3UYCE.mjs} +4 -5
  3. package/dist/AiChatPanel-EMF3UYCE.mjs.br +0 -0
  4. package/dist/AiChatPanel-EMF3UYCE.mjs.gz +0 -0
  5. package/dist/{AiChatPanel-HC3CE3TL.js → AiChatPanel-OHSLJNYG.js} +23 -24
  6. package/dist/AiChatPanel-OHSLJNYG.js.br +0 -0
  7. package/dist/AiChatPanel-OHSLJNYG.js.gz +0 -0
  8. package/dist/{Model3DScene-37QZRHV5.js → Model3DScene-ULHIJPMU.js} +2 -3
  9. package/dist/Model3DScene-ULHIJPMU.js.br +0 -0
  10. package/dist/Model3DScene-ULHIJPMU.js.gz +0 -0
  11. package/dist/{Model3DScene-ZG4HTMPX.mjs → Model3DScene-X6QJTWHV.mjs} +1 -2
  12. package/dist/Model3DScene-X6QJTWHV.mjs.br +0 -0
  13. package/dist/Model3DScene-X6QJTWHV.mjs.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-K7Q5NYZ4.js} +2 -3
  17. package/dist/SurfaceChart3DScene-K7Q5NYZ4.js.br +0 -0
  18. package/dist/SurfaceChart3DScene-K7Q5NYZ4.js.gz +0 -0
  19. package/dist/{SurfaceChart3DScene-Z7R6DZXN.mjs → SurfaceChart3DScene-PRCKQJQQ.mjs} +1 -2
  20. package/dist/SurfaceChart3DScene-PRCKQJQQ.mjs.br +0 -0
  21. package/dist/SurfaceChart3DScene-PRCKQJQQ.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-L7JNCVTF.js → chunk-7Q7AEPO7.js} +384 -332
  28. package/dist/chunk-7Q7AEPO7.js.br +0 -0
  29. package/dist/chunk-7Q7AEPO7.js.gz +0 -0
  30. package/dist/{chunk-ZLSVW5GP.js → chunk-I4AFCPUC.js} +876 -882
  31. package/dist/chunk-I4AFCPUC.js.br +0 -0
  32. package/dist/chunk-I4AFCPUC.js.gz +0 -0
  33. package/dist/{chunk-J5A22DZ7.mjs → chunk-JSFUU2BB.mjs} +36 -42
  34. package/dist/chunk-JSFUU2BB.mjs.br +0 -0
  35. package/dist/chunk-JSFUU2BB.mjs.gz +0 -0
  36. package/dist/{chunk-I5LEMC5C.mjs → chunk-LIQGO45T.mjs} +74 -22
  37. package/dist/chunk-LIQGO45T.mjs.br +0 -0
  38. package/dist/chunk-LIQGO45T.mjs.gz +0 -0
  39. package/dist/{chunk-JFNMD6TM.mjs → chunk-LTEDT475.js} +48579 -31703
  40. package/dist/chunk-LTEDT475.js.br +0 -0
  41. package/dist/chunk-LTEDT475.js.gz +0 -0
  42. package/dist/{chunk-EUIFPDXZ.js → chunk-MJAEB43A.js} +3 -3
  43. package/dist/chunk-MJAEB43A.js.br +0 -0
  44. package/dist/chunk-MJAEB43A.js.gz +0 -0
  45. package/dist/{chunk-P7UVBRFO.js → chunk-NVH3RIN7.js} +282 -291
  46. package/dist/chunk-NVH3RIN7.js.br +0 -0
  47. package/dist/chunk-NVH3RIN7.js.gz +0 -0
  48. package/dist/{chunk-VOHTAUN4.mjs → chunk-TGVID6BB.mjs} +41 -50
  49. package/dist/chunk-TGVID6BB.mjs.br +0 -0
  50. package/dist/chunk-TGVID6BB.mjs.gz +0 -0
  51. package/dist/{chunk-3TB45PVK.js → chunk-VOV2N3NY.mjs} +48075 -32275
  52. package/dist/chunk-VOV2N3NY.mjs.br +0 -0
  53. package/dist/chunk-VOV2N3NY.mjs.gz +0 -0
  54. package/dist/{chunk-M5YR3QSB.mjs → chunk-WJKMTDXS.mjs} +1 -1
  55. package/dist/chunk-WJKMTDXS.mjs.br +0 -0
  56. package/dist/chunk-WJKMTDXS.mjs.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 +112 -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 +563 -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 +112 -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-M5YR3QSB.mjs.gz +0 -0
  132. package/dist/chunk-P7UVBRFO.js.br +0 -0
  133. package/dist/chunk-P7UVBRFO.js.gz +0 -0
  134. package/dist/chunk-PZTPX3HK.mjs.br +0 -0
  135. package/dist/chunk-PZTPX3HK.mjs.gz +0 -0
  136. package/dist/chunk-T5U6P2JH.mjs +0 -1
  137. package/dist/chunk-T5U6P2JH.mjs.br +0 -0
  138. package/dist/chunk-T5U6P2JH.mjs.gz +0 -0
  139. package/dist/chunk-VOHTAUN4.mjs.br +0 -0
  140. package/dist/chunk-VOHTAUN4.mjs.gz +0 -0
  141. package/dist/chunk-YIFO3WQO.js.br +0 -0
  142. package/dist/chunk-YIFO3WQO.js.gz +0 -0
  143. package/dist/chunk-ZLSVW5GP.js.br +0 -0
  144. package/dist/chunk-ZLSVW5GP.js.gz +0 -0
  145. package/dist/dist-FTEVZZPM.js +0 -2283
  146. package/dist/dist-FTEVZZPM.js.br +0 -0
  147. package/dist/dist-FTEVZZPM.js.gz +0 -0
  148. package/dist/dist-L7GZVBMG.mjs +0 -2
  149. package/dist/dist-L7GZVBMG.mjs.br +0 -0
  150. package/dist/dist-L7GZVBMG.mjs.gz +0 -0
  151. package/dist/index-CDCSXtK3.d.ts +0 -685
  152. package/dist/index-CDCSXtK3.d.ts.map +0 -1
@@ -536,6 +536,62 @@ interface PptxCustomPathProperties {
536
536
  customGeometryTextRect?: CustomGeometryTextRect;
537
537
  }
538
538
  //#endregion
539
+ //#region src/core/types/effect-dag.d.ts
540
+ type EffectDagBlendMode = 'darken' | 'lighten' | 'mult' | 'over' | 'screen';
541
+ type EffectDagContainerType = 'sib' | 'tree';
542
+ type EffectDagNode = EffectDagContainer | EffectDagBlend | EffectDagXfrm | EffectDagRelOff | EffectDagBlur | EffectDagAlphaOutset | EffectDagPresetShadow | EffectDagRawLeaf;
543
+ interface EffectDagContainer {
544
+ kind: 'cont';
545
+ type: EffectDagContainerType;
546
+ name?: string;
547
+ children: EffectDagNode[];
548
+ }
549
+ interface EffectDagBlend {
550
+ kind: 'blend';
551
+ mode: EffectDagBlendMode;
552
+ container: EffectDagContainer;
553
+ }
554
+ interface EffectDagXfrm {
555
+ kind: 'xfrmEffect';
556
+ sx?: number;
557
+ sy?: number;
558
+ kx?: number;
559
+ ky?: number;
560
+ tx?: number;
561
+ ty?: number;
562
+ }
563
+ interface EffectDagRelOff {
564
+ kind: 'relOff';
565
+ tx?: number;
566
+ ty?: number;
567
+ }
568
+ /** Typed CT_BlurEffect with its original payload retained for lossless edits. */
569
+ interface EffectDagBlur {
570
+ kind: 'blur';
571
+ radiusEmu?: number;
572
+ grow?: boolean;
573
+ xml: XmlObject;
574
+ }
575
+ /** Typed CT_AlphaOutsetEffect with original XML retained for lossless edits. */
576
+ interface EffectDagAlphaOutset {
577
+ kind: 'alphaOutset';
578
+ radiusEmu?: number;
579
+ xml: XmlObject;
580
+ }
581
+ /** Typed CT_PresetShadowEffect with colour and extension XML retained verbatim. */
582
+ interface EffectDagPresetShadow {
583
+ kind: 'prstShdw';
584
+ preset?: `shdw${number}`;
585
+ distanceEmu?: number;
586
+ direction?: number;
587
+ xml: XmlObject;
588
+ }
589
+ interface EffectDagRawLeaf {
590
+ kind: 'raw';
591
+ tag: string;
592
+ xml: Record<string, unknown>;
593
+ }
594
+ //#endregion
539
595
  //#region src/core/types/three-d.d.ts
540
596
  /**
541
597
  * 3-D effect properties, text warp (WordArt) presets, and scene/shape bevel
@@ -766,6 +822,18 @@ interface ShapeStyle {
766
822
  /** Original `gradFill` XML retained for unknown-child and extension round-tripping. */
767
823
  fillGradientXml?: XmlObject;
768
824
  fillMode?: 'solid' | 'gradient' | 'pattern' | 'none' | 'image' | 'theme' | 'group';
825
+ /**
826
+ * `<p:sp useBgFill="1">`: the shape paints with the SLIDE BACKGROUND's fill
827
+ * rather than its own or its theme style's.
828
+ *
829
+ * PowerPoint's designer emits full-bleed rectangles this way, and they also
830
+ * carry an `a:fillRef` pointing at `accent1`. Ignoring the attribute painted
831
+ * those panels in the accent colour, so a black-and-white title slide came out
832
+ * black-and-blue. The load pipeline copies the resolved slide background onto
833
+ * the fill fields; the flag stays for round-trip and for renderers that want
834
+ * to re-resolve against a changed background.
835
+ */
836
+ useBackgroundFill?: boolean;
769
837
  fillPatternPreset?: string;
770
838
  fillPatternBackgroundColor?: string;
771
839
  /** Original `pattFill` XML retained for unknown-child round-tripping. */
@@ -998,6 +1066,15 @@ interface ShapeStyle {
998
1066
  lineGlowOpacity?: number;
999
1067
  /** Raw `a:effectDag` XML node preserved for round-trip serialisation. */
1000
1068
  effectDagXml?: XmlObject;
1069
+ /**
1070
+ * Typed effect graph parsed from {@link ShapeStyle.effectDagXml}. The four
1071
+ * structural container nodes (`a:cont`, `a:blend`, `a:xfrmEffect`,
1072
+ * `a:relOff`) are fully typed; any other leaf effect (e.g. `a:outerShdw`,
1073
+ * `a:glow`, `a:alphaInv`) is captured as
1074
+ * {@link import('./effect-dag').EffectDagRawLeaf} so we never have to
1075
+ * recurse into the full effect taxonomy.
1076
+ */
1077
+ effectDagTree?: EffectDagContainer;
1001
1078
  /** Grayscale flag from effectDag `a:grayscl`. */
1002
1079
  dagGrayscale?: boolean;
1003
1080
  /** Bi-level threshold (0-100) from effectDag `a:biLevel`. */
@@ -1432,6 +1509,20 @@ interface TextStyle {
1432
1509
  textPresetShadowDirection?: number;
1433
1510
  /** Text blur effect radius in px (`a:blur`). */
1434
1511
  textBlurRadius?: number;
1512
+ /**
1513
+ * Raw `a:effectDag` XML node from `a:rPr`, preserved verbatim for
1514
+ * round-trip serialisation. Mirrors the shape-level
1515
+ * {@link import('./shape-style').ShapeStyle.effectDagXml} field.
1516
+ */
1517
+ textEffectDagXml?: XmlObject;
1518
+ /**
1519
+ * Typed effect graph parsed from `textEffectDagXml`. The four structural
1520
+ * container nodes (`a:cont`, `a:blend`, `a:xfrmEffect`, `a:relOff`) are
1521
+ * fully typed; any other leaf effect is captured as
1522
+ * {@link import('./effect-dag').EffectDagRawLeaf} so we never have to
1523
+ * recurse into the full effect taxonomy.
1524
+ */
1525
+ textEffectDagTree?: EffectDagContainer;
1435
1526
  /** Text alpha modulation fixed (0-100) from `a:alphaModFix`. */
1436
1527
  textAlphaModFix?: number;
1437
1528
  /** Text alpha modulation from `a:alphaMod` (0-100 percentage). */
@@ -2822,62 +2913,6 @@ interface PptxChartData {
2822
2913
  clrMapOvr?: Record<string, string>;
2823
2914
  }
2824
2915
  //#endregion
2825
- //#region src/core/types/effect-dag.d.ts
2826
- type EffectDagBlendMode = 'darken' | 'lighten' | 'mult' | 'over' | 'screen';
2827
- type EffectDagContainerType = 'sib' | 'tree';
2828
- type EffectDagNode = EffectDagContainer | EffectDagBlend | EffectDagXfrm | EffectDagRelOff | EffectDagBlur | EffectDagAlphaOutset | EffectDagPresetShadow | EffectDagRawLeaf;
2829
- interface EffectDagContainer {
2830
- kind: 'cont';
2831
- type: EffectDagContainerType;
2832
- name?: string;
2833
- children: EffectDagNode[];
2834
- }
2835
- interface EffectDagBlend {
2836
- kind: 'blend';
2837
- mode: EffectDagBlendMode;
2838
- container: EffectDagContainer;
2839
- }
2840
- interface EffectDagXfrm {
2841
- kind: 'xfrmEffect';
2842
- sx?: number;
2843
- sy?: number;
2844
- kx?: number;
2845
- ky?: number;
2846
- tx?: number;
2847
- ty?: number;
2848
- }
2849
- interface EffectDagRelOff {
2850
- kind: 'relOff';
2851
- tx?: number;
2852
- ty?: number;
2853
- }
2854
- /** Typed CT_BlurEffect with its original payload retained for lossless edits. */
2855
- interface EffectDagBlur {
2856
- kind: 'blur';
2857
- radiusEmu?: number;
2858
- grow?: boolean;
2859
- xml: XmlObject;
2860
- }
2861
- /** Typed CT_AlphaOutsetEffect with original XML retained for lossless edits. */
2862
- interface EffectDagAlphaOutset {
2863
- kind: 'alphaOutset';
2864
- radiusEmu?: number;
2865
- xml: XmlObject;
2866
- }
2867
- /** Typed CT_PresetShadowEffect with colour and extension XML retained verbatim. */
2868
- interface EffectDagPresetShadow {
2869
- kind: 'prstShdw';
2870
- preset?: `shdw${number}`;
2871
- distanceEmu?: number;
2872
- direction?: number;
2873
- xml: XmlObject;
2874
- }
2875
- interface EffectDagRawLeaf {
2876
- kind: 'raw';
2877
- tag: string;
2878
- xml: Record<string, unknown>;
2879
- }
2880
- //#endregion
2881
2916
  //#region src/core/types/image.d.ts
2882
2917
  /**
2883
2918
  * Image recolour/adjustment properties parsed from blip extensions.
@@ -3080,36 +3115,6 @@ interface PptxImageProperties {
3080
3115
  /** Crop-to-shape — CSS clip-path shape name. */
3081
3116
  cropShape?: PptxCropShape;
3082
3117
  }
3083
- declare module "./index" {
3084
- interface TextStyle {
3085
- /**
3086
- * Raw `a:effectDag` XML node from `a:rPr`, preserved verbatim for
3087
- * round-trip serialisation. Mirrors the shape-level
3088
- * {@link import('./shape-style').ShapeStyle.effectDagXml} field.
3089
- */
3090
- textEffectDagXml?: XmlObject;
3091
- /**
3092
- * Typed effect graph parsed from `textEffectDagXml`. The four structural
3093
- * container nodes (`a:cont`, `a:blend`, `a:xfrmEffect`, `a:relOff`) are
3094
- * fully typed; any other leaf effect is captured as
3095
- * {@link EffectDagRawLeaf} so we never have to recurse into the full
3096
- * effect taxonomy.
3097
- */
3098
- textEffectDagTree?: EffectDagContainer;
3099
- }
3100
- }
3101
- declare module "./index" {
3102
- interface ShapeStyle {
3103
- /**
3104
- * Typed effect graph parsed from {@link ShapeStyle.effectDagXml}. The four
3105
- * structural container nodes (`a:cont`, `a:blend`, `a:xfrmEffect`,
3106
- * `a:relOff`) are fully typed; any other leaf effect (e.g. `a:outerShdw`,
3107
- * `a:glow`, `a:alphaInv`) is captured as {@link EffectDagRawLeaf} so we
3108
- * never have to recurse into the full effect taxonomy.
3109
- */
3110
- effectDagTree?: EffectDagContainer;
3111
- }
3112
- }
3113
3118
  //#endregion
3114
3119
  //#region src/core/types/media.d.ts
3115
3120
  /**
@@ -5166,6 +5171,27 @@ interface PptxNativeAnimation {
5166
5171
  soundPath?: string;
5167
5172
  /** Whether to stop any currently playing sound (`p:endSnd`). */
5168
5173
  stopSound?: boolean;
5174
+ /**
5175
+ * Whether the enclosing click-level group (a direct `p:par` child of the
5176
+ * `mainSeq`) begins automatically when the slide appears, rather than waiting
5177
+ * for a click.
5178
+ *
5179
+ * PowerPoint gates a click step with a lone `<p:cond delay="indefinite"/>`;
5180
+ * a group that also carries a time-node condition (`onBegin`/`onEnd` with a
5181
+ * `@tn`) or a finite delay starts on slide entry ("With/After Previous" as the
5182
+ * first effect on the slide). The flat animation list cannot express that on
5183
+ * its own, so the parse layer stamps it here.
5184
+ */
5185
+ groupAutoStart?: boolean;
5186
+ /**
5187
+ * Index of the enclosing effect-wrapper `p:par` inside the click-level group.
5188
+ *
5189
+ * Effects that share a wrapper are OOXML siblings: they all start when that
5190
+ * wrapper starts, and each `p:cond/@delay` is measured from the wrapper's
5191
+ * start, NOT chained off the effect before it. Playback uses this to place
5192
+ * simultaneous effects at their true offsets instead of accumulating delays.
5193
+ */
5194
+ parGroupIndex?: number;
5169
5195
  /** Structured start conditions parsed from `p:stCondLst`. */
5170
5196
  startConditions?: AnimationCondition[];
5171
5197
  /** Structured end conditions parsed from `p:endCondLst`. */
@@ -6829,7 +6855,6 @@ interface PptxEmbeddedFont {
6829
6855
  originalPartBytes?: Uint8Array;
6830
6856
  }
6831
6857
 
6832
- //#endregion
6833
6858
  //#region src/core/types/theme-presets.d.ts
6834
6859
  /**
6835
6860
  * A complete theme preset that can be applied to a presentation.
@@ -9278,7 +9303,6 @@ declare function getAnimationInitialStyle(preset: PptxAnimationPreset | undefine
9278
9303
  */
9279
9304
  declare const PowerPointViewer: React.ForwardRefExoticComponent<PowerPointViewerProps & React.RefAttributes<PowerPointViewerHandle>>;
9280
9305
 
9281
- //#endregion
9282
9306
  //#region src/viewer/hooks/useThemeSwitching.d.ts
9283
9307
  interface UseThemeSwitchingInput {
9284
9308
  /** Ref to the PptxHandler instance. */
@@ -1,78 +1,76 @@
1
1
  'use strict';
2
2
 
3
- var chunkZLSVW5GP_js = require('../chunk-ZLSVW5GP.js');
4
- require('../chunk-EUIFPDXZ.js');
5
- require('../chunk-IKBO6CZC.js');
6
- var chunkL7JNCVTF_js = require('../chunk-L7JNCVTF.js');
7
- var chunkP7UVBRFO_js = require('../chunk-P7UVBRFO.js');
8
- var chunkKDW3LLG5_js = require('../chunk-KDW3LLG5.js');
9
- require('../chunk-YIFO3WQO.js');
10
- require('../chunk-3TB45PVK.js');
3
+ var chunkI4AFCPUC_js = require('../chunk-I4AFCPUC.js');
4
+ require('../chunk-MJAEB43A.js');
5
+ var chunk7Q7AEPO7_js = require('../chunk-7Q7AEPO7.js');
6
+ var chunkNVH3RIN7_js = require('../chunk-NVH3RIN7.js');
7
+ require('../chunk-25VSL2BB.js');
8
+ var chunkLTEDT475_js = require('../chunk-LTEDT475.js');
11
9
  require('../chunk-4VNS5WPM.js');
12
10
 
13
11
 
14
12
 
15
13
  Object.defineProperty(exports, "CollaborationProvider", {
16
14
  enumerable: true,
17
- get: function () { return chunkZLSVW5GP_js.CollaborationProvider; }
15
+ get: function () { return chunkI4AFCPUC_js.CollaborationProvider; }
18
16
  });
19
17
  Object.defineProperty(exports, "CollaborationStatusIndicator", {
20
18
  enumerable: true,
21
- get: function () { return chunkZLSVW5GP_js.CollaborationStatusIndicator; }
19
+ get: function () { return chunkI4AFCPUC_js.CollaborationStatusIndicator; }
22
20
  });
23
21
  Object.defineProperty(exports, "PowerPointViewer", {
24
22
  enumerable: true,
25
- get: function () { return chunkZLSVW5GP_js.PowerPointViewer; }
23
+ get: function () { return chunkI4AFCPUC_js.PowerPointViewer; }
26
24
  });
27
25
  Object.defineProperty(exports, "RemoteUserCursors", {
28
26
  enumerable: true,
29
- get: function () { return chunkZLSVW5GP_js.RemoteUserCursors; }
27
+ get: function () { return chunkI4AFCPUC_js.RemoteUserCursors; }
30
28
  });
31
29
  Object.defineProperty(exports, "UserAvatarBar", {
32
30
  enumerable: true,
33
- get: function () { return chunkZLSVW5GP_js.UserAvatarBar; }
31
+ get: function () { return chunkI4AFCPUC_js.UserAvatarBar; }
34
32
  });
35
33
  Object.defineProperty(exports, "isAudienceTab", {
36
34
  enumerable: true,
37
- get: function () { return chunkL7JNCVTF_js.isAudienceTab; }
35
+ get: function () { return chunk7Q7AEPO7_js.isAudienceTab; }
38
36
  });
39
37
  Object.defineProperty(exports, "parseAudienceNonce", {
40
38
  enumerable: true,
41
- get: function () { return chunkL7JNCVTF_js.parseAudienceNonce; }
39
+ get: function () { return chunk7Q7AEPO7_js.parseAudienceNonce; }
42
40
  });
43
41
  Object.defineProperty(exports, "useCollaborativeHistory", {
44
42
  enumerable: true,
45
- get: function () { return chunkL7JNCVTF_js.useCollaborativeHistory; }
43
+ get: function () { return chunk7Q7AEPO7_js.useCollaborativeHistory; }
46
44
  });
47
45
  Object.defineProperty(exports, "useCollaborativeState", {
48
46
  enumerable: true,
49
- get: function () { return chunkL7JNCVTF_js.useCollaborativeState; }
47
+ get: function () { return chunk7Q7AEPO7_js.useCollaborativeState; }
50
48
  });
51
49
  Object.defineProperty(exports, "usePresenceTracking", {
52
50
  enumerable: true,
53
- get: function () { return chunkL7JNCVTF_js.usePresenceTracking; }
51
+ get: function () { return chunk7Q7AEPO7_js.usePresenceTracking; }
54
52
  });
55
53
  Object.defineProperty(exports, "useThemeSwitching", {
56
54
  enumerable: true,
57
- get: function () { return chunkL7JNCVTF_js.useThemeSwitching; }
55
+ get: function () { return chunk7Q7AEPO7_js.useThemeSwitching; }
58
56
  });
59
57
  Object.defineProperty(exports, "useYjsProvider", {
60
58
  enumerable: true,
61
- get: function () { return chunkL7JNCVTF_js.useYjsProvider; }
59
+ get: function () { return chunk7Q7AEPO7_js.useYjsProvider; }
62
60
  });
63
61
  Object.defineProperty(exports, "getAnimationInitialStyle", {
64
62
  enumerable: true,
65
- get: function () { return chunkP7UVBRFO_js.getAnimationInitialStyle; }
63
+ get: function () { return chunkNVH3RIN7_js.getAnimationInitialStyle; }
66
64
  });
67
65
  Object.defineProperty(exports, "clearAudienceContent", {
68
66
  enumerable: true,
69
- get: function () { return chunkKDW3LLG5_js.clearAudienceContent; }
67
+ get: function () { return chunkLTEDT475_js.clearAudienceContent; }
70
68
  });
71
69
  Object.defineProperty(exports, "loadAudienceContent", {
72
70
  enumerable: true,
73
- get: function () { return chunkKDW3LLG5_js.loadAudienceContent; }
71
+ get: function () { return chunkLTEDT475_js.loadAudienceContent; }
74
72
  });
75
73
  Object.defineProperty(exports, "storeAudienceContent", {
76
74
  enumerable: true,
77
- get: function () { return chunkKDW3LLG5_js.storeAudienceContent; }
75
+ get: function () { return chunkLTEDT475_js.storeAudienceContent; }
78
76
  });
Binary file
Binary file
@@ -1,9 +1,7 @@
1
- export { CollaborationProvider, CollaborationStatusIndicator, PowerPointViewer, RemoteUserCursors, UserAvatarBar } from '../chunk-J5A22DZ7.mjs';
2
- import '../chunk-M5YR3QSB.mjs';
3
- import '../chunk-T5U6P2JH.mjs';
4
- export { isAudienceTab, parseAudienceNonce, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-I5LEMC5C.mjs';
5
- export { getAnimationInitialStyle } from '../chunk-VOHTAUN4.mjs';
6
- export { clearAudienceContent, loadAudienceContent, storeAudienceContent } from '../chunk-4AAFZFGH.mjs';
7
- import '../chunk-PZTPX3HK.mjs';
8
- import '../chunk-JFNMD6TM.mjs';
1
+ export { CollaborationProvider, CollaborationStatusIndicator, PowerPointViewer, RemoteUserCursors, UserAvatarBar } from '../chunk-JSFUU2BB.mjs';
2
+ import '../chunk-WJKMTDXS.mjs';
3
+ export { isAudienceTab, parseAudienceNonce, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-LIQGO45T.mjs';
4
+ export { getAnimationInitialStyle } from '../chunk-TGVID6BB.mjs';
5
+ import '../chunk-Z6HIZWIQ.mjs';
6
+ export { clearAudienceContent, loadAudienceContent, storeAudienceContent } from '../chunk-VOV2N3NY.mjs';
9
7
  import '../chunk-XGB3TDIC.mjs';
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-react-viewer",
3
- "version": "2.3.0",
3
+ "version": "2.5.0",
4
4
  "description": "React PowerPoint viewer and editor component: render, edit, and export PPTX slides in the browser.",
5
5
  "keywords": [
6
6
  "editor",
@@ -82,13 +82,13 @@
82
82
  "tailwind-merge": "^3.6.0"
83
83
  },
84
84
  "devDependencies": {
85
- "@ai-sdk/react": "^4.0.34",
85
+ "@ai-sdk/react": "^4.0.40",
86
86
  "@tailwindcss/cli": "^4.3.3",
87
87
  "@types/dompurify": "^3.2.0",
88
88
  "@types/react": "^19.2.17",
89
89
  "@types/react-dom": "^19.2.3",
90
90
  "tailwindcss": "^4.3.3",
91
- "tsdown": "^0.22.12",
91
+ "tsdown": "^0.22.14",
92
92
  "tsup": "^8.5.1",
93
93
  "typescript": "^7.0.2",
94
94
  "vitest": "^4.1.10",
@@ -97,7 +97,7 @@
97
97
  "yjs": "^13.6.31"
98
98
  },
99
99
  "peerDependencies": {
100
- "@ai-sdk/react": "^4.0.34",
100
+ "@ai-sdk/react": "^4.0.40",
101
101
  "ai": ">=6 <8",
102
102
  "fast-xml-parser": "^5.10.1",
103
103
  "framer-motion": "^12.42.2",
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1 +0,0 @@
1
- {"version":3,"file":"animation-timeline-eb5z0SHW.d.ts","names":[],"sources":["../src/viewer/types-core.ts","../src/theme/context.tsx","../../shared/dist/ai/index.d.ts","../src/viewer/hooks/collaboration/types.ts","../src/viewer/types-ui.ts"],"mappings":";;;;;;;;;;;;;KA+BY;;;;;KAqCA;;UAgBK;;EAEhB;;EAEA;;;;;;;;UAagB;;EAEhB;;EAEA;;EAEA;;EAEA,oBAAoB;IAAiB;IAAW;;;EAEhD,QAAQ,YAAY;;EAEpB;;EAEA;EACA;;;KAIW;;;;;;UAOK;;EAEhB;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,QAAQ;;EAER;;EAEA,OAAO;;EAEP;EACA;EACA;EACA;;;;;;;UAQgB;EAChB;EACA;EACA;EACA;EACA;;;;;;;UAQgB;EAChB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;;;;;UAoBgB;EAChB;EACA;EACA;EACA,QAAQ;EACR,2BAA2B,eAAe;EAC1C;;;UAQgB;EAChB;EACA;EACA;EACA;;;;;;;UAQgB;EAChB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;UAQgB;EAChB;EACA,OAAO,QAAQ;;;;UCxOC;EAChB,QAAQ;EACR,UAAU,MAAM;;;;;;;;;;iBAWD,sBAAsB,OAAO,YAAY,2CAAwB,IAAA;;;;;iBAYjE,kBAAkB;;;;;;UCSxB;;EAER;;EAEA;;EAEA;;EAEA;;EAEA;;;;;KA8CG,kBAAkB;;;;;;;KAOlB;KACA,WAAW,KAAK,WAAW,IAAI,QAAQ;;KAEvC;;;;;;EAMH;EACA;EACA,UAAU,WAAW;EACrB,OAAO,WAAW;EAClB,cAAc;EACd,eAAe,WAAW;;;;;;;EAO1B;EACA,OAAO;EACP;EACA;;;;EAIA;EACA,WAAW,cAAc;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