@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,17 +1,17 @@
1
- import { A as e, F as t, G as n, M as r, X as i, _ as a, at as o, b as s, c, d as l, f as u, h as d, l as f, m as p, ot as m, p as h, rt as g, s as _, st as v, u as y, v as b, w as x } from "./vue.runtime.esm-bundler-B2k01iQh.js";
2
- import { T as S, w as C, x as w } from "./useEditorCore-DKYZ7aKk.js";
3
- import { t as T } from "./dist-Cgry6fNv.js";
4
- import { A as E, M as D, N as O, g as ee, x as te } from "./keys-mFiJ5N0_.js";
5
- import { t as k } from "./useI18n-CTs_bP9d.js";
6
- import { t as A } from "./createLucideIcon-CmPAC-gt.js";
7
- import { t as ne } from "./loader-circle-CDF8eR_Q.js";
8
- import { n as j, r as M, t as re } from "./text-align-start-Bxnps8fH.js";
9
- import { a as ie, i as ae, n as N, r as oe, t as P } from "./RichTextEditorContent-Q5altsx1.js";
10
- import { t as se } from "./scan-line-XYEqim_E.js";
1
+ import { A as e, F as t, G as n, M as r, X as i, _ as a, at as o, b as s, c, d as l, f as u, h as d, l as f, m as p, ot as m, p as h, rt as g, s as _, st as v, u as y, v as b, w as x } from "./vue.runtime.esm-bundler-BPa483TZ.js";
2
+ import { E as S, T as C, x as w } from "./useEditorCore-8JxXDOA4.js";
3
+ import { t as T } from "./dist-DuCzdgDA.js";
4
+ import { I as E, L as D, P as O, g as ee, w as te, x as ne } from "./keys-DgYXDafq.js";
5
+ import { t as k } from "./useI18n-BWqM8i78.js";
6
+ import { t as A } from "./createLucideIcon-Bad2kKE0.js";
7
+ import { a as j, i as M, n as N, r as re, t as P } from "./RichTextEditorContent-CRCxCwKf.js";
8
+ import { n as ie, t as ae } from "./scan-line-BtK5dEai.js";
9
+ import { t as oe } from "./loader-circle-CLZ0_FvW.js";
10
+ import { n as se, r as ce, t as le } from "./text-align-start-C3r_Rnvy.js";
11
11
  import { t as F } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import { a as ce, o as le, s as I } from "./styleConstants-lGobwiLH.js";
13
- import { t as L } from "./usePopoverRoot-DVh7NY1q.js";
14
- var R = A("list-ordered", [
12
+ import { a as ue, o as I, s as L } from "./styleConstants-lGobwiLH.js";
13
+ import { t as R } from "./usePopoverRoot-B1sdY4es.js";
14
+ var z = A("list-ordered", [
15
15
  ["path", {
16
16
  d: "M11 5h10",
17
17
  key: "1cz7ny"
@@ -36,7 +36,7 @@ var R = A("list-ordered", [
36
36
  d: "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",
37
37
  key: "xtkcd5"
38
38
  }]
39
- ]), z = A("list", [
39
+ ]), B = A("list", [
40
40
  ["path", {
41
41
  d: "M3 5h.01",
42
42
  key: "18ugdj"
@@ -61,7 +61,7 @@ var R = A("list-ordered", [
61
61
  d: "M8 19h13",
62
62
  key: "m83p4d"
63
63
  }]
64
- ]), B = A("remove-formatting", [
64
+ ]), V = A("remove-formatting", [
65
65
  ["path", {
66
66
  d: "M4 7V4h16v3",
67
67
  key: "9msm58"
@@ -82,7 +82,7 @@ var R = A("list-ordered", [
82
82
  d: "m20 15-5 5",
83
83
  key: "11p7ol"
84
84
  }]
85
- ]), V = A("smile", [
85
+ ]), H = A("smile", [
86
86
  ["circle", {
87
87
  cx: "12",
88
88
  cy: "12",
@@ -107,7 +107,7 @@ var R = A("list-ordered", [
107
107
  y2: "9",
108
108
  key: "1p4y9e"
109
109
  }]
110
- ]), H = A("strikethrough", [
110
+ ]), U = A("strikethrough", [
111
111
  ["path", {
112
112
  d: "M16 4H9a3 3 0 0 0-2.83 4",
113
113
  key: "43sutm"
@@ -123,7 +123,7 @@ var R = A("list-ordered", [
123
123
  y2: "12",
124
124
  key: "1e0a9i"
125
125
  }]
126
- ]), U = A("subscript", [
126
+ ]), de = A("subscript", [
127
127
  ["path", {
128
128
  d: "m4 5 8 8",
129
129
  key: "1eunvl"
@@ -136,7 +136,7 @@ var R = A("list-ordered", [
136
136
  d: "M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07",
137
137
  key: "e8ta8j"
138
138
  }]
139
- ]), W = A("superscript", [
139
+ ]), fe = A("superscript", [
140
140
  ["path", {
141
141
  d: "m4 19 8-8",
142
142
  key: "hr47gm"
@@ -149,7 +149,7 @@ var R = A("list-ordered", [
149
149
  d: "M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06",
150
150
  key: "1dfcux"
151
151
  }]
152
- ]), ue = A("underline", [["path", {
152
+ ]), pe = A("underline", [["path", {
153
153
  d: "M6 4v6a6 6 0 0 0 12 0V4",
154
154
  key: "9kb039"
155
155
  }], ["line", {
@@ -158,11 +158,11 @@ var R = A("list-ordered", [
158
158
  y1: "20",
159
159
  y2: "20",
160
160
  key: "nun2al"
161
- }]]), G = [
161
+ }]]), W = [
162
162
  "aria-label",
163
163
  "title",
164
164
  "aria-expanded"
165
- ], K = ["aria-label"], q = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, J = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, Y = ["aria-label", "onClick"], de = /* @__PURE__ */ s({
165
+ ], G = ["aria-label"], K = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, q = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, J = ["aria-label", "onClick"], me = /* @__PURE__ */ s({
166
166
  __name: "EmojiPickerDropdown",
167
167
  emits: ["insert"],
168
168
  setup(t, { emit: n }) {
@@ -186,10 +186,10 @@ var R = A("list-ordered", [
186
186
  "aria-haspopup": "dialog",
187
187
  "aria-controls": "tpl-emoji-picker",
188
188
  onClick: n[0] ||= (...e) => g(h) && g(h)(...e)
189
- }, [b(g(V), {
189
+ }, [b(g(H), {
190
190
  size: 16,
191
191
  "stroke-width": 2
192
- })], 10, G), g(m) ? (e(), d("div", {
192
+ })], 10, W), g(m) ? (e(), d("div", {
193
193
  key: 0,
194
194
  id: "tpl-emoji-picker",
195
195
  ref_key: "pickerRef",
@@ -203,15 +203,15 @@ var R = A("list-ordered", [
203
203
  }, [(e(!0), d(f, null, r(g(s), (t) => (e(), d("div", {
204
204
  key: t.key,
205
205
  class: "tpl:mb-2 tpl:last:mb-0"
206
- }, [u("div", q, v(g(x).emoji[t.key]), 1), u("div", J, [(e(!0), d(f, null, r(t.emojis, (t) => (e(), d("button", {
206
+ }, [u("div", K, v(g(x).emoji[t.key]), 1), u("div", q, [(e(!0), d(f, null, r(t.emojis, (t) => (e(), d("button", {
207
207
  key: t,
208
208
  type: "button",
209
209
  "aria-label": g(w)(g(x).paragraphEditor.emojiItemLabel, { emoji: t }),
210
210
  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)]",
211
211
  onClick: (e) => O(t)
212
- }, v(t), 9, Y))), 128))])]))), 128))], 40, K)) : p("", !0)], 512));
212
+ }, v(t), 9, J))), 128))])]))), 128))], 40, G)) : p("", !0)], 512));
213
213
  }
214
- }), fe = [
214
+ }), Y = [
215
215
  "aria-label",
216
216
  "title",
217
217
  "aria-pressed"
@@ -234,20 +234,20 @@ var R = A("list-ordered", [
234
234
  }, [(e(), h(t(n.icon), {
235
235
  size: n.size ?? 16,
236
236
  "stroke-width": n.strokeWidth ?? 2
237
- }, null, 8, ["size", "stroke-width"]))], 10, fe));
237
+ }, null, 8, ["size", "stroke-width"]))], 10, Y));
238
238
  }
239
- }), pe = {}, me = {
239
+ }), he = {}, ge = {
240
240
  class: "tpl:mx-1 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
241
241
  "aria-hidden": "true"
242
242
  };
243
- function he(t, n) {
244
- return e(), d("span", me);
243
+ function _e(t, n) {
244
+ return e(), d("span", ge);
245
245
  }
246
- var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
246
+ var Z = /*#__PURE__*/ F(he, [["render", _e]]), ve = [
247
247
  "value",
248
248
  "aria-label",
249
249
  "title"
250
- ], _e = { value: "" }, ve = ["value"], Q = /* @__PURE__ */ s({
250
+ ], ye = { value: "" }, be = ["value"], Q = /* @__PURE__ */ s({
251
251
  __name: "ToolbarSelect",
252
252
  props: {
253
253
  modelValue: {},
@@ -274,48 +274,53 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
274
274
  "aria-label": t.label,
275
275
  title: t.label,
276
276
  onChange: a
277
- }, [u("option", _e, v(t.placeholder ?? ""), 1), (e(!0), d(f, null, r(t.options, (t) => (e(), d("option", {
277
+ }, [u("option", ye, v(t.placeholder ?? ""), 1), (e(!0), d(f, null, r(t.options, (t) => (e(), d("option", {
278
278
  key: s(t),
279
279
  value: s(t)
280
- }, v(c(t)), 9, ve))), 128))], 42, ge));
280
+ }, v(c(t)), 9, be))), 128))], 42, ve));
281
281
  }
282
- }), ye = ["data-tpl-theme", "aria-label"], be = { class: "tpl:flex tpl:items-center tpl:gap-1" }, $ = { class: "tpl:relative" }, xe = [
282
+ }), $ = ["data-tpl-theme", "aria-label"], xe = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Se = { class: "tpl:relative" }, Ce = [
283
283
  "value",
284
284
  "aria-label",
285
285
  "title"
286
- ], Se = { class: "tpl:relative" }, Ce = [
286
+ ], we = { class: "tpl:relative" }, Te = [
287
287
  "value",
288
288
  "aria-label",
289
289
  "title"
290
- ], we = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Te = ["aria-label", "title"], Ee = {
290
+ ], Ee = { class: "tpl:flex tpl:items-center tpl:gap-1" }, De = ["aria-label", "title"], Oe = ["aria-label", "title"], ke = {
291
291
  key: 1,
292
292
  class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
293
- }, De = /* @__PURE__ */ s({
293
+ }, Ae = /* @__PURE__ */ s({
294
294
  __name: "ParagraphToolbar",
295
295
  props: {
296
296
  editor: {},
297
297
  toolbarPosition: {},
298
298
  isLoading: { type: Boolean },
299
- canRequestMergeTag: { type: Boolean }
299
+ canRequestMergeTag: { type: Boolean },
300
+ canInsertLogicTag: { type: Boolean }
300
301
  },
301
- emits: ["open-link-dialog", "add-merge-tag"],
302
+ emits: [
303
+ "open-link-dialog",
304
+ "add-merge-tag",
305
+ "add-logic-tag"
306
+ ],
302
307
  setup(t, { emit: n }) {
303
- let r = t, i = n, o = x(E, null), s = x(D, null), c = O(ee, "ParagraphToolbar"), _ = L(), S = x(te, null), C = l(() => S?.isOpen.value ?? !1), { t: w } = k(), T = c.fonts;
304
- function A(e) {
308
+ let r = t, i = n, o = x(O, null), s = x(E, null), c = D(ee, "ParagraphToolbar"), _ = R(), S = x(te, null), C = x(ne, null), w = l(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: T } = k(), A = c.fonts;
309
+ function N(e) {
305
310
  r.editor?.chain().focus().insertContent(e).run();
306
311
  }
307
- function N(e) {
312
+ function P(e) {
308
313
  return r.editor?.getAttributes("textStyle")[e] || "";
309
314
  }
310
- function P(e) {
315
+ function F(e) {
311
316
  let t = r.editor?.chain().focus();
312
317
  e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
313
318
  }
314
- function F(e) {
319
+ function H(e) {
315
320
  let t = r.editor?.chain().focus();
316
321
  e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
317
322
  }
318
- function V(e) {
323
+ function W(e) {
319
324
  let t = r.editor?.chain().focus();
320
325
  e ? t?.setColor(e).run() : t?.unsetColor().run();
321
326
  }
@@ -337,13 +342,13 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
337
342
  let t = r.editor?.chain().focus();
338
343
  e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
339
344
  }
340
- return (n, r) => g(_) && !C.value ? (e(), h(y, {
345
+ return (n, r) => g(_) && !w.value ? (e(), h(y, {
341
346
  key: 0,
342
347
  to: g(_)
343
348
  }, [u("div", {
344
349
  "data-tpl-theme": g(s),
345
350
  role: "toolbar",
346
- "aria-label": g(w).paragraphEditor.toolbar,
351
+ "aria-label": g(T).paragraphEditor.toolbar,
347
352
  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",
348
353
  style: m({
349
354
  ...g(o),
@@ -352,14 +357,14 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
352
357
  transform: "translateY(-100%)",
353
358
  flexDirection: "column"
354
359
  })
355
- }, [!t.isLoading && t.editor ? (e(), d(f, { key: 0 }, [u("div", be, [
360
+ }, [!t.isLoading && t.editor ? (e(), d(f, { key: 0 }, [u("div", xe, [
356
361
  b(Q, {
357
- "model-value": N("fontFamily"),
358
- options: g(T),
359
- label: g(w).paragraphEditor.fontFamily,
360
- placeholder: g(w).paragraphEditor.defaultFont,
362
+ "model-value": P("fontFamily"),
363
+ options: g(A),
364
+ label: g(T).paragraphEditor.fontFamily,
365
+ placeholder: g(T).paragraphEditor.defaultFont,
361
366
  "width-class": "tpl:w-32",
362
- "onUpdate:modelValue": P
367
+ "onUpdate:modelValue": F
363
368
  }, null, 8, [
364
369
  "model-value",
365
370
  "options",
@@ -367,12 +372,12 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
367
372
  "placeholder"
368
373
  ]),
369
374
  b(Q, {
370
- "model-value": N("fontSize"),
371
- options: g(ce),
372
- label: g(w).paragraphEditor.fontSize,
373
- placeholder: g(w).paragraphEditor.defaultSize,
375
+ "model-value": P("fontSize"),
376
+ options: g(ue),
377
+ label: g(T).paragraphEditor.fontSize,
378
+ placeholder: g(T).paragraphEditor.defaultSize,
374
379
  "width-class": "tpl:w-20",
375
- "onUpdate:modelValue": F
380
+ "onUpdate:modelValue": H
376
381
  }, null, 8, [
377
382
  "model-value",
378
383
  "options",
@@ -380,27 +385,27 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
380
385
  "placeholder"
381
386
  ]),
382
387
  b(Z),
383
- u("div", $, [u("input", {
388
+ u("div", Se, [u("input", {
384
389
  type: "color",
385
390
  class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-1",
386
- value: N("color") || g("#000000"),
387
- "aria-label": g(w).paragraphEditor.textColor,
388
- title: g(w).paragraphEditor.textColor,
389
- onInput: r[0] ||= (e) => V(e.target.value)
390
- }, null, 40, xe)]),
391
- u("div", Se, [u("input", {
391
+ value: P("color") || g("#000000"),
392
+ "aria-label": g(T).paragraphEditor.textColor,
393
+ title: g(T).paragraphEditor.textColor,
394
+ onInput: r[0] ||= (e) => W(e.target.value)
395
+ }, null, 40, Ce)]),
396
+ u("div", we, [u("input", {
392
397
  type: "color",
393
398
  class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:p-1",
394
399
  style: m({ backgroundColor: J() || "var(--tpl-bg)" }),
395
400
  value: J() || g("#ffff00"),
396
- "aria-label": g(w).paragraphEditor.highlightColor,
397
- title: g(w).paragraphEditor.highlightColor,
401
+ "aria-label": g(T).paragraphEditor.highlightColor,
402
+ title: g(T).paragraphEditor.highlightColor,
398
403
  onInput: r[1] ||= (e) => Y(e.target.value)
399
- }, null, 44, Ce)]),
404
+ }, null, 44, Te)]),
400
405
  b(Z),
401
406
  b(X, {
402
- icon: g(ie),
403
- label: g(w).paragraphEditor.bold,
407
+ icon: g(j),
408
+ label: g(T).paragraphEditor.bold,
404
409
  active: t.editor.isActive("bold"),
405
410
  "stroke-width": 2.5,
406
411
  onClick: r[2] ||= (e) => t.editor.chain().focus().toggleBold().run()
@@ -410,8 +415,8 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
410
415
  "active"
411
416
  ]),
412
417
  b(X, {
413
- icon: g(ae),
414
- label: g(w).paragraphEditor.italic,
418
+ icon: g(M),
419
+ label: g(T).paragraphEditor.italic,
415
420
  active: t.editor.isActive("italic"),
416
421
  onClick: r[3] ||= (e) => t.editor.chain().focus().toggleItalic().run()
417
422
  }, null, 8, [
@@ -420,8 +425,8 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
420
425
  "active"
421
426
  ]),
422
427
  b(X, {
423
- icon: g(ue),
424
- label: g(w).paragraphEditor.underline,
428
+ icon: g(pe),
429
+ label: g(T).paragraphEditor.underline,
425
430
  active: t.editor.isActive("underline"),
426
431
  onClick: r[4] ||= (e) => t.editor.chain().focus().toggleUnderline().run()
427
432
  }, null, 8, [
@@ -430,8 +435,8 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
430
435
  "active"
431
436
  ]),
432
437
  b(X, {
433
- icon: g(H),
434
- label: g(w).paragraphEditor.strikethrough,
438
+ icon: g(U),
439
+ label: g(T).paragraphEditor.strikethrough,
435
440
  active: t.editor.isActive("strike"),
436
441
  onClick: r[5] ||= (e) => t.editor.chain().focus().toggleStrike().run()
437
442
  }, null, 8, [
@@ -441,8 +446,8 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
441
446
  ]),
442
447
  b(Z),
443
448
  b(X, {
444
- icon: g(U),
445
- label: g(w).paragraphEditor.subscript,
449
+ icon: g(de),
450
+ label: g(T).paragraphEditor.subscript,
446
451
  active: t.editor.isActive("subscript"),
447
452
  onClick: r[6] ||= (e) => t.editor.chain().focus().toggleSubscript().run()
448
453
  }, null, 8, [
@@ -451,8 +456,8 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
451
456
  "active"
452
457
  ]),
453
458
  b(X, {
454
- icon: g(W),
455
- label: g(w).paragraphEditor.superscript,
459
+ icon: g(fe),
460
+ label: g(T).paragraphEditor.superscript,
456
461
  active: t.editor.isActive("superscript"),
457
462
  onClick: r[7] ||= (e) => t.editor.chain().focus().toggleSuperscript().run()
458
463
  }, null, 8, [
@@ -462,8 +467,8 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
462
467
  ]),
463
468
  b(Z),
464
469
  b(X, {
465
- icon: g(oe),
466
- label: g(w).paragraphEditor.addLink,
470
+ icon: g(re),
471
+ label: g(T).paragraphEditor.addLink,
467
472
  active: t.editor.isActive("link"),
468
473
  onClick: r[8] ||= (e) => i("open-link-dialog")
469
474
  }, null, 8, [
@@ -471,10 +476,10 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
471
476
  "label",
472
477
  "active"
473
478
  ])
474
- ]), u("div", we, [
479
+ ]), u("div", Ee, [
475
480
  b(X, {
476
- icon: g(z),
477
- label: g(w).paragraphEditor.bulletList,
481
+ icon: g(B),
482
+ label: g(T).paragraphEditor.bulletList,
478
483
  active: t.editor.isActive("bulletList"),
479
484
  onClick: r[9] ||= (e) => t.editor.chain().focus().toggleBulletList().run()
480
485
  }, null, 8, [
@@ -483,8 +488,8 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
483
488
  "active"
484
489
  ]),
485
490
  b(X, {
486
- icon: g(R),
487
- label: g(w).paragraphEditor.numberedList,
491
+ icon: g(z),
492
+ label: g(T).paragraphEditor.numberedList,
488
493
  active: t.editor.isActive("orderedList"),
489
494
  onClick: r[10] ||= (e) => t.editor.chain().focus().toggleOrderedList().run()
490
495
  }, null, 8, [
@@ -494,8 +499,8 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
494
499
  ]),
495
500
  b(Z),
496
501
  b(X, {
497
- icon: g(re),
498
- label: g(w).paragraphEditor.alignLeft,
502
+ icon: g(le),
503
+ label: g(T).paragraphEditor.alignLeft,
499
504
  active: t.editor.isActive({ textAlign: "left" }),
500
505
  onClick: r[11] ||= (e) => t.editor.chain().focus().setTextAlign("left").run()
501
506
  }, null, 8, [
@@ -504,8 +509,8 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
504
509
  "active"
505
510
  ]),
506
511
  b(X, {
507
- icon: g(M),
508
- label: g(w).paragraphEditor.alignCenter,
512
+ icon: g(ce),
513
+ label: g(T).paragraphEditor.alignCenter,
509
514
  active: t.editor.isActive({ textAlign: "center" }),
510
515
  onClick: r[12] ||= (e) => t.editor.chain().focus().setTextAlign("center").run()
511
516
  }, null, 8, [
@@ -514,8 +519,8 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
514
519
  "active"
515
520
  ]),
516
521
  b(X, {
517
- icon: g(j),
518
- label: g(w).paragraphEditor.alignRight,
522
+ icon: g(se),
523
+ label: g(T).paragraphEditor.alignRight,
519
524
  active: t.editor.isActive({ textAlign: "right" }),
520
525
  onClick: r[13] ||= (e) => t.editor.chain().focus().setTextAlign("right").run()
521
526
  }, null, 8, [
@@ -526,8 +531,8 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
526
531
  b(Z),
527
532
  b(Q, {
528
533
  "model-value": G(),
529
- options: g(I),
530
- label: g(w).paragraphEditor.lineHeight,
534
+ options: g(L),
535
+ label: g(T).paragraphEditor.lineHeight,
531
536
  placeholder: "LH",
532
537
  "width-class": "tpl:w-16",
533
538
  "onUpdate:modelValue": K
@@ -537,9 +542,9 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
537
542
  "label"
538
543
  ]),
539
544
  b(Q, {
540
- "model-value": N("letterSpacing"),
541
- options: g(le),
542
- label: g(w).paragraphEditor.letterSpacing,
545
+ "model-value": P("letterSpacing"),
546
+ options: g(I),
547
+ label: g(T).paragraphEditor.letterSpacing,
543
548
  placeholder: "LS",
544
549
  "width-class": "tpl:w-20",
545
550
  "onUpdate:modelValue": q
@@ -550,29 +555,40 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
550
555
  ]),
551
556
  b(Z),
552
557
  b(X, {
553
- icon: g(B),
554
- label: g(w).paragraphEditor.clearFormatting,
558
+ icon: g(V),
559
+ label: g(T).paragraphEditor.clearFormatting,
555
560
  onClick: r[14] ||= (e) => t.editor.chain().focus().clearNodes().unsetAllMarks().run()
556
561
  }, null, 8, ["icon", "label"]),
557
562
  b(Z),
558
- b(de, { onInsert: A }),
563
+ b(me, { onInsert: N }),
559
564
  t.canRequestMergeTag ? (e(), d(f, { key: 0 }, [b(Z), u("button", {
560
565
  type: "button",
561
566
  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)]",
562
- "aria-label": g(w).mergeTag.insert,
563
- title: g(w).mergeTag.insert,
567
+ "aria-label": g(T).mergeTag.insert,
568
+ title: g(T).mergeTag.insert,
564
569
  onClick: r[15] ||= (e) => i("add-merge-tag")
565
- }, [b(g(se), {
570
+ }, [b(g(ae), {
571
+ size: 16,
572
+ "stroke-width": 2
573
+ }), a(" " + v(g(T).mergeTag.insertShort), 1)], 8, De)], 64)) : p("", !0),
574
+ t.canInsertLogicTag ? (e(), d(f, { key: 1 }, [b(Z), u("button", {
575
+ type: "button",
576
+ 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)]",
577
+ "aria-label": g(T).logicTag.insert,
578
+ title: g(T).logicTag.insert,
579
+ "data-testid": "insert-logic-button",
580
+ onClick: r[16] ||= (e) => i("add-logic-tag")
581
+ }, [b(g(ie), {
566
582
  size: 16,
567
583
  "stroke-width": 2
568
- }), a(" " + v(g(w).mergeTag.insert), 1)], 8, Te)], 64)) : p("", !0)
569
- ])], 64)) : (e(), d("div", Ee, [b(g(ne), {
584
+ }), a(" " + v(g(T).logicTag.insertShort), 1)], 8, Oe)], 64)) : p("", !0)
585
+ ])], 64)) : (e(), d("div", ke, [b(g(oe), {
570
586
  class: "tpl-spinner",
571
587
  size: 14,
572
588
  "stroke-width": 2
573
- }), a(" " + v(g(w).errors.editorLoading), 1)]))], 12, ye)], 8, ["to"])) : p("", !0);
589
+ }), a(" " + v(g(T).errors.editorLoading), 1)]))], 12, $)], 8, ["to"])) : p("", !0);
574
590
  }
575
- }), Oe = { class: "tpl-text-editor-wrapper tpl:relative" }, ke = /* @__PURE__ */ s({
591
+ }), je = { class: "tpl-text-editor-wrapper tpl:relative" }, Me = /* @__PURE__ */ s({
576
592
  __name: "ParagraphEditor",
577
593
  props: {
578
594
  block: {},
@@ -580,25 +596,25 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
580
596
  },
581
597
  emits: ["done"],
582
598
  setup(t, { emit: r }) {
583
- let i = t, a = r, o = L(), { editor: s, EditorContent: c, isLoading: l, initError: u, retry: f, showLinkDialog: p, linkUrl: m, linkDialogRef: h, canRequestMergeTag: _, openLinkDialog: v, insertLink: y, removeLink: x, closeLinkDialog: S, handleLinkKeydown: C, handleAddMergeTag: T } = w({
599
+ let i = t, a = r, o = R(), { editor: s, EditorContent: c, isLoading: l, initError: u, retry: f, showLinkDialog: p, linkUrl: m, linkDialogRef: h, canRequestMergeTag: _, canInsertLogicTag: v, openLinkDialog: y, insertLink: x, removeLink: S, closeLinkDialog: C, handleLinkKeydown: T, handleAddMergeTag: E, handleAddLogicTag: D } = w({
584
600
  blockId: () => i.block.id,
585
601
  blockContent: () => i.block.content,
586
602
  onDone: () => a("done"),
587
603
  editorName: "ParagraphEditor",
588
604
  async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
589
605
  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([
590
- import("./dist-D6x1cQeh.js").then((e) => e.r),
591
- import("./dist-DULfKmTh.js"),
592
- import("./dist-BlG7k25W.js"),
593
- import("./dist-o73iaGqy.js"),
594
- import("./dist-Cz79qrLL.js"),
595
- import("./dist-412xXefB.js"),
596
- import("./dist-BwgjpLfr.js"),
597
- import("./dist-BCQZZUE9.js"),
598
- import("./dist-BNEdeWub.js"),
599
- import("./dist-u0iIJH3V.js"),
600
- import("./dist-b7Ak-CuM.js"),
601
- import("./extensions-XPlNAKIL.js")
606
+ import("./dist-Dd3ibRZm.js").then((e) => e.r),
607
+ import("./dist-BX3gGwL8.js"),
608
+ import("./dist-CLpPNKy9.js"),
609
+ import("./dist-U5vfDdYI.js"),
610
+ import("./dist-B7w6xTU6.js"),
611
+ import("./dist-Bn703mnA.js"),
612
+ import("./dist-34OcyoK1.js"),
613
+ import("./dist-ChMninLH.js"),
614
+ import("./dist-CGvz7vkq.js"),
615
+ import("./dist-CADDCv0o.js"),
616
+ import("./dist-CrQZ_af9.js"),
617
+ import("./extensions-J439b7y7.js")
602
618
  ]);
603
619
  return {
604
620
  TiptapEditor: a,
@@ -643,21 +659,25 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
643
659
  };
644
660
  }
645
661
  });
646
- return (r, i) => (e(), d("div", Oe, [
647
- b(De, {
662
+ return (r, i) => (e(), d("div", je, [
663
+ b(Ae, {
648
664
  editor: g(s),
649
665
  "toolbar-position": t.toolbarPosition,
650
666
  "is-loading": g(l),
651
667
  "can-request-merge-tag": g(_),
652
- onOpenLinkDialog: g(v),
653
- onAddMergeTag: g(T)
668
+ "can-insert-logic-tag": g(v),
669
+ onOpenLinkDialog: g(y),
670
+ onAddMergeTag: g(E),
671
+ onAddLogicTag: g(D)
654
672
  }, null, 8, [
655
673
  "editor",
656
674
  "toolbar-position",
657
675
  "is-loading",
658
676
  "can-request-merge-tag",
677
+ "can-insert-logic-tag",
659
678
  "onOpenLinkDialog",
660
- "onAddMergeTag"
679
+ "onAddMergeTag",
680
+ "onAddLogicTag"
661
681
  ]),
662
682
  b(P, {
663
683
  editor: g(s),
@@ -679,10 +699,10 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
679
699
  "onUpdate:dialogRef": i[0] ||= (e) => n(h) ? h.value = e : null,
680
700
  "link-url": g(m),
681
701
  "onUpdate:linkUrl": i[1] ||= (e) => n(m) ? m.value = e : null,
682
- onClose: g(S),
683
- onInsert: g(y),
684
- onRemove: g(x),
685
- onKeydown: g(C)
702
+ onClose: g(C),
703
+ onInsert: g(x),
704
+ onRemove: g(S),
705
+ onKeydown: g(T)
686
706
  }, null, 8, [
687
707
  "visible",
688
708
  "is-editing-link",
@@ -697,4 +717,4 @@ var Z = /*#__PURE__*/ F(pe, [["render", he]]), ge = [
697
717
  }
698
718
  });
699
719
  //#endregion
700
- export { ke as default };
720
+ export { Me as default };
@@ -1,9 +1,9 @@
1
- import { A as e, B as t, F as n, I as r, T as i, _ as a, a as o, b as s, c, f as l, h as u, m as d, ot as f, p, rt as m, st as h, u as g, v as _, w as v } from "./vue.runtime.esm-bundler-B2k01iQh.js";
2
- import { A as y, M as b } from "./keys-mFiJ5N0_.js";
3
- import { t as x } from "./useI18n-CTs_bP9d.js";
4
- import { t as S } from "./createLucideIcon-CmPAC-gt.js";
5
- import { t as C } from "./x-CGjkjdKK.js";
6
- import { t as w } from "./usePopoverRoot-DVh7NY1q.js";
1
+ import { A as e, B as t, F as n, I as r, T as i, _ as a, a as o, b as s, c, f as l, h as u, m as d, ot as f, p, rt as m, st as h, u as g, v as _, w as v } from "./vue.runtime.esm-bundler-BPa483TZ.js";
2
+ import { I as y, P as b } from "./keys-DgYXDafq.js";
3
+ import { t as x } from "./useI18n-BWqM8i78.js";
4
+ import { t as S } from "./createLucideIcon-Bad2kKE0.js";
5
+ import { t as C } from "./x-DiPIbccg.js";
6
+ import { t as w } from "./usePopoverRoot-B1sdY4es.js";
7
7
  var T = S("bold", [["path", {
8
8
  d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",
9
9
  key: "mg9rjx"
@@ -59,7 +59,7 @@ var T = S("bold", [["path", {
59
59
  "keydown"
60
60
  ], ["update:linkUrl", "update:dialogRef"]),
61
61
  setup(n, { emit: i }) {
62
- let a = r(n, "linkUrl"), s = r(n, "dialogRef"), S = i, T = v(y, null), E = v(b, null), D = w(), { t: R } = x();
62
+ let a = r(n, "linkUrl"), s = r(n, "dialogRef"), S = i, T = v(b, null), E = v(y, null), D = w(), { t: R } = x();
63
63
  return (r, i) => m(D) ? (e(), p(g, {
64
64
  key: 0,
65
65
  to: m(D)
@@ -1,10 +1,10 @@
1
- import { A as e, B as t, L as n, M as r, X as i, _ as a, a as o, at as s, b as c, d as l, f as u, h as d, l as ee, m as f, ot as p, p as m, rt as h, st as g, v as _, z as v } from "./vue.runtime.esm-bundler-B2k01iQh.js";
2
- import "./useEditorCore-DKYZ7aKk.js";
3
- import { D as y, N as b, m as x } from "./keys-mFiJ5N0_.js";
4
- import { t as S } from "./useI18n-CTs_bP9d.js";
5
- import { t as te } from "./loader-circle-CDF8eR_Q.js";
6
- import { n as ne } from "./useCloudI18n-L3H2XvdW.js";
7
- import { t as C } from "./TplModal-BYb-X5Bj.js";
1
+ import { A as e, B as t, L as n, M as r, X as i, _ as a, a as o, at as s, b as c, d as l, f as u, h as d, l as ee, m as f, ot as p, p as m, rt as h, st as g, v as _, z as v } from "./vue.runtime.esm-bundler-BPa483TZ.js";
2
+ import "./useEditorCore-8JxXDOA4.js";
3
+ import { L as y, j as b, m as x } from "./keys-DgYXDafq.js";
4
+ import { t as S } from "./useI18n-BWqM8i78.js";
5
+ import { t as te } from "./loader-circle-CLZ0_FvW.js";
6
+ import { n as ne } from "./useCloudI18n-CYJKqXtI.js";
7
+ import { t as C } from "./TplModal-tjQ7OB0g.js";
8
8
  //#region src/cloud/components/SaveModuleDialog.vue?vue&type=script&setup=true&lang.ts
9
9
  var w = ["aria-busy"], T = {
10
10
  id: "tpl-save-module-title",
@@ -28,7 +28,7 @@ var w = ["aria-busy"], T = {
28
28
  },
29
29
  emits: ["close", "saved"],
30
30
  setup(c, { emit: R }) {
31
- let z = c, B = R, { t: V } = S(), { t: H } = ne(), U = b(x, "SaveModuleDialog"), W = b(y, "SaveModuleDialog"), G = i(""), K = i(/* @__PURE__ */ new Set()), q = i(!1), J = i(null), Y = l(() => U.content.value.blocks);
31
+ let z = c, B = R, { t: V } = S(), { t: H } = ne(), U = y(x, "SaveModuleDialog"), W = y(b, "SaveModuleDialog"), G = i(""), K = i(/* @__PURE__ */ new Set()), q = i(!1), J = i(null), Y = l(() => U.content.value.blocks);
32
32
  function X(e, t) {
33
33
  let n = e.type;
34
34
  return `${V.blocks[n] ?? e.type} ${t + 1}`;