@templatical/editor 0.14.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/dist/{AiChatSidebar-J8iO_sX7.js → AiChatSidebar-BIKvYREk.js} +57 -56
  2. package/dist/{AiFeatureMenu-F2diEDgV.js → AiFeatureMenu-CU6kTMTf.js} +20 -20
  3. package/dist/{BlockIssueBadge-a-qlByxF.js → BlockIssueBadge-B3xVgMTh.js} +11 -11
  4. package/dist/{CloudEditor-CDjtwb4i.js → CloudEditor-DRPxvUEj.js} +470 -468
  5. package/dist/{CollaboratorBar-B_EnJLtW.js → CollaboratorBar-DMSjd3HZ.js} +20 -20
  6. package/dist/{CommentsSidebar-DaP9BA_r.js → CommentsSidebar-D_tSGvTX.js} +154 -153
  7. package/dist/CountdownBlock-apiYUhkQ.js +92 -0
  8. package/dist/CountdownToolbar-CS0axcjz.js +210 -0
  9. package/dist/{DesignReferenceSidebar-BHRlTqlT.js → DesignReferenceSidebar-DWYK9nTk.js} +58 -57
  10. package/dist/{IssuesPanel-u7ee3Wrl.js → IssuesPanel-CR1MPaDE.js} +40 -40
  11. package/dist/{LoadingTrack-CV3ID80N.js → LoadingTrack-DsecR8Rw.js} +1 -1
  12. package/dist/MergeTagSuggestion-CH2SUxBo.js +1327 -0
  13. package/dist/{ModuleBrowserModal-DOsdaS6s.js → ModuleBrowserModal-BOzleijA.js} +60 -59
  14. package/dist/{ModulePreviewCanvas-Cx4MOJ0X.js → ModulePreviewCanvas-Cg99Pbde.js} +29 -29
  15. package/dist/{NumberWithSuffix-D2mW_DhT.js → NumberWithSuffix-CrA6quxx.js} +143 -142
  16. package/dist/{ParagraphEditor-DMzkVnST.js → ParagraphEditor-8jnzoL0A.js} +250 -247
  17. package/dist/{RichTextEditorContent-CRCxCwKf.js → RichTextEditorContent-BqLHIZY7.js} +45 -44
  18. package/dist/{SaveModuleDialog-DuEKgumL.js → SaveModuleDialog-Cy2XyjYT.js} +38 -37
  19. package/dist/{SnapshotHistory-CVgiNJtE.js → SnapshotHistory-cfxmOsJu.js} +34 -33
  20. package/dist/{TemplateScoringPanel-lm0_9nYi.js → TemplateScoringPanel-CZ62rGHz.js} +83 -82
  21. package/dist/{TestEmailModal-WBMdiW5S.js → TestEmailModal-sr1MaMVX.js} +22 -21
  22. package/dist/{TitleEditor-eyT0h-Sa.js → TitleEditor-CvGTprIg.js} +46 -45
  23. package/dist/{TplModal-tjQ7OB0g.js → TplModal-BtKB-0Bx.js} +14 -13
  24. package/dist/{blockTypeIcons-DdB3uTKD.js → blockTypeIcons-BxEbbev5.js} +2 -2
  25. package/dist/bundle-stats.json +8 -8
  26. package/dist/cdn/chunks/{AiFeatureMenu-D7rB2SBs.js → AiFeatureMenu-fDUpv_-s.js} +5 -5
  27. package/dist/cdn/chunks/{AiFeatureMenu-D7rB2SBs.js.map → AiFeatureMenu-fDUpv_-s.js.map} +1 -1
  28. package/dist/cdn/chunks/{BlockIssueBadge-DHOe0pgx.js → BlockIssueBadge-Byce0j0W.js} +3 -3
  29. package/dist/cdn/chunks/{BlockIssueBadge-DHOe0pgx.js.map → BlockIssueBadge-Byce0j0W.js.map} +1 -1
  30. package/dist/cdn/chunks/{CloudEditor-DNed_Ym0.js → CloudEditor-B4m8ldiE.js} +89 -89
  31. package/dist/cdn/chunks/{CloudEditor-DNed_Ym0.js.map → CloudEditor-B4m8ldiE.js.map} +1 -1
  32. package/dist/cdn/chunks/{CollaboratorBar-sj_9Lee3.js → CollaboratorBar-LnLmjxw_.js} +4 -4
  33. package/dist/cdn/chunks/{CollaboratorBar-sj_9Lee3.js.map → CollaboratorBar-LnLmjxw_.js.map} +1 -1
  34. package/dist/cdn/chunks/{CountdownBlock-C1Ikjpn4.js → CountdownBlock-DxTuMRBM.js} +3 -3
  35. package/dist/cdn/chunks/{CountdownBlock-C1Ikjpn4.js.map → CountdownBlock-DxTuMRBM.js.map} +1 -1
  36. package/dist/cdn/chunks/{CountdownToolbar-j1G_X8rB.js → CountdownToolbar-DUrVfQZH.js} +4 -4
  37. package/dist/cdn/chunks/{CountdownToolbar-j1G_X8rB.js.map → CountdownToolbar-DUrVfQZH.js.map} +1 -1
  38. package/dist/cdn/chunks/{IssuesPanel-CTOf3PsH.js → IssuesPanel-CHl90k4h.js} +4 -4
  39. package/dist/cdn/chunks/{IssuesPanel-CTOf3PsH.js.map → IssuesPanel-CHl90k4h.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-DCh88-rr.js → ModuleBrowserModal-DW0iQW0J.js} +6 -6
  43. package/dist/cdn/chunks/{ModuleBrowserModal-DCh88-rr.js.map → ModuleBrowserModal-DW0iQW0J.js.map} +1 -1
  44. package/dist/cdn/chunks/{ModulePreviewCanvas-DJqvTKmg.js → ModulePreviewCanvas-Cxo8v8t1.js} +3 -3
  45. package/dist/cdn/chunks/{ModulePreviewCanvas-DJqvTKmg.js.map → ModulePreviewCanvas-Cxo8v8t1.js.map} +1 -1
  46. package/dist/cdn/chunks/{NumberWithSuffix-Bu45XWSl.js → NumberWithSuffix-CnSRmUMK.js} +6 -6
  47. package/dist/cdn/chunks/{NumberWithSuffix-Bu45XWSl.js.map → NumberWithSuffix-CnSRmUMK.js.map} +1 -1
  48. package/dist/cdn/chunks/{ParagraphEditor-DwZqLJp2.js → ParagraphEditor-iG5cDjH0.js} +25 -23
  49. package/dist/cdn/chunks/{ParagraphEditor-DwZqLJp2.js.map → ParagraphEditor-iG5cDjH0.js.map} +1 -1
  50. package/dist/cdn/chunks/{RichTextEditorContent-CIuZ-2DV.js → RichTextEditorContent-DQpgeGMj.js} +4 -4
  51. package/dist/cdn/chunks/{RichTextEditorContent-CIuZ-2DV.js.map → RichTextEditorContent-DQpgeGMj.js.map} +1 -1
  52. package/dist/cdn/chunks/{SaveModuleDialog-Bep0X2s_.js → SaveModuleDialog-sJQXg2Mh.js} +3 -3
  53. package/dist/cdn/chunks/{SaveModuleDialog-Bep0X2s_.js.map → SaveModuleDialog-sJQXg2Mh.js.map} +1 -1
  54. package/dist/cdn/chunks/{TitleEditor-DO1-h3RY.js → TitleEditor-C8qIn9Oi.js} +12 -11
  55. package/dist/cdn/chunks/TitleEditor-C8qIn9Oi.js.map +1 -0
  56. package/dist/cdn/chunks/{blockTypeIcons-8o24HVJu.js → blockTypeIcons-DySnOpPo.js} +3 -3
  57. package/dist/cdn/chunks/{blockTypeIcons-8o24HVJu.js.map → blockTypeIcons-DySnOpPo.js.map} +1 -1
  58. package/dist/cdn/chunks/{draggable-kPCz_3zM.js → draggable-kG-D5Xsm.js} +6 -6
  59. package/dist/cdn/chunks/draggable-kG-D5Xsm.js.map +1 -0
  60. package/dist/cdn/chunks/extensions-C2pTX899.js +421 -0
  61. package/dist/cdn/chunks/extensions-C2pTX899.js.map +1 -0
  62. package/dist/cdn/chunks/{features-CkTMVylx.js → features-CHE3YjQE.js} +886 -837
  63. package/dist/cdn/chunks/features-CHE3YjQE.js.map +1 -0
  64. package/dist/cdn/chunks/{icons-9zjCuoJx.js → icons-M4uqBV-_.js} +26 -26
  65. package/dist/cdn/chunks/{icons-9zjCuoJx.js.map → icons-M4uqBV-_.js.map} +1 -1
  66. package/dist/cdn/chunks/{liquid.browser-DKKBzRQu.js → liquid.browser-BJOEu6Cg.js} +693 -678
  67. package/dist/cdn/chunks/liquid.browser-BJOEu6Cg.js.map +1 -0
  68. package/dist/cdn/chunks/{media-library-DMRIPx4g.js → media-library-Bqr15VN2.js} +33 -33
  69. package/dist/cdn/chunks/{media-library-DMRIPx4g.js.map → media-library-Bqr15VN2.js.map} +1 -1
  70. package/dist/cdn/chunks/{pusher-CdEqyLwF.js → pusher-CIwiKF8H.js} +4 -4
  71. package/dist/cdn/chunks/{pusher-CdEqyLwF.js.map → pusher-CIwiKF8H.js.map} +1 -1
  72. package/dist/cdn/chunks/{quality-CyeUgs_c.js → quality-DJZ_fqc2.js} +112 -112
  73. package/dist/cdn/chunks/{quality-CyeUgs_c.js.map → quality-DJZ_fqc2.js.map} +1 -1
  74. package/dist/cdn/chunks/{renderer-BIKUEKDD.js → renderer-CyzTR1Vq.js} +20 -20
  75. package/dist/cdn/chunks/renderer-CyzTR1Vq.js.map +1 -0
  76. package/dist/cdn/chunks/{src-pDy_imWG.js → src-q-SBgWx7.js} +5 -5
  77. package/dist/cdn/chunks/{src-pDy_imWG.js.map → src-q-SBgWx7.js.map} +1 -1
  78. package/dist/cdn/chunks/{styles-D4Bd3SCx.js → styles-PWISdaws.js} +1484 -1344
  79. package/dist/cdn/chunks/styles-PWISdaws.js.map +1 -0
  80. package/dist/cdn/chunks/{tiptap-BlLFFU3M.js → tiptap-DF9PEiqH.js} +6859 -6823
  81. package/dist/cdn/chunks/tiptap-DF9PEiqH.js.map +1 -0
  82. package/dist/cdn/editor.css +1 -1
  83. package/dist/cdn/editor.js +35 -35
  84. package/dist/cdn/editor.js.map +1 -1
  85. package/dist/{check-CYJwFmjy.js → check-rl7ok6uJ.js} +1 -1
  86. package/dist/{chevron-down-C5l-DzAA.js → chevron-down-BKe__NOD.js} +1 -1
  87. package/dist/{circle-alert-wf5HUFZY.js → circle-alert-C8xmpMsK.js} +1 -1
  88. package/dist/{clock-Bj0bQw-K.js → clock-BW4JuDCN.js} +1 -1
  89. package/dist/{cloud-CoFDm9YA.js → cloud-BQusL53H.js} +208 -208
  90. package/dist/createLucideIcon-Dx-EjR9r.js +43 -0
  91. package/dist/{dist-CLpPNKy9.js → dist-B5Sov3sS.js} +7 -7
  92. package/dist/dist-BEWiuOMi.js +251 -0
  93. package/dist/{dist-CrQZ_af9.js → dist-BFmE-7hB.js} +2 -2
  94. package/dist/{dist-U5vfDdYI.js → dist-BMoa33wT.js} +2 -2
  95. package/dist/{dist-BctFrpeA.js → dist-BibU4HNl.js} +74 -65
  96. package/dist/{dist-Dd3ibRZm.js → dist-BsCGIDSt.js} +103 -102
  97. package/dist/dist-CNLKj9wa.js +5 -0
  98. package/dist/{dist-BX3gGwL8.js → dist-CNXDNYQn.js} +728 -694
  99. package/dist/{dist-Bn703mnA.js → dist-COG3IdPK.js} +3 -3
  100. package/dist/{dist-B7w6xTU6.js → dist-CQZxDvFw.js} +3 -3
  101. package/dist/{dist-34OcyoK1.js → dist-CRsjOQM-.js} +2 -2
  102. package/dist/dist-CTT6WYJ6.js +134 -0
  103. package/dist/dist-Cqa6aeAJ.js +5 -0
  104. package/dist/{dist-ChMninLH.js → dist-SXJJ2v41.js} +2 -2
  105. package/dist/{dist-CyjyYg52.js → dist-itdjZraK.js} +28 -23
  106. package/dist/extensions-DwaZAqm6.js +423 -0
  107. package/dist/{image-up-x8-WXfsx.js → image-up-BwBCmQ4P.js} +1 -1
  108. package/dist/{info-RS_fGcGi.js → info-TCn7uWR5.js} +1 -1
  109. package/dist/{keys-DgYXDafq.js → keys-Cv8-8GsD.js} +1 -1
  110. package/dist/{liquid.browser-CVjP5Mex.js → liquid.browser-DZLtv26k.js} +692 -677
  111. package/dist/{list-checks-Bf7XdDyv.js → list-checks-CSrOWNgq.js} +1 -1
  112. package/dist/{loader-circle-CLZ0_FvW.js → loader-circle-BLmicnPG.js} +1 -1
  113. package/dist/{message-circle-B-1bN9ab.js → message-circle-C9hHMQCI.js} +1 -1
  114. package/dist/{refresh-cw-CWKWqJYG.js → refresh-cw-D1JQ1LNa.js} +1 -1
  115. package/dist/runtime-dom.esm-bundler-BzuoCyNp.js +523 -0
  116. package/dist/{scan-line-BtK5dEai.js → scan-line-DgijVq9y.js} +1 -1
  117. package/dist/{send-Cn1IUdzh.js → send-DjPdq69F.js} +1 -1
  118. package/dist/{shield-check-CrvMk4Ea.js → shield-check-Bqluu8FS.js} +1 -1
  119. package/dist/{sparkles-CgfjwvnG.js → sparkles-M4azPVSP.js} +1 -1
  120. package/dist/style.css +1 -1
  121. package/dist/styles-B2OrgEnn.js +4164 -0
  122. package/dist/templatical-editor.js +127 -126
  123. package/dist/{text-align-start-C3r_Rnvy.js → text-align-start-CMya5pCQ.js} +11 -11
  124. package/dist/{trash-2-CjERg4x9.js → trash-2-C-81rkLS.js} +1 -1
  125. package/dist/{triangle-alert-Chkny574.js → triangle-alert-BuRWnynk.js} +1 -1
  126. package/dist/{upload-e5kDRkPb.js → upload-CWBIoLd4.js} +1 -1
  127. package/dist/{useAliveFlag-cUQj9rmB.js → useAliveFlag-CECL_OUb.js} +1 -1
  128. package/dist/{useCloudI18n-CYJKqXtI.js → useCloudI18n-AKCy98qD.js} +2 -2
  129. package/dist/{useEditorCore-8JxXDOA4.js → useEditorCore-DJeOXVxQ.js} +1407 -1365
  130. package/dist/{useI18n-BWqM8i78.js → useI18n-C-TDeJBt.js} +2 -2
  131. package/dist/{useMergeTag-NHC4ylza.js → useMergeTag-DSrBY0-2.js} +5 -5
  132. package/dist/usePopoverRoot-DKUDnr55.js +8 -0
  133. package/dist/{vue.runtime.esm-bundler-BPa483TZ.js → vue.runtime.esm-bundler-l0XAqiyv.js} +626 -1147
  134. package/dist/{x-DiPIbccg.js → x-CQSvXnGR.js} +1 -1
  135. package/package.json +26 -26
  136. package/dist/CountdownBlock-DtAokAVw.js +0 -92
  137. package/dist/CountdownToolbar-Dtqgwy0g.js +0 -210
  138. package/dist/cdn/chunks/TitleEditor-DO1-h3RY.js.map +0 -1
  139. package/dist/cdn/chunks/draggable-kPCz_3zM.js.map +0 -1
  140. package/dist/cdn/chunks/extensions-iwBXnEwq.js +0 -605
  141. package/dist/cdn/chunks/extensions-iwBXnEwq.js.map +0 -1
  142. package/dist/cdn/chunks/features-CkTMVylx.js.map +0 -1
  143. package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +0 -1
  144. package/dist/cdn/chunks/renderer-BIKUEKDD.js.map +0 -1
  145. package/dist/cdn/chunks/styles-D4Bd3SCx.js.map +0 -1
  146. package/dist/cdn/chunks/tiptap-BlLFFU3M.js.map +0 -1
  147. package/dist/createLucideIcon-Bad2kKE0.js +0 -43
  148. package/dist/dist-CADDCv0o.js +0 -5
  149. package/dist/dist-CGvz7vkq.js +0 -5
  150. package/dist/dist-DuCzdgDA.js +0 -382
  151. package/dist/extensions-J439b7y7.js +0 -1720
  152. package/dist/styles-BUwDOWd3.js +0 -4022
  153. package/dist/usePopoverRoot-B1sdY4es.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-BPa483TZ.js";
2
- import { L as _, M as re, S as ie, m as v } from "./keys-DgYXDafq.js";
3
- import { t as y } from "./createLucideIcon-Bad2kKE0.js";
4
- import { t as ae } from "./chevron-down-C5l-DzAA.js";
5
- import { t as b } from "./circle-alert-wf5HUFZY.js";
6
- import { n as x, t as S } from "./refresh-cw-CWKWqJYG.js";
7
- import { t as oe } from "./info-RS_fGcGi.js";
8
- import { t as C } from "./loader-circle-CLZ0_FvW.js";
9
- import { t as w } from "./shield-check-CrvMk4Ea.js";
10
- import { t as T } from "./sparkles-CgfjwvnG.js";
11
- import { t as se } from "./triangle-alert-Chkny574.js";
12
- import { t as ce } from "./x-DiPIbccg.js";
13
- import { t as le } from "./LoadingTrack-CV3ID80N.js";
14
- import { t as E } from "./_plugin-vue_export-helper-B3ysoDQm.js";
15
- import { n as D } from "./useCloudI18n-CYJKqXtI.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 = _(v, "TemplateScoringPanel"), J = _(re, "TemplateScoringPanel"), Y = te(ie, []), 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: x,
110
- accessibility: T,
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(w), {
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(S), {
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(S), {
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(ae), {
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(se) : p(oe)), {
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(C), {
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(T), {
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(w), {
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-BPa483TZ.js";
2
- import "./useEditorCore-8JxXDOA4.js";
3
- import { t as v } from "./loader-circle-CLZ0_FvW.js";
4
- import { n as y } from "./useCloudI18n-CYJKqXtI.js";
5
- import { t as b } from "./TplModal-tjQ7OB0g.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-DJeOXVxQ.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-BtKB-0Bx.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"]));
@@ -1,11 +1,11 @@
1
- import { A as e, G as t, _ as n, at as r, b as i, d as a, f as o, h as s, l as c, m as l, ot as u, p as d, rt as f, st as p, u as m, v as h, w as g } from "./vue.runtime.esm-bundler-BPa483TZ.js";
2
- import { x as _ } from "./useEditorCore-8JxXDOA4.js";
3
- import { I as v, P as y, w as b, x } from "./keys-DgYXDafq.js";
4
- import { t as ee } from "./useI18n-BWqM8i78.js";
5
- import { a as te, i as ne, n as re, r as ie, t as ae } from "./RichTextEditorContent-CRCxCwKf.js";
6
- import { n as oe, t as se } from "./scan-line-BtK5dEai.js";
7
- import { t as S } from "./loader-circle-CLZ0_FvW.js";
8
- import { t as C } from "./usePopoverRoot-B1sdY4es.js";
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-DJeOXVxQ.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
9
  //#region src/components/blocks/TitleEditor.vue?vue&type=script&setup=true&lang.ts
10
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
11
  key: 0,
@@ -16,25 +16,25 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
16
16
  }, M = ["aria-label", "title"], N = {
17
17
  key: 1,
18
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__ */ i({
19
+ }, P = /* @__PURE__ */ a({
20
20
  __name: "TitleEditor",
21
21
  props: {
22
22
  block: {},
23
23
  toolbarPosition: {}
24
24
  },
25
25
  emits: ["done"],
26
- setup(i, { emit: P }) {
27
- let F = i, I = P, L = g(y, null), ce = g(v, null), R = C(), z = g(b, null), B = g(x, null), V = a(() => (z?.isOpen.value ?? !1) || (B?.isOpen.value ?? !1)), { t: H } = ee(), { 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: $ } = _({
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
28
  blockId: () => F.block.id,
29
29
  blockContent: () => F.block.content,
30
30
  onDone: () => I("done"),
31
31
  editorName: "TitleEditor",
32
32
  async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
33
33
  let [{ Editor: a, EditorContent: o }, { default: s }, { default: c }, { MergeTagNode: l, MergeTagSuggestion: u, LogicMergeTagNode: d }] = await Promise.all([
34
- import("./dist-Dd3ibRZm.js").then((e) => e.r),
35
- import("./dist-BX3gGwL8.js"),
36
- import("./dist-CLpPNKy9.js"),
37
- import("./extensions-J439b7y7.js")
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
38
  ]);
39
39
  return {
40
40
  TiptapEditor: a,
@@ -48,7 +48,8 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
48
48
  bulletList: !1,
49
49
  orderedList: !1,
50
50
  listItem: !1,
51
- strike: !1
51
+ strike: !1,
52
+ link: !1
52
53
  }),
53
54
  c.configure({
54
55
  openOnClick: !1,
@@ -66,45 +67,45 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
66
67
  mergeTags: e,
67
68
  char: n,
68
69
  emptyText: i,
69
- popoverRoot: R
70
+ popoverRoot: z
70
71
  })] : []
71
72
  ]
72
73
  };
73
74
  }
74
75
  });
75
- return (a, g) => (e(), s("div", w, [
76
- f(R) && !V.value ? (e(), d(m, {
76
+ return (m, g) => (n(), s("div", w, [
77
+ f(z) && !V.value ? (n(), u(l, {
77
78
  key: 0,
78
- to: f(R)
79
+ to: f(z)
79
80
  }, [o("div", {
80
- "data-tpl-theme": f(ce),
81
+ "data-tpl-theme": f(R),
81
82
  role: "toolbar",
82
83
  "aria-label": f(H).titleEditor.toolbar,
83
84
  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: u({
85
+ style: e({
85
86
  ...f(L),
86
- top: `${i.toolbarPosition.top}px`,
87
- left: `${i.toolbarPosition.left}px`,
87
+ top: `${a.toolbarPosition.top}px`,
88
+ left: `${a.toolbarPosition.left}px`,
88
89
  transform: "translateY(-100%)"
89
90
  })
90
- }, [!f(G) && f(U) ? (e(), s(c, { key: 0 }, [
91
+ }, [!f(G) && f(U) ? (n(), s(p, { key: 0 }, [
91
92
  o("button", {
92
93
  type: "button",
93
- class: r(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(U)?.isActive("bold") }]),
94
+ class: t(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(U)?.isActive("bold") }]),
94
95
  "aria-label": f(H).titleEditor.bold,
95
96
  title: f(H).titleEditor.bold,
96
97
  onClick: g[0] ||= (e) => f(U)?.chain().focus().toggleBold().run()
97
- }, [h(f(te), {
98
+ }, [c(f(ne), {
98
99
  size: 16,
99
100
  "stroke-width": 2.5
100
101
  })], 10, E),
101
102
  o("button", {
102
103
  type: "button",
103
- class: r(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(U)?.isActive("italic") }]),
104
+ class: t(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(U)?.isActive("italic") }]),
104
105
  "aria-label": f(H).titleEditor.italic,
105
106
  title: f(H).titleEditor.italic,
106
107
  onClick: g[1] ||= (e) => f(U)?.chain().focus().toggleItalic().run()
107
- }, [h(f(ne), {
108
+ }, [c(f(re), {
108
109
  size: 16,
109
110
  "stroke-width": 2
110
111
  })], 10, D),
@@ -114,28 +115,28 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
114
115
  }, null, -1),
115
116
  o("button", {
116
117
  type: "button",
117
- class: r(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(U)?.isActive("link") }]),
118
+ class: t(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(U)?.isActive("link") }]),
118
119
  "aria-label": f(H).titleEditor.addLink,
119
120
  title: f(H).titleEditor.addLink,
120
121
  onClick: g[2] ||= (...e) => f(X) && f(X)(...e)
121
- }, [h(f(ie), {
122
+ }, [c(f(ae), {
122
123
  size: 16,
123
124
  "stroke-width": 2
124
125
  })], 10, O),
125
- f(J) ? (e(), s("span", k)) : l("", !0),
126
- f(J) ? (e(), s("button", {
126
+ f(J) ? (n(), s("span", k)) : h("", !0),
127
+ f(J) ? (n(), s("button", {
127
128
  key: 1,
128
129
  type: "button",
129
130
  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
131
  "aria-label": f(H).mergeTag.insert,
131
132
  title: f(H).mergeTag.insert,
132
133
  onClick: g[3] ||= (...e) => f(Q) && f(Q)(...e)
133
- }, [h(f(se), {
134
+ }, [c(f(x), {
134
135
  size: 16,
135
136
  "stroke-width": 2
136
- }), n(" " + p(f(H).mergeTag.insertShort), 1)], 8, A)) : l("", !0),
137
- f(Y) ? (e(), s("span", j)) : l("", !0),
138
- f(Y) ? (e(), s("button", {
137
+ }), d(" " + r(f(H).mergeTag.insertShort), 1)], 8, A)) : h("", !0),
138
+ f(Y) ? (n(), s("span", j)) : h("", !0),
139
+ f(Y) ? (n(), s("button", {
139
140
  key: 3,
140
141
  type: "button",
141
142
  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)]",
@@ -143,16 +144,16 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
143
144
  title: f(H).logicTag.insert,
144
145
  "data-testid": "insert-logic-button",
145
146
  onClick: g[4] ||= (...e) => f($) && f($)(...e)
146
- }, [h(f(oe), {
147
+ }, [c(f(se), {
147
148
  size: 16,
148
149
  "stroke-width": 2
149
- }), n(" " + p(f(H).logicTag.insertShort), 1)], 8, M)) : l("", !0)
150
- ], 64)) : (e(), s("div", N, [h(f(S), {
150
+ }), d(" " + r(f(H).logicTag.insertShort), 1)], 8, M)) : h("", !0)
151
+ ], 64)) : (n(), s("div", N, [c(f(S), {
151
152
  class: "tpl-spinner",
152
153
  size: 14,
153
154
  "stroke-width": 2
154
- }), n(" " + p(f(H).errors.editorLoading), 1)]))], 12, T)], 8, ["to"])) : l("", !0),
155
- h(ae, {
155
+ }), d(" " + r(f(H).errors.editorLoading), 1)]))], 12, T)], 8, ["to"])) : h("", !0),
156
+ c(oe, {
156
157
  editor: f(U),
157
158
  "editor-content": f(W),
158
159
  "is-loading": f(G),
@@ -165,13 +166,13 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
165
166
  "init-error",
166
167
  "onRetry"
167
168
  ]),
168
- h(re, {
169
+ c(ie, {
169
170
  visible: f(de),
170
171
  "is-editing-link": f(U)?.isActive("link") ?? !1,
171
172
  "dialog-ref": f(q),
172
- "onUpdate:dialogRef": g[5] ||= (e) => t(q) ? q.value = e : null,
173
+ "onUpdate:dialogRef": g[5] ||= (e) => i(q) ? q.value = e : null,
173
174
  "link-url": f(K),
174
- "onUpdate:linkUrl": g[6] ||= (e) => t(K) ? K.value = e : null,
175
+ "onUpdate:linkUrl": g[6] ||= (e) => i(K) ? K.value = e : null,
175
176
  onClose: f(pe),
176
177
  onInsert: f(Z),
177
178
  onRemove: f(fe),
@@ -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-BPa483TZ.js";
2
- import { E as g } from "./useEditorCore-8JxXDOA4.js";
3
- import { I as _ } from "./keys-DgYXDafq.js";
4
- import { t as v } from "./usePopoverRoot-B1sdY4es.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-DJeOXVxQ.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, O as t, P as n, j as r, k as i } from "./useEditorCore-8JxXDOA4.js";
2
- import { t as a } from "./createLucideIcon-Bad2kKE0.js";
1
+ import { A as e, O as t, P as n, j as r, k as i } from "./useEditorCore-DJeOXVxQ.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",