pptx-react-viewer 1.23.0 → 1.24.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.
- package/CHANGELOG.md +12 -0
- package/README.md +73 -21
- package/dist/{Model3DScene-4XNBDASE.mjs → Model3DScene-E7YIHJ2R.mjs} +2 -2
- package/dist/Model3DScene-E7YIHJ2R.mjs.br +0 -0
- package/dist/Model3DScene-E7YIHJ2R.mjs.gz +0 -0
- package/dist/{Model3DScene-AQS7KDM4.js → Model3DScene-RYR4SSOM.js} +3 -3
- package/dist/Model3DScene-RYR4SSOM.js.br +0 -0
- package/dist/Model3DScene-RYR4SSOM.js.gz +0 -0
- package/dist/{PowerPointViewer-DFTatVS4.d.ts → PowerPointViewer-CnADroqZ.d.ts} +2 -2
- package/dist/{PowerPointViewer-DFTatVS4.d.ts.map → PowerPointViewer-CnADroqZ.d.ts.map} +1 -1
- package/dist/{SurfaceChart3DScene-HA2SD6BY.js → SurfaceChart3DScene-PBSZVNAM.js} +3 -3
- package/dist/SurfaceChart3DScene-PBSZVNAM.js.br +0 -0
- package/dist/SurfaceChart3DScene-PBSZVNAM.js.gz +0 -0
- package/dist/{SurfaceChart3DScene-K7ZDXDBL.mjs → SurfaceChart3DScene-ZM3J67VQ.mjs} +2 -2
- package/dist/SurfaceChart3DScene-ZM3J67VQ.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-ZM3J67VQ.mjs.gz +0 -0
- package/dist/{types-Da1M5VBY.d.ts → animation-timeline-CEJJLFqK.d.ts} +3 -3
- package/dist/animation-timeline-CEJJLFqK.d.ts.map +1 -0
- package/dist/{chunk-2DXNTVFV.js → chunk-275WERXZ.js} +71 -72
- package/dist/chunk-275WERXZ.js.br +0 -0
- package/dist/chunk-275WERXZ.js.gz +0 -0
- package/dist/{chunk-H5RREYCO.js → chunk-DPTDFK2L.js} +1306 -460
- package/dist/chunk-DPTDFK2L.js.br +0 -0
- package/dist/chunk-DPTDFK2L.js.gz +0 -0
- package/dist/{chunk-MS6S6YYR.js → chunk-KV3EOLP3.js} +50785 -50553
- package/dist/chunk-KV3EOLP3.js.br +0 -0
- package/dist/chunk-KV3EOLP3.js.gz +0 -0
- package/dist/{chunk-LS2AIX2H.js → chunk-KVTSERRP.js} +26715 -26748
- package/dist/chunk-KVTSERRP.js.br +0 -0
- package/dist/chunk-KVTSERRP.js.gz +0 -0
- package/dist/{chunk-AFWMAFWR.mjs → chunk-LDZQNYWL.mjs} +50784 -50554
- package/dist/chunk-LDZQNYWL.mjs.br +0 -0
- package/dist/chunk-LDZQNYWL.mjs.gz +0 -0
- package/dist/{chunk-I42XL2WU.mjs → chunk-MEVZNYJK.mjs} +42 -43
- package/dist/chunk-MEVZNYJK.mjs.br +0 -0
- package/dist/chunk-MEVZNYJK.mjs.gz +0 -0
- package/dist/{chunk-LFEVG3ED.mjs → chunk-UCFXE6YS.mjs} +855 -11
- package/dist/chunk-UCFXE6YS.mjs.br +0 -0
- package/dist/chunk-UCFXE6YS.mjs.gz +0 -0
- package/dist/{chunk-36NC56XG.mjs → chunk-UDM2SYE3.mjs} +26107 -26142
- package/dist/chunk-UDM2SYE3.mjs.br +0 -0
- package/dist/chunk-UDM2SYE3.mjs.gz +0 -0
- package/dist/{dist-5KQQ6GP2.mjs → dist-A3OATMOE.mjs} +1 -1
- package/dist/dist-A3OATMOE.mjs.br +0 -0
- package/dist/dist-A3OATMOE.mjs.gz +0 -0
- package/dist/{dist-CVSSAFDL.js → dist-XF3QJAEF.js} +568 -560
- package/dist/dist-XF3QJAEF.js.br +0 -0
- package/dist/dist-XF3QJAEF.js.gz +0 -0
- package/dist/hooks-unstable.d.ts +431 -39
- package/dist/hooks-unstable.d.ts.map +1 -1
- package/dist/hooks-unstable.js +80 -76
- 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/{index-COgh2UTL.d.ts → index-waNAYwmr.d.ts} +12 -4
- package/dist/{index-COgh2UTL.d.ts.map → index-waNAYwmr.d.ts.map} +1 -1
- package/dist/index.d.ts +865 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42 -30
- 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/useViewerBuildingBlocks-ll3_ncCH.d.ts +378 -0
- package/dist/useViewerBuildingBlocks-ll3_ncCH.d.ts.map +1 -0
- package/dist/viewer/index.js +20 -20
- 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 +1 -1
- package/dist/Model3DScene-4XNBDASE.mjs.br +0 -0
- package/dist/Model3DScene-4XNBDASE.mjs.gz +0 -0
- package/dist/Model3DScene-AQS7KDM4.js.br +0 -0
- package/dist/Model3DScene-AQS7KDM4.js.gz +0 -0
- package/dist/SurfaceChart3DScene-HA2SD6BY.js.br +0 -0
- package/dist/SurfaceChart3DScene-HA2SD6BY.js.gz +0 -0
- package/dist/SurfaceChart3DScene-K7ZDXDBL.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-K7ZDXDBL.mjs.gz +0 -0
- package/dist/chunk-2DXNTVFV.js.br +0 -0
- package/dist/chunk-2DXNTVFV.js.gz +0 -0
- package/dist/chunk-36NC56XG.mjs.br +0 -0
- package/dist/chunk-36NC56XG.mjs.gz +0 -0
- package/dist/chunk-AFWMAFWR.mjs.br +0 -0
- package/dist/chunk-AFWMAFWR.mjs.gz +0 -0
- package/dist/chunk-H5RREYCO.js.br +0 -0
- package/dist/chunk-H5RREYCO.js.gz +0 -0
- package/dist/chunk-I42XL2WU.mjs.br +0 -0
- package/dist/chunk-I42XL2WU.mjs.gz +0 -0
- package/dist/chunk-LFEVG3ED.mjs.br +0 -0
- package/dist/chunk-LFEVG3ED.mjs.gz +0 -0
- package/dist/chunk-LS2AIX2H.js.br +0 -0
- package/dist/chunk-LS2AIX2H.js.gz +0 -0
- package/dist/chunk-MS6S6YYR.js.br +0 -0
- package/dist/chunk-MS6S6YYR.js.gz +0 -0
- package/dist/dist-5KQQ6GP2.mjs.br +0 -0
- package/dist/dist-5KQQ6GP2.mjs.gz +0 -0
- package/dist/dist-CVSSAFDL.js.br +0 -0
- package/dist/dist-CVSSAFDL.js.gz +0 -0
- package/dist/types-Da1M5VBY.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@ All notable changes to this project are documented here.
|
|
|
4
4
|
This file is generated from [Conventional Commits](https://www.conventionalcommits.org)
|
|
5
5
|
by [git-cliff](https://git-cliff.org); do not edit it by hand.
|
|
6
6
|
|
|
7
|
+
## [1.24.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@1.24.0) - 2026-07-18
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **react:** Export Toolbar/SlideCanvas + useViewerBuildingBlocks hook (by @ChristopherVR) ([37220c3](https://github.com/ChristopherVR/pptx-viewer/commit/37220c3afa1f7eaf62ec9eaa6fca72ee6ab19d7d))
|
|
12
|
+
|
|
13
|
+
## [1.23.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@1.23.0) - 2026-07-18
|
|
14
|
+
|
|
15
|
+
### Dependencies
|
|
16
|
+
|
|
17
|
+
- **deps:** Update dependencies to latest and migrate core/shared/locales to TypeScript 7 (by @ChristopherVR) ([cc72948](https://github.com/ChristopherVR/pptx-viewer/commit/cc729482cc5ae4ae56e1219f290c2953ec83c12a))
|
|
18
|
+
|
|
7
19
|
## [1.22.2](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@1.22.2) - 2026-07-18
|
|
8
20
|
|
|
9
21
|
## [1.22.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@1.22.1) - 2026-07-18
|
package/README.md
CHANGED
|
@@ -12,8 +12,6 @@ Slides render with real **HTML/CSS** (not `<canvas>`), so text stays crisp at an
|
|
|
12
12
|
|
|
13
13
|
<samp>**[▶️ Try the live demo](https://christophervr.github.io/pptx-viewer/demo/)** · **[📦 npm](https://www.npmjs.com/package/pptx-react-viewer)** · **[📖 Full docs](https://christophervr.github.io/pptx-viewer/)** · **[🧩 Core SDK](https://www.npmjs.com/package/pptx-viewer-core)**</samp>
|
|
14
14
|
|
|
15
|
-
> **[▶️ Try the live demo](https://christophervr.github.io/pptx-viewer/demo/)**: open a `.pptx` in your browser and view, edit, present, and export it. No install required.
|
|
16
|
-
|
|
17
15
|
---
|
|
18
16
|
|
|
19
17
|
## Install
|
|
@@ -29,7 +27,7 @@ npm install react react-dom framer-motion lucide-react react-icons jspdf jszip f
|
|
|
29
27
|
```
|
|
30
28
|
|
|
31
29
|
> The package is named **`pptx-react-viewer`** on npm. `pptx-viewer-core` (the engine) is **bundled in**, so you don't install it separately unless you want to call the SDK directly.
|
|
32
|
-
> **Optional:** `three`
|
|
30
|
+
> **Optional:** `three` (3D models/charts, 3D SmartArt) and `yjs` / `y-websocket` / `y-webrtc` (real-time collaboration) are declared as `optionalDependencies`, so npm installs them automatically when possible; the features degrade gracefully if they're absent.
|
|
33
31
|
|
|
34
32
|
## Quick start
|
|
35
33
|
|
|
@@ -40,11 +38,11 @@ import { PowerPointViewer } from 'pptx-react-viewer';
|
|
|
40
38
|
import 'pptx-react-viewer/styles';
|
|
41
39
|
|
|
42
40
|
export default function App() {
|
|
43
|
-
const [content, setContent] = useState<
|
|
41
|
+
const [content, setContent] = useState<Uint8Array | null>(null);
|
|
44
42
|
|
|
45
|
-
// Load any .pptx as
|
|
43
|
+
// Load any .pptx as bytes (fetch, <input type="file">, drag-drop, …)
|
|
46
44
|
const onPick = (e: React.ChangeEvent<HTMLInputElement>) =>
|
|
47
|
-
e.target.files?.[0]?.arrayBuffer().then(setContent);
|
|
45
|
+
e.target.files?.[0]?.arrayBuffer().then((buf) => setContent(new Uint8Array(buf)));
|
|
48
46
|
|
|
49
47
|
return (
|
|
50
48
|
<div style={{ height: '100vh' }}>
|
|
@@ -78,7 +76,7 @@ const bytes = await viewerRef.current?.getContent(); // Uint8Array of a valid .p
|
|
|
78
76
|
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- |
|
|
79
77
|
| **View** | Render slides with 16 element types: shapes, text, images, tables, 23 chart types, SmartArt, connectors, media, ink, OLE, 3D models, zoom |
|
|
80
78
|
| **Edit** | Insert/move/resize/delete elements, edit text inline, modify styles, manage slides |
|
|
81
|
-
| **Present** | Fullscreen slideshow with 40+ animations,
|
|
79
|
+
| **Present** | Fullscreen slideshow with 40+ animations, 46 transitions (including morph), speaker notes, presenter view with timer |
|
|
82
80
|
| **Export** | PNG/JPEG/SVG/PDF/GIF/video slide export, save-as PPTX |
|
|
83
81
|
| **Collaborate** | Real-time multi-user editing (powered by Yjs) with live presence, remote cursors, and user avatars |
|
|
84
82
|
| **Print** | Print dialog with handout layouts and notes page formatting with overflow pagination |
|
|
@@ -93,20 +91,37 @@ const bytes = await viewerRef.current?.getContent(); // Uint8Array of a valid .p
|
|
|
93
91
|
|
|
94
92
|
### `PowerPointViewer` props
|
|
95
93
|
|
|
96
|
-
| Prop
|
|
97
|
-
|
|
|
98
|
-
| `content`
|
|
99
|
-
| `filePath`
|
|
100
|
-
| `
|
|
101
|
-
| `
|
|
102
|
-
| `
|
|
103
|
-
| `
|
|
104
|
-
| `
|
|
105
|
-
| `
|
|
106
|
-
| `
|
|
107
|
-
| `
|
|
108
|
-
| `
|
|
109
|
-
| `
|
|
94
|
+
| Prop | Type | Default | Description |
|
|
95
|
+
| ---------------------- | --------------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------- |
|
|
96
|
+
| `content` | `Uint8Array` | required | Raw .pptx file bytes |
|
|
97
|
+
| `filePath` | `string` | n/a | Optional file path (for display and autosave recovery) |
|
|
98
|
+
| `fileName` | `string` | n/a | Display name of the open document, shown in the title bar |
|
|
99
|
+
| `className` | `string` | n/a | Class applied to the root element |
|
|
100
|
+
| `canEdit` | `boolean` | `false` | Enable editing mode |
|
|
101
|
+
| `fonts` | `ViewerFontSource[]` | n/a | Licensed font sources supplied by the host application |
|
|
102
|
+
| `authorName` | `string` | n/a | Author name for comments/annotations and collaboration presence |
|
|
103
|
+
| `collaboration` | `CollaborationConfig` | n/a | Yjs real-time collaboration config (server URL, room, role) |
|
|
104
|
+
| `shareDefaults` | `{ roomId?, userName?, serverUrl? }` | n/a | Seed values for the Share dialog fields |
|
|
105
|
+
| `smartArt3D` | `boolean` | `false` | Opt-in Three.js 3D SmartArt renderer (needs the optional `three` dependency; falls back to SVG without it) |
|
|
106
|
+
| `onOpenFile` | `() => void` | n/a | Host override for File > Open; bypasses the built-in file picker |
|
|
107
|
+
| `onContentChange` | `(content: Uint8Array) => void` | n/a | Called with freshly serialised `.pptx` bytes when the content changes |
|
|
108
|
+
| `onDirtyChange` | `(isDirty: boolean) => void` | n/a | Called when dirty state changes |
|
|
109
|
+
| `onActiveSlideChange` | `(index: number) => void` | n/a | Called when the active slide changes |
|
|
110
|
+
| `onModeChange` | `(mode: ViewerMode) => void` | n/a | Called when the viewer mode changes |
|
|
111
|
+
| `onZoomChange` | `(zoom: number) => void` | n/a | Called when the zoom level changes |
|
|
112
|
+
| `onSelectionChange` | `(ids: string[]) => void` | n/a | Called when element selection changes |
|
|
113
|
+
| `onSlideCountChange` | `(count: number) => void` | n/a | Called when the total slide count changes |
|
|
114
|
+
| `onStartCollaboration` | `(config: CollaborationConfig) => void` | n/a | Called when the user starts a collaboration session from the Share dialog |
|
|
115
|
+
| `onStopCollaboration` | `() => void` | n/a | Called when the collaboration session stops |
|
|
116
|
+
| `theme` | `ViewerTheme` | n/a | Theme configuration for customising colours, radius, and CSS vars |
|
|
117
|
+
| `hiddenActions` | `ToolbarActionId[]` | n/a | Hide individual toolbar buttons and/or ribbon tabs (e.g. `['share', 'broadcast']`) instead of the whole toolbar; omitted hides nothing |
|
|
118
|
+
| `defaultThemeKey` | `string` | n/a | Initial File > Options > Appearance selection when no persisted preference exists |
|
|
119
|
+
| `availableThemes` | `ThemeCatalogEntry[]` | n/a | Theme choices offered by File > Options > Appearance (defaults to the built-in catalog) |
|
|
120
|
+
| `onThemeChange` | `(key: string) => void` | n/a | Host hook for the appearance picker; when set, the host owns persisting the choice |
|
|
121
|
+
| `defaultLocale` | `string` | n/a | Initial locale code when no persisted preference exists |
|
|
122
|
+
| `availableLocales` | `LocaleCatalogEntry[]` | n/a | Locale choices offered by File > Options > Language (defaults to the registered i18next locales) |
|
|
123
|
+
| `onLocaleChange` | `(code: string) => void` | n/a | Host hook for the language picker; when set, the host owns applying/persisting the switch |
|
|
124
|
+
| `accountAuth` | `AccountAuthConfig` | n/a | Optional sign-in hook point for File > Account (disabled unless `enabled: true`) |
|
|
110
125
|
|
|
111
126
|
### `PowerPointViewerHandle` (via `ref`)
|
|
112
127
|
|
|
@@ -134,6 +149,15 @@ const bytes = await viewerRef.current?.getContent(); // Uint8Array of a valid .p
|
|
|
134
149
|
| `selectElements` | `(ids: string[]) => void` | Programmatically select elements by ID |
|
|
135
150
|
| `clearSelection` | `() => void` | Clear the current selection |
|
|
136
151
|
|
|
152
|
+
The handle implements the full shared `PowerPointViewerAPI`, so the following
|
|
153
|
+
slide/element manipulation methods are also available:
|
|
154
|
+
`setActiveSlideIndex(index)`, `getSlides()`, `getSlide(index)`,
|
|
155
|
+
`getActiveSlide()`, `addSlide(afterIndex?)`, `deleteSlides(indexes)`,
|
|
156
|
+
`duplicateSlides(indexes)`, `moveSlide(from, to)`, `toggleHideSlides(indexes)`,
|
|
157
|
+
`getElements(slideIndex?)`, `getElementById(id, slideIndex?)`,
|
|
158
|
+
`updateElement(id, patch)`, `deleteElements(ids)`, and
|
|
159
|
+
`duplicateElement(id)`.
|
|
160
|
+
|
|
137
161
|
### `renderToCanvas`
|
|
138
162
|
|
|
139
163
|
Standalone utility for rendering a DOM element to a Canvas (with an oklch colour-space workaround):
|
|
@@ -144,6 +168,34 @@ import { renderToCanvas } from 'pptx-react-viewer';
|
|
|
144
168
|
const canvas = await renderToCanvas(element, options); // => HTMLCanvasElement
|
|
145
169
|
```
|
|
146
170
|
|
|
171
|
+
### Composing a custom viewer shell
|
|
172
|
+
|
|
173
|
+
`<PowerPointViewer>` bundles a full editor chrome (toolbar, canvas, side panels, dialogs, presentation mode). If you only need the toolbar and slide canvas, with your own layout around them, `Toolbar` and `SlideCanvas` are exported as standalone components, and `useViewerBuildingBlocks` wires up the same state and hooks `PowerPointViewer` uses internally, mapped into the flat props those two components expect:
|
|
174
|
+
|
|
175
|
+
```tsx
|
|
176
|
+
import { Toolbar, SlideCanvas, useViewerBuildingBlocks } from 'pptx-react-viewer';
|
|
177
|
+
|
|
178
|
+
function MyCustomViewer({ content }: { content: Uint8Array }) {
|
|
179
|
+
// Also returned: `mode` (current ViewerMode) and `autosaveStatus`
|
|
180
|
+
const { toolbarProps, canvasProps, loading, error } = useViewerBuildingBlocks({
|
|
181
|
+
content,
|
|
182
|
+
canEdit: true,
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
if (loading) return <p>Loading…</p>;
|
|
186
|
+
if (error) return <p>Failed to load: {error}</p>;
|
|
187
|
+
|
|
188
|
+
return (
|
|
189
|
+
<div className='my-custom-layout'>
|
|
190
|
+
<Toolbar {...toolbarProps} />
|
|
191
|
+
<SlideCanvas {...canvasProps} />
|
|
192
|
+
</div>
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
`useViewerBuildingBlocks` accepts the same `content` / `canEdit` / `filePath` / `hiddenActions` / `onDirtyChange`-style inputs as `PowerPointViewer`, plus `onOpenSettings` / `onOpenHeaderFooter` / `onOpenShareDialog` callbacks (fired by the corresponding toolbar buttons) since this composition doesn't render those dialogs itself. It's an additive alternative, not a replacement: dialogs, presentation-mode overlays, mobile chrome, resizable side panels, and real-time collaboration are all part of `PowerPointViewer` and are out of scope for these building blocks. Reach for `PowerPointViewer` when you need the full editor; reach for `useViewerBuildingBlocks` when you're assembling your own chrome around just the toolbar and canvas.
|
|
198
|
+
|
|
147
199
|
---
|
|
148
200
|
|
|
149
201
|
## Styling & theming
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { mountModel3D } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { mountModel3D } from './chunk-MEVZNYJK.mjs';
|
|
2
|
+
import './chunk-LDZQNYWL.mjs';
|
|
3
3
|
import './chunk-6DZX6EAA.mjs';
|
|
4
4
|
import { useRef, useEffect } from 'react';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunk275WERXZ_js = require('./chunk-275WERXZ.js');
|
|
4
|
+
require('./chunk-KV3EOLP3.js');
|
|
5
5
|
require('./chunk-QGM4M3NI.js');
|
|
6
6
|
var react = require('react');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -15,7 +15,7 @@ function Model3DScene({ modelUrl, interactive, width, height }) {
|
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
17
|
let disposed = false;
|
|
18
|
-
void
|
|
18
|
+
void chunk275WERXZ_js.mountModel3D(container, modelUrl, { width, height, interactive }).then((handle) => {
|
|
19
19
|
if (disposed) {
|
|
20
20
|
handle.dispose();
|
|
21
21
|
} else {
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as PowerPointViewerProps, p as PowerPointViewerHandle } from "./animation-timeline-CEJJLFqK.js";
|
|
2
2
|
import { PptxAnimationPreset, PptxNativeAnimation } from "pptx-viewer-core";
|
|
3
3
|
import "pptx-viewer-shared";
|
|
4
4
|
import React from "react";
|
|
@@ -18,4 +18,4 @@ declare function getAnimationInitialStyle(preset: PptxAnimationPreset | undefine
|
|
|
18
18
|
declare const PowerPointViewer: import("react").ForwardRefExoticComponent<PowerPointViewerProps & import("react").RefAttributes<PowerPointViewerHandle>>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { getAnimationInitialStyle as n, PowerPointViewer as t };
|
|
21
|
-
//# sourceMappingURL=PowerPointViewer-
|
|
21
|
+
//# sourceMappingURL=PowerPointViewer-CnADroqZ.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PowerPointViewer-
|
|
1
|
+
{"version":3,"file":"PowerPointViewer-CnADroqZ.d.ts","names":[],"sources":["../src/viewer/utils/animation-effects.ts","../src/viewer/PowerPointViewer.tsx"],"mappings":";;;;;iBAmBgB,yBACf,QAAQ,iCACR,kBAAkB,sBAChB,MAAM;;;;;;;;;;;;cC4EI,kCAAgB,0BAAA,wCAAA,cAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunk275WERXZ_js = require('./chunk-275WERXZ.js');
|
|
4
|
+
require('./chunk-KV3EOLP3.js');
|
|
5
5
|
require('./chunk-QGM4M3NI.js');
|
|
6
6
|
var react = require('react');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -26,7 +26,7 @@ function SurfaceChart3DScene({
|
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
28
|
let disposed = false;
|
|
29
|
-
void
|
|
29
|
+
void chunk275WERXZ_js.mountSurfaceChart3D(container, {
|
|
30
30
|
cols,
|
|
31
31
|
rows,
|
|
32
32
|
heightMap,
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { mountSurfaceChart3D } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { mountSurfaceChart3D } from './chunk-MEVZNYJK.mjs';
|
|
2
|
+
import './chunk-LDZQNYWL.mjs';
|
|
3
3
|
import './chunk-6DZX6EAA.mjs';
|
|
4
4
|
import { useRef, useEffect } from 'react';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as LocaleCatalogEntry } from "./index-CGKutKk1.js";
|
|
2
2
|
import { ConnectorArrowType, PptxAnimationPreset, PptxElement, PptxElementAnimation, PptxSlide, PptxSlideTransition, ShapeStyle, StrokeDashType, XmlObject } from "pptx-viewer-core";
|
|
3
|
-
import { AccountAuthConfig, CollaborationConfig as CollaborationConfig$1, CollaborationRole, ElementClipboardPayload, PowerPointViewerAPI, THEME_CATALOG, ThemeCatalogEntry, ThemeCatalogEntry as ThemeCatalogEntry$1, ToolbarActionId, ViewerFontSource, ViewerMode as ViewerMode$1, ViewerTheme, ViewerThemeColors, defaultCssVars, defaultRadius, defaultThemeColors, resolveThemeCatalogEntry, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius } from "pptx-viewer-shared";
|
|
3
|
+
import { AccountAuthConfig, CollaborationConfig as CollaborationConfig$1, CollaborationRole, ElementAnimationState, ElementClipboardPayload, PowerPointViewerAPI, THEME_CATALOG, ThemeCatalogEntry, ThemeCatalogEntry as ThemeCatalogEntry$1, ToolbarActionId, ViewerFontSource, ViewerMode as ViewerMode$1, ViewerTheme, ViewerThemeColors, defaultCssVars, defaultRadius, defaultThemeColors, resolveThemeCatalogEntry, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius } from "pptx-viewer-shared";
|
|
4
4
|
import React$1 from "react";
|
|
5
5
|
import { Doc } from "yjs";
|
|
6
6
|
//#region src/viewer/types-core.d.ts
|
|
@@ -542,5 +542,5 @@ interface PowerPointViewerHandle extends FileViewerHandle, PowerPointViewerAPI {
|
|
|
542
542
|
getContent: () => Promise<Uint8Array>;
|
|
543
543
|
}
|
|
544
544
|
//#endregion
|
|
545
|
-
export {
|
|
546
|
-
//# sourceMappingURL=
|
|
545
|
+
export { ResizeState as $, useViewerTheme as A, vermilionRadius as B, ToolbarSection as C, ConnectionStatus as D, CollaborationRole as E, themeToCssVars as F, CanvasSize as G, defaultThemeColors as H, vermilionDarkColors as I, DragState as J, ConnectorGeometryType as K, vermilionDarkTheme as L, ThemeCatalogEntry$1 as M, resolveThemeCatalogEntry as N, UserPresence as O, defaultCssVars as P, ResizeHandle as Q, vermilionLightColors as R, TableCellEditorState as S, CollaborationContextValue as T, ViewerTheme as U, defaultRadius as V, ViewerThemeColors as W, ElementBounds as X, EditorHistorySnapshot as Y, ElementClipboardPayload as Z, ShortcutReferenceItem as _, ConnectorGeometryOption as a, SlideTransitionOption as b, ElementContextMenuState as c, ParsedTableCell as d, ShapeAdjustmentDragState as et, ParsedTableData as f, ShapePreset as g, PresentationAnimationRuntime as h, ConnectorArrowOption as i, ViewerMode$1 as it, THEME_CATALOG as j, ViewerThemeProvider as k, FileViewerHandle as l, PowerPointViewerProps as m, AccessibilityIssue as n, ShapeQuickStyle as nt, DrawingTool as o, PowerPointViewerHandle as p, ConnectorPathGeometry as q, AnimationPresetOption as r, SupportedShapeType as rt, ElementContextMenuAction as s, ElementAnimationState as t, ShapeAdjustmentHandleDescriptor as tt, MarqueeSelectionState as u, SlideAlignment as v, CollaborationConfig$1 as w, StrokeDashOption as x, SlideSectionGroup as y, vermilionLightTheme as z };
|
|
546
|
+
//# sourceMappingURL=animation-timeline-CEJJLFqK.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation-timeline-CEJJLFqK.d.ts","names":[],"sources":["../src/viewer/types-core.ts","../src/theme/context.tsx","../src/viewer/hooks/collaboration/types.ts","../src/viewer/types-ui.ts"],"mappings":";;;;;;;;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