pptx-react-viewer 1.10.1 → 1.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 +8 -0
- package/README.md +10 -0
- package/dist/{PowerPointViewer-S-ugGq-b.d.mts → PowerPointViewer-88hWoBGx.d.mts} +1 -1
- package/dist/{PowerPointViewer-S-ugGq-b.d.ts → PowerPointViewer-88hWoBGx.d.ts} +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +555 -293
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +555 -293
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/viewer/index.d.mts +26 -9
- package/dist/viewer/index.d.ts +26 -9
- package/dist/viewer/index.js +555 -293
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +555 -293
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,14 @@ 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
|
+
## [1.10.2](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@1.10.2) - 2026-07-09
|
|
8
|
+
|
|
9
|
+
### Other
|
|
10
|
+
|
|
11
|
+
- Reconcile with origin/main before push (by @ChristopherVR) ([b8c46bc](https://github.com/ChristopherVR/pptx-viewer/commit/b8c46bc3622e301d3365f5c489144e5aa5401782))
|
|
12
|
+
|
|
13
|
+
## [1.10.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@1.10.1) - 2026-07-09
|
|
14
|
+
|
|
7
15
|
## [1.10.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@1.10.0) - 2026-07-08
|
|
8
16
|
|
|
9
17
|
## [1.9.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@1.9.1) - 2026-07-08
|
package/README.md
CHANGED
|
@@ -167,6 +167,16 @@ Override specific values with the `theme` prop:
|
|
|
167
167
|
|
|
168
168
|
All `ViewerTheme.colors` keys are optional; override only what you need. Helpers `defaultThemeColors`, `defaultRadius`, `themeToCssVars`, `defaultCssVars`, `ViewerThemeProvider`, and `useViewerTheme` are exported for advanced use. See the [full docs](https://christophervr.github.io/pptx-viewer/) for the complete token list.
|
|
169
169
|
|
|
170
|
+
Two ready-made presets ship with the package: `vermilionLightTheme` (warm paper canvas) and `vermilionDarkTheme` (dimmed presenter room), the same vermilion brand look as the [documentation site](https://christophervr.github.io/pptx-viewer/):
|
|
171
|
+
|
|
172
|
+
```tsx
|
|
173
|
+
import { PowerPointViewer, vermilionLightTheme } from 'pptx-react-viewer';
|
|
174
|
+
|
|
175
|
+
<PowerPointViewer content={bytes} theme={vermilionLightTheme} />;
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
The underlying palettes (`vermilionLightColors`, `vermilionDarkColors`) and radius (`vermilionRadius`) are exported too, so you can spread them into your own variant.
|
|
179
|
+
|
|
170
180
|
## Localization (i18n)
|
|
171
181
|
|
|
172
182
|
UI labels go through [i18next](https://www.i18next.com/) / [react-i18next](https://react.i18next.com/) with dotted keys such as `pptx.statusBar.allSaved`. Initialise an i18next instance and wrap your app in `I18nextProvider` (the demo's `demo/i18n.ts` shows a minimal config, including a `parseMissingKeyHandler` that derives Title Case labels for any key you don't explicitly translate). `pptx-react-viewer/i18n` exports `translationsEn` (the English dictionary), `keyToLabel` (the fallback), and a `TranslationKey` type you can use to type-check a new locale dictionary (`Record<TranslationKey, string>`) at compile time. Add a new language by supplying a resource bundle under its language code. See the [Localization guide](https://christophervr.github.io/pptx-viewer/guide/localization) for full wiring examples and how to contribute a translation upstream; the live demo's language picker is a working reference.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l, P, $, f, i, X, U, R, h, V } from './presentation-
|
|
1
|
+
import { l, P, $, f, i, X, U, R, h, V } from './presentation-CLc4eS3z.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default from 'react';
|
|
4
4
|
import { ViewerTheme } from './theme/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l, P, $, f, i, X, U, R, h, V } from './presentation-
|
|
1
|
+
import { l, P, $, f, i, X, U, R, h, V } from './presentation-CLc4eS3z.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default from 'react';
|
|
4
4
|
import { ViewerTheme } from './theme/index.js';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { P as PowerPointViewer, a as PowerPointViewerAPI, b as PowerPointViewerHandle, c as PowerPointViewerProps, V as ViewerMode, g as getAnimationInitialStyle } from './PowerPointViewer-
|
|
1
|
+
export { P as PowerPointViewer, a as PowerPointViewerAPI, b as PowerPointViewerHandle, c as PowerPointViewerProps, V as ViewerMode, g as getAnimationInitialStyle } from './PowerPointViewer-88hWoBGx.mjs';
|
|
2
2
|
import { Options } from 'html2canvas-pro';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import { ViewerTheme } from './theme/index.js';
|
|
5
|
-
export { ViewerTheme, ViewerThemeColors, defaultCssVars, defaultRadius, defaultThemeColors, themeToCssVars } from './theme/index.js';
|
|
6
|
-
import './presentation-
|
|
5
|
+
export { ViewerTheme, ViewerThemeColors, defaultCssVars, defaultRadius, defaultThemeColors, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius } from './theme/index.js';
|
|
6
|
+
import './presentation-CLc4eS3z.js';
|
|
7
7
|
|
|
8
8
|
interface ViewerThemeProviderProps {
|
|
9
9
|
theme?: ViewerTheme;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { P as PowerPointViewer, a as PowerPointViewerAPI, b as PowerPointViewerHandle, c as PowerPointViewerProps, V as ViewerMode, g as getAnimationInitialStyle } from './PowerPointViewer-
|
|
1
|
+
export { P as PowerPointViewer, a as PowerPointViewerAPI, b as PowerPointViewerHandle, c as PowerPointViewerProps, V as ViewerMode, g as getAnimationInitialStyle } from './PowerPointViewer-88hWoBGx.js';
|
|
2
2
|
import { Options } from 'html2canvas-pro';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import { ViewerTheme } from './theme/index.js';
|
|
5
|
-
export { ViewerTheme, ViewerThemeColors, defaultCssVars, defaultRadius, defaultThemeColors, themeToCssVars } from './theme/index.js';
|
|
6
|
-
import './presentation-
|
|
5
|
+
export { ViewerTheme, ViewerThemeColors, defaultCssVars, defaultRadius, defaultThemeColors, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius } from './theme/index.js';
|
|
6
|
+
import './presentation-CLc4eS3z.js';
|
|
7
7
|
|
|
8
8
|
interface ViewerThemeProviderProps {
|
|
9
9
|
theme?: ViewerTheme;
|