pptx-react-viewer 4.32.0 → 4.33.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 (63) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +3 -2
  3. package/dist/{AiChatPanel-H6ULCALE.mjs → AiChatPanel-CYD46SEM.mjs} +1 -1
  4. package/dist/AiChatPanel-CYD46SEM.mjs.br +0 -0
  5. package/dist/AiChatPanel-CYD46SEM.mjs.gz +0 -0
  6. package/dist/{AiChatPanel-4JU6JFZT.js → AiChatPanel-ONHWZEPV.js} +9 -9
  7. package/dist/AiChatPanel-ONHWZEPV.js.br +0 -0
  8. package/dist/AiChatPanel-ONHWZEPV.js.gz +0 -0
  9. package/dist/{chunk-5O6SSO3K.mjs → chunk-2OIJUZD5.mjs} +8 -3
  10. package/dist/chunk-2OIJUZD5.mjs.br +0 -0
  11. package/dist/chunk-2OIJUZD5.mjs.gz +0 -0
  12. package/dist/{chunk-ZM4QAOFK.js → chunk-7DGKSEIU.js} +4 -9
  13. package/dist/chunk-7DGKSEIU.js.br +0 -0
  14. package/dist/chunk-7DGKSEIU.js.gz +0 -0
  15. package/dist/{chunk-OE5UAZ2Y.mjs → chunk-GSMY5BTO.mjs} +99 -38
  16. package/dist/chunk-GSMY5BTO.mjs.br +0 -0
  17. package/dist/chunk-GSMY5BTO.mjs.gz +0 -0
  18. package/dist/{chunk-NF6QQBYI.js → chunk-JHYNVFFS.js} +1355 -1294
  19. package/dist/chunk-JHYNVFFS.js.br +0 -0
  20. package/dist/chunk-JHYNVFFS.js.gz +0 -0
  21. package/dist/{chunk-BLTSLCCE.mjs → chunk-K4UXDQZ6.mjs} +4 -9
  22. package/dist/chunk-K4UXDQZ6.mjs.br +0 -0
  23. package/dist/chunk-K4UXDQZ6.mjs.gz +0 -0
  24. package/dist/{chunk-OAB7K6VH.js → chunk-TVSTM5J5.js} +252 -247
  25. package/dist/chunk-TVSTM5J5.js.br +0 -0
  26. package/dist/chunk-TVSTM5J5.js.gz +0 -0
  27. package/dist/index.d.ts +19 -1
  28. package/dist/index.js +24 -24
  29. package/dist/index.js.br +0 -0
  30. package/dist/index.js.gz +0 -0
  31. package/dist/index.mjs +3 -3
  32. package/dist/index.mjs.br +0 -0
  33. package/dist/index.mjs.gz +0 -0
  34. package/dist/internals.js +81 -81
  35. package/dist/internals.js.br +0 -0
  36. package/dist/internals.js.gz +0 -0
  37. package/dist/internals.mjs +2 -2
  38. package/dist/internals.mjs.br +0 -0
  39. package/dist/internals.mjs.gz +0 -0
  40. package/dist/viewer/index.d.ts +19 -1
  41. package/dist/viewer/index.js +19 -19
  42. package/dist/viewer/index.js.br +0 -0
  43. package/dist/viewer/index.js.gz +0 -0
  44. package/dist/viewer/index.mjs +3 -3
  45. package/dist/viewer/index.mjs.br +0 -0
  46. package/dist/viewer/index.mjs.gz +0 -0
  47. package/package.json +4 -4
  48. package/dist/AiChatPanel-4JU6JFZT.js.br +0 -0
  49. package/dist/AiChatPanel-4JU6JFZT.js.gz +0 -0
  50. package/dist/AiChatPanel-H6ULCALE.mjs.br +0 -0
  51. package/dist/AiChatPanel-H6ULCALE.mjs.gz +0 -0
  52. package/dist/chunk-5O6SSO3K.mjs.br +0 -0
  53. package/dist/chunk-5O6SSO3K.mjs.gz +0 -0
  54. package/dist/chunk-BLTSLCCE.mjs.br +0 -0
  55. package/dist/chunk-BLTSLCCE.mjs.gz +0 -0
  56. package/dist/chunk-NF6QQBYI.js.br +0 -0
  57. package/dist/chunk-NF6QQBYI.js.gz +0 -0
  58. package/dist/chunk-OAB7K6VH.js.br +0 -0
  59. package/dist/chunk-OAB7K6VH.js.gz +0 -0
  60. package/dist/chunk-OE5UAZ2Y.mjs.br +0 -0
  61. package/dist/chunk-OE5UAZ2Y.mjs.gz +0 -0
  62. package/dist/chunk-ZM4QAOFK.js.br +0 -0
  63. package/dist/chunk-ZM4QAOFK.js.gz +0 -0
@@ -1,5 +1,5 @@
1
1
  import * as ooxml_ui_pptx from 'ooxml-ui/pptx';
2
- import { CollaborationRole, CollaborationConfig, ViewportFitOptions, ViewerFontSource, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, ToolbarActionId, ViewerCustomization, PowerPointViewerAPI, ViewerCustomizationApi, BorrowedCollaborationAwareness } from 'ooxml-ui/pptx';
2
+ import { CollaborationRole, CollaborationConfig, ViewportFitOptions, ViewerFontSource, ViewerTheme, ThemeCatalogEntry, AccountAuthConfig, ToolbarActionId, RibbonAddInTab, ViewerCustomization, PowerPointViewerAPI, ViewerCustomizationApi, BorrowedCollaborationAwareness } from 'ooxml-ui/pptx';
3
3
  export { CollaborationConfig, CollaborationRole, ElementClipboardPayload, ExternalCollaborationAwareness, ExternalCollaborationSession, ExternalCollaborationSnapshot, SessionDeck, ShapeAdjustmentDragState, ShapeAdjustmentHandleDescriptor, ViewerMode, clearAudienceContent, forgetSessionDeck, getSessionTabId, loadAudienceContent, loadSessionDeck, rememberSessionDeck, restoreSessionDeck, storeAudienceContent } from 'ooxml-ui/pptx';
4
4
  import * as React from 'react';
5
5
  import React__default, { RefObject } from 'react';
@@ -597,6 +597,24 @@ interface PowerPointViewerProps extends ViewportFitOptions {
597
597
  * ```
598
598
  */
599
599
  hiddenActions?: ToolbarActionId[];
600
+ /**
601
+ * Ribbon tabs the host adds after Help, as an Office add-in does. Each
602
+ * command runs its `run` callback and dispatches a bubbling
603
+ * `office-ribbon-add-in` DOM event (`{ tab, command }`) from the viewer. A
604
+ * tab cannot take the id of a built-in tab, and a drop-down (`items`) is
605
+ * drawn as its items. The desktop ribbon shows them; the phone toolbar does not.
606
+ *
607
+ * @example
608
+ * ```tsx
609
+ * <PowerPointViewer
610
+ * content={bytes}
611
+ * ribbonAddIns={[{ id: 'reports', label: 'Reports', groups: [
612
+ * { label: 'Export', commands: [{ id: 'export', label: 'Export', run: exportReport }] },
613
+ * ] }]}
614
+ * />
615
+ * ```
616
+ */
617
+ ribbonAddIns?: readonly RibbonAddInTab[];
600
618
  /**
601
619
  * Opt in to the built-in AI assistant. When provided, a Sparkles toggle
602
620
  * appears in the toolbar and opens a chat panel wired to this config; when
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkNF6QQBYI_js = require('../chunk-NF6QQBYI.js');
4
- var chunkOAB7K6VH_js = require('../chunk-OAB7K6VH.js');
5
- var chunkZM4QAOFK_js = require('../chunk-ZM4QAOFK.js');
3
+ var chunkJHYNVFFS_js = require('../chunk-JHYNVFFS.js');
4
+ var chunkTVSTM5J5_js = require('../chunk-TVSTM5J5.js');
5
+ var chunk7DGKSEIU_js = require('../chunk-7DGKSEIU.js');
6
6
  require('../chunk-W2IMY5SY.js');
7
7
  var pptx = require('ooxml-ui/pptx');
8
8
 
@@ -10,67 +10,67 @@ var pptx = require('ooxml-ui/pptx');
10
10
 
11
11
  Object.defineProperty(exports, "CollaborationStatusIndicator", {
12
12
  enumerable: true,
13
- get: function () { return chunkNF6QQBYI_js.CollaborationStatusIndicator; }
13
+ get: function () { return chunkJHYNVFFS_js.CollaborationStatusIndicator; }
14
14
  });
15
15
  Object.defineProperty(exports, "PowerPointViewer", {
16
16
  enumerable: true,
17
- get: function () { return chunkNF6QQBYI_js.PowerPointViewer; }
17
+ get: function () { return chunkJHYNVFFS_js.PowerPointViewer; }
18
18
  });
19
19
  Object.defineProperty(exports, "UserAvatarBar", {
20
20
  enumerable: true,
21
- get: function () { return chunkNF6QQBYI_js.UserAvatarBar; }
21
+ get: function () { return chunkJHYNVFFS_js.UserAvatarBar; }
22
22
  });
23
23
  Object.defineProperty(exports, "CollaborationProvider", {
24
24
  enumerable: true,
25
- get: function () { return chunkOAB7K6VH_js.CollaborationProvider; }
25
+ get: function () { return chunkTVSTM5J5_js.CollaborationProvider; }
26
26
  });
27
27
  Object.defineProperty(exports, "RemoteUserCursors", {
28
28
  enumerable: true,
29
- get: function () { return chunkOAB7K6VH_js.RemoteUserCursors; }
29
+ get: function () { return chunkTVSTM5J5_js.RemoteUserCursors; }
30
30
  });
31
31
  Object.defineProperty(exports, "clearAudienceContent", {
32
32
  enumerable: true,
33
- get: function () { return chunkOAB7K6VH_js.clearAudienceContent; }
33
+ get: function () { return chunkTVSTM5J5_js.clearAudienceContent; }
34
34
  });
35
35
  Object.defineProperty(exports, "isAudienceTab", {
36
36
  enumerable: true,
37
- get: function () { return chunkOAB7K6VH_js.isAudienceTab; }
37
+ get: function () { return chunkTVSTM5J5_js.isAudienceTab; }
38
38
  });
39
39
  Object.defineProperty(exports, "loadAudienceContent", {
40
40
  enumerable: true,
41
- get: function () { return chunkOAB7K6VH_js.loadAudienceContent; }
41
+ get: function () { return chunkTVSTM5J5_js.loadAudienceContent; }
42
42
  });
43
43
  Object.defineProperty(exports, "parseAudienceNonce", {
44
44
  enumerable: true,
45
- get: function () { return chunkOAB7K6VH_js.parseAudienceNonce; }
45
+ get: function () { return chunkTVSTM5J5_js.parseAudienceNonce; }
46
46
  });
47
47
  Object.defineProperty(exports, "storeAudienceContent", {
48
48
  enumerable: true,
49
- get: function () { return chunkOAB7K6VH_js.storeAudienceContent; }
49
+ get: function () { return chunkTVSTM5J5_js.storeAudienceContent; }
50
50
  });
51
51
  Object.defineProperty(exports, "useCollaborativeHistory", {
52
52
  enumerable: true,
53
- get: function () { return chunkOAB7K6VH_js.useCollaborativeHistory; }
53
+ get: function () { return chunkTVSTM5J5_js.useCollaborativeHistory; }
54
54
  });
55
55
  Object.defineProperty(exports, "useCollaborativeState", {
56
56
  enumerable: true,
57
- get: function () { return chunkOAB7K6VH_js.useCollaborativeState; }
57
+ get: function () { return chunkTVSTM5J5_js.useCollaborativeState; }
58
58
  });
59
59
  Object.defineProperty(exports, "usePresenceTracking", {
60
60
  enumerable: true,
61
- get: function () { return chunkOAB7K6VH_js.usePresenceTracking; }
61
+ get: function () { return chunkTVSTM5J5_js.usePresenceTracking; }
62
62
  });
63
63
  Object.defineProperty(exports, "useThemeSwitching", {
64
64
  enumerable: true,
65
- get: function () { return chunkOAB7K6VH_js.useThemeSwitching; }
65
+ get: function () { return chunkTVSTM5J5_js.useThemeSwitching; }
66
66
  });
67
67
  Object.defineProperty(exports, "useYjsProvider", {
68
68
  enumerable: true,
69
- get: function () { return chunkOAB7K6VH_js.useYjsProvider; }
69
+ get: function () { return chunkTVSTM5J5_js.useYjsProvider; }
70
70
  });
71
71
  Object.defineProperty(exports, "getAnimationInitialStyle", {
72
72
  enumerable: true,
73
- get: function () { return chunkZM4QAOFK_js.getAnimationInitialStyle; }
73
+ get: function () { return chunk7DGKSEIU_js.getAnimationInitialStyle; }
74
74
  });
75
75
  Object.defineProperty(exports, "forgetSessionDeck", {
76
76
  enumerable: true,
Binary file
Binary file
@@ -1,5 +1,5 @@
1
- export { CollaborationStatusIndicator, PowerPointViewer, UserAvatarBar } from '../chunk-OE5UAZ2Y.mjs';
2
- export { CollaborationProvider, RemoteUserCursors, clearAudienceContent, isAudienceTab, loadAudienceContent, parseAudienceNonce, storeAudienceContent, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-5O6SSO3K.mjs';
3
- export { getAnimationInitialStyle } from '../chunk-BLTSLCCE.mjs';
1
+ export { CollaborationStatusIndicator, PowerPointViewer, UserAvatarBar } from '../chunk-GSMY5BTO.mjs';
2
+ export { CollaborationProvider, RemoteUserCursors, clearAudienceContent, isAudienceTab, loadAudienceContent, parseAudienceNonce, storeAudienceContent, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-2OIJUZD5.mjs';
3
+ export { getAnimationInitialStyle } from '../chunk-K4UXDQZ6.mjs';
4
4
  import '../chunk-Q3DHYOLK.mjs';
5
5
  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.32.0",
3
+ "version": "4.33.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",
@@ -119,8 +119,8 @@
119
119
  "clsx": "^2.1.1",
120
120
  "dompurify": "^3.4.16",
121
121
  "html2canvas-pro": "^2.5.1",
122
- "ooxml-core": "^1.7.0",
123
- "ooxml-ui": "^1.7.0",
122
+ "ooxml-core": "^1.8.2",
123
+ "ooxml-ui": "^1.8.3",
124
124
  "opentype.js": "^2.0.0",
125
125
  "tailwind-merge": "^3.7.0"
126
126
  },
@@ -131,7 +131,7 @@
131
131
  "@types/opentype.js": "^1.3.10",
132
132
  "@types/react": "^19.3.0",
133
133
  "@types/react-dom": "^19.3.0",
134
- "pptx-viewer-core": "^4.13.4",
134
+ "pptx-viewer-core": "^4.13.5",
135
135
  "tailwindcss": "^4.3.3",
136
136
  "tsdown": "^0.23.0",
137
137
  "tsup": "^8.5.1",
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