@templatical/editor 0.13.0 → 0.15.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 (178) hide show
  1. package/dist/{AiChatSidebar-B0-U5-sb.js → AiChatSidebar-BIKvYREk.js} +57 -56
  2. package/dist/{AiFeatureMenu-DxDwLS8B.js → AiFeatureMenu-QbD82crt.js} +23 -23
  3. package/dist/{BlockIssueBadge-C-EPqWsh.js → BlockIssueBadge-B3xVgMTh.js} +11 -11
  4. package/dist/CloudEditor-DptuSf7A.js +1234 -0
  5. package/dist/{CollaboratorBar-DgwjisX2.js → CollaboratorBar-DrA_K69w.js} +20 -20
  6. package/dist/{CommentsSidebar-CpRLN40c.js → CommentsSidebar-D_tSGvTX.js} +158 -157
  7. package/dist/CountdownBlock-apiYUhkQ.js +92 -0
  8. package/dist/CountdownToolbar-CS0axcjz.js +210 -0
  9. package/dist/{DesignReferenceSidebar-BgPDbOsl.js → DesignReferenceSidebar-DWYK9nTk.js} +58 -57
  10. package/dist/{IssuesPanel-I0z6k6-H.js → IssuesPanel-CR1MPaDE.js} +40 -40
  11. package/dist/{LoadingTrack-C7mGWPHS.js → LoadingTrack-DsecR8Rw.js} +1 -1
  12. package/dist/MergeTagSuggestion-CH2SUxBo.js +1327 -0
  13. package/dist/ModuleBrowserModal-D45rBj5C.js +202 -0
  14. package/dist/{ModulePreviewCanvas-Dni9kK4j.js → ModulePreviewCanvas-BiQ6B2-l.js} +29 -29
  15. package/dist/{NumberWithSuffix-D3fdj0iO.js → NumberWithSuffix-CrA6quxx.js} +143 -142
  16. package/dist/ParagraphEditor-1NaUJpZO.js +721 -0
  17. package/dist/{RichTextEditorContent-Q5altsx1.js → RichTextEditorContent-BqLHIZY7.js} +45 -44
  18. package/dist/{SaveModuleDialog-C38VqN2T.js → SaveModuleDialog-B0sPOTgO.js} +38 -37
  19. package/dist/{SnapshotHistory-ByloTpwh.js → SnapshotHistory-DslVzmSb.js} +34 -33
  20. package/dist/{TemplateScoringPanel-CUxiPtEf.js → TemplateScoringPanel-CZ62rGHz.js} +83 -82
  21. package/dist/{TestEmailModal-BvZBMBad.js → TestEmailModal-DWGniJVu.js} +22 -21
  22. package/dist/TitleEditor-D4t_gZZJ.js +193 -0
  23. package/dist/{TplModal-BYb-X5Bj.js → TplModal-Br2VG6cn.js} +14 -13
  24. package/dist/{blockTypeIcons-CyAom3iI.js → blockTypeIcons-CXhCS5WV.js} +5 -5
  25. package/dist/bundle-stats.json +8 -8
  26. package/dist/cdn/chunks/{AiFeatureMenu-BSoy-SoF.js → AiFeatureMenu-3Slo_LGA.js} +8 -8
  27. package/dist/cdn/chunks/{AiFeatureMenu-BSoy-SoF.js.map → AiFeatureMenu-3Slo_LGA.js.map} +1 -1
  28. package/dist/cdn/chunks/{BlockIssueBadge-BQDUuJxy.js → BlockIssueBadge-BxwEiiF3.js} +5 -5
  29. package/dist/cdn/chunks/{BlockIssueBadge-BQDUuJxy.js.map → BlockIssueBadge-BxwEiiF3.js.map} +1 -1
  30. package/dist/cdn/chunks/{CloudEditor-BZuzsQOZ.js → CloudEditor-DFIFWD9G.js} +163 -161
  31. package/dist/cdn/chunks/CloudEditor-DFIFWD9G.js.map +1 -0
  32. package/dist/cdn/chunks/{CollaboratorBar-DUpSrtDr.js → CollaboratorBar-Cu3vuN66.js} +4 -4
  33. package/dist/cdn/chunks/{CollaboratorBar-DUpSrtDr.js.map → CollaboratorBar-Cu3vuN66.js.map} +1 -1
  34. package/dist/cdn/chunks/{CountdownBlock-DChGTAsH.js → CountdownBlock-BEVAJQtQ.js} +3 -3
  35. package/dist/cdn/chunks/{CountdownBlock-DChGTAsH.js.map → CountdownBlock-BEVAJQtQ.js.map} +1 -1
  36. package/dist/cdn/chunks/{CountdownToolbar-C6gX2SJr.js → CountdownToolbar-CI2sQZv5.js} +4 -4
  37. package/dist/cdn/chunks/{CountdownToolbar-C6gX2SJr.js.map → CountdownToolbar-CI2sQZv5.js.map} +1 -1
  38. package/dist/cdn/chunks/{IssuesPanel-Bo1uhdSe.js → IssuesPanel-BdeDoTcn.js} +11 -11
  39. package/dist/cdn/chunks/{IssuesPanel-Bo1uhdSe.js.map → IssuesPanel-BdeDoTcn.js.map} +1 -1
  40. package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js +213 -0
  41. package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js.map +1 -0
  42. package/dist/cdn/chunks/{ModuleBrowserModal-a-tZRCcD.js → ModuleBrowserModal-Dz-I5zfj.js} +11 -8
  43. package/dist/cdn/chunks/{ModuleBrowserModal-a-tZRCcD.js.map → ModuleBrowserModal-Dz-I5zfj.js.map} +1 -1
  44. package/dist/cdn/chunks/{ModulePreviewCanvas-Bm6k0Op0.js → ModulePreviewCanvas-BfinyuAN.js} +21 -21
  45. package/dist/cdn/chunks/{ModulePreviewCanvas-Bm6k0Op0.js.map → ModulePreviewCanvas-BfinyuAN.js.map} +1 -1
  46. package/dist/cdn/chunks/{NumberWithSuffix-HTbuD3VJ.js → NumberWithSuffix-CDjEa08X.js} +4 -4
  47. package/dist/cdn/chunks/{NumberWithSuffix-HTbuD3VJ.js.map → NumberWithSuffix-CDjEa08X.js.map} +1 -1
  48. package/dist/cdn/chunks/{ParagraphEditor-pGrfSccu.js → ParagraphEditor-B3fG0vge.js} +130 -110
  49. package/dist/cdn/chunks/ParagraphEditor-B3fG0vge.js.map +1 -0
  50. package/dist/cdn/chunks/{RichTextEditorContent-D7XZix_1.js → RichTextEditorContent-C6YPCp9j.js} +4 -4
  51. package/dist/cdn/chunks/{RichTextEditorContent-D7XZix_1.js.map → RichTextEditorContent-C6YPCp9j.js.map} +1 -1
  52. package/dist/cdn/chunks/{SaveModuleDialog-C9PQ9x6j.js → SaveModuleDialog-C6UIIVAM.js} +6 -6
  53. package/dist/cdn/chunks/{SaveModuleDialog-C9PQ9x6j.js.map → SaveModuleDialog-C6UIIVAM.js.map} +1 -1
  54. package/dist/cdn/chunks/{TitleEditor-BvFbL16O.js → TitleEditor-BiZbLYF1.js} +62 -46
  55. package/dist/cdn/chunks/TitleEditor-BiZbLYF1.js.map +1 -0
  56. package/dist/cdn/chunks/blockTypeIcons-BernVG06.js +22 -0
  57. package/dist/cdn/chunks/{blockTypeIcons-Kd1MT0u8.js.map → blockTypeIcons-BernVG06.js.map} +1 -1
  58. package/dist/{de-C2wOXoxs.js → cdn/chunks/de-LsV0u1tP.js} +19 -1
  59. package/dist/cdn/chunks/de-LsV0u1tP.js.map +1 -0
  60. package/dist/cdn/chunks/{draggable-Bci-fq8y.js → draggable-kG-D5Xsm.js} +19 -10
  61. package/dist/cdn/chunks/draggable-kG-D5Xsm.js.map +1 -0
  62. package/dist/cdn/chunks/{en-dR7zfNC3.js → en-Bb8X1bOs.js} +18 -2
  63. package/dist/cdn/chunks/en-Bb8X1bOs.js.map +1 -0
  64. package/dist/cdn/chunks/extensions-Drp8UDc6.js +421 -0
  65. package/dist/cdn/chunks/extensions-Drp8UDc6.js.map +1 -0
  66. package/dist/cdn/chunks/{features-DU6lA8l1.js → features-Dpczf9Su.js} +1171 -994
  67. package/dist/cdn/chunks/features-Dpczf9Su.js.map +1 -0
  68. package/dist/cdn/chunks/{icons-BjHUZZyJ.js → icons-CuxnJiGQ.js} +170 -164
  69. package/dist/cdn/chunks/icons-CuxnJiGQ.js.map +1 -0
  70. package/dist/cdn/chunks/{liquid.browser-DKKBzRQu.js → liquid.browser-BJOEu6Cg.js} +693 -678
  71. package/dist/cdn/chunks/liquid.browser-BJOEu6Cg.js.map +1 -0
  72. package/dist/cdn/chunks/{media-library-Byelliig.js → media-library-CiYl_BO7.js} +556 -554
  73. package/dist/cdn/chunks/{media-library-Byelliig.js.map → media-library-CiYl_BO7.js.map} +1 -1
  74. package/dist/cdn/chunks/{pt-BR-BZ86xqK6.js → pt-BR-BwJY_cvb.js} +18 -2
  75. package/dist/cdn/chunks/pt-BR-BwJY_cvb.js.map +1 -0
  76. package/dist/cdn/chunks/{pusher-BICWUP2j.js → pusher-CIwiKF8H.js} +9 -6
  77. package/dist/cdn/chunks/{pusher-BICWUP2j.js.map → pusher-CIwiKF8H.js.map} +1 -1
  78. package/dist/cdn/chunks/quality-CNjGxBG0.js +2176 -0
  79. package/dist/cdn/chunks/{quality-DNnYAntR.js.map → quality-CNjGxBG0.js.map} +1 -1
  80. package/dist/cdn/chunks/{renderer-CZKO-Tav.js → renderer-CFkg8h-K.js} +40 -31
  81. package/dist/cdn/chunks/renderer-CFkg8h-K.js.map +1 -0
  82. package/dist/cdn/chunks/{src-DsqSXXjk.js → src-DRpKu4Dy.js} +11 -11
  83. package/dist/cdn/chunks/{src-DsqSXXjk.js.map → src-DRpKu4Dy.js.map} +1 -1
  84. package/dist/cdn/chunks/styles-B7wryV0l.js +3943 -0
  85. package/dist/cdn/chunks/styles-B7wryV0l.js.map +1 -0
  86. package/dist/cdn/chunks/{tiptap-CwScfbsM.js → tiptap-DF9PEiqH.js} +5429 -5373
  87. package/dist/cdn/chunks/tiptap-DF9PEiqH.js.map +1 -0
  88. package/dist/cdn/editor.css +1 -1
  89. package/dist/cdn/editor.js +117 -115
  90. package/dist/cdn/editor.js.map +1 -1
  91. package/dist/{check-BRzXxFHr.js → check-rl7ok6uJ.js} +1 -1
  92. package/dist/{chevron-down-DmEgzmYT.js → chevron-down-BKe__NOD.js} +1 -1
  93. package/dist/{circle-alert-BStvZr3O.js → circle-alert-C8xmpMsK.js} +1 -1
  94. package/dist/{clock-Blwp_1R6.js → clock-BW4JuDCN.js} +1 -1
  95. package/dist/{cloud-_olro76D.js → cloud-BQusL53H.js} +208 -208
  96. package/dist/createLucideIcon-Dx-EjR9r.js +43 -0
  97. package/dist/{cdn/chunks/de-C2wOXoxs.js → de-LsV0u1tP.js} +17 -3
  98. package/dist/{dist-BlG7k25W.js → dist-B5Sov3sS.js} +7 -7
  99. package/dist/dist-BEWiuOMi.js +251 -0
  100. package/dist/{dist-b7Ak-CuM.js → dist-BFmE-7hB.js} +2 -2
  101. package/dist/{dist-o73iaGqy.js → dist-BMoa33wT.js} +2 -2
  102. package/dist/{dist-BctFrpeA.js → dist-BibU4HNl.js} +74 -65
  103. package/dist/{dist-D6x1cQeh.js → dist-BsCGIDSt.js} +103 -102
  104. package/dist/dist-CNLKj9wa.js +5 -0
  105. package/dist/{dist-DULfKmTh.js → dist-CNXDNYQn.js} +729 -695
  106. package/dist/{dist-412xXefB.js → dist-COG3IdPK.js} +3 -3
  107. package/dist/{dist-Cz79qrLL.js → dist-CQZxDvFw.js} +3 -3
  108. package/dist/{dist-BwgjpLfr.js → dist-CRsjOQM-.js} +2 -2
  109. package/dist/dist-CTT6WYJ6.js +134 -0
  110. package/dist/dist-Cqa6aeAJ.js +5 -0
  111. package/dist/{dist-BCQZZUE9.js → dist-SXJJ2v41.js} +2 -2
  112. package/dist/{dist-DhKTdU52.js → dist-itdjZraK.js} +1445 -1420
  113. package/dist/{en-dR7zfNC3.js → en-Bb8X1bOs.js} +17 -1
  114. package/dist/extensions-DwaZAqm6.js +423 -0
  115. package/dist/{image-up-BFPbw_Zq.js → image-up-BwBCmQ4P.js} +1 -1
  116. package/dist/index.d.ts +17 -0
  117. package/dist/{info-B_qLEBN2.js → info-TCn7uWR5.js} +1 -1
  118. package/dist/keys-Cv8-8GsD.js +10 -0
  119. package/dist/{liquid.browser-CVjP5Mex.js → liquid.browser-DZLtv26k.js} +692 -677
  120. package/dist/{list-checks-CGg7JxPm.js → list-checks-CSrOWNgq.js} +1 -1
  121. package/dist/{loader-circle-CDF8eR_Q.js → loader-circle-BLmicnPG.js} +1 -1
  122. package/dist/{message-circle-C3cHsCJl.js → message-circle-C9hHMQCI.js} +1 -1
  123. package/dist/{pt-BR-BZ86xqK6.js → pt-BR-BwJY_cvb.js} +17 -1
  124. package/dist/{refresh-cw-Butml7Q4.js → refresh-cw-D1JQ1LNa.js} +1 -1
  125. package/dist/runtime-dom.esm-bundler-BzuoCyNp.js +523 -0
  126. package/dist/scan-line-DgijVq9y.js +31 -0
  127. package/dist/{send-k7npFJNO.js → send-DjPdq69F.js} +1 -1
  128. package/dist/{shield-check-CV6GbmCu.js → shield-check-Bqluu8FS.js} +1 -1
  129. package/dist/{sparkles-C965Xop4.js → sparkles-M4azPVSP.js} +1 -1
  130. package/dist/style.css +1 -1
  131. package/dist/styles-D7fQ7f_1.js +4164 -0
  132. package/dist/templatical-editor.js +155 -152
  133. package/dist/{text-align-start-Bxnps8fH.js → text-align-start-CMya5pCQ.js} +11 -11
  134. package/dist/{trash-2-DpGb7fIt.js → trash-2-C-81rkLS.js} +1 -1
  135. package/dist/{triangle-alert-BKYElAwz.js → triangle-alert-BuRWnynk.js} +1 -1
  136. package/dist/{upload-BF7sxd1_.js → upload-CWBIoLd4.js} +1 -1
  137. package/dist/{useAliveFlag-BinvbqQR.js → useAliveFlag-CECL_OUb.js} +1 -1
  138. package/dist/{useCloudI18n-L3H2XvdW.js → useCloudI18n-AKCy98qD.js} +2 -2
  139. package/dist/{useEditorCore-DKYZ7aKk.js → useEditorCore-vcWLdnjN.js} +1480 -1310
  140. package/dist/{useI18n-CTs_bP9d.js → useI18n-C-TDeJBt.js} +2 -2
  141. package/dist/{useMergeTag-e3RSY-s3.js → useMergeTag-DSrBY0-2.js} +6 -6
  142. package/dist/usePopoverRoot-DKUDnr55.js +8 -0
  143. package/dist/{vue.runtime.esm-bundler-B2k01iQh.js → vue.runtime.esm-bundler-l0XAqiyv.js} +639 -1151
  144. package/dist/{x-CGjkjdKK.js → x-CQSvXnGR.js} +1 -1
  145. package/package.json +27 -27
  146. package/dist/CloudEditor-DaEfipBn.js +0 -1230
  147. package/dist/CountdownBlock-DO9fziwf.js +0 -92
  148. package/dist/CountdownToolbar-BeII06yJ.js +0 -210
  149. package/dist/ModuleBrowserModal-DsZRr87F.js +0 -198
  150. package/dist/ParagraphEditor-CZ-cmhX3.js +0 -700
  151. package/dist/TitleEditor-DbNOcvhR.js +0 -177
  152. package/dist/cdn/chunks/CloudEditor-BZuzsQOZ.js.map +0 -1
  153. package/dist/cdn/chunks/ParagraphEditor-pGrfSccu.js.map +0 -1
  154. package/dist/cdn/chunks/TitleEditor-BvFbL16O.js.map +0 -1
  155. package/dist/cdn/chunks/blockTypeIcons-Kd1MT0u8.js +0 -22
  156. package/dist/cdn/chunks/de-C2wOXoxs.js.map +0 -1
  157. package/dist/cdn/chunks/draggable-Bci-fq8y.js.map +0 -1
  158. package/dist/cdn/chunks/en-dR7zfNC3.js.map +0 -1
  159. package/dist/cdn/chunks/extensions-CuUjSmuA.js +0 -605
  160. package/dist/cdn/chunks/extensions-CuUjSmuA.js.map +0 -1
  161. package/dist/cdn/chunks/features-DU6lA8l1.js.map +0 -1
  162. package/dist/cdn/chunks/icons-BjHUZZyJ.js.map +0 -1
  163. package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +0 -1
  164. package/dist/cdn/chunks/pt-BR-BZ86xqK6.js.map +0 -1
  165. package/dist/cdn/chunks/quality-DNnYAntR.js +0 -2176
  166. package/dist/cdn/chunks/renderer-CZKO-Tav.js.map +0 -1
  167. package/dist/cdn/chunks/styles-DiAdtiz9.js +0 -3428
  168. package/dist/cdn/chunks/styles-DiAdtiz9.js.map +0 -1
  169. package/dist/cdn/chunks/tiptap-CwScfbsM.js.map +0 -1
  170. package/dist/createLucideIcon-CmPAC-gt.js +0 -43
  171. package/dist/dist-BNEdeWub.js +0 -5
  172. package/dist/dist-Cgry6fNv.js +0 -382
  173. package/dist/dist-u0iIJH3V.js +0 -5
  174. package/dist/extensions-XPlNAKIL.js +0 -1720
  175. package/dist/keys-mFiJ5N0_.js +0 -10
  176. package/dist/scan-line-XYEqim_E.js +0 -25
  177. package/dist/styles-D0RCAWhB.js +0 -3647
  178. package/dist/usePopoverRoot-DVh7NY1q.js +0 -8
@@ -1,18 +1,19 @@
1
- import { A as e, F as t, L as n, M as r, X as i, _ as a, at as ee, b as o, f as s, h as c, l, m as u, ot as d, p as f, rt as p, st as m, t as h, v as g, w as te, z as ne } from "./vue.runtime.esm-bundler-B2k01iQh.js";
2
- import { N as _, O as re, m as ie, y as v } from "./keys-mFiJ5N0_.js";
3
- import { t as y } from "./createLucideIcon-CmPAC-gt.js";
4
- import { t as b } from "./circle-alert-BStvZr3O.js";
5
- import { t as x } from "./loader-circle-CDF8eR_Q.js";
6
- import { t as S } from "./sparkles-C965Xop4.js";
7
- import { t as ae } from "./triangle-alert-BKYElAwz.js";
8
- import { t as oe } from "./chevron-down-DmEgzmYT.js";
9
- import { n as C, t as w } from "./refresh-cw-Butml7Q4.js";
10
- import { t as se } from "./info-B_qLEBN2.js";
11
- import { t as T } from "./shield-check-CV6GbmCu.js";
12
- import { t as ce } from "./x-CGjkjdKK.js";
13
- import { t as le } from "./LoadingTrack-C7mGWPHS.js";
14
- import { t as E } from "./_plugin-vue_export-helper-B3ysoDQm.js";
15
- import { n as D } from "./useCloudI18n-L3H2XvdW.js";
1
+ import { A as e, Dt as t, Et as n, I as r, N as i, O as a, Ot as o, R as ee, Y as s, _ as c, c as l, d as u, h as d, l as f, m as p, nt as m, r as h, u as g, x as te } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
2
+ import { t as ne } from "./runtime-dom.esm-bundler-BzuoCyNp.js";
3
+ import { L as _, M as re, S as ie, m as v } from "./keys-Cv8-8GsD.js";
4
+ import { t as y } from "./createLucideIcon-Dx-EjR9r.js";
5
+ import { t as b } from "./chevron-down-BKe__NOD.js";
6
+ import { t as x } from "./circle-alert-C8xmpMsK.js";
7
+ import { n as S, t as C } from "./refresh-cw-D1JQ1LNa.js";
8
+ import { t as ae } from "./info-TCn7uWR5.js";
9
+ import { t as w } from "./loader-circle-BLmicnPG.js";
10
+ import { t as T } from "./shield-check-Bqluu8FS.js";
11
+ import { t as E } from "./sparkles-M4azPVSP.js";
12
+ import { t as oe } from "./triangle-alert-BuRWnynk.js";
13
+ import { t as se } from "./x-CQSvXnGR.js";
14
+ import { t as ce } from "./LoadingTrack-DsecR8Rw.js";
15
+ import { t as D } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
+ import { n as le } from "./useCloudI18n-AKCy98qD.js";
16
17
  var O = y("shield-x", [
17
18
  ["path", {
18
19
  d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
@@ -85,12 +86,12 @@ var P = {
85
86
  }, Ee = {
86
87
  key: 3,
87
88
  class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
88
- }, De = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Oe = { class: "tpl:m-0 tpl:px-4 tpl:pb-2 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, G = /*#__PURE__*/ E(/* @__PURE__ */ o({
89
+ }, De = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Oe = { class: "tpl:m-0 tpl:px-4 tpl:pb-2 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, G = /*#__PURE__*/ D(/* @__PURE__ */ c({
89
90
  __name: "TemplateScoringPanel",
90
91
  props: { visible: { type: Boolean } },
91
92
  emits: ["close"],
92
- setup(o, { emit: y }) {
93
- let E = o, G = y, { t: K } = D(), q = _(ie, "TemplateScoringPanel"), J = _(re, "TemplateScoringPanel"), Y = te(v, []), X = i({
93
+ setup(c, { emit: y }) {
94
+ let D = c, G = y, { t: K } = le(), q = _(v, "TemplateScoringPanel"), J = _(re, "TemplateScoringPanel"), Y = te(ie, []), X = s({
94
95
  spam: !0,
95
96
  readability: !0,
96
97
  accessibility: !0,
@@ -106,14 +107,14 @@ var P = {
106
107
  "bestPractices"
107
108
  ], Ae = {
108
109
  spam: O,
109
- readability: C,
110
- accessibility: S,
110
+ readability: S,
111
+ accessibility: E,
111
112
  bestPractices: k
112
113
  };
113
114
  function Q() {
114
115
  J.score(q.content.value, Y);
115
116
  }
116
- n(() => E.visible, (e) => {
117
+ r(() => D.visible, (e) => {
117
118
  e && !J.scoringResult.value && !J.isScoring.value && Q();
118
119
  });
119
120
  async function je(e) {
@@ -128,7 +129,7 @@ var P = {
128
129
  function $() {
129
130
  return J.scoringResult.value ? Z.reduce((e, t) => e + (J.scoringResult.value?.categories[t]?.findings.length ?? 0), 0) : 0;
130
131
  }
131
- return (n, i) => (e(), f(h, {
132
+ return (r, s) => (a(), f(ne, {
132
133
  "enter-active-class": "tpl-scoring-slide-enter-active",
133
134
  "enter-from-class": "tpl:translate-x-full",
134
135
  "enter-to-class": "tpl:translate-x-0",
@@ -136,118 +137,118 @@ var P = {
136
137
  "leave-from-class": "tpl:translate-x-0",
137
138
  "leave-to-class": "tpl:translate-x-full"
138
139
  }, {
139
- default: ne(() => [o.visible ? (e(), c("div", P, [s("div", F, [s("div", I, [g(p(T), {
140
+ default: ee(() => [c.visible ? (a(), u("div", P, [l("div", F, [l("div", I, [d(m(T), {
140
141
  size: 13,
141
142
  "stroke-width": 2
142
- }), s("span", null, m(p(K).scoring.title), 1)]), s("div", L, [p(J).scoringResult.value && !p(J).isScoring.value ? (e(), c("button", {
143
+ }), l("span", null, o(m(K).scoring.title), 1)]), l("div", L, [m(J).scoringResult.value && !m(J).isScoring.value ? (a(), u("button", {
143
144
  key: 0,
144
145
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
145
- title: p(K).scoring.rescore,
146
- onClick: i[0] ||= (e) => Q()
147
- }, [g(p(w), {
146
+ title: m(K).scoring.rescore,
147
+ onClick: s[0] ||= (e) => Q()
148
+ }, [d(m(C), {
148
149
  size: 14,
149
150
  "stroke-width": 2
150
- })], 8, R)) : u("", !0), s("button", {
151
+ })], 8, R)) : g("", !0), l("button", {
151
152
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
152
- onClick: i[1] ||= (e) => G("close")
153
- }, [g(p(ce), {
153
+ onClick: s[1] ||= (e) => G("close")
154
+ }, [d(m(se), {
154
155
  size: 14,
155
156
  "stroke-width": 2
156
- })])])]), s("div", z, [p(J).isScoring.value ? (e(), c("div", B, [s("p", V, m(p(K).scoring.scoring), 1), g(le, { class: "tpl:w-3/4" })])) : p(J).error.value && !p(J).scoringResult.value ? (e(), c("div", H, [
157
- g(p(b), {
157
+ })])])]), l("div", z, [m(J).isScoring.value ? (a(), u("div", B, [l("p", V, o(m(K).scoring.scoring), 1), d(ce, { class: "tpl:w-3/4" })])) : m(J).error.value && !m(J).scoringResult.value ? (a(), u("div", H, [
158
+ d(m(x), {
158
159
  size: 32,
159
160
  "stroke-width": 1.5,
160
161
  class: "tpl:text-[var(--tpl-danger)]"
161
162
  }),
162
- s("p", U, m(p(K).scoring.error), 1),
163
- s("button", {
163
+ l("p", U, o(m(K).scoring.error), 1),
164
+ l("button", {
164
165
  class: "tpl:mt-2 tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-muted)]",
165
- onClick: i[2] ||= (e) => Q()
166
- }, [g(p(w), {
166
+ onClick: s[2] ||= (e) => Q()
167
+ }, [d(m(C), {
167
168
  size: 12,
168
169
  "stroke-width": 2
169
- }), a(" " + m(p(K).scoring.rescore), 1)])
170
- ])) : p(J).scoringResult.value ? (e(), c("div", W, [
171
- s("div", {
170
+ }), p(" " + o(m(K).scoring.rescore), 1)])
171
+ ])) : m(J).scoringResult.value ? (a(), u("div", W, [
172
+ l("div", {
172
173
  class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:p-5",
173
- style: d({ backgroundColor: p(j)(p(J).scoringResult.value.score) })
174
+ style: t({ backgroundColor: m(j)(m(J).scoringResult.value.score) })
174
175
  }, [
175
- s("span", {
176
+ l("span", {
176
177
  class: "tpl:text-4xl tpl:font-bold tpl:tabular-nums",
177
- style: d({ color: p(A)(p(J).scoringResult.value.score) })
178
- }, m(p(J).scoringResult.value.score), 5),
179
- s("span", ue, m(p(K).scoring.overallScore), 1),
180
- $() > 0 ? (e(), c("span", de, m($()) + " " + m(p(K).scoring.findings), 1)) : u("", !0)
178
+ style: t({ color: m(A)(m(J).scoringResult.value.score) })
179
+ }, o(m(J).scoringResult.value.score), 5),
180
+ l("span", ue, o(m(K).scoring.overallScore), 1),
181
+ $() > 0 ? (a(), u("span", de, o($()) + " " + o(m(K).scoring.findings), 1)) : g("", !0)
181
182
  ], 4),
182
- p(J).fixError.value ? (e(), c("div", fe, [g(p(b), {
183
+ m(J).fixError.value ? (a(), u("div", fe, [d(m(x), {
183
184
  size: 14,
184
185
  "stroke-width": 2,
185
186
  class: "tpl:mt-0.5 tpl:shrink-0"
186
- }), s("span", null, m(p(K).scoring.fixError), 1)])) : u("", !0),
187
- (e(), c(l, null, r(Z, (n) => s("div", {
188
- key: n,
187
+ }), l("span", null, o(m(K).scoring.fixError), 1)])) : g("", !0),
188
+ (a(), u(h, null, e(Z, (r) => l("div", {
189
+ key: r,
189
190
  class: "tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)]"
190
- }, [s("button", {
191
+ }, [l("button", {
191
192
  class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-2.5 tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-colors tpl:duration-100 tpl:bg-[var(--tpl-bg)]",
192
- onClick: (e) => ke(n)
193
+ onClick: (e) => ke(r)
193
194
  }, [
194
- (e(), f(t(Ae[n]), {
195
+ (a(), f(i(Ae[r]), {
195
196
  size: 14,
196
197
  "stroke-width": 2,
197
- style: d({ color: p(A)(p(J).scoringResult.value.categories[n].score) })
198
+ style: t({ color: m(A)(m(J).scoringResult.value.categories[r].score) })
198
199
  }, null, 8, ["style"])),
199
- s("span", me, m(p(K).scoring.categories[n]), 1),
200
- s("span", {
200
+ l("span", me, o(m(K).scoring.categories[r]), 1),
201
+ l("span", {
201
202
  class: "tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-semibold tpl:tabular-nums",
202
- style: d({
203
- color: p(A)(p(J).scoringResult.value.categories[n].score),
204
- backgroundColor: p(j)(p(J).scoringResult.value.categories[n].score)
203
+ style: t({
204
+ color: m(A)(m(J).scoringResult.value.categories[r].score),
205
+ backgroundColor: m(j)(m(J).scoringResult.value.categories[r].score)
205
206
  })
206
- }, m(p(J).scoringResult.value.categories[n].score), 5),
207
- p(J).scoringResult.value.categories[n].findings.length > 0 ? (e(), c("span", he, m(p(J).scoringResult.value.categories[n].findings.length), 1)) : u("", !0),
208
- g(p(oe), {
207
+ }, o(m(J).scoringResult.value.categories[r].score), 5),
208
+ m(J).scoringResult.value.categories[r].findings.length > 0 ? (a(), u("span", he, o(m(J).scoringResult.value.categories[r].findings.length), 1)) : g("", !0),
209
+ d(m(b), {
209
210
  size: 12,
210
211
  "stroke-width": 2,
211
- class: ee(["tpl:transition-transform tpl:duration-200 tpl:text-[var(--tpl-text-dim)]", X.value[n] ? "tpl:rotate-0" : "tpl:-rotate-90"])
212
+ class: n(["tpl:transition-transform tpl:duration-200 tpl:text-[var(--tpl-text-dim)]", X.value[r] ? "tpl:rotate-0" : "tpl:-rotate-90"])
212
213
  }, null, 8, ["class"])
213
- ], 8, pe), X.value[n] ? (e(), c("div", ge, [p(J).scoringResult.value.categories[n].findings.length === 0 ? (e(), c("div", _e, m(p(K).scoring.noFindings), 1)) : u("", !0), (e(!0), c(l, null, r(p(J).scoringResult.value.categories[n].findings, (n) => (e(), c("div", {
214
- key: n.id,
214
+ ], 8, pe), X.value[r] ? (a(), u("div", ge, [m(J).scoringResult.value.categories[r].findings.length === 0 ? (a(), u("div", _e, o(m(K).scoring.noFindings), 1)) : g("", !0), (a(!0), u(h, null, e(m(J).scoringResult.value.categories[r].findings, (e) => (a(), u("div", {
215
+ key: e.id,
215
216
  class: "tpl:border-t tpl:px-3 tpl:py-2.5 first:tpl:border-t-0 tpl:border-[var(--tpl-border-light)]"
216
- }, [s("div", ve, [(e(), f(t(n.severity === "high" ? p(b) : n.severity === "medium" ? p(ae) : p(se)), {
217
+ }, [l("div", ve, [(a(), f(i(e.severity === "high" ? m(x) : e.severity === "medium" ? m(oe) : m(ae)), {
217
218
  size: 13,
218
219
  "stroke-width": 2,
219
220
  class: "tpl:mt-0.5 tpl:shrink-0",
220
- style: d({ color: p(M)(n.severity) })
221
- }, null, 8, ["style"])), s("div", ye, [
222
- s("div", be, [s("span", {
221
+ style: t({ color: m(M)(e.severity) })
222
+ }, null, 8, ["style"])), l("div", ye, [
223
+ l("div", be, [l("span", {
223
224
  class: "tpl:mt-0.5 tpl:shrink-0 tpl:rounded tpl:px-1 tpl:py-px tpl:text-[10px] tpl:font-medium tpl:leading-tight",
224
- style: d({
225
- color: p(M)(n.severity),
226
- backgroundColor: p(N)(n.severity)
225
+ style: t({
226
+ color: m(M)(e.severity),
227
+ backgroundColor: m(N)(e.severity)
227
228
  })
228
- }, m(p(K).scoring.severity[n.severity]), 5), s("span", xe, m(n.message), 1)]),
229
- n.suggestion ? (e(), c("p", Se, m(n.suggestion), 1)) : u("", !0),
230
- n.blockId ? (e(), c("div", Ce, [s("button", {
229
+ }, o(m(K).scoring.severity[e.severity]), 5), l("span", xe, o(e.message), 1)]),
230
+ e.suggestion ? (a(), u("p", Se, o(e.suggestion), 1)) : g("", !0),
231
+ e.blockId ? (a(), u("div", Ce, [l("button", {
231
232
  class: "tpl-scoring-fix-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded tpl:border tpl:px-3 tpl:py-1.5 tpl:text-[11px] tpl:font-medium tpl:transition-all tpl:duration-150 tpl:disabled:opacity-50 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)]",
232
233
  style: { "background-color": "transparent" },
233
- disabled: p(J).fixingFindingId.value !== null,
234
- onClick: (e) => je(n)
235
- }, [p(J).fixingFindingId.value === n.id ? (e(), f(p(x), {
234
+ disabled: m(J).fixingFindingId.value !== null,
235
+ onClick: (t) => je(e)
236
+ }, [m(J).fixingFindingId.value === e.id ? (a(), f(m(w), {
236
237
  key: 0,
237
238
  class: "tpl-spinner",
238
239
  size: 11,
239
240
  "stroke-width": 2
240
- })) : (e(), f(p(S), {
241
+ })) : (a(), f(m(E), {
241
242
  key: 1,
242
243
  size: 11,
243
244
  "stroke-width": 2
244
- })), a(" " + m(p(J).fixingFindingId.value === n.id ? p(K).scoring.fixing : p(K).scoring.fix), 1)], 8, we), p(J).fixError.value ? (e(), c("p", Te, m(p(J).fixError.value), 1)) : u("", !0)])) : u("", !0)
245
- ])])]))), 128))])) : u("", !0)])), 64))
246
- ])) : (e(), c("div", Ee, [g(p(T), {
245
+ })), p(" " + o(m(J).fixingFindingId.value === e.id ? m(K).scoring.fixing : m(K).scoring.fix), 1)], 8, we), m(J).fixError.value ? (a(), u("p", Te, o(m(J).fixError.value), 1)) : g("", !0)])) : g("", !0)
246
+ ])])]))), 128))])) : g("", !0)])), 64))
247
+ ])) : (a(), u("div", Ee, [d(m(T), {
247
248
  size: 32,
248
249
  "stroke-width": 1.5,
249
250
  class: "tpl:text-[var(--tpl-text-dim)]"
250
- }), s("p", De, m(p(K).scoring.emptyState), 1)])), s("p", Oe, m(p(K).aiMenu.disclaimer), 1)])])) : u("", !0)]),
251
+ }), l("p", De, o(m(K).scoring.emptyState), 1)])), l("p", Oe, o(m(K).aiMenu.disclaimer), 1)])])) : g("", !0)]),
251
252
  _: 1
252
253
  }));
253
254
  }
@@ -1,8 +1,9 @@
1
- import { A as e, B as t, L as n, M as r, X as i, _ as a, at as o, b as s, f as c, h as l, i as u, l as d, m as f, p, rt as m, st as h, v as g, z as _ } from "./vue.runtime.esm-bundler-B2k01iQh.js";
2
- import "./useEditorCore-DKYZ7aKk.js";
3
- import { t as v } from "./loader-circle-CDF8eR_Q.js";
4
- import { n as y } from "./useCloudI18n-L3H2XvdW.js";
5
- import { t as b } from "./TplModal-BYb-X5Bj.js";
1
+ import { A as e, Et as t, I as n, O as r, Ot as i, R as a, Y as o, _ as s, c, d as l, h as u, l as d, m as f, nt as p, r as m, u as h, z as g } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
2
+ import { i as _ } from "./runtime-dom.esm-bundler-BzuoCyNp.js";
3
+ import "./useEditorCore-vcWLdnjN.js";
4
+ import { t as v } from "./loader-circle-BLmicnPG.js";
5
+ import { n as y } from "./useCloudI18n-AKCy98qD.js";
6
+ import { t as b } from "./TplModal-Br2VG6cn.js";
6
7
  //#region src/cloud/components/TestEmailModal.vue?vue&type=script&setup=true&lang.ts
7
8
  var x = ["aria-busy"], S = {
8
9
  id: "tpl-test-email-title",
@@ -24,7 +25,7 @@ var x = ["aria-busy"], S = {
24
25
  },
25
26
  emits: ["send", "close"],
26
27
  setup(s, { emit: P }) {
27
- let F = s, I = P, { t: L } = y(), R = i("");
28
+ let F = s, I = P, { t: L } = y(), R = o("");
28
29
  n(() => F.visible, (e) => {
29
30
  e && (R.value = F.allowedEmails[0] ?? "");
30
31
  });
@@ -37,12 +38,12 @@ var x = ["aria-busy"], S = {
37
38
  function V(e) {
38
39
  e.key === "Enter" && !e.shiftKey && (e.preventDefault(), z()), e.key === "Escape" && B();
39
40
  }
40
- return (n, i) => (e(), p(b, {
41
+ return (n, o) => (r(), d(b, {
41
42
  visible: s.visible,
42
43
  onClose: B,
43
44
  onKeydown: V
44
45
  }, {
45
- default: _(() => [c("div", {
46
+ default: a(() => [c("div", {
46
47
  role: "dialog",
47
48
  "aria-modal": "true",
48
49
  "aria-busy": s.isSending,
@@ -53,38 +54,38 @@ var x = ["aria-busy"], S = {
53
54
  "box-shadow": "var(--tpl-shadow-xl)"
54
55
  }
55
56
  }, [
56
- c("h3", S, h(m(L).testEmail.title), 1),
57
- c("div", C, [c("label", w, h(m(L).testEmail.recipientLabel), 1), s.allowedEmails.length === 1 ? (e(), l("input", {
57
+ c("h3", S, i(p(L).testEmail.title), 1),
58
+ c("div", C, [c("label", w, i(p(L).testEmail.recipientLabel), 1), s.allowedEmails.length === 1 ? (r(), l("input", {
58
59
  key: 0,
59
60
  type: "text",
60
61
  value: R.value,
61
62
  disabled: "",
62
63
  class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:opacity-70 tpl:shadow-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
63
- }, null, 8, T)) : t((e(), l("select", {
64
+ }, null, 8, T)) : g((r(), l("select", {
64
65
  key: 1,
65
- "onUpdate:modelValue": i[0] ||= (e) => R.value = e,
66
+ "onUpdate:modelValue": o[0] ||= (e) => R.value = e,
66
67
  class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:shadow-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
67
68
  disabled: s.isSending
68
- }, [(e(!0), l(d, null, r(s.allowedEmails, (t) => (e(), l("option", {
69
- key: t,
70
- value: t
71
- }, h(t), 9, D))), 128))], 8, E)), [[u, R.value]])]),
72
- s.error ? (e(), l("p", O, h(s.error), 1)) : f("", !0),
69
+ }, [(r(!0), l(m, null, e(s.allowedEmails, (e) => (r(), l("option", {
70
+ key: e,
71
+ value: e
72
+ }, i(e), 9, D))), 128))], 8, E)), [[_, R.value]])]),
73
+ s.error ? (r(), l("p", O, i(s.error), 1)) : h("", !0),
73
74
  c("div", k, [c("button", {
74
75
  type: "button",
75
- class: o(["tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]", { "tpl:cursor-not-allowed tpl:opacity-50": s.isSending }]),
76
+ class: t(["tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]", { "tpl:cursor-not-allowed tpl:opacity-50": s.isSending }]),
76
77
  disabled: s.isSending,
77
78
  onClick: B
78
- }, h(m(L).testEmail.cancel), 11, A), c("button", {
79
+ }, i(p(L).testEmail.cancel), 11, A), c("button", {
79
80
  type: "button",
80
81
  class: "tpl:cursor-pointer tpl:rounded-md tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
81
82
  disabled: !R.value || s.isSending,
82
83
  onClick: z
83
- }, [s.isSending ? (e(), l("span", M, [g(m(v), {
84
+ }, [s.isSending ? (r(), l("span", M, [u(p(v), {
84
85
  class: "tpl:animate-spin",
85
86
  size: 12,
86
87
  "stroke-width": 2
87
- }), a(" " + h(m(L).testEmail.sending), 1)])) : (e(), l("span", N, h(m(L).testEmail.send), 1))], 8, j)])
88
+ }), f(" " + i(p(L).testEmail.sending), 1)])) : (r(), l("span", N, i(p(L).testEmail.send), 1))], 8, j)])
88
89
  ], 8, x)]),
89
90
  _: 1
90
91
  }, 8, ["visible"]));
@@ -0,0 +1,193 @@
1
+ import { Dt as e, Et as t, O as n, Ot as r, W as i, _ as a, c as o, d as s, h as c, i as l, l as u, m as d, nt as f, r as p, s as m, u as h, x as g } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
2
+ import { x as _ } from "./useEditorCore-vcWLdnjN.js";
3
+ import { I as v, P as y, w as b, x as ee } from "./keys-Cv8-8GsD.js";
4
+ import { t as te } from "./useI18n-C-TDeJBt.js";
5
+ import { a as ne, i as re, n as ie, r as ae, t as oe } from "./RichTextEditorContent-BqLHIZY7.js";
6
+ import { n as se, t as x } from "./scan-line-DgijVq9y.js";
7
+ import { t as S } from "./loader-circle-BLmicnPG.js";
8
+ import { t as C } from "./usePopoverRoot-DKUDnr55.js";
9
+ //#region src/components/blocks/TitleEditor.vue?vue&type=script&setup=true&lang.ts
10
+ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme", "aria-label"], E = ["aria-label", "title"], D = ["aria-label", "title"], O = ["aria-label", "title"], k = {
11
+ key: 0,
12
+ class: "tpl:mx-1.5 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]"
13
+ }, A = ["aria-label", "title"], j = {
14
+ key: 2,
15
+ class: "tpl:mx-1.5 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]"
16
+ }, M = ["aria-label", "title"], N = {
17
+ key: 1,
18
+ class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
19
+ }, P = /* @__PURE__ */ a({
20
+ __name: "TitleEditor",
21
+ props: {
22
+ block: {},
23
+ toolbarPosition: {}
24
+ },
25
+ emits: ["done"],
26
+ setup(a, { emit: P }) {
27
+ let F = a, I = P, L = g(y, null), R = g(v, null), z = C(), B = g(b, null), ce = g(ee, null), V = m(() => (B?.isOpen.value ?? !1) || (ce?.isOpen.value ?? !1)), { t: H } = te(), { editor: U, EditorContent: W, isLoading: G, initError: le, retry: ue, showLinkDialog: de, linkUrl: K, linkDialogRef: q, canRequestMergeTag: J, canInsertLogicTag: Y, openLinkDialog: X, insertLink: Z, removeLink: fe, closeLinkDialog: pe, handleLinkKeydown: me, handleAddMergeTag: Q, handleAddLogicTag: $ } = _({
28
+ blockId: () => F.block.id,
29
+ blockContent: () => F.block.content,
30
+ onDone: () => I("done"),
31
+ editorName: "TitleEditor",
32
+ async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
33
+ let [{ Editor: a, EditorContent: o }, { default: s }, { default: c }, { MergeTagNode: l, MergeTagSuggestion: u, LogicMergeTagNode: d }] = await Promise.all([
34
+ import("./dist-BsCGIDSt.js").then((e) => e.r),
35
+ import("./dist-CNXDNYQn.js"),
36
+ import("./dist-B5Sov3sS.js"),
37
+ import("./extensions-DwaZAqm6.js")
38
+ ]);
39
+ return {
40
+ TiptapEditor: a,
41
+ EC: o,
42
+ extensions: [
43
+ s.configure({
44
+ heading: !1,
45
+ codeBlock: !1,
46
+ blockquote: !1,
47
+ horizontalRule: !1,
48
+ bulletList: !1,
49
+ orderedList: !1,
50
+ listItem: !1,
51
+ strike: !1
52
+ }),
53
+ c.configure({
54
+ openOnClick: !1,
55
+ HTMLAttributes: {
56
+ target: "_blank",
57
+ rel: "noopener noreferrer"
58
+ }
59
+ }),
60
+ l.configure({
61
+ mergeTags: e,
62
+ syntax: t
63
+ }),
64
+ d.configure({ syntax: t }),
65
+ ...r && n && e.length > 0 ? [u.configure({
66
+ mergeTags: e,
67
+ char: n,
68
+ emptyText: i,
69
+ popoverRoot: z
70
+ })] : []
71
+ ]
72
+ };
73
+ }
74
+ });
75
+ return (m, g) => (n(), s("div", w, [
76
+ f(z) && !V.value ? (n(), u(l, {
77
+ key: 0,
78
+ to: f(z)
79
+ }, [o("div", {
80
+ "data-tpl-theme": f(R),
81
+ role: "toolbar",
82
+ "aria-label": f(H).titleEditor.toolbar,
83
+ class: "tpl tpl-text-toolbar tpl:fixed tpl:z-popover tpl:flex tpl:items-center 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",
84
+ style: e({
85
+ ...f(L),
86
+ top: `${a.toolbarPosition.top}px`,
87
+ left: `${a.toolbarPosition.left}px`,
88
+ transform: "translateY(-100%)"
89
+ })
90
+ }, [!f(G) && f(U) ? (n(), s(p, { key: 0 }, [
91
+ o("button", {
92
+ type: "button",
93
+ class: t(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(U)?.isActive("bold") }]),
94
+ "aria-label": f(H).titleEditor.bold,
95
+ title: f(H).titleEditor.bold,
96
+ onClick: g[0] ||= (e) => f(U)?.chain().focus().toggleBold().run()
97
+ }, [c(f(ne), {
98
+ size: 16,
99
+ "stroke-width": 2.5
100
+ })], 10, E),
101
+ o("button", {
102
+ type: "button",
103
+ class: t(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(U)?.isActive("italic") }]),
104
+ "aria-label": f(H).titleEditor.italic,
105
+ title: f(H).titleEditor.italic,
106
+ onClick: g[1] ||= (e) => f(U)?.chain().focus().toggleItalic().run()
107
+ }, [c(f(re), {
108
+ size: 16,
109
+ "stroke-width": 2
110
+ })], 10, D),
111
+ g[7] ||= o("span", {
112
+ class: "tpl:mx-1.5 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
113
+ "aria-hidden": "true"
114
+ }, null, -1),
115
+ o("button", {
116
+ type: "button",
117
+ class: t(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(U)?.isActive("link") }]),
118
+ "aria-label": f(H).titleEditor.addLink,
119
+ title: f(H).titleEditor.addLink,
120
+ onClick: g[2] ||= (...e) => f(X) && f(X)(...e)
121
+ }, [c(f(ae), {
122
+ size: 16,
123
+ "stroke-width": 2
124
+ })], 10, O),
125
+ f(J) ? (n(), s("span", k)) : h("", !0),
126
+ f(J) ? (n(), s("button", {
127
+ key: 1,
128
+ type: "button",
129
+ 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)]",
130
+ "aria-label": f(H).mergeTag.insert,
131
+ title: f(H).mergeTag.insert,
132
+ onClick: g[3] ||= (...e) => f(Q) && f(Q)(...e)
133
+ }, [c(f(x), {
134
+ size: 16,
135
+ "stroke-width": 2
136
+ }), d(" " + r(f(H).mergeTag.insertShort), 1)], 8, A)) : h("", !0),
137
+ f(Y) ? (n(), s("span", j)) : h("", !0),
138
+ f(Y) ? (n(), s("button", {
139
+ key: 3,
140
+ type: "button",
141
+ 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)]",
142
+ "aria-label": f(H).logicTag.insert,
143
+ title: f(H).logicTag.insert,
144
+ "data-testid": "insert-logic-button",
145
+ onClick: g[4] ||= (...e) => f($) && f($)(...e)
146
+ }, [c(f(se), {
147
+ size: 16,
148
+ "stroke-width": 2
149
+ }), d(" " + r(f(H).logicTag.insertShort), 1)], 8, M)) : h("", !0)
150
+ ], 64)) : (n(), s("div", N, [c(f(S), {
151
+ class: "tpl-spinner",
152
+ size: 14,
153
+ "stroke-width": 2
154
+ }), d(" " + r(f(H).errors.editorLoading), 1)]))], 12, T)], 8, ["to"])) : h("", !0),
155
+ c(oe, {
156
+ editor: f(U),
157
+ "editor-content": f(W),
158
+ "is-loading": f(G),
159
+ "init-error": f(le),
160
+ onRetry: f(ue)
161
+ }, null, 8, [
162
+ "editor",
163
+ "editor-content",
164
+ "is-loading",
165
+ "init-error",
166
+ "onRetry"
167
+ ]),
168
+ c(ie, {
169
+ visible: f(de),
170
+ "is-editing-link": f(U)?.isActive("link") ?? !1,
171
+ "dialog-ref": f(q),
172
+ "onUpdate:dialogRef": g[5] ||= (e) => i(q) ? q.value = e : null,
173
+ "link-url": f(K),
174
+ "onUpdate:linkUrl": g[6] ||= (e) => i(K) ? K.value = e : null,
175
+ onClose: f(pe),
176
+ onInsert: f(Z),
177
+ onRemove: f(fe),
178
+ onKeydown: f(me)
179
+ }, null, 8, [
180
+ "visible",
181
+ "is-editing-link",
182
+ "dialog-ref",
183
+ "link-url",
184
+ "onClose",
185
+ "onInsert",
186
+ "onRemove",
187
+ "onKeydown"
188
+ ])
189
+ ]));
190
+ }
191
+ });
192
+ //#endregion
193
+ export { P as default };
@@ -1,7 +1,8 @@
1
- import { A as e, N as t, X as n, b as r, c as i, d as a, f as o, h as s, m as c, p as l, rt as u, t as d, u as f, v as p, w as m, z as h } from "./vue.runtime.esm-bundler-B2k01iQh.js";
2
- import { T as g } from "./useEditorCore-DKYZ7aKk.js";
3
- import { M as _ } from "./keys-mFiJ5N0_.js";
4
- import { t as v } from "./usePopoverRoot-DVh7NY1q.js";
1
+ import { O as e, R as t, Y as n, _ as r, c as i, d as a, h as o, i as s, j as c, l, nt as u, s as d, u as f, x as p } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
2
+ import { c as m, t as h } from "./runtime-dom.esm-bundler-BzuoCyNp.js";
3
+ import { E as g } from "./useEditorCore-vcWLdnjN.js";
4
+ import { I as _ } from "./keys-Cv8-8GsD.js";
5
+ import { t as v } from "./usePopoverRoot-DKUDnr55.js";
5
6
  //#region src/components/TplModal.vue?vue&type=script&setup=true&lang.ts
6
7
  var y = ["data-tpl-theme"], b = /* @__PURE__ */ r({
7
8
  __name: "TplModal",
@@ -9,15 +10,15 @@ var y = ["data-tpl-theme"], b = /* @__PURE__ */ r({
9
10
  emits: ["close", "keydown"],
10
11
  setup(r, { emit: b }) {
11
12
  let x = r, S = b, C = n(null);
12
- g(C, a(() => x.visible));
13
- let w = m(_), T = v();
13
+ g(C, d(() => x.visible));
14
+ let w = p(_), T = v();
14
15
  function E(e) {
15
16
  e.key === "Escape" && S("close"), S("keydown", e);
16
17
  }
17
- return (n, a) => u(T) ? (e(), l(f, {
18
+ return (n, d) => u(T) ? (e(), l(s, {
18
19
  key: 0,
19
20
  to: u(T)
20
- }, [p(d, {
21
+ }, [o(h, {
21
22
  "enter-active-class": "tpl:transition tpl:duration-150",
22
23
  "enter-from-class": "tpl:opacity-0",
23
24
  "enter-to-class": "tpl:opacity-100",
@@ -25,7 +26,7 @@ var y = ["data-tpl-theme"], b = /* @__PURE__ */ r({
25
26
  "leave-from-class": "tpl:opacity-100",
26
27
  "leave-to-class": "tpl:opacity-0"
27
28
  }, {
28
- default: h(() => [r.visible ? (e(), s("div", {
29
+ default: t(() => [r.visible ? (e(), a("div", {
29
30
  key: 0,
30
31
  "data-tpl-theme": u(w),
31
32
  class: "tpl tpl:fixed tpl:inset-0 tpl:z-modal tpl:flex tpl:items-center tpl:justify-center",
@@ -34,14 +35,14 @@ var y = ["data-tpl-theme"], b = /* @__PURE__ */ r({
34
35
  "backdrop-filter": "blur(8px)",
35
36
  "-webkit-backdrop-filter": "blur(8px)"
36
37
  },
37
- onClick: a[0] ||= i((e) => S("close"), ["self"]),
38
+ onClick: d[0] ||= m((e) => S("close"), ["self"]),
38
39
  onKeydown: E
39
- }, [o("div", {
40
+ }, [i("div", {
40
41
  ref_key: "dialogRef",
41
42
  ref: C
42
- }, [t(n.$slots, "default")], 512)], 40, y)) : c("", !0)]),
43
+ }, [c(n.$slots, "default")], 512)], 40, y)) : f("", !0)]),
43
44
  _: 3
44
- })], 8, ["to"])) : c("", !0);
45
+ })], 8, ["to"])) : f("", !0);
45
46
  }
46
47
  });
47
48
  //#endregion
@@ -1,5 +1,5 @@
1
- import { A as e, D as t, N as n, O as r, k as i } from "./useEditorCore-DKYZ7aKk.js";
2
- import { t as a } from "./createLucideIcon-CmPAC-gt.js";
1
+ import { A as e, O as t, P as n, j as r, k as i } from "./useEditorCore-vcWLdnjN.js";
2
+ import { t as a } from "./createLucideIcon-Dx-EjR9r.js";
3
3
  var o = a("columns-3", [
4
4
  ["rect", {
5
5
  width: "18",
@@ -98,12 +98,12 @@ var o = a("columns-3", [
98
98
  section: o,
99
99
  title: s,
100
100
  paragraph: d,
101
- image: e,
101
+ image: r,
102
102
  button: p,
103
103
  divider: c,
104
104
  video: f,
105
- social: r,
106
- menu: i,
105
+ social: i,
106
+ menu: e,
107
107
  table: t,
108
108
  spacer: l,
109
109
  countdown: a("timer", [