@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.
Files changed (168) hide show
  1. package/dist/{AiChatSidebar-B-k_Sdas.js → AiChatSidebar-EaPCeDXr.js} +14 -14
  2. package/dist/{AiFeatureMenu-B5_IKOlI.js → AiFeatureMenu-DfTYyExg.js} +7 -7
  3. package/dist/{BlockIssueBadge-B3xVgMTh.js → BlockIssueBadge-CZYgn-qg.js} +5 -5
  4. package/dist/{CloudEditor-BUJk4vXS.js → CloudEditor-BQyZ_nFg.js} +24 -24
  5. package/dist/{CollaboratorBar-BAUQfXUk.js → CollaboratorBar-DeP7K-zk.js} +4 -4
  6. package/dist/ColorPicker-CXAbjTaG.js +446 -0
  7. package/dist/{CommentsSidebar-D_tSGvTX.js → CommentsSidebar-DDKiFsSq.js} +13 -13
  8. package/dist/{CountdownBlock-apiYUhkQ.js → CountdownBlock-173fiO5Z.js} +3 -3
  9. package/dist/{CountdownToolbar-CS0axcjz.js → CountdownToolbar-nY9H0BKd.js} +4 -4
  10. package/dist/{DesignReferenceSidebar-BYQcuaL4.js → DesignReferenceSidebar-D6TfC176.js} +11 -11
  11. package/dist/{IssuesPanel-CR1MPaDE.js → IssuesPanel-CQQipLQP.js} +8 -8
  12. package/dist/{LoadingTrack-DsecR8Rw.js → LoadingTrack-KIcREPlS.js} +1 -1
  13. package/dist/{MergeTagSuggestion-DLVykS0K.js → MergeTagSuggestion-DrT3LiZ4.js} +4 -4
  14. package/dist/{ModuleBrowserModal-BzDuagt5.js → ModuleBrowserModal-CkeYw1e3.js} +11 -11
  15. package/dist/{ModulePreviewCanvas-CK11BX4i.js → ModulePreviewCanvas-BIMFyYaa.js} +3 -3
  16. package/dist/NumberWithSuffix-BoZyUoNz.js +89 -0
  17. package/dist/{ParagraphEditor-fg9Ljy_Z.js → ParagraphEditor-DGsTFMxg.js} +232 -207
  18. package/dist/{RichTextEditorContent-BqLHIZY7.js → RichTextEditorContent-BB_n8vgB.js} +56 -45
  19. package/dist/{SaveModuleDialog-D27ufH5q.js → SaveModuleDialog-Cypt_qOB.js} +8 -8
  20. package/dist/{SnapshotHistory-Cymqkk9_.js → SnapshotHistory-DQTH8TCS.js} +10 -10
  21. package/dist/{TemplateScoringPanel-CZ62rGHz.js → TemplateScoringPanel-C8VOC6gn.js} +15 -15
  22. package/dist/{TestEmailModal-BIvdHidU.js → TestEmailModal-DqxrL-U9.js} +6 -6
  23. package/dist/{TitleEditor-D0a4NdOn.js → TitleEditor-DoGgnrcb.js} +38 -35
  24. package/dist/{TplModal-dYXt3vyd.js → TplModal-Ca-29YDD.js} +5 -5
  25. package/dist/{blockTypeIcons-JSBvsa0M.js → blockTypeIcons-DVJXg5si.js} +7 -7
  26. package/dist/bundle-stats.json +6 -6
  27. package/dist/{ca-C58VqAgo.js → ca-B3eR47lE.js} +2 -1
  28. package/dist/cdn/chunks/{AiFeatureMenu-B6V5CzCc.js → AiFeatureMenu-roPglhox.js} +6 -6
  29. package/dist/cdn/chunks/{AiFeatureMenu-B6V5CzCc.js.map → AiFeatureMenu-roPglhox.js.map} +1 -1
  30. package/dist/cdn/chunks/{BlockIssueBadge-C6Xpl1KK.js → BlockIssueBadge-DW_Tt7Wg.js} +5 -5
  31. package/dist/cdn/chunks/{BlockIssueBadge-C6Xpl1KK.js.map → BlockIssueBadge-DW_Tt7Wg.js.map} +1 -1
  32. package/dist/cdn/chunks/{CloudEditor-C-npgK-l.js → CloudEditor-CX6y1k3C.js} +161 -161
  33. package/dist/cdn/chunks/{CloudEditor-C-npgK-l.js.map → CloudEditor-CX6y1k3C.js.map} +1 -1
  34. package/dist/cdn/chunks/{CollaboratorBar-BSKXgw9D.js → CollaboratorBar-Dyrab63H.js} +4 -4
  35. package/dist/cdn/chunks/{CollaboratorBar-BSKXgw9D.js.map → CollaboratorBar-Dyrab63H.js.map} +1 -1
  36. package/dist/cdn/chunks/ColorPicker-BggAWrc9.js +443 -0
  37. package/dist/cdn/chunks/ColorPicker-BggAWrc9.js.map +1 -0
  38. package/dist/cdn/chunks/{CountdownBlock-Y-nycxv2.js → CountdownBlock-Bul4tczj.js} +3 -3
  39. package/dist/cdn/chunks/{CountdownBlock-Y-nycxv2.js.map → CountdownBlock-Bul4tczj.js.map} +1 -1
  40. package/dist/cdn/chunks/{CountdownToolbar-9LqnhGyh.js → CountdownToolbar-DYvATR0J.js} +5 -5
  41. package/dist/cdn/chunks/{CountdownToolbar-9LqnhGyh.js.map → CountdownToolbar-DYvATR0J.js.map} +1 -1
  42. package/dist/cdn/chunks/{IssuesPanel-BYfGf1rC.js → IssuesPanel-BhHU-hq3.js} +8 -8
  43. package/dist/cdn/chunks/{IssuesPanel-BYfGf1rC.js.map → IssuesPanel-BhHU-hq3.js.map} +1 -1
  44. package/dist/cdn/chunks/{MergeTagSuggestion-DQzKlLH7.js → MergeTagSuggestion-jesxS7An.js} +3 -3
  45. package/dist/cdn/chunks/{MergeTagSuggestion-DQzKlLH7.js.map → MergeTagSuggestion-jesxS7An.js.map} +1 -1
  46. package/dist/cdn/chunks/{ModuleBrowserModal-EzKgW5TG.js → ModuleBrowserModal-BGd5Ryyx.js} +9 -9
  47. package/dist/cdn/chunks/{ModuleBrowserModal-EzKgW5TG.js.map → ModuleBrowserModal-BGd5Ryyx.js.map} +1 -1
  48. package/dist/cdn/chunks/{ModulePreviewCanvas-DxbSzXm8.js → ModulePreviewCanvas-Hx6SCCjB.js} +11 -11
  49. package/dist/cdn/chunks/{ModulePreviewCanvas-DxbSzXm8.js.map → ModulePreviewCanvas-Hx6SCCjB.js.map} +1 -1
  50. package/dist/cdn/chunks/NumberWithSuffix-BImuhc9K.js +91 -0
  51. package/dist/cdn/chunks/NumberWithSuffix-BImuhc9K.js.map +1 -0
  52. package/dist/cdn/chunks/{ParagraphEditor-CJNgRMhw.js → ParagraphEditor-K2vENidm.js} +209 -184
  53. package/dist/cdn/chunks/ParagraphEditor-K2vENidm.js.map +1 -0
  54. package/dist/cdn/chunks/{RichTextEditorContent-Cebdzomd.js → RichTextEditorContent-B_w3u5lN.js} +53 -42
  55. package/dist/cdn/chunks/RichTextEditorContent-B_w3u5lN.js.map +1 -0
  56. package/dist/cdn/chunks/{SaveModuleDialog-Cufwqoln.js → SaveModuleDialog-Cw-182CB.js} +6 -6
  57. package/dist/cdn/chunks/{SaveModuleDialog-Cufwqoln.js.map → SaveModuleDialog-Cw-182CB.js.map} +1 -1
  58. package/dist/cdn/chunks/{TitleEditor-7BhmKL-_.js → TitleEditor-CUKlo_Zj.js} +46 -43
  59. package/dist/cdn/chunks/TitleEditor-CUKlo_Zj.js.map +1 -0
  60. package/dist/cdn/chunks/{blockTypeIcons-d4Sb61H-.js → blockTypeIcons-Cx1FAqL6.js} +5 -5
  61. package/dist/cdn/chunks/{blockTypeIcons-d4Sb61H-.js.map → blockTypeIcons-Cx1FAqL6.js.map} +1 -1
  62. package/dist/cdn/chunks/{ca-C58VqAgo.js → ca-B3eR47lE.js} +3 -2
  63. package/dist/cdn/chunks/ca-B3eR47lE.js.map +1 -0
  64. package/dist/cdn/chunks/{de-C0sMmfic.js → de-Cy8FB-Ii.js} +3 -2
  65. package/dist/cdn/chunks/de-Cy8FB-Ii.js.map +1 -0
  66. package/dist/cdn/chunks/{draggable-kG-D5Xsm.js → draggable-D840DIZB.js} +52 -39
  67. package/dist/cdn/chunks/draggable-D840DIZB.js.map +1 -0
  68. package/dist/cdn/chunks/{en-CsGBTBOf.js → en-Bu-zS_5o.js} +3 -2
  69. package/dist/cdn/chunks/en-Bu-zS_5o.js.map +1 -0
  70. package/dist/cdn/chunks/{es-DgjbcPIu.js → es-CD3ZD6hK.js} +3 -2
  71. package/dist/cdn/chunks/es-CD3ZD6hK.js.map +1 -0
  72. package/dist/cdn/chunks/{extensions-BeAsz_mp.js → extensions-DSxG2wYf.js} +28 -28
  73. package/dist/cdn/chunks/{extensions-BeAsz_mp.js.map → extensions-DSxG2wYf.js.map} +1 -1
  74. package/dist/cdn/chunks/{features-DO71hPJr.js → features-C-cjT_8L.js} +589 -553
  75. package/dist/cdn/chunks/features-C-cjT_8L.js.map +1 -0
  76. package/dist/cdn/chunks/{icons-BfP1cRNb.js → icons-ay0_fN-T.js} +2 -2
  77. package/dist/cdn/chunks/{icons-BfP1cRNb.js.map → icons-ay0_fN-T.js.map} +1 -1
  78. package/dist/cdn/chunks/{media-library-0S3e0i8G.js → media-library-CkmqPdO4.js} +104 -104
  79. package/dist/cdn/chunks/{media-library-0S3e0i8G.js.map → media-library-CkmqPdO4.js.map} +1 -1
  80. package/dist/cdn/chunks/{pt-BR-DXaP5lMJ.js → pt-BR-CgICL-CQ.js} +3 -2
  81. package/dist/cdn/chunks/pt-BR-CgICL-CQ.js.map +1 -0
  82. package/dist/cdn/chunks/quality-CDNrMw2A.js +2180 -0
  83. package/dist/cdn/chunks/{quality-B6V4R_df.js.map → quality-CDNrMw2A.js.map} +1 -1
  84. package/dist/cdn/chunks/{renderer-Dhn1J4H4.js → renderer-JQ91A09w.js} +18 -18
  85. package/dist/cdn/chunks/renderer-JQ91A09w.js.map +1 -0
  86. package/dist/cdn/chunks/{src-DoKjbqU2.js → src-Cehu7Hqx.js} +5 -5
  87. package/dist/cdn/chunks/{src-DoKjbqU2.js.map → src-Cehu7Hqx.js.map} +1 -1
  88. package/dist/cdn/chunks/{styles-CSqligXJ.js → styles-DBjy3lz9.js} +820 -820
  89. package/dist/cdn/chunks/{styles-CSqligXJ.js.map → styles-DBjy3lz9.js.map} +1 -1
  90. package/dist/cdn/chunks/{tiptap-DVHUKGZf.js → tiptap-zpXk5mN4.js} +1131 -1134
  91. package/dist/cdn/chunks/{tiptap-DVHUKGZf.js.map → tiptap-zpXk5mN4.js.map} +1 -1
  92. package/dist/cdn/editor.css +1 -1
  93. package/dist/cdn/editor.js +75 -75
  94. package/dist/cdn/editor.js.map +1 -1
  95. package/dist/{check-rl7ok6uJ.js → check-D1zYtCPK.js} +1 -1
  96. package/dist/{chevron-down-BKe__NOD.js → chevron-down-ByXpufZD.js} +1 -1
  97. package/dist/{circle-alert-C8xmpMsK.js → circle-alert-CjcAORUw.js} +1 -1
  98. package/dist/{clock-BW4JuDCN.js → clock-5lWLadUn.js} +1 -1
  99. package/dist/{cloud-CFpaFRCV.js → cloud-BogxOeZu.js} +1 -1
  100. package/dist/{createLucideIcon-Dx-EjR9r.js → createLucideIcon-Bh9xOmlW.js} +3 -3
  101. package/dist/{de-C0sMmfic.js → de-Cy8FB-Ii.js} +2 -1
  102. package/dist/dist-BE9m_i60.js +5 -0
  103. package/dist/{dist-C5-0GG3g.js → dist-BPPeDw62.js} +2 -2
  104. package/dist/{dist-DEcNpSJi.js → dist-BReUTadj.js} +4 -4
  105. package/dist/dist-BXR1aBJV.js +5 -0
  106. package/dist/{dist-r_2rJCMg.js → dist-Bm07Z3Es.js} +2 -2
  107. package/dist/{dist-BEWiuOMi.js → dist-CFOQvhSC.js} +3 -3
  108. package/dist/{dist-Ci5GHd96.js → dist-CHLoeloJ.js} +2 -2
  109. package/dist/{dist-0VHbLR6h.js → dist-D1WmF8BF.js} +2 -2
  110. package/dist/{dist-DrlHbc8g.js → dist-D9g4CSnm.js} +1 -1
  111. package/dist/{dist-Drm7i-yw.js → dist-DGEaAAIb.js} +2 -2
  112. package/dist/{dist-CTT6WYJ6.js → dist-DYv_Pttj.js} +2 -2
  113. package/dist/{dist-Dsoq4knU.js → dist-DcKlLQ8d.js} +2 -2
  114. package/dist/{dist-D_-AsMP4.js → dist-DhY2di4U.js} +2 -2
  115. package/dist/{dist-FVawx7ou.js → dist-i_Z7t67A.js} +260 -263
  116. package/dist/{en-CsGBTBOf.js → en-Bu-zS_5o.js} +2 -1
  117. package/dist/{es-DgjbcPIu.js → es-CD3ZD6hK.js} +2 -1
  118. package/dist/{extensions-3jhgwhV-.js → extensions-B2poxDIo.js} +7 -7
  119. package/dist/{image-up-BwBCmQ4P.js → image-up-Bj_nes3f.js} +1 -1
  120. package/dist/{info-TCn7uWR5.js → info-BhSQCxBV.js} +1 -1
  121. package/dist/{keys-Cv8-8GsD.js → keys-BbDgCU6K.js} +1 -1
  122. package/dist/{list-checks-CSrOWNgq.js → list-checks-CgxyUg7i.js} +1 -1
  123. package/dist/{loader-circle-BLmicnPG.js → loader-circle-DFU0HPAa.js} +1 -1
  124. package/dist/{message-circle-C9hHMQCI.js → message-circle-BEBsCHnk.js} +1 -1
  125. package/dist/{pt-BR-DXaP5lMJ.js → pt-BR-CgICL-CQ.js} +2 -1
  126. package/dist/{refresh-cw-D1JQ1LNa.js → refresh-cw--lvWGy0_.js} +1 -1
  127. package/dist/{runtime-dom.esm-bundler-BzuoCyNp.js → runtime-dom.esm-bundler-GdMI8WqG.js} +6 -7
  128. package/dist/{scan-line-DgijVq9y.js → scan-line-QgyDIgn_.js} +1 -1
  129. package/dist/{send-DjPdq69F.js → send-BMyisUim.js} +1 -1
  130. package/dist/{shield-check-Bqluu8FS.js → shield-check-C49M20le.js} +1 -1
  131. package/dist/{sparkles-M4azPVSP.js → sparkles-DV7Dman6.js} +1 -1
  132. package/dist/style.css +1 -1
  133. package/dist/{styles-5sGbDIA2.js → styles-mvx3k1hf.js} +78 -78
  134. package/dist/templatical-editor.js +62 -62
  135. package/dist/{text-align-start-CMya5pCQ.js → text-align-start-BMU70uAm.js} +1 -1
  136. package/dist/{trash-2-C-81rkLS.js → trash-2-B6M659Ey.js} +1 -1
  137. package/dist/{triangle-alert-BuRWnynk.js → triangle-alert-D1lzx6ds.js} +1 -1
  138. package/dist/{upload-CWBIoLd4.js → upload-3A1oZtOR.js} +1 -1
  139. package/dist/{useAliveFlag-CECL_OUb.js → useAliveFlag-C43EhZFY.js} +1 -1
  140. package/dist/{useCloudI18n-AKCy98qD.js → useCloudI18n-WbfVWq5k.js} +2 -2
  141. package/dist/{useEditorCore-AQ0BN1ug.js → useEditorCore-DtZkR7Vk.js} +616 -580
  142. package/dist/{useI18n-C-TDeJBt.js → useI18n-eR1yVW0v.js} +2 -2
  143. package/dist/{useMergeTag-D0aZw7Q5.js → useMergeTag-C3GfSktg.js} +2 -2
  144. package/dist/usePopoverRoot-C1j0D7cc.js +8 -0
  145. package/dist/{vue.runtime.esm-bundler-l0XAqiyv.js → vue.runtime.esm-bundler-B0xoGkDv.js} +84 -70
  146. package/dist/{x-CQSvXnGR.js → x-CG_NV3nP.js} +1 -1
  147. package/package.json +23 -23
  148. package/dist/NumberWithSuffix-CrA6quxx.js +0 -445
  149. package/dist/cdn/chunks/NumberWithSuffix-Conp_Pki.js +0 -444
  150. package/dist/cdn/chunks/NumberWithSuffix-Conp_Pki.js.map +0 -1
  151. package/dist/cdn/chunks/ParagraphEditor-CJNgRMhw.js.map +0 -1
  152. package/dist/cdn/chunks/RichTextEditorContent-Cebdzomd.js.map +0 -1
  153. package/dist/cdn/chunks/TitleEditor-7BhmKL-_.js.map +0 -1
  154. package/dist/cdn/chunks/ca-C58VqAgo.js.map +0 -1
  155. package/dist/cdn/chunks/de-C0sMmfic.js.map +0 -1
  156. package/dist/cdn/chunks/draggable-kG-D5Xsm.js.map +0 -1
  157. package/dist/cdn/chunks/en-CsGBTBOf.js.map +0 -1
  158. package/dist/cdn/chunks/es-DgjbcPIu.js.map +0 -1
  159. package/dist/cdn/chunks/features-DO71hPJr.js.map +0 -1
  160. package/dist/cdn/chunks/pt-BR-DXaP5lMJ.js.map +0 -1
  161. package/dist/cdn/chunks/quality-B6V4R_df.js +0 -2180
  162. package/dist/cdn/chunks/renderer-Dhn1J4H4.js.map +0 -1
  163. package/dist/cdn/chunks/styleConstants-lGobwiLH.js +0 -57
  164. package/dist/cdn/chunks/styleConstants-lGobwiLH.js.map +0 -1
  165. package/dist/dist-DR-6IpV6.js +0 -5
  166. package/dist/dist-DW8b0TO6.js +0 -5
  167. package/dist/styleConstants-lGobwiLH.js +0 -55
  168. 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-l0XAqiyv.js";
2
- import { c as b, s as x } from "./runtime-dom.esm-bundler-BzuoCyNp.js";
3
- import { E as S, T as C, x as w } from "./useEditorCore-AQ0BN1ug.js";
4
- import { t as T } from "./dist-BEWiuOMi.js";
5
- import { I as E, L as D, P as O, g as ee, w as te, x as ne } from "./keys-Cv8-8GsD.js";
6
- import { t as k } from "./useI18n-C-TDeJBt.js";
7
- import { t as A } from "./createLucideIcon-Dx-EjR9r.js";
8
- import { a as j, i as M, n as N, r as re, t as P } from "./RichTextEditorContent-BqLHIZY7.js";
9
- import { n as ie, t as ae } from "./scan-line-DgijVq9y.js";
10
- import { t as oe } from "./loader-circle-BLmicnPG.js";
11
- import { n as se, r as ce, t as le } from "./text-align-start-CMya5pCQ.js";
12
- import { t as F } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
- import { a as ue, o as I, s as L } from "./styleConstants-lGobwiLH.js";
14
- import { t as R } from "./usePopoverRoot-DKUDnr55.js";
15
- var z = A("list-ordered", [
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
- ]), B = A("list", [
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
- ]), V = A("remove-formatting", [
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
- ]), H = A("smile", [
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
- ]), U = A("subscript", [
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
- ]), de = A("strikethrough", [
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
- ]), fe = A("superscript", [
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
- ]), pe = A("underline", [["path", {
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
- }]]), W = [
162
+ }]]), z = [
163
163
  "aria-label",
164
164
  "title",
165
165
  "aria-expanded"
166
- ], 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__ */ c({
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 } = k(), E = s(null), D = s(null);
171
- S(E, _(() => f.value)), T(D, () => {
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(H), {
190
+ }, [d(h(R), {
191
191
  size: 16,
192
192
  "stroke-width": 2
193
- })], 10, W), h(f) ? (i(), u("div", {
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: E,
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", K, a(h(y).emoji[t.key]), 1), l("div", q, [(i(!0), u(g, null, e(t.emojis, (e) => (i(), u("button", {
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, J))), 128))])]))), 128))], 40, G)) : v("", !0)], 512));
213
+ }, a(e), 9, U))), 128))])]))), 128))], 40, B)) : v("", !0)], 512));
214
214
  }
215
- }), Y = [
215
+ }), W = [
216
216
  "aria-label",
217
217
  "title",
218
218
  "aria-pressed"
219
- ], X = /* @__PURE__ */ c({
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, Y));
238
+ }, null, 8, ["size", "stroke-width"]))], 10, W));
239
239
  }
240
- }), he = {}, ge = {
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 _e(e, t) {
245
- return i(), u("span", ge);
244
+ function J(e, t) {
245
+ return i(), u("span", q);
246
246
  }
247
- var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
247
+ var Y = /*#__PURE__*/ P(K, [["render", J]]), X = [
248
248
  "value",
249
249
  "aria-label",
250
250
  "title"
251
- ], ye = { value: "" }, be = ["value"], Q = /* @__PURE__ */ c({
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", ye, a(t.placeholder ?? ""), 1), (i(!0), u(g, null, e(t.options, (e) => (i(), u("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, be))), 128))], 42, ve));
281
+ }, a(d(e)), 9, Te))), 128))], 42, X));
282
282
  }
283
- }), $ = ["data-tpl-theme", "aria-label"], xe = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Se = { class: "tpl:relative" }, Ce = [
284
- "value",
285
- "aria-label",
286
- "title"
287
- ], we = { class: "tpl:relative" }, Te = [
288
- "value",
289
- "aria-label",
290
- "title"
291
- ], Ee = { class: "tpl:flex tpl:items-center tpl:gap-1" }, De = ["aria-label", "title"], Oe = ["aria-label", "title"], ke = {
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
- }, Ae = /* @__PURE__ */ c({
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(O, null), c = y(E, null), b = D(ee, "ParagraphToolbar"), x = R(), S = y(te, null), C = y(ne, null), w = _(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: T } = k(), A = b.fonts;
310
- function N(e) {
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 P(e) {
313
+ function N(e) {
314
314
  return r.editor?.getAttributes("textStyle")[e] || "";
315
315
  }
316
- function F(e) {
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 H(e) {
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 W(e) {
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?.setColor(e).run() : t?.unsetColor().run();
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 G() {
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 Y(e) {
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) && !w.value ? (i(), p(f, {
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(T).paragraphEditor.toolbar,
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", xe, [
362
- d(Q, {
363
- "model-value": P("fontFamily"),
364
- options: h(A),
365
- label: h(T).paragraphEditor.fontFamily,
366
- placeholder: h(T).paragraphEditor.defaultFont,
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": F
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(Q, {
376
- "model-value": P("fontSize"),
377
- options: h(ue),
378
- label: h(T).paragraphEditor.fontSize,
379
- placeholder: h(T).paragraphEditor.defaultSize,
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": H
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(Z),
389
- l("div", Se, [l("input", {
390
- type: "color",
391
- class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-1",
392
- value: P("color") || h("#000000"),
393
- "aria-label": h(T).paragraphEditor.textColor,
394
- title: h(T).paragraphEditor.textColor,
395
- onInput: r[0] ||= (e) => W(e.target.value)
396
- }, null, 40, Ce)]),
397
- l("div", we, [l("input", {
398
- type: "color",
399
- class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:p-1",
400
- style: t({ backgroundColor: J() || "var(--tpl-bg)" }),
401
- value: J() || h("#ffff00"),
402
- "aria-label": h(T).paragraphEditor.highlightColor,
403
- title: h(T).paragraphEditor.highlightColor,
404
- onInput: r[1] ||= (e) => Y(e.target.value)
405
- }, null, 44, Te)]),
406
- d(Z),
407
- d(X, {
408
- icon: h(j),
409
- label: h(T).paragraphEditor.bold,
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[2] ||= (t) => e.editor.chain().focus().toggleBold().run()
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(X, {
419
- icon: h(M),
420
- label: h(T).paragraphEditor.italic,
440
+ d(G, {
441
+ icon: h(ae),
442
+ label: h(E).paragraphEditor.italic,
421
443
  active: e.editor.isActive("italic"),
422
- onClick: r[3] ||= (t) => e.editor.chain().focus().toggleItalic().run()
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(X, {
429
- icon: h(pe),
430
- label: h(T).paragraphEditor.underline,
450
+ d(G, {
451
+ icon: h(Se),
452
+ label: h(E).paragraphEditor.underline,
431
453
  active: e.editor.isActive("underline"),
432
- onClick: r[4] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
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(X, {
439
- icon: h(de),
440
- label: h(T).paragraphEditor.strikethrough,
460
+ d(G, {
461
+ icon: h(be),
462
+ label: h(E).paragraphEditor.strikethrough,
441
463
  active: e.editor.isActive("strike"),
442
- onClick: r[5] ||= (t) => e.editor.chain().focus().toggleStrike().run()
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(Z),
449
- d(X, {
450
- icon: h(U),
451
- label: h(T).paragraphEditor.subscript,
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[6] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
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(X, {
460
- icon: h(fe),
461
- label: h(T).paragraphEditor.superscript,
481
+ d(G, {
482
+ icon: h(xe),
483
+ label: h(E).paragraphEditor.superscript,
462
484
  active: e.editor.isActive("superscript"),
463
- onClick: r[7] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
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(Z),
470
- d(X, {
471
- icon: h(re),
472
- label: h(T).paragraphEditor.addLink,
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[8] ||= (e) => o("open-link-dialog")
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", Ee, [
481
- d(X, {
482
- icon: h(B),
483
- label: h(T).paragraphEditor.bulletList,
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[9] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
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(X, {
492
- icon: h(z),
493
- label: h(T).paragraphEditor.numberedList,
513
+ d(G, {
514
+ icon: h(L),
515
+ label: h(E).paragraphEditor.numberedList,
494
516
  active: e.editor.isActive("orderedList"),
495
- onClick: r[10] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
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(Z),
502
- d(X, {
503
- icon: h(le),
504
- label: h(T).paragraphEditor.alignLeft,
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[11] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
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(X, {
513
- icon: h(se),
514
- label: h(T).paragraphEditor.alignCenter,
534
+ d(G, {
535
+ icon: h(ue),
536
+ label: h(E).paragraphEditor.alignCenter,
515
537
  active: e.editor.isActive({ textAlign: "center" }),
516
- onClick: r[12] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
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(X, {
523
- icon: h(ce),
524
- label: h(T).paragraphEditor.alignRight,
544
+ d(G, {
545
+ icon: h(de),
546
+ label: h(E).paragraphEditor.alignRight,
525
547
  active: e.editor.isActive({ textAlign: "right" }),
526
- onClick: r[13] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
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(Z),
533
- d(Q, {
534
- "model-value": G(),
535
- options: h(L),
536
- label: h(T).paragraphEditor.lineHeight,
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(Q, {
546
- "model-value": P("letterSpacing"),
547
- options: h(I),
548
- label: h(T).paragraphEditor.letterSpacing,
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(Z),
558
- d(X, {
559
- icon: h(V),
560
- label: h(T).paragraphEditor.clearFormatting,
561
- onClick: r[14] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
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(Z),
564
- d(me, { onInsert: N }),
565
- e.canRequestMergeTag ? (i(), u(g, { key: 0 }, [d(Z), l("button", {
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(T).mergeTag.insert,
569
- title: h(T).mergeTag.insert,
570
- onClick: r[15] ||= (e) => o("add-merge-tag")
571
- }, [d(h(ae), {
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(T).mergeTag.insertShort), 1)], 8, De)], 64)) : v("", !0),
575
- e.canInsertLogicTag ? (i(), u(g, { key: 1 }, [d(Z), l("button", {
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(T).logicTag.insert,
579
- title: h(T).logicTag.insert,
600
+ "aria-label": h(E).logicTag.insert,
601
+ title: h(E).logicTag.insert,
580
602
  "data-testid": "insert-logic-button",
581
- onClick: r[16] ||= (e) => o("add-logic-tag")
582
- }, [d(h(ie), {
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(T).logicTag.insertShort), 1)], 8, Oe)], 64)) : v("", !0)
586
- ])], 64)) : (i(), u("div", ke, [d(h(oe), {
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(T).errors.editorLoading), 1)]))], 12, $)], 8, ["to"])) : v("", !0);
612
+ }), m(" " + a(h(E).errors.editorLoading), 1)]))], 12, Ee)], 8, ["to"])) : v("", !0);
591
613
  }
592
- }), je = { class: "tpl-text-editor-wrapper tpl:relative" }, Me = /* @__PURE__ */ c({
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 = R(), { editor: s, EditorContent: c, isLoading: l, initError: f, retry: p, showLinkDialog: m, linkUrl: g, linkDialogRef: _, canRequestMergeTag: v, canInsertLogicTag: y, openLinkDialog: b, insertLink: x, removeLink: S, closeLinkDialog: C, handleLinkKeydown: T, handleAddMergeTag: E, handleAddLogicTag: D } = w({
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-DEcNpSJi.js").then((e) => e.r),
608
- import("./dist-FVawx7ou.js"),
609
- import("./dist-Ci5GHd96.js"),
610
- import("./dist-Drm7i-yw.js"),
611
- import("./dist-Dsoq4knU.js"),
612
- import("./dist-0VHbLR6h.js"),
613
- import("./dist-r_2rJCMg.js"),
614
- import("./dist-D_-AsMP4.js"),
615
- import("./dist-DR-6IpV6.js"),
616
- import("./dist-DW8b0TO6.js"),
617
- import("./dist-C5-0GG3g.js"),
618
- import("./extensions-3jhgwhV-.js")
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", je, [
666
- d(Ae, {
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(v),
671
- "can-insert-logic-tag": h(y),
672
- onOpenLinkDialog: h(b),
673
- onAddMergeTag: h(E),
674
- onAddLogicTag: h(D)
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(P, {
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(N, {
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(_) ? _.value = e : null,
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
- onClose: h(C),
706
- onInsert: h(x),
707
- onRemove: h(S),
708
- onKeydown: h(T)
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 { Me as default };
748
+ export { Ne as default };