@templatical/editor 0.12.1 → 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-CXH7l1Ar.js → AiChatSidebar-J8iO_sX7.js} +16 -16
- package/dist/{AiFeatureMenu-BKbUUc1D.js → AiFeatureMenu-F2diEDgV.js} +10 -10
- package/dist/{BlockIssueBadge-C-EPqWsh.js → BlockIssueBadge-a-qlByxF.js} +5 -5
- package/dist/{CloudEditor-CB16QzKM.js → CloudEditor-CDjtwb4i.js} +284 -250
- package/dist/{CollaboratorBar-ACUA7lBJ.js → CollaboratorBar-B_EnJLtW.js} +4 -4
- package/dist/{CommentsSidebar-CpRLN40c.js → CommentsSidebar-DaP9BA_r.js} +18 -18
- package/dist/{CountdownBlock-C-6o19qS.js → CountdownBlock-DtAokAVw.js} +3 -3
- package/dist/{CountdownToolbar-Dol7Q0Pv.js → CountdownToolbar-Dtqgwy0g.js} +3 -3
- package/dist/{DesignReferenceSidebar-0dTsBW08.js → DesignReferenceSidebar-BHRlTqlT.js} +21 -33
- 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-CpaumPMS.js → ModulePreviewCanvas-Cx4MOJ0X.js} +21 -21
- package/dist/{NumberWithSuffix-Bp40ik4l.js → NumberWithSuffix-D2mW_DhT.js} +4 -4
- package/dist/{ParagraphEditor-BqRFV_Y-.js → ParagraphEditor-DMzkVnST.js} +156 -136
- package/dist/{RichTextEditorContent-Q5altsx1.js → RichTextEditorContent-CRCxCwKf.js} +7 -7
- package/dist/{SaveModuleDialog-DmfvH5D0.js → SaveModuleDialog-DuEKgumL.js} +8 -8
- package/dist/{SnapshotHistory-C052o-8U.js → SnapshotHistory-CVgiNJtE.js} +12 -12
- package/dist/{TemplateScoringPanel-CUs8XmIi.js → TemplateScoringPanel-lm0_9nYi.js} +26 -26
- package/dist/{TestEmailModal-BIIxRWUt.js → TestEmailModal-WBMdiW5S.js} +5 -5
- package/dist/{TitleEditor-FMh54Cx5.js → TitleEditor-eyT0h-Sa.js} +71 -55
- package/dist/{TplModal-utMtXzSO.js → TplModal-tjQ7OB0g.js} +4 -4
- package/dist/{blockTypeIcons-C6UGDmrC.js → blockTypeIcons-DdB3uTKD.js} +5 -5
- package/dist/bundle-stats.json +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-4NhCFeTh.js → AiFeatureMenu-D7rB2SBs.js} +9 -9
- package/dist/cdn/chunks/{AiFeatureMenu-4NhCFeTh.js.map → AiFeatureMenu-D7rB2SBs.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-BYKThwhE.js → BlockIssueBadge-DHOe0pgx.js} +6 -6
- package/dist/cdn/chunks/{BlockIssueBadge-BYKThwhE.js.map → BlockIssueBadge-DHOe0pgx.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-DSeihOan.js → CloudEditor-DNed_Ym0.js} +273 -239
- package/dist/cdn/chunks/CloudEditor-DNed_Ym0.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-Dn5gXNDt.js → CollaboratorBar-sj_9Lee3.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-Dn5gXNDt.js.map → CollaboratorBar-sj_9Lee3.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-hYoJdVOt.js → CountdownBlock-C1Ikjpn4.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-hYoJdVOt.js.map → CountdownBlock-C1Ikjpn4.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BQn0Kj0X.js → CountdownToolbar-j1G_X8rB.js} +4 -4
- package/dist/cdn/chunks/CountdownToolbar-j1G_X8rB.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-_5fEnivU.js → IssuesPanel-CTOf3PsH.js} +11 -11
- package/dist/cdn/chunks/{IssuesPanel-_5fEnivU.js.map → IssuesPanel-CTOf3PsH.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-DtCksAeW.js → ModuleBrowserModal-DCh88-rr.js} +13 -10
- package/dist/cdn/chunks/{ModuleBrowserModal-DtCksAeW.js.map → ModuleBrowserModal-DCh88-rr.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-CCOvabZd.js → ModulePreviewCanvas-DJqvTKmg.js} +19 -19
- package/dist/cdn/chunks/{ModulePreviewCanvas-CCOvabZd.js.map → ModulePreviewCanvas-DJqvTKmg.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-cdWjAK6y.js → NumberWithSuffix-Bu45XWSl.js} +5 -5
- package/dist/cdn/chunks/{NumberWithSuffix-cdWjAK6y.js.map → NumberWithSuffix-Bu45XWSl.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-BnhnFOW1.js → ParagraphEditor-DwZqLJp2.js} +131 -111
- package/dist/cdn/chunks/ParagraphEditor-DwZqLJp2.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-DV2yknp8.js → RichTextEditorContent-CIuZ-2DV.js} +5 -5
- package/dist/cdn/chunks/{RichTextEditorContent-DV2yknp8.js.map → RichTextEditorContent-CIuZ-2DV.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-CCX5U7VA.js → SaveModuleDialog-Bep0X2s_.js} +6 -6
- package/dist/cdn/chunks/{SaveModuleDialog-CCX5U7VA.js.map → SaveModuleDialog-Bep0X2s_.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-CQqklX0D.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-CpGPHppB.js.map → blockTypeIcons-8o24HVJu.js.map} +1 -1
- package/dist/cdn/chunks/{de-BpseTWOA.js → de-LsV0u1tP.js} +20 -2
- 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-VGIQ0WNq.js → en-Bb8X1bOs.js} +20 -2
- package/dist/cdn/chunks/en-Bb8X1bOs.js.map +1 -0
- package/dist/cdn/chunks/{extensions-Ds9GnMcd.js → extensions-iwBXnEwq.js} +21 -21
- package/dist/cdn/chunks/{extensions-Ds9GnMcd.js.map → extensions-iwBXnEwq.js.map} +1 -1
- package/dist/cdn/chunks/{features-DxWz_Enw.js → features-CkTMVylx.js} +996 -817
- package/dist/cdn/chunks/features-CkTMVylx.js.map +1 -0
- package/dist/cdn/chunks/{icons-BflGUmFY.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-C479-QcE.js → media-library-DMRIPx4g.js} +373 -371
- package/dist/cdn/chunks/media-library-DMRIPx4g.js.map +1 -0
- package/dist/cdn/chunks/{pt-BR-zAqpLQbW.js → pt-BR-BwJY_cvb.js} +20 -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-BL_pEvFP.js.map → quality-CyeUgs_c.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-C0vdAODQ.js → renderer-BIKUEKDD.js} +38 -29
- package/dist/cdn/chunks/{renderer-C0vdAODQ.js.map → renderer-BIKUEKDD.js.map} +1 -1
- package/dist/cdn/chunks/{src-DzvOWQ9S.js → src-pDy_imWG.js} +56 -56
- package/dist/cdn/chunks/{src-DzvOWQ9S.js.map → src-pDy_imWG.js.map} +1 -1
- package/dist/cdn/chunks/{styles-LfeoSNRA.js → styles-D4Bd3SCx.js} +1356 -905
- 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 +101 -97
- 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/{de-BpseTWOA.js → de-LsV0u1tP.js} +19 -1
- 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-DJ9aD8yA.js → dist-DuCzdgDA.js} +54 -5
- package/dist/{dist-o73iaGqy.js → dist-U5vfDdYI.js} +1 -1
- package/dist/{en-VGIQ0WNq.js → en-Bb8X1bOs.js} +19 -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-zAqpLQbW.js → pt-BR-BwJY_cvb.js} +19 -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-DSm9Ijxt.js → styles-BUwDOWd3.js} +1335 -882
- package/dist/templatical-editor.js +143 -139
- 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-e5kDRkPb.js +17 -0
- package/dist/{useAliveFlag-BinvbqQR.js → useAliveFlag-cUQj9rmB.js} +1 -1
- package/dist/{useCloudI18n-L3H2XvdW.js → useCloudI18n-CYJKqXtI.js} +2 -2
- package/dist/{useEditorCore-D7dQFRkw.js → useEditorCore-8JxXDOA4.js} +1075 -894
- 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-Bz9hSjMS.js +0 -198
- package/dist/cdn/chunks/CloudEditor-DSeihOan.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-BQn0Kj0X.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-BnhnFOW1.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-CQqklX0D.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-CpGPHppB.js +0 -22
- package/dist/cdn/chunks/de-BpseTWOA.js.map +0 -1
- package/dist/cdn/chunks/en-VGIQ0WNq.js.map +0 -1
- package/dist/cdn/chunks/features-DxWz_Enw.js.map +0 -1
- package/dist/cdn/chunks/icons-BflGUmFY.js.map +0 -1
- package/dist/cdn/chunks/media-library-C479-QcE.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-zAqpLQbW.js.map +0 -1
- package/dist/cdn/chunks/quality-BL_pEvFP.js +0 -2176
- package/dist/cdn/chunks/styles-LfeoSNRA.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,17 +1,17 @@
|
|
|
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-
|
|
2
|
-
import {
|
|
3
|
-
import { t as T } from "./dist-
|
|
4
|
-
import {
|
|
5
|
-
import { t as k } from "./useI18n-
|
|
6
|
-
import { t as A } from "./createLucideIcon-
|
|
7
|
-
import { t as
|
|
8
|
-
import { n as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
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-BPa483TZ.js";
|
|
2
|
+
import { E as S, T as C, x as w } from "./useEditorCore-8JxXDOA4.js";
|
|
3
|
+
import { t as T } from "./dist-DuCzdgDA.js";
|
|
4
|
+
import { I as E, L as D, P as O, g as ee, w as te, x as ne } from "./keys-DgYXDafq.js";
|
|
5
|
+
import { t as k } from "./useI18n-BWqM8i78.js";
|
|
6
|
+
import { t as A } from "./createLucideIcon-Bad2kKE0.js";
|
|
7
|
+
import { a as j, i as M, n as N, r as re, t as P } from "./RichTextEditorContent-CRCxCwKf.js";
|
|
8
|
+
import { n as ie, t as ae } from "./scan-line-BtK5dEai.js";
|
|
9
|
+
import { t as oe } from "./loader-circle-CLZ0_FvW.js";
|
|
10
|
+
import { n as se, r as ce, t as le } from "./text-align-start-C3r_Rnvy.js";
|
|
11
11
|
import { t as F } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
-
import { a as
|
|
13
|
-
import { t as
|
|
14
|
-
var
|
|
12
|
+
import { a as ue, o as I, s as L } from "./styleConstants-lGobwiLH.js";
|
|
13
|
+
import { t as R } from "./usePopoverRoot-B1sdY4es.js";
|
|
14
|
+
var z = A("list-ordered", [
|
|
15
15
|
["path", {
|
|
16
16
|
d: "M11 5h10",
|
|
17
17
|
key: "1cz7ny"
|
|
@@ -36,7 +36,7 @@ var R = A("list-ordered", [
|
|
|
36
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",
|
|
37
37
|
key: "xtkcd5"
|
|
38
38
|
}]
|
|
39
|
-
]),
|
|
39
|
+
]), B = A("list", [
|
|
40
40
|
["path", {
|
|
41
41
|
d: "M3 5h.01",
|
|
42
42
|
key: "18ugdj"
|
|
@@ -61,7 +61,7 @@ var R = A("list-ordered", [
|
|
|
61
61
|
d: "M8 19h13",
|
|
62
62
|
key: "m83p4d"
|
|
63
63
|
}]
|
|
64
|
-
]),
|
|
64
|
+
]), V = A("remove-formatting", [
|
|
65
65
|
["path", {
|
|
66
66
|
d: "M4 7V4h16v3",
|
|
67
67
|
key: "9msm58"
|
|
@@ -82,7 +82,7 @@ var R = A("list-ordered", [
|
|
|
82
82
|
d: "m20 15-5 5",
|
|
83
83
|
key: "11p7ol"
|
|
84
84
|
}]
|
|
85
|
-
]),
|
|
85
|
+
]), H = A("smile", [
|
|
86
86
|
["circle", {
|
|
87
87
|
cx: "12",
|
|
88
88
|
cy: "12",
|
|
@@ -107,7 +107,7 @@ var R = A("list-ordered", [
|
|
|
107
107
|
y2: "9",
|
|
108
108
|
key: "1p4y9e"
|
|
109
109
|
}]
|
|
110
|
-
]),
|
|
110
|
+
]), U = A("strikethrough", [
|
|
111
111
|
["path", {
|
|
112
112
|
d: "M16 4H9a3 3 0 0 0-2.83 4",
|
|
113
113
|
key: "43sutm"
|
|
@@ -123,7 +123,7 @@ var R = A("list-ordered", [
|
|
|
123
123
|
y2: "12",
|
|
124
124
|
key: "1e0a9i"
|
|
125
125
|
}]
|
|
126
|
-
]),
|
|
126
|
+
]), de = A("subscript", [
|
|
127
127
|
["path", {
|
|
128
128
|
d: "m4 5 8 8",
|
|
129
129
|
key: "1eunvl"
|
|
@@ -136,7 +136,7 @@ var R = A("list-ordered", [
|
|
|
136
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",
|
|
137
137
|
key: "e8ta8j"
|
|
138
138
|
}]
|
|
139
|
-
]),
|
|
139
|
+
]), fe = A("superscript", [
|
|
140
140
|
["path", {
|
|
141
141
|
d: "m4 19 8-8",
|
|
142
142
|
key: "hr47gm"
|
|
@@ -149,7 +149,7 @@ var R = A("list-ordered", [
|
|
|
149
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",
|
|
150
150
|
key: "1dfcux"
|
|
151
151
|
}]
|
|
152
|
-
]),
|
|
152
|
+
]), pe = A("underline", [["path", {
|
|
153
153
|
d: "M6 4v6a6 6 0 0 0 12 0V4",
|
|
154
154
|
key: "9kb039"
|
|
155
155
|
}], ["line", {
|
|
@@ -158,16 +158,16 @@ var R = A("list-ordered", [
|
|
|
158
158
|
y1: "20",
|
|
159
159
|
y2: "20",
|
|
160
160
|
key: "nun2al"
|
|
161
|
-
}]]),
|
|
161
|
+
}]]), W = [
|
|
162
162
|
"aria-label",
|
|
163
163
|
"title",
|
|
164
164
|
"aria-expanded"
|
|
165
|
-
],
|
|
165
|
+
], G = ["aria-label"], K = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, q = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, J = ["aria-label", "onClick"], me = /* @__PURE__ */ s({
|
|
166
166
|
__name: "EmojiPickerDropdown",
|
|
167
167
|
emits: ["insert"],
|
|
168
168
|
setup(t, { emit: n }) {
|
|
169
|
-
let a = n, { categories: s, isOpen: m, toggle: h, close: y } =
|
|
170
|
-
|
|
169
|
+
let a = n, { categories: s, isOpen: m, toggle: h, close: y } = C(), { t: x, format: w } = k(), E = i(null), D = i(null);
|
|
170
|
+
S(E, l(() => m.value)), T(D, () => {
|
|
171
171
|
m.value && y();
|
|
172
172
|
});
|
|
173
173
|
function O(e) {
|
|
@@ -186,10 +186,10 @@ var R = A("list-ordered", [
|
|
|
186
186
|
"aria-haspopup": "dialog",
|
|
187
187
|
"aria-controls": "tpl-emoji-picker",
|
|
188
188
|
onClick: n[0] ||= (...e) => g(h) && g(h)(...e)
|
|
189
|
-
}, [b(g(
|
|
189
|
+
}, [b(g(H), {
|
|
190
190
|
size: 16,
|
|
191
191
|
"stroke-width": 2
|
|
192
|
-
})], 10,
|
|
192
|
+
})], 10, W), g(m) ? (e(), d("div", {
|
|
193
193
|
key: 0,
|
|
194
194
|
id: "tpl-emoji-picker",
|
|
195
195
|
ref_key: "pickerRef",
|
|
@@ -203,15 +203,15 @@ var R = A("list-ordered", [
|
|
|
203
203
|
}, [(e(!0), d(f, null, r(g(s), (t) => (e(), d("div", {
|
|
204
204
|
key: t.key,
|
|
205
205
|
class: "tpl:mb-2 tpl:last:mb-0"
|
|
206
|
-
}, [u("div",
|
|
206
|
+
}, [u("div", K, v(g(x).emoji[t.key]), 1), u("div", q, [(e(!0), d(f, null, r(t.emojis, (t) => (e(), d("button", {
|
|
207
207
|
key: t,
|
|
208
208
|
type: "button",
|
|
209
|
-
"aria-label": g(
|
|
209
|
+
"aria-label": g(w)(g(x).paragraphEditor.emojiItemLabel, { emoji: t }),
|
|
210
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)]",
|
|
211
211
|
onClick: (e) => O(t)
|
|
212
|
-
}, v(t), 9,
|
|
212
|
+
}, v(t), 9, J))), 128))])]))), 128))], 40, G)) : p("", !0)], 512));
|
|
213
213
|
}
|
|
214
|
-
}),
|
|
214
|
+
}), Y = [
|
|
215
215
|
"aria-label",
|
|
216
216
|
"title",
|
|
217
217
|
"aria-pressed"
|
|
@@ -234,20 +234,20 @@ var R = A("list-ordered", [
|
|
|
234
234
|
}, [(e(), h(t(n.icon), {
|
|
235
235
|
size: n.size ?? 16,
|
|
236
236
|
"stroke-width": n.strokeWidth ?? 2
|
|
237
|
-
}, null, 8, ["size", "stroke-width"]))], 10,
|
|
237
|
+
}, null, 8, ["size", "stroke-width"]))], 10, Y));
|
|
238
238
|
}
|
|
239
|
-
}),
|
|
239
|
+
}), he = {}, ge = {
|
|
240
240
|
class: "tpl:mx-1 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
|
|
241
241
|
"aria-hidden": "true"
|
|
242
242
|
};
|
|
243
|
-
function
|
|
244
|
-
return e(), d("span",
|
|
243
|
+
function _e(t, n) {
|
|
244
|
+
return e(), d("span", ge);
|
|
245
245
|
}
|
|
246
|
-
var Z = /*#__PURE__*/ F(
|
|
246
|
+
var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
|
|
247
247
|
"value",
|
|
248
248
|
"aria-label",
|
|
249
249
|
"title"
|
|
250
|
-
],
|
|
250
|
+
], ye = { value: "" }, be = ["value"], Q = /* @__PURE__ */ s({
|
|
251
251
|
__name: "ToolbarSelect",
|
|
252
252
|
props: {
|
|
253
253
|
modelValue: {},
|
|
@@ -274,48 +274,53 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
274
274
|
"aria-label": t.label,
|
|
275
275
|
title: t.label,
|
|
276
276
|
onChange: a
|
|
277
|
-
}, [u("option",
|
|
277
|
+
}, [u("option", ye, v(t.placeholder ?? ""), 1), (e(!0), d(f, null, r(t.options, (t) => (e(), d("option", {
|
|
278
278
|
key: s(t),
|
|
279
279
|
value: s(t)
|
|
280
|
-
}, v(c(t)), 9,
|
|
280
|
+
}, v(c(t)), 9, be))), 128))], 42, ve));
|
|
281
281
|
}
|
|
282
|
-
}),
|
|
282
|
+
}), $ = ["data-tpl-theme", "aria-label"], xe = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Se = { class: "tpl:relative" }, Ce = [
|
|
283
283
|
"value",
|
|
284
284
|
"aria-label",
|
|
285
285
|
"title"
|
|
286
|
-
],
|
|
286
|
+
], we = { class: "tpl:relative" }, Te = [
|
|
287
287
|
"value",
|
|
288
288
|
"aria-label",
|
|
289
289
|
"title"
|
|
290
|
-
],
|
|
290
|
+
], Ee = { class: "tpl:flex tpl:items-center tpl:gap-1" }, De = ["aria-label", "title"], Oe = ["aria-label", "title"], ke = {
|
|
291
291
|
key: 1,
|
|
292
292
|
class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
293
|
-
},
|
|
293
|
+
}, Ae = /* @__PURE__ */ s({
|
|
294
294
|
__name: "ParagraphToolbar",
|
|
295
295
|
props: {
|
|
296
296
|
editor: {},
|
|
297
297
|
toolbarPosition: {},
|
|
298
298
|
isLoading: { type: Boolean },
|
|
299
|
-
canRequestMergeTag: { type: Boolean }
|
|
299
|
+
canRequestMergeTag: { type: Boolean },
|
|
300
|
+
canInsertLogicTag: { type: Boolean }
|
|
300
301
|
},
|
|
301
|
-
emits: [
|
|
302
|
+
emits: [
|
|
303
|
+
"open-link-dialog",
|
|
304
|
+
"add-merge-tag",
|
|
305
|
+
"add-logic-tag"
|
|
306
|
+
],
|
|
302
307
|
setup(t, { emit: n }) {
|
|
303
|
-
let r = t, i = n, o = x(
|
|
304
|
-
function
|
|
308
|
+
let r = t, i = n, o = x(O, null), s = x(E, null), c = D(ee, "ParagraphToolbar"), _ = R(), S = x(te, null), C = x(ne, null), w = l(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: T } = k(), A = c.fonts;
|
|
309
|
+
function N(e) {
|
|
305
310
|
r.editor?.chain().focus().insertContent(e).run();
|
|
306
311
|
}
|
|
307
|
-
function
|
|
312
|
+
function P(e) {
|
|
308
313
|
return r.editor?.getAttributes("textStyle")[e] || "";
|
|
309
314
|
}
|
|
310
|
-
function
|
|
315
|
+
function F(e) {
|
|
311
316
|
let t = r.editor?.chain().focus();
|
|
312
317
|
e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
|
|
313
318
|
}
|
|
314
|
-
function
|
|
319
|
+
function H(e) {
|
|
315
320
|
let t = r.editor?.chain().focus();
|
|
316
321
|
e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
|
|
317
322
|
}
|
|
318
|
-
function
|
|
323
|
+
function W(e) {
|
|
319
324
|
let t = r.editor?.chain().focus();
|
|
320
325
|
e ? t?.setColor(e).run() : t?.unsetColor().run();
|
|
321
326
|
}
|
|
@@ -337,13 +342,13 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
337
342
|
let t = r.editor?.chain().focus();
|
|
338
343
|
e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
|
|
339
344
|
}
|
|
340
|
-
return (n, r) => g(_) && !
|
|
345
|
+
return (n, r) => g(_) && !w.value ? (e(), h(y, {
|
|
341
346
|
key: 0,
|
|
342
347
|
to: g(_)
|
|
343
348
|
}, [u("div", {
|
|
344
349
|
"data-tpl-theme": g(s),
|
|
345
350
|
role: "toolbar",
|
|
346
|
-
"aria-label": g(
|
|
351
|
+
"aria-label": g(T).paragraphEditor.toolbar,
|
|
347
352
|
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",
|
|
348
353
|
style: m({
|
|
349
354
|
...g(o),
|
|
@@ -352,14 +357,14 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
352
357
|
transform: "translateY(-100%)",
|
|
353
358
|
flexDirection: "column"
|
|
354
359
|
})
|
|
355
|
-
}, [!t.isLoading && t.editor ? (e(), d(f, { key: 0 }, [u("div",
|
|
360
|
+
}, [!t.isLoading && t.editor ? (e(), d(f, { key: 0 }, [u("div", xe, [
|
|
356
361
|
b(Q, {
|
|
357
|
-
"model-value":
|
|
358
|
-
options: g(
|
|
359
|
-
label: g(
|
|
360
|
-
placeholder: g(
|
|
362
|
+
"model-value": P("fontFamily"),
|
|
363
|
+
options: g(A),
|
|
364
|
+
label: g(T).paragraphEditor.fontFamily,
|
|
365
|
+
placeholder: g(T).paragraphEditor.defaultFont,
|
|
361
366
|
"width-class": "tpl:w-32",
|
|
362
|
-
"onUpdate:modelValue":
|
|
367
|
+
"onUpdate:modelValue": F
|
|
363
368
|
}, null, 8, [
|
|
364
369
|
"model-value",
|
|
365
370
|
"options",
|
|
@@ -367,12 +372,12 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
367
372
|
"placeholder"
|
|
368
373
|
]),
|
|
369
374
|
b(Q, {
|
|
370
|
-
"model-value":
|
|
371
|
-
options: g(
|
|
372
|
-
label: g(
|
|
373
|
-
placeholder: g(
|
|
375
|
+
"model-value": P("fontSize"),
|
|
376
|
+
options: g(ue),
|
|
377
|
+
label: g(T).paragraphEditor.fontSize,
|
|
378
|
+
placeholder: g(T).paragraphEditor.defaultSize,
|
|
374
379
|
"width-class": "tpl:w-20",
|
|
375
|
-
"onUpdate:modelValue":
|
|
380
|
+
"onUpdate:modelValue": H
|
|
376
381
|
}, null, 8, [
|
|
377
382
|
"model-value",
|
|
378
383
|
"options",
|
|
@@ -380,27 +385,27 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
380
385
|
"placeholder"
|
|
381
386
|
]),
|
|
382
387
|
b(Z),
|
|
383
|
-
u("div",
|
|
388
|
+
u("div", Se, [u("input", {
|
|
384
389
|
type: "color",
|
|
385
390
|
class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-1",
|
|
386
|
-
value:
|
|
387
|
-
"aria-label": g(
|
|
388
|
-
title: g(
|
|
389
|
-
onInput: r[0] ||= (e) =>
|
|
390
|
-
}, null, 40,
|
|
391
|
-
u("div",
|
|
391
|
+
value: P("color") || g("#000000"),
|
|
392
|
+
"aria-label": g(T).paragraphEditor.textColor,
|
|
393
|
+
title: g(T).paragraphEditor.textColor,
|
|
394
|
+
onInput: r[0] ||= (e) => W(e.target.value)
|
|
395
|
+
}, null, 40, Ce)]),
|
|
396
|
+
u("div", we, [u("input", {
|
|
392
397
|
type: "color",
|
|
393
398
|
class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:p-1",
|
|
394
399
|
style: m({ backgroundColor: J() || "var(--tpl-bg)" }),
|
|
395
400
|
value: J() || g("#ffff00"),
|
|
396
|
-
"aria-label": g(
|
|
397
|
-
title: g(
|
|
401
|
+
"aria-label": g(T).paragraphEditor.highlightColor,
|
|
402
|
+
title: g(T).paragraphEditor.highlightColor,
|
|
398
403
|
onInput: r[1] ||= (e) => Y(e.target.value)
|
|
399
|
-
}, null, 44,
|
|
404
|
+
}, null, 44, Te)]),
|
|
400
405
|
b(Z),
|
|
401
406
|
b(X, {
|
|
402
|
-
icon: g(
|
|
403
|
-
label: g(
|
|
407
|
+
icon: g(j),
|
|
408
|
+
label: g(T).paragraphEditor.bold,
|
|
404
409
|
active: t.editor.isActive("bold"),
|
|
405
410
|
"stroke-width": 2.5,
|
|
406
411
|
onClick: r[2] ||= (e) => t.editor.chain().focus().toggleBold().run()
|
|
@@ -410,8 +415,8 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
410
415
|
"active"
|
|
411
416
|
]),
|
|
412
417
|
b(X, {
|
|
413
|
-
icon: g(
|
|
414
|
-
label: g(
|
|
418
|
+
icon: g(M),
|
|
419
|
+
label: g(T).paragraphEditor.italic,
|
|
415
420
|
active: t.editor.isActive("italic"),
|
|
416
421
|
onClick: r[3] ||= (e) => t.editor.chain().focus().toggleItalic().run()
|
|
417
422
|
}, null, 8, [
|
|
@@ -420,8 +425,8 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
420
425
|
"active"
|
|
421
426
|
]),
|
|
422
427
|
b(X, {
|
|
423
|
-
icon: g(
|
|
424
|
-
label: g(
|
|
428
|
+
icon: g(pe),
|
|
429
|
+
label: g(T).paragraphEditor.underline,
|
|
425
430
|
active: t.editor.isActive("underline"),
|
|
426
431
|
onClick: r[4] ||= (e) => t.editor.chain().focus().toggleUnderline().run()
|
|
427
432
|
}, null, 8, [
|
|
@@ -430,8 +435,8 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
430
435
|
"active"
|
|
431
436
|
]),
|
|
432
437
|
b(X, {
|
|
433
|
-
icon: g(
|
|
434
|
-
label: g(
|
|
438
|
+
icon: g(U),
|
|
439
|
+
label: g(T).paragraphEditor.strikethrough,
|
|
435
440
|
active: t.editor.isActive("strike"),
|
|
436
441
|
onClick: r[5] ||= (e) => t.editor.chain().focus().toggleStrike().run()
|
|
437
442
|
}, null, 8, [
|
|
@@ -441,8 +446,8 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
441
446
|
]),
|
|
442
447
|
b(Z),
|
|
443
448
|
b(X, {
|
|
444
|
-
icon: g(
|
|
445
|
-
label: g(
|
|
449
|
+
icon: g(de),
|
|
450
|
+
label: g(T).paragraphEditor.subscript,
|
|
446
451
|
active: t.editor.isActive("subscript"),
|
|
447
452
|
onClick: r[6] ||= (e) => t.editor.chain().focus().toggleSubscript().run()
|
|
448
453
|
}, null, 8, [
|
|
@@ -451,8 +456,8 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
451
456
|
"active"
|
|
452
457
|
]),
|
|
453
458
|
b(X, {
|
|
454
|
-
icon: g(
|
|
455
|
-
label: g(
|
|
459
|
+
icon: g(fe),
|
|
460
|
+
label: g(T).paragraphEditor.superscript,
|
|
456
461
|
active: t.editor.isActive("superscript"),
|
|
457
462
|
onClick: r[7] ||= (e) => t.editor.chain().focus().toggleSuperscript().run()
|
|
458
463
|
}, null, 8, [
|
|
@@ -462,8 +467,8 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
462
467
|
]),
|
|
463
468
|
b(Z),
|
|
464
469
|
b(X, {
|
|
465
|
-
icon: g(
|
|
466
|
-
label: g(
|
|
470
|
+
icon: g(re),
|
|
471
|
+
label: g(T).paragraphEditor.addLink,
|
|
467
472
|
active: t.editor.isActive("link"),
|
|
468
473
|
onClick: r[8] ||= (e) => i("open-link-dialog")
|
|
469
474
|
}, null, 8, [
|
|
@@ -471,10 +476,10 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
471
476
|
"label",
|
|
472
477
|
"active"
|
|
473
478
|
])
|
|
474
|
-
]), u("div",
|
|
479
|
+
]), u("div", Ee, [
|
|
475
480
|
b(X, {
|
|
476
|
-
icon: g(
|
|
477
|
-
label: g(
|
|
481
|
+
icon: g(B),
|
|
482
|
+
label: g(T).paragraphEditor.bulletList,
|
|
478
483
|
active: t.editor.isActive("bulletList"),
|
|
479
484
|
onClick: r[9] ||= (e) => t.editor.chain().focus().toggleBulletList().run()
|
|
480
485
|
}, null, 8, [
|
|
@@ -483,8 +488,8 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
483
488
|
"active"
|
|
484
489
|
]),
|
|
485
490
|
b(X, {
|
|
486
|
-
icon: g(
|
|
487
|
-
label: g(
|
|
491
|
+
icon: g(z),
|
|
492
|
+
label: g(T).paragraphEditor.numberedList,
|
|
488
493
|
active: t.editor.isActive("orderedList"),
|
|
489
494
|
onClick: r[10] ||= (e) => t.editor.chain().focus().toggleOrderedList().run()
|
|
490
495
|
}, null, 8, [
|
|
@@ -494,8 +499,8 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
494
499
|
]),
|
|
495
500
|
b(Z),
|
|
496
501
|
b(X, {
|
|
497
|
-
icon: g(
|
|
498
|
-
label: g(
|
|
502
|
+
icon: g(le),
|
|
503
|
+
label: g(T).paragraphEditor.alignLeft,
|
|
499
504
|
active: t.editor.isActive({ textAlign: "left" }),
|
|
500
505
|
onClick: r[11] ||= (e) => t.editor.chain().focus().setTextAlign("left").run()
|
|
501
506
|
}, null, 8, [
|
|
@@ -504,8 +509,8 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
504
509
|
"active"
|
|
505
510
|
]),
|
|
506
511
|
b(X, {
|
|
507
|
-
icon: g(
|
|
508
|
-
label: g(
|
|
512
|
+
icon: g(ce),
|
|
513
|
+
label: g(T).paragraphEditor.alignCenter,
|
|
509
514
|
active: t.editor.isActive({ textAlign: "center" }),
|
|
510
515
|
onClick: r[12] ||= (e) => t.editor.chain().focus().setTextAlign("center").run()
|
|
511
516
|
}, null, 8, [
|
|
@@ -514,8 +519,8 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
514
519
|
"active"
|
|
515
520
|
]),
|
|
516
521
|
b(X, {
|
|
517
|
-
icon: g(
|
|
518
|
-
label: g(
|
|
522
|
+
icon: g(se),
|
|
523
|
+
label: g(T).paragraphEditor.alignRight,
|
|
519
524
|
active: t.editor.isActive({ textAlign: "right" }),
|
|
520
525
|
onClick: r[13] ||= (e) => t.editor.chain().focus().setTextAlign("right").run()
|
|
521
526
|
}, null, 8, [
|
|
@@ -526,8 +531,8 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
526
531
|
b(Z),
|
|
527
532
|
b(Q, {
|
|
528
533
|
"model-value": G(),
|
|
529
|
-
options: g(
|
|
530
|
-
label: g(
|
|
534
|
+
options: g(L),
|
|
535
|
+
label: g(T).paragraphEditor.lineHeight,
|
|
531
536
|
placeholder: "LH",
|
|
532
537
|
"width-class": "tpl:w-16",
|
|
533
538
|
"onUpdate:modelValue": K
|
|
@@ -537,9 +542,9 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
537
542
|
"label"
|
|
538
543
|
]),
|
|
539
544
|
b(Q, {
|
|
540
|
-
"model-value":
|
|
541
|
-
options: g(
|
|
542
|
-
label: g(
|
|
545
|
+
"model-value": P("letterSpacing"),
|
|
546
|
+
options: g(I),
|
|
547
|
+
label: g(T).paragraphEditor.letterSpacing,
|
|
543
548
|
placeholder: "LS",
|
|
544
549
|
"width-class": "tpl:w-20",
|
|
545
550
|
"onUpdate:modelValue": q
|
|
@@ -550,29 +555,40 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
550
555
|
]),
|
|
551
556
|
b(Z),
|
|
552
557
|
b(X, {
|
|
553
|
-
icon: g(
|
|
554
|
-
label: g(
|
|
558
|
+
icon: g(V),
|
|
559
|
+
label: g(T).paragraphEditor.clearFormatting,
|
|
555
560
|
onClick: r[14] ||= (e) => t.editor.chain().focus().clearNodes().unsetAllMarks().run()
|
|
556
561
|
}, null, 8, ["icon", "label"]),
|
|
557
562
|
b(Z),
|
|
558
|
-
b(
|
|
563
|
+
b(me, { onInsert: N }),
|
|
559
564
|
t.canRequestMergeTag ? (e(), d(f, { key: 0 }, [b(Z), u("button", {
|
|
560
565
|
type: "button",
|
|
561
566
|
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)]",
|
|
562
|
-
"aria-label": g(
|
|
563
|
-
title: g(
|
|
567
|
+
"aria-label": g(T).mergeTag.insert,
|
|
568
|
+
title: g(T).mergeTag.insert,
|
|
564
569
|
onClick: r[15] ||= (e) => i("add-merge-tag")
|
|
565
|
-
}, [b(g(
|
|
570
|
+
}, [b(g(ae), {
|
|
571
|
+
size: 16,
|
|
572
|
+
"stroke-width": 2
|
|
573
|
+
}), a(" " + v(g(T).mergeTag.insertShort), 1)], 8, De)], 64)) : p("", !0),
|
|
574
|
+
t.canInsertLogicTag ? (e(), d(f, { key: 1 }, [b(Z), u("button", {
|
|
575
|
+
type: "button",
|
|
576
|
+
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)]",
|
|
577
|
+
"aria-label": g(T).logicTag.insert,
|
|
578
|
+
title: g(T).logicTag.insert,
|
|
579
|
+
"data-testid": "insert-logic-button",
|
|
580
|
+
onClick: r[16] ||= (e) => i("add-logic-tag")
|
|
581
|
+
}, [b(g(ie), {
|
|
566
582
|
size: 16,
|
|
567
583
|
"stroke-width": 2
|
|
568
|
-
}), a(" " + v(g(
|
|
569
|
-
])], 64)) : (e(), d("div",
|
|
584
|
+
}), a(" " + v(g(T).logicTag.insertShort), 1)], 8, Oe)], 64)) : p("", !0)
|
|
585
|
+
])], 64)) : (e(), d("div", ke, [b(g(oe), {
|
|
570
586
|
class: "tpl-spinner",
|
|
571
587
|
size: 14,
|
|
572
588
|
"stroke-width": 2
|
|
573
|
-
}), a(" " + v(g(
|
|
589
|
+
}), a(" " + v(g(T).errors.editorLoading), 1)]))], 12, $)], 8, ["to"])) : p("", !0);
|
|
574
590
|
}
|
|
575
|
-
}),
|
|
591
|
+
}), je = { class: "tpl-text-editor-wrapper tpl:relative" }, Me = /* @__PURE__ */ s({
|
|
576
592
|
__name: "ParagraphEditor",
|
|
577
593
|
props: {
|
|
578
594
|
block: {},
|
|
@@ -580,25 +596,25 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
580
596
|
},
|
|
581
597
|
emits: ["done"],
|
|
582
598
|
setup(t, { emit: r }) {
|
|
583
|
-
let i = t, a = r, o =
|
|
599
|
+
let i = t, a = r, o = R(), { editor: s, EditorContent: c, isLoading: l, initError: u, retry: f, showLinkDialog: p, linkUrl: m, linkDialogRef: h, canRequestMergeTag: _, canInsertLogicTag: v, openLinkDialog: y, insertLink: x, removeLink: S, closeLinkDialog: C, handleLinkKeydown: T, handleAddMergeTag: E, handleAddLogicTag: D } = w({
|
|
584
600
|
blockId: () => i.block.id,
|
|
585
601
|
blockContent: () => i.block.content,
|
|
586
602
|
onDone: () => a("done"),
|
|
587
603
|
editorName: "ParagraphEditor",
|
|
588
604
|
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
589
605
|
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([
|
|
590
|
-
import("./dist-
|
|
591
|
-
import("./dist-
|
|
592
|
-
import("./dist-
|
|
593
|
-
import("./dist-
|
|
594
|
-
import("./dist-
|
|
595
|
-
import("./dist-
|
|
596
|
-
import("./dist-
|
|
597
|
-
import("./dist-
|
|
598
|
-
import("./dist-
|
|
599
|
-
import("./dist-
|
|
600
|
-
import("./dist-
|
|
601
|
-
import("./extensions-
|
|
606
|
+
import("./dist-Dd3ibRZm.js").then((e) => e.r),
|
|
607
|
+
import("./dist-BX3gGwL8.js"),
|
|
608
|
+
import("./dist-CLpPNKy9.js"),
|
|
609
|
+
import("./dist-U5vfDdYI.js"),
|
|
610
|
+
import("./dist-B7w6xTU6.js"),
|
|
611
|
+
import("./dist-Bn703mnA.js"),
|
|
612
|
+
import("./dist-34OcyoK1.js"),
|
|
613
|
+
import("./dist-ChMninLH.js"),
|
|
614
|
+
import("./dist-CGvz7vkq.js"),
|
|
615
|
+
import("./dist-CADDCv0o.js"),
|
|
616
|
+
import("./dist-CrQZ_af9.js"),
|
|
617
|
+
import("./extensions-J439b7y7.js")
|
|
602
618
|
]);
|
|
603
619
|
return {
|
|
604
620
|
TiptapEditor: a,
|
|
@@ -643,21 +659,25 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
643
659
|
};
|
|
644
660
|
}
|
|
645
661
|
});
|
|
646
|
-
return (r, i) => (e(), d("div",
|
|
647
|
-
b(
|
|
662
|
+
return (r, i) => (e(), d("div", je, [
|
|
663
|
+
b(Ae, {
|
|
648
664
|
editor: g(s),
|
|
649
665
|
"toolbar-position": t.toolbarPosition,
|
|
650
666
|
"is-loading": g(l),
|
|
651
667
|
"can-request-merge-tag": g(_),
|
|
652
|
-
|
|
653
|
-
|
|
668
|
+
"can-insert-logic-tag": g(v),
|
|
669
|
+
onOpenLinkDialog: g(y),
|
|
670
|
+
onAddMergeTag: g(E),
|
|
671
|
+
onAddLogicTag: g(D)
|
|
654
672
|
}, null, 8, [
|
|
655
673
|
"editor",
|
|
656
674
|
"toolbar-position",
|
|
657
675
|
"is-loading",
|
|
658
676
|
"can-request-merge-tag",
|
|
677
|
+
"can-insert-logic-tag",
|
|
659
678
|
"onOpenLinkDialog",
|
|
660
|
-
"onAddMergeTag"
|
|
679
|
+
"onAddMergeTag",
|
|
680
|
+
"onAddLogicTag"
|
|
661
681
|
]),
|
|
662
682
|
b(P, {
|
|
663
683
|
editor: g(s),
|
|
@@ -679,10 +699,10 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
679
699
|
"onUpdate:dialogRef": i[0] ||= (e) => n(h) ? h.value = e : null,
|
|
680
700
|
"link-url": g(m),
|
|
681
701
|
"onUpdate:linkUrl": i[1] ||= (e) => n(m) ? m.value = e : null,
|
|
682
|
-
onClose: g(
|
|
683
|
-
onInsert: g(
|
|
684
|
-
onRemove: g(
|
|
685
|
-
onKeydown: g(
|
|
702
|
+
onClose: g(C),
|
|
703
|
+
onInsert: g(x),
|
|
704
|
+
onRemove: g(S),
|
|
705
|
+
onKeydown: g(T)
|
|
686
706
|
}, null, 8, [
|
|
687
707
|
"visible",
|
|
688
708
|
"is-editing-link",
|
|
@@ -697,4 +717,4 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
|
|
|
697
717
|
}
|
|
698
718
|
});
|
|
699
719
|
//#endregion
|
|
700
|
-
export {
|
|
720
|
+
export { Me as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as e, B as t, F as n, I as r, T as i, _ as a, a as o, b as s, c, f as l, h as u, m as d, ot as f, p, rt as m, st as h, u as g, v as _, w as v } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import {
|
|
3
|
-
import { t as x } from "./useI18n-
|
|
4
|
-
import { t as S } from "./createLucideIcon-
|
|
5
|
-
import { t as C } from "./x-
|
|
6
|
-
import { t as w } from "./usePopoverRoot-
|
|
1
|
+
import { A as e, B as t, F as n, I as r, T as i, _ as a, a as o, b as s, c, f as l, h as u, m as d, ot as f, p, rt as m, st as h, u as g, v as _, w as v } from "./vue.runtime.esm-bundler-BPa483TZ.js";
|
|
2
|
+
import { I as y, P as b } from "./keys-DgYXDafq.js";
|
|
3
|
+
import { t as x } from "./useI18n-BWqM8i78.js";
|
|
4
|
+
import { t as S } from "./createLucideIcon-Bad2kKE0.js";
|
|
5
|
+
import { t as C } from "./x-DiPIbccg.js";
|
|
6
|
+
import { t as w } from "./usePopoverRoot-B1sdY4es.js";
|
|
7
7
|
var T = S("bold", [["path", {
|
|
8
8
|
d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",
|
|
9
9
|
key: "mg9rjx"
|
|
@@ -59,7 +59,7 @@ var T = S("bold", [["path", {
|
|
|
59
59
|
"keydown"
|
|
60
60
|
], ["update:linkUrl", "update:dialogRef"]),
|
|
61
61
|
setup(n, { emit: i }) {
|
|
62
|
-
let a = r(n, "linkUrl"), s = r(n, "dialogRef"), S = i, T = v(
|
|
62
|
+
let a = r(n, "linkUrl"), s = r(n, "dialogRef"), S = i, T = v(b, null), E = v(y, null), D = w(), { t: R } = x();
|
|
63
63
|
return (r, i) => m(D) ? (e(), p(g, {
|
|
64
64
|
key: 0,
|
|
65
65
|
to: m(D)
|