pptx-svelte-viewer 4.24.3 → 4.26.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 +67 -0
- package/README.md +8 -8
- package/dist/{AiChatPanel-NszDzi2K.js → AiChatPanel-DYLU7_DQ.js} +2 -2
- package/dist/awareness-BwmJcSKy.js +533 -0
- package/dist/{export-By5DD9XI.js → export-iyQ8bG1f.js} +30865 -30444
- package/dist/i18n/de.cjs +1 -0
- package/dist/i18n/de.mjs +1 -0
- package/dist/i18n/es.cjs +1 -0
- package/dist/i18n/es.mjs +1 -0
- package/dist/i18n/fr.cjs +1 -0
- package/dist/i18n/fr.mjs +1 -0
- package/dist/i18n/zh-CN.cjs +1 -0
- package/dist/i18n/zh-CN.mjs +1 -0
- package/dist/i18n.js +1 -1
- package/dist/index.js +46 -46
- package/dist/internals.js +17 -17
- package/dist/smartart-layouts-YQN30k2p.js +2157 -0
- package/dist/{transition-overlay-Bp4BTtV-.js → transition-overlay-BkW9yQMT.js} +45216 -44322
- package/dist/{translator-BW2KgOs0.js → translator-DwgZZEZm.js} +1 -0
- package/dist/viewer/index.d.ts +1 -39
- package/dist/viewer/index.js +10 -10
- package/dist/{y-webrtc-y-xCsKw4.js → y-webrtc-DPABhqQq.js} +1 -1
- package/dist/{y-websocket-Uj4wJVyw.js → y-websocket-B2EqYBBC.js} +1 -1
- package/package.json +8 -7
- package/dist/awareness-CWh9V5ZH.js +0 -530
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,65 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
All notable changes to this project are documented here.
|
|
4
|
+
This file is generated from [Conventional Commits](https://www.conventionalcommits.org)
|
|
5
|
+
by [git-cliff](https://git-cliff.org); do not edit it by hand.
|
|
6
|
+
A release listed with no entries carried no Conventional Commit in this package's
|
|
7
|
+
scope: scripts/release-plan.mjs releases whenever any published file changes, not only on
|
|
8
|
+
conventional commits.
|
|
9
|
+
|
|
10
|
+
## [4.26.0](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-svelte-viewer@4.26.0) - 2026-10-07
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- **pptx:** Add PowerPoint's built-in SmartArt layout definitions ([9c6cd97](https://github.com/ChristopherVR/ooxml/commit/9c6cd97ba6276a441aadf0d527d3bdc81fabce5e))
|
|
15
|
+
- **pptx:** Apply built-in SmartArt layouts synchronously and save them ([4ddf31c](https://github.com/ChristopherVR/ooxml/commit/4ddf31c5f2f2a1b17e8af411ecd42bee7deaa491))
|
|
16
|
+
- **shared:** Offer PowerPoint's built-in SmartArt layouts in every binding ([29100c4](https://github.com/ChristopherVR/ooxml/commit/29100c431c61983400e5af19ffd7d85ec2653463))
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
- **shared:** Size SmartArt 3D labels to their text and sharpen them ([79318b6](https://github.com/ChristopherVR/ooxml/commit/79318b60fe12b81612c16de58e1c47584a2af008))
|
|
21
|
+
- **shared:** Draw SmartArt connectors in the 3D view ([5795dcf](https://github.com/ChristopherVR/ooxml/commit/5795dcff0b489e9e79722781d000bba6d9b2f7a7))
|
|
22
|
+
|
|
23
|
+
## [4.25.0](https://github.com/ChristopherVR/ooxml/releases/tag/pptx-svelte-viewer@4.25.0) - 2026-10-06
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
- **pptx:** Parse chart legend overlay from c:overlay ([dce36c6](https://github.com/ChristopherVR/ooxml/commit/dce36c6134cdaded271b73f541091b37223b6da2))
|
|
28
|
+
- **chart:** Move pie, radar, treemap and trendline helpers from pptx viewer ([c08a02b](https://github.com/ChristopherVR/ooxml/commit/c08a02b91b210c0f99c8c2dfbde02c2e1329fc57))
|
|
29
|
+
- **color:** Move text contrast and unit rgb helpers from pptx viewer ([2dcc341](https://github.com/ChristopherVR/ooxml/commit/2dcc341bd931610a9e9a8f4e8d53483cffbed8ec))
|
|
30
|
+
- **text:** Move tab leader and decimal tab helpers from pptx viewer ([3a5bcf0](https://github.com/ChristopherVR/ooxml/commit/3a5bcf0f4675db3d6831430c37db0c66c6814ef3))
|
|
31
|
+
- **geometry:** Move snap guides and align/distribute from pptx viewer ([3400e87](https://github.com/ChristopherVR/ooxml/commit/3400e8776661df9e2148e1be78819b1c12564b79))
|
|
32
|
+
- **pptx:** Forward the viewer's duplicated chart and theme helpers ([c22b276](https://github.com/ChristopherVR/ooxml/commit/c22b2766272ec08218ea14fadfc3cafd3c2b9ff6))
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
|
|
36
|
+
- **pptx:** Clear the old layout definition on a SmartArt layout switch ([086e06c](https://github.com/ChristopherVR/ooxml/commit/086e06cc28b0389da820f35b5fd4f482f2312de8))
|
|
37
|
+
- **shared:** Make 3D SmartArt editing and layout switching reliable in every binding ([43e3e07](https://github.com/ChristopherVR/ooxml/commit/43e3e07e6f4996c9777d175ffd3536a341dadc86))
|
|
38
|
+
- **shared:** Hide the fill swatches when the pointer leaves a 3D SmartArt node ([c718e77](https://github.com/ChristopherVR/ooxml/commit/c718e77bb15f7d74721c252189bf99b1f77a9d0d))
|
|
39
|
+
- **ci:** Resolve pptx-viewer-core/ui in the binding test and demo configs ([dfffe69](https://github.com/ChristopherVR/ooxml/commit/dfffe6988b58d3765cf748df5adbd4c3b86b5fbe))
|
|
40
|
+
- **xlsx:** Harden code-scanning findings across areas ([90ee4b3](https://github.com/ChristopherVR/ooxml/commit/90ee4b33e1253f21cd0df299af468d550f85eddc))
|
|
41
|
+
- **xlsx:** Use Reflect for dynamic property writes and tighten sanitizers ([b663413](https://github.com/ChristopherVR/ooxml/commit/b66341384d972d73182b06c6b4c706c0462f9364))
|
|
42
|
+
|
|
43
|
+
### Refactor
|
|
44
|
+
|
|
45
|
+
- Move the library into src/core, next to src/ui ([3933a88](https://github.com/ChristopherVR/ooxml/commit/3933a88e36784ce5f4bfab0af1ca12eb65d3cd0c))
|
|
46
|
+
|
|
47
|
+
### Documentation
|
|
48
|
+
|
|
49
|
+
- Bring the pptx docs and agent guide up to date with the move ([8cc3f5e](https://github.com/ChristopherVR/ooxml/commit/8cc3f5e364232d39d2a2286e25056fd67b594108))
|
|
50
|
+
|
|
51
|
+
### Build & CI
|
|
52
|
+
|
|
53
|
+
- **deps:** Adopt ooxml-ui 0.29.1 and ooxml-core 0.21.1 ([56e1979](https://github.com/ChristopherVR/ooxml/commit/56e197912df02e3d6ce674025115dab206338138))
|
|
54
|
+
- **pptx:** Move the pptx demos and browser tests to the repository root ([a23994d](https://github.com/ChristopherVR/ooxml/commit/a23994d534fc34721f182d5eba9cd4abb97e44f8))
|
|
55
|
+
- **release:** Publish the pptx viewer packages from this repository ([21e790f](https://github.com/ChristopherVR/ooxml/commit/21e790f582b3d7072f3770d7a1bd9fc2ad035e53))
|
|
56
|
+
|
|
57
|
+
### Chores
|
|
58
|
+
|
|
59
|
+
- **viewers:** Import the pptx-viewer repository with its history ([dde62be](https://github.com/ChristopherVR/ooxml/commit/dde62beb12d38f53fcddf016a4de243fe7151712))
|
|
60
|
+
|
|
61
|
+
# Changelog
|
|
62
|
+
|
|
3
63
|
All notable changes to this project are documented here.
|
|
4
64
|
This file is generated from [Conventional Commits](https://www.conventionalcommits.org)
|
|
5
65
|
by [git-cliff](https://git-cliff.org); do not edit it by hand.
|
|
@@ -7,6 +67,13 @@ A release listed with no entries carried no Conventional Commit in this package'
|
|
|
7
67
|
scope: scripts/release-plan.mjs re-releases a package whenever any of its files
|
|
8
68
|
change, not only on conventional ones.
|
|
9
69
|
|
|
70
|
+
## [4.24.3](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-svelte-viewer@4.24.3) - 2026-10-06
|
|
71
|
+
|
|
72
|
+
### Bug Fixes
|
|
73
|
+
|
|
74
|
+
- **shared:** Make 3D SmartArt rotate, edit and recolour like the 2D diagram (by @ChristopherVR) ([29473d4](https://github.com/ChristopherVR/pptx-viewer/commit/29473d42fdfd8a1b5dff4f2259ecad68ecbd57bc))
|
|
75
|
+
- Draw no default table cell border, and let the ooxml sync push to main ([#408](https://github.com/ChristopherVR/pptx-viewer/issues/408)) (by @ChristopherVR) ([11914db](https://github.com/ChristopherVR/pptx-viewer/commit/11914db10cd8f65504e1e5a777848731d88a949a))
|
|
76
|
+
|
|
10
77
|
## [4.24.2](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-svelte-viewer@4.24.2) - 2026-10-05
|
|
11
78
|
|
|
12
79
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
# pptx-svelte-viewer
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/pptx-svelte-viewer)
|
|
4
|
-
[](https://github.com/ChristopherVR/
|
|
4
|
+
[](https://github.com/ChristopherVR/ooxml/blob/main/viewers/pptx/LICENSE)
|
|
5
5
|
|
|
6
6
|
Show, edit, and present Microsoft PowerPoint (`.pptx`) files directly in a
|
|
7
7
|
Svelte 5 app: no server, no conversion step, no PowerPoint install required.
|
|
8
8
|
Drop in a `<PowerPointViewer>` component (built with runes), hand it the
|
|
9
9
|
file's bytes, and it renders slides as real HTML and CSS.
|
|
10
10
|
|
|
11
|
-

|
|
12
12
|
|
|
13
13
|
The rendering is done by the framework-agnostic [`pptx-viewer-core`](https://www.npmjs.com/package/pptx-viewer-core) engine, which turns a `.pptx` file into a structured slide model. This package is the Svelte layer that draws that model on screen, and the engine is **bundled in**, so you install just one package.
|
|
14
14
|
|
|
15
|
-
<samp>**[▶️ Try the live demo](https://christophervr.github.io/pptx
|
|
15
|
+
<samp>**[▶️ Try the live demo](https://christophervr.github.io/ooxml/pptx/demo-svelte/)** · **[📦 npm](https://www.npmjs.com/package/pptx-svelte-viewer)** · **[📖 Full docs](https://christophervr.github.io/ooxml/pptx/svelte/)** · **[🧩 Core SDK](https://www.npmjs.com/package/pptx-viewer-core)**</samp>
|
|
16
16
|
|
|
17
17
|
## Features
|
|
18
18
|
|
|
@@ -113,7 +113,7 @@ or fullscreen fitting. See the [cross-binding defaults](../../docs/guide/viewpor
|
|
|
113
113
|
| `showToolbar` | `boolean` | `true` | Navigation/zoom/fullscreen toolbar. |
|
|
114
114
|
| `showNotes` | `boolean` | `true` | Speaker-notes panel and its toolbar toggle. |
|
|
115
115
|
| `hiddenActions` | `ToolbarActionId[]` | - | Toolbar buttons/ribbon tabs to hide individually (e.g. `['share', 'broadcast']`), instead of hiding the whole toolbar. |
|
|
116
|
-
| `customization` | `ViewerCustomization` | - | Hide, lock or remap any part of the UI (ribbon tabs/buttons, File > Options pages/sections/settings, File tab, context menus, shortcuts, panels, AI/collaboration, dialogs); the same helpers (`hideRibbonTab`, `lockSetting`, ...) are on the `bind:this` instance. See the [UI Customization guide](https://christophervr.github.io/pptx
|
|
116
|
+
| `customization` | `ViewerCustomization` | - | Hide, lock or remap any part of the UI (ribbon tabs/buttons, File > Options pages/sections/settings, File tab, context menus, shortcuts, panels, AI/collaboration, dialogs); the same helpers (`hideRibbonTab`, `lockSetting`, ...) are on the `bind:this` instance. See the [UI Customization guide](https://christophervr.github.io/ooxml/pptx/guide/customization). |
|
|
117
117
|
| `editable` | `boolean` | `false` | Ribbon editing, insertion, arrange, and save. |
|
|
118
118
|
| `smartArt3D` | `boolean` | `false` | Opt-in Three.js 3D SmartArt renderer (needs the optional `three` peer; falls back to SVG without it). |
|
|
119
119
|
| `surfaceChart3D`, `barChart3D`, `lineChart3D`, `areaChart3D`, `pieChart3D` | `boolean` | `false` | Independently opt in to interactive Three.js renderers for the matching 3D chart kinds; each falls back to SVG when WebGL is unavailable. |
|
|
@@ -188,10 +188,10 @@ editing and export methods (the `PowerPointViewerApi` type):
|
|
|
188
188
|
`exportPdf(options?)`, `exportGif(options?)`, `exportVideo(options?)`,
|
|
189
189
|
`print(options?)`.
|
|
190
190
|
|
|
191
|
-
See [element insertion](https://christophervr.github.io/pptx
|
|
191
|
+
See [element insertion](https://christophervr.github.io/ooxml/pptx/svelte/api#add-element)
|
|
192
192
|
for the `addElement` contract and a core-factory example.
|
|
193
193
|
|
|
194
|
-
See the [full docs](https://christophervr.github.io/pptx
|
|
194
|
+
See the [full docs](https://christophervr.github.io/ooxml/pptx/svelte/) for
|
|
195
195
|
the complete props/events contract, theming, and localization guides.
|
|
196
196
|
|
|
197
197
|
### Composing a custom viewer shell
|
|
@@ -202,7 +202,7 @@ keep a host-owned configuration reactive. Its `shellState` exposes effective
|
|
|
202
202
|
uses the same editability rule as the native editor. `EditorLayer`,
|
|
203
203
|
`CollaborationCursors`, `RemoteSelectionOverlay` and their prop types are exported
|
|
204
204
|
from `/viewer` for composing the real editing and presence layers with `SlideCanvas`.
|
|
205
|
-
See the [custom-shell collaboration guide](https://christophervr.github.io/pptx
|
|
205
|
+
See the [custom-shell collaboration guide](https://christophervr.github.io/ooxml/pptx/svelte/collaboration#custom-host-chrome)
|
|
206
206
|
and `demos/demo-svelte/src/HostOwnedHeadlessEditor.svelte` for complete wiring.
|
|
207
207
|
|
|
208
208
|
`<PowerPointViewer>` bundles the slide canvas, ribbon, thumbnail rail,
|
|
@@ -324,7 +324,7 @@ import { translationsZhCN } from 'pptx-svelte-viewer/i18n/zh-CN';
|
|
|
324
324
|
|
|
325
325
|
The other subpaths are `i18n/fr` (`translationsFr`), `i18n/es`
|
|
326
326
|
(`translationsEs`), and `i18n/de` (`translationsDe`). See the
|
|
327
|
-
[localization guide](https://christophervr.github.io/pptx
|
|
327
|
+
[localization guide](https://christophervr.github.io/ooxml/pptx/guide/localization)
|
|
328
328
|
for registration and runtime switching. Existing English imports are unchanged.
|
|
329
329
|
|
|
330
330
|
## License
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as V } from "./transition-overlay-
|
|
2
|
-
import { B as ce, C as pe, E as de, F as ve, H as Y, I as U, L as $, P as O, R as ue, S as he, T as _e, U as A, V as ge, _ as xe, b as fe, g as me, h as be, m as ye, v as ke, w as we, x as Ce, y as Me, z as ze } from "./export-
|
|
1
|
+
import { E as V } from "./transition-overlay-BkW9yQMT.js";
|
|
2
|
+
import { B as ce, C as pe, E as de, F as ve, H as Y, I as U, L as $, P as O, R as ue, S as he, T as _e, U as A, V as ge, _ as xe, b as fe, g as me, h as be, m as ye, v as ke, w as we, x as Ce, y as Me, z as ze } from "./export-iyQ8bG1f.js";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as e from "svelte/internal/client";
|
|
5
5
|
import { onMount as Se, untrack as R } from "svelte";
|