@templatical/editor 0.8.4 → 0.9.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/dist/{AiChatSidebar-CnRXeK77.js → AiChatSidebar-BUKj9n02.js} +5 -5
- package/dist/{AiFeatureMenu-BYDDrpj6.js → AiFeatureMenu-Co14YVJt.js} +3 -3
- package/dist/{BlockIssueBadge-DM-vXeD6.js → BlockIssueBadge-DThKKeub.js} +2 -2
- package/dist/{CloudEditor-B9a_K6Cm.js → CloudEditor-CAtw_sFC.js} +218 -217
- package/dist/{CollaboratorBar-HN4whzM-.js → CollaboratorBar-Bc6q0gB9.js} +2 -2
- package/dist/{CommentsSidebar-_llWQ4VT.js → CommentsSidebar-DiH4R4F0.js} +3 -3
- package/dist/{CountdownBlock-I99sC0C5.js → CountdownBlock-BTPefclD.js} +2 -2
- package/dist/{CountdownToolbar-BUhOUiQ9.js → CountdownToolbar-Dvr2icg-.js} +2 -2
- package/dist/{DesignReferenceSidebar-0GwjUn2V.js → DesignReferenceSidebar-BP32MgpS.js} +3 -3
- package/dist/{IssuesPanel-4MKZe8yP.js → IssuesPanel-B1LT91IX.js} +2 -2
- package/dist/{ModuleBrowserModal-DPZBsvqk.js → ModuleBrowserModal-CWegFoOA.js} +77 -85
- package/dist/{ModulePreviewCanvas-CK4j11-e.js → ModulePreviewCanvas-D9WUSSRT.js} +2 -2
- package/dist/{NumberWithSuffix-CxMFy_j3.js → NumberWithSuffix-CxUBW_V2.js} +2 -2
- package/dist/{ParagraphEditor-DBus_iHH.js → ParagraphEditor-DrAz2yot.js} +126 -126
- package/dist/{RichTextEditorContent-B_KCY6T1.js → RichTextEditorContent-gR169m1-.js} +4 -4
- package/dist/{SaveModuleDialog-DORRSbBo.js → SaveModuleDialog-DWidA0c9.js} +6 -6
- package/dist/{SnapshotHistory-DTMVEk03.js → SnapshotHistory-CIo2Jaw-.js} +4 -4
- package/dist/{TemplateScoringPanel-BIwEwFxD.js → TemplateScoringPanel-seBvvn8O.js} +2 -2
- package/dist/{TestEmailModal-DJmYp0Qi.js → TestEmailModal-BuCuWp3N.js} +3 -3
- package/dist/{TitleEditor-70d9AF1V.js → TitleEditor-BmW0uMl7.js} +67 -67
- package/dist/{TplModal-BEfwlvPC.js → TplModal-YFpBaiLj.js} +4 -4
- package/dist/{blockTypeIcons-2DRoPa3K.js → blockTypeIcons-DCkHXPhx.js} +19 -11
- package/dist/bundle-stats.json +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-CcuKnisc.js → AiFeatureMenu-Dayzk2H7.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-CcuKnisc.js.map → AiFeatureMenu-Dayzk2H7.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-Sr3is7Wr.js → BlockIssueBadge-D_US2wqo.js} +4 -4
- package/dist/cdn/chunks/{BlockIssueBadge-Sr3is7Wr.js.map → BlockIssueBadge-D_US2wqo.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-Bi10d2Gq.js → CloudEditor-CyJItWsK.js} +186 -185
- package/dist/cdn/chunks/{CloudEditor-Bi10d2Gq.js.map → CloudEditor-CyJItWsK.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-C0zeecvl.js → CollaboratorBar-C4CFs5EJ.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-C0zeecvl.js.map → CollaboratorBar-C4CFs5EJ.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-CpSUUDDs.js → CountdownBlock-D6lCXhZA.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-CpSUUDDs.js.map → CountdownBlock-D6lCXhZA.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BBzdR-00.js → CountdownToolbar-BsGUxoRv.js} +3 -3
- package/dist/cdn/chunks/{CountdownToolbar-BBzdR-00.js.map → CountdownToolbar-BsGUxoRv.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-Bthq6qoZ.js → IssuesPanel-DeHTmRDz.js} +5 -5
- package/dist/cdn/chunks/{IssuesPanel-Bthq6qoZ.js.map → IssuesPanel-DeHTmRDz.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-CFMd6M7E.js → ModuleBrowserModal-Cgjz4xAz.js} +8 -8
- package/dist/cdn/chunks/ModuleBrowserModal-Cgjz4xAz.js.map +1 -0
- package/dist/cdn/chunks/{ModulePreviewCanvas-BkcPcF5C.js → ModulePreviewCanvas-CeS9PsAA.js} +2 -2
- package/dist/cdn/chunks/{ModulePreviewCanvas-BkcPcF5C.js.map → ModulePreviewCanvas-CeS9PsAA.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-C2hH_ZIK.js → NumberWithSuffix-Bp-idLCc.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-C2hH_ZIK.js.map → NumberWithSuffix-Bp-idLCc.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-BIWXLPfu.js → ParagraphEditor-fM9aFu8T.js} +116 -116
- package/dist/cdn/chunks/ParagraphEditor-fM9aFu8T.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-DU0gc4bi.js → RichTextEditorContent-DwNPE5H5.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-DU0gc4bi.js.map → RichTextEditorContent-DwNPE5H5.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-DR9EZlWe.js → SaveModuleDialog-BrtDXzIz.js} +4 -4
- package/dist/cdn/chunks/SaveModuleDialog-BrtDXzIz.js.map +1 -0
- package/dist/cdn/chunks/TitleEditor-D0rSnye0.js +175 -0
- package/dist/cdn/chunks/TitleEditor-D0rSnye0.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-eVGGIdne.js → blockTypeIcons-YOEe5mDE.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-eVGGIdne.js.map → blockTypeIcons-YOEe5mDE.js.map} +1 -1
- package/dist/{de-ED7c5RpG.js → cdn/chunks/de-CATfXDKV.js} +14 -1
- package/dist/cdn/chunks/{de-ED7c5RpG.js.map → de-CATfXDKV.js.map} +1 -1
- package/dist/cdn/chunks/{en-ivilDUn0.js → en-CwCAgYL5.js} +13 -2
- package/dist/cdn/chunks/{en-ivilDUn0.js.map → en-CwCAgYL5.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-CvCoOuWB.js → extensions-GYsbQFPr.js} +26 -23
- package/dist/cdn/chunks/extensions-GYsbQFPr.js.map +1 -0
- package/dist/cdn/chunks/{features-CUYy5kZQ.js → features-D-2kVhHY.js} +1264 -1188
- package/dist/cdn/chunks/features-D-2kVhHY.js.map +1 -0
- package/dist/cdn/chunks/{icons-C4zY5-I3.js → icons-fZoyKV_s.js} +2 -2
- package/dist/cdn/chunks/{icons-C4zY5-I3.js.map → icons-fZoyKV_s.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-BNt3msId.js → media-library-CO2WOETY.js} +240 -240
- package/dist/cdn/chunks/{media-library-BNt3msId.js.map → media-library-CO2WOETY.js.map} +1 -1
- package/dist/{pt-BR-B5tm2iBl.js → cdn/chunks/pt-BR-D3Mg7AKe.js} +14 -1
- package/dist/cdn/chunks/{pt-BR-B5tm2iBl.js.map → pt-BR-D3Mg7AKe.js.map} +1 -1
- package/dist/cdn/chunks/{quality-BTPRPGB-.js → quality-BxPiS-wv.js} +603 -577
- package/dist/cdn/chunks/{quality-BTPRPGB-.js.map → quality-BxPiS-wv.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-IOmuuZjJ.js → renderer-7z2t_bYQ.js} +142 -108
- package/dist/cdn/chunks/{renderer-IOmuuZjJ.js.map → renderer-7z2t_bYQ.js.map} +1 -1
- package/dist/cdn/chunks/{src-Dp0ZFQ4-.js → src-ftxPuuQh.js} +4 -4
- package/dist/cdn/chunks/{src-Dp0ZFQ4-.js.map → src-ftxPuuQh.js.map} +1 -1
- package/dist/cdn/chunks/{styles-DtgjgsBH.js → styles-o0HIrw9F.js} +877 -622
- package/dist/cdn/chunks/styles-o0HIrw9F.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-BErAJEvo.js → tiptap-BBbH3IT9.js} +849 -725
- package/dist/cdn/chunks/tiptap-BBbH3IT9.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +102 -101
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{cloud-Dz8Ay2FM.js → cloud-VxYMtfXC.js} +1 -1
- package/dist/{cdn/chunks/de-ED7c5RpG.js → de-CATfXDKV.js} +12 -3
- package/dist/{dist-BygsE-n3.js → dist-BDgf2G-V.js} +453 -314
- package/dist/{dist-BtDBsF3N.js → dist-BxP6TB0l.js} +2 -2
- package/dist/{dist-DWhP3Dp2.js → dist-BzuC8o3y.js} +1209 -1217
- package/dist/{dist-v-O2Subd.js → dist-C0jo8wtG.js} +2 -2
- package/dist/{dist-BTgujVMy.js → dist-C8wMh_gi.js} +2 -2
- package/dist/{dist-Cipw2HFH.js → dist-CIV3Brg-.js} +37 -4
- package/dist/{dist-HO0vjY5Z.js → dist-CNLAS2v2.js} +130 -124
- package/dist/{dist-BS5Oi67L.js → dist-CUpJmrjt.js} +2 -2
- package/dist/dist-D5lmdi1F.js +5 -0
- package/dist/{dist-T-ORzNfM.js → dist-D8C6jIXM.js} +168 -175
- package/dist/dist-DILjuzSv.js +5 -0
- package/dist/{dist-CDtcJMB2.js → dist-DXaxGLsw.js} +33 -33
- package/dist/{dist-DnGTaPRX.js → dist-DYO-w_Jf.js} +2 -2
- package/dist/{dist-CDZCyoRy.js → dist-UK-lbEBc.js} +2 -2
- package/dist/{en-ivilDUn0.js → en-CwCAgYL5.js} +12 -1
- package/dist/{extensions-BmGiz8Oo.js → extensions-Mj2-D8uK.js} +32 -29
- package/dist/{keys-B8K7Z7Ef.js → keys-BiQlvx51.js} +3 -3
- package/dist/{cdn/chunks/pt-BR-B5tm2iBl.js → pt-BR-D3Mg7AKe.js} +12 -3
- package/dist/style.css +1 -1
- package/dist/{styles-DFeOGKa_.js → styles-CJtcKmsx.js} +857 -601
- package/dist/templatical-editor.js +104 -103
- package/dist/{useCloudI18n-DFzVgYhJ.js → useCloudI18n-DKWJg6rJ.js} +1 -1
- package/dist/{useEditorCore-BXz-UXPd.js → useEditorCore-CEkf_VWX.js} +663 -633
- package/dist/{useI18n-CBbStVlD.js → useI18n-Besvmtxy.js} +1 -1
- package/dist/useMergeTag-WNzaCpXR.js +44 -0
- package/dist/{usePopoverRoot-62PlZQQ3.js → usePopoverRoot-CKt956u-.js} +1 -1
- package/package.json +21 -21
- package/dist/cdn/chunks/ModuleBrowserModal-CFMd6M7E.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-BIWXLPfu.js.map +0 -1
- package/dist/cdn/chunks/SaveModuleDialog-DR9EZlWe.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-DZcx2N4R.js +0 -175
- package/dist/cdn/chunks/TitleEditor-DZcx2N4R.js.map +0 -1
- package/dist/cdn/chunks/extensions-CvCoOuWB.js.map +0 -1
- package/dist/cdn/chunks/features-CUYy5kZQ.js.map +0 -1
- package/dist/cdn/chunks/styles-DtgjgsBH.js.map +0 -1
- package/dist/cdn/chunks/tiptap-BErAJEvo.js.map +0 -1
- package/dist/dist-BySzGkeC.js +0 -5
- package/dist/dist-D7JUZ2Kd.js +0 -5
- package/dist/useMergeTag-CS2bmWA0.js +0 -34
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region ../../node_modules/.pnpm/@tiptap+extension-text-style@3.23.
|
|
1
|
+
import { Gt as e, c as t, dt as n, i as r } from "./dist-BzuC8o3y.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-text-style@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6_/node_modules/@tiptap/extension-text-style/dist/index.js
|
|
3
3
|
var i = 20, a = (e, t = 0) => {
|
|
4
4
|
let n = [];
|
|
5
5
|
return !e.children.length || t > i || Array.from(e.children).forEach((e) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region ../../node_modules/.pnpm/@tiptap+extension-subscript@3.23.
|
|
1
|
+
import { Gt as e, c as t } from "./dist-BzuC8o3y.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-subscript@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6__@tiptap+pm@3.23.6/node_modules/@tiptap/extension-subscript/dist/index.js
|
|
3
3
|
var n = t.create({
|
|
4
4
|
name: "subscript",
|
|
5
5
|
addOptions() {
|
|
@@ -326,7 +326,7 @@ function q(e, t) {
|
|
|
326
326
|
return n ? n.label : e;
|
|
327
327
|
}
|
|
328
328
|
function J(e, t) {
|
|
329
|
-
return e
|
|
329
|
+
return $(e, "data-merge-tag", (e) => q(e, t));
|
|
330
330
|
}
|
|
331
331
|
function Y(e, t) {
|
|
332
332
|
if (!e) return !1;
|
|
@@ -341,9 +341,42 @@ function Z(e, t) {
|
|
|
341
341
|
return r && r[1] ? r[1].toUpperCase() : e;
|
|
342
342
|
}
|
|
343
343
|
function Q(e, t) {
|
|
344
|
-
return e
|
|
344
|
+
return $(e, "data-logic-merge-tag", (e) => Z(e, t));
|
|
345
|
+
}
|
|
346
|
+
function $(e, t, n) {
|
|
347
|
+
let r = RegExp(`(?:^|\\s)${t}="([^"<>]*)"`), i = "", a = 0;
|
|
348
|
+
for (; a < e.length;) {
|
|
349
|
+
let t = e.indexOf("<span", a);
|
|
350
|
+
if (t === -1) {
|
|
351
|
+
i += e.substring(a);
|
|
352
|
+
break;
|
|
353
|
+
}
|
|
354
|
+
let o = e[t + 5];
|
|
355
|
+
if (o !== ">" && o !== " " && o !== " " && o !== "\n" && o !== "\r" && o !== "/") {
|
|
356
|
+
i += e.substring(a, t + 5), a = t + 5;
|
|
357
|
+
continue;
|
|
358
|
+
}
|
|
359
|
+
let s = e.indexOf(">", t + 5);
|
|
360
|
+
if (s === -1) {
|
|
361
|
+
i += e.substring(a);
|
|
362
|
+
break;
|
|
363
|
+
}
|
|
364
|
+
let c = e.indexOf("</span>", s + 1);
|
|
365
|
+
if (c === -1) {
|
|
366
|
+
i += e.substring(a);
|
|
367
|
+
break;
|
|
368
|
+
}
|
|
369
|
+
let l = e.substring(t + 5, s), u = r.exec(l);
|
|
370
|
+
if (!u) {
|
|
371
|
+
i += e.substring(a, t + 5), a = t + 5;
|
|
372
|
+
continue;
|
|
373
|
+
}
|
|
374
|
+
let d = u[1], f = n(d);
|
|
375
|
+
i += e.substring(a, s + 1), i += f, i += "</span>", a = c + 7;
|
|
376
|
+
}
|
|
377
|
+
return i;
|
|
345
378
|
}
|
|
346
|
-
var
|
|
379
|
+
var ee = class extends Error {
|
|
347
380
|
constructor(e, t) {
|
|
348
381
|
super(e), this.statusCode = t, this.name = "SdkError";
|
|
349
382
|
}
|
|
@@ -359,4 +392,4 @@ var $ = class extends Error {
|
|
|
359
392
|
}
|
|
360
393
|
};
|
|
361
394
|
//#endregion
|
|
362
|
-
export { J as A, Z as C, X as D, t as E, K as O, b as S, U as T, A as _, Y as a, C as b, I as c, D as d, M as f, O as g, w as h, B as i, W as j, Q as k, R as l, N as m, V as n, z as o, T as p,
|
|
395
|
+
export { J as A, Z as C, X as D, t as E, K as O, b as S, U as T, A as _, Y as a, C as b, I as c, D as d, M as f, O as g, w as h, B as i, W as j, Q as k, R as l, N as m, V as n, z as o, T as p, ee as r, E as s, e as t, v as u, j as v, q as w, k as x, F as y };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { C as e, E as t, G as n, L as r, O as i, Q as a, R as o, U as s,
|
|
1
|
+
import { C as e, E as t, G as n, L as r, O as i, Q as a, R as o, U as s, X as c, Z as l, d as u, q as d, rt as f, tt as p, w as m, x as h } from "./vue.runtime.esm-bundler-BDSGA5hA.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.34_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
|
|
3
|
-
function
|
|
4
|
-
return s() ? (
|
|
3
|
+
function g(e, t) {
|
|
4
|
+
return s() ? (d(e, t), !0) : !1;
|
|
5
5
|
}
|
|
6
|
-
var
|
|
7
|
-
let n = t[0], r =
|
|
6
|
+
var _ = /* @__PURE__ */ new WeakMap(), v = (...t) => {
|
|
7
|
+
let n = t[0], r = h()?.proxy ?? s();
|
|
8
8
|
if (r == null && !e()) throw Error("injectLocal must be called in setup");
|
|
9
|
-
return r &&
|
|
10
|
-
},
|
|
9
|
+
return r && _.has(r) && n in _.get(r) ? _.get(r)[n] : m(...t);
|
|
10
|
+
}, y = typeof window < "u" && typeof document < "u";
|
|
11
11
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
12
|
-
var
|
|
13
|
-
function
|
|
12
|
+
var b = (e) => e != null, x = Object.prototype.toString, S = (e) => x.call(e) === "[object Object]", C = () => {}, w = /* @__PURE__ */ T();
|
|
13
|
+
function T() {
|
|
14
14
|
var e, t;
|
|
15
|
-
return
|
|
15
|
+
return y && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function E(e, t) {
|
|
18
18
|
function n(...n) {
|
|
19
19
|
return new Promise((r, i) => {
|
|
20
20
|
Promise.resolve(e(() => t.apply(this, n), {
|
|
@@ -26,13 +26,13 @@ function T(e, t) {
|
|
|
26
26
|
}
|
|
27
27
|
return n;
|
|
28
28
|
}
|
|
29
|
-
var
|
|
30
|
-
function
|
|
31
|
-
let n, r, i =
|
|
32
|
-
clearTimeout(e), i(), i =
|
|
29
|
+
var D = (e) => e();
|
|
30
|
+
function O(e, t = {}) {
|
|
31
|
+
let n, r, i = C, a = (e) => {
|
|
32
|
+
clearTimeout(e), i(), i = C;
|
|
33
33
|
}, o;
|
|
34
34
|
return (s) => {
|
|
35
|
-
let c =
|
|
35
|
+
let c = p(e), l = p(t.maxWait);
|
|
36
36
|
return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
|
|
37
37
|
i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
|
|
38
38
|
n && a(n), r = void 0, e(o());
|
|
@@ -42,83 +42,89 @@ function D(e, t = {}) {
|
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function k(e) {
|
|
46
46
|
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function A(e) {
|
|
49
49
|
return Array.isArray(e) ? e : [e];
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return e ||
|
|
51
|
+
function j(e) {
|
|
52
|
+
return e || h();
|
|
53
|
+
}
|
|
54
|
+
function M(e, t = 200, n = {}) {
|
|
55
|
+
return E(O(t, n), e);
|
|
53
56
|
}
|
|
54
|
-
function
|
|
55
|
-
|
|
57
|
+
function N(e, t = 200, n = {}) {
|
|
58
|
+
let i = c(p(e)), a = M(() => {
|
|
59
|
+
i.value = e.value;
|
|
60
|
+
}, t, n);
|
|
61
|
+
return r(e, () => a()), l(i);
|
|
56
62
|
}
|
|
57
|
-
function
|
|
58
|
-
let { eventFilter: i =
|
|
59
|
-
return r(e,
|
|
63
|
+
function P(e, t, n = {}) {
|
|
64
|
+
let { eventFilter: i = D, ...a } = n;
|
|
65
|
+
return r(e, E(i, t), a);
|
|
60
66
|
}
|
|
61
|
-
function
|
|
62
|
-
|
|
67
|
+
function F(e, n = !0, r) {
|
|
68
|
+
j(r) ? i(e, r) : n ? e() : t(e);
|
|
63
69
|
}
|
|
64
|
-
function
|
|
65
|
-
let { immediate: o = !0, immediateCallback: s = !1 } = i,
|
|
70
|
+
function I(e, t = 1e3, i = {}) {
|
|
71
|
+
let { immediate: o = !0, immediateCallback: s = !1 } = i, c = null, u = a(!1);
|
|
66
72
|
function d() {
|
|
67
|
-
|
|
73
|
+
c &&= (clearInterval(c), null);
|
|
68
74
|
}
|
|
69
|
-
function
|
|
75
|
+
function f() {
|
|
70
76
|
u.value = !1, d();
|
|
71
77
|
}
|
|
72
78
|
function m() {
|
|
73
|
-
let n =
|
|
74
|
-
n <= 0 || (u.value = !0, s && e(), d(), u.value && (
|
|
79
|
+
let n = p(t);
|
|
80
|
+
n <= 0 || (u.value = !0, s && e(), d(), u.value && (c = setInterval(e, n)));
|
|
75
81
|
}
|
|
76
|
-
return o &&
|
|
77
|
-
u.value &&
|
|
78
|
-
})),
|
|
79
|
-
isActive:
|
|
80
|
-
pause:
|
|
82
|
+
return o && y && m(), (n(t) || typeof t == "function") && g(r(t, () => {
|
|
83
|
+
u.value && y && m();
|
|
84
|
+
})), g(f), {
|
|
85
|
+
isActive: l(u),
|
|
86
|
+
pause: f,
|
|
81
87
|
resume: m
|
|
82
88
|
};
|
|
83
89
|
}
|
|
84
|
-
function
|
|
90
|
+
function L(e, t, n = {}) {
|
|
85
91
|
let { immediate: r = !0, immediateCallback: i = !1 } = n, o = a(!1), s;
|
|
86
|
-
function
|
|
92
|
+
function c() {
|
|
87
93
|
s &&= (clearTimeout(s), void 0);
|
|
88
94
|
}
|
|
89
95
|
function u() {
|
|
90
|
-
o.value = !1,
|
|
96
|
+
o.value = !1, c();
|
|
91
97
|
}
|
|
92
98
|
function d(...n) {
|
|
93
|
-
i && e(),
|
|
99
|
+
i && e(), c(), o.value = !0, s = setTimeout(() => {
|
|
94
100
|
o.value = !1, s = void 0, e(...n);
|
|
95
|
-
},
|
|
101
|
+
}, p(t));
|
|
96
102
|
}
|
|
97
|
-
return r && (o.value = !0,
|
|
98
|
-
isPending:
|
|
103
|
+
return r && (o.value = !0, y && d()), g(u), {
|
|
104
|
+
isPending: l(o),
|
|
99
105
|
start: d,
|
|
100
106
|
stop: u
|
|
101
107
|
};
|
|
102
108
|
}
|
|
103
|
-
function
|
|
109
|
+
function R(e = !1, t = {}) {
|
|
104
110
|
let { truthyValue: r = !0, falsyValue: i = !1 } = t, o = n(e), s = a(e);
|
|
105
111
|
function c(e) {
|
|
106
112
|
if (arguments.length) return s.value = e, s.value;
|
|
107
113
|
{
|
|
108
|
-
let e =
|
|
109
|
-
return s.value = s.value === e ?
|
|
114
|
+
let e = p(r);
|
|
115
|
+
return s.value = s.value === e ? p(i) : e, s.value;
|
|
110
116
|
}
|
|
111
117
|
}
|
|
112
118
|
return o ? c : [s, c];
|
|
113
119
|
}
|
|
114
|
-
function
|
|
120
|
+
function z(e, t, n = {}) {
|
|
115
121
|
let { debounce: r = 0, maxWait: i = void 0, ...a } = n;
|
|
116
|
-
return
|
|
122
|
+
return P(e, t, {
|
|
117
123
|
...a,
|
|
118
|
-
eventFilter:
|
|
124
|
+
eventFilter: O(r, { maxWait: i })
|
|
119
125
|
});
|
|
120
126
|
}
|
|
121
|
-
function
|
|
127
|
+
function B(e, t, n) {
|
|
122
128
|
return r(e, t, {
|
|
123
129
|
...n,
|
|
124
130
|
immediate: !0
|
|
@@ -126,60 +132,60 @@ function R(e, t, n) {
|
|
|
126
132
|
}
|
|
127
133
|
//#endregion
|
|
128
134
|
//#region ../../node_modules/.pnpm/@vueuse+core@14.3.0_vue@3.5.34_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
|
|
129
|
-
var
|
|
130
|
-
|
|
131
|
-
function
|
|
132
|
-
let t =
|
|
135
|
+
var V = y ? window : void 0;
|
|
136
|
+
y && window.document, y && window.navigator, y && window.location;
|
|
137
|
+
function H(e) {
|
|
138
|
+
let t = p(e);
|
|
133
139
|
return t?.$el ?? t;
|
|
134
140
|
}
|
|
135
|
-
function
|
|
136
|
-
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n =
|
|
137
|
-
let t =
|
|
141
|
+
function U(...e) {
|
|
142
|
+
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = u(() => {
|
|
143
|
+
let t = A(p(e[0])).filter((e) => e != null);
|
|
138
144
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
139
145
|
});
|
|
140
|
-
return
|
|
141
|
-
n.value?.map((e) =>
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
146
|
+
return B(() => [
|
|
147
|
+
n.value?.map((e) => H(e)) ?? [V].filter((e) => e != null),
|
|
148
|
+
A(p(n.value ? e[1] : e[0])),
|
|
149
|
+
A(f(n.value ? e[2] : e[1])),
|
|
150
|
+
p(n.value ? e[3] : e[2])
|
|
145
151
|
], ([e, n, r, i], a, o) => {
|
|
146
152
|
if (!e?.length || !n?.length || !r?.length) return;
|
|
147
|
-
let s =
|
|
153
|
+
let s = S(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
|
|
148
154
|
o(() => {
|
|
149
155
|
c.forEach((e) => e());
|
|
150
156
|
});
|
|
151
157
|
}, { flush: "post" });
|
|
152
158
|
}
|
|
153
|
-
var
|
|
154
|
-
function
|
|
155
|
-
let { window: r =
|
|
159
|
+
var W = !1;
|
|
160
|
+
function G(e, t, n = {}) {
|
|
161
|
+
let { window: r = V, ignore: i = [], capture: a = !0, detectIframe: o = !1, controls: s = !1 } = n;
|
|
156
162
|
if (!r) return s ? {
|
|
157
|
-
stop:
|
|
158
|
-
cancel:
|
|
159
|
-
trigger:
|
|
160
|
-
} :
|
|
161
|
-
if (
|
|
162
|
-
|
|
163
|
+
stop: C,
|
|
164
|
+
cancel: C,
|
|
165
|
+
trigger: C
|
|
166
|
+
} : C;
|
|
167
|
+
if (w && !W) {
|
|
168
|
+
W = !0;
|
|
163
169
|
let e = { passive: !0 };
|
|
164
|
-
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click",
|
|
170
|
+
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", C, e)), r.document.documentElement.addEventListener("click", C, e);
|
|
165
171
|
}
|
|
166
|
-
let c = !0, l = (e) =>
|
|
172
|
+
let c = !0, l = (e) => p(i).some((t) => {
|
|
167
173
|
if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
|
|
168
174
|
{
|
|
169
|
-
let n =
|
|
175
|
+
let n = H(t);
|
|
170
176
|
return n && (e.target === n || e.composedPath().includes(n));
|
|
171
177
|
}
|
|
172
178
|
});
|
|
173
179
|
function u(e) {
|
|
174
|
-
let t =
|
|
180
|
+
let t = p(e);
|
|
175
181
|
return t && t.$.subTree.shapeFlag === 16;
|
|
176
182
|
}
|
|
177
183
|
function d(e, t) {
|
|
178
|
-
let n =
|
|
184
|
+
let n = p(e), r = n.$.subTree && n.$.subTree.children;
|
|
179
185
|
return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
|
|
180
186
|
}
|
|
181
|
-
let
|
|
182
|
-
let r =
|
|
187
|
+
let f = (n) => {
|
|
188
|
+
let r = H(e);
|
|
183
189
|
if (n.target != null && !(!(r instanceof Element) && u(e) && d(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
|
|
184
190
|
if ("detail" in n && n.detail === 0 && (c = !l(n)), !c) {
|
|
185
191
|
c = !0;
|
|
@@ -188,21 +194,21 @@ function U(e, t, n = {}) {
|
|
|
188
194
|
t(n);
|
|
189
195
|
}
|
|
190
196
|
}, m = !1, h = [
|
|
191
|
-
|
|
197
|
+
U(r, "click", (e) => {
|
|
192
198
|
m || (m = !0, setTimeout(() => {
|
|
193
199
|
m = !1;
|
|
194
|
-
}, 0),
|
|
200
|
+
}, 0), f(e));
|
|
195
201
|
}, {
|
|
196
202
|
passive: !0,
|
|
197
203
|
capture: a
|
|
198
204
|
}),
|
|
199
|
-
|
|
200
|
-
let n =
|
|
205
|
+
U(r, "pointerdown", (t) => {
|
|
206
|
+
let n = H(e);
|
|
201
207
|
c = !l(t) && !!(n && !t.composedPath().includes(n));
|
|
202
208
|
}, { passive: !0 }),
|
|
203
|
-
o &&
|
|
209
|
+
o && U(r, "blur", (n) => {
|
|
204
210
|
setTimeout(() => {
|
|
205
|
-
let i =
|
|
211
|
+
let i = H(e), a = r.document.activeElement;
|
|
206
212
|
for (; a?.shadowRoot;) a = a.shadowRoot.activeElement;
|
|
207
213
|
a?.tagName === "IFRAME" && !i?.contains(r.document.activeElement) && t(n);
|
|
208
214
|
}, 0);
|
|
@@ -214,68 +220,68 @@ function U(e, t, n = {}) {
|
|
|
214
220
|
c = !1;
|
|
215
221
|
},
|
|
216
222
|
trigger: (e) => {
|
|
217
|
-
c = !0,
|
|
223
|
+
c = !0, f(e), c = !1;
|
|
218
224
|
}
|
|
219
225
|
} : g;
|
|
220
226
|
}
|
|
221
|
-
function
|
|
222
|
-
let e = a(!1), t =
|
|
227
|
+
function K() {
|
|
228
|
+
let e = a(!1), t = h();
|
|
223
229
|
return t && i(() => {
|
|
224
230
|
e.value = !0;
|
|
225
231
|
}, t), e;
|
|
226
232
|
}
|
|
227
233
|
/* @__NO_SIDE_EFFECTS__ */
|
|
228
|
-
function
|
|
229
|
-
let t =
|
|
230
|
-
return
|
|
234
|
+
function q(e) {
|
|
235
|
+
let t = K();
|
|
236
|
+
return u(() => (t.value, !!e()));
|
|
231
237
|
}
|
|
232
|
-
function
|
|
233
|
-
let { window: i =
|
|
238
|
+
function J(e, t, n = {}) {
|
|
239
|
+
let { window: i = V, ...a } = n, o, s = /* @__PURE__ */ q(() => i && "MutationObserver" in i), c = () => {
|
|
234
240
|
o &&= (o.disconnect(), void 0);
|
|
235
|
-
},
|
|
236
|
-
let t =
|
|
241
|
+
}, l = r(u(() => {
|
|
242
|
+
let t = A(p(e)).map(H).filter(b);
|
|
237
243
|
return new Set(t);
|
|
238
244
|
}), (e) => {
|
|
239
245
|
c(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, a)));
|
|
240
246
|
}, {
|
|
241
247
|
immediate: !0,
|
|
242
248
|
flush: "post"
|
|
243
|
-
}), d = () => o?.takeRecords(),
|
|
244
|
-
|
|
249
|
+
}), d = () => o?.takeRecords(), f = () => {
|
|
250
|
+
l(), c();
|
|
245
251
|
};
|
|
246
|
-
return
|
|
252
|
+
return g(f), {
|
|
247
253
|
isSupported: s,
|
|
248
|
-
stop:
|
|
254
|
+
stop: f,
|
|
249
255
|
takeRecords: d
|
|
250
256
|
};
|
|
251
257
|
}
|
|
252
|
-
var
|
|
258
|
+
var Y = Symbol("vueuse-ssr-width");
|
|
253
259
|
/* @__NO_SIDE_EFFECTS__ */
|
|
254
|
-
function
|
|
255
|
-
let t = e() ?
|
|
260
|
+
function X() {
|
|
261
|
+
let t = e() ? v(Y, null) : null;
|
|
256
262
|
return typeof t == "number" ? t : void 0;
|
|
257
263
|
}
|
|
258
|
-
function
|
|
259
|
-
let { window: n =
|
|
264
|
+
function Z(e, t = {}) {
|
|
265
|
+
let { window: n = V, ssrWidth: r = /* @__PURE__ */ X() } = t, i = /* @__PURE__ */ q(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), s = a(typeof r == "number"), c = a(), l = a(!1);
|
|
260
266
|
return o(() => {
|
|
261
267
|
if (s.value) {
|
|
262
|
-
s.value = !i.value,
|
|
268
|
+
s.value = !i.value, l.value = p(e).split(",").some((e) => {
|
|
263
269
|
let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), i = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || i);
|
|
264
|
-
return n && a && (a = r >=
|
|
270
|
+
return n && a && (a = r >= k(n[1])), i && a && (a = r <= k(i[1])), t ? !a : a;
|
|
265
271
|
});
|
|
266
272
|
return;
|
|
267
273
|
}
|
|
268
|
-
i.value && (c.value = n.matchMedia(
|
|
269
|
-
}),
|
|
270
|
-
|
|
271
|
-
}, { passive: !0 }),
|
|
274
|
+
i.value && (c.value = n.matchMedia(p(e)), l.value = c.value.matches);
|
|
275
|
+
}), U(c, "change", (e) => {
|
|
276
|
+
l.value = e.matches;
|
|
277
|
+
}, { passive: !0 }), u(() => l.value);
|
|
272
278
|
}
|
|
273
|
-
function
|
|
274
|
-
let { window: i =
|
|
279
|
+
function Q(e, t, n = {}) {
|
|
280
|
+
let { window: i = V, ...a } = n, o, s = /* @__PURE__ */ q(() => i && "ResizeObserver" in i), c = () => {
|
|
275
281
|
o &&= (o.disconnect(), void 0);
|
|
276
|
-
},
|
|
277
|
-
let t =
|
|
278
|
-
return Array.isArray(t) ? t.map((e) =>
|
|
282
|
+
}, l = r(u(() => {
|
|
283
|
+
let t = p(e);
|
|
284
|
+
return Array.isArray(t) ? t.map((e) => H(e)) : [H(t)];
|
|
279
285
|
}), (e) => {
|
|
280
286
|
if (c(), s.value && i) {
|
|
281
287
|
o = new ResizeObserver(t);
|
|
@@ -285,17 +291,17 @@ function X(e, t, n = {}) {
|
|
|
285
291
|
immediate: !0,
|
|
286
292
|
flush: "post"
|
|
287
293
|
}), d = () => {
|
|
288
|
-
c(),
|
|
294
|
+
c(), l();
|
|
289
295
|
};
|
|
290
|
-
return
|
|
296
|
+
return g(d), {
|
|
291
297
|
isSupported: s,
|
|
292
298
|
stop: d
|
|
293
299
|
};
|
|
294
300
|
}
|
|
295
|
-
function
|
|
301
|
+
function $(e, t = {}) {
|
|
296
302
|
let { reset: n = !0, windowResize: i = !0, windowScroll: o = !0, immediate: s = !0, updateTiming: c = "sync" } = t, l = a(0), u = a(0), d = a(0), f = a(0), p = a(0), m = a(0), h = a(0), g = a(0);
|
|
297
303
|
function _() {
|
|
298
|
-
let t =
|
|
304
|
+
let t = H(e);
|
|
299
305
|
if (!t) {
|
|
300
306
|
n && (l.value = 0, u.value = 0, d.value = 0, f.value = 0, p.value = 0, m.value = 0, h.value = 0, g.value = 0);
|
|
301
307
|
return;
|
|
@@ -306,10 +312,10 @@ function Z(e, t = {}) {
|
|
|
306
312
|
function v() {
|
|
307
313
|
c === "sync" ? _() : c === "next-frame" && requestAnimationFrame(() => _());
|
|
308
314
|
}
|
|
309
|
-
return
|
|
315
|
+
return Q(e, v), r(() => H(e), (e) => !e && v()), J(e, v, { attributeFilter: ["style", "class"] }), o && U("scroll", v, {
|
|
310
316
|
capture: !0,
|
|
311
317
|
passive: !0
|
|
312
|
-
}), i &&
|
|
318
|
+
}), i && U("resize", v, { passive: !0 }), F(() => {
|
|
313
319
|
s && v();
|
|
314
320
|
}), {
|
|
315
321
|
height: l,
|
|
@@ -324,4 +330,4 @@ function Z(e, t = {}) {
|
|
|
324
330
|
};
|
|
325
331
|
}
|
|
326
332
|
//#endregion
|
|
327
|
-
export {
|
|
333
|
+
export { N as a, L as c, Z as i, R as l, $ as n, M as o, U as r, I as s, G as t, z as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region ../../node_modules/.pnpm/@tiptap+extension-superscript@3.23.
|
|
1
|
+
import { Gt as e, c as t } from "./dist-BzuC8o3y.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-superscript@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6__@tiptap+pm@3.23.6/node_modules/@tiptap/extension-superscript/dist/index.js
|
|
3
3
|
var n = t.create({
|
|
4
4
|
name: "superscript",
|
|
5
5
|
addOptions() {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FontFamily as e } from "./dist-C0jo8wtG.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@tiptap+extension-font-family@3.23.6_@tiptap+extension-text-style@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6__/node_modules/@tiptap/extension-font-family/dist/index.js
|
|
3
|
+
var t = e;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { e as FontFamily, t as default };
|