pptx-svelte-viewer 3.17.7 → 3.18.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 +53 -0
- package/README.md +17 -1
- package/dist/{AiChatPanel-B_A9s0aw.js → AiChatPanel-CxQDZU2h.js} +1 -1
- package/dist/{export-Dj1gQ9uU.js → export-DNPuv1AE.js} +34608 -34241
- 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,59 @@ 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.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-svelte-viewer@3.18.0) - 2026-09-13
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- **shared:** Add configurable viewport fit options (by @Sudhansh6) ([93e3218](https://github.com/ChristopherVR/pptx-viewer/commit/93e3218de54ce8d153761e2fba83f3558fc3051b))
|
|
15
|
+
- **svelte:** Add configurable viewport fit options (by @Sudhansh6) ([ca86364](https://github.com/ChristopherVR/pptx-viewer/commit/ca86364ea1e047eed2880b14f46f1cfc7a1a2e42))
|
|
16
|
+
- **shared:** Expose public element insertion across viewers (by @Sudhansh6) ([2701047](https://github.com/ChristopherVR/pptx-viewer/commit/2701047d5011b5d7ce8408009addc1dc31f6e3f7))
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
- **core:** Preserve empty paragraph insertion formatting (by @Sudhansh6) ([121f6bf](https://github.com/ChristopherVR/pptx-viewer/commit/121f6bf9f64a29ab07e07b5d4f042a4b075d7876))
|
|
21
|
+
- **shared:** Preserve empty paragraph insertion formatting (by @Sudhansh6) ([b34d0f5](https://github.com/ChristopherVR/pptx-viewer/commit/b34d0f5ab9879e02f1de85c0e50b15f3947735c3))
|
|
22
|
+
- **svelte:** Preserve empty paragraph insertion formatting (by @Sudhansh6) ([256a707](https://github.com/ChristopherVR/pptx-viewer/commit/256a707679d9d583ac64cd51f76f4247e36cb010))
|
|
23
|
+
- **svelte:** Preserve unsaved state when notifying content changes (by @Sudhansh6) ([23dfbc7](https://github.com/ChristopherVR/pptx-viewer/commit/23dfbc707b40add5fed17efab2fe4441e837523d))
|
|
24
|
+
- **shared:** Continue inserted paragraphs from the local list (by @Sudhansh6) ([78b8226](https://github.com/ChristopherVR/pptx-viewer/commit/78b82261a320b93052627ec9e6e460c4845f6f32))
|
|
25
|
+
- **shared:** Leave empty clipboard paste shortcuts unclaimed (by @Sudhansh6) ([aec446f](https://github.com/ChristopherVR/pptx-viewer/commit/aec446f7f36371ad2f9c1cf3e68b7aaeb4f2cc28))
|
|
26
|
+
|
|
27
|
+
### Other
|
|
28
|
+
|
|
29
|
+
- Retain empty paragraph styles with source alignment (by @Sudhansh6) ([d979cd2](https://github.com/ChristopherVR/pptx-viewer/commit/d979cd25b7c05cef0fc4d4501c39d2bb11e572e0))
|
|
30
|
+
- Integrate semantic list commands with empty paragraph formatting (by @Sudhansh6) ([c5d9a6f](https://github.com/ChristopherVR/pptx-viewer/commit/c5d9a6f4f52c44180111c1f5fca0f10299dce47a))
|
|
31
|
+
- Sync main font and SmartArt fixes (by @Sudhansh6) ([f2066eb](https://github.com/ChristopherVR/pptx-viewer/commit/f2066eb87b62884cadd77593e8b36426398c3312))
|
|
32
|
+
- Sync main paragraph and history fixes (by @Sudhansh6) ([a18a2d7](https://github.com/ChristopherVR/pptx-viewer/commit/a18a2d7fe2bccf7d8c49b72d7a80087d423d1da0))
|
|
33
|
+
- Sync viewport fit changes from main (by @Sudhansh6) ([3c3c0bd](https://github.com/ChristopherVR/pptx-viewer/commit/3c3c0bdb2f88648dd20ffac9b6fd5a691741253d))
|
|
34
|
+
- Sync public insertion with viewport fit API (by @Sudhansh6) ([47df3db](https://github.com/ChristopherVR/pptx-viewer/commit/47df3db6bb7bb6bbee06e36c9ff9565b2fc61252))
|
|
35
|
+
- Sync public insertion with empty paragraph formatting (by @Sudhansh6) ([d1ad9c9](https://github.com/ChristopherVR/pptx-viewer/commit/d1ad9c9562313085cab62f3b9f9fa0abc6d0fa1f))
|
|
36
|
+
- Integrate preview and save-state fixes into insertion (by @Sudhansh6) ([1c33fb5](https://github.com/ChristopherVR/pptx-viewer/commit/1c33fb571634306e6dd989291185313e3cdafb49))
|
|
37
|
+
|
|
38
|
+
### Documentation
|
|
39
|
+
|
|
40
|
+
- Move viewport fitting into developer guides (by @Sudhansh6) ([60707eb](https://github.com/ChristopherVR/pptx-viewer/commit/60707ebf8f261779b2ebfa41ff0741267a672bd3))
|
|
41
|
+
|
|
42
|
+
## [3.17.7](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-svelte-viewer@3.17.7) - 2026-09-13
|
|
43
|
+
|
|
44
|
+
### Bug Fixes
|
|
45
|
+
|
|
46
|
+
- **shared:** Preserve paragraph properties across text insertion (by @Sudhansh6) ([624c880](https://github.com/ChristopherVR/pptx-viewer/commit/624c880ed0a1396b91a4203334bb59a409b9eec0))
|
|
47
|
+
- **core:** Preserve run styles after text-only edits (by @Sudhansh6) ([3cb843c](https://github.com/ChristopherVR/pptx-viewer/commit/3cb843c0a3bf609da00007036ec601274214890c))
|
|
48
|
+
- **core:** Size percentage bullets from the first text run (by @Sudhansh6) ([51e26e1](https://github.com/ChristopherVR/pptx-viewer/commit/51e26e1ace134a48ae7eb74207ac12a11ee44ea1))
|
|
49
|
+
|
|
50
|
+
### Refactor
|
|
51
|
+
|
|
52
|
+
- **core:** Expose numbering sequence for paragraph edits (by @Sudhansh6) ([a27fb46](https://github.com/ChristopherVR/pptx-viewer/commit/a27fb465f8b7bbb9b373106fbc3051709329a5bf))
|
|
53
|
+
|
|
54
|
+
### Testing
|
|
55
|
+
|
|
56
|
+
- **svelte:** Cover paragraph insertion and edit history (by @Sudhansh6) ([695b266](https://github.com/ChristopherVR/pptx-viewer/commit/695b2663c15dfaf141c92b01d01ee77466bb3058))
|
|
57
|
+
|
|
58
|
+
### Chores
|
|
59
|
+
|
|
60
|
+
- Merge updated SmartArt geometry coverage (by @Sudhansh6) ([d0364a9](https://github.com/ChristopherVR/pptx-viewer/commit/d0364a9169fc8520b91ccd73ac30962cbbf520d2))
|
|
61
|
+
- Merge main before SmartArt cancellation contribution (by @Sudhansh6) ([4581de6](https://github.com/ChristopherVR/pptx-viewer/commit/4581de613b294edc07534bd4721c0e1e1afe2ebb))
|
|
62
|
+
|
|
10
63
|
## [3.17.6](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-svelte-viewer@3.17.6) - 2026-09-12
|
|
11
64
|
|
|
12
65
|
### 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-DNPuv1AE.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";
|