pptx-react-viewer 3.1.1 → 3.1.3
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 +22 -0
- package/dist/{AiChatPanel-EIENGCKW.mjs → AiChatPanel-5JAQBLTU.mjs} +4 -4
- package/dist/AiChatPanel-5JAQBLTU.mjs.br +0 -0
- package/dist/AiChatPanel-5JAQBLTU.mjs.gz +0 -0
- package/dist/{AiChatPanel-6PERJN7M.js → AiChatPanel-C3E7UV7T.js} +24 -24
- package/dist/AiChatPanel-C3E7UV7T.js.br +0 -0
- package/dist/AiChatPanel-C3E7UV7T.js.gz +0 -0
- package/dist/{Area3DChartScene-W6SVC235.mjs → Area3DChartScene-KE434ERF.mjs} +1 -1
- package/dist/{Area3DChartScene-W6SVC235.mjs.br → Area3DChartScene-KE434ERF.mjs.br} +0 -0
- package/dist/Area3DChartScene-KE434ERF.mjs.gz +0 -0
- package/dist/{Area3DChartScene-TXCLQLBQ.js → Area3DChartScene-XY2PKRMA.js} +2 -2
- package/dist/Area3DChartScene-XY2PKRMA.js.br +0 -0
- package/dist/Area3DChartScene-XY2PKRMA.js.gz +0 -0
- package/dist/{Bar3DChartScene-FCVUZIJ3.mjs → Bar3DChartScene-2KQABQZM.mjs} +1 -1
- package/dist/{Bar3DChartScene-FCVUZIJ3.mjs.br → Bar3DChartScene-2KQABQZM.mjs.br} +0 -0
- package/dist/Bar3DChartScene-2KQABQZM.mjs.gz +0 -0
- package/dist/{Bar3DChartScene-6RHPFLZT.js → Bar3DChartScene-YMADUUZN.js} +2 -2
- package/dist/Bar3DChartScene-YMADUUZN.js.br +0 -0
- package/dist/Bar3DChartScene-YMADUUZN.js.gz +0 -0
- package/dist/{Line3DChartScene-2ZFE53KO.js → Line3DChartScene-AB7N6ORX.js} +2 -2
- package/dist/Line3DChartScene-AB7N6ORX.js.br +0 -0
- package/dist/Line3DChartScene-AB7N6ORX.js.gz +0 -0
- package/dist/{Line3DChartScene-MJXFXSPW.mjs → Line3DChartScene-K3BSK6BB.mjs} +1 -1
- package/dist/{Line3DChartScene-MJXFXSPW.mjs.br → Line3DChartScene-K3BSK6BB.mjs.br} +0 -0
- package/dist/Line3DChartScene-K3BSK6BB.mjs.gz +0 -0
- package/dist/{Model3DScene-A5RV3KNJ.mjs → Model3DScene-NT5RRIB5.mjs} +1 -1
- package/dist/{Model3DScene-A5RV3KNJ.mjs.br → Model3DScene-NT5RRIB5.mjs.br} +0 -0
- package/dist/Model3DScene-NT5RRIB5.mjs.gz +0 -0
- package/dist/{Model3DScene-7VQNRY5B.js → Model3DScene-VSLGUWC7.js} +2 -2
- package/dist/{Model3DScene-7VQNRY5B.js.br → Model3DScene-VSLGUWC7.js.br} +0 -0
- package/dist/Model3DScene-VSLGUWC7.js.gz +0 -0
- package/dist/{PieChart3DScene-JTHZESS3.js → PieChart3DScene-6MUFRFYJ.js} +2 -2
- package/dist/PieChart3DScene-6MUFRFYJ.js.br +0 -0
- package/dist/PieChart3DScene-6MUFRFYJ.js.gz +0 -0
- package/dist/{PieChart3DScene-UEVFZZVW.mjs → PieChart3DScene-NFRBKII7.mjs} +1 -1
- package/dist/PieChart3DScene-NFRBKII7.mjs.br +0 -0
- package/dist/PieChart3DScene-NFRBKII7.mjs.gz +0 -0
- package/dist/PowerPointViewer-Cl6jBPNw.d.ts.map +1 -1
- package/dist/{SurfaceChart3DScene-FXUNT5OK.js → SurfaceChart3DScene-2UQOKVFB.js} +2 -2
- package/dist/SurfaceChart3DScene-2UQOKVFB.js.br +0 -0
- package/dist/SurfaceChart3DScene-2UQOKVFB.js.gz +0 -0
- package/dist/{SurfaceChart3DScene-WD65PAG4.mjs → SurfaceChart3DScene-UKIOTKJC.mjs} +1 -1
- package/dist/{SurfaceChart3DScene-WD65PAG4.mjs.br → SurfaceChart3DScene-UKIOTKJC.mjs.br} +0 -0
- package/dist/SurfaceChart3DScene-UKIOTKJC.mjs.gz +0 -0
- package/dist/{chunk-ICAYXQVJ.mjs → chunk-5WH6UVWC.mjs} +289 -135
- package/dist/chunk-5WH6UVWC.mjs.br +0 -0
- package/dist/chunk-5WH6UVWC.mjs.gz +0 -0
- package/dist/{chunk-OUX4O5XK.mjs → chunk-ACVLIDUS.mjs} +2 -2
- package/dist/chunk-ACVLIDUS.mjs.br +0 -0
- package/dist/chunk-ACVLIDUS.mjs.gz +0 -0
- package/dist/{chunk-MKPSUHUH.mjs → chunk-ARJE3V6V.mjs} +5 -6
- package/dist/chunk-ARJE3V6V.mjs.br +0 -0
- package/dist/chunk-ARJE3V6V.mjs.gz +0 -0
- package/dist/{chunk-MAOUVROK.mjs → chunk-BZ6OM3H5.mjs} +360 -338
- package/dist/chunk-BZ6OM3H5.mjs.br +0 -0
- package/dist/chunk-BZ6OM3H5.mjs.gz +0 -0
- package/dist/{chunk-GIFQWIW5.js → chunk-GCOGKBK3.js} +1368 -1214
- package/dist/chunk-GCOGKBK3.js.br +0 -0
- package/dist/chunk-GCOGKBK3.js.gz +0 -0
- package/dist/{chunk-IDTNKL4S.js → chunk-HMZA25W2.js} +300 -45
- package/dist/chunk-HMZA25W2.js.br +0 -0
- package/dist/chunk-HMZA25W2.js.gz +0 -0
- package/dist/{chunk-OZGFMZEX.js → chunk-K4DUVYZ7.js} +3 -3
- package/dist/chunk-K4DUVYZ7.js.br +0 -0
- package/dist/chunk-K4DUVYZ7.js.gz +0 -0
- package/dist/{chunk-GCE2TYHF.js → chunk-OABOL32L.js} +157 -157
- package/dist/chunk-OABOL32L.js.br +0 -0
- package/dist/chunk-OABOL32L.js.gz +0 -0
- package/dist/{chunk-ISDTM2V3.mjs → chunk-SRAXNEJX.mjs} +286 -45
- package/dist/chunk-SRAXNEJX.mjs.br +0 -0
- package/dist/chunk-SRAXNEJX.mjs.gz +0 -0
- package/dist/{chunk-PIUB7R2K.js → chunk-SWRY3SI5.js} +5 -6
- package/dist/chunk-SWRY3SI5.js.br +0 -0
- package/dist/chunk-SWRY3SI5.js.gz +0 -0
- package/dist/{chunk-OTBQBTTQ.js → chunk-XBR7W47W.js} +726 -706
- package/dist/chunk-XBR7W47W.js.br +0 -0
- package/dist/chunk-XBR7W47W.js.gz +0 -0
- package/dist/{chunk-5ERW2B25.mjs → chunk-Z3DEULRJ.mjs} +1 -1
- package/dist/chunk-Z3DEULRJ.mjs.br +0 -0
- package/dist/chunk-Z3DEULRJ.mjs.gz +0 -0
- package/dist/i18n.js +4 -4
- package/dist/i18n.js.br +0 -0
- 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.d.ts +27 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +47 -47
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +99 -22
- package/dist/internals.d.ts.map +1 -1
- package/dist/internals.js +79 -79
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +4 -4
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/pptx-viewer.css +1 -1
- package/dist/pptx-viewer.css.br +0 -0
- package/dist/pptx-viewer.css.gz +0 -0
- package/dist/{useViewerBuildingBlocks-DC1O_op4.d.ts → useViewerBuildingBlocks-X1L8BjsQ.d.ts} +19 -2
- package/dist/useViewerBuildingBlocks-X1L8BjsQ.d.ts.map +1 -0
- package/dist/viewer/index.js +27 -27
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +6 -6
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +1 -1
- package/dist/AiChatPanel-6PERJN7M.js.br +0 -0
- package/dist/AiChatPanel-6PERJN7M.js.gz +0 -0
- package/dist/AiChatPanel-EIENGCKW.mjs.br +0 -0
- package/dist/AiChatPanel-EIENGCKW.mjs.gz +0 -0
- package/dist/Area3DChartScene-TXCLQLBQ.js.br +0 -0
- package/dist/Area3DChartScene-TXCLQLBQ.js.gz +0 -0
- package/dist/Area3DChartScene-W6SVC235.mjs.gz +0 -0
- package/dist/Bar3DChartScene-6RHPFLZT.js.br +0 -0
- package/dist/Bar3DChartScene-6RHPFLZT.js.gz +0 -0
- package/dist/Bar3DChartScene-FCVUZIJ3.mjs.gz +0 -0
- package/dist/Line3DChartScene-2ZFE53KO.js.br +0 -0
- package/dist/Line3DChartScene-2ZFE53KO.js.gz +0 -0
- package/dist/Line3DChartScene-MJXFXSPW.mjs.gz +0 -0
- package/dist/Model3DScene-7VQNRY5B.js.gz +0 -0
- package/dist/Model3DScene-A5RV3KNJ.mjs.gz +0 -0
- package/dist/PieChart3DScene-JTHZESS3.js.br +0 -0
- package/dist/PieChart3DScene-JTHZESS3.js.gz +0 -0
- package/dist/PieChart3DScene-UEVFZZVW.mjs.br +0 -0
- package/dist/PieChart3DScene-UEVFZZVW.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-FXUNT5OK.js.br +0 -0
- package/dist/SurfaceChart3DScene-FXUNT5OK.js.gz +0 -0
- package/dist/SurfaceChart3DScene-WD65PAG4.mjs.gz +0 -0
- package/dist/chunk-5ERW2B25.mjs.br +0 -0
- package/dist/chunk-5ERW2B25.mjs.gz +0 -0
- package/dist/chunk-GCE2TYHF.js.br +0 -0
- package/dist/chunk-GCE2TYHF.js.gz +0 -0
- package/dist/chunk-GIFQWIW5.js.br +0 -0
- package/dist/chunk-GIFQWIW5.js.gz +0 -0
- package/dist/chunk-ICAYXQVJ.mjs.br +0 -0
- package/dist/chunk-ICAYXQVJ.mjs.gz +0 -0
- package/dist/chunk-IDTNKL4S.js.br +0 -0
- package/dist/chunk-IDTNKL4S.js.gz +0 -0
- package/dist/chunk-ISDTM2V3.mjs.br +0 -0
- package/dist/chunk-ISDTM2V3.mjs.gz +0 -0
- package/dist/chunk-MAOUVROK.mjs.br +0 -0
- package/dist/chunk-MAOUVROK.mjs.gz +0 -0
- package/dist/chunk-MKPSUHUH.mjs.br +0 -0
- package/dist/chunk-MKPSUHUH.mjs.gz +0 -0
- package/dist/chunk-OTBQBTTQ.js.br +0 -0
- package/dist/chunk-OTBQBTTQ.js.gz +0 -0
- package/dist/chunk-OUX4O5XK.mjs.br +0 -0
- package/dist/chunk-OUX4O5XK.mjs.gz +0 -0
- package/dist/chunk-OZGFMZEX.js.br +0 -0
- package/dist/chunk-OZGFMZEX.js.gz +0 -0
- package/dist/chunk-PIUB7R2K.js.br +0 -0
- package/dist/chunk-PIUB7R2K.js.gz +0 -0
- package/dist/useViewerBuildingBlocks-DC1O_op4.d.ts.map +0 -1
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ThemePresets, PptxMarkdownConverter } from './chunk-
|
|
1
|
+
import { ThemePresets, PptxMarkdownConverter } from './chunk-SRAXNEJX.mjs';
|
|
2
2
|
import { __export } from './chunk-XGB3TDIC.mjs';
|
|
3
3
|
import * as mcp from 'pptx-viewer-mcp';
|
|
4
4
|
import * as mcpSchemas from 'pptx-viewer-mcp/schemas';
|
|
Binary file
|
|
Binary file
|
package/dist/i18n.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSWRY3SI5_js = require('./chunk-SWRY3SI5.js');
|
|
4
4
|
require('./chunk-4VNS5WPM.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "LOCALE_CATALOG", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkSWRY3SI5_js.LOCALE_CATALOG; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "keyToLabel", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkSWRY3SI5_js.keyToLabel; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "translationsEn", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkSWRY3SI5_js.translationsEn; }
|
|
19
19
|
});
|
package/dist/i18n.js.br
CHANGED
|
Binary file
|
package/dist/i18n.js.gz
CHANGED
|
Binary file
|
package/dist/i18n.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { LOCALE_CATALOG, keyToLabel, translationsEn } from './chunk-
|
|
1
|
+
export { LOCALE_CATALOG, keyToLabel, translationsEn } from './chunk-ARJE3V6V.mjs';
|
|
2
2
|
import './chunk-XGB3TDIC.mjs';
|
package/dist/i18n.mjs.br
CHANGED
|
Binary file
|
package/dist/i18n.mjs.gz
CHANGED
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -10262,6 +10262,15 @@ interface ViewerAdvancedOptions {
|
|
|
10262
10262
|
showGrid: boolean;
|
|
10263
10263
|
snapToGrid: boolean;
|
|
10264
10264
|
disableHardwareAcceleration: boolean;
|
|
10265
|
+
/**
|
|
10266
|
+
* Force every opt-in interactive 3D scene (SmartArt, bar/line/area/pie/
|
|
10267
|
+
* surface charts) to fall back to its flat 2D rendering, even when the
|
|
10268
|
+
* host has enabled that scene via its own `smartArt3D`/`*Chart3D` prop.
|
|
10269
|
+
* A host opting in says "this deck may want 3D"; this is the viewer
|
|
10270
|
+
* user's own override for when the WebGL scenes it renders are too much
|
|
10271
|
+
* for their machine. See `resolve3DRenderingFlags`.
|
|
10272
|
+
*/
|
|
10273
|
+
disable3DRendering: boolean;
|
|
10265
10274
|
openDocumentsView: OpenDocumentsView;
|
|
10266
10275
|
slideShowShowMenuOnRightClick: boolean;
|
|
10267
10276
|
slideShowShowPopupToolbar: boolean;
|
|
@@ -10934,6 +10943,15 @@ interface ToolbarProps {
|
|
|
10934
10943
|
fileName?: string;
|
|
10935
10944
|
mode: ViewerMode;
|
|
10936
10945
|
canEdit: boolean;
|
|
10946
|
+
/**
|
|
10947
|
+
* True when `canEdit` is false because Trust Center > "Open presentations
|
|
10948
|
+
* in Protected View" is on (not because the host itself withheld edit
|
|
10949
|
+
* permission). Turns the toolbar's read-only badge into an "Enable
|
|
10950
|
+
* Editing" action.
|
|
10951
|
+
*/
|
|
10952
|
+
isProtectedView?: boolean;
|
|
10953
|
+
/** Drops the Protected View override for this session. Only offered when `isProtectedView` is true. */
|
|
10954
|
+
onEnableEditing?: () => void;
|
|
10937
10955
|
isNarrowViewport: boolean;
|
|
10938
10956
|
isSidebarCollapsed: boolean;
|
|
10939
10957
|
isInspectorPaneOpen: boolean;
|
|
@@ -11034,7 +11052,6 @@ interface ToolbarProps {
|
|
|
11034
11052
|
onExportVideo: () => void;
|
|
11035
11053
|
onExportGif: () => void;
|
|
11036
11054
|
onExportJson: () => void;
|
|
11037
|
-
onPackageForSharing: () => void;
|
|
11038
11055
|
onOpenShareDialog?: () => void;
|
|
11039
11056
|
onSaveAsPptx: () => void;
|
|
11040
11057
|
onSaveAsPpsx: () => void;
|
|
@@ -11140,12 +11157,21 @@ interface ToolbarProps {
|
|
|
11140
11157
|
onPresentationPropertiesChange?: (updates: Partial<PptxPresentationProperties>) => void;
|
|
11141
11158
|
/** Host-supplied list of toolbar buttons/ribbon tabs to hide. See `PowerPointViewerProps.hiddenActions`. */
|
|
11142
11159
|
hiddenActions?: readonly ToolbarActionId[];
|
|
11160
|
+
/** File > Options > Advanced > "Quickly access this number of Recent Documents". */
|
|
11161
|
+
recentPresentationsCount?: number;
|
|
11143
11162
|
/** Whether the AI assistant is available (the host passed the `ai` prop). */
|
|
11144
11163
|
aiEnabled?: boolean;
|
|
11145
11164
|
/** Whether the AI assistant panel is currently open. */
|
|
11146
11165
|
isAiPanelOpen?: boolean;
|
|
11147
11166
|
/** Toggle the AI assistant panel. */
|
|
11148
11167
|
onToggleAiPanel?: () => void;
|
|
11168
|
+
/**
|
|
11169
|
+
* Run a Quick Access command beyond the dedicated Save/Undo/Redo trio, by
|
|
11170
|
+
* catalog id. Used for the below-ribbon strip when Options > Quick Access
|
|
11171
|
+
* Toolbar > position is "below" (the same handler `TitleBar` uses for its
|
|
11172
|
+
* own inline strip when position is "above").
|
|
11173
|
+
*/
|
|
11174
|
+
onQuickCommand?: (id: string) => void;
|
|
11149
11175
|
}
|
|
11150
11176
|
//#endregion
|
|
11151
11177
|
//#region src/viewer/utils/table-band-style.d.ts
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/viewer/components/Toolbar.tsx","../src/viewer/components/SlideCanvas.tsx","../src/viewer/components/SlideTemplateGalleryDialog.tsx","../src/viewer/components/SlideTemplatePreview.tsx","../src/lib/canvas-export.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/viewer/components/Toolbar.tsx","../src/viewer/components/SlideCanvas.tsx","../src/viewer/components/SlideTemplateGalleryDialog.tsx","../src/viewer/components/SlideTemplatePreview.tsx","../src/lib/canvas-export.ts"],"mappings":";;;;;;;;iBA+BgB,QAAQ,GAAG,eAAe,MAAM;;;iBCGhC,cACf,aACA,kBACA,YACA,MACA,MACA,SACA,kBACA,sBACA,iBACA,wBACA,mBACA,mBACA,eACA,kBACA,uBACA,WACA,UACA,eACA,YACA,WACA,QACA,2BACA,0BACA,SACA,eACA,aACA,eACA,mBACA,qBACA,yBACA,UACA,oBACA,oBACA,oBACA,mBACA,kBACA,yBACA,cACA,sBACA,kBACA,aACA,iBACA,kBACA,YACA,cACA,cACA,cACA,iBACA,oBACA,mBACA,eACA,kBACA,UACA,oBACA,sBACA,aACA,eACA,wBACA,uBACA,mBACA,yBACA,WACA,aACA,kBACA,cACA,mBACA,sBACA,YACE,mCAAgB,IAAA;;;UCpFF;EAChB;EACA;EACA,WAAW,YAAY;;EAEvB,SAAS;;iBAGM,6BACf,QACA,SACA,UACA,UACE,kCAAkC,MAAM;;;UCT1B;EAChB,YAAY;;EAEZ,SAAS;;iBAGM,uBACf,YACA,UACE,4BAA4B,MAAM;;;;;;;;;;;;;;;;;;;iBCGf,eACrB,SAAS,aACT,UAAS,QAAQ,WACf,QAAQ"}
|
package/dist/index.js
CHANGED
|
@@ -1,176 +1,176 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
3
|
+
var chunkGCOGKBK3_js = require('./chunk-GCOGKBK3.js');
|
|
4
|
+
require('./chunk-K4DUVYZ7.js');
|
|
5
|
+
var chunkXBR7W47W_js = require('./chunk-XBR7W47W.js');
|
|
6
|
+
var chunkOABOL32L_js = require('./chunk-OABOL32L.js');
|
|
7
|
+
var chunkSWRY3SI5_js = require('./chunk-SWRY3SI5.js');
|
|
8
|
+
var chunkHMZA25W2_js = require('./chunk-HMZA25W2.js');
|
|
9
9
|
require('./chunk-4VNS5WPM.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
Object.defineProperty(exports, "PowerPointViewer", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkGCOGKBK3_js.PowerPointViewer; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "SlideCanvas", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkGCOGKBK3_js.SlideCanvas; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "SlideTemplateGalleryDialog", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkGCOGKBK3_js.SlideTemplateGalleryDialog; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "SlideTemplatePreview", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkGCOGKBK3_js.SlideTemplatePreview; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "Toolbar", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkGCOGKBK3_js.Toolbar; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "ViewerThemeProvider", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkGCOGKBK3_js.ViewerThemeProvider; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "useViewerTheme", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkGCOGKBK3_js.useViewerTheme; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "renderToCanvas", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkXBR7W47W_js.renderToCanvas; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "useViewerBuildingBlocks", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkXBR7W47W_js.useViewerBuildingBlocks; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "getAnimationInitialStyle", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkOABOL32L_js.getAnimationInitialStyle; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "LOCALE_CATALOG", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkSWRY3SI5_js.LOCALE_CATALOG; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "AVATAR_COLOR_SWATCHES", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkHMZA25W2_js.AVATAR_COLOR_SWATCHES; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "DEFAULT_VIEWER_PROFILE", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkHMZA25W2_js.DEFAULT_VIEWER_PROFILE; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "PPTX_OPEN_ACCEPT", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkHMZA25W2_js.PPTX_OPEN_ACCEPT; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "PRESENTATION_OPEN_EXTENSIONS", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkHMZA25W2_js.PRESENTATION_OPEN_EXTENSIONS; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "SLIDE_TEMPLATES", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkHMZA25W2_js.SLIDE_TEMPLATES; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "THEME_CATALOG", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkHMZA25W2_js.THEME_CATALOG; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "VIEWER_PREFS_STORAGE_KEY", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkHMZA25W2_js.VIEWER_PREFS_STORAGE_KEY; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "buildSlideTemplateContent", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkHMZA25W2_js.buildSlideTemplateContent; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "buildSlideTemplateSlide", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkHMZA25W2_js.buildSlideTemplateSlide; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "clearAllLocalViewerData", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkHMZA25W2_js.clearAllLocalViewerData; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "clearStoredViewerPrefs", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkHMZA25W2_js.clearStoredViewerPrefs; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "defaultCssVars", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkHMZA25W2_js.defaultCssVars; }
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "defaultRadius", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkHMZA25W2_js.defaultRadius; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "defaultThemeColors", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkHMZA25W2_js.defaultThemeColors; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "getLocalStorageUsageSummary", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkHMZA25W2_js.getLocalStorageUsageSummary; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "isLegacyBinaryPresentation", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkHMZA25W2_js.isLegacyBinaryPresentation; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "isSupportedPresentationFile", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkHMZA25W2_js.isSupportedPresentationFile; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "presentationBaseName", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkHMZA25W2_js.presentationBaseName; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "readStoredViewerPrefs", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkHMZA25W2_js.readStoredViewerPrefs; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "resolveProfileInitial", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkHMZA25W2_js.resolveProfileInitial; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "resolveThemeCatalogEntry", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkHMZA25W2_js.resolveThemeCatalogEntry; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "saveViewerProfile", {
|
|
142
142
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkHMZA25W2_js.saveViewerProfile; }
|
|
144
144
|
});
|
|
145
145
|
Object.defineProperty(exports, "savedPresentationFileName", {
|
|
146
146
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkHMZA25W2_js.savedPresentationFileName; }
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "themeToCssVars", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkHMZA25W2_js.themeToCssVars; }
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "vermilionDarkColors", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkHMZA25W2_js.vermilionDarkColors; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "vermilionDarkTheme", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkHMZA25W2_js.vermilionDarkTheme; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "vermilionLightColors", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkHMZA25W2_js.vermilionLightColors; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "vermilionLightTheme", {
|
|
166
166
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkHMZA25W2_js.vermilionLightTheme; }
|
|
168
168
|
});
|
|
169
169
|
Object.defineProperty(exports, "vermilionRadius", {
|
|
170
170
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkHMZA25W2_js.vermilionRadius; }
|
|
172
172
|
});
|
|
173
173
|
Object.defineProperty(exports, "writeStoredViewerPrefs", {
|
|
174
174
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkHMZA25W2_js.writeStoredViewerPrefs; }
|
|
176
176
|
});
|
package/dist/index.js.br
CHANGED
|
Binary file
|
package/dist/index.js.gz
CHANGED
|
Binary file
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { PowerPointViewer, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, Toolbar, ViewerThemeProvider, useViewerTheme } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
export { renderToCanvas, useViewerBuildingBlocks } from './chunk-
|
|
4
|
-
export { getAnimationInitialStyle } from './chunk-
|
|
5
|
-
export { LOCALE_CATALOG } from './chunk-
|
|
6
|
-
export { AVATAR_COLOR_SWATCHES, DEFAULT_VIEWER_PROFILE, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, SLIDE_TEMPLATES, THEME_CATALOG, VIEWER_PREFS_STORAGE_KEY, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, defaultCssVars, defaultRadius, defaultThemeColors, getLocalStorageUsageSummary, isLegacyBinaryPresentation, isSupportedPresentationFile, presentationBaseName, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, savedPresentationFileName, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from './chunk-
|
|
1
|
+
export { PowerPointViewer, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, Toolbar, ViewerThemeProvider, useViewerTheme } from './chunk-5WH6UVWC.mjs';
|
|
2
|
+
import './chunk-Z3DEULRJ.mjs';
|
|
3
|
+
export { renderToCanvas, useViewerBuildingBlocks } from './chunk-BZ6OM3H5.mjs';
|
|
4
|
+
export { getAnimationInitialStyle } from './chunk-ACVLIDUS.mjs';
|
|
5
|
+
export { LOCALE_CATALOG } from './chunk-ARJE3V6V.mjs';
|
|
6
|
+
export { AVATAR_COLOR_SWATCHES, DEFAULT_VIEWER_PROFILE, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, SLIDE_TEMPLATES, THEME_CATALOG, VIEWER_PREFS_STORAGE_KEY, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, defaultCssVars, defaultRadius, defaultThemeColors, getLocalStorageUsageSummary, isLegacyBinaryPresentation, isSupportedPresentationFile, presentationBaseName, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, savedPresentationFileName, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from './chunk-SRAXNEJX.mjs';
|
|
7
7
|
import './chunk-XGB3TDIC.mjs';
|
package/dist/index.mjs.br
CHANGED
|
Binary file
|
package/dist/index.mjs.gz
CHANGED
|
Binary file
|
package/dist/internals.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Y from 'yjs';
|
|
2
2
|
import { Doc } from 'yjs';
|
|
3
|
-
import React$1, { RefObject, Dispatch, SetStateAction,
|
|
3
|
+
import React$1, { RefObject, Dispatch, SetStateAction, ForwardedRef } from 'react';
|
|
4
4
|
|
|
5
5
|
//#region src/core/types/actions.d.ts
|
|
6
6
|
/**
|
|
@@ -10428,6 +10428,15 @@ interface ViewerAdvancedOptions {
|
|
|
10428
10428
|
showGrid: boolean;
|
|
10429
10429
|
snapToGrid: boolean;
|
|
10430
10430
|
disableHardwareAcceleration: boolean;
|
|
10431
|
+
/**
|
|
10432
|
+
* Force every opt-in interactive 3D scene (SmartArt, bar/line/area/pie/
|
|
10433
|
+
* surface charts) to fall back to its flat 2D rendering, even when the
|
|
10434
|
+
* host has enabled that scene via its own `smartArt3D`/`*Chart3D` prop.
|
|
10435
|
+
* A host opting in says "this deck may want 3D"; this is the viewer
|
|
10436
|
+
* user's own override for when the WebGL scenes it renders are too much
|
|
10437
|
+
* for their machine. See `resolve3DRenderingFlags`.
|
|
10438
|
+
*/
|
|
10439
|
+
disable3DRendering: boolean;
|
|
10431
10440
|
openDocumentsView: OpenDocumentsView;
|
|
10432
10441
|
slideShowShowMenuOnRightClick: boolean;
|
|
10433
10442
|
slideShowShowPopupToolbar: boolean;
|
|
@@ -10501,6 +10510,17 @@ interface PrintSettings {
|
|
|
10501
10510
|
slideRange: PrintSlideRange;
|
|
10502
10511
|
customRangeFrom: number;
|
|
10503
10512
|
customRangeTo: number;
|
|
10513
|
+
/**
|
|
10514
|
+
* PowerPoint's Print > "Scale to Fit Paper". `true` (the default, and the
|
|
10515
|
+
* only behavior this printed output ever had before this field existed)
|
|
10516
|
+
* shrinks/grows each slide image to fill its page/cell while preserving
|
|
10517
|
+
* aspect ratio. `false` prints at the slide's native pixel size instead,
|
|
10518
|
+
* which may overflow or under-fill the page, exactly like PowerPoint with
|
|
10519
|
+
* the option off. Optional so existing `Partial<PrintSettings>` literals
|
|
10520
|
+
* across every binding keep compiling; `validatePrintSettings` defaults it
|
|
10521
|
+
* to `true`.
|
|
10522
|
+
*/
|
|
10523
|
+
scaleToFit?: boolean;
|
|
10504
10524
|
}
|
|
10505
10525
|
//#endregion
|
|
10506
10526
|
//#region src/render/options/viewer-options-store.d.ts
|
|
@@ -10771,6 +10791,15 @@ interface ToolbarProps {
|
|
|
10771
10791
|
fileName?: string;
|
|
10772
10792
|
mode: ViewerMode;
|
|
10773
10793
|
canEdit: boolean;
|
|
10794
|
+
/**
|
|
10795
|
+
* True when `canEdit` is false because Trust Center > "Open presentations
|
|
10796
|
+
* in Protected View" is on (not because the host itself withheld edit
|
|
10797
|
+
* permission). Turns the toolbar's read-only badge into an "Enable
|
|
10798
|
+
* Editing" action.
|
|
10799
|
+
*/
|
|
10800
|
+
isProtectedView?: boolean;
|
|
10801
|
+
/** Drops the Protected View override for this session. Only offered when `isProtectedView` is true. */
|
|
10802
|
+
onEnableEditing?: () => void;
|
|
10774
10803
|
isNarrowViewport: boolean;
|
|
10775
10804
|
isSidebarCollapsed: boolean;
|
|
10776
10805
|
isInspectorPaneOpen: boolean;
|
|
@@ -10871,7 +10900,6 @@ interface ToolbarProps {
|
|
|
10871
10900
|
onExportVideo: () => void;
|
|
10872
10901
|
onExportGif: () => void;
|
|
10873
10902
|
onExportJson: () => void;
|
|
10874
|
-
onPackageForSharing: () => void;
|
|
10875
10903
|
onOpenShareDialog?: () => void;
|
|
10876
10904
|
onSaveAsPptx: () => void;
|
|
10877
10905
|
onSaveAsPpsx: () => void;
|
|
@@ -10977,12 +11005,21 @@ interface ToolbarProps {
|
|
|
10977
11005
|
onPresentationPropertiesChange?: (updates: Partial<PptxPresentationProperties>) => void;
|
|
10978
11006
|
/** Host-supplied list of toolbar buttons/ribbon tabs to hide. See `PowerPointViewerProps.hiddenActions`. */
|
|
10979
11007
|
hiddenActions?: readonly ToolbarActionId[];
|
|
11008
|
+
/** File > Options > Advanced > "Quickly access this number of Recent Documents". */
|
|
11009
|
+
recentPresentationsCount?: number;
|
|
10980
11010
|
/** Whether the AI assistant is available (the host passed the `ai` prop). */
|
|
10981
11011
|
aiEnabled?: boolean;
|
|
10982
11012
|
/** Whether the AI assistant panel is currently open. */
|
|
10983
11013
|
isAiPanelOpen?: boolean;
|
|
10984
11014
|
/** Toggle the AI assistant panel. */
|
|
10985
11015
|
onToggleAiPanel?: () => void;
|
|
11016
|
+
/**
|
|
11017
|
+
* Run a Quick Access command beyond the dedicated Save/Undo/Redo trio, by
|
|
11018
|
+
* catalog id. Used for the below-ribbon strip when Options > Quick Access
|
|
11019
|
+
* Toolbar > position is "below" (the same handler `TitleBar` uses for its
|
|
11020
|
+
* own inline strip when position is "above").
|
|
11021
|
+
*/
|
|
11022
|
+
onQuickCommand?: (id: string) => void;
|
|
10986
11023
|
}
|
|
10987
11024
|
//#endregion
|
|
10988
11025
|
//#region src/viewer/utils/table-band-style.d.ts
|
|
@@ -12497,11 +12534,18 @@ interface UseLoadContentInput {
|
|
|
12497
12534
|
* load lands mid-session and would otherwise clobber remotely-synced state.
|
|
12498
12535
|
*/
|
|
12499
12536
|
onContentApplied?: () => void;
|
|
12537
|
+
/**
|
|
12538
|
+
* File > Options > Trust Center > "Allow external content". Forwarded to
|
|
12539
|
+
* `PptxHandler.load` as `allowExternalImages`; core defaults this to
|
|
12540
|
+
* `false` (drop `http(s)://` image sources) regardless of what this flag
|
|
12541
|
+
* says unless it is passed through explicitly.
|
|
12542
|
+
*/
|
|
12543
|
+
allowExternalImages?: boolean;
|
|
12500
12544
|
}
|
|
12501
12545
|
interface UseLoadContentResult {
|
|
12502
12546
|
handlerRef: React.MutableRefObject<PptxHandler | null>;
|
|
12503
12547
|
}
|
|
12504
|
-
declare function useLoadContent({ content, clearSelection, history, setSlides, setTemplateElementsBySlideId, mediaDataUrls, setCanvasSize, setSlideSizeEmu, setHeaderFooter, setLayoutOptions, setSlideMasters, setTheme, setTableStyleMap, setThemeOptions, setCustomShows, setActiveCustomShowId, setSections, setPresentationProperties, setViewProperties, setNotesMaster, setHandoutMaster, setNotesCanvasSize, setCustomProperties, setTagCollections, setCoreProperties, setAppProperties, setEmbeddedFonts, setActiveSlideIndex, setHasMacros, setHasDigitalSignatures, setDigitalSignatureCount, setGuides, setLoading, setError, setIsDirty, setIsEncrypted, onContentApplied }: UseLoadContentInput): UseLoadContentResult;
|
|
12548
|
+
declare function useLoadContent({ content, clearSelection, history, setSlides, setTemplateElementsBySlideId, mediaDataUrls, setCanvasSize, setSlideSizeEmu, setHeaderFooter, setLayoutOptions, setSlideMasters, setTheme, setTableStyleMap, setThemeOptions, setCustomShows, setActiveCustomShowId, setSections, setPresentationProperties, setViewProperties, setNotesMaster, setHandoutMaster, setNotesCanvasSize, setCustomProperties, setTagCollections, setCoreProperties, setAppProperties, setEmbeddedFonts, setActiveSlideIndex, setHasMacros, setHasDigitalSignatures, setDigitalSignatureCount, setGuides, setLoading, setError, setIsDirty, setIsEncrypted, onContentApplied, allowExternalImages }: UseLoadContentInput): UseLoadContentResult;
|
|
12505
12549
|
//#endregion
|
|
12506
12550
|
//#region src/viewer/hooks/useElementOperations.d.ts
|
|
12507
12551
|
/**
|
|
@@ -12870,6 +12914,8 @@ interface UseTableOperationsInput {
|
|
|
12870
12914
|
setTableEditorState: Dispatch<SetStateAction<TableCellEditorState | null>>;
|
|
12871
12915
|
ops: ElementOperations;
|
|
12872
12916
|
history: EditorHistoryResult;
|
|
12917
|
+
/** AutoCorrect transform applied to committed table-cell text edits. */
|
|
12918
|
+
transformCommittedText?: (text: string) => string;
|
|
12873
12919
|
}
|
|
12874
12920
|
interface TableStructHandlers {
|
|
12875
12921
|
handleCommitCellEdit: (elementId: string, rowIndex: number, colIndex: number, text: string) => void;
|
|
@@ -12903,7 +12949,6 @@ interface UseExportHandlersInput {
|
|
|
12903
12949
|
canvasStageRef: RefObject<HTMLDivElement | null>;
|
|
12904
12950
|
setActiveSlideIndex: Dispatch<SetStateAction<number>>;
|
|
12905
12951
|
handlerRef: RefObject<PptxHandler | null>;
|
|
12906
|
-
serializeSlides: () => Promise<Uint8Array | null>;
|
|
12907
12952
|
/** State from the viewer needed for save-as */
|
|
12908
12953
|
headerFooter: Record<string, unknown>;
|
|
12909
12954
|
presentationProperties: Record<string, unknown>;
|
|
@@ -12943,6 +12988,13 @@ interface UseExportHandlersInput {
|
|
|
12943
12988
|
*/
|
|
12944
12989
|
slideSizeEmu?: SlideSizeEmu | undefined;
|
|
12945
12990
|
password?: string;
|
|
12991
|
+
/**
|
|
12992
|
+
* File > Options > Advanced > "Image Size and Quality"
|
|
12993
|
+
* (`resolveImageResolutionScale`), the raster-scale multiplier for PNG/PDF
|
|
12994
|
+
* export and copy-slide-as-image. Defaults to 2 (the pre-existing hardcoded
|
|
12995
|
+
* behavior) when omitted.
|
|
12996
|
+
*/
|
|
12997
|
+
imageExportScale?: number;
|
|
12946
12998
|
}
|
|
12947
12999
|
interface ExportHandlersResult {
|
|
12948
13000
|
handleExportPng: () => Promise<void>;
|
|
@@ -12952,7 +13004,6 @@ interface ExportHandlersResult {
|
|
|
12952
13004
|
handleExportVideo: () => Promise<void>;
|
|
12953
13005
|
handleExportGif: () => Promise<void>;
|
|
12954
13006
|
handleExportJson: () => void;
|
|
12955
|
-
handlePackageForSharing: () => Promise<void>;
|
|
12956
13007
|
handleSaveAsFormat: (format: PptxSaveFormat) => Promise<void>;
|
|
12957
13008
|
handleSaveAsPptx: () => void;
|
|
12958
13009
|
handleSaveAsPpsx: () => void;
|
|
@@ -12963,14 +13014,6 @@ interface ExportHandlersResult {
|
|
|
12963
13014
|
exportProgress: number;
|
|
12964
13015
|
exportStatusMessage: string;
|
|
12965
13016
|
}
|
|
12966
|
-
/** Controls for the shared export-progress modal, passed to sub-hooks. */
|
|
12967
|
-
interface ExportModalControls {
|
|
12968
|
-
setExportModalOpen: (open: boolean) => void;
|
|
12969
|
-
setExportModalTitle: (title: string) => void;
|
|
12970
|
-
setExportProgress: (progress: number) => void;
|
|
12971
|
-
setExportStatusMessage: (message: string) => void;
|
|
12972
|
-
exportAbortRef: MutableRefObject<AbortController | null>;
|
|
12973
|
-
}
|
|
12974
13017
|
//#endregion
|
|
12975
13018
|
//#region src/viewer/hooks/useExportHandlers.d.ts
|
|
12976
13019
|
declare function useExportHandlers(input: UseExportHandlersInput): ExportHandlersResult;
|
|
@@ -13457,6 +13500,16 @@ interface PresentationSetupResult {
|
|
|
13457
13500
|
presentation: UsePresentationModeResult;
|
|
13458
13501
|
annotations: UsePresentationAnnotationsResult;
|
|
13459
13502
|
actionSoundHandlerRef: React.MutableRefObject<PptxHandler | null>;
|
|
13503
|
+
/**
|
|
13504
|
+
* Wire the caller's own exit-mode handler (typically
|
|
13505
|
+
* `useAnnotationHandlers`'s `handleSetMode`) so keyboard/end-of-show exits
|
|
13506
|
+
* (Escape, the timed end-of-show advance) share the exact same
|
|
13507
|
+
* keep/discard-ink-annotations dialog as the toolbar's exit button,
|
|
13508
|
+
* instead of a second, independently-diverging implementation. Safe to
|
|
13509
|
+
* call on every render (a plain ref write); the handler is only read
|
|
13510
|
+
* later, from the async keyboard/timer callbacks below.
|
|
13511
|
+
*/
|
|
13512
|
+
setExitModeHandler: (handler: ((nextMode: ViewerMode) => void) | null) => void;
|
|
13460
13513
|
}
|
|
13461
13514
|
declare function usePresentationSetup(input: UsePresentationSetupInput): PresentationSetupResult;
|
|
13462
13515
|
//#endregion
|
|
@@ -13522,6 +13575,8 @@ interface UseIOHandlersInput {
|
|
|
13522
13575
|
setContent: React$1.Dispatch<React$1.SetStateAction<ArrayBuffer | Uint8Array | null>>;
|
|
13523
13576
|
onContentChange: ((content: Uint8Array) => void) | undefined;
|
|
13524
13577
|
password?: string;
|
|
13578
|
+
/** File > Options > Advanced > "Image Size and Quality" raster-scale multiplier. */
|
|
13579
|
+
imageExportScale?: number;
|
|
13525
13580
|
}
|
|
13526
13581
|
interface IOHandlersResult {
|
|
13527
13582
|
exportHandlers: ExportHandlersResult;
|
|
@@ -13561,6 +13616,8 @@ interface UseContentLifecycleInput {
|
|
|
13561
13616
|
password?: string;
|
|
13562
13617
|
/** Forwarded to {@link useLoadContent}: fires after a parse applies. */
|
|
13563
13618
|
onContentApplied?: () => void;
|
|
13619
|
+
/** Forwarded to {@link useLoadContent}: File > Options > Trust Center > "Allow external content". */
|
|
13620
|
+
allowExternalImages?: boolean;
|
|
13564
13621
|
}
|
|
13565
13622
|
interface ContentLifecycleResult {
|
|
13566
13623
|
handlerRef: React$1.RefObject<PptxHandler | null>;
|
|
@@ -13618,7 +13675,21 @@ interface UseViewerIntegrationInput {
|
|
|
13618
13675
|
* Optional: omitting it keeps the shared 120s AutoRecover default.
|
|
13619
13676
|
*/
|
|
13620
13677
|
autosaveIntervalMs?: number;
|
|
13678
|
+
/** File > Options > Trust Center > "Allow external content"; forwarded to `useContentLifecycle`. */
|
|
13679
|
+
allowExternalImages?: boolean;
|
|
13621
13680
|
canEdit: boolean;
|
|
13681
|
+
/**
|
|
13682
|
+
* Options > Advanced > "Prompt to keep ink annotations when exiting"
|
|
13683
|
+
* (default true). When false, exiting a slide show with annotations
|
|
13684
|
+
* skips the dialog and keeps them silently.
|
|
13685
|
+
*/
|
|
13686
|
+
promptKeepInkAnnotations?: boolean;
|
|
13687
|
+
/**
|
|
13688
|
+
* File > Options > Advanced > "Image Size and Quality", resolved via the
|
|
13689
|
+
* shared `resolveImageResolutionScale`. Threaded into PNG/PDF export and
|
|
13690
|
+
* copy-slide-as-image so the option actually controls output resolution.
|
|
13691
|
+
*/
|
|
13692
|
+
imageExportScale?: number;
|
|
13622
13693
|
mode: ViewerState['mode'];
|
|
13623
13694
|
slides: PptxSlide[];
|
|
13624
13695
|
activeSlide: PptxSlide | undefined;
|
|
@@ -13704,10 +13775,12 @@ interface ToolbarVisibility {
|
|
|
13704
13775
|
/** True when `id` is present in the host's `hiddenActions` list. */
|
|
13705
13776
|
isHidden: (id: ToolbarActionId) => boolean;
|
|
13706
13777
|
/**
|
|
13707
|
-
* True when a ribbon-section id should render
|
|
13708
|
-
* `
|
|
13709
|
-
*
|
|
13710
|
-
*
|
|
13778
|
+
* True when a ribbon-section id should render: neither the host's
|
|
13779
|
+
* `hiddenActions` list nor the user's own Options > Customize Ribbon
|
|
13780
|
+
* unticked it. React's local `ToolbarSection` union has two contextual
|
|
13781
|
+
* ids (`text`, `arrange`) that are not part of the shared `ToolbarTabId`
|
|
13782
|
+
* catalogue; those always render since hiding them is outside this
|
|
13783
|
+
* feature's scope.
|
|
13711
13784
|
*/
|
|
13712
13785
|
isTabVisible: (id: string) => boolean;
|
|
13713
13786
|
}
|
|
@@ -13715,11 +13788,18 @@ interface ToolbarVisibility {
|
|
|
13715
13788
|
* Pure derivation, extracted from the hook so it can be unit-tested without
|
|
13716
13789
|
* a React renderer (matches the convention used by the other small
|
|
13717
13790
|
* derivation hooks in this directory).
|
|
13791
|
+
*
|
|
13792
|
+
* `hiddenTabIds` is the user's own Options > Customize Ribbon selection
|
|
13793
|
+
* (`options.ribbon.hiddenTabIds`); the File tab can never be hidden by it,
|
|
13794
|
+
* matching the shared `resolveVisibleRibbonTabs`.
|
|
13718
13795
|
*/
|
|
13719
|
-
declare function computeToolbarVisibility(hiddenActions: readonly ToolbarActionId[] | undefined): ToolbarVisibility;
|
|
13796
|
+
declare function computeToolbarVisibility(hiddenActions: readonly ToolbarActionId[] | undefined, hiddenTabIds?: readonly ToolbarTabId[]): ToolbarVisibility;
|
|
13720
13797
|
/**
|
|
13721
13798
|
* Builds a stable `{ isHidden, isTabVisible }` pair from the host-supplied
|
|
13722
|
-
* `hiddenActions` list
|
|
13799
|
+
* `hiddenActions` list and the live Options > Customize Ribbon selection
|
|
13800
|
+
* (read from `ViewerOptionsContext`, so this reacts to a mid-session change
|
|
13801
|
+
* without every caller having to thread the options snapshot through).
|
|
13802
|
+
* Recomputed only when the list reference or the hidden-tab set changes.
|
|
13723
13803
|
*/
|
|
13724
13804
|
declare function useToolbarVisibility(hiddenActions: readonly ToolbarActionId[] | undefined): ToolbarVisibility;
|
|
13725
13805
|
//#endregion
|
|
@@ -13927,7 +14007,6 @@ interface UseExportSaveAsInput {
|
|
|
13927
14007
|
templateElementsBySlideId: Record<string, PptxElement[]>;
|
|
13928
14008
|
filePath: string | undefined;
|
|
13929
14009
|
handlerRef: RefObject<PptxHandler | null>;
|
|
13930
|
-
serializeSlides: () => Promise<Uint8Array | null>;
|
|
13931
14010
|
headerFooter: Record<string, unknown>;
|
|
13932
14011
|
presentationProperties: Record<string, unknown>;
|
|
13933
14012
|
customShows: Array<{
|
|
@@ -13966,12 +14045,10 @@ interface UseExportSaveAsInput {
|
|
|
13966
14045
|
canvasSize: CanvasSize;
|
|
13967
14046
|
/** The EMU `p:sldSz` the viewer holds; see `UseExportHandlersInput`. */
|
|
13968
14047
|
slideSizeEmu?: SlideSizeEmu | undefined;
|
|
13969
|
-
modalControls: ExportModalControls;
|
|
13970
14048
|
password?: string;
|
|
13971
14049
|
}
|
|
13972
14050
|
interface ExportSaveAsResult {
|
|
13973
14051
|
handleExportJson: () => void;
|
|
13974
|
-
handlePackageForSharing: () => Promise<void>;
|
|
13975
14052
|
handleSaveAsFormat: (format: PptxSaveFormat) => Promise<void>;
|
|
13976
14053
|
handleSaveAsPptx: () => void;
|
|
13977
14054
|
handleSaveAsPpsx: () => void;
|