@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,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, dn as k, en as ee, k as A, ln as te, ot as j, sn as ne, tt as M, un as re, xt as ie } from "./features-C-cjT_8L.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 N, i as ge, l as _e, o as ve, s as ye } from "./icons-ay0_fN-T.js";
4
+ import { c as P, o as be, r as xe, s as Se, t as F } from "./ColorPicker-BggAWrc9.js";
5
+ import { n as I, t as L } from "./RichTextEditorContent-B_w3u5lN.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"], Ce = /* @__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 } = M(), { t: b, format: S } = w(), C = a(null), T = a(null);
16
+ O(C, l(() => m.value)), k(T, () => {
17
17
  m.value && y();
18
18
  });
19
19
  function E(e) {
@@ -35,11 +35,11 @@ var U = [
35
35
  }, [x(f(N), {
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__*/ j(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: "" }, we = ["value"], Z = /* @__PURE__ */ b({
97
97
  __name: "ToolbarSelect",
98
98
  props: {
99
99
  modelValue: {},
@@ -120,23 +120,23 @@ 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, we))), 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 = [
129
- "value",
130
- "aria-label",
131
- "title"
132
- ], Ce = { class: "tpl:relative" }, we = [
133
- "value",
134
- "aria-label",
135
- "title"
136
- ], Te = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Ee = ["aria-label", "title"], De = ["aria-label", "title"], Oe = {
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 Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Ee = { class: "tpl:flex tpl:items-center tpl:gap-1" }, De = ["aria-label", "title"], Oe = ["aria-label", "title"], ke = {
137
137
  key: 1,
138
138
  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({
139
+ }, Ae = /* @__PURE__ */ b({
140
140
  __name: "ParagraphToolbar",
141
141
  props: {
142
142
  editor: {},
@@ -151,24 +151,37 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
151
151
  "add-logic-tag"
152
152
  ],
153
153
  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;
154
+ let r = e, a = t, o = i(ne, null), p = i(te, null), h = re(C, "ParagraphToolbar"), b = A(), T = i(ee, null), E = i(S, null), O = i(D, null), k = l(() => (T?.isOpen.value ?? !1) || (E?.isOpen.value ?? !1)), { t: j } = w(), M = h.fonts;
155
155
  function N(e) {
156
156
  r.editor?.chain().focus().insertContent(e).run();
157
157
  }
158
- function V(e) {
158
+ function I(e) {
159
159
  return r.editor?.getAttributes("textStyle")[e] || "";
160
160
  }
161
- function H(e) {
161
+ function L(e) {
162
162
  let t = r.editor?.chain().focus();
163
163
  e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
164
164
  }
165
- function U(e) {
165
+ function R(e) {
166
166
  let t = r.editor?.chain().focus();
167
167
  e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
168
168
  }
169
- function W(e) {
169
+ function z() {
170
+ return r.editor?.isActive("link") ?? !1;
171
+ }
172
+ function B() {
173
+ return r.editor?.getAttributes("link").color || "";
174
+ }
175
+ function V(e) {
170
176
  let t = r.editor?.chain().focus();
171
- e ? t?.setColor(e).run() : t?.unsetColor().run();
177
+ 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());
178
+ }
179
+ function H() {
180
+ let e = O?.content.value.settings;
181
+ return z() ? Q(B(), e?.linkColor || e?.textColor) : Q(I("color"), e?.textColor);
182
+ }
183
+ function U() {
184
+ return z() ? B() : I("color");
172
185
  }
173
186
  function G() {
174
187
  return r.editor?.getAttributes("paragraph").lineHeight || "";
@@ -181,7 +194,7 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
181
194
  let t = r.editor?.chain().focus();
182
195
  e && e !== "normal" ? t?.setLetterSpacing(e).run() : t?.unsetLetterSpacing().run();
183
196
  }
184
- function J() {
197
+ function Y() {
185
198
  return r.editor?.getAttributes("highlight").color || "";
186
199
  }
187
200
  function X(e) {
@@ -194,7 +207,7 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
194
207
  }, [g("div", {
195
208
  "data-tpl-theme": f(p),
196
209
  role: "toolbar",
197
- "aria-label": f(A).paragraphEditor.toolbar,
210
+ "aria-label": f(j).paragraphEditor.toolbar,
198
211
  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
212
  style: _({
200
213
  ...f(o),
@@ -204,181 +217,190 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
204
217
  flexDirection: "column"
205
218
  })
206
219
  }, [!e.isLoading && e.editor ? (n(), u(v, { key: 0 }, [g("div", $, [
207
- x(Q, {
208
- "model-value": V("fontFamily"),
220
+ x(Z, {
221
+ "model-value": I("fontFamily"),
209
222
  options: f(M),
210
- label: f(A).paragraphEditor.fontFamily,
211
- placeholder: f(A).paragraphEditor.defaultFont,
223
+ label: f(j).paragraphEditor.fontFamily,
224
+ placeholder: f(j).paragraphEditor.defaultFont,
212
225
  "width-class": "tpl:w-32",
213
- "onUpdate:modelValue": H
226
+ "onUpdate:modelValue": L
214
227
  }, null, 8, [
215
228
  "model-value",
216
229
  "options",
217
230
  "label",
218
231
  "placeholder"
219
232
  ]),
220
- x(Q, {
221
- "model-value": V("fontSize"),
222
- options: f(R),
223
- label: f(A).paragraphEditor.fontSize,
224
- placeholder: f(A).paragraphEditor.defaultSize,
233
+ x(Z, {
234
+ "model-value": I("fontSize"),
235
+ options: f(be),
236
+ label: f(j).paragraphEditor.fontSize,
237
+ placeholder: f(j).paragraphEditor.defaultSize,
225
238
  "width-class": "tpl:w-20",
226
- "onUpdate:modelValue": U
239
+ "onUpdate:modelValue": R
227
240
  }, null, 8, [
228
241
  "model-value",
229
242
  "options",
230
243
  "label",
231
244
  "placeholder"
232
245
  ]),
233
- x(Z),
234
- g("div", xe, [g("input", {
235
- type: "color",
236
- 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", {
243
- type: "color",
244
- 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,
246
+ x(J),
247
+ x(F, {
248
+ "swatch-only": "",
249
+ size: "sm",
250
+ "data-testid": "text-color-picker",
251
+ "model-value": U(),
252
+ "seed-color": H(),
253
+ "aria-label": f(j).paragraphEditor.textColor,
254
+ "onUpdate:modelValue": V
255
+ }, null, 8, [
256
+ "model-value",
257
+ "seed-color",
258
+ "aria-label"
259
+ ]),
260
+ x(F, {
261
+ "swatch-only": "",
262
+ size: "sm",
263
+ "data-testid": "highlight-color-picker",
264
+ "model-value": Y(),
265
+ "seed-color": f(xe),
266
+ "aria-label": f(j).paragraphEditor.highlightColor,
267
+ "onUpdate:modelValue": X
268
+ }, null, 8, [
269
+ "model-value",
270
+ "seed-color",
271
+ "aria-label"
272
+ ]),
273
+ x(J),
274
+ x(W, {
275
+ icon: f(de),
276
+ label: f(j).paragraphEditor.bold,
255
277
  active: e.editor.isActive("bold"),
256
278
  "stroke-width": 2.5,
257
- onClick: r[2] ||= (t) => e.editor.chain().focus().toggleBold().run()
279
+ onClick: r[0] ||= (t) => e.editor.chain().focus().toggleBold().run()
258
280
  }, null, 8, [
259
281
  "icon",
260
282
  "label",
261
283
  "active"
262
284
  ]),
263
- x(Y, {
264
- icon: f(ae),
265
- label: f(A).paragraphEditor.italic,
285
+ x(W, {
286
+ icon: f(se),
287
+ label: f(j).paragraphEditor.italic,
266
288
  active: e.editor.isActive("italic"),
267
- onClick: r[3] ||= (t) => e.editor.chain().focus().toggleItalic().run()
289
+ onClick: r[1] ||= (t) => e.editor.chain().focus().toggleItalic().run()
268
290
  }, null, 8, [
269
291
  "icon",
270
292
  "label",
271
293
  "active"
272
294
  ]),
273
- x(Y, {
274
- icon: f(P),
275
- label: f(A).paragraphEditor.underline,
295
+ x(W, {
296
+ icon: f(ge),
297
+ label: f(j).paragraphEditor.underline,
276
298
  active: e.editor.isActive("underline"),
277
- onClick: r[4] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
299
+ onClick: r[2] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
278
300
  }, null, 8, [
279
301
  "icon",
280
302
  "label",
281
303
  "active"
282
304
  ]),
283
- x(Y, {
284
- icon: f(fe),
285
- label: f(A).paragraphEditor.strikethrough,
305
+ x(W, {
306
+ icon: f(me),
307
+ label: f(j).paragraphEditor.strikethrough,
286
308
  active: e.editor.isActive("strike"),
287
- onClick: r[5] ||= (t) => e.editor.chain().focus().toggleStrike().run()
309
+ onClick: r[3] ||= (t) => e.editor.chain().focus().toggleStrike().run()
288
310
  }, null, 8, [
289
311
  "icon",
290
312
  "label",
291
313
  "active"
292
314
  ]),
293
- x(Z),
294
- x(Y, {
295
- icon: f(pe),
296
- label: f(A).paragraphEditor.subscript,
315
+ x(J),
316
+ x(W, {
317
+ icon: f(he),
318
+ label: f(j).paragraphEditor.subscript,
297
319
  active: e.editor.isActive("subscript"),
298
- onClick: r[6] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
320
+ onClick: r[4] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
299
321
  }, null, 8, [
300
322
  "icon",
301
323
  "label",
302
324
  "active"
303
325
  ]),
304
- x(Y, {
305
- icon: f(F),
306
- label: f(A).paragraphEditor.superscript,
326
+ x(W, {
327
+ icon: f(_e),
328
+ label: f(j).paragraphEditor.superscript,
307
329
  active: e.editor.isActive("superscript"),
308
- onClick: r[7] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
330
+ onClick: r[5] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
309
331
  }, null, 8, [
310
332
  "icon",
311
333
  "label",
312
334
  "active"
313
335
  ]),
314
- x(Z),
315
- x(Y, {
316
- icon: f(re),
317
- label: f(A).paragraphEditor.addLink,
336
+ x(J),
337
+ x(W, {
338
+ icon: f(ae),
339
+ label: f(j).paragraphEditor.addLink,
318
340
  active: e.editor.isActive("link"),
319
- onClick: r[8] ||= (e) => a("open-link-dialog")
341
+ onClick: r[6] ||= (e) => a("open-link-dialog")
320
342
  }, null, 8, [
321
343
  "icon",
322
344
  "label",
323
345
  "active"
324
346
  ])
325
- ]), g("div", Te, [
326
- x(Y, {
327
- icon: f(oe),
328
- label: f(A).paragraphEditor.bulletList,
347
+ ]), g("div", Ee, [
348
+ x(W, {
349
+ icon: f(ce),
350
+ label: f(j).paragraphEditor.bulletList,
329
351
  active: e.editor.isActive("bulletList"),
330
- onClick: r[9] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
352
+ onClick: r[7] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
331
353
  }, null, 8, [
332
354
  "icon",
333
355
  "label",
334
356
  "active"
335
357
  ]),
336
- x(Y, {
337
- icon: f(se),
338
- label: f(A).paragraphEditor.numberedList,
358
+ x(W, {
359
+ icon: f(le),
360
+ label: f(j).paragraphEditor.numberedList,
339
361
  active: e.editor.isActive("orderedList"),
340
- onClick: r[10] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
362
+ onClick: r[8] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
341
363
  }, null, 8, [
342
364
  "icon",
343
365
  "label",
344
366
  "active"
345
367
  ]),
346
- x(Z),
347
- x(Y, {
348
- icon: f(I),
349
- label: f(A).paragraphEditor.alignLeft,
368
+ x(J),
369
+ x(W, {
370
+ icon: f(ve),
371
+ label: f(j).paragraphEditor.alignLeft,
350
372
  active: e.editor.isActive({ textAlign: "left" }),
351
- onClick: r[11] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
373
+ onClick: r[9] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
352
374
  }, null, 8, [
353
375
  "icon",
354
376
  "label",
355
377
  "active"
356
378
  ]),
357
- x(Y, {
358
- icon: f(L),
359
- label: f(A).paragraphEditor.alignCenter,
379
+ x(W, {
380
+ icon: f(ye),
381
+ label: f(j).paragraphEditor.alignCenter,
360
382
  active: e.editor.isActive({ textAlign: "center" }),
361
- onClick: r[12] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
383
+ onClick: r[10] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
362
384
  }, null, 8, [
363
385
  "icon",
364
386
  "label",
365
387
  "active"
366
388
  ]),
367
- x(Y, {
368
- icon: f(de),
369
- label: f(A).paragraphEditor.alignRight,
389
+ x(W, {
390
+ icon: f(pe),
391
+ label: f(j).paragraphEditor.alignRight,
370
392
  active: e.editor.isActive({ textAlign: "right" }),
371
- onClick: r[13] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
393
+ onClick: r[11] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
372
394
  }, null, 8, [
373
395
  "icon",
374
396
  "label",
375
397
  "active"
376
398
  ]),
377
- x(Z),
378
- x(Q, {
399
+ x(J),
400
+ x(Z, {
379
401
  "model-value": G(),
380
- options: f(B),
381
- label: f(A).paragraphEditor.lineHeight,
402
+ options: f(P),
403
+ label: f(j).paragraphEditor.lineHeight,
382
404
  placeholder: "LH",
383
405
  "width-class": "tpl:w-16",
384
406
  "onUpdate:modelValue": K
@@ -387,10 +409,10 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
387
409
  "options",
388
410
  "label"
389
411
  ]),
390
- x(Q, {
391
- "model-value": V("letterSpacing"),
392
- options: f(z),
393
- label: f(A).paragraphEditor.letterSpacing,
412
+ x(Z, {
413
+ "model-value": I("letterSpacing"),
414
+ options: f(Se),
415
+ label: f(j).paragraphEditor.letterSpacing,
394
416
  placeholder: "LS",
395
417
  "width-class": "tpl:w-20",
396
418
  "onUpdate:modelValue": q
@@ -399,42 +421,42 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
399
421
  "options",
400
422
  "label"
401
423
  ]),
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()
424
+ x(J),
425
+ x(W, {
426
+ icon: f(oe),
427
+ label: f(j).paragraphEditor.clearFormatting,
428
+ onClick: r[12] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
407
429
  }, null, 8, ["icon", "label"]),
408
- x(Z),
409
- x(me, { onInsert: N }),
410
- e.canRequestMergeTag ? (n(), u(v, { key: 0 }, [x(Z), g("button", {
430
+ x(J),
431
+ x(Ce, { onInsert: N }),
432
+ e.canRequestMergeTag ? (n(), u(v, { key: 0 }, [x(J), g("button", {
411
433
  type: "button",
412
434
  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), {
435
+ "aria-label": f(j).mergeTag.insert,
436
+ title: f(j).mergeTag.insert,
437
+ onClick: r[13] ||= (e) => a("add-merge-tag")
438
+ }, [x(f(fe), {
417
439
  size: 16,
418
440
  "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", {
441
+ }), y(" " + s(f(j).mergeTag.insertShort), 1)], 8, De)], 64)) : d("", !0),
442
+ e.canInsertLogicTag ? (n(), u(v, { key: 1 }, [x(J), g("button", {
421
443
  type: "button",
422
444
  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,
445
+ "aria-label": f(j).logicTag.insert,
446
+ title: f(j).logicTag.insert,
425
447
  "data-testid": "insert-logic-button",
426
- onClick: r[16] ||= (e) => a("add-logic-tag")
427
- }, [x(f(ce), {
448
+ onClick: r[14] ||= (e) => a("add-logic-tag")
449
+ }, [x(f(ue), {
428
450
  size: 16,
429
451
  "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), {
452
+ }), y(" " + s(f(j).logicTag.insertShort), 1)], 8, Oe)], 64)) : d("", !0)
453
+ ])], 64)) : (n(), u("div", ke, [x(f(ie), {
432
454
  class: "tpl-spinner",
433
455
  size: 14,
434
456
  "stroke-width": 2
435
- }), y(" " + s(f(A).errors.editorLoading), 1)]))], 12, be)], 8, ["to"])) : d("", !0);
457
+ }), y(" " + s(f(j).errors.editorLoading), 1)]))], 12, Te)], 8, ["to"])) : d("", !0);
436
458
  }
437
- }), Ae = { class: "tpl-text-editor-wrapper tpl:relative" }, je = /* @__PURE__ */ b({
459
+ }), je = { class: "tpl-text-editor-wrapper tpl:relative" }, Me = /* @__PURE__ */ b({
438
460
  __name: "ParagraphEditor",
439
461
  props: {
440
462
  block: {},
@@ -442,25 +464,25 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
442
464
  },
443
465
  emits: ["done"],
444
466
  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({
467
+ let i = t, a = r, o = A(), { 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
468
  blockId: () => i.block.id,
447
469
  blockContent: () => i.block.content,
448
470
  onDone: () => a("done"),
449
471
  editorName: "ParagraphEditor",
450
472
  async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
451
473
  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")
474
+ import("./tiptap-zpXk5mN4.js").then((e) => e.r),
475
+ import("./tiptap-zpXk5mN4.js").then((e) => e.i),
476
+ import("./tiptap-zpXk5mN4.js").then((e) => e.l),
477
+ import("./tiptap-zpXk5mN4.js").then((e) => e.a),
478
+ import("./tiptap-zpXk5mN4.js").then((e) => e.c),
479
+ import("./tiptap-zpXk5mN4.js").then((e) => e.s),
480
+ import("./tiptap-zpXk5mN4.js").then((e) => e.o),
481
+ import("./tiptap-zpXk5mN4.js").then((e) => e.p),
482
+ import("./tiptap-zpXk5mN4.js").then((e) => e.f),
483
+ import("./tiptap-zpXk5mN4.js").then((e) => e.d),
484
+ import("./tiptap-zpXk5mN4.js").then((e) => e.u),
485
+ import("./extensions-DSxG2wYf.js")
464
486
  ]);
465
487
  return {
466
488
  TiptapEditor: a,
@@ -477,7 +499,7 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
477
499
  u,
478
500
  d,
479
501
  f,
480
- l.configure({
502
+ E(l).configure({
481
503
  openOnClick: !1,
482
504
  HTMLAttributes: {
483
505
  target: "_blank",
@@ -507,16 +529,16 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
507
529
  };
508
530
  }
509
531
  });
510
- return (r, i) => (n(), u("div", Ae, [
511
- x(ke, {
532
+ return (r, i) => (n(), u("div", je, [
533
+ x(Ae, {
512
534
  editor: f(s),
513
535
  "toolbar-position": t.toolbarPosition,
514
536
  "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)
537
+ "can-request-merge-tag": f(v),
538
+ "can-insert-logic-tag": f(y),
539
+ onOpenLinkDialog: f(b),
540
+ onAddMergeTag: f(O),
541
+ onAddLogicTag: f(k)
520
542
  }, null, 8, [
521
543
  "editor",
522
544
  "toolbar-position",
@@ -527,7 +549,7 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
527
549
  "onAddMergeTag",
528
550
  "onAddLogicTag"
529
551
  ]),
530
- x(H, {
552
+ x(L, {
531
553
  editor: f(s),
532
554
  "editor-content": f(c),
533
555
  "is-loading": f(l),
@@ -540,22 +562,25 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
540
562
  "init-error",
541
563
  "onRetry"
542
564
  ]),
543
- x(V, {
565
+ x(I, {
544
566
  visible: f(m),
545
567
  "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,
568
+ "dialog-ref": f(_),
569
+ "onUpdate:dialogRef": i[0] ||= (t) => e(_) ? _.value = t : null,
548
570
  "link-url": f(h),
549
571
  "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)
572
+ "link-color": f(g),
573
+ "onUpdate:linkColor": i[2] ||= (t) => e(g) ? g.value = t : null,
574
+ onClose: f(w),
575
+ onInsert: f(S),
576
+ onRemove: f(C),
577
+ onKeydown: f(D)
554
578
  }, null, 8, [
555
579
  "visible",
556
580
  "is-editing-link",
557
581
  "dialog-ref",
558
582
  "link-url",
583
+ "link-color",
559
584
  "onClose",
560
585
  "onInsert",
561
586
  "onRemove",
@@ -565,6 +590,6 @@ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
565
590
  }
566
591
  });
567
592
  //#endregion
568
- export { je as default };
593
+ export { Me as default };
569
594
 
570
- //# sourceMappingURL=ParagraphEditor-CJNgRMhw.js.map
595
+ //# sourceMappingURL=ParagraphEditor-K2vENidm.js.map