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.
- package/CHANGELOG.md +2 -0
- package/dist/{Model3DScene-DI6FSWDL.mjs → Model3DScene-QHDYQXL2.mjs} +2 -2
- package/dist/Model3DScene-QHDYQXL2.mjs.br +0 -0
- package/dist/Model3DScene-QHDYQXL2.mjs.gz +0 -0
- package/dist/{Model3DScene-PE7L24QK.js → Model3DScene-YA4F63DT.js} +3 -3
- package/dist/Model3DScene-YA4F63DT.js.br +0 -0
- package/dist/Model3DScene-YA4F63DT.js.gz +0 -0
- package/dist/PowerPointViewer-C4d7SKZf.d.ts +21 -0
- package/dist/PowerPointViewer-C4d7SKZf.d.ts.map +1 -0
- package/dist/{SurfaceChart3DScene-NMLG3BQK.mjs → SurfaceChart3DScene-GUAS2NWQ.mjs} +2 -2
- package/dist/SurfaceChart3DScene-GUAS2NWQ.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-GUAS2NWQ.mjs.gz +0 -0
- package/dist/{SurfaceChart3DScene-AJLD3VW6.js → SurfaceChart3DScene-TGNJHTJQ.js} +3 -3
- package/dist/SurfaceChart3DScene-TGNJHTJQ.js.br +0 -0
- package/dist/SurfaceChart3DScene-TGNJHTJQ.js.gz +0 -0
- package/dist/{chunk-MZYQUURK.js → chunk-3P6O7ZDM.js} +420 -420
- package/dist/chunk-3P6O7ZDM.js.br +0 -0
- package/dist/chunk-3P6O7ZDM.js.gz +0 -0
- package/dist/{chunk-46HNHBHF.mjs → chunk-G22EWPLH.mjs} +134 -4
- package/dist/chunk-G22EWPLH.mjs.br +0 -0
- package/dist/chunk-G22EWPLH.mjs.gz +0 -0
- package/dist/{chunk-WMRS37KQ.js → chunk-JWS3RQKN.js} +160 -28
- package/dist/chunk-JWS3RQKN.js.br +0 -0
- package/dist/chunk-JWS3RQKN.js.gz +0 -0
- package/dist/{chunk-JBCVQFWI.mjs → chunk-LLHFNGAF.mjs} +4 -4
- package/dist/chunk-LLHFNGAF.mjs.br +0 -0
- package/dist/chunk-LLHFNGAF.mjs.gz +0 -0
- package/dist/{chunk-DZF4BNRP.mjs → chunk-LNSHC2Z5.mjs} +117 -156
- package/dist/chunk-LNSHC2Z5.mjs.br +0 -0
- package/dist/chunk-LNSHC2Z5.mjs.gz +0 -0
- package/dist/{chunk-YAQOTVZT.js → chunk-MGLRKGCH.js} +146 -66
- package/dist/chunk-MGLRKGCH.js.br +0 -0
- package/dist/chunk-MGLRKGCH.js.gz +0 -0
- package/dist/{chunk-X7ILBQEY.mjs → chunk-XRYREYXC.mjs} +146 -66
- package/dist/chunk-XRYREYXC.mjs.br +0 -0
- package/dist/chunk-XRYREYXC.mjs.gz +0 -0
- package/dist/{chunk-VRASDGWX.js → chunk-XW5OMXW6.js} +915 -954
- package/dist/chunk-XW5OMXW6.js.br +0 -0
- package/dist/chunk-XW5OMXW6.js.gz +0 -0
- package/dist/{dist-VMFNUFUX.js → dist-2ZAH7U6U.js} +507 -507
- package/dist/dist-2ZAH7U6U.js.br +0 -0
- package/dist/dist-2ZAH7U6U.js.gz +0 -0
- package/dist/{dist-JJ2NI2O3.mjs → dist-MXDC6YTS.mjs} +1 -1
- package/dist/dist-MXDC6YTS.mjs.br +0 -0
- package/dist/dist-MXDC6YTS.mjs.gz +0 -0
- package/dist/hooks-unstable.d.ts +9683 -1886
- package/dist/hooks-unstable.d.ts.map +1 -0
- package/dist/hooks-unstable.js +74 -74
- package/dist/hooks-unstable.js.br +0 -0
- package/dist/hooks-unstable.js.gz +0 -0
- package/dist/hooks-unstable.mjs +3 -3
- package/dist/hooks-unstable.mjs.br +0 -0
- package/dist/hooks-unstable.mjs.gz +0 -0
- package/dist/i18n.d.ts +27 -1
- package/dist/i18n.d.ts.map +1 -0
- package/dist/index-XGt7MZpa.d.ts +607 -0
- package/dist/index-XGt7MZpa.d.ts.map +1 -0
- package/dist/index.d.ts +4753 -10
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -18
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/types-BK7Nt13M.d.ts +483 -0
- package/dist/types-BK7Nt13M.d.ts.map +1 -0
- package/dist/viewer/index.d.ts +8008 -88
- package/dist/viewer/index.d.ts.map +1 -0
- package/dist/viewer/index.js +19 -19
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +4 -4
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +6 -5
- package/dist/Model3DScene-DI6FSWDL.mjs.br +0 -0
- package/dist/Model3DScene-DI6FSWDL.mjs.gz +0 -0
- package/dist/Model3DScene-PE7L24QK.js.br +0 -0
- package/dist/Model3DScene-PE7L24QK.js.gz +0 -0
- package/dist/PowerPointViewer-BsaUH3ZT.d.ts +0 -26
- package/dist/PowerPointViewer-Nxku67uL.d.mts +0 -26
- package/dist/SurfaceChart3DScene-AJLD3VW6.js.br +0 -0
- package/dist/SurfaceChart3DScene-AJLD3VW6.js.gz +0 -0
- package/dist/SurfaceChart3DScene-NMLG3BQK.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-NMLG3BQK.mjs.gz +0 -0
- package/dist/chunk-46HNHBHF.mjs.br +0 -0
- package/dist/chunk-46HNHBHF.mjs.gz +0 -0
- package/dist/chunk-DZF4BNRP.mjs.br +0 -0
- package/dist/chunk-DZF4BNRP.mjs.gz +0 -0
- package/dist/chunk-JBCVQFWI.mjs.br +0 -0
- package/dist/chunk-JBCVQFWI.mjs.gz +0 -0
- package/dist/chunk-MZYQUURK.js.br +0 -0
- package/dist/chunk-MZYQUURK.js.gz +0 -0
- package/dist/chunk-VRASDGWX.js.br +0 -0
- package/dist/chunk-VRASDGWX.js.gz +0 -0
- package/dist/chunk-WMRS37KQ.js.br +0 -0
- package/dist/chunk-WMRS37KQ.js.gz +0 -0
- package/dist/chunk-X7ILBQEY.mjs.br +0 -0
- package/dist/chunk-X7ILBQEY.mjs.gz +0 -0
- package/dist/chunk-YAQOTVZT.js.br +0 -0
- package/dist/chunk-YAQOTVZT.js.gz +0 -0
- package/dist/dist-JJ2NI2O3.mjs.br +0 -0
- package/dist/dist-JJ2NI2O3.mjs.gz +0 -0
- package/dist/dist-VMFNUFUX.js.br +0 -0
- package/dist/dist-VMFNUFUX.js.gz +0 -0
- package/dist/hooks-unstable.d.mts +0 -2300
- package/dist/i18n.d.mts +0 -1
- package/dist/index.d.mts +0 -46
- package/dist/types-ui-NG29h55h.d.mts +0 -712
- package/dist/types-ui-NG29h55h.d.ts +0 -712
- package/dist/usePresenterWindow-DToCijGy.d.ts +0 -1619
- package/dist/usePresenterWindow-DeTm-unp.d.mts +0 -1619
- package/dist/viewer/index.d.mts +0 -129
package/dist/viewer/index.d.mts
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
export { P as PowerPointViewer, g as getAnimationInitialStyle } from '../PowerPointViewer-Nxku67uL.mjs';
|
|
2
|
-
import { C as CollaborationConfig } from '../types-ui-NG29h55h.mjs';
|
|
3
|
-
export { A as AccessibilityIssue, c as AnimationPresetOption, d as CanvasSize, e as CollaborationRole, f as ConnectorArrowOption, g as ConnectorGeometryOption, h as ConnectorGeometryType, i as ConnectorPathGeometry, D as DragState, j as DrawingTool, E as EditorHistorySnapshot, k as ElementBounds, l as ElementClipboardPayload, m as ElementContextMenuAction, n as ElementContextMenuState, F as FileViewerHandle, M as MarqueeSelectionState, o as ParsedTableCell, p as ParsedTableData, a as PowerPointViewerHandle, b as PowerPointViewerProps, q as PresentationAnimationRuntime, R as ResizeHandle, r as ResizeState, S as ShapeAdjustmentDragState, s as ShapeAdjustmentHandleDescriptor, t as ShapePreset, u as ShapeQuickStyle, v as ShortcutReferenceItem, w as SlideAlignment, x as SlideSectionGroup, y as SlideTransitionOption, z as StrokeDashOption, B as SupportedShapeType, T as TableCellEditorState, G as ToolbarSection, V as ViewerMode } from '../types-ui-NG29h55h.mjs';
|
|
4
|
-
import { U as UserPresence, C as ConnectionStatus } from '../usePresenterWindow-DeTm-unp.mjs';
|
|
5
|
-
export { a as CollaborationContextValue, T as ThemeSwitchingResult, b as UseCollaborativeHistoryResult, c as UseCollaborativeStateInput, d as UsePresenceTrackingResult, e as UseThemeSwitchingInput, i as isAudienceTab, u as useCollaborativeHistory, f as useCollaborativeState, g as usePresenceTracking, h as useThemeSwitching, j as useYjsProvider } from '../usePresenterWindow-DeTm-unp.mjs';
|
|
6
|
-
import React__default from 'react';
|
|
7
|
-
import './presentation-BfnrtJV1.js';
|
|
8
|
-
import './theme/index.js';
|
|
9
|
-
import 'y-protocols/awareness';
|
|
10
|
-
import 'yjs';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* audience-content-store: IndexedDB-based storage for sharing PPTX content
|
|
14
|
-
* between the presenter tab and audience tab.
|
|
15
|
-
*
|
|
16
|
-
* When the presenter opens an audience window, the PPTX bytes are stored in
|
|
17
|
-
* IndexedDB. The audience tab retrieves them on load and then cleans up.
|
|
18
|
-
*/
|
|
19
|
-
/**
|
|
20
|
-
* Store PPTX content bytes so the audience tab can retrieve them.
|
|
21
|
-
* Called by the presenter before opening the audience window.
|
|
22
|
-
*/
|
|
23
|
-
declare function storeAudienceContent(content: ArrayBuffer | Uint8Array): Promise<void>;
|
|
24
|
-
/**
|
|
25
|
-
* Load PPTX content bytes stored by the presenter tab.
|
|
26
|
-
* Returns `null` if nothing is stored.
|
|
27
|
-
*/
|
|
28
|
-
declare function loadAudienceContent(): Promise<Uint8Array | null>;
|
|
29
|
-
/**
|
|
30
|
-
* Remove stored audience content (cleanup).
|
|
31
|
-
*/
|
|
32
|
-
declare function clearAudienceContent(): Promise<void>;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* CollaborationProvider: React context provider for real-time collaboration.
|
|
36
|
-
*
|
|
37
|
-
* Wraps the viewer content and exposes collaboration state (connection status,
|
|
38
|
-
* remote user presence, broadcast function) to all child components via
|
|
39
|
-
* `useCollaboration()`.
|
|
40
|
-
*
|
|
41
|
-
* This provider is rendered unconditionally by `PowerPointViewer` so that
|
|
42
|
-
* starting or stopping a collaboration session never changes the React tree
|
|
43
|
-
* shape (which would force a full unmount/remount of the editor subtree). When
|
|
44
|
-
* no `config` is supplied it stays completely dormant: it opens no transport,
|
|
45
|
-
* tracks no presence, and exposes a `null` context value so `useCollaboration()`
|
|
46
|
-
* reports "not collaborating". The Yjs packages remain dynamically imported, so
|
|
47
|
-
* there is still zero bundle cost until a session actually starts.
|
|
48
|
-
*
|
|
49
|
-
* @module collaboration/CollaborationProvider
|
|
50
|
-
*/
|
|
51
|
-
|
|
52
|
-
interface CollaborationProviderProps {
|
|
53
|
-
/** Collaboration config, or `undefined`/omitted while no session is active. */
|
|
54
|
-
config?: CollaborationConfig;
|
|
55
|
-
canvasWidth: number;
|
|
56
|
-
canvasHeight: number;
|
|
57
|
-
children: React__default.ReactNode;
|
|
58
|
-
}
|
|
59
|
-
declare function CollaborationProvider({ config, canvasWidth, canvasHeight, children, }: CollaborationProviderProps): React__default.ReactElement;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* RemoteUserCursors: Renders other users' cursors as an SVG overlay
|
|
63
|
-
* on the slide canvas.
|
|
64
|
-
*
|
|
65
|
-
* Each remote user's cursor is drawn as a coloured pointer arrow with
|
|
66
|
-
* their username label. Only cursors on the same slide as the local
|
|
67
|
-
* user are displayed.
|
|
68
|
-
*
|
|
69
|
-
* @module collaboration/RemoteUserCursors
|
|
70
|
-
*/
|
|
71
|
-
|
|
72
|
-
interface RemoteUserCursorsProps {
|
|
73
|
-
/** Presence data for remote users. */
|
|
74
|
-
remoteUsers: UserPresence[];
|
|
75
|
-
/** The slide index the local user is currently viewing. */
|
|
76
|
-
activeSlideIndex: number;
|
|
77
|
-
/** Canvas width in CSS px (for SVG viewBox). */
|
|
78
|
-
canvasWidth: number;
|
|
79
|
-
/** Canvas height in CSS px (for SVG viewBox). */
|
|
80
|
-
canvasHeight: number;
|
|
81
|
-
}
|
|
82
|
-
declare function RemoteUserCursors({ remoteUsers, activeSlideIndex, canvasWidth, canvasHeight, }: RemoteUserCursorsProps): React__default.ReactElement | null;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* UserAvatarBar: Displays connected collaborators as a row of avatar circles
|
|
86
|
-
* in the toolbar area.
|
|
87
|
-
*
|
|
88
|
-
* Shows up to 5 avatar circles with a "+N" overflow indicator.
|
|
89
|
-
* Each circle shows the user's avatar image (if available) or their initials.
|
|
90
|
-
*
|
|
91
|
-
* @module collaboration/UserAvatarBar
|
|
92
|
-
*/
|
|
93
|
-
|
|
94
|
-
interface UserAvatarBarProps {
|
|
95
|
-
/** Remote user presence data. */
|
|
96
|
-
remoteUsers: UserPresence[];
|
|
97
|
-
/** Local user display name. */
|
|
98
|
-
localUserName: string;
|
|
99
|
-
/** Local user's colour. */
|
|
100
|
-
localUserColor: string;
|
|
101
|
-
/** Local user's avatar URL. */
|
|
102
|
-
localUserAvatar?: string;
|
|
103
|
-
/** Connection status. */
|
|
104
|
-
status: ConnectionStatus;
|
|
105
|
-
/** Maximum visible avatars before showing overflow (default: 5). */
|
|
106
|
-
maxVisible?: number;
|
|
107
|
-
}
|
|
108
|
-
declare function UserAvatarBar({ remoteUsers, localUserName, localUserColor, localUserAvatar, status, maxVisible, }: UserAvatarBarProps): React__default.ReactElement | null;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* CollaborationStatusIndicator: A small status pill that shows the
|
|
112
|
-
* WebSocket connection state and connected user count.
|
|
113
|
-
*
|
|
114
|
-
* Designed to sit in the status bar area at the bottom of the viewer.
|
|
115
|
-
*
|
|
116
|
-
* @module collaboration/CollaborationStatusIndicator
|
|
117
|
-
*/
|
|
118
|
-
|
|
119
|
-
interface CollaborationStatusIndicatorProps {
|
|
120
|
-
/** Current WebSocket connection status. */
|
|
121
|
-
status: ConnectionStatus;
|
|
122
|
-
/** Number of connected users (including local). */
|
|
123
|
-
connectedCount: number;
|
|
124
|
-
/** Callback to retry the connection (shown for error state). */
|
|
125
|
-
onRetry?: () => void;
|
|
126
|
-
}
|
|
127
|
-
declare function CollaborationStatusIndicator({ status, connectedCount, onRetry, }: CollaborationStatusIndicatorProps): React__default.ReactElement;
|
|
128
|
-
|
|
129
|
-
export { CollaborationConfig, CollaborationProvider, CollaborationStatusIndicator, type CollaborationStatusIndicatorProps, ConnectionStatus, RemoteUserCursors, type RemoteUserCursorsProps, UserAvatarBar, type UserAvatarBarProps, UserPresence, clearAudienceContent, loadAudienceContent, storeAudienceContent };
|