pptx-react-viewer 4.73.0 → 4.74.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.
- package/CHANGELOG.md +17 -0
- package/dist/ai.d.ts +15 -0
- package/dist/{chunk-DHCM6STL.mjs → chunk-CRC3V4UG.mjs} +1 -1
- package/dist/chunk-CRC3V4UG.mjs.br +0 -0
- package/dist/{chunk-DHCM6STL.mjs.gz → chunk-CRC3V4UG.mjs.gz} +0 -0
- package/dist/{chunk-RBRWOKRR.js → chunk-D4WC35PL.js} +232 -282
- package/dist/chunk-D4WC35PL.js.br +0 -0
- package/dist/chunk-D4WC35PL.js.gz +0 -0
- package/dist/{chunk-IDIWOXL4.mjs → chunk-SQ7OASDY.mjs} +116 -167
- package/dist/chunk-SQ7OASDY.mjs.br +0 -0
- package/dist/chunk-SQ7OASDY.mjs.gz +0 -0
- package/dist/{chunk-BYPHHRBZ.js → chunk-XG4WSJ4O.js} +1 -1
- package/dist/chunk-XG4WSJ4O.js.br +0 -0
- package/dist/{chunk-BYPHHRBZ.js.gz → chunk-XG4WSJ4O.js.gz} +0 -0
- package/dist/index.d.ts +28 -5
- package/dist/index.js +28 -24
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +16 -16
- package/dist/internals.js +80 -80
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +1 -1
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/pptx-viewer-canvas.css +2 -2
- package/dist/pptx-viewer-canvas.css.br +0 -0
- package/dist/pptx-viewer-canvas.css.gz +0 -0
- package/dist/pptx-viewer.css +2 -2
- package/dist/pptx-viewer.css.br +0 -0
- package/dist/pptx-viewer.css.gz +0 -0
- package/dist/{three.module-MBFHAT6M.js → three.module-JBKIR2OB.js} +1369 -1174
- package/dist/three.module-JBKIR2OB.js.br +0 -0
- package/dist/three.module-JBKIR2OB.js.gz +0 -0
- package/dist/{three.module-EBJVANGB.mjs → three.module-PMXOC26V.mjs} +1370 -1174
- package/dist/three.module-PMXOC26V.mjs.br +0 -0
- package/dist/three.module-PMXOC26V.mjs.gz +0 -0
- package/dist/viewer/index.d.ts +12 -12
- package/dist/viewer/index.js +18 -18
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +2 -2
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +10 -10
- package/dist/chunk-BYPHHRBZ.js.br +0 -0
- package/dist/chunk-DHCM6STL.mjs.br +0 -0
- package/dist/chunk-IDIWOXL4.mjs.br +0 -0
- package/dist/chunk-IDIWOXL4.mjs.gz +0 -0
- package/dist/chunk-RBRWOKRR.js.br +0 -0
- package/dist/chunk-RBRWOKRR.js.gz +0 -0
- package/dist/three.module-EBJVANGB.mjs.br +0 -0
- package/dist/three.module-EBJVANGB.mjs.gz +0 -0
- package/dist/three.module-MBFHAT6M.js.br +0 -0
- package/dist/three.module-MBFHAT6M.js.gz +0 -0
|
Binary file
|
|
Binary file
|
package/dist/viewer/index.d.ts
CHANGED
|
@@ -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
|
|
5
|
-
import
|
|
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. */
|
package/dist/viewer/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkD4WC35PL_js = require('../chunk-D4WC35PL.js');
|
|
4
4
|
require('../chunk-LVEFHZ76.js');
|
|
5
|
-
var
|
|
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
|
|
14
|
+
get: function () { return chunkD4WC35PL_js.CollaborationStatusIndicator; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "PowerPointViewer", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkD4WC35PL_js.PowerPointViewer; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "PptxI18nProvider", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkD4WC35PL_js.PptxI18nProvider; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "UserAvatarBar", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkD4WC35PL_js.UserAvatarBar; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "CollaborationProvider", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkXG4WSJ4O_js.CollaborationProvider; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "RemoteUserCursors", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkXG4WSJ4O_js.RemoteUserCursors; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "clearAudienceContent", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkXG4WSJ4O_js.clearAudienceContent; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "isAudienceTab", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkXG4WSJ4O_js.isAudienceTab; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "loadAudienceContent", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkXG4WSJ4O_js.loadAudienceContent; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "parseAudienceNonce", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkXG4WSJ4O_js.parseAudienceNonce; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "storeAudienceContent", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkXG4WSJ4O_js.storeAudienceContent; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "useCollaborativeHistory", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkXG4WSJ4O_js.useCollaborativeHistory; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "useCollaborativeState", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkXG4WSJ4O_js.useCollaborativeState; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "usePresenceTracking", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkXG4WSJ4O_js.usePresenceTracking; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "useThemeSwitching", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkXG4WSJ4O_js.useThemeSwitching; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "useYjsProvider", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkXG4WSJ4O_js.useYjsProvider; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "getAnimationInitialStyle", {
|
|
77
77
|
enumerable: true,
|
package/dist/viewer/index.js.br
CHANGED
|
Binary file
|
package/dist/viewer/index.js.gz
CHANGED
|
Binary file
|
package/dist/viewer/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { CollaborationStatusIndicator, PowerPointViewer, PptxI18nProvider, UserAvatarBar } from '../chunk-
|
|
1
|
+
export { CollaborationStatusIndicator, PowerPointViewer, PptxI18nProvider, UserAvatarBar } from '../chunk-SQ7OASDY.mjs';
|
|
2
2
|
import '../chunk-JZE6BORE.mjs';
|
|
3
|
-
export { CollaborationProvider, RemoteUserCursors, clearAudienceContent, isAudienceTab, loadAudienceContent, parseAudienceNonce, storeAudienceContent, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-
|
|
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';
|
package/dist/viewer/index.mjs.br
CHANGED
|
Binary file
|
package/dist/viewer/index.mjs.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pptx-react-viewer",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.74.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",
|
|
@@ -125,26 +125,26 @@
|
|
|
125
125
|
"dependencies": {
|
|
126
126
|
"clsx": "^2.1.1",
|
|
127
127
|
"dompurify": "^3.4.17",
|
|
128
|
-
"html2canvas-pro": "^2.
|
|
129
|
-
"ooxml-core": "^1.48.
|
|
130
|
-
"ooxml-ui": "^1.
|
|
128
|
+
"html2canvas-pro": "^2.6.3",
|
|
129
|
+
"ooxml-core": "^1.48.1",
|
|
130
|
+
"ooxml-ui": "^1.49.0",
|
|
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.
|
|
136
|
-
"@tailwindcss/cli": "^4.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.
|
|
144
|
-
"tsdown": "^0.23.
|
|
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
|
|
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.
|
|
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
|