@templatical/editor 0.14.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 (152) hide show
  1. package/dist/{AiChatSidebar-J8iO_sX7.js → AiChatSidebar-BIKvYREk.js} +57 -56
  2. package/dist/{AiFeatureMenu-F2diEDgV.js → AiFeatureMenu-QbD82crt.js} +20 -20
  3. package/dist/{BlockIssueBadge-a-qlByxF.js → BlockIssueBadge-B3xVgMTh.js} +11 -11
  4. package/dist/{CloudEditor-CDjtwb4i.js → CloudEditor-DptuSf7A.js} +470 -468
  5. package/dist/{CollaboratorBar-B_EnJLtW.js → CollaboratorBar-DrA_K69w.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-D45rBj5C.js} +60 -59
  14. package/dist/{ModulePreviewCanvas-Cx4MOJ0X.js → ModulePreviewCanvas-BiQ6B2-l.js} +29 -29
  15. package/dist/{NumberWithSuffix-D2mW_DhT.js → NumberWithSuffix-CrA6quxx.js} +143 -142
  16. package/dist/{ParagraphEditor-DMzkVnST.js → ParagraphEditor-1NaUJpZO.js} +247 -246
  17. package/dist/{RichTextEditorContent-CRCxCwKf.js → RichTextEditorContent-BqLHIZY7.js} +45 -44
  18. package/dist/{SaveModuleDialog-DuEKgumL.js → SaveModuleDialog-B0sPOTgO.js} +38 -37
  19. package/dist/{SnapshotHistory-CVgiNJtE.js → SnapshotHistory-DslVzmSb.js} +34 -33
  20. package/dist/{TemplateScoringPanel-lm0_9nYi.js → TemplateScoringPanel-CZ62rGHz.js} +83 -82
  21. package/dist/{TestEmailModal-WBMdiW5S.js → TestEmailModal-DWGniJVu.js} +22 -21
  22. package/dist/{TitleEditor-eyT0h-Sa.js → TitleEditor-D4t_gZZJ.js} +44 -44
  23. package/dist/{TplModal-tjQ7OB0g.js → TplModal-Br2VG6cn.js} +14 -13
  24. package/dist/{blockTypeIcons-DdB3uTKD.js → blockTypeIcons-CXhCS5WV.js} +2 -2
  25. package/dist/bundle-stats.json +8 -8
  26. package/dist/cdn/chunks/{AiFeatureMenu-D7rB2SBs.js → AiFeatureMenu-3Slo_LGA.js} +5 -5
  27. package/dist/cdn/chunks/{AiFeatureMenu-D7rB2SBs.js.map → AiFeatureMenu-3Slo_LGA.js.map} +1 -1
  28. package/dist/cdn/chunks/{BlockIssueBadge-DHOe0pgx.js → BlockIssueBadge-BxwEiiF3.js} +3 -3
  29. package/dist/cdn/chunks/{BlockIssueBadge-DHOe0pgx.js.map → BlockIssueBadge-BxwEiiF3.js.map} +1 -1
  30. package/dist/cdn/chunks/{CloudEditor-DNed_Ym0.js → CloudEditor-DFIFWD9G.js} +89 -89
  31. package/dist/cdn/chunks/{CloudEditor-DNed_Ym0.js.map → CloudEditor-DFIFWD9G.js.map} +1 -1
  32. package/dist/cdn/chunks/{CollaboratorBar-sj_9Lee3.js → CollaboratorBar-Cu3vuN66.js} +4 -4
  33. package/dist/cdn/chunks/{CollaboratorBar-sj_9Lee3.js.map → CollaboratorBar-Cu3vuN66.js.map} +1 -1
  34. package/dist/cdn/chunks/{CountdownBlock-C1Ikjpn4.js → CountdownBlock-BEVAJQtQ.js} +3 -3
  35. package/dist/cdn/chunks/{CountdownBlock-C1Ikjpn4.js.map → CountdownBlock-BEVAJQtQ.js.map} +1 -1
  36. package/dist/cdn/chunks/{CountdownToolbar-j1G_X8rB.js → CountdownToolbar-CI2sQZv5.js} +4 -4
  37. package/dist/cdn/chunks/{CountdownToolbar-j1G_X8rB.js.map → CountdownToolbar-CI2sQZv5.js.map} +1 -1
  38. package/dist/cdn/chunks/{IssuesPanel-CTOf3PsH.js → IssuesPanel-BdeDoTcn.js} +4 -4
  39. package/dist/cdn/chunks/{IssuesPanel-CTOf3PsH.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-DCh88-rr.js → ModuleBrowserModal-Dz-I5zfj.js} +6 -6
  43. package/dist/cdn/chunks/{ModuleBrowserModal-DCh88-rr.js.map → ModuleBrowserModal-Dz-I5zfj.js.map} +1 -1
  44. package/dist/cdn/chunks/{ModulePreviewCanvas-DJqvTKmg.js → ModulePreviewCanvas-BfinyuAN.js} +3 -3
  45. package/dist/cdn/chunks/{ModulePreviewCanvas-DJqvTKmg.js.map → ModulePreviewCanvas-BfinyuAN.js.map} +1 -1
  46. package/dist/cdn/chunks/{NumberWithSuffix-Bu45XWSl.js → NumberWithSuffix-CDjEa08X.js} +6 -6
  47. package/dist/cdn/chunks/{NumberWithSuffix-Bu45XWSl.js.map → NumberWithSuffix-CDjEa08X.js.map} +1 -1
  48. package/dist/cdn/chunks/{ParagraphEditor-DwZqLJp2.js → ParagraphEditor-B3fG0vge.js} +22 -22
  49. package/dist/cdn/chunks/{ParagraphEditor-DwZqLJp2.js.map → ParagraphEditor-B3fG0vge.js.map} +1 -1
  50. package/dist/cdn/chunks/{RichTextEditorContent-CIuZ-2DV.js → RichTextEditorContent-C6YPCp9j.js} +4 -4
  51. package/dist/cdn/chunks/{RichTextEditorContent-CIuZ-2DV.js.map → RichTextEditorContent-C6YPCp9j.js.map} +1 -1
  52. package/dist/cdn/chunks/{SaveModuleDialog-Bep0X2s_.js → SaveModuleDialog-C6UIIVAM.js} +3 -3
  53. package/dist/cdn/chunks/{SaveModuleDialog-Bep0X2s_.js.map → SaveModuleDialog-C6UIIVAM.js.map} +1 -1
  54. package/dist/cdn/chunks/{TitleEditor-DO1-h3RY.js → TitleEditor-BiZbLYF1.js} +10 -10
  55. package/dist/cdn/chunks/{TitleEditor-DO1-h3RY.js.map → TitleEditor-BiZbLYF1.js.map} +1 -1
  56. package/dist/cdn/chunks/{blockTypeIcons-8o24HVJu.js → blockTypeIcons-BernVG06.js} +3 -3
  57. package/dist/cdn/chunks/{blockTypeIcons-8o24HVJu.js.map → blockTypeIcons-BernVG06.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-Drp8UDc6.js +421 -0
  61. package/dist/cdn/chunks/extensions-Drp8UDc6.js.map +1 -0
  62. package/dist/cdn/chunks/{features-CkTMVylx.js → features-Dpczf9Su.js} +884 -835
  63. package/dist/cdn/chunks/features-Dpczf9Su.js.map +1 -0
  64. package/dist/cdn/chunks/{icons-9zjCuoJx.js → icons-CuxnJiGQ.js} +26 -26
  65. package/dist/cdn/chunks/{icons-9zjCuoJx.js.map → icons-CuxnJiGQ.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-CiYl_BO7.js} +33 -33
  69. package/dist/cdn/chunks/{media-library-DMRIPx4g.js.map → media-library-CiYl_BO7.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-CNjGxBG0.js} +112 -112
  73. package/dist/cdn/chunks/{quality-CyeUgs_c.js.map → quality-CNjGxBG0.js.map} +1 -1
  74. package/dist/cdn/chunks/{renderer-BIKUEKDD.js → renderer-CFkg8h-K.js} +20 -20
  75. package/dist/cdn/chunks/renderer-CFkg8h-K.js.map +1 -0
  76. package/dist/cdn/chunks/{src-pDy_imWG.js → src-DRpKu4Dy.js} +5 -5
  77. package/dist/cdn/chunks/{src-pDy_imWG.js.map → src-DRpKu4Dy.js.map} +1 -1
  78. package/dist/cdn/chunks/{styles-D4Bd3SCx.js → styles-B7wryV0l.js} +1484 -1344
  79. package/dist/cdn/chunks/styles-B7wryV0l.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-D7fQ7f_1.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-vcWLdnjN.js} +1406 -1364
  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/draggable-kPCz_3zM.js.map +0 -1
  139. package/dist/cdn/chunks/extensions-iwBXnEwq.js +0 -605
  140. package/dist/cdn/chunks/extensions-iwBXnEwq.js.map +0 -1
  141. package/dist/cdn/chunks/features-CkTMVylx.js.map +0 -1
  142. package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +0 -1
  143. package/dist/cdn/chunks/renderer-BIKUEKDD.js.map +0 -1
  144. package/dist/cdn/chunks/styles-D4Bd3SCx.js.map +0 -1
  145. package/dist/cdn/chunks/tiptap-BlLFFU3M.js.map +0 -1
  146. package/dist/createLucideIcon-Bad2kKE0.js +0 -43
  147. package/dist/dist-CADDCv0o.js +0 -5
  148. package/dist/dist-CGvz7vkq.js +0 -5
  149. package/dist/dist-DuCzdgDA.js +0 -382
  150. package/dist/extensions-J439b7y7.js +0 -1720
  151. package/dist/styles-BUwDOWd3.js +0 -4022
  152. package/dist/usePopoverRoot-B1sdY4es.js +0 -8
@@ -1,14 +1,15 @@
1
- import { A as e, B as t, F as n, L as r, M as i, X as a, a as o, b as s, c, d as l, f as u, h as d, i as ee, l as f, m as te, ot as ne, p, rt as m, st as h, v as g, y as re, z as ie } from "./vue.runtime.esm-bundler-BPa483TZ.js";
2
- import "./useEditorCore-8JxXDOA4.js";
3
- import { L as _, j as ae, m as oe } from "./keys-DgYXDafq.js";
4
- import { t as se } from "./useI18n-BWqM8i78.js";
5
- import { n as ce, r as v, t as y } from "./blockTypeIcons-DdB3uTKD.js";
6
- import { t as le } from "./trash-2-CjERg4x9.js";
7
- import { t as ue } from "./x-DiPIbccg.js";
8
- import { n as de } from "./useCloudI18n-CYJKqXtI.js";
9
- import { t as fe } from "./TplModal-tjQ7OB0g.js";
1
+ import { A as e, Dt as t, I as n, N as r, O as i, Ot as a, R as o, Y as s, _ as c, c as l, d as u, g as ee, h as d, l as f, nt as p, r as m, s as h, u as te, z as g } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
2
+ import { a as ne, c as _, i as re } from "./runtime-dom.esm-bundler-BzuoCyNp.js";
3
+ import "./useEditorCore-vcWLdnjN.js";
4
+ import { L as v, j as ie, m as ae } from "./keys-Cv8-8GsD.js";
5
+ import { t as oe } from "./useI18n-C-TDeJBt.js";
6
+ import { n as se, r as y, t as b } from "./blockTypeIcons-CXhCS5WV.js";
7
+ import { t as ce } from "./trash-2-C-81rkLS.js";
8
+ import { t as le } from "./x-CQSvXnGR.js";
9
+ import { n as ue } from "./useCloudI18n-AKCy98qD.js";
10
+ import { t as de } from "./TplModal-Br2VG6cn.js";
10
11
  //#region src/cloud/components/ModuleBrowserModal.vue?vue&type=script&setup=true&lang.ts
11
- var pe = {
12
+ var fe = {
12
13
  role: "dialog",
13
14
  "aria-modal": "true",
14
15
  "aria-labelledby": "tpl-module-browser-title",
@@ -18,7 +19,7 @@ var pe = {
18
19
  "box-shadow": "var(--tpl-shadow-xl)",
19
20
  "max-height": "90vh"
20
21
  }
21
- }, me = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:px-5 tpl:py-4 tpl:border-[var(--tpl-border)]" }, b = {
22
+ }, pe = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:px-5 tpl:py-4 tpl:border-[var(--tpl-border)]" }, me = {
22
23
  id: "tpl-module-browser-title",
23
24
  class: "tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
24
25
  }, x = ["aria-label"], S = { class: "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:overflow-hidden" }, C = { class: "tpl:flex tpl:w-[300px] tpl:shrink-0 tpl:flex-col tpl:overflow-hidden" }, w = { class: "tpl:px-4 tpl:pt-4 tpl:pb-3" }, T = { class: "tpl:relative" }, E = ["placeholder"], D = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:px-4 tpl:pb-4" }, O = {
@@ -40,17 +41,17 @@ var pe = {
40
41
  }, ge = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, _e = {
41
42
  key: 1,
42
43
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:items-center tpl:justify-center tpl:px-4"
43
- }, ve = { class: "tpl:mt-2 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, ye = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:px-5 tpl:py-3 tpl:border-[var(--tpl-border)]" }, be = { class: "tpl:flex tpl:items-center tpl:gap-2" }, xe = { class: "tpl:shrink-0 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, Se = ["value"], Ce = { class: "tpl:flex tpl:gap-2" }, we = ["disabled"], B = /* @__PURE__ */ s({
44
+ }, ve = { class: "tpl:mt-2 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, ye = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:px-5 tpl:py-3 tpl:border-[var(--tpl-border)]" }, be = { class: "tpl:flex tpl:items-center tpl:gap-2" }, xe = { class: "tpl:shrink-0 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, Se = ["value"], Ce = { class: "tpl:flex tpl:gap-2" }, we = ["disabled"], B = /* @__PURE__ */ c({
44
45
  __name: "ModuleBrowserModal",
45
46
  props: { visible: { type: Boolean } },
46
47
  emits: ["close", "insert"],
47
- setup(s, { emit: B }) {
48
- let Te = s, V = B, Ee = re(() => import("./ModulePreviewCanvas-Cx4MOJ0X.js")), { t: De } = se(), { t: H } = de(), U = _(ae, "ModuleBrowserModal"), W = _(oe, "ModuleBrowserModal"), G = a(""), K = a(null), q = a(null), J = a("end"), Y = l(() => {
48
+ setup(c, { emit: B }) {
49
+ let Te = c, V = B, Ee = ee(() => import("./ModulePreviewCanvas-BiQ6B2-l.js")), { t: De } = oe(), { t: H } = ue(), U = v(ie, "ModuleBrowserModal"), W = v(ae, "ModuleBrowserModal"), G = s(""), K = s(null), q = s(null), J = s("end"), Y = h(() => {
49
50
  let e = U.modules.value;
50
51
  if (!G.value) return e;
51
52
  let t = G.value.toLowerCase();
52
53
  return e.filter((e) => e.name.toLowerCase().includes(t));
53
- }), X = l(() => K.value ? U.modules.value.find((e) => e.id === K.value) ?? null : null), Oe = l(() => {
54
+ }), X = h(() => K.value ? U.modules.value.find((e) => e.id === K.value) ?? null : null), Oe = h(() => {
54
55
  let e = [{
55
56
  value: "beginning",
56
57
  label: H.modules.insertAtBeginning
@@ -66,13 +67,13 @@ var pe = {
66
67
  value: "end",
67
68
  label: H.modules.insertAtEnd
68
69
  }), e;
69
- }), ke = l(() => {
70
+ }), ke = h(() => {
70
71
  if (J.value === "end") return;
71
72
  if (J.value === "beginning") return 0;
72
73
  let e = W.content.value.blocks.findIndex((e) => e.id === J.value);
73
74
  if (e !== -1) return e + 1;
74
75
  });
75
- r(() => Te.visible, (e) => {
76
+ n(() => Te.visible, (e) => {
76
77
  if (e) {
77
78
  G.value = "", K.value = null, q.value = null;
78
79
  let e = W.state.selectedBlockId;
@@ -84,9 +85,9 @@ var pe = {
84
85
  });
85
86
  function Ae(e) {
86
87
  let t = [], n = /* @__PURE__ */ new Set();
87
- for (let r of e.content) if (!n.has(r.type) && y[r.type] && (n.add(r.type), t.push({
88
+ for (let r of e.content) if (!n.has(r.type) && b[r.type] && (n.add(r.type), t.push({
88
89
  type: r.type,
89
- icon: y[r.type]
90
+ icon: b[r.type]
90
91
  })), t.length >= 5) break;
91
92
  return t;
92
93
  }
@@ -110,88 +111,88 @@ var pe = {
110
111
  function Me(e) {
111
112
  e.key === "Escape" && $(), e.key === "Enter" && X.value && (e.preventDefault(), Q());
112
113
  }
113
- return (r, a) => (e(), p(fe, {
114
- visible: s.visible,
114
+ return (n, s) => (i(), f(de, {
115
+ visible: c.visible,
115
116
  onClose: $,
116
117
  onKeydown: Me
117
118
  }, {
118
- default: ie(() => [u("div", pe, [
119
- u("div", me, [u("h3", b, h(m(H).modules.browse), 1), u("button", {
120
- "aria-label": m(H).modules.close,
119
+ default: o(() => [l("div", fe, [
120
+ l("div", pe, [l("h3", me, a(p(H).modules.browse), 1), l("button", {
121
+ "aria-label": p(H).modules.close,
121
122
  class: "tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-1 tpl:transition-colors tpl:duration-100 tpl:text-[var(--tpl-text-dim)]",
122
123
  onClick: $
123
- }, [g(m(ue), {
124
+ }, [d(p(le), {
124
125
  size: 16,
125
126
  "stroke-width": 2
126
127
  })], 8, x)]),
127
- u("div", S, [u("div", C, [u("div", w, [u("div", T, [g(m(ce), {
128
+ l("div", S, [l("div", C, [l("div", w, [l("div", T, [d(p(se), {
128
129
  size: 14,
129
130
  "stroke-width": 2,
130
131
  class: "tpl:pointer-events-none tpl:absolute tpl:left-3 tpl:top-1/2 tpl:-translate-y-1/2 tpl:text-[var(--tpl-text-dim)]"
131
- }), t(u("input", {
132
- "onUpdate:modelValue": a[0] ||= (e) => G.value = e,
132
+ }), g(l("input", {
133
+ "onUpdate:modelValue": s[0] ||= (e) => G.value = e,
133
134
  type: "text",
134
- placeholder: m(H).modules.search,
135
+ placeholder: p(H).modules.search,
135
136
  class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:pl-9 tpl:pr-3 tpl:text-sm tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
136
- }, null, 8, E), [[o, G.value]])])]), u("div", D, [Y.value.length > 0 ? (e(), d("div", O, [(e(!0), d(f, null, i(Y.value, (t) => (e(), d("button", {
137
- key: t.id,
137
+ }, null, 8, E), [[ne, G.value]])])]), l("div", D, [Y.value.length > 0 ? (i(), u("div", O, [(i(!0), u(m, null, e(Y.value, (n) => (i(), u("button", {
138
+ key: n.id,
138
139
  type: "button",
139
- "aria-pressed": K.value === t.id,
140
+ "aria-pressed": K.value === n.id,
140
141
  class: "tpl:group/card tpl:w-full tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-md)] tpl:border tpl:bg-transparent tpl:px-3 tpl:py-2 tpl:text-left tpl:transition-all tpl:duration-[120ms]",
141
- style: ne({
142
- borderColor: K.value === t.id ? "var(--tpl-primary)" : "var(--tpl-border)",
143
- backgroundColor: K.value === t.id ? "var(--tpl-primary-light)" : "transparent"
142
+ style: t({
143
+ borderColor: K.value === n.id ? "var(--tpl-primary)" : "var(--tpl-border)",
144
+ backgroundColor: K.value === n.id ? "var(--tpl-primary-light)" : "transparent"
144
145
  }),
145
- onClick: (e) => K.value = t.id
146
- }, [u("div", A, [u("span", j, h(t.name), 1), u("span", M, h(m(H).modules.blockCount.replace("{count}", String(t.content.length))), 1)]), u("div", N, [
147
- (e(!0), d(f, null, i(Ae(t), (t) => (e(), p(n(t.icon), {
148
- key: t.type,
146
+ onClick: (e) => K.value = n.id
147
+ }, [l("div", A, [l("span", j, a(n.name), 1), l("span", M, a(p(H).modules.blockCount.replace("{count}", String(n.content.length))), 1)]), l("div", N, [
148
+ (i(!0), u(m, null, e(Ae(n), (e) => (i(), f(r(e.icon), {
149
+ key: e.type,
149
150
  size: 14,
150
151
  "stroke-width": 1.5,
151
152
  class: "tpl:text-[var(--tpl-text-dim)]"
152
153
  }))), 128)),
153
- Z(t) > 0 ? (e(), d("span", P, " +" + h(Z(t)), 1)) : te("", !0),
154
- q.value === t.id ? (e(), d("button", {
154
+ Z(n) > 0 ? (i(), u("span", P, " +" + a(Z(n)), 1)) : te("", !0),
155
+ q.value === n.id ? (i(), u("button", {
155
156
  key: 1,
156
- "aria-label": m(H).modules.deleteConfirm,
157
+ "aria-label": p(H).modules.deleteConfirm,
157
158
  class: "tpl:ml-auto tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:transition-colors tpl:duration-100 tpl:border-[var(--tpl-danger)] tpl:text-[var(--tpl-danger)]",
158
159
  style: { "background-color": "transparent" },
159
- onClick: c((e) => je(t.id), ["stop"])
160
- }, h(m(H).modules.deleteConfirm), 9, F)) : (e(), d("button", {
160
+ onClick: _((e) => je(n.id), ["stop"])
161
+ }, a(p(H).modules.deleteConfirm), 9, F)) : (i(), u("button", {
161
162
  key: 2,
162
163
  class: "tpl-module-delete-btn tpl:ml-auto tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-0.5 tpl:transition-colors tpl:duration-100 tpl:text-[var(--tpl-text-dim)]",
163
- "aria-label": m(H).modules.delete,
164
- title: m(H).modules.delete,
165
- onClick: c((e) => q.value = t.id, ["stop"])
166
- }, [g(m(le), {
164
+ "aria-label": p(H).modules.delete,
165
+ title: p(H).modules.delete,
166
+ onClick: _((e) => q.value = n.id, ["stop"])
167
+ }, [d(p(ce), {
167
168
  size: 12,
168
169
  "stroke-width": 1.5
169
170
  })], 8, I))
170
- ])], 12, k))), 128))])) : (e(), d("div", L, [g(m(v), {
171
+ ])], 12, k))), 128))])) : (i(), u("div", L, [d(p(y), {
171
172
  size: 32,
172
173
  "stroke-width": 1,
173
174
  class: "tpl:text-[var(--tpl-text-dim)]"
174
- }), u("p", R, h(G.value ? m(H).modules.noModules : m(H).modules.noModulesHint), 1)]))])]), u("div", z, [X.value ? (e(), d("div", he, [u("div", ge, [g(m(Ee), { blocks: X.value.content }, null, 8, ["blocks"])])])) : (e(), d("div", _e, [g(m(v), {
175
+ }), l("p", R, a(G.value ? p(H).modules.noModules : p(H).modules.noModulesHint), 1)]))])]), l("div", z, [X.value ? (i(), u("div", he, [l("div", ge, [d(p(Ee), { blocks: X.value.content }, null, 8, ["blocks"])])])) : (i(), u("div", _e, [d(p(y), {
175
176
  size: 32,
176
177
  "stroke-width": 1,
177
178
  class: "tpl:text-[var(--tpl-text-dim)]"
178
- }), u("p", ve, h(m(H).modules.selectToPreview), 1)]))])]),
179
- u("div", ye, [u("div", be, [u("label", xe, h(m(H).modules.insertPosition), 1), t(u("select", {
180
- "onUpdate:modelValue": a[1] ||= (e) => J.value = e,
179
+ }), l("p", ve, a(p(H).modules.selectToPreview), 1)]))])]),
180
+ l("div", ye, [l("div", be, [l("label", xe, a(p(H).modules.insertPosition), 1), g(l("select", {
181
+ "onUpdate:modelValue": s[1] ||= (e) => J.value = e,
181
182
  class: "tpl:h-7 tpl:max-w-[220px] tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
182
- }, [(e(!0), d(f, null, i(Oe.value, (t) => (e(), d("option", {
183
- key: t.value,
184
- value: t.value
185
- }, h(t.label), 9, Se))), 128))], 512), [[ee, J.value]])]), u("div", Ce, [u("button", {
183
+ }, [(i(!0), u(m, null, e(Oe.value, (e) => (i(), u("option", {
184
+ key: e.value,
185
+ value: e.value
186
+ }, a(e.label), 9, Se))), 128))], 512), [[re, J.value]])]), l("div", Ce, [l("button", {
186
187
  type: "button",
187
188
  class: "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)]",
188
189
  onClick: $
189
- }, h(m(H).modules.close), 1), u("button", {
190
+ }, a(p(H).modules.close), 1), l("button", {
190
191
  type: "button",
191
192
  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)]",
192
193
  disabled: !X.value,
193
194
  onClick: Q
194
- }, h(m(H).modules.insert), 9, we)])])
195
+ }, a(p(H).modules.insert), 9, we)])])
195
196
  ])]),
196
197
  _: 1
197
198
  }, 8, ["visible"]));
@@ -1,15 +1,15 @@
1
- import { A as e, F as t, M as n, P as r, b as i, d as a, f as o, h as s, l as c, ot as l, p as u, rt as d, w as f } from "./vue.runtime.esm-bundler-BPa483TZ.js";
2
- import { F as p, _ as m, a as h, d as g, f as _, h as v, i as y, l as b, m as x, n as S, p as C, r as w, v as T, y as E } from "./useEditorCore-8JxXDOA4.js";
3
- import { o as D } from "./keys-DgYXDafq.js";
1
+ import { A as e, Dt as t, M as n, N as r, O as i, _ as a, c as o, d as s, l as c, nt as l, r as u, s as d, x as f } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
2
+ import { F as p, _ as m, a as h, d as g, f as _, h as v, i as y, l as b, m as x, n as S, p as C, r as w, v as T, y as E } from "./useEditorCore-vcWLdnjN.js";
3
+ import { o as D } from "./keys-Cv8-8GsD.js";
4
4
  //#region src/components/blocks/PreviewSectionBlock.vue?vue&type=script&setup=true&lang.ts
5
- var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__PURE__ */ i({
5
+ var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__PURE__ */ a({
6
6
  name: "PreviewSectionBlock",
7
7
  __name: "PreviewSectionBlock",
8
8
  props: {
9
9
  block: {},
10
10
  viewport: {}
11
11
  },
12
- setup(i) {
12
+ setup(a) {
13
13
  let A = {
14
14
  title: b,
15
15
  paragraph: C,
@@ -23,7 +23,7 @@ var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__
23
23
  spacer: y,
24
24
  html: m,
25
25
  custom: E
26
- }, j = i, M = f(D, null), N = a(() => {
26
+ }, j = a, M = f(D, null), N = d(() => {
27
27
  switch (j.block.columns) {
28
28
  case "2": return ["50%", "50%"];
29
29
  case "3": return [
@@ -35,7 +35,7 @@ var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__
35
35
  case "2-1": return ["66.67%", "33.33%"];
36
36
  default: return ["100%"];
37
37
  }
38
- }), P = a(() => {
38
+ }), P = d(() => {
39
39
  let e = N.value.length, t = [...j.block.children];
40
40
  for (; t.length < e;) t.push([]);
41
41
  return t.slice(0, e);
@@ -46,21 +46,21 @@ var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__
46
46
  function I(e) {
47
47
  return _(e, M, A);
48
48
  }
49
- return (i, a) => {
50
- let f = r("PreviewSectionBlock", !0);
51
- return e(), s("div", O, [o("div", k, [(e(!0), s(c, null, n(P.value, (r, i) => (e(), s("div", {
52
- key: i,
53
- style: l({ width: N.value[i] })
54
- }, [(e(!0), s(c, null, n(F(i), (n) => (e(), s("div", {
55
- key: n.id,
56
- style: l(d(g)(n))
57
- }, [n.type === "section" ? (e(), u(f, {
49
+ return (a, d) => {
50
+ let f = n("PreviewSectionBlock", !0);
51
+ return i(), s("div", O, [o("div", k, [(i(!0), s(u, null, e(P.value, (n, a) => (i(), s("div", {
52
+ key: a,
53
+ style: t({ width: N.value[a] })
54
+ }, [(i(!0), s(u, null, e(F(a), (e) => (i(), s("div", {
55
+ key: e.id,
56
+ style: t(l(g)(e))
57
+ }, [e.type === "section" ? (i(), c(f, {
58
58
  key: 0,
59
- block: n,
59
+ block: e,
60
60
  viewport: "desktop"
61
- }, null, 8, ["block"])) : (e(), u(t(I(n)), {
61
+ }, null, 8, ["block"])) : (i(), c(r(I(e)), {
62
62
  key: 1,
63
- block: n,
63
+ block: e,
64
64
  viewport: "desktop"
65
65
  }, null, 8, ["block"]))], 4))), 128))], 4))), 128))])]);
66
66
  };
@@ -71,11 +71,11 @@ var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__
71
71
  "background-color": "var(--tpl-canvas-bg)",
72
72
  "box-shadow": "var(--tpl-shadow-sm)"
73
73
  }
74
- }, M = /* @__PURE__ */ i({
74
+ }, M = /* @__PURE__ */ a({
75
75
  __name: "ModulePreviewCanvas",
76
76
  props: { blocks: {} },
77
- setup(r) {
78
- let i = f(D), a = {
77
+ setup(n) {
78
+ let a = f(D), o = {
79
79
  section: A,
80
80
  title: b,
81
81
  paragraph: C,
@@ -90,14 +90,14 @@ var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__
90
90
  html: m,
91
91
  custom: E
92
92
  };
93
- function o(e) {
94
- return _(e, i, a);
93
+ function d(e) {
94
+ return _(e, a, o);
95
95
  }
96
- return (i, a) => (e(), s("div", j, [(e(!0), s(c, null, n(r.blocks, (n) => (e(), s("div", {
97
- key: n.id,
98
- style: l(d(g)(n))
99
- }, [(e(), u(t(o(n)), {
100
- block: n,
96
+ return (a, o) => (i(), s("div", j, [(i(!0), s(u, null, e(n.blocks, (e) => (i(), s("div", {
97
+ key: e.id,
98
+ style: t(l(g)(e))
99
+ }, [(i(), c(r(d(e)), {
100
+ block: e,
101
101
  viewport: "desktop"
102
102
  }, null, 8, ["block"]))], 4))), 128))]));
103
103
  }