pptx-react-viewer 1.25.2 → 1.25.4

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 (92) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{Model3DScene-VEL3LWME.mjs → Model3DScene-DZFYJPUH.mjs} +2 -2
  3. package/dist/Model3DScene-DZFYJPUH.mjs.br +0 -0
  4. package/dist/Model3DScene-DZFYJPUH.mjs.gz +0 -0
  5. package/dist/{Model3DScene-PPHEUVGE.js → Model3DScene-SP6WOKSX.js} +3 -3
  6. package/dist/{Model3DScene-PPHEUVGE.js.br → Model3DScene-SP6WOKSX.js.br} +0 -0
  7. package/dist/Model3DScene-SP6WOKSX.js.gz +0 -0
  8. package/dist/{SurfaceChart3DScene-ZBBY6LVV.mjs → SurfaceChart3DScene-54BRNPQ5.mjs} +2 -2
  9. package/dist/SurfaceChart3DScene-54BRNPQ5.mjs.br +0 -0
  10. package/dist/SurfaceChart3DScene-54BRNPQ5.mjs.gz +0 -0
  11. package/dist/{SurfaceChart3DScene-TGSDRCUC.js → SurfaceChart3DScene-GISPZ4C2.js} +3 -3
  12. package/dist/SurfaceChart3DScene-GISPZ4C2.js.br +0 -0
  13. package/dist/SurfaceChart3DScene-GISPZ4C2.js.gz +0 -0
  14. package/dist/{chunk-VHKA4C7G.js → chunk-5VYVKFMS.js} +850 -809
  15. package/dist/chunk-5VYVKFMS.js.br +0 -0
  16. package/dist/chunk-5VYVKFMS.js.gz +0 -0
  17. package/dist/{chunk-ML36DOIS.js → chunk-6F4WVHS3.js} +159 -64
  18. package/dist/chunk-6F4WVHS3.js.br +0 -0
  19. package/dist/chunk-6F4WVHS3.js.gz +0 -0
  20. package/dist/{chunk-WAG32RWG.js → chunk-7FE27DDH.js} +472 -464
  21. package/dist/chunk-7FE27DDH.js.br +0 -0
  22. package/dist/chunk-7FE27DDH.js.gz +0 -0
  23. package/dist/{chunk-RPWTP6QP.js → chunk-FWF2SP6N.js} +675 -160
  24. package/dist/chunk-FWF2SP6N.js.br +0 -0
  25. package/dist/chunk-FWF2SP6N.js.gz +0 -0
  26. package/dist/{chunk-WTTSE7SZ.mjs → chunk-P72VQ7WE.mjs} +12 -4
  27. package/dist/chunk-P72VQ7WE.mjs.br +0 -0
  28. package/dist/chunk-P72VQ7WE.mjs.gz +0 -0
  29. package/dist/{chunk-XUYKQ4DI.mjs → chunk-TPG2WKHQ.mjs} +49 -8
  30. package/dist/chunk-TPG2WKHQ.mjs.br +0 -0
  31. package/dist/chunk-TPG2WKHQ.mjs.gz +0 -0
  32. package/dist/{chunk-Q2WHYUNV.mjs → chunk-UYNOPUSG.mjs} +675 -160
  33. package/dist/chunk-UYNOPUSG.mjs.br +0 -0
  34. package/dist/chunk-UYNOPUSG.mjs.gz +0 -0
  35. package/dist/{chunk-UR4R3CH4.mjs → chunk-VUC3UPLM.mjs} +126 -31
  36. package/dist/chunk-VUC3UPLM.mjs.br +0 -0
  37. package/dist/chunk-VUC3UPLM.mjs.gz +0 -0
  38. package/dist/{dist-JFRKRKOK.mjs → dist-QNYKM7YS.mjs} +1 -1
  39. package/dist/dist-QNYKM7YS.mjs.br +0 -0
  40. package/dist/dist-QNYKM7YS.mjs.gz +0 -0
  41. package/dist/{dist-NR7AZFQW.js → dist-QU6JIDAF.js} +562 -562
  42. package/dist/dist-QU6JIDAF.js.br +0 -0
  43. package/dist/dist-QU6JIDAF.js.gz +0 -0
  44. package/dist/hooks-unstable.d.ts +107 -1
  45. package/dist/hooks-unstable.js +78 -78
  46. package/dist/hooks-unstable.js.br +0 -0
  47. package/dist/hooks-unstable.js.gz +0 -0
  48. package/dist/hooks-unstable.mjs +3 -3
  49. package/dist/hooks-unstable.mjs.br +0 -0
  50. package/dist/hooks-unstable.mjs.gz +0 -0
  51. package/dist/index.d.ts +107 -1
  52. package/dist/index.js +33 -33
  53. package/dist/index.js.br +0 -0
  54. package/dist/index.js.gz +0 -0
  55. package/dist/index.mjs +4 -4
  56. package/dist/index.mjs.br +0 -0
  57. package/dist/index.mjs.gz +0 -0
  58. package/dist/viewer/index.d.ts +107 -1
  59. package/dist/viewer/index.js +20 -20
  60. package/dist/viewer/index.js.br +0 -0
  61. package/dist/viewer/index.js.gz +0 -0
  62. package/dist/viewer/index.mjs +4 -4
  63. package/dist/viewer/index.mjs.br +0 -0
  64. package/dist/viewer/index.mjs.gz +0 -0
  65. package/package.json +1 -1
  66. package/dist/Model3DScene-PPHEUVGE.js.gz +0 -0
  67. package/dist/Model3DScene-VEL3LWME.mjs.br +0 -0
  68. package/dist/Model3DScene-VEL3LWME.mjs.gz +0 -0
  69. package/dist/SurfaceChart3DScene-TGSDRCUC.js.br +0 -0
  70. package/dist/SurfaceChart3DScene-TGSDRCUC.js.gz +0 -0
  71. package/dist/SurfaceChart3DScene-ZBBY6LVV.mjs.br +0 -0
  72. package/dist/SurfaceChart3DScene-ZBBY6LVV.mjs.gz +0 -0
  73. package/dist/chunk-ML36DOIS.js.br +0 -0
  74. package/dist/chunk-ML36DOIS.js.gz +0 -0
  75. package/dist/chunk-Q2WHYUNV.mjs.br +0 -0
  76. package/dist/chunk-Q2WHYUNV.mjs.gz +0 -0
  77. package/dist/chunk-RPWTP6QP.js.br +0 -0
  78. package/dist/chunk-RPWTP6QP.js.gz +0 -0
  79. package/dist/chunk-UR4R3CH4.mjs.br +0 -0
  80. package/dist/chunk-UR4R3CH4.mjs.gz +0 -0
  81. package/dist/chunk-VHKA4C7G.js.br +0 -0
  82. package/dist/chunk-VHKA4C7G.js.gz +0 -0
  83. package/dist/chunk-WAG32RWG.js.br +0 -0
  84. package/dist/chunk-WAG32RWG.js.gz +0 -0
  85. package/dist/chunk-WTTSE7SZ.mjs.br +0 -0
  86. package/dist/chunk-WTTSE7SZ.mjs.gz +0 -0
  87. package/dist/chunk-XUYKQ4DI.mjs.br +0 -0
  88. package/dist/chunk-XUYKQ4DI.mjs.gz +0 -0
  89. package/dist/dist-JFRKRKOK.mjs.br +0 -0
  90. package/dist/dist-JFRKRKOK.mjs.gz +0 -0
  91. package/dist/dist-NR7AZFQW.js.br +0 -0
  92. package/dist/dist-NR7AZFQW.js.gz +0 -0
package/dist/index.d.ts CHANGED
@@ -3375,6 +3375,40 @@ interface PptxSmartArtDrawingShape extends PptxCustomPathProperties {
3375
3375
  skewY?: number;
3376
3376
  /** Solid fill colour (hex). */
3377
3377
  fillColor?: string;
3378
+ /**
3379
+ * Gradient fill stops when the cached shape uses `a:gradFill`. Positions are
3380
+ * 0..100 (percent). Renderers emit an SVG/CSS gradient instead of a flat box.
3381
+ */
3382
+ fillGradientStops?: Array<{
3383
+ color: string;
3384
+ position: number;
3385
+ opacity?: number;
3386
+ }>;
3387
+ /** Gradient geometry type (`linear` for `a:lin`, `radial` for `a:path`). */
3388
+ fillGradientType?: 'linear' | 'radial';
3389
+ /** Linear gradient angle in degrees (0..360). */
3390
+ fillGradientAngle?: number;
3391
+ /** Pattern fill preset name from `a:pattFill/@prst` (e.g. "pct50", "cross"). */
3392
+ fillPatternPreset?: string;
3393
+ /** Pattern fill foreground colour (hex) from `a:pattFill/a:fgClr`. */
3394
+ fillPatternForegroundColor?: string;
3395
+ /** Pattern fill background colour (hex) from `a:pattFill/a:bgClr`. */
3396
+ fillPatternBackgroundColor?: string;
3397
+ /**
3398
+ * Relationship id of a picture (blip) fill's embedded image, from
3399
+ * `a:blipFill/a:blip/@r:embed`. The image bytes are resolved separately; see
3400
+ * {@link fillImageUrl}.
3401
+ */
3402
+ fillBlipEmbedId?: string;
3403
+ /**
3404
+ * Resolved data-URI/URL for a picture (blip) fill, when the embedded image
3405
+ * part could be resolved. Absent when only {@link fillBlipEmbedId} is known.
3406
+ */
3407
+ fillImageUrl?: string;
3408
+ /** Whether the cached shape carries an outer-shadow effect (`a:effectLst`). */
3409
+ hasShadow?: boolean;
3410
+ /** Resolved outer-shadow colour (hex), when present. */
3411
+ shadowColor?: string;
3378
3412
  /** Stroke colour (hex). */
3379
3413
  strokeColor?: string;
3380
3414
  /** Stroke width in points. */
@@ -3761,6 +3795,53 @@ interface ParsedTableStyleText {
3761
3795
  /** Font colour shade (0-100 000). */
3762
3796
  fontShade?: number;
3763
3797
  }
3798
+ /**
3799
+ * A single border side within a table style's `a:tcStyle/a:tcBdr`.
3800
+ *
3801
+ * Corresponds to one of `a:left`, `a:right`, `a:top`, `a:bottom`,
3802
+ * `a:insideH`, `a:insideV`, `a:tl2br`, `a:bl2tr` (each a
3803
+ * `CT_ThemeableLineStyle` wrapping an `a:ln`).
3804
+ *
3805
+ * @example
3806
+ * ```ts
3807
+ * const side: ParsedTableStyleBorder = {
3808
+ * width: 1,
3809
+ * dash: 'solid',
3810
+ * fill: { schemeColor: 'lt1' },
3811
+ * };
3812
+ * // => satisfies ParsedTableStyleBorder
3813
+ * ```
3814
+ */
3815
+ interface ParsedTableStyleBorder {
3816
+ /** Line width in px (converted from the `a:ln@w` EMU value). */
3817
+ width?: number;
3818
+ /** OOXML `a:prstDash@val` (e.g. `solid`, `dash`, `sysDot`). */
3819
+ dash?: string;
3820
+ /** Border colour as a theme scheme fill (from `a:ln/a:solidFill/a:schemeClr`). */
3821
+ fill?: ParsedTableStyleFill;
3822
+ /** Explicit hex colour when the line used `a:srgbClr` (e.g. `#808080`). */
3823
+ color?: string;
3824
+ /** The line was `a:noFill` — an explicit "no border" that clears lower layers. */
3825
+ noFill?: boolean;
3826
+ }
3827
+ /**
3828
+ * The set of border sides parsed from a table style section's
3829
+ * `a:tcStyle/a:tcBdr` element.
3830
+ */
3831
+ interface ParsedTableStyleBorders {
3832
+ left?: ParsedTableStyleBorder;
3833
+ right?: ParsedTableStyleBorder;
3834
+ top?: ParsedTableStyleBorder;
3835
+ bottom?: ParsedTableStyleBorder;
3836
+ /** Interior horizontal borders between rows in the region. */
3837
+ insideH?: ParsedTableStyleBorder;
3838
+ /** Interior vertical borders between columns in the region. */
3839
+ insideV?: ParsedTableStyleBorder;
3840
+ /** Top-left to bottom-right diagonal. */
3841
+ tl2br?: ParsedTableStyleBorder;
3842
+ /** Bottom-left to top-right diagonal. */
3843
+ bl2tr?: ParsedTableStyleBorder;
3844
+ }
3764
3845
  /**
3765
3846
  * Table background style (CT_TableBackgroundStyle, ECMA-376 §21.1.3.7).
3766
3847
  *
@@ -3795,6 +3876,24 @@ interface ParsedTableStyleEntry {
3795
3876
  swCellFill?: ParsedTableStyleFill;
3796
3877
  neCellFill?: ParsedTableStyleFill;
3797
3878
  nwCellFill?: ParsedTableStyleFill;
3879
+ /**
3880
+ * Per-role border styling from `a:tcStyle/a:tcBdr`. These supply the
3881
+ * gridlines/edges a styled table inherits from its table style when the
3882
+ * cells carry no explicit per-cell `a:lnX` overrides.
3883
+ */
3884
+ wholeTblBorders?: ParsedTableStyleBorders;
3885
+ firstRowBorders?: ParsedTableStyleBorders;
3886
+ lastRowBorders?: ParsedTableStyleBorders;
3887
+ firstColBorders?: ParsedTableStyleBorders;
3888
+ lastColBorders?: ParsedTableStyleBorders;
3889
+ band1HBorders?: ParsedTableStyleBorders;
3890
+ band2HBorders?: ParsedTableStyleBorders;
3891
+ band1VBorders?: ParsedTableStyleBorders;
3892
+ band2VBorders?: ParsedTableStyleBorders;
3893
+ seCellBorders?: ParsedTableStyleBorders;
3894
+ swCellBorders?: ParsedTableStyleBorders;
3895
+ neCellBorders?: ParsedTableStyleBorders;
3896
+ nwCellBorders?: ParsedTableStyleBorders;
3798
3897
  /** Per-role text styling from a:tcTxStyle. */
3799
3898
  wholeTblText?: ParsedTableStyleText;
3800
3899
  firstRowText?: ParsedTableStyleText;
@@ -4403,6 +4502,13 @@ interface PptxNativeAnimation {
4403
4502
  presetClass?: 'entr' | 'exit' | 'emph' | 'path';
4404
4503
  /** Effect preset sub-type identifier. */
4405
4504
  presetId?: number;
4505
+ /**
4506
+ * Effect preset direction/variant code from `p:cTn/@presetSubtype`
4507
+ * (ECMA-376 CT_TLCommonTimeNodeData). For Fly In/Out this encodes the
4508
+ * edge/corner the object travels from as a bitmask (1=top, 2=right,
4509
+ * 4=bottom, 8=left; corners combine bits). Absent means the preset default.
4510
+ */
4511
+ presetSubtype?: number;
4406
4512
  /** Duration in milliseconds. */
4407
4513
  durationMs?: number;
4408
4514
  /** Delay in milliseconds. */
@@ -5051,7 +5157,7 @@ interface PptxTheme {
5051
5157
  * // => "morph" — one of 40+ transition effects
5052
5158
  * ```
5053
5159
  */
5054
- type PptxTransitionType = 'none' | 'cut' | 'fade' | 'push' | 'wipe' | 'split' | 'randomBar' | 'blinds' | 'checker' | 'circle' | 'comb' | 'cover' | 'diamond' | 'dissolve' | 'plus' | 'pull' | 'random' | 'strips' | 'uncover' | 'wedge' | 'wheel' | 'zoom' | 'newsflash' | 'morph' | 'conveyor' | 'doors' | 'ferris' | 'flash' | 'flythrough' | 'gallery' | 'glitter' | 'honeycomb' | 'pan' | 'prism' | 'reveal' | 'ripple' | 'shred' | 'switch' | 'vortex' | 'warp' | 'wheelReverse' | 'window' | 'cube' | 'flip' | 'rotate' | 'orbit';
5160
+ type PptxTransitionType = 'none' | 'cut' | 'fade' | 'push' | 'wipe' | 'split' | 'randomBar' | 'blinds' | 'checker' | 'circle' | 'comb' | 'cover' | 'diamond' | 'dissolve' | 'plus' | 'pull' | 'random' | 'strips' | 'uncover' | 'wedge' | 'wheel' | 'zoom' | 'newsflash' | 'morph' | 'conveyor' | 'doors' | 'ferris' | 'flash' | 'flythrough' | 'gallery' | 'glitter' | 'honeycomb' | 'pan' | 'prism' | 'reveal' | 'ripple' | 'shred' | 'switch' | 'vortex' | 'warp' | 'wheelReverse' | 'window' | 'cube' | 'flip' | 'rotate' | 'orbit' | 'fallOver' | 'drape' | 'curtains' | 'wind' | 'prestige' | 'fracture' | 'crush' | 'peelOff' | 'pageCurlDouble' | 'pageCurlSingle' | 'airplane' | 'origami';
5055
5161
  /** Split orientation from OOXML `@_orient`. */
5056
5162
  type PptxSplitOrientation = 'horz' | 'vert';
5057
5163
  /** Schema-defined `ST_TransitionSpeed` values. */
package/dist/index.js CHANGED
@@ -1,129 +1,129 @@
1
1
  'use strict';
2
2
 
3
- var chunkVHKA4C7G_js = require('./chunk-VHKA4C7G.js');
4
- var chunkWAG32RWG_js = require('./chunk-WAG32RWG.js');
5
- var chunkML36DOIS_js = require('./chunk-ML36DOIS.js');
3
+ var chunk5VYVKFMS_js = require('./chunk-5VYVKFMS.js');
4
+ var chunk7FE27DDH_js = require('./chunk-7FE27DDH.js');
5
+ var chunk6F4WVHS3_js = require('./chunk-6F4WVHS3.js');
6
6
  var chunk2EFVXYNA_js = require('./chunk-2EFVXYNA.js');
7
- require('./chunk-RPWTP6QP.js');
7
+ require('./chunk-FWF2SP6N.js');
8
8
  require('./chunk-QGM4M3NI.js');
9
9
 
10
10
 
11
11
 
12
12
  Object.defineProperty(exports, "PowerPointViewer", {
13
13
  enumerable: true,
14
- get: function () { return chunkVHKA4C7G_js.PowerPointViewer; }
14
+ get: function () { return chunk5VYVKFMS_js.PowerPointViewer; }
15
15
  });
16
16
  Object.defineProperty(exports, "SlideCanvas", {
17
17
  enumerable: true,
18
- get: function () { return chunkVHKA4C7G_js.SlideCanvas; }
18
+ get: function () { return chunk5VYVKFMS_js.SlideCanvas; }
19
19
  });
20
20
  Object.defineProperty(exports, "Toolbar", {
21
21
  enumerable: true,
22
- get: function () { return chunkVHKA4C7G_js.Toolbar; }
22
+ get: function () { return chunk5VYVKFMS_js.Toolbar; }
23
23
  });
24
24
  Object.defineProperty(exports, "ViewerThemeProvider", {
25
25
  enumerable: true,
26
- get: function () { return chunkVHKA4C7G_js.ViewerThemeProvider; }
26
+ get: function () { return chunk5VYVKFMS_js.ViewerThemeProvider; }
27
27
  });
28
28
  Object.defineProperty(exports, "useViewerTheme", {
29
29
  enumerable: true,
30
- get: function () { return chunkVHKA4C7G_js.useViewerTheme; }
30
+ get: function () { return chunk5VYVKFMS_js.useViewerTheme; }
31
31
  });
32
32
  Object.defineProperty(exports, "getAnimationInitialStyle", {
33
33
  enumerable: true,
34
- get: function () { return chunkWAG32RWG_js.getAnimationInitialStyle; }
34
+ get: function () { return chunk7FE27DDH_js.getAnimationInitialStyle; }
35
35
  });
36
36
  Object.defineProperty(exports, "renderToCanvas", {
37
37
  enumerable: true,
38
- get: function () { return chunkWAG32RWG_js.renderToCanvas; }
38
+ get: function () { return chunk7FE27DDH_js.renderToCanvas; }
39
39
  });
40
40
  Object.defineProperty(exports, "useViewerBuildingBlocks", {
41
41
  enumerable: true,
42
- get: function () { return chunkWAG32RWG_js.useViewerBuildingBlocks; }
42
+ get: function () { return chunk7FE27DDH_js.useViewerBuildingBlocks; }
43
43
  });
44
44
  Object.defineProperty(exports, "AVATAR_COLOR_SWATCHES", {
45
45
  enumerable: true,
46
- get: function () { return chunkML36DOIS_js.AVATAR_COLOR_SWATCHES; }
46
+ get: function () { return chunk6F4WVHS3_js.AVATAR_COLOR_SWATCHES; }
47
47
  });
48
48
  Object.defineProperty(exports, "DEFAULT_VIEWER_PROFILE", {
49
49
  enumerable: true,
50
- get: function () { return chunkML36DOIS_js.DEFAULT_VIEWER_PROFILE; }
50
+ get: function () { return chunk6F4WVHS3_js.DEFAULT_VIEWER_PROFILE; }
51
51
  });
52
52
  Object.defineProperty(exports, "THEME_CATALOG", {
53
53
  enumerable: true,
54
- get: function () { return chunkML36DOIS_js.THEME_CATALOG; }
54
+ get: function () { return chunk6F4WVHS3_js.THEME_CATALOG; }
55
55
  });
56
56
  Object.defineProperty(exports, "VIEWER_PREFS_STORAGE_KEY", {
57
57
  enumerable: true,
58
- get: function () { return chunkML36DOIS_js.VIEWER_PREFS_STORAGE_KEY; }
58
+ get: function () { return chunk6F4WVHS3_js.VIEWER_PREFS_STORAGE_KEY; }
59
59
  });
60
60
  Object.defineProperty(exports, "clearAllLocalViewerData", {
61
61
  enumerable: true,
62
- get: function () { return chunkML36DOIS_js.clearAllLocalViewerData; }
62
+ get: function () { return chunk6F4WVHS3_js.clearAllLocalViewerData; }
63
63
  });
64
64
  Object.defineProperty(exports, "clearStoredViewerPrefs", {
65
65
  enumerable: true,
66
- get: function () { return chunkML36DOIS_js.clearStoredViewerPrefs; }
66
+ get: function () { return chunk6F4WVHS3_js.clearStoredViewerPrefs; }
67
67
  });
68
68
  Object.defineProperty(exports, "defaultCssVars", {
69
69
  enumerable: true,
70
- get: function () { return chunkML36DOIS_js.defaultCssVars; }
70
+ get: function () { return chunk6F4WVHS3_js.defaultCssVars; }
71
71
  });
72
72
  Object.defineProperty(exports, "defaultRadius", {
73
73
  enumerable: true,
74
- get: function () { return chunkML36DOIS_js.defaultRadius; }
74
+ get: function () { return chunk6F4WVHS3_js.defaultRadius; }
75
75
  });
76
76
  Object.defineProperty(exports, "defaultThemeColors", {
77
77
  enumerable: true,
78
- get: function () { return chunkML36DOIS_js.defaultThemeColors; }
78
+ get: function () { return chunk6F4WVHS3_js.defaultThemeColors; }
79
79
  });
80
80
  Object.defineProperty(exports, "getLocalStorageUsageSummary", {
81
81
  enumerable: true,
82
- get: function () { return chunkML36DOIS_js.getLocalStorageUsageSummary; }
82
+ get: function () { return chunk6F4WVHS3_js.getLocalStorageUsageSummary; }
83
83
  });
84
84
  Object.defineProperty(exports, "readStoredViewerPrefs", {
85
85
  enumerable: true,
86
- get: function () { return chunkML36DOIS_js.readStoredViewerPrefs; }
86
+ get: function () { return chunk6F4WVHS3_js.readStoredViewerPrefs; }
87
87
  });
88
88
  Object.defineProperty(exports, "resolveProfileInitial", {
89
89
  enumerable: true,
90
- get: function () { return chunkML36DOIS_js.resolveProfileInitial; }
90
+ get: function () { return chunk6F4WVHS3_js.resolveProfileInitial; }
91
91
  });
92
92
  Object.defineProperty(exports, "resolveThemeCatalogEntry", {
93
93
  enumerable: true,
94
- get: function () { return chunkML36DOIS_js.resolveThemeCatalogEntry; }
94
+ get: function () { return chunk6F4WVHS3_js.resolveThemeCatalogEntry; }
95
95
  });
96
96
  Object.defineProperty(exports, "saveViewerProfile", {
97
97
  enumerable: true,
98
- get: function () { return chunkML36DOIS_js.saveViewerProfile; }
98
+ get: function () { return chunk6F4WVHS3_js.saveViewerProfile; }
99
99
  });
100
100
  Object.defineProperty(exports, "themeToCssVars", {
101
101
  enumerable: true,
102
- get: function () { return chunkML36DOIS_js.themeToCssVars; }
102
+ get: function () { return chunk6F4WVHS3_js.themeToCssVars; }
103
103
  });
104
104
  Object.defineProperty(exports, "vermilionDarkColors", {
105
105
  enumerable: true,
106
- get: function () { return chunkML36DOIS_js.vermilionDarkColors; }
106
+ get: function () { return chunk6F4WVHS3_js.vermilionDarkColors; }
107
107
  });
108
108
  Object.defineProperty(exports, "vermilionDarkTheme", {
109
109
  enumerable: true,
110
- get: function () { return chunkML36DOIS_js.vermilionDarkTheme; }
110
+ get: function () { return chunk6F4WVHS3_js.vermilionDarkTheme; }
111
111
  });
112
112
  Object.defineProperty(exports, "vermilionLightColors", {
113
113
  enumerable: true,
114
- get: function () { return chunkML36DOIS_js.vermilionLightColors; }
114
+ get: function () { return chunk6F4WVHS3_js.vermilionLightColors; }
115
115
  });
116
116
  Object.defineProperty(exports, "vermilionLightTheme", {
117
117
  enumerable: true,
118
- get: function () { return chunkML36DOIS_js.vermilionLightTheme; }
118
+ get: function () { return chunk6F4WVHS3_js.vermilionLightTheme; }
119
119
  });
120
120
  Object.defineProperty(exports, "vermilionRadius", {
121
121
  enumerable: true,
122
- get: function () { return chunkML36DOIS_js.vermilionRadius; }
122
+ get: function () { return chunk6F4WVHS3_js.vermilionRadius; }
123
123
  });
124
124
  Object.defineProperty(exports, "writeStoredViewerPrefs", {
125
125
  enumerable: true,
126
- get: function () { return chunkML36DOIS_js.writeStoredViewerPrefs; }
126
+ get: function () { return chunk6F4WVHS3_js.writeStoredViewerPrefs; }
127
127
  });
128
128
  Object.defineProperty(exports, "LOCALE_CATALOG", {
129
129
  enumerable: true,
package/dist/index.js.br CHANGED
Binary file
package/dist/index.js.gz CHANGED
Binary file
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- export { PowerPointViewer, SlideCanvas, Toolbar, ViewerThemeProvider, useViewerTheme } from './chunk-XUYKQ4DI.mjs';
2
- export { getAnimationInitialStyle, renderToCanvas, useViewerBuildingBlocks } from './chunk-WTTSE7SZ.mjs';
3
- export { AVATAR_COLOR_SWATCHES, DEFAULT_VIEWER_PROFILE, THEME_CATALOG, VIEWER_PREFS_STORAGE_KEY, clearAllLocalViewerData, clearStoredViewerPrefs, defaultCssVars, defaultRadius, defaultThemeColors, getLocalStorageUsageSummary, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from './chunk-UR4R3CH4.mjs';
1
+ export { PowerPointViewer, SlideCanvas, Toolbar, ViewerThemeProvider, useViewerTheme } from './chunk-TPG2WKHQ.mjs';
2
+ export { getAnimationInitialStyle, renderToCanvas, useViewerBuildingBlocks } from './chunk-P72VQ7WE.mjs';
3
+ export { AVATAR_COLOR_SWATCHES, DEFAULT_VIEWER_PROFILE, THEME_CATALOG, VIEWER_PREFS_STORAGE_KEY, clearAllLocalViewerData, clearStoredViewerPrefs, defaultCssVars, defaultRadius, defaultThemeColors, getLocalStorageUsageSummary, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from './chunk-VUC3UPLM.mjs';
4
4
  export { LOCALE_CATALOG } from './chunk-M3SIFXWD.mjs';
5
- import './chunk-Q2WHYUNV.mjs';
5
+ import './chunk-UYNOPUSG.mjs';
6
6
  import './chunk-6DZX6EAA.mjs';
package/dist/index.mjs.br CHANGED
Binary file
package/dist/index.mjs.gz CHANGED
Binary file
@@ -3417,6 +3417,40 @@ interface PptxSmartArtDrawingShape extends PptxCustomPathProperties {
3417
3417
  skewY?: number;
3418
3418
  /** Solid fill colour (hex). */
3419
3419
  fillColor?: string;
3420
+ /**
3421
+ * Gradient fill stops when the cached shape uses `a:gradFill`. Positions are
3422
+ * 0..100 (percent). Renderers emit an SVG/CSS gradient instead of a flat box.
3423
+ */
3424
+ fillGradientStops?: Array<{
3425
+ color: string;
3426
+ position: number;
3427
+ opacity?: number;
3428
+ }>;
3429
+ /** Gradient geometry type (`linear` for `a:lin`, `radial` for `a:path`). */
3430
+ fillGradientType?: 'linear' | 'radial';
3431
+ /** Linear gradient angle in degrees (0..360). */
3432
+ fillGradientAngle?: number;
3433
+ /** Pattern fill preset name from `a:pattFill/@prst` (e.g. "pct50", "cross"). */
3434
+ fillPatternPreset?: string;
3435
+ /** Pattern fill foreground colour (hex) from `a:pattFill/a:fgClr`. */
3436
+ fillPatternForegroundColor?: string;
3437
+ /** Pattern fill background colour (hex) from `a:pattFill/a:bgClr`. */
3438
+ fillPatternBackgroundColor?: string;
3439
+ /**
3440
+ * Relationship id of a picture (blip) fill's embedded image, from
3441
+ * `a:blipFill/a:blip/@r:embed`. The image bytes are resolved separately; see
3442
+ * {@link fillImageUrl}.
3443
+ */
3444
+ fillBlipEmbedId?: string;
3445
+ /**
3446
+ * Resolved data-URI/URL for a picture (blip) fill, when the embedded image
3447
+ * part could be resolved. Absent when only {@link fillBlipEmbedId} is known.
3448
+ */
3449
+ fillImageUrl?: string;
3450
+ /** Whether the cached shape carries an outer-shadow effect (`a:effectLst`). */
3451
+ hasShadow?: boolean;
3452
+ /** Resolved outer-shadow colour (hex), when present. */
3453
+ shadowColor?: string;
3420
3454
  /** Stroke colour (hex). */
3421
3455
  strokeColor?: string;
3422
3456
  /** Stroke width in points. */
@@ -3803,6 +3837,53 @@ interface ParsedTableStyleText {
3803
3837
  /** Font colour shade (0-100 000). */
3804
3838
  fontShade?: number;
3805
3839
  }
3840
+ /**
3841
+ * A single border side within a table style's `a:tcStyle/a:tcBdr`.
3842
+ *
3843
+ * Corresponds to one of `a:left`, `a:right`, `a:top`, `a:bottom`,
3844
+ * `a:insideH`, `a:insideV`, `a:tl2br`, `a:bl2tr` (each a
3845
+ * `CT_ThemeableLineStyle` wrapping an `a:ln`).
3846
+ *
3847
+ * @example
3848
+ * ```ts
3849
+ * const side: ParsedTableStyleBorder = {
3850
+ * width: 1,
3851
+ * dash: 'solid',
3852
+ * fill: { schemeColor: 'lt1' },
3853
+ * };
3854
+ * // => satisfies ParsedTableStyleBorder
3855
+ * ```
3856
+ */
3857
+ interface ParsedTableStyleBorder {
3858
+ /** Line width in px (converted from the `a:ln@w` EMU value). */
3859
+ width?: number;
3860
+ /** OOXML `a:prstDash@val` (e.g. `solid`, `dash`, `sysDot`). */
3861
+ dash?: string;
3862
+ /** Border colour as a theme scheme fill (from `a:ln/a:solidFill/a:schemeClr`). */
3863
+ fill?: ParsedTableStyleFill;
3864
+ /** Explicit hex colour when the line used `a:srgbClr` (e.g. `#808080`). */
3865
+ color?: string;
3866
+ /** The line was `a:noFill` — an explicit "no border" that clears lower layers. */
3867
+ noFill?: boolean;
3868
+ }
3869
+ /**
3870
+ * The set of border sides parsed from a table style section's
3871
+ * `a:tcStyle/a:tcBdr` element.
3872
+ */
3873
+ interface ParsedTableStyleBorders {
3874
+ left?: ParsedTableStyleBorder;
3875
+ right?: ParsedTableStyleBorder;
3876
+ top?: ParsedTableStyleBorder;
3877
+ bottom?: ParsedTableStyleBorder;
3878
+ /** Interior horizontal borders between rows in the region. */
3879
+ insideH?: ParsedTableStyleBorder;
3880
+ /** Interior vertical borders between columns in the region. */
3881
+ insideV?: ParsedTableStyleBorder;
3882
+ /** Top-left to bottom-right diagonal. */
3883
+ tl2br?: ParsedTableStyleBorder;
3884
+ /** Bottom-left to top-right diagonal. */
3885
+ bl2tr?: ParsedTableStyleBorder;
3886
+ }
3806
3887
  /**
3807
3888
  * Table background style (CT_TableBackgroundStyle, ECMA-376 §21.1.3.7).
3808
3889
  *
@@ -3837,6 +3918,24 @@ interface ParsedTableStyleEntry {
3837
3918
  swCellFill?: ParsedTableStyleFill;
3838
3919
  neCellFill?: ParsedTableStyleFill;
3839
3920
  nwCellFill?: ParsedTableStyleFill;
3921
+ /**
3922
+ * Per-role border styling from `a:tcStyle/a:tcBdr`. These supply the
3923
+ * gridlines/edges a styled table inherits from its table style when the
3924
+ * cells carry no explicit per-cell `a:lnX` overrides.
3925
+ */
3926
+ wholeTblBorders?: ParsedTableStyleBorders;
3927
+ firstRowBorders?: ParsedTableStyleBorders;
3928
+ lastRowBorders?: ParsedTableStyleBorders;
3929
+ firstColBorders?: ParsedTableStyleBorders;
3930
+ lastColBorders?: ParsedTableStyleBorders;
3931
+ band1HBorders?: ParsedTableStyleBorders;
3932
+ band2HBorders?: ParsedTableStyleBorders;
3933
+ band1VBorders?: ParsedTableStyleBorders;
3934
+ band2VBorders?: ParsedTableStyleBorders;
3935
+ seCellBorders?: ParsedTableStyleBorders;
3936
+ swCellBorders?: ParsedTableStyleBorders;
3937
+ neCellBorders?: ParsedTableStyleBorders;
3938
+ nwCellBorders?: ParsedTableStyleBorders;
3840
3939
  /** Per-role text styling from a:tcTxStyle. */
3841
3940
  wholeTblText?: ParsedTableStyleText;
3842
3941
  firstRowText?: ParsedTableStyleText;
@@ -4634,6 +4733,13 @@ interface PptxNativeAnimation {
4634
4733
  presetClass?: 'entr' | 'exit' | 'emph' | 'path';
4635
4734
  /** Effect preset sub-type identifier. */
4636
4735
  presetId?: number;
4736
+ /**
4737
+ * Effect preset direction/variant code from `p:cTn/@presetSubtype`
4738
+ * (ECMA-376 CT_TLCommonTimeNodeData). For Fly In/Out this encodes the
4739
+ * edge/corner the object travels from as a bitmask (1=top, 2=right,
4740
+ * 4=bottom, 8=left; corners combine bits). Absent means the preset default.
4741
+ */
4742
+ presetSubtype?: number;
4637
4743
  /** Duration in milliseconds. */
4638
4744
  durationMs?: number;
4639
4745
  /** Delay in milliseconds. */
@@ -5509,7 +5615,7 @@ interface PptxTheme {
5509
5615
  * // => "morph" — one of 40+ transition effects
5510
5616
  * ```
5511
5617
  */
5512
- type PptxTransitionType = 'none' | 'cut' | 'fade' | 'push' | 'wipe' | 'split' | 'randomBar' | 'blinds' | 'checker' | 'circle' | 'comb' | 'cover' | 'diamond' | 'dissolve' | 'plus' | 'pull' | 'random' | 'strips' | 'uncover' | 'wedge' | 'wheel' | 'zoom' | 'newsflash' | 'morph' | 'conveyor' | 'doors' | 'ferris' | 'flash' | 'flythrough' | 'gallery' | 'glitter' | 'honeycomb' | 'pan' | 'prism' | 'reveal' | 'ripple' | 'shred' | 'switch' | 'vortex' | 'warp' | 'wheelReverse' | 'window' | 'cube' | 'flip' | 'rotate' | 'orbit';
5618
+ type PptxTransitionType = 'none' | 'cut' | 'fade' | 'push' | 'wipe' | 'split' | 'randomBar' | 'blinds' | 'checker' | 'circle' | 'comb' | 'cover' | 'diamond' | 'dissolve' | 'plus' | 'pull' | 'random' | 'strips' | 'uncover' | 'wedge' | 'wheel' | 'zoom' | 'newsflash' | 'morph' | 'conveyor' | 'doors' | 'ferris' | 'flash' | 'flythrough' | 'gallery' | 'glitter' | 'honeycomb' | 'pan' | 'prism' | 'reveal' | 'ripple' | 'shred' | 'switch' | 'vortex' | 'warp' | 'wheelReverse' | 'window' | 'cube' | 'flip' | 'rotate' | 'orbit' | 'fallOver' | 'drape' | 'curtains' | 'wind' | 'prestige' | 'fracture' | 'crush' | 'peelOff' | 'pageCurlDouble' | 'pageCurlSingle' | 'airplane' | 'origami';
5513
5619
  /** Split orientation from OOXML `@_orient`. */
5514
5620
  type PptxSplitOrientation = 'horz' | 'vert';
5515
5621
  /** Schema-defined `ST_TransitionSpeed` values. */
@@ -1,76 +1,76 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-IKBO6CZC.js');
4
- var chunkVHKA4C7G_js = require('../chunk-VHKA4C7G.js');
5
- var chunkWAG32RWG_js = require('../chunk-WAG32RWG.js');
6
- require('../chunk-ML36DOIS.js');
4
+ var chunk5VYVKFMS_js = require('../chunk-5VYVKFMS.js');
5
+ var chunk7FE27DDH_js = require('../chunk-7FE27DDH.js');
6
+ require('../chunk-6F4WVHS3.js');
7
7
  require('../chunk-2EFVXYNA.js');
8
- require('../chunk-RPWTP6QP.js');
8
+ require('../chunk-FWF2SP6N.js');
9
9
  require('../chunk-QGM4M3NI.js');
10
10
 
11
11
 
12
12
 
13
13
  Object.defineProperty(exports, "CollaborationProvider", {
14
14
  enumerable: true,
15
- get: function () { return chunkVHKA4C7G_js.CollaborationProvider; }
15
+ get: function () { return chunk5VYVKFMS_js.CollaborationProvider; }
16
16
  });
17
17
  Object.defineProperty(exports, "CollaborationStatusIndicator", {
18
18
  enumerable: true,
19
- get: function () { return chunkVHKA4C7G_js.CollaborationStatusIndicator; }
19
+ get: function () { return chunk5VYVKFMS_js.CollaborationStatusIndicator; }
20
20
  });
21
21
  Object.defineProperty(exports, "PowerPointViewer", {
22
22
  enumerable: true,
23
- get: function () { return chunkVHKA4C7G_js.PowerPointViewer; }
23
+ get: function () { return chunk5VYVKFMS_js.PowerPointViewer; }
24
24
  });
25
25
  Object.defineProperty(exports, "RemoteUserCursors", {
26
26
  enumerable: true,
27
- get: function () { return chunkVHKA4C7G_js.RemoteUserCursors; }
27
+ get: function () { return chunk5VYVKFMS_js.RemoteUserCursors; }
28
28
  });
29
29
  Object.defineProperty(exports, "UserAvatarBar", {
30
30
  enumerable: true,
31
- get: function () { return chunkVHKA4C7G_js.UserAvatarBar; }
31
+ get: function () { return chunk5VYVKFMS_js.UserAvatarBar; }
32
32
  });
33
33
  Object.defineProperty(exports, "clearAudienceContent", {
34
34
  enumerable: true,
35
- get: function () { return chunkWAG32RWG_js.clearAudienceContent; }
35
+ get: function () { return chunk7FE27DDH_js.clearAudienceContent; }
36
36
  });
37
37
  Object.defineProperty(exports, "getAnimationInitialStyle", {
38
38
  enumerable: true,
39
- get: function () { return chunkWAG32RWG_js.getAnimationInitialStyle; }
39
+ get: function () { return chunk7FE27DDH_js.getAnimationInitialStyle; }
40
40
  });
41
41
  Object.defineProperty(exports, "isAudienceTab", {
42
42
  enumerable: true,
43
- get: function () { return chunkWAG32RWG_js.isAudienceTab; }
43
+ get: function () { return chunk7FE27DDH_js.isAudienceTab; }
44
44
  });
45
45
  Object.defineProperty(exports, "loadAudienceContent", {
46
46
  enumerable: true,
47
- get: function () { return chunkWAG32RWG_js.loadAudienceContent; }
47
+ get: function () { return chunk7FE27DDH_js.loadAudienceContent; }
48
48
  });
49
49
  Object.defineProperty(exports, "parseAudienceNonce", {
50
50
  enumerable: true,
51
- get: function () { return chunkWAG32RWG_js.parseAudienceNonce; }
51
+ get: function () { return chunk7FE27DDH_js.parseAudienceNonce; }
52
52
  });
53
53
  Object.defineProperty(exports, "storeAudienceContent", {
54
54
  enumerable: true,
55
- get: function () { return chunkWAG32RWG_js.storeAudienceContent; }
55
+ get: function () { return chunk7FE27DDH_js.storeAudienceContent; }
56
56
  });
57
57
  Object.defineProperty(exports, "useCollaborativeHistory", {
58
58
  enumerable: true,
59
- get: function () { return chunkWAG32RWG_js.useCollaborativeHistory; }
59
+ get: function () { return chunk7FE27DDH_js.useCollaborativeHistory; }
60
60
  });
61
61
  Object.defineProperty(exports, "useCollaborativeState", {
62
62
  enumerable: true,
63
- get: function () { return chunkWAG32RWG_js.useCollaborativeState; }
63
+ get: function () { return chunk7FE27DDH_js.useCollaborativeState; }
64
64
  });
65
65
  Object.defineProperty(exports, "usePresenceTracking", {
66
66
  enumerable: true,
67
- get: function () { return chunkWAG32RWG_js.usePresenceTracking; }
67
+ get: function () { return chunk7FE27DDH_js.usePresenceTracking; }
68
68
  });
69
69
  Object.defineProperty(exports, "useThemeSwitching", {
70
70
  enumerable: true,
71
- get: function () { return chunkWAG32RWG_js.useThemeSwitching; }
71
+ get: function () { return chunk7FE27DDH_js.useThemeSwitching; }
72
72
  });
73
73
  Object.defineProperty(exports, "useYjsProvider", {
74
74
  enumerable: true,
75
- get: function () { return chunkWAG32RWG_js.useYjsProvider; }
75
+ get: function () { return chunk7FE27DDH_js.useYjsProvider; }
76
76
  });
Binary file
Binary file
@@ -1,7 +1,7 @@
1
1
  import '../chunk-T5U6P2JH.mjs';
2
- export { CollaborationProvider, CollaborationStatusIndicator, PowerPointViewer, RemoteUserCursors, UserAvatarBar } from '../chunk-XUYKQ4DI.mjs';
3
- export { clearAudienceContent, getAnimationInitialStyle, isAudienceTab, loadAudienceContent, parseAudienceNonce, storeAudienceContent, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-WTTSE7SZ.mjs';
4
- import '../chunk-UR4R3CH4.mjs';
2
+ export { CollaborationProvider, CollaborationStatusIndicator, PowerPointViewer, RemoteUserCursors, UserAvatarBar } from '../chunk-TPG2WKHQ.mjs';
3
+ export { clearAudienceContent, getAnimationInitialStyle, isAudienceTab, loadAudienceContent, parseAudienceNonce, storeAudienceContent, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-P72VQ7WE.mjs';
4
+ import '../chunk-VUC3UPLM.mjs';
5
5
  import '../chunk-M3SIFXWD.mjs';
6
- import '../chunk-Q2WHYUNV.mjs';
6
+ import '../chunk-UYNOPUSG.mjs';
7
7
  import '../chunk-6DZX6EAA.mjs';
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-react-viewer",
3
- "version": "1.25.2",
3
+ "version": "1.25.4",
4
4
  "description": "React PowerPoint viewer and editor component: render, edit, and export PPTX slides in the browser.",
5
5
  "keywords": [
6
6
  "editor",
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file