@templatical/editor 0.13.0 → 0.14.0

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 (153) hide show
  1. package/dist/{AiChatSidebar-B0-U5-sb.js → AiChatSidebar-J8iO_sX7.js} +14 -14
  2. package/dist/{AiFeatureMenu-DxDwLS8B.js → AiFeatureMenu-F2diEDgV.js} +10 -10
  3. package/dist/{BlockIssueBadge-C-EPqWsh.js → BlockIssueBadge-a-qlByxF.js} +5 -5
  4. package/dist/{CloudEditor-DaEfipBn.js → CloudEditor-CDjtwb4i.js} +236 -234
  5. package/dist/{CollaboratorBar-DgwjisX2.js → CollaboratorBar-B_EnJLtW.js} +4 -4
  6. package/dist/{CommentsSidebar-CpRLN40c.js → CommentsSidebar-DaP9BA_r.js} +18 -18
  7. package/dist/{CountdownBlock-DO9fziwf.js → CountdownBlock-DtAokAVw.js} +3 -3
  8. package/dist/{CountdownToolbar-BeII06yJ.js → CountdownToolbar-Dtqgwy0g.js} +3 -3
  9. package/dist/{DesignReferenceSidebar-BgPDbOsl.js → DesignReferenceSidebar-BHRlTqlT.js} +10 -10
  10. package/dist/{IssuesPanel-I0z6k6-H.js → IssuesPanel-u7ee3Wrl.js} +11 -11
  11. package/dist/{LoadingTrack-C7mGWPHS.js → LoadingTrack-CV3ID80N.js} +1 -1
  12. package/dist/ModuleBrowserModal-DOsdaS6s.js +201 -0
  13. package/dist/{ModulePreviewCanvas-Dni9kK4j.js → ModulePreviewCanvas-Cx4MOJ0X.js} +3 -3
  14. package/dist/{NumberWithSuffix-D3fdj0iO.js → NumberWithSuffix-D2mW_DhT.js} +4 -4
  15. package/dist/{ParagraphEditor-CZ-cmhX3.js → ParagraphEditor-DMzkVnST.js} +153 -133
  16. package/dist/{RichTextEditorContent-Q5altsx1.js → RichTextEditorContent-CRCxCwKf.js} +7 -7
  17. package/dist/{SaveModuleDialog-C38VqN2T.js → SaveModuleDialog-DuEKgumL.js} +8 -8
  18. package/dist/{SnapshotHistory-ByloTpwh.js → SnapshotHistory-CVgiNJtE.js} +12 -12
  19. package/dist/{TemplateScoringPanel-CUxiPtEf.js → TemplateScoringPanel-lm0_9nYi.js} +25 -25
  20. package/dist/{TestEmailModal-BvZBMBad.js → TestEmailModal-WBMdiW5S.js} +5 -5
  21. package/dist/{TitleEditor-DbNOcvhR.js → TitleEditor-eyT0h-Sa.js} +71 -55
  22. package/dist/{TplModal-BYb-X5Bj.js → TplModal-tjQ7OB0g.js} +4 -4
  23. package/dist/{blockTypeIcons-CyAom3iI.js → blockTypeIcons-DdB3uTKD.js} +5 -5
  24. package/dist/bundle-stats.json +6 -6
  25. package/dist/cdn/chunks/{AiFeatureMenu-BSoy-SoF.js → AiFeatureMenu-D7rB2SBs.js} +8 -8
  26. package/dist/cdn/chunks/{AiFeatureMenu-BSoy-SoF.js.map → AiFeatureMenu-D7rB2SBs.js.map} +1 -1
  27. package/dist/cdn/chunks/{BlockIssueBadge-BQDUuJxy.js → BlockIssueBadge-DHOe0pgx.js} +5 -5
  28. package/dist/cdn/chunks/{BlockIssueBadge-BQDUuJxy.js.map → BlockIssueBadge-DHOe0pgx.js.map} +1 -1
  29. package/dist/cdn/chunks/{CloudEditor-BZuzsQOZ.js → CloudEditor-DNed_Ym0.js} +208 -206
  30. package/dist/cdn/chunks/CloudEditor-DNed_Ym0.js.map +1 -0
  31. package/dist/cdn/chunks/{CollaboratorBar-DUpSrtDr.js → CollaboratorBar-sj_9Lee3.js} +4 -4
  32. package/dist/cdn/chunks/{CollaboratorBar-DUpSrtDr.js.map → CollaboratorBar-sj_9Lee3.js.map} +1 -1
  33. package/dist/cdn/chunks/{CountdownBlock-DChGTAsH.js → CountdownBlock-C1Ikjpn4.js} +3 -3
  34. package/dist/cdn/chunks/{CountdownBlock-DChGTAsH.js.map → CountdownBlock-C1Ikjpn4.js.map} +1 -1
  35. package/dist/cdn/chunks/{CountdownToolbar-C6gX2SJr.js → CountdownToolbar-j1G_X8rB.js} +4 -4
  36. package/dist/cdn/chunks/{CountdownToolbar-C6gX2SJr.js.map → CountdownToolbar-j1G_X8rB.js.map} +1 -1
  37. package/dist/cdn/chunks/{IssuesPanel-Bo1uhdSe.js → IssuesPanel-CTOf3PsH.js} +11 -11
  38. package/dist/cdn/chunks/{IssuesPanel-Bo1uhdSe.js.map → IssuesPanel-CTOf3PsH.js.map} +1 -1
  39. package/dist/cdn/chunks/{ModuleBrowserModal-a-tZRCcD.js → ModuleBrowserModal-DCh88-rr.js} +11 -8
  40. package/dist/cdn/chunks/{ModuleBrowserModal-a-tZRCcD.js.map → ModuleBrowserModal-DCh88-rr.js.map} +1 -1
  41. package/dist/cdn/chunks/{ModulePreviewCanvas-Bm6k0Op0.js → ModulePreviewCanvas-DJqvTKmg.js} +21 -21
  42. package/dist/cdn/chunks/{ModulePreviewCanvas-Bm6k0Op0.js.map → ModulePreviewCanvas-DJqvTKmg.js.map} +1 -1
  43. package/dist/cdn/chunks/{NumberWithSuffix-HTbuD3VJ.js → NumberWithSuffix-Bu45XWSl.js} +5 -5
  44. package/dist/cdn/chunks/{NumberWithSuffix-HTbuD3VJ.js.map → NumberWithSuffix-Bu45XWSl.js.map} +1 -1
  45. package/dist/cdn/chunks/{ParagraphEditor-pGrfSccu.js → ParagraphEditor-DwZqLJp2.js} +130 -110
  46. package/dist/cdn/chunks/ParagraphEditor-DwZqLJp2.js.map +1 -0
  47. package/dist/cdn/chunks/{RichTextEditorContent-D7XZix_1.js → RichTextEditorContent-CIuZ-2DV.js} +4 -4
  48. package/dist/cdn/chunks/{RichTextEditorContent-D7XZix_1.js.map → RichTextEditorContent-CIuZ-2DV.js.map} +1 -1
  49. package/dist/cdn/chunks/{SaveModuleDialog-C9PQ9x6j.js → SaveModuleDialog-Bep0X2s_.js} +6 -6
  50. package/dist/cdn/chunks/{SaveModuleDialog-C9PQ9x6j.js.map → SaveModuleDialog-Bep0X2s_.js.map} +1 -1
  51. package/dist/cdn/chunks/{TitleEditor-BvFbL16O.js → TitleEditor-DO1-h3RY.js} +62 -46
  52. package/dist/cdn/chunks/TitleEditor-DO1-h3RY.js.map +1 -0
  53. package/dist/cdn/chunks/blockTypeIcons-8o24HVJu.js +22 -0
  54. package/dist/cdn/chunks/{blockTypeIcons-Kd1MT0u8.js.map → blockTypeIcons-8o24HVJu.js.map} +1 -1
  55. package/dist/{de-C2wOXoxs.js → cdn/chunks/de-LsV0u1tP.js} +19 -1
  56. package/dist/cdn/chunks/de-LsV0u1tP.js.map +1 -0
  57. package/dist/cdn/chunks/{draggable-Bci-fq8y.js → draggable-kPCz_3zM.js} +14 -5
  58. package/dist/cdn/chunks/{draggable-Bci-fq8y.js.map → draggable-kPCz_3zM.js.map} +1 -1
  59. package/dist/cdn/chunks/{en-dR7zfNC3.js → en-Bb8X1bOs.js} +18 -2
  60. package/dist/cdn/chunks/en-Bb8X1bOs.js.map +1 -0
  61. package/dist/cdn/chunks/{extensions-CuUjSmuA.js → extensions-iwBXnEwq.js} +16 -16
  62. package/dist/cdn/chunks/{extensions-CuUjSmuA.js.map → extensions-iwBXnEwq.js.map} +1 -1
  63. package/dist/cdn/chunks/{features-DU6lA8l1.js → features-CkTMVylx.js} +940 -812
  64. package/dist/cdn/chunks/features-CkTMVylx.js.map +1 -0
  65. package/dist/cdn/chunks/{icons-BjHUZZyJ.js → icons-9zjCuoJx.js} +158 -152
  66. package/dist/cdn/chunks/icons-9zjCuoJx.js.map +1 -0
  67. package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +1 -1
  68. package/dist/cdn/chunks/{media-library-Byelliig.js → media-library-DMRIPx4g.js} +552 -550
  69. package/dist/cdn/chunks/{media-library-Byelliig.js.map → media-library-DMRIPx4g.js.map} +1 -1
  70. package/dist/cdn/chunks/{pt-BR-BZ86xqK6.js → pt-BR-BwJY_cvb.js} +18 -2
  71. package/dist/cdn/chunks/pt-BR-BwJY_cvb.js.map +1 -0
  72. package/dist/cdn/chunks/{pusher-BICWUP2j.js → pusher-CdEqyLwF.js} +6 -3
  73. package/dist/cdn/chunks/{pusher-BICWUP2j.js.map → pusher-CdEqyLwF.js.map} +1 -1
  74. package/dist/cdn/chunks/quality-CyeUgs_c.js +2176 -0
  75. package/dist/cdn/chunks/{quality-DNnYAntR.js.map → quality-CyeUgs_c.js.map} +1 -1
  76. package/dist/cdn/chunks/{renderer-CZKO-Tav.js → renderer-BIKUEKDD.js} +39 -30
  77. package/dist/cdn/chunks/{renderer-CZKO-Tav.js.map → renderer-BIKUEKDD.js.map} +1 -1
  78. package/dist/cdn/chunks/{src-DsqSXXjk.js → src-pDy_imWG.js} +11 -11
  79. package/dist/cdn/chunks/{src-DsqSXXjk.js.map → src-pDy_imWG.js.map} +1 -1
  80. package/dist/cdn/chunks/{styles-DiAdtiz9.js → styles-D4Bd3SCx.js} +1197 -822
  81. package/dist/cdn/chunks/styles-D4Bd3SCx.js.map +1 -0
  82. package/dist/cdn/chunks/{tiptap-CwScfbsM.js → tiptap-BlLFFU3M.js} +2233 -2213
  83. package/dist/cdn/chunks/tiptap-BlLFFU3M.js.map +1 -0
  84. package/dist/cdn/editor.css +1 -1
  85. package/dist/cdn/editor.js +117 -115
  86. package/dist/cdn/editor.js.map +1 -1
  87. package/dist/{check-BRzXxFHr.js → check-CYJwFmjy.js} +1 -1
  88. package/dist/{chevron-down-DmEgzmYT.js → chevron-down-C5l-DzAA.js} +1 -1
  89. package/dist/{circle-alert-BStvZr3O.js → circle-alert-wf5HUFZY.js} +1 -1
  90. package/dist/{clock-Blwp_1R6.js → clock-Bj0bQw-K.js} +1 -1
  91. package/dist/{cloud-_olro76D.js → cloud-CoFDm9YA.js} +1 -1
  92. package/dist/{createLucideIcon-CmPAC-gt.js → createLucideIcon-Bad2kKE0.js} +4 -4
  93. package/dist/{cdn/chunks/de-C2wOXoxs.js → de-LsV0u1tP.js} +17 -3
  94. package/dist/{dist-BwgjpLfr.js → dist-34OcyoK1.js} +1 -1
  95. package/dist/{dist-Cz79qrLL.js → dist-B7w6xTU6.js} +1 -1
  96. package/dist/{dist-DULfKmTh.js → dist-BX3gGwL8.js} +5 -5
  97. package/dist/{dist-412xXefB.js → dist-Bn703mnA.js} +1 -1
  98. package/dist/{dist-u0iIJH3V.js → dist-CADDCv0o.js} +1 -1
  99. package/dist/{dist-BNEdeWub.js → dist-CGvz7vkq.js} +1 -1
  100. package/dist/{dist-BlG7k25W.js → dist-CLpPNKy9.js} +1 -1
  101. package/dist/{dist-BCQZZUE9.js → dist-ChMninLH.js} +1 -1
  102. package/dist/{dist-b7Ak-CuM.js → dist-CrQZ_af9.js} +1 -1
  103. package/dist/{dist-DhKTdU52.js → dist-CyjyYg52.js} +1426 -1406
  104. package/dist/{dist-D6x1cQeh.js → dist-Dd3ibRZm.js} +2 -2
  105. package/dist/{dist-Cgry6fNv.js → dist-DuCzdgDA.js} +1 -1
  106. package/dist/{dist-o73iaGqy.js → dist-U5vfDdYI.js} +1 -1
  107. package/dist/{en-dR7zfNC3.js → en-Bb8X1bOs.js} +17 -1
  108. package/dist/{extensions-XPlNAKIL.js → extensions-J439b7y7.js} +5 -5
  109. package/dist/{image-up-BFPbw_Zq.js → image-up-x8-WXfsx.js} +1 -1
  110. package/dist/index.d.ts +17 -0
  111. package/dist/{info-B_qLEBN2.js → info-RS_fGcGi.js} +1 -1
  112. package/dist/keys-DgYXDafq.js +10 -0
  113. package/dist/{list-checks-CGg7JxPm.js → list-checks-Bf7XdDyv.js} +1 -1
  114. package/dist/{loader-circle-CDF8eR_Q.js → loader-circle-CLZ0_FvW.js} +1 -1
  115. package/dist/{message-circle-C3cHsCJl.js → message-circle-B-1bN9ab.js} +1 -1
  116. package/dist/{pt-BR-BZ86xqK6.js → pt-BR-BwJY_cvb.js} +17 -1
  117. package/dist/{refresh-cw-Butml7Q4.js → refresh-cw-CWKWqJYG.js} +1 -1
  118. package/dist/scan-line-BtK5dEai.js +31 -0
  119. package/dist/{send-k7npFJNO.js → send-Cn1IUdzh.js} +1 -1
  120. package/dist/{shield-check-CV6GbmCu.js → shield-check-CrvMk4Ea.js} +1 -1
  121. package/dist/{sparkles-C965Xop4.js → sparkles-CgfjwvnG.js} +1 -1
  122. package/dist/style.css +1 -1
  123. package/dist/{styles-D0RCAWhB.js → styles-BUwDOWd3.js} +1221 -846
  124. package/dist/templatical-editor.js +95 -93
  125. package/dist/{text-align-start-Bxnps8fH.js → text-align-start-C3r_Rnvy.js} +1 -1
  126. package/dist/{trash-2-DpGb7fIt.js → trash-2-CjERg4x9.js} +1 -1
  127. package/dist/{triangle-alert-BKYElAwz.js → triangle-alert-Chkny574.js} +1 -1
  128. package/dist/{upload-BF7sxd1_.js → upload-e5kDRkPb.js} +1 -1
  129. package/dist/{useAliveFlag-BinvbqQR.js → useAliveFlag-cUQj9rmB.js} +1 -1
  130. package/dist/{useCloudI18n-L3H2XvdW.js → useCloudI18n-CYJKqXtI.js} +2 -2
  131. package/dist/{useEditorCore-DKYZ7aKk.js → useEditorCore-8JxXDOA4.js} +1031 -903
  132. package/dist/{useI18n-CTs_bP9d.js → useI18n-BWqM8i78.js} +2 -2
  133. package/dist/{useMergeTag-e3RSY-s3.js → useMergeTag-NHC4ylza.js} +3 -3
  134. package/dist/usePopoverRoot-B1sdY4es.js +8 -0
  135. package/dist/{vue.runtime.esm-bundler-B2k01iQh.js → vue.runtime.esm-bundler-BPa483TZ.js} +13 -4
  136. package/dist/{x-CGjkjdKK.js → x-DiPIbccg.js} +1 -1
  137. package/package.json +12 -12
  138. package/dist/ModuleBrowserModal-DsZRr87F.js +0 -198
  139. package/dist/cdn/chunks/CloudEditor-BZuzsQOZ.js.map +0 -1
  140. package/dist/cdn/chunks/ParagraphEditor-pGrfSccu.js.map +0 -1
  141. package/dist/cdn/chunks/TitleEditor-BvFbL16O.js.map +0 -1
  142. package/dist/cdn/chunks/blockTypeIcons-Kd1MT0u8.js +0 -22
  143. package/dist/cdn/chunks/de-C2wOXoxs.js.map +0 -1
  144. package/dist/cdn/chunks/en-dR7zfNC3.js.map +0 -1
  145. package/dist/cdn/chunks/features-DU6lA8l1.js.map +0 -1
  146. package/dist/cdn/chunks/icons-BjHUZZyJ.js.map +0 -1
  147. package/dist/cdn/chunks/pt-BR-BZ86xqK6.js.map +0 -1
  148. package/dist/cdn/chunks/quality-DNnYAntR.js +0 -2176
  149. package/dist/cdn/chunks/styles-DiAdtiz9.js.map +0 -1
  150. package/dist/cdn/chunks/tiptap-CwScfbsM.js.map +0 -1
  151. package/dist/keys-mFiJ5N0_.js +0 -10
  152. package/dist/scan-line-XYEqim_E.js +0 -25
  153. package/dist/usePopoverRoot-DVh7NY1q.js +0 -8
@@ -1,27 +1,27 @@
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-Bci-fq8y.js";
2
- import { $ as S, At as C, It as w, X as T, Xt as E, Zt as D, an as O, in as k, it as A, k as j, on as ee, rt as M, sn as N } from "./features-DU6lA8l1.js";
3
- import { G as te, H as ne, I as re, K as ie, M as ae, P as oe, W as se, c as ce, f as P, g as le, i as ue, j as F, l as I, o as L, y as R } from "./icons-BjHUZZyJ.js";
4
- import { a as z, o as B, s as V } from "./styleConstants-lGobwiLH.js";
5
- import { n as H, t as U } from "./RichTextEditorContent-D7XZix_1.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-kPCz_3zM.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 M, on as te, sn as ne } from "./features-CkTMVylx.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-9zjCuoJx.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-CIuZ-2DV.js";
6
6
  //#region src/components/blocks/EmojiPickerDropdown.vue?vue&type=script&setup=true&lang.ts
7
- var W = [
7
+ var U = [
8
8
  "aria-label",
9
9
  "title",
10
10
  "aria-expanded"
11
- ], 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"], de = /* @__PURE__ */ b({
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({
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 } = S(), { t: b, format: C } = w(), T = a(null), E = a(null);
16
- M(T, l(() => m.value)), N(E, () => {
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, () => {
17
17
  m.value && y();
18
18
  });
19
- function D(e) {
19
+ function E(e) {
20
20
  i("insert", e), y();
21
21
  }
22
22
  return (e, t) => (n(), u("div", {
23
23
  ref_key: "rootRef",
24
- ref: E,
24
+ ref: T,
25
25
  class: "tpl:relative"
26
26
  }, [g("button", {
27
27
  type: "button",
@@ -32,14 +32,14 @@ var W = [
32
32
  "aria-haspopup": "dialog",
33
33
  "aria-controls": "tpl-emoji-picker",
34
34
  onClick: t[0] ||= (...e) => f(_) && f(_)(...e)
35
- }, [x(f(P), {
35
+ }, [x(f(N), {
36
36
  size: 16,
37
37
  "stroke-width": 2
38
- })], 10, W), f(m) ? (n(), u("div", {
38
+ })], 10, U), f(m) ? (n(), u("div", {
39
39
  key: 0,
40
40
  id: "tpl-emoji-picker",
41
41
  ref_key: "pickerRef",
42
- ref: T,
42
+ ref: w,
43
43
  role: "dialog",
44
44
  "aria-modal": "false",
45
45
  "aria-label": f(b).paragraphEditor.insertEmoji,
@@ -49,19 +49,19 @@ var W = [
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", K, s(f(b).emoji[e.key]), 1), g("div", q, [(n(!0), u(v, null, r(e.emojis, (e) => (n(), u("button", {
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", {
53
53
  key: e,
54
54
  type: "button",
55
- "aria-label": f(C)(f(b).paragraphEditor.emojiItemLabel, { emoji: e }),
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
- onClick: (t) => D(e)
58
- }, s(e), 9, J))), 128))])]))), 128))], 40, G)) : d("", !0)], 512));
57
+ onClick: (t) => E(e)
58
+ }, s(e), 9, q))), 128))])]))), 128))], 40, W)) : d("", !0)], 512));
59
59
  }
60
- }), Y = [
60
+ }), J = [
61
61
  "aria-label",
62
62
  "title",
63
63
  "aria-pressed"
64
- ], X = /* @__PURE__ */ b({
64
+ ], Y = /* @__PURE__ */ b({
65
65
  __name: "ToolbarIconButton",
66
66
  props: {
67
67
  icon: {},
@@ -80,20 +80,20 @@ var W = [
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, Y));
83
+ }, null, 8, ["size", "stroke-width"]))], 10, J));
84
84
  }
85
- }), fe = {}, pe = {
85
+ }), X = {}, he = {
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 me(e, t) {
90
- return n(), u("span", pe);
89
+ function ge(e, t) {
90
+ return n(), u("span", he);
91
91
  }
92
- var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
92
+ var Z = /*#__PURE__*/ D(X, [["render", ge]]), _e = [
93
93
  "value",
94
94
  "aria-label",
95
95
  "title"
96
- ], ge = { value: "" }, _e = ["value"], Q = /* @__PURE__ */ b({
96
+ ], ve = { value: "" }, ye = ["value"], Q = /* @__PURE__ */ b({
97
97
  __name: "ToolbarSelect",
98
98
  props: {
99
99
  modelValue: {},
@@ -120,37 +120,42 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
120
120
  "aria-label": e.label,
121
121
  title: e.label,
122
122
  onChange: a
123
- }, [g("option", ge, s(e.placeholder ?? ""), 1), (n(!0), u(v, null, r(e.options, (e) => (n(), u("option", {
123
+ }, [g("option", ve, 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, _e))), 128))], 42, he));
126
+ }, s(c(e)), 9, ye))), 128))], 42, _e));
127
127
  }
128
- }), ve = ["data-tpl-theme", "aria-label"], ye = { class: "tpl:flex tpl:items-center tpl:gap-1" }, be = { class: "tpl:relative" }, xe = [
128
+ }), be = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-center tpl:gap-1" }, xe = { class: "tpl:relative" }, Se = [
129
129
  "value",
130
130
  "aria-label",
131
131
  "title"
132
- ], Se = { class: "tpl:relative" }, Ce = [
132
+ ], Ce = { class: "tpl:relative" }, we = [
133
133
  "value",
134
134
  "aria-label",
135
135
  "title"
136
- ], $ = { class: "tpl:flex tpl:items-center tpl:gap-1" }, we = ["aria-label", "title"], Te = {
136
+ ], Te = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Ee = ["aria-label", "title"], De = ["aria-label", "title"], Oe = {
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
- }, Ee = /* @__PURE__ */ b({
139
+ }, ke = /* @__PURE__ */ b({
140
140
  __name: "ParagraphToolbar",
141
141
  props: {
142
142
  editor: {},
143
143
  toolbarPosition: {},
144
144
  isLoading: { type: Boolean },
145
- canRequestMergeTag: { type: Boolean }
145
+ canRequestMergeTag: { type: Boolean },
146
+ canInsertLogicTag: { type: Boolean }
146
147
  },
147
- emits: ["open-link-dialog", "add-merge-tag"],
148
+ emits: [
149
+ "open-link-dialog",
150
+ "add-merge-tag",
151
+ "add-logic-tag"
152
+ ],
148
153
  setup(e, { emit: t }) {
149
- let r = e, a = t, o = i(k, null), p = i(O, null), h = ee(E, "ParagraphToolbar"), b = j(), S = i(D, null), T = l(() => S?.isOpen.value ?? !1), { t: A } = w(), M = h.fonts;
154
+ let r = e, a = t, o = i(te, null), p = i(ne, null), h = ee(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;
150
155
  function N(e) {
151
156
  r.editor?.chain().focus().insertContent(e).run();
152
157
  }
153
- function P(e) {
158
+ function V(e) {
154
159
  return r.editor?.getAttributes("textStyle")[e] || "";
155
160
  }
156
161
  function H(e) {
@@ -179,11 +184,11 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
179
184
  function J() {
180
185
  return r.editor?.getAttributes("highlight").color || "";
181
186
  }
182
- function Y(e) {
187
+ function X(e) {
183
188
  let t = r.editor?.chain().focus();
184
189
  e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
185
190
  }
186
- return (t, r) => f(b) && !T.value ? (n(), m(c, {
191
+ return (t, r) => f(b) && !k.value ? (n(), m(c, {
187
192
  key: 0,
188
193
  to: f(b)
189
194
  }, [g("div", {
@@ -198,9 +203,9 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
198
203
  transform: "translateY(-100%)",
199
204
  flexDirection: "column"
200
205
  })
201
- }, [!e.isLoading && e.editor ? (n(), u(v, { key: 0 }, [g("div", ye, [
206
+ }, [!e.isLoading && e.editor ? (n(), u(v, { key: 0 }, [g("div", $, [
202
207
  x(Q, {
203
- "model-value": P("fontFamily"),
208
+ "model-value": V("fontFamily"),
204
209
  options: f(M),
205
210
  label: f(A).paragraphEditor.fontFamily,
206
211
  placeholder: f(A).paragraphEditor.defaultFont,
@@ -213,8 +218,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
213
218
  "placeholder"
214
219
  ]),
215
220
  x(Q, {
216
- "model-value": P("fontSize"),
217
- options: f(z),
221
+ "model-value": V("fontSize"),
222
+ options: f(R),
218
223
  label: f(A).paragraphEditor.fontSize,
219
224
  placeholder: f(A).paragraphEditor.defaultSize,
220
225
  "width-class": "tpl:w-20",
@@ -226,26 +231,26 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
226
231
  "placeholder"
227
232
  ]),
228
233
  x(Z),
229
- g("div", be, [g("input", {
234
+ g("div", xe, [g("input", {
230
235
  type: "color",
231
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",
232
- value: P("color") || f("#000000"),
237
+ value: V("color") || f("#000000"),
233
238
  "aria-label": f(A).paragraphEditor.textColor,
234
239
  title: f(A).paragraphEditor.textColor,
235
240
  onInput: r[0] ||= (e) => W(e.target.value)
236
- }, null, 40, xe)]),
237
- g("div", Se, [g("input", {
241
+ }, null, 40, Se)]),
242
+ g("div", Ce, [g("input", {
238
243
  type: "color",
239
244
  class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:p-1",
240
245
  style: _({ backgroundColor: J() || "var(--tpl-bg)" }),
241
246
  value: J() || f("#ffff00"),
242
247
  "aria-label": f(A).paragraphEditor.highlightColor,
243
248
  title: f(A).paragraphEditor.highlightColor,
244
- onInput: r[1] ||= (e) => Y(e.target.value)
245
- }, null, 44, Ce)]),
249
+ onInput: r[1] ||= (e) => X(e.target.value)
250
+ }, null, 44, we)]),
246
251
  x(Z),
247
- x(X, {
248
- icon: f(ne),
252
+ x(Y, {
253
+ icon: f(le),
249
254
  label: f(A).paragraphEditor.bold,
250
255
  active: e.editor.isActive("bold"),
251
256
  "stroke-width": 2.5,
@@ -255,8 +260,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
255
260
  "label",
256
261
  "active"
257
262
  ]),
258
- x(X, {
259
- icon: f(re),
263
+ x(Y, {
264
+ icon: f(ae),
260
265
  label: f(A).paragraphEditor.italic,
261
266
  active: e.editor.isActive("italic"),
262
267
  onClick: r[3] ||= (t) => e.editor.chain().focus().toggleItalic().run()
@@ -265,8 +270,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
265
270
  "label",
266
271
  "active"
267
272
  ]),
268
- x(X, {
269
- icon: f(ue),
273
+ x(Y, {
274
+ icon: f(P),
270
275
  label: f(A).paragraphEditor.underline,
271
276
  active: e.editor.isActive("underline"),
272
277
  onClick: r[4] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
@@ -275,8 +280,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
275
280
  "label",
276
281
  "active"
277
282
  ]),
278
- x(X, {
279
- icon: f(I),
283
+ x(Y, {
284
+ icon: f(pe),
280
285
  label: f(A).paragraphEditor.strikethrough,
281
286
  active: e.editor.isActive("strike"),
282
287
  onClick: r[5] ||= (t) => e.editor.chain().focus().toggleStrike().run()
@@ -286,8 +291,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
286
291
  "active"
287
292
  ]),
288
293
  x(Z),
289
- x(X, {
290
- icon: f(ce),
294
+ x(Y, {
295
+ icon: f(fe),
291
296
  label: f(A).paragraphEditor.subscript,
292
297
  active: e.editor.isActive("subscript"),
293
298
  onClick: r[6] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
@@ -296,8 +301,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
296
301
  "label",
297
302
  "active"
298
303
  ]),
299
- x(X, {
300
- icon: f(L),
304
+ x(Y, {
305
+ icon: f(F),
301
306
  label: f(A).paragraphEditor.superscript,
302
307
  active: e.editor.isActive("superscript"),
303
308
  onClick: r[7] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
@@ -307,8 +312,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
307
312
  "active"
308
313
  ]),
309
314
  x(Z),
310
- x(X, {
311
- icon: f(oe),
315
+ x(Y, {
316
+ icon: f(re),
312
317
  label: f(A).paragraphEditor.addLink,
313
318
  active: e.editor.isActive("link"),
314
319
  onClick: r[8] ||= (e) => a("open-link-dialog")
@@ -317,9 +322,9 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
317
322
  "label",
318
323
  "active"
319
324
  ])
320
- ]), g("div", $, [
321
- x(X, {
322
- icon: f(F),
325
+ ]), g("div", Te, [
326
+ x(Y, {
327
+ icon: f(oe),
323
328
  label: f(A).paragraphEditor.bulletList,
324
329
  active: e.editor.isActive("bulletList"),
325
330
  onClick: r[9] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
@@ -328,8 +333,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
328
333
  "label",
329
334
  "active"
330
335
  ]),
331
- x(X, {
332
- icon: f(ae),
336
+ x(Y, {
337
+ icon: f(se),
333
338
  label: f(A).paragraphEditor.numberedList,
334
339
  active: e.editor.isActive("orderedList"),
335
340
  onClick: r[10] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
@@ -339,8 +344,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
339
344
  "active"
340
345
  ]),
341
346
  x(Z),
342
- x(X, {
343
- icon: f(se),
347
+ x(Y, {
348
+ icon: f(I),
344
349
  label: f(A).paragraphEditor.alignLeft,
345
350
  active: e.editor.isActive({ textAlign: "left" }),
346
351
  onClick: r[11] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
@@ -349,8 +354,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
349
354
  "label",
350
355
  "active"
351
356
  ]),
352
- x(X, {
353
- icon: f(ie),
357
+ x(Y, {
358
+ icon: f(de),
354
359
  label: f(A).paragraphEditor.alignCenter,
355
360
  active: e.editor.isActive({ textAlign: "center" }),
356
361
  onClick: r[12] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
@@ -359,8 +364,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
359
364
  "label",
360
365
  "active"
361
366
  ]),
362
- x(X, {
363
- icon: f(te),
367
+ x(Y, {
368
+ icon: f(L),
364
369
  label: f(A).paragraphEditor.alignRight,
365
370
  active: e.editor.isActive({ textAlign: "right" }),
366
371
  onClick: r[13] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
@@ -372,7 +377,7 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
372
377
  x(Z),
373
378
  x(Q, {
374
379
  "model-value": G(),
375
- options: f(V),
380
+ options: f(B),
376
381
  label: f(A).paragraphEditor.lineHeight,
377
382
  placeholder: "LH",
378
383
  "width-class": "tpl:w-16",
@@ -383,8 +388,8 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
383
388
  "label"
384
389
  ]),
385
390
  x(Q, {
386
- "model-value": P("letterSpacing"),
387
- options: f(B),
391
+ "model-value": V("letterSpacing"),
392
+ options: f(z),
388
393
  label: f(A).paragraphEditor.letterSpacing,
389
394
  placeholder: "LS",
390
395
  "width-class": "tpl:w-20",
@@ -395,30 +400,41 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
395
400
  "label"
396
401
  ]),
397
402
  x(Z),
398
- x(X, {
399
- icon: f(R),
403
+ x(Y, {
404
+ icon: f(ie),
400
405
  label: f(A).paragraphEditor.clearFormatting,
401
406
  onClick: r[14] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
402
407
  }, null, 8, ["icon", "label"]),
403
408
  x(Z),
404
- x(de, { onInsert: N }),
409
+ x(me, { onInsert: N }),
405
410
  e.canRequestMergeTag ? (n(), u(v, { key: 0 }, [x(Z), g("button", {
406
411
  type: "button",
407
412
  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)]",
408
413
  "aria-label": f(A).mergeTag.insert,
409
414
  title: f(A).mergeTag.insert,
410
415
  onClick: r[15] ||= (e) => a("add-merge-tag")
411
- }, [x(f(le), {
416
+ }, [x(f(ue), {
412
417
  size: 16,
413
418
  "stroke-width": 2
414
- }), y(" " + s(f(A).mergeTag.insert), 1)], 8, we)], 64)) : d("", !0)
415
- ])], 64)) : (n(), u("div", Te, [x(f(C), {
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", {
421
+ type: "button",
422
+ 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,
425
+ "data-testid": "insert-logic-button",
426
+ onClick: r[16] ||= (e) => a("add-logic-tag")
427
+ }, [x(f(ce), {
428
+ size: 16,
429
+ "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), {
416
432
  class: "tpl-spinner",
417
433
  size: 14,
418
434
  "stroke-width": 2
419
- }), y(" " + s(f(A).errors.editorLoading), 1)]))], 12, ve)], 8, ["to"])) : d("", !0);
435
+ }), y(" " + s(f(A).errors.editorLoading), 1)]))], 12, be)], 8, ["to"])) : d("", !0);
420
436
  }
421
- }), De = { class: "tpl-text-editor-wrapper tpl:relative" }, Oe = /* @__PURE__ */ b({
437
+ }), Ae = { class: "tpl-text-editor-wrapper tpl:relative" }, je = /* @__PURE__ */ b({
422
438
  __name: "ParagraphEditor",
423
439
  props: {
424
440
  block: {},
@@ -426,25 +442,25 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
426
442
  },
427
443
  emits: ["done"],
428
444
  setup(t, { emit: r }) {
429
- let i = t, a = r, o = j(), { editor: s, EditorContent: c, isLoading: l, initError: d, retry: p, showLinkDialog: m, linkUrl: h, linkDialogRef: g, canRequestMergeTag: _, openLinkDialog: v, insertLink: y, removeLink: b, closeLinkDialog: S, handleLinkKeydown: C, handleAddMergeTag: w } = T({
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({
430
446
  blockId: () => i.block.id,
431
447
  blockContent: () => i.block.content,
432
448
  onDone: () => a("done"),
433
449
  editorName: "ParagraphEditor",
434
450
  async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
435
451
  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([
436
- import("./tiptap-CwScfbsM.js").then((e) => e.i),
437
- import("./tiptap-CwScfbsM.js").then((e) => e.a),
438
- import("./tiptap-CwScfbsM.js").then((e) => e.u),
439
- import("./tiptap-CwScfbsM.js").then((e) => e.o),
440
- import("./tiptap-CwScfbsM.js").then((e) => e.l),
441
- import("./tiptap-CwScfbsM.js").then((e) => e.c),
442
- import("./tiptap-CwScfbsM.js").then((e) => e.s),
443
- import("./tiptap-CwScfbsM.js").then((e) => e.m),
444
- import("./tiptap-CwScfbsM.js").then((e) => e.p),
445
- import("./tiptap-CwScfbsM.js").then((e) => e.f),
446
- import("./tiptap-CwScfbsM.js").then((e) => e.d),
447
- import("./extensions-CuUjSmuA.js")
452
+ import("./tiptap-BlLFFU3M.js").then((e) => e.i),
453
+ import("./tiptap-BlLFFU3M.js").then((e) => e.a),
454
+ import("./tiptap-BlLFFU3M.js").then((e) => e.u),
455
+ import("./tiptap-BlLFFU3M.js").then((e) => e.o),
456
+ import("./tiptap-BlLFFU3M.js").then((e) => e.l),
457
+ import("./tiptap-BlLFFU3M.js").then((e) => e.c),
458
+ import("./tiptap-BlLFFU3M.js").then((e) => e.s),
459
+ import("./tiptap-BlLFFU3M.js").then((e) => e.m),
460
+ import("./tiptap-BlLFFU3M.js").then((e) => e.p),
461
+ import("./tiptap-BlLFFU3M.js").then((e) => e.f),
462
+ import("./tiptap-BlLFFU3M.js").then((e) => e.d),
463
+ import("./extensions-iwBXnEwq.js")
448
464
  ]);
449
465
  return {
450
466
  TiptapEditor: a,
@@ -489,23 +505,27 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
489
505
  };
490
506
  }
491
507
  });
492
- return (r, i) => (n(), u("div", De, [
493
- x(Ee, {
508
+ return (r, i) => (n(), u("div", Ae, [
509
+ x(ke, {
494
510
  editor: f(s),
495
511
  "toolbar-position": t.toolbarPosition,
496
512
  "is-loading": f(l),
497
513
  "can-request-merge-tag": f(_),
498
- onOpenLinkDialog: f(v),
499
- onAddMergeTag: f(w)
514
+ "can-insert-logic-tag": f(v),
515
+ onOpenLinkDialog: f(y),
516
+ onAddMergeTag: f(E),
517
+ onAddLogicTag: f(D)
500
518
  }, null, 8, [
501
519
  "editor",
502
520
  "toolbar-position",
503
521
  "is-loading",
504
522
  "can-request-merge-tag",
523
+ "can-insert-logic-tag",
505
524
  "onOpenLinkDialog",
506
- "onAddMergeTag"
525
+ "onAddMergeTag",
526
+ "onAddLogicTag"
507
527
  ]),
508
- x(U, {
528
+ x(H, {
509
529
  editor: f(s),
510
530
  "editor-content": f(c),
511
531
  "is-loading": f(l),
@@ -518,17 +538,17 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
518
538
  "init-error",
519
539
  "onRetry"
520
540
  ]),
521
- x(H, {
541
+ x(V, {
522
542
  visible: f(m),
523
543
  "is-editing-link": f(s)?.isActive("link") ?? !1,
524
544
  "dialog-ref": f(g),
525
545
  "onUpdate:dialogRef": i[0] ||= (t) => e(g) ? g.value = t : null,
526
546
  "link-url": f(h),
527
547
  "onUpdate:linkUrl": i[1] ||= (t) => e(h) ? h.value = t : null,
528
- onClose: f(S),
529
- onInsert: f(y),
530
- onRemove: f(b),
531
- onKeydown: f(C)
548
+ onClose: f(C),
549
+ onInsert: f(b),
550
+ onRemove: f(S),
551
+ onKeydown: f(w)
532
552
  }, null, 8, [
533
553
  "visible",
534
554
  "is-editing-link",
@@ -543,6 +563,6 @@ var Z = /*#__PURE__*/ A(fe, [["render", me]]), he = [
543
563
  }
544
564
  });
545
565
  //#endregion
546
- export { Oe as default };
566
+ export { je as default };
547
567
 
548
- //# sourceMappingURL=ParagraphEditor-pGrfSccu.js.map
568
+ //# sourceMappingURL=ParagraphEditor-DwZqLJp2.js.map