pptx-react-viewer 4.12.0 → 4.14.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 (133) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/{AiChatPanel-FV22KLWM.js → AiChatPanel-PULXQTFJ.js} +28 -28
  3. package/dist/AiChatPanel-PULXQTFJ.js.br +0 -0
  4. package/dist/AiChatPanel-PULXQTFJ.js.gz +0 -0
  5. package/dist/{AiChatPanel-ZMVKLTNX.mjs → AiChatPanel-WQUOEVQB.mjs} +4 -4
  6. package/dist/AiChatPanel-WQUOEVQB.mjs.br +0 -0
  7. package/dist/AiChatPanel-WQUOEVQB.mjs.gz +0 -0
  8. package/dist/{Model3DScene-DWLMI554.js → Model3DScene-6MYHPE5N.js} +10 -4
  9. package/dist/Model3DScene-6MYHPE5N.js.br +0 -0
  10. package/dist/Model3DScene-6MYHPE5N.js.gz +0 -0
  11. package/dist/{Model3DScene-JGW2QDN3.mjs → Model3DScene-HZG33BWN.mjs} +10 -4
  12. package/dist/Model3DScene-HZG33BWN.mjs.br +0 -0
  13. package/dist/Model3DScene-HZG33BWN.mjs.gz +0 -0
  14. package/dist/{chunk-HDH4KFDK.mjs → chunk-55OLQ7HS.mjs} +28 -0
  15. package/dist/chunk-55OLQ7HS.mjs.br +0 -0
  16. package/dist/chunk-55OLQ7HS.mjs.gz +0 -0
  17. package/dist/{chunk-QFTHDPEA.js → chunk-6ZR27XTL.js} +3512 -2128
  18. package/dist/chunk-6ZR27XTL.js.br +0 -0
  19. package/dist/chunk-6ZR27XTL.js.gz +0 -0
  20. package/dist/{chunk-YXRSLJEB.mjs → chunk-AJTFPTSN.mjs} +2 -2
  21. package/dist/chunk-AJTFPTSN.mjs.br +0 -0
  22. package/dist/chunk-AJTFPTSN.mjs.gz +0 -0
  23. package/dist/{chunk-73CSPIMU.js → chunk-DI4YTG3J.js} +197 -197
  24. package/dist/chunk-DI4YTG3J.js.br +0 -0
  25. package/dist/chunk-DI4YTG3J.js.gz +0 -0
  26. package/dist/{chunk-I2EV62KC.js → chunk-E6VYR3GM.js} +818 -817
  27. package/dist/chunk-E6VYR3GM.js.br +0 -0
  28. package/dist/chunk-E6VYR3GM.js.gz +0 -0
  29. package/dist/{chunk-R7FGWOEG.mjs → chunk-ECKXYCP3.mjs} +1 -1
  30. package/dist/chunk-ECKXYCP3.mjs.br +0 -0
  31. package/dist/chunk-ECKXYCP3.mjs.gz +0 -0
  32. package/dist/{chunk-HOIC3XAF.mjs → chunk-EPMT65EN.mjs} +6 -5
  33. package/dist/chunk-EPMT65EN.mjs.br +0 -0
  34. package/dist/chunk-EPMT65EN.mjs.gz +0 -0
  35. package/dist/{chunk-KPKO2ELT.js → chunk-HIYK7HPX.js} +28 -0
  36. package/dist/chunk-HIYK7HPX.js.br +0 -0
  37. package/dist/chunk-HIYK7HPX.js.gz +0 -0
  38. package/dist/{chunk-XDTZVM5K.js → chunk-RK5UV5HL.js} +1207 -1186
  39. package/dist/chunk-RK5UV5HL.js.br +0 -0
  40. package/dist/chunk-RK5UV5HL.js.gz +0 -0
  41. package/dist/{chunk-36223DLG.mjs → chunk-UWVRB4Z5.mjs} +3512 -2129
  42. package/dist/chunk-UWVRB4Z5.mjs.br +0 -0
  43. package/dist/chunk-UWVRB4Z5.mjs.gz +0 -0
  44. package/dist/{chunk-NAL3FTKM.mjs → chunk-WSYKEPW6.mjs} +33 -12
  45. package/dist/chunk-WSYKEPW6.mjs.br +0 -0
  46. package/dist/chunk-WSYKEPW6.mjs.gz +0 -0
  47. package/dist/{chunk-RRT4LIRN.js → chunk-XWO367ZG.js} +5 -5
  48. package/dist/chunk-XWO367ZG.js.br +0 -0
  49. package/dist/chunk-XWO367ZG.js.gz +0 -0
  50. package/dist/i18n/de.cjs +45 -15
  51. package/dist/i18n/de.cjs.br +0 -0
  52. package/dist/i18n/de.cjs.gz +0 -0
  53. package/dist/i18n/de.mjs +45 -15
  54. package/dist/i18n/de.mjs.br +0 -0
  55. package/dist/i18n/de.mjs.gz +0 -0
  56. package/dist/i18n/es.cjs +45 -15
  57. package/dist/i18n/es.cjs.br +0 -0
  58. package/dist/i18n/es.cjs.gz +0 -0
  59. package/dist/i18n/es.mjs +45 -15
  60. package/dist/i18n/es.mjs.br +0 -0
  61. package/dist/i18n/es.mjs.gz +0 -0
  62. package/dist/i18n/fr.cjs +45 -15
  63. package/dist/i18n/fr.cjs.br +0 -0
  64. package/dist/i18n/fr.cjs.gz +0 -0
  65. package/dist/i18n/fr.mjs +45 -15
  66. package/dist/i18n/fr.mjs.br +0 -0
  67. package/dist/i18n/fr.mjs.gz +0 -0
  68. package/dist/i18n/zh-CN.cjs +46 -16
  69. package/dist/i18n/zh-CN.cjs.br +0 -0
  70. package/dist/i18n/zh-CN.cjs.gz +0 -0
  71. package/dist/i18n/zh-CN.mjs +46 -16
  72. package/dist/i18n/zh-CN.mjs.br +0 -0
  73. package/dist/i18n/zh-CN.mjs.gz +0 -0
  74. package/dist/i18n.js +4 -4
  75. package/dist/i18n.js.br +0 -0
  76. package/dist/i18n.js.gz +0 -0
  77. package/dist/i18n.mjs +1 -1
  78. package/dist/i18n.mjs.br +0 -0
  79. package/dist/i18n.mjs.gz +0 -0
  80. package/dist/index.d.ts +71 -0
  81. package/dist/index.js +63 -63
  82. package/dist/index.js.br +0 -0
  83. package/dist/index.js.gz +0 -0
  84. package/dist/index.mjs +6 -6
  85. package/dist/index.mjs.br +0 -0
  86. package/dist/index.mjs.gz +0 -0
  87. package/dist/internals.d.ts +71 -0
  88. package/dist/internals.js +105 -105
  89. package/dist/internals.js.br +0 -0
  90. package/dist/internals.js.gz +0 -0
  91. package/dist/internals.mjs +4 -4
  92. package/dist/internals.mjs.br +0 -0
  93. package/dist/internals.mjs.gz +0 -0
  94. package/dist/viewer/index.d.ts +71 -0
  95. package/dist/viewer/index.js +27 -27
  96. package/dist/viewer/index.js.br +0 -0
  97. package/dist/viewer/index.js.gz +0 -0
  98. package/dist/viewer/index.mjs +6 -6
  99. package/dist/viewer/index.mjs.br +0 -0
  100. package/dist/viewer/index.mjs.gz +0 -0
  101. package/package.json +1 -1
  102. package/dist/AiChatPanel-FV22KLWM.js.br +0 -0
  103. package/dist/AiChatPanel-FV22KLWM.js.gz +0 -0
  104. package/dist/AiChatPanel-ZMVKLTNX.mjs.br +0 -0
  105. package/dist/AiChatPanel-ZMVKLTNX.mjs.gz +0 -0
  106. package/dist/Model3DScene-DWLMI554.js.br +0 -0
  107. package/dist/Model3DScene-DWLMI554.js.gz +0 -0
  108. package/dist/Model3DScene-JGW2QDN3.mjs.br +0 -0
  109. package/dist/Model3DScene-JGW2QDN3.mjs.gz +0 -0
  110. package/dist/chunk-36223DLG.mjs.br +0 -0
  111. package/dist/chunk-36223DLG.mjs.gz +0 -0
  112. package/dist/chunk-73CSPIMU.js.br +0 -0
  113. package/dist/chunk-73CSPIMU.js.gz +0 -0
  114. package/dist/chunk-HDH4KFDK.mjs.br +0 -0
  115. package/dist/chunk-HDH4KFDK.mjs.gz +0 -0
  116. package/dist/chunk-HOIC3XAF.mjs.br +0 -0
  117. package/dist/chunk-HOIC3XAF.mjs.gz +0 -0
  118. package/dist/chunk-I2EV62KC.js.br +0 -0
  119. package/dist/chunk-I2EV62KC.js.gz +0 -0
  120. package/dist/chunk-KPKO2ELT.js.br +0 -0
  121. package/dist/chunk-KPKO2ELT.js.gz +0 -0
  122. package/dist/chunk-NAL3FTKM.mjs.br +0 -0
  123. package/dist/chunk-NAL3FTKM.mjs.gz +0 -0
  124. package/dist/chunk-QFTHDPEA.js.br +0 -0
  125. package/dist/chunk-QFTHDPEA.js.gz +0 -0
  126. package/dist/chunk-R7FGWOEG.mjs.br +0 -0
  127. package/dist/chunk-R7FGWOEG.mjs.gz +0 -0
  128. package/dist/chunk-RRT4LIRN.js.br +0 -0
  129. package/dist/chunk-RRT4LIRN.js.gz +0 -0
  130. package/dist/chunk-XDTZVM5K.js.br +0 -0
  131. package/dist/chunk-XDTZVM5K.js.gz +0 -0
  132. package/dist/chunk-YXRSLJEB.mjs.br +0 -0
  133. package/dist/chunk-YXRSLJEB.mjs.gz +0 -0
@@ -5016,6 +5016,64 @@ interface MediaCaptionTrack {
5016
5016
  isDefault?: boolean;
5017
5017
  }
5018
5018
  //#endregion
5019
+ //#region src/core/types/model3d-scene.d.ts
5020
+ /**
5021
+ * Authored scene data of a PowerPoint 3D model (`am3d:model3d`, namespace
5022
+ * `http://schemas.microsoft.com/office/drawing/2017/model3d`).
5023
+ *
5024
+ * This is a read-only parsed view: the untouched XML stays on the element's
5025
+ * `rawXml`, so the camera, transform and lights round-trip on save.
5026
+ */
5027
+ /** A 3D point or vector. Points are in EMU; direction vectors are unit-less. */
5028
+ interface Model3DVec3 {
5029
+ x: number;
5030
+ y: number;
5031
+ z: number;
5032
+ }
5033
+ /** `am3d:camera`. Positions are EMU, `fovDeg` is in degrees. */
5034
+ interface Model3DCamera {
5035
+ position?: Model3DVec3;
5036
+ /** Up vector (`am3d:up`), unit-less. */
5037
+ up?: Model3DVec3;
5038
+ /** Look-at target point (`am3d:lookAt`), EMU. */
5039
+ lookAt?: Model3DVec3;
5040
+ projection: 'perspective' | 'orthographic';
5041
+ /** Vertical field of view in degrees (perspective only). */
5042
+ fovDeg?: number;
5043
+ /** Orthographic view scale (orthographic only), when authored. */
5044
+ orthoScale?: number;
5045
+ }
5046
+ /** `am3d:trans`: how the model sits in the scene. Offsets are EMU. */
5047
+ interface Model3DTransformData {
5048
+ /** `meterPerModelUnit` as a plain ratio. */
5049
+ meterPerModelUnit?: number;
5050
+ preTranslate?: Model3DVec3;
5051
+ scale?: Model3DVec3;
5052
+ /** Euler rotation in degrees about each axis (`am3d:rot`). */
5053
+ rotationDeg?: Model3DVec3;
5054
+ postTranslate?: Model3DVec3;
5055
+ }
5056
+ /** One authored light (`am3d:ambientLight`, `ptLight`, `spotLight`, `dirLight`). */
5057
+ interface Model3DLightData {
5058
+ kind: 'ambient' | 'point' | 'spot' | 'directional';
5059
+ /** `#rrggbb`, when the light has an authored colour. */
5060
+ color?: string;
5061
+ /** `am3d:illuminance` as a plain ratio. */
5062
+ illuminance?: number;
5063
+ position?: Model3DVec3;
5064
+ direction?: Model3DVec3;
5065
+ /** Spot cone angle in degrees, when authored. */
5066
+ spotAngleDeg?: number;
5067
+ }
5068
+ /** Everything parsed from an `am3d:model3d` scene. */
5069
+ interface Model3DSceneData {
5070
+ camera?: Model3DCamera;
5071
+ transform?: Model3DTransformData;
5072
+ lights: Model3DLightData[];
5073
+ /** `am3d:objViewport/@viewportSz` in EMU. */
5074
+ viewportSizeEmu?: number;
5075
+ }
5076
+ //#endregion
5019
5077
  //#region src/core/types/smart-art-chrome.d.ts
5020
5078
  /**
5021
5079
  * Background / outline extracted from `dgm:bg` and `dgm:whole`.
@@ -7599,6 +7657,11 @@ interface Model3DPptxElement extends PptxElementBase, PptxImageProperties {
7599
7657
  modelMimeType?: string;
7600
7658
  /** Poster/preview image shown when 3D rendering is unavailable. */
7601
7659
  posterImage?: string;
7660
+ /**
7661
+ * Authored camera, model transform and lights (`am3d:camera`, `am3d:trans`,
7662
+ * lights). Read-only view: the XML round-trips via `rawXml`.
7663
+ */
7664
+ scene?: Model3DSceneData;
7602
7665
  /** Unrecognised graphicFrame extLst extensions, captured verbatim for round-trip. */
7603
7666
  extensionXml?: PptxGraphicFrameExtension[];
7604
7667
  }
@@ -13353,6 +13416,14 @@ declare const RIBBON_CONTROL_CATALOG: {
13353
13416
  };
13354
13417
  };
13355
13418
  readonly pictureFormat: {
13419
+ readonly adjust: {
13420
+ readonly label: 'Adjust';
13421
+ readonly controls: {
13422
+ readonly corrections: 'Corrections gallery';
13423
+ readonly color: 'Color gallery';
13424
+ readonly artisticEffects: 'Artistic Effects gallery';
13425
+ };
13426
+ };
13356
13427
  readonly pictureStyles: {
13357
13428
  readonly label: 'Picture Styles';
13358
13429
  readonly controls: {
@@ -1,96 +1,96 @@
1
1
  'use strict';
2
2
 
3
- var chunkXDTZVM5K_js = require('../chunk-XDTZVM5K.js');
4
- require('../chunk-RRT4LIRN.js');
5
- var chunkI2EV62KC_js = require('../chunk-I2EV62KC.js');
6
- var chunk73CSPIMU_js = require('../chunk-73CSPIMU.js');
7
- var chunkQFTHDPEA_js = require('../chunk-QFTHDPEA.js');
8
- require('../chunk-KPKO2ELT.js');
3
+ var chunkRK5UV5HL_js = require('../chunk-RK5UV5HL.js');
4
+ require('../chunk-XWO367ZG.js');
5
+ var chunkE6VYR3GM_js = require('../chunk-E6VYR3GM.js');
6
+ var chunkDI4YTG3J_js = require('../chunk-DI4YTG3J.js');
7
+ var chunk6ZR27XTL_js = require('../chunk-6ZR27XTL.js');
8
+ require('../chunk-HIYK7HPX.js');
9
9
  require('../chunk-4VNS5WPM.js');
10
10
 
11
11
 
12
12
 
13
13
  Object.defineProperty(exports, "CollaborationStatusIndicator", {
14
14
  enumerable: true,
15
- get: function () { return chunkXDTZVM5K_js.CollaborationStatusIndicator; }
15
+ get: function () { return chunkRK5UV5HL_js.CollaborationStatusIndicator; }
16
16
  });
17
17
  Object.defineProperty(exports, "PowerPointViewer", {
18
18
  enumerable: true,
19
- get: function () { return chunkXDTZVM5K_js.PowerPointViewer; }
19
+ get: function () { return chunkRK5UV5HL_js.PowerPointViewer; }
20
20
  });
21
21
  Object.defineProperty(exports, "UserAvatarBar", {
22
22
  enumerable: true,
23
- get: function () { return chunkXDTZVM5K_js.UserAvatarBar; }
23
+ get: function () { return chunkRK5UV5HL_js.UserAvatarBar; }
24
24
  });
25
25
  Object.defineProperty(exports, "CollaborationProvider", {
26
26
  enumerable: true,
27
- get: function () { return chunkI2EV62KC_js.CollaborationProvider; }
27
+ get: function () { return chunkE6VYR3GM_js.CollaborationProvider; }
28
28
  });
29
29
  Object.defineProperty(exports, "RemoteUserCursors", {
30
30
  enumerable: true,
31
- get: function () { return chunkI2EV62KC_js.RemoteUserCursors; }
31
+ get: function () { return chunkE6VYR3GM_js.RemoteUserCursors; }
32
32
  });
33
33
  Object.defineProperty(exports, "isAudienceTab", {
34
34
  enumerable: true,
35
- get: function () { return chunkI2EV62KC_js.isAudienceTab; }
35
+ get: function () { return chunkE6VYR3GM_js.isAudienceTab; }
36
36
  });
37
37
  Object.defineProperty(exports, "parseAudienceNonce", {
38
38
  enumerable: true,
39
- get: function () { return chunkI2EV62KC_js.parseAudienceNonce; }
39
+ get: function () { return chunkE6VYR3GM_js.parseAudienceNonce; }
40
40
  });
41
41
  Object.defineProperty(exports, "useCollaborativeHistory", {
42
42
  enumerable: true,
43
- get: function () { return chunkI2EV62KC_js.useCollaborativeHistory; }
43
+ get: function () { return chunkE6VYR3GM_js.useCollaborativeHistory; }
44
44
  });
45
45
  Object.defineProperty(exports, "useCollaborativeState", {
46
46
  enumerable: true,
47
- get: function () { return chunkI2EV62KC_js.useCollaborativeState; }
47
+ get: function () { return chunkE6VYR3GM_js.useCollaborativeState; }
48
48
  });
49
49
  Object.defineProperty(exports, "usePresenceTracking", {
50
50
  enumerable: true,
51
- get: function () { return chunkI2EV62KC_js.usePresenceTracking; }
51
+ get: function () { return chunkE6VYR3GM_js.usePresenceTracking; }
52
52
  });
53
53
  Object.defineProperty(exports, "useThemeSwitching", {
54
54
  enumerable: true,
55
- get: function () { return chunkI2EV62KC_js.useThemeSwitching; }
55
+ get: function () { return chunkE6VYR3GM_js.useThemeSwitching; }
56
56
  });
57
57
  Object.defineProperty(exports, "useYjsProvider", {
58
58
  enumerable: true,
59
- get: function () { return chunkI2EV62KC_js.useYjsProvider; }
59
+ get: function () { return chunkE6VYR3GM_js.useYjsProvider; }
60
60
  });
61
61
  Object.defineProperty(exports, "getAnimationInitialStyle", {
62
62
  enumerable: true,
63
- get: function () { return chunk73CSPIMU_js.getAnimationInitialStyle; }
63
+ get: function () { return chunkDI4YTG3J_js.getAnimationInitialStyle; }
64
64
  });
65
65
  Object.defineProperty(exports, "clearAudienceContent", {
66
66
  enumerable: true,
67
- get: function () { return chunkQFTHDPEA_js.clearAudienceContent; }
67
+ get: function () { return chunk6ZR27XTL_js.clearAudienceContent; }
68
68
  });
69
69
  Object.defineProperty(exports, "forgetSessionDeck", {
70
70
  enumerable: true,
71
- get: function () { return chunkQFTHDPEA_js.forgetSessionDeck; }
71
+ get: function () { return chunk6ZR27XTL_js.forgetSessionDeck; }
72
72
  });
73
73
  Object.defineProperty(exports, "getSessionTabId", {
74
74
  enumerable: true,
75
- get: function () { return chunkQFTHDPEA_js.getSessionTabId; }
75
+ get: function () { return chunk6ZR27XTL_js.getSessionTabId; }
76
76
  });
77
77
  Object.defineProperty(exports, "loadAudienceContent", {
78
78
  enumerable: true,
79
- get: function () { return chunkQFTHDPEA_js.loadAudienceContent; }
79
+ get: function () { return chunk6ZR27XTL_js.loadAudienceContent; }
80
80
  });
81
81
  Object.defineProperty(exports, "loadSessionDeck", {
82
82
  enumerable: true,
83
- get: function () { return chunkQFTHDPEA_js.loadSessionDeck; }
83
+ get: function () { return chunk6ZR27XTL_js.loadSessionDeck; }
84
84
  });
85
85
  Object.defineProperty(exports, "rememberSessionDeck", {
86
86
  enumerable: true,
87
- get: function () { return chunkQFTHDPEA_js.rememberSessionDeck; }
87
+ get: function () { return chunk6ZR27XTL_js.rememberSessionDeck; }
88
88
  });
89
89
  Object.defineProperty(exports, "restoreSessionDeck", {
90
90
  enumerable: true,
91
- get: function () { return chunkQFTHDPEA_js.restoreSessionDeck; }
91
+ get: function () { return chunk6ZR27XTL_js.restoreSessionDeck; }
92
92
  });
93
93
  Object.defineProperty(exports, "storeAudienceContent", {
94
94
  enumerable: true,
95
- get: function () { return chunkQFTHDPEA_js.storeAudienceContent; }
95
+ get: function () { return chunk6ZR27XTL_js.storeAudienceContent; }
96
96
  });
Binary file
Binary file
@@ -1,7 +1,7 @@
1
- export { CollaborationStatusIndicator, PowerPointViewer, UserAvatarBar } from '../chunk-NAL3FTKM.mjs';
2
- import '../chunk-R7FGWOEG.mjs';
3
- export { CollaborationProvider, RemoteUserCursors, isAudienceTab, parseAudienceNonce, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-HOIC3XAF.mjs';
4
- export { getAnimationInitialStyle } from '../chunk-YXRSLJEB.mjs';
5
- export { clearAudienceContent, forgetSessionDeck, getSessionTabId, loadAudienceContent, loadSessionDeck, rememberSessionDeck, restoreSessionDeck, storeAudienceContent } from '../chunk-36223DLG.mjs';
6
- import '../chunk-HDH4KFDK.mjs';
1
+ export { CollaborationStatusIndicator, PowerPointViewer, UserAvatarBar } from '../chunk-WSYKEPW6.mjs';
2
+ import '../chunk-ECKXYCP3.mjs';
3
+ export { CollaborationProvider, RemoteUserCursors, isAudienceTab, parseAudienceNonce, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-EPMT65EN.mjs';
4
+ export { getAnimationInitialStyle } from '../chunk-AJTFPTSN.mjs';
5
+ export { clearAudienceContent, forgetSessionDeck, getSessionTabId, loadAudienceContent, loadSessionDeck, rememberSessionDeck, restoreSessionDeck, storeAudienceContent } from '../chunk-UWVRB4Z5.mjs';
6
+ import '../chunk-55OLQ7HS.mjs';
7
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": "4.12.0",
3
+ "version": "4.14.0",
4
4
  "description": "pptx-viewer for React: a PowerPoint viewer and editor component to 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
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
Binary file
Binary file