@templatical/editor 0.8.5 → 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-uhkhnXQd.js → AiChatSidebar-BUKj9n02.js} +4 -4
- package/dist/{AiFeatureMenu-DXNKvXP5.js → AiFeatureMenu-Co14YVJt.js} +3 -3
- package/dist/{BlockIssueBadge-DM-vXeD6.js → BlockIssueBadge-DThKKeub.js} +2 -2
- package/dist/{CloudEditor-BSkPQjwo.js → CloudEditor-CAtw_sFC.js} +217 -216
- package/dist/{CollaboratorBar-CP76Sh6c.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-CfJqJ7l6.js → DesignReferenceSidebar-BP32MgpS.js} +2 -2
- package/dist/{IssuesPanel-4MKZe8yP.js → IssuesPanel-B1LT91IX.js} +2 -2
- package/dist/{ModuleBrowserModal-BFQTm6uY.js → ModuleBrowserModal-CWegFoOA.js} +77 -85
- package/dist/{ModulePreviewCanvas-DeqMpo73.js → ModulePreviewCanvas-D9WUSSRT.js} +2 -2
- package/dist/{NumberWithSuffix-CxMFy_j3.js → NumberWithSuffix-CxUBW_V2.js} +2 -2
- package/dist/{ParagraphEditor-DqomSbW3.js → ParagraphEditor-DrAz2yot.js} +115 -115
- package/dist/{RichTextEditorContent-B_KCY6T1.js → RichTextEditorContent-gR169m1-.js} +4 -4
- package/dist/{SaveModuleDialog-DKcpPeWd.js → SaveModuleDialog-DWidA0c9.js} +6 -6
- package/dist/{SnapshotHistory-Z9RQj53S.js → SnapshotHistory-CIo2Jaw-.js} +4 -4
- package/dist/{TemplateScoringPanel-BIwEwFxD.js → TemplateScoringPanel-seBvvn8O.js} +2 -2
- package/dist/{TestEmailModal-C8DhylO1.js → TestEmailModal-BuCuWp3N.js} +3 -3
- package/dist/{TitleEditor-CgLrn6R3.js → TitleEditor-BmW0uMl7.js} +64 -64
- package/dist/{TplModal-CbwRwmR3.js → TplModal-YFpBaiLj.js} +4 -4
- package/dist/{blockTypeIcons-CccKujXP.js → blockTypeIcons-DCkHXPhx.js} +19 -11
- package/dist/bundle-stats.json +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-ChNv7XXj.js → AiFeatureMenu-Dayzk2H7.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-ChNv7XXj.js.map → AiFeatureMenu-Dayzk2H7.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-BovmWgok.js → BlockIssueBadge-D_US2wqo.js} +4 -4
- package/dist/cdn/chunks/{BlockIssueBadge-BovmWgok.js.map → BlockIssueBadge-D_US2wqo.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-CHF_P5OL.js → CloudEditor-CyJItWsK.js} +186 -185
- package/dist/cdn/chunks/{CloudEditor-CHF_P5OL.js.map → CloudEditor-CyJItWsK.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-Bjr5YSh0.js → CollaboratorBar-C4CFs5EJ.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-Bjr5YSh0.js.map → CollaboratorBar-C4CFs5EJ.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-KyzvhjMF.js → CountdownBlock-D6lCXhZA.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-KyzvhjMF.js.map → CountdownBlock-D6lCXhZA.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-bJtMHGYz.js → CountdownToolbar-BsGUxoRv.js} +3 -3
- package/dist/cdn/chunks/{CountdownToolbar-bJtMHGYz.js.map → CountdownToolbar-BsGUxoRv.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DFSYTQXy.js → IssuesPanel-DeHTmRDz.js} +5 -5
- package/dist/cdn/chunks/{IssuesPanel-DFSYTQXy.js.map → IssuesPanel-DeHTmRDz.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-DS0BGRhZ.js → ModuleBrowserModal-Cgjz4xAz.js} +8 -8
- package/dist/cdn/chunks/ModuleBrowserModal-Cgjz4xAz.js.map +1 -0
- package/dist/cdn/chunks/{ModulePreviewCanvas-Dwn2cA5a.js → ModulePreviewCanvas-CeS9PsAA.js} +2 -2
- package/dist/cdn/chunks/{ModulePreviewCanvas-Dwn2cA5a.js.map → ModulePreviewCanvas-CeS9PsAA.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-BNBeHv0P.js → NumberWithSuffix-Bp-idLCc.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-BNBeHv0P.js.map → NumberWithSuffix-Bp-idLCc.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-C4TrTIOm.js → ParagraphEditor-fM9aFu8T.js} +105 -105
- package/dist/cdn/chunks/ParagraphEditor-fM9aFu8T.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-HNFFL4aK.js → RichTextEditorContent-DwNPE5H5.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-HNFFL4aK.js.map → RichTextEditorContent-DwNPE5H5.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-CbHqqeID.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-BUlgu9JL.js → blockTypeIcons-YOEe5mDE.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-BUlgu9JL.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-DK_lVs7A.js → extensions-GYsbQFPr.js} +25 -22
- package/dist/cdn/chunks/extensions-GYsbQFPr.js.map +1 -0
- package/dist/cdn/chunks/{features-LiilsBqW.js → features-D-2kVhHY.js} +1232 -1189
- package/dist/cdn/chunks/features-D-2kVhHY.js.map +1 -0
- package/dist/cdn/chunks/{icons-Bn2SIR30.js → icons-fZoyKV_s.js} +2 -2
- package/dist/cdn/chunks/{icons-Bn2SIR30.js.map → icons-fZoyKV_s.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-Bb2PavAd.js → media-library-CO2WOETY.js} +240 -240
- package/dist/cdn/chunks/{media-library-Bb2PavAd.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-Bpj6kNxR.js → quality-BxPiS-wv.js} +464 -464
- package/dist/cdn/chunks/{quality-Bpj6kNxR.js.map → quality-BxPiS-wv.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-CYYyu-Di.js → renderer-7z2t_bYQ.js} +68 -68
- package/dist/cdn/chunks/{renderer-CYYyu-Di.js.map → renderer-7z2t_bYQ.js.map} +1 -1
- package/dist/cdn/chunks/{src-CQjZnxvw.js → src-ftxPuuQh.js} +4 -4
- package/dist/cdn/chunks/{src-CQjZnxvw.js.map → src-ftxPuuQh.js.map} +1 -1
- package/dist/cdn/chunks/{styles-5g8XOS68.js → styles-o0HIrw9F.js} +877 -622
- package/dist/cdn/chunks/styles-o0HIrw9F.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/{cdn/chunks/de-ED7c5RpG.js → de-CATfXDKV.js} +12 -3
- package/dist/{dist-HO0vjY5Z.js → dist-CNLAS2v2.js} +130 -124
- package/dist/{en-ivilDUn0.js → en-CwCAgYL5.js} +12 -1
- package/dist/{extensions-DeNHyWwh.js → extensions-Mj2-D8uK.js} +6 -3
- 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-Bgqv7rLA.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-CaOVDL_m.js → useEditorCore-CEkf_VWX.js} +662 -632
- 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 +7 -7
- package/dist/cdn/chunks/ModuleBrowserModal-DS0BGRhZ.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-C4TrTIOm.js.map +0 -1
- package/dist/cdn/chunks/SaveModuleDialog-CbHqqeID.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-gr-eBUq_.js +0 -175
- package/dist/cdn/chunks/TitleEditor-gr-eBUq_.js.map +0 -1
- package/dist/cdn/chunks/extensions-DK_lVs7A.js.map +0 -1
- package/dist/cdn/chunks/features-LiilsBqW.js.map +0 -1
- package/dist/cdn/chunks/styles-5g8XOS68.js.map +0 -1
- package/dist/useMergeTag-RWsgUcSh.js +0 -34
|
@@ -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 };
|
|
@@ -390,7 +390,18 @@ var e = {
|
|
|
390
390
|
insert: "Insert merge tag",
|
|
391
391
|
editValue: "Edit merge tag value",
|
|
392
392
|
deleteMergeTag: "Delete merge tag",
|
|
393
|
-
suggestionEmpty: "No matching merge tags"
|
|
393
|
+
suggestionEmpty: "No matching merge tags",
|
|
394
|
+
picker: {
|
|
395
|
+
title: "Insert merge tag",
|
|
396
|
+
searchPlaceholder: "Search merge tags",
|
|
397
|
+
searchAriaLabel: "Search merge tags",
|
|
398
|
+
noResults: "No matching merge tags",
|
|
399
|
+
empty: "No merge tags configured",
|
|
400
|
+
otherGroup: "Other",
|
|
401
|
+
cancel: "Cancel",
|
|
402
|
+
close: "Close",
|
|
403
|
+
groupCount: "{count}"
|
|
404
|
+
}
|
|
394
405
|
},
|
|
395
406
|
canvas: {
|
|
396
407
|
noBlocks: "No blocks yet",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as e, B as t, E as n, M as r, S as i, X as a, a as o, at as s, b as c, c as l, d as u, f as d, h as f, l as p, m, n as h, ot as g, p as _, rt as v, s as y, st as b, z as x } from "./vue.runtime.esm-bundler-BDSGA5hA.js";
|
|
2
2
|
import { C as S, D as C, n as w, w as T } from "./dist-CIV3Brg-.js";
|
|
3
|
-
import { t as E } from "./useI18n-
|
|
4
|
-
import { t as D } from "./useMergeTag-
|
|
3
|
+
import { t as E } from "./useI18n-Besvmtxy.js";
|
|
4
|
+
import { t as D } from "./useMergeTag-WNzaCpXR.js";
|
|
5
5
|
import { Gt as O, P as k, _n as A, bn as j, gn as M, i as N, o as P, p as F, u as I, yn as L } from "./dist-BzuC8o3y.js";
|
|
6
6
|
import { n as R, t as z } from "./dist-D8C6jIXM.js";
|
|
7
7
|
//#region src/extensions/FontSize.ts
|
|
@@ -380,7 +380,10 @@ var G = I.create({
|
|
|
380
380
|
addCommands() {
|
|
381
381
|
return { insertMergeTag: (e) => ({ commands: t }) => t.insertContent({
|
|
382
382
|
type: this.name,
|
|
383
|
-
attrs:
|
|
383
|
+
attrs: {
|
|
384
|
+
label: e.label,
|
|
385
|
+
value: e.value
|
|
386
|
+
}
|
|
384
387
|
}) };
|
|
385
388
|
},
|
|
386
389
|
addKeyboardShortcuts() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { w as e } from "./vue.runtime.esm-bundler-BDSGA5hA.js";
|
|
2
2
|
//#region src/keys.ts
|
|
3
|
-
var t = Symbol("translations"), n = Symbol("editor"), r = Symbol("history"), i = Symbol("blockActions"), a = Symbol("conditionPreview"), o = Symbol("fontsManager"), s = Symbol("themeStyles"), c = Symbol("tplUiTheme"), l = Symbol("blockDefaults"), u = Symbol("blockRegistry"), d = Symbol("customBlockDefinitions"), f = Symbol("mergeTags"), p = Symbol("mergeTagSyntax"), m = Symbol("onRequestMergeTag"), h = Symbol("mergeTagAutocomplete"), g = Symbol("
|
|
4
|
-
function
|
|
3
|
+
var t = Symbol("translations"), n = Symbol("editor"), r = Symbol("history"), i = Symbol("blockActions"), a = Symbol("conditionPreview"), o = Symbol("fontsManager"), s = Symbol("themeStyles"), c = Symbol("tplUiTheme"), l = Symbol("blockDefaults"), u = Symbol("blockRegistry"), d = Symbol("customBlockDefinitions"), f = Symbol("mergeTags"), p = Symbol("mergeTagSyntax"), m = Symbol("onRequestMergeTag"), h = Symbol("mergeTagAutocomplete"), g = Symbol("mergeTagPicker"), _ = Symbol("onRequestMedia"), v = Symbol("displayConditions"), y = Symbol("allowCustomConditions"), b = Symbol("capabilities"), x = Symbol("keyboardReorder"), S = Symbol("templateLint"), C = Symbol("editorRoot"), w = Symbol("popoverRoot"), T = Symbol("authManager"), E = Symbol("aiConfig"), D = Symbol("comments"), O = Symbol("savedModulesHeadless"), k = Symbol("scoring"), A = Symbol("cloudTranslations");
|
|
4
|
+
function j(t, n) {
|
|
5
5
|
let r = e(t, null);
|
|
6
6
|
if (r == null) throw Error(`${n} requires a provider for ${t.description ?? "unknown key"}. Ensure it is a descendant of Editor or CloudEditor.`);
|
|
7
7
|
return r;
|
|
8
8
|
}
|
|
9
9
|
//#endregion
|
|
10
|
-
export { A, C,
|
|
10
|
+
export { c as A, m as C, S as D, k as E, s as O, _ as S, O as T, x as _, l as a, g as b, A as c, d, v as f, r as g, o as h, i, j, t as k, D as l, C as m, y as n, u as o, n as p, T as r, b as s, E as t, a as u, f as v, w, p as x, h as y };
|
|
@@ -390,7 +390,18 @@ var e = {
|
|
|
390
390
|
insert: "Inserir merge tag",
|
|
391
391
|
editValue: "Editar valor da merge tag",
|
|
392
392
|
deleteMergeTag: "Excluir merge tag",
|
|
393
|
-
suggestionEmpty: "Nenhuma merge tag correspondente"
|
|
393
|
+
suggestionEmpty: "Nenhuma merge tag correspondente",
|
|
394
|
+
picker: {
|
|
395
|
+
title: "Inserir merge tag",
|
|
396
|
+
searchPlaceholder: "Pesquisar merge tags",
|
|
397
|
+
searchAriaLabel: "Pesquisar merge tags",
|
|
398
|
+
noResults: "Nenhuma merge tag correspondente",
|
|
399
|
+
empty: "Nenhuma merge tag configurada",
|
|
400
|
+
otherGroup: "Outros",
|
|
401
|
+
cancel: "Cancelar",
|
|
402
|
+
close: "Fechar",
|
|
403
|
+
groupCount: "{count}"
|
|
404
|
+
}
|
|
394
405
|
},
|
|
395
406
|
canvas: {
|
|
396
407
|
noBlocks: "Nenhum bloco ainda",
|
|
@@ -518,5 +529,3 @@ var e = {
|
|
|
518
529
|
};
|
|
519
530
|
//#endregion
|
|
520
531
|
export { e as default };
|
|
521
|
-
|
|
522
|
-
//# sourceMappingURL=pt-BR-B5tm2iBl.js.map
|