@templatical/editor 0.6.7 → 0.7.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/README.md +26 -1
- package/dist/{AccessibilityPanel-B2MT0M58.js → AccessibilityPanel-D-PqmHdH.js} +2 -2
- package/dist/{AiChatSidebar-w5ek3Z76.js → AiChatSidebar-BwLECwsO.js} +1 -1
- package/dist/{AiFeatureMenu-ChlAWywJ.js → AiFeatureMenu-CVHKharv.js} +3 -3
- package/dist/{BlockA11yBadge-C0S6kPC4.js → BlockA11yBadge-BFIw0h1m.js} +2 -2
- package/dist/{CloudEditor-DYYaScFe.js → CloudEditor-DdZatjUe.js} +30 -21
- package/dist/{CollaboratorBar-Bo8vtPId.js → CollaboratorBar-VZKOv_Zn.js} +2 -2
- package/dist/{CommentsSidebar-BQROg36f.js → CommentsSidebar-BiRtaXYD.js} +3 -3
- package/dist/{CountdownBlock-Bxqe7zwL.js → CountdownBlock-Cq8A8WrM.js} +1 -1
- package/dist/{CountdownToolbar-CpFAnjSo.js → CountdownToolbar-CojjlZet.js} +2 -2
- package/dist/{DesignReferenceSidebar-CfqpcWX6.js → DesignReferenceSidebar-Ci9HIGbf.js} +2 -2
- package/dist/ModuleBrowserModal-D7IYx1Nh.js +206 -0
- package/dist/{ModulePreviewCanvas-Cw9GeGus.js → ModulePreviewCanvas-I-uMcK5G.js} +2 -2
- package/dist/{NumberWithSuffix-Dw8dN1Pt.js → NumberWithSuffix-CLTBb2Rj.js} +1 -1
- package/dist/{ParagraphEditor-DjDiUzmv.js → ParagraphEditor-BRQTNDFO.js} +156 -151
- package/dist/{RichTextEditorContent-CK3Om7ES.js → RichTextEditorContent-C3QSg7gd.js} +32 -28
- package/dist/{SaveModuleDialog-CSUPmfRP.js → SaveModuleDialog-DGGGNZfm.js} +6 -6
- package/dist/{SnapshotHistory-DwX2fj6N.js → SnapshotHistory-C97Iw6xw.js} +3 -3
- package/dist/{TemplateScoringPanel-BIAeCAEP.js → TemplateScoringPanel-V79yrEPC.js} +3 -3
- package/dist/{TestEmailModal-CIlBvWWn.js → TestEmailModal-B7S8H-VG.js} +3 -3
- package/dist/{TitleEditor-BCV5k6wj.js → TitleEditor-DhFTYzrw.js} +65 -60
- package/dist/{TplModal-C3Hq9b58.js → TplModal-BgABm6ju.js} +21 -17
- package/dist/{blockTypeIcons-iUurP50H.js → blockTypeIcons-BSf-3RJ-.js} +1 -1
- package/dist/bundle-stats.json +7 -7
- package/dist/cdn/chunks/{AccessibilityPanel-DnNB30b0.js → AccessibilityPanel-kgNBRaZV.js} +28 -28
- package/dist/cdn/chunks/{AccessibilityPanel-DnNB30b0.js.map → AccessibilityPanel-kgNBRaZV.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-BKBh_ueF.js → AiFeatureMenu-CRkzwdMg.js} +15 -15
- package/dist/cdn/chunks/{AiFeatureMenu-BKBh_ueF.js.map → AiFeatureMenu-CRkzwdMg.js.map} +1 -1
- package/dist/cdn/chunks/{BlockA11yBadge-CnBu14Fj.js → BlockA11yBadge-BfuH2Hrg.js} +9 -9
- package/dist/cdn/chunks/{BlockA11yBadge-CnBu14Fj.js.map → BlockA11yBadge-BfuH2Hrg.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-CmR17piA.js → CloudEditor-h5JXI8WQ.js} +252 -243
- package/dist/cdn/chunks/CloudEditor-h5JXI8WQ.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-BejZaFtY.js → CollaboratorBar-CMl3lAZU.js} +15 -15
- package/dist/cdn/chunks/{CollaboratorBar-BejZaFtY.js.map → CollaboratorBar-CMl3lAZU.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-CjvUEHhE.js → CountdownBlock-D1RoaOgF.js} +18 -18
- package/dist/cdn/chunks/{CountdownBlock-CjvUEHhE.js.map → CountdownBlock-D1RoaOgF.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Caokkqsg.js → CountdownToolbar-DltwuOer.js} +42 -42
- package/dist/cdn/chunks/{CountdownToolbar-Caokkqsg.js.map → CountdownToolbar-DltwuOer.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-Tb9a7L-K.js → ModuleBrowserModal-3uu2mXR9.js} +36 -36
- package/dist/cdn/chunks/{ModuleBrowserModal-Tb9a7L-K.js.map → ModuleBrowserModal-3uu2mXR9.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-JWIEv5oS.js → ModulePreviewCanvas-K9CQFr7p.js} +37 -37
- package/dist/cdn/chunks/{ModulePreviewCanvas-JWIEv5oS.js.map → ModulePreviewCanvas-K9CQFr7p.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-DrV8eumz.js → NumberWithSuffix-BIFgtqGs.js} +74 -74
- package/dist/cdn/chunks/{NumberWithSuffix-DrV8eumz.js.map → NumberWithSuffix-BIFgtqGs.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CSfShBAO.js → ParagraphEditor-DlpZX_x4.js} +180 -176
- package/dist/cdn/chunks/ParagraphEditor-DlpZX_x4.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-DgqZzl8n.js → RichTextEditorContent-CPGT8h-O.js} +40 -37
- package/dist/cdn/chunks/RichTextEditorContent-CPGT8h-O.js.map +1 -0
- package/dist/cdn/chunks/{SaveModuleDialog-CxTwrIgx.js → SaveModuleDialog-_uaJscj1.js} +24 -24
- package/dist/cdn/chunks/{SaveModuleDialog-CxTwrIgx.js.map → SaveModuleDialog-_uaJscj1.js.map} +1 -1
- package/dist/cdn/chunks/TitleEditor-Kerz6US8.js +175 -0
- package/dist/cdn/chunks/TitleEditor-Kerz6US8.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-DMt-2qR6.js → blockTypeIcons-BeOhGtoo.js} +7 -7
- package/dist/cdn/chunks/{blockTypeIcons-DMt-2qR6.js.map → blockTypeIcons-BeOhGtoo.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-CNhyCGIO.js → draggable-P6QWzy4g.js} +1182 -1171
- package/dist/cdn/chunks/{draggable-CNhyCGIO.js.map → draggable-P6QWzy4g.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-CUvwrffu.js → extensions-BZYkPlKr.js} +107 -108
- package/dist/cdn/chunks/extensions-BZYkPlKr.js.map +1 -0
- package/dist/cdn/chunks/{features-U3nzKc-R.js → features-DzIN-Nua.js} +925 -896
- package/dist/cdn/chunks/features-DzIN-Nua.js.map +1 -0
- package/dist/cdn/chunks/{icons-QcjADKIW.js → icons-Nvr6w13E.js} +2 -2
- package/dist/cdn/chunks/{icons-QcjADKIW.js.map → icons-Nvr6w13E.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-Zcd_GInj.js → media-library-BzT7BoGU.js} +1189 -1183
- package/dist/cdn/chunks/media-library-BzT7BoGU.js.map +1 -0
- package/dist/cdn/chunks/{quality-8eo6DM3p.js → quality-C328caFm.js} +45 -45
- package/dist/cdn/chunks/{quality-8eo6DM3p.js.map → quality-C328caFm.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-eHJyPiJH.js → renderer-DYpHh_uV.js} +20 -20
- package/dist/cdn/chunks/{renderer-eHJyPiJH.js.map → renderer-DYpHh_uV.js.map} +1 -1
- package/dist/cdn/chunks/{src-CthVYW_o.js → src-DKNTQJVO.js} +144 -144
- package/dist/cdn/chunks/{src-CthVYW_o.js.map → src-DKNTQJVO.js.map} +1 -1
- package/dist/cdn/chunks/{styles-CV5w3kjq.js → styles-DaTht5d7.js} +924 -899
- package/dist/cdn/chunks/styles-DaTht5d7.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-IyIsncxY.js → tiptap-BwTCLVWl.js} +7 -7
- package/dist/cdn/chunks/{tiptap-IyIsncxY.js.map → tiptap-BwTCLVWl.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +197 -146
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{extensions-BF39Siqk.js → extensions-D-J02CiP.js} +50 -51
- package/dist/index.d.ts +56 -11
- package/dist/{keys-Bqs_0du9.js → keys-B5SJtPWf.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/{styles-BgmKdc2x.js → styles-D_fEz49o.js} +497 -472
- package/dist/templatical-editor.js +182 -131
- package/dist/{useCloudI18n-CL_AwWwi.js → useCloudI18n-ByEMykjO.js} +1 -1
- package/dist/{useEditorCore-CnXrv71D.js → useEditorCore-uCU9Ny0M.js} +637 -619
- package/dist/{useI18n-CgmQftNf.js → useI18n-PEB8ioi_.js} +1 -1
- package/dist/{useMergeTag-vpwrZ9eQ.js → useMergeTag-C47xwU7X.js} +2 -2
- package/dist/usePopoverRoot-BxJrqnMD.js +8 -0
- package/package.json +7 -7
- package/dist/ModuleBrowserModal-CKhsaPnA.js +0 -206
- package/dist/cdn/chunks/CloudEditor-CmR17piA.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-CSfShBAO.js.map +0 -1
- package/dist/cdn/chunks/RichTextEditorContent-DgqZzl8n.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-DlqV7ODD.js +0 -171
- package/dist/cdn/chunks/TitleEditor-DlqV7ODD.js.map +0 -1
- package/dist/cdn/chunks/extensions-CUvwrffu.js.map +0 -1
- package/dist/cdn/chunks/features-U3nzKc-R.js.map +0 -1
- package/dist/cdn/chunks/media-library-Zcd_GInj.js.map +0 -1
- package/dist/cdn/chunks/styles-CV5w3kjq.js.map +0 -1
- /package/dist/{de-DcVOh9Fp.js → de-BhIWu_bO.js} +0 -0
- /package/dist/{de-DCaaCE5s.js → de-Di4MEjjx.js} +0 -0
- /package/dist/{emojiData-PQyVa4bU.js → emojiData-DX3E0XT-.js} +0 -0
- /package/dist/{en-DXCyK4-X.js → en-BSuzi-Pd.js} +0 -0
- /package/dist/{en-TZVJ_f6v.js → en-D7HRbYah.js} +0 -0
- /package/dist/{pt-BR-Vq7D7c11.js → pt-BR-CCVBRais.js} +0 -0
- /package/dist/{pt-BR-BMGasLBa.js → pt-BR-K32lt6YP.js} +0 -0
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import { K as e, L as t, M as n, P as r, T as i, Z as a,
|
|
2
|
-
import { $t as S,
|
|
3
|
-
import { B as
|
|
4
|
-
import { a as
|
|
5
|
-
import { n as
|
|
1
|
+
import { K as e, L as t, M as n, P as r, T as i, Z as a, c as o, ct as s, d as c, f as l, g as u, h as d, it as f, l as p, m, ot as h, p as g, st as _, u as v, v as y, x as b, y as x } from "./draggable-P6QWzy4g.js";
|
|
2
|
+
import { $t as S, J as C, Jt as w, Pt as T, Z as E, _t as D, a as O, en as k, nn as A, nt as j, tn as ee, tt as M } from "./features-DzIN-Nua.js";
|
|
3
|
+
import { B as N, H as P, R as te, X as ne, _ as F, c as re, f as ie, i as ae, o as oe, p as I, s as L, u as R, w as z, x as B, z as V } from "./icons-Nvr6w13E.js";
|
|
4
|
+
import { a as H, o as U, s as W } from "./styleConstants-DP1VOca8.js";
|
|
5
|
+
import { n as G, t as K } from "./RichTextEditorContent-CPGT8h-O.js";
|
|
6
6
|
//#region src/components/blocks/EmojiPickerDropdown.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
7
|
+
var q = [
|
|
8
8
|
"aria-label",
|
|
9
9
|
"title",
|
|
10
10
|
"aria-expanded"
|
|
11
|
-
],
|
|
11
|
+
], J = ["aria-label"], Y = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, se = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, ce = ["aria-label", "onClick"], le = /* @__PURE__ */ b({
|
|
12
12
|
__name: "EmojiPickerDropdown",
|
|
13
13
|
emits: ["insert"],
|
|
14
14
|
setup(e, { emit: t }) {
|
|
15
|
-
let i = t, { categories: c, isOpen:
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
let i = t, { categories: c, isOpen: m, toggle: _, close: y } = E(), { t: b, format: S } = T(), C = a(null), w = a(null);
|
|
16
|
+
M(C, l(() => m.value)), A(w, () => {
|
|
17
|
+
m.value && y();
|
|
18
18
|
});
|
|
19
|
-
function
|
|
19
|
+
function D(e) {
|
|
20
20
|
i("insert", e), y();
|
|
21
21
|
}
|
|
22
22
|
return (e, t) => (n(), u("div", {
|
|
23
23
|
ref_key: "rootRef",
|
|
24
|
-
ref:
|
|
24
|
+
ref: w,
|
|
25
25
|
class: "tpl:relative"
|
|
26
|
-
}, [
|
|
26
|
+
}, [g("button", {
|
|
27
27
|
type: "button",
|
|
28
|
-
class:
|
|
29
|
-
"aria-label":
|
|
30
|
-
title:
|
|
31
|
-
"aria-expanded":
|
|
28
|
+
class: h(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(m) }]),
|
|
29
|
+
"aria-label": f(b).paragraphEditor.insertEmoji,
|
|
30
|
+
title: f(b).paragraphEditor.insertEmoji,
|
|
31
|
+
"aria-expanded": f(m),
|
|
32
32
|
"aria-haspopup": "dialog",
|
|
33
33
|
"aria-controls": "tpl-emoji-picker",
|
|
34
|
-
onClick: t[0] ||= (...e) =>
|
|
35
|
-
}, [x(
|
|
34
|
+
onClick: t[0] ||= (...e) => f(_) && f(_)(...e)
|
|
35
|
+
}, [x(f(F), {
|
|
36
36
|
size: 16,
|
|
37
37
|
"stroke-width": 2
|
|
38
|
-
})], 10,
|
|
38
|
+
})], 10, q), f(m) ? (n(), u("div", {
|
|
39
39
|
key: 0,
|
|
40
40
|
id: "tpl-emoji-picker",
|
|
41
41
|
ref_key: "pickerRef",
|
|
42
|
-
ref:
|
|
42
|
+
ref: C,
|
|
43
43
|
role: "dialog",
|
|
44
44
|
"aria-modal": "false",
|
|
45
|
-
"aria-label":
|
|
45
|
+
"aria-label": f(b).paragraphEditor.insertEmoji,
|
|
46
46
|
tabindex: "-1",
|
|
47
47
|
class: "tpl-emoji-picker tpl:absolute tpl:top-full tpl:left-0 tpl:z-10 tpl:mt-2 tpl:w-72 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:shadow-lg",
|
|
48
|
-
onKeydown: t[1] ||=
|
|
49
|
-
}, [(n(!0), u(v, null, r(
|
|
48
|
+
onKeydown: t[1] ||= o(p((...e) => f(y) && f(y)(...e), ["stop", "prevent"]), ["esc"])
|
|
49
|
+
}, [(n(!0), u(v, null, r(f(c), (e) => (n(), u("div", {
|
|
50
50
|
key: e.key,
|
|
51
51
|
class: "tpl:mb-2 tpl:last:mb-0"
|
|
52
|
-
}, [
|
|
52
|
+
}, [g("div", Y, s(f(b).emoji[e.key]), 1), g("div", se, [(n(!0), u(v, null, r(e.emojis, (e) => (n(), u("button", {
|
|
53
53
|
key: e,
|
|
54
54
|
type: "button",
|
|
55
|
-
"aria-label":
|
|
55
|
+
"aria-label": f(S)(f(b).paragraphEditor.emojiItemLabel, { emoji: e }),
|
|
56
56
|
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border-none tpl:bg-transparent tpl:text-base tpl:transition-all tpl:duration-100 tpl:hover:scale-125 tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
57
|
-
onClick: (t) =>
|
|
58
|
-
},
|
|
57
|
+
onClick: (t) => D(e)
|
|
58
|
+
}, s(e), 9, ce))), 128))])]))), 128))], 40, J)) : d("", !0)], 512));
|
|
59
59
|
}
|
|
60
|
-
}),
|
|
60
|
+
}), ue = [
|
|
61
61
|
"aria-label",
|
|
62
62
|
"title",
|
|
63
63
|
"aria-pressed"
|
|
@@ -73,27 +73,27 @@ var J = [
|
|
|
73
73
|
setup(e) {
|
|
74
74
|
return (r, i) => (n(), u("button", {
|
|
75
75
|
type: "button",
|
|
76
|
-
class:
|
|
76
|
+
class: h(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": e.active }]),
|
|
77
77
|
"aria-label": e.label,
|
|
78
78
|
title: e.label,
|
|
79
79
|
"aria-pressed": e.active ? "true" : "false"
|
|
80
|
-
}, [(n(),
|
|
80
|
+
}, [(n(), m(t(e.icon), {
|
|
81
81
|
size: e.size ?? 16,
|
|
82
82
|
"stroke-width": e.strokeWidth ?? 2
|
|
83
|
-
}, null, 8, ["size", "stroke-width"]))], 10,
|
|
83
|
+
}, null, 8, ["size", "stroke-width"]))], 10, ue));
|
|
84
84
|
}
|
|
85
|
-
}),
|
|
85
|
+
}), de = {}, fe = {
|
|
86
86
|
class: "tpl:mx-1 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
|
|
87
87
|
"aria-hidden": "true"
|
|
88
88
|
};
|
|
89
|
-
function
|
|
90
|
-
return n(), u("span",
|
|
89
|
+
function pe(e, t) {
|
|
90
|
+
return n(), u("span", fe);
|
|
91
91
|
}
|
|
92
|
-
var Z = /* @__PURE__ */ j(
|
|
92
|
+
var Z = /* @__PURE__ */ j(de, [["render", pe]]), me = [
|
|
93
93
|
"value",
|
|
94
94
|
"aria-label",
|
|
95
95
|
"title"
|
|
96
|
-
],
|
|
96
|
+
], he = { value: "" }, ge = ["value"], Q = /* @__PURE__ */ b({
|
|
97
97
|
__name: "ToolbarSelect",
|
|
98
98
|
props: {
|
|
99
99
|
modelValue: {},
|
|
@@ -108,35 +108,35 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
108
108
|
function a(e) {
|
|
109
109
|
i("update:modelValue", e.target.value);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function o(e) {
|
|
112
112
|
return typeof e == "string" ? e : e.value;
|
|
113
113
|
}
|
|
114
114
|
function c(e) {
|
|
115
115
|
return typeof e == "string" ? e : e.label;
|
|
116
116
|
}
|
|
117
117
|
return (t, i) => (n(), u("select", {
|
|
118
|
-
class:
|
|
118
|
+
class: h(["tpl:h-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none", e.widthClass ?? "tpl:w-20"]),
|
|
119
119
|
value: e.modelValue,
|
|
120
120
|
"aria-label": e.label,
|
|
121
121
|
title: e.label,
|
|
122
122
|
onChange: a
|
|
123
|
-
}, [
|
|
124
|
-
key:
|
|
125
|
-
value:
|
|
126
|
-
},
|
|
123
|
+
}, [g("option", he, s(e.placeholder ?? ""), 1), (n(!0), u(v, null, r(e.options, (e) => (n(), u("option", {
|
|
124
|
+
key: o(e),
|
|
125
|
+
value: o(e)
|
|
126
|
+
}, s(c(e)), 9, ge))), 128))], 42, me));
|
|
127
127
|
}
|
|
128
|
-
}),
|
|
128
|
+
}), _e = ["data-tpl-theme", "aria-label"], ve = { class: "tpl:flex tpl:items-center tpl:gap-1" }, ye = { class: "tpl:relative" }, be = [
|
|
129
129
|
"value",
|
|
130
130
|
"aria-label",
|
|
131
131
|
"title"
|
|
132
|
-
],
|
|
132
|
+
], $ = { class: "tpl:relative" }, xe = [
|
|
133
133
|
"value",
|
|
134
134
|
"aria-label",
|
|
135
135
|
"title"
|
|
136
|
-
],
|
|
136
|
+
], Se = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Ce = ["aria-label", "title"], we = {
|
|
137
137
|
key: 1,
|
|
138
138
|
class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
139
|
-
},
|
|
139
|
+
}, Te = /* @__PURE__ */ b({
|
|
140
140
|
__name: "ParagraphToolbar",
|
|
141
141
|
props: {
|
|
142
142
|
editor: {},
|
|
@@ -146,26 +146,26 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
146
146
|
},
|
|
147
147
|
emits: ["open-link-dialog", "add-merge-tag"],
|
|
148
148
|
setup(e, { emit: t }) {
|
|
149
|
-
let r = e, a = t, o = i(
|
|
150
|
-
function
|
|
149
|
+
let r = e, a = t, o = i(S, null), l = i(k, null), p = ee(w, "ParagraphToolbar"), h = O(), { t: b } = T(), C = p.fonts;
|
|
150
|
+
function E(e) {
|
|
151
151
|
r.editor?.chain().focus().insertContent(e).run();
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function A(e) {
|
|
154
154
|
return r.editor?.getAttributes("textStyle")[e] || "";
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function j(e) {
|
|
157
157
|
let t = r.editor?.chain().focus();
|
|
158
158
|
e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function M(e) {
|
|
161
161
|
let t = r.editor?.chain().focus();
|
|
162
162
|
e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function F(e) {
|
|
165
165
|
let t = r.editor?.chain().focus();
|
|
166
166
|
e ? t?.setColor(e).run() : t?.unsetColor().run();
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function G() {
|
|
169
169
|
return r.editor?.getAttributes("paragraph").lineHeight || "";
|
|
170
170
|
}
|
|
171
171
|
function K(e) {
|
|
@@ -183,26 +183,29 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
183
183
|
let t = r.editor?.chain().focus();
|
|
184
184
|
e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
|
|
185
185
|
}
|
|
186
|
-
return (t, r) => (n(),
|
|
187
|
-
|
|
186
|
+
return (t, r) => f(h) ? (n(), m(c, {
|
|
187
|
+
key: 0,
|
|
188
|
+
to: f(h)
|
|
189
|
+
}, [g("div", {
|
|
190
|
+
"data-tpl-theme": f(l),
|
|
188
191
|
role: "toolbar",
|
|
189
|
-
"aria-label":
|
|
192
|
+
"aria-label": f(b).paragraphEditor.toolbar,
|
|
190
193
|
class: "tpl tpl-text-toolbar tpl:fixed tpl:z-popover tpl:flex tpl:gap-1 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:shadow-lg",
|
|
191
|
-
style:
|
|
192
|
-
...
|
|
194
|
+
style: _({
|
|
195
|
+
...f(o),
|
|
193
196
|
top: `${e.toolbarPosition.top}px`,
|
|
194
197
|
left: `${e.toolbarPosition.left}px`,
|
|
195
198
|
transform: "translateY(-100%)",
|
|
196
199
|
flexDirection: "column"
|
|
197
200
|
})
|
|
198
|
-
}, [!e.isLoading && e.editor ? (n(), u(v, { key: 0 }, [
|
|
201
|
+
}, [!e.isLoading && e.editor ? (n(), u(v, { key: 0 }, [g("div", ve, [
|
|
199
202
|
x(Q, {
|
|
200
|
-
"model-value":
|
|
201
|
-
options:
|
|
202
|
-
label:
|
|
203
|
-
placeholder:
|
|
203
|
+
"model-value": A("fontFamily"),
|
|
204
|
+
options: f(C),
|
|
205
|
+
label: f(b).paragraphEditor.fontFamily,
|
|
206
|
+
placeholder: f(b).paragraphEditor.defaultFont,
|
|
204
207
|
"width-class": "tpl:w-32",
|
|
205
|
-
"onUpdate:modelValue":
|
|
208
|
+
"onUpdate:modelValue": j
|
|
206
209
|
}, null, 8, [
|
|
207
210
|
"model-value",
|
|
208
211
|
"options",
|
|
@@ -210,12 +213,12 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
210
213
|
"placeholder"
|
|
211
214
|
]),
|
|
212
215
|
x(Q, {
|
|
213
|
-
"model-value":
|
|
214
|
-
options:
|
|
215
|
-
label:
|
|
216
|
-
placeholder:
|
|
216
|
+
"model-value": A("fontSize"),
|
|
217
|
+
options: f(H),
|
|
218
|
+
label: f(b).paragraphEditor.fontSize,
|
|
219
|
+
placeholder: f(b).paragraphEditor.defaultSize,
|
|
217
220
|
"width-class": "tpl:w-20",
|
|
218
|
-
"onUpdate:modelValue":
|
|
221
|
+
"onUpdate:modelValue": M
|
|
219
222
|
}, null, 8, [
|
|
220
223
|
"model-value",
|
|
221
224
|
"options",
|
|
@@ -223,27 +226,27 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
223
226
|
"placeholder"
|
|
224
227
|
]),
|
|
225
228
|
x(Z),
|
|
226
|
-
|
|
229
|
+
g("div", ye, [g("input", {
|
|
227
230
|
type: "color",
|
|
228
231
|
class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-1",
|
|
229
|
-
value:
|
|
230
|
-
"aria-label":
|
|
231
|
-
title:
|
|
232
|
-
onInput: r[0] ||= (e) =>
|
|
233
|
-
}, null, 40,
|
|
234
|
-
|
|
232
|
+
value: A("color") || f("#000000"),
|
|
233
|
+
"aria-label": f(b).paragraphEditor.textColor,
|
|
234
|
+
title: f(b).paragraphEditor.textColor,
|
|
235
|
+
onInput: r[0] ||= (e) => F(e.target.value)
|
|
236
|
+
}, null, 40, be)]),
|
|
237
|
+
g("div", $, [g("input", {
|
|
235
238
|
type: "color",
|
|
236
239
|
class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:p-1",
|
|
237
|
-
style:
|
|
238
|
-
value: J() ||
|
|
239
|
-
"aria-label":
|
|
240
|
-
title:
|
|
240
|
+
style: _({ backgroundColor: J() || "var(--tpl-bg)" }),
|
|
241
|
+
value: J() || f("#ffff00"),
|
|
242
|
+
"aria-label": f(b).paragraphEditor.highlightColor,
|
|
243
|
+
title: f(b).paragraphEditor.highlightColor,
|
|
241
244
|
onInput: r[1] ||= (e) => Y(e.target.value)
|
|
242
|
-
}, null, 44,
|
|
245
|
+
}, null, 44, xe)]),
|
|
243
246
|
x(Z),
|
|
244
247
|
x(X, {
|
|
245
|
-
icon:
|
|
246
|
-
label:
|
|
248
|
+
icon: f(ne),
|
|
249
|
+
label: f(b).paragraphEditor.bold,
|
|
247
250
|
active: e.editor.isActive("bold"),
|
|
248
251
|
"stroke-width": 2.5,
|
|
249
252
|
onClick: r[2] ||= (t) => e.editor.chain().focus().toggleBold().run()
|
|
@@ -253,8 +256,8 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
253
256
|
"active"
|
|
254
257
|
]),
|
|
255
258
|
x(X, {
|
|
256
|
-
icon:
|
|
257
|
-
label:
|
|
259
|
+
icon: f(P),
|
|
260
|
+
label: f(b).paragraphEditor.italic,
|
|
258
261
|
active: e.editor.isActive("italic"),
|
|
259
262
|
onClick: r[3] ||= (t) => e.editor.chain().focus().toggleItalic().run()
|
|
260
263
|
}, null, 8, [
|
|
@@ -263,8 +266,8 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
263
266
|
"active"
|
|
264
267
|
]),
|
|
265
268
|
x(X, {
|
|
266
|
-
icon:
|
|
267
|
-
label:
|
|
269
|
+
icon: f(ae),
|
|
270
|
+
label: f(b).paragraphEditor.underline,
|
|
268
271
|
active: e.editor.isActive("underline"),
|
|
269
272
|
onClick: r[4] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
|
|
270
273
|
}, null, 8, [
|
|
@@ -273,8 +276,8 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
273
276
|
"active"
|
|
274
277
|
]),
|
|
275
278
|
x(X, {
|
|
276
|
-
icon:
|
|
277
|
-
label:
|
|
279
|
+
icon: f(I),
|
|
280
|
+
label: f(b).paragraphEditor.strikethrough,
|
|
278
281
|
active: e.editor.isActive("strike"),
|
|
279
282
|
onClick: r[5] ||= (t) => e.editor.chain().focus().toggleStrike().run()
|
|
280
283
|
}, null, 8, [
|
|
@@ -284,8 +287,8 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
284
287
|
]),
|
|
285
288
|
x(Z),
|
|
286
289
|
x(X, {
|
|
287
|
-
icon:
|
|
288
|
-
label:
|
|
290
|
+
icon: f(ie),
|
|
291
|
+
label: f(b).paragraphEditor.subscript,
|
|
289
292
|
active: e.editor.isActive("subscript"),
|
|
290
293
|
onClick: r[6] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
|
|
291
294
|
}, null, 8, [
|
|
@@ -294,8 +297,8 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
294
297
|
"active"
|
|
295
298
|
]),
|
|
296
299
|
x(X, {
|
|
297
|
-
icon:
|
|
298
|
-
label:
|
|
300
|
+
icon: f(R),
|
|
301
|
+
label: f(b).paragraphEditor.superscript,
|
|
299
302
|
active: e.editor.isActive("superscript"),
|
|
300
303
|
onClick: r[7] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
|
|
301
304
|
}, null, 8, [
|
|
@@ -305,8 +308,8 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
305
308
|
]),
|
|
306
309
|
x(Z),
|
|
307
310
|
x(X, {
|
|
308
|
-
icon:
|
|
309
|
-
label:
|
|
311
|
+
icon: f(N),
|
|
312
|
+
label: f(b).paragraphEditor.addLink,
|
|
310
313
|
active: e.editor.isActive("link"),
|
|
311
314
|
onClick: r[8] ||= (e) => a("open-link-dialog")
|
|
312
315
|
}, null, 8, [
|
|
@@ -314,10 +317,10 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
314
317
|
"label",
|
|
315
318
|
"active"
|
|
316
319
|
])
|
|
317
|
-
]),
|
|
320
|
+
]), g("div", Se, [
|
|
318
321
|
x(X, {
|
|
319
|
-
icon:
|
|
320
|
-
label:
|
|
322
|
+
icon: f(te),
|
|
323
|
+
label: f(b).paragraphEditor.bulletList,
|
|
321
324
|
active: e.editor.isActive("bulletList"),
|
|
322
325
|
onClick: r[9] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
|
|
323
326
|
}, null, 8, [
|
|
@@ -326,8 +329,8 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
326
329
|
"active"
|
|
327
330
|
]),
|
|
328
331
|
x(X, {
|
|
329
|
-
icon:
|
|
330
|
-
label:
|
|
332
|
+
icon: f(V),
|
|
333
|
+
label: f(b).paragraphEditor.numberedList,
|
|
331
334
|
active: e.editor.isActive("orderedList"),
|
|
332
335
|
onClick: r[10] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
|
|
333
336
|
}, null, 8, [
|
|
@@ -337,8 +340,8 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
337
340
|
]),
|
|
338
341
|
x(Z),
|
|
339
342
|
x(X, {
|
|
340
|
-
icon:
|
|
341
|
-
label:
|
|
343
|
+
icon: f(oe),
|
|
344
|
+
label: f(b).paragraphEditor.alignLeft,
|
|
342
345
|
active: e.editor.isActive({ textAlign: "left" }),
|
|
343
346
|
onClick: r[11] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
|
|
344
347
|
}, null, 8, [
|
|
@@ -347,8 +350,8 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
347
350
|
"active"
|
|
348
351
|
]),
|
|
349
352
|
x(X, {
|
|
350
|
-
icon:
|
|
351
|
-
label:
|
|
353
|
+
icon: f(re),
|
|
354
|
+
label: f(b).paragraphEditor.alignCenter,
|
|
352
355
|
active: e.editor.isActive({ textAlign: "center" }),
|
|
353
356
|
onClick: r[12] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
|
|
354
357
|
}, null, 8, [
|
|
@@ -357,8 +360,8 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
357
360
|
"active"
|
|
358
361
|
]),
|
|
359
362
|
x(X, {
|
|
360
|
-
icon:
|
|
361
|
-
label:
|
|
363
|
+
icon: f(L),
|
|
364
|
+
label: f(b).paragraphEditor.alignRight,
|
|
362
365
|
active: e.editor.isActive({ textAlign: "right" }),
|
|
363
366
|
onClick: r[13] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
|
|
364
367
|
}, null, 8, [
|
|
@@ -368,9 +371,9 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
368
371
|
]),
|
|
369
372
|
x(Z),
|
|
370
373
|
x(Q, {
|
|
371
|
-
"model-value":
|
|
372
|
-
options:
|
|
373
|
-
label:
|
|
374
|
+
"model-value": G(),
|
|
375
|
+
options: f(W),
|
|
376
|
+
label: f(b).paragraphEditor.lineHeight,
|
|
374
377
|
placeholder: "LH",
|
|
375
378
|
"width-class": "tpl:w-16",
|
|
376
379
|
"onUpdate:modelValue": K
|
|
@@ -380,9 +383,9 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
380
383
|
"label"
|
|
381
384
|
]),
|
|
382
385
|
x(Q, {
|
|
383
|
-
"model-value":
|
|
384
|
-
options:
|
|
385
|
-
label:
|
|
386
|
+
"model-value": A("letterSpacing"),
|
|
387
|
+
options: f(U),
|
|
388
|
+
label: f(b).paragraphEditor.letterSpacing,
|
|
386
389
|
placeholder: "LS",
|
|
387
390
|
"width-class": "tpl:w-20",
|
|
388
391
|
"onUpdate:modelValue": q
|
|
@@ -393,29 +396,29 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
393
396
|
]),
|
|
394
397
|
x(Z),
|
|
395
398
|
x(X, {
|
|
396
|
-
icon:
|
|
397
|
-
label:
|
|
399
|
+
icon: f(z),
|
|
400
|
+
label: f(b).paragraphEditor.clearFormatting,
|
|
398
401
|
onClick: r[14] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
|
|
399
402
|
}, null, 8, ["icon", "label"]),
|
|
400
403
|
x(Z),
|
|
401
|
-
x(
|
|
402
|
-
e.canRequestMergeTag ? (n(), u(v, { key: 0 }, [x(Z),
|
|
404
|
+
x(le, { onInsert: E }),
|
|
405
|
+
e.canRequestMergeTag ? (n(), u(v, { key: 0 }, [x(Z), g("button", {
|
|
403
406
|
type: "button",
|
|
404
407
|
class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
405
|
-
"aria-label":
|
|
406
|
-
title:
|
|
408
|
+
"aria-label": f(b).mergeTag.add,
|
|
409
|
+
title: f(b).mergeTag.add,
|
|
407
410
|
onClick: r[15] ||= (e) => a("add-merge-tag")
|
|
408
|
-
}, [x(
|
|
411
|
+
}, [x(f(B), {
|
|
409
412
|
size: 16,
|
|
410
413
|
"stroke-width": 2
|
|
411
|
-
}), y(" " +
|
|
412
|
-
])], 64)) : (n(), u("div",
|
|
414
|
+
}), y(" " + s(f(b).mergeTag.add), 1)], 8, Ce)], 64)) : d("", !0)
|
|
415
|
+
])], 64)) : (n(), u("div", we, [x(f(D), {
|
|
413
416
|
class: "tpl-spinner",
|
|
414
417
|
size: 14,
|
|
415
418
|
"stroke-width": 2
|
|
416
|
-
}), y(" " +
|
|
419
|
+
}), y(" " + s(f(b).errors.editorLoading), 1)]))], 12, _e)], 8, ["to"])) : d("", !0);
|
|
417
420
|
}
|
|
418
|
-
}),
|
|
421
|
+
}), Ee = { class: "tpl-text-editor-wrapper tpl:relative" }, De = /* @__PURE__ */ b({
|
|
419
422
|
__name: "ParagraphEditor",
|
|
420
423
|
props: {
|
|
421
424
|
block: {},
|
|
@@ -423,76 +426,77 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
423
426
|
},
|
|
424
427
|
emits: ["done"],
|
|
425
428
|
setup(t, { emit: r }) {
|
|
426
|
-
let i = t, a = r, { editor:
|
|
429
|
+
let i = t, a = r, o = O(), { editor: s, EditorContent: c, isLoading: l, initError: d, retry: p, showLinkDialog: m, linkUrl: h, linkDialogRef: g, canRequestMergeTag: _, openLinkDialog: v, insertLink: y, removeLink: b, closeLinkDialog: S, handleLinkKeydown: w, handleAddMergeTag: T } = C({
|
|
427
430
|
blockId: () => i.block.id,
|
|
428
431
|
blockContent: () => i.block.content,
|
|
429
432
|
onDone: () => a("done"),
|
|
430
433
|
editorName: "ParagraphEditor",
|
|
431
434
|
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
432
|
-
let [{ Editor: a, EditorContent:
|
|
433
|
-
import("./tiptap-
|
|
434
|
-
import("./tiptap-
|
|
435
|
-
import("./tiptap-
|
|
436
|
-
import("./tiptap-
|
|
437
|
-
import("./tiptap-
|
|
438
|
-
import("./tiptap-
|
|
439
|
-
import("./tiptap-
|
|
440
|
-
import("./tiptap-
|
|
441
|
-
import("./tiptap-
|
|
442
|
-
import("./tiptap-
|
|
443
|
-
import("./tiptap-
|
|
444
|
-
import("./extensions-
|
|
435
|
+
let [{ Editor: a, EditorContent: s }, { default: c }, { default: l }, { default: u }, { default: d }, { default: f }, { default: p }, { TextStyle: m }, { default: h }, { default: g }, { default: _ }, { MergeTagNode: v, MergeTagSuggestion: y, LogicMergeTagNode: b, FontSize: x, LineHeight: S, LetterSpacing: C }] = await Promise.all([
|
|
436
|
+
import("./tiptap-BwTCLVWl.js").then((e) => e.i),
|
|
437
|
+
import("./tiptap-BwTCLVWl.js").then((e) => e.a),
|
|
438
|
+
import("./tiptap-BwTCLVWl.js").then((e) => e.u),
|
|
439
|
+
import("./tiptap-BwTCLVWl.js").then((e) => e.o),
|
|
440
|
+
import("./tiptap-BwTCLVWl.js").then((e) => e.l),
|
|
441
|
+
import("./tiptap-BwTCLVWl.js").then((e) => e.c),
|
|
442
|
+
import("./tiptap-BwTCLVWl.js").then((e) => e.s),
|
|
443
|
+
import("./tiptap-BwTCLVWl.js").then((e) => e.m),
|
|
444
|
+
import("./tiptap-BwTCLVWl.js").then((e) => e.p),
|
|
445
|
+
import("./tiptap-BwTCLVWl.js").then((e) => e.f),
|
|
446
|
+
import("./tiptap-BwTCLVWl.js").then((e) => e.d),
|
|
447
|
+
import("./extensions-BZYkPlKr.js")
|
|
445
448
|
]);
|
|
446
449
|
return {
|
|
447
450
|
TiptapEditor: a,
|
|
448
|
-
EC:
|
|
451
|
+
EC: s,
|
|
449
452
|
extensions: [
|
|
450
|
-
|
|
453
|
+
c.configure({
|
|
451
454
|
heading: !1,
|
|
452
455
|
codeBlock: !1,
|
|
453
456
|
blockquote: !1,
|
|
454
457
|
horizontalRule: !1
|
|
455
458
|
}),
|
|
456
|
-
l,
|
|
457
459
|
u,
|
|
458
460
|
d,
|
|
459
|
-
|
|
461
|
+
f,
|
|
462
|
+
l.configure({
|
|
460
463
|
openOnClick: !1,
|
|
461
464
|
HTMLAttributes: {
|
|
462
465
|
target: "_blank",
|
|
463
466
|
rel: "noopener noreferrer"
|
|
464
467
|
}
|
|
465
468
|
}),
|
|
466
|
-
|
|
467
|
-
p,
|
|
469
|
+
p.configure({ types: ["paragraph"] }),
|
|
468
470
|
m,
|
|
469
471
|
h,
|
|
470
|
-
g
|
|
471
|
-
|
|
472
|
+
g,
|
|
473
|
+
_.configure({ multicolor: !0 }),
|
|
472
474
|
x,
|
|
473
475
|
S,
|
|
474
|
-
|
|
476
|
+
C,
|
|
477
|
+
v.configure({
|
|
475
478
|
mergeTags: e,
|
|
476
479
|
syntax: t
|
|
477
480
|
}),
|
|
478
|
-
|
|
479
|
-
...r && n && e.length > 0 ? [
|
|
481
|
+
b.configure({ syntax: t }),
|
|
482
|
+
...r && n && e.length > 0 ? [y.configure({
|
|
480
483
|
mergeTags: e,
|
|
481
484
|
char: n,
|
|
482
|
-
emptyText: i
|
|
485
|
+
emptyText: i,
|
|
486
|
+
popoverRoot: o
|
|
483
487
|
})] : []
|
|
484
488
|
]
|
|
485
489
|
};
|
|
486
490
|
}
|
|
487
491
|
});
|
|
488
|
-
return (r, i) => (n(), u("div",
|
|
489
|
-
x(
|
|
490
|
-
editor:
|
|
492
|
+
return (r, i) => (n(), u("div", Ee, [
|
|
493
|
+
x(Te, {
|
|
494
|
+
editor: f(s),
|
|
491
495
|
"toolbar-position": t.toolbarPosition,
|
|
492
|
-
"is-loading":
|
|
493
|
-
"can-request-merge-tag":
|
|
494
|
-
onOpenLinkDialog:
|
|
495
|
-
onAddMergeTag:
|
|
496
|
+
"is-loading": f(l),
|
|
497
|
+
"can-request-merge-tag": f(_),
|
|
498
|
+
onOpenLinkDialog: f(v),
|
|
499
|
+
onAddMergeTag: f(T)
|
|
496
500
|
}, null, 8, [
|
|
497
501
|
"editor",
|
|
498
502
|
"toolbar-position",
|
|
@@ -501,12 +505,12 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
501
505
|
"onOpenLinkDialog",
|
|
502
506
|
"onAddMergeTag"
|
|
503
507
|
]),
|
|
504
|
-
x(
|
|
505
|
-
editor:
|
|
506
|
-
"editor-content":
|
|
507
|
-
"is-loading":
|
|
508
|
-
"init-error":
|
|
509
|
-
onRetry:
|
|
508
|
+
x(K, {
|
|
509
|
+
editor: f(s),
|
|
510
|
+
"editor-content": f(c),
|
|
511
|
+
"is-loading": f(l),
|
|
512
|
+
"init-error": f(d),
|
|
513
|
+
onRetry: f(p)
|
|
510
514
|
}, null, 8, [
|
|
511
515
|
"editor",
|
|
512
516
|
"editor-content",
|
|
@@ -514,17 +518,17 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
514
518
|
"init-error",
|
|
515
519
|
"onRetry"
|
|
516
520
|
]),
|
|
517
|
-
x(
|
|
518
|
-
visible:
|
|
519
|
-
"is-editing-link":
|
|
520
|
-
"dialog-ref": g
|
|
521
|
-
"onUpdate:dialogRef": i[0] ||= (t) => e(
|
|
522
|
-
"link-url":
|
|
523
|
-
"onUpdate:linkUrl": i[1] ||= (t) => e(
|
|
524
|
-
onClose:
|
|
525
|
-
onInsert:
|
|
526
|
-
onRemove:
|
|
527
|
-
onKeydown:
|
|
521
|
+
x(G, {
|
|
522
|
+
visible: f(m),
|
|
523
|
+
"is-editing-link": f(s)?.isActive("link") ?? !1,
|
|
524
|
+
"dialog-ref": f(g),
|
|
525
|
+
"onUpdate:dialogRef": i[0] ||= (t) => e(g) ? g.value = t : null,
|
|
526
|
+
"link-url": f(h),
|
|
527
|
+
"onUpdate:linkUrl": i[1] ||= (t) => e(h) ? h.value = t : null,
|
|
528
|
+
onClose: f(S),
|
|
529
|
+
onInsert: f(y),
|
|
530
|
+
onRemove: f(b),
|
|
531
|
+
onKeydown: f(w)
|
|
528
532
|
}, null, 8, [
|
|
529
533
|
"visible",
|
|
530
534
|
"is-editing-link",
|
|
@@ -539,6 +543,6 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
539
543
|
}
|
|
540
544
|
});
|
|
541
545
|
//#endregion
|
|
542
|
-
export {
|
|
546
|
+
export { De as default };
|
|
543
547
|
|
|
544
|
-
//# sourceMappingURL=ParagraphEditor-
|
|
548
|
+
//# sourceMappingURL=ParagraphEditor-DlpZX_x4.js.map
|