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.cjs
CHANGED
|
@@ -1,219 +1,567 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const e = require("./viewer-
|
|
3
|
-
let
|
|
2
|
+
const e = require("./viewer-DUQQxRyn.cjs"), t = require("./useAiPanelController-Bc1diEUl.cjs"), o = require("./useViewerSettingsDialog-DVOl4qYL.cjs"), n = require("./useController-BPpUYfta.cjs");
|
|
3
|
+
let r = require("ooxml-ui/pptx"), i = require("vue");
|
|
4
|
+
var s = (0, i.defineComponent)({
|
|
5
|
+
__name: "BuildingBlocksCanvas",
|
|
6
|
+
props: { blocks: {} },
|
|
7
|
+
setup(t) {
|
|
8
|
+
const o = t, n = [
|
|
9
|
+
"statusBar",
|
|
10
|
+
"slidesPane",
|
|
11
|
+
"inspector",
|
|
12
|
+
"notes",
|
|
13
|
+
"quickAccessToolbar",
|
|
14
|
+
"titleBar",
|
|
15
|
+
"selectionPane",
|
|
16
|
+
"accessibilityPane",
|
|
17
|
+
"comparePane"
|
|
18
|
+
];
|
|
19
|
+
(0, i.provide)(e.BuildingBlocksBridgeKey, o.blocks.bridge);
|
|
20
|
+
const s = (0, i.ref)(null), l = (0, i.ref)(null);
|
|
21
|
+
(0, i.watch)(l, (e) => {
|
|
22
|
+
o.blocks.bridge.viewer.value = e;
|
|
23
|
+
});
|
|
24
|
+
const a = (0, i.computed)(() => o.blocks.options.value), u = (0, i.computed)(() => ({
|
|
25
|
+
...a.value.customization,
|
|
26
|
+
hiddenPanels: [...a.value.customization?.hiddenPanels ?? [], ...n]
|
|
27
|
+
})), d = (0, i.computed)(() => {
|
|
28
|
+
const { content: e, canEdit: t, customization: o, onRequest: n, fileLimits: r, onContentChange: i, onDirtyChange: s, onActiveSlideChange: l, onModeChange: u, onZoomChange: d, onSelectionChange: c, onSlideCountChange: p, onOpenLayoutGallery: m, ...S } = a.value;
|
|
29
|
+
return S;
|
|
30
|
+
});
|
|
31
|
+
let c;
|
|
32
|
+
const p = () => {
|
|
33
|
+
const e = o.blocks.bridge.engine.value;
|
|
34
|
+
if (s.value && e) {
|
|
35
|
+
const { matches: t, current: o, slideIndex: n } = e.findHighlights();
|
|
36
|
+
(0, r.syncFindHighlights)(s.value, t, o, n);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
return (0, i.onMounted)(() => {
|
|
40
|
+
s.value && (c = new MutationObserver(p), c.observe(s.value, {
|
|
41
|
+
childList: !0,
|
|
42
|
+
subtree: !0
|
|
43
|
+
}));
|
|
44
|
+
}), (0, i.onBeforeUnmount)(() => {
|
|
45
|
+
c?.disconnect(), o.blocks.bridge.viewer.value = null;
|
|
46
|
+
}), (0, i.watch)(() => o.blocks.bridge.engine.value?.findHighlights(), p, { flush: "post" }), (t, o) => ((0, i.openBlock)(), (0, i.createElementBlock)("div", {
|
|
47
|
+
ref_key: "root",
|
|
48
|
+
ref: s,
|
|
49
|
+
"data-pptx-block": "canvas",
|
|
50
|
+
class: "pptx-vue-bb-canvas"
|
|
51
|
+
}, [(0, i.createVNode)(e.PowerPointViewer_default, (0, i.mergeProps)({
|
|
52
|
+
ref_key: "viewer",
|
|
53
|
+
ref: l
|
|
54
|
+
}, d.value, {
|
|
55
|
+
content: a.value.content ?? null,
|
|
56
|
+
"can-edit": !0 === a.value.canEdit,
|
|
57
|
+
"show-toolbar": !1,
|
|
58
|
+
"show-thumbnails": !1,
|
|
59
|
+
"show-compatibility-toasts": !1,
|
|
60
|
+
customization: u.value,
|
|
61
|
+
onContentChange: o[0] || (o[0] = (e) => a.value.onContentChange?.(e)),
|
|
62
|
+
onDirtyChange: o[1] || (o[1] = (e) => a.value.onDirtyChange?.(e)),
|
|
63
|
+
onActiveSlideChange: o[2] || (o[2] = (e) => a.value.onActiveSlideChange?.(e)),
|
|
64
|
+
onModeChange: o[3] || (o[3] = (e) => a.value.onModeChange?.(e)),
|
|
65
|
+
onZoomChange: o[4] || (o[4] = (e) => a.value.onZoomChange?.(e)),
|
|
66
|
+
onSelectionChange: o[5] || (o[5] = (e) => a.value.onSelectionChange?.(e)),
|
|
67
|
+
onSlideCountChange: o[6] || (o[6] = (e) => a.value.onSlideCountChange?.(e))
|
|
68
|
+
}), null, 16, [
|
|
69
|
+
"content",
|
|
70
|
+
"can-edit",
|
|
71
|
+
"customization"
|
|
72
|
+
])], 512));
|
|
73
|
+
}
|
|
74
|
+
}), l = {
|
|
75
|
+
"data-pptx-block": "slides-pane",
|
|
76
|
+
class: "pptx-vue-viewer pptx-vue-bb-slides-pane"
|
|
77
|
+
}, a = (0, i.defineComponent)({
|
|
78
|
+
__name: "BuildingBlocksSlidesPane",
|
|
79
|
+
props: { blocks: {} },
|
|
80
|
+
setup(t) {
|
|
81
|
+
const o = t, n = (0, i.computed)(() => o.blocks.bridge.engine.value?.slidesPane() ?? null);
|
|
82
|
+
function r(e) {
|
|
83
|
+
o.blocks.options.value.onOpenLayoutGallery?.(e);
|
|
84
|
+
}
|
|
85
|
+
return (t, o) => ((0, i.openBlock)(), (0, i.createElementBlock)("div", l, [n.value ? ((0, i.openBlock)(), (0, i.createBlock)(e.SlidesPane_default, {
|
|
86
|
+
key: 0,
|
|
87
|
+
slides: [...n.value.slides],
|
|
88
|
+
"active-slide-index": n.value.activeSlideIndex,
|
|
89
|
+
"canvas-size": n.value.canvasSize,
|
|
90
|
+
"media-data-urls": n.value.mediaDataUrls,
|
|
91
|
+
"section-groups": n.value.sectionGroups,
|
|
92
|
+
"can-edit": n.value.canEdit,
|
|
93
|
+
"header-footer": n.value.headerFooter,
|
|
94
|
+
"custom-properties": n.value.customProperties,
|
|
95
|
+
"first-slide-number": n.value.firstSlideNumber,
|
|
96
|
+
theme: n.value.theme,
|
|
97
|
+
"table-style-map": n.value.tableStyleMap,
|
|
98
|
+
onSelect: n.value.goTo,
|
|
99
|
+
onMoveSlide: n.value.slideOps.moveSlide,
|
|
100
|
+
onAddSlide: o[0] || (o[0] = (e) => n.value.slideOps.addSlide()),
|
|
101
|
+
onAddSlideAfter: n.value.slideOps.addSlide,
|
|
102
|
+
onDuplicateSlide: n.value.slideOps.duplicateSlide,
|
|
103
|
+
onDeleteSlide: n.value.slideOps.deleteSlide,
|
|
104
|
+
onToggleSlideHidden: n.value.toggleSlideHidden,
|
|
105
|
+
onOpenLayoutGallery: r,
|
|
106
|
+
onAddSection: n.value.sectionOps.addSection,
|
|
107
|
+
onRenameSection: n.value.sectionOps.renameSection,
|
|
108
|
+
onDeleteSection: n.value.sectionOps.deleteSection,
|
|
109
|
+
onMoveSectionUp: n.value.sectionOps.moveSectionUp,
|
|
110
|
+
onMoveSectionDown: n.value.sectionOps.moveSectionDown,
|
|
111
|
+
onToggleSectionCollapse: n.value.sectionOps.toggleSectionCollapse
|
|
112
|
+
}, null, 8, [
|
|
113
|
+
"slides",
|
|
114
|
+
"active-slide-index",
|
|
115
|
+
"canvas-size",
|
|
116
|
+
"media-data-urls",
|
|
117
|
+
"section-groups",
|
|
118
|
+
"can-edit",
|
|
119
|
+
"header-footer",
|
|
120
|
+
"custom-properties",
|
|
121
|
+
"first-slide-number",
|
|
122
|
+
"theme",
|
|
123
|
+
"table-style-map",
|
|
124
|
+
"onSelect",
|
|
125
|
+
"onMoveSlide",
|
|
126
|
+
"onAddSlideAfter",
|
|
127
|
+
"onDuplicateSlide",
|
|
128
|
+
"onDeleteSlide",
|
|
129
|
+
"onToggleSlideHidden",
|
|
130
|
+
"onAddSection",
|
|
131
|
+
"onRenameSection",
|
|
132
|
+
"onDeleteSection",
|
|
133
|
+
"onMoveSectionUp",
|
|
134
|
+
"onMoveSectionDown",
|
|
135
|
+
"onToggleSectionCollapse"
|
|
136
|
+
])) : (0, i.createCommentVNode)("", !0)]));
|
|
137
|
+
}
|
|
138
|
+
}), u = {
|
|
139
|
+
"data-pptx-block": "toolbar",
|
|
140
|
+
class: "pptx-vue-bb-toolbar",
|
|
141
|
+
role: "toolbar"
|
|
142
|
+
}, d = ["data-group"], c = [
|
|
143
|
+
"data-control",
|
|
144
|
+
"disabled",
|
|
145
|
+
"aria-pressed",
|
|
146
|
+
"onClick"
|
|
147
|
+
], p = (0, i.defineComponent)({
|
|
148
|
+
__name: "BuildingBlocksToolbar",
|
|
149
|
+
props: {
|
|
150
|
+
blocks: {},
|
|
151
|
+
groups: {}
|
|
152
|
+
},
|
|
153
|
+
setup(e) {
|
|
154
|
+
const t = e, { t: o } = n.useI18n(), s = (0, i.computed)(() => {
|
|
155
|
+
const { state: e, actions: o, options: n } = t.blocks, i = (0, r.describeBuildingBlockToolbar)({
|
|
156
|
+
availability: o.value.availability,
|
|
157
|
+
canUndo: e.value.canUndo,
|
|
158
|
+
canRedo: e.value.canRedo,
|
|
159
|
+
findOpen: o.value.findReplace.open,
|
|
160
|
+
slideIndex: e.value.slideIndex,
|
|
161
|
+
slideCount: e.value.slideCount,
|
|
162
|
+
hiddenActions: n.value.hiddenActions
|
|
163
|
+
}), s = t.groups;
|
|
164
|
+
return s ? i.filter((e) => s.includes(e.id)) : i;
|
|
165
|
+
});
|
|
166
|
+
return (e, n) => ((0, i.openBlock)(), (0, i.createElementBlock)("div", u, [((0, i.openBlock)(!0), (0, i.createElementBlock)(i.Fragment, null, (0, i.renderList)(s.value, (e) => ((0, i.openBlock)(), (0, i.createElementBlock)("span", {
|
|
167
|
+
key: e.id,
|
|
168
|
+
"data-group": e.id,
|
|
169
|
+
role: "group"
|
|
170
|
+
}, [((0, i.openBlock)(!0), (0, i.createElementBlock)(i.Fragment, null, (0, i.renderList)(e.controls, (e) => ((0, i.openBlock)(), (0, i.createElementBlock)("button", {
|
|
171
|
+
key: e.id,
|
|
172
|
+
type: "button",
|
|
173
|
+
"data-control": e.id,
|
|
174
|
+
disabled: e.disabled,
|
|
175
|
+
"aria-pressed": e.pressed,
|
|
176
|
+
onClick: (o) => function(e) {
|
|
177
|
+
const o = t.blocks.bridge.engine.value?.view;
|
|
178
|
+
(0, r.runBuildingBlockToolbarControl)(e, t.blocks.session, {
|
|
179
|
+
undo: () => o?.undo(),
|
|
180
|
+
redo: () => o?.redo(),
|
|
181
|
+
toggleFind: () => o?.toggleFind(),
|
|
182
|
+
zoomOut: () => o?.zoomOut(),
|
|
183
|
+
zoomIn: () => o?.zoomIn(),
|
|
184
|
+
zoomToFit: () => o?.zoomToFit(),
|
|
185
|
+
previousSlide: () => o?.previousSlide(),
|
|
186
|
+
nextSlide: () => o?.nextSlide()
|
|
187
|
+
});
|
|
188
|
+
}(e.id)
|
|
189
|
+
}, (0, i.toDisplayString)((0, i.unref)(o)(e.labelKey)), 9, c))), 128))], 8, d))), 128))]));
|
|
190
|
+
}
|
|
191
|
+
}), m = {
|
|
192
|
+
ready: !1,
|
|
193
|
+
hasActiveSlide: !1,
|
|
194
|
+
canEdit: !1,
|
|
195
|
+
editing: !1,
|
|
196
|
+
canInsert: !1,
|
|
197
|
+
hasSelection: !1,
|
|
198
|
+
selectionHasHyperlink: !1,
|
|
199
|
+
selectionHasEquation: !1,
|
|
200
|
+
layoutCount: 0,
|
|
201
|
+
hasCurrentLayout: !1,
|
|
202
|
+
hasHandler: !1
|
|
203
|
+
};
|
|
4
204
|
Object.defineProperty(exports, "AUDIENCE_HASH", {
|
|
5
205
|
enumerable: !0,
|
|
6
206
|
get: function() {
|
|
7
|
-
return
|
|
207
|
+
return r.AUDIENCE_HASH;
|
|
8
208
|
}
|
|
9
209
|
}), Object.defineProperty(exports, "BACKSTAGE_CARD_IDS", {
|
|
10
210
|
enumerable: !0,
|
|
11
211
|
get: function() {
|
|
12
|
-
return
|
|
212
|
+
return r.BACKSTAGE_CARD_IDS;
|
|
13
213
|
}
|
|
14
214
|
}), Object.defineProperty(exports, "BACKSTAGE_PAGE_IDS", {
|
|
15
215
|
enumerable: !0,
|
|
16
216
|
get: function() {
|
|
17
|
-
return
|
|
217
|
+
return r.BACKSTAGE_PAGE_IDS;
|
|
18
218
|
}
|
|
19
|
-
}), Object.defineProperty(exports, "CANVAS_CONTEXT_MENU_COMMAND_IDS", {
|
|
219
|
+
}), exports.BuildingBlocksCanvas = s, exports.BuildingBlocksSlidesPane = a, exports.BuildingBlocksToolbar = p, Object.defineProperty(exports, "CANVAS_CONTEXT_MENU_COMMAND_IDS", {
|
|
20
220
|
enumerable: !0,
|
|
21
221
|
get: function() {
|
|
22
|
-
return
|
|
222
|
+
return r.CANVAS_CONTEXT_MENU_COMMAND_IDS;
|
|
23
223
|
}
|
|
24
224
|
}), exports.CollaborationCursors = e.CollaborationCursors_default, exports.CollaborationStatusIndicator = e.CollaborationStatusIndicator_default, Object.defineProperty(exports, "EDITOR_SHORTCUT_ACTION_IDS", {
|
|
25
225
|
enumerable: !0,
|
|
26
226
|
get: function() {
|
|
27
|
-
return
|
|
227
|
+
return r.EDITOR_SHORTCUT_ACTION_IDS;
|
|
28
228
|
}
|
|
29
229
|
}), Object.defineProperty(exports, "ELEMENT_CONTEXT_MENU_COMMAND_IDS", {
|
|
30
230
|
enumerable: !0,
|
|
31
231
|
get: function() {
|
|
32
|
-
return
|
|
232
|
+
return r.ELEMENT_CONTEXT_MENU_COMMAND_IDS;
|
|
33
233
|
}
|
|
34
|
-
}), exports.ElementRenderer =
|
|
234
|
+
}), exports.ElementRenderer = o.ElementRenderer_default, exports.FollowModeBar = e.FollowModeBar_default, Object.defineProperty(exports, "OPTIONS_PAGE_IDS", {
|
|
35
235
|
enumerable: !0,
|
|
36
236
|
get: function() {
|
|
37
|
-
return
|
|
237
|
+
return r.OPTIONS_PAGE_IDS;
|
|
38
238
|
}
|
|
39
239
|
}), Object.defineProperty(exports, "OPTIONS_SECTION_IDS", {
|
|
40
240
|
enumerable: !0,
|
|
41
241
|
get: function() {
|
|
42
|
-
return
|
|
242
|
+
return r.OPTIONS_SECTION_IDS;
|
|
43
243
|
}
|
|
44
244
|
}), Object.defineProperty(exports, "OPTIONS_SETTING_IDS", {
|
|
45
245
|
enumerable: !0,
|
|
46
246
|
get: function() {
|
|
47
|
-
return
|
|
247
|
+
return r.OPTIONS_SETTING_IDS;
|
|
48
248
|
}
|
|
49
249
|
}), Object.defineProperty(exports, "PPTX_OPEN_ACCEPT", {
|
|
50
250
|
enumerable: !0,
|
|
51
251
|
get: function() {
|
|
52
|
-
return
|
|
252
|
+
return r.PPTX_OPEN_ACCEPT;
|
|
53
253
|
}
|
|
54
254
|
}), Object.defineProperty(exports, "PRESENTATION_OPEN_EXTENSIONS", {
|
|
55
255
|
enumerable: !0,
|
|
56
256
|
get: function() {
|
|
57
|
-
return
|
|
257
|
+
return r.PRESENTATION_OPEN_EXTENSIONS;
|
|
58
258
|
}
|
|
59
259
|
}), exports.PowerPointViewer = e.PowerPointViewer_default, Object.defineProperty(exports, "RIBBON_TAB_IDS", {
|
|
60
260
|
enumerable: !0,
|
|
61
261
|
get: function() {
|
|
62
|
-
return
|
|
262
|
+
return r.RIBBON_TAB_IDS;
|
|
63
263
|
}
|
|
64
|
-
}), exports.RemoteSelectionOverlay = e.RemoteSelectionOverlay_default, exports.RibbonToolbar = e.RibbonToolbar_default, exports.SlideCanvas = e.SlideCanvas_default, exports.SlideStage =
|
|
264
|
+
}), exports.RemoteSelectionOverlay = e.RemoteSelectionOverlay_default, exports.RibbonToolbar = e.RibbonToolbar_default, exports.SlideCanvas = e.SlideCanvas_default, exports.SlideStage = o.SlideStage_default, exports.SlideThumbnail = e.SlideThumbnail_default, exports.SlidesPane = e.SlidesPane_default, Object.defineProperty(exports, "TOOLBAR_BUTTON_IDS", {
|
|
65
265
|
enumerable: !0,
|
|
66
266
|
get: function() {
|
|
67
|
-
return
|
|
267
|
+
return r.TOOLBAR_BUTTON_IDS;
|
|
68
268
|
}
|
|
69
269
|
}), Object.defineProperty(exports, "VIEWER_DIALOG_IDS", {
|
|
70
270
|
enumerable: !0,
|
|
71
271
|
get: function() {
|
|
72
|
-
return
|
|
272
|
+
return r.VIEWER_DIALOG_IDS;
|
|
73
273
|
}
|
|
74
274
|
}), Object.defineProperty(exports, "VIEWER_EXPORT_FORMAT_IDS", {
|
|
75
275
|
enumerable: !0,
|
|
76
276
|
get: function() {
|
|
77
|
-
return
|
|
277
|
+
return r.VIEWER_EXPORT_FORMAT_IDS;
|
|
78
278
|
}
|
|
79
279
|
}), Object.defineProperty(exports, "VIEWER_FEATURE_IDS", {
|
|
80
280
|
enumerable: !0,
|
|
81
281
|
get: function() {
|
|
82
|
-
return
|
|
282
|
+
return r.VIEWER_FEATURE_IDS;
|
|
83
283
|
}
|
|
84
284
|
}), Object.defineProperty(exports, "VIEWER_PANEL_IDS", {
|
|
85
285
|
enumerable: !0,
|
|
86
286
|
get: function() {
|
|
87
|
-
return
|
|
287
|
+
return r.VIEWER_PANEL_IDS;
|
|
88
288
|
}
|
|
89
289
|
}), Object.defineProperty(exports, "clearAudienceContent", {
|
|
90
290
|
enumerable: !0,
|
|
91
291
|
get: function() {
|
|
92
|
-
return
|
|
292
|
+
return r.clearAudienceContent;
|
|
93
293
|
}
|
|
94
|
-
}), exports.cn =
|
|
294
|
+
}), exports.cn = t.cn, Object.defineProperty(exports, "createImageElementFromFile", {
|
|
95
295
|
enumerable: !0,
|
|
96
296
|
get: function() {
|
|
97
|
-
return
|
|
297
|
+
return r.createImageElementFromFile;
|
|
98
298
|
}
|
|
99
299
|
}), Object.defineProperty(exports, "defaultCssVars", {
|
|
100
300
|
enumerable: !0,
|
|
101
301
|
get: function() {
|
|
102
|
-
return
|
|
302
|
+
return r.defaultCssVars;
|
|
103
303
|
}
|
|
104
304
|
}), Object.defineProperty(exports, "defaultRadius", {
|
|
105
305
|
enumerable: !0,
|
|
106
306
|
get: function() {
|
|
107
|
-
return
|
|
307
|
+
return r.defaultRadius;
|
|
108
308
|
}
|
|
109
309
|
}), Object.defineProperty(exports, "defaultThemeColors", {
|
|
110
310
|
enumerable: !0,
|
|
111
311
|
get: function() {
|
|
112
|
-
return
|
|
312
|
+
return r.defaultThemeColors;
|
|
113
313
|
}
|
|
114
314
|
}), Object.defineProperty(exports, "describeCollaborationShellState", {
|
|
115
315
|
enumerable: !0,
|
|
116
316
|
get: function() {
|
|
117
|
-
return
|
|
317
|
+
return r.describeCollaborationShellState;
|
|
118
318
|
}
|
|
119
|
-
}), exports.exportAllSlidesToSvg =
|
|
319
|
+
}), exports.exportAllSlidesToSvg = o.exportAllSlidesToSvg, exports.exportAllSlidesToSvgBlobs = o.exportAllSlidesToSvgBlobs, exports.exportSlideToSvg = o.exportSlideToSvg, exports.exportSlideToSvgBlob = o.exportSlideToSvgBlob, Object.defineProperty(exports, "forgetSessionDeck", {
|
|
120
320
|
enumerable: !0,
|
|
121
321
|
get: function() {
|
|
122
|
-
return
|
|
322
|
+
return r.forgetSessionDeck;
|
|
123
323
|
}
|
|
124
324
|
}), Object.defineProperty(exports, "getSessionTabId", {
|
|
125
325
|
enumerable: !0,
|
|
126
326
|
get: function() {
|
|
127
|
-
return
|
|
327
|
+
return r.getSessionTabId;
|
|
128
328
|
}
|
|
129
329
|
}), Object.defineProperty(exports, "isAudienceTab", {
|
|
130
330
|
enumerable: !0,
|
|
131
331
|
get: function() {
|
|
132
|
-
return
|
|
332
|
+
return r.isAudienceTab;
|
|
133
333
|
}
|
|
134
334
|
}), Object.defineProperty(exports, "isLegacyBinaryPresentation", {
|
|
135
335
|
enumerable: !0,
|
|
136
336
|
get: function() {
|
|
137
|
-
return
|
|
337
|
+
return r.isLegacyBinaryPresentation;
|
|
138
338
|
}
|
|
139
339
|
}), Object.defineProperty(exports, "isSupportedPresentationFile", {
|
|
140
340
|
enumerable: !0,
|
|
141
341
|
get: function() {
|
|
142
|
-
return
|
|
342
|
+
return r.isSupportedPresentationFile;
|
|
143
343
|
}
|
|
144
344
|
}), Object.defineProperty(exports, "loadAudienceContent", {
|
|
145
345
|
enumerable: !0,
|
|
146
346
|
get: function() {
|
|
147
|
-
return
|
|
347
|
+
return r.loadAudienceContent;
|
|
148
348
|
}
|
|
149
349
|
}), Object.defineProperty(exports, "loadSessionDeck", {
|
|
150
350
|
enumerable: !0,
|
|
151
351
|
get: function() {
|
|
152
|
-
return
|
|
352
|
+
return r.loadSessionDeck;
|
|
153
353
|
}
|
|
154
354
|
}), Object.defineProperty(exports, "parseAudienceNonce", {
|
|
155
355
|
enumerable: !0,
|
|
156
356
|
get: function() {
|
|
157
|
-
return
|
|
357
|
+
return r.parseAudienceNonce;
|
|
158
358
|
}
|
|
159
359
|
}), Object.defineProperty(exports, "parsePresentationSessionId", {
|
|
160
360
|
enumerable: !0,
|
|
161
361
|
get: function() {
|
|
162
|
-
return
|
|
362
|
+
return r.parsePresentationSessionId;
|
|
163
363
|
}
|
|
164
364
|
}), Object.defineProperty(exports, "presentationBaseName", {
|
|
165
365
|
enumerable: !0,
|
|
166
366
|
get: function() {
|
|
167
|
-
return
|
|
367
|
+
return r.presentationBaseName;
|
|
168
368
|
}
|
|
169
369
|
}), exports.provideViewerTheme = e.provideViewerTheme, Object.defineProperty(exports, "rememberSessionDeck", {
|
|
170
370
|
enumerable: !0,
|
|
171
371
|
get: function() {
|
|
172
|
-
return
|
|
372
|
+
return r.rememberSessionDeck;
|
|
173
373
|
}
|
|
174
|
-
}), exports.renderToCanvas =
|
|
374
|
+
}), exports.renderToCanvas = o.renderToCanvas, Object.defineProperty(exports, "restoreSessionDeck", {
|
|
175
375
|
enumerable: !0,
|
|
176
376
|
get: function() {
|
|
177
|
-
return
|
|
377
|
+
return r.restoreSessionDeck;
|
|
178
378
|
}
|
|
179
379
|
}), Object.defineProperty(exports, "savedPresentationFileName", {
|
|
180
380
|
enumerable: !0,
|
|
181
381
|
get: function() {
|
|
182
|
-
return
|
|
382
|
+
return r.savedPresentationFileName;
|
|
183
383
|
}
|
|
184
384
|
}), Object.defineProperty(exports, "storeAudienceContent", {
|
|
185
385
|
enumerable: !0,
|
|
186
386
|
get: function() {
|
|
187
|
-
return
|
|
387
|
+
return r.storeAudienceContent;
|
|
188
388
|
}
|
|
189
389
|
}), Object.defineProperty(exports, "themeToCssVars", {
|
|
190
390
|
enumerable: !0,
|
|
191
391
|
get: function() {
|
|
192
|
-
return
|
|
193
|
-
}
|
|
194
|
-
}), exports.useCollaboration =
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
392
|
+
return r.themeToCssVars;
|
|
393
|
+
}
|
|
394
|
+
}), exports.useCollaboration = o.useCollaboration, exports.useCollaborativeHistory = e.useCollaborativeHistory, exports.useCollaborativeState = e.useCollaborativeState, exports.usePresenceTracking = e.usePresenceTracking, exports.useThemeStyle = e.useThemeStyle, exports.useViewerBuildingBlocks = function(t) {
|
|
395
|
+
const o = (0, i.computed)(() => (0, i.toValue)(t)), s = e.createBuildingBlocksBridge({
|
|
396
|
+
request: (e) => {
|
|
397
|
+
u.request(e);
|
|
398
|
+
},
|
|
399
|
+
announceShortcuts: (e) => u.announce({
|
|
400
|
+
kind: "shortcuts",
|
|
401
|
+
open: e
|
|
402
|
+
}, e)
|
|
403
|
+
}), l = () => s.engine.value, u = (0, r.createPptxBuildingBlockSession)({
|
|
404
|
+
availabilityInput: () => l()?.session.availabilityInput() ?? m,
|
|
405
|
+
fileLimits: () => o.value.fileLimits,
|
|
406
|
+
onRequest: (e) => o.value.onRequest?.(e),
|
|
407
|
+
onCancel: () => l()?.closeShortcuts(),
|
|
408
|
+
target: () => l()?.session.target() ?? {
|
|
409
|
+
deck: null,
|
|
410
|
+
slideId: void 0,
|
|
411
|
+
slideIndex: -1
|
|
412
|
+
},
|
|
413
|
+
canvasSize: () => l()?.session.canvasSize() ?? {
|
|
414
|
+
width: 0,
|
|
415
|
+
height: 0
|
|
416
|
+
},
|
|
417
|
+
selectedElement: () => l()?.session.selectedElement() ?? null,
|
|
418
|
+
slideCount: () => l()?.session.slideCount() ?? 0,
|
|
419
|
+
activeSlide: () => l()?.session.activeSlide(),
|
|
420
|
+
scopedLayouts: () => l()?.session.scopedLayouts() ?? [],
|
|
421
|
+
addElement: (e) => l()?.session.addElement(e),
|
|
422
|
+
insertMediaFile: async (e, t) => {
|
|
423
|
+
const o = l();
|
|
424
|
+
return o ? o.session.insertMediaFile(e, t) : {
|
|
425
|
+
ok: !1,
|
|
426
|
+
code: "not-ready"
|
|
427
|
+
};
|
|
428
|
+
},
|
|
429
|
+
applyHyperlink: (e) => l()?.session.applyHyperlink(e) ?? {
|
|
430
|
+
ok: !1,
|
|
431
|
+
code: "not-ready"
|
|
432
|
+
},
|
|
433
|
+
removeHyperlink: () => l()?.session.removeHyperlink() ?? {
|
|
434
|
+
ok: !1,
|
|
435
|
+
code: "not-ready"
|
|
436
|
+
},
|
|
437
|
+
insertSmartArt: (e, t) => l()?.session.insertSmartArt(e, t),
|
|
438
|
+
insertChart: (e, t) => l()?.session.insertChart(e, t),
|
|
439
|
+
insertEquation: (e) => l()?.session.insertEquation(e),
|
|
440
|
+
updateEquation: (e) => l()?.session.updateEquation(e),
|
|
441
|
+
findReplace: () => {
|
|
442
|
+
const e = l();
|
|
443
|
+
return e ? e.session.findReplace() : {
|
|
444
|
+
open: !1,
|
|
445
|
+
setOpen: () => {},
|
|
446
|
+
query: "",
|
|
447
|
+
replacement: "",
|
|
448
|
+
options: {
|
|
449
|
+
matchCase: !1,
|
|
450
|
+
includeNotes: !1,
|
|
451
|
+
includeChartTitles: !1,
|
|
452
|
+
includeChartData: !1
|
|
453
|
+
},
|
|
454
|
+
matches: [],
|
|
455
|
+
currentIndex: -1,
|
|
456
|
+
setQuery: () => {},
|
|
457
|
+
setReplacement: () => {},
|
|
458
|
+
setOptions: () => {},
|
|
459
|
+
find: () => {},
|
|
460
|
+
navigate: () => {},
|
|
461
|
+
replaceCurrent: () => {},
|
|
462
|
+
replaceAll: () => {}
|
|
463
|
+
};
|
|
464
|
+
},
|
|
465
|
+
applyLayout: async (e) => {
|
|
466
|
+
const t = l();
|
|
467
|
+
if (!t) throw new Error(`Layout ${e} was not applied`);
|
|
468
|
+
await t.session.applyLayout(e);
|
|
469
|
+
}
|
|
470
|
+
}), d = (0, r.registerBuildingBlockGroups)(u, function(e) {
|
|
471
|
+
const t = {
|
|
472
|
+
input: () => ({
|
|
473
|
+
openPasswordSet: !1,
|
|
474
|
+
recommendation: { kind: null },
|
|
475
|
+
hasModifyVerifier: !1,
|
|
476
|
+
customProperties: [],
|
|
477
|
+
embedFonts: !1,
|
|
478
|
+
embeddedFamilies: [],
|
|
479
|
+
usedFamilies: [],
|
|
480
|
+
descriptor: { canEmbed: !1 }
|
|
481
|
+
}),
|
|
482
|
+
customProperties: () => [],
|
|
483
|
+
current: () => ({
|
|
484
|
+
core: {},
|
|
485
|
+
custom: [],
|
|
486
|
+
app: {}
|
|
487
|
+
}),
|
|
488
|
+
signed: () => !1,
|
|
489
|
+
count: () => 0,
|
|
490
|
+
content: () => null,
|
|
491
|
+
presentationProperties: () => ({}),
|
|
492
|
+
slideCount: () => 0,
|
|
493
|
+
customShows: () => [],
|
|
494
|
+
slides: () => [],
|
|
495
|
+
activeId: () => null,
|
|
496
|
+
open: () => !1,
|
|
497
|
+
translate: (e) => e
|
|
498
|
+
}, o = (o) => new Proxy({}, { get: (n, r) => (...n) => {
|
|
499
|
+
const i = e()?.[o];
|
|
500
|
+
return i ? i[r]?.(...n) : t[r]?.();
|
|
501
|
+
} });
|
|
502
|
+
return {
|
|
503
|
+
passwordProtection: o("passwordProtection"),
|
|
504
|
+
documentProperties: o("documentProperties"),
|
|
505
|
+
fontEmbedding: o("fontEmbedding"),
|
|
506
|
+
digitalSignatures: o("digitalSignatures"),
|
|
507
|
+
setUpSlideShow: o("setUpSlideShow"),
|
|
508
|
+
customShows: o("customShows"),
|
|
509
|
+
shortcuts: o("shortcuts")
|
|
510
|
+
};
|
|
511
|
+
}(() => l()?.groups)), c = n.useController(u.requests);
|
|
512
|
+
(0, i.onScopeDispose)(d);
|
|
513
|
+
const p = (0, i.computed)(() => (c.value, s.engine.value, u.actions())), S = (0, i.computed)(() => {
|
|
514
|
+
const e = l()?.state();
|
|
515
|
+
if (!e) return {
|
|
516
|
+
mode: "preview",
|
|
517
|
+
loading: Boolean(o.value.content),
|
|
518
|
+
error: null,
|
|
519
|
+
slideIndex: -1,
|
|
520
|
+
slideCount: 0,
|
|
521
|
+
canUndo: !1,
|
|
522
|
+
canRedo: !1,
|
|
523
|
+
dirty: !1
|
|
524
|
+
};
|
|
525
|
+
const { canEdit: t, ...n } = e;
|
|
526
|
+
return {
|
|
527
|
+
...n,
|
|
528
|
+
mode: e.mode
|
|
529
|
+
};
|
|
530
|
+
});
|
|
531
|
+
return {
|
|
532
|
+
actions: p,
|
|
533
|
+
state: S,
|
|
534
|
+
mode: (0, i.computed)(() => S.value.mode),
|
|
535
|
+
loading: (0, i.computed)(() => S.value.loading),
|
|
536
|
+
error: (0, i.computed)(() => S.value.error),
|
|
537
|
+
viewer: s.viewer,
|
|
538
|
+
options: o,
|
|
539
|
+
session: u,
|
|
540
|
+
bridge: s
|
|
541
|
+
};
|
|
542
|
+
}, exports.useViewerTheme = e.useViewerTheme, exports.useYjsProvider = e.useYjsProvider, Object.defineProperty(exports, "vermilionDarkColors", {
|
|
543
|
+
enumerable: !0,
|
|
544
|
+
get: function() {
|
|
545
|
+
return r.vermilionDarkColors;
|
|
198
546
|
}
|
|
199
547
|
}), Object.defineProperty(exports, "vermilionDarkTheme", {
|
|
200
548
|
enumerable: !0,
|
|
201
549
|
get: function() {
|
|
202
|
-
return
|
|
550
|
+
return r.vermilionDarkTheme;
|
|
203
551
|
}
|
|
204
552
|
}), Object.defineProperty(exports, "vermilionLightColors", {
|
|
205
553
|
enumerable: !0,
|
|
206
554
|
get: function() {
|
|
207
|
-
return
|
|
555
|
+
return r.vermilionLightColors;
|
|
208
556
|
}
|
|
209
557
|
}), Object.defineProperty(exports, "vermilionLightTheme", {
|
|
210
558
|
enumerable: !0,
|
|
211
559
|
get: function() {
|
|
212
|
-
return
|
|
560
|
+
return r.vermilionLightTheme;
|
|
213
561
|
}
|
|
214
562
|
}), Object.defineProperty(exports, "vermilionRadius", {
|
|
215
563
|
enumerable: !0,
|
|
216
564
|
get: function() {
|
|
217
|
-
return
|
|
565
|
+
return r.vermilionRadius;
|
|
218
566
|
}
|
|
219
567
|
});
|
package/dist/index.cjs.br
CHANGED
|
Binary file
|
package/dist/index.cjs.gz
CHANGED
|
Binary file
|