pptx-vue-viewer 4.74.0 → 4.75.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 +40 -0
- package/README.md +0 -1
- package/dist/i18n/de.cjs +5 -0
- package/dist/i18n/de.cjs.br +0 -0
- package/dist/i18n/de.cjs.gz +0 -0
- package/dist/i18n/de.mjs +5 -0
- package/dist/i18n/de.mjs.br +0 -0
- package/dist/i18n/de.mjs.gz +0 -0
- package/dist/i18n/es.cjs +5 -0
- package/dist/i18n/es.cjs.br +0 -0
- package/dist/i18n/es.cjs.gz +0 -0
- package/dist/i18n/es.mjs +5 -0
- package/dist/i18n/es.mjs.br +0 -0
- package/dist/i18n/es.mjs.gz +0 -0
- package/dist/i18n/fr.cjs +5 -0
- package/dist/i18n/fr.cjs.br +0 -0
- package/dist/i18n/fr.cjs.gz +0 -0
- package/dist/i18n/fr.mjs +5 -0
- package/dist/i18n/fr.mjs.br +0 -0
- package/dist/i18n/fr.mjs.gz +0 -0
- package/dist/i18n/zh-CN.cjs +5 -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 +5 -0
- package/dist/i18n/zh-CN.mjs.br +0 -0
- package/dist/i18n/zh-CN.mjs.gz +0 -0
- package/dist/index.cjs +403 -55
- package/dist/index.cjs.br +0 -0
- package/dist/index.cjs.gz +0 -0
- package/dist/index.d.ts +252 -22
- package/dist/index.js +356 -5
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/internals.cjs +1 -1
- package/dist/internals.cjs.br +0 -0
- package/dist/internals.cjs.gz +0 -0
- package/dist/internals.d.ts +2 -29
- package/dist/internals.js +1 -1
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/pptx-vue-viewer.css +1 -1
- package/dist/pptx-vue-viewer.css.br +0 -0
- package/dist/pptx-vue-viewer.css.gz +0 -0
- package/dist/{useViewerSettingsDialog-Bz0RdicV.js → useViewerSettingsDialog-C0heOUkp.js} +969 -988
- package/dist/useViewerSettingsDialog-C0heOUkp.js.br +0 -0
- package/dist/useViewerSettingsDialog-C0heOUkp.js.gz +0 -0
- package/dist/{useViewerSettingsDialog-B33MOSx-.cjs → useViewerSettingsDialog-DVOl4qYL.cjs} +1045 -1063
- package/dist/useViewerSettingsDialog-DVOl4qYL.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-DVOl4qYL.cjs.gz +0 -0
- package/dist/viewer/index.cjs +1 -1
- package/dist/viewer/index.cjs.br +0 -0
- package/dist/viewer/index.cjs.gz +0 -0
- package/dist/viewer/index.d.ts +47 -24
- package/dist/viewer/index.js +2 -2
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/{viewer-Dwl_oBxY.js → viewer-BFzBz7EU.js} +7759 -7205
- package/dist/viewer-BFzBz7EU.js.br +0 -0
- package/dist/viewer-BFzBz7EU.js.gz +0 -0
- package/dist/{viewer-Co39Flri.cjs → viewer-DUQQxRyn.cjs} +5151 -4587
- package/dist/viewer-DUQQxRyn.cjs.br +0 -0
- package/dist/viewer-DUQQxRyn.cjs.gz +0 -0
- package/dist/{y-webrtc-DOVNm7CC.cjs → y-webrtc-Bb_f0RaI.cjs} +1 -1
- package/dist/y-webrtc-Bb_f0RaI.cjs.br +0 -0
- package/dist/y-webrtc-Bb_f0RaI.cjs.gz +0 -0
- package/dist/{y-webrtc-CwHdtPzt.js → y-webrtc-C0fD1Ijr.js} +1 -1
- package/dist/y-webrtc-C0fD1Ijr.js.br +0 -0
- package/dist/y-webrtc-C0fD1Ijr.js.gz +0 -0
- package/package.json +3 -3
- package/dist/useViewerSettingsDialog-B33MOSx-.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-B33MOSx-.cjs.gz +0 -0
- package/dist/useViewerSettingsDialog-Bz0RdicV.js.br +0 -0
- package/dist/useViewerSettingsDialog-Bz0RdicV.js.gz +0 -0
- package/dist/viewer-Co39Flri.cjs.br +0 -0
- package/dist/viewer-Co39Flri.cjs.gz +0 -0
- package/dist/viewer-Dwl_oBxY.js.br +0 -0
- package/dist/viewer-Dwl_oBxY.js.gz +0 -0
- package/dist/y-webrtc-CwHdtPzt.js.br +0 -0
- package/dist/y-webrtc-CwHdtPzt.js.gz +0 -0
- package/dist/y-webrtc-DOVNm7CC.cjs.br +0 -0
- package/dist/y-webrtc-DOVNm7CC.cjs.gz +0 -0
package/dist/index.js
CHANGED
|
@@ -1,5 +1,356 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { n as
|
|
3
|
-
import { An as
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { A as e, D as o, E as n, F as s, I as a, L as t, M as i, N as l, O as d, P as r, R as u, T as c, _ as p, a as v, b as m, c as g, d as S, f as b, g as h, h as C, i as y, j as k, k as f, l as w, m as x, o as P, p as O, s as A, u as E, v as z, w as B, x as D, y as I } from "./viewer-BFzBz7EU.js";
|
|
2
|
+
import { n as M } from "./useAiPanelController-Cmg_Cl6z.js";
|
|
3
|
+
import { An as R, C as L, S as T, jn as q, lt as H, mt as F, w as U, x as _ } from "./useViewerSettingsDialog-C0heOUkp.js";
|
|
4
|
+
import { n as j, t as G } from "./useController-CUPtwZdF.js";
|
|
5
|
+
import { BACKSTAGE_CARD_IDS as N, BACKSTAGE_PAGE_IDS as V, CANVAS_CONTEXT_MENU_COMMAND_IDS as Z, EDITOR_SHORTCUT_ACTION_IDS as K, ELEMENT_CONTEXT_MENU_COMMAND_IDS as Q, OPTIONS_PAGE_IDS as $, OPTIONS_SECTION_IDS as J, OPTIONS_SETTING_IDS as W, PPTX_OPEN_ACCEPT as X, PRESENTATION_OPEN_EXTENSIONS as Y, RIBBON_TAB_IDS as ee, TOOLBAR_BUTTON_IDS as oe, VIEWER_DIALOG_IDS as ne, VIEWER_EXPORT_FORMAT_IDS as se, VIEWER_FEATURE_IDS as ae, VIEWER_PANEL_IDS as te, createImageElementFromFile as ie, createPptxBuildingBlockSession as le, describeBuildingBlockToolbar as de, describeCollaborationShellState as re, forgetSessionDeck as ue, getSessionTabId as ce, isLegacyBinaryPresentation as pe, isSupportedPresentationFile as ve, loadSessionDeck as me, parsePresentationSessionId as ge, presentationBaseName as Se, registerBuildingBlockGroups as be, rememberSessionDeck as he, restoreSessionDeck as Ce, runBuildingBlockToolbarControl as ye, savedPresentationFileName as ke, syncFindHighlights as fe } from "ooxml-ui/pptx";
|
|
6
|
+
import { Fragment as we, computed as xe, createBlock as Pe, createCommentVNode as Oe, createElementBlock as Ae, createVNode as Ee, defineComponent as ze, mergeProps as Be, onBeforeUnmount as De, onMounted as Ie, onScopeDispose as Me, openBlock as Re, provide as Le, ref as Te, renderList as qe, toDisplayString as He, toValue as Fe, unref as Ue, watch as _e } from "vue";
|
|
7
|
+
var je = ze({
|
|
8
|
+
__name: "BuildingBlocksCanvas",
|
|
9
|
+
props: { blocks: {} },
|
|
10
|
+
setup(e) {
|
|
11
|
+
const o = e, n = [
|
|
12
|
+
"statusBar",
|
|
13
|
+
"slidesPane",
|
|
14
|
+
"inspector",
|
|
15
|
+
"notes",
|
|
16
|
+
"quickAccessToolbar",
|
|
17
|
+
"titleBar",
|
|
18
|
+
"selectionPane",
|
|
19
|
+
"accessibilityPane",
|
|
20
|
+
"comparePane"
|
|
21
|
+
];
|
|
22
|
+
Le(t, o.blocks.bridge);
|
|
23
|
+
const s = Te(null), a = Te(null);
|
|
24
|
+
_e(a, (e) => {
|
|
25
|
+
o.blocks.bridge.viewer.value = e;
|
|
26
|
+
});
|
|
27
|
+
const i = xe(() => o.blocks.options.value), l = xe(() => ({
|
|
28
|
+
...i.value.customization,
|
|
29
|
+
hiddenPanels: [...i.value.customization?.hiddenPanels ?? [], ...n]
|
|
30
|
+
})), d = xe(() => {
|
|
31
|
+
const { content: e, canEdit: o, customization: n, onRequest: s, fileLimits: a, onContentChange: t, onDirtyChange: l, onActiveSlideChange: d, onModeChange: r, onZoomChange: u, onSelectionChange: c, onSlideCountChange: p, onOpenLayoutGallery: v, ...m } = i.value;
|
|
32
|
+
return m;
|
|
33
|
+
});
|
|
34
|
+
let r;
|
|
35
|
+
const u = () => {
|
|
36
|
+
const e = o.blocks.bridge.engine.value;
|
|
37
|
+
if (s.value && e) {
|
|
38
|
+
const { matches: o, current: n, slideIndex: a } = e.findHighlights();
|
|
39
|
+
fe(s.value, o, n, a);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
return Ie(() => {
|
|
43
|
+
s.value && (r = new MutationObserver(u), r.observe(s.value, {
|
|
44
|
+
childList: !0,
|
|
45
|
+
subtree: !0
|
|
46
|
+
}));
|
|
47
|
+
}), De(() => {
|
|
48
|
+
r?.disconnect(), o.blocks.bridge.viewer.value = null;
|
|
49
|
+
}), _e(() => o.blocks.bridge.engine.value?.findHighlights(), u, { flush: "post" }), (e, o) => (Re(), Ae("div", {
|
|
50
|
+
ref_key: "root",
|
|
51
|
+
ref: s,
|
|
52
|
+
"data-pptx-block": "canvas",
|
|
53
|
+
class: "pptx-vue-bb-canvas"
|
|
54
|
+
}, [Ee(w, Be({
|
|
55
|
+
ref_key: "viewer",
|
|
56
|
+
ref: a
|
|
57
|
+
}, d.value, {
|
|
58
|
+
content: i.value.content ?? null,
|
|
59
|
+
"can-edit": !0 === i.value.canEdit,
|
|
60
|
+
"show-toolbar": !1,
|
|
61
|
+
"show-thumbnails": !1,
|
|
62
|
+
"show-compatibility-toasts": !1,
|
|
63
|
+
customization: l.value,
|
|
64
|
+
onContentChange: o[0] || (o[0] = (e) => i.value.onContentChange?.(e)),
|
|
65
|
+
onDirtyChange: o[1] || (o[1] = (e) => i.value.onDirtyChange?.(e)),
|
|
66
|
+
onActiveSlideChange: o[2] || (o[2] = (e) => i.value.onActiveSlideChange?.(e)),
|
|
67
|
+
onModeChange: o[3] || (o[3] = (e) => i.value.onModeChange?.(e)),
|
|
68
|
+
onZoomChange: o[4] || (o[4] = (e) => i.value.onZoomChange?.(e)),
|
|
69
|
+
onSelectionChange: o[5] || (o[5] = (e) => i.value.onSelectionChange?.(e)),
|
|
70
|
+
onSlideCountChange: o[6] || (o[6] = (e) => i.value.onSlideCountChange?.(e))
|
|
71
|
+
}), null, 16, [
|
|
72
|
+
"content",
|
|
73
|
+
"can-edit",
|
|
74
|
+
"customization"
|
|
75
|
+
])], 512));
|
|
76
|
+
}
|
|
77
|
+
}), Ge = {
|
|
78
|
+
"data-pptx-block": "slides-pane",
|
|
79
|
+
class: "pptx-vue-viewer pptx-vue-bb-slides-pane"
|
|
80
|
+
}, Ne = ze({
|
|
81
|
+
__name: "BuildingBlocksSlidesPane",
|
|
82
|
+
props: { blocks: {} },
|
|
83
|
+
setup(e) {
|
|
84
|
+
const o = e, n = xe(() => o.blocks.bridge.engine.value?.slidesPane() ?? null);
|
|
85
|
+
function s(e) {
|
|
86
|
+
o.blocks.options.value.onOpenLayoutGallery?.(e);
|
|
87
|
+
}
|
|
88
|
+
return (e, o) => (Re(), Ae("div", Ge, [n.value ? (Re(), Pe(E, {
|
|
89
|
+
key: 0,
|
|
90
|
+
slides: [...n.value.slides],
|
|
91
|
+
"active-slide-index": n.value.activeSlideIndex,
|
|
92
|
+
"canvas-size": n.value.canvasSize,
|
|
93
|
+
"media-data-urls": n.value.mediaDataUrls,
|
|
94
|
+
"section-groups": n.value.sectionGroups,
|
|
95
|
+
"can-edit": n.value.canEdit,
|
|
96
|
+
"header-footer": n.value.headerFooter,
|
|
97
|
+
"custom-properties": n.value.customProperties,
|
|
98
|
+
"first-slide-number": n.value.firstSlideNumber,
|
|
99
|
+
theme: n.value.theme,
|
|
100
|
+
"table-style-map": n.value.tableStyleMap,
|
|
101
|
+
onSelect: n.value.goTo,
|
|
102
|
+
onMoveSlide: n.value.slideOps.moveSlide,
|
|
103
|
+
onAddSlide: o[0] || (o[0] = (e) => n.value.slideOps.addSlide()),
|
|
104
|
+
onAddSlideAfter: n.value.slideOps.addSlide,
|
|
105
|
+
onDuplicateSlide: n.value.slideOps.duplicateSlide,
|
|
106
|
+
onDeleteSlide: n.value.slideOps.deleteSlide,
|
|
107
|
+
onToggleSlideHidden: n.value.toggleSlideHidden,
|
|
108
|
+
onOpenLayoutGallery: s,
|
|
109
|
+
onAddSection: n.value.sectionOps.addSection,
|
|
110
|
+
onRenameSection: n.value.sectionOps.renameSection,
|
|
111
|
+
onDeleteSection: n.value.sectionOps.deleteSection,
|
|
112
|
+
onMoveSectionUp: n.value.sectionOps.moveSectionUp,
|
|
113
|
+
onMoveSectionDown: n.value.sectionOps.moveSectionDown,
|
|
114
|
+
onToggleSectionCollapse: n.value.sectionOps.toggleSectionCollapse
|
|
115
|
+
}, null, 8, [
|
|
116
|
+
"slides",
|
|
117
|
+
"active-slide-index",
|
|
118
|
+
"canvas-size",
|
|
119
|
+
"media-data-urls",
|
|
120
|
+
"section-groups",
|
|
121
|
+
"can-edit",
|
|
122
|
+
"header-footer",
|
|
123
|
+
"custom-properties",
|
|
124
|
+
"first-slide-number",
|
|
125
|
+
"theme",
|
|
126
|
+
"table-style-map",
|
|
127
|
+
"onSelect",
|
|
128
|
+
"onMoveSlide",
|
|
129
|
+
"onAddSlideAfter",
|
|
130
|
+
"onDuplicateSlide",
|
|
131
|
+
"onDeleteSlide",
|
|
132
|
+
"onToggleSlideHidden",
|
|
133
|
+
"onAddSection",
|
|
134
|
+
"onRenameSection",
|
|
135
|
+
"onDeleteSection",
|
|
136
|
+
"onMoveSectionUp",
|
|
137
|
+
"onMoveSectionDown",
|
|
138
|
+
"onToggleSectionCollapse"
|
|
139
|
+
])) : Oe("", !0)]));
|
|
140
|
+
}
|
|
141
|
+
}), Ve = {
|
|
142
|
+
"data-pptx-block": "toolbar",
|
|
143
|
+
class: "pptx-vue-bb-toolbar",
|
|
144
|
+
role: "toolbar"
|
|
145
|
+
}, Ze = ["data-group"], Ke = [
|
|
146
|
+
"data-control",
|
|
147
|
+
"disabled",
|
|
148
|
+
"aria-pressed",
|
|
149
|
+
"onClick"
|
|
150
|
+
], Qe = ze({
|
|
151
|
+
__name: "BuildingBlocksToolbar",
|
|
152
|
+
props: {
|
|
153
|
+
blocks: {},
|
|
154
|
+
groups: {}
|
|
155
|
+
},
|
|
156
|
+
setup(e) {
|
|
157
|
+
const o = e, { t: n } = j(), s = xe(() => {
|
|
158
|
+
const { state: e, actions: n, options: s } = o.blocks, a = de({
|
|
159
|
+
availability: n.value.availability,
|
|
160
|
+
canUndo: e.value.canUndo,
|
|
161
|
+
canRedo: e.value.canRedo,
|
|
162
|
+
findOpen: n.value.findReplace.open,
|
|
163
|
+
slideIndex: e.value.slideIndex,
|
|
164
|
+
slideCount: e.value.slideCount,
|
|
165
|
+
hiddenActions: s.value.hiddenActions
|
|
166
|
+
}), t = o.groups;
|
|
167
|
+
return t ? a.filter((e) => t.includes(e.id)) : a;
|
|
168
|
+
});
|
|
169
|
+
return (e, a) => (Re(), Ae("div", Ve, [(Re(!0), Ae(we, null, qe(s.value, (e) => (Re(), Ae("span", {
|
|
170
|
+
key: e.id,
|
|
171
|
+
"data-group": e.id,
|
|
172
|
+
role: "group"
|
|
173
|
+
}, [(Re(!0), Ae(we, null, qe(e.controls, (e) => (Re(), Ae("button", {
|
|
174
|
+
key: e.id,
|
|
175
|
+
type: "button",
|
|
176
|
+
"data-control": e.id,
|
|
177
|
+
disabled: e.disabled,
|
|
178
|
+
"aria-pressed": e.pressed,
|
|
179
|
+
onClick: (n) => function(e) {
|
|
180
|
+
const n = o.blocks.bridge.engine.value?.view;
|
|
181
|
+
ye(e, o.blocks.session, {
|
|
182
|
+
undo: () => n?.undo(),
|
|
183
|
+
redo: () => n?.redo(),
|
|
184
|
+
toggleFind: () => n?.toggleFind(),
|
|
185
|
+
zoomOut: () => n?.zoomOut(),
|
|
186
|
+
zoomIn: () => n?.zoomIn(),
|
|
187
|
+
zoomToFit: () => n?.zoomToFit(),
|
|
188
|
+
previousSlide: () => n?.previousSlide(),
|
|
189
|
+
nextSlide: () => n?.nextSlide()
|
|
190
|
+
});
|
|
191
|
+
}(e.id)
|
|
192
|
+
}, He(Ue(n)(e.labelKey)), 9, Ke))), 128))], 8, Ze))), 128))]));
|
|
193
|
+
}
|
|
194
|
+
}), $e = {
|
|
195
|
+
ready: !1,
|
|
196
|
+
hasActiveSlide: !1,
|
|
197
|
+
canEdit: !1,
|
|
198
|
+
editing: !1,
|
|
199
|
+
canInsert: !1,
|
|
200
|
+
hasSelection: !1,
|
|
201
|
+
selectionHasHyperlink: !1,
|
|
202
|
+
selectionHasEquation: !1,
|
|
203
|
+
layoutCount: 0,
|
|
204
|
+
hasCurrentLayout: !1,
|
|
205
|
+
hasHandler: !1
|
|
206
|
+
};
|
|
207
|
+
function Je(e) {
|
|
208
|
+
const o = xe(() => Fe(e)), n = u({
|
|
209
|
+
request: (e) => {
|
|
210
|
+
a.request(e);
|
|
211
|
+
},
|
|
212
|
+
announceShortcuts: (e) => a.announce({
|
|
213
|
+
kind: "shortcuts",
|
|
214
|
+
open: e
|
|
215
|
+
}, e)
|
|
216
|
+
}), s = () => n.engine.value, a = le({
|
|
217
|
+
availabilityInput: () => s()?.session.availabilityInput() ?? $e,
|
|
218
|
+
fileLimits: () => o.value.fileLimits,
|
|
219
|
+
onRequest: (e) => o.value.onRequest?.(e),
|
|
220
|
+
onCancel: () => s()?.closeShortcuts(),
|
|
221
|
+
target: () => s()?.session.target() ?? {
|
|
222
|
+
deck: null,
|
|
223
|
+
slideId: void 0,
|
|
224
|
+
slideIndex: -1
|
|
225
|
+
},
|
|
226
|
+
canvasSize: () => s()?.session.canvasSize() ?? {
|
|
227
|
+
width: 0,
|
|
228
|
+
height: 0
|
|
229
|
+
},
|
|
230
|
+
selectedElement: () => s()?.session.selectedElement() ?? null,
|
|
231
|
+
slideCount: () => s()?.session.slideCount() ?? 0,
|
|
232
|
+
activeSlide: () => s()?.session.activeSlide(),
|
|
233
|
+
scopedLayouts: () => s()?.session.scopedLayouts() ?? [],
|
|
234
|
+
addElement: (e) => s()?.session.addElement(e),
|
|
235
|
+
insertMediaFile: async (e, o) => {
|
|
236
|
+
const n = s();
|
|
237
|
+
return n ? n.session.insertMediaFile(e, o) : {
|
|
238
|
+
ok: !1,
|
|
239
|
+
code: "not-ready"
|
|
240
|
+
};
|
|
241
|
+
},
|
|
242
|
+
applyHyperlink: (e) => s()?.session.applyHyperlink(e) ?? {
|
|
243
|
+
ok: !1,
|
|
244
|
+
code: "not-ready"
|
|
245
|
+
},
|
|
246
|
+
removeHyperlink: () => s()?.session.removeHyperlink() ?? {
|
|
247
|
+
ok: !1,
|
|
248
|
+
code: "not-ready"
|
|
249
|
+
},
|
|
250
|
+
insertSmartArt: (e, o) => s()?.session.insertSmartArt(e, o),
|
|
251
|
+
insertChart: (e, o) => s()?.session.insertChart(e, o),
|
|
252
|
+
insertEquation: (e) => s()?.session.insertEquation(e),
|
|
253
|
+
updateEquation: (e) => s()?.session.updateEquation(e),
|
|
254
|
+
findReplace: () => {
|
|
255
|
+
const e = s();
|
|
256
|
+
return e ? e.session.findReplace() : {
|
|
257
|
+
open: !1,
|
|
258
|
+
setOpen: () => {},
|
|
259
|
+
query: "",
|
|
260
|
+
replacement: "",
|
|
261
|
+
options: {
|
|
262
|
+
matchCase: !1,
|
|
263
|
+
includeNotes: !1,
|
|
264
|
+
includeChartTitles: !1,
|
|
265
|
+
includeChartData: !1
|
|
266
|
+
},
|
|
267
|
+
matches: [],
|
|
268
|
+
currentIndex: -1,
|
|
269
|
+
setQuery: () => {},
|
|
270
|
+
setReplacement: () => {},
|
|
271
|
+
setOptions: () => {},
|
|
272
|
+
find: () => {},
|
|
273
|
+
navigate: () => {},
|
|
274
|
+
replaceCurrent: () => {},
|
|
275
|
+
replaceAll: () => {}
|
|
276
|
+
};
|
|
277
|
+
},
|
|
278
|
+
applyLayout: async (e) => {
|
|
279
|
+
const o = s();
|
|
280
|
+
if (!o) throw new Error(`Layout ${e} was not applied`);
|
|
281
|
+
await o.session.applyLayout(e);
|
|
282
|
+
}
|
|
283
|
+
}), t = be(a, function(e) {
|
|
284
|
+
const o = {
|
|
285
|
+
input: () => ({
|
|
286
|
+
openPasswordSet: !1,
|
|
287
|
+
recommendation: { kind: null },
|
|
288
|
+
hasModifyVerifier: !1,
|
|
289
|
+
customProperties: [],
|
|
290
|
+
embedFonts: !1,
|
|
291
|
+
embeddedFamilies: [],
|
|
292
|
+
usedFamilies: [],
|
|
293
|
+
descriptor: { canEmbed: !1 }
|
|
294
|
+
}),
|
|
295
|
+
customProperties: () => [],
|
|
296
|
+
current: () => ({
|
|
297
|
+
core: {},
|
|
298
|
+
custom: [],
|
|
299
|
+
app: {}
|
|
300
|
+
}),
|
|
301
|
+
signed: () => !1,
|
|
302
|
+
count: () => 0,
|
|
303
|
+
content: () => null,
|
|
304
|
+
presentationProperties: () => ({}),
|
|
305
|
+
slideCount: () => 0,
|
|
306
|
+
customShows: () => [],
|
|
307
|
+
slides: () => [],
|
|
308
|
+
activeId: () => null,
|
|
309
|
+
open: () => !1,
|
|
310
|
+
translate: (e) => e
|
|
311
|
+
}, n = (n) => new Proxy({}, { get: (s, a) => (...s) => {
|
|
312
|
+
const t = e()?.[n];
|
|
313
|
+
return t ? t[a]?.(...s) : o[a]?.();
|
|
314
|
+
} });
|
|
315
|
+
return {
|
|
316
|
+
passwordProtection: n("passwordProtection"),
|
|
317
|
+
documentProperties: n("documentProperties"),
|
|
318
|
+
fontEmbedding: n("fontEmbedding"),
|
|
319
|
+
digitalSignatures: n("digitalSignatures"),
|
|
320
|
+
setUpSlideShow: n("setUpSlideShow"),
|
|
321
|
+
customShows: n("customShows"),
|
|
322
|
+
shortcuts: n("shortcuts")
|
|
323
|
+
};
|
|
324
|
+
}(() => s()?.groups)), i = G(a.requests);
|
|
325
|
+
Me(t);
|
|
326
|
+
const l = xe(() => (i.value, n.engine.value, a.actions())), d = xe(() => {
|
|
327
|
+
const e = s()?.state();
|
|
328
|
+
if (!e) return {
|
|
329
|
+
mode: "preview",
|
|
330
|
+
loading: Boolean(o.value.content),
|
|
331
|
+
error: null,
|
|
332
|
+
slideIndex: -1,
|
|
333
|
+
slideCount: 0,
|
|
334
|
+
canUndo: !1,
|
|
335
|
+
canRedo: !1,
|
|
336
|
+
dirty: !1
|
|
337
|
+
};
|
|
338
|
+
const { canEdit: n, ...a } = e;
|
|
339
|
+
return {
|
|
340
|
+
...a,
|
|
341
|
+
mode: e.mode
|
|
342
|
+
};
|
|
343
|
+
});
|
|
344
|
+
return {
|
|
345
|
+
actions: l,
|
|
346
|
+
state: d,
|
|
347
|
+
mode: xe(() => d.value.mode),
|
|
348
|
+
loading: xe(() => d.value.loading),
|
|
349
|
+
error: xe(() => d.value.error),
|
|
350
|
+
viewer: n.viewer,
|
|
351
|
+
options: o,
|
|
352
|
+
session: a,
|
|
353
|
+
bridge: n
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
export { b as AUDIENCE_HASH, N as BACKSTAGE_CARD_IDS, V as BACKSTAGE_PAGE_IDS, je as BuildingBlocksCanvas, Ne as BuildingBlocksSlidesPane, Qe as BuildingBlocksToolbar, Z as CANVAS_CONTEXT_MENU_COMMAND_IDS, I as CollaborationCursors, B as CollaborationStatusIndicator, K as EDITOR_SHORTCUT_ACTION_IDS, Q as ELEMENT_CONTEXT_MENU_COMMAND_IDS, q as ElementRenderer, S as FollowModeBar, $ as OPTIONS_PAGE_IDS, J as OPTIONS_SECTION_IDS, W as OPTIONS_SETTING_IDS, X as PPTX_OPEN_ACCEPT, Y as PRESENTATION_OPEN_EXTENSIONS, w as PowerPointViewer, ee as RIBBON_TAB_IDS, z as RemoteSelectionOverlay, D as RibbonToolbar, m as SlideCanvas, R as SlideStage, g as SlideThumbnail, E as SlidesPane, oe as TOOLBAR_BUTTON_IDS, ne as VIEWER_DIALOG_IDS, se as VIEWER_EXPORT_FORMAT_IDS, ae as VIEWER_FEATURE_IDS, te as VIEWER_PANEL_IDS, O as clearAudienceContent, M as cn, ie as createImageElementFromFile, d as defaultCssVars, s as defaultRadius, a as defaultThemeColors, re as describeCollaborationShellState, _ as exportAllSlidesToSvg, T as exportAllSlidesToSvgBlobs, L as exportSlideToSvg, U as exportSlideToSvgBlob, ue as forgetSessionDeck, ce as getSessionTabId, x as isAudienceTab, pe as isLegacyBinaryPresentation, ve as isSupportedPresentationFile, C as loadAudienceContent, me as loadSessionDeck, h as parseAudienceNonce, ge as parsePresentationSessionId, Se as presentationBaseName, c as provideViewerTheme, he as rememberSessionDeck, H as renderToCanvas, Ce as restoreSessionDeck, ke as savedPresentationFileName, p as storeAudienceContent, f as themeToCssVars, F as useCollaboration, y as useCollaborativeHistory, v as useCollaborativeState, P as usePresenceTracking, n as useThemeStyle, Je as useViewerBuildingBlocks, o as useViewerTheme, A as useYjsProvider, e as vermilionDarkColors, k as vermilionDarkTheme, i as vermilionLightColors, l as vermilionLightTheme, r as vermilionRadius };
|
package/dist/index.js.br
CHANGED
|
Binary file
|
package/dist/index.js.gz
CHANGED
|
Binary file
|
package/dist/internals.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const e = require("./useViewerSettingsDialog-
|
|
2
|
+
const e = require("./useViewerSettingsDialog-DVOl4qYL.cjs");
|
|
3
3
|
let t = require("ooxml-ui/pptx");
|
|
4
4
|
Object.defineProperty(exports, "CINEMATIC_TRANSITION_KEYFRAMES", {
|
|
5
5
|
enumerable: !0,
|
package/dist/internals.cjs.br
CHANGED
|
Binary file
|
package/dist/internals.cjs.gz
CHANGED
|
Binary file
|
package/dist/internals.d.ts
CHANGED
|
@@ -83,6 +83,7 @@ import { P14_TRANSITION_KEYFRAMES_2 } from 'ooxml-ui/pptx';
|
|
|
83
83
|
import { P14_TRANSITION_KEYFRAMES_ALL } from 'ooxml-ui/pptx';
|
|
84
84
|
import { ParsedSignature } from 'ooxml-core/pptx';
|
|
85
85
|
import { ParsedTableStyleMap } from 'ooxml-core/pptx';
|
|
86
|
+
import { parseSignaturesFromBuffer as parseSignaturesFromBuffer_2 } from 'ooxml-core/pptx';
|
|
86
87
|
import { PendingInlineTextEdit } from 'ooxml-ui/pptx';
|
|
87
88
|
import { PptxActiveXControl } from 'ooxml-core/pptx';
|
|
88
89
|
import { PptxAnimationTimelineAnchor } from 'ooxml-core/pptx';
|
|
@@ -889,35 +890,7 @@ export { P14_TRANSITION_KEYFRAMES_2 }
|
|
|
889
890
|
|
|
890
891
|
export { P14_TRANSITION_KEYFRAMES_ALL }
|
|
891
892
|
|
|
892
|
-
|
|
893
|
-
* Parse digital signatures from a `.pptx` ZIP buffer (best-effort; returns an
|
|
894
|
-
* empty array when there are none or parsing fails).
|
|
895
|
-
*
|
|
896
|
-
* `jszip`/`fast-xml-parser` are imported statically on purpose: `PptxHandler`
|
|
897
|
-
* (imported above) already pulls both into the same chunk, so a dynamic import
|
|
898
|
-
* here cannot move them anywhere. It only made bundlers emit
|
|
899
|
-
* INEFFECTIVE_DYNAMIC_IMPORT.
|
|
900
|
-
*
|
|
901
|
-
* The parser options mirror core's loader parser rather than taking
|
|
902
|
-
* fast-xml-parser's defaults, and `packages/angular` carries the identical
|
|
903
|
-
* copy of this function (see the note there). Two reasons, one cosmetic and
|
|
904
|
-
* one structural:
|
|
905
|
-
*
|
|
906
|
-
* - fast-xml-parser decodes the five predefined entities but NOT numeric
|
|
907
|
-
* character references, so a certificate DN written
|
|
908
|
-
* `CN=Müller CA` was rendered verbatim in the signatures panel instead
|
|
909
|
-
* of `CN=Müller CA`. Non-ASCII signer names are exactly the ones a producer
|
|
910
|
-
* is most likely to escape that way, so the panel garbled the names it most
|
|
911
|
-
* needed to get right. `decodeXmlEntities` is the same helper core's parser
|
|
912
|
-
* uses, so both now agree on what a DN says.
|
|
913
|
-
* - `processEntities: false` removes DTD handling from a path that reads
|
|
914
|
-
* attacker-supplied bytes. fast-xml-parser 5.9.2 expands no entities and
|
|
915
|
-
* rejects external ones outright, so nothing here was exploitable; this is
|
|
916
|
-
* forward-stability, and it also stops a package with a large DTD entity
|
|
917
|
-
* (which the default rejects with a size-cap throw) from silently
|
|
918
|
-
* collapsing every signature to "none found" via the catch below.
|
|
919
|
-
*/
|
|
920
|
-
export declare function parseSignaturesFromBuffer(buffer: ArrayBuffer): Promise<ParsedSignature[]>;
|
|
893
|
+
export declare function parseSignaturesFromBuffer(buffer: Parameters<typeof parseSignaturesFromBuffer_2>[0]): ReturnType<typeof parseSignaturesFromBuffer_2>;
|
|
921
894
|
|
|
922
895
|
export declare const PEN_WIDTH = 2.5;
|
|
923
896
|
|
package/dist/internals.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Ot as CINEMATIC_TRANSITION_KEYFRAMES, i as DEFAULT_MAX_VERSIONS, kt as DEFAULT_MORPH_DURATION_MS, mr as DEFAULT_RENDERING_3D_FLAGS, At as DEFAULT_TRANSITION_DURATION_MS, jt as EASE, Qt as ERASER_RADIUS, Et as FragmentedTransitionLayer, $t as HIGHLIGHTER_OPACITY, en as HIGHLIGHTER_WIDTH, Mt as INSTANT, xn as MOBILE_BREAKPOINT, Sn as MOBILE_LANDSCAPE_MAX_HEIGHT, Tt as MorphExtraLayers, et as NUDGE_LARGE, tt as NUDGE_SMALL, Nt as P14_TRANSITION_KEYFRAMES, Pt as P14_TRANSITION_KEYFRAMES_2, Ft as P14_TRANSITION_KEYFRAMES_ALL, tn as PEN_WIDTH, wt as PresentationTransitionOverlay, It as RANDOM_ELIGIBLE_TYPES, _ as RIBBON_ALIGN, hr as Rendering3DFlagsKey, Lt as SLIDE_TRANSITION_KEYFRAMES, Rt as SLIDE_TRANSITION_KEYFRAMES_CSS, pn as SMARTART_COLOR_SCHEMES, mn as SMARTART_STYLE_OPTIONS, Cn as TABLET_BREAKPOINT, zt as TRANSITION_SPEED_DURATION_MS, Bn as TableSelectionKey, Bt as WHEEL_SPOKE_COUNTS, an as buildClickGroups, Vn as computeCellSelection, vn as computeDocumentStatistics, xt as computeElapsed, yn as countWords, nn as createStroke, rn as eraseStrokesAtPoint, St as formatRehearseMs, dt as generateCommentId, Vt as getCinematicTransitionAnimations, Ht as getP14TransitionAnimations, Ut as getSlideTransitionAnimations, Hn as injectTableSelection, qn as inlineEditorRect, wn as isMobileViewport, Jn as nodeIdsInRenderOrder, A as parseSignaturesFromBuffer, Un as provideTableSelection, Wt as resolveDirection, Gt as resolveDirection8, Kt as resolveOrientation, nt as resolveShortcutAction, qt as resolveSlideTransition, Jt as resolveTransitionDurationMs, Yt as resolveWheelSpokeCount, hn as smartArtLayoutLabel, Yn as textNodeIdsInRenderOrder, v as toShapePreset, yt as useAccessibility, vt as useAlignGroup, on as useAnimationPlayback, _t as useAutosave, _n as useChartEditing, mt as useCollaboration, pt as useCollaborationWiring, or as useColorChangeImage, ft as useComments, ut as useCommentsWiring, ct as useContextMenu, st as useCustomShows, ot as useCustomShowsWiring, gn as useDebouncedCallback, at as useDocumentPropertiesDialog, bn as useDocumentStatistics, it as useEditorHistory, $ as useEditorKeyboard, Q as useEditorOperations, Z as useElementDrag, X as useElementInsertion, Y as useEmbeddedFonts, J as useExport, q as useExportProgress, G as useExportWiring, W as useFindReplace, U as useFontEmbedding, H as useFormatPainter, B as useHeaderFooterDialog, z as useInkDrawing, L as useInlineEditing, I as useInsertElementDialogs, Tn as useIsMobile, F as useKeyboardInsets, rt as useKeyboardShortcuts, j as useLoadContent, k as useMasterViewState, K as useMediaExport, O as useMobileChrome, $n as useModel3dScene, Dt as useMorphTransitionOverlay, D as useMultiSelectOps, E as usePasswordProtection, in as usePresentationAnnotations, T as usePresentationModeWiring, b as usePrint, Ct as useRehearseTimings, gr as useRendering3DFlags, y as useRibbonActions, n as useRibbonProps, g as useRibbonUiState, h as useSectionOperations, m as useSelectionPaneWiring, kr as useSheetDismissDrag, p as useSignatureWorkflow, bt as useSignatures, f as useSlideMutations, d as useSlideOperations, u as useSlideShowSettings, l as useSlideTemplateInsertion, fn as useSmartArtEditing, Kn as useSmartArtHoverRect, Xn as useSmartArtInlineEditState, c as useSmartArtNodeEditContext, s as useTableCellEditingContext, Wn as useTableCellSelection, o as useThemeEditing, Zt as useToolbarAutoHide, On as useToolbarVisibility, Xt as useTouchGestures, a as useVersionHistory, r as useVersionHistoryWiring, t as useViewerSettingsDialog } from "./useViewerSettingsDialog-
|
|
1
|
+
export { Ot as CINEMATIC_TRANSITION_KEYFRAMES, i as DEFAULT_MAX_VERSIONS, kt as DEFAULT_MORPH_DURATION_MS, mr as DEFAULT_RENDERING_3D_FLAGS, At as DEFAULT_TRANSITION_DURATION_MS, jt as EASE, Qt as ERASER_RADIUS, Et as FragmentedTransitionLayer, $t as HIGHLIGHTER_OPACITY, en as HIGHLIGHTER_WIDTH, Mt as INSTANT, xn as MOBILE_BREAKPOINT, Sn as MOBILE_LANDSCAPE_MAX_HEIGHT, Tt as MorphExtraLayers, et as NUDGE_LARGE, tt as NUDGE_SMALL, Nt as P14_TRANSITION_KEYFRAMES, Pt as P14_TRANSITION_KEYFRAMES_2, Ft as P14_TRANSITION_KEYFRAMES_ALL, tn as PEN_WIDTH, wt as PresentationTransitionOverlay, It as RANDOM_ELIGIBLE_TYPES, _ as RIBBON_ALIGN, hr as Rendering3DFlagsKey, Lt as SLIDE_TRANSITION_KEYFRAMES, Rt as SLIDE_TRANSITION_KEYFRAMES_CSS, pn as SMARTART_COLOR_SCHEMES, mn as SMARTART_STYLE_OPTIONS, Cn as TABLET_BREAKPOINT, zt as TRANSITION_SPEED_DURATION_MS, Bn as TableSelectionKey, Bt as WHEEL_SPOKE_COUNTS, an as buildClickGroups, Vn as computeCellSelection, vn as computeDocumentStatistics, xt as computeElapsed, yn as countWords, nn as createStroke, rn as eraseStrokesAtPoint, St as formatRehearseMs, dt as generateCommentId, Vt as getCinematicTransitionAnimations, Ht as getP14TransitionAnimations, Ut as getSlideTransitionAnimations, Hn as injectTableSelection, qn as inlineEditorRect, wn as isMobileViewport, Jn as nodeIdsInRenderOrder, A as parseSignaturesFromBuffer, Un as provideTableSelection, Wt as resolveDirection, Gt as resolveDirection8, Kt as resolveOrientation, nt as resolveShortcutAction, qt as resolveSlideTransition, Jt as resolveTransitionDurationMs, Yt as resolveWheelSpokeCount, hn as smartArtLayoutLabel, Yn as textNodeIdsInRenderOrder, v as toShapePreset, yt as useAccessibility, vt as useAlignGroup, on as useAnimationPlayback, _t as useAutosave, _n as useChartEditing, mt as useCollaboration, pt as useCollaborationWiring, or as useColorChangeImage, ft as useComments, ut as useCommentsWiring, ct as useContextMenu, st as useCustomShows, ot as useCustomShowsWiring, gn as useDebouncedCallback, at as useDocumentPropertiesDialog, bn as useDocumentStatistics, it as useEditorHistory, $ as useEditorKeyboard, Q as useEditorOperations, Z as useElementDrag, X as useElementInsertion, Y as useEmbeddedFonts, J as useExport, q as useExportProgress, G as useExportWiring, W as useFindReplace, U as useFontEmbedding, H as useFormatPainter, B as useHeaderFooterDialog, z as useInkDrawing, L as useInlineEditing, I as useInsertElementDialogs, Tn as useIsMobile, F as useKeyboardInsets, rt as useKeyboardShortcuts, j as useLoadContent, k as useMasterViewState, K as useMediaExport, O as useMobileChrome, $n as useModel3dScene, Dt as useMorphTransitionOverlay, D as useMultiSelectOps, E as usePasswordProtection, in as usePresentationAnnotations, T as usePresentationModeWiring, b as usePrint, Ct as useRehearseTimings, gr as useRendering3DFlags, y as useRibbonActions, n as useRibbonProps, g as useRibbonUiState, h as useSectionOperations, m as useSelectionPaneWiring, kr as useSheetDismissDrag, p as useSignatureWorkflow, bt as useSignatures, f as useSlideMutations, d as useSlideOperations, u as useSlideShowSettings, l as useSlideTemplateInsertion, fn as useSmartArtEditing, Kn as useSmartArtHoverRect, Xn as useSmartArtInlineEditState, c as useSmartArtNodeEditContext, s as useTableCellEditingContext, Wn as useTableCellSelection, o as useThemeEditing, Zt as useToolbarAutoHide, On as useToolbarVisibility, Xt as useTouchGestures, a as useVersionHistory, r as useVersionHistoryWiring, t as useViewerSettingsDialog } from "./useViewerSettingsDialog-C0heOUkp.js";
|
package/dist/internals.js.br
CHANGED
|
Binary file
|
package/dist/internals.js.gz
CHANGED
|
Binary file
|