pptx-svelte-viewer 3.18.1 → 3.19.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 +6 -0
- package/README.md +32 -27
- package/dist/{AiChatPanel-CxQDZU2h.js → AiChatPanel-B3wS82GP.js} +1 -1
- package/dist/{GLTFLoader-D2645ZAi.js → GLTFLoader-cXVvZ-Qt.js} +216 -199
- package/dist/{OrbitControls-Cm0ChW-y.js → OrbitControls-Dj3MmTu8.js} +9 -7
- package/dist/{export-DNPuv1AE.js → export-jE_PACKp.js} +32805 -32100
- package/dist/i18n.js +1 -1
- package/dist/index.js +2 -2
- package/dist/pptx-svelte-viewer.css +1 -1
- package/dist/{smartart-3d-DjfDf-du.js → smartart-3d-Btipz914.js} +2 -2
- package/dist/{three.module-CS4jrTOJ.js → three.module-BP1MPwgf.js} +4861 -4594
- package/dist/{translator-DTR0k69d.js → translator-wOMMyMjv.js} +5 -0
- package/dist/viewer/editor/editor-arrange-controller.d.ts +1 -1
- package/dist/viewer/editor/editor-arrange-controller.d.ts.map +1 -1
- package/dist/viewer/editor/editor-arrange-ops.d.ts +7 -3
- package/dist/viewer/editor/editor-arrange-ops.d.ts.map +1 -1
- package/dist/viewer/editor/editor-element-controller.d.ts.map +1 -1
- package/dist/viewer/editor/editor-freeform.d.ts +16 -0
- package/dist/viewer/editor/editor-freeform.d.ts.map +1 -1
- package/dist/viewer/editor/editor-ink-controller.svelte.d.ts +5 -4
- package/dist/viewer/editor/editor-ink-controller.svelte.d.ts.map +1 -1
- package/dist/viewer/editor/editor-state.svelte.d.ts +14 -0
- package/dist/viewer/editor/editor-state.svelte.d.ts.map +1 -1
- package/dist/viewer/editor/editor-template-controller.d.ts +8 -0
- package/dist/viewer/editor/editor-template-controller.d.ts.map +1 -1
- package/dist/viewer/index.d.ts +28 -5
- package/dist/viewer/index.js +1 -1
- package/dist/viewer/state/create-viewer-state.svelte.d.ts.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ A release listed with no entries carried no Conventional Commit in this package'
|
|
|
7
7
|
scope: scripts/release-plan.mjs re-releases a package whenever any of its files
|
|
8
8
|
change, not only on conventional ones.
|
|
9
9
|
|
|
10
|
+
## [3.18.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-svelte-viewer@3.18.1) - 2026-09-14
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- **i18n:** Localize inspector and ribbon controls (by @yunfeizhu) ([a657a76](https://github.com/ChristopherVR/pptx-viewer/commit/a657a766d653106f04d50f7b13a94a6c12c77f1e))
|
|
15
|
+
|
|
10
16
|
## [3.18.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-svelte-viewer@3.18.0) - 2026-09-13
|
|
11
17
|
|
|
12
18
|
### Features
|
package/README.md
CHANGED
|
@@ -49,6 +49,9 @@ Requires Svelte 5 (runes) as a peer. The `pptx-viewer-core` engine is
|
|
|
49
49
|
install automatically, so you don't install anything separately unless you
|
|
50
50
|
want to call the SDK directly.
|
|
51
51
|
|
|
52
|
+
Install `three` only when you enable a 3D SmartArt or 3D chart prop. The viewer falls back to
|
|
53
|
+
SVG when it is absent. Install `yjs` with `y-websocket` or `y-webrtc` only for collaboration.
|
|
54
|
+
|
|
52
55
|
Component styles ship as a real stylesheet, not runtime-injected CSS (which
|
|
53
56
|
proved unreliable in real SvelteKit apps: SSR, a strict CSP, or the host's own
|
|
54
57
|
global CSS could all cause it to silently not apply). Import it once at your
|
|
@@ -99,33 +102,35 @@ or fullscreen fitting. See the [cross-binding defaults](../../docs/guide/viewpor
|
|
|
99
102
|
|
|
100
103
|
## Props
|
|
101
104
|
|
|
102
|
-
| Prop
|
|
103
|
-
|
|
|
104
|
-
| `source`
|
|
105
|
-
| `theme`
|
|
106
|
-
| `fonts`
|
|
107
|
-
| `locale`
|
|
108
|
-
| `initialSlide`
|
|
109
|
-
| `showThumbnails`
|
|
110
|
-
| `showToolbar`
|
|
111
|
-
| `showNotes`
|
|
112
|
-
| `hiddenActions`
|
|
113
|
-
| `editable`
|
|
114
|
-
| `smartArt3D`
|
|
115
|
-
| `
|
|
116
|
-
| `
|
|
117
|
-
| `
|
|
118
|
-
| `
|
|
119
|
-
| `
|
|
120
|
-
| `
|
|
121
|
-
| `
|
|
122
|
-
| `
|
|
123
|
-
| `
|
|
124
|
-
| `
|
|
125
|
-
| `
|
|
126
|
-
| `
|
|
127
|
-
| `
|
|
128
|
-
| `
|
|
105
|
+
| Prop | Type | Default | Description |
|
|
106
|
+
| -------------------------------------------------------------------------- | ------------------------------------ | ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
|
|
107
|
+
| `source` | `Uint8Array \| ArrayBuffer \| null` | - | Raw `.pptx` bytes. |
|
|
108
|
+
| `theme` | `ViewerTheme` | - | Color/radius/CSS-var overrides. |
|
|
109
|
+
| `fonts` | `ViewerFontSource[]` | `[]` | Licensed font sources supplied by the host application. |
|
|
110
|
+
| `locale` | `string` | `'en'` | UI locale (see `pptx-svelte-viewer/i18n`). |
|
|
111
|
+
| `initialSlide` | `number` | `0` | Slide shown after load (0-based). |
|
|
112
|
+
| `showThumbnails` | `boolean` | `true` | Thumbnail sidebar. |
|
|
113
|
+
| `showToolbar` | `boolean` | `true` | Navigation/zoom/fullscreen toolbar. |
|
|
114
|
+
| `showNotes` | `boolean` | `true` | Speaker-notes panel and its toolbar toggle. |
|
|
115
|
+
| `hiddenActions` | `ToolbarActionId[]` | - | Toolbar buttons/ribbon tabs to hide individually (e.g. `['share', 'broadcast']`), instead of hiding the whole toolbar. |
|
|
116
|
+
| `editable` | `boolean` | `false` | Ribbon editing, insertion, arrange, and save. |
|
|
117
|
+
| `smartArt3D` | `boolean` | `false` | Opt-in Three.js 3D SmartArt renderer (needs the optional `three` peer; falls back to SVG without it). |
|
|
118
|
+
| `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. |
|
|
119
|
+
| `ai` | `PptxAiConfig` | n/a | Optional AI assistant configuration. The SDK peers load only when its panel is opened. |
|
|
120
|
+
| `class` | `string` | - | Class applied to the root element. |
|
|
121
|
+
| `fileName` | `string` | - | Display name shown in the desktop title bar. |
|
|
122
|
+
| `autosave` | `boolean` | `true` | Debounced crash-recovery autosave to IndexedDB (requires `filePath`; fires `onautosave`). |
|
|
123
|
+
| `filePath` | `string` | - | IndexedDB record key for autosave; autosave is inert without it. |
|
|
124
|
+
| `autosaveIntervalMs` | `number` | File > Options cadence | Autosave debounce window in milliseconds. |
|
|
125
|
+
| `collaboration` | `CollaborationConfig` | - | Yjs real-time collaboration config (y-websocket or serverless y-webrtc room, role). |
|
|
126
|
+
| `shareDefaults` | `{ roomId?, userName?, serverUrl? }` | - | Prefilled values for the Share/Broadcast dialogs. |
|
|
127
|
+
| `defaultThemeKey` | `string` | - | Initial File > Options > Appearance selection when no persisted preference exists. |
|
|
128
|
+
| `availableThemes` | `ThemeCatalogEntry[]` | - | Theme choices offered by File > Options > Appearance (defaults to the built-in catalog). |
|
|
129
|
+
| `onThemeChange` | `(key: string) => void` | - | Host hook for the appearance picker; when set, the host owns persisting the choice. |
|
|
130
|
+
| `defaultLocale` | `string` | - | Initial File > Options > Language selection when no persisted preference exists. |
|
|
131
|
+
| `availableLocales` | `LocaleCatalogEntry[]` | - | Locale choices offered by File > Options > Language (defaults to the registered dictionaries). |
|
|
132
|
+
| `onLocaleChange` | `(code: string) => void` | - | Host hook for the language picker; when set, the host owns persisting the switch. |
|
|
133
|
+
| `accountAuth` | `AccountAuthConfig` | - | Optional sign-in hook point for File > Account (disabled unless `enabled: true`). |
|
|
129
134
|
|
|
130
135
|
### Callbacks
|
|
131
136
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as ce, C as pe, D as de, E as ve, F as ue, H as A, I as he, L as U, N as Y, O as _e, P as $, R, S as ge, T as xe, U as V, V as fe, _ as me, b as be, g as ye, h as ke, k as we, v as Ce, w as Me, x as ze, y as Se, z as Pe } from "./export-
|
|
1
|
+
import { B as ce, C as pe, D as de, E as ve, F as ue, H as A, I as he, L as U, N as Y, O as _e, P as $, R, S as ge, T as xe, U as V, V as fe, _ as me, b as be, g as ye, h as ke, k as we, v as Ce, w as Me, x as ze, y as Se, z as Pe } from "./export-jE_PACKp.js";
|
|
2
2
|
import "svelte/internal/disclose-version";
|
|
3
3
|
import * as e from "svelte/internal/client";
|
|
4
4
|
import { onMount as qe, untrack as O } from "svelte";
|