@templatical/editor 0.6.7 → 0.7.1
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-S7AzuNwC.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-BGiN3M_f.js} +252 -243
- package/dist/cdn/chunks/CloudEditor-BGiN3M_f.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-eDlxzlJI.js +501 -0
- package/dist/cdn/chunks/renderer-eDlxzlJI.js.map +1 -0
- 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-lcwmaOou.js} +969 -958
- package/dist/cdn/chunks/styles-lcwmaOou.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 +51 -6
- package/dist/{keys-Bqs_0du9.js → keys-B5SJtPWf.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/{styles-BgmKdc2x.js → styles-DeNciUTX.js} +586 -575
- 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/renderer-eHJyPiJH.js +0 -548
- package/dist/cdn/chunks/renderer-eHJyPiJH.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,16 +1,17 @@
|
|
|
1
1
|
import { A as e, F as t, G as n, M as r, X as i, _ as a, at as o, b as s, c, d as l, f as u, h as d, l as f, m as p, ot as m, p as h, rt as g, s as _, st as v, u as y, v as b, w as x } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
-
import { C as S, b as C, w } from "./useEditorCore-
|
|
2
|
+
import { C as S, b as C, w } from "./useEditorCore-uCU9Ny0M.js";
|
|
3
3
|
import { t as T } from "./dist-BzRLLpfq.js";
|
|
4
|
-
import {
|
|
5
|
-
import { t as A } from "./useI18n-
|
|
4
|
+
import { A as E, D, g as O, k } from "./keys-B5SJtPWf.js";
|
|
5
|
+
import { t as A } from "./useI18n-PEB8ioi_.js";
|
|
6
6
|
import { t as j } from "./createLucideIcon-Di4mqmGn.js";
|
|
7
|
-
import { a as ee, i as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { n as
|
|
11
|
-
import { t as
|
|
12
|
-
import { a as
|
|
13
|
-
|
|
7
|
+
import { a as ee, i as te, n as M, r as N, t as P } from "./RichTextEditorContent-C3QSg7gd.js";
|
|
8
|
+
import { t as ne } from "./loader-circle-_9bP23op.js";
|
|
9
|
+
import { t as re } from "./scan-line-DUEg6DoT.js";
|
|
10
|
+
import { n as ie, r as ae, t as oe } from "./text-align-start-DG3aAH7Y.js";
|
|
11
|
+
import { t as F } from "./_plugin-vue_export-helper-B0hnzhyu.js";
|
|
12
|
+
import { a as I, o as L, s as R } from "./styleConstants-fWzlIIwN.js";
|
|
13
|
+
import { t as z } from "./usePopoverRoot-BxJrqnMD.js";
|
|
14
|
+
var B = j("list-ordered", [
|
|
14
15
|
["path", {
|
|
15
16
|
d: "M11 5h10",
|
|
16
17
|
key: "1cz7ny"
|
|
@@ -35,7 +36,7 @@ var V = j("list-ordered", [
|
|
|
35
36
|
d: "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",
|
|
36
37
|
key: "xtkcd5"
|
|
37
38
|
}]
|
|
38
|
-
]),
|
|
39
|
+
]), V = j("list", [
|
|
39
40
|
["path", {
|
|
40
41
|
d: "M3 5h.01",
|
|
41
42
|
key: "18ugdj"
|
|
@@ -60,7 +61,7 @@ var V = j("list-ordered", [
|
|
|
60
61
|
d: "M8 19h13",
|
|
61
62
|
key: "m83p4d"
|
|
62
63
|
}]
|
|
63
|
-
]),
|
|
64
|
+
]), H = j("remove-formatting", [
|
|
64
65
|
["path", {
|
|
65
66
|
d: "M4 7V4h16v3",
|
|
66
67
|
key: "9msm58"
|
|
@@ -81,7 +82,7 @@ var V = j("list-ordered", [
|
|
|
81
82
|
d: "m20 15-5 5",
|
|
82
83
|
key: "11p7ol"
|
|
83
84
|
}]
|
|
84
|
-
]),
|
|
85
|
+
]), U = j("smile", [
|
|
85
86
|
["circle", {
|
|
86
87
|
cx: "12",
|
|
87
88
|
cy: "12",
|
|
@@ -106,7 +107,7 @@ var V = j("list-ordered", [
|
|
|
106
107
|
y2: "9",
|
|
107
108
|
key: "1p4y9e"
|
|
108
109
|
}]
|
|
109
|
-
]),
|
|
110
|
+
]), W = j("strikethrough", [
|
|
110
111
|
["path", {
|
|
111
112
|
d: "M16 4H9a3 3 0 0 0-2.83 4",
|
|
112
113
|
key: "43sutm"
|
|
@@ -122,7 +123,7 @@ var V = j("list-ordered", [
|
|
|
122
123
|
y2: "12",
|
|
123
124
|
key: "1e0a9i"
|
|
124
125
|
}]
|
|
125
|
-
]),
|
|
126
|
+
]), G = j("subscript", [
|
|
126
127
|
["path", {
|
|
127
128
|
d: "m4 5 8 8",
|
|
128
129
|
key: "1eunvl"
|
|
@@ -135,7 +136,7 @@ var V = j("list-ordered", [
|
|
|
135
136
|
d: "M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07",
|
|
136
137
|
key: "e8ta8j"
|
|
137
138
|
}]
|
|
138
|
-
]),
|
|
139
|
+
]), K = j("superscript", [
|
|
139
140
|
["path", {
|
|
140
141
|
d: "m4 19 8-8",
|
|
141
142
|
key: "hr47gm"
|
|
@@ -148,7 +149,7 @@ var V = j("list-ordered", [
|
|
|
148
149
|
d: "M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06",
|
|
149
150
|
key: "1dfcux"
|
|
150
151
|
}]
|
|
151
|
-
]),
|
|
152
|
+
]), q = j("underline", [["path", {
|
|
152
153
|
d: "M6 4v6a6 6 0 0 0 12 0V4",
|
|
153
154
|
key: "9kb039"
|
|
154
155
|
}], ["line", {
|
|
@@ -157,11 +158,11 @@ var V = j("list-ordered", [
|
|
|
157
158
|
y1: "20",
|
|
158
159
|
y2: "20",
|
|
159
160
|
key: "nun2al"
|
|
160
|
-
}]]),
|
|
161
|
+
}]]), J = [
|
|
161
162
|
"aria-label",
|
|
162
163
|
"title",
|
|
163
164
|
"aria-expanded"
|
|
164
|
-
],
|
|
165
|
+
], Y = ["aria-label"], se = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, ce = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, le = ["aria-label", "onClick"], ue = /* @__PURE__ */ s({
|
|
165
166
|
__name: "EmojiPickerDropdown",
|
|
166
167
|
emits: ["insert"],
|
|
167
168
|
setup(t, { emit: n }) {
|
|
@@ -185,10 +186,10 @@ var V = j("list-ordered", [
|
|
|
185
186
|
"aria-haspopup": "dialog",
|
|
186
187
|
"aria-controls": "tpl-emoji-picker",
|
|
187
188
|
onClick: n[0] ||= (...e) => g(h) && g(h)(...e)
|
|
188
|
-
}, [b(g(
|
|
189
|
+
}, [b(g(U), {
|
|
189
190
|
size: 16,
|
|
190
191
|
"stroke-width": 2
|
|
191
|
-
})], 10,
|
|
192
|
+
})], 10, J), g(m) ? (e(), d("div", {
|
|
192
193
|
key: 0,
|
|
193
194
|
id: "tpl-emoji-picker",
|
|
194
195
|
ref_key: "pickerRef",
|
|
@@ -202,15 +203,15 @@ var V = j("list-ordered", [
|
|
|
202
203
|
}, [(e(!0), d(f, null, r(g(s), (t) => (e(), d("div", {
|
|
203
204
|
key: t.key,
|
|
204
205
|
class: "tpl:mb-2 tpl:last:mb-0"
|
|
205
|
-
}, [u("div",
|
|
206
|
+
}, [u("div", se, v(g(x).emoji[t.key]), 1), u("div", ce, [(e(!0), d(f, null, r(t.emojis, (t) => (e(), d("button", {
|
|
206
207
|
key: t,
|
|
207
208
|
type: "button",
|
|
208
209
|
"aria-label": g(C)(g(x).paragraphEditor.emojiItemLabel, { emoji: t }),
|
|
209
210
|
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)]",
|
|
210
211
|
onClick: (e) => O(t)
|
|
211
|
-
}, v(t), 9,
|
|
212
|
+
}, v(t), 9, le))), 128))])]))), 128))], 40, Y)) : p("", !0)], 512));
|
|
212
213
|
}
|
|
213
|
-
}),
|
|
214
|
+
}), de = [
|
|
214
215
|
"aria-label",
|
|
215
216
|
"title",
|
|
216
217
|
"aria-pressed"
|
|
@@ -233,20 +234,20 @@ var V = j("list-ordered", [
|
|
|
233
234
|
}, [(e(), h(t(n.icon), {
|
|
234
235
|
size: n.size ?? 16,
|
|
235
236
|
"stroke-width": n.strokeWidth ?? 2
|
|
236
|
-
}, null, 8, ["size", "stroke-width"]))], 10,
|
|
237
|
+
}, null, 8, ["size", "stroke-width"]))], 10, de));
|
|
237
238
|
}
|
|
238
|
-
}),
|
|
239
|
+
}), fe = {}, pe = {
|
|
239
240
|
class: "tpl:mx-1 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
|
|
240
241
|
"aria-hidden": "true"
|
|
241
242
|
};
|
|
242
|
-
function
|
|
243
|
-
return e(), d("span",
|
|
243
|
+
function me(t, n) {
|
|
244
|
+
return e(), d("span", pe);
|
|
244
245
|
}
|
|
245
|
-
var Z = /* @__PURE__ */
|
|
246
|
+
var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
246
247
|
"value",
|
|
247
248
|
"aria-label",
|
|
248
249
|
"title"
|
|
249
|
-
],
|
|
250
|
+
], ge = { value: "" }, _e = ["value"], Q = /* @__PURE__ */ s({
|
|
250
251
|
__name: "ToolbarSelect",
|
|
251
252
|
props: {
|
|
252
253
|
modelValue: {},
|
|
@@ -273,23 +274,23 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
273
274
|
"aria-label": t.label,
|
|
274
275
|
title: t.label,
|
|
275
276
|
onChange: a
|
|
276
|
-
}, [u("option",
|
|
277
|
+
}, [u("option", ge, v(t.placeholder ?? ""), 1), (e(!0), d(f, null, r(t.options, (t) => (e(), d("option", {
|
|
277
278
|
key: s(t),
|
|
278
279
|
value: s(t)
|
|
279
|
-
}, v(c(t)), 9,
|
|
280
|
+
}, v(c(t)), 9, _e))), 128))], 42, he));
|
|
280
281
|
}
|
|
281
|
-
}),
|
|
282
|
+
}), ve = ["data-tpl-theme", "aria-label"], ye = { class: "tpl:flex tpl:items-center tpl:gap-1" }, be = { class: "tpl:relative" }, xe = [
|
|
282
283
|
"value",
|
|
283
284
|
"aria-label",
|
|
284
285
|
"title"
|
|
285
|
-
],
|
|
286
|
+
], Se = { class: "tpl:relative" }, Ce = [
|
|
286
287
|
"value",
|
|
287
288
|
"aria-label",
|
|
288
289
|
"title"
|
|
289
|
-
],
|
|
290
|
+
], $ = { class: "tpl:flex tpl:items-center tpl:gap-1" }, we = ["aria-label", "title"], Te = {
|
|
290
291
|
key: 1,
|
|
291
292
|
class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
292
|
-
},
|
|
293
|
+
}, Ee = /* @__PURE__ */ s({
|
|
293
294
|
__name: "ParagraphToolbar",
|
|
294
295
|
props: {
|
|
295
296
|
editor: {},
|
|
@@ -299,47 +300,50 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
299
300
|
},
|
|
300
301
|
emits: ["open-link-dialog", "add-merge-tag"],
|
|
301
302
|
setup(t, { emit: n }) {
|
|
302
|
-
let r = t, i = n, o = x(
|
|
303
|
-
function
|
|
303
|
+
let r = t, i = n, o = x(D, null), s = x(k, null), c = E(O, "ParagraphToolbar"), l = z(), { t: _ } = A(), S = c.fonts;
|
|
304
|
+
function C(e) {
|
|
304
305
|
r.editor?.chain().focus().insertContent(e).run();
|
|
305
306
|
}
|
|
306
|
-
function
|
|
307
|
+
function w(e) {
|
|
307
308
|
return r.editor?.getAttributes("textStyle")[e] || "";
|
|
308
309
|
}
|
|
309
|
-
function
|
|
310
|
+
function T(e) {
|
|
310
311
|
let t = r.editor?.chain().focus();
|
|
311
312
|
e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
|
|
312
313
|
}
|
|
313
|
-
function
|
|
314
|
+
function j(e) {
|
|
314
315
|
let t = r.editor?.chain().focus();
|
|
315
316
|
e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
|
|
316
317
|
}
|
|
317
|
-
function
|
|
318
|
+
function M(e) {
|
|
318
319
|
let t = r.editor?.chain().focus();
|
|
319
320
|
e ? t?.setColor(e).run() : t?.unsetColor().run();
|
|
320
321
|
}
|
|
321
|
-
function
|
|
322
|
+
function P() {
|
|
322
323
|
return r.editor?.getAttributes("paragraph").lineHeight || "";
|
|
323
324
|
}
|
|
324
325
|
function F(e) {
|
|
325
326
|
let t = r.editor?.chain().focus();
|
|
326
327
|
e ? t?.setLineHeight(e).run() : t?.unsetLineHeight().run();
|
|
327
328
|
}
|
|
328
|
-
function
|
|
329
|
+
function U(e) {
|
|
329
330
|
let t = r.editor?.chain().focus();
|
|
330
331
|
e && e !== "normal" ? t?.setLetterSpacing(e).run() : t?.unsetLetterSpacing().run();
|
|
331
332
|
}
|
|
332
|
-
function
|
|
333
|
+
function J() {
|
|
333
334
|
return r.editor?.getAttributes("highlight").color || "";
|
|
334
335
|
}
|
|
335
336
|
function Y(e) {
|
|
336
337
|
let t = r.editor?.chain().focus();
|
|
337
338
|
e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
|
|
338
339
|
}
|
|
339
|
-
return (n, r) => (e(), h(y, {
|
|
340
|
+
return (n, r) => g(l) ? (e(), h(y, {
|
|
341
|
+
key: 0,
|
|
342
|
+
to: g(l)
|
|
343
|
+
}, [u("div", {
|
|
340
344
|
"data-tpl-theme": g(s),
|
|
341
345
|
role: "toolbar",
|
|
342
|
-
"aria-label": g(
|
|
346
|
+
"aria-label": g(_).paragraphEditor.toolbar,
|
|
343
347
|
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",
|
|
344
348
|
style: m({
|
|
345
349
|
...g(o),
|
|
@@ -348,14 +352,14 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
348
352
|
transform: "translateY(-100%)",
|
|
349
353
|
flexDirection: "column"
|
|
350
354
|
})
|
|
351
|
-
}, [!t.isLoading && t.editor ? (e(), d(f, { key: 0 }, [u("div",
|
|
355
|
+
}, [!t.isLoading && t.editor ? (e(), d(f, { key: 0 }, [u("div", ye, [
|
|
352
356
|
b(Q, {
|
|
353
|
-
"model-value":
|
|
354
|
-
options: g(
|
|
355
|
-
label: g(
|
|
356
|
-
placeholder: g(
|
|
357
|
+
"model-value": w("fontFamily"),
|
|
358
|
+
options: g(S),
|
|
359
|
+
label: g(_).paragraphEditor.fontFamily,
|
|
360
|
+
placeholder: g(_).paragraphEditor.defaultFont,
|
|
357
361
|
"width-class": "tpl:w-32",
|
|
358
|
-
"onUpdate:modelValue":
|
|
362
|
+
"onUpdate:modelValue": T
|
|
359
363
|
}, null, 8, [
|
|
360
364
|
"model-value",
|
|
361
365
|
"options",
|
|
@@ -363,12 +367,12 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
363
367
|
"placeholder"
|
|
364
368
|
]),
|
|
365
369
|
b(Q, {
|
|
366
|
-
"model-value":
|
|
367
|
-
options: g(
|
|
368
|
-
label: g(
|
|
369
|
-
placeholder: g(
|
|
370
|
+
"model-value": w("fontSize"),
|
|
371
|
+
options: g(I),
|
|
372
|
+
label: g(_).paragraphEditor.fontSize,
|
|
373
|
+
placeholder: g(_).paragraphEditor.defaultSize,
|
|
370
374
|
"width-class": "tpl:w-20",
|
|
371
|
-
"onUpdate:modelValue":
|
|
375
|
+
"onUpdate:modelValue": j
|
|
372
376
|
}, null, 8, [
|
|
373
377
|
"model-value",
|
|
374
378
|
"options",
|
|
@@ -376,27 +380,27 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
376
380
|
"placeholder"
|
|
377
381
|
]),
|
|
378
382
|
b(Z),
|
|
379
|
-
u("div",
|
|
383
|
+
u("div", be, [u("input", {
|
|
380
384
|
type: "color",
|
|
381
385
|
class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-1",
|
|
382
|
-
value:
|
|
383
|
-
"aria-label": g(
|
|
384
|
-
title: g(
|
|
385
|
-
onInput: r[0] ||= (e) =>
|
|
386
|
-
}, null, 40,
|
|
387
|
-
u("div",
|
|
386
|
+
value: w("color") || g("#000000"),
|
|
387
|
+
"aria-label": g(_).paragraphEditor.textColor,
|
|
388
|
+
title: g(_).paragraphEditor.textColor,
|
|
389
|
+
onInput: r[0] ||= (e) => M(e.target.value)
|
|
390
|
+
}, null, 40, xe)]),
|
|
391
|
+
u("div", Se, [u("input", {
|
|
388
392
|
type: "color",
|
|
389
393
|
class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:p-1",
|
|
390
|
-
style: m({ backgroundColor:
|
|
391
|
-
value:
|
|
392
|
-
"aria-label": g(
|
|
393
|
-
title: g(
|
|
394
|
+
style: m({ backgroundColor: J() || "var(--tpl-bg)" }),
|
|
395
|
+
value: J() || g("#ffff00"),
|
|
396
|
+
"aria-label": g(_).paragraphEditor.highlightColor,
|
|
397
|
+
title: g(_).paragraphEditor.highlightColor,
|
|
394
398
|
onInput: r[1] ||= (e) => Y(e.target.value)
|
|
395
|
-
}, null, 44,
|
|
399
|
+
}, null, 44, Ce)]),
|
|
396
400
|
b(Z),
|
|
397
401
|
b(X, {
|
|
398
402
|
icon: g(ee),
|
|
399
|
-
label: g(
|
|
403
|
+
label: g(_).paragraphEditor.bold,
|
|
400
404
|
active: t.editor.isActive("bold"),
|
|
401
405
|
"stroke-width": 2.5,
|
|
402
406
|
onClick: r[2] ||= (e) => t.editor.chain().focus().toggleBold().run()
|
|
@@ -406,8 +410,8 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
406
410
|
"active"
|
|
407
411
|
]),
|
|
408
412
|
b(X, {
|
|
409
|
-
icon: g(
|
|
410
|
-
label: g(
|
|
413
|
+
icon: g(te),
|
|
414
|
+
label: g(_).paragraphEditor.italic,
|
|
411
415
|
active: t.editor.isActive("italic"),
|
|
412
416
|
onClick: r[3] ||= (e) => t.editor.chain().focus().toggleItalic().run()
|
|
413
417
|
}, null, 8, [
|
|
@@ -416,8 +420,8 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
416
420
|
"active"
|
|
417
421
|
]),
|
|
418
422
|
b(X, {
|
|
419
|
-
icon: g(
|
|
420
|
-
label: g(
|
|
423
|
+
icon: g(q),
|
|
424
|
+
label: g(_).paragraphEditor.underline,
|
|
421
425
|
active: t.editor.isActive("underline"),
|
|
422
426
|
onClick: r[4] ||= (e) => t.editor.chain().focus().toggleUnderline().run()
|
|
423
427
|
}, null, 8, [
|
|
@@ -426,8 +430,8 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
426
430
|
"active"
|
|
427
431
|
]),
|
|
428
432
|
b(X, {
|
|
429
|
-
icon: g(
|
|
430
|
-
label: g(
|
|
433
|
+
icon: g(W),
|
|
434
|
+
label: g(_).paragraphEditor.strikethrough,
|
|
431
435
|
active: t.editor.isActive("strike"),
|
|
432
436
|
onClick: r[5] ||= (e) => t.editor.chain().focus().toggleStrike().run()
|
|
433
437
|
}, null, 8, [
|
|
@@ -437,8 +441,8 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
437
441
|
]),
|
|
438
442
|
b(Z),
|
|
439
443
|
b(X, {
|
|
440
|
-
icon: g(
|
|
441
|
-
label: g(
|
|
444
|
+
icon: g(G),
|
|
445
|
+
label: g(_).paragraphEditor.subscript,
|
|
442
446
|
active: t.editor.isActive("subscript"),
|
|
443
447
|
onClick: r[6] ||= (e) => t.editor.chain().focus().toggleSubscript().run()
|
|
444
448
|
}, null, 8, [
|
|
@@ -447,8 +451,8 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
447
451
|
"active"
|
|
448
452
|
]),
|
|
449
453
|
b(X, {
|
|
450
|
-
icon: g(
|
|
451
|
-
label: g(
|
|
454
|
+
icon: g(K),
|
|
455
|
+
label: g(_).paragraphEditor.superscript,
|
|
452
456
|
active: t.editor.isActive("superscript"),
|
|
453
457
|
onClick: r[7] ||= (e) => t.editor.chain().focus().toggleSuperscript().run()
|
|
454
458
|
}, null, 8, [
|
|
@@ -458,8 +462,8 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
458
462
|
]),
|
|
459
463
|
b(Z),
|
|
460
464
|
b(X, {
|
|
461
|
-
icon: g(
|
|
462
|
-
label: g(
|
|
465
|
+
icon: g(N),
|
|
466
|
+
label: g(_).paragraphEditor.addLink,
|
|
463
467
|
active: t.editor.isActive("link"),
|
|
464
468
|
onClick: r[8] ||= (e) => i("open-link-dialog")
|
|
465
469
|
}, null, 8, [
|
|
@@ -467,10 +471,10 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
467
471
|
"label",
|
|
468
472
|
"active"
|
|
469
473
|
])
|
|
470
|
-
]), u("div",
|
|
474
|
+
]), u("div", $, [
|
|
471
475
|
b(X, {
|
|
472
|
-
icon: g(
|
|
473
|
-
label: g(
|
|
476
|
+
icon: g(V),
|
|
477
|
+
label: g(_).paragraphEditor.bulletList,
|
|
474
478
|
active: t.editor.isActive("bulletList"),
|
|
475
479
|
onClick: r[9] ||= (e) => t.editor.chain().focus().toggleBulletList().run()
|
|
476
480
|
}, null, 8, [
|
|
@@ -479,8 +483,8 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
479
483
|
"active"
|
|
480
484
|
]),
|
|
481
485
|
b(X, {
|
|
482
|
-
icon: g(
|
|
483
|
-
label: g(
|
|
486
|
+
icon: g(B),
|
|
487
|
+
label: g(_).paragraphEditor.numberedList,
|
|
484
488
|
active: t.editor.isActive("orderedList"),
|
|
485
489
|
onClick: r[10] ||= (e) => t.editor.chain().focus().toggleOrderedList().run()
|
|
486
490
|
}, null, 8, [
|
|
@@ -490,8 +494,8 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
490
494
|
]),
|
|
491
495
|
b(Z),
|
|
492
496
|
b(X, {
|
|
493
|
-
icon: g(
|
|
494
|
-
label: g(
|
|
497
|
+
icon: g(oe),
|
|
498
|
+
label: g(_).paragraphEditor.alignLeft,
|
|
495
499
|
active: t.editor.isActive({ textAlign: "left" }),
|
|
496
500
|
onClick: r[11] ||= (e) => t.editor.chain().focus().setTextAlign("left").run()
|
|
497
501
|
}, null, 8, [
|
|
@@ -500,8 +504,8 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
500
504
|
"active"
|
|
501
505
|
]),
|
|
502
506
|
b(X, {
|
|
503
|
-
icon: g(
|
|
504
|
-
label: g(
|
|
507
|
+
icon: g(ae),
|
|
508
|
+
label: g(_).paragraphEditor.alignCenter,
|
|
505
509
|
active: t.editor.isActive({ textAlign: "center" }),
|
|
506
510
|
onClick: r[12] ||= (e) => t.editor.chain().focus().setTextAlign("center").run()
|
|
507
511
|
}, null, 8, [
|
|
@@ -510,8 +514,8 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
510
514
|
"active"
|
|
511
515
|
]),
|
|
512
516
|
b(X, {
|
|
513
|
-
icon: g(
|
|
514
|
-
label: g(
|
|
517
|
+
icon: g(ie),
|
|
518
|
+
label: g(_).paragraphEditor.alignRight,
|
|
515
519
|
active: t.editor.isActive({ textAlign: "right" }),
|
|
516
520
|
onClick: r[13] ||= (e) => t.editor.chain().focus().setTextAlign("right").run()
|
|
517
521
|
}, null, 8, [
|
|
@@ -521,9 +525,9 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
521
525
|
]),
|
|
522
526
|
b(Z),
|
|
523
527
|
b(Q, {
|
|
524
|
-
"model-value":
|
|
525
|
-
options: g(
|
|
526
|
-
label: g(
|
|
528
|
+
"model-value": P(),
|
|
529
|
+
options: g(R),
|
|
530
|
+
label: g(_).paragraphEditor.lineHeight,
|
|
527
531
|
placeholder: "LH",
|
|
528
532
|
"width-class": "tpl:w-16",
|
|
529
533
|
"onUpdate:modelValue": F
|
|
@@ -533,12 +537,12 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
533
537
|
"label"
|
|
534
538
|
]),
|
|
535
539
|
b(Q, {
|
|
536
|
-
"model-value":
|
|
537
|
-
options: g(
|
|
538
|
-
label: g(
|
|
540
|
+
"model-value": w("letterSpacing"),
|
|
541
|
+
options: g(L),
|
|
542
|
+
label: g(_).paragraphEditor.letterSpacing,
|
|
539
543
|
placeholder: "LS",
|
|
540
544
|
"width-class": "tpl:w-20",
|
|
541
|
-
"onUpdate:modelValue":
|
|
545
|
+
"onUpdate:modelValue": U
|
|
542
546
|
}, null, 8, [
|
|
543
547
|
"model-value",
|
|
544
548
|
"options",
|
|
@@ -546,29 +550,29 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
546
550
|
]),
|
|
547
551
|
b(Z),
|
|
548
552
|
b(X, {
|
|
549
|
-
icon: g(
|
|
550
|
-
label: g(
|
|
553
|
+
icon: g(H),
|
|
554
|
+
label: g(_).paragraphEditor.clearFormatting,
|
|
551
555
|
onClick: r[14] ||= (e) => t.editor.chain().focus().clearNodes().unsetAllMarks().run()
|
|
552
556
|
}, null, 8, ["icon", "label"]),
|
|
553
557
|
b(Z),
|
|
554
|
-
b(
|
|
558
|
+
b(ue, { onInsert: C }),
|
|
555
559
|
t.canRequestMergeTag ? (e(), d(f, { key: 0 }, [b(Z), u("button", {
|
|
556
560
|
type: "button",
|
|
557
561
|
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)]",
|
|
558
|
-
"aria-label": g(
|
|
559
|
-
title: g(
|
|
562
|
+
"aria-label": g(_).mergeTag.add,
|
|
563
|
+
title: g(_).mergeTag.add,
|
|
560
564
|
onClick: r[15] ||= (e) => i("add-merge-tag")
|
|
561
|
-
}, [b(g(
|
|
565
|
+
}, [b(g(re), {
|
|
562
566
|
size: 16,
|
|
563
567
|
"stroke-width": 2
|
|
564
|
-
}), a(" " + v(g(
|
|
565
|
-
])], 64)) : (e(), d("div",
|
|
568
|
+
}), a(" " + v(g(_).mergeTag.add), 1)], 8, we)], 64)) : p("", !0)
|
|
569
|
+
])], 64)) : (e(), d("div", Te, [b(g(ne), {
|
|
566
570
|
class: "tpl-spinner",
|
|
567
571
|
size: 14,
|
|
568
572
|
"stroke-width": 2
|
|
569
|
-
}), a(" " + v(g(
|
|
573
|
+
}), a(" " + v(g(_).errors.editorLoading), 1)]))], 12, ve)], 8, ["to"])) : p("", !0);
|
|
570
574
|
}
|
|
571
|
-
}),
|
|
575
|
+
}), De = { class: "tpl-text-editor-wrapper tpl:relative" }, Oe = /* @__PURE__ */ s({
|
|
572
576
|
__name: "ParagraphEditor",
|
|
573
577
|
props: {
|
|
574
578
|
block: {},
|
|
@@ -576,13 +580,13 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
576
580
|
},
|
|
577
581
|
emits: ["done"],
|
|
578
582
|
setup(t, { emit: r }) {
|
|
579
|
-
let i = t, a = r, { editor:
|
|
583
|
+
let i = t, a = r, o = z(), { editor: s, EditorContent: c, isLoading: l, initError: u, retry: f, showLinkDialog: p, linkUrl: m, linkDialogRef: h, canRequestMergeTag: _, openLinkDialog: v, insertLink: y, removeLink: x, closeLinkDialog: S, handleLinkKeydown: w, handleAddMergeTag: T } = C({
|
|
580
584
|
blockId: () => i.block.id,
|
|
581
585
|
blockContent: () => i.block.content,
|
|
582
586
|
onDone: () => a("done"),
|
|
583
587
|
editorName: "ParagraphEditor",
|
|
584
588
|
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
585
|
-
let [{ Editor: a, EditorContent:
|
|
589
|
+
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([
|
|
586
590
|
import("./dist-Pk4MhWMP.js").then((e) => e.r),
|
|
587
591
|
import("./dist-D90y8dvT.js"),
|
|
588
592
|
import("./dist-DDJIWTRY.js"),
|
|
@@ -594,58 +598,59 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
594
598
|
import("./dist-D6uC2xhi.js"),
|
|
595
599
|
import("./dist-wzMIGj-D.js"),
|
|
596
600
|
import("./dist-DjviJBCi.js"),
|
|
597
|
-
import("./extensions-
|
|
601
|
+
import("./extensions-D-J02CiP.js")
|
|
598
602
|
]);
|
|
599
603
|
return {
|
|
600
604
|
TiptapEditor: a,
|
|
601
|
-
EC:
|
|
605
|
+
EC: s,
|
|
602
606
|
extensions: [
|
|
603
|
-
|
|
607
|
+
c.configure({
|
|
604
608
|
heading: !1,
|
|
605
609
|
codeBlock: !1,
|
|
606
610
|
blockquote: !1,
|
|
607
611
|
horizontalRule: !1
|
|
608
612
|
}),
|
|
609
|
-
l,
|
|
610
613
|
u,
|
|
611
614
|
d,
|
|
612
|
-
|
|
615
|
+
f,
|
|
616
|
+
l.configure({
|
|
613
617
|
openOnClick: !1,
|
|
614
618
|
HTMLAttributes: {
|
|
615
619
|
target: "_blank",
|
|
616
620
|
rel: "noopener noreferrer"
|
|
617
621
|
}
|
|
618
622
|
}),
|
|
619
|
-
|
|
620
|
-
p,
|
|
623
|
+
p.configure({ types: ["paragraph"] }),
|
|
621
624
|
m,
|
|
622
625
|
h,
|
|
623
|
-
g
|
|
624
|
-
|
|
626
|
+
g,
|
|
627
|
+
_.configure({ multicolor: !0 }),
|
|
625
628
|
x,
|
|
626
629
|
S,
|
|
627
|
-
|
|
630
|
+
C,
|
|
631
|
+
v.configure({
|
|
628
632
|
mergeTags: e,
|
|
629
633
|
syntax: t
|
|
630
634
|
}),
|
|
631
|
-
|
|
632
|
-
...r && n && e.length > 0 ? [
|
|
635
|
+
b.configure({ syntax: t }),
|
|
636
|
+
...r && n && e.length > 0 ? [y.configure({
|
|
633
637
|
mergeTags: e,
|
|
634
638
|
char: n,
|
|
635
|
-
emptyText: i
|
|
639
|
+
emptyText: i,
|
|
640
|
+
popoverRoot: o
|
|
636
641
|
})] : []
|
|
637
642
|
]
|
|
638
643
|
};
|
|
639
644
|
}
|
|
640
645
|
});
|
|
641
|
-
return (r, i) => (e(), d("div",
|
|
642
|
-
b(
|
|
643
|
-
editor: g(
|
|
646
|
+
return (r, i) => (e(), d("div", De, [
|
|
647
|
+
b(Ee, {
|
|
648
|
+
editor: g(s),
|
|
644
649
|
"toolbar-position": t.toolbarPosition,
|
|
645
|
-
"is-loading": g(
|
|
646
|
-
"can-request-merge-tag": g(
|
|
647
|
-
onOpenLinkDialog: g(
|
|
648
|
-
onAddMergeTag: g(
|
|
650
|
+
"is-loading": g(l),
|
|
651
|
+
"can-request-merge-tag": g(_),
|
|
652
|
+
onOpenLinkDialog: g(v),
|
|
653
|
+
onAddMergeTag: g(T)
|
|
649
654
|
}, null, 8, [
|
|
650
655
|
"editor",
|
|
651
656
|
"toolbar-position",
|
|
@@ -654,12 +659,12 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
654
659
|
"onOpenLinkDialog",
|
|
655
660
|
"onAddMergeTag"
|
|
656
661
|
]),
|
|
657
|
-
b(
|
|
658
|
-
editor: g(
|
|
659
|
-
"editor-content": g(
|
|
660
|
-
"is-loading": g(
|
|
661
|
-
"init-error": g(
|
|
662
|
-
onRetry: g(
|
|
662
|
+
b(P, {
|
|
663
|
+
editor: g(s),
|
|
664
|
+
"editor-content": g(c),
|
|
665
|
+
"is-loading": g(l),
|
|
666
|
+
"init-error": g(u),
|
|
667
|
+
onRetry: g(f)
|
|
663
668
|
}, null, 8, [
|
|
664
669
|
"editor",
|
|
665
670
|
"editor-content",
|
|
@@ -667,17 +672,17 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
667
672
|
"init-error",
|
|
668
673
|
"onRetry"
|
|
669
674
|
]),
|
|
670
|
-
b(
|
|
671
|
-
visible: g(
|
|
672
|
-
"is-editing-link": g(
|
|
673
|
-
"dialog-ref": g(
|
|
674
|
-
"onUpdate:dialogRef": i[0] ||= (e) => n(
|
|
675
|
-
"link-url": g(
|
|
676
|
-
"onUpdate:linkUrl": i[1] ||= (e) => n(
|
|
677
|
-
onClose: g(
|
|
678
|
-
onInsert: g(
|
|
679
|
-
onRemove: g(
|
|
680
|
-
onKeydown: g(
|
|
675
|
+
b(M, {
|
|
676
|
+
visible: g(p),
|
|
677
|
+
"is-editing-link": g(s)?.isActive("link") ?? !1,
|
|
678
|
+
"dialog-ref": g(h),
|
|
679
|
+
"onUpdate:dialogRef": i[0] ||= (e) => n(h) ? h.value = e : null,
|
|
680
|
+
"link-url": g(m),
|
|
681
|
+
"onUpdate:linkUrl": i[1] ||= (e) => n(m) ? m.value = e : null,
|
|
682
|
+
onClose: g(S),
|
|
683
|
+
onInsert: g(y),
|
|
684
|
+
onRemove: g(x),
|
|
685
|
+
onKeydown: g(w)
|
|
681
686
|
}, null, 8, [
|
|
682
687
|
"visible",
|
|
683
688
|
"is-editing-link",
|
|
@@ -692,4 +697,4 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
692
697
|
}
|
|
693
698
|
});
|
|
694
699
|
//#endregion
|
|
695
|
-
export {
|
|
700
|
+
export { Oe as default };
|