@templatical/editor 0.6.4 → 0.6.6
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/{AccessibilityPanel-CvQGLdu6.js → AccessibilityPanel-B2MT0M58.js} +34 -34
- package/dist/{AiChatSidebar-B3SJIKG_.js → AiChatSidebar-w5ek3Z76.js} +62 -62
- package/dist/{AiFeatureMenu-BLLKoOos.js → AiFeatureMenu-ChlAWywJ.js} +20 -20
- package/dist/{BlockA11yBadge-CXDLqkcJ.js → BlockA11yBadge-C0S6kPC4.js} +12 -12
- package/dist/{CloudEditor-nzrRhHIi.js → CloudEditor-DYYaScFe.js} +441 -441
- package/dist/{CollaboratorBar-DuPYW5iF.js → CollaboratorBar-Bo8vtPId.js} +20 -20
- package/dist/CommentsSidebar-BQROg36f.js +441 -0
- package/dist/{cdn/chunks/CountdownBlock-5YdT1uUu.js → CountdownBlock-Bxqe7zwL.js} +21 -22
- package/dist/CountdownToolbar-CpFAnjSo.js +210 -0
- package/dist/{DesignReferenceSidebar-B8V_F2yF.js → DesignReferenceSidebar-CfqpcWX6.js} +52 -52
- package/dist/{LoadingTrack-B0CWFHXQ.js → LoadingTrack-CFkDkjBb.js} +1 -1
- package/dist/{ModuleBrowserModal-DrUFMTDx.js → ModuleBrowserModal-CKhsaPnA.js} +79 -79
- package/dist/{ModulePreviewCanvas-CHdOwV_4.js → ModulePreviewCanvas-Cw9GeGus.js} +29 -29
- package/dist/{NumberWithSuffix-DkXUez9t.js → NumberWithSuffix-Dw8dN1Pt.js} +88 -88
- package/dist/{ParagraphEditor-D75wl3BX.js → ParagraphEditor-DjDiUzmv.js} +218 -218
- package/dist/{RichTextEditorContent-DYkIauIk.js → RichTextEditorContent-CK3Om7ES.js} +38 -38
- package/dist/{SaveModuleDialog-FZ9lxY7_.js → SaveModuleDialog-CSUPmfRP.js} +34 -34
- package/dist/{SnapshotHistory-BR3eV120.js → SnapshotHistory-DwX2fj6N.js} +33 -33
- package/dist/{TemplateScoringPanel-4GTNHej5.js → TemplateScoringPanel-BIAeCAEP.js} +82 -82
- package/dist/{TestEmailModal--ue5w9fT.js → TestEmailModal-CIlBvWWn.js} +30 -30
- package/dist/{TitleEditor-fStSADI-.js → TitleEditor-BCV5k6wj.js} +67 -67
- package/dist/{TplModal-BwSfxIHf.js → TplModal-C3Hq9b58.js} +14 -14
- package/dist/{accessibility-e8JYu_zd.js → accessibility-BgUEA-Ai.js} +1 -1
- package/dist/{blockTypeIcons-BcTrDjmH.js → blockTypeIcons-iUurP50H.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js → AccessibilityPanel-AQD2ygU6.js} +34 -34
- package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js.map → AccessibilityPanel-AQD2ygU6.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-qEdB2fZJ.js → AiFeatureMenu-CDh9ifC8.js} +16 -16
- package/dist/cdn/chunks/{AiFeatureMenu-qEdB2fZJ.js.map → AiFeatureMenu-CDh9ifC8.js.map} +1 -1
- package/dist/cdn/chunks/{BlockA11yBadge-DcEZftf6.js → BlockA11yBadge-BxZr3s7T.js} +10 -10
- package/dist/cdn/chunks/{BlockA11yBadge-DcEZftf6.js.map → BlockA11yBadge-BxZr3s7T.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-dwzWDF_n.js → CloudEditor-Fg7pQ9IQ.js} +425 -425
- package/dist/cdn/chunks/{CloudEditor-dwzWDF_n.js.map → CloudEditor-Fg7pQ9IQ.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar--nO7TX6b.js → CollaboratorBar-B5a8eBXN.js} +20 -20
- package/dist/cdn/chunks/{CollaboratorBar--nO7TX6b.js.map → CollaboratorBar-B5a8eBXN.js.map} +1 -1
- package/dist/cdn/chunks/CountdownBlock-BeHkO19t.js +93 -0
- package/dist/cdn/chunks/{CountdownBlock-5YdT1uUu.js.map → CountdownBlock-BeHkO19t.js.map} +1 -1
- package/dist/cdn/chunks/CountdownToolbar-8UfW0jb1.js +212 -0
- package/dist/cdn/chunks/{CountdownToolbar-DXPXrbAA.js.map → CountdownToolbar-8UfW0jb1.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-DxoPp81s.js → ModuleBrowserModal-BMUyAmmj.js} +43 -43
- package/dist/cdn/chunks/{ModuleBrowserModal-DxoPp81s.js.map → ModuleBrowserModal-BMUyAmmj.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-CoLdb4ar.js → ModulePreviewCanvas-CxSc7Pvd.js} +23 -23
- package/dist/cdn/chunks/{ModulePreviewCanvas-CoLdb4ar.js.map → ModulePreviewCanvas-CxSc7Pvd.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js → NumberWithSuffix-BSOUOUCL.js} +108 -108
- package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js.map → NumberWithSuffix-BSOUOUCL.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js → ParagraphEditor-S1bpgxe5.js} +187 -187
- package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js.map → ParagraphEditor-S1bpgxe5.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js → RichTextEditorContent-ByehRfEA.js} +33 -33
- package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js.map → RichTextEditorContent-ByehRfEA.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-B0TnO_o9.js → SaveModuleDialog-5CNMvgYL.js} +27 -27
- package/dist/cdn/chunks/{SaveModuleDialog-B0TnO_o9.js.map → SaveModuleDialog-5CNMvgYL.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BHpfxvwy.js → TitleEditor-BASWPsCM.js} +66 -66
- package/dist/cdn/chunks/{TitleEditor-BHpfxvwy.js.map → TitleEditor-BASWPsCM.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-BzzY9_kA.js → blockTypeIcons-DfOffaYP.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-BzzY9_kA.js.map → blockTypeIcons-DfOffaYP.js.map} +1 -1
- package/dist/cdn/chunks/draggable-CNhyCGIO.js +4804 -0
- package/dist/cdn/chunks/draggable-CNhyCGIO.js.map +1 -0
- package/dist/cdn/chunks/{extensions-DIxF31tA.js → extensions-BJOV1jre.js} +95 -95
- package/dist/cdn/chunks/{extensions-DIxF31tA.js.map → extensions-BJOV1jre.js.map} +1 -1
- package/dist/cdn/chunks/{features-DEMb13KS.js → features-D6FoOm8v.js} +2272 -2269
- package/dist/cdn/chunks/features-D6FoOm8v.js.map +1 -0
- package/dist/cdn/chunks/{icons-CsLTcirh.js → icons-CpsjWPU-.js} +2 -2
- package/dist/cdn/chunks/{icons-CsLTcirh.js.map → icons-CpsjWPU-.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-CVaNvhpM.js → media-library-CEd7Lqxk.js} +1397 -1397
- package/dist/cdn/chunks/{media-library-CVaNvhpM.js.map → media-library-CEd7Lqxk.js.map} +1 -1
- package/dist/cdn/chunks/{pusher-CDbNlZBE.js → pusher-bjpcqCZG.js} +2 -2
- package/dist/cdn/chunks/{pusher-CDbNlZBE.js.map → pusher-bjpcqCZG.js.map} +1 -1
- package/dist/cdn/chunks/{quality-BaBfc54_.js → quality-Bx1oORXQ.js} +3 -3
- package/dist/cdn/chunks/{quality-BaBfc54_.js.map → quality-Bx1oORXQ.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-CUxvx7ro.js → renderer-CwxCisa-.js} +3 -3
- package/dist/cdn/chunks/{renderer-CUxvx7ro.js.map → renderer-CwxCisa-.js.map} +1 -1
- package/dist/{rolldown-runtime-BZGGJVDF.js → cdn/chunks/rolldown-runtime-C266TIVP.js} +5 -5
- package/dist/cdn/chunks/{src-CRaqN-p8.js → src-DDSInEkE.js} +171 -171
- package/dist/cdn/chunks/{src-CRaqN-p8.js.map → src-DDSInEkE.js.map} +1 -1
- package/dist/cdn/chunks/styles-B1uu-Cc9.js +2944 -0
- package/dist/cdn/chunks/styles-B1uu-Cc9.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js → tiptap-IyIsncxY.js} +45 -46
- package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js.map → tiptap-IyIsncxY.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +122 -122
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-Da05j8yl.js → check-Bg5yrRmX.js} +1 -1
- package/dist/{chevron-down-R2uY34iD.js → chevron-down-tee-ghFi.js} +1 -1
- package/dist/{circle-alert-DZuGWPX-.js → circle-alert-C0L9pUQ4.js} +1 -1
- package/dist/{clock-CRp2sIub.js → clock-CDlEdqiP.js} +1 -1
- package/dist/{cloud-DEk_b4CR.js → cloud-a3VovHva.js} +145 -145
- package/dist/{createLucideIcon-C3pa2siy.js → createLucideIcon-Di4mqmGn.js} +9 -9
- package/dist/{dist-B1IR0bpH.js → dist-BzRLLpfq.js} +107 -107
- package/dist/{dist-BFawx6IS.js → dist-Pk4MhWMP.js} +35 -35
- package/dist/{extensions-CUcl9Ok4.js → extensions-BF39Siqk.js} +103 -103
- package/dist/{image-up-MBZKKg9p.js → image-up-1D_3XDdO.js} +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/{info-CJEC7piy.js → info-DTGrc0Bx.js} +1 -1
- package/dist/{keys-ciNfSSGj.js → keys-Bqs_0du9.js} +1 -1
- package/dist/{loader-circle-DsY5Yg33.js → loader-circle-_9bP23op.js} +1 -1
- package/dist/{message-circle-yElBbR2C.js → message-circle-gzy2ZGJ3.js} +1 -1
- package/dist/{refresh-cw-CE_AGtn8.js → refresh-cw-BNAhAmtL.js} +1 -1
- package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
- package/dist/{scan-line-D0vcUekt.js → scan-line-DUEg6DoT.js} +1 -1
- package/dist/{send-DH4oDQqC.js → send-BatIZC9a.js} +1 -1
- package/dist/{shield-check-CfJgs2Hd.js → shield-check-C5Gv2cM1.js} +1 -1
- package/dist/{sparkles-CvRXGqFs.js → sparkles-D1IGi_cC.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/styles-BgmKdc2x.js +3173 -0
- package/dist/templatical-editor.js +99 -99
- package/dist/{text-align-start-BT9VUDxK.js → text-align-start-DG3aAH7Y.js} +1 -1
- package/dist/{trash-2-DbP2Y6t2.js → trash-2-424iqbpN.js} +1 -1
- package/dist/{triangle-alert-aOXceTSe.js → triangle-alert-DWQySIE2.js} +1 -1
- package/dist/{useCloudI18n-BuIwR6OE.js → useCloudI18n-CL_AwWwi.js} +4 -4
- package/dist/useEditorCore-CnXrv71D.js +3794 -0
- package/dist/{useI18n-lb2DHDiu.js → useI18n-CgmQftNf.js} +4 -4
- package/dist/{useMergeTag-CBwKnnNB.js → useMergeTag-vpwrZ9eQ.js} +3 -3
- package/dist/vue.runtime.esm-bundler-Bxqkjqhc.js +4300 -0
- package/dist/{x-u2oVmjN_.js → x-Dlaenqta.js} +1 -1
- package/package.json +8 -8
- package/dist/CommentsSidebar-B1pvJdqF.js +0 -441
- package/dist/CountdownBlock-BNSj1jvJ.js +0 -92
- package/dist/CountdownToolbar-ClJr2GzL.js +0 -210
- package/dist/cdn/chunks/CountdownToolbar-DXPXrbAA.js +0 -212
- package/dist/cdn/chunks/draggable-Bcb86AsV.js +0 -11572
- package/dist/cdn/chunks/draggable-Bcb86AsV.js.map +0 -1
- package/dist/cdn/chunks/features-DEMb13KS.js.map +0 -1
- package/dist/cdn/chunks/rolldown-runtime-BNuo_Jkg.js +0 -20
- package/dist/cdn/chunks/styles-BHJULjNR.js +0 -2947
- package/dist/cdn/chunks/styles-BHJULjNR.js.map +0 -1
- package/dist/styles-DEXEkBvg.js +0 -3176
- package/dist/useEditorCore-C6ost42Q.js +0 -9342
- package/dist/vue.runtime.esm-bundler-DpvJL-nX.js +0 -5775
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
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, Z as c, d as l, q as u, rt as d, tt as f, w as p, x as m } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/@vueuse+shared@14.2.1_vue@3.5.33_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
|
|
3
3
|
function h(e, t) {
|
|
4
|
-
return
|
|
4
|
+
return s() ? (u(e, t), !0) : !1;
|
|
5
5
|
}
|
|
6
|
-
var g = /* @__PURE__ */ new WeakMap(), _ = (...
|
|
7
|
-
let
|
|
8
|
-
if (
|
|
9
|
-
return
|
|
6
|
+
var g = /* @__PURE__ */ new WeakMap(), _ = (...t) => {
|
|
7
|
+
let n = t[0], r = m()?.proxy ?? s();
|
|
8
|
+
if (r == null && !e()) throw Error("injectLocal must be called in setup");
|
|
9
|
+
return r && g.has(r) && n in g.get(r) ? g.get(r)[n] : p(...t);
|
|
10
10
|
}, v = typeof window < "u" && typeof document < "u";
|
|
11
11
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
12
12
|
var y = (e) => e != null, b = Object.prototype.toString, x = (e) => b.call(e) === "[object Object]", S = () => {}, C = /* @__PURE__ */ w();
|
|
@@ -32,7 +32,7 @@ function D(e, t = {}) {
|
|
|
32
32
|
clearTimeout(e), i(), i = S;
|
|
33
33
|
}, o;
|
|
34
34
|
return (s) => {
|
|
35
|
-
let c =
|
|
35
|
+
let c = f(e), l = f(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());
|
|
@@ -49,67 +49,67 @@ function k(e) {
|
|
|
49
49
|
return Array.isArray(e) ? e : [e];
|
|
50
50
|
}
|
|
51
51
|
function A(e) {
|
|
52
|
-
return e ||
|
|
52
|
+
return e || m();
|
|
53
53
|
}
|
|
54
54
|
function j(e, t = 200, n = {}) {
|
|
55
55
|
return T(D(t, n), e);
|
|
56
56
|
}
|
|
57
57
|
function M(e, t, n = {}) {
|
|
58
|
-
let { eventFilter:
|
|
59
|
-
return
|
|
58
|
+
let { eventFilter: i = E, ...a } = n;
|
|
59
|
+
return r(e, T(i, t), a);
|
|
60
60
|
}
|
|
61
61
|
function N(e, n = !0, r) {
|
|
62
|
-
A(r) ?
|
|
62
|
+
A(r) ? i(e, r) : n ? e() : t(e);
|
|
63
63
|
}
|
|
64
|
-
function P(
|
|
65
|
-
let { immediate:
|
|
66
|
-
function
|
|
67
|
-
|
|
64
|
+
function P(e, t = 1e3, i = {}) {
|
|
65
|
+
let { immediate: o = !0, immediateCallback: s = !1 } = i, l = null, u = a(!1);
|
|
66
|
+
function d() {
|
|
67
|
+
l &&= (clearInterval(l), null);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
|
|
69
|
+
function p() {
|
|
70
|
+
u.value = !1, d();
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
let
|
|
74
|
-
|
|
72
|
+
function m() {
|
|
73
|
+
let n = f(t);
|
|
74
|
+
n <= 0 || (u.value = !0, s && e(), d(), u.value && (l = setInterval(e, n)));
|
|
75
75
|
}
|
|
76
|
-
return
|
|
77
|
-
|
|
78
|
-
})), h(
|
|
79
|
-
isActive:
|
|
80
|
-
pause:
|
|
81
|
-
resume:
|
|
76
|
+
return o && v && m(), (n(t) || typeof t == "function") && h(r(t, () => {
|
|
77
|
+
u.value && v && m();
|
|
78
|
+
})), h(p), {
|
|
79
|
+
isActive: c(u),
|
|
80
|
+
pause: p,
|
|
81
|
+
resume: m
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
|
-
function F(t, n
|
|
85
|
-
let { immediate:
|
|
86
|
-
function
|
|
84
|
+
function F(e, t, n = {}) {
|
|
85
|
+
let { immediate: r = !0, immediateCallback: i = !1 } = n, o = a(!1), s;
|
|
86
|
+
function l() {
|
|
87
87
|
s &&= (clearTimeout(s), void 0);
|
|
88
88
|
}
|
|
89
89
|
function u() {
|
|
90
|
-
o.value = !1,
|
|
90
|
+
o.value = !1, l();
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
|
|
94
|
-
o.value = !1, s = void 0,
|
|
95
|
-
},
|
|
92
|
+
function d(...n) {
|
|
93
|
+
i && e(), l(), o.value = !0, s = setTimeout(() => {
|
|
94
|
+
o.value = !1, s = void 0, e(...n);
|
|
95
|
+
}, f(t));
|
|
96
96
|
}
|
|
97
|
-
return
|
|
98
|
-
isPending:
|
|
99
|
-
start:
|
|
97
|
+
return r && (o.value = !0, v && d()), h(u), {
|
|
98
|
+
isPending: c(o),
|
|
99
|
+
start: d,
|
|
100
100
|
stop: u
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
function I(e = !1, t = {}) {
|
|
104
|
-
let { truthyValue:
|
|
105
|
-
function
|
|
106
|
-
if (arguments.length) return
|
|
104
|
+
let { truthyValue: r = !0, falsyValue: i = !1 } = t, o = n(e), s = a(e);
|
|
105
|
+
function c(e) {
|
|
106
|
+
if (arguments.length) return s.value = e, s.value;
|
|
107
107
|
{
|
|
108
|
-
let e =
|
|
109
|
-
return
|
|
108
|
+
let e = f(r);
|
|
109
|
+
return s.value = s.value === e ? f(i) : e, s.value;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
return
|
|
112
|
+
return o ? c : [s, c];
|
|
113
113
|
}
|
|
114
114
|
function L(e, t, n = {}) {
|
|
115
115
|
let { debounce: r = 0, maxWait: i = void 0, ...a } = n;
|
|
@@ -119,7 +119,7 @@ function L(e, t, n = {}) {
|
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
function R(e, t, n) {
|
|
122
|
-
return
|
|
122
|
+
return r(e, t, {
|
|
123
123
|
...n,
|
|
124
124
|
immediate: !0
|
|
125
125
|
});
|
|
@@ -129,19 +129,19 @@ function R(e, t, n) {
|
|
|
129
129
|
var z = v ? window : void 0;
|
|
130
130
|
v && window.document, v && window.navigator, v && window.location;
|
|
131
131
|
function B(e) {
|
|
132
|
-
let t =
|
|
132
|
+
let t = f(e);
|
|
133
133
|
return t?.$el ?? t;
|
|
134
134
|
}
|
|
135
135
|
function V(...e) {
|
|
136
|
-
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n =
|
|
137
|
-
let t = k(
|
|
136
|
+
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = l(() => {
|
|
137
|
+
let t = k(f(e[0])).filter((e) => e != null);
|
|
138
138
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
139
139
|
});
|
|
140
140
|
return R(() => [
|
|
141
141
|
n.value?.map((e) => B(e)) ?? [z].filter((e) => e != null),
|
|
142
|
-
k(
|
|
143
|
-
k(
|
|
144
|
-
|
|
142
|
+
k(f(n.value ? e[1] : e[0])),
|
|
143
|
+
k(d(n.value ? e[2] : e[1])),
|
|
144
|
+
f(n.value ? e[3] : e[2])
|
|
145
145
|
], ([e, n, r, i], a, o) => {
|
|
146
146
|
if (!e?.length || !n?.length || !r?.length) return;
|
|
147
147
|
let s = x(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
|
|
@@ -163,7 +163,7 @@ function U(e, t, n = {}) {
|
|
|
163
163
|
let e = { passive: !0 };
|
|
164
164
|
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", S, e)), r.document.documentElement.addEventListener("click", S, e);
|
|
165
165
|
}
|
|
166
|
-
let c = !0, l = (e) =>
|
|
166
|
+
let c = !0, l = (e) => f(i).some((t) => {
|
|
167
167
|
if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
|
|
168
168
|
{
|
|
169
169
|
let n = B(t);
|
|
@@ -171,16 +171,16 @@ function U(e, t, n = {}) {
|
|
|
171
171
|
}
|
|
172
172
|
});
|
|
173
173
|
function u(e) {
|
|
174
|
-
let t =
|
|
174
|
+
let t = f(e);
|
|
175
175
|
return t && t.$.subTree.shapeFlag === 16;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
let n =
|
|
177
|
+
function d(e, t) {
|
|
178
|
+
let n = f(e), r = n.$.subTree && n.$.subTree.children;
|
|
179
179
|
return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
|
|
180
180
|
}
|
|
181
181
|
let p = (n) => {
|
|
182
182
|
let r = B(e);
|
|
183
|
-
if (n.target != null && !(!(r instanceof Element) && u(e) &&
|
|
183
|
+
if (n.target != null && !(!(r instanceof Element) && u(e) && d(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
|
|
184
184
|
if ("detail" in n && n.detail === 0 && (c = !l(n)), !c) {
|
|
185
185
|
c = !0;
|
|
186
186
|
return;
|
|
@@ -218,105 +218,105 @@ function U(e, t, n = {}) {
|
|
|
218
218
|
} : g;
|
|
219
219
|
}
|
|
220
220
|
function W() {
|
|
221
|
-
let e =
|
|
222
|
-
return
|
|
221
|
+
let e = a(!1), t = m();
|
|
222
|
+
return t && i(() => {
|
|
223
223
|
e.value = !0;
|
|
224
|
-
},
|
|
224
|
+
}, t), e;
|
|
225
225
|
}
|
|
226
226
|
/* @__NO_SIDE_EFFECTS__ */
|
|
227
227
|
function G(e) {
|
|
228
228
|
let t = W();
|
|
229
|
-
return
|
|
229
|
+
return l(() => (t.value, !!e()));
|
|
230
230
|
}
|
|
231
231
|
function K(e, t, n = {}) {
|
|
232
|
-
let { window:
|
|
233
|
-
|
|
234
|
-
},
|
|
235
|
-
let t = k(
|
|
232
|
+
let { window: i = z, ...a } = n, o, s = /* @__PURE__ */ G(() => i && "MutationObserver" in i), c = () => {
|
|
233
|
+
o &&= (o.disconnect(), void 0);
|
|
234
|
+
}, u = r(l(() => {
|
|
235
|
+
let t = k(f(e)).map(B).filter(y);
|
|
236
236
|
return new Set(t);
|
|
237
237
|
}), (e) => {
|
|
238
|
-
|
|
238
|
+
c(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, a)));
|
|
239
239
|
}, {
|
|
240
240
|
immediate: !0,
|
|
241
241
|
flush: "post"
|
|
242
|
-
}),
|
|
243
|
-
|
|
242
|
+
}), d = () => o?.takeRecords(), p = () => {
|
|
243
|
+
u(), c();
|
|
244
244
|
};
|
|
245
|
-
return h(
|
|
246
|
-
isSupported:
|
|
247
|
-
stop:
|
|
248
|
-
takeRecords:
|
|
245
|
+
return h(p), {
|
|
246
|
+
isSupported: s,
|
|
247
|
+
stop: p,
|
|
248
|
+
takeRecords: d
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
251
|
var q = Symbol("vueuse-ssr-width");
|
|
252
252
|
/* @__NO_SIDE_EFFECTS__ */
|
|
253
253
|
function J() {
|
|
254
|
-
let
|
|
255
|
-
return typeof
|
|
254
|
+
let t = e() ? _(q, null) : null;
|
|
255
|
+
return typeof t == "number" ? t : void 0;
|
|
256
256
|
}
|
|
257
257
|
function Y(e, t = {}) {
|
|
258
|
-
let { window:
|
|
259
|
-
return
|
|
260
|
-
if (
|
|
261
|
-
|
|
262
|
-
let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),
|
|
263
|
-
return n && a && (a =
|
|
258
|
+
let { window: n = z, ssrWidth: r = /* @__PURE__ */ J() } = t, i = /* @__PURE__ */ G(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), s = a(typeof r == "number"), c = a(), u = a(!1);
|
|
259
|
+
return o(() => {
|
|
260
|
+
if (s.value) {
|
|
261
|
+
s.value = !i.value, u.value = f(e).split(",").some((e) => {
|
|
262
|
+
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);
|
|
263
|
+
return n && a && (a = r >= O(n[1])), i && a && (a = r <= O(i[1])), t ? !a : a;
|
|
264
264
|
});
|
|
265
265
|
return;
|
|
266
266
|
}
|
|
267
|
-
|
|
268
|
-
}), V(
|
|
269
|
-
|
|
270
|
-
}, { passive: !0 }),
|
|
267
|
+
i.value && (c.value = n.matchMedia(f(e)), u.value = c.value.matches);
|
|
268
|
+
}), V(c, "change", (e) => {
|
|
269
|
+
u.value = e.matches;
|
|
270
|
+
}, { passive: !0 }), l(() => u.value);
|
|
271
271
|
}
|
|
272
272
|
function X(e, t, n = {}) {
|
|
273
|
-
let { window:
|
|
274
|
-
|
|
275
|
-
},
|
|
276
|
-
let t =
|
|
273
|
+
let { window: i = z, ...a } = n, o, s = /* @__PURE__ */ G(() => i && "ResizeObserver" in i), c = () => {
|
|
274
|
+
o &&= (o.disconnect(), void 0);
|
|
275
|
+
}, u = r(l(() => {
|
|
276
|
+
let t = f(e);
|
|
277
277
|
return Array.isArray(t) ? t.map((e) => B(e)) : [B(t)];
|
|
278
278
|
}), (e) => {
|
|
279
|
-
if (
|
|
280
|
-
|
|
281
|
-
for (let t of e) t &&
|
|
279
|
+
if (c(), s.value && i) {
|
|
280
|
+
o = new ResizeObserver(t);
|
|
281
|
+
for (let t of e) t && o.observe(t, a);
|
|
282
282
|
}
|
|
283
283
|
}, {
|
|
284
284
|
immediate: !0,
|
|
285
285
|
flush: "post"
|
|
286
|
-
}),
|
|
287
|
-
|
|
286
|
+
}), d = () => {
|
|
287
|
+
c(), u();
|
|
288
288
|
};
|
|
289
|
-
return h(
|
|
290
|
-
isSupported:
|
|
291
|
-
stop:
|
|
289
|
+
return h(d), {
|
|
290
|
+
isSupported: s,
|
|
291
|
+
stop: d
|
|
292
292
|
};
|
|
293
293
|
}
|
|
294
294
|
function Z(e, t = {}) {
|
|
295
|
-
let { reset: n = !0, windowResize:
|
|
295
|
+
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);
|
|
296
296
|
function _() {
|
|
297
297
|
let t = B(e);
|
|
298
298
|
if (!t) {
|
|
299
|
-
n && (
|
|
299
|
+
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);
|
|
300
300
|
return;
|
|
301
301
|
}
|
|
302
302
|
let r = t.getBoundingClientRect();
|
|
303
|
-
|
|
303
|
+
l.value = r.height, u.value = r.bottom, d.value = r.left, f.value = r.right, p.value = r.top, m.value = r.width, h.value = r.x, g.value = r.y;
|
|
304
304
|
}
|
|
305
305
|
function v() {
|
|
306
|
-
|
|
306
|
+
c === "sync" ? _() : c === "next-frame" && requestAnimationFrame(() => _());
|
|
307
307
|
}
|
|
308
|
-
return X(e, v),
|
|
308
|
+
return X(e, v), r(() => B(e), (e) => !e && v()), K(e, v, { attributeFilter: ["style", "class"] }), o && V("scroll", v, {
|
|
309
309
|
capture: !0,
|
|
310
310
|
passive: !0
|
|
311
|
-
}),
|
|
312
|
-
|
|
311
|
+
}), i && V("resize", v, { passive: !0 }), N(() => {
|
|
312
|
+
s && v();
|
|
313
313
|
}), {
|
|
314
|
-
height:
|
|
315
|
-
bottom:
|
|
316
|
-
left:
|
|
317
|
-
right:
|
|
318
|
-
top:
|
|
319
|
-
width:
|
|
314
|
+
height: l,
|
|
315
|
+
bottom: u,
|
|
316
|
+
left: d,
|
|
317
|
+
right: f,
|
|
318
|
+
top: p,
|
|
319
|
+
width: m,
|
|
320
320
|
x: h,
|
|
321
321
|
y: g,
|
|
322
322
|
update: v
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { $ as t, D as n, E as r, H as i, J as a, K as o, O as s, Q as ee, R as te, S as c, X as l, b as u, j as d, r as f, rt as ne, x as re } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
3
3
|
import { $ as ie, $t as ae, A as oe, At as se, B as ce, Bt as le, C as ue, Ct as de, D as fe, Dt as p, E as m, Et as h, F as g, Ft as _, G as v, Gt as y, H as b, Ht as x, I as S, It as C, J as w, Jt as T, K as E, Kt as D, L as O, Lt as k, M as A, Mt as j, N as M, Nt as N, O as P, Ot as F, P as I, Pt as L, Q as R, Qt as z, R as B, Rt as V, S as pe, St as me, T as he, Tt as ge, U as _e, Ut as ve, V as ye, Vt as be, W as xe, Wt as Se, X as Ce, Xt as we, Y as Te, Yt as Ee, Z as De, Zt as Oe, _ as ke, _t as H, a as Ae, an as je, at as Me, b as Ne, bt as Pe, c as Fe, cn as Ie, ct as Le, d as Re, dn as ze, dt as Be, en as Ve, et as He, f as U, fn as Ue, ft as We, g as Ge, gt as W, h as Ke, hn as qe, ht as Je, i as Ye, in as Xe, it as Ze, j as Qe, jt as $e, k as et, kt as tt, l as G, ln as nt, lt as rt, m as it, mn as at, mt as ot, n as st, nn as ct, nt as lt, o as ut, on as K, ot as dt, p as ft, pn as pt, pt as mt, q as ht, qt as gt, r as _t, rn as vt, rt as yt, s as bt, sn as xt, st as St, t as Ct, tn as wt, tt as Tt, u as Et, un as Dt, ut as Ot, v as kt, vt as At, w as jt, wt as Mt, x as Nt, xt as Pt, y as q, yt as Ft, z as It, zt as Lt } from "./dist-iLBdeBDR.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/@tiptap+vue-3@3.22.5_@floating-ui+dom@1.7.6_@tiptap+core@3.22.5_@tiptap+pm@3.22.5__@tip_7097ea972d8e6e4e31801879e2c3d1b4/node_modules/@tiptap/vue-3/dist/index.js
|
|
5
5
|
var Rt = /* @__PURE__ */ e({
|
|
@@ -140,7 +140,7 @@ var Rt = /* @__PURE__ */ e({
|
|
|
140
140
|
wrappingInputRule: () => qe
|
|
141
141
|
});
|
|
142
142
|
function J(e) {
|
|
143
|
-
return
|
|
143
|
+
return i((t, n) => ({
|
|
144
144
|
get() {
|
|
145
145
|
return t(), e;
|
|
146
146
|
},
|
|
@@ -157,7 +157,7 @@ var Y = class extends st {
|
|
|
157
157
|
constructor(e = {}) {
|
|
158
158
|
return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = J(this.view.state), this.reactiveExtensionStorage = J(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
|
|
159
159
|
this.reactiveState.value = e, this.reactiveExtensionStorage.value = this.extensionStorage;
|
|
160
|
-
}),
|
|
160
|
+
}), o(this);
|
|
161
161
|
}
|
|
162
162
|
get state() {
|
|
163
163
|
return this.reactiveState ? this.reactiveState.value : this.view.state;
|
|
@@ -173,47 +173,47 @@ var Y = class extends st {
|
|
|
173
173
|
let t = super.unregisterPlugin(e);
|
|
174
174
|
return this.reactiveState && t && (this.reactiveState.value = t), t;
|
|
175
175
|
}
|
|
176
|
-
}, zt =
|
|
176
|
+
}, zt = u({
|
|
177
177
|
name: "EditorContent",
|
|
178
178
|
props: { editor: {
|
|
179
179
|
default: null,
|
|
180
180
|
type: Object
|
|
181
181
|
} },
|
|
182
182
|
setup(e) {
|
|
183
|
-
let t =
|
|
184
|
-
return
|
|
183
|
+
let t = l(), i = re();
|
|
184
|
+
return te(() => {
|
|
185
185
|
let n = e.editor;
|
|
186
|
-
n && n.options.element && t.value &&
|
|
186
|
+
n && n.options.element && t.value && r(() => {
|
|
187
187
|
if (!t.value || !n.view.dom?.parentNode) return;
|
|
188
|
-
let e =
|
|
188
|
+
let e = ne(t.value);
|
|
189
189
|
t.value.append(...n.view.dom.parentNode.childNodes), n.contentComponent = i.ctx._, i && (n.appContext = {
|
|
190
190
|
...i.appContext,
|
|
191
191
|
provides: i.provides
|
|
192
192
|
}), n.setOptions({ element: e }), n.createNodeViews();
|
|
193
193
|
});
|
|
194
|
-
}),
|
|
194
|
+
}), n(() => {
|
|
195
195
|
let t = e.editor;
|
|
196
196
|
t && (t.contentComponent = null, t.appContext = null);
|
|
197
197
|
}), { rootEl: t };
|
|
198
198
|
},
|
|
199
199
|
render() {
|
|
200
|
-
return
|
|
200
|
+
return c("div", { ref: (e) => {
|
|
201
201
|
this.rootEl = e;
|
|
202
202
|
} });
|
|
203
203
|
}
|
|
204
|
-
}), Bt =
|
|
204
|
+
}), Bt = u({
|
|
205
205
|
name: "NodeViewContent",
|
|
206
206
|
props: { as: {
|
|
207
207
|
type: String,
|
|
208
208
|
default: "div"
|
|
209
209
|
} },
|
|
210
210
|
render() {
|
|
211
|
-
return
|
|
211
|
+
return c(this.as, {
|
|
212
212
|
style: { whiteSpace: "pre-wrap" },
|
|
213
213
|
"data-node-view-content": ""
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
}), X =
|
|
216
|
+
}), X = u({
|
|
217
217
|
name: "NodeViewWrapper",
|
|
218
218
|
props: { as: {
|
|
219
219
|
type: String,
|
|
@@ -222,7 +222,7 @@ var Y = class extends st {
|
|
|
222
222
|
inject: ["onDragStart", "decorationClasses"],
|
|
223
223
|
render() {
|
|
224
224
|
var e;
|
|
225
|
-
return
|
|
225
|
+
return c(this.as, {
|
|
226
226
|
class: this.decorationClasses,
|
|
227
227
|
style: { whiteSpace: "normal" },
|
|
228
228
|
"data-node-view-wrapper": "",
|
|
@@ -230,17 +230,17 @@ var Y = class extends st {
|
|
|
230
230
|
}, (e = this.$slots).default?.call(e));
|
|
231
231
|
}
|
|
232
232
|
}), Vt = (e = {}) => {
|
|
233
|
-
let
|
|
234
|
-
return
|
|
235
|
-
|
|
236
|
-
}),
|
|
237
|
-
var e,
|
|
238
|
-
let r =
|
|
239
|
-
(e = r?.parentNode) == null || e.replaceChild(i, r), (
|
|
240
|
-
}),
|
|
233
|
+
let t = ee();
|
|
234
|
+
return s(() => {
|
|
235
|
+
t.value = new Y(e);
|
|
236
|
+
}), n(() => {
|
|
237
|
+
var e, n;
|
|
238
|
+
let r = t.value?.view.dom?.parentNode, i = r?.cloneNode(!0);
|
|
239
|
+
(e = r?.parentNode) == null || e.replaceChild(i, r), (n = t.value) == null || n.destroy();
|
|
240
|
+
}), t;
|
|
241
241
|
}, Z = class {
|
|
242
242
|
constructor(e, { props: t = {}, editor: n }) {
|
|
243
|
-
this.destroyed = !1, this.editor = n, this.component =
|
|
243
|
+
this.destroyed = !1, this.editor = n, this.component = o(e), this.el = document.createElement("div"), this.props = a(t), this.renderedComponent = this.renderComponent();
|
|
244
244
|
}
|
|
245
245
|
get element() {
|
|
246
246
|
return this.renderedComponent.el;
|
|
@@ -250,11 +250,11 @@ var Y = class extends st {
|
|
|
250
250
|
}
|
|
251
251
|
renderComponent() {
|
|
252
252
|
if (this.destroyed) return this.renderedComponent;
|
|
253
|
-
let e =
|
|
254
|
-
return this.editor.appContext && (e.appContext = this.editor.appContext), typeof document < "u" && this.el &&
|
|
253
|
+
let e = c(this.component, this.props);
|
|
254
|
+
return this.editor.appContext && (e.appContext = this.editor.appContext), typeof document < "u" && this.el && f(e, this.el), {
|
|
255
255
|
vNode: e,
|
|
256
256
|
destroy: () => {
|
|
257
|
-
this.el &&
|
|
257
|
+
this.el && f(null, this.el), this.el = null, e = null;
|
|
258
258
|
},
|
|
259
259
|
el: this.el ? this.el.firstElementChild : null
|
|
260
260
|
};
|
|
@@ -296,14 +296,14 @@ var Y = class extends st {
|
|
|
296
296
|
type: Object,
|
|
297
297
|
required: !0
|
|
298
298
|
}
|
|
299
|
-
}, Ut =
|
|
299
|
+
}, Ut = u({
|
|
300
300
|
name: "MarkViewContent",
|
|
301
301
|
props: { as: {
|
|
302
302
|
type: String,
|
|
303
303
|
default: "span"
|
|
304
304
|
} },
|
|
305
305
|
render() {
|
|
306
|
-
return
|
|
306
|
+
return c(this.as, {
|
|
307
307
|
style: { whiteSpace: "inherit" },
|
|
308
308
|
"data-mark-view-content": ""
|
|
309
309
|
});
|
|
@@ -314,7 +314,7 @@ var Y = class extends st {
|
|
|
314
314
|
let r = {
|
|
315
315
|
...t,
|
|
316
316
|
updateAttributes: this.updateAttributes.bind(this)
|
|
317
|
-
}, i =
|
|
317
|
+
}, i = u({
|
|
318
318
|
extends: { ...e },
|
|
319
319
|
props: Object.keys(r),
|
|
320
320
|
template: this.component.template,
|
|
@@ -336,8 +336,8 @@ var Y = class extends st {
|
|
|
336
336
|
return this.dom.querySelector("[data-mark-view-content]");
|
|
337
337
|
}
|
|
338
338
|
updateAttributes(e) {
|
|
339
|
-
let
|
|
340
|
-
super.updateAttributes(e,
|
|
339
|
+
let n = t(this.mark);
|
|
340
|
+
super.updateAttributes(e, n);
|
|
341
341
|
}
|
|
342
342
|
destroy() {
|
|
343
343
|
this.renderer.destroy();
|
|
@@ -418,14 +418,14 @@ var Gt = {
|
|
|
418
418
|
updateAttributes: (e = {}) => this.updateAttributes(e),
|
|
419
419
|
deleteNode: () => this.deleteNode()
|
|
420
420
|
}, t = this.onDragStart.bind(this);
|
|
421
|
-
this.decorationClasses =
|
|
422
|
-
let n =
|
|
421
|
+
this.decorationClasses = l(this.getDecorationClasses());
|
|
422
|
+
let n = u({
|
|
423
423
|
extends: { ...this.component },
|
|
424
424
|
props: Object.keys(e),
|
|
425
425
|
template: this.component.template,
|
|
426
426
|
setup: (e) => {
|
|
427
427
|
var n;
|
|
428
|
-
return
|
|
428
|
+
return d("onDragStart", t), d("decorationClasses", this.decorationClasses), (n = this.component).setup?.call(n, e, { expose: () => void 0 });
|
|
429
429
|
},
|
|
430
430
|
__scopeId: this.component.__scopeId,
|
|
431
431
|
__cssModules: this.component.__cssModules,
|