pptx-svelte-viewer 3.17.6 → 3.18.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 +33 -0
- package/README.md +17 -1
- package/dist/{AiChatPanel-DYx-wxe0.js → AiChatPanel-BpbQoAYF.js} +1 -1
- package/dist/{export-BRpAFsau.js → export-BUF4iVeY.js} +34675 -34256
- package/dist/index.d.ts +32 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/viewer/editor/deck-api.d.ts +4 -0
- package/dist/viewer/editor/deck-api.d.ts.map +1 -1
- package/dist/viewer/editor/editor-controller-wiring.d.ts.map +1 -1
- package/dist/viewer/editor/editor-document-lifecycle.d.ts +2 -0
- package/dist/viewer/editor/editor-document-lifecycle.d.ts.map +1 -1
- package/dist/viewer/editor/editor-format-mutations.d.ts.map +1 -1
- package/dist/viewer/editor/editor-keyboard.d.ts +2 -0
- package/dist/viewer/editor/editor-keyboard.d.ts.map +1 -1
- package/dist/viewer/editor/editor-paragraph-mutations.d.ts.map +1 -1
- package/dist/viewer/editor/editor-text-extra-mutations.d.ts.map +1 -1
- package/dist/viewer/index.d.ts +34 -6
- package/dist/viewer/index.js +1 -1
- package/dist/viewer/state/create-viewer-state-derived.svelte.d.ts.map +1 -1
- package/dist/viewer/state/create-viewer-state-types.d.ts +3 -1
- package/dist/viewer/state/create-viewer-state-types.d.ts.map +1 -1
- package/dist/viewer/state/create-viewer-state.svelte.d.ts.map +1 -1
- package/dist/viewer/state/layout-state.svelte.d.ts +3 -1
- package/dist/viewer/state/layout-state.svelte.d.ts.map +1 -1
- package/dist/viewer/state/navigation.d.ts +2 -5
- package/dist/viewer/state/navigation.d.ts.map +1 -1
- package/dist/viewer/state/viewer-state-options.d.ts.map +1 -1
- package/dist/viewer/types.d.ts +2 -2
- package/dist/viewer/types.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,39 @@ 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.17.7](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-svelte-viewer@3.17.7) - 2026-09-13
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- **shared:** Preserve paragraph properties across text insertion (by @Sudhansh6) ([624c880](https://github.com/ChristopherVR/pptx-viewer/commit/624c880ed0a1396b91a4203334bb59a409b9eec0))
|
|
15
|
+
- **core:** Preserve run styles after text-only edits (by @Sudhansh6) ([3cb843c](https://github.com/ChristopherVR/pptx-viewer/commit/3cb843c0a3bf609da00007036ec601274214890c))
|
|
16
|
+
- **core:** Size percentage bullets from the first text run (by @Sudhansh6) ([51e26e1](https://github.com/ChristopherVR/pptx-viewer/commit/51e26e1ace134a48ae7eb74207ac12a11ee44ea1))
|
|
17
|
+
|
|
18
|
+
### Refactor
|
|
19
|
+
|
|
20
|
+
- **core:** Expose numbering sequence for paragraph edits (by @Sudhansh6) ([a27fb46](https://github.com/ChristopherVR/pptx-viewer/commit/a27fb465f8b7bbb9b373106fbc3051709329a5bf))
|
|
21
|
+
|
|
22
|
+
### Testing
|
|
23
|
+
|
|
24
|
+
- **svelte:** Cover paragraph insertion and edit history (by @Sudhansh6) ([695b266](https://github.com/ChristopherVR/pptx-viewer/commit/695b2663c15dfaf141c92b01d01ee77466bb3058))
|
|
25
|
+
|
|
26
|
+
### Chores
|
|
27
|
+
|
|
28
|
+
- Merge updated SmartArt geometry coverage (by @Sudhansh6) ([d0364a9](https://github.com/ChristopherVR/pptx-viewer/commit/d0364a9169fc8520b91ccd73ac30962cbbf520d2))
|
|
29
|
+
- Merge main before SmartArt cancellation contribution (by @Sudhansh6) ([4581de6](https://github.com/ChristopherVR/pptx-viewer/commit/4581de613b294edc07534bd4721c0e1e1afe2ebb))
|
|
30
|
+
|
|
31
|
+
## [3.17.6](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-svelte-viewer@3.17.6) - 2026-09-12
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
- **shared:** Measure SmartArt overlays in local SVG coordinates (by @Sudhansh6) ([e79f3b5](https://github.com/ChristopherVR/pptx-viewer/commit/e79f3b5c5f0ac99835e3206f6262c005e576454f))
|
|
36
|
+
- **svelte:** Position SmartArt editors in local coordinates (by @Sudhansh6) ([36c8359](https://github.com/ChristopherVR/pptx-viewer/commit/36c8359196c3c922468d88939d3babe7d1ddda84))
|
|
37
|
+
- **core:** Preserve edited table column widths on save (by @Sudhansh6) ([fe4539f](https://github.com/ChristopherVR/pptx-viewer/commit/fe4539f0aead4ea773ef1aa4426debba40c39f16))
|
|
38
|
+
|
|
39
|
+
### Chores
|
|
40
|
+
|
|
41
|
+
- Merge main and preserve SmartArt editing coverage (by @Sudhansh6) ([f3c32b4](https://github.com/ChristopherVR/pptx-viewer/commit/f3c32b473e9677b61590dbd8503ba64cdc34bd86))
|
|
42
|
+
|
|
10
43
|
## [3.17.5](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-svelte-viewer@3.17.5) - 2026-09-12
|
|
11
44
|
|
|
12
45
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -84,6 +84,19 @@ import 'pptx-svelte-viewer/styles';
|
|
|
84
84
|
</div>
|
|
85
85
|
```
|
|
86
86
|
|
|
87
|
+
### Viewport fit options
|
|
88
|
+
|
|
89
|
+
```svelte
|
|
90
|
+
<PowerPointViewer {source} fitPadding={0} maxFitScale={null} />
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
`fitPadding` is a per-side CSS-pixel number or `{ horizontal, vertical }`;
|
|
94
|
+
`maxFitScale` is a positive fit-factor ceiling or `null` for unlimited enlargement.
|
|
95
|
+
Omission preserves 24 px padding on each side and unlimited fit enlargement.
|
|
96
|
+
Custom state hosts can supply live `getFitPadding` / `getMaxFitScale` getters to
|
|
97
|
+
`createViewerState`. These options do not change document geometry, user zoom,
|
|
98
|
+
or fullscreen fitting. See the [cross-binding defaults](../../docs/guide/viewport-fit.md).
|
|
99
|
+
|
|
87
100
|
## Props
|
|
88
101
|
|
|
89
102
|
| Prop | Type | Default | Description |
|
|
@@ -163,12 +176,15 @@ editing and export methods (the `PowerPointViewerApi` type):
|
|
|
163
176
|
- **Slides / elements**: `getSlides()`, `getSlide(index)`, `getActiveSlide()`,
|
|
164
177
|
`addSlide(afterIndex?)`, `deleteSlides(indexes)`, `duplicateSlides(indexes)`,
|
|
165
178
|
`moveSlide(from, to)`, `toggleHideSlides(indexes)`, `getElements(slideIndex?)`,
|
|
166
|
-
`getElementById(id, slideIndex?)`, `updateElement(id, patch)`,
|
|
179
|
+
`getElementById(id, slideIndex?)`, `addElement(element)`, `updateElement(id, patch)`,
|
|
167
180
|
`deleteElements(ids)`, `duplicateElement(id)`.
|
|
168
181
|
- **Export / print**: `exportSlidePng(index?)`, `copySlideAsImage(index?)`,
|
|
169
182
|
`exportPdf(options?)`, `exportGif(options?)`, `exportVideo(options?)`,
|
|
170
183
|
`print(options?)`.
|
|
171
184
|
|
|
185
|
+
See [element insertion](https://christophervr.github.io/pptx-viewer/svelte/api#add-element)
|
|
186
|
+
for the `addElement` contract and a core-factory example.
|
|
187
|
+
|
|
172
188
|
See the [full docs](https://christophervr.github.io/pptx-viewer/svelte/) for
|
|
173
189
|
the complete props/events contract, theming, and localization guides.
|
|
174
190
|
|
|
@@ -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-BUF4iVeY.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";
|