lt-ppt 1.0.47 → 1.0.48
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/dist/{InnerApp-RanxT5ji.js → InnerApp-BtUPJ4ZS.js} +13 -16
- package/dist/{database-DXLrpgFP.js → database-Bf4mf4zB.js} +1 -1
- package/dist/{index-DgR62zpM.js → index-BCi1-wbw.js} +2 -2
- package/dist/{index-Blg5vWtv.js → index-Bq-Ibq6O.js} +1 -1
- package/dist/{lib-CGw0UBt0.js → lib-rw4q3jVO.js} +6 -6
- package/dist/lt-ppt.css +1 -1
- package/dist/lt-ppt.es.js +1 -1
- package/dist/lt-ppt.umd.js +3 -3
- package/dist/{screen-BGIvkPSs.js → screen-DyQzVM2d.js} +1 -1
- package/dist/types/src/LtPPT.vue.d.ts +1 -1
- package/dist/types/src/types/lt-ppt.d.ts +2 -2
- package/dist/{useExport-BigJsh_r.js → useExport-as1vhZAE.js} +2 -2
- package/package.json +1 -1
|
@@ -4,11 +4,11 @@ var li = (e, t, n) => h4e(e, typeof t != "symbol" ? t + "" : t, n);
|
|
|
4
4
|
import * as p4e from "vue";
|
|
5
5
|
import { computed as te, ref as j, inject as Tr, nextTick as wn, onMounted as Lt, onUnmounted as zt, markRaw as Ce, openBlock as k, createElementBlock as F, createElementVNode as _, defineComponent as ye, Fragment as _e, renderList as Ee, toDisplayString as B, shallowRef as ot, renderSlot as sn, withModifiers as rt, normalizeClass as Xe, createCommentVNode as be, createBlock as fe, Teleport as zce, createVNode as C, Transition as cI, withCtx as G, withDirectives as Qe, normalizeStyle as ce, vShow as Iu, watch as qe, resolveDirective as tn, unref as Q, createTextVNode as Oe, withKeys as Ws, toRef as ET, resolveDynamicComponent as Kl, provide as Os, createStaticVNode as FT, onBeforeUnmount as WT, watchEffect as T2, vModelText as v4e, isRef as Ate, mergeProps as m4e } from "vue";
|
|
6
6
|
import { storeToRefs as me } from "./pinia-CVat9nJz.js";
|
|
7
|
-
import { u as De, a as Ye, N as Cn, S as Us, T as Xr, b as Ha, D as UT, F as Rn, c as jX, M as g4e, e as jce, A as qce, P as O2, f as eue, g as R4e, R as YT, h as uI, l as y4e, i as tue, j as nue, k as rue, t as ia, m as b4e, n as S4e, o as M4e, s as L4e, p as T4e, q as O4e, r as P4e, v as _4e, w as w4e, x as aue, E as N4e, y as L8, z as x4e, B as I4e, C as xo, G as Uc, H as Qte, I as X4e, J as k4e, K as C4e, L as V4e, O as E4e, Q as to, d as P5 } from "./database-
|
|
8
|
-
import { b as P2, u as yo, a as oue } from "./screen-
|
|
9
|
-
import { l as Yn, g as _2, a as cv, u as Nt, i as ZT, _ as Le, C as F4e, d as fI, e as w2, f as W4e, b as U4e, h as iue, j as sue, k as qX } from "./lib-
|
|
7
|
+
import { u as De, a as Ye, N as Cn, S as Us, T as Xr, b as Ha, D as UT, F as Rn, c as jX, M as g4e, e as jce, A as qce, P as O2, f as eue, g as R4e, R as YT, h as uI, l as y4e, i as tue, j as nue, k as rue, t as ia, m as b4e, n as S4e, o as M4e, s as L4e, p as T4e, q as O4e, r as P4e, v as _4e, w as w4e, x as aue, E as N4e, y as L8, z as x4e, B as I4e, C as xo, G as Uc, H as Qte, I as X4e, J as k4e, K as C4e, L as V4e, O as E4e, Q as to, d as P5 } from "./database-Bf4mf4zB.js";
|
|
8
|
+
import { b as P2, u as yo, a as oue } from "./screen-DyQzVM2d.js";
|
|
9
|
+
import { l as Yn, g as _2, a as cv, u as Nt, i as ZT, _ as Le, C as F4e, d as fI, e as w2, f as W4e, b as U4e, h as iue, j as sue, k as qX } from "./lib-rw4q3jVO.js";
|
|
10
10
|
import { nanoid as Rt } from "./index.browser-Wq18ov6h.js";
|
|
11
|
-
import { c as dI, g as Ti, a as Y4e, d as ek, b as tk, i as Z4e, s as A4e, e as $s, f as lue, m as Zt, J as Q4e, h as Dte, u as qv, t as D4e, j as N2, k as Jd, l as nk, n as rk, o as cue, p as Wt, q as K4e, B as uue, r as fue, v as due, w as T8, x as yN, y as Il, z as $4e, A as H4e, _ as G4e, C as B4e, D as J4e, E as hue, F as z4e, G as uv } from "./useExport-
|
|
11
|
+
import { c as dI, g as Ti, a as Y4e, d as ek, b as tk, i as Z4e, s as A4e, e as $s, f as lue, m as Zt, J as Q4e, h as Dte, u as qv, t as D4e, j as N2, k as Jd, l as nk, n as rk, o as cue, p as Wt, q as K4e, B as uue, r as fue, v as due, w as T8, x as yN, y as Il, z as $4e, A as H4e, _ as G4e, C as B4e, D as J4e, E as hue, F as z4e, G as uv } from "./useExport-as1vhZAE.js";
|
|
12
12
|
import { t as j4e } from "./tippy.esm-Dos-q4Dz.js";
|
|
13
13
|
const jm = (e, t) => Yn.padStart("" + e, t, "0"), q4e = () => !navigator.userAgent.match(/(iPhone|iPod|iPad|Android|Mobile|BlackBerry|Symbian|Windows Phone)/i), e3e = (e) => /^(https?:\/\/)([\w-]+\.)+[\w-]{2,}(\/[\w-./?%&=]*)?$/i.test(e);
|
|
14
14
|
function pue(e, t, n) {
|
|
@@ -12879,15 +12879,12 @@ const s8e = (e) => [
|
|
|
12879
12879
|
}, v = async () => {
|
|
12880
12880
|
var S;
|
|
12881
12881
|
try {
|
|
12882
|
-
const M = s(), L = (S = f.value) == null ? void 0 : S.
|
|
12883
|
-
if (!
|
|
12884
|
-
const O = { quality: 0.9, width: 800, pixelRatio: 2, fontEmbedCSS: "" }
|
|
12885
|
-
|
|
12886
|
-
|
|
12887
|
-
|
|
12888
|
-
T.push(X);
|
|
12889
|
-
}
|
|
12890
|
-
return T;
|
|
12882
|
+
const M = s(), L = (S = f.value) == null ? void 0 : S.querySelector(".thumbnail-slide");
|
|
12883
|
+
if (!L) return [];
|
|
12884
|
+
const O = { quality: 0.9, width: 800, pixelRatio: 2, fontEmbedCSS: "" };
|
|
12885
|
+
L.querySelectorAll("foreignObject [xmlns]").forEach((N) => N.removeAttribute("xmlns"));
|
|
12886
|
+
const P = await D4e(L, O);
|
|
12887
|
+
return [M ? await M({ base64: P }) : P];
|
|
12891
12888
|
} catch {
|
|
12892
12889
|
return [];
|
|
12893
12890
|
}
|
|
@@ -12921,7 +12918,7 @@ const s8e = (e) => [
|
|
|
12921
12918
|
}, y = async () => {
|
|
12922
12919
|
i == null || i.flushPendingEdits();
|
|
12923
12920
|
const S = await R(g());
|
|
12924
|
-
await m(S.slides);
|
|
12921
|
+
await m(S.slides.slice(0, 1));
|
|
12925
12922
|
const [M, L] = await Promise.all([
|
|
12926
12923
|
v(),
|
|
12927
12924
|
n(S.slides, !0, !1, !0)
|
|
@@ -71151,7 +71148,7 @@ const Hvt = () => {
|
|
|
71151
71148
|
showAIPPTDialog: u
|
|
71152
71149
|
} = me(n), f = () => n.setDialogForExport(""), d = () => n.setAIPPTDialogState(!1), h = Tr(sue, null), p = h ? null : Rde(), m = h ?? p.savePresentation, v = (p == null ? void 0 : p.saveSlides) ?? j([]), g = (p == null ? void 0 : p.saving) ?? te(() => t.saving ?? !1), R = (p == null ? void 0 : p.saveRendererVisible) ?? j(!1), y = (p == null ? void 0 : p.offscreenCoverRef) ?? j(null);
|
|
71153
71150
|
j(40);
|
|
71154
|
-
const b = Tr("__lt_ppt_mode__", j("
|
|
71151
|
+
const b = Tr("__lt_ppt_mode__", j("default")), S = te(() => b.value === "mini"), M = te(() => S.value ? "100%" : "calc(100% - 40px)");
|
|
71155
71152
|
return Os("__lt_ppt_mode__", b), qe(S, (L) => {
|
|
71156
71153
|
L && n.setThumbnailsFocus(!1);
|
|
71157
71154
|
}, { immediate: !0 }), M8e(), L8e(), (L, O) => (k(), F(_e, null, [
|
|
@@ -71244,7 +71241,7 @@ const Hvt = () => {
|
|
|
71244
71241
|
], 64)) : be("", !0)
|
|
71245
71242
|
], 64));
|
|
71246
71243
|
}
|
|
71247
|
-
}), k0t = /* @__PURE__ */ Le(X0t, [["__scopeId", "data-v-
|
|
71244
|
+
}), k0t = /* @__PURE__ */ Le(X0t, [["__scopeId", "data-v-2e3eb613"]]), C0t = {
|
|
71248
71245
|
class: "i-icon",
|
|
71249
71246
|
viewBox: "0 0 48 48",
|
|
71250
71247
|
width: "1em",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as zo, l as Ki, g as Ko, a as qi } from "./lib-
|
|
1
|
+
import { c as zo, l as Ki, g as Ko, a as qi } from "./lib-rw4q3jVO.js";
|
|
2
2
|
import { customAlphabet as qo } from "./index.browser-Wq18ov6h.js";
|
|
3
3
|
import { defineStore as us } from "./pinia-CVat9nJz.js";
|
|
4
4
|
var cs = /* @__PURE__ */ ((o) => (o.EL_ANIMATION = "elAnimation", o.EL_STYLE = "elStyle", o.EL_POSITION = "elPosition", o.SLIDE_DESIGN = "slideDesign", o.SLIDE_ANIMATION = "slideAnimation", o.MULTI_STYLE = "multiStyle", o.MULTI_POSITION = "multiPosition", o))(cs || {});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as o, a as r } from "./database-
|
|
2
|
-
import { u as t, a as S, b as u } from "./screen-
|
|
1
|
+
import { u as o, a as r } from "./database-Bf4mf4zB.js";
|
|
2
|
+
import { u as t, a as S, b as u } from "./screen-DyQzVM2d.js";
|
|
3
3
|
export {
|
|
4
4
|
t as useKeyboardStore,
|
|
5
5
|
o as useMainStore,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as k, resolveComponent as P, openBlock as d, createElementBlock as c, Fragment as x, renderList as A, withModifiers as p, normalizeClass as L, createElementVNode as C, toDisplayString as I, createCommentVNode as v, createBlock as O, computed as S, normalizeStyle as U, createVNode as D, render as w } from "vue";
|
|
2
|
-
import { _ as b } from "./lib-
|
|
2
|
+
import { _ as b } from "./lib-rw4q3jVO.js";
|
|
3
3
|
import { t as G } from "./tippy.esm-Dos-q4Dz.js";
|
|
4
4
|
const R = { class: "menu-content" }, X = ["onClick"], V = { class: "text" }, W = {
|
|
5
5
|
key: 0,
|
|
@@ -6309,9 +6309,9 @@ const Ba = 4096 * 4096, ka = 8e3, Pg = 0.2, Rg = /* @__PURE__ */ hg({
|
|
|
6309
6309
|
] = await Promise.all([
|
|
6310
6310
|
import("vue"),
|
|
6311
6311
|
import("./pinia-CVat9nJz.js"),
|
|
6312
|
-
import("./InnerApp-
|
|
6313
|
-
import("./index-
|
|
6314
|
-
import("./index-
|
|
6312
|
+
import("./InnerApp-BtUPJ4ZS.js"),
|
|
6313
|
+
import("./index-Bq-Ibq6O.js"),
|
|
6314
|
+
import("./index-BCi1-wbw.js")
|
|
6315
6315
|
]);
|
|
6316
6316
|
if (!ee.value) return;
|
|
6317
6317
|
_n = L.useSlidesStore, St = L.useScreenStore, Be = L.useMainStore, Kt = L.useSnapshotStore;
|
|
@@ -6570,12 +6570,12 @@ const Ba = 4096 * 4096, ka = 8e3, Pg = 0.2, Rg = /* @__PURE__ */ hg({
|
|
|
6570
6570
|
}
|
|
6571
6571
|
s();
|
|
6572
6572
|
},
|
|
6573
|
-
|
|
6573
|
+
generateDefaultPPT: async () => {
|
|
6574
6574
|
if (!await at() || !ie)
|
|
6575
6575
|
throw new Error("lt-ppt editor is not ready");
|
|
6576
6576
|
const s = Le();
|
|
6577
6577
|
if (!s) throw new Error("lt-ppt slides store is not ready");
|
|
6578
|
-
const { default: p } = await import("./useExport-
|
|
6578
|
+
const { default: p } = await import("./useExport-as1vhZAE.js").then((L) => L.H), { exportPPTX: g } = p(s), y = await g(s.slides, !0, !1, !0);
|
|
6579
6579
|
if (!y) throw new Error("Failed to generate PPTX file");
|
|
6580
6580
|
return y;
|
|
6581
6581
|
},
|
|
@@ -6612,7 +6612,7 @@ const Ba = 4096 * 4096, ka = 8e3, Pg = 0.2, Rg = /* @__PURE__ */ hg({
|
|
|
6612
6612
|
for (const [R, j] of w)
|
|
6613
6613
|
a[R] = j;
|
|
6614
6614
|
return a;
|
|
6615
|
-
}, zg = /* @__PURE__ */ Og(Rg, [["__scopeId", "data-v-
|
|
6615
|
+
}, zg = /* @__PURE__ */ Og(Rg, [["__scopeId", "data-v-d45f8d4a"]]), Fg = [
|
|
6616
6616
|
"SourceHanSans",
|
|
6617
6617
|
"SourceHanSerif",
|
|
6618
6618
|
"WenDingPLSongTi",
|