@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,19 +1,19 @@
1
- import { K as e, L as t, M as n, P as r, T as i, Z as a, c as o, ct as s, d as c, f as l, g as u, h as d, it as f, l as p, m, ot as h, p as g, st as _, u as v, v as y, x as b, y as x } from "./draggable-kG-D5Xsm.js";
2
- import { $t as S, Lt as C, Qt as w, X as T, Zt as E, at as D, bt as O, cn as ee, et as k, it as A, k as j, ln as te, on as ne, un as M } from "./features-DO71hPJr.js";
3
- import { B as re, C as ie, H as ae, L as oe, R as se, X as ce, Z as le, b as ue, c as de, d as fe, f as pe, g as N, i as P, l as F, o as I, s as L } from "./icons-BfP1cRNb.js";
4
- import { a as R, o as z, s as B } from "./styleConstants-lGobwiLH.js";
5
- import { n as V, t as H } from "./RichTextEditorContent-Cebdzomd.js";
1
+ import { K as e, L as t, M as n, P as r, T as i, Z as a, c as o, ct as s, d as c, f as l, g as u, h as d, it as f, l as p, m, ot as h, p as g, st as _, u as v, v as y, x as b, y as x } from "./draggable-D840DIZB.js";
2
+ import { $t as S, Qt as C, Rt as w, X as T, Z as E, Zt as D, at as O, ct as k, dn as A, en as ee, k as j, ln as te, ot as M, sn as ne, tt as N, un as re, xt as ie } from "./features-CgbSSCgv.js";
3
+ import { B as ae, C as oe, H as se, L as ce, R as le, X as ue, Z as de, b as fe, c as pe, d as me, f as he, g as P, i as ge, l as _e, o as ve, s as F } from "./icons-Dlx5MT1V.js";
4
+ import { c as ye, o as be, s as xe } from "./ColorPicker-DmxMDn-t.js";
5
+ import { n as I, t as L } from "./RichTextEditorContent-CPelbtck.js";
6
6
  //#region src/components/blocks/EmojiPickerDropdown.vue?vue&type=script&setup=true&lang.ts
7
- var U = [
7
+ var R = [
8
8
  "aria-label",
9
9
  "title",
10
10
  "aria-expanded"
11
- ], W = ["aria-label"], G = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, K = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, q = ["aria-label", "onClick"], me = /* @__PURE__ */ b({
11
+ ], z = ["aria-label"], B = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, V = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, H = ["aria-label", "onClick"], Se = /* @__PURE__ */ b({
12
12
  __name: "EmojiPickerDropdown",
13
13
  emits: ["insert"],
14
14
  setup(e, { emit: t }) {
15
- let i = t, { categories: c, isOpen: m, toggle: _, close: y } = k(), { t: b, format: S } = C(), w = a(null), T = a(null);
16
- A(w, l(() => m.value)), M(T, () => {
15
+ let i = t, { categories: c, isOpen: m, toggle: _, close: y } = N(), { t: b, format: S } = w(), C = a(null), T = a(null);
16
+ O(C, l(() => m.value)), A(T, () => {
17
17
  m.value && y();
18
18
  });
19
19
  function E(e) {
@@ -32,14 +32,14 @@ var U = [
32
32
  "aria-haspopup": "dialog",
33
33
  "aria-controls": "tpl-emoji-picker",
34
34
  onClick: t[0] ||= (...e) => f(_) && f(_)(...e)
35
- }, [x(f(N), {
35
+ }, [x(f(P), {
36
36
  size: 16,
37
37
  "stroke-width": 2
38
- })], 10, U), f(m) ? (n(), u("div", {
38
+ })], 10, R), f(m) ? (n(), u("div", {
39
39
  key: 0,
40
40
  id: "tpl-emoji-picker",
41
41
  ref_key: "pickerRef",
42
- ref: w,
42
+ ref: C,
43
43
  role: "dialog",
44
44
  "aria-modal": "false",
45
45
  "aria-label": f(b).paragraphEditor.insertEmoji,
@@ -49,19 +49,19 @@ var U = [
49
49
  }, [(n(!0), u(v, null, r(f(c), (e) => (n(), u("div", {
50
50
  key: e.key,
51
51
  class: "tpl:mb-2 tpl:last:mb-0"
52
- }, [g("div", G, s(f(b).emoji[e.key]), 1), g("div", K, [(n(!0), u(v, null, r(e.emojis, (e) => (n(), u("button", {
52
+ }, [g("div", B, s(f(b).emoji[e.key]), 1), g("div", V, [(n(!0), u(v, null, r(e.emojis, (e) => (n(), u("button", {
53
53
  key: e,
54
54
  type: "button",
55
55
  "aria-label": f(S)(f(b).paragraphEditor.emojiItemLabel, { emoji: e }),
56
56
  class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border-none tpl:bg-transparent tpl:text-base tpl:transition-all tpl:duration-100 tpl:hover:scale-125 tpl:hover:bg-[var(--tpl-bg-active)]",
57
57
  onClick: (t) => E(e)
58
- }, s(e), 9, q))), 128))])]))), 128))], 40, W)) : d("", !0)], 512));
58
+ }, s(e), 9, H))), 128))])]))), 128))], 40, z)) : d("", !0)], 512));
59
59
  }
60
- }), J = [
60
+ }), U = [
61
61
  "aria-label",
62
62
  "title",
63
63
  "aria-pressed"
64
- ], Y = /* @__PURE__ */ b({
64
+ ], W = /* @__PURE__ */ b({
65
65
  __name: "ToolbarIconButton",
66
66
  props: {
67
67
  icon: {},
@@ -80,20 +80,20 @@ var U = [
80
80
  }, [(n(), m(t(e.icon), {
81
81
  size: e.size ?? 16,
82
82
  "stroke-width": e.strokeWidth ?? 2
83
- }, null, 8, ["size", "stroke-width"]))], 10, J));
83
+ }, null, 8, ["size", "stroke-width"]))], 10, U));
84
84
  }
85
- }), X = {}, he = {
85
+ }), G = {}, K = {
86
86
  class: "tpl:mx-1 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
87
87
  "aria-hidden": "true"
88
88
  };
89
- function ge(e, t) {
90
- return n(), u("span", he);
89
+ function q(e, t) {
90
+ return n(), u("span", K);
91
91
  }
92
- var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
92
+ var J = /*#__PURE__*/ M(G, [["render", q]]), Y = [
93
93
  "value",
94
94
  "aria-label",
95
95
  "title"
96
- ], ve = { value: "" }, ye = ["value"], Q = /* @__PURE__ */ b({
96
+ ], X = { value: "" }, Ce = ["value"], Z = /* @__PURE__ */ b({
97
97
  __name: "ToolbarSelect",
98
98
  props: {
99
99
  modelValue: {},
@@ -120,23 +120,31 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
120
120
  "aria-label": e.label,
121
121
  title: e.label,
122
122
  onChange: a
123
- }, [g("option", ve, s(e.placeholder ?? ""), 1), (n(!0), u(v, null, r(e.options, (e) => (n(), u("option", {
123
+ }, [g("option", X, s(e.placeholder ?? ""), 1), (n(!0), u(v, null, r(e.options, (e) => (n(), u("option", {
124
124
  key: o(e),
125
125
  value: o(e)
126
- }, s(c(e)), 9, ye))), 128))], 42, _e));
126
+ }, s(c(e)), 9, Ce))), 128))], 42, Y));
127
127
  }
128
- }), be = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-center tpl:gap-1" }, xe = { class: "tpl:relative" }, Se = [
128
+ });
129
+ //#endregion
130
+ //#region src/utils/richTextColor.ts
131
+ function Q(e, t) {
132
+ return e || t || "#000000";
133
+ }
134
+ //#endregion
135
+ //#region src/components/blocks/ParagraphToolbar.vue?vue&type=script&setup=true&lang.ts
136
+ var we = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Ee = { class: "tpl:relative" }, De = [
129
137
  "value",
130
138
  "aria-label",
131
139
  "title"
132
- ], Ce = { class: "tpl:relative" }, we = [
140
+ ], $ = ["aria-label", "title"], Oe = { class: "tpl:relative" }, ke = [
133
141
  "value",
134
142
  "aria-label",
135
143
  "title"
136
- ], Te = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Ee = ["aria-label", "title"], De = ["aria-label", "title"], Oe = {
144
+ ], Ae = { class: "tpl:flex tpl:items-center tpl:gap-1" }, je = ["aria-label", "title"], Me = ["aria-label", "title"], Ne = {
137
145
  key: 1,
138
146
  class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
139
- }, ke = /* @__PURE__ */ b({
147
+ }, Pe = /* @__PURE__ */ b({
140
148
  __name: "ParagraphToolbar",
141
149
  props: {
142
150
  editor: {},
@@ -151,24 +159,37 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
151
159
  "add-logic-tag"
152
160
  ],
153
161
  setup(e, { emit: t }) {
154
- let r = e, a = t, o = i(ne, null), p = i(ee, null), h = te(E, "ParagraphToolbar"), b = j(), T = i(S, null), D = i(w, null), k = l(() => (T?.isOpen.value ?? !1) || (D?.isOpen.value ?? !1)), { t: A } = C(), M = h.fonts;
155
- function N(e) {
162
+ let r = e, a = t, o = i(ne, null), p = i(te, null), h = re(C, "ParagraphToolbar"), b = j(), T = i(ee, null), E = i(S, null), O = i(D, null), A = l(() => (T?.isOpen.value ?? !1) || (E?.isOpen.value ?? !1)), { t: M } = w(), N = h.fonts;
163
+ function P(e) {
156
164
  r.editor?.chain().focus().insertContent(e).run();
157
165
  }
158
- function V(e) {
166
+ function I(e) {
159
167
  return r.editor?.getAttributes("textStyle")[e] || "";
160
168
  }
161
- function H(e) {
169
+ function L(e) {
162
170
  let t = r.editor?.chain().focus();
163
171
  e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
164
172
  }
165
- function U(e) {
173
+ function R(e) {
166
174
  let t = r.editor?.chain().focus();
167
175
  e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
168
176
  }
169
- function W(e) {
177
+ function z() {
178
+ return r.editor?.isActive("link") ?? !1;
179
+ }
180
+ function B() {
181
+ return r.editor?.getAttributes("link").color || "";
182
+ }
183
+ function V(e) {
170
184
  let t = r.editor?.chain().focus();
171
- e ? t?.setColor(e).run() : t?.unsetColor().run();
185
+ 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());
186
+ }
187
+ function H() {
188
+ let e = O?.content.value.settings;
189
+ return z() ? Q(B(), e?.linkColor || e?.textColor) : Q(I("color"), e?.textColor);
190
+ }
191
+ function U() {
192
+ return z() ? B() !== "" : I("color") !== "";
172
193
  }
173
194
  function G() {
174
195
  return r.editor?.getAttributes("paragraph").lineHeight || "";
@@ -181,20 +202,20 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
181
202
  let t = r.editor?.chain().focus();
182
203
  e && e !== "normal" ? t?.setLetterSpacing(e).run() : t?.unsetLetterSpacing().run();
183
204
  }
184
- function J() {
205
+ function Y() {
185
206
  return r.editor?.getAttributes("highlight").color || "";
186
207
  }
187
208
  function X(e) {
188
209
  let t = r.editor?.chain().focus();
189
210
  e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
190
211
  }
191
- return (t, r) => f(b) && !k.value ? (n(), m(c, {
212
+ return (t, r) => f(b) && !A.value ? (n(), m(c, {
192
213
  key: 0,
193
214
  to: f(b)
194
215
  }, [g("div", {
195
216
  "data-tpl-theme": f(p),
196
217
  role: "toolbar",
197
- "aria-label": f(A).paragraphEditor.toolbar,
218
+ "aria-label": f(M).paragraphEditor.toolbar,
198
219
  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",
199
220
  style: _({
200
221
  ...f(o),
@@ -203,182 +224,192 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
203
224
  transform: "translateY(-100%)",
204
225
  flexDirection: "column"
205
226
  })
206
- }, [!e.isLoading && e.editor ? (n(), u(v, { key: 0 }, [g("div", $, [
207
- x(Q, {
208
- "model-value": V("fontFamily"),
209
- options: f(M),
210
- label: f(A).paragraphEditor.fontFamily,
211
- placeholder: f(A).paragraphEditor.defaultFont,
227
+ }, [!e.isLoading && e.editor ? (n(), u(v, { key: 0 }, [g("div", Te, [
228
+ x(Z, {
229
+ "model-value": I("fontFamily"),
230
+ options: f(N),
231
+ label: f(M).paragraphEditor.fontFamily,
232
+ placeholder: f(M).paragraphEditor.defaultFont,
212
233
  "width-class": "tpl:w-32",
213
- "onUpdate:modelValue": H
234
+ "onUpdate:modelValue": L
214
235
  }, null, 8, [
215
236
  "model-value",
216
237
  "options",
217
238
  "label",
218
239
  "placeholder"
219
240
  ]),
220
- x(Q, {
221
- "model-value": V("fontSize"),
222
- options: f(R),
223
- label: f(A).paragraphEditor.fontSize,
224
- placeholder: f(A).paragraphEditor.defaultSize,
241
+ x(Z, {
242
+ "model-value": I("fontSize"),
243
+ options: f(be),
244
+ label: f(M).paragraphEditor.fontSize,
245
+ placeholder: f(M).paragraphEditor.defaultSize,
225
246
  "width-class": "tpl:w-20",
226
- "onUpdate:modelValue": U
247
+ "onUpdate:modelValue": R
227
248
  }, null, 8, [
228
249
  "model-value",
229
250
  "options",
230
251
  "label",
231
252
  "placeholder"
232
253
  ]),
233
- x(Z),
234
- g("div", xe, [g("input", {
254
+ x(J),
255
+ g("div", Ee, [g("input", {
235
256
  type: "color",
236
257
  class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-1",
237
- value: V("color") || f("#000000"),
238
- "aria-label": f(A).paragraphEditor.textColor,
239
- title: f(A).paragraphEditor.textColor,
240
- onInput: r[0] ||= (e) => W(e.target.value)
241
- }, null, 40, Se)]),
242
- g("div", Ce, [g("input", {
258
+ value: H(),
259
+ "aria-label": f(M).paragraphEditor.textColor,
260
+ title: f(M).paragraphEditor.textColor,
261
+ onInput: r[0] ||= (e) => V(e.target.value)
262
+ }, null, 40, De), U() ? (n(), u("button", {
263
+ key: 0,
264
+ type: "button",
265
+ 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)]",
266
+ "aria-label": f(M).colorPicker.clear,
267
+ title: f(M).colorPicker.clear,
268
+ onClick: r[1] ||= (e) => V("")
269
+ }, [x(f(k), {
270
+ size: 10,
271
+ "stroke-width": 2.5
272
+ })], 8, $)) : d("", !0)]),
273
+ g("div", Oe, [g("input", {
243
274
  type: "color",
244
275
  class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:p-1",
245
- style: _({ backgroundColor: J() || "var(--tpl-bg)" }),
246
- value: J() || f("#ffff00"),
247
- "aria-label": f(A).paragraphEditor.highlightColor,
248
- title: f(A).paragraphEditor.highlightColor,
249
- onInput: r[1] ||= (e) => X(e.target.value)
250
- }, null, 44, we)]),
251
- x(Z),
252
- x(Y, {
253
- icon: f(le),
254
- label: f(A).paragraphEditor.bold,
276
+ style: _({ backgroundColor: Y() || "var(--tpl-bg)" }),
277
+ value: Y() || f("#ffff00"),
278
+ "aria-label": f(M).paragraphEditor.highlightColor,
279
+ title: f(M).paragraphEditor.highlightColor,
280
+ onInput: r[2] ||= (e) => X(e.target.value)
281
+ }, null, 44, ke)]),
282
+ x(J),
283
+ x(W, {
284
+ icon: f(de),
285
+ label: f(M).paragraphEditor.bold,
255
286
  active: e.editor.isActive("bold"),
256
287
  "stroke-width": 2.5,
257
- onClick: r[2] ||= (t) => e.editor.chain().focus().toggleBold().run()
288
+ onClick: r[3] ||= (t) => e.editor.chain().focus().toggleBold().run()
258
289
  }, null, 8, [
259
290
  "icon",
260
291
  "label",
261
292
  "active"
262
293
  ]),
263
- x(Y, {
264
- icon: f(ae),
265
- label: f(A).paragraphEditor.italic,
294
+ x(W, {
295
+ icon: f(se),
296
+ label: f(M).paragraphEditor.italic,
266
297
  active: e.editor.isActive("italic"),
267
- onClick: r[3] ||= (t) => e.editor.chain().focus().toggleItalic().run()
298
+ onClick: r[4] ||= (t) => e.editor.chain().focus().toggleItalic().run()
268
299
  }, null, 8, [
269
300
  "icon",
270
301
  "label",
271
302
  "active"
272
303
  ]),
273
- x(Y, {
274
- icon: f(P),
275
- label: f(A).paragraphEditor.underline,
304
+ x(W, {
305
+ icon: f(ge),
306
+ label: f(M).paragraphEditor.underline,
276
307
  active: e.editor.isActive("underline"),
277
- onClick: r[4] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
308
+ onClick: r[5] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
278
309
  }, null, 8, [
279
310
  "icon",
280
311
  "label",
281
312
  "active"
282
313
  ]),
283
- x(Y, {
284
- icon: f(fe),
285
- label: f(A).paragraphEditor.strikethrough,
314
+ x(W, {
315
+ icon: f(me),
316
+ label: f(M).paragraphEditor.strikethrough,
286
317
  active: e.editor.isActive("strike"),
287
- onClick: r[5] ||= (t) => e.editor.chain().focus().toggleStrike().run()
318
+ onClick: r[6] ||= (t) => e.editor.chain().focus().toggleStrike().run()
288
319
  }, null, 8, [
289
320
  "icon",
290
321
  "label",
291
322
  "active"
292
323
  ]),
293
- x(Z),
294
- x(Y, {
295
- icon: f(pe),
296
- label: f(A).paragraphEditor.subscript,
324
+ x(J),
325
+ x(W, {
326
+ icon: f(he),
327
+ label: f(M).paragraphEditor.subscript,
297
328
  active: e.editor.isActive("subscript"),
298
- onClick: r[6] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
329
+ onClick: r[7] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
299
330
  }, null, 8, [
300
331
  "icon",
301
332
  "label",
302
333
  "active"
303
334
  ]),
304
- x(Y, {
305
- icon: f(F),
306
- label: f(A).paragraphEditor.superscript,
335
+ x(W, {
336
+ icon: f(_e),
337
+ label: f(M).paragraphEditor.superscript,
307
338
  active: e.editor.isActive("superscript"),
308
- onClick: r[7] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
339
+ onClick: r[8] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
309
340
  }, null, 8, [
310
341
  "icon",
311
342
  "label",
312
343
  "active"
313
344
  ]),
314
- x(Z),
315
- x(Y, {
316
- icon: f(re),
317
- label: f(A).paragraphEditor.addLink,
345
+ x(J),
346
+ x(W, {
347
+ icon: f(ae),
348
+ label: f(M).paragraphEditor.addLink,
318
349
  active: e.editor.isActive("link"),
319
- onClick: r[8] ||= (e) => a("open-link-dialog")
350
+ onClick: r[9] ||= (e) => a("open-link-dialog")
320
351
  }, null, 8, [
321
352
  "icon",
322
353
  "label",
323
354
  "active"
324
355
  ])
325
- ]), g("div", Te, [
326
- x(Y, {
327
- icon: f(oe),
328
- label: f(A).paragraphEditor.bulletList,
356
+ ]), g("div", Ae, [
357
+ x(W, {
358
+ icon: f(ce),
359
+ label: f(M).paragraphEditor.bulletList,
329
360
  active: e.editor.isActive("bulletList"),
330
- onClick: r[9] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
361
+ onClick: r[10] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
331
362
  }, null, 8, [
332
363
  "icon",
333
364
  "label",
334
365
  "active"
335
366
  ]),
336
- x(Y, {
337
- icon: f(se),
338
- label: f(A).paragraphEditor.numberedList,
367
+ x(W, {
368
+ icon: f(le),
369
+ label: f(M).paragraphEditor.numberedList,
339
370
  active: e.editor.isActive("orderedList"),
340
- onClick: r[10] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
371
+ onClick: r[11] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
341
372
  }, null, 8, [
342
373
  "icon",
343
374
  "label",
344
375
  "active"
345
376
  ]),
346
- x(Z),
347
- x(Y, {
348
- icon: f(I),
349
- label: f(A).paragraphEditor.alignLeft,
377
+ x(J),
378
+ x(W, {
379
+ icon: f(ve),
380
+ label: f(M).paragraphEditor.alignLeft,
350
381
  active: e.editor.isActive({ textAlign: "left" }),
351
- onClick: r[11] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
382
+ onClick: r[12] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
352
383
  }, null, 8, [
353
384
  "icon",
354
385
  "label",
355
386
  "active"
356
387
  ]),
357
- x(Y, {
358
- icon: f(L),
359
- label: f(A).paragraphEditor.alignCenter,
388
+ x(W, {
389
+ icon: f(F),
390
+ label: f(M).paragraphEditor.alignCenter,
360
391
  active: e.editor.isActive({ textAlign: "center" }),
361
- onClick: r[12] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
392
+ onClick: r[13] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
362
393
  }, null, 8, [
363
394
  "icon",
364
395
  "label",
365
396
  "active"
366
397
  ]),
367
- x(Y, {
368
- icon: f(de),
369
- label: f(A).paragraphEditor.alignRight,
398
+ x(W, {
399
+ icon: f(pe),
400
+ label: f(M).paragraphEditor.alignRight,
370
401
  active: e.editor.isActive({ textAlign: "right" }),
371
- onClick: r[13] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
402
+ onClick: r[14] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
372
403
  }, null, 8, [
373
404
  "icon",
374
405
  "label",
375
406
  "active"
376
407
  ]),
377
- x(Z),
378
- x(Q, {
408
+ x(J),
409
+ x(Z, {
379
410
  "model-value": G(),
380
- options: f(B),
381
- label: f(A).paragraphEditor.lineHeight,
411
+ options: f(ye),
412
+ label: f(M).paragraphEditor.lineHeight,
382
413
  placeholder: "LH",
383
414
  "width-class": "tpl:w-16",
384
415
  "onUpdate:modelValue": K
@@ -387,10 +418,10 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
387
418
  "options",
388
419
  "label"
389
420
  ]),
390
- x(Q, {
391
- "model-value": V("letterSpacing"),
392
- options: f(z),
393
- label: f(A).paragraphEditor.letterSpacing,
421
+ x(Z, {
422
+ "model-value": I("letterSpacing"),
423
+ options: f(xe),
424
+ label: f(M).paragraphEditor.letterSpacing,
394
425
  placeholder: "LS",
395
426
  "width-class": "tpl:w-20",
396
427
  "onUpdate:modelValue": q
@@ -399,42 +430,42 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
399
430
  "options",
400
431
  "label"
401
432
  ]),
402
- x(Z),
403
- x(Y, {
404
- icon: f(ie),
405
- label: f(A).paragraphEditor.clearFormatting,
406
- onClick: r[14] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
433
+ x(J),
434
+ x(W, {
435
+ icon: f(oe),
436
+ label: f(M).paragraphEditor.clearFormatting,
437
+ onClick: r[15] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
407
438
  }, null, 8, ["icon", "label"]),
408
- x(Z),
409
- x(me, { onInsert: N }),
410
- e.canRequestMergeTag ? (n(), u(v, { key: 0 }, [x(Z), g("button", {
439
+ x(J),
440
+ x(Se, { onInsert: P }),
441
+ e.canRequestMergeTag ? (n(), u(v, { key: 0 }, [x(J), g("button", {
411
442
  type: "button",
412
443
  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)]",
413
- "aria-label": f(A).mergeTag.insert,
414
- title: f(A).mergeTag.insert,
415
- onClick: r[15] ||= (e) => a("add-merge-tag")
416
- }, [x(f(ue), {
444
+ "aria-label": f(M).mergeTag.insert,
445
+ title: f(M).mergeTag.insert,
446
+ onClick: r[16] ||= (e) => a("add-merge-tag")
447
+ }, [x(f(fe), {
417
448
  size: 16,
418
449
  "stroke-width": 2
419
- }), y(" " + s(f(A).mergeTag.insertShort), 1)], 8, Ee)], 64)) : d("", !0),
420
- e.canInsertLogicTag ? (n(), u(v, { key: 1 }, [x(Z), g("button", {
450
+ }), y(" " + s(f(M).mergeTag.insertShort), 1)], 8, je)], 64)) : d("", !0),
451
+ e.canInsertLogicTag ? (n(), u(v, { key: 1 }, [x(J), g("button", {
421
452
  type: "button",
422
453
  class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-bg-active)]",
423
- "aria-label": f(A).logicTag.insert,
424
- title: f(A).logicTag.insert,
454
+ "aria-label": f(M).logicTag.insert,
455
+ title: f(M).logicTag.insert,
425
456
  "data-testid": "insert-logic-button",
426
- onClick: r[16] ||= (e) => a("add-logic-tag")
427
- }, [x(f(ce), {
457
+ onClick: r[17] ||= (e) => a("add-logic-tag")
458
+ }, [x(f(ue), {
428
459
  size: 16,
429
460
  "stroke-width": 2
430
- }), y(" " + s(f(A).logicTag.insertShort), 1)], 8, De)], 64)) : d("", !0)
431
- ])], 64)) : (n(), u("div", Oe, [x(f(O), {
461
+ }), y(" " + s(f(M).logicTag.insertShort), 1)], 8, Me)], 64)) : d("", !0)
462
+ ])], 64)) : (n(), u("div", Ne, [x(f(ie), {
432
463
  class: "tpl-spinner",
433
464
  size: 14,
434
465
  "stroke-width": 2
435
- }), y(" " + s(f(A).errors.editorLoading), 1)]))], 12, be)], 8, ["to"])) : d("", !0);
466
+ }), y(" " + s(f(M).errors.editorLoading), 1)]))], 12, we)], 8, ["to"])) : d("", !0);
436
467
  }
437
- }), Ae = { class: "tpl-text-editor-wrapper tpl:relative" }, je = /* @__PURE__ */ b({
468
+ }), Fe = { class: "tpl-text-editor-wrapper tpl:relative" }, Ie = /* @__PURE__ */ b({
438
469
  __name: "ParagraphEditor",
439
470
  props: {
440
471
  block: {},
@@ -442,25 +473,25 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
442
473
  },
443
474
  emits: ["done"],
444
475
  setup(t, { emit: r }) {
445
- let i = t, a = r, o = j(), { editor: s, EditorContent: c, isLoading: l, initError: d, retry: p, showLinkDialog: m, linkUrl: h, linkDialogRef: g, canRequestMergeTag: _, canInsertLogicTag: v, openLinkDialog: y, insertLink: b, removeLink: S, closeLinkDialog: C, handleLinkKeydown: w, handleAddMergeTag: E, handleAddLogicTag: D } = T({
476
+ let i = t, a = r, o = j(), { editor: s, EditorContent: c, isLoading: l, initError: d, retry: p, showLinkDialog: m, linkUrl: h, linkColor: g, linkDialogRef: _, canRequestMergeTag: v, canInsertLogicTag: y, openLinkDialog: b, insertLink: S, removeLink: C, closeLinkDialog: w, handleLinkKeydown: D, handleAddMergeTag: O, handleAddLogicTag: k } = T({
446
477
  blockId: () => i.block.id,
447
478
  blockContent: () => i.block.content,
448
479
  onDone: () => a("done"),
449
480
  editorName: "ParagraphEditor",
450
481
  async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
451
482
  let [{ Editor: a, EditorContent: s }, { default: c }, { default: l }, { default: u }, { default: d }, { default: f }, { default: p }, { TextStyle: m }, { default: h }, { default: g }, { default: _ }, { MergeTagNode: v, MergeTagSuggestion: y, LogicMergeTagNode: b, FontSize: x, LineHeight: S, LetterSpacing: C }] = await Promise.all([
452
- import("./tiptap-DVHUKGZf.js").then((e) => e.r),
453
- import("./tiptap-DVHUKGZf.js").then((e) => e.i),
454
- import("./tiptap-DVHUKGZf.js").then((e) => e.l),
455
- import("./tiptap-DVHUKGZf.js").then((e) => e.a),
456
- import("./tiptap-DVHUKGZf.js").then((e) => e.c),
457
- import("./tiptap-DVHUKGZf.js").then((e) => e.s),
458
- import("./tiptap-DVHUKGZf.js").then((e) => e.o),
459
- import("./tiptap-DVHUKGZf.js").then((e) => e.p),
460
- import("./tiptap-DVHUKGZf.js").then((e) => e.f),
461
- import("./tiptap-DVHUKGZf.js").then((e) => e.d),
462
- import("./tiptap-DVHUKGZf.js").then((e) => e.u),
463
- import("./extensions-BeAsz_mp.js")
483
+ import("./tiptap-zpXk5mN4.js").then((e) => e.r),
484
+ import("./tiptap-zpXk5mN4.js").then((e) => e.i),
485
+ import("./tiptap-zpXk5mN4.js").then((e) => e.l),
486
+ import("./tiptap-zpXk5mN4.js").then((e) => e.a),
487
+ import("./tiptap-zpXk5mN4.js").then((e) => e.c),
488
+ import("./tiptap-zpXk5mN4.js").then((e) => e.s),
489
+ import("./tiptap-zpXk5mN4.js").then((e) => e.o),
490
+ import("./tiptap-zpXk5mN4.js").then((e) => e.p),
491
+ import("./tiptap-zpXk5mN4.js").then((e) => e.f),
492
+ import("./tiptap-zpXk5mN4.js").then((e) => e.d),
493
+ import("./tiptap-zpXk5mN4.js").then((e) => e.u),
494
+ import("./extensions-BJ7vaBol.js")
464
495
  ]);
465
496
  return {
466
497
  TiptapEditor: a,
@@ -477,7 +508,7 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
477
508
  u,
478
509
  d,
479
510
  f,
480
- l.configure({
511
+ E(l).configure({
481
512
  openOnClick: !1,
482
513
  HTMLAttributes: {
483
514
  target: "_blank",
@@ -507,16 +538,16 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
507
538
  };
508
539
  }
509
540
  });
510
- return (r, i) => (n(), u("div", Ae, [
511
- x(ke, {
541
+ return (r, i) => (n(), u("div", Fe, [
542
+ x(Pe, {
512
543
  editor: f(s),
513
544
  "toolbar-position": t.toolbarPosition,
514
545
  "is-loading": f(l),
515
- "can-request-merge-tag": f(_),
516
- "can-insert-logic-tag": f(v),
517
- onOpenLinkDialog: f(y),
518
- onAddMergeTag: f(E),
519
- onAddLogicTag: f(D)
546
+ "can-request-merge-tag": f(v),
547
+ "can-insert-logic-tag": f(y),
548
+ onOpenLinkDialog: f(b),
549
+ onAddMergeTag: f(O),
550
+ onAddLogicTag: f(k)
520
551
  }, null, 8, [
521
552
  "editor",
522
553
  "toolbar-position",
@@ -527,7 +558,7 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
527
558
  "onAddMergeTag",
528
559
  "onAddLogicTag"
529
560
  ]),
530
- x(H, {
561
+ x(L, {
531
562
  editor: f(s),
532
563
  "editor-content": f(c),
533
564
  "is-loading": f(l),
@@ -540,22 +571,25 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
540
571
  "init-error",
541
572
  "onRetry"
542
573
  ]),
543
- x(V, {
574
+ x(I, {
544
575
  visible: f(m),
545
576
  "is-editing-link": f(s)?.isActive("link") ?? !1,
546
- "dialog-ref": f(g),
547
- "onUpdate:dialogRef": i[0] ||= (t) => e(g) ? g.value = t : null,
577
+ "dialog-ref": f(_),
578
+ "onUpdate:dialogRef": i[0] ||= (t) => e(_) ? _.value = t : null,
548
579
  "link-url": f(h),
549
580
  "onUpdate:linkUrl": i[1] ||= (t) => e(h) ? h.value = t : null,
550
- onClose: f(C),
551
- onInsert: f(b),
552
- onRemove: f(S),
553
- onKeydown: f(w)
581
+ "link-color": f(g),
582
+ "onUpdate:linkColor": i[2] ||= (t) => e(g) ? g.value = t : null,
583
+ onClose: f(w),
584
+ onInsert: f(S),
585
+ onRemove: f(C),
586
+ onKeydown: f(D)
554
587
  }, null, 8, [
555
588
  "visible",
556
589
  "is-editing-link",
557
590
  "dialog-ref",
558
591
  "link-url",
592
+ "link-color",
559
593
  "onClose",
560
594
  "onInsert",
561
595
  "onRemove",
@@ -565,6 +599,6 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
565
599
  }
566
600
  });
567
601
  //#endregion
568
- export { je as default };
602
+ export { Ie as default };
569
603
 
570
- //# sourceMappingURL=ParagraphEditor-CJNgRMhw.js.map
604
+ //# sourceMappingURL=ParagraphEditor-CB5FGRs3.js.map