pptx-react-viewer 1.16.2 → 1.17.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 (130) hide show
  1. package/CHANGELOG.md +16 -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-HJQZJ3VE.mjs → chunk-5CD34U2V.mjs} +1 -1
  17. package/dist/chunk-5CD34U2V.mjs.br +0 -0
  18. package/dist/chunk-5CD34U2V.mjs.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-JBCVQFWI.mjs → chunk-HN7CPQUG.mjs} +5 -5
  23. package/dist/chunk-HN7CPQUG.mjs.br +0 -0
  24. package/dist/chunk-HN7CPQUG.mjs.gz +0 -0
  25. package/dist/{chunk-WGLJ32FW.js → chunk-IZXN663G.js} +1 -1
  26. package/dist/chunk-IZXN663G.js.br +0 -0
  27. package/dist/chunk-IZXN663G.js.gz +0 -0
  28. package/dist/{chunk-WMRS37KQ.js → chunk-JWS3RQKN.js} +160 -28
  29. package/dist/chunk-JWS3RQKN.js.br +0 -0
  30. package/dist/chunk-JWS3RQKN.js.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-DZF4BNRP.mjs → chunk-PCQH2UBR.mjs} +230 -232
  35. package/dist/chunk-PCQH2UBR.mjs.br +0 -0
  36. package/dist/chunk-PCQH2UBR.mjs.gz +0 -0
  37. package/dist/{chunk-MZYQUURK.js → chunk-SXCO5HHN.js} +438 -438
  38. package/dist/chunk-SXCO5HHN.js.br +0 -0
  39. package/dist/chunk-SXCO5HHN.js.gz +0 -0
  40. package/dist/{chunk-VRASDGWX.js → chunk-WH7YXV3I.js} +1026 -1028
  41. package/dist/chunk-WH7YXV3I.js.br +0 -0
  42. package/dist/chunk-WH7YXV3I.js.gz +0 -0
  43. package/dist/{chunk-X7ILBQEY.mjs → chunk-XRYREYXC.mjs} +146 -66
  44. package/dist/chunk-XRYREYXC.mjs.br +0 -0
  45. package/dist/chunk-XRYREYXC.mjs.gz +0 -0
  46. package/dist/{dist-VMFNUFUX.js → dist-2ZAH7U6U.js} +507 -507
  47. package/dist/dist-2ZAH7U6U.js.br +0 -0
  48. package/dist/dist-2ZAH7U6U.js.gz +0 -0
  49. package/dist/{dist-JJ2NI2O3.mjs → dist-MXDC6YTS.mjs} +1 -1
  50. package/dist/dist-MXDC6YTS.mjs.br +0 -0
  51. package/dist/dist-MXDC6YTS.mjs.gz +0 -0
  52. package/dist/hooks-unstable.d.ts +9683 -1886
  53. package/dist/hooks-unstable.d.ts.map +1 -0
  54. package/dist/hooks-unstable.js +75 -75
  55. package/dist/hooks-unstable.js.br +0 -0
  56. package/dist/hooks-unstable.js.gz +0 -0
  57. package/dist/hooks-unstable.mjs +4 -4
  58. package/dist/hooks-unstable.mjs.br +0 -0
  59. package/dist/hooks-unstable.mjs.gz +0 -0
  60. package/dist/i18n.d.ts +27 -1
  61. package/dist/i18n.d.ts.map +1 -0
  62. package/dist/i18n.js +3 -3
  63. package/dist/i18n.js.br +1 -1
  64. package/dist/i18n.js.gz +0 -0
  65. package/dist/i18n.mjs +1 -1
  66. package/dist/i18n.mjs.br +0 -0
  67. package/dist/i18n.mjs.gz +0 -0
  68. package/dist/index-XGt7MZpa.d.ts +607 -0
  69. package/dist/index-XGt7MZpa.d.ts.map +1 -0
  70. package/dist/index.d.ts +4753 -10
  71. package/dist/index.d.ts.map +1 -0
  72. package/dist/index.js +19 -19
  73. package/dist/index.js.br +0 -0
  74. package/dist/index.js.gz +0 -0
  75. package/dist/index.mjs +5 -5
  76. package/dist/index.mjs.br +0 -0
  77. package/dist/index.mjs.gz +0 -0
  78. package/dist/types-BK7Nt13M.d.ts +483 -0
  79. package/dist/types-BK7Nt13M.d.ts.map +1 -0
  80. package/dist/viewer/index.d.ts +8008 -88
  81. package/dist/viewer/index.d.ts.map +1 -0
  82. package/dist/viewer/index.js +20 -20
  83. package/dist/viewer/index.js.br +0 -0
  84. package/dist/viewer/index.js.gz +0 -0
  85. package/dist/viewer/index.mjs +5 -5
  86. package/dist/viewer/index.mjs.br +0 -0
  87. package/dist/viewer/index.mjs.gz +0 -0
  88. package/package.json +6 -5
  89. package/dist/Model3DScene-DI6FSWDL.mjs.br +0 -0
  90. package/dist/Model3DScene-DI6FSWDL.mjs.gz +0 -0
  91. package/dist/Model3DScene-PE7L24QK.js.br +0 -0
  92. package/dist/Model3DScene-PE7L24QK.js.gz +0 -0
  93. package/dist/PowerPointViewer-BsaUH3ZT.d.ts +0 -26
  94. package/dist/PowerPointViewer-Nxku67uL.d.mts +0 -26
  95. package/dist/SurfaceChart3DScene-AJLD3VW6.js.br +0 -0
  96. package/dist/SurfaceChart3DScene-AJLD3VW6.js.gz +0 -0
  97. package/dist/SurfaceChart3DScene-NMLG3BQK.mjs.br +0 -0
  98. package/dist/SurfaceChart3DScene-NMLG3BQK.mjs.gz +0 -0
  99. package/dist/chunk-46HNHBHF.mjs.br +0 -0
  100. package/dist/chunk-46HNHBHF.mjs.gz +0 -0
  101. package/dist/chunk-DZF4BNRP.mjs.br +0 -0
  102. package/dist/chunk-DZF4BNRP.mjs.gz +0 -0
  103. package/dist/chunk-HJQZJ3VE.mjs.br +0 -0
  104. package/dist/chunk-HJQZJ3VE.mjs.gz +0 -0
  105. package/dist/chunk-JBCVQFWI.mjs.br +0 -0
  106. package/dist/chunk-JBCVQFWI.mjs.gz +0 -0
  107. package/dist/chunk-MZYQUURK.js.br +0 -0
  108. package/dist/chunk-MZYQUURK.js.gz +0 -0
  109. package/dist/chunk-VRASDGWX.js.br +0 -0
  110. package/dist/chunk-VRASDGWX.js.gz +0 -0
  111. package/dist/chunk-WGLJ32FW.js.br +0 -0
  112. package/dist/chunk-WGLJ32FW.js.gz +0 -0
  113. package/dist/chunk-WMRS37KQ.js.br +0 -0
  114. package/dist/chunk-WMRS37KQ.js.gz +0 -0
  115. package/dist/chunk-X7ILBQEY.mjs.br +0 -0
  116. package/dist/chunk-X7ILBQEY.mjs.gz +0 -0
  117. package/dist/chunk-YAQOTVZT.js.br +0 -0
  118. package/dist/chunk-YAQOTVZT.js.gz +0 -0
  119. package/dist/dist-JJ2NI2O3.mjs.br +0 -0
  120. package/dist/dist-JJ2NI2O3.mjs.gz +0 -0
  121. package/dist/dist-VMFNUFUX.js.br +0 -0
  122. package/dist/dist-VMFNUFUX.js.gz +0 -0
  123. package/dist/hooks-unstable.d.mts +0 -2300
  124. package/dist/i18n.d.mts +0 -1
  125. package/dist/index.d.mts +0 -46
  126. package/dist/types-ui-NG29h55h.d.mts +0 -712
  127. package/dist/types-ui-NG29h55h.d.ts +0 -712
  128. package/dist/usePresenterWindow-DToCijGy.d.ts +0 -1619
  129. package/dist/usePresenterWindow-DeTm-unp.d.mts +0 -1619
  130. package/dist/viewer/index.d.mts +0 -129
@@ -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 };