pptx-vanilla-viewer 0.5.1 → 0.6.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 +2 -0
- package/README.md +10 -3
- package/dist/index.cjs +343 -97
- package/dist/index.d.ts +7941 -2051
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +343 -97
- package/dist/styles.css +1141 -0
- package/package.json +8 -6
- package/dist/index.d.cts +0 -2918
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,8 @@ 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.5.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vanilla-viewer@0.5.1) - 2026-07-13
|
|
8
|
+
|
|
7
9
|
## [0.5.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vanilla-viewer@0.5.0) - 2026-07-11
|
|
8
10
|
|
|
9
11
|
## [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.
|
|
90
|
-
|
|
91
|
-
|
|
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.
|