pptx-react-viewer 4.72.0 → 4.73.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 (58) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/ai.d.ts +15 -0
  3. package/dist/{chunk-TBG6UJHU.mjs → chunk-BGWFZCRX.mjs} +2 -2
  4. package/dist/chunk-BGWFZCRX.mjs.br +0 -0
  5. package/dist/chunk-BGWFZCRX.mjs.gz +0 -0
  6. package/dist/{chunk-DHCM6STL.mjs → chunk-CRC3V4UG.mjs} +1 -1
  7. package/dist/chunk-CRC3V4UG.mjs.br +0 -0
  8. package/dist/{chunk-DHCM6STL.mjs.gz → chunk-CRC3V4UG.mjs.gz} +0 -0
  9. package/dist/{chunk-BYPHHRBZ.js → chunk-XG4WSJ4O.js} +1 -1
  10. package/dist/chunk-XG4WSJ4O.js.br +0 -0
  11. package/dist/{chunk-BYPHHRBZ.js.gz → chunk-XG4WSJ4O.js.gz} +0 -0
  12. package/dist/{chunk-HQH274BM.js → chunk-YLJSLYQS.js} +122 -122
  13. package/dist/chunk-YLJSLYQS.js.br +0 -0
  14. package/dist/chunk-YLJSLYQS.js.gz +0 -0
  15. package/dist/index.d.ts +3 -3
  16. package/dist/index.js +24 -24
  17. package/dist/index.js.br +0 -0
  18. package/dist/index.js.gz +0 -0
  19. package/dist/index.mjs +2 -2
  20. package/dist/index.mjs.br +0 -0
  21. package/dist/index.mjs.gz +0 -0
  22. package/dist/internals.d.ts +16 -16
  23. package/dist/internals.js +80 -80
  24. package/dist/internals.js.br +0 -0
  25. package/dist/internals.js.gz +0 -0
  26. package/dist/internals.mjs +1 -1
  27. package/dist/internals.mjs.br +0 -0
  28. package/dist/internals.mjs.gz +0 -0
  29. package/dist/pptx-viewer-canvas.css +2 -2
  30. package/dist/pptx-viewer-canvas.css.br +0 -0
  31. package/dist/pptx-viewer-canvas.css.gz +0 -0
  32. package/dist/pptx-viewer.css +2 -2
  33. package/dist/pptx-viewer.css.br +0 -0
  34. package/dist/pptx-viewer.css.gz +0 -0
  35. package/dist/{three.module-MBFHAT6M.js → three.module-JBKIR2OB.js} +1369 -1174
  36. package/dist/three.module-JBKIR2OB.js.br +0 -0
  37. package/dist/three.module-JBKIR2OB.js.gz +0 -0
  38. package/dist/{three.module-EBJVANGB.mjs → three.module-PMXOC26V.mjs} +1370 -1174
  39. package/dist/three.module-PMXOC26V.mjs.br +0 -0
  40. package/dist/three.module-PMXOC26V.mjs.gz +0 -0
  41. package/dist/viewer/index.d.ts +12 -12
  42. package/dist/viewer/index.js +18 -18
  43. package/dist/viewer/index.js.br +0 -0
  44. package/dist/viewer/index.js.gz +0 -0
  45. package/dist/viewer/index.mjs +2 -2
  46. package/dist/viewer/index.mjs.br +0 -0
  47. package/dist/viewer/index.mjs.gz +0 -0
  48. package/package.json +10 -10
  49. package/dist/chunk-BYPHHRBZ.js.br +0 -0
  50. package/dist/chunk-DHCM6STL.mjs.br +0 -0
  51. package/dist/chunk-HQH274BM.js.br +0 -0
  52. package/dist/chunk-HQH274BM.js.gz +0 -0
  53. package/dist/chunk-TBG6UJHU.mjs.br +0 -0
  54. package/dist/chunk-TBG6UJHU.mjs.gz +0 -0
  55. package/dist/three.module-EBJVANGB.mjs.br +0 -0
  56. package/dist/three.module-EBJVANGB.mjs.gz +0 -0
  57. package/dist/three.module-MBFHAT6M.js.br +0 -0
  58. package/dist/three.module-MBFHAT6M.js.gz +0 -0
@@ -1,16 +1,16 @@
1
+ import * as React from 'react';
2
+ import React__default, { ReactNode, ReactElement, RefObject } from 'react';
1
3
  import * as ooxml_ui_pptx from 'ooxml-ui/pptx';
2
4
  import { CollaborationRole, CollaborationConfig, HistoryTheme, ViewportFitOptions, ViewerFontSource, CanvasSize, DocumentStorage, CloudFileProvider, ViewerAutosaveStatus, AutosaveRecord, ConnectionStatus, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, CollaborationInput, GoogleFontsOption, ListConversionScope, ToolbarActionId, RibbonAddInTab, ViewerCustomization, PptxLoadLimits, PowerPointViewerAPI, ViewerCustomizationApi, BorrowedCollaborationAwareness } from 'ooxml-ui/pptx';
3
5
  export { CollaborationConfig, CollaborationRole, ElementClipboardPayload, ExternalCollaborationAwareness, ExternalCollaborationSession, ExternalCollaborationSnapshot, SessionDeck, ShapeAdjustmentDragState, ShapeAdjustmentHandleDescriptor, ViewerMode, clearAudienceContent, forgetSessionDeck, getSessionTabId, loadAudienceContent, loadSessionDeck, rememberSessionDeck, restoreSessionDeck, storeAudienceContent } from 'ooxml-ui/pptx';
4
- import * as React from 'react';
5
- import React__default, { ReactNode, ReactElement, RefObject } from 'react';
6
+ import { PptxAnimationPreset, ConnectorArrowType, PptxSlide, PptxElement, XmlObject, PptxCoreProperties, PptxElementAnimation, ShapeStyle, PptxSlideTransition, StrokeDashType, PptxNativeAnimation, PptxThemePreset, PptxThemeColorScheme, PptxThemeFontScheme, PptxHandler, PptxData } from 'ooxml-core/pptx';
7
+ import { CollaborationWriteBackState, CollaborationState } from 'ooxml-core/collab';
8
+ export { CollaborationState } from 'ooxml-core/collab';
6
9
  import { PptxAiConfig } from 'ooxml-ui/pptx/ai';
7
10
  export { PptxAiBridge, PptxAiConfig, PptxAiConnection, PptxAiContextStrategy, PptxAiToolName, PptxAiWritePolicy } from 'ooxml-ui/pptx/ai';
8
11
  import { PptxAiAssistant } from 'ooxml-ui/pptx/ai/host';
9
12
  export { PptxAiAssistant } from 'ooxml-ui/pptx/ai/host';
10
13
  import { LocaleCatalogEntry } from 'ooxml-ui/pptx/i18n';
11
- import { PptxAnimationPreset, ConnectorArrowType, PptxSlide, PptxElement, XmlObject, PptxCoreProperties, PptxElementAnimation, ShapeStyle, PptxSlideTransition, StrokeDashType, PptxNativeAnimation, PptxThemePreset, PptxThemeColorScheme, PptxThemeFontScheme, PptxHandler, PptxData } from 'ooxml-core/pptx';
12
- import { CollaborationWriteBackState, CollaborationState } from 'ooxml-core/collab';
13
- export { CollaborationState } from 'ooxml-core/collab';
14
14
  import * as Y from 'yjs';
15
15
  import { Doc } from 'yjs';
16
16
 
@@ -812,6 +812,13 @@ interface PptxI18nProviderProps {
812
812
  */
813
813
  declare function PptxI18nProvider({ translate, locale, children }: PptxI18nProviderProps): ReactElement;
814
814
 
815
+ /**
816
+ * Parse the session nonce from the current page URL hash. Returns null if the
817
+ * hash is not in the expected `#pptx-audience&nonce=<uuid>` form.
818
+ */
819
+ declare function parseAudienceNonce(): string | null;
820
+ /** Returns true if the current page was opened as an audience tab. */
821
+ declare function isAudienceTab(): boolean;
815
822
  interface UseThemeSwitchingInput {
816
823
  /** Ref to the PptxHandler instance. */
817
824
  handlerRef: RefObject<PptxHandler | null>;
@@ -1074,13 +1081,6 @@ interface UseCollaborativeHistoryResult {
1074
1081
  canRedo: boolean;
1075
1082
  }
1076
1083
  declare function useCollaborativeHistory({ localClientId: _localClientId, handleUndo, handleRedo, canUndo, canRedo }: UseCollaborativeHistoryInput): UseCollaborativeHistoryResult;
1077
- /**
1078
- * Parse the session nonce from the current page URL hash. Returns null if the
1079
- * hash is not in the expected `#pptx-audience&nonce=<uuid>` form.
1080
- */
1081
- declare function parseAudienceNonce(): string | null;
1082
- /** Returns true if the current page was opened as an audience tab. */
1083
- declare function isAudienceTab(): boolean;
1084
1084
 
1085
1085
  interface CollaborationProviderProps {
1086
1086
  /** Collaboration config, or `undefined`/omitted while no session is active. */
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkHQH274BM_js = require('../chunk-HQH274BM.js');
3
+ var chunkYLJSLYQS_js = require('../chunk-YLJSLYQS.js');
4
4
  require('../chunk-LVEFHZ76.js');
5
- var chunkBYPHHRBZ_js = require('../chunk-BYPHHRBZ.js');
5
+ var chunkXG4WSJ4O_js = require('../chunk-XG4WSJ4O.js');
6
6
  var chunkP2COO2QO_js = require('../chunk-P2COO2QO.js');
7
7
  require('../chunk-PIRHQTI4.js');
8
8
  var pptx = require('ooxml-ui/pptx');
@@ -11,67 +11,67 @@ var pptx = require('ooxml-ui/pptx');
11
11
 
12
12
  Object.defineProperty(exports, "CollaborationStatusIndicator", {
13
13
  enumerable: true,
14
- get: function () { return chunkHQH274BM_js.CollaborationStatusIndicator; }
14
+ get: function () { return chunkYLJSLYQS_js.CollaborationStatusIndicator; }
15
15
  });
16
16
  Object.defineProperty(exports, "PowerPointViewer", {
17
17
  enumerable: true,
18
- get: function () { return chunkHQH274BM_js.PowerPointViewer; }
18
+ get: function () { return chunkYLJSLYQS_js.PowerPointViewer; }
19
19
  });
20
20
  Object.defineProperty(exports, "PptxI18nProvider", {
21
21
  enumerable: true,
22
- get: function () { return chunkHQH274BM_js.PptxI18nProvider; }
22
+ get: function () { return chunkYLJSLYQS_js.PptxI18nProvider; }
23
23
  });
24
24
  Object.defineProperty(exports, "UserAvatarBar", {
25
25
  enumerable: true,
26
- get: function () { return chunkHQH274BM_js.UserAvatarBar; }
26
+ get: function () { return chunkYLJSLYQS_js.UserAvatarBar; }
27
27
  });
28
28
  Object.defineProperty(exports, "CollaborationProvider", {
29
29
  enumerable: true,
30
- get: function () { return chunkBYPHHRBZ_js.CollaborationProvider; }
30
+ get: function () { return chunkXG4WSJ4O_js.CollaborationProvider; }
31
31
  });
32
32
  Object.defineProperty(exports, "RemoteUserCursors", {
33
33
  enumerable: true,
34
- get: function () { return chunkBYPHHRBZ_js.RemoteUserCursors; }
34
+ get: function () { return chunkXG4WSJ4O_js.RemoteUserCursors; }
35
35
  });
36
36
  Object.defineProperty(exports, "clearAudienceContent", {
37
37
  enumerable: true,
38
- get: function () { return chunkBYPHHRBZ_js.clearAudienceContent; }
38
+ get: function () { return chunkXG4WSJ4O_js.clearAudienceContent; }
39
39
  });
40
40
  Object.defineProperty(exports, "isAudienceTab", {
41
41
  enumerable: true,
42
- get: function () { return chunkBYPHHRBZ_js.isAudienceTab; }
42
+ get: function () { return chunkXG4WSJ4O_js.isAudienceTab; }
43
43
  });
44
44
  Object.defineProperty(exports, "loadAudienceContent", {
45
45
  enumerable: true,
46
- get: function () { return chunkBYPHHRBZ_js.loadAudienceContent; }
46
+ get: function () { return chunkXG4WSJ4O_js.loadAudienceContent; }
47
47
  });
48
48
  Object.defineProperty(exports, "parseAudienceNonce", {
49
49
  enumerable: true,
50
- get: function () { return chunkBYPHHRBZ_js.parseAudienceNonce; }
50
+ get: function () { return chunkXG4WSJ4O_js.parseAudienceNonce; }
51
51
  });
52
52
  Object.defineProperty(exports, "storeAudienceContent", {
53
53
  enumerable: true,
54
- get: function () { return chunkBYPHHRBZ_js.storeAudienceContent; }
54
+ get: function () { return chunkXG4WSJ4O_js.storeAudienceContent; }
55
55
  });
56
56
  Object.defineProperty(exports, "useCollaborativeHistory", {
57
57
  enumerable: true,
58
- get: function () { return chunkBYPHHRBZ_js.useCollaborativeHistory; }
58
+ get: function () { return chunkXG4WSJ4O_js.useCollaborativeHistory; }
59
59
  });
60
60
  Object.defineProperty(exports, "useCollaborativeState", {
61
61
  enumerable: true,
62
- get: function () { return chunkBYPHHRBZ_js.useCollaborativeState; }
62
+ get: function () { return chunkXG4WSJ4O_js.useCollaborativeState; }
63
63
  });
64
64
  Object.defineProperty(exports, "usePresenceTracking", {
65
65
  enumerable: true,
66
- get: function () { return chunkBYPHHRBZ_js.usePresenceTracking; }
66
+ get: function () { return chunkXG4WSJ4O_js.usePresenceTracking; }
67
67
  });
68
68
  Object.defineProperty(exports, "useThemeSwitching", {
69
69
  enumerable: true,
70
- get: function () { return chunkBYPHHRBZ_js.useThemeSwitching; }
70
+ get: function () { return chunkXG4WSJ4O_js.useThemeSwitching; }
71
71
  });
72
72
  Object.defineProperty(exports, "useYjsProvider", {
73
73
  enumerable: true,
74
- get: function () { return chunkBYPHHRBZ_js.useYjsProvider; }
74
+ get: function () { return chunkXG4WSJ4O_js.useYjsProvider; }
75
75
  });
76
76
  Object.defineProperty(exports, "getAnimationInitialStyle", {
77
77
  enumerable: true,
Binary file
Binary file
@@ -1,6 +1,6 @@
1
- export { CollaborationStatusIndicator, PowerPointViewer, PptxI18nProvider, UserAvatarBar } from '../chunk-TBG6UJHU.mjs';
1
+ export { CollaborationStatusIndicator, PowerPointViewer, PptxI18nProvider, UserAvatarBar } from '../chunk-BGWFZCRX.mjs';
2
2
  import '../chunk-JZE6BORE.mjs';
3
- export { CollaborationProvider, RemoteUserCursors, clearAudienceContent, isAudienceTab, loadAudienceContent, parseAudienceNonce, storeAudienceContent, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-DHCM6STL.mjs';
3
+ export { CollaborationProvider, RemoteUserCursors, clearAudienceContent, isAudienceTab, loadAudienceContent, parseAudienceNonce, storeAudienceContent, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-CRC3V4UG.mjs';
4
4
  export { getAnimationInitialStyle } from '../chunk-FBSPQYRE.mjs';
5
5
  import '../chunk-UV2HVMKZ.mjs';
6
6
  export { forgetSessionDeck, getSessionTabId, loadSessionDeck, rememberSessionDeck, restoreSessionDeck } from 'ooxml-ui/pptx';
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-react-viewer",
3
- "version": "4.72.0",
3
+ "version": "4.73.1",
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",
@@ -125,26 +125,26 @@
125
125
  "dependencies": {
126
126
  "clsx": "^2.1.1",
127
127
  "dompurify": "^3.4.17",
128
- "html2canvas-pro": "^2.5.4",
129
- "ooxml-core": "^1.47.0",
130
- "ooxml-ui": "^1.47.0",
128
+ "html2canvas-pro": "^2.6.3",
129
+ "ooxml-core": "^1.48.1",
130
+ "ooxml-ui": "^1.48.1",
131
131
  "opentype.js": "^2.0.0",
132
132
  "tailwind-merge": "^3.7.0"
133
133
  },
134
134
  "devDependencies": {
135
- "@ai-sdk/react": "^4.0.161",
136
- "@tailwindcss/cli": "^4.3.3",
135
+ "@ai-sdk/react": "^4.0.167",
136
+ "@tailwindcss/cli": "^4.3.4",
137
137
  "@types/dompurify": "^3.2.0",
138
138
  "@types/opentype.js": "^1.3.10",
139
139
  "@types/react": "^19.3.0",
140
140
  "@types/react-dom": "^19.3.0",
141
141
  "esbuild": "^0.28.2",
142
142
  "pptx-viewer-core": "^4.14.1",
143
- "tailwindcss": "^4.3.3",
144
- "tsdown": "^0.23.4",
143
+ "tailwindcss": "^4.3.4",
144
+ "tsdown": "^0.23.5",
145
145
  "tsup": "^9.0.0",
146
146
  "typescript": "^7.0.2",
147
- "vitest": "^5.0.5",
147
+ "vitest": "^5.1.0",
148
148
  "y-webrtc": "^10.3.0",
149
149
  "y-websocket": "^3.1.0",
150
150
  "yjs": "^13.6.33"
@@ -176,7 +176,7 @@
176
176
  }
177
177
  },
178
178
  "optionalDependencies": {
179
- "three": "^0.186.1",
179
+ "three": "^0.187.0",
180
180
  "y-webrtc": "^10.3.0",
181
181
  "y-websocket": "^3.1.0"
182
182
  }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file