@templatical/editor 0.16.0 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/dist/{AiChatSidebar-B-k_Sdas.js → AiChatSidebar-EaPCeDXr.js} +14 -14
  2. package/dist/{AiFeatureMenu-B5_IKOlI.js → AiFeatureMenu-Rb8G3EBo.js} +7 -7
  3. package/dist/{BlockIssueBadge-B3xVgMTh.js → BlockIssueBadge-CZYgn-qg.js} +5 -5
  4. package/dist/{CloudEditor-BUJk4vXS.js → CloudEditor-D88gLBXp.js} +24 -24
  5. package/dist/{CollaboratorBar-BAUQfXUk.js → CollaboratorBar-dxCD8jSi.js} +4 -4
  6. package/dist/ColorPicker-CAgMCX3A.js +442 -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-8XVTOuGX.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-l4_RCC8m.js} +11 -11
  15. package/dist/{ModulePreviewCanvas-CK11BX4i.js → ModulePreviewCanvas-BqYAr4fz.js} +3 -3
  16. package/dist/NumberWithSuffix-Di-cDy_m.js +89 -0
  17. package/dist/{ParagraphEditor-fg9Ljy_Z.js → ParagraphEditor-DIQ1jmSP.js} +230 -195
  18. package/dist/{RichTextEditorContent-BqLHIZY7.js → RichTextEditorContent-DkTJ6KK8.js} +56 -45
  19. package/dist/{SaveModuleDialog-D27ufH5q.js → SaveModuleDialog-DPo3Raon.js} +8 -8
  20. package/dist/{SnapshotHistory-Cymqkk9_.js → SnapshotHistory-m7brKV7C.js} +10 -10
  21. package/dist/{TemplateScoringPanel-CZ62rGHz.js → TemplateScoringPanel-C8VOC6gn.js} +15 -15
  22. package/dist/{TestEmailModal-BIvdHidU.js → TestEmailModal-BE9sFEIl.js} +6 -6
  23. package/dist/{TitleEditor-D0a4NdOn.js → TitleEditor-BATN-k-Q.js} +38 -35
  24. package/dist/{TplModal-dYXt3vyd.js → TplModal-DHBcZ1gq.js} +5 -5
  25. package/dist/{blockTypeIcons-JSBvsa0M.js → blockTypeIcons-wRchKKx0.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-W7VQFAwq.js} +6 -6
  29. package/dist/cdn/chunks/{AiFeatureMenu-B6V5CzCc.js.map → AiFeatureMenu-W7VQFAwq.js.map} +1 -1
  30. package/dist/cdn/chunks/{BlockIssueBadge-C6Xpl1KK.js → BlockIssueBadge-ww2vNIfJ.js} +5 -5
  31. package/dist/cdn/chunks/{BlockIssueBadge-C6Xpl1KK.js.map → BlockIssueBadge-ww2vNIfJ.js.map} +1 -1
  32. package/dist/cdn/chunks/{CloudEditor-C-npgK-l.js → CloudEditor-BVSJ1kvB.js} +161 -161
  33. package/dist/cdn/chunks/{CloudEditor-C-npgK-l.js.map → CloudEditor-BVSJ1kvB.js.map} +1 -1
  34. package/dist/cdn/chunks/{CollaboratorBar-BSKXgw9D.js → CollaboratorBar-BFrAua9a.js} +4 -4
  35. package/dist/cdn/chunks/{CollaboratorBar-BSKXgw9D.js.map → CollaboratorBar-BFrAua9a.js.map} +1 -1
  36. package/dist/cdn/chunks/ColorPicker-DmxMDn-t.js +439 -0
  37. package/dist/cdn/chunks/ColorPicker-DmxMDn-t.js.map +1 -0
  38. package/dist/cdn/chunks/{CountdownBlock-Y-nycxv2.js → CountdownBlock-MC-mhtQD.js} +3 -3
  39. package/dist/cdn/chunks/{CountdownBlock-Y-nycxv2.js.map → CountdownBlock-MC-mhtQD.js.map} +1 -1
  40. package/dist/cdn/chunks/{CountdownToolbar-9LqnhGyh.js → CountdownToolbar-dXyr7tz-.js} +5 -5
  41. package/dist/cdn/chunks/{CountdownToolbar-9LqnhGyh.js.map → CountdownToolbar-dXyr7tz-.js.map} +1 -1
  42. package/dist/cdn/chunks/{IssuesPanel-BYfGf1rC.js → IssuesPanel-CTxSgViL.js} +8 -8
  43. package/dist/cdn/chunks/{IssuesPanel-BYfGf1rC.js.map → IssuesPanel-CTxSgViL.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-B5sCsrud.js} +9 -9
  47. package/dist/cdn/chunks/{ModuleBrowserModal-EzKgW5TG.js.map → ModuleBrowserModal-B5sCsrud.js.map} +1 -1
  48. package/dist/cdn/chunks/{ModulePreviewCanvas-DxbSzXm8.js → ModulePreviewCanvas-DGTGo8kg.js} +11 -11
  49. package/dist/cdn/chunks/{ModulePreviewCanvas-DxbSzXm8.js.map → ModulePreviewCanvas-DGTGo8kg.js.map} +1 -1
  50. package/dist/cdn/chunks/NumberWithSuffix-tAHfui6k.js +91 -0
  51. package/dist/cdn/chunks/NumberWithSuffix-tAHfui6k.js.map +1 -0
  52. package/dist/cdn/chunks/{ParagraphEditor-CJNgRMhw.js → ParagraphEditor-CB5FGRs3.js} +213 -179
  53. package/dist/cdn/chunks/ParagraphEditor-CB5FGRs3.js.map +1 -0
  54. package/dist/cdn/chunks/{RichTextEditorContent-Cebdzomd.js → RichTextEditorContent-CPelbtck.js} +53 -42
  55. package/dist/cdn/chunks/RichTextEditorContent-CPelbtck.js.map +1 -0
  56. package/dist/cdn/chunks/{SaveModuleDialog-Cufwqoln.js → SaveModuleDialog-7f9uUUEC.js} +6 -6
  57. package/dist/cdn/chunks/{SaveModuleDialog-Cufwqoln.js.map → SaveModuleDialog-7f9uUUEC.js.map} +1 -1
  58. package/dist/cdn/chunks/{TitleEditor-7BhmKL-_.js → TitleEditor-C0mYpgs4.js} +46 -43
  59. package/dist/cdn/chunks/TitleEditor-C0mYpgs4.js.map +1 -0
  60. package/dist/cdn/chunks/{blockTypeIcons-d4Sb61H-.js → blockTypeIcons-BtxaUtlx.js} +5 -5
  61. package/dist/cdn/chunks/{blockTypeIcons-d4Sb61H-.js.map → blockTypeIcons-BtxaUtlx.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-BJ7vaBol.js} +28 -28
  73. package/dist/cdn/chunks/{extensions-BeAsz_mp.js.map → extensions-BJ7vaBol.js.map} +1 -1
  74. package/dist/cdn/chunks/{features-DO71hPJr.js → features-CgbSSCgv.js} +589 -553
  75. package/dist/cdn/chunks/features-CgbSSCgv.js.map +1 -0
  76. package/dist/cdn/chunks/{icons-BfP1cRNb.js → icons-Dlx5MT1V.js} +2 -2
  77. package/dist/cdn/chunks/{icons-BfP1cRNb.js.map → icons-Dlx5MT1V.js.map} +1 -1
  78. package/dist/cdn/chunks/{media-library-0S3e0i8G.js → media-library-BMlykZGq.js} +104 -104
  79. package/dist/cdn/chunks/{media-library-0S3e0i8G.js.map → media-library-BMlykZGq.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-DsVgXk_j.js +2180 -0
  83. package/dist/cdn/chunks/{quality-B6V4R_df.js.map → quality-DsVgXk_j.js.map} +1 -1
  84. package/dist/cdn/chunks/{renderer-Dhn1J4H4.js → renderer-DPvEtVGO.js} +17 -17
  85. package/dist/cdn/chunks/{renderer-Dhn1J4H4.js.map → renderer-DPvEtVGO.js.map} +1 -1
  86. package/dist/cdn/chunks/{src-DoKjbqU2.js → src-CAdirukY.js} +5 -5
  87. package/dist/cdn/chunks/{src-DoKjbqU2.js.map → src-CAdirukY.js.map} +1 -1
  88. package/dist/cdn/chunks/{styles-CSqligXJ.js → styles-D7u4vCpH.js} +820 -820
  89. package/dist/cdn/chunks/{styles-CSqligXJ.js.map → styles-D7u4vCpH.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.js +74 -74
  93. package/dist/cdn/editor.js.map +1 -1
  94. package/dist/{check-rl7ok6uJ.js → check-D1zYtCPK.js} +1 -1
  95. package/dist/{chevron-down-BKe__NOD.js → chevron-down-ByXpufZD.js} +1 -1
  96. package/dist/{circle-alert-C8xmpMsK.js → circle-alert-CjcAORUw.js} +1 -1
  97. package/dist/{clock-BW4JuDCN.js → clock-5lWLadUn.js} +1 -1
  98. package/dist/{cloud-CFpaFRCV.js → cloud-BogxOeZu.js} +1 -1
  99. package/dist/{createLucideIcon-Dx-EjR9r.js → createLucideIcon-Bh9xOmlW.js} +3 -3
  100. package/dist/{de-C0sMmfic.js → de-Cy8FB-Ii.js} +2 -1
  101. package/dist/dist-BE9m_i60.js +5 -0
  102. package/dist/{dist-C5-0GG3g.js → dist-BPPeDw62.js} +2 -2
  103. package/dist/{dist-DEcNpSJi.js → dist-BReUTadj.js} +4 -4
  104. package/dist/dist-BXR1aBJV.js +5 -0
  105. package/dist/{dist-r_2rJCMg.js → dist-Bm07Z3Es.js} +2 -2
  106. package/dist/{dist-BEWiuOMi.js → dist-CFOQvhSC.js} +3 -3
  107. package/dist/{dist-Ci5GHd96.js → dist-CHLoeloJ.js} +2 -2
  108. package/dist/{dist-0VHbLR6h.js → dist-D1WmF8BF.js} +2 -2
  109. package/dist/{dist-DrlHbc8g.js → dist-D9g4CSnm.js} +1 -1
  110. package/dist/{dist-Drm7i-yw.js → dist-DGEaAAIb.js} +2 -2
  111. package/dist/{dist-CTT6WYJ6.js → dist-DYv_Pttj.js} +2 -2
  112. package/dist/{dist-Dsoq4knU.js → dist-DcKlLQ8d.js} +2 -2
  113. package/dist/{dist-D_-AsMP4.js → dist-DhY2di4U.js} +2 -2
  114. package/dist/{dist-FVawx7ou.js → dist-i_Z7t67A.js} +260 -263
  115. package/dist/{en-CsGBTBOf.js → en-Bu-zS_5o.js} +2 -1
  116. package/dist/{es-DgjbcPIu.js → es-CD3ZD6hK.js} +2 -1
  117. package/dist/{extensions-3jhgwhV-.js → extensions-B2poxDIo.js} +7 -7
  118. package/dist/{image-up-BwBCmQ4P.js → image-up-Bj_nes3f.js} +1 -1
  119. package/dist/{info-TCn7uWR5.js → info-BhSQCxBV.js} +1 -1
  120. package/dist/{keys-Cv8-8GsD.js → keys-BbDgCU6K.js} +1 -1
  121. package/dist/{list-checks-CSrOWNgq.js → list-checks-CgxyUg7i.js} +1 -1
  122. package/dist/{loader-circle-BLmicnPG.js → loader-circle-DFU0HPAa.js} +1 -1
  123. package/dist/{message-circle-C9hHMQCI.js → message-circle-BEBsCHnk.js} +1 -1
  124. package/dist/{pt-BR-DXaP5lMJ.js → pt-BR-CgICL-CQ.js} +2 -1
  125. package/dist/{refresh-cw-D1JQ1LNa.js → refresh-cw--lvWGy0_.js} +1 -1
  126. package/dist/{runtime-dom.esm-bundler-BzuoCyNp.js → runtime-dom.esm-bundler-GdMI8WqG.js} +6 -7
  127. package/dist/{scan-line-DgijVq9y.js → scan-line-QgyDIgn_.js} +1 -1
  128. package/dist/{send-DjPdq69F.js → send-BMyisUim.js} +1 -1
  129. package/dist/{shield-check-Bqluu8FS.js → shield-check-C49M20le.js} +1 -1
  130. package/dist/{sparkles-M4azPVSP.js → sparkles-DV7Dman6.js} +1 -1
  131. package/dist/{styles-5sGbDIA2.js → styles-B-yhoJnH.js} +78 -78
  132. package/dist/templatical-editor.js +61 -61
  133. package/dist/{text-align-start-CMya5pCQ.js → text-align-start-BMU70uAm.js} +1 -1
  134. package/dist/{trash-2-C-81rkLS.js → trash-2-B6M659Ey.js} +1 -1
  135. package/dist/{triangle-alert-BuRWnynk.js → triangle-alert-D1lzx6ds.js} +1 -1
  136. package/dist/{upload-CWBIoLd4.js → upload-3A1oZtOR.js} +1 -1
  137. package/dist/{useAliveFlag-CECL_OUb.js → useAliveFlag-C43EhZFY.js} +1 -1
  138. package/dist/{useCloudI18n-AKCy98qD.js → useCloudI18n-WbfVWq5k.js} +2 -2
  139. package/dist/{useEditorCore-AQ0BN1ug.js → useEditorCore-CV1ct_17.js} +616 -580
  140. package/dist/{useI18n-C-TDeJBt.js → useI18n-eR1yVW0v.js} +2 -2
  141. package/dist/{useMergeTag-D0aZw7Q5.js → useMergeTag-C3GfSktg.js} +2 -2
  142. package/dist/usePopoverRoot-C1j0D7cc.js +8 -0
  143. package/dist/{vue.runtime.esm-bundler-l0XAqiyv.js → vue.runtime.esm-bundler-B0xoGkDv.js} +84 -70
  144. package/dist/{x-CQSvXnGR.js → x-CG_NV3nP.js} +1 -1
  145. package/package.json +22 -22
  146. package/dist/NumberWithSuffix-CrA6quxx.js +0 -445
  147. package/dist/cdn/chunks/NumberWithSuffix-Conp_Pki.js +0 -444
  148. package/dist/cdn/chunks/NumberWithSuffix-Conp_Pki.js.map +0 -1
  149. package/dist/cdn/chunks/ParagraphEditor-CJNgRMhw.js.map +0 -1
  150. package/dist/cdn/chunks/RichTextEditorContent-Cebdzomd.js.map +0 -1
  151. package/dist/cdn/chunks/TitleEditor-7BhmKL-_.js.map +0 -1
  152. package/dist/cdn/chunks/ca-C58VqAgo.js.map +0 -1
  153. package/dist/cdn/chunks/de-C0sMmfic.js.map +0 -1
  154. package/dist/cdn/chunks/draggable-kG-D5Xsm.js.map +0 -1
  155. package/dist/cdn/chunks/en-CsGBTBOf.js.map +0 -1
  156. package/dist/cdn/chunks/es-DgjbcPIu.js.map +0 -1
  157. package/dist/cdn/chunks/features-DO71hPJr.js.map +0 -1
  158. package/dist/cdn/chunks/pt-BR-DXaP5lMJ.js.map +0 -1
  159. package/dist/cdn/chunks/quality-B6V4R_df.js +0 -2180
  160. package/dist/cdn/chunks/styleConstants-lGobwiLH.js +0 -57
  161. package/dist/cdn/chunks/styleConstants-lGobwiLH.js.map +0 -1
  162. package/dist/dist-DR-6IpV6.js +0 -5
  163. package/dist/dist-DW8b0TO6.js +0 -5
  164. package/dist/styleConstants-lGobwiLH.js +0 -55
  165. package/dist/usePopoverRoot-DKUDnr55.js +0 -8
@@ -1,18 +1,19 @@
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-CV1ct_17.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-DkTJ6KK8.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 pe } from "./x-CG_NV3nP.js";
13
+ import { t as P } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
+ import { t as F } from "./usePopoverRoot-C1j0D7cc.js";
15
+ import { c as me, o as he, s as ge } from "./ColorPicker-CAgMCX3A.js";
16
+ var I = j("list-ordered", [
16
17
  ["path", {
17
18
  d: "M11 5h10",
18
19
  key: "1cz7ny"
@@ -37,7 +38,7 @@ var z = A("list-ordered", [
37
38
  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
39
  key: "xtkcd5"
39
40
  }]
40
- ]), B = A("list", [
41
+ ]), L = j("list", [
41
42
  ["path", {
42
43
  d: "M3 5h.01",
43
44
  key: "18ugdj"
@@ -62,7 +63,7 @@ var z = A("list-ordered", [
62
63
  d: "M8 19h13",
63
64
  key: "m83p4d"
64
65
  }]
65
- ]), V = A("remove-formatting", [
66
+ ]), _e = j("remove-formatting", [
66
67
  ["path", {
67
68
  d: "M4 7V4h16v3",
68
69
  key: "9msm58"
@@ -83,7 +84,7 @@ var z = A("list-ordered", [
83
84
  d: "m20 15-5 5",
84
85
  key: "11p7ol"
85
86
  }]
86
- ]), H = A("smile", [
87
+ ]), R = j("smile", [
87
88
  ["circle", {
88
89
  cx: "12",
89
90
  cy: "12",
@@ -108,7 +109,7 @@ var z = A("list-ordered", [
108
109
  y2: "9",
109
110
  key: "1p4y9e"
110
111
  }]
111
- ]), U = A("subscript", [
112
+ ]), ve = j("subscript", [
112
113
  ["path", {
113
114
  d: "m4 5 8 8",
114
115
  key: "1eunvl"
@@ -121,7 +122,7 @@ var z = A("list-ordered", [
121
122
  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
123
  key: "e8ta8j"
123
124
  }]
124
- ]), de = A("strikethrough", [
125
+ ]), ye = j("strikethrough", [
125
126
  ["path", {
126
127
  d: "M16 4H9a3 3 0 0 0-2.83 4",
127
128
  key: "43sutm"
@@ -137,7 +138,7 @@ var z = A("list-ordered", [
137
138
  y2: "12",
138
139
  key: "1e0a9i"
139
140
  }]
140
- ]), fe = A("superscript", [
141
+ ]), be = j("superscript", [
141
142
  ["path", {
142
143
  d: "m4 19 8-8",
143
144
  key: "hr47gm"
@@ -150,7 +151,7 @@ var z = A("list-ordered", [
150
151
  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
152
  key: "1dfcux"
152
153
  }]
153
- ]), pe = A("underline", [["path", {
154
+ ]), xe = j("underline", [["path", {
154
155
  d: "M6 4v6a6 6 0 0 0 12 0V4",
155
156
  key: "9kb039"
156
157
  }], ["line", {
@@ -159,16 +160,16 @@ var z = A("list-ordered", [
159
160
  y1: "20",
160
161
  y2: "20",
161
162
  key: "nun2al"
162
- }]]), W = [
163
+ }]]), z = [
163
164
  "aria-label",
164
165
  "title",
165
166
  "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({
167
+ ], 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"], Se = /* @__PURE__ */ c({
167
168
  __name: "EmojiPickerDropdown",
168
169
  emits: ["insert"],
169
170
  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, () => {
171
+ let o = r, { categories: c, isOpen: f, toggle: p, close: m } = C(), { t: y, format: w } = A(), T = s(null), D = s(null);
172
+ S(T, _(() => f.value)), E(D, () => {
172
173
  f.value && m();
173
174
  });
174
175
  function O(e) {
@@ -187,14 +188,14 @@ var z = A("list-ordered", [
187
188
  "aria-haspopup": "dialog",
188
189
  "aria-controls": "tpl-emoji-picker",
189
190
  onClick: r[0] ||= (...e) => h(p) && h(p)(...e)
190
- }, [d(h(H), {
191
+ }, [d(h(R), {
191
192
  size: 16,
192
193
  "stroke-width": 2
193
- })], 10, W), h(f) ? (i(), u("div", {
194
+ })], 10, z), h(f) ? (i(), u("div", {
194
195
  key: 0,
195
196
  id: "tpl-emoji-picker",
196
197
  ref_key: "pickerRef",
197
- ref: E,
198
+ ref: T,
198
199
  role: "dialog",
199
200
  "aria-modal": "false",
200
201
  "aria-label": h(y).paragraphEditor.insertEmoji,
@@ -204,19 +205,19 @@ var z = A("list-ordered", [
204
205
  }, [(i(!0), u(g, null, e(h(c), (t) => (i(), u("div", {
205
206
  key: t.key,
206
207
  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", {
208
+ }, [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
209
  key: e,
209
210
  type: "button",
210
211
  "aria-label": h(w)(h(y).paragraphEditor.emojiItemLabel, { emoji: e }),
211
212
  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
213
  onClick: (t) => O(e)
213
- }, a(e), 9, J))), 128))])]))), 128))], 40, G)) : v("", !0)], 512));
214
+ }, a(e), 9, U))), 128))])]))), 128))], 40, B)) : v("", !0)], 512));
214
215
  }
215
- }), Y = [
216
+ }), W = [
216
217
  "aria-label",
217
218
  "title",
218
219
  "aria-pressed"
219
- ], X = /* @__PURE__ */ c({
220
+ ], G = /* @__PURE__ */ c({
220
221
  __name: "ToolbarIconButton",
221
222
  props: {
222
223
  icon: {},
@@ -235,20 +236,20 @@ var z = A("list-ordered", [
235
236
  }, [(i(), p(r(e.icon), {
236
237
  size: e.size ?? 16,
237
238
  "stroke-width": e.strokeWidth ?? 2
238
- }, null, 8, ["size", "stroke-width"]))], 10, Y));
239
+ }, null, 8, ["size", "stroke-width"]))], 10, W));
239
240
  }
240
- }), he = {}, ge = {
241
+ }), K = {}, q = {
241
242
  class: "tpl:mx-1 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
242
243
  "aria-hidden": "true"
243
244
  };
244
- function _e(e, t) {
245
- return i(), u("span", ge);
245
+ function J(e, t) {
246
+ return i(), u("span", q);
246
247
  }
247
- var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
248
+ var Y = /*#__PURE__*/ P(K, [["render", J]]), X = [
248
249
  "value",
249
250
  "aria-label",
250
251
  "title"
251
- ], ye = { value: "" }, be = ["value"], Q = /* @__PURE__ */ c({
252
+ ], Ce = { value: "" }, we = ["value"], Z = /* @__PURE__ */ c({
252
253
  __name: "ToolbarSelect",
253
254
  props: {
254
255
  modelValue: {},
@@ -275,23 +276,31 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
275
276
  "aria-label": t.label,
276
277
  title: t.label,
277
278
  onChange: s
278
- }, [l("option", ye, a(t.placeholder ?? ""), 1), (i(!0), u(g, null, e(t.options, (e) => (i(), u("option", {
279
+ }, [l("option", Ce, a(t.placeholder ?? ""), 1), (i(!0), u(g, null, e(t.options, (e) => (i(), u("option", {
279
280
  key: c(e),
280
281
  value: c(e)
281
- }, a(d(e)), 9, be))), 128))], 42, ve));
282
+ }, a(d(e)), 9, we))), 128))], 42, X));
282
283
  }
283
- }), $ = ["data-tpl-theme", "aria-label"], xe = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Se = { class: "tpl:relative" }, Ce = [
284
+ });
285
+ //#endregion
286
+ //#region src/utils/richTextColor.ts
287
+ function Q(e, t) {
288
+ return e || t || "#000000";
289
+ }
290
+ //#endregion
291
+ //#region src/components/blocks/ParagraphToolbar.vue?vue&type=script&setup=true&lang.ts
292
+ var Te = ["data-tpl-theme", "aria-label"], Ee = { class: "tpl:flex tpl:items-center tpl:gap-1" }, De = { class: "tpl:relative" }, Oe = [
284
293
  "value",
285
294
  "aria-label",
286
295
  "title"
287
- ], we = { class: "tpl:relative" }, Te = [
296
+ ], ke = ["aria-label", "title"], Ae = { class: "tpl:relative" }, $ = [
288
297
  "value",
289
298
  "aria-label",
290
299
  "title"
291
- ], Ee = { class: "tpl:flex tpl:items-center tpl:gap-1" }, De = ["aria-label", "title"], Oe = ["aria-label", "title"], ke = {
300
+ ], je = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Me = ["aria-label", "title"], Ne = ["aria-label", "title"], Pe = {
292
301
  key: 1,
293
302
  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({
303
+ }, Fe = /* @__PURE__ */ c({
295
304
  __name: "ParagraphToolbar",
296
305
  props: {
297
306
  editor: {},
@@ -306,26 +315,39 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
306
315
  "add-logic-tag"
307
316
  ],
308
317
  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) {
318
+ 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;
319
+ function M(e) {
311
320
  r.editor?.chain().focus().insertContent(e).run();
312
321
  }
313
- function P(e) {
322
+ function N(e) {
314
323
  return r.editor?.getAttributes("textStyle")[e] || "";
315
324
  }
316
- function F(e) {
325
+ function P(e) {
317
326
  let t = r.editor?.chain().focus();
318
327
  e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
319
328
  }
320
- function H(e) {
329
+ function R(e) {
321
330
  let t = r.editor?.chain().focus();
322
331
  e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
323
332
  }
324
- function W(e) {
333
+ function z() {
334
+ return r.editor?.isActive("link") ?? !1;
335
+ }
336
+ function B() {
337
+ return r.editor?.getAttributes("link").color || "";
338
+ }
339
+ function V(e) {
325
340
  let t = r.editor?.chain().focus();
326
- e ? t?.setColor(e).run() : t?.unsetColor().run();
341
+ 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());
327
342
  }
328
- function G() {
343
+ function H() {
344
+ let e = w?.content.value.settings;
345
+ return z() ? Q(B(), e?.linkColor || e?.textColor) : Q(N("color"), e?.textColor);
346
+ }
347
+ function U() {
348
+ return z() ? B() !== "" : N("color") !== "";
349
+ }
350
+ function W() {
329
351
  return r.editor?.getAttributes("paragraph").lineHeight || "";
330
352
  }
331
353
  function K(e) {
@@ -339,17 +361,17 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
339
361
  function J() {
340
362
  return r.editor?.getAttributes("highlight").color || "";
341
363
  }
342
- function Y(e) {
364
+ function X(e) {
343
365
  let t = r.editor?.chain().focus();
344
366
  e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
345
367
  }
346
- return (n, r) => h(x) && !w.value ? (i(), p(f, {
368
+ return (n, r) => h(x) && !T.value ? (i(), p(f, {
347
369
  key: 0,
348
370
  to: h(x)
349
371
  }, [l("div", {
350
372
  "data-tpl-theme": h(c),
351
373
  role: "toolbar",
352
- "aria-label": h(T).paragraphEditor.toolbar,
374
+ "aria-label": h(E).paragraphEditor.toolbar,
353
375
  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
376
  style: t({
355
377
  ...h(s),
@@ -358,182 +380,192 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
358
380
  transform: "translateY(-100%)",
359
381
  flexDirection: "column"
360
382
  })
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,
383
+ }, [!e.isLoading && e.editor ? (i(), u(g, { key: 0 }, [l("div", Ee, [
384
+ d(Z, {
385
+ "model-value": N("fontFamily"),
386
+ options: h(j),
387
+ label: h(E).paragraphEditor.fontFamily,
388
+ placeholder: h(E).paragraphEditor.defaultFont,
367
389
  "width-class": "tpl:w-32",
368
- "onUpdate:modelValue": F
390
+ "onUpdate:modelValue": P
369
391
  }, null, 8, [
370
392
  "model-value",
371
393
  "options",
372
394
  "label",
373
395
  "placeholder"
374
396
  ]),
375
- d(Q, {
376
- "model-value": P("fontSize"),
377
- options: h(ue),
378
- label: h(T).paragraphEditor.fontSize,
379
- placeholder: h(T).paragraphEditor.defaultSize,
397
+ d(Z, {
398
+ "model-value": N("fontSize"),
399
+ options: h(he),
400
+ label: h(E).paragraphEditor.fontSize,
401
+ placeholder: h(E).paragraphEditor.defaultSize,
380
402
  "width-class": "tpl:w-20",
381
- "onUpdate:modelValue": H
403
+ "onUpdate:modelValue": R
382
404
  }, null, 8, [
383
405
  "model-value",
384
406
  "options",
385
407
  "label",
386
408
  "placeholder"
387
409
  ]),
388
- d(Z),
389
- l("div", Se, [l("input", {
410
+ d(Y),
411
+ l("div", De, [l("input", {
390
412
  type: "color",
391
413
  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", {
414
+ value: H(),
415
+ "aria-label": h(E).paragraphEditor.textColor,
416
+ title: h(E).paragraphEditor.textColor,
417
+ onInput: r[0] ||= (e) => V(e.target.value)
418
+ }, null, 40, Oe), U() ? (i(), u("button", {
419
+ key: 0,
420
+ type: "button",
421
+ class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:flex tpl:size-4 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-dim)] tpl:shadow-sm tpl:transition-colors tpl:duration-150 hover:tpl:text-[var(--tpl-text)]",
422
+ "aria-label": h(E).colorPicker.clear,
423
+ title: h(E).colorPicker.clear,
424
+ onClick: r[1] ||= (e) => V("")
425
+ }, [d(h(pe), {
426
+ size: 10,
427
+ "stroke-width": 2.5
428
+ })], 8, ke)) : v("", !0)]),
429
+ l("div", Ae, [l("input", {
398
430
  type: "color",
399
431
  class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:p-1",
400
432
  style: t({ backgroundColor: J() || "var(--tpl-bg)" }),
401
433
  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,
434
+ "aria-label": h(E).paragraphEditor.highlightColor,
435
+ title: h(E).paragraphEditor.highlightColor,
436
+ onInput: r[2] ||= (e) => X(e.target.value)
437
+ }, null, 44, $)]),
438
+ d(Y),
439
+ d(G, {
440
+ icon: h(ie),
441
+ label: h(E).paragraphEditor.bold,
410
442
  active: e.editor.isActive("bold"),
411
443
  "stroke-width": 2.5,
412
- onClick: r[2] ||= (t) => e.editor.chain().focus().toggleBold().run()
444
+ onClick: r[3] ||= (t) => e.editor.chain().focus().toggleBold().run()
413
445
  }, null, 8, [
414
446
  "icon",
415
447
  "label",
416
448
  "active"
417
449
  ]),
418
- d(X, {
419
- icon: h(M),
420
- label: h(T).paragraphEditor.italic,
450
+ d(G, {
451
+ icon: h(ae),
452
+ label: h(E).paragraphEditor.italic,
421
453
  active: e.editor.isActive("italic"),
422
- onClick: r[3] ||= (t) => e.editor.chain().focus().toggleItalic().run()
454
+ onClick: r[4] ||= (t) => e.editor.chain().focus().toggleItalic().run()
423
455
  }, null, 8, [
424
456
  "icon",
425
457
  "label",
426
458
  "active"
427
459
  ]),
428
- d(X, {
429
- icon: h(pe),
430
- label: h(T).paragraphEditor.underline,
460
+ d(G, {
461
+ icon: h(xe),
462
+ label: h(E).paragraphEditor.underline,
431
463
  active: e.editor.isActive("underline"),
432
- onClick: r[4] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
464
+ onClick: r[5] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
433
465
  }, null, 8, [
434
466
  "icon",
435
467
  "label",
436
468
  "active"
437
469
  ]),
438
- d(X, {
439
- icon: h(de),
440
- label: h(T).paragraphEditor.strikethrough,
470
+ d(G, {
471
+ icon: h(ye),
472
+ label: h(E).paragraphEditor.strikethrough,
441
473
  active: e.editor.isActive("strike"),
442
- onClick: r[5] ||= (t) => e.editor.chain().focus().toggleStrike().run()
474
+ onClick: r[6] ||= (t) => e.editor.chain().focus().toggleStrike().run()
443
475
  }, null, 8, [
444
476
  "icon",
445
477
  "label",
446
478
  "active"
447
479
  ]),
448
- d(Z),
449
- d(X, {
450
- icon: h(U),
451
- label: h(T).paragraphEditor.subscript,
480
+ d(Y),
481
+ d(G, {
482
+ icon: h(ve),
483
+ label: h(E).paragraphEditor.subscript,
452
484
  active: e.editor.isActive("subscript"),
453
- onClick: r[6] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
485
+ onClick: r[7] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
454
486
  }, null, 8, [
455
487
  "icon",
456
488
  "label",
457
489
  "active"
458
490
  ]),
459
- d(X, {
460
- icon: h(fe),
461
- label: h(T).paragraphEditor.superscript,
491
+ d(G, {
492
+ icon: h(be),
493
+ label: h(E).paragraphEditor.superscript,
462
494
  active: e.editor.isActive("superscript"),
463
- onClick: r[7] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
495
+ onClick: r[8] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
464
496
  }, null, 8, [
465
497
  "icon",
466
498
  "label",
467
499
  "active"
468
500
  ]),
469
- d(Z),
470
- d(X, {
471
- icon: h(re),
472
- label: h(T).paragraphEditor.addLink,
501
+ d(Y),
502
+ d(G, {
503
+ icon: h(oe),
504
+ label: h(E).paragraphEditor.addLink,
473
505
  active: e.editor.isActive("link"),
474
- onClick: r[8] ||= (e) => o("open-link-dialog")
506
+ onClick: r[9] ||= (e) => o("open-link-dialog")
475
507
  }, null, 8, [
476
508
  "icon",
477
509
  "label",
478
510
  "active"
479
511
  ])
480
- ]), l("div", Ee, [
481
- d(X, {
482
- icon: h(B),
483
- label: h(T).paragraphEditor.bulletList,
512
+ ]), l("div", je, [
513
+ d(G, {
514
+ icon: h(L),
515
+ label: h(E).paragraphEditor.bulletList,
484
516
  active: e.editor.isActive("bulletList"),
485
- onClick: r[9] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
517
+ onClick: r[10] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
486
518
  }, null, 8, [
487
519
  "icon",
488
520
  "label",
489
521
  "active"
490
522
  ]),
491
- d(X, {
492
- icon: h(z),
493
- label: h(T).paragraphEditor.numberedList,
523
+ d(G, {
524
+ icon: h(I),
525
+ label: h(E).paragraphEditor.numberedList,
494
526
  active: e.editor.isActive("orderedList"),
495
- onClick: r[10] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
527
+ onClick: r[11] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
496
528
  }, null, 8, [
497
529
  "icon",
498
530
  "label",
499
531
  "active"
500
532
  ]),
501
- d(Z),
502
- d(X, {
503
- icon: h(le),
504
- label: h(T).paragraphEditor.alignLeft,
533
+ d(Y),
534
+ d(G, {
535
+ icon: h(fe),
536
+ label: h(E).paragraphEditor.alignLeft,
505
537
  active: e.editor.isActive({ textAlign: "left" }),
506
- onClick: r[11] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
538
+ onClick: r[12] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
507
539
  }, null, 8, [
508
540
  "icon",
509
541
  "label",
510
542
  "active"
511
543
  ]),
512
- d(X, {
513
- icon: h(se),
514
- label: h(T).paragraphEditor.alignCenter,
544
+ d(G, {
545
+ icon: h(ue),
546
+ label: h(E).paragraphEditor.alignCenter,
515
547
  active: e.editor.isActive({ textAlign: "center" }),
516
- onClick: r[12] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
548
+ onClick: r[13] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
517
549
  }, null, 8, [
518
550
  "icon",
519
551
  "label",
520
552
  "active"
521
553
  ]),
522
- d(X, {
523
- icon: h(ce),
524
- label: h(T).paragraphEditor.alignRight,
554
+ d(G, {
555
+ icon: h(de),
556
+ label: h(E).paragraphEditor.alignRight,
525
557
  active: e.editor.isActive({ textAlign: "right" }),
526
- onClick: r[13] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
558
+ onClick: r[14] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
527
559
  }, null, 8, [
528
560
  "icon",
529
561
  "label",
530
562
  "active"
531
563
  ]),
532
- d(Z),
533
- d(Q, {
534
- "model-value": G(),
535
- options: h(L),
536
- label: h(T).paragraphEditor.lineHeight,
564
+ d(Y),
565
+ d(Z, {
566
+ "model-value": W(),
567
+ options: h(me),
568
+ label: h(E).paragraphEditor.lineHeight,
537
569
  placeholder: "LH",
538
570
  "width-class": "tpl:w-16",
539
571
  "onUpdate:modelValue": K
@@ -542,10 +574,10 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
542
574
  "options",
543
575
  "label"
544
576
  ]),
545
- d(Q, {
546
- "model-value": P("letterSpacing"),
547
- options: h(I),
548
- label: h(T).paragraphEditor.letterSpacing,
577
+ d(Z, {
578
+ "model-value": N("letterSpacing"),
579
+ options: h(ge),
580
+ label: h(E).paragraphEditor.letterSpacing,
549
581
  placeholder: "LS",
550
582
  "width-class": "tpl:w-20",
551
583
  "onUpdate:modelValue": q
@@ -554,42 +586,42 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
554
586
  "options",
555
587
  "label"
556
588
  ]),
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()
589
+ d(Y),
590
+ d(G, {
591
+ icon: h(_e),
592
+ label: h(E).paragraphEditor.clearFormatting,
593
+ onClick: r[15] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
562
594
  }, null, 8, ["icon", "label"]),
563
- d(Z),
564
- d(me, { onInsert: N }),
565
- e.canRequestMergeTag ? (i(), u(g, { key: 0 }, [d(Z), l("button", {
595
+ d(Y),
596
+ d(Se, { onInsert: M }),
597
+ e.canRequestMergeTag ? (i(), u(g, { key: 0 }, [d(Y), l("button", {
566
598
  type: "button",
567
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)]",
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), {
600
+ "aria-label": h(E).mergeTag.insert,
601
+ title: h(E).mergeTag.insert,
602
+ onClick: r[16] ||= (e) => o("add-merge-tag")
603
+ }, [d(h(ce), {
572
604
  size: 16,
573
605
  "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", {
606
+ }), m(" " + a(h(E).mergeTag.insertShort), 1)], 8, Me)], 64)) : v("", !0),
607
+ e.canInsertLogicTag ? (i(), u(g, { key: 1 }, [d(Y), l("button", {
576
608
  type: "button",
577
609
  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,
610
+ "aria-label": h(E).logicTag.insert,
611
+ title: h(E).logicTag.insert,
580
612
  "data-testid": "insert-logic-button",
581
- onClick: r[16] ||= (e) => o("add-logic-tag")
582
- }, [d(h(ie), {
613
+ onClick: r[17] ||= (e) => o("add-logic-tag")
614
+ }, [d(h(se), {
583
615
  size: 16,
584
616
  "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), {
617
+ }), m(" " + a(h(E).logicTag.insertShort), 1)], 8, Ne)], 64)) : v("", !0)
618
+ ])], 64)) : (i(), u("div", Pe, [d(h(le), {
587
619
  class: "tpl-spinner",
588
620
  size: 14,
589
621
  "stroke-width": 2
590
- }), m(" " + a(h(T).errors.editorLoading), 1)]))], 12, $)], 8, ["to"])) : v("", !0);
622
+ }), m(" " + a(h(E).errors.editorLoading), 1)]))], 12, Te)], 8, ["to"])) : v("", !0);
591
623
  }
592
- }), je = { class: "tpl-text-editor-wrapper tpl:relative" }, Me = /* @__PURE__ */ c({
624
+ }), Ie = { class: "tpl-text-editor-wrapper tpl:relative" }, Le = /* @__PURE__ */ c({
593
625
  __name: "ParagraphEditor",
594
626
  props: {
595
627
  block: {},
@@ -597,25 +629,25 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
597
629
  },
598
630
  emits: ["done"],
599
631
  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({
632
+ 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
633
  blockId: () => n.block.id,
602
634
  blockContent: () => n.block.content,
603
635
  onDone: () => r("done"),
604
636
  editorName: "ParagraphEditor",
605
637
  async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
606
638
  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")
639
+ import("./dist-BReUTadj.js").then((e) => e.r),
640
+ import("./dist-i_Z7t67A.js"),
641
+ import("./dist-CHLoeloJ.js"),
642
+ import("./dist-DGEaAAIb.js"),
643
+ import("./dist-DcKlLQ8d.js"),
644
+ import("./dist-D1WmF8BF.js"),
645
+ import("./dist-Bm07Z3Es.js"),
646
+ import("./dist-DhY2di4U.js"),
647
+ import("./dist-BXR1aBJV.js"),
648
+ import("./dist-BE9m_i60.js"),
649
+ import("./dist-BPPeDw62.js"),
650
+ import("./extensions-B2poxDIo.js")
619
651
  ]);
620
652
  return {
621
653
  TiptapEditor: o,
@@ -632,7 +664,7 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
632
664
  u,
633
665
  d,
634
666
  f,
635
- l.configure({
667
+ w(l).configure({
636
668
  openOnClick: !1,
637
669
  HTMLAttributes: {
638
670
  target: "_blank",
@@ -662,16 +694,16 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
662
694
  };
663
695
  }
664
696
  });
665
- return (t, n) => (i(), u("div", je, [
666
- d(Ae, {
697
+ return (t, n) => (i(), u("div", Ie, [
698
+ d(Fe, {
667
699
  editor: h(s),
668
700
  "toolbar-position": e.toolbarPosition,
669
701
  "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)
702
+ "can-request-merge-tag": h(y),
703
+ "can-insert-logic-tag": h(b),
704
+ onOpenLinkDialog: h(x),
705
+ onAddMergeTag: h(O),
706
+ onAddLogicTag: h(k)
675
707
  }, null, 8, [
676
708
  "editor",
677
709
  "toolbar-position",
@@ -682,7 +714,7 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
682
714
  "onAddMergeTag",
683
715
  "onAddLogicTag"
684
716
  ]),
685
- d(P, {
717
+ d(N, {
686
718
  editor: h(s),
687
719
  "editor-content": h(c),
688
720
  "is-loading": h(l),
@@ -695,22 +727,25 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
695
727
  "init-error",
696
728
  "onRetry"
697
729
  ]),
698
- d(N, {
730
+ d(M, {
699
731
  visible: h(m),
700
732
  "is-editing-link": h(s)?.isActive("link") ?? !1,
701
- "dialog-ref": h(_),
702
- "onUpdate:dialogRef": n[0] ||= (e) => o(_) ? _.value = e : null,
733
+ "dialog-ref": h(v),
734
+ "onUpdate:dialogRef": n[0] ||= (e) => o(v) ? v.value = e : null,
703
735
  "link-url": h(g),
704
736
  "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)
737
+ "link-color": h(_),
738
+ "onUpdate:linkColor": n[2] ||= (e) => o(_) ? _.value = e : null,
739
+ onClose: h(E),
740
+ onInsert: h(S),
741
+ onRemove: h(C),
742
+ onKeydown: h(D)
709
743
  }, null, 8, [
710
744
  "visible",
711
745
  "is-editing-link",
712
746
  "dialog-ref",
713
747
  "link-url",
748
+ "link-color",
714
749
  "onClose",
715
750
  "onInsert",
716
751
  "onRemove",
@@ -720,4 +755,4 @@ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
720
755
  }
721
756
  });
722
757
  //#endregion
723
- export { Me as default };
758
+ export { Le as default };