pptx-vue-viewer 4.66.0 → 4.67.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 +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.br +0 -0
- package/dist/index.cjs.gz +0 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -2
- 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.js +1 -1
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/{useViewerSettingsDialog-Cd52v93-.cjs → useViewerSettingsDialog-BNnWGJwV.cjs} +170 -164
- package/dist/useViewerSettingsDialog-BNnWGJwV.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-BNnWGJwV.cjs.gz +0 -0
- package/dist/{useViewerSettingsDialog-DgmgQcw4.js → useViewerSettingsDialog-CGI6HR0i.js} +89 -83
- package/dist/useViewerSettingsDialog-CGI6HR0i.js.br +0 -0
- package/dist/useViewerSettingsDialog-CGI6HR0i.js.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 +2 -1
- package/dist/viewer/index.js +3 -3
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/{viewer-Te3FWYIB.cjs → viewer-B-B4pL2o.cjs} +83 -86
- package/dist/viewer-B-B4pL2o.cjs.br +0 -0
- package/dist/viewer-B-B4pL2o.cjs.gz +0 -0
- package/dist/{viewer-CuueXklz.js → viewer-DYs723bH.js} +6610 -6613
- package/dist/viewer-DYs723bH.js.br +0 -0
- package/dist/viewer-DYs723bH.js.gz +0 -0
- package/dist/{y-webrtc-CU4hfjTK.js → y-webrtc-BxRkXfn3.js} +1 -1
- package/dist/y-webrtc-BxRkXfn3.js.br +0 -0
- package/dist/{y-webrtc-CU4hfjTK.js.gz → y-webrtc-BxRkXfn3.js.gz} +0 -0
- package/dist/{y-webrtc-C8MpOfL3.cjs → y-webrtc-D9l3ByiO.cjs} +1 -1
- package/dist/y-webrtc-D9l3ByiO.cjs.br +0 -0
- package/dist/y-webrtc-D9l3ByiO.cjs.gz +0 -0
- package/package.json +3 -3
- package/dist/useViewerSettingsDialog-Cd52v93-.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-Cd52v93-.cjs.gz +0 -0
- package/dist/useViewerSettingsDialog-DgmgQcw4.js.br +0 -0
- package/dist/useViewerSettingsDialog-DgmgQcw4.js.gz +0 -0
- package/dist/viewer-CuueXklz.js.br +0 -0
- package/dist/viewer-CuueXklz.js.gz +0 -0
- package/dist/viewer-Te3FWYIB.cjs.br +0 -0
- package/dist/viewer-Te3FWYIB.cjs.gz +0 -0
- package/dist/y-webrtc-C8MpOfL3.cjs.br +0 -0
- package/dist/y-webrtc-C8MpOfL3.cjs.gz +0 -0
- package/dist/y-webrtc-CU4hfjTK.js.br +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -97,19 +97,11 @@ var Su = (e, t) => {
|
|
|
97
97
|
const n = e.__vccOpts || e;
|
|
98
98
|
for (const [e, a] of t) n[e] = a;
|
|
99
99
|
return n;
|
|
100
|
-
}, ku =
|
|
101
|
-
function
|
|
102
|
-
return bs(ku, void 0);
|
|
103
|
-
}
|
|
104
|
-
function Eu(e) {
|
|
105
|
-
return e ? Ns(e) : void 0;
|
|
106
|
-
}
|
|
107
|
-
var Iu = Symbol("pptx-vue-slide-elements");
|
|
108
|
-
var Cu = 1280, Pu = 720, Tu = "#111827", zu = "#3b82f6", Mu = "#1f2937";
|
|
109
|
-
function Du(e, t) {
|
|
100
|
+
}, ku = 1280, bu = 720, Eu = "#111827", Iu = "#3b82f6", Cu = "#1f2937";
|
|
101
|
+
function Pu(e, t) {
|
|
110
102
|
return ya(e, t);
|
|
111
103
|
}
|
|
112
|
-
function
|
|
104
|
+
function Tu(e, t, n, a) {
|
|
113
105
|
const l = ba(e);
|
|
114
106
|
if (l) return { ...l };
|
|
115
107
|
if (!(0, yu.hasShapeProperties)(e)) return {};
|
|
@@ -140,16 +132,24 @@ function Au(e, t, n, a) {
|
|
|
140
132
|
default: return i;
|
|
141
133
|
}
|
|
142
134
|
}
|
|
143
|
-
function
|
|
135
|
+
function zu(e) {
|
|
144
136
|
return (0, yu.hasTextProperties)(e) ? at(e, {
|
|
145
|
-
fallbackColor:
|
|
137
|
+
fallbackColor: Eu,
|
|
146
138
|
bodyLayout: !0,
|
|
147
139
|
pxLengths: !0
|
|
148
140
|
}) : {};
|
|
149
141
|
}
|
|
150
|
-
function
|
|
142
|
+
function Mu(e, t) {
|
|
151
143
|
return za(e, t);
|
|
152
144
|
}
|
|
145
|
+
var Du = Symbol("pptx-vue-field-context");
|
|
146
|
+
function Au() {
|
|
147
|
+
return bs(Du, void 0);
|
|
148
|
+
}
|
|
149
|
+
function Bu(e) {
|
|
150
|
+
return e ? Ns(e) : void 0;
|
|
151
|
+
}
|
|
152
|
+
var Lu = Symbol("pptx-vue-slide-elements");
|
|
153
153
|
function Ou(e, t, n) {
|
|
154
154
|
return ps(() => {
|
|
155
155
|
return kr(!0 === t(), !0 === n()) ? (a = e(), Rn(a)) : void 0;
|
|
@@ -877,7 +877,7 @@ var Nd = ws({
|
|
|
877
877
|
},
|
|
878
878
|
setup(t) {
|
|
879
879
|
const n = t, { t: a } = e(), l = ps(() => ({
|
|
880
|
-
...
|
|
880
|
+
...Pu(n.element, n.zIndex),
|
|
881
881
|
...ba(n.element)
|
|
882
882
|
})), i = Ou(() => n.element, () => n.interactive, () => n.presenting), o = Fs(null), { interactiveClass: r, renderedElement: s, dragLabel: u, titleDraft: d, onPointerdown: c, onPointermove: v, onPointerup: p, onDblclick: m, setTitleDraft: f, commitTitle: h, cancelTitle: y } = function(e) {
|
|
883
883
|
const t = Ju(), n = Ku(), a = (t) => ft(t, e.rootEl.value, e.element()), l = Ws(null), i = Fs(null), o = Fs(null);
|
|
@@ -1438,7 +1438,7 @@ var vc = ["data-element-id"], pc = ["viewBox"], mc = ["opacity"], fc = [
|
|
|
1438
1438
|
interactive: { type: Boolean }
|
|
1439
1439
|
},
|
|
1440
1440
|
setup(e) {
|
|
1441
|
-
const t = e, n = cc(), a = ps(() =>
|
|
1441
|
+
const t = e, n = cc(), a = ps(() => Pu(t.element, t.zIndex)), l = Ou(() => t.element, () => t.interactive, () => t.presenting), i = ps(() => "contentPart" === t.element.type ? t.element : void 0), o = ps(() => i.value ? Le(i.value) : []), r = ps(() => i.value ? Kt(i.value) : "0 0 1 1"), s = ps(() => t.presenting && i.value ? ga(i.value.inkStrokes ?? []) : []);
|
|
1442
1442
|
function u(e) {
|
|
1443
1443
|
return "multiply" === e ? { mixBlendMode: "multiply" } : void 0;
|
|
1444
1444
|
}
|
|
@@ -1746,7 +1746,7 @@ var Mc = { style: {
|
|
|
1746
1746
|
}
|
|
1747
1747
|
},
|
|
1748
1748
|
setup(e) {
|
|
1749
|
-
const t = e, n = ps(() => "group" === t.element.type), a = ps(() => (0, yu.isImageLikeElement)(t.element)), l = ps(() => t.mediaDataUrls ?? /* @__PURE__ */ new Map()), i = ps(() =>
|
|
1749
|
+
const t = e, n = ps(() => "group" === t.element.type), a = ps(() => (0, yu.isImageLikeElement)(t.element)), l = ps(() => t.mediaDataUrls ?? /* @__PURE__ */ new Map()), i = ps(() => Tu(t.element, t.parentGroupFill)), o = ps(() => Xe(t.element)), r = ps(() => o.value.some((e) => e.runs.length > 0)), s = ps(() => zu(t.element)), u = ps(() => a.value ? za(t.element, l.value) : void 0), d = ps(() => Pa(t.element)), c = ps(() => Ea(t.element, t.parentGroupFill)), v = ps(() => n.value ? t.element.children ?? [] : []);
|
|
1750
1750
|
return (t, a) => {
|
|
1751
1751
|
const l = _s("ReflectionMirrorContent", !0);
|
|
1752
1752
|
return n.value ? (Bs(), hs("div", {
|
|
@@ -2069,9 +2069,9 @@ var Mc = { style: {
|
|
|
2069
2069
|
borderRadius: n.value?.borderRadius,
|
|
2070
2070
|
clipPath: n.value?.clipPath ?? a.value
|
|
2071
2071
|
})), i = ps(() => ({
|
|
2072
|
-
...
|
|
2072
|
+
...Pu(t.element, t.zIndex),
|
|
2073
2073
|
...l.value.box
|
|
2074
|
-
})), o = ps(() => l.value.surface ?? { display: "contents" }), r = ps(() => Pa(t.element)), s = ps(() => Ca(t.element, Boolean(r.value.transform))), u = ps(() =>
|
|
2074
|
+
})), o = ps(() => l.value.surface ?? { display: "contents" }), r = ps(() => Pa(t.element)), s = ps(() => Ca(t.element, Boolean(r.value.transform))), u = ps(() => Mu(t.element, t.mediaDataUrls)), d = function(e) {
|
|
2075
2075
|
const t = Fs(ia(e.value));
|
|
2076
2076
|
return Xs(e, (n) => {
|
|
2077
2077
|
if (!n) return void (t.value = void 0);
|
|
@@ -2255,9 +2255,9 @@ var Sv = ["data-element-id", "data-pptx-element"], kv = [
|
|
|
2255
2255
|
}
|
|
2256
2256
|
};
|
|
2257
2257
|
}(() => n.element, () => l.value, () => !0 === n.presenting), d = ps(() => ({
|
|
2258
|
-
...
|
|
2258
|
+
...Pu(n.element, n.zIndex),
|
|
2259
2259
|
...u.overlayStyle.value
|
|
2260
|
-
})), c = ps(() =>
|
|
2260
|
+
})), c = ps(() => Mu(n.element, n.mediaDataUrls)), v = ps(() => {
|
|
2261
2261
|
const e = n.element;
|
|
2262
2262
|
if ("media" === e.type) return e.mediaData ?? (e.mediaPath ? n.mediaDataUrls.get(e.mediaPath) : void 0);
|
|
2263
2263
|
}), p = ps(() => "media" === n.element.type ? n.element.mediaType : void 0), m = ps(() => Wa(n.element)?.embedUrl), f = ps(() => "media" === n.element.type ? n.element.posterFrameData ?? c.value : c.value), h = ps(() => Hl(o.value).loop), y = ps(() => "media" === n.element.type && !0 === n.element.autoPlay), g = ps(() => Gl({
|
|
@@ -2399,8 +2399,8 @@ var Sv = ["data-element-id", "data-pptx-element"], kv = [
|
|
|
2399
2399
|
},
|
|
2400
2400
|
setup(e) {
|
|
2401
2401
|
const t = e, n = ps(() => ({
|
|
2402
|
-
...$e(
|
|
2403
|
-
...
|
|
2402
|
+
...$e(zu(t.element)),
|
|
2403
|
+
...Pu(t.element, t.zIndex)
|
|
2404
2404
|
})), a = Ou(() => t.element, () => t.interactive, () => t.presenting), l = ps(() => {
|
|
2405
2405
|
const e = t.element;
|
|
2406
2406
|
if (!(0, yu.hasTextProperties)(e)) return [];
|
|
@@ -2504,10 +2504,10 @@ var Sv = ["data-element-id", "data-pptx-element"], kv = [
|
|
|
2504
2504
|
presenting: { type: Boolean }
|
|
2505
2505
|
},
|
|
2506
2506
|
setup(e) {
|
|
2507
|
-
const t = e, n = ps(() =>
|
|
2507
|
+
const t = e, n = ps(() => Pu(t.element, t.zIndex)), a = Ou(() => t.element, () => t.interactive, () => t.presenting), l = ps(() => (0, yu.isInkElement)(t.element) ? t.element : void 0), i = ps(() => Math.max(t.element.width, 1)), o = ps(() => Math.max(t.element.height, 1)), r = ps(() => {
|
|
2508
2508
|
const e = l.value;
|
|
2509
2509
|
return e ? He(e, {
|
|
2510
|
-
color:
|
|
2510
|
+
color: Cu,
|
|
2511
2511
|
width: 1
|
|
2512
2512
|
}) : [];
|
|
2513
2513
|
}), s = ps(() => t.replay && l.value ? Da(l.value) : []);
|
|
@@ -2624,7 +2624,7 @@ var Qv = ["data-element-id"], ep = ["src", "alt"], tp = {
|
|
|
2624
2624
|
presenting: { type: Boolean }
|
|
2625
2625
|
},
|
|
2626
2626
|
setup(t) {
|
|
2627
|
-
const n = t, { t: a } = e(), l = ps(() =>
|
|
2627
|
+
const n = t, { t: a } = e(), l = ps(() => Pu(n.element, n.zIndex)), i = Ou(() => n.element, () => n.interactive, () => n.presenting), o = ps(() => "model3d" === n.element.type ? n.element : void 0), r = ps(() => {
|
|
2628
2628
|
const e = o.value;
|
|
2629
2629
|
if (e) return e.posterImage ?? e.imageData;
|
|
2630
2630
|
}), s = Fs(null), { mounted: v } = Jv({
|
|
@@ -2718,7 +2718,7 @@ var Qv = ["data-element-id"], ep = ["src", "alt"], tp = {
|
|
|
2718
2718
|
presenting: { type: Boolean }
|
|
2719
2719
|
},
|
|
2720
2720
|
setup(t) {
|
|
2721
|
-
const n = t, { t: a } = e(), l = ps(() =>
|
|
2721
|
+
const n = t, { t: a } = e(), l = ps(() => Pu(n.element, n.zIndex)), i = Ou(() => n.element, () => n.interactive, () => n.presenting), o = ps(() => oi(Gl({
|
|
2722
2722
|
interactive: !0 === n.interactive,
|
|
2723
2723
|
presenting: !0 === n.presenting
|
|
2724
2724
|
}))), r = ps(() => "ole" === n.element.type ? n.element : void 0), s = ps(() => {
|
|
@@ -3047,7 +3047,7 @@ var Cp = ["aria-label", "onClick"], Pp = ws({
|
|
|
3047
3047
|
function s(e) {
|
|
3048
3048
|
return e ? r.value.get(e) : void 0;
|
|
3049
3049
|
}
|
|
3050
|
-
const u = ps(() => zo(l.value)), d = ps(() => l.value?.style ?? "flat"), c = ps(() => l.value?.chrome), v = ps(() =>
|
|
3050
|
+
const u = ps(() => zo(l.value)), d = ps(() => l.value?.style ?? "flat"), c = ps(() => l.value?.chrome), v = ps(() => Pu(n.element, n.zIndex)), p = ps(() => n.interactive ? null : { pointerEvents: "none" }), m = Ou(() => n.element, () => n.interactive, () => n.presenting), f = ps(() => De(c.value)), h = ps(() => l.value?.drawingShapes ?? []), y = ps(() => h.value.length > 0), g = ps(() => Bo(i.value, n.animationState, l.value?.presLayoutVars)), x = ps(() => g.value.nodes), w = ps(() => 0 === h.value.length ? h.value : Ao(h.value, i.value, n.animationState)), S = ps(() => Bt(h.value)), k = ps(() => {
|
|
3051
3051
|
const e = w.value, t = Do(h.value, e, i.value);
|
|
3052
3052
|
return Pi(n.element.id, e, S.value, u.value, d.value).map((e, n) => ({
|
|
3053
3053
|
...e,
|
|
@@ -3355,7 +3355,7 @@ var Cp = ["aria-label", "onClick"], Pp = ws({
|
|
|
3355
3355
|
textStyleOverrideCss: {}
|
|
3356
3356
|
},
|
|
3357
3357
|
setup(t) {
|
|
3358
|
-
const n = t, { t: a } = e(), l = ps(() => "smartArt" === n.element.type ? n.element.smartArtData : void 0), i = Uu(), o = ps(() => $o(n.element, i.value.smartArt3D)), r = ps(() => $n(n.element)), s = Fs(null), u = Fs(null), d = ps(() =>
|
|
3358
|
+
const n = t, { t: a } = e(), l = ps(() => "smartArt" === n.element.type ? n.element.smartArtData : void 0), i = Uu(), o = ps(() => $o(n.element, i.value.smartArt3D)), r = ps(() => $n(n.element)), s = Fs(null), u = Fs(null), d = ps(() => Pu(n.element, n.zIndex)), c = Ou(() => n.element, () => n.interactive, () => n.presenting), v = bp(), p = ps(() => Boolean(v?.canEdit())), m = Sp(), f = ps(() => zo(l.value)), h = Fs(null), { hoveredNodeId: y, hoveredNodeRect: g, onMouseMove: x, onMouseLeave: w } = Ip(s), S = ps(() => {
|
|
3359
3359
|
const e = g.value, t = s.value;
|
|
3360
3360
|
if (!e || !t) return;
|
|
3361
3361
|
const n = Math.max(0, t.clientWidth - 168), a = Math.max(0, t.clientHeight - 40);
|
|
@@ -3705,7 +3705,7 @@ var hm = Su(ws({
|
|
|
3705
3705
|
fontScheme: e?.fontScheme,
|
|
3706
3706
|
formatScheme: e?.formatScheme
|
|
3707
3707
|
}),
|
|
3708
|
-
...
|
|
3708
|
+
...Pu(t.element, t.zIndex)
|
|
3709
3709
|
};
|
|
3710
3710
|
}), a = ps(() => t.interactive ? null : { pointerEvents: "none" }), l = Ou(() => t.element, () => t.interactive, () => t.presenting), i = bs(pm, void 0), r = ps(() => {
|
|
3711
3711
|
const e = t.element;
|
|
@@ -4039,10 +4039,10 @@ var Dm = ["d", "fill"], Am = [
|
|
|
4039
4039
|
zIndex: {}
|
|
4040
4040
|
},
|
|
4041
4041
|
setup(e) {
|
|
4042
|
-
const t = e, n = ps(() => (0, yu.hasTextProperties)(t.element) ? t.element : null), a = ps(() => n.value?.textStyle?.textWarpPreset), l = ps(() => Boolean(n.value) && Er(a.value)), i = ps(() => Math.max(t.element.width, 1)), r = ps(() => Math.max(t.element.height, 1)), s =
|
|
4042
|
+
const t = e, n = ps(() => (0, yu.hasTextProperties)(t.element) ? t.element : null), a = ps(() => n.value?.textStyle?.textWarpPreset), l = ps(() => Boolean(n.value) && Er(a.value)), i = ps(() => Math.max(t.element.width, 1)), r = ps(() => Math.max(t.element.height, 1)), s = Au(), u = ps(() => {
|
|
4043
4043
|
const e = n.value;
|
|
4044
4044
|
if (!e) return [];
|
|
4045
|
-
const t =
|
|
4045
|
+
const t = Bu(s);
|
|
4046
4046
|
return Za(e, (e) => {
|
|
4047
4047
|
if (e.fieldType) {
|
|
4048
4048
|
const n = Ur(e.text, e.fieldType, t, e.style?.language);
|
|
@@ -4228,7 +4228,7 @@ var Zm = [
|
|
|
4228
4228
|
presenting: { type: Boolean }
|
|
4229
4229
|
},
|
|
4230
4230
|
setup(t) {
|
|
4231
|
-
const n = t, { t: a } = e(), l = ps(() =>
|
|
4231
|
+
const n = t, { t: a } = e(), l = ps(() => Pu(n.element, n.zIndex)), i = Ou(() => n.element, () => n.interactive, () => n.presenting), o = ps(() => (0, yu.isZoomElement)(n.element) ? n.element : void 0), r = ps(() => o.value?.imageData), s = ps(() => o.value?.targetSlideIndex ?? 0), u = ps(() => o.value?.zoomType ?? "slide"), d = ps(() => o.value?.targetSectionId), c = ps(() => "section" === u.value ? a("pptx.zoom.sectionZoom") : a("pptx.zoom.slideZoom")), v = bs(Xm, void 0), p = ps(() => v?.(s.value)), m = ps(() => o.value ? nt(o.value, v, (e, t) => a(e, t ?? {})) : void 0), f = ps(() => ({ backgroundColor: p.value?.backgroundColor ?? "#f0f0f0" })), h = ps(() => void 0 !== p.value?.slideNumber ? a("pptx.notes.slideN", { n: p.value.slideNumber }) : a("pptx.notes.slideN", { n: s.value + 1 })), y = ps(() => p.value?.sectionName ?? d.value), g = ps(() => "section" === u.value && d.value ? a("pptx.zoom.ariaLabelSection", {
|
|
4232
4232
|
number: s.value + 1,
|
|
4233
4233
|
section: d.value
|
|
4234
4234
|
}) : a("pptx.zoom.ariaLabel", { number: s.value + 1 })), x = bs(jm, void 0), w = ps(() => Boolean(x && o.value));
|
|
@@ -4318,7 +4318,7 @@ var Zm = [
|
|
|
4318
4318
|
inlineEditingElementId: {}
|
|
4319
4319
|
},
|
|
4320
4320
|
setup(e) {
|
|
4321
|
-
const t = e, n = Uu(), a = ps(() => n.value.smartArt3D), l =
|
|
4321
|
+
const t = e, n = Uu(), a = ps(() => n.value.smartArt3D), l = Au(), i = bs(Lu, void 0), o = bs(Fu, () => Ws(/* @__PURE__ */ new Map()), !0), r = ps(() => o.value.get(t.element.id)), s = ps(() => na(t.element, o.value)), u = ps(() => ot(t.element.id, r.value?.textStyle)), d = ps(() => Pu(t.element, t.zIndex)), c = ps(() => Tu(t.element, t.parentGroupFill, (s.value ?? r.value)?.animatesFill, (s.value ?? r.value)?.animatesStroke)), v = ps(() => Ea(t.element, t.parentGroupFill)), p = ps(() => {
|
|
4322
4322
|
const e = d.value, n = c.value, a = {
|
|
4323
4323
|
...e,
|
|
4324
4324
|
...n
|
|
@@ -4328,7 +4328,7 @@ var Zm = [
|
|
|
4328
4328
|
...j(t.element, t.edgeBleed, a)
|
|
4329
4329
|
};
|
|
4330
4330
|
}), m = ps(() => ta(t.element, p.value, s.value)), f = ps(() => {
|
|
4331
|
-
const e =
|
|
4331
|
+
const e = zu(t.element), n = (0, yu.hasTextProperties)(t.element) ? t.element.textStyle : void 0, a = lt(n, {
|
|
4332
4332
|
width: t.element.width,
|
|
4333
4333
|
height: t.element.height
|
|
4334
4334
|
});
|
|
@@ -4344,7 +4344,7 @@ var Zm = [
|
|
|
4344
4344
|
}), y = ps(() => "text" === t.element.type || "shape" === t.element.type), g = ps(() => "picture" === t.element.type || "image" === t.element.type), x = ps(() => (0, yu.hasTextProperties)(t.element) && Sl(t.element.textSegments)), w = ps(() => nl(t.element)), S = ps(() => {
|
|
4345
4345
|
return Ha(t.element, (e = i) ? Ns(e) : void 0);
|
|
4346
4346
|
var e;
|
|
4347
|
-
}), k = ps(() => Xe(t.element,
|
|
4347
|
+
}), k = ps(() => Xe(t.element, Bu(l), S.value)), b = ps(() => k.value.some((e) => e.runs.length > 0 || void 0 !== e.bulletMarker)), E = ps(() => b.value ? null : gi(t.element, t.interactive && !t.presenting ? "edit" : "present")), I = ps(() => t.templateEditing ? "pptx-vue-template-editing" : null), C = ps(() => t.interactive || t.marked ? "true" : void 0), P = ps(() => {
|
|
4348
4348
|
const e = rl({
|
|
4349
4349
|
interactive: !0 === t.interactive,
|
|
4350
4350
|
presenting: !0 === t.presenting
|
|
@@ -4687,11 +4687,11 @@ var Zm = [
|
|
|
4687
4687
|
setup(t) {
|
|
4688
4688
|
const n = t, { t: a } = e(), l = Fs(null);
|
|
4689
4689
|
(function(e) {
|
|
4690
|
-
const t =
|
|
4691
|
-
Ls(
|
|
4690
|
+
const t = Au();
|
|
4691
|
+
Ls(Du, () => Tn(Bu(t), e()));
|
|
4692
4692
|
})(() => n.slide);
|
|
4693
4693
|
const i = ps(() => [...ls(n.slide, n.templateElements ?? [])]);
|
|
4694
|
-
Ls(
|
|
4694
|
+
Ls(Lu, () => [...i.value, ...n.slide?.elements ?? []]);
|
|
4695
4695
|
const o = ps(() => n.preserveElementIds ? /* @__PURE__ */ new Map() : _o(i.value, n.slide, n.selectedElementIds?.length ? new Set(n.selectedElementIds) : void 0)), r = ps(() => i.value.length), s = ps(() => [...i.value, ...n.slide?.elements ?? []]), u = ps(() => (n.interactive ?? !1) && (n.editTemplateMode ?? !1));
|
|
4696
4696
|
Ks(() => {
|
|
4697
4697
|
const e = l.value, t = s.value;
|
|
@@ -5782,7 +5782,7 @@ function vh(e) {
|
|
|
5782
5782
|
var ph = {
|
|
5783
5783
|
loadYjs: () => import("yjs"),
|
|
5784
5784
|
loadWebsocket: () => import("y-websocket"),
|
|
5785
|
-
loadWebrtc: () => import("./y-webrtc-
|
|
5785
|
+
loadWebrtc: () => import("./y-webrtc-BxRkXfn3.js")
|
|
5786
5786
|
};
|
|
5787
5787
|
function mh(e, t) {
|
|
5788
5788
|
const n = Fs(!1), a = Fs(!1), l = Fs(void 0), i = ln();
|
|
@@ -8000,72 +8000,78 @@ function vy(e, t) {
|
|
|
8000
8000
|
c.value = !0, v.value = null, p.value = null, m.value = !1;
|
|
8001
8001
|
const j = e instanceof Uint8Array ? e.buffer.slice(e.byteOffset, e.byteOffset + e.byteLength) : e, q = j.slice(0), X = j instanceof ArrayBuffer ? j.byteLength / 1048576 : 0;
|
|
8002
8002
|
X > 50 && console.warn(`[pptx] Large file detected (${X.toFixed(1)} MB). Loading may use significant memory.`);
|
|
8003
|
-
const Y = f.value
|
|
8003
|
+
const Y = f.value;
|
|
8004
|
+
let K;
|
|
8005
|
+
const Z = (e, n) => {
|
|
8006
|
+
"undefined" != typeof document && H === _ && (K = bi({
|
|
8007
|
+
document,
|
|
8008
|
+
linkId: ny,
|
|
8009
|
+
slides: pi(e).slides,
|
|
8010
|
+
embeddedFonts: n,
|
|
8011
|
+
googleFontsBase: xo(t?.getGoogleFonts?.()),
|
|
8012
|
+
onProgress: (e) => {
|
|
8013
|
+
H === _ && (v.value = e);
|
|
8014
|
+
}
|
|
8015
|
+
}));
|
|
8016
|
+
}, J = await G.load(j, {
|
|
8004
8017
|
allowExternalImages: t?.getAllowExternalImages?.(),
|
|
8005
|
-
limits: t?.getLimits?.()
|
|
8018
|
+
limits: t?.getLimits?.(),
|
|
8019
|
+
onSlidesParsed: (e) => Z([...e.slides], [...e.embeddedFonts])
|
|
8006
8020
|
});
|
|
8007
8021
|
if (H !== _) return;
|
|
8008
|
-
|
|
8009
|
-
|
|
8010
|
-
const
|
|
8011
|
-
|
|
8022
|
+
K || Z(J.slides, J.embeddedFonts ?? []);
|
|
8023
|
+
const Q = [];
|
|
8024
|
+
for (const e of J.slides) It(e.elements, Q);
|
|
8025
|
+
const ee = /* @__PURE__ */ new Map();
|
|
8026
|
+
await Promise.all(Q.map(async (e) => {
|
|
8012
8027
|
const t = await Io(e, G);
|
|
8013
|
-
!t.missing && t.mediaPath && t.url ? (
|
|
8028
|
+
!t.missing && t.mediaPath && t.url ? (ee.set(t.mediaPath, t.url), t.isBlobUrl && V.push(t.url)) : e.mediaMissing = !0;
|
|
8014
8029
|
}));
|
|
8015
|
-
const
|
|
8016
|
-
await Promise.all(
|
|
8030
|
+
const te = bt(J.slides).filter((e) => !ee.has(e));
|
|
8031
|
+
await Promise.all(te.map(async (e) => {
|
|
8017
8032
|
try {
|
|
8018
8033
|
const t = await G.getMediaArrayBuffer(e);
|
|
8019
8034
|
if (t) {
|
|
8020
8035
|
const n = URL.createObjectURL(new Blob([t]));
|
|
8021
|
-
V.push(n),
|
|
8036
|
+
V.push(n), ee.set(e, n);
|
|
8022
8037
|
}
|
|
8023
8038
|
} catch {}
|
|
8024
8039
|
}));
|
|
8025
|
-
const { paths:
|
|
8026
|
-
let
|
|
8027
|
-
if (
|
|
8040
|
+
const { paths: ne, refs: ae } = Et(J.slides);
|
|
8041
|
+
let le = J.slides;
|
|
8042
|
+
if (ne.size > 0) {
|
|
8028
8043
|
const e = /* @__PURE__ */ new Map();
|
|
8029
|
-
await Promise.all(Array.from(
|
|
8044
|
+
await Promise.all(Array.from(ne).map(async (t) => {
|
|
8030
8045
|
try {
|
|
8031
8046
|
const n = await G.getImageData(t);
|
|
8032
8047
|
n && e.set(t, n);
|
|
8033
8048
|
} catch {}
|
|
8034
|
-
})),
|
|
8035
|
-
const n = se(t.elements, e,
|
|
8049
|
+
})), le = J.slides.map((t) => {
|
|
8050
|
+
const n = se(t.elements, e, ae);
|
|
8036
8051
|
return n === t.elements ? t : {
|
|
8037
8052
|
...t,
|
|
8038
8053
|
elements: n
|
|
8039
8054
|
};
|
|
8040
8055
|
});
|
|
8041
8056
|
}
|
|
8042
|
-
|
|
8043
|
-
const
|
|
8044
|
-
|
|
8045
|
-
const
|
|
8057
|
+
le = await Uo(le, (e) => G.getImageData(e));
|
|
8058
|
+
const ie = await Wo(J.tableStyleMap, (e) => G.getImageData(e));
|
|
8059
|
+
le = await Ho(le, (e) => G.getImageData(e));
|
|
8060
|
+
const oe = J.hasDigitalSignatures && q instanceof ArrayBuffer ? await cy(q) : [];
|
|
8046
8061
|
if (H !== _) return;
|
|
8047
|
-
const
|
|
8048
|
-
if (
|
|
8049
|
-
|
|
8050
|
-
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8060
|
-
height: K.height ?? 720
|
|
8061
|
-
}, i.value = "number" == typeof K.widthEmu && "number" == typeof K.heightEmu && K.widthEmu > 0 && K.heightEmu > 0 ? {
|
|
8062
|
-
widthEmu: K.widthEmu,
|
|
8063
|
-
heightEmu: K.heightEmu,
|
|
8064
|
-
type: K.slideSizeType ?? ""
|
|
8065
|
-
} : void 0, o.value = K.theme, r.value = K.themeColorMap, s.value = K.slideMasters ?? [], u.value = K.layoutOptions ?? [], h.value = K.coreProperties, y.value = K.customProperties ?? [], g.value = K.modifyVerifier, x.value = G.getCompatibilityWarnings(), w.value = K.appProperties, S.value = K.tags ?? [], k.value = K.embeddedFonts ?? [], E.value = ae, I.value = K.tableStylesDefaultId, C.value = [], P.value = K.sections ?? [], T.value = K.customShows ?? [], z.value = K.modernCommentAuthors ?? [], M.value = K.commentAuthors ?? [], D.value = K.presentationProperties ?? {}, A.value = K.viewProperties, B.value = K.headerFooter, L.value = K.firstSlideNumber, O.value = K.notesMaster, F.value = K.handoutMaster, R.value = K.themeOptions ?? [], $.value = "number" == typeof K.notesWidthEmu && "number" == typeof K.notesHeightEmu && K.notesWidthEmu > 0 && K.notesHeightEmu > 0 ? {
|
|
8066
|
-
width: Math.round(K.notesWidthEmu / 9525),
|
|
8067
|
-
height: Math.round(K.notesHeightEmu / 9525)
|
|
8068
|
-
} : void 0, b.value = le, t?.onContentApplied?.();
|
|
8062
|
+
const re = pi(le);
|
|
8063
|
+
if (K && (await K, H !== _)) return;
|
|
8064
|
+
Y?.dispose(), W(Array.from(d.value.values())), W(U), U = V, N.commit(), f.value = G, n.value = re.slides, a.value = re.templateElementsBySlideId, d.value = ee, l.value = {
|
|
8065
|
+
width: J.width ?? 1280,
|
|
8066
|
+
height: J.height ?? 720
|
|
8067
|
+
}, i.value = "number" == typeof J.widthEmu && "number" == typeof J.heightEmu && J.widthEmu > 0 && J.heightEmu > 0 ? {
|
|
8068
|
+
widthEmu: J.widthEmu,
|
|
8069
|
+
heightEmu: J.heightEmu,
|
|
8070
|
+
type: J.slideSizeType ?? ""
|
|
8071
|
+
} : void 0, o.value = J.theme, r.value = J.themeColorMap, s.value = J.slideMasters ?? [], u.value = J.layoutOptions ?? [], h.value = J.coreProperties, y.value = J.customProperties ?? [], g.value = J.modifyVerifier, x.value = G.getCompatibilityWarnings(), w.value = J.appProperties, S.value = J.tags ?? [], k.value = J.embeddedFonts ?? [], E.value = ie, I.value = J.tableStylesDefaultId, C.value = [], P.value = J.sections ?? [], T.value = J.customShows ?? [], z.value = J.modernCommentAuthors ?? [], M.value = J.commentAuthors ?? [], D.value = J.presentationProperties ?? {}, A.value = J.viewProperties, B.value = J.headerFooter, L.value = J.firstSlideNumber, O.value = J.notesMaster, F.value = J.handoutMaster, R.value = J.themeOptions ?? [], $.value = "number" == typeof J.notesWidthEmu && "number" == typeof J.notesHeightEmu && J.notesWidthEmu > 0 && J.notesHeightEmu > 0 ? {
|
|
8072
|
+
width: Math.round(J.notesWidthEmu / 9525),
|
|
8073
|
+
height: Math.round(J.notesHeightEmu / 9525)
|
|
8074
|
+
} : void 0, b.value = oe, t?.onContentApplied?.();
|
|
8069
8075
|
} catch (e) {
|
|
8070
8076
|
if (H === _) if (e instanceof yu.EncryptedFileError) m.value = !0;
|
|
8071
8077
|
else {
|
|
@@ -9220,4 +9226,4 @@ function Xy(e) {
|
|
|
9220
9226
|
}
|
|
9221
9227
|
};
|
|
9222
9228
|
}
|
|
9223
|
-
export { Oh as $, Jv as $n, $f as $t, cy as A, ff as An, yu as Ar, u as At, ly as B, sm as Bn, V as Bt, xy as C, _ as Cn,
|
|
9229
|
+
export { Oh as $, Jv as $n, $f as $t, cy as A, ff as An, yu as Ar, u as At, ly as B, sm as Bn, V as Bt, xy as C, _ as Cn, ku as Cr, ih as Ct, hy as D, Sf as Dn, Su as Dr, jf as Dt, yy as E, wf as En, Eu as Er, Yf as Et, dy as F, qm as Fn, A as Ft, Jh as G, nm as Gn, po as Gt, ty as H, dm as Hn, Ga as Ht, sy as I, Vm as In, O as It, Wh as J, gp as Jn, No as Jt, Zh as K, Ip as Kn, To as Kt, oy as L, Pm as Ln, F as Lt, We as M, rf as Mn, hu as Mr, x as Mt, Et as N, Km as Nn, fu as Nr, M as Nt, fy as O, gf as On, wu as Or, l as Ot, It as P, Ym as Pn, D as Pt, Fh as Q, np as Qn, _f as Qt, Vi as R, pm as Rn, R as Rt, ky as S, b as Sn, bu as Sr, ah as St, gy as T, kf as Tn, Cu as Tr, Jf as Tt, ey as U, um as Un, Xa as Ut, ay as V, cm as Vn, ua as Vt, Qh as W, vm as Wn, vo as Wt, $h as X, Sp as Xn, Vf as Xt, _h as Y, xp as Yn, qo as Yt, Rh as Z, yp as Zn, Nf as Zt, Iy as _, Ef as _n, Du as _r, vh as _t, Gy as a, Ae as an, zc as ar, Ph as at, Ey as b, bf as bn, Tu as br, rh as bt, Fy as c, Df as cn, Xd as cr, Eh as ct, By as d, Lf as dn, Ku as dr, Qn as dt, Rf as en, Zv as er, C as et, Ay as f, zf as fn, Yu as fr, wh as ft, Ty as g, If as gn, Ru as gr, xl as gt, zy as h, Tf as hn, Uu as hr, Ke as ht, _y as i, Gf as in, Pc as ir, Th as it, vy as j, pf as jn, vu as jr, v as jt, py as k, yf as kn, xu as kr, r as kt, Oy as l, Af as ln, Ju as lr, kh as lt, My as m, Pf as mn, _u as mr, gh as mt, qy as n, Wf as nn, Tc as nr, zh as nt, $y as o, Of as on, Ic as or, Ch as ot, Dy as p, Cf as pn, $u as pr, xh as pt, Hh as q, wp as qn, Ro as qt, Ny as r, Hf as rn, Cc as rr, Dh as rt, Ry as s, Bf as sn, dc as sr, Ih as st, Xy as t, Ff as tn, Hv as tr, P as tt, Ly as u, Mf as un, Qu as ur, Sh as ut, Cy as v, At as vn, Pu as vr, dh as vt, wy as w, Pl as wn, Iu as wr, nh as wt, Sy as x, k as xn, zu as xr, lh as xt, Py as y, en as yn, Mu as yr, uh as yt, iy as z, fm as zn, G as zt };
|
|
Binary file
|
|
Binary file
|
package/dist/viewer/index.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-BNnWGJwV.cjs"), t = require("../viewer-B-B4pL2o.cjs");
|
|
3
3
|
let r = require("ooxml-ui/pptx");
|
|
4
4
|
Object.defineProperty(exports, "AUDIENCE_HASH", {
|
|
5
5
|
enumerable: !0,
|
package/dist/viewer/index.cjs.br
CHANGED
|
Binary file
|
package/dist/viewer/index.cjs.gz
CHANGED
|
Binary file
|
package/dist/viewer/index.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ import { ExternalCollaborationSnapshot } from 'ooxml-ui/pptx';
|
|
|
35
35
|
import { getResolvedShapeClipPath } from 'ooxml-ui/pptx';
|
|
36
36
|
import { getResolvedShapeClipPathFor } from 'ooxml-ui/pptx';
|
|
37
37
|
import { GoogleFontsOption } from 'ooxml-ui/pptx';
|
|
38
|
+
import { GoogleFontsOption as GoogleFontsOption_2 } from 'ooxml-core/text';
|
|
38
39
|
import { Guide } from 'ooxml-ui/pptx';
|
|
39
40
|
import { GuideEntry } from 'ooxml-ui/pptx';
|
|
40
41
|
import { HistoryTheme } from 'ooxml-ui/pptx';
|
|
@@ -196,7 +197,7 @@ declare const __VLS_export: DefineComponent<PowerPointViewerProps, PowerPointVie
|
|
|
196
197
|
pieChart3D: boolean;
|
|
197
198
|
surfaceChart3D: boolean;
|
|
198
199
|
smartArt3D: boolean;
|
|
199
|
-
googleFonts:
|
|
200
|
+
googleFonts: GoogleFontsOption_2;
|
|
200
201
|
showToolbar: boolean;
|
|
201
202
|
showThumbnails: boolean;
|
|
202
203
|
showCompatibilityToasts: boolean;
|
package/dist/viewer/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { An as a, C as s, Cr as e,
|
|
2
|
-
import { C as Q, S as V, _, a as
|
|
3
|
-
export {
|
|
1
|
+
import { An as a, C as s, Cr as e, Er as r, Gn as n, In as o, L as t, Ln as i, M as l, Mn as d, N as R, P as S, Q as m, Qn as C, S as b, Sr as w, Tr as c, Z as v, Zn as x, br as u, cr as T, d as g, er as j, h as p, it as y, j as E, jn as I, mt as M, sr as P, tr as f, vr as h, w as A, wr as O, x as Z, xr as D, yr as L } from "../useViewerSettingsDialog-CGI6HR0i.js";
|
|
2
|
+
import { C as Q, S as V, _ as k, a as q, b as B, c as F, d as G, f as N, g as W, h as _, i as z, l as H, m as J, n as K, o as U, p as X, r as Y, s as $, t as aa, u as sa, v as ea, x as ra, y as na } from "../viewer-DYs723bH.js";
|
|
3
|
+
export { G as AUDIENCE_HASH, T as ChartRenderer, ea as CollaborationCursors, Q as CollaborationStatusIndicator, P as ConnectorRenderer, w as DEFAULT_CANVAS_HEIGHT, e as DEFAULT_CANVAS_WIDTH, O as DEFAULT_FILL_COLOR, c as DEFAULT_STROKE_COLOR, r as DEFAULT_TEXT_COLOR, I as ElementRenderer, f as EquationRenderer, sa as FollowModeBar, j as InkRenderer, V as InlineTextEditor, C as Model3DRenderer, x as OleRenderer, F as PowerPointViewer, k as RemoteSelectionOverlay, B as RibbonToolbar, ra as SelectionOverlay, na as SlideCanvas, a as SlideStage, H as SlidesPane, n as SmartArtRenderer, i as TableRenderer, o as WordArtText, d as ZoomRenderer, l as buildInitialGuides, N as clearAudienceContent, R as collectImagePaths, S as collectMediaElements, Z as exportAllSlidesToSvg, b as exportAllSlidesToSvgBlobs, s as exportSlideToSvg, A as exportSlideToSvgBlob, h as getContainerStyle, L as getImageSrc, K as getResolvedShapeClipPath, Y as getResolvedShapeClipPathFor, u as getShapeFillStrokeStyle, D as getTextBlockStyle, X as isAudienceTab, J as loadAudienceContent, aa as overlayInlineTextSnapshot, _ as parseAudienceNonce, W as storeAudienceContent, M as useCollaboration, z as useCollaborativeHistory, q as useCollaborativeState, y as useEditorHistory, m as useEditorOperations, v as useElementDrag, t as useInlineEditing, E as useLoadContent, U as usePresenceTracking, p as useSectionOperations, g as useSlideOperations, $ as useYjsProvider };
|
package/dist/viewer/index.js.br
CHANGED
|
Binary file
|
package/dist/viewer/index.js.gz
CHANGED
|
Binary file
|