pptx-vanilla-viewer 0.10.0 → 0.11.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 +26 -0
- package/dist/index.cjs +56 -56
- package/dist/index.d.ts +35 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +56 -56
- package/package.json +1 -1
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.10.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vanilla-viewer@0.10.0) - 2026-07-17
|
|
8
|
+
|
|
7
9
|
## [0.9.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-vanilla-viewer@0.9.1) - 2026-07-17
|
|
8
10
|
|
|
9
11
|
### Dependencies
|
package/README.md
CHANGED
|
@@ -94,6 +94,32 @@ All chrome colors come from the shared `--pptx-*` CSS custom properties. Pass
|
|
|
94
94
|
a `ViewerTheme` (`theme` option or `setTheme`) to override them; the
|
|
95
95
|
`vermilionLightTheme` / `vermilionDarkTheme` presets are re-exported.
|
|
96
96
|
|
|
97
|
+
## Toolbar customization
|
|
98
|
+
|
|
99
|
+
`showToolbar` hides the whole ribbon/title-bar/status-bar chrome; to hide
|
|
100
|
+
individual buttons or ribbon tabs instead, pass `hiddenActions`:
|
|
101
|
+
|
|
102
|
+
```ts
|
|
103
|
+
const viewer = createPptxViewer(document.getElementById('host')!, {
|
|
104
|
+
source: '/decks/quarterly.pptx',
|
|
105
|
+
editable: true,
|
|
106
|
+
// Hide Share, the Broadcast action, and the whole Insert ribbon tab, while
|
|
107
|
+
// keeping every other button and tab visible.
|
|
108
|
+
hiddenActions: ['share', 'broadcast', 'insert'],
|
|
109
|
+
});
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Each id in `hiddenActions` hides a single quick-access button (`'share'`,
|
|
113
|
+
`'broadcast'`, `'export'`, `'undo'`, `'redo'`, `'notes'`, `'fullscreen'`), a
|
|
114
|
+
whole control cluster as a unit (`'zoom'` covers zoom in/out/fit, `'navigation'`
|
|
115
|
+
covers the presentation slide-show's prev/next controls), or a ribbon tab
|
|
116
|
+
(`'file'`, `'home'`, `'insert'`, `'draw'`, `'design'`, `'transitions'`,
|
|
117
|
+
`'animations'`, `'slideShow'`, `'record'`, `'review'`, `'view'`, `'help'`).
|
|
118
|
+
`'record'` hides both the quick-access Record control and the Record ribbon
|
|
119
|
+
tab, since they surface the same feature. Hidden actions are never built (not
|
|
120
|
+
just visually hidden), on desktop and mobile chrome alike. Omit the option (or
|
|
121
|
+
leave it `undefined`) to keep today's fully-visible default.
|
|
122
|
+
|
|
97
123
|
## Editing
|
|
98
124
|
|
|
99
125
|
Pass `editable: true` (or call `setEditable(true)` at runtime) to turn on:
|