pptx-vanilla-viewer 0.5.1 → 0.7.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 CHANGED
@@ -4,6 +4,26 @@ 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
+ ## [0.6.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vanilla-viewer@0.6.0) - 2026-07-13
8
+
9
+ ### Features
10
+
11
+ - **bindings:** Close svelte and vanilla parity gaps (by @ChristopherVR) ([9cb9d7e](https://github.com/ChristopherVR/pptx-viewer/commit/9cb9d7e53bf1dcda3b051b0ba5737e17115be4c4))
12
+
13
+ ### Bug Fixes
14
+
15
+ - **build:** Restore compatibility after dependency updates (by @ChristopherVR) ([ddbfae6](https://github.com/ChristopherVR/pptx-viewer/commit/ddbfae687669b9e6c64fd3c3b16a592623b79c10))
16
+
17
+ ### Dependencies
18
+
19
+ - **deps:** Update html2canvas-pro to 2.2.3 (by @dependabot[bot]) ([0fe015b](https://github.com/ChristopherVR/pptx-viewer/commit/0fe015b83722534f14864b2054ce6561b09386ca))
20
+ - **deps:** Update fast-xml-parser to 5.10.0 (by @dependabot[bot]) ([6080273](https://github.com/ChristopherVR/pptx-viewer/commit/6080273f6a6f603d10d69a71d54faad1e6d9bf05))
21
+ - **deps:** Update dompurify to 3.4.12 (by @dependabot[bot]) ([00a6ca4](https://github.com/ChristopherVR/pptx-viewer/commit/00a6ca49609d5a0e922a9e20447460b11ec690ba))
22
+ - **deps:** Update minor and patch dependencies (by @dependabot[bot]) ([5cd81fb](https://github.com/ChristopherVR/pptx-viewer/commit/5cd81fb0c8708e53990ac4858660d0b6a4b17a7a))
23
+ - **deps:** Update typescript to 7.0.2 (by @dependabot[bot]) ([0a7c1f1](https://github.com/ChristopherVR/pptx-viewer/commit/0a7c1f1f7f0ccdee9537f1e11177b6a39839d221))
24
+
25
+ ## [0.5.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vanilla-viewer@0.5.1) - 2026-07-13
26
+
7
27
  ## [0.5.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vanilla-viewer@0.5.0) - 2026-07-11
8
28
 
9
29
  ## [0.4.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vanilla-viewer@0.4.0) - 2026-07-11
package/README.md CHANGED
@@ -86,9 +86,9 @@ inline.
86
86
  ## Styling and theming
87
87
 
88
88
  Styles are injected once per document as a `<style id="pptx-vanilla-viewer-styles">`
89
- tag, scoped under the `.pptxv` root class. Hosts with a strict CSP can render
90
- the stylesheet themselves via `getViewerCss()` (the injection is a no-op once
91
- a node with that id exists).
89
+ tag, scoped under the `.pptxv` root class. CSP-strict hosts can import the
90
+ packaged static stylesheet with `import 'pptx-vanilla-viewer/styles.css'`.
91
+ `getViewerCss()` remains available when the host needs the stylesheet text.
92
92
 
93
93
  All chrome colors come from the shared `--pptx-*` CSS custom properties. Pass
94
94
  a `ViewerTheme` (`theme` option or `setTheme`) to override them; the
@@ -104,9 +104,16 @@ Pass `editable: true` (or call `setEditable(true)` at runtime) to turn on:
104
104
  rotate via a rotate handle (Shift snaps to angle increments).
105
105
  - Double-click a text-capable element for inline text editing.
106
106
  - Undo/redo (100-entry history), delete, and duplicate (`Ctrl/Cmd+D`).
107
+ - Insert, format, z-order, group, and ungroup elements from the ribbon.
108
+ - Edit inherited master/layout elements by enabling template editing in the
109
+ View ribbon or calling `setEditTemplateMode(true)`.
110
+ - Rich speaker notes, accessibility checks, autosave, and collaboration.
107
111
  - The toolbar's Save button (shown only when `editable`), which calls
108
112
  `downloadPptx()` to serialise and download the edited `.pptx`.
109
113
 
114
+ For CSP-strict hosts, import `pptx-vanilla-viewer/styles.css` instead of using
115
+ automatic style injection.
116
+
110
117
  Use `viewer.getSelectedElementId()` and the `onSelectionChange` /
111
118
  `onDirtyChange` callbacks to build your own chrome around the selection
112
119
  state.