pptx-react-viewer 1.16.2 → 1.17.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 +16 -0
- package/dist/{Model3DScene-DI6FSWDL.mjs → Model3DScene-QHDYQXL2.mjs} +2 -2
- package/dist/Model3DScene-QHDYQXL2.mjs.br +0 -0
- package/dist/Model3DScene-QHDYQXL2.mjs.gz +0 -0
- package/dist/{Model3DScene-PE7L24QK.js → Model3DScene-YA4F63DT.js} +3 -3
- package/dist/Model3DScene-YA4F63DT.js.br +0 -0
- package/dist/Model3DScene-YA4F63DT.js.gz +0 -0
- package/dist/PowerPointViewer-C4d7SKZf.d.ts +21 -0
- package/dist/PowerPointViewer-C4d7SKZf.d.ts.map +1 -0
- package/dist/{SurfaceChart3DScene-NMLG3BQK.mjs → SurfaceChart3DScene-GUAS2NWQ.mjs} +2 -2
- package/dist/SurfaceChart3DScene-GUAS2NWQ.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-GUAS2NWQ.mjs.gz +0 -0
- package/dist/{SurfaceChart3DScene-AJLD3VW6.js → SurfaceChart3DScene-TGNJHTJQ.js} +3 -3
- package/dist/SurfaceChart3DScene-TGNJHTJQ.js.br +0 -0
- package/dist/SurfaceChart3DScene-TGNJHTJQ.js.gz +0 -0
- package/dist/{chunk-HJQZJ3VE.mjs → chunk-5CD34U2V.mjs} +1 -1
- package/dist/chunk-5CD34U2V.mjs.br +0 -0
- package/dist/chunk-5CD34U2V.mjs.gz +0 -0
- package/dist/{chunk-46HNHBHF.mjs → chunk-G22EWPLH.mjs} +134 -4
- package/dist/chunk-G22EWPLH.mjs.br +0 -0
- package/dist/chunk-G22EWPLH.mjs.gz +0 -0
- package/dist/{chunk-JBCVQFWI.mjs → chunk-HN7CPQUG.mjs} +5 -5
- package/dist/chunk-HN7CPQUG.mjs.br +0 -0
- package/dist/chunk-HN7CPQUG.mjs.gz +0 -0
- package/dist/{chunk-WGLJ32FW.js → chunk-IZXN663G.js} +1 -1
- package/dist/chunk-IZXN663G.js.br +0 -0
- package/dist/chunk-IZXN663G.js.gz +0 -0
- package/dist/{chunk-WMRS37KQ.js → chunk-JWS3RQKN.js} +160 -28
- package/dist/chunk-JWS3RQKN.js.br +0 -0
- package/dist/chunk-JWS3RQKN.js.gz +0 -0
- package/dist/{chunk-YAQOTVZT.js → chunk-MGLRKGCH.js} +146 -66
- package/dist/chunk-MGLRKGCH.js.br +0 -0
- package/dist/chunk-MGLRKGCH.js.gz +0 -0
- package/dist/{chunk-DZF4BNRP.mjs → chunk-PCQH2UBR.mjs} +230 -232
- package/dist/chunk-PCQH2UBR.mjs.br +0 -0
- package/dist/chunk-PCQH2UBR.mjs.gz +0 -0
- package/dist/{chunk-MZYQUURK.js → chunk-SXCO5HHN.js} +438 -438
- package/dist/chunk-SXCO5HHN.js.br +0 -0
- package/dist/chunk-SXCO5HHN.js.gz +0 -0
- package/dist/{chunk-VRASDGWX.js → chunk-WH7YXV3I.js} +1026 -1028
- package/dist/chunk-WH7YXV3I.js.br +0 -0
- package/dist/chunk-WH7YXV3I.js.gz +0 -0
- package/dist/{chunk-X7ILBQEY.mjs → chunk-XRYREYXC.mjs} +146 -66
- package/dist/chunk-XRYREYXC.mjs.br +0 -0
- package/dist/chunk-XRYREYXC.mjs.gz +0 -0
- package/dist/{dist-VMFNUFUX.js → dist-2ZAH7U6U.js} +507 -507
- package/dist/dist-2ZAH7U6U.js.br +0 -0
- package/dist/dist-2ZAH7U6U.js.gz +0 -0
- package/dist/{dist-JJ2NI2O3.mjs → dist-MXDC6YTS.mjs} +1 -1
- package/dist/dist-MXDC6YTS.mjs.br +0 -0
- package/dist/dist-MXDC6YTS.mjs.gz +0 -0
- package/dist/hooks-unstable.d.ts +9683 -1886
- package/dist/hooks-unstable.d.ts.map +1 -0
- package/dist/hooks-unstable.js +75 -75
- package/dist/hooks-unstable.js.br +0 -0
- package/dist/hooks-unstable.js.gz +0 -0
- package/dist/hooks-unstable.mjs +4 -4
- package/dist/hooks-unstable.mjs.br +0 -0
- package/dist/hooks-unstable.mjs.gz +0 -0
- package/dist/i18n.d.ts +27 -1
- package/dist/i18n.d.ts.map +1 -0
- package/dist/i18n.js +3 -3
- package/dist/i18n.js.br +1 -1
- package/dist/i18n.js.gz +0 -0
- package/dist/i18n.mjs +1 -1
- package/dist/i18n.mjs.br +0 -0
- package/dist/i18n.mjs.gz +0 -0
- package/dist/index-XGt7MZpa.d.ts +607 -0
- package/dist/index-XGt7MZpa.d.ts.map +1 -0
- package/dist/index.d.ts +4753 -10
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -19
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/types-BK7Nt13M.d.ts +483 -0
- package/dist/types-BK7Nt13M.d.ts.map +1 -0
- package/dist/viewer/index.d.ts +8008 -88
- package/dist/viewer/index.d.ts.map +1 -0
- package/dist/viewer/index.js +20 -20
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +5 -5
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +6 -5
- package/dist/Model3DScene-DI6FSWDL.mjs.br +0 -0
- package/dist/Model3DScene-DI6FSWDL.mjs.gz +0 -0
- package/dist/Model3DScene-PE7L24QK.js.br +0 -0
- package/dist/Model3DScene-PE7L24QK.js.gz +0 -0
- package/dist/PowerPointViewer-BsaUH3ZT.d.ts +0 -26
- package/dist/PowerPointViewer-Nxku67uL.d.mts +0 -26
- package/dist/SurfaceChart3DScene-AJLD3VW6.js.br +0 -0
- package/dist/SurfaceChart3DScene-AJLD3VW6.js.gz +0 -0
- package/dist/SurfaceChart3DScene-NMLG3BQK.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-NMLG3BQK.mjs.gz +0 -0
- package/dist/chunk-46HNHBHF.mjs.br +0 -0
- package/dist/chunk-46HNHBHF.mjs.gz +0 -0
- package/dist/chunk-DZF4BNRP.mjs.br +0 -0
- package/dist/chunk-DZF4BNRP.mjs.gz +0 -0
- package/dist/chunk-HJQZJ3VE.mjs.br +0 -0
- package/dist/chunk-HJQZJ3VE.mjs.gz +0 -0
- package/dist/chunk-JBCVQFWI.mjs.br +0 -0
- package/dist/chunk-JBCVQFWI.mjs.gz +0 -0
- package/dist/chunk-MZYQUURK.js.br +0 -0
- package/dist/chunk-MZYQUURK.js.gz +0 -0
- package/dist/chunk-VRASDGWX.js.br +0 -0
- package/dist/chunk-VRASDGWX.js.gz +0 -0
- package/dist/chunk-WGLJ32FW.js.br +0 -0
- package/dist/chunk-WGLJ32FW.js.gz +0 -0
- package/dist/chunk-WMRS37KQ.js.br +0 -0
- package/dist/chunk-WMRS37KQ.js.gz +0 -0
- package/dist/chunk-X7ILBQEY.mjs.br +0 -0
- package/dist/chunk-X7ILBQEY.mjs.gz +0 -0
- package/dist/chunk-YAQOTVZT.js.br +0 -0
- package/dist/chunk-YAQOTVZT.js.gz +0 -0
- package/dist/dist-JJ2NI2O3.mjs.br +0 -0
- package/dist/dist-JJ2NI2O3.mjs.gz +0 -0
- package/dist/dist-VMFNUFUX.js.br +0 -0
- package/dist/dist-VMFNUFUX.js.gz +0 -0
- package/dist/hooks-unstable.d.mts +0 -2300
- package/dist/i18n.d.mts +0 -1
- package/dist/index.d.mts +0 -46
- package/dist/types-ui-NG29h55h.d.mts +0 -712
- package/dist/types-ui-NG29h55h.d.ts +0 -712
- package/dist/usePresenterWindow-DToCijGy.d.ts +0 -1619
- package/dist/usePresenterWindow-DeTm-unp.d.mts +0 -1619
- package/dist/viewer/index.d.mts +0 -129
package/dist/i18n.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TranslationKey, keyToLabel, translationsEn } from 'pptx-viewer-shared/i18n';
|
package/dist/index.d.mts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export { P as PowerPointViewer, g as getAnimationInitialStyle } from './PowerPointViewer-Nxku67uL.mjs';
|
|
2
|
-
export { P as PowerPointViewerAPI, a as PowerPointViewerHandle, b as PowerPointViewerProps, V as ViewerMode } from './types-ui-NG29h55h.mjs';
|
|
3
|
-
import { Options } from 'html2canvas-pro';
|
|
4
|
-
import * as React$1 from 'react';
|
|
5
|
-
import { ViewerTheme } from './theme/index.js';
|
|
6
|
-
export { ViewerTheme, ViewerThemeColors, defaultCssVars, defaultRadius, defaultThemeColors, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius } from './theme/index.js';
|
|
7
|
-
import './presentation-BfnrtJV1.js';
|
|
8
|
-
|
|
9
|
-
interface ViewerThemeProviderProps {
|
|
10
|
-
theme?: ViewerTheme;
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Provides a `ViewerTheme` to all descendant viewer components.
|
|
15
|
-
*
|
|
16
|
-
* Typically you do **not** need to use this directly; passing a `theme`
|
|
17
|
-
* prop to `<PowerPointViewer>` is sufficient. This provider is exposed
|
|
18
|
-
* for advanced use-cases where you want to wrap multiple viewers or
|
|
19
|
-
* share a theme across a wider subtree.
|
|
20
|
-
*/
|
|
21
|
-
declare function ViewerThemeProvider({ theme, children }: ViewerThemeProviderProps): React$1.JSX.Element;
|
|
22
|
-
/**
|
|
23
|
-
* Returns the active `ViewerTheme` (if any) from the nearest
|
|
24
|
-
* `ViewerThemeProvider`.
|
|
25
|
-
*/
|
|
26
|
-
declare function useViewerTheme(): ViewerTheme | undefined;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* A drop-in replacement for `html2canvas(element, options)` that first
|
|
30
|
-
* resolves any oklch / oklab / lch / lab / color() values in the cloned
|
|
31
|
-
* DOM to rgb()/hex, preventing parse errors in html2canvas <= 1.x.
|
|
32
|
-
*
|
|
33
|
-
* Three-pronged approach:
|
|
34
|
-
* 1. Patch `<style>` elements to replace oklch in CSS custom properties.
|
|
35
|
-
* 2. Resolve `:root` / `<body>` inline custom properties.
|
|
36
|
-
* 3. Walk every element and convert computed colour values to sRGB.
|
|
37
|
-
*
|
|
38
|
-
* Usage:
|
|
39
|
-
* ```ts
|
|
40
|
-
* import { renderToCanvas } from "../lib/canvas-export";
|
|
41
|
-
* const canvas = await renderToCanvas(element, { scale: 2 });
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
declare function renderToCanvas(element: HTMLElement, options?: Partial<Options>): Promise<HTMLCanvasElement>;
|
|
45
|
-
|
|
46
|
-
export { ViewerThemeProvider, renderToCanvas, useViewerTheme };
|