pptx-react-viewer 2.2.1 → 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 (152) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{AiChatPanel-O4NYWO3D.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-XRKEPXAM.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-JN5F5C4Z.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-HYE6HA2C.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-FDJ6LC4E.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-V7P3LQVV.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-XJTWUXXC.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-2U243ZEP.js → chunk-5TPQJWEO.js} +267 -252
  31. package/dist/chunk-5TPQJWEO.js.br +0 -0
  32. package/dist/chunk-5TPQJWEO.js.gz +0 -0
  33. package/dist/{chunk-O75FHZQJ.mjs → chunk-G6Q3NXRV.mjs} +23 -8
  34. package/dist/chunk-G6Q3NXRV.mjs.br +0 -0
  35. package/dist/chunk-G6Q3NXRV.mjs.gz +0 -0
  36. package/dist/{chunk-RYHBWTPI.mjs → chunk-KK7FWBGO.mjs} +89 -69
  37. package/dist/chunk-KK7FWBGO.mjs.br +0 -0
  38. package/dist/chunk-KK7FWBGO.mjs.gz +0 -0
  39. package/dist/{chunk-7NSLKNCT.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-I2HF7ZPO.mjs → chunk-Q6FC2552.mjs} +1 -1
  43. package/dist/chunk-Q6FC2552.mjs.br +0 -0
  44. package/dist/chunk-Q6FC2552.mjs.gz +0 -0
  45. package/dist/{chunk-R2H3FHK6.js → chunk-QBZA2GMB.mjs} +47788 -32364
  46. package/dist/chunk-QBZA2GMB.mjs.br +0 -0
  47. package/dist/chunk-QBZA2GMB.mjs.gz +0 -0
  48. package/dist/{chunk-K2AW5UXT.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-PE2I5L6R.mjs → chunk-WK56SFN7.js} +48287 -31794
  52. package/dist/chunk-WK56SFN7.js.br +0 -0
  53. package/dist/chunk-WK56SFN7.js.gz +0 -0
  54. package/dist/{chunk-QULJW7LU.js → chunk-XSBFV6TL.js} +929 -909
  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 +92 -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 +519 -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 +92 -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-O4NYWO3D.js.br +0 -0
  97. package/dist/AiChatPanel-O4NYWO3D.js.gz +0 -0
  98. package/dist/AiChatPanel-XRKEPXAM.mjs.br +0 -0
  99. package/dist/AiChatPanel-XRKEPXAM.mjs.gz +0 -0
  100. package/dist/Model3DScene-HYE6HA2C.js.br +0 -0
  101. package/dist/Model3DScene-HYE6HA2C.js.gz +0 -0
  102. package/dist/Model3DScene-JN5F5C4Z.mjs.br +0 -0
  103. package/dist/Model3DScene-JN5F5C4Z.mjs.gz +0 -0
  104. package/dist/SurfaceChart3DScene-FDJ6LC4E.js.br +0 -0
  105. package/dist/SurfaceChart3DScene-FDJ6LC4E.js.gz +0 -0
  106. package/dist/SurfaceChart3DScene-V7P3LQVV.mjs.br +0 -0
  107. package/dist/SurfaceChart3DScene-V7P3LQVV.mjs.gz +0 -0
  108. package/dist/animation-timeline-eb5z0SHW.d.ts.map +0 -1
  109. package/dist/chunk-2QHCOESN.js +0 -28037
  110. package/dist/chunk-2QHCOESN.js.br +0 -0
  111. package/dist/chunk-2QHCOESN.js.gz +0 -0
  112. package/dist/chunk-2U243ZEP.js.br +0 -0
  113. package/dist/chunk-2U243ZEP.js.gz +0 -0
  114. package/dist/chunk-6G6S7PEI.mjs +0 -27604
  115. package/dist/chunk-6G6S7PEI.mjs.br +0 -0
  116. package/dist/chunk-6G6S7PEI.mjs.gz +0 -0
  117. package/dist/chunk-7NSLKNCT.mjs.br +0 -0
  118. package/dist/chunk-7NSLKNCT.mjs.gz +0 -0
  119. package/dist/chunk-I2HF7ZPO.mjs.br +0 -0
  120. package/dist/chunk-I2HF7ZPO.mjs.gz +0 -0
  121. package/dist/chunk-IKBO6CZC.js +0 -2
  122. package/dist/chunk-IKBO6CZC.js.br +0 -3
  123. package/dist/chunk-IKBO6CZC.js.gz +0 -0
  124. package/dist/chunk-K2AW5UXT.js.br +0 -0
  125. package/dist/chunk-K2AW5UXT.js.gz +0 -0
  126. package/dist/chunk-O75FHZQJ.mjs.br +0 -0
  127. package/dist/chunk-O75FHZQJ.mjs.gz +0 -0
  128. package/dist/chunk-PE2I5L6R.mjs.br +0 -0
  129. package/dist/chunk-PE2I5L6R.mjs.gz +0 -0
  130. package/dist/chunk-PZTPX3HK.mjs.br +0 -0
  131. package/dist/chunk-PZTPX3HK.mjs.gz +0 -0
  132. package/dist/chunk-QULJW7LU.js.br +0 -0
  133. package/dist/chunk-QULJW7LU.js.gz +0 -0
  134. package/dist/chunk-R2H3FHK6.js.br +0 -0
  135. package/dist/chunk-R2H3FHK6.js.gz +0 -0
  136. package/dist/chunk-RYHBWTPI.mjs.br +0 -0
  137. package/dist/chunk-RYHBWTPI.mjs.gz +0 -0
  138. package/dist/chunk-T5U6P2JH.mjs +0 -1
  139. package/dist/chunk-T5U6P2JH.mjs.br +0 -0
  140. package/dist/chunk-T5U6P2JH.mjs.gz +0 -0
  141. package/dist/chunk-XJTWUXXC.js.br +0 -0
  142. package/dist/chunk-XJTWUXXC.js.gz +0 -0
  143. package/dist/chunk-YIFO3WQO.js.br +0 -0
  144. package/dist/chunk-YIFO3WQO.js.gz +0 -0
  145. package/dist/dist-VEWYRBTB.mjs +0 -2
  146. package/dist/dist-VEWYRBTB.mjs.br +0 -0
  147. package/dist/dist-VEWYRBTB.mjs.gz +0 -0
  148. package/dist/dist-ZCJLIRYG.js +0 -2275
  149. package/dist/dist-ZCJLIRYG.js.br +0 -0
  150. package/dist/dist-ZCJLIRYG.js.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
@@ -998,6 +1054,15 @@ interface ShapeStyle {
998
1054
  lineGlowOpacity?: number;
999
1055
  /** Raw `a:effectDag` XML node preserved for round-trip serialisation. */
1000
1056
  effectDagXml?: XmlObject;
1057
+ /**
1058
+ * Typed effect graph parsed from {@link ShapeStyle.effectDagXml}. The four
1059
+ * structural container nodes (`a:cont`, `a:blend`, `a:xfrmEffect`,
1060
+ * `a:relOff`) are fully typed; any other leaf effect (e.g. `a:outerShdw`,
1061
+ * `a:glow`, `a:alphaInv`) is captured as
1062
+ * {@link import('./effect-dag').EffectDagRawLeaf} so we never have to
1063
+ * recurse into the full effect taxonomy.
1064
+ */
1065
+ effectDagTree?: EffectDagContainer;
1001
1066
  /** Grayscale flag from effectDag `a:grayscl`. */
1002
1067
  dagGrayscale?: boolean;
1003
1068
  /** Bi-level threshold (0-100) from effectDag `a:biLevel`. */
@@ -1432,6 +1497,20 @@ interface TextStyle {
1432
1497
  textPresetShadowDirection?: number;
1433
1498
  /** Text blur effect radius in px (`a:blur`). */
1434
1499
  textBlurRadius?: number;
1500
+ /**
1501
+ * Raw `a:effectDag` XML node from `a:rPr`, preserved verbatim for
1502
+ * round-trip serialisation. Mirrors the shape-level
1503
+ * {@link import('./shape-style').ShapeStyle.effectDagXml} field.
1504
+ */
1505
+ textEffectDagXml?: XmlObject;
1506
+ /**
1507
+ * Typed effect graph parsed from `textEffectDagXml`. The four structural
1508
+ * container nodes (`a:cont`, `a:blend`, `a:xfrmEffect`, `a:relOff`) are
1509
+ * fully typed; any other leaf effect is captured as
1510
+ * {@link import('./effect-dag').EffectDagRawLeaf} so we never have to
1511
+ * recurse into the full effect taxonomy.
1512
+ */
1513
+ textEffectDagTree?: EffectDagContainer;
1435
1514
  /** Text alpha modulation fixed (0-100) from `a:alphaModFix`. */
1436
1515
  textAlphaModFix?: number;
1437
1516
  /** Text alpha modulation from `a:alphaMod` (0-100 percentage). */
@@ -2822,62 +2901,6 @@ interface PptxChartData {
2822
2901
  clrMapOvr?: Record<string, string>;
2823
2902
  }
2824
2903
  //#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
2904
  //#region src/core/types/image.d.ts
2882
2905
  /**
2883
2906
  * Image recolour/adjustment properties parsed from blip extensions.
@@ -3080,36 +3103,6 @@ interface PptxImageProperties {
3080
3103
  /** Crop-to-shape — CSS clip-path shape name. */
3081
3104
  cropShape?: PptxCropShape;
3082
3105
  }
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
3106
  //#endregion
3114
3107
  //#region src/core/types/media.d.ts
3115
3108
  /**
@@ -6829,7 +6822,6 @@ interface PptxEmbeddedFont {
6829
6822
  originalPartBytes?: Uint8Array;
6830
6823
  }
6831
6824
 
6832
- //#endregion
6833
6825
  //#region src/core/types/theme-presets.d.ts
6834
6826
  /**
6835
6827
  * A complete theme preset that can be applied to a presentation.
@@ -6868,6 +6860,13 @@ type FillInput = {
6868
6860
  opacity?: number;
6869
6861
  } | {
6870
6862
  type: 'gradient';
6863
+ /**
6864
+ * Gradient direction in the OOXML `a:lin/@ang` convention: degrees
6865
+ * clockwise from the positive x-axis, pointing from the first stop
6866
+ * towards the last (`0` = left to right, `90` = top to bottom). This is
6867
+ * what lands in `ShapeStyle.fillGradientAngle` and what is written back
6868
+ * to the file, NOT a CSS `linear-gradient()` angle.
6869
+ */
6871
6870
  angle?: number;
6872
6871
  gradientType?: 'linear' | 'radial';
6873
6872
  stops: Array<{
@@ -7025,6 +7024,12 @@ type BackgroundInput = {
7025
7024
  color: string;
7026
7025
  } | {
7027
7026
  type: 'gradient';
7027
+ /**
7028
+ * Slide backgrounds are stored as a ready-made CSS gradient string
7029
+ * (`PptxSlide.backgroundGradient`), so this is a CSS
7030
+ * `linear-gradient()` angle: degrees clockwise from "to top"
7031
+ * (`90` = left to right, `180` = top to bottom). Defaults to `180`.
7032
+ */
7028
7033
  angle?: number;
7029
7034
  stops: Array<{
7030
7035
  color: string;
@@ -9265,7 +9270,6 @@ declare function getAnimationInitialStyle(preset: PptxAnimationPreset | undefine
9265
9270
  */
9266
9271
  declare const PowerPointViewer: React.ForwardRefExoticComponent<PowerPointViewerProps & React.RefAttributes<PowerPointViewerHandle>>;
9267
9272
 
9268
- //#endregion
9269
9273
  //#region src/viewer/hooks/useThemeSwitching.d.ts
9270
9274
  interface UseThemeSwitchingInput {
9271
9275
  /** Ref to the PptxHandler instance. */
@@ -1,78 +1,76 @@
1
1
  'use strict';
2
2
 
3
- var chunkQULJW7LU_js = require('../chunk-QULJW7LU.js');
4
- require('../chunk-XJTWUXXC.js');
5
- require('../chunk-IKBO6CZC.js');
6
- var chunkK2AW5UXT_js = require('../chunk-K2AW5UXT.js');
7
- var chunk2U243ZEP_js = require('../chunk-2U243ZEP.js');
8
- var chunk2QHCOESN_js = require('../chunk-2QHCOESN.js');
9
- require('../chunk-YIFO3WQO.js');
10
- require('../chunk-R2H3FHK6.js');
3
+ var chunkXSBFV6TL_js = require('../chunk-XSBFV6TL.js');
4
+ require('../chunk-5GHLRHBR.js');
5
+ var chunkVEZO33T2_js = require('../chunk-VEZO33T2.js');
6
+ var chunk5TPQJWEO_js = require('../chunk-5TPQJWEO.js');
7
+ require('../chunk-25VSL2BB.js');
8
+ var chunkWK56SFN7_js = require('../chunk-WK56SFN7.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 chunkQULJW7LU_js.CollaborationProvider; }
15
+ get: function () { return chunkXSBFV6TL_js.CollaborationProvider; }
18
16
  });
19
17
  Object.defineProperty(exports, "CollaborationStatusIndicator", {
20
18
  enumerable: true,
21
- get: function () { return chunkQULJW7LU_js.CollaborationStatusIndicator; }
19
+ get: function () { return chunkXSBFV6TL_js.CollaborationStatusIndicator; }
22
20
  });
23
21
  Object.defineProperty(exports, "PowerPointViewer", {
24
22
  enumerable: true,
25
- get: function () { return chunkQULJW7LU_js.PowerPointViewer; }
23
+ get: function () { return chunkXSBFV6TL_js.PowerPointViewer; }
26
24
  });
27
25
  Object.defineProperty(exports, "RemoteUserCursors", {
28
26
  enumerable: true,
29
- get: function () { return chunkQULJW7LU_js.RemoteUserCursors; }
27
+ get: function () { return chunkXSBFV6TL_js.RemoteUserCursors; }
30
28
  });
31
29
  Object.defineProperty(exports, "UserAvatarBar", {
32
30
  enumerable: true,
33
- get: function () { return chunkQULJW7LU_js.UserAvatarBar; }
31
+ get: function () { return chunkXSBFV6TL_js.UserAvatarBar; }
34
32
  });
35
33
  Object.defineProperty(exports, "isAudienceTab", {
36
34
  enumerable: true,
37
- get: function () { return chunkK2AW5UXT_js.isAudienceTab; }
35
+ get: function () { return chunkVEZO33T2_js.isAudienceTab; }
38
36
  });
39
37
  Object.defineProperty(exports, "parseAudienceNonce", {
40
38
  enumerable: true,
41
- get: function () { return chunkK2AW5UXT_js.parseAudienceNonce; }
39
+ get: function () { return chunkVEZO33T2_js.parseAudienceNonce; }
42
40
  });
43
41
  Object.defineProperty(exports, "useCollaborativeHistory", {
44
42
  enumerable: true,
45
- get: function () { return chunkK2AW5UXT_js.useCollaborativeHistory; }
43
+ get: function () { return chunkVEZO33T2_js.useCollaborativeHistory; }
46
44
  });
47
45
  Object.defineProperty(exports, "useCollaborativeState", {
48
46
  enumerable: true,
49
- get: function () { return chunkK2AW5UXT_js.useCollaborativeState; }
47
+ get: function () { return chunkVEZO33T2_js.useCollaborativeState; }
50
48
  });
51
49
  Object.defineProperty(exports, "usePresenceTracking", {
52
50
  enumerable: true,
53
- get: function () { return chunkK2AW5UXT_js.usePresenceTracking; }
51
+ get: function () { return chunkVEZO33T2_js.usePresenceTracking; }
54
52
  });
55
53
  Object.defineProperty(exports, "useThemeSwitching", {
56
54
  enumerable: true,
57
- get: function () { return chunkK2AW5UXT_js.useThemeSwitching; }
55
+ get: function () { return chunkVEZO33T2_js.useThemeSwitching; }
58
56
  });
59
57
  Object.defineProperty(exports, "useYjsProvider", {
60
58
  enumerable: true,
61
- get: function () { return chunkK2AW5UXT_js.useYjsProvider; }
59
+ get: function () { return chunkVEZO33T2_js.useYjsProvider; }
62
60
  });
63
61
  Object.defineProperty(exports, "getAnimationInitialStyle", {
64
62
  enumerable: true,
65
- get: function () { return chunk2U243ZEP_js.getAnimationInitialStyle; }
63
+ get: function () { return chunk5TPQJWEO_js.getAnimationInitialStyle; }
66
64
  });
67
65
  Object.defineProperty(exports, "clearAudienceContent", {
68
66
  enumerable: true,
69
- get: function () { return chunk2QHCOESN_js.clearAudienceContent; }
67
+ get: function () { return chunkWK56SFN7_js.clearAudienceContent; }
70
68
  });
71
69
  Object.defineProperty(exports, "loadAudienceContent", {
72
70
  enumerable: true,
73
- get: function () { return chunk2QHCOESN_js.loadAudienceContent; }
71
+ get: function () { return chunkWK56SFN7_js.loadAudienceContent; }
74
72
  });
75
73
  Object.defineProperty(exports, "storeAudienceContent", {
76
74
  enumerable: true,
77
- get: function () { return chunk2QHCOESN_js.storeAudienceContent; }
75
+ get: function () { return chunkWK56SFN7_js.storeAudienceContent; }
78
76
  });
Binary file
Binary file
@@ -1,9 +1,7 @@
1
- export { CollaborationProvider, CollaborationStatusIndicator, PowerPointViewer, RemoteUserCursors, UserAvatarBar } from '../chunk-RYHBWTPI.mjs';
2
- import '../chunk-I2HF7ZPO.mjs';
3
- import '../chunk-T5U6P2JH.mjs';
4
- export { isAudienceTab, parseAudienceNonce, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-7NSLKNCT.mjs';
5
- export { getAnimationInitialStyle } from '../chunk-O75FHZQJ.mjs';
6
- export { clearAudienceContent, loadAudienceContent, storeAudienceContent } from '../chunk-6G6S7PEI.mjs';
7
- import '../chunk-PZTPX3HK.mjs';
8
- import '../chunk-PE2I5L6R.mjs';
1
+ export { CollaborationProvider, CollaborationStatusIndicator, PowerPointViewer, RemoteUserCursors, UserAvatarBar } from '../chunk-KK7FWBGO.mjs';
2
+ import '../chunk-Q6FC2552.mjs';
3
+ export { isAudienceTab, parseAudienceNonce, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-LRIXPSVT.mjs';
4
+ export { getAnimationInitialStyle } from '../chunk-G6Q3NXRV.mjs';
5
+ import '../chunk-Z6HIZWIQ.mjs';
6
+ export { clearAudienceContent, loadAudienceContent, storeAudienceContent } from '../chunk-QBZA2GMB.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.2.1",
3
+ "version": "2.4.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;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