pptx-react-viewer 1.16.2 → 1.17.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 (114) hide show
  1. package/CHANGELOG.md +2 -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-MZYQUURK.js → chunk-3P6O7ZDM.js} +420 -420
  17. package/dist/chunk-3P6O7ZDM.js.br +0 -0
  18. package/dist/chunk-3P6O7ZDM.js.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-WMRS37KQ.js → chunk-JWS3RQKN.js} +160 -28
  23. package/dist/chunk-JWS3RQKN.js.br +0 -0
  24. package/dist/chunk-JWS3RQKN.js.gz +0 -0
  25. package/dist/{chunk-JBCVQFWI.mjs → chunk-LLHFNGAF.mjs} +4 -4
  26. package/dist/chunk-LLHFNGAF.mjs.br +0 -0
  27. package/dist/chunk-LLHFNGAF.mjs.gz +0 -0
  28. package/dist/{chunk-DZF4BNRP.mjs → chunk-LNSHC2Z5.mjs} +117 -156
  29. package/dist/chunk-LNSHC2Z5.mjs.br +0 -0
  30. package/dist/chunk-LNSHC2Z5.mjs.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-X7ILBQEY.mjs → chunk-XRYREYXC.mjs} +146 -66
  35. package/dist/chunk-XRYREYXC.mjs.br +0 -0
  36. package/dist/chunk-XRYREYXC.mjs.gz +0 -0
  37. package/dist/{chunk-VRASDGWX.js → chunk-XW5OMXW6.js} +915 -954
  38. package/dist/chunk-XW5OMXW6.js.br +0 -0
  39. package/dist/chunk-XW5OMXW6.js.gz +0 -0
  40. package/dist/{dist-VMFNUFUX.js → dist-2ZAH7U6U.js} +507 -507
  41. package/dist/dist-2ZAH7U6U.js.br +0 -0
  42. package/dist/dist-2ZAH7U6U.js.gz +0 -0
  43. package/dist/{dist-JJ2NI2O3.mjs → dist-MXDC6YTS.mjs} +1 -1
  44. package/dist/dist-MXDC6YTS.mjs.br +0 -0
  45. package/dist/dist-MXDC6YTS.mjs.gz +0 -0
  46. package/dist/hooks-unstable.d.ts +9683 -1886
  47. package/dist/hooks-unstable.d.ts.map +1 -0
  48. package/dist/hooks-unstable.js +74 -74
  49. package/dist/hooks-unstable.js.br +0 -0
  50. package/dist/hooks-unstable.js.gz +0 -0
  51. package/dist/hooks-unstable.mjs +3 -3
  52. package/dist/hooks-unstable.mjs.br +0 -0
  53. package/dist/hooks-unstable.mjs.gz +0 -0
  54. package/dist/i18n.d.ts +27 -1
  55. package/dist/i18n.d.ts.map +1 -0
  56. package/dist/index-XGt7MZpa.d.ts +607 -0
  57. package/dist/index-XGt7MZpa.d.ts.map +1 -0
  58. package/dist/index.d.ts +4753 -10
  59. package/dist/index.d.ts.map +1 -0
  60. package/dist/index.js +18 -18
  61. package/dist/index.js.br +0 -0
  62. package/dist/index.js.gz +0 -0
  63. package/dist/index.mjs +4 -4
  64. package/dist/index.mjs.br +0 -0
  65. package/dist/index.mjs.gz +0 -0
  66. package/dist/types-BK7Nt13M.d.ts +483 -0
  67. package/dist/types-BK7Nt13M.d.ts.map +1 -0
  68. package/dist/viewer/index.d.ts +8008 -88
  69. package/dist/viewer/index.d.ts.map +1 -0
  70. package/dist/viewer/index.js +19 -19
  71. package/dist/viewer/index.js.br +0 -0
  72. package/dist/viewer/index.js.gz +0 -0
  73. package/dist/viewer/index.mjs +4 -4
  74. package/dist/viewer/index.mjs.br +0 -0
  75. package/dist/viewer/index.mjs.gz +0 -0
  76. package/package.json +6 -5
  77. package/dist/Model3DScene-DI6FSWDL.mjs.br +0 -0
  78. package/dist/Model3DScene-DI6FSWDL.mjs.gz +0 -0
  79. package/dist/Model3DScene-PE7L24QK.js.br +0 -0
  80. package/dist/Model3DScene-PE7L24QK.js.gz +0 -0
  81. package/dist/PowerPointViewer-BsaUH3ZT.d.ts +0 -26
  82. package/dist/PowerPointViewer-Nxku67uL.d.mts +0 -26
  83. package/dist/SurfaceChart3DScene-AJLD3VW6.js.br +0 -0
  84. package/dist/SurfaceChart3DScene-AJLD3VW6.js.gz +0 -0
  85. package/dist/SurfaceChart3DScene-NMLG3BQK.mjs.br +0 -0
  86. package/dist/SurfaceChart3DScene-NMLG3BQK.mjs.gz +0 -0
  87. package/dist/chunk-46HNHBHF.mjs.br +0 -0
  88. package/dist/chunk-46HNHBHF.mjs.gz +0 -0
  89. package/dist/chunk-DZF4BNRP.mjs.br +0 -0
  90. package/dist/chunk-DZF4BNRP.mjs.gz +0 -0
  91. package/dist/chunk-JBCVQFWI.mjs.br +0 -0
  92. package/dist/chunk-JBCVQFWI.mjs.gz +0 -0
  93. package/dist/chunk-MZYQUURK.js.br +0 -0
  94. package/dist/chunk-MZYQUURK.js.gz +0 -0
  95. package/dist/chunk-VRASDGWX.js.br +0 -0
  96. package/dist/chunk-VRASDGWX.js.gz +0 -0
  97. package/dist/chunk-WMRS37KQ.js.br +0 -0
  98. package/dist/chunk-WMRS37KQ.js.gz +0 -0
  99. package/dist/chunk-X7ILBQEY.mjs.br +0 -0
  100. package/dist/chunk-X7ILBQEY.mjs.gz +0 -0
  101. package/dist/chunk-YAQOTVZT.js.br +0 -0
  102. package/dist/chunk-YAQOTVZT.js.gz +0 -0
  103. package/dist/dist-JJ2NI2O3.mjs.br +0 -0
  104. package/dist/dist-JJ2NI2O3.mjs.gz +0 -0
  105. package/dist/dist-VMFNUFUX.js.br +0 -0
  106. package/dist/dist-VMFNUFUX.js.gz +0 -0
  107. package/dist/hooks-unstable.d.mts +0 -2300
  108. package/dist/i18n.d.mts +0 -1
  109. package/dist/index.d.mts +0 -46
  110. package/dist/types-ui-NG29h55h.d.mts +0 -712
  111. package/dist/types-ui-NG29h55h.d.ts +0 -712
  112. package/dist/usePresenterWindow-DToCijGy.d.ts +0 -1619
  113. package/dist/usePresenterWindow-DeTm-unp.d.mts +0 -1619
  114. 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');
4
+ var chunkXW5OMXW6_js = require('../chunk-XW5OMXW6.js');
5
+ var chunk3P6O7ZDM_js = require('../chunk-3P6O7ZDM.js');
6
+ require('../chunk-JWS3RQKN.js');
7
7
  require('../chunk-WGLJ32FW.js');
8
- require('../chunk-YAQOTVZT.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 chunkXW5OMXW6_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 chunkXW5OMXW6_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 chunkXW5OMXW6_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 chunkXW5OMXW6_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 chunkXW5OMXW6_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 chunk3P6O7ZDM_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 chunk3P6O7ZDM_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 chunk3P6O7ZDM_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 chunk3P6O7ZDM_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 chunk3P6O7ZDM_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 chunk3P6O7ZDM_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 chunk3P6O7ZDM_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 chunk3P6O7ZDM_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 chunk3P6O7ZDM_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 chunk3P6O7ZDM_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';
2
+ export { CollaborationProvider, CollaborationStatusIndicator, PowerPointViewer, RemoteUserCursors, UserAvatarBar } from '../chunk-LNSHC2Z5.mjs';
3
+ export { clearAudienceContent, getAnimationInitialStyle, isAudienceTab, loadAudienceContent, storeAudienceContent, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-LLHFNGAF.mjs';
4
+ import '../chunk-G22EWPLH.mjs';
5
5
  import '../chunk-HJQZJ3VE.mjs';
6
- import '../chunk-X7ILBQEY.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.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",
@@ -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