@aswin.dev/editor 0.7.0 → 0.7.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 (169) hide show
  1. package/README.md +3 -3
  2. package/dist/{AccessibilityPanel-CvQGLdu6.js → AccessibilityPanel-COL6Wm7p.js} +37 -37
  3. package/dist/{AiChatSidebar-B3SJIKG_.js → AiChatSidebar-DWGPVtvC.js} +68 -68
  4. package/dist/{AiFeatureMenu-BLLKoOos.js → AiFeatureMenu-duUFSfDf.js} +22 -22
  5. package/dist/{BlockA11yBadge-CXDLqkcJ.js → BlockA11yBadge-Qs6HtXid.js} +12 -12
  6. package/dist/CloudEditor-CFldoCOb.js +1207 -0
  7. package/dist/{CollaboratorBar-DuPYW5iF.js → CollaboratorBar-Bw-lbt61.js} +21 -21
  8. package/dist/CommentsSidebar-BaD5F53-.js +436 -0
  9. package/dist/CountdownBlock-DaYGxKqo.js +92 -0
  10. package/dist/CountdownToolbar-Dg4F8MTk.js +210 -0
  11. package/dist/{DesignReferenceSidebar-B8V_F2yF.js → DesignReferenceSidebar-BSH7uNP_.js} +58 -58
  12. package/dist/{LoadingTrack-B0CWFHXQ.js → LoadingTrack-Ba2pfF57.js} +2 -2
  13. package/dist/{ModuleBrowserModal-DrUFMTDx.js → ModuleBrowserModal-6phxZSKI.js} +80 -80
  14. package/dist/ModulePreviewCanvas-BW8L3eQX.js +108 -0
  15. package/dist/{NumberWithSuffix-DkXUez9t.js → NumberWithSuffix-BpUzQOJt.js} +87 -87
  16. package/dist/{ParagraphEditor-D75wl3BX.js → ParagraphEditor-DNSzAB-I.js} +182 -182
  17. package/dist/{RichTextEditorContent-DYkIauIk.js → RichTextEditorContent-CrqPQdnk.js} +38 -38
  18. package/dist/{SaveModuleDialog-FZ9lxY7_.js → SaveModuleDialog-zMQTpez7.js} +28 -28
  19. package/dist/{SnapshotHistory-BR3eV120.js → SnapshotHistory-Do-A5rYU.js} +45 -50
  20. package/dist/{TemplateScoringPanel-4GTNHej5.js → TemplateScoringPanel-CS7o62zS.js} +75 -75
  21. package/dist/{TestEmailModal--ue5w9fT.js → TestEmailModal-DGj_9V1u.js} +28 -28
  22. package/dist/{TitleEditor-fStSADI-.js → TitleEditor-C7IDnAoS.js} +68 -68
  23. package/dist/{TplModal-BwSfxIHf.js → TplModal-BAsVzcTb.js} +14 -14
  24. package/dist/{accessibility-e8JYu_zd.js → accessibility-BU09xZrQ.js} +1 -1
  25. package/dist/{blockTypeIcons-BcTrDjmH.js → blockTypeIcons-C6LDKvmd.js} +19 -5
  26. package/dist/bundle-stats.json +7 -7
  27. package/dist/{check-Da05j8yl.js → check-DJrpDKO_.js} +1 -1
  28. package/dist/{chevron-down-R2uY34iD.js → chevron-down-C5oBUhT8.js} +1 -1
  29. package/dist/chevron-right-BqCptpdp.js +10 -0
  30. package/dist/{circle-alert-DZuGWPX-.js → circle-alert-ZQQc98HC.js} +1 -1
  31. package/dist/{clock-CRp2sIub.js → clock-ik2pRJKG.js} +1 -1
  32. package/dist/{cloud-DEk_b4CR.js → cloud-6ZmAvF0j.js} +485 -427
  33. package/dist/{createLucideIcon-C3pa2siy.js → createLucideIcon-ClREiSx3.js} +6 -6
  34. package/dist/{de-Brqvgr43.js → de-DWcgp-7T.js} +209 -1
  35. package/dist/{dist-BaQIYPsn.js → dist-BUzw1buG.js} +1 -1
  36. package/dist/{dist-DjviJBCi.js → dist-BZyY-SS4.js} +1 -1
  37. package/dist/{dist-D6uC2xhi.js → dist-BadNx4qo.js} +1 -1
  38. package/dist/{dist-aRzjfSRN.js → dist-BesOh2mk.js} +1 -1
  39. package/dist/{dist-D90y8dvT.js → dist-Bz3M4RXG.js} +3 -3
  40. package/dist/dist-C04s_fLA.js +563 -0
  41. package/dist/{dist-DDJIWTRY.js → dist-C3T2AKtB.js} +1 -1
  42. package/dist/{dist-BFawx6IS.js → dist-C9ckKEZL.js} +51 -51
  43. package/dist/{dist-us-RpCWN.js → dist-CBItRG-Z.js} +1 -1
  44. package/dist/{dist-wzMIGj-D.js → dist-COSzWQUs.js} +1 -1
  45. package/dist/dist-CivF9P8b.js +382 -0
  46. package/dist/{dist-Cp0zXPAD.js → dist-DtiDUrX-.js} +1 -1
  47. package/dist/{dist-KoBJjK1G.js → dist-Dzt5foyL.js} +1 -1
  48. package/dist/{en-WDVp87TE.js → en-Cxd4fhNm.js} +209 -1
  49. package/dist/{extensions-CUcl9Ok4.js → extensions-D__hOlV1.js} +106 -106
  50. package/dist/{image-up-MBZKKg9p.js → image-up-DT7gcJLN.js} +1 -1
  51. package/dist/index.d.ts +88 -11
  52. package/dist/{info-CJEC7piy.js → info-BSPGcsSM.js} +1 -1
  53. package/dist/keys-CvX8D-8C.js +10 -0
  54. package/dist/{loader-circle-DsY5Yg33.js → loader-circle-Balo8p3d.js} +1 -1
  55. package/dist/{message-circle-yElBbR2C.js → message-circle-B39qAHxs.js} +1 -1
  56. package/dist/pencil-BZJPNYWR.js +10 -0
  57. package/dist/{refresh-cw-CE_AGtn8.js → refresh-cw-DwDqGUM0.js} +1 -1
  58. package/dist/{scan-line-D0vcUekt.js → scan-line-CzfFJO1o.js} +1 -1
  59. package/dist/{send-DH4oDQqC.js → send-D2eSo4GH.js} +1 -1
  60. package/dist/{shield-check-CfJgs2Hd.js → shield-check-jkpgcC0-.js} +1 -1
  61. package/dist/{sparkles-CvRXGqFs.js → sparkles-Chm5CZfb.js} +1 -1
  62. package/dist/style.css +1 -1
  63. package/dist/styleConstants-34eUKPOZ.js +55 -0
  64. package/dist/styles-B4tjX5SP.js +5224 -0
  65. package/dist/templatical-editor.js +189 -126
  66. package/dist/{text-align-start-BT9VUDxK.js → text-align-start-CzBnJsW8.js} +1 -1
  67. package/dist/{trash-2-DbP2Y6t2.js → trash-2-CtK2apEH.js} +1 -1
  68. package/dist/{triangle-alert-aOXceTSe.js → triangle-alert-KpDVNbpn.js} +1 -1
  69. package/dist/{useCloudI18n-BuIwR6OE.js → useCloudI18n-DOKSZql1.js} +2 -2
  70. package/dist/{useEditorCore-C6ost42Q.js → useEditorCore-wslttMH-.js} +2425 -2250
  71. package/dist/{useI18n-lb2DHDiu.js → useI18n-C2xQZ6K9.js} +2 -2
  72. package/dist/{useMergeTag-CBwKnnNB.js → useMergeTag-DX0XG5V9.js} +5 -5
  73. package/dist/{vue.runtime.esm-bundler-DpvJL-nX.js → vue.runtime.esm-bundler-CjauPXjj.js} +1 -1
  74. package/dist/{x-u2oVmjN_.js → x-BkaOMosX.js} +1 -1
  75. package/package.json +10 -10
  76. package/dist/CloudEditor-BCz1ZTYC.js +0 -1172
  77. package/dist/CommentsSidebar-B1pvJdqF.js +0 -441
  78. package/dist/CountdownBlock-BNSj1jvJ.js +0 -92
  79. package/dist/CountdownToolbar-ClJr2GzL.js +0 -210
  80. package/dist/ModulePreviewCanvas-CHdOwV_4.js +0 -106
  81. package/dist/cdn/chunks/AccessibilityPanel-B6DOjojm.js +0 -97
  82. package/dist/cdn/chunks/AccessibilityPanel-B6DOjojm.js.map +0 -1
  83. package/dist/cdn/chunks/AiFeatureMenu-qEdB2fZJ.js +0 -59
  84. package/dist/cdn/chunks/AiFeatureMenu-qEdB2fZJ.js.map +0 -1
  85. package/dist/cdn/chunks/BlockA11yBadge-DcEZftf6.js +0 -33
  86. package/dist/cdn/chunks/BlockA11yBadge-DcEZftf6.js.map +0 -1
  87. package/dist/cdn/chunks/CloudEditor-D2GsEC_n.js +0 -1143
  88. package/dist/cdn/chunks/CloudEditor-D2GsEC_n.js.map +0 -1
  89. package/dist/cdn/chunks/CollaboratorBar--nO7TX6b.js +0 -51
  90. package/dist/cdn/chunks/CollaboratorBar--nO7TX6b.js.map +0 -1
  91. package/dist/cdn/chunks/CountdownBlock-5YdT1uUu.js +0 -93
  92. package/dist/cdn/chunks/CountdownBlock-5YdT1uUu.js.map +0 -1
  93. package/dist/cdn/chunks/CountdownToolbar-DXPXrbAA.js +0 -212
  94. package/dist/cdn/chunks/CountdownToolbar-DXPXrbAA.js.map +0 -1
  95. package/dist/cdn/chunks/ModuleBrowserModal-DxoPp81s.js +0 -195
  96. package/dist/cdn/chunks/ModuleBrowserModal-DxoPp81s.js.map +0 -1
  97. package/dist/cdn/chunks/ModulePreviewCanvas-CoLdb4ar.js +0 -107
  98. package/dist/cdn/chunks/ModulePreviewCanvas-CoLdb4ar.js.map +0 -1
  99. package/dist/cdn/chunks/NumberWithSuffix-CE3NrZhH.js +0 -423
  100. package/dist/cdn/chunks/NumberWithSuffix-CE3NrZhH.js.map +0 -1
  101. package/dist/cdn/chunks/ParagraphEditor-B6Ygu-Mq.js +0 -544
  102. package/dist/cdn/chunks/ParagraphEditor-B6Ygu-Mq.js.map +0 -1
  103. package/dist/cdn/chunks/RichTextEditorContent-DL_y2SrR.js +0 -106
  104. package/dist/cdn/chunks/RichTextEditorContent-DL_y2SrR.js.map +0 -1
  105. package/dist/cdn/chunks/SaveModuleDialog-B0TnO_o9.js +0 -119
  106. package/dist/cdn/chunks/SaveModuleDialog-B0TnO_o9.js.map +0 -1
  107. package/dist/cdn/chunks/TitleEditor-BHpfxvwy.js +0 -171
  108. package/dist/cdn/chunks/TitleEditor-BHpfxvwy.js.map +0 -1
  109. package/dist/cdn/chunks/blockTypeIcons-BzzY9_kA.js +0 -22
  110. package/dist/cdn/chunks/blockTypeIcons-BzzY9_kA.js.map +0 -1
  111. package/dist/cdn/chunks/de-Ce-LbJ2J.js +0 -89
  112. package/dist/cdn/chunks/de-Ce-LbJ2J.js.map +0 -1
  113. package/dist/cdn/chunks/de-D8CnZxV9.js +0 -523
  114. package/dist/cdn/chunks/de-D8CnZxV9.js.map +0 -1
  115. package/dist/cdn/chunks/de-RQrZR56a.js +0 -209
  116. package/dist/cdn/chunks/de-RQrZR56a.js.map +0 -1
  117. package/dist/cdn/chunks/draggable-Bcb86AsV.js +0 -11572
  118. package/dist/cdn/chunks/draggable-Bcb86AsV.js.map +0 -1
  119. package/dist/cdn/chunks/emojiData-EMFlj6FJ.js +0 -19
  120. package/dist/cdn/chunks/emojiData-EMFlj6FJ.js.map +0 -1
  121. package/dist/cdn/chunks/en-8FHaQv4V.js +0 -523
  122. package/dist/cdn/chunks/en-8FHaQv4V.js.map +0 -1
  123. package/dist/cdn/chunks/en-Bl1ecfRF.js +0 -209
  124. package/dist/cdn/chunks/en-Bl1ecfRF.js.map +0 -1
  125. package/dist/cdn/chunks/en-DiCWK5fG.js +0 -89
  126. package/dist/cdn/chunks/en-DiCWK5fG.js.map +0 -1
  127. package/dist/cdn/chunks/extensions-DIxF31tA.js +0 -598
  128. package/dist/cdn/chunks/extensions-DIxF31tA.js.map +0 -1
  129. package/dist/cdn/chunks/features-DEMb13KS.js +0 -6814
  130. package/dist/cdn/chunks/features-DEMb13KS.js.map +0 -1
  131. package/dist/cdn/chunks/icons-CsLTcirh.js +0 -700
  132. package/dist/cdn/chunks/icons-CsLTcirh.js.map +0 -1
  133. package/dist/cdn/chunks/liquid.browser-lQbkge2E.js +0 -3279
  134. package/dist/cdn/chunks/liquid.browser-lQbkge2E.js.map +0 -1
  135. package/dist/cdn/chunks/media-library-CVaNvhpM.js +0 -6014
  136. package/dist/cdn/chunks/media-library-CVaNvhpM.js.map +0 -1
  137. package/dist/cdn/chunks/pusher-CDbNlZBE.js +0 -2508
  138. package/dist/cdn/chunks/pusher-CDbNlZBE.js.map +0 -1
  139. package/dist/cdn/chunks/quality-BaBfc54_.js +0 -1456
  140. package/dist/cdn/chunks/quality-BaBfc54_.js.map +0 -1
  141. package/dist/cdn/chunks/readableTextColor-DhoK4XiZ.js +0 -32
  142. package/dist/cdn/chunks/readableTextColor-DhoK4XiZ.js.map +0 -1
  143. package/dist/cdn/chunks/renderer-CUxvx7ro.js +0 -548
  144. package/dist/cdn/chunks/renderer-CUxvx7ro.js.map +0 -1
  145. package/dist/cdn/chunks/rolldown-runtime-BNuo_Jkg.js +0 -20
  146. package/dist/cdn/chunks/src-CRaqN-p8.js +0 -497
  147. package/dist/cdn/chunks/src-CRaqN-p8.js.map +0 -1
  148. package/dist/cdn/chunks/styleConstants-DP1VOca8.js +0 -57
  149. package/dist/cdn/chunks/styleConstants-DP1VOca8.js.map +0 -1
  150. package/dist/cdn/chunks/styles-BHJULjNR.js +0 -2947
  151. package/dist/cdn/chunks/styles-BHJULjNR.js.map +0 -1
  152. package/dist/cdn/chunks/tiptap-ZhwKyFp7.js +0 -14654
  153. package/dist/cdn/chunks/tiptap-ZhwKyFp7.js.map +0 -1
  154. package/dist/cdn/editor.css +0 -2
  155. package/dist/cdn/editor.js +0 -250
  156. package/dist/cdn/editor.js.map +0 -1
  157. package/dist/dist-B1IR0bpH.js +0 -326
  158. package/dist/dist-DJmnUmW9.js +0 -362
  159. package/dist/keys-ciNfSSGj.js +0 -10
  160. package/dist/styleConstants-fWzlIIwN.js +0 -55
  161. package/dist/styles-DEXEkBvg.js +0 -3176
  162. /package/dist/{_plugin-vue_export-helper-B0hnzhyu.js → _plugin-vue_export-helper-BVAJ4lgT.js} +0 -0
  163. /package/dist/{de-DCaaCE5s.js → de-GOtR9DwW.js} +0 -0
  164. /package/dist/{dist-iLBdeBDR.js → dist-DXa1uAMh.js} +0 -0
  165. /package/dist/{emojiData-PQyVa4bU.js → emojiData-DrBuvEoP.js} +0 -0
  166. /package/dist/{en-DXCyK4-X.js → en-dFFQVzNn.js} +0 -0
  167. /package/dist/{formatRelativeTime-BOEf47hq.js → formatRelativeTime-BhhO8yCl.js} +0 -0
  168. /package/dist/{liquid.browser-CdMv1BTn.js → liquid.browser-BvCyLQII.js} +0 -0
  169. /package/dist/{readableTextColor-CY3SiRnt.js → readableTextColor-DVuzNX1y.js} +0 -0
@@ -1,19 +1,19 @@
1
- import { Dt as e, E as t, L as n, M as r, Mt as i, Ot as a, P as o, Q as s, S as c, V as ee, _ as l, b as u, d, g as f, h as p, it as m, m as h, t as te, y as g, z as ne } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
- import { O as _, m as re, v as ie, w as v } from "./keys-ciNfSSGj.js";
3
- import { t as y } from "./createLucideIcon-C3pa2siy.js";
4
- import { t as b } from "./chevron-down-R2uY34iD.js";
5
- import { t as x } from "./circle-alert-DZuGWPX-.js";
6
- import { n as S, t as C } from "./refresh-cw-CE_AGtn8.js";
7
- import { t as ae } from "./info-CJEC7piy.js";
8
- import { t as w } from "./loader-circle-DsY5Yg33.js";
9
- import { t as T } from "./shield-check-CfJgs2Hd.js";
10
- import { t as E } from "./sparkles-CvRXGqFs.js";
11
- import { t as oe } from "./triangle-alert-aOXceTSe.js";
12
- import { t as se } from "./x-u2oVmjN_.js";
13
- import { t as ce } from "./LoadingTrack-B0CWFHXQ.js";
14
- import { t as D } from "./_plugin-vue_export-helper-B0hnzhyu.js";
15
- import { n as le } from "./useCloudI18n-BuIwR6OE.js";
16
- var O = y("shield-x", [
1
+ import { At as e, C as t, D as n, F as r, Ft as i, N as a, R as o, U as ee, V as s, _ as c, b as l, et as u, f as d, g as f, h as p, jt as m, st as h, t as te, v as g, x as _ } from "./vue.runtime.esm-bundler-CjauPXjj.js";
2
+ import { A as v, E as ne, m as re, y } from "./keys-CvX8D-8C.js";
3
+ import { t as b } from "./createLucideIcon-ClREiSx3.js";
4
+ import { t as ie } from "./chevron-down-C5oBUhT8.js";
5
+ import { t as x } from "./circle-alert-ZQQc98HC.js";
6
+ import { n as S, t as C } from "./refresh-cw-DwDqGUM0.js";
7
+ import { t as ae } from "./info-BSPGcsSM.js";
8
+ import { t as w } from "./loader-circle-Balo8p3d.js";
9
+ import { t as T } from "./shield-check-jkpgcC0-.js";
10
+ import { t as E } from "./sparkles-Chm5CZfb.js";
11
+ import { t as oe } from "./triangle-alert-KpDVNbpn.js";
12
+ import { t as se } from "./x-BkaOMosX.js";
13
+ import { t as ce } from "./LoadingTrack-Ba2pfF57.js";
14
+ import { t as D } from "./_plugin-vue_export-helper-BVAJ4lgT.js";
15
+ import { n as le } from "./useCloudI18n-DOKSZql1.js";
16
+ var O = b("shield-x", [
17
17
  ["path", {
18
18
  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",
19
19
  key: "oel41y"
@@ -26,7 +26,7 @@ var O = y("shield-x", [
26
26
  d: "m9.5 9.5 5 5",
27
27
  key: "18nt4w"
28
28
  }]
29
- ]), k = y("zap", [["path", {
29
+ ]), k = b("zap", [["path", {
30
30
  d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",
31
31
  key: "1xq2db"
32
32
  }]]);
@@ -85,12 +85,12 @@ var P = {
85
85
  }, Ee = {
86
86
  key: 3,
87
87
  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__ */ D(/* @__PURE__ */ c({
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__ */ D(/* @__PURE__ */ t({
89
89
  __name: "TemplateScoringPanel",
90
90
  props: { visible: { type: Boolean } },
91
91
  emits: ["close"],
92
- setup(c, { emit: y }) {
93
- let D = c, G = y, { t: K } = le(), q = _(re, "TemplateScoringPanel"), J = _(v, "TemplateScoringPanel"), Y = t(ie, []), X = s({
92
+ setup(t, { emit: b }) {
93
+ let D = t, G = b, { t: K } = le(), q = v(re, "TemplateScoringPanel"), J = v(ne, "TemplateScoringPanel"), Y = n(y, []), X = u({
94
94
  spam: !0,
95
95
  readability: !0,
96
96
  accessibility: !0,
@@ -113,7 +113,7 @@ var P = {
113
113
  function Q() {
114
114
  J.score(q.content.value, Y);
115
115
  }
116
- ne(() => D.visible, (e) => {
116
+ s(() => D.visible, (e) => {
117
117
  e && !J.scoringResult.value && !J.isScoring.value && Q();
118
118
  });
119
119
  async function je(e) {
@@ -128,7 +128,7 @@ var P = {
128
128
  function $() {
129
129
  return J.scoringResult.value ? Z.reduce((e, t) => e + (J.scoringResult.value?.categories[t]?.findings.length ?? 0), 0) : 0;
130
130
  }
131
- return (t, s) => (r(), p(te, {
131
+ return (n, s) => (a(), f(te, {
132
132
  "enter-active-class": "tpl-scoring-slide-enter-active",
133
133
  "enter-from-class": "tpl:translate-x-full",
134
134
  "enter-to-class": "tpl:translate-x-0",
@@ -136,121 +136,121 @@ var P = {
136
136
  "leave-from-class": "tpl:translate-x-0",
137
137
  "leave-to-class": "tpl:translate-x-full"
138
138
  }, {
139
- default: ee(() => [c.visible ? (r(), l("div", P, [h("div", F, [h("div", I, [u(m(T), {
139
+ default: ee(() => [t.visible ? (a(), g("div", P, [p("div", F, [p("div", I, [_(h(T), {
140
140
  size: 13,
141
141
  "stroke-width": 2
142
- }), h("span", null, i(m(K).scoring.title), 1)]), h("div", L, [m(J).scoringResult.value && !m(J).isScoring.value ? (r(), l("button", {
142
+ }), p("span", null, i(h(K).scoring.title), 1)]), p("div", L, [h(J).scoringResult.value && !h(J).isScoring.value ? (a(), g("button", {
143
143
  key: 0,
144
144
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
145
- title: m(K).scoring.rescore,
145
+ title: h(K).scoring.rescore,
146
146
  onClick: s[0] ||= (e) => Q()
147
- }, [u(m(C), {
147
+ }, [_(h(C), {
148
148
  size: 14,
149
149
  "stroke-width": 2
150
- })], 8, R)) : f("", !0), h("button", {
150
+ })], 8, R)) : c("", !0), p("button", {
151
151
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
152
152
  onClick: s[1] ||= (e) => G("close")
153
- }, [u(m(se), {
153
+ }, [_(h(se), {
154
154
  size: 14,
155
155
  "stroke-width": 2
156
- })])])]), h("div", z, [m(J).isScoring.value ? (r(), l("div", B, [h("p", V, i(m(K).scoring.scoring), 1), u(ce, { class: "tpl:w-3/4" })])) : m(J).error.value && !m(J).scoringResult.value ? (r(), l("div", H, [
157
- u(m(x), {
156
+ })])])]), p("div", z, [h(J).isScoring.value ? (a(), g("div", B, [p("p", V, i(h(K).scoring.scoring), 1), _(ce, { class: "tpl:w-3/4" })])) : h(J).error.value && !h(J).scoringResult.value ? (a(), g("div", H, [
157
+ _(h(x), {
158
158
  size: 32,
159
159
  "stroke-width": 1.5,
160
160
  class: "tpl:text-[var(--tpl-danger)]"
161
161
  }),
162
- h("p", U, i(m(K).scoring.error), 1),
163
- h("button", {
162
+ p("p", U, i(h(K).scoring.error), 1),
163
+ p("button", {
164
164
  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
165
  onClick: s[2] ||= (e) => Q()
166
- }, [u(m(C), {
166
+ }, [_(h(C), {
167
167
  size: 12,
168
168
  "stroke-width": 2
169
- }), g(" " + i(m(K).scoring.rescore), 1)])
170
- ])) : m(J).scoringResult.value ? (r(), l("div", W, [
171
- h("div", {
169
+ }), l(" " + i(h(K).scoring.rescore), 1)])
170
+ ])) : h(J).scoringResult.value ? (a(), g("div", W, [
171
+ p("div", {
172
172
  class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:p-5",
173
- style: a({ backgroundColor: m(j)(m(J).scoringResult.value.score) })
173
+ style: m({ backgroundColor: h(j)(h(J).scoringResult.value.score) })
174
174
  }, [
175
- h("span", {
175
+ p("span", {
176
176
  class: "tpl:text-4xl tpl:font-bold tpl:tabular-nums",
177
- style: a({ color: m(A)(m(J).scoringResult.value.score) })
178
- }, i(m(J).scoringResult.value.score), 5),
179
- h("span", ue, i(m(K).scoring.overallScore), 1),
180
- $() > 0 ? (r(), l("span", de, i($()) + " " + i(m(K).scoring.findings), 1)) : f("", !0)
177
+ style: m({ color: h(A)(h(J).scoringResult.value.score) })
178
+ }, i(h(J).scoringResult.value.score), 5),
179
+ p("span", ue, i(h(K).scoring.overallScore), 1),
180
+ $() > 0 ? (a(), g("span", de, i($()) + " " + i(h(K).scoring.findings), 1)) : c("", !0)
181
181
  ], 4),
182
- m(J).fixError.value ? (r(), l("div", fe, [u(m(x), {
182
+ h(J).fixError.value ? (a(), g("div", fe, [_(h(x), {
183
183
  size: 14,
184
184
  "stroke-width": 2,
185
185
  class: "tpl:mt-0.5 tpl:shrink-0"
186
- }), h("span", null, i(m(K).scoring.fixError), 1)])) : f("", !0),
187
- (r(), l(d, null, o(Z, (t) => h("div", {
186
+ }), p("span", null, i(h(K).scoring.fixError), 1)])) : c("", !0),
187
+ (a(), g(d, null, r(Z, (t) => p("div", {
188
188
  key: t,
189
189
  class: "tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)]"
190
- }, [h("button", {
190
+ }, [p("button", {
191
191
  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
192
  onClick: (e) => ke(t)
193
193
  }, [
194
- (r(), p(n(Ae[t]), {
194
+ (a(), f(o(Ae[t]), {
195
195
  size: 14,
196
196
  "stroke-width": 2,
197
- style: a({ color: m(A)(m(J).scoringResult.value.categories[t].score) })
197
+ style: m({ color: h(A)(h(J).scoringResult.value.categories[t].score) })
198
198
  }, null, 8, ["style"])),
199
- h("span", me, i(m(K).scoring.categories[t]), 1),
200
- h("span", {
199
+ p("span", me, i(h(K).scoring.categories[t]), 1),
200
+ p("span", {
201
201
  class: "tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-semibold tpl:tabular-nums",
202
- style: a({
203
- color: m(A)(m(J).scoringResult.value.categories[t].score),
204
- backgroundColor: m(j)(m(J).scoringResult.value.categories[t].score)
202
+ style: m({
203
+ color: h(A)(h(J).scoringResult.value.categories[t].score),
204
+ backgroundColor: h(j)(h(J).scoringResult.value.categories[t].score)
205
205
  })
206
- }, i(m(J).scoringResult.value.categories[t].score), 5),
207
- m(J).scoringResult.value.categories[t].findings.length > 0 ? (r(), l("span", he, i(m(J).scoringResult.value.categories[t].findings.length), 1)) : f("", !0),
208
- u(m(b), {
206
+ }, i(h(J).scoringResult.value.categories[t].score), 5),
207
+ h(J).scoringResult.value.categories[t].findings.length > 0 ? (a(), g("span", he, i(h(J).scoringResult.value.categories[t].findings.length), 1)) : c("", !0),
208
+ _(h(ie), {
209
209
  size: 12,
210
210
  "stroke-width": 2,
211
211
  class: e(["tpl:transition-transform tpl:duration-200 tpl:text-[var(--tpl-text-dim)]", X.value[t] ? "tpl:rotate-0" : "tpl:-rotate-90"])
212
212
  }, null, 8, ["class"])
213
- ], 8, pe), X.value[t] ? (r(), l("div", ge, [m(J).scoringResult.value.categories[t].findings.length === 0 ? (r(), l("div", _e, i(m(K).scoring.noFindings), 1)) : f("", !0), (r(!0), l(d, null, o(m(J).scoringResult.value.categories[t].findings, (e) => (r(), l("div", {
213
+ ], 8, pe), X.value[t] ? (a(), g("div", ge, [h(J).scoringResult.value.categories[t].findings.length === 0 ? (a(), g("div", _e, i(h(K).scoring.noFindings), 1)) : c("", !0), (a(!0), g(d, null, r(h(J).scoringResult.value.categories[t].findings, (e) => (a(), g("div", {
214
214
  key: e.id,
215
215
  class: "tpl:border-t tpl:px-3 tpl:py-2.5 first:tpl:border-t-0 tpl:border-[var(--tpl-border-light)]"
216
- }, [h("div", ve, [(r(), p(n(e.severity === "high" ? m(x) : e.severity === "medium" ? m(oe) : m(ae)), {
216
+ }, [p("div", ve, [(a(), f(o(e.severity === "high" ? h(x) : e.severity === "medium" ? h(oe) : h(ae)), {
217
217
  size: 13,
218
218
  "stroke-width": 2,
219
219
  class: "tpl:mt-0.5 tpl:shrink-0",
220
- style: a({ color: m(M)(e.severity) })
221
- }, null, 8, ["style"])), h("div", ye, [
222
- h("div", be, [h("span", {
220
+ style: m({ color: h(M)(e.severity) })
221
+ }, null, 8, ["style"])), p("div", ye, [
222
+ p("div", be, [p("span", {
223
223
  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: a({
225
- color: m(M)(e.severity),
226
- backgroundColor: m(N)(e.severity)
224
+ style: m({
225
+ color: h(M)(e.severity),
226
+ backgroundColor: h(N)(e.severity)
227
227
  })
228
- }, i(m(K).scoring.severity[e.severity]), 5), h("span", xe, i(e.message), 1)]),
229
- e.suggestion ? (r(), l("p", Se, i(e.suggestion), 1)) : f("", !0),
230
- e.blockId ? (r(), l("div", Ce, [h("button", {
228
+ }, i(h(K).scoring.severity[e.severity]), 5), p("span", xe, i(e.message), 1)]),
229
+ e.suggestion ? (a(), g("p", Se, i(e.suggestion), 1)) : c("", !0),
230
+ e.blockId ? (a(), g("div", Ce, [p("button", {
231
231
  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
232
  style: { "background-color": "transparent" },
233
- disabled: m(J).fixingFindingId.value !== null,
233
+ disabled: h(J).fixingFindingId.value !== null,
234
234
  onClick: (t) => je(e)
235
- }, [m(J).fixingFindingId.value === e.id ? (r(), p(m(w), {
235
+ }, [h(J).fixingFindingId.value === e.id ? (a(), f(h(w), {
236
236
  key: 0,
237
237
  class: "tpl-spinner",
238
238
  size: 11,
239
239
  "stroke-width": 2
240
- })) : (r(), p(m(E), {
240
+ })) : (a(), f(h(E), {
241
241
  key: 1,
242
242
  size: 11,
243
243
  "stroke-width": 2
244
- })), g(" " + i(m(J).fixingFindingId.value === e.id ? m(K).scoring.fixing : m(K).scoring.fix), 1)], 8, we), m(J).fixError.value ? (r(), l("p", Te, i(m(J).fixError.value), 1)) : f("", !0)])) : f("", !0)
245
- ])])]))), 128))])) : f("", !0)])), 64))
246
- ])) : (r(), l("div", Ee, [u(m(T), {
244
+ })), l(" " + i(h(J).fixingFindingId.value === e.id ? h(K).scoring.fixing : h(K).scoring.fix), 1)], 8, we), h(J).fixError.value ? (a(), g("p", Te, i(h(J).fixError.value), 1)) : c("", !0)])) : c("", !0)
245
+ ])])]))), 128))])) : c("", !0)])), 64))
246
+ ])) : (a(), g("div", Ee, [_(h(T), {
247
247
  size: 32,
248
248
  "stroke-width": 1.5,
249
249
  class: "tpl:text-[var(--tpl-text-dim)]"
250
- }), h("p", De, i(m(K).scoring.emptyState), 1)])), h("p", Oe, i(m(K).aiMenu.disclaimer), 1)])])) : f("", !0)]),
250
+ }), p("p", De, i(h(K).scoring.emptyState), 1)])), p("p", Oe, i(h(K).aiMenu.disclaimer), 1)])])) : c("", !0)]),
251
251
  _: 1
252
252
  }));
253
253
  }
254
- }), [["__scopeId", "data-v-3a059e8d"]]);
254
+ }), [["__scopeId", "data-v-79e79258"]]);
255
255
  //#endregion
256
256
  export { G as default };
@@ -1,8 +1,8 @@
1
- import { Dt as e, H as t, M as n, Mt as r, P as i, Q as a, S as o, V as s, _ as c, b as l, d as u, g as d, h as f, it as p, m, o as h, y as g, z as _ } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
- import "./useEditorCore-C6ost42Q.js";
3
- import { t as v } from "./loader-circle-DsY5Yg33.js";
4
- import { n as y } from "./useCloudI18n-BuIwR6OE.js";
5
- import { t as b } from "./TplModal-BwSfxIHf.js";
1
+ import { At as e, C as t, F as n, Ft as r, N as i, U as a, V as o, W as s, _ as c, b as l, et as u, f as d, g as f, h as p, s as m, st as h, v as g, x as _ } from "./vue.runtime.esm-bundler-CjauPXjj.js";
2
+ import "./useEditorCore-wslttMH-.js";
3
+ import { t as v } from "./loader-circle-Balo8p3d.js";
4
+ import { n as y } from "./useCloudI18n-DOKSZql1.js";
5
+ import { t as b } from "./TplModal-BAsVzcTb.js";
6
6
  //#region src/cloud/components/TestEmailModal.vue?vue&type=script&setup=true&lang.ts
7
7
  var x = ["aria-busy"], S = {
8
8
  id: "tpl-test-email-title",
@@ -14,7 +14,7 @@ var x = ["aria-busy"], S = {
14
14
  }, k = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, A = ["disabled"], j = ["disabled"], M = {
15
15
  key: 0,
16
16
  class: "tpl:flex tpl:items-center tpl:gap-1.5"
17
- }, N = { key: 1 }, P = /* @__PURE__ */ o({
17
+ }, N = { key: 1 }, P = /* @__PURE__ */ t({
18
18
  __name: "TestEmailModal",
19
19
  props: {
20
20
  visible: { type: Boolean },
@@ -23,9 +23,9 @@ var x = ["aria-busy"], S = {
23
23
  error: {}
24
24
  },
25
25
  emits: ["send", "close"],
26
- setup(o, { emit: P }) {
27
- let F = o, I = P, { t: L } = y(), R = a("");
28
- _(() => F.visible, (e) => {
26
+ setup(t, { emit: P }) {
27
+ let F = t, I = P, { t: L } = y(), R = u("");
28
+ o(() => F.visible, (e) => {
29
29
  e && (R.value = F.allowedEmails[0] ?? "");
30
30
  });
31
31
  function z() {
@@ -37,15 +37,15 @@ var x = ["aria-busy"], S = {
37
37
  function V(e) {
38
38
  e.key === "Enter" && !e.shiftKey && (e.preventDefault(), z()), e.key === "Escape" && B();
39
39
  }
40
- return (a, _) => (n(), f(b, {
41
- visible: o.visible,
40
+ return (o, u) => (i(), f(b, {
41
+ visible: t.visible,
42
42
  onClose: B,
43
43
  onKeydown: V
44
44
  }, {
45
- default: s(() => [m("div", {
45
+ default: a(() => [p("div", {
46
46
  role: "dialog",
47
47
  "aria-modal": "true",
48
- "aria-busy": o.isSending,
48
+ "aria-busy": t.isSending,
49
49
  "aria-labelledby": "tpl-test-email-title",
50
50
  class: "tpl-scale-in tpl:mx-4 tpl:w-full tpl:max-w-sm tpl:rounded-[var(--tpl-radius-lg)] tpl:p-5",
51
51
  style: {
@@ -53,38 +53,38 @@ var x = ["aria-busy"], S = {
53
53
  "box-shadow": "var(--tpl-shadow-xl)"
54
54
  }
55
55
  }, [
56
- m("h3", S, r(p(L).testEmail.title), 1),
57
- m("div", C, [m("label", w, r(p(L).testEmail.recipientLabel), 1), o.allowedEmails.length === 1 ? (n(), c("input", {
56
+ p("h3", S, r(h(L).testEmail.title), 1),
57
+ p("div", C, [p("label", w, r(h(L).testEmail.recipientLabel), 1), t.allowedEmails.length === 1 ? (i(), g("input", {
58
58
  key: 0,
59
59
  type: "text",
60
60
  value: R.value,
61
61
  disabled: "",
62
62
  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((n(), c("select", {
63
+ }, null, 8, T)) : s((i(), g("select", {
64
64
  key: 1,
65
- "onUpdate:modelValue": _[0] ||= (e) => R.value = e,
65
+ "onUpdate:modelValue": u[0] ||= (e) => R.value = e,
66
66
  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
- disabled: o.isSending
68
- }, [(n(!0), c(u, null, i(o.allowedEmails, (e) => (n(), c("option", {
67
+ disabled: t.isSending
68
+ }, [(i(!0), g(d, null, n(t.allowedEmails, (e) => (i(), g("option", {
69
69
  key: e,
70
70
  value: e
71
- }, r(e), 9, D))), 128))], 8, E)), [[h, R.value]])]),
72
- o.error ? (n(), c("p", O, r(o.error), 1)) : d("", !0),
73
- m("div", k, [m("button", {
71
+ }, r(e), 9, D))), 128))], 8, E)), [[m, R.value]])]),
72
+ t.error ? (i(), g("p", O, r(t.error), 1)) : c("", !0),
73
+ p("div", k, [p("button", {
74
74
  type: "button",
75
- class: e(["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": o.isSending }]),
76
- disabled: o.isSending,
75
+ class: e(["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": t.isSending }]),
76
+ disabled: t.isSending,
77
77
  onClick: B
78
- }, r(p(L).testEmail.cancel), 11, A), m("button", {
78
+ }, r(h(L).testEmail.cancel), 11, A), p("button", {
79
79
  type: "button",
80
80
  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
- disabled: !R.value || o.isSending,
81
+ disabled: !R.value || t.isSending,
82
82
  onClick: z
83
- }, [o.isSending ? (n(), c("span", M, [l(p(v), {
83
+ }, [t.isSending ? (i(), g("span", M, [_(h(v), {
84
84
  class: "tpl:animate-spin",
85
85
  size: 12,
86
86
  "stroke-width": 2
87
- }), g(" " + r(p(L).testEmail.sending), 1)])) : (n(), c("span", N, r(p(L).testEmail.send), 1))], 8, j)])
87
+ }), l(" " + r(h(L).testEmail.sending), 1)])) : (i(), g("span", N, r(h(L).testEmail.send), 1))], 8, j)])
88
88
  ], 8, x)]),
89
89
  _: 1
90
90
  }, 8, ["visible"]));
@@ -1,10 +1,10 @@
1
- import { Dt as e, E as t, M as n, Mt as r, Ot as i, S as a, _ as o, b as s, d as c, f as l, g as u, h as d, it as f, m as p, q as m, y as h } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
- import { b as g } from "./useEditorCore-C6ost42Q.js";
3
- import { D as _, T as v } from "./keys-ciNfSSGj.js";
4
- import { t as y } from "./useI18n-lb2DHDiu.js";
5
- import { a as b, i as x, n as S, r as C, t as w } from "./RichTextEditorContent-DYkIauIk.js";
6
- import { t as T } from "./loader-circle-DsY5Yg33.js";
7
- import { t as E } from "./scan-line-D0vcUekt.js";
1
+ import { At as e, C as t, D as n, Ft as r, N as i, Y as a, _ as o, b as s, f as c, g as l, h as u, jt as d, p as f, st as p, v as m, x as h } from "./vue.runtime.esm-bundler-CjauPXjj.js";
2
+ import { x as g } from "./useEditorCore-wslttMH-.js";
3
+ import { D as _, k as v } from "./keys-CvX8D-8C.js";
4
+ import { t as y } from "./useI18n-C2xQZ6K9.js";
5
+ import { a as b, i as x, n as S, r as C, t as w } from "./RichTextEditorContent-CrqPQdnk.js";
6
+ import { t as T } from "./loader-circle-Balo8p3d.js";
7
+ import { t as E } from "./scan-line-CzfFJO1o.js";
8
8
  //#region src/components/blocks/TitleEditor.vue?vue&type=script&setup=true&lang.ts
9
9
  var ee = { class: "tpl-text-editor-wrapper tpl:relative" }, D = ["data-tpl-theme", "aria-label"], O = ["aria-label", "title"], k = ["aria-label", "title"], A = ["aria-label", "title"], j = {
10
10
  key: 0,
@@ -12,25 +12,25 @@ var ee = { class: "tpl-text-editor-wrapper tpl:relative" }, D = ["data-tpl-theme
12
12
  }, M = ["aria-label", "title"], N = {
13
13
  key: 1,
14
14
  class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
15
- }, P = /* @__PURE__ */ a({
15
+ }, P = /* @__PURE__ */ t({
16
16
  __name: "TitleEditor",
17
17
  props: {
18
18
  block: {},
19
19
  toolbarPosition: {}
20
20
  },
21
21
  emits: ["done"],
22
- setup(a, { emit: P }) {
23
- let F = a, I = P, L = t(v, null), R = t(_, null), { t: z } = y(), { editor: B, EditorContent: V, isLoading: H, initError: U, retry: W, showLinkDialog: G, linkUrl: K, linkDialogRef: q, canRequestMergeTag: J, openLinkDialog: Y, insertLink: X, removeLink: Z, closeLinkDialog: Q, handleLinkKeydown: te, handleAddMergeTag: $ } = g({
22
+ setup(t, { emit: P }) {
23
+ let F = t, I = P, L = n(_, null), R = n(v, null), { t: z } = y(), { editor: B, EditorContent: V, isLoading: H, initError: U, retry: W, showLinkDialog: G, linkUrl: K, linkDialogRef: q, canRequestMergeTag: J, openLinkDialog: Y, insertLink: X, removeLink: Z, closeLinkDialog: Q, handleLinkKeydown: te, handleAddMergeTag: $ } = g({
24
24
  blockId: () => F.block.id,
25
25
  blockContent: () => F.block.content,
26
26
  onDone: () => I("done"),
27
27
  editorName: "TitleEditor",
28
28
  async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
29
29
  let [{ Editor: a, EditorContent: o }, { default: s }, { default: c }, { MergeTagNode: l, MergeTagSuggestion: u, LogicMergeTagNode: d }] = await Promise.all([
30
- import("./dist-BFawx6IS.js").then((e) => e.r),
31
- import("./dist-D90y8dvT.js"),
32
- import("./dist-DDJIWTRY.js"),
33
- import("./extensions-CUcl9Ok4.js")
30
+ import("./dist-C9ckKEZL.js").then((e) => e.r),
31
+ import("./dist-Bz3M4RXG.js"),
32
+ import("./dist-C3T2AKtB.js"),
33
+ import("./extensions-D__hOlV1.js")
34
34
  ]);
35
35
  return {
36
36
  TiptapEditor: a,
@@ -67,76 +67,76 @@ var ee = { class: "tpl-text-editor-wrapper tpl:relative" }, D = ["data-tpl-theme
67
67
  };
68
68
  }
69
69
  });
70
- return (t, g) => (n(), o("div", ee, [
71
- (n(), d(l, { to: "body" }, [p("div", {
72
- "data-tpl-theme": f(R),
70
+ return (n, g) => (i(), m("div", ee, [
71
+ (i(), l(f, { to: "body" }, [u("div", {
72
+ "data-tpl-theme": p(R),
73
73
  role: "toolbar",
74
- "aria-label": f(z).titleEditor.toolbar,
74
+ "aria-label": p(z).titleEditor.toolbar,
75
75
  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",
76
- style: i({
77
- ...f(L),
78
- top: `${a.toolbarPosition.top}px`,
79
- left: `${a.toolbarPosition.left}px`,
76
+ style: d({
77
+ ...p(L),
78
+ top: `${t.toolbarPosition.top}px`,
79
+ left: `${t.toolbarPosition.left}px`,
80
80
  transform: "translateY(-100%)"
81
81
  })
82
- }, [!f(H) && f(B) ? (n(), o(c, { key: 0 }, [
83
- p("button", {
82
+ }, [!p(H) && p(B) ? (i(), m(c, { key: 0 }, [
83
+ u("button", {
84
84
  type: "button",
85
- class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(B)?.isActive("bold") }]),
86
- "aria-label": f(z).titleEditor.bold,
87
- title: f(z).titleEditor.bold,
88
- onClick: g[0] ||= (e) => f(B)?.chain().focus().toggleBold().run()
89
- }, [s(f(b), {
85
+ class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": p(B)?.isActive("bold") }]),
86
+ "aria-label": p(z).titleEditor.bold,
87
+ title: p(z).titleEditor.bold,
88
+ onClick: g[0] ||= (e) => p(B)?.chain().focus().toggleBold().run()
89
+ }, [h(p(b), {
90
90
  size: 16,
91
91
  "stroke-width": 2.5
92
92
  })], 10, O),
93
- p("button", {
93
+ u("button", {
94
94
  type: "button",
95
- class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(B)?.isActive("italic") }]),
96
- "aria-label": f(z).titleEditor.italic,
97
- title: f(z).titleEditor.italic,
98
- onClick: g[1] ||= (e) => f(B)?.chain().focus().toggleItalic().run()
99
- }, [s(f(x), {
95
+ class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": p(B)?.isActive("italic") }]),
96
+ "aria-label": p(z).titleEditor.italic,
97
+ title: p(z).titleEditor.italic,
98
+ onClick: g[1] ||= (e) => p(B)?.chain().focus().toggleItalic().run()
99
+ }, [h(p(x), {
100
100
  size: 16,
101
101
  "stroke-width": 2
102
102
  })], 10, k),
103
- g[6] ||= p("span", {
103
+ g[6] ||= u("span", {
104
104
  class: "tpl:mx-1.5 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
105
105
  "aria-hidden": "true"
106
106
  }, null, -1),
107
- p("button", {
107
+ u("button", {
108
108
  type: "button",
109
- class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(B)?.isActive("link") }]),
110
- "aria-label": f(z).titleEditor.addLink,
111
- title: f(z).titleEditor.addLink,
112
- onClick: g[2] ||= (...e) => f(Y) && f(Y)(...e)
113
- }, [s(f(C), {
109
+ class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": p(B)?.isActive("link") }]),
110
+ "aria-label": p(z).titleEditor.addLink,
111
+ title: p(z).titleEditor.addLink,
112
+ onClick: g[2] ||= (...e) => p(Y) && p(Y)(...e)
113
+ }, [h(p(C), {
114
114
  size: 16,
115
115
  "stroke-width": 2
116
116
  })], 10, A),
117
- f(J) ? (n(), o("span", j)) : u("", !0),
118
- f(J) ? (n(), o("button", {
117
+ p(J) ? (i(), m("span", j)) : o("", !0),
118
+ p(J) ? (i(), m("button", {
119
119
  key: 1,
120
120
  type: "button",
121
121
  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)]",
122
- "aria-label": f(z).mergeTag.add,
123
- title: f(z).mergeTag.add,
124
- onClick: g[3] ||= (...e) => f($) && f($)(...e)
125
- }, [s(f(E), {
122
+ "aria-label": p(z).mergeTag.add,
123
+ title: p(z).mergeTag.add,
124
+ onClick: g[3] ||= (...e) => p($) && p($)(...e)
125
+ }, [h(p(E), {
126
126
  size: 16,
127
127
  "stroke-width": 2
128
- }), h(" " + r(f(z).mergeTag.add), 1)], 8, M)) : u("", !0)
129
- ], 64)) : (n(), o("div", N, [s(f(T), {
128
+ }), s(" " + r(p(z).mergeTag.add), 1)], 8, M)) : o("", !0)
129
+ ], 64)) : (i(), m("div", N, [h(p(T), {
130
130
  class: "tpl-spinner",
131
131
  size: 14,
132
132
  "stroke-width": 2
133
- }), h(" " + r(f(z).errors.editorLoading), 1)]))], 12, D)])),
134
- s(w, {
135
- editor: f(B),
136
- "editor-content": f(V),
137
- "is-loading": f(H),
138
- "init-error": f(U),
139
- onRetry: f(W)
133
+ }), s(" " + r(p(z).errors.editorLoading), 1)]))], 12, D)])),
134
+ h(w, {
135
+ editor: p(B),
136
+ "editor-content": p(V),
137
+ "is-loading": p(H),
138
+ "init-error": p(U),
139
+ onRetry: p(W)
140
140
  }, null, 8, [
141
141
  "editor",
142
142
  "editor-content",
@@ -144,17 +144,17 @@ var ee = { class: "tpl-text-editor-wrapper tpl:relative" }, D = ["data-tpl-theme
144
144
  "init-error",
145
145
  "onRetry"
146
146
  ]),
147
- s(S, {
148
- visible: f(G),
149
- "is-editing-link": f(B)?.isActive("link") ?? !1,
150
- "dialog-ref": f(q),
151
- "onUpdate:dialogRef": g[4] ||= (e) => m(q) ? q.value = e : null,
152
- "link-url": f(K),
153
- "onUpdate:linkUrl": g[5] ||= (e) => m(K) ? K.value = e : null,
154
- onClose: f(Q),
155
- onInsert: f(X),
156
- onRemove: f(Z),
157
- onKeydown: f(te)
147
+ h(S, {
148
+ visible: p(G),
149
+ "is-editing-link": p(B)?.isActive("link") ?? !1,
150
+ "dialog-ref": p(q),
151
+ "onUpdate:dialogRef": g[4] ||= (e) => a(q) ? q.value = e : null,
152
+ "link-url": p(K),
153
+ "onUpdate:linkUrl": g[5] ||= (e) => a(K) ? K.value = e : null,
154
+ onClose: p(Q),
155
+ onInsert: p(X),
156
+ onRemove: p(Z),
157
+ onKeydown: p(te)
158
158
  }, null, 8, [
159
159
  "visible",
160
160
  "is-editing-link",
@@ -1,19 +1,19 @@
1
- import { E as e, F as t, M as n, Q as r, S as i, V as a, _ as o, b as s, f as c, g as l, h as u, it as d, m as f, p, t as m, u as h } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
- import { w as g } from "./useEditorCore-C6ost42Q.js";
3
- import { D as _ } from "./keys-ciNfSSGj.js";
1
+ import { C as e, D as t, I as n, N as r, U as i, _ as a, d as o, et as s, g as c, h as l, m as u, p as d, st as f, t as p, v as m, x as h } from "./vue.runtime.esm-bundler-CjauPXjj.js";
2
+ import { T as g } from "./useEditorCore-wslttMH-.js";
3
+ import { k as _ } from "./keys-CvX8D-8C.js";
4
4
  //#region src/cloud/components/TplModal.vue?vue&type=script&setup=true&lang.ts
5
- var v = ["data-tpl-theme"], y = /* @__PURE__ */ i({
5
+ var v = ["data-tpl-theme"], y = /* @__PURE__ */ e({
6
6
  __name: "TplModal",
7
7
  props: { visible: { type: Boolean } },
8
8
  emits: ["close", "keydown"],
9
- setup(i, { emit: y }) {
10
- let b = i, x = y, S = r(null);
11
- g(S, p(() => b.visible));
12
- let C = e(_);
9
+ setup(e, { emit: y }) {
10
+ let b = e, x = y, S = s(null);
11
+ g(S, u(() => b.visible));
12
+ let C = t(_);
13
13
  function w(e) {
14
14
  e.key === "Escape" && x("close"), x("keydown", e);
15
15
  }
16
- return (e, r) => (n(), u(c, { to: "body" }, [s(m, {
16
+ return (t, s) => (r(), c(d, { to: "body" }, [h(p, {
17
17
  "enter-active-class": "tpl:transition tpl:duration-150",
18
18
  "enter-from-class": "tpl:opacity-0",
19
19
  "enter-to-class": "tpl:opacity-100",
@@ -21,21 +21,21 @@ var v = ["data-tpl-theme"], y = /* @__PURE__ */ i({
21
21
  "leave-from-class": "tpl:opacity-100",
22
22
  "leave-to-class": "tpl:opacity-0"
23
23
  }, {
24
- default: a(() => [i.visible ? (n(), o("div", {
24
+ default: i(() => [e.visible ? (r(), m("div", {
25
25
  key: 0,
26
- "data-tpl-theme": d(C),
26
+ "data-tpl-theme": f(C),
27
27
  class: "tpl tpl:fixed tpl:inset-0 tpl:z-modal tpl:flex tpl:items-center tpl:justify-center",
28
28
  style: {
29
29
  "background-color": "var(--tpl-overlay)",
30
30
  "backdrop-filter": "blur(8px)",
31
31
  "-webkit-backdrop-filter": "blur(8px)"
32
32
  },
33
- onClick: r[0] ||= h((e) => x("close"), ["self"]),
33
+ onClick: s[0] ||= o((e) => x("close"), ["self"]),
34
34
  onKeydown: w
35
- }, [f("div", {
35
+ }, [l("div", {
36
36
  ref_key: "dialogRef",
37
37
  ref: S
38
- }, [t(e.$slots, "default")], 512)], 40, v)) : l("", !0)]),
38
+ }, [n(t.$slots, "default")], 512)], 40, v)) : a("", !0)]),
39
39
  _: 3
40
40
  })]));
41
41
  }