@templatical/editor 0.13.0 → 0.14.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-B0-U5-sb.js → AiChatSidebar-J8iO_sX7.js} +14 -14
- package/dist/{AiFeatureMenu-DxDwLS8B.js → AiFeatureMenu-F2diEDgV.js} +10 -10
- package/dist/{BlockIssueBadge-C-EPqWsh.js → BlockIssueBadge-a-qlByxF.js} +5 -5
- package/dist/{CloudEditor-DaEfipBn.js → CloudEditor-CDjtwb4i.js} +236 -234
- package/dist/{CollaboratorBar-DgwjisX2.js → CollaboratorBar-B_EnJLtW.js} +4 -4
- package/dist/{CommentsSidebar-CpRLN40c.js → CommentsSidebar-DaP9BA_r.js} +18 -18
- package/dist/{CountdownBlock-DO9fziwf.js → CountdownBlock-DtAokAVw.js} +3 -3
- package/dist/{CountdownToolbar-BeII06yJ.js → CountdownToolbar-Dtqgwy0g.js} +3 -3
- package/dist/{DesignReferenceSidebar-BgPDbOsl.js → DesignReferenceSidebar-BHRlTqlT.js} +10 -10
- package/dist/{IssuesPanel-I0z6k6-H.js → IssuesPanel-u7ee3Wrl.js} +11 -11
- package/dist/{LoadingTrack-C7mGWPHS.js → LoadingTrack-CV3ID80N.js} +1 -1
- package/dist/ModuleBrowserModal-DOsdaS6s.js +201 -0
- package/dist/{ModulePreviewCanvas-Dni9kK4j.js → ModulePreviewCanvas-Cx4MOJ0X.js} +3 -3
- package/dist/{NumberWithSuffix-D3fdj0iO.js → NumberWithSuffix-D2mW_DhT.js} +4 -4
- package/dist/{ParagraphEditor-CZ-cmhX3.js → ParagraphEditor-DMzkVnST.js} +153 -133
- package/dist/{RichTextEditorContent-Q5altsx1.js → RichTextEditorContent-CRCxCwKf.js} +7 -7
- package/dist/{SaveModuleDialog-C38VqN2T.js → SaveModuleDialog-DuEKgumL.js} +8 -8
- package/dist/{SnapshotHistory-ByloTpwh.js → SnapshotHistory-CVgiNJtE.js} +12 -12
- package/dist/{TemplateScoringPanel-CUxiPtEf.js → TemplateScoringPanel-lm0_9nYi.js} +25 -25
- package/dist/{TestEmailModal-BvZBMBad.js → TestEmailModal-WBMdiW5S.js} +5 -5
- package/dist/{TitleEditor-DbNOcvhR.js → TitleEditor-eyT0h-Sa.js} +71 -55
- package/dist/{TplModal-BYb-X5Bj.js → TplModal-tjQ7OB0g.js} +4 -4
- package/dist/{blockTypeIcons-CyAom3iI.js → blockTypeIcons-DdB3uTKD.js} +5 -5
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-BSoy-SoF.js → AiFeatureMenu-D7rB2SBs.js} +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-BSoy-SoF.js.map → AiFeatureMenu-D7rB2SBs.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-BQDUuJxy.js → BlockIssueBadge-DHOe0pgx.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-BQDUuJxy.js.map → BlockIssueBadge-DHOe0pgx.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-BZuzsQOZ.js → CloudEditor-DNed_Ym0.js} +208 -206
- package/dist/cdn/chunks/CloudEditor-DNed_Ym0.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-DUpSrtDr.js → CollaboratorBar-sj_9Lee3.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-DUpSrtDr.js.map → CollaboratorBar-sj_9Lee3.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-DChGTAsH.js → CountdownBlock-C1Ikjpn4.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-DChGTAsH.js.map → CountdownBlock-C1Ikjpn4.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-C6gX2SJr.js → CountdownToolbar-j1G_X8rB.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-C6gX2SJr.js.map → CountdownToolbar-j1G_X8rB.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-Bo1uhdSe.js → IssuesPanel-CTOf3PsH.js} +11 -11
- package/dist/cdn/chunks/{IssuesPanel-Bo1uhdSe.js.map → IssuesPanel-CTOf3PsH.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-a-tZRCcD.js → ModuleBrowserModal-DCh88-rr.js} +11 -8
- package/dist/cdn/chunks/{ModuleBrowserModal-a-tZRCcD.js.map → ModuleBrowserModal-DCh88-rr.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-Bm6k0Op0.js → ModulePreviewCanvas-DJqvTKmg.js} +21 -21
- package/dist/cdn/chunks/{ModulePreviewCanvas-Bm6k0Op0.js.map → ModulePreviewCanvas-DJqvTKmg.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-HTbuD3VJ.js → NumberWithSuffix-Bu45XWSl.js} +5 -5
- package/dist/cdn/chunks/{NumberWithSuffix-HTbuD3VJ.js.map → NumberWithSuffix-Bu45XWSl.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-pGrfSccu.js → ParagraphEditor-DwZqLJp2.js} +130 -110
- package/dist/cdn/chunks/ParagraphEditor-DwZqLJp2.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-D7XZix_1.js → RichTextEditorContent-CIuZ-2DV.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-D7XZix_1.js.map → RichTextEditorContent-CIuZ-2DV.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-C9PQ9x6j.js → SaveModuleDialog-Bep0X2s_.js} +6 -6
- package/dist/cdn/chunks/{SaveModuleDialog-C9PQ9x6j.js.map → SaveModuleDialog-Bep0X2s_.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BvFbL16O.js → TitleEditor-DO1-h3RY.js} +62 -46
- package/dist/cdn/chunks/TitleEditor-DO1-h3RY.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-8o24HVJu.js +22 -0
- package/dist/cdn/chunks/{blockTypeIcons-Kd1MT0u8.js.map → blockTypeIcons-8o24HVJu.js.map} +1 -1
- package/dist/{de-C2wOXoxs.js → cdn/chunks/de-LsV0u1tP.js} +19 -1
- package/dist/cdn/chunks/de-LsV0u1tP.js.map +1 -0
- package/dist/cdn/chunks/{draggable-Bci-fq8y.js → draggable-kPCz_3zM.js} +14 -5
- package/dist/cdn/chunks/{draggable-Bci-fq8y.js.map → draggable-kPCz_3zM.js.map} +1 -1
- package/dist/cdn/chunks/{en-dR7zfNC3.js → en-Bb8X1bOs.js} +18 -2
- package/dist/cdn/chunks/en-Bb8X1bOs.js.map +1 -0
- package/dist/cdn/chunks/{extensions-CuUjSmuA.js → extensions-iwBXnEwq.js} +16 -16
- package/dist/cdn/chunks/{extensions-CuUjSmuA.js.map → extensions-iwBXnEwq.js.map} +1 -1
- package/dist/cdn/chunks/{features-DU6lA8l1.js → features-CkTMVylx.js} +940 -812
- package/dist/cdn/chunks/features-CkTMVylx.js.map +1 -0
- package/dist/cdn/chunks/{icons-BjHUZZyJ.js → icons-9zjCuoJx.js} +158 -152
- package/dist/cdn/chunks/icons-9zjCuoJx.js.map +1 -0
- package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +1 -1
- package/dist/cdn/chunks/{media-library-Byelliig.js → media-library-DMRIPx4g.js} +552 -550
- package/dist/cdn/chunks/{media-library-Byelliig.js.map → media-library-DMRIPx4g.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-BZ86xqK6.js → pt-BR-BwJY_cvb.js} +18 -2
- package/dist/cdn/chunks/pt-BR-BwJY_cvb.js.map +1 -0
- package/dist/cdn/chunks/{pusher-BICWUP2j.js → pusher-CdEqyLwF.js} +6 -3
- package/dist/cdn/chunks/{pusher-BICWUP2j.js.map → pusher-CdEqyLwF.js.map} +1 -1
- package/dist/cdn/chunks/quality-CyeUgs_c.js +2176 -0
- package/dist/cdn/chunks/{quality-DNnYAntR.js.map → quality-CyeUgs_c.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-CZKO-Tav.js → renderer-BIKUEKDD.js} +39 -30
- package/dist/cdn/chunks/{renderer-CZKO-Tav.js.map → renderer-BIKUEKDD.js.map} +1 -1
- package/dist/cdn/chunks/{src-DsqSXXjk.js → src-pDy_imWG.js} +11 -11
- package/dist/cdn/chunks/{src-DsqSXXjk.js.map → src-pDy_imWG.js.map} +1 -1
- package/dist/cdn/chunks/{styles-DiAdtiz9.js → styles-D4Bd3SCx.js} +1197 -822
- package/dist/cdn/chunks/styles-D4Bd3SCx.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-CwScfbsM.js → tiptap-BlLFFU3M.js} +2233 -2213
- package/dist/cdn/chunks/tiptap-BlLFFU3M.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +117 -115
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-BRzXxFHr.js → check-CYJwFmjy.js} +1 -1
- package/dist/{chevron-down-DmEgzmYT.js → chevron-down-C5l-DzAA.js} +1 -1
- package/dist/{circle-alert-BStvZr3O.js → circle-alert-wf5HUFZY.js} +1 -1
- package/dist/{clock-Blwp_1R6.js → clock-Bj0bQw-K.js} +1 -1
- package/dist/{cloud-_olro76D.js → cloud-CoFDm9YA.js} +1 -1
- package/dist/{createLucideIcon-CmPAC-gt.js → createLucideIcon-Bad2kKE0.js} +4 -4
- package/dist/{cdn/chunks/de-C2wOXoxs.js → de-LsV0u1tP.js} +17 -3
- package/dist/{dist-BwgjpLfr.js → dist-34OcyoK1.js} +1 -1
- package/dist/{dist-Cz79qrLL.js → dist-B7w6xTU6.js} +1 -1
- package/dist/{dist-DULfKmTh.js → dist-BX3gGwL8.js} +5 -5
- package/dist/{dist-412xXefB.js → dist-Bn703mnA.js} +1 -1
- package/dist/{dist-u0iIJH3V.js → dist-CADDCv0o.js} +1 -1
- package/dist/{dist-BNEdeWub.js → dist-CGvz7vkq.js} +1 -1
- package/dist/{dist-BlG7k25W.js → dist-CLpPNKy9.js} +1 -1
- package/dist/{dist-BCQZZUE9.js → dist-ChMninLH.js} +1 -1
- package/dist/{dist-b7Ak-CuM.js → dist-CrQZ_af9.js} +1 -1
- package/dist/{dist-DhKTdU52.js → dist-CyjyYg52.js} +1426 -1406
- package/dist/{dist-D6x1cQeh.js → dist-Dd3ibRZm.js} +2 -2
- package/dist/{dist-Cgry6fNv.js → dist-DuCzdgDA.js} +1 -1
- package/dist/{dist-o73iaGqy.js → dist-U5vfDdYI.js} +1 -1
- package/dist/{en-dR7zfNC3.js → en-Bb8X1bOs.js} +17 -1
- package/dist/{extensions-XPlNAKIL.js → extensions-J439b7y7.js} +5 -5
- package/dist/{image-up-BFPbw_Zq.js → image-up-x8-WXfsx.js} +1 -1
- package/dist/index.d.ts +17 -0
- package/dist/{info-B_qLEBN2.js → info-RS_fGcGi.js} +1 -1
- package/dist/keys-DgYXDafq.js +10 -0
- package/dist/{list-checks-CGg7JxPm.js → list-checks-Bf7XdDyv.js} +1 -1
- package/dist/{loader-circle-CDF8eR_Q.js → loader-circle-CLZ0_FvW.js} +1 -1
- package/dist/{message-circle-C3cHsCJl.js → message-circle-B-1bN9ab.js} +1 -1
- package/dist/{pt-BR-BZ86xqK6.js → pt-BR-BwJY_cvb.js} +17 -1
- package/dist/{refresh-cw-Butml7Q4.js → refresh-cw-CWKWqJYG.js} +1 -1
- package/dist/scan-line-BtK5dEai.js +31 -0
- package/dist/{send-k7npFJNO.js → send-Cn1IUdzh.js} +1 -1
- package/dist/{shield-check-CV6GbmCu.js → shield-check-CrvMk4Ea.js} +1 -1
- package/dist/{sparkles-C965Xop4.js → sparkles-CgfjwvnG.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styles-D0RCAWhB.js → styles-BUwDOWd3.js} +1221 -846
- package/dist/templatical-editor.js +95 -93
- package/dist/{text-align-start-Bxnps8fH.js → text-align-start-C3r_Rnvy.js} +1 -1
- package/dist/{trash-2-DpGb7fIt.js → trash-2-CjERg4x9.js} +1 -1
- package/dist/{triangle-alert-BKYElAwz.js → triangle-alert-Chkny574.js} +1 -1
- package/dist/{upload-BF7sxd1_.js → upload-e5kDRkPb.js} +1 -1
- package/dist/{useAliveFlag-BinvbqQR.js → useAliveFlag-cUQj9rmB.js} +1 -1
- package/dist/{useCloudI18n-L3H2XvdW.js → useCloudI18n-CYJKqXtI.js} +2 -2
- package/dist/{useEditorCore-DKYZ7aKk.js → useEditorCore-8JxXDOA4.js} +1031 -903
- package/dist/{useI18n-CTs_bP9d.js → useI18n-BWqM8i78.js} +2 -2
- package/dist/{useMergeTag-e3RSY-s3.js → useMergeTag-NHC4ylza.js} +3 -3
- package/dist/usePopoverRoot-B1sdY4es.js +8 -0
- package/dist/{vue.runtime.esm-bundler-B2k01iQh.js → vue.runtime.esm-bundler-BPa483TZ.js} +13 -4
- package/dist/{x-CGjkjdKK.js → x-DiPIbccg.js} +1 -1
- package/package.json +12 -12
- package/dist/ModuleBrowserModal-DsZRr87F.js +0 -198
- package/dist/cdn/chunks/CloudEditor-BZuzsQOZ.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-pGrfSccu.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-BvFbL16O.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-Kd1MT0u8.js +0 -22
- package/dist/cdn/chunks/de-C2wOXoxs.js.map +0 -1
- package/dist/cdn/chunks/en-dR7zfNC3.js.map +0 -1
- package/dist/cdn/chunks/features-DU6lA8l1.js.map +0 -1
- package/dist/cdn/chunks/icons-BjHUZZyJ.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-BZ86xqK6.js.map +0 -1
- package/dist/cdn/chunks/quality-DNnYAntR.js +0 -2176
- package/dist/cdn/chunks/styles-DiAdtiz9.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CwScfbsM.js.map +0 -1
- package/dist/keys-mFiJ5N0_.js +0 -10
- package/dist/scan-line-XYEqim_E.js +0 -25
- package/dist/usePopoverRoot-DVh7NY1q.js +0 -8
|
@@ -1,27 +1,27 @@
|
|
|
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-
|
|
2
|
-
import { $ as S,
|
|
3
|
-
import {
|
|
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-kPCz_3zM.js";
|
|
2
|
+
import { $t as S, Lt as C, Qt as w, X as T, Zt as E, at as D, bt as O, cn as ee, et as k, it as A, k as j, ln as M, on as te, sn as ne } from "./features-CkTMVylx.js";
|
|
3
|
+
import { B as re, C as ie, H as ae, L as oe, R as se, X as ce, Z as le, b as ue, c as de, d as fe, f as pe, g as N, i as P, l as F, o as I, s as L } from "./icons-9zjCuoJx.js";
|
|
4
|
+
import { a as R, o as z, s as B } from "./styleConstants-lGobwiLH.js";
|
|
5
|
+
import { n as V, t as H } from "./RichTextEditorContent-CIuZ-2DV.js";
|
|
6
6
|
//#region src/components/blocks/EmojiPickerDropdown.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
7
|
+
var U = [
|
|
8
8
|
"aria-label",
|
|
9
9
|
"title",
|
|
10
10
|
"aria-expanded"
|
|
11
|
-
],
|
|
11
|
+
], W = ["aria-label"], G = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, K = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, q = ["aria-label", "onClick"], me = /* @__PURE__ */ b({
|
|
12
12
|
__name: "EmojiPickerDropdown",
|
|
13
13
|
emits: ["insert"],
|
|
14
14
|
setup(e, { emit: t }) {
|
|
15
|
-
let i = t, { categories: c, isOpen: m, toggle: _, close: y } =
|
|
16
|
-
|
|
15
|
+
let i = t, { categories: c, isOpen: m, toggle: _, close: y } = k(), { t: b, format: S } = C(), w = a(null), T = a(null);
|
|
16
|
+
A(w, l(() => m.value)), M(T, () => {
|
|
17
17
|
m.value && y();
|
|
18
18
|
});
|
|
19
|
-
function
|
|
19
|
+
function E(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: T,
|
|
25
25
|
class: "tpl:relative"
|
|
26
26
|
}, [g("button", {
|
|
27
27
|
type: "button",
|
|
@@ -32,14 +32,14 @@ var W = [
|
|
|
32
32
|
"aria-haspopup": "dialog",
|
|
33
33
|
"aria-controls": "tpl-emoji-picker",
|
|
34
34
|
onClick: t[0] ||= (...e) => f(_) && f(_)(...e)
|
|
35
|
-
}, [x(f(
|
|
35
|
+
}, [x(f(N), {
|
|
36
36
|
size: 16,
|
|
37
37
|
"stroke-width": 2
|
|
38
|
-
})], 10,
|
|
38
|
+
})], 10, U), f(m) ? (n(), u("div", {
|
|
39
39
|
key: 0,
|
|
40
40
|
id: "tpl-emoji-picker",
|
|
41
41
|
ref_key: "pickerRef",
|
|
42
|
-
ref:
|
|
42
|
+
ref: w,
|
|
43
43
|
role: "dialog",
|
|
44
44
|
"aria-modal": "false",
|
|
45
45
|
"aria-label": f(b).paragraphEditor.insertEmoji,
|
|
@@ -49,19 +49,19 @@ var W = [
|
|
|
49
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
|
-
}, [g("div",
|
|
52
|
+
}, [g("div", G, s(f(b).emoji[e.key]), 1), g("div", K, [(n(!0), u(v, null, r(e.emojis, (e) => (n(), u("button", {
|
|
53
53
|
key: e,
|
|
54
54
|
type: "button",
|
|
55
|
-
"aria-label": f(
|
|
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
|
-
}, s(e), 9,
|
|
57
|
+
onClick: (t) => E(e)
|
|
58
|
+
}, s(e), 9, q))), 128))])]))), 128))], 40, W)) : d("", !0)], 512));
|
|
59
59
|
}
|
|
60
|
-
}),
|
|
60
|
+
}), J = [
|
|
61
61
|
"aria-label",
|
|
62
62
|
"title",
|
|
63
63
|
"aria-pressed"
|
|
64
|
-
],
|
|
64
|
+
], Y = /* @__PURE__ */ b({
|
|
65
65
|
__name: "ToolbarIconButton",
|
|
66
66
|
props: {
|
|
67
67
|
icon: {},
|
|
@@ -80,20 +80,20 @@ var W = [
|
|
|
80
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, J));
|
|
84
84
|
}
|
|
85
|
-
}),
|
|
85
|
+
}), X = {}, he = {
|
|
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 ge(e, t) {
|
|
90
|
+
return n(), u("span", he);
|
|
91
91
|
}
|
|
92
|
-
var Z = /*#__PURE__*/
|
|
92
|
+
var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
|
|
93
93
|
"value",
|
|
94
94
|
"aria-label",
|
|
95
95
|
"title"
|
|
96
|
-
],
|
|
96
|
+
], ve = { value: "" }, ye = ["value"], Q = /* @__PURE__ */ b({
|
|
97
97
|
__name: "ToolbarSelect",
|
|
98
98
|
props: {
|
|
99
99
|
modelValue: {},
|
|
@@ -120,37 +120,42 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
|
|
|
120
120
|
"aria-label": e.label,
|
|
121
121
|
title: e.label,
|
|
122
122
|
onChange: a
|
|
123
|
-
}, [g("option",
|
|
123
|
+
}, [g("option", ve, s(e.placeholder ?? ""), 1), (n(!0), u(v, null, r(e.options, (e) => (n(), u("option", {
|
|
124
124
|
key: o(e),
|
|
125
125
|
value: o(e)
|
|
126
|
-
}, s(c(e)), 9,
|
|
126
|
+
}, s(c(e)), 9, ye))), 128))], 42, _e));
|
|
127
127
|
}
|
|
128
|
-
}),
|
|
128
|
+
}), be = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-center tpl:gap-1" }, xe = { class: "tpl:relative" }, Se = [
|
|
129
129
|
"value",
|
|
130
130
|
"aria-label",
|
|
131
131
|
"title"
|
|
132
|
-
],
|
|
132
|
+
], Ce = { class: "tpl:relative" }, we = [
|
|
133
133
|
"value",
|
|
134
134
|
"aria-label",
|
|
135
135
|
"title"
|
|
136
|
-
],
|
|
136
|
+
], Te = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Ee = ["aria-label", "title"], De = ["aria-label", "title"], Oe = {
|
|
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
|
+
}, ke = /* @__PURE__ */ b({
|
|
140
140
|
__name: "ParagraphToolbar",
|
|
141
141
|
props: {
|
|
142
142
|
editor: {},
|
|
143
143
|
toolbarPosition: {},
|
|
144
144
|
isLoading: { type: Boolean },
|
|
145
|
-
canRequestMergeTag: { type: Boolean }
|
|
145
|
+
canRequestMergeTag: { type: Boolean },
|
|
146
|
+
canInsertLogicTag: { type: Boolean }
|
|
146
147
|
},
|
|
147
|
-
emits: [
|
|
148
|
+
emits: [
|
|
149
|
+
"open-link-dialog",
|
|
150
|
+
"add-merge-tag",
|
|
151
|
+
"add-logic-tag"
|
|
152
|
+
],
|
|
148
153
|
setup(e, { emit: t }) {
|
|
149
|
-
let r = e, a = t, o = i(
|
|
154
|
+
let r = e, a = t, o = i(te, null), p = i(ne, null), h = ee(E, "ParagraphToolbar"), b = j(), T = i(S, null), D = i(w, null), k = l(() => (T?.isOpen.value ?? !1) || (D?.isOpen.value ?? !1)), { t: A } = C(), M = h.fonts;
|
|
150
155
|
function N(e) {
|
|
151
156
|
r.editor?.chain().focus().insertContent(e).run();
|
|
152
157
|
}
|
|
153
|
-
function
|
|
158
|
+
function V(e) {
|
|
154
159
|
return r.editor?.getAttributes("textStyle")[e] || "";
|
|
155
160
|
}
|
|
156
161
|
function H(e) {
|
|
@@ -179,11 +184,11 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
|
|
|
179
184
|
function J() {
|
|
180
185
|
return r.editor?.getAttributes("highlight").color || "";
|
|
181
186
|
}
|
|
182
|
-
function
|
|
187
|
+
function X(e) {
|
|
183
188
|
let t = r.editor?.chain().focus();
|
|
184
189
|
e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
|
|
185
190
|
}
|
|
186
|
-
return (t, r) => f(b) && !
|
|
191
|
+
return (t, r) => f(b) && !k.value ? (n(), m(c, {
|
|
187
192
|
key: 0,
|
|
188
193
|
to: f(b)
|
|
189
194
|
}, [g("div", {
|
|
@@ -198,9 +203,9 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
|
|
|
198
203
|
transform: "translateY(-100%)",
|
|
199
204
|
flexDirection: "column"
|
|
200
205
|
})
|
|
201
|
-
}, [!e.isLoading && e.editor ? (n(), u(v, { key: 0 }, [g("div",
|
|
206
|
+
}, [!e.isLoading && e.editor ? (n(), u(v, { key: 0 }, [g("div", $, [
|
|
202
207
|
x(Q, {
|
|
203
|
-
"model-value":
|
|
208
|
+
"model-value": V("fontFamily"),
|
|
204
209
|
options: f(M),
|
|
205
210
|
label: f(A).paragraphEditor.fontFamily,
|
|
206
211
|
placeholder: f(A).paragraphEditor.defaultFont,
|
|
@@ -213,8 +218,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
|
|
|
213
218
|
"placeholder"
|
|
214
219
|
]),
|
|
215
220
|
x(Q, {
|
|
216
|
-
"model-value":
|
|
217
|
-
options: f(
|
|
221
|
+
"model-value": V("fontSize"),
|
|
222
|
+
options: f(R),
|
|
218
223
|
label: f(A).paragraphEditor.fontSize,
|
|
219
224
|
placeholder: f(A).paragraphEditor.defaultSize,
|
|
220
225
|
"width-class": "tpl:w-20",
|
|
@@ -226,26 +231,26 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
|
|
|
226
231
|
"placeholder"
|
|
227
232
|
]),
|
|
228
233
|
x(Z),
|
|
229
|
-
g("div",
|
|
234
|
+
g("div", xe, [g("input", {
|
|
230
235
|
type: "color",
|
|
231
236
|
class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-1",
|
|
232
|
-
value:
|
|
237
|
+
value: V("color") || f("#000000"),
|
|
233
238
|
"aria-label": f(A).paragraphEditor.textColor,
|
|
234
239
|
title: f(A).paragraphEditor.textColor,
|
|
235
240
|
onInput: r[0] ||= (e) => W(e.target.value)
|
|
236
|
-
}, null, 40,
|
|
237
|
-
g("div",
|
|
241
|
+
}, null, 40, Se)]),
|
|
242
|
+
g("div", Ce, [g("input", {
|
|
238
243
|
type: "color",
|
|
239
244
|
class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:p-1",
|
|
240
245
|
style: _({ backgroundColor: J() || "var(--tpl-bg)" }),
|
|
241
246
|
value: J() || f("#ffff00"),
|
|
242
247
|
"aria-label": f(A).paragraphEditor.highlightColor,
|
|
243
248
|
title: f(A).paragraphEditor.highlightColor,
|
|
244
|
-
onInput: r[1] ||= (e) =>
|
|
245
|
-
}, null, 44,
|
|
249
|
+
onInput: r[1] ||= (e) => X(e.target.value)
|
|
250
|
+
}, null, 44, we)]),
|
|
246
251
|
x(Z),
|
|
247
|
-
x(
|
|
248
|
-
icon: f(
|
|
252
|
+
x(Y, {
|
|
253
|
+
icon: f(le),
|
|
249
254
|
label: f(A).paragraphEditor.bold,
|
|
250
255
|
active: e.editor.isActive("bold"),
|
|
251
256
|
"stroke-width": 2.5,
|
|
@@ -255,8 +260,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
|
|
|
255
260
|
"label",
|
|
256
261
|
"active"
|
|
257
262
|
]),
|
|
258
|
-
x(
|
|
259
|
-
icon: f(
|
|
263
|
+
x(Y, {
|
|
264
|
+
icon: f(ae),
|
|
260
265
|
label: f(A).paragraphEditor.italic,
|
|
261
266
|
active: e.editor.isActive("italic"),
|
|
262
267
|
onClick: r[3] ||= (t) => e.editor.chain().focus().toggleItalic().run()
|
|
@@ -265,8 +270,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
|
|
|
265
270
|
"label",
|
|
266
271
|
"active"
|
|
267
272
|
]),
|
|
268
|
-
x(
|
|
269
|
-
icon: f(
|
|
273
|
+
x(Y, {
|
|
274
|
+
icon: f(P),
|
|
270
275
|
label: f(A).paragraphEditor.underline,
|
|
271
276
|
active: e.editor.isActive("underline"),
|
|
272
277
|
onClick: r[4] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
|
|
@@ -275,8 +280,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
|
|
|
275
280
|
"label",
|
|
276
281
|
"active"
|
|
277
282
|
]),
|
|
278
|
-
x(
|
|
279
|
-
icon: f(
|
|
283
|
+
x(Y, {
|
|
284
|
+
icon: f(pe),
|
|
280
285
|
label: f(A).paragraphEditor.strikethrough,
|
|
281
286
|
active: e.editor.isActive("strike"),
|
|
282
287
|
onClick: r[5] ||= (t) => e.editor.chain().focus().toggleStrike().run()
|
|
@@ -286,8 +291,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
|
|
|
286
291
|
"active"
|
|
287
292
|
]),
|
|
288
293
|
x(Z),
|
|
289
|
-
x(
|
|
290
|
-
icon: f(
|
|
294
|
+
x(Y, {
|
|
295
|
+
icon: f(fe),
|
|
291
296
|
label: f(A).paragraphEditor.subscript,
|
|
292
297
|
active: e.editor.isActive("subscript"),
|
|
293
298
|
onClick: r[6] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
|
|
@@ -296,8 +301,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
|
|
|
296
301
|
"label",
|
|
297
302
|
"active"
|
|
298
303
|
]),
|
|
299
|
-
x(
|
|
300
|
-
icon: f(
|
|
304
|
+
x(Y, {
|
|
305
|
+
icon: f(F),
|
|
301
306
|
label: f(A).paragraphEditor.superscript,
|
|
302
307
|
active: e.editor.isActive("superscript"),
|
|
303
308
|
onClick: r[7] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
|
|
@@ -307,8 +312,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
|
|
|
307
312
|
"active"
|
|
308
313
|
]),
|
|
309
314
|
x(Z),
|
|
310
|
-
x(
|
|
311
|
-
icon: f(
|
|
315
|
+
x(Y, {
|
|
316
|
+
icon: f(re),
|
|
312
317
|
label: f(A).paragraphEditor.addLink,
|
|
313
318
|
active: e.editor.isActive("link"),
|
|
314
319
|
onClick: r[8] ||= (e) => a("open-link-dialog")
|
|
@@ -317,9 +322,9 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
|
|
|
317
322
|
"label",
|
|
318
323
|
"active"
|
|
319
324
|
])
|
|
320
|
-
]), g("div",
|
|
321
|
-
x(
|
|
322
|
-
icon: f(
|
|
325
|
+
]), g("div", Te, [
|
|
326
|
+
x(Y, {
|
|
327
|
+
icon: f(oe),
|
|
323
328
|
label: f(A).paragraphEditor.bulletList,
|
|
324
329
|
active: e.editor.isActive("bulletList"),
|
|
325
330
|
onClick: r[9] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
|
|
@@ -328,8 +333,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
|
|
|
328
333
|
"label",
|
|
329
334
|
"active"
|
|
330
335
|
]),
|
|
331
|
-
x(
|
|
332
|
-
icon: f(
|
|
336
|
+
x(Y, {
|
|
337
|
+
icon: f(se),
|
|
333
338
|
label: f(A).paragraphEditor.numberedList,
|
|
334
339
|
active: e.editor.isActive("orderedList"),
|
|
335
340
|
onClick: r[10] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
|
|
@@ -339,8 +344,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
|
|
|
339
344
|
"active"
|
|
340
345
|
]),
|
|
341
346
|
x(Z),
|
|
342
|
-
x(
|
|
343
|
-
icon: f(
|
|
347
|
+
x(Y, {
|
|
348
|
+
icon: f(I),
|
|
344
349
|
label: f(A).paragraphEditor.alignLeft,
|
|
345
350
|
active: e.editor.isActive({ textAlign: "left" }),
|
|
346
351
|
onClick: r[11] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
|
|
@@ -349,8 +354,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
|
|
|
349
354
|
"label",
|
|
350
355
|
"active"
|
|
351
356
|
]),
|
|
352
|
-
x(
|
|
353
|
-
icon: f(
|
|
357
|
+
x(Y, {
|
|
358
|
+
icon: f(de),
|
|
354
359
|
label: f(A).paragraphEditor.alignCenter,
|
|
355
360
|
active: e.editor.isActive({ textAlign: "center" }),
|
|
356
361
|
onClick: r[12] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
|
|
@@ -359,8 +364,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
|
|
|
359
364
|
"label",
|
|
360
365
|
"active"
|
|
361
366
|
]),
|
|
362
|
-
x(
|
|
363
|
-
icon: f(
|
|
367
|
+
x(Y, {
|
|
368
|
+
icon: f(L),
|
|
364
369
|
label: f(A).paragraphEditor.alignRight,
|
|
365
370
|
active: e.editor.isActive({ textAlign: "right" }),
|
|
366
371
|
onClick: r[13] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
|
|
@@ -372,7 +377,7 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
|
|
|
372
377
|
x(Z),
|
|
373
378
|
x(Q, {
|
|
374
379
|
"model-value": G(),
|
|
375
|
-
options: f(
|
|
380
|
+
options: f(B),
|
|
376
381
|
label: f(A).paragraphEditor.lineHeight,
|
|
377
382
|
placeholder: "LH",
|
|
378
383
|
"width-class": "tpl:w-16",
|
|
@@ -383,8 +388,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
|
|
|
383
388
|
"label"
|
|
384
389
|
]),
|
|
385
390
|
x(Q, {
|
|
386
|
-
"model-value":
|
|
387
|
-
options: f(
|
|
391
|
+
"model-value": V("letterSpacing"),
|
|
392
|
+
options: f(z),
|
|
388
393
|
label: f(A).paragraphEditor.letterSpacing,
|
|
389
394
|
placeholder: "LS",
|
|
390
395
|
"width-class": "tpl:w-20",
|
|
@@ -395,30 +400,41 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
|
|
|
395
400
|
"label"
|
|
396
401
|
]),
|
|
397
402
|
x(Z),
|
|
398
|
-
x(
|
|
399
|
-
icon: f(
|
|
403
|
+
x(Y, {
|
|
404
|
+
icon: f(ie),
|
|
400
405
|
label: f(A).paragraphEditor.clearFormatting,
|
|
401
406
|
onClick: r[14] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
|
|
402
407
|
}, null, 8, ["icon", "label"]),
|
|
403
408
|
x(Z),
|
|
404
|
-
x(
|
|
409
|
+
x(me, { onInsert: N }),
|
|
405
410
|
e.canRequestMergeTag ? (n(), u(v, { key: 0 }, [x(Z), g("button", {
|
|
406
411
|
type: "button",
|
|
407
412
|
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)]",
|
|
408
413
|
"aria-label": f(A).mergeTag.insert,
|
|
409
414
|
title: f(A).mergeTag.insert,
|
|
410
415
|
onClick: r[15] ||= (e) => a("add-merge-tag")
|
|
411
|
-
}, [x(f(
|
|
416
|
+
}, [x(f(ue), {
|
|
412
417
|
size: 16,
|
|
413
418
|
"stroke-width": 2
|
|
414
|
-
}), y(" " + s(f(A).mergeTag.
|
|
415
|
-
|
|
419
|
+
}), y(" " + s(f(A).mergeTag.insertShort), 1)], 8, Ee)], 64)) : d("", !0),
|
|
420
|
+
e.canInsertLogicTag ? (n(), u(v, { key: 1 }, [x(Z), g("button", {
|
|
421
|
+
type: "button",
|
|
422
|
+
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)]",
|
|
423
|
+
"aria-label": f(A).logicTag.insert,
|
|
424
|
+
title: f(A).logicTag.insert,
|
|
425
|
+
"data-testid": "insert-logic-button",
|
|
426
|
+
onClick: r[16] ||= (e) => a("add-logic-tag")
|
|
427
|
+
}, [x(f(ce), {
|
|
428
|
+
size: 16,
|
|
429
|
+
"stroke-width": 2
|
|
430
|
+
}), y(" " + s(f(A).logicTag.insertShort), 1)], 8, De)], 64)) : d("", !0)
|
|
431
|
+
])], 64)) : (n(), u("div", Oe, [x(f(O), {
|
|
416
432
|
class: "tpl-spinner",
|
|
417
433
|
size: 14,
|
|
418
434
|
"stroke-width": 2
|
|
419
|
-
}), y(" " + s(f(A).errors.editorLoading), 1)]))], 12,
|
|
435
|
+
}), y(" " + s(f(A).errors.editorLoading), 1)]))], 12, be)], 8, ["to"])) : d("", !0);
|
|
420
436
|
}
|
|
421
|
-
}),
|
|
437
|
+
}), Ae = { class: "tpl-text-editor-wrapper tpl:relative" }, je = /* @__PURE__ */ b({
|
|
422
438
|
__name: "ParagraphEditor",
|
|
423
439
|
props: {
|
|
424
440
|
block: {},
|
|
@@ -426,25 +442,25 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
|
|
|
426
442
|
},
|
|
427
443
|
emits: ["done"],
|
|
428
444
|
setup(t, { emit: r }) {
|
|
429
|
-
let i = t, a = r, o = j(), { editor: s, EditorContent: c, isLoading: l, initError: d, retry: p, showLinkDialog: m, linkUrl: h, linkDialogRef: g, canRequestMergeTag: _,
|
|
445
|
+
let i = t, a = r, o = j(), { editor: s, EditorContent: c, isLoading: l, initError: d, retry: p, showLinkDialog: m, linkUrl: h, linkDialogRef: g, canRequestMergeTag: _, canInsertLogicTag: v, openLinkDialog: y, insertLink: b, removeLink: S, closeLinkDialog: C, handleLinkKeydown: w, handleAddMergeTag: E, handleAddLogicTag: D } = T({
|
|
430
446
|
blockId: () => i.block.id,
|
|
431
447
|
blockContent: () => i.block.content,
|
|
432
448
|
onDone: () => a("done"),
|
|
433
449
|
editorName: "ParagraphEditor",
|
|
434
450
|
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
435
451
|
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-
|
|
437
|
-
import("./tiptap-
|
|
438
|
-
import("./tiptap-
|
|
439
|
-
import("./tiptap-
|
|
440
|
-
import("./tiptap-
|
|
441
|
-
import("./tiptap-
|
|
442
|
-
import("./tiptap-
|
|
443
|
-
import("./tiptap-
|
|
444
|
-
import("./tiptap-
|
|
445
|
-
import("./tiptap-
|
|
446
|
-
import("./tiptap-
|
|
447
|
-
import("./extensions-
|
|
452
|
+
import("./tiptap-BlLFFU3M.js").then((e) => e.i),
|
|
453
|
+
import("./tiptap-BlLFFU3M.js").then((e) => e.a),
|
|
454
|
+
import("./tiptap-BlLFFU3M.js").then((e) => e.u),
|
|
455
|
+
import("./tiptap-BlLFFU3M.js").then((e) => e.o),
|
|
456
|
+
import("./tiptap-BlLFFU3M.js").then((e) => e.l),
|
|
457
|
+
import("./tiptap-BlLFFU3M.js").then((e) => e.c),
|
|
458
|
+
import("./tiptap-BlLFFU3M.js").then((e) => e.s),
|
|
459
|
+
import("./tiptap-BlLFFU3M.js").then((e) => e.m),
|
|
460
|
+
import("./tiptap-BlLFFU3M.js").then((e) => e.p),
|
|
461
|
+
import("./tiptap-BlLFFU3M.js").then((e) => e.f),
|
|
462
|
+
import("./tiptap-BlLFFU3M.js").then((e) => e.d),
|
|
463
|
+
import("./extensions-iwBXnEwq.js")
|
|
448
464
|
]);
|
|
449
465
|
return {
|
|
450
466
|
TiptapEditor: a,
|
|
@@ -489,23 +505,27 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
|
|
|
489
505
|
};
|
|
490
506
|
}
|
|
491
507
|
});
|
|
492
|
-
return (r, i) => (n(), u("div",
|
|
493
|
-
x(
|
|
508
|
+
return (r, i) => (n(), u("div", Ae, [
|
|
509
|
+
x(ke, {
|
|
494
510
|
editor: f(s),
|
|
495
511
|
"toolbar-position": t.toolbarPosition,
|
|
496
512
|
"is-loading": f(l),
|
|
497
513
|
"can-request-merge-tag": f(_),
|
|
498
|
-
|
|
499
|
-
|
|
514
|
+
"can-insert-logic-tag": f(v),
|
|
515
|
+
onOpenLinkDialog: f(y),
|
|
516
|
+
onAddMergeTag: f(E),
|
|
517
|
+
onAddLogicTag: f(D)
|
|
500
518
|
}, null, 8, [
|
|
501
519
|
"editor",
|
|
502
520
|
"toolbar-position",
|
|
503
521
|
"is-loading",
|
|
504
522
|
"can-request-merge-tag",
|
|
523
|
+
"can-insert-logic-tag",
|
|
505
524
|
"onOpenLinkDialog",
|
|
506
|
-
"onAddMergeTag"
|
|
525
|
+
"onAddMergeTag",
|
|
526
|
+
"onAddLogicTag"
|
|
507
527
|
]),
|
|
508
|
-
x(
|
|
528
|
+
x(H, {
|
|
509
529
|
editor: f(s),
|
|
510
530
|
"editor-content": f(c),
|
|
511
531
|
"is-loading": f(l),
|
|
@@ -518,17 +538,17 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
|
|
|
518
538
|
"init-error",
|
|
519
539
|
"onRetry"
|
|
520
540
|
]),
|
|
521
|
-
x(
|
|
541
|
+
x(V, {
|
|
522
542
|
visible: f(m),
|
|
523
543
|
"is-editing-link": f(s)?.isActive("link") ?? !1,
|
|
524
544
|
"dialog-ref": f(g),
|
|
525
545
|
"onUpdate:dialogRef": i[0] ||= (t) => e(g) ? g.value = t : null,
|
|
526
546
|
"link-url": f(h),
|
|
527
547
|
"onUpdate:linkUrl": i[1] ||= (t) => e(h) ? h.value = t : null,
|
|
528
|
-
onClose: f(
|
|
529
|
-
onInsert: f(
|
|
530
|
-
onRemove: f(
|
|
531
|
-
onKeydown: f(
|
|
548
|
+
onClose: f(C),
|
|
549
|
+
onInsert: f(b),
|
|
550
|
+
onRemove: f(S),
|
|
551
|
+
onKeydown: f(w)
|
|
532
552
|
}, null, 8, [
|
|
533
553
|
"visible",
|
|
534
554
|
"is-editing-link",
|
|
@@ -543,6 +563,6 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
|
|
|
543
563
|
}
|
|
544
564
|
});
|
|
545
565
|
//#endregion
|
|
546
|
-
export {
|
|
566
|
+
export { je as default };
|
|
547
567
|
|
|
548
|
-
//# sourceMappingURL=ParagraphEditor-
|
|
568
|
+
//# sourceMappingURL=ParagraphEditor-DwZqLJp2.js.map
|