pptx-react-viewer 1.16.2 → 1.17.1

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 (130) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/{Model3DScene-DI6FSWDL.mjs → Model3DScene-QHDYQXL2.mjs} +2 -2
  3. package/dist/Model3DScene-QHDYQXL2.mjs.br +0 -0
  4. package/dist/Model3DScene-QHDYQXL2.mjs.gz +0 -0
  5. package/dist/{Model3DScene-PE7L24QK.js → Model3DScene-YA4F63DT.js} +3 -3
  6. package/dist/Model3DScene-YA4F63DT.js.br +0 -0
  7. package/dist/Model3DScene-YA4F63DT.js.gz +0 -0
  8. package/dist/PowerPointViewer-C4d7SKZf.d.ts +21 -0
  9. package/dist/PowerPointViewer-C4d7SKZf.d.ts.map +1 -0
  10. package/dist/{SurfaceChart3DScene-NMLG3BQK.mjs → SurfaceChart3DScene-GUAS2NWQ.mjs} +2 -2
  11. package/dist/SurfaceChart3DScene-GUAS2NWQ.mjs.br +0 -0
  12. package/dist/SurfaceChart3DScene-GUAS2NWQ.mjs.gz +0 -0
  13. package/dist/{SurfaceChart3DScene-AJLD3VW6.js → SurfaceChart3DScene-TGNJHTJQ.js} +3 -3
  14. package/dist/SurfaceChart3DScene-TGNJHTJQ.js.br +0 -0
  15. package/dist/SurfaceChart3DScene-TGNJHTJQ.js.gz +0 -0
  16. package/dist/{chunk-HJQZJ3VE.mjs → chunk-5CD34U2V.mjs} +1 -1
  17. package/dist/chunk-5CD34U2V.mjs.br +0 -0
  18. package/dist/chunk-5CD34U2V.mjs.gz +0 -0
  19. package/dist/{chunk-46HNHBHF.mjs → chunk-G22EWPLH.mjs} +134 -4
  20. package/dist/chunk-G22EWPLH.mjs.br +0 -0
  21. package/dist/chunk-G22EWPLH.mjs.gz +0 -0
  22. package/dist/{chunk-JBCVQFWI.mjs → chunk-HN7CPQUG.mjs} +5 -5
  23. package/dist/chunk-HN7CPQUG.mjs.br +0 -0
  24. package/dist/chunk-HN7CPQUG.mjs.gz +0 -0
  25. package/dist/{chunk-WGLJ32FW.js → chunk-IZXN663G.js} +1 -1
  26. package/dist/chunk-IZXN663G.js.br +0 -0
  27. package/dist/chunk-IZXN663G.js.gz +0 -0
  28. package/dist/{chunk-WMRS37KQ.js → chunk-JWS3RQKN.js} +160 -28
  29. package/dist/chunk-JWS3RQKN.js.br +0 -0
  30. package/dist/chunk-JWS3RQKN.js.gz +0 -0
  31. package/dist/{chunk-YAQOTVZT.js → chunk-MGLRKGCH.js} +146 -66
  32. package/dist/chunk-MGLRKGCH.js.br +0 -0
  33. package/dist/chunk-MGLRKGCH.js.gz +0 -0
  34. package/dist/{chunk-DZF4BNRP.mjs → chunk-PCQH2UBR.mjs} +230 -232
  35. package/dist/chunk-PCQH2UBR.mjs.br +0 -0
  36. package/dist/chunk-PCQH2UBR.mjs.gz +0 -0
  37. package/dist/{chunk-MZYQUURK.js → chunk-SXCO5HHN.js} +438 -438
  38. package/dist/chunk-SXCO5HHN.js.br +0 -0
  39. package/dist/chunk-SXCO5HHN.js.gz +0 -0
  40. package/dist/{chunk-VRASDGWX.js → chunk-WH7YXV3I.js} +1026 -1028
  41. package/dist/chunk-WH7YXV3I.js.br +0 -0
  42. package/dist/chunk-WH7YXV3I.js.gz +0 -0
  43. package/dist/{chunk-X7ILBQEY.mjs → chunk-XRYREYXC.mjs} +146 -66
  44. package/dist/chunk-XRYREYXC.mjs.br +0 -0
  45. package/dist/chunk-XRYREYXC.mjs.gz +0 -0
  46. package/dist/{dist-VMFNUFUX.js → dist-2ZAH7U6U.js} +507 -507
  47. package/dist/dist-2ZAH7U6U.js.br +0 -0
  48. package/dist/dist-2ZAH7U6U.js.gz +0 -0
  49. package/dist/{dist-JJ2NI2O3.mjs → dist-MXDC6YTS.mjs} +1 -1
  50. package/dist/dist-MXDC6YTS.mjs.br +0 -0
  51. package/dist/dist-MXDC6YTS.mjs.gz +0 -0
  52. package/dist/hooks-unstable.d.ts +9683 -1886
  53. package/dist/hooks-unstable.d.ts.map +1 -0
  54. package/dist/hooks-unstable.js +75 -75
  55. package/dist/hooks-unstable.js.br +0 -0
  56. package/dist/hooks-unstable.js.gz +0 -0
  57. package/dist/hooks-unstable.mjs +4 -4
  58. package/dist/hooks-unstable.mjs.br +0 -0
  59. package/dist/hooks-unstable.mjs.gz +0 -0
  60. package/dist/i18n.d.ts +27 -1
  61. package/dist/i18n.d.ts.map +1 -0
  62. package/dist/i18n.js +3 -3
  63. package/dist/i18n.js.br +1 -1
  64. package/dist/i18n.js.gz +0 -0
  65. package/dist/i18n.mjs +1 -1
  66. package/dist/i18n.mjs.br +0 -0
  67. package/dist/i18n.mjs.gz +0 -0
  68. package/dist/index-XGt7MZpa.d.ts +607 -0
  69. package/dist/index-XGt7MZpa.d.ts.map +1 -0
  70. package/dist/index.d.ts +4753 -10
  71. package/dist/index.d.ts.map +1 -0
  72. package/dist/index.js +19 -19
  73. package/dist/index.js.br +0 -0
  74. package/dist/index.js.gz +0 -0
  75. package/dist/index.mjs +5 -5
  76. package/dist/index.mjs.br +0 -0
  77. package/dist/index.mjs.gz +0 -0
  78. package/dist/types-BK7Nt13M.d.ts +483 -0
  79. package/dist/types-BK7Nt13M.d.ts.map +1 -0
  80. package/dist/viewer/index.d.ts +8008 -88
  81. package/dist/viewer/index.d.ts.map +1 -0
  82. package/dist/viewer/index.js +20 -20
  83. package/dist/viewer/index.js.br +0 -0
  84. package/dist/viewer/index.js.gz +0 -0
  85. package/dist/viewer/index.mjs +5 -5
  86. package/dist/viewer/index.mjs.br +0 -0
  87. package/dist/viewer/index.mjs.gz +0 -0
  88. package/package.json +6 -5
  89. package/dist/Model3DScene-DI6FSWDL.mjs.br +0 -0
  90. package/dist/Model3DScene-DI6FSWDL.mjs.gz +0 -0
  91. package/dist/Model3DScene-PE7L24QK.js.br +0 -0
  92. package/dist/Model3DScene-PE7L24QK.js.gz +0 -0
  93. package/dist/PowerPointViewer-BsaUH3ZT.d.ts +0 -26
  94. package/dist/PowerPointViewer-Nxku67uL.d.mts +0 -26
  95. package/dist/SurfaceChart3DScene-AJLD3VW6.js.br +0 -0
  96. package/dist/SurfaceChart3DScene-AJLD3VW6.js.gz +0 -0
  97. package/dist/SurfaceChart3DScene-NMLG3BQK.mjs.br +0 -0
  98. package/dist/SurfaceChart3DScene-NMLG3BQK.mjs.gz +0 -0
  99. package/dist/chunk-46HNHBHF.mjs.br +0 -0
  100. package/dist/chunk-46HNHBHF.mjs.gz +0 -0
  101. package/dist/chunk-DZF4BNRP.mjs.br +0 -0
  102. package/dist/chunk-DZF4BNRP.mjs.gz +0 -0
  103. package/dist/chunk-HJQZJ3VE.mjs.br +0 -0
  104. package/dist/chunk-HJQZJ3VE.mjs.gz +0 -0
  105. package/dist/chunk-JBCVQFWI.mjs.br +0 -0
  106. package/dist/chunk-JBCVQFWI.mjs.gz +0 -0
  107. package/dist/chunk-MZYQUURK.js.br +0 -0
  108. package/dist/chunk-MZYQUURK.js.gz +0 -0
  109. package/dist/chunk-VRASDGWX.js.br +0 -0
  110. package/dist/chunk-VRASDGWX.js.gz +0 -0
  111. package/dist/chunk-WGLJ32FW.js.br +0 -0
  112. package/dist/chunk-WGLJ32FW.js.gz +0 -0
  113. package/dist/chunk-WMRS37KQ.js.br +0 -0
  114. package/dist/chunk-WMRS37KQ.js.gz +0 -0
  115. package/dist/chunk-X7ILBQEY.mjs.br +0 -0
  116. package/dist/chunk-X7ILBQEY.mjs.gz +0 -0
  117. package/dist/chunk-YAQOTVZT.js.br +0 -0
  118. package/dist/chunk-YAQOTVZT.js.gz +0 -0
  119. package/dist/dist-JJ2NI2O3.mjs.br +0 -0
  120. package/dist/dist-JJ2NI2O3.mjs.gz +0 -0
  121. package/dist/dist-VMFNUFUX.js.br +0 -0
  122. package/dist/dist-VMFNUFUX.js.gz +0 -0
  123. package/dist/hooks-unstable.d.mts +0 -2300
  124. package/dist/i18n.d.mts +0 -1
  125. package/dist/index.d.mts +0 -46
  126. package/dist/types-ui-NG29h55h.d.mts +0 -712
  127. package/dist/types-ui-NG29h55h.d.ts +0 -712
  128. package/dist/usePresenterWindow-DToCijGy.d.ts +0 -1619
  129. package/dist/usePresenterWindow-DeTm-unp.d.mts +0 -1619
  130. package/dist/viewer/index.d.mts +0 -129
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/viewer/hooks/presentation-mode/audience-content-store.ts","../../src/viewer/components/collaboration/CollaborationProvider.tsx","../../src/viewer/components/collaboration/RemoteUserCursors.tsx","../../src/viewer/components/collaboration/UserAvatarBar.tsx","../../src/viewer/components/collaboration/CollaborationStatusIndicator.tsx"],"mappings":";;;;;;;;;;;;;;;;;iBA+CsB,qBAAqB,SAAS,cAAc,aAAa;;;;;iBAwBzD,uBAAuB,QAAQ;;;;iBA4C/B,wBAAwB;;;UCxE7B;;EAEhB,SAAS;EACT;EACA;EACA,UAAU,MAAM;;iBAGD,wBACf,QACA,aACA,cACA,YACE,6BAA6B,MAAM;;;UCtCrB;;EAEhB,aAAa;;EAEb;;EAEA;;EAEA;;iBAOe,oBACf,aACA,kBACA,aACA,gBACE,yBAAyB,MAAM;;;UCRjB;;EAEhB,aAAa;;EAEb;;EAEA;;EAEA;;EAEA,QAAQ;;EAER;;iBAqDe,gBACf,aACA,eACA,gBACA,iBACA,QACA,cACE,qBAAqB,MAAM;;;UCrFb;;EAEhB,QAAQ;;EAER;;EAEA;;iBAkCe,+BACf,QACA,gBACA,WACE,oCAAoC,MAAM"}
@@ -1,72 +1,72 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-IKBO6CZC.js');
4
- var chunkVRASDGWX_js = require('../chunk-VRASDGWX.js');
5
- var chunkMZYQUURK_js = require('../chunk-MZYQUURK.js');
6
- require('../chunk-WMRS37KQ.js');
7
- require('../chunk-WGLJ32FW.js');
8
- require('../chunk-YAQOTVZT.js');
4
+ var chunkWH7YXV3I_js = require('../chunk-WH7YXV3I.js');
5
+ var chunkSXCO5HHN_js = require('../chunk-SXCO5HHN.js');
6
+ require('../chunk-JWS3RQKN.js');
7
+ require('../chunk-IZXN663G.js');
8
+ require('../chunk-MGLRKGCH.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 chunkVRASDGWX_js.CollaborationProvider; }
15
+ get: function () { return chunkWH7YXV3I_js.CollaborationProvider; }
16
16
  });
17
17
  Object.defineProperty(exports, "CollaborationStatusIndicator", {
18
18
  enumerable: true,
19
- get: function () { return chunkVRASDGWX_js.CollaborationStatusIndicator; }
19
+ get: function () { return chunkWH7YXV3I_js.CollaborationStatusIndicator; }
20
20
  });
21
21
  Object.defineProperty(exports, "PowerPointViewer", {
22
22
  enumerable: true,
23
- get: function () { return chunkVRASDGWX_js.PowerPointViewer; }
23
+ get: function () { return chunkWH7YXV3I_js.PowerPointViewer; }
24
24
  });
25
25
  Object.defineProperty(exports, "RemoteUserCursors", {
26
26
  enumerable: true,
27
- get: function () { return chunkVRASDGWX_js.RemoteUserCursors; }
27
+ get: function () { return chunkWH7YXV3I_js.RemoteUserCursors; }
28
28
  });
29
29
  Object.defineProperty(exports, "UserAvatarBar", {
30
30
  enumerable: true,
31
- get: function () { return chunkVRASDGWX_js.UserAvatarBar; }
31
+ get: function () { return chunkWH7YXV3I_js.UserAvatarBar; }
32
32
  });
33
33
  Object.defineProperty(exports, "clearAudienceContent", {
34
34
  enumerable: true,
35
- get: function () { return chunkMZYQUURK_js.clearAudienceContent; }
35
+ get: function () { return chunkSXCO5HHN_js.clearAudienceContent; }
36
36
  });
37
37
  Object.defineProperty(exports, "getAnimationInitialStyle", {
38
38
  enumerable: true,
39
- get: function () { return chunkMZYQUURK_js.getAnimationInitialStyle; }
39
+ get: function () { return chunkSXCO5HHN_js.getAnimationInitialStyle; }
40
40
  });
41
41
  Object.defineProperty(exports, "isAudienceTab", {
42
42
  enumerable: true,
43
- get: function () { return chunkMZYQUURK_js.isAudienceTab; }
43
+ get: function () { return chunkSXCO5HHN_js.isAudienceTab; }
44
44
  });
45
45
  Object.defineProperty(exports, "loadAudienceContent", {
46
46
  enumerable: true,
47
- get: function () { return chunkMZYQUURK_js.loadAudienceContent; }
47
+ get: function () { return chunkSXCO5HHN_js.loadAudienceContent; }
48
48
  });
49
49
  Object.defineProperty(exports, "storeAudienceContent", {
50
50
  enumerable: true,
51
- get: function () { return chunkMZYQUURK_js.storeAudienceContent; }
51
+ get: function () { return chunkSXCO5HHN_js.storeAudienceContent; }
52
52
  });
53
53
  Object.defineProperty(exports, "useCollaborativeHistory", {
54
54
  enumerable: true,
55
- get: function () { return chunkMZYQUURK_js.useCollaborativeHistory; }
55
+ get: function () { return chunkSXCO5HHN_js.useCollaborativeHistory; }
56
56
  });
57
57
  Object.defineProperty(exports, "useCollaborativeState", {
58
58
  enumerable: true,
59
- get: function () { return chunkMZYQUURK_js.useCollaborativeState; }
59
+ get: function () { return chunkSXCO5HHN_js.useCollaborativeState; }
60
60
  });
61
61
  Object.defineProperty(exports, "usePresenceTracking", {
62
62
  enumerable: true,
63
- get: function () { return chunkMZYQUURK_js.usePresenceTracking; }
63
+ get: function () { return chunkSXCO5HHN_js.usePresenceTracking; }
64
64
  });
65
65
  Object.defineProperty(exports, "useThemeSwitching", {
66
66
  enumerable: true,
67
- get: function () { return chunkMZYQUURK_js.useThemeSwitching; }
67
+ get: function () { return chunkSXCO5HHN_js.useThemeSwitching; }
68
68
  });
69
69
  Object.defineProperty(exports, "useYjsProvider", {
70
70
  enumerable: true,
71
- get: function () { return chunkMZYQUURK_js.useYjsProvider; }
71
+ get: function () { return chunkSXCO5HHN_js.useYjsProvider; }
72
72
  });
Binary file
Binary file
@@ -1,7 +1,7 @@
1
1
  import '../chunk-T5U6P2JH.mjs';
2
- export { CollaborationProvider, CollaborationStatusIndicator, PowerPointViewer, RemoteUserCursors, UserAvatarBar } from '../chunk-DZF4BNRP.mjs';
3
- export { clearAudienceContent, getAnimationInitialStyle, isAudienceTab, loadAudienceContent, storeAudienceContent, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-JBCVQFWI.mjs';
4
- import '../chunk-46HNHBHF.mjs';
5
- import '../chunk-HJQZJ3VE.mjs';
6
- import '../chunk-X7ILBQEY.mjs';
2
+ export { CollaborationProvider, CollaborationStatusIndicator, PowerPointViewer, RemoteUserCursors, UserAvatarBar } from '../chunk-PCQH2UBR.mjs';
3
+ export { clearAudienceContent, getAnimationInitialStyle, isAudienceTab, loadAudienceContent, storeAudienceContent, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-HN7CPQUG.mjs';
4
+ import '../chunk-G22EWPLH.mjs';
5
+ import '../chunk-5CD34U2V.mjs';
6
+ import '../chunk-XRYREYXC.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.16.2",
3
+ "version": "1.17.1",
4
4
  "description": "React PowerPoint viewer and editor component: render, edit, and export PPTX slides in the browser.",
5
5
  "keywords": [
6
6
  "editor",
@@ -64,7 +64,7 @@
64
64
  "./theme.css": "./src/styles/theme.css"
65
65
  },
66
66
  "scripts": {
67
- "build": "tsup && npx @tailwindcss/cli -i src/styles/pptx-viewer.css -o dist/pptx-viewer.css --minify && node ../../scripts/compress-dist.mjs dist",
67
+ "build": "tsup && tsdown && node ../../scripts/merge-declarations.mjs && node ../../scripts/bundle-declarations.mjs index viewer/index i18n hooks-unstable && node ../../scripts/merge-declarations.mjs .types-bundle && npx @tailwindcss/cli -i src/styles/pptx-viewer.css -o dist/pptx-viewer.css --minify && node ../../scripts/compress-dist.mjs dist",
68
68
  "build:css": "npx @tailwindcss/cli -i src/styles/pptx-viewer.css -o dist/pptx-viewer.css --minify",
69
69
  "dev": "tsup --watch",
70
70
  "typecheck": "tsc --noEmit --pretty",
@@ -74,8 +74,8 @@
74
74
  },
75
75
  "dependencies": {
76
76
  "clsx": "^2.1.1",
77
- "dompurify": "^3.4.11",
78
- "html2canvas-pro": "^2.0.4",
77
+ "dompurify": "^3.4.12",
78
+ "html2canvas-pro": "^2.2.3",
79
79
  "tailwind-merge": "^3.6.0"
80
80
  },
81
81
  "devDependencies": {
@@ -84,8 +84,9 @@
84
84
  "@types/react": "^19.2.17",
85
85
  "@types/react-dom": "^19.2.3",
86
86
  "tailwindcss": "^4.3.2",
87
+ "tsdown": "^0.22.7",
87
88
  "tsup": "^8.5.1",
88
- "typescript": "^6.0.3",
89
+ "typescript": "^7.0.2",
89
90
  "vitest": "^4.1.9",
90
91
  "y-webrtc": "^10.3.0",
91
92
  "y-websocket": "^3.0.0",
Binary file
Binary file
Binary file
Binary file
@@ -1,26 +0,0 @@
1
- import { g, V } from './presentation-BfnrtJV1.js';
2
- import * as React from 'react';
3
- import React__default from 'react';
4
- import { b as PowerPointViewerProps, a as PowerPointViewerHandle } from './types-ui-NG29h55h.js';
5
-
6
- /**
7
- * Thin adapter shim: the initial-style resolution now lives in
8
- * `pptx-viewer-shared` (`render/animation-effects`). Shared returns a neutral
9
- * `AnimationStyle` (camelCase inline-style map); these wrappers re-type the
10
- * result as `React.CSSProperties` so React consumers/tests are unchanged.
11
- */
12
-
13
- declare function getAnimationInitialStyle(preset: g | undefined, nativeAnimation?: V): React__default.CSSProperties;
14
-
15
- /**
16
- * Root React component for the PowerPoint viewer/editor.
17
- *
18
- * Accepts binary `.pptx` content and renders a full-featured editor with
19
- * slide canvas, toolbar, inspector panels, presentation mode, and more.
20
- *
21
- * Uses `forwardRef` to expose a `PowerPointViewerHandle` for imperative
22
- * access (e.g. serialising the current content for saving).
23
- */
24
- declare const PowerPointViewer: React.ForwardRefExoticComponent<PowerPointViewerProps & React.RefAttributes<PowerPointViewerHandle>>;
25
-
26
- export { PowerPointViewer as P, getAnimationInitialStyle as g };
@@ -1,26 +0,0 @@
1
- import { g, V } from './presentation-BfnrtJV1.js';
2
- import * as React from 'react';
3
- import React__default from 'react';
4
- import { b as PowerPointViewerProps, a as PowerPointViewerHandle } from './types-ui-NG29h55h.mjs';
5
-
6
- /**
7
- * Thin adapter shim: the initial-style resolution now lives in
8
- * `pptx-viewer-shared` (`render/animation-effects`). Shared returns a neutral
9
- * `AnimationStyle` (camelCase inline-style map); these wrappers re-type the
10
- * result as `React.CSSProperties` so React consumers/tests are unchanged.
11
- */
12
-
13
- declare function getAnimationInitialStyle(preset: g | undefined, nativeAnimation?: V): React__default.CSSProperties;
14
-
15
- /**
16
- * Root React component for the PowerPoint viewer/editor.
17
- *
18
- * Accepts binary `.pptx` content and renders a full-featured editor with
19
- * slide canvas, toolbar, inspector panels, presentation mode, and more.
20
- *
21
- * Uses `forwardRef` to expose a `PowerPointViewerHandle` for imperative
22
- * access (e.g. serialising the current content for saving).
23
- */
24
- declare const PowerPointViewer: React.ForwardRefExoticComponent<PowerPointViewerProps & React.RefAttributes<PowerPointViewerHandle>>;
25
-
26
- export { PowerPointViewer as P, getAnimationInitialStyle as g };
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