pptx-react-viewer 4.18.0 → 4.19.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 +35 -0
- package/dist/{AiChatPanel-4RAGQKFE.js → AiChatPanel-6ABOTMI4.js} +28 -28
- package/dist/AiChatPanel-6ABOTMI4.js.br +0 -0
- package/dist/AiChatPanel-6ABOTMI4.js.gz +0 -0
- package/dist/{AiChatPanel-BIS3OYZ2.mjs → AiChatPanel-QEOFQGNY.mjs} +4 -4
- package/dist/AiChatPanel-QEOFQGNY.mjs.br +0 -0
- package/dist/AiChatPanel-QEOFQGNY.mjs.gz +0 -0
- package/dist/{Model3DScene-ZVXXKGMO.mjs → Model3DScene-CKBO4RI2.mjs} +1 -1
- package/dist/{Model3DScene-ZVXXKGMO.mjs.br → Model3DScene-CKBO4RI2.mjs.br} +0 -0
- package/dist/Model3DScene-CKBO4RI2.mjs.gz +0 -0
- package/dist/{Model3DScene-KJBH5LFE.js → Model3DScene-ESGCOB2O.js} +2 -2
- package/dist/Model3DScene-ESGCOB2O.js.br +0 -0
- package/dist/Model3DScene-ESGCOB2O.js.gz +0 -0
- package/dist/{chunk-XZQNOZA6.js → chunk-E3TLDJPS.js} +4666 -2413
- package/dist/chunk-E3TLDJPS.js.br +0 -0
- package/dist/chunk-E3TLDJPS.js.gz +0 -0
- package/dist/{chunk-SJJ4AOLI.js → chunk-FNO4C3LU.js} +831 -831
- package/dist/chunk-FNO4C3LU.js.br +0 -0
- package/dist/chunk-FNO4C3LU.js.gz +0 -0
- package/dist/{chunk-UWRUG37I.js → chunk-H7FXW2Q3.js} +5 -5
- package/dist/chunk-H7FXW2Q3.js.br +0 -0
- package/dist/chunk-H7FXW2Q3.js.gz +0 -0
- package/dist/{chunk-X5O53JPT.mjs → chunk-LE3JUNIR.mjs} +2 -2
- package/dist/chunk-LE3JUNIR.mjs.br +0 -0
- package/dist/chunk-LE3JUNIR.mjs.gz +0 -0
- package/dist/{chunk-2GRLCBMP.js → chunk-LKL6DQ55.js} +24 -4
- package/dist/chunk-LKL6DQ55.js.br +0 -0
- package/dist/chunk-LKL6DQ55.js.gz +0 -0
- package/dist/{chunk-SJJY4B4V.mjs → chunk-OCUCBRXU.mjs} +4 -4
- package/dist/chunk-OCUCBRXU.mjs.br +0 -0
- package/dist/chunk-OCUCBRXU.mjs.gz +0 -0
- package/dist/{chunk-IDZ7S2O3.mjs → chunk-Q4HRYUEP.mjs} +24 -4
- package/dist/chunk-Q4HRYUEP.mjs.br +0 -0
- package/dist/chunk-Q4HRYUEP.mjs.gz +0 -0
- package/dist/{chunk-CJ3GYPF6.js → chunk-QSBL4SL6.js} +2829 -3781
- package/dist/chunk-QSBL4SL6.js.br +0 -0
- package/dist/chunk-QSBL4SL6.js.gz +0 -0
- package/dist/{chunk-5OYCO5WW.mjs → chunk-VX52VUBD.mjs} +1 -1
- package/dist/chunk-VX52VUBD.mjs.br +0 -0
- package/dist/chunk-VX52VUBD.mjs.gz +0 -0
- package/dist/{chunk-7T64DQTQ.js → chunk-WAUDRNBY.js} +197 -197
- package/dist/chunk-WAUDRNBY.js.br +0 -0
- package/dist/chunk-WAUDRNBY.js.gz +0 -0
- package/dist/{chunk-NWWE7I6R.mjs → chunk-YL7IPY2B.mjs} +985 -1937
- package/dist/chunk-YL7IPY2B.mjs.br +0 -0
- package/dist/chunk-YL7IPY2B.mjs.gz +0 -0
- package/dist/{chunk-EDQ436NK.mjs → chunk-YYVPC6KI.mjs} +4660 -2401
- package/dist/chunk-YYVPC6KI.mjs.br +0 -0
- package/dist/chunk-YYVPC6KI.mjs.gz +0 -0
- package/dist/i18n/de.cjs +20 -0
- package/dist/i18n/de.cjs.br +0 -0
- package/dist/i18n/de.cjs.gz +0 -0
- package/dist/i18n/de.mjs +20 -0
- package/dist/i18n/de.mjs.br +0 -0
- package/dist/i18n/de.mjs.gz +0 -0
- package/dist/i18n/es.cjs +20 -0
- package/dist/i18n/es.cjs.br +0 -0
- package/dist/i18n/es.cjs.gz +0 -0
- package/dist/i18n/es.mjs +20 -0
- package/dist/i18n/es.mjs.br +0 -0
- package/dist/i18n/es.mjs.gz +0 -0
- package/dist/i18n/fr.cjs +20 -0
- package/dist/i18n/fr.cjs.br +0 -0
- package/dist/i18n/fr.cjs.gz +0 -0
- package/dist/i18n/fr.mjs +20 -0
- package/dist/i18n/fr.mjs.br +0 -0
- package/dist/i18n/fr.mjs.gz +0 -0
- package/dist/i18n/zh-CN.cjs +20 -0
- package/dist/i18n/zh-CN.cjs.br +0 -0
- package/dist/i18n/zh-CN.cjs.gz +0 -0
- package/dist/i18n/zh-CN.mjs +20 -0
- package/dist/i18n/zh-CN.mjs.br +0 -0
- package/dist/i18n/zh-CN.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 +153 -5
- package/dist/index.js +63 -63
- 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 +153 -5
- package/dist/internals.js +105 -105
- 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/viewer/index.d.ts +153 -5
- 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 +1 -1
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +1 -1
- package/dist/AiChatPanel-4RAGQKFE.js.br +0 -0
- package/dist/AiChatPanel-4RAGQKFE.js.gz +0 -0
- package/dist/AiChatPanel-BIS3OYZ2.mjs.br +0 -0
- package/dist/AiChatPanel-BIS3OYZ2.mjs.gz +0 -0
- package/dist/Model3DScene-KJBH5LFE.js.br +0 -0
- package/dist/Model3DScene-KJBH5LFE.js.gz +0 -0
- package/dist/Model3DScene-ZVXXKGMO.mjs.gz +0 -0
- package/dist/chunk-2GRLCBMP.js.br +0 -0
- package/dist/chunk-2GRLCBMP.js.gz +0 -0
- package/dist/chunk-5OYCO5WW.mjs.br +0 -0
- package/dist/chunk-5OYCO5WW.mjs.gz +0 -0
- package/dist/chunk-7T64DQTQ.js.br +0 -0
- package/dist/chunk-7T64DQTQ.js.gz +0 -0
- package/dist/chunk-CJ3GYPF6.js.br +0 -0
- package/dist/chunk-CJ3GYPF6.js.gz +0 -0
- package/dist/chunk-EDQ436NK.mjs.br +0 -0
- package/dist/chunk-EDQ436NK.mjs.gz +0 -0
- package/dist/chunk-IDZ7S2O3.mjs.br +0 -0
- package/dist/chunk-IDZ7S2O3.mjs.gz +0 -0
- package/dist/chunk-NWWE7I6R.mjs.br +0 -0
- package/dist/chunk-NWWE7I6R.mjs.gz +0 -0
- package/dist/chunk-SJJ4AOLI.js.br +0 -0
- package/dist/chunk-SJJ4AOLI.js.gz +0 -0
- package/dist/chunk-SJJY4B4V.mjs.br +0 -0
- package/dist/chunk-SJJY4B4V.mjs.gz +0 -0
- package/dist/chunk-UWRUG37I.js.br +0 -0
- package/dist/chunk-UWRUG37I.js.gz +0 -0
- package/dist/chunk-X5O53JPT.mjs.br +0 -0
- package/dist/chunk-X5O53JPT.mjs.gz +0 -0
- package/dist/chunk-XZQNOZA6.js.br +0 -0
- package/dist/chunk-XZQNOZA6.js.gz +0 -0
package/dist/index.js
CHANGED
|
@@ -1,240 +1,240 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
3
|
+
var chunkQSBL4SL6_js = require('./chunk-QSBL4SL6.js');
|
|
4
|
+
require('./chunk-H7FXW2Q3.js');
|
|
5
|
+
var chunkFNO4C3LU_js = require('./chunk-FNO4C3LU.js');
|
|
6
|
+
var chunkWAUDRNBY_js = require('./chunk-WAUDRNBY.js');
|
|
7
|
+
var chunkE3TLDJPS_js = require('./chunk-E3TLDJPS.js');
|
|
8
|
+
var chunkLKL6DQ55_js = require('./chunk-LKL6DQ55.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 chunkQSBL4SL6_js.PowerPointViewer; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "SlideCanvas", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkQSBL4SL6_js.SlideCanvas; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "SlideTemplateGalleryDialog", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkQSBL4SL6_js.SlideTemplateGalleryDialog; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "SlideTemplatePreview", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkQSBL4SL6_js.SlideTemplatePreview; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "Toolbar", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkQSBL4SL6_js.Toolbar; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "ViewerThemeProvider", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkQSBL4SL6_js.ViewerThemeProvider; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "useViewerTheme", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkQSBL4SL6_js.useViewerTheme; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "renderToCanvas", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkFNO4C3LU_js.renderToCanvas; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "useViewerBuildingBlocks", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkFNO4C3LU_js.useViewerBuildingBlocks; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "getAnimationInitialStyle", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkWAUDRNBY_js.getAnimationInitialStyle; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "AVATAR_COLOR_SWATCHES", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkE3TLDJPS_js.AVATAR_COLOR_SWATCHES; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "BACKSTAGE_CARD_IDS", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkE3TLDJPS_js.BACKSTAGE_CARD_IDS; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "BACKSTAGE_PAGE_IDS", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkE3TLDJPS_js.BACKSTAGE_PAGE_IDS; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "CANVAS_CONTEXT_MENU_COMMAND_IDS", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkE3TLDJPS_js.CANVAS_CONTEXT_MENU_COMMAND_IDS; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "DEFAULT_VIEWER_PROFILE", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkE3TLDJPS_js.DEFAULT_VIEWER_PROFILE; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "EDITOR_SHORTCUT_ACTION_IDS", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkE3TLDJPS_js.EDITOR_SHORTCUT_ACTION_IDS; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "ELEMENT_CONTEXT_MENU_COMMAND_IDS", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkE3TLDJPS_js.ELEMENT_CONTEXT_MENU_COMMAND_IDS; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "OPTIONS_PAGE_IDS", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkE3TLDJPS_js.OPTIONS_PAGE_IDS; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "OPTIONS_SECTION_IDS", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkE3TLDJPS_js.OPTIONS_SECTION_IDS; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "OPTIONS_SETTING_IDS", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkE3TLDJPS_js.OPTIONS_SETTING_IDS; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "PPTX_OPEN_ACCEPT", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkE3TLDJPS_js.PPTX_OPEN_ACCEPT; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "PRESENTATION_OPEN_EXTENSIONS", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkE3TLDJPS_js.PRESENTATION_OPEN_EXTENSIONS; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "RIBBON_TAB_IDS", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkE3TLDJPS_js.RIBBON_TAB_IDS; }
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "SLIDE_TEMPLATES", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkE3TLDJPS_js.SLIDE_TEMPLATES; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "THEME_CATALOG", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkE3TLDJPS_js.THEME_CATALOG; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "TOOLBAR_BUTTON_IDS", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkE3TLDJPS_js.TOOLBAR_BUTTON_IDS; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "VIEWER_DIALOG_IDS", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkE3TLDJPS_js.VIEWER_DIALOG_IDS; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "VIEWER_EXPORT_FORMAT_IDS", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkE3TLDJPS_js.VIEWER_EXPORT_FORMAT_IDS; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "VIEWER_FEATURE_IDS", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkE3TLDJPS_js.VIEWER_FEATURE_IDS; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "VIEWER_PANEL_IDS", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkE3TLDJPS_js.VIEWER_PANEL_IDS; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "VIEWER_PREFS_STORAGE_KEY", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkE3TLDJPS_js.VIEWER_PREFS_STORAGE_KEY; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "buildSlideTemplateContent", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkE3TLDJPS_js.buildSlideTemplateContent; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "buildSlideTemplateSlide", {
|
|
142
142
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkE3TLDJPS_js.buildSlideTemplateSlide; }
|
|
144
144
|
});
|
|
145
145
|
Object.defineProperty(exports, "clearAllLocalViewerData", {
|
|
146
146
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkE3TLDJPS_js.clearAllLocalViewerData; }
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "clearStoredViewerPrefs", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkE3TLDJPS_js.clearStoredViewerPrefs; }
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "createImageElementFromFile", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkE3TLDJPS_js.createImageElementFromFile; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "defaultCssVars", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkE3TLDJPS_js.defaultCssVars; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "defaultRadius", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkE3TLDJPS_js.defaultRadius; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "defaultThemeColors", {
|
|
166
166
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkE3TLDJPS_js.defaultThemeColors; }
|
|
168
168
|
});
|
|
169
169
|
Object.defineProperty(exports, "describeCollaborationShellState", {
|
|
170
170
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkE3TLDJPS_js.describeCollaborationShellState; }
|
|
172
172
|
});
|
|
173
173
|
Object.defineProperty(exports, "getLocalStorageUsageSummary", {
|
|
174
174
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkE3TLDJPS_js.getLocalStorageUsageSummary; }
|
|
176
176
|
});
|
|
177
177
|
Object.defineProperty(exports, "isLegacyBinaryPresentation", {
|
|
178
178
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkE3TLDJPS_js.isLegacyBinaryPresentation; }
|
|
180
180
|
});
|
|
181
181
|
Object.defineProperty(exports, "isSupportedPresentationFile", {
|
|
182
182
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunkE3TLDJPS_js.isSupportedPresentationFile; }
|
|
184
184
|
});
|
|
185
185
|
Object.defineProperty(exports, "presentationBaseName", {
|
|
186
186
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunkE3TLDJPS_js.presentationBaseName; }
|
|
188
188
|
});
|
|
189
189
|
Object.defineProperty(exports, "readStoredViewerPrefs", {
|
|
190
190
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunkE3TLDJPS_js.readStoredViewerPrefs; }
|
|
192
192
|
});
|
|
193
193
|
Object.defineProperty(exports, "resolveProfileInitial", {
|
|
194
194
|
enumerable: true,
|
|
195
|
-
get: function () { return
|
|
195
|
+
get: function () { return chunkE3TLDJPS_js.resolveProfileInitial; }
|
|
196
196
|
});
|
|
197
197
|
Object.defineProperty(exports, "resolveThemeCatalogEntry", {
|
|
198
198
|
enumerable: true,
|
|
199
|
-
get: function () { return
|
|
199
|
+
get: function () { return chunkE3TLDJPS_js.resolveThemeCatalogEntry; }
|
|
200
200
|
});
|
|
201
201
|
Object.defineProperty(exports, "saveViewerProfile", {
|
|
202
202
|
enumerable: true,
|
|
203
|
-
get: function () { return
|
|
203
|
+
get: function () { return chunkE3TLDJPS_js.saveViewerProfile; }
|
|
204
204
|
});
|
|
205
205
|
Object.defineProperty(exports, "savedPresentationFileName", {
|
|
206
206
|
enumerable: true,
|
|
207
|
-
get: function () { return
|
|
207
|
+
get: function () { return chunkE3TLDJPS_js.savedPresentationFileName; }
|
|
208
208
|
});
|
|
209
209
|
Object.defineProperty(exports, "themeToCssVars", {
|
|
210
210
|
enumerable: true,
|
|
211
|
-
get: function () { return
|
|
211
|
+
get: function () { return chunkE3TLDJPS_js.themeToCssVars; }
|
|
212
212
|
});
|
|
213
213
|
Object.defineProperty(exports, "vermilionDarkColors", {
|
|
214
214
|
enumerable: true,
|
|
215
|
-
get: function () { return
|
|
215
|
+
get: function () { return chunkE3TLDJPS_js.vermilionDarkColors; }
|
|
216
216
|
});
|
|
217
217
|
Object.defineProperty(exports, "vermilionDarkTheme", {
|
|
218
218
|
enumerable: true,
|
|
219
|
-
get: function () { return
|
|
219
|
+
get: function () { return chunkE3TLDJPS_js.vermilionDarkTheme; }
|
|
220
220
|
});
|
|
221
221
|
Object.defineProperty(exports, "vermilionLightColors", {
|
|
222
222
|
enumerable: true,
|
|
223
|
-
get: function () { return
|
|
223
|
+
get: function () { return chunkE3TLDJPS_js.vermilionLightColors; }
|
|
224
224
|
});
|
|
225
225
|
Object.defineProperty(exports, "vermilionLightTheme", {
|
|
226
226
|
enumerable: true,
|
|
227
|
-
get: function () { return
|
|
227
|
+
get: function () { return chunkE3TLDJPS_js.vermilionLightTheme; }
|
|
228
228
|
});
|
|
229
229
|
Object.defineProperty(exports, "vermilionRadius", {
|
|
230
230
|
enumerable: true,
|
|
231
|
-
get: function () { return
|
|
231
|
+
get: function () { return chunkE3TLDJPS_js.vermilionRadius; }
|
|
232
232
|
});
|
|
233
233
|
Object.defineProperty(exports, "writeStoredViewerPrefs", {
|
|
234
234
|
enumerable: true,
|
|
235
|
-
get: function () { return
|
|
235
|
+
get: function () { return chunkE3TLDJPS_js.writeStoredViewerPrefs; }
|
|
236
236
|
});
|
|
237
237
|
Object.defineProperty(exports, "LOCALE_CATALOG", {
|
|
238
238
|
enumerable: true,
|
|
239
|
-
get: function () { return
|
|
239
|
+
get: function () { return chunkLKL6DQ55_js.LOCALE_CATALOG; }
|
|
240
240
|
});
|
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 { AVATAR_COLOR_SWATCHES, BACKSTAGE_CARD_IDS, BACKSTAGE_PAGE_IDS, CANVAS_CONTEXT_MENU_COMMAND_IDS, DEFAULT_VIEWER_PROFILE, EDITOR_SHORTCUT_ACTION_IDS, ELEMENT_CONTEXT_MENU_COMMAND_IDS, OPTIONS_PAGE_IDS, OPTIONS_SECTION_IDS, OPTIONS_SETTING_IDS, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, RIBBON_TAB_IDS, SLIDE_TEMPLATES, THEME_CATALOG, TOOLBAR_BUTTON_IDS, VIEWER_DIALOG_IDS, VIEWER_EXPORT_FORMAT_IDS, VIEWER_FEATURE_IDS, VIEWER_PANEL_IDS, VIEWER_PREFS_STORAGE_KEY, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, createImageElementFromFile, defaultCssVars, defaultRadius, defaultThemeColors, describeCollaborationShellState, getLocalStorageUsageSummary, isLegacyBinaryPresentation, isSupportedPresentationFile, presentationBaseName, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, savedPresentationFileName, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from './chunk-
|
|
6
|
-
export { LOCALE_CATALOG } from './chunk-
|
|
1
|
+
export { PowerPointViewer, SlideCanvas, SlideTemplateGalleryDialog, SlideTemplatePreview, Toolbar, ViewerThemeProvider, useViewerTheme } from './chunk-YL7IPY2B.mjs';
|
|
2
|
+
import './chunk-VX52VUBD.mjs';
|
|
3
|
+
export { renderToCanvas, useViewerBuildingBlocks } from './chunk-OCUCBRXU.mjs';
|
|
4
|
+
export { getAnimationInitialStyle } from './chunk-LE3JUNIR.mjs';
|
|
5
|
+
export { AVATAR_COLOR_SWATCHES, BACKSTAGE_CARD_IDS, BACKSTAGE_PAGE_IDS, CANVAS_CONTEXT_MENU_COMMAND_IDS, DEFAULT_VIEWER_PROFILE, EDITOR_SHORTCUT_ACTION_IDS, ELEMENT_CONTEXT_MENU_COMMAND_IDS, OPTIONS_PAGE_IDS, OPTIONS_SECTION_IDS, OPTIONS_SETTING_IDS, PPTX_OPEN_ACCEPT, PRESENTATION_OPEN_EXTENSIONS, RIBBON_TAB_IDS, SLIDE_TEMPLATES, THEME_CATALOG, TOOLBAR_BUTTON_IDS, VIEWER_DIALOG_IDS, VIEWER_EXPORT_FORMAT_IDS, VIEWER_FEATURE_IDS, VIEWER_PANEL_IDS, VIEWER_PREFS_STORAGE_KEY, buildSlideTemplateContent, buildSlideTemplateSlide, clearAllLocalViewerData, clearStoredViewerPrefs, createImageElementFromFile, defaultCssVars, defaultRadius, defaultThemeColors, describeCollaborationShellState, getLocalStorageUsageSummary, isLegacyBinaryPresentation, isSupportedPresentationFile, presentationBaseName, readStoredViewerPrefs, resolveProfileInitial, resolveThemeCatalogEntry, saveViewerProfile, savedPresentationFileName, themeToCssVars, vermilionDarkColors, vermilionDarkTheme, vermilionLightColors, vermilionLightTheme, vermilionRadius, writeStoredViewerPrefs } from './chunk-YYVPC6KI.mjs';
|
|
6
|
+
export { LOCALE_CATALOG } from './chunk-Q4HRYUEP.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,4 +1,4 @@
|
|
|
1
|
-
import { PptxTheme, PptxTransitionType, PptxSlideTransition, ImagePptxElement, PptxThemeColorScheme, PptxThemeFontScheme, PptxSlide, PptxElement, TextSegment, TextStyle, MasterViewTab, ShapePptxElement, PptxElementAnimation, PptxHeaderFooter, ShapeStyle, PptxCommentMention, SmartArtLayout, InkPptxElement, MergeShapeOperation, PptxAction, PptxSlideMaster, PptxModernCommentAuthor, ParsedTableStyleMap, PptxThemeOption, PptxCustomShow, PptxSection, PptxPresentationProperties, PptxViewProperties, PptxNotesMaster, PptxHandoutMaster, PptxCustomProperty, PptxTagCollection, PptxCoreProperties, PptxAppProperties, PptxEmbeddedFont, PptxSlideLayout, PptxHandler, PptxLayoutOption,
|
|
1
|
+
import { PptxTheme, PptxThemeColorRef, PptxLayoutPreview, PptxTransitionType, PptxSlideTransition, ImagePptxElement, PptxThemeColorScheme, PptxThemeFontScheme, PptxSlide, PptxElement, TextSegment, TextStyle, MasterViewTab, ShapePptxElement, PptxElementAnimation, PptxHeaderFooter, ShapeStyle, PptxCommentMention, SmartArtLayout, InkPptxElement, MergeShapeOperation, PptxAction, PptxSlideMaster, PptxModernCommentAuthor, ParsedTableStyleMap, PptxThemeOption, PptxCustomShow, PptxSection, PptxPresentationProperties, PptxViewProperties, PptxNotesMaster, PptxHandoutMaster, PptxCustomProperty, PptxTagCollection, PptxCoreProperties, PptxAppProperties, PptxEmbeddedFont, PptxSlideLayout, PptxHandler, PptxLayoutOption, PptxComment, ConnectorPptxElement, PptxThemePreset, PptxData, PptxHandlerSaveOptions, PptxSaveFormat, PptxModifyVerifier } from 'ooxml-core/pptx';
|
|
2
2
|
import * as Y from 'yjs';
|
|
3
3
|
import { Doc } from 'yjs';
|
|
4
4
|
import React$1, { Dispatch, SetStateAction, MutableRefObject, RefObject, ForwardedRef } from 'react';
|
|
@@ -2248,6 +2248,25 @@ declare const RIBBON_CONTROL_CATALOG: {
|
|
|
2248
2248
|
};
|
|
2249
2249
|
};
|
|
2250
2250
|
readonly smartArtDesign: {
|
|
2251
|
+
readonly createGraphic: {
|
|
2252
|
+
readonly label: 'Create Graphic';
|
|
2253
|
+
readonly controls: {
|
|
2254
|
+
readonly addShape: 'Add Shape';
|
|
2255
|
+
readonly addBullet: 'Add Bullet';
|
|
2256
|
+
readonly textPane: 'Text Pane';
|
|
2257
|
+
readonly promote: 'Promote';
|
|
2258
|
+
readonly demote: 'Demote';
|
|
2259
|
+
readonly rightToLeft: 'Right to Left';
|
|
2260
|
+
readonly moveUp: 'Move Up';
|
|
2261
|
+
readonly moveDown: 'Move Down';
|
|
2262
|
+
};
|
|
2263
|
+
};
|
|
2264
|
+
readonly layouts: {
|
|
2265
|
+
readonly label: 'Layouts';
|
|
2266
|
+
readonly controls: {
|
|
2267
|
+
readonly gallery: 'Layouts gallery';
|
|
2268
|
+
};
|
|
2269
|
+
};
|
|
2251
2270
|
readonly smartArtStyles: {
|
|
2252
2271
|
readonly label: 'SmartArt Styles';
|
|
2253
2272
|
readonly controls: {
|
|
@@ -2255,6 +2274,13 @@ declare const RIBBON_CONTROL_CATALOG: {
|
|
|
2255
2274
|
readonly gallery: 'SmartArt Styles gallery';
|
|
2256
2275
|
};
|
|
2257
2276
|
};
|
|
2277
|
+
readonly reset: {
|
|
2278
|
+
readonly label: 'Reset';
|
|
2279
|
+
readonly controls: {
|
|
2280
|
+
readonly resetGraphic: 'Reset Graphic';
|
|
2281
|
+
readonly convert: 'Convert';
|
|
2282
|
+
};
|
|
2283
|
+
};
|
|
2258
2284
|
};
|
|
2259
2285
|
};
|
|
2260
2286
|
//#endregion
|
|
@@ -2520,6 +2546,8 @@ interface RibbonCommandView {
|
|
|
2520
2546
|
expanded?: boolean;
|
|
2521
2547
|
hidden?: boolean;
|
|
2522
2548
|
compact?: boolean;
|
|
2549
|
+
/** Opens a menu or panel: draws PowerPoint's drop-down chevron after the label. */
|
|
2550
|
+
caret?: boolean;
|
|
2523
2551
|
badge?: number;
|
|
2524
2552
|
/** Commands with the same column share a vertical stack. */
|
|
2525
2553
|
column?: number;
|
|
@@ -2665,7 +2693,7 @@ interface CompatToastsViewState {
|
|
|
2665
2693
|
bottomInset?: number;
|
|
2666
2694
|
translate?: ChromeTranslate;
|
|
2667
2695
|
}
|
|
2668
|
-
type DialogFooterVariant = 'secondary' | 'primary' | 'warning';
|
|
2696
|
+
type DialogFooterVariant = 'secondary' | 'primary' | 'warning' | 'danger';
|
|
2669
2697
|
type DialogFooterIcon = 'trash' | 'pen' | 'restore' | 'print' | 'check';
|
|
2670
2698
|
interface DialogFooterAction {
|
|
2671
2699
|
/** Stable id echoed back in the `dialog-footer-request` intent. */
|
|
@@ -2675,6 +2703,12 @@ interface DialogFooterAction {
|
|
|
2675
2703
|
variant?: DialogFooterVariant;
|
|
2676
2704
|
icon?: DialogFooterIcon;
|
|
2677
2705
|
disabled?: boolean;
|
|
2706
|
+
/** Work in flight: the button is disabled, `aria-busy` and shows a spinner. */
|
|
2707
|
+
busy?: boolean;
|
|
2708
|
+
/** Tooltip (`title`) for an action whose label needs a longer hint. */
|
|
2709
|
+
title?: string;
|
|
2710
|
+
/** `start` pins a tertiary action (Remove link, Reset all) to the left edge. */
|
|
2711
|
+
align?: 'start' | 'end';
|
|
2678
2712
|
/** Optional `data-testid` stamped on the button. */
|
|
2679
2713
|
testId?: string;
|
|
2680
2714
|
}
|
|
@@ -2810,6 +2844,38 @@ interface FontEmbeddingDescriptor {
|
|
|
2810
2844
|
/** Present only when `interactive` is false. */
|
|
2811
2845
|
disabledReasonKey?: string;
|
|
2812
2846
|
}
|
|
2847
|
+
/** One placeholder outline, already positioned in unscaled slide space. */
|
|
2848
|
+
interface LayoutPreviewFrame {
|
|
2849
|
+
/** Stable key for list rendering. */
|
|
2850
|
+
key: string;
|
|
2851
|
+
type: string;
|
|
2852
|
+
left: number;
|
|
2853
|
+
top: number;
|
|
2854
|
+
width: number;
|
|
2855
|
+
height: number;
|
|
2856
|
+
}
|
|
2857
|
+
/** Everything a binding needs to render one thumbnail. */
|
|
2858
|
+
interface LayoutPreviewGeometry {
|
|
2859
|
+
/** Outer box, in CSS pixels. */
|
|
2860
|
+
boxWidth: number;
|
|
2861
|
+
boxHeight: number;
|
|
2862
|
+
/** Inner surface size, in unscaled slide pixels. */
|
|
2863
|
+
surfaceWidth: number;
|
|
2864
|
+
surfaceHeight: number;
|
|
2865
|
+
/** Factor to apply as `transform: scale(...)` on the inner surface. */
|
|
2866
|
+
scale: number;
|
|
2867
|
+
backgroundColor: string;
|
|
2868
|
+
/**
|
|
2869
|
+
* Border width for placeholder outlines, pre-divided by {@link scale}.
|
|
2870
|
+
*
|
|
2871
|
+
* The outlines live inside the scaled surface, so a plain 1.5px border
|
|
2872
|
+
* would be multiplied down to a hairline that vanishes at thumbnail size.
|
|
2873
|
+
* Dividing here keeps the drawn width constant on screen whatever the
|
|
2874
|
+
* slide dimensions are.
|
|
2875
|
+
*/
|
|
2876
|
+
frameBorderWidth: number;
|
|
2877
|
+
frames: LayoutPreviewFrame[];
|
|
2878
|
+
}
|
|
2813
2879
|
//#endregion
|
|
2814
2880
|
//#region src/render/zoom-return-navigation.d.ts
|
|
2815
2881
|
/**
|
|
@@ -3078,7 +3144,7 @@ interface SubtitleSettingsLabels {
|
|
|
3078
3144
|
//#endregion
|
|
3079
3145
|
//#region src/render/ribbon-galleries/gallery-types.d.ts
|
|
3080
3146
|
/** Every gallery the ribbon offers. */
|
|
3081
|
-
type RibbonGalleryId = 'shapeStyles' | 'shapeEffects' | 'wordArtStyles' | 'pictureStyles' | 'pictureCorrections' | 'pictureColor' | 'pictureArtisticEffects' | 'bullets' | 'numbering' | 'tableStyles' | 'chartStyles' | 'chartColors' | 'chartQuickLayout' | 'smartArtStyles' | 'smartArtColors' | 'themeColors' | 'themeFonts';
|
|
3147
|
+
type RibbonGalleryId = 'shapeStyles' | 'shapeEffects' | 'wordArtStyles' | 'pictureStyles' | 'pictureCorrections' | 'pictureColor' | 'pictureArtisticEffects' | 'bullets' | 'numbering' | 'tableStyles' | 'chartStyles' | 'chartColors' | 'chartQuickLayout' | 'smartArtStyles' | 'smartArtColors' | 'smartArtLayouts' | 'smartArtAddShape' | 'smartArtAddBullet' | 'smartArtTextPane' | 'smartArtPromote' | 'smartArtDemote' | 'smartArtRightToLeft' | 'smartArtMoveUp' | 'smartArtMoveDown' | 'smartArtResetGraphic' | 'smartArtConvert' | 'themeColors' | 'themeFonts';
|
|
3082
3148
|
/** One tile. */
|
|
3083
3149
|
interface RibbonGalleryItem {
|
|
3084
3150
|
/** Stable within its gallery; what `applyRibbonGalleryItem` takes. */
|
|
@@ -3125,6 +3191,22 @@ interface RibbonGalleryDescriptor {
|
|
|
3125
3191
|
sections: RibbonGallerySection[];
|
|
3126
3192
|
/** True when the selection cannot take this gallery (trigger disabled). */
|
|
3127
3193
|
disabled: boolean;
|
|
3194
|
+
/**
|
|
3195
|
+
* Set when the entry is a one-button command (PowerPoint's Add Shape, Reset
|
|
3196
|
+
* Graphic, ...) rather than a gallery: the element draws a plain command, a
|
|
3197
|
+
* click picks its only item and no panel opens.
|
|
3198
|
+
*/
|
|
3199
|
+
command?: RibbonGalleryCommandView;
|
|
3200
|
+
}
|
|
3201
|
+
/** How a command-style entry draws (see {@link RibbonGalleryDescriptor.command}). */
|
|
3202
|
+
interface RibbonGalleryCommandView {
|
|
3203
|
+
/** SVG path data on a 20px grid. */
|
|
3204
|
+
iconPath: string;
|
|
3205
|
+
/** Icon above the label (PowerPoint's large button) instead of beside it. */
|
|
3206
|
+
large?: boolean;
|
|
3207
|
+
/** i18n key and English fallback of the tooltip, e.g. why the command is unavailable. */
|
|
3208
|
+
hintKey?: string;
|
|
3209
|
+
hint?: string;
|
|
3128
3210
|
}
|
|
3129
3211
|
type ReadOnlyRecommendationKind = 'modifyVerifier' | 'markedFinal' | null;
|
|
3130
3212
|
interface ReadOnlyRecommendation {
|
|
@@ -3283,13 +3365,67 @@ interface RibbonInsertState {
|
|
|
3283
3365
|
headerFooterAvailable?: boolean;
|
|
3284
3366
|
translate?: (key: string) => string;
|
|
3285
3367
|
}
|
|
3368
|
+
/** One row of a menu or select; labels are translated by the view unless `label` is set. */
|
|
3369
|
+
interface RibbonHomeItem {
|
|
3370
|
+
readonly value: string;
|
|
3371
|
+
/** Ready-made text (a font family, a layout name); wins over `labelKey`. */
|
|
3372
|
+
readonly label?: string;
|
|
3373
|
+
readonly labelKey?: string;
|
|
3374
|
+
readonly fallback?: string;
|
|
3375
|
+
readonly description?: string;
|
|
3376
|
+
readonly descriptionKey?: string;
|
|
3377
|
+
/** Heading of the group this row opens; consecutive rows share one heading. */
|
|
3378
|
+
readonly group?: string;
|
|
3379
|
+
readonly groupKey?: string;
|
|
3380
|
+
readonly checked?: boolean;
|
|
3381
|
+
readonly disabled?: boolean;
|
|
3382
|
+
/** Preview typeface of a font row. */
|
|
3383
|
+
readonly fontFamily?: string;
|
|
3384
|
+
/** Shared artwork key shown before the label (a shape glyph or ribbon icon). */
|
|
3385
|
+
readonly icon?: string;
|
|
3386
|
+
/** Preserved test or automation hooks (`data-pptx-merge-op`, ...). */
|
|
3387
|
+
readonly attrs?: Readonly<Record<string, string>>;
|
|
3388
|
+
/** Draws a divider above the row. */
|
|
3389
|
+
readonly separator?: boolean;
|
|
3390
|
+
}
|
|
3286
3391
|
interface RibbonHomeControlState {
|
|
3287
3392
|
disabled?: boolean;
|
|
3288
3393
|
/** Omit for ordinary commands; a boolean reflects `aria-pressed`. */
|
|
3289
3394
|
pressed?: boolean;
|
|
3290
|
-
/**
|
|
3395
|
+
/** Reserved for hosts that mirror their own popover; shared popovers set it themselves. */
|
|
3291
3396
|
expanded?: boolean;
|
|
3292
3397
|
hidden?: boolean;
|
|
3398
|
+
/** Select, number, colour bar and checked menu row. */
|
|
3399
|
+
value?: string | number;
|
|
3400
|
+
/** Menu or select rows that replace the spec's static ones. */
|
|
3401
|
+
items?: readonly RibbonHomeItem[];
|
|
3402
|
+
/** Colour popover content; the trigger shows `value` in its bar. */
|
|
3403
|
+
colour?: RibbonHomeColourModel;
|
|
3404
|
+
/** Layout gallery content. */
|
|
3405
|
+
layouts?: RibbonHomeLayoutModel;
|
|
3406
|
+
/** Embedded gallery content. */
|
|
3407
|
+
gallery?: {
|
|
3408
|
+
descriptor: RibbonGalleryDescriptor | undefined;
|
|
3409
|
+
disabled?: boolean;
|
|
3410
|
+
};
|
|
3411
|
+
}
|
|
3412
|
+
interface RibbonHomeColourModel {
|
|
3413
|
+
/** The deck's theme colour map; the popover derives the theme palette from it. */
|
|
3414
|
+
themeColors?: Readonly<Record<string, string>>;
|
|
3415
|
+
/** Theme reference of the current colour (highlights its swatch). */
|
|
3416
|
+
selectedRef?: PptxThemeColorRef;
|
|
3417
|
+
/** Recently used colours, newest first. */
|
|
3418
|
+
recent?: readonly string[];
|
|
3419
|
+
}
|
|
3420
|
+
interface RibbonHomeLayoutModel {
|
|
3421
|
+
layouts: readonly {
|
|
3422
|
+
path: string;
|
|
3423
|
+
name: string;
|
|
3424
|
+
}[];
|
|
3425
|
+
/** Marks the active tile; omitted by New Slide. */
|
|
3426
|
+
current?: string;
|
|
3427
|
+
/** Artwork data by layout path; tiles render name-only until it arrives. */
|
|
3428
|
+
previews?: Readonly<Record<string, PptxLayoutPreview>> | ReadonlyMap<string, PptxLayoutPreview>;
|
|
3293
3429
|
}
|
|
3294
3430
|
/** State key of a control: its id, or `id#part` when several buttons share one id. */
|
|
3295
3431
|
type RibbonHomeKey = RibbonControlId | `${RibbonControlId}#${string}`;
|
|
@@ -3530,9 +3666,18 @@ declare global {
|
|
|
3530
3666
|
'pptx-ui-ribbon-draw': PptxUiRibbonDrawElement;
|
|
3531
3667
|
}
|
|
3532
3668
|
}
|
|
3669
|
+
//#endregion
|
|
3670
|
+
//#region src/web-components/ribbon-home-layout.d.ts
|
|
3671
|
+
/**
|
|
3672
|
+
* Draws a layout's real artwork inside a tile's scaled surface. The artwork is
|
|
3673
|
+
* element rendering that each binding owns; return a disposer to release it.
|
|
3674
|
+
*/
|
|
3675
|
+
type HomeLayoutArtwork = (preview: PptxLayoutPreview, geometry: LayoutPreviewGeometry, container: HTMLElement) => (() => void) | void;
|
|
3533
3676
|
interface PptxUiRibbonHomeElement extends HTMLElement {
|
|
3534
3677
|
state: RibbonHomeViewState;
|
|
3535
|
-
/**
|
|
3678
|
+
/** Draws a layout's real artwork inside a gallery tile; the host owns element rendering. */
|
|
3679
|
+
layoutArtwork: HomeLayoutArtwork | undefined;
|
|
3680
|
+
/** Wrapper (or button) of a control id. */
|
|
3536
3681
|
anchor(id: string): HTMLElement | undefined;
|
|
3537
3682
|
}
|
|
3538
3683
|
declare global {
|
|
@@ -3547,6 +3692,9 @@ declare global {
|
|
|
3547
3692
|
'pptx-ui-ribbon-home-arrange-flip': PptxUiRibbonHomeElement;
|
|
3548
3693
|
'pptx-ui-ribbon-home-arrange-order': PptxUiRibbonHomeElement;
|
|
3549
3694
|
'pptx-ui-ribbon-home-arrange-edit': PptxUiRibbonHomeElement;
|
|
3695
|
+
'pptx-ui-ribbon-home-font-picker': PptxUiRibbonHomeElement;
|
|
3696
|
+
'pptx-ui-ribbon-home-arrange-painter': PptxUiRibbonHomeElement;
|
|
3697
|
+
'pptx-ui-ribbon-home-arrange-shape': PptxUiRibbonHomeElement;
|
|
3550
3698
|
}
|
|
3551
3699
|
}
|
|
3552
3700
|
interface PptxUiRibbonTransitionsElement extends HTMLElement {
|