@templatical/editor 0.16.0 → 0.16.2
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-B-k_Sdas.js → AiChatSidebar-EaPCeDXr.js} +14 -14
- package/dist/{AiFeatureMenu-B5_IKOlI.js → AiFeatureMenu-DfTYyExg.js} +7 -7
- package/dist/{BlockIssueBadge-B3xVgMTh.js → BlockIssueBadge-CZYgn-qg.js} +5 -5
- package/dist/{CloudEditor-BUJk4vXS.js → CloudEditor-BQyZ_nFg.js} +24 -24
- package/dist/{CollaboratorBar-BAUQfXUk.js → CollaboratorBar-DeP7K-zk.js} +4 -4
- package/dist/ColorPicker-CXAbjTaG.js +446 -0
- package/dist/{CommentsSidebar-D_tSGvTX.js → CommentsSidebar-DDKiFsSq.js} +13 -13
- package/dist/{CountdownBlock-apiYUhkQ.js → CountdownBlock-173fiO5Z.js} +3 -3
- package/dist/{CountdownToolbar-CS0axcjz.js → CountdownToolbar-nY9H0BKd.js} +4 -4
- package/dist/{DesignReferenceSidebar-BYQcuaL4.js → DesignReferenceSidebar-D6TfC176.js} +11 -11
- package/dist/{IssuesPanel-CR1MPaDE.js → IssuesPanel-CQQipLQP.js} +8 -8
- package/dist/{LoadingTrack-DsecR8Rw.js → LoadingTrack-KIcREPlS.js} +1 -1
- package/dist/{MergeTagSuggestion-DLVykS0K.js → MergeTagSuggestion-DrT3LiZ4.js} +4 -4
- package/dist/{ModuleBrowserModal-BzDuagt5.js → ModuleBrowserModal-CkeYw1e3.js} +11 -11
- package/dist/{ModulePreviewCanvas-CK11BX4i.js → ModulePreviewCanvas-BIMFyYaa.js} +3 -3
- package/dist/NumberWithSuffix-BoZyUoNz.js +89 -0
- package/dist/{ParagraphEditor-fg9Ljy_Z.js → ParagraphEditor-DGsTFMxg.js} +232 -207
- package/dist/{RichTextEditorContent-BqLHIZY7.js → RichTextEditorContent-BB_n8vgB.js} +56 -45
- package/dist/{SaveModuleDialog-D27ufH5q.js → SaveModuleDialog-Cypt_qOB.js} +8 -8
- package/dist/{SnapshotHistory-Cymqkk9_.js → SnapshotHistory-DQTH8TCS.js} +10 -10
- package/dist/{TemplateScoringPanel-CZ62rGHz.js → TemplateScoringPanel-C8VOC6gn.js} +15 -15
- package/dist/{TestEmailModal-BIvdHidU.js → TestEmailModal-DqxrL-U9.js} +6 -6
- package/dist/{TitleEditor-D0a4NdOn.js → TitleEditor-DoGgnrcb.js} +38 -35
- package/dist/{TplModal-dYXt3vyd.js → TplModal-Ca-29YDD.js} +5 -5
- package/dist/{blockTypeIcons-JSBvsa0M.js → blockTypeIcons-DVJXg5si.js} +7 -7
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-C58VqAgo.js → ca-B3eR47lE.js} +2 -1
- package/dist/cdn/chunks/{AiFeatureMenu-B6V5CzCc.js → AiFeatureMenu-roPglhox.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-B6V5CzCc.js.map → AiFeatureMenu-roPglhox.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-C6Xpl1KK.js → BlockIssueBadge-DW_Tt7Wg.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-C6Xpl1KK.js.map → BlockIssueBadge-DW_Tt7Wg.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-C-npgK-l.js → CloudEditor-CX6y1k3C.js} +161 -161
- package/dist/cdn/chunks/{CloudEditor-C-npgK-l.js.map → CloudEditor-CX6y1k3C.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-BSKXgw9D.js → CollaboratorBar-Dyrab63H.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-BSKXgw9D.js.map → CollaboratorBar-Dyrab63H.js.map} +1 -1
- package/dist/cdn/chunks/ColorPicker-BggAWrc9.js +443 -0
- package/dist/cdn/chunks/ColorPicker-BggAWrc9.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-Y-nycxv2.js → CountdownBlock-Bul4tczj.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-Y-nycxv2.js.map → CountdownBlock-Bul4tczj.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-9LqnhGyh.js → CountdownToolbar-DYvATR0J.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-9LqnhGyh.js.map → CountdownToolbar-DYvATR0J.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BYfGf1rC.js → IssuesPanel-BhHU-hq3.js} +8 -8
- package/dist/cdn/chunks/{IssuesPanel-BYfGf1rC.js.map → IssuesPanel-BhHU-hq3.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-DQzKlLH7.js → MergeTagSuggestion-jesxS7An.js} +3 -3
- package/dist/cdn/chunks/{MergeTagSuggestion-DQzKlLH7.js.map → MergeTagSuggestion-jesxS7An.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-EzKgW5TG.js → ModuleBrowserModal-BGd5Ryyx.js} +9 -9
- package/dist/cdn/chunks/{ModuleBrowserModal-EzKgW5TG.js.map → ModuleBrowserModal-BGd5Ryyx.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-DxbSzXm8.js → ModulePreviewCanvas-Hx6SCCjB.js} +11 -11
- package/dist/cdn/chunks/{ModulePreviewCanvas-DxbSzXm8.js.map → ModulePreviewCanvas-Hx6SCCjB.js.map} +1 -1
- package/dist/cdn/chunks/NumberWithSuffix-BImuhc9K.js +91 -0
- package/dist/cdn/chunks/NumberWithSuffix-BImuhc9K.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-CJNgRMhw.js → ParagraphEditor-K2vENidm.js} +209 -184
- package/dist/cdn/chunks/ParagraphEditor-K2vENidm.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-Cebdzomd.js → RichTextEditorContent-B_w3u5lN.js} +53 -42
- package/dist/cdn/chunks/RichTextEditorContent-B_w3u5lN.js.map +1 -0
- package/dist/cdn/chunks/{SaveModuleDialog-Cufwqoln.js → SaveModuleDialog-Cw-182CB.js} +6 -6
- package/dist/cdn/chunks/{SaveModuleDialog-Cufwqoln.js.map → SaveModuleDialog-Cw-182CB.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-7BhmKL-_.js → TitleEditor-CUKlo_Zj.js} +46 -43
- package/dist/cdn/chunks/TitleEditor-CUKlo_Zj.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-d4Sb61H-.js → blockTypeIcons-Cx1FAqL6.js} +5 -5
- package/dist/cdn/chunks/{blockTypeIcons-d4Sb61H-.js.map → blockTypeIcons-Cx1FAqL6.js.map} +1 -1
- package/dist/cdn/chunks/{ca-C58VqAgo.js → ca-B3eR47lE.js} +3 -2
- package/dist/cdn/chunks/ca-B3eR47lE.js.map +1 -0
- package/dist/cdn/chunks/{de-C0sMmfic.js → de-Cy8FB-Ii.js} +3 -2
- package/dist/cdn/chunks/de-Cy8FB-Ii.js.map +1 -0
- package/dist/cdn/chunks/{draggable-kG-D5Xsm.js → draggable-D840DIZB.js} +52 -39
- package/dist/cdn/chunks/draggable-D840DIZB.js.map +1 -0
- package/dist/cdn/chunks/{en-CsGBTBOf.js → en-Bu-zS_5o.js} +3 -2
- package/dist/cdn/chunks/en-Bu-zS_5o.js.map +1 -0
- package/dist/cdn/chunks/{es-DgjbcPIu.js → es-CD3ZD6hK.js} +3 -2
- package/dist/cdn/chunks/es-CD3ZD6hK.js.map +1 -0
- package/dist/cdn/chunks/{extensions-BeAsz_mp.js → extensions-DSxG2wYf.js} +28 -28
- package/dist/cdn/chunks/{extensions-BeAsz_mp.js.map → extensions-DSxG2wYf.js.map} +1 -1
- package/dist/cdn/chunks/{features-DO71hPJr.js → features-C-cjT_8L.js} +589 -553
- package/dist/cdn/chunks/features-C-cjT_8L.js.map +1 -0
- package/dist/cdn/chunks/{icons-BfP1cRNb.js → icons-ay0_fN-T.js} +2 -2
- package/dist/cdn/chunks/{icons-BfP1cRNb.js.map → icons-ay0_fN-T.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-0S3e0i8G.js → media-library-CkmqPdO4.js} +104 -104
- package/dist/cdn/chunks/{media-library-0S3e0i8G.js.map → media-library-CkmqPdO4.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-DXaP5lMJ.js → pt-BR-CgICL-CQ.js} +3 -2
- package/dist/cdn/chunks/pt-BR-CgICL-CQ.js.map +1 -0
- package/dist/cdn/chunks/quality-CDNrMw2A.js +2180 -0
- package/dist/cdn/chunks/{quality-B6V4R_df.js.map → quality-CDNrMw2A.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-Dhn1J4H4.js → renderer-JQ91A09w.js} +18 -18
- package/dist/cdn/chunks/renderer-JQ91A09w.js.map +1 -0
- package/dist/cdn/chunks/{src-DoKjbqU2.js → src-Cehu7Hqx.js} +5 -5
- package/dist/cdn/chunks/{src-DoKjbqU2.js.map → src-Cehu7Hqx.js.map} +1 -1
- package/dist/cdn/chunks/{styles-CSqligXJ.js → styles-DBjy3lz9.js} +820 -820
- package/dist/cdn/chunks/{styles-CSqligXJ.js.map → styles-DBjy3lz9.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-DVHUKGZf.js → tiptap-zpXk5mN4.js} +1131 -1134
- package/dist/cdn/chunks/{tiptap-DVHUKGZf.js.map → tiptap-zpXk5mN4.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +75 -75
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-rl7ok6uJ.js → check-D1zYtCPK.js} +1 -1
- package/dist/{chevron-down-BKe__NOD.js → chevron-down-ByXpufZD.js} +1 -1
- package/dist/{circle-alert-C8xmpMsK.js → circle-alert-CjcAORUw.js} +1 -1
- package/dist/{clock-BW4JuDCN.js → clock-5lWLadUn.js} +1 -1
- package/dist/{cloud-CFpaFRCV.js → cloud-BogxOeZu.js} +1 -1
- package/dist/{createLucideIcon-Dx-EjR9r.js → createLucideIcon-Bh9xOmlW.js} +3 -3
- package/dist/{de-C0sMmfic.js → de-Cy8FB-Ii.js} +2 -1
- package/dist/dist-BE9m_i60.js +5 -0
- package/dist/{dist-C5-0GG3g.js → dist-BPPeDw62.js} +2 -2
- package/dist/{dist-DEcNpSJi.js → dist-BReUTadj.js} +4 -4
- package/dist/dist-BXR1aBJV.js +5 -0
- package/dist/{dist-r_2rJCMg.js → dist-Bm07Z3Es.js} +2 -2
- package/dist/{dist-BEWiuOMi.js → dist-CFOQvhSC.js} +3 -3
- package/dist/{dist-Ci5GHd96.js → dist-CHLoeloJ.js} +2 -2
- package/dist/{dist-0VHbLR6h.js → dist-D1WmF8BF.js} +2 -2
- package/dist/{dist-DrlHbc8g.js → dist-D9g4CSnm.js} +1 -1
- package/dist/{dist-Drm7i-yw.js → dist-DGEaAAIb.js} +2 -2
- package/dist/{dist-CTT6WYJ6.js → dist-DYv_Pttj.js} +2 -2
- package/dist/{dist-Dsoq4knU.js → dist-DcKlLQ8d.js} +2 -2
- package/dist/{dist-D_-AsMP4.js → dist-DhY2di4U.js} +2 -2
- package/dist/{dist-FVawx7ou.js → dist-i_Z7t67A.js} +260 -263
- package/dist/{en-CsGBTBOf.js → en-Bu-zS_5o.js} +2 -1
- package/dist/{es-DgjbcPIu.js → es-CD3ZD6hK.js} +2 -1
- package/dist/{extensions-3jhgwhV-.js → extensions-B2poxDIo.js} +7 -7
- package/dist/{image-up-BwBCmQ4P.js → image-up-Bj_nes3f.js} +1 -1
- package/dist/{info-TCn7uWR5.js → info-BhSQCxBV.js} +1 -1
- package/dist/{keys-Cv8-8GsD.js → keys-BbDgCU6K.js} +1 -1
- package/dist/{list-checks-CSrOWNgq.js → list-checks-CgxyUg7i.js} +1 -1
- package/dist/{loader-circle-BLmicnPG.js → loader-circle-DFU0HPAa.js} +1 -1
- package/dist/{message-circle-C9hHMQCI.js → message-circle-BEBsCHnk.js} +1 -1
- package/dist/{pt-BR-DXaP5lMJ.js → pt-BR-CgICL-CQ.js} +2 -1
- package/dist/{refresh-cw-D1JQ1LNa.js → refresh-cw--lvWGy0_.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-BzuoCyNp.js → runtime-dom.esm-bundler-GdMI8WqG.js} +6 -7
- package/dist/{scan-line-DgijVq9y.js → scan-line-QgyDIgn_.js} +1 -1
- package/dist/{send-DjPdq69F.js → send-BMyisUim.js} +1 -1
- package/dist/{shield-check-Bqluu8FS.js → shield-check-C49M20le.js} +1 -1
- package/dist/{sparkles-M4azPVSP.js → sparkles-DV7Dman6.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styles-5sGbDIA2.js → styles-mvx3k1hf.js} +78 -78
- package/dist/templatical-editor.js +62 -62
- package/dist/{text-align-start-CMya5pCQ.js → text-align-start-BMU70uAm.js} +1 -1
- package/dist/{trash-2-C-81rkLS.js → trash-2-B6M659Ey.js} +1 -1
- package/dist/{triangle-alert-BuRWnynk.js → triangle-alert-D1lzx6ds.js} +1 -1
- package/dist/{upload-CWBIoLd4.js → upload-3A1oZtOR.js} +1 -1
- package/dist/{useAliveFlag-CECL_OUb.js → useAliveFlag-C43EhZFY.js} +1 -1
- package/dist/{useCloudI18n-AKCy98qD.js → useCloudI18n-WbfVWq5k.js} +2 -2
- package/dist/{useEditorCore-AQ0BN1ug.js → useEditorCore-DtZkR7Vk.js} +616 -580
- package/dist/{useI18n-C-TDeJBt.js → useI18n-eR1yVW0v.js} +2 -2
- package/dist/{useMergeTag-D0aZw7Q5.js → useMergeTag-C3GfSktg.js} +2 -2
- package/dist/usePopoverRoot-C1j0D7cc.js +8 -0
- package/dist/{vue.runtime.esm-bundler-l0XAqiyv.js → vue.runtime.esm-bundler-B0xoGkDv.js} +84 -70
- package/dist/{x-CQSvXnGR.js → x-CG_NV3nP.js} +1 -1
- package/package.json +23 -23
- package/dist/NumberWithSuffix-CrA6quxx.js +0 -445
- package/dist/cdn/chunks/NumberWithSuffix-Conp_Pki.js +0 -444
- package/dist/cdn/chunks/NumberWithSuffix-Conp_Pki.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-CJNgRMhw.js.map +0 -1
- package/dist/cdn/chunks/RichTextEditorContent-Cebdzomd.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-7BhmKL-_.js.map +0 -1
- package/dist/cdn/chunks/ca-C58VqAgo.js.map +0 -1
- package/dist/cdn/chunks/de-C0sMmfic.js.map +0 -1
- package/dist/cdn/chunks/draggable-kG-D5Xsm.js.map +0 -1
- package/dist/cdn/chunks/en-CsGBTBOf.js.map +0 -1
- package/dist/cdn/chunks/es-DgjbcPIu.js.map +0 -1
- package/dist/cdn/chunks/features-DO71hPJr.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-DXaP5lMJ.js.map +0 -1
- package/dist/cdn/chunks/quality-B6V4R_df.js +0 -2180
- package/dist/cdn/chunks/renderer-Dhn1J4H4.js.map +0 -1
- package/dist/cdn/chunks/styleConstants-lGobwiLH.js +0 -57
- package/dist/cdn/chunks/styleConstants-lGobwiLH.js.map +0 -1
- package/dist/dist-DR-6IpV6.js +0 -5
- package/dist/dist-DW8b0TO6.js +0 -5
- package/dist/styleConstants-lGobwiLH.js +0 -55
- package/dist/usePopoverRoot-DKUDnr55.js +0 -8
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { A as e, Dt as t, Et as n, N as r, O as i, Ot as a, W as o, Y as s, _ as c, c as l, d as u, h as d, i as f, l as p, m, nt as h, r as g, s as _, u as v, x as y } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { c as b, s as x } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { I as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { a as
|
|
9
|
-
import { n as
|
|
10
|
-
import { t as
|
|
11
|
-
import { n as
|
|
12
|
-
import { t as
|
|
13
|
-
import {
|
|
14
|
-
import { t as
|
|
15
|
-
var
|
|
1
|
+
import { A as e, Dt as t, Et as n, N as r, O as i, Ot as a, W as o, Y as s, _ as c, c as l, d as u, h as d, i as f, l as p, m, nt as h, r as g, s as _, u as v, x as y } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
|
+
import { c as b, s as x } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
+
import { D as S, E as C, S as w, x as T } from "./useEditorCore-DtZkR7Vk.js";
|
|
4
|
+
import { t as E } from "./dist-CFOQvhSC.js";
|
|
5
|
+
import { I as D, L as O, P as k, g as ee, m as te, w as ne, x as re } from "./keys-BbDgCU6K.js";
|
|
6
|
+
import { t as A } from "./useI18n-eR1yVW0v.js";
|
|
7
|
+
import { t as j } from "./createLucideIcon-Bh9xOmlW.js";
|
|
8
|
+
import { a as ie, i as ae, n as M, r as oe, t as N } from "./RichTextEditorContent-BB_n8vgB.js";
|
|
9
|
+
import { n as se, t as ce } from "./scan-line-QgyDIgn_.js";
|
|
10
|
+
import { t as le } from "./loader-circle-DFU0HPAa.js";
|
|
11
|
+
import { n as ue, r as de, t as fe } from "./text-align-start-BMU70uAm.js";
|
|
12
|
+
import { t as P } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { t as F } from "./usePopoverRoot-C1j0D7cc.js";
|
|
14
|
+
import { c as pe, o as me, r as he, s as ge, t as I } from "./ColorPicker-CXAbjTaG.js";
|
|
15
|
+
var L = j("list-ordered", [
|
|
16
16
|
["path", {
|
|
17
17
|
d: "M11 5h10",
|
|
18
18
|
key: "1cz7ny"
|
|
@@ -37,7 +37,7 @@ var z = A("list-ordered", [
|
|
|
37
37
|
d: "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",
|
|
38
38
|
key: "xtkcd5"
|
|
39
39
|
}]
|
|
40
|
-
]),
|
|
40
|
+
]), _e = j("list", [
|
|
41
41
|
["path", {
|
|
42
42
|
d: "M3 5h.01",
|
|
43
43
|
key: "18ugdj"
|
|
@@ -62,7 +62,7 @@ var z = A("list-ordered", [
|
|
|
62
62
|
d: "M8 19h13",
|
|
63
63
|
key: "m83p4d"
|
|
64
64
|
}]
|
|
65
|
-
]),
|
|
65
|
+
]), ve = j("remove-formatting", [
|
|
66
66
|
["path", {
|
|
67
67
|
d: "M4 7V4h16v3",
|
|
68
68
|
key: "9msm58"
|
|
@@ -83,7 +83,7 @@ var z = A("list-ordered", [
|
|
|
83
83
|
d: "m20 15-5 5",
|
|
84
84
|
key: "11p7ol"
|
|
85
85
|
}]
|
|
86
|
-
]),
|
|
86
|
+
]), R = j("smile", [
|
|
87
87
|
["circle", {
|
|
88
88
|
cx: "12",
|
|
89
89
|
cy: "12",
|
|
@@ -108,7 +108,7 @@ var z = A("list-ordered", [
|
|
|
108
108
|
y2: "9",
|
|
109
109
|
key: "1p4y9e"
|
|
110
110
|
}]
|
|
111
|
-
]),
|
|
111
|
+
]), ye = j("subscript", [
|
|
112
112
|
["path", {
|
|
113
113
|
d: "m4 5 8 8",
|
|
114
114
|
key: "1eunvl"
|
|
@@ -121,7 +121,7 @@ var z = A("list-ordered", [
|
|
|
121
121
|
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",
|
|
122
122
|
key: "e8ta8j"
|
|
123
123
|
}]
|
|
124
|
-
]),
|
|
124
|
+
]), be = j("strikethrough", [
|
|
125
125
|
["path", {
|
|
126
126
|
d: "M16 4H9a3 3 0 0 0-2.83 4",
|
|
127
127
|
key: "43sutm"
|
|
@@ -137,7 +137,7 @@ var z = A("list-ordered", [
|
|
|
137
137
|
y2: "12",
|
|
138
138
|
key: "1e0a9i"
|
|
139
139
|
}]
|
|
140
|
-
]),
|
|
140
|
+
]), xe = j("superscript", [
|
|
141
141
|
["path", {
|
|
142
142
|
d: "m4 19 8-8",
|
|
143
143
|
key: "hr47gm"
|
|
@@ -150,7 +150,7 @@ var z = A("list-ordered", [
|
|
|
150
150
|
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",
|
|
151
151
|
key: "1dfcux"
|
|
152
152
|
}]
|
|
153
|
-
]),
|
|
153
|
+
]), Se = j("underline", [["path", {
|
|
154
154
|
d: "M6 4v6a6 6 0 0 0 12 0V4",
|
|
155
155
|
key: "9kb039"
|
|
156
156
|
}], ["line", {
|
|
@@ -159,16 +159,16 @@ var z = A("list-ordered", [
|
|
|
159
159
|
y1: "20",
|
|
160
160
|
y2: "20",
|
|
161
161
|
key: "nun2al"
|
|
162
|
-
}]]),
|
|
162
|
+
}]]), z = [
|
|
163
163
|
"aria-label",
|
|
164
164
|
"title",
|
|
165
165
|
"aria-expanded"
|
|
166
|
-
],
|
|
166
|
+
], B = ["aria-label"], V = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, H = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, U = ["aria-label", "onClick"], Ce = /* @__PURE__ */ c({
|
|
167
167
|
__name: "EmojiPickerDropdown",
|
|
168
168
|
emits: ["insert"],
|
|
169
169
|
setup(t, { emit: r }) {
|
|
170
|
-
let o = r, { categories: c, isOpen: f, toggle: p, close: m } = C(), { t: y, format: w } =
|
|
171
|
-
S(
|
|
170
|
+
let o = r, { categories: c, isOpen: f, toggle: p, close: m } = C(), { t: y, format: w } = A(), T = s(null), D = s(null);
|
|
171
|
+
S(T, _(() => f.value)), E(D, () => {
|
|
172
172
|
f.value && m();
|
|
173
173
|
});
|
|
174
174
|
function O(e) {
|
|
@@ -187,14 +187,14 @@ var z = A("list-ordered", [
|
|
|
187
187
|
"aria-haspopup": "dialog",
|
|
188
188
|
"aria-controls": "tpl-emoji-picker",
|
|
189
189
|
onClick: r[0] ||= (...e) => h(p) && h(p)(...e)
|
|
190
|
-
}, [d(h(
|
|
190
|
+
}, [d(h(R), {
|
|
191
191
|
size: 16,
|
|
192
192
|
"stroke-width": 2
|
|
193
|
-
})], 10,
|
|
193
|
+
})], 10, z), h(f) ? (i(), u("div", {
|
|
194
194
|
key: 0,
|
|
195
195
|
id: "tpl-emoji-picker",
|
|
196
196
|
ref_key: "pickerRef",
|
|
197
|
-
ref:
|
|
197
|
+
ref: T,
|
|
198
198
|
role: "dialog",
|
|
199
199
|
"aria-modal": "false",
|
|
200
200
|
"aria-label": h(y).paragraphEditor.insertEmoji,
|
|
@@ -204,19 +204,19 @@ var z = A("list-ordered", [
|
|
|
204
204
|
}, [(i(!0), u(g, null, e(h(c), (t) => (i(), u("div", {
|
|
205
205
|
key: t.key,
|
|
206
206
|
class: "tpl:mb-2 tpl:last:mb-0"
|
|
207
|
-
}, [l("div",
|
|
207
|
+
}, [l("div", V, a(h(y).emoji[t.key]), 1), l("div", H, [(i(!0), u(g, null, e(t.emojis, (e) => (i(), u("button", {
|
|
208
208
|
key: e,
|
|
209
209
|
type: "button",
|
|
210
210
|
"aria-label": h(w)(h(y).paragraphEditor.emojiItemLabel, { emoji: e }),
|
|
211
211
|
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)]",
|
|
212
212
|
onClick: (t) => O(e)
|
|
213
|
-
}, a(e), 9,
|
|
213
|
+
}, a(e), 9, U))), 128))])]))), 128))], 40, B)) : v("", !0)], 512));
|
|
214
214
|
}
|
|
215
|
-
}),
|
|
215
|
+
}), W = [
|
|
216
216
|
"aria-label",
|
|
217
217
|
"title",
|
|
218
218
|
"aria-pressed"
|
|
219
|
-
],
|
|
219
|
+
], G = /* @__PURE__ */ c({
|
|
220
220
|
__name: "ToolbarIconButton",
|
|
221
221
|
props: {
|
|
222
222
|
icon: {},
|
|
@@ -235,20 +235,20 @@ var z = A("list-ordered", [
|
|
|
235
235
|
}, [(i(), p(r(e.icon), {
|
|
236
236
|
size: e.size ?? 16,
|
|
237
237
|
"stroke-width": e.strokeWidth ?? 2
|
|
238
|
-
}, null, 8, ["size", "stroke-width"]))], 10,
|
|
238
|
+
}, null, 8, ["size", "stroke-width"]))], 10, W));
|
|
239
239
|
}
|
|
240
|
-
}),
|
|
240
|
+
}), K = {}, q = {
|
|
241
241
|
class: "tpl:mx-1 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
|
|
242
242
|
"aria-hidden": "true"
|
|
243
243
|
};
|
|
244
|
-
function
|
|
245
|
-
return i(), u("span",
|
|
244
|
+
function J(e, t) {
|
|
245
|
+
return i(), u("span", q);
|
|
246
246
|
}
|
|
247
|
-
var
|
|
247
|
+
var Y = /*#__PURE__*/ P(K, [["render", J]]), X = [
|
|
248
248
|
"value",
|
|
249
249
|
"aria-label",
|
|
250
250
|
"title"
|
|
251
|
-
],
|
|
251
|
+
], we = { value: "" }, Te = ["value"], Z = /* @__PURE__ */ c({
|
|
252
252
|
__name: "ToolbarSelect",
|
|
253
253
|
props: {
|
|
254
254
|
modelValue: {},
|
|
@@ -275,23 +275,23 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
|
|
|
275
275
|
"aria-label": t.label,
|
|
276
276
|
title: t.label,
|
|
277
277
|
onChange: s
|
|
278
|
-
}, [l("option",
|
|
278
|
+
}, [l("option", we, a(t.placeholder ?? ""), 1), (i(!0), u(g, null, e(t.options, (e) => (i(), u("option", {
|
|
279
279
|
key: c(e),
|
|
280
280
|
value: c(e)
|
|
281
|
-
}, a(d(e)), 9,
|
|
281
|
+
}, a(d(e)), 9, Te))), 128))], 42, X));
|
|
282
282
|
}
|
|
283
|
-
})
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
],
|
|
283
|
+
});
|
|
284
|
+
//#endregion
|
|
285
|
+
//#region src/utils/richTextColor.ts
|
|
286
|
+
function Q(e, t) {
|
|
287
|
+
return e || t || "#000000";
|
|
288
|
+
}
|
|
289
|
+
//#endregion
|
|
290
|
+
//#region src/components/blocks/ParagraphToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
291
|
+
var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Oe = { class: "tpl:flex tpl:items-center tpl:gap-1" }, ke = ["aria-label", "title"], Ae = ["aria-label", "title"], $ = {
|
|
292
292
|
key: 1,
|
|
293
293
|
class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
294
|
-
},
|
|
294
|
+
}, je = /* @__PURE__ */ c({
|
|
295
295
|
__name: "ParagraphToolbar",
|
|
296
296
|
props: {
|
|
297
297
|
editor: {},
|
|
@@ -306,26 +306,39 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
|
|
|
306
306
|
"add-logic-tag"
|
|
307
307
|
],
|
|
308
308
|
setup(e, { emit: n }) {
|
|
309
|
-
let r = e, o = n, s = y(
|
|
310
|
-
function
|
|
309
|
+
let r = e, o = n, s = y(k, null), c = y(D, null), b = O(ee, "ParagraphToolbar"), x = F(), S = y(ne, null), C = y(re, null), w = y(te, null), T = _(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: E } = A(), j = b.fonts;
|
|
310
|
+
function M(e) {
|
|
311
311
|
r.editor?.chain().focus().insertContent(e).run();
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function N(e) {
|
|
314
314
|
return r.editor?.getAttributes("textStyle")[e] || "";
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function P(e) {
|
|
317
317
|
let t = r.editor?.chain().focus();
|
|
318
318
|
e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function R(e) {
|
|
321
321
|
let t = r.editor?.chain().focus();
|
|
322
322
|
e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function z() {
|
|
325
|
+
return r.editor?.isActive("link") ?? !1;
|
|
326
|
+
}
|
|
327
|
+
function B() {
|
|
328
|
+
return r.editor?.getAttributes("link").color || "";
|
|
329
|
+
}
|
|
330
|
+
function V(e) {
|
|
325
331
|
let t = r.editor?.chain().focus();
|
|
326
|
-
e ? t
|
|
332
|
+
t && (z() ? (t.extendMarkRange("link").updateAttributes("link", { color: e || null }), e && t.unsetColor(), t.run()) : e ? t.setColor(e).updateAttributes("link", { color: e }).run() : t.unsetColor().run());
|
|
333
|
+
}
|
|
334
|
+
function H() {
|
|
335
|
+
let e = w?.content.value.settings;
|
|
336
|
+
return z() ? Q(B(), e?.linkColor || e?.textColor) : Q(N("color"), e?.textColor);
|
|
327
337
|
}
|
|
328
|
-
function
|
|
338
|
+
function U() {
|
|
339
|
+
return z() ? B() : N("color");
|
|
340
|
+
}
|
|
341
|
+
function W() {
|
|
329
342
|
return r.editor?.getAttributes("paragraph").lineHeight || "";
|
|
330
343
|
}
|
|
331
344
|
function K(e) {
|
|
@@ -339,17 +352,17 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
|
|
|
339
352
|
function J() {
|
|
340
353
|
return r.editor?.getAttributes("highlight").color || "";
|
|
341
354
|
}
|
|
342
|
-
function
|
|
355
|
+
function X(e) {
|
|
343
356
|
let t = r.editor?.chain().focus();
|
|
344
357
|
e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
|
|
345
358
|
}
|
|
346
|
-
return (n, r) => h(x) && !
|
|
359
|
+
return (n, r) => h(x) && !T.value ? (i(), p(f, {
|
|
347
360
|
key: 0,
|
|
348
361
|
to: h(x)
|
|
349
362
|
}, [l("div", {
|
|
350
363
|
"data-tpl-theme": h(c),
|
|
351
364
|
role: "toolbar",
|
|
352
|
-
"aria-label": h(
|
|
365
|
+
"aria-label": h(E).paragraphEditor.toolbar,
|
|
353
366
|
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",
|
|
354
367
|
style: t({
|
|
355
368
|
...h(s),
|
|
@@ -358,182 +371,191 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
|
|
|
358
371
|
transform: "translateY(-100%)",
|
|
359
372
|
flexDirection: "column"
|
|
360
373
|
})
|
|
361
|
-
}, [!e.isLoading && e.editor ? (i(), u(g, { key: 0 }, [l("div",
|
|
362
|
-
d(
|
|
363
|
-
"model-value":
|
|
364
|
-
options: h(
|
|
365
|
-
label: h(
|
|
366
|
-
placeholder: h(
|
|
374
|
+
}, [!e.isLoading && e.editor ? (i(), u(g, { key: 0 }, [l("div", De, [
|
|
375
|
+
d(Z, {
|
|
376
|
+
"model-value": N("fontFamily"),
|
|
377
|
+
options: h(j),
|
|
378
|
+
label: h(E).paragraphEditor.fontFamily,
|
|
379
|
+
placeholder: h(E).paragraphEditor.defaultFont,
|
|
367
380
|
"width-class": "tpl:w-32",
|
|
368
|
-
"onUpdate:modelValue":
|
|
381
|
+
"onUpdate:modelValue": P
|
|
369
382
|
}, null, 8, [
|
|
370
383
|
"model-value",
|
|
371
384
|
"options",
|
|
372
385
|
"label",
|
|
373
386
|
"placeholder"
|
|
374
387
|
]),
|
|
375
|
-
d(
|
|
376
|
-
"model-value":
|
|
377
|
-
options: h(
|
|
378
|
-
label: h(
|
|
379
|
-
placeholder: h(
|
|
388
|
+
d(Z, {
|
|
389
|
+
"model-value": N("fontSize"),
|
|
390
|
+
options: h(me),
|
|
391
|
+
label: h(E).paragraphEditor.fontSize,
|
|
392
|
+
placeholder: h(E).paragraphEditor.defaultSize,
|
|
380
393
|
"width-class": "tpl:w-20",
|
|
381
|
-
"onUpdate:modelValue":
|
|
394
|
+
"onUpdate:modelValue": R
|
|
382
395
|
}, null, 8, [
|
|
383
396
|
"model-value",
|
|
384
397
|
"options",
|
|
385
398
|
"label",
|
|
386
399
|
"placeholder"
|
|
387
400
|
]),
|
|
388
|
-
d(
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
"
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
401
|
+
d(Y),
|
|
402
|
+
d(I, {
|
|
403
|
+
"swatch-only": "",
|
|
404
|
+
size: "sm",
|
|
405
|
+
"data-testid": "text-color-picker",
|
|
406
|
+
"model-value": U(),
|
|
407
|
+
"seed-color": H(),
|
|
408
|
+
"aria-label": h(E).paragraphEditor.textColor,
|
|
409
|
+
"onUpdate:modelValue": V
|
|
410
|
+
}, null, 8, [
|
|
411
|
+
"model-value",
|
|
412
|
+
"seed-color",
|
|
413
|
+
"aria-label"
|
|
414
|
+
]),
|
|
415
|
+
d(I, {
|
|
416
|
+
"swatch-only": "",
|
|
417
|
+
size: "sm",
|
|
418
|
+
"data-testid": "highlight-color-picker",
|
|
419
|
+
"model-value": J(),
|
|
420
|
+
"seed-color": h(he),
|
|
421
|
+
"aria-label": h(E).paragraphEditor.highlightColor,
|
|
422
|
+
"onUpdate:modelValue": X
|
|
423
|
+
}, null, 8, [
|
|
424
|
+
"model-value",
|
|
425
|
+
"seed-color",
|
|
426
|
+
"aria-label"
|
|
427
|
+
]),
|
|
428
|
+
d(Y),
|
|
429
|
+
d(G, {
|
|
430
|
+
icon: h(ie),
|
|
431
|
+
label: h(E).paragraphEditor.bold,
|
|
410
432
|
active: e.editor.isActive("bold"),
|
|
411
433
|
"stroke-width": 2.5,
|
|
412
|
-
onClick: r[
|
|
434
|
+
onClick: r[0] ||= (t) => e.editor.chain().focus().toggleBold().run()
|
|
413
435
|
}, null, 8, [
|
|
414
436
|
"icon",
|
|
415
437
|
"label",
|
|
416
438
|
"active"
|
|
417
439
|
]),
|
|
418
|
-
d(
|
|
419
|
-
icon: h(
|
|
420
|
-
label: h(
|
|
440
|
+
d(G, {
|
|
441
|
+
icon: h(ae),
|
|
442
|
+
label: h(E).paragraphEditor.italic,
|
|
421
443
|
active: e.editor.isActive("italic"),
|
|
422
|
-
onClick: r[
|
|
444
|
+
onClick: r[1] ||= (t) => e.editor.chain().focus().toggleItalic().run()
|
|
423
445
|
}, null, 8, [
|
|
424
446
|
"icon",
|
|
425
447
|
"label",
|
|
426
448
|
"active"
|
|
427
449
|
]),
|
|
428
|
-
d(
|
|
429
|
-
icon: h(
|
|
430
|
-
label: h(
|
|
450
|
+
d(G, {
|
|
451
|
+
icon: h(Se),
|
|
452
|
+
label: h(E).paragraphEditor.underline,
|
|
431
453
|
active: e.editor.isActive("underline"),
|
|
432
|
-
onClick: r[
|
|
454
|
+
onClick: r[2] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
|
|
433
455
|
}, null, 8, [
|
|
434
456
|
"icon",
|
|
435
457
|
"label",
|
|
436
458
|
"active"
|
|
437
459
|
]),
|
|
438
|
-
d(
|
|
439
|
-
icon: h(
|
|
440
|
-
label: h(
|
|
460
|
+
d(G, {
|
|
461
|
+
icon: h(be),
|
|
462
|
+
label: h(E).paragraphEditor.strikethrough,
|
|
441
463
|
active: e.editor.isActive("strike"),
|
|
442
|
-
onClick: r[
|
|
464
|
+
onClick: r[3] ||= (t) => e.editor.chain().focus().toggleStrike().run()
|
|
443
465
|
}, null, 8, [
|
|
444
466
|
"icon",
|
|
445
467
|
"label",
|
|
446
468
|
"active"
|
|
447
469
|
]),
|
|
448
|
-
d(
|
|
449
|
-
d(
|
|
450
|
-
icon: h(
|
|
451
|
-
label: h(
|
|
470
|
+
d(Y),
|
|
471
|
+
d(G, {
|
|
472
|
+
icon: h(ye),
|
|
473
|
+
label: h(E).paragraphEditor.subscript,
|
|
452
474
|
active: e.editor.isActive("subscript"),
|
|
453
|
-
onClick: r[
|
|
475
|
+
onClick: r[4] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
|
|
454
476
|
}, null, 8, [
|
|
455
477
|
"icon",
|
|
456
478
|
"label",
|
|
457
479
|
"active"
|
|
458
480
|
]),
|
|
459
|
-
d(
|
|
460
|
-
icon: h(
|
|
461
|
-
label: h(
|
|
481
|
+
d(G, {
|
|
482
|
+
icon: h(xe),
|
|
483
|
+
label: h(E).paragraphEditor.superscript,
|
|
462
484
|
active: e.editor.isActive("superscript"),
|
|
463
|
-
onClick: r[
|
|
485
|
+
onClick: r[5] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
|
|
464
486
|
}, null, 8, [
|
|
465
487
|
"icon",
|
|
466
488
|
"label",
|
|
467
489
|
"active"
|
|
468
490
|
]),
|
|
469
|
-
d(
|
|
470
|
-
d(
|
|
471
|
-
icon: h(
|
|
472
|
-
label: h(
|
|
491
|
+
d(Y),
|
|
492
|
+
d(G, {
|
|
493
|
+
icon: h(oe),
|
|
494
|
+
label: h(E).paragraphEditor.addLink,
|
|
473
495
|
active: e.editor.isActive("link"),
|
|
474
|
-
onClick: r[
|
|
496
|
+
onClick: r[6] ||= (e) => o("open-link-dialog")
|
|
475
497
|
}, null, 8, [
|
|
476
498
|
"icon",
|
|
477
499
|
"label",
|
|
478
500
|
"active"
|
|
479
501
|
])
|
|
480
|
-
]), l("div",
|
|
481
|
-
d(
|
|
482
|
-
icon: h(
|
|
483
|
-
label: h(
|
|
502
|
+
]), l("div", Oe, [
|
|
503
|
+
d(G, {
|
|
504
|
+
icon: h(_e),
|
|
505
|
+
label: h(E).paragraphEditor.bulletList,
|
|
484
506
|
active: e.editor.isActive("bulletList"),
|
|
485
|
-
onClick: r[
|
|
507
|
+
onClick: r[7] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
|
|
486
508
|
}, null, 8, [
|
|
487
509
|
"icon",
|
|
488
510
|
"label",
|
|
489
511
|
"active"
|
|
490
512
|
]),
|
|
491
|
-
d(
|
|
492
|
-
icon: h(
|
|
493
|
-
label: h(
|
|
513
|
+
d(G, {
|
|
514
|
+
icon: h(L),
|
|
515
|
+
label: h(E).paragraphEditor.numberedList,
|
|
494
516
|
active: e.editor.isActive("orderedList"),
|
|
495
|
-
onClick: r[
|
|
517
|
+
onClick: r[8] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
|
|
496
518
|
}, null, 8, [
|
|
497
519
|
"icon",
|
|
498
520
|
"label",
|
|
499
521
|
"active"
|
|
500
522
|
]),
|
|
501
|
-
d(
|
|
502
|
-
d(
|
|
503
|
-
icon: h(
|
|
504
|
-
label: h(
|
|
523
|
+
d(Y),
|
|
524
|
+
d(G, {
|
|
525
|
+
icon: h(fe),
|
|
526
|
+
label: h(E).paragraphEditor.alignLeft,
|
|
505
527
|
active: e.editor.isActive({ textAlign: "left" }),
|
|
506
|
-
onClick: r[
|
|
528
|
+
onClick: r[9] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
|
|
507
529
|
}, null, 8, [
|
|
508
530
|
"icon",
|
|
509
531
|
"label",
|
|
510
532
|
"active"
|
|
511
533
|
]),
|
|
512
|
-
d(
|
|
513
|
-
icon: h(
|
|
514
|
-
label: h(
|
|
534
|
+
d(G, {
|
|
535
|
+
icon: h(ue),
|
|
536
|
+
label: h(E).paragraphEditor.alignCenter,
|
|
515
537
|
active: e.editor.isActive({ textAlign: "center" }),
|
|
516
|
-
onClick: r[
|
|
538
|
+
onClick: r[10] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
|
|
517
539
|
}, null, 8, [
|
|
518
540
|
"icon",
|
|
519
541
|
"label",
|
|
520
542
|
"active"
|
|
521
543
|
]),
|
|
522
|
-
d(
|
|
523
|
-
icon: h(
|
|
524
|
-
label: h(
|
|
544
|
+
d(G, {
|
|
545
|
+
icon: h(de),
|
|
546
|
+
label: h(E).paragraphEditor.alignRight,
|
|
525
547
|
active: e.editor.isActive({ textAlign: "right" }),
|
|
526
|
-
onClick: r[
|
|
548
|
+
onClick: r[11] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
|
|
527
549
|
}, null, 8, [
|
|
528
550
|
"icon",
|
|
529
551
|
"label",
|
|
530
552
|
"active"
|
|
531
553
|
]),
|
|
532
|
-
d(
|
|
533
|
-
d(
|
|
534
|
-
"model-value":
|
|
535
|
-
options: h(
|
|
536
|
-
label: h(
|
|
554
|
+
d(Y),
|
|
555
|
+
d(Z, {
|
|
556
|
+
"model-value": W(),
|
|
557
|
+
options: h(pe),
|
|
558
|
+
label: h(E).paragraphEditor.lineHeight,
|
|
537
559
|
placeholder: "LH",
|
|
538
560
|
"width-class": "tpl:w-16",
|
|
539
561
|
"onUpdate:modelValue": K
|
|
@@ -542,10 +564,10 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
|
|
|
542
564
|
"options",
|
|
543
565
|
"label"
|
|
544
566
|
]),
|
|
545
|
-
d(
|
|
546
|
-
"model-value":
|
|
547
|
-
options: h(
|
|
548
|
-
label: h(
|
|
567
|
+
d(Z, {
|
|
568
|
+
"model-value": N("letterSpacing"),
|
|
569
|
+
options: h(ge),
|
|
570
|
+
label: h(E).paragraphEditor.letterSpacing,
|
|
549
571
|
placeholder: "LS",
|
|
550
572
|
"width-class": "tpl:w-20",
|
|
551
573
|
"onUpdate:modelValue": q
|
|
@@ -554,42 +576,42 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
|
|
|
554
576
|
"options",
|
|
555
577
|
"label"
|
|
556
578
|
]),
|
|
557
|
-
d(
|
|
558
|
-
d(
|
|
559
|
-
icon: h(
|
|
560
|
-
label: h(
|
|
561
|
-
onClick: r[
|
|
579
|
+
d(Y),
|
|
580
|
+
d(G, {
|
|
581
|
+
icon: h(ve),
|
|
582
|
+
label: h(E).paragraphEditor.clearFormatting,
|
|
583
|
+
onClick: r[12] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
|
|
562
584
|
}, null, 8, ["icon", "label"]),
|
|
563
|
-
d(
|
|
564
|
-
d(
|
|
565
|
-
e.canRequestMergeTag ? (i(), u(g, { key: 0 }, [d(
|
|
585
|
+
d(Y),
|
|
586
|
+
d(Ce, { onInsert: M }),
|
|
587
|
+
e.canRequestMergeTag ? (i(), u(g, { key: 0 }, [d(Y), l("button", {
|
|
566
588
|
type: "button",
|
|
567
589
|
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)]",
|
|
568
|
-
"aria-label": h(
|
|
569
|
-
title: h(
|
|
570
|
-
onClick: r[
|
|
571
|
-
}, [d(h(
|
|
590
|
+
"aria-label": h(E).mergeTag.insert,
|
|
591
|
+
title: h(E).mergeTag.insert,
|
|
592
|
+
onClick: r[13] ||= (e) => o("add-merge-tag")
|
|
593
|
+
}, [d(h(ce), {
|
|
572
594
|
size: 16,
|
|
573
595
|
"stroke-width": 2
|
|
574
|
-
}), m(" " + a(h(
|
|
575
|
-
e.canInsertLogicTag ? (i(), u(g, { key: 1 }, [d(
|
|
596
|
+
}), m(" " + a(h(E).mergeTag.insertShort), 1)], 8, ke)], 64)) : v("", !0),
|
|
597
|
+
e.canInsertLogicTag ? (i(), u(g, { key: 1 }, [d(Y), l("button", {
|
|
576
598
|
type: "button",
|
|
577
599
|
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)]",
|
|
578
|
-
"aria-label": h(
|
|
579
|
-
title: h(
|
|
600
|
+
"aria-label": h(E).logicTag.insert,
|
|
601
|
+
title: h(E).logicTag.insert,
|
|
580
602
|
"data-testid": "insert-logic-button",
|
|
581
|
-
onClick: r[
|
|
582
|
-
}, [d(h(
|
|
603
|
+
onClick: r[14] ||= (e) => o("add-logic-tag")
|
|
604
|
+
}, [d(h(se), {
|
|
583
605
|
size: 16,
|
|
584
606
|
"stroke-width": 2
|
|
585
|
-
}), m(" " + a(h(
|
|
586
|
-
])], 64)) : (i(), u("div",
|
|
607
|
+
}), m(" " + a(h(E).logicTag.insertShort), 1)], 8, Ae)], 64)) : v("", !0)
|
|
608
|
+
])], 64)) : (i(), u("div", $, [d(h(le), {
|
|
587
609
|
class: "tpl-spinner",
|
|
588
610
|
size: 14,
|
|
589
611
|
"stroke-width": 2
|
|
590
|
-
}), m(" " + a(h(
|
|
612
|
+
}), m(" " + a(h(E).errors.editorLoading), 1)]))], 12, Ee)], 8, ["to"])) : v("", !0);
|
|
591
613
|
}
|
|
592
|
-
}),
|
|
614
|
+
}), Me = { class: "tpl-text-editor-wrapper tpl:relative" }, Ne = /* @__PURE__ */ c({
|
|
593
615
|
__name: "ParagraphEditor",
|
|
594
616
|
props: {
|
|
595
617
|
block: {},
|
|
@@ -597,25 +619,25 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
|
|
|
597
619
|
},
|
|
598
620
|
emits: ["done"],
|
|
599
621
|
setup(e, { emit: t }) {
|
|
600
|
-
let n = e, r = t, a =
|
|
622
|
+
let n = e, r = t, a = F(), { editor: s, EditorContent: c, isLoading: l, initError: f, retry: p, showLinkDialog: m, linkUrl: g, linkColor: _, linkDialogRef: v, canRequestMergeTag: y, canInsertLogicTag: b, openLinkDialog: x, insertLink: S, removeLink: C, closeLinkDialog: E, handleLinkKeydown: D, handleAddMergeTag: O, handleAddLogicTag: k } = T({
|
|
601
623
|
blockId: () => n.block.id,
|
|
602
624
|
blockContent: () => n.block.content,
|
|
603
625
|
onDone: () => r("done"),
|
|
604
626
|
editorName: "ParagraphEditor",
|
|
605
627
|
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
606
628
|
let [{ Editor: o, 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([
|
|
607
|
-
import("./dist-
|
|
608
|
-
import("./dist-
|
|
609
|
-
import("./dist-
|
|
610
|
-
import("./dist-
|
|
611
|
-
import("./dist-
|
|
612
|
-
import("./dist-
|
|
613
|
-
import("./dist-
|
|
614
|
-
import("./dist-
|
|
615
|
-
import("./dist-
|
|
616
|
-
import("./dist-
|
|
617
|
-
import("./dist-
|
|
618
|
-
import("./extensions-
|
|
629
|
+
import("./dist-BReUTadj.js").then((e) => e.r),
|
|
630
|
+
import("./dist-i_Z7t67A.js"),
|
|
631
|
+
import("./dist-CHLoeloJ.js"),
|
|
632
|
+
import("./dist-DGEaAAIb.js"),
|
|
633
|
+
import("./dist-DcKlLQ8d.js"),
|
|
634
|
+
import("./dist-D1WmF8BF.js"),
|
|
635
|
+
import("./dist-Bm07Z3Es.js"),
|
|
636
|
+
import("./dist-DhY2di4U.js"),
|
|
637
|
+
import("./dist-BXR1aBJV.js"),
|
|
638
|
+
import("./dist-BE9m_i60.js"),
|
|
639
|
+
import("./dist-BPPeDw62.js"),
|
|
640
|
+
import("./extensions-B2poxDIo.js")
|
|
619
641
|
]);
|
|
620
642
|
return {
|
|
621
643
|
TiptapEditor: o,
|
|
@@ -632,7 +654,7 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
|
|
|
632
654
|
u,
|
|
633
655
|
d,
|
|
634
656
|
f,
|
|
635
|
-
l.configure({
|
|
657
|
+
w(l).configure({
|
|
636
658
|
openOnClick: !1,
|
|
637
659
|
HTMLAttributes: {
|
|
638
660
|
target: "_blank",
|
|
@@ -662,16 +684,16 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
|
|
|
662
684
|
};
|
|
663
685
|
}
|
|
664
686
|
});
|
|
665
|
-
return (t, n) => (i(), u("div",
|
|
666
|
-
d(
|
|
687
|
+
return (t, n) => (i(), u("div", Me, [
|
|
688
|
+
d(je, {
|
|
667
689
|
editor: h(s),
|
|
668
690
|
"toolbar-position": e.toolbarPosition,
|
|
669
691
|
"is-loading": h(l),
|
|
670
|
-
"can-request-merge-tag": h(
|
|
671
|
-
"can-insert-logic-tag": h(
|
|
672
|
-
onOpenLinkDialog: h(
|
|
673
|
-
onAddMergeTag: h(
|
|
674
|
-
onAddLogicTag: h(
|
|
692
|
+
"can-request-merge-tag": h(y),
|
|
693
|
+
"can-insert-logic-tag": h(b),
|
|
694
|
+
onOpenLinkDialog: h(x),
|
|
695
|
+
onAddMergeTag: h(O),
|
|
696
|
+
onAddLogicTag: h(k)
|
|
675
697
|
}, null, 8, [
|
|
676
698
|
"editor",
|
|
677
699
|
"toolbar-position",
|
|
@@ -682,7 +704,7 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
|
|
|
682
704
|
"onAddMergeTag",
|
|
683
705
|
"onAddLogicTag"
|
|
684
706
|
]),
|
|
685
|
-
d(
|
|
707
|
+
d(N, {
|
|
686
708
|
editor: h(s),
|
|
687
709
|
"editor-content": h(c),
|
|
688
710
|
"is-loading": h(l),
|
|
@@ -695,22 +717,25 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
|
|
|
695
717
|
"init-error",
|
|
696
718
|
"onRetry"
|
|
697
719
|
]),
|
|
698
|
-
d(
|
|
720
|
+
d(M, {
|
|
699
721
|
visible: h(m),
|
|
700
722
|
"is-editing-link": h(s)?.isActive("link") ?? !1,
|
|
701
|
-
"dialog-ref": h(
|
|
702
|
-
"onUpdate:dialogRef": n[0] ||= (e) => o(
|
|
723
|
+
"dialog-ref": h(v),
|
|
724
|
+
"onUpdate:dialogRef": n[0] ||= (e) => o(v) ? v.value = e : null,
|
|
703
725
|
"link-url": h(g),
|
|
704
726
|
"onUpdate:linkUrl": n[1] ||= (e) => o(g) ? g.value = e : null,
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
727
|
+
"link-color": h(_),
|
|
728
|
+
"onUpdate:linkColor": n[2] ||= (e) => o(_) ? _.value = e : null,
|
|
729
|
+
onClose: h(E),
|
|
730
|
+
onInsert: h(S),
|
|
731
|
+
onRemove: h(C),
|
|
732
|
+
onKeydown: h(D)
|
|
709
733
|
}, null, 8, [
|
|
710
734
|
"visible",
|
|
711
735
|
"is-editing-link",
|
|
712
736
|
"dialog-ref",
|
|
713
737
|
"link-url",
|
|
738
|
+
"link-color",
|
|
714
739
|
"onClose",
|
|
715
740
|
"onInsert",
|
|
716
741
|
"onRemove",
|
|
@@ -720,4 +745,4 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
|
|
|
720
745
|
}
|
|
721
746
|
});
|
|
722
747
|
//#endregion
|
|
723
|
-
export {
|
|
748
|
+
export { Ne as default };
|