@templatical/editor 0.16.5 → 0.17.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 (129) hide show
  1. package/dist/{AiChatSidebar-CYAbVB2G.js → AiChatSidebar-LxCHMdcj.js} +1 -1
  2. package/dist/{AiFeatureMenu-B1oEJebq.js → AiFeatureMenu-Cr8pLXMj.js} +3 -3
  3. package/dist/{BlockIssueBadge-BLytBabN.js → BlockIssueBadge-BQ1yB1me.js} +2 -2
  4. package/dist/{CloudEditor-D6KNL6VU.js → CloudEditor-qzoNS8K4.js} +11 -10
  5. package/dist/{CollaboratorBar-C_EhXQ5R.js → CollaboratorBar-BkfR0CyD.js} +2 -2
  6. package/dist/{ColorPicker-CppJgX_T.js → ColorPicker-DfzDyNKe.js} +4 -4
  7. package/dist/{CommentsSidebar-C_XLBbo3.js → CommentsSidebar-Cl93TN96.js} +3 -3
  8. package/dist/{CountdownBlock-173fiO5Z.js → CountdownBlock-DbXfzwae.js} +1 -1
  9. package/dist/{CountdownToolbar-D5GaA_lt.js → CountdownToolbar-BqaMWRyB.js} +3 -3
  10. package/dist/{DesignReferenceSidebar-Bh9uAZ4B.js → DesignReferenceSidebar-jVrdS8wW.js} +2 -2
  11. package/dist/{IssuesPanel-DltSuU6H.js → IssuesPanel-Bq3yXg6M.js} +2 -2
  12. package/dist/{MergeTagSuggestion-jIpT_jmz.js → MergeTagSuggestion-DCuaSOPQ.js} +148 -162
  13. package/dist/{ModuleBrowserModal-CXy8Bbv9.js → ModuleBrowserModal-XEHfEO0O.js} +7 -7
  14. package/dist/{ModulePreviewCanvas-CJC9kyZN.js → ModulePreviewCanvas-BM8XUgbc.js} +2 -2
  15. package/dist/{NumberWithSuffix-DNi-v4l1.js → NumberWithSuffix-9FG7mNnn.js} +1 -1
  16. package/dist/{ParagraphEditor-nk5Vvr7M.js → ParagraphEditor-Cs47wU1V.js} +19 -19
  17. package/dist/{RichTextEditorContent-DBaCrvH0.js → RichTextEditorContent-DCzmVeyb.js} +5 -5
  18. package/dist/{SaveModuleDialog-CYu5PhBz.js → SaveModuleDialog-BgOS9vCQ.js} +6 -6
  19. package/dist/{SnapshotHistory-B38ImqMO.js → SnapshotHistory-CLfYzwv9.js} +4 -4
  20. package/dist/{TemplateScoringPanel-ZhObHWeb.js → TemplateScoringPanel-CMrfa9Rd.js} +3 -3
  21. package/dist/{TestEmailModal-DbstIzEf.js → TestEmailModal-DTLfATNt.js} +3 -3
  22. package/dist/{TitleEditor-CmfkOHJT.js → TitleEditor-Bq9S0C8Z.js} +10 -10
  23. package/dist/{TplModal-BXnx3sLr.js → TplModal-BW0FAtYe.js} +3 -3
  24. package/dist/{blockTypeIcons-BVIEw0XJ.js → blockTypeIcons-CvSfLeyV.js} +1 -1
  25. package/dist/bundle-stats.json +6 -6
  26. package/dist/{ca-DI1ViqMa.js → ca-CSl--oWR.js} +1 -1
  27. package/dist/cdn/chunks/{AiFeatureMenu-CuIg4yrB.js → AiFeatureMenu-B0zH66nO.js} +2 -2
  28. package/dist/cdn/chunks/{AiFeatureMenu-CuIg4yrB.js.map → AiFeatureMenu-B0zH66nO.js.map} +1 -1
  29. package/dist/cdn/chunks/{BlockIssueBadge-BHEl_Hs7.js → BlockIssueBadge-yD4pKsU9.js} +2 -2
  30. package/dist/cdn/chunks/{BlockIssueBadge-BHEl_Hs7.js.map → BlockIssueBadge-yD4pKsU9.js.map} +1 -1
  31. package/dist/cdn/chunks/{CloudEditor-1Ms0w691.js → CloudEditor-Da-aSmw5.js} +10 -9
  32. package/dist/cdn/chunks/CloudEditor-Da-aSmw5.js.map +1 -0
  33. package/dist/cdn/chunks/{CollaboratorBar-C0a5P64z.js → CollaboratorBar-DixaFis-.js} +3 -3
  34. package/dist/cdn/chunks/{CollaboratorBar-C0a5P64z.js.map → CollaboratorBar-DixaFis-.js.map} +1 -1
  35. package/dist/cdn/chunks/{ColorPicker-bsMmT-_B.js → ColorPicker-O6xXCPEg.js} +2 -2
  36. package/dist/cdn/chunks/{ColorPicker-bsMmT-_B.js.map → ColorPicker-O6xXCPEg.js.map} +1 -1
  37. package/dist/cdn/chunks/{CountdownBlock-8053oz4k.js → CountdownBlock-jgBPbI1p.js} +2 -2
  38. package/dist/cdn/chunks/{CountdownBlock-8053oz4k.js.map → CountdownBlock-jgBPbI1p.js.map} +1 -1
  39. package/dist/cdn/chunks/{CountdownToolbar-DQ_zrorh.js → CountdownToolbar-DrmZwvIH.js} +4 -4
  40. package/dist/cdn/chunks/{CountdownToolbar-DQ_zrorh.js.map → CountdownToolbar-DrmZwvIH.js.map} +1 -1
  41. package/dist/cdn/chunks/{IssuesPanel-CwQ376nf.js → IssuesPanel-CpyhXg9M.js} +3 -3
  42. package/dist/cdn/chunks/{IssuesPanel-CwQ376nf.js.map → IssuesPanel-CpyhXg9M.js.map} +1 -1
  43. package/dist/cdn/chunks/{MergeTagSuggestion-rpZ6Ol-i.js → MergeTagSuggestion-BmMmdcRg.js} +2 -2
  44. package/dist/cdn/chunks/{MergeTagSuggestion-rpZ6Ol-i.js.map → MergeTagSuggestion-BmMmdcRg.js.map} +1 -1
  45. package/dist/cdn/chunks/{ModuleBrowserModal-DUegB2Jk.js → ModuleBrowserModal-DPQLFTti.js} +5 -5
  46. package/dist/cdn/chunks/{ModuleBrowserModal-DUegB2Jk.js.map → ModuleBrowserModal-DPQLFTti.js.map} +1 -1
  47. package/dist/cdn/chunks/{ModulePreviewCanvas-f4h8r9Lh.js → ModulePreviewCanvas-Csc6M0RA.js} +2 -2
  48. package/dist/cdn/chunks/{ModulePreviewCanvas-f4h8r9Lh.js.map → ModulePreviewCanvas-Csc6M0RA.js.map} +1 -1
  49. package/dist/cdn/chunks/{NumberWithSuffix-Bu_nHJuD.js → NumberWithSuffix-YmcsBmCd.js} +2 -2
  50. package/dist/cdn/chunks/{NumberWithSuffix-Bu_nHJuD.js.map → NumberWithSuffix-YmcsBmCd.js.map} +1 -1
  51. package/dist/cdn/chunks/{ParagraphEditor-IpZsg8qo.js → ParagraphEditor-DR5AcHB0.js} +17 -17
  52. package/dist/cdn/chunks/{ParagraphEditor-IpZsg8qo.js.map → ParagraphEditor-DR5AcHB0.js.map} +1 -1
  53. package/dist/cdn/chunks/{RichTextEditorContent-DDnqZ9cB.js → RichTextEditorContent-52c2EuCT.js} +3 -3
  54. package/dist/cdn/chunks/{RichTextEditorContent-DDnqZ9cB.js.map → RichTextEditorContent-52c2EuCT.js.map} +1 -1
  55. package/dist/cdn/chunks/{SaveModuleDialog-CVA5HPCi.js → SaveModuleDialog-dpRlVrrQ.js} +2 -2
  56. package/dist/cdn/chunks/{SaveModuleDialog-CVA5HPCi.js.map → SaveModuleDialog-dpRlVrrQ.js.map} +1 -1
  57. package/dist/cdn/chunks/{TitleEditor-DU8wm0Rh.js → TitleEditor-DtQTPAg3.js} +8 -8
  58. package/dist/cdn/chunks/{TitleEditor-DU8wm0Rh.js.map → TitleEditor-DtQTPAg3.js.map} +1 -1
  59. package/dist/cdn/chunks/{blockTypeIcons-Dm5Oosjp.js → blockTypeIcons-B0ktHdUG.js} +3 -3
  60. package/dist/cdn/chunks/{blockTypeIcons-Dm5Oosjp.js.map → blockTypeIcons-B0ktHdUG.js.map} +1 -1
  61. package/dist/cdn/chunks/{ca-DI1ViqMa.js → ca-CSl--oWR.js} +2 -2
  62. package/dist/cdn/chunks/ca-CSl--oWR.js.map +1 -0
  63. package/dist/{de-q9lTCMre.js → cdn/chunks/de-ZaffrKDP.js} +3 -1
  64. package/dist/cdn/chunks/de-ZaffrKDP.js.map +1 -0
  65. package/dist/cdn/chunks/{en-CR4LItrX.js → en-CHuXeJDt.js} +2 -2
  66. package/dist/cdn/chunks/en-CHuXeJDt.js.map +1 -0
  67. package/dist/cdn/chunks/{es-CEt-lrGd.js → es-CaC8VQjO.js} +2 -2
  68. package/dist/cdn/chunks/es-CaC8VQjO.js.map +1 -0
  69. package/dist/cdn/chunks/{extensions-BGUoo2a5.js → extensions-CiewgCtw.js} +4 -4
  70. package/dist/cdn/chunks/{extensions-BGUoo2a5.js.map → extensions-CiewgCtw.js.map} +1 -1
  71. package/dist/cdn/chunks/{features-BSpDuFFR.js → features-DLu_D-6j.js} +702 -671
  72. package/dist/cdn/chunks/features-DLu_D-6j.js.map +1 -0
  73. package/dist/cdn/chunks/{icons-k3XVoRvc.js → icons-B03IY-pm.js} +2 -2
  74. package/dist/cdn/chunks/{icons-k3XVoRvc.js.map → icons-B03IY-pm.js.map} +1 -1
  75. package/dist/cdn/chunks/{media-library-iDq3otm6.js → media-library-CYF18RNk.js} +3 -3
  76. package/dist/cdn/chunks/{media-library-iDq3otm6.js.map → media-library-CYF18RNk.js.map} +1 -1
  77. package/dist/cdn/chunks/{pt-BR-DvBHY0AA.js → pt-BR-C74zfEWH.js} +2 -2
  78. package/dist/cdn/chunks/pt-BR-C74zfEWH.js.map +1 -0
  79. package/dist/cdn/chunks/{quality-Bb7vN32U.js → quality-LmsngN2B.js} +2 -2
  80. package/dist/cdn/chunks/{quality-Bb7vN32U.js.map → quality-LmsngN2B.js.map} +1 -1
  81. package/dist/cdn/chunks/{renderer-cOvtk8HM.js → renderer-DAeNIQqa.js} +4 -4
  82. package/dist/cdn/chunks/renderer-DAeNIQqa.js.map +1 -0
  83. package/dist/cdn/chunks/{src-Ddp969zE.js → src-CModhUDN.js} +4 -4
  84. package/dist/cdn/chunks/{src-Ddp969zE.js.map → src-CModhUDN.js.map} +1 -1
  85. package/dist/cdn/chunks/{styles-CW_gRVVR.js → styles-hd_LBGaF.js} +10 -10
  86. package/dist/cdn/chunks/{styles-CW_gRVVR.js.map → styles-hd_LBGaF.js.map} +1 -1
  87. package/dist/cdn/chunks/{tiptap-zpXk5mN4.js → tiptap-C2indasq.js} +806 -811
  88. package/dist/cdn/chunks/tiptap-C2indasq.js.map +1 -0
  89. package/dist/cdn/editor.css +1 -1
  90. package/dist/cdn/editor.js +13 -12
  91. package/dist/cdn/editor.js.map +1 -1
  92. package/dist/{cdn/chunks/de-q9lTCMre.js → de-ZaffrKDP.js} +1 -3
  93. package/dist/{dist-BReUTadj.js → dist-8TKf-Jpg.js} +2 -2
  94. package/dist/{dist-BE9m_i60.js → dist-BDVm2MrW.js} +1 -1
  95. package/dist/{dist-D1WmF8BF.js → dist-BKKo5wPC.js} +1 -1
  96. package/dist/{dist-DhY2di4U.js → dist-COSN3oDJ.js} +1 -1
  97. package/dist/{dist-CHLoeloJ.js → dist-CcX5sLpz.js} +1 -1
  98. package/dist/{dist-D9g4CSnm.js → dist-CgTKuIUN.js} +300 -298
  99. package/dist/{dist-i_Z7t67A.js → dist-Cx7IUM7J.js} +22 -15
  100. package/dist/{dist-Bm07Z3Es.js → dist-D6M5FAY7.js} +1 -1
  101. package/dist/{dist-DGEaAAIb.js → dist-DXAZUjj3.js} +1 -1
  102. package/dist/{dist-BXR1aBJV.js → dist-DbekZDmJ.js} +1 -1
  103. package/dist/{dist-DcKlLQ8d.js → dist-Dk5AdwoQ.js} +1 -1
  104. package/dist/{dist-BPPeDw62.js → dist-YSCPD13F.js} +1 -1
  105. package/dist/{en-CR4LItrX.js → en-CHuXeJDt.js} +1 -1
  106. package/dist/{es-CEt-lrGd.js → es-CaC8VQjO.js} +1 -1
  107. package/dist/{extensions-Cjd-VAII.js → extensions-DhgbhfBX.js} +5 -5
  108. package/dist/index.d.ts +44 -0
  109. package/dist/keys-WVNarXg8.js +10 -0
  110. package/dist/{pt-BR-DvBHY0AA.js → pt-BR-C74zfEWH.js} +1 -1
  111. package/dist/style.css +1 -1
  112. package/dist/{styles-DJfTblY7.js → styles-BWC0jc5-.js} +26 -26
  113. package/dist/templatical-editor.js +11 -10
  114. package/dist/{useCloudI18n-WbfVWq5k.js → useCloudI18n-CIKI0hCd.js} +1 -1
  115. package/dist/{useEditorCore-DnOG2a_b.js → useEditorCore-FLMIhtv1.js} +703 -672
  116. package/dist/{useI18n-eR1yVW0v.js → useI18n-0EU_JVe7.js} +1 -1
  117. package/dist/{useMergeTag-C3GfSktg.js → useMergeTag-C7v6MVah.js} +2 -2
  118. package/dist/{usePopoverPosition-B3Byo68F.js → usePopoverPosition-BDqqnMeo.js} +1 -1
  119. package/package.json +8 -8
  120. package/dist/cdn/chunks/CloudEditor-1Ms0w691.js.map +0 -1
  121. package/dist/cdn/chunks/ca-DI1ViqMa.js.map +0 -1
  122. package/dist/cdn/chunks/de-q9lTCMre.js.map +0 -1
  123. package/dist/cdn/chunks/en-CR4LItrX.js.map +0 -1
  124. package/dist/cdn/chunks/es-CEt-lrGd.js.map +0 -1
  125. package/dist/cdn/chunks/features-BSpDuFFR.js.map +0 -1
  126. package/dist/cdn/chunks/pt-BR-DvBHY0AA.js.map +0 -1
  127. package/dist/cdn/chunks/renderer-cOvtk8HM.js.map +0 -1
  128. package/dist/cdn/chunks/tiptap-zpXk5mN4.js.map +0 -1
  129. package/dist/keys-BbDgCU6K.js +0 -10
@@ -1,13 +1,13 @@
1
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-B0xoGkDv.js";
2
2
  import { a as ne, c as _, i as re } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import "./useEditorCore-DnOG2a_b.js";
4
- import { L as v, j as ie, m as ae } from "./keys-BbDgCU6K.js";
5
- import { t as oe } from "./useI18n-eR1yVW0v.js";
6
- import { n as se, r as y, t as b } from "./blockTypeIcons-BVIEw0XJ.js";
3
+ import "./useEditorCore-FLMIhtv1.js";
4
+ import { M as ie, R as v, m as ae } from "./keys-WVNarXg8.js";
5
+ import { t as oe } from "./useI18n-0EU_JVe7.js";
6
+ import { n as se, r as y, t as b } from "./blockTypeIcons-CvSfLeyV.js";
7
7
  import { t as ce } from "./trash-2-CRBDolnR.js";
8
8
  import { t as le } from "./x-Ctg_250T.js";
9
- import { n as ue } from "./useCloudI18n-WbfVWq5k.js";
10
- import { t as de } from "./TplModal-BXnx3sLr.js";
9
+ import { n as ue } from "./useCloudI18n-CIKI0hCd.js";
10
+ import { t as de } from "./TplModal-BW0FAtYe.js";
11
11
  //#region src/cloud/components/ModuleBrowserModal.vue?vue&type=script&setup=true&lang.ts
12
12
  var fe = {
13
13
  role: "dialog",
@@ -46,7 +46,7 @@ var fe = {
46
46
  props: { visible: { type: Boolean } },
47
47
  emits: ["close", "insert"],
48
48
  setup(c, { emit: B }) {
49
- let Te = c, V = B, Ee = ee(() => import("./ModulePreviewCanvas-CJC9kyZN.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
+ let Te = c, V = B, Ee = ee(() => import("./ModulePreviewCanvas-BM8XUgbc.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(() => {
50
50
  let e = U.modules.value;
51
51
  if (!G.value) return e;
52
52
  let t = G.value.toLowerCase();
@@ -1,6 +1,6 @@
1
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-B0xoGkDv.js";
2
- import { I 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-DnOG2a_b.js";
3
- import { o as D } from "./keys-BbDgCU6K.js";
2
+ import { I 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-FLMIhtv1.js";
3
+ import { o as D } from "./keys-WVNarXg8.js";
4
4
  //#region src/components/blocks/PreviewSectionBlock.vue?vue&type=script&setup=true&lang.ts
5
5
  var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__PURE__ */ a({
6
6
  name: "PreviewSectionBlock",
@@ -1,5 +1,5 @@
1
1
  import { A as e, Dt as t, Et as n, N as r, O as i, Ot as a, _ as o, c as s, d as c, j as l, l as u, nt as d, r as f, s as p, u as m } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
- import { h, m as g, p as _ } from "./ColorPicker-CppJgX_T.js";
2
+ import { h, m as g, p as _ } from "./ColorPicker-DfzDyNKe.js";
3
3
  //#region src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
4
4
  var v = [
5
5
  "aria-checked",
@@ -1,16 +1,16 @@
1
1
  import { A as e, Dt as t, Et as n, N as r, O as i, Ot as a, W as o, Y as s, _ as c, c as l, d as u, h as d, i as f, l as p, m, nt as h, r as g, s as _, u as v, x as y } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
2
  import { c as b, s as x } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import { D as S, E as C, S as w, x as T } from "./useEditorCore-DnOG2a_b.js";
4
- import { i as E, n as D } from "./usePopoverPosition-B3Byo68F.js";
5
- import { I as O, L as k, P as A, g as ee, m as te, w as ne, x as re } from "./keys-BbDgCU6K.js";
6
- import { t as j } from "./useI18n-eR1yVW0v.js";
3
+ import { D as S, E as C, S as w, x as T } from "./useEditorCore-FLMIhtv1.js";
4
+ import { i as E, n as D } from "./usePopoverPosition-BDqqnMeo.js";
5
+ import { F as O, L as k, R as A, S as ee, T as te, g as ne, m as re } from "./keys-WVNarXg8.js";
6
+ import { t as j } from "./useI18n-0EU_JVe7.js";
7
7
  import { t as M } from "./createLucideIcon-FSF4peHQ.js";
8
- import { a as ie, i as ae, n as N, r as oe, t as P } from "./RichTextEditorContent-DBaCrvH0.js";
8
+ import { a as ie, i as ae, n as N, r as oe, t as P } from "./RichTextEditorContent-DCzmVeyb.js";
9
9
  import { n as se, t as ce } from "./scan-line-IAMjPtRw.js";
10
10
  import { t as le } from "./loader-circle-BT38qSm3.js";
11
11
  import { n as ue, r as de, t as fe } from "./text-align-start-BwsA6QzC.js";
12
12
  import { t as F } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
- import { c as pe, o as me, r as he, s as ge, t as I } from "./ColorPicker-CppJgX_T.js";
13
+ import { c as pe, o as me, r as he, s as ge, t as I } from "./ColorPicker-DfzDyNKe.js";
14
14
  var L = M("list-ordered", [
15
15
  ["path", {
16
16
  d: "M11 5h10",
@@ -305,7 +305,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
305
305
  "add-logic-tag"
306
306
  ],
307
307
  setup(e, { emit: n }) {
308
- let r = e, o = n, s = y(A, null), c = y(O, null), b = k(ee, "ParagraphToolbar"), x = D(), S = y(ne, null), C = y(re, null), w = y(te, null), T = _(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: E } = j(), M = b.fonts;
308
+ let r = e, o = n, s = y(O, null), c = y(k, null), b = A(ne, "ParagraphToolbar"), x = D(), S = y(te, null), C = y(ee, null), w = y(re, null), T = _(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: E } = j(), M = b.fonts;
309
309
  function N(e) {
310
310
  r.editor?.chain().focus().insertContent(e).run();
311
311
  }
@@ -625,18 +625,18 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
625
625
  editorName: "ParagraphEditor",
626
626
  async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
627
627
  let [{ Editor: o, EditorContent: s }, { default: c }, { default: l }, { default: u }, { default: d }, { default: f }, { default: p }, { TextStyle: m }, { default: h }, { default: g }, { default: _ }, { MergeTagNode: v, MergeTagSuggestion: y, LogicMergeTagNode: b, FontSize: x, LineHeight: S, LetterSpacing: C }] = await Promise.all([
628
- import("./dist-BReUTadj.js").then((e) => e.r),
629
- import("./dist-i_Z7t67A.js"),
630
- import("./dist-CHLoeloJ.js"),
631
- import("./dist-DGEaAAIb.js"),
632
- import("./dist-DcKlLQ8d.js"),
633
- import("./dist-D1WmF8BF.js"),
634
- import("./dist-Bm07Z3Es.js"),
635
- import("./dist-DhY2di4U.js"),
636
- import("./dist-BXR1aBJV.js"),
637
- import("./dist-BE9m_i60.js"),
638
- import("./dist-BPPeDw62.js"),
639
- import("./extensions-Cjd-VAII.js")
628
+ import("./dist-8TKf-Jpg.js").then((e) => e.r),
629
+ import("./dist-Cx7IUM7J.js"),
630
+ import("./dist-CcX5sLpz.js"),
631
+ import("./dist-DXAZUjj3.js"),
632
+ import("./dist-Dk5AdwoQ.js"),
633
+ import("./dist-BKKo5wPC.js"),
634
+ import("./dist-D6M5FAY7.js"),
635
+ import("./dist-COSN3oDJ.js"),
636
+ import("./dist-DbekZDmJ.js"),
637
+ import("./dist-BDVm2MrW.js"),
638
+ import("./dist-YSCPD13F.js"),
639
+ import("./extensions-DhgbhfBX.js")
640
640
  ]);
641
641
  return {
642
642
  TiptapEditor: o,
@@ -1,11 +1,11 @@
1
1
  import { C as e, Dt as t, N as n, O as r, Ot as i, P as a, _ as o, c as s, d as c, h as l, i as u, l as d, m as f, nt as p, s as m, u as h, x as g, z as _ } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
2
  import { a as v, c as y } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import { n as b } from "./usePopoverPosition-B3Byo68F.js";
4
- import { I as x, P as S, m as C } from "./keys-BbDgCU6K.js";
5
- import { t as w } from "./useI18n-eR1yVW0v.js";
3
+ import { n as b } from "./usePopoverPosition-BDqqnMeo.js";
4
+ import { F as x, L as S, m as C } from "./keys-WVNarXg8.js";
5
+ import { t as w } from "./useI18n-0EU_JVe7.js";
6
6
  import { t as T } from "./createLucideIcon-FSF4peHQ.js";
7
7
  import { t as E } from "./x-Ctg_250T.js";
8
- import { t as D } from "./ColorPicker-CppJgX_T.js";
8
+ import { t as D } from "./ColorPicker-DfzDyNKe.js";
9
9
  var O = T("bold", [["path", {
10
10
  d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",
11
11
  key: "mg9rjx"
@@ -67,7 +67,7 @@ var O = T("bold", [["path", {
67
67
  "update:dialogRef"
68
68
  ]),
69
69
  setup(e, { emit: n }) {
70
- let o = a(e, "linkUrl"), f = a(e, "linkColor"), T = a(e, "dialogRef"), O = n, k = g(S, null), A = g(x, null), U = b(), W = g(C, null), G = m(() => W?.content.value.settings.linkColor || "#2c85de"), { t: K } = w();
70
+ let o = a(e, "linkUrl"), f = a(e, "linkColor"), T = a(e, "dialogRef"), O = n, k = g(x, null), A = g(S, null), U = b(), W = g(C, null), G = m(() => W?.content.value.settings.linkColor || "#2c85de"), { t: K } = w();
71
71
  return (n, a) => p(U) ? (r(), d(u, {
72
72
  key: 0,
73
73
  to: p(U)
@@ -1,12 +1,12 @@
1
1
  import { A as e, Dt as t, Et as n, I as r, O as i, Ot as a, R as o, 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, s as g, u as ee, z as _ } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
2
  import { a as v } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import "./useEditorCore-DnOG2a_b.js";
4
- import { L as y, j as b, m as x } from "./keys-BbDgCU6K.js";
5
- import { t as S } from "./useI18n-eR1yVW0v.js";
3
+ import "./useEditorCore-FLMIhtv1.js";
4
+ import { M as y, R as b, m as x } from "./keys-WVNarXg8.js";
5
+ import { t as S } from "./useI18n-0EU_JVe7.js";
6
6
  import { t as te } from "./loader-circle-BT38qSm3.js";
7
- import { n as ne } from "./useCloudI18n-WbfVWq5k.js";
7
+ import { n as ne } from "./useCloudI18n-CIKI0hCd.js";
8
8
  import { t as re } from "./ToggleSwitch-DUNuUPsZ.js";
9
- import { t as C } from "./TplModal-BXnx3sLr.js";
9
+ import { t as C } from "./TplModal-BW0FAtYe.js";
10
10
  //#region src/cloud/components/SaveModuleDialog.vue?vue&type=script&setup=true&lang.ts
11
11
  var w = ["aria-busy"], T = {
12
12
  id: "tpl-save-module-title",
@@ -26,7 +26,7 @@ var w = ["aria-busy"], T = {
26
26
  },
27
27
  emits: ["close", "saved"],
28
28
  setup(c, { emit: R }) {
29
- let z = c, B = R, { t: V } = S(), { t: H } = ne(), U = y(x, "SaveModuleDialog"), W = y(b, "SaveModuleDialog"), G = s(""), K = s(/* @__PURE__ */ new Set()), q = s(!1), J = s(null), Y = g(() => U.content.value.blocks);
29
+ let z = c, B = R, { t: V } = S(), { t: H } = ne(), U = b(x, "SaveModuleDialog"), W = b(y, "SaveModuleDialog"), G = s(""), K = s(/* @__PURE__ */ new Set()), q = s(!1), J = s(null), Y = g(() => U.content.value.blocks);
30
30
  function X(e, t) {
31
31
  let n = e.type;
32
32
  return `${V.blocks[n] ?? e.type} ${t + 1}`;
@@ -1,13 +1,13 @@
1
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, nt as d, r as f, s as p, u as m } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
2
  import { c as h, t as g } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import "./useEditorCore-DnOG2a_b.js";
4
- import { i as _ } from "./usePopoverPosition-B3Byo68F.js";
5
- import { t as v } from "./useI18n-eR1yVW0v.js";
3
+ import "./useEditorCore-FLMIhtv1.js";
4
+ import { i as _ } from "./usePopoverPosition-BDqqnMeo.js";
5
+ import { t as v } from "./useI18n-0EU_JVe7.js";
6
6
  import { t as y } from "./createLucideIcon-FSF4peHQ.js";
7
7
  import { t as b } from "./chevron-down-dClfxKrJ.js";
8
8
  import { t as x } from "./clock-m7TwQw4b.js";
9
9
  import { t as S } from "./loader-circle-BT38qSm3.js";
10
- import { n as C } from "./useCloudI18n-WbfVWq5k.js";
10
+ import { n as C } from "./useCloudI18n-CIKI0hCd.js";
11
11
  import { t as w } from "./formatRelativeTime-CtUU-QZ8.js";
12
12
  var T = y("chevron-left", [["path", {
13
13
  d: "m15 18-6-6 6-6",
@@ -1,6 +1,6 @@
1
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-B0xoGkDv.js";
2
2
  import { t as ne } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import { L as _, M as re, S as ie, m as v } from "./keys-BbDgCU6K.js";
3
+ import { C as re, N as ie, R as _, m as v } from "./keys-WVNarXg8.js";
4
4
  import { t as y } from "./createLucideIcon-FSF4peHQ.js";
5
5
  import { t as b } from "./chevron-down-dClfxKrJ.js";
6
6
  import { t as x } from "./circle-alert-Bhzm-fNA.js";
@@ -13,7 +13,7 @@ import { t as oe } from "./triangle-alert-B2g0ALvq.js";
13
13
  import { t as se } from "./x-Ctg_250T.js";
14
14
  import { t as ce } from "./LoadingTrack-KIcREPlS.js";
15
15
  import { t as D } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
- import { n as le } from "./useCloudI18n-WbfVWq5k.js";
16
+ import { n as le } from "./useCloudI18n-CIKI0hCd.js";
17
17
  var O = y("shield-x", [
18
18
  ["path", {
19
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",
@@ -91,7 +91,7 @@ var P = {
91
91
  props: { visible: { type: Boolean } },
92
92
  emits: ["close"],
93
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
+ let D = c, G = y, { t: K } = le(), q = _(v, "TemplateScoringPanel"), J = _(ie, "TemplateScoringPanel"), Y = te(re, []), X = s({
95
95
  spam: !0,
96
96
  readability: !0,
97
97
  accessibility: !0,
@@ -1,9 +1,9 @@
1
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-B0xoGkDv.js";
2
2
  import { i as _ } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import "./useEditorCore-DnOG2a_b.js";
3
+ import "./useEditorCore-FLMIhtv1.js";
4
4
  import { t as v } from "./loader-circle-BT38qSm3.js";
5
- import { n as y } from "./useCloudI18n-WbfVWq5k.js";
6
- import { t as b } from "./TplModal-BXnx3sLr.js";
5
+ import { n as y } from "./useCloudI18n-CIKI0hCd.js";
6
+ import { t as b } from "./TplModal-BW0FAtYe.js";
7
7
  //#region src/cloud/components/TestEmailModal.vue?vue&type=script&setup=true&lang.ts
8
8
  var x = ["aria-busy"], S = {
9
9
  id: "tpl-test-email-title",
@@ -1,9 +1,9 @@
1
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-B0xoGkDv.js";
2
- import { S as ee, x as te } from "./useEditorCore-DnOG2a_b.js";
3
- import { n as ne } from "./usePopoverPosition-B3Byo68F.js";
4
- import { I as _, P as v, w as y, x as b } from "./keys-BbDgCU6K.js";
5
- import { t as re } from "./useI18n-eR1yVW0v.js";
6
- import { a as ie, i as ae, n as oe, r as se, t as ce } from "./RichTextEditorContent-DBaCrvH0.js";
2
+ import { S as ee, x as te } from "./useEditorCore-FLMIhtv1.js";
3
+ import { n as ne } from "./usePopoverPosition-BDqqnMeo.js";
4
+ import { F as _, L as v, S as y, T as b } from "./keys-WVNarXg8.js";
5
+ import { t as re } from "./useI18n-0EU_JVe7.js";
6
+ import { a as ie, i as ae, n as oe, r as se, t as ce } from "./RichTextEditorContent-DCzmVeyb.js";
7
7
  import { n as x, t as S } from "./scan-line-IAMjPtRw.js";
8
8
  import { t as C } from "./loader-circle-BT38qSm3.js";
9
9
  //#region src/components/blocks/TitleEditor.vue?vue&type=script&setup=true&lang.ts
@@ -24,17 +24,17 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
24
24
  },
25
25
  emits: ["done"],
26
26
  setup(a, { emit: P }) {
27
- let F = a, I = P, L = g(v, null), R = g(_, null), z = ne(), B = g(y, null), le = g(b, null), V = m(() => (B?.isOpen.value ?? !1) || (le?.isOpen.value ?? !1)), { t: H } = re(), { editor: U, EditorContent: W, isLoading: G, initError: ue, retry: de, showLinkDialog: fe, linkUrl: K, linkColor: q, linkDialogRef: J, canRequestMergeTag: Y, canInsertLogicTag: X, openLinkDialog: Z, insertLink: pe, removeLink: me, closeLinkDialog: he, handleLinkKeydown: ge, handleAddMergeTag: Q, handleAddLogicTag: $ } = te({
27
+ let F = a, I = P, L = g(_, null), R = g(v, null), z = ne(), B = g(b, null), le = g(y, null), V = m(() => (B?.isOpen.value ?? !1) || (le?.isOpen.value ?? !1)), { t: H } = re(), { editor: U, EditorContent: W, isLoading: G, initError: ue, retry: de, showLinkDialog: fe, linkUrl: K, linkColor: q, linkDialogRef: J, canRequestMergeTag: Y, canInsertLogicTag: X, openLinkDialog: Z, insertLink: pe, removeLink: me, closeLinkDialog: he, handleLinkKeydown: ge, handleAddMergeTag: Q, handleAddLogicTag: $ } = te({
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-BReUTadj.js").then((e) => e.r),
35
- import("./dist-i_Z7t67A.js"),
36
- import("./dist-CHLoeloJ.js"),
37
- import("./extensions-Cjd-VAII.js")
34
+ import("./dist-8TKf-Jpg.js").then((e) => e.r),
35
+ import("./dist-Cx7IUM7J.js"),
36
+ import("./dist-CcX5sLpz.js"),
37
+ import("./extensions-DhgbhfBX.js")
38
38
  ]);
39
39
  return {
40
40
  TiptapEditor: a,
@@ -1,8 +1,8 @@
1
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-B0xoGkDv.js";
2
2
  import { c as m, t as h } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import { D as g } from "./useEditorCore-DnOG2a_b.js";
4
- import { n as _ } from "./usePopoverPosition-B3Byo68F.js";
5
- import { I as v } from "./keys-BbDgCU6K.js";
3
+ import { D as g } from "./useEditorCore-FLMIhtv1.js";
4
+ import { n as _ } from "./usePopoverPosition-BDqqnMeo.js";
5
+ import { L as v } from "./keys-WVNarXg8.js";
6
6
  //#region src/components/TplModal.vue?vue&type=script&setup=true&lang.ts
7
7
  var y = ["data-tpl-theme"], b = /* @__PURE__ */ r({
8
8
  __name: "TplModal",
@@ -1,4 +1,4 @@
1
- import { A as e, F as t, M as n, j as r, k as i } from "./useEditorCore-DnOG2a_b.js";
1
+ import { A as e, F as t, M as n, j as r, k as i } from "./useEditorCore-FLMIhtv1.js";
2
2
  import { t as a } from "./createLucideIcon-FSF4peHQ.js";
3
3
  var o = a("columns-3", [
4
4
  ["rect", {
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.16.5",
3
- "initialGzipBytes": 282785,
4
- "initialRawBytes": 1015111,
2
+ "version": "0.17.1",
3
+ "initialGzipBytes": 283170,
4
+ "initialRawBytes": 1016257,
5
5
  "initialFileCount": 42,
6
- "lazyGzipBytes": 181398,
7
- "lazyRawBytes": 595924,
6
+ "lazyGzipBytes": 181562,
7
+ "lazyRawBytes": 596343,
8
8
  "lazyFileCount": 46,
9
- "generatedAt": "2026-07-20T20:11:17.315Z"
9
+ "generatedAt": "2026-07-23T09:20:55.737Z"
10
10
  }
@@ -327,7 +327,7 @@ var e = {
327
327
  content: "Contingut HTML",
328
328
  preview: "Bloc HTML personalitzat",
329
329
  empty: "Afegeix contingut HTML al panell",
330
- sanitizationHint: "Els scripts i els elements no segurs s'eliminen en exportar."
330
+ sanitizationHint: "L'HTML s'exporta tal qual i no es depura — assegura't que el contingut sigui segur."
331
331
  },
332
332
  blockSettings: {
333
333
  spacing: "Espaiat",
@@ -1,5 +1,5 @@
1
1
  import { L as e, M as t, P as n, ct as r, f as i, g as a, m as o, p as s, st as c, u as l, x as u } from "./draggable-D840DIZB.js";
2
- import { Et as d, Vt as f, ct as p, fn as m, gt as h, ht as g, ot as _ } from "./features-BSpDuFFR.js";
2
+ import { Et as d, Vt as f, ct as p, fn as m, gt as h, ht as g, ot as _ } from "./features-DLu_D-6j.js";
3
3
  //#region src/cloud/components/AiFeatureMenu.vue?vue&type=script&setup=true&lang.ts
4
4
  var v = {
5
5
  class: "tpl-ai-feature-menu tpl:w-[280px] tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:py-1 tpl:bg-[var(--tpl-bg-elevated)] tpl:border tpl:border-[var(--tpl-border)] tpl:shadow-[var(--tpl-shadow-lg)]",
@@ -56,4 +56,4 @@ var v = {
56
56
  //#endregion
57
57
  export { C as default };
58
58
 
59
- //# sourceMappingURL=AiFeatureMenu-CuIg4yrB.js.map
59
+ //# sourceMappingURL=AiFeatureMenu-B0zH66nO.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AiFeatureMenu-CuIg4yrB.js","names":[],"sources":["../../../src/cloud/components/AiFeatureMenu.vue","../../../src/cloud/components/AiFeatureMenu.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useCloudI18nStrict } from \"../../composables\";\nimport { AI_CONFIG_KEY, requireInject } from \"../../keys\";\nimport type { AiConfig } from \"@templatical/types\";\nimport { ImageUp, ShieldCheck, Sparkles } from \"@lucide/vue\";\nimport { computed } from \"vue\";\n\nexport type AiFeature = \"ai-chat\" | \"design-reference\" | \"scoring\";\n\ndefineProps<{\n activeFeature: AiFeature | null;\n}>();\n\nconst emit = defineEmits<{\n (e: \"select\", feature: AiFeature): void;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n\nconst aiConfig = requireInject(AI_CONFIG_KEY, \"AiFeatureMenu\");\n\nconst configKeyMap: Record<AiFeature, keyof AiConfig> = {\n \"ai-chat\": \"chat\",\n \"design-reference\": \"designToTemplate\",\n scoring: \"scoring\",\n};\n\nconst allFeatures: { key: AiFeature; icon: typeof Sparkles }[] = [\n { key: \"ai-chat\", icon: Sparkles },\n { key: \"design-reference\", icon: ImageUp },\n { key: \"scoring\", icon: ShieldCheck },\n];\n\nconst features = computed(() =>\n allFeatures.filter((f) => aiConfig.isFeatureEnabled(configKeyMap[f.key])),\n);\n\nfunction getTitle(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistant;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplate;\n return cloudT.aiMenu.templateScore;\n}\n\nfunction getDescription(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistantDesc;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplateDesc;\n return cloudT.aiMenu.templateScoreDesc;\n}\n</script>\n\n<template>\n <div\n class=\"tpl-ai-feature-menu tpl:w-[280px] tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:py-1 tpl:bg-[var(--tpl-bg-elevated)] tpl:border tpl:border-[var(--tpl-border)] tpl:shadow-[var(--tpl-shadow-lg)]\"\n style=\"backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px)\"\n >\n <button\n v-for=\"feature in features\"\n :key=\"feature.key\"\n class=\"tpl-ai-feature-menu-item tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-start tpl:gap-3 tpl:border-none tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-colors tpl:duration-100\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary-light)'\n : 'transparent',\n }\"\n @click=\"emit('select', feature.key)\"\n >\n <div\n class=\"tpl:mt-0.5 tpl:flex tpl:size-7 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)]\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary)'\n : 'var(--tpl-bg-active)',\n color:\n activeFeature === feature.key\n ? 'var(--tpl-bg)'\n : 'var(--tpl-text-muted)',\n }\"\n >\n <component :is=\"feature.icon\" :size=\"15\" :stroke-width=\"2\" />\n </div>\n <div class=\"tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5\">\n <span class=\"tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]\">\n {{ getTitle(feature.key) }}\n </span>\n <span\n class=\"tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ getDescription(feature.key) }}\n </span>\n </div>\n </button>\n </div>\n</template>\n\n<style scoped>\n.tpl-ai-feature-menu-item:hover {\n background-color: var(--tpl-bg-hover) !important;\n}\n</style>\n","<script setup lang=\"ts\">\nimport { useCloudI18nStrict } from \"../../composables\";\nimport { AI_CONFIG_KEY, requireInject } from \"../../keys\";\nimport type { AiConfig } from \"@templatical/types\";\nimport { ImageUp, ShieldCheck, Sparkles } from \"@lucide/vue\";\nimport { computed } from \"vue\";\n\nexport type AiFeature = \"ai-chat\" | \"design-reference\" | \"scoring\";\n\ndefineProps<{\n activeFeature: AiFeature | null;\n}>();\n\nconst emit = defineEmits<{\n (e: \"select\", feature: AiFeature): void;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n\nconst aiConfig = requireInject(AI_CONFIG_KEY, \"AiFeatureMenu\");\n\nconst configKeyMap: Record<AiFeature, keyof AiConfig> = {\n \"ai-chat\": \"chat\",\n \"design-reference\": \"designToTemplate\",\n scoring: \"scoring\",\n};\n\nconst allFeatures: { key: AiFeature; icon: typeof Sparkles }[] = [\n { key: \"ai-chat\", icon: Sparkles },\n { key: \"design-reference\", icon: ImageUp },\n { key: \"scoring\", icon: ShieldCheck },\n];\n\nconst features = computed(() =>\n allFeatures.filter((f) => aiConfig.isFeatureEnabled(configKeyMap[f.key])),\n);\n\nfunction getTitle(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistant;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplate;\n return cloudT.aiMenu.templateScore;\n}\n\nfunction getDescription(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistantDesc;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplateDesc;\n return cloudT.aiMenu.templateScoreDesc;\n}\n</script>\n\n<template>\n <div\n class=\"tpl-ai-feature-menu tpl:w-[280px] tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:py-1 tpl:bg-[var(--tpl-bg-elevated)] tpl:border tpl:border-[var(--tpl-border)] tpl:shadow-[var(--tpl-shadow-lg)]\"\n style=\"backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px)\"\n >\n <button\n v-for=\"feature in features\"\n :key=\"feature.key\"\n class=\"tpl-ai-feature-menu-item tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-start tpl:gap-3 tpl:border-none tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-colors tpl:duration-100\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary-light)'\n : 'transparent',\n }\"\n @click=\"emit('select', feature.key)\"\n >\n <div\n class=\"tpl:mt-0.5 tpl:flex tpl:size-7 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)]\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary)'\n : 'var(--tpl-bg-active)',\n color:\n activeFeature === feature.key\n ? 'var(--tpl-bg)'\n : 'var(--tpl-text-muted)',\n }\"\n >\n <component :is=\"feature.icon\" :size=\"15\" :stroke-width=\"2\" />\n </div>\n <div class=\"tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5\">\n <span class=\"tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]\">\n {{ getTitle(feature.key) }}\n </span>\n <span\n class=\"tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ getDescription(feature.key) }}\n </span>\n </div>\n </button>\n </div>\n</template>\n\n<style scoped>\n.tpl-ai-feature-menu-item:hover {\n background-color: var(--tpl-bg-hover) !important;\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;EAaA,IAAM,IAAO,GAIP,EAAE,GAAG,MAAW,EAAmB,GAEnC,IAAW,EAAc,GAAe,eAAe,GAEvD,IAAkD;GACtD,WAAW;GACX,oBAAoB;GACpB,SAAS;EACX,GAEM,IAA2D;GAC/D;IAAE,KAAK;IAAW,MAAM;GAAS;GACjC;IAAE,KAAK;IAAoB,MAAM;GAAQ;GACzC;IAAE,KAAK;IAAW,MAAM;GAAY;EACtC,GAEM,IAAW,QACf,EAAY,QAAQ,MAAM,EAAS,iBAAiB,EAAa,EAAE,IAAI,CAAC,CAC1E;EAEA,SAAS,EAAS,GAAwB;GAGxC,OAFI,MAAQ,YAAkB,EAAO,OAAO,cACxC,MAAQ,qBAA2B,EAAO,OAAO,mBAC9C,EAAO,OAAO;EACvB;EAEA,SAAS,EAAe,GAAwB;GAG9C,OAFI,MAAQ,YAAkB,EAAO,OAAO,kBACxC,MAAQ,qBAA2B,EAAO,OAAO,uBAC9C,EAAO,OAAO;EACvB;yBAIE,EA0CM,OA1CN,GA0CM,EAAA,EAAA,EAAA,GAtCJ,EAqCS,GAAA,MAAA,EApCW,EAAA,QAAX,YADT,EAqCS,UAAA;GAnCN,KAAK,EAAQ;GACd,OAAM;GACL,OAAK,EAAA,EAAA,iBAAuC,EAAA,kBAAkB,EAAQ,MAAA,6BAAA,cAAA,CAAA;GAMtE,UAAK,MAAE,EAAI,UAAW,EAAQ,GAAG;MAElC,EAcM,OAAA;GAbJ,OAAM;GACL,OAAK,EAAA;qBAA2C,EAAA,kBAAkB,EAAQ,MAAA,uBAAA;WAA8G,EAAA,kBAAkB,EAAQ,MAAA,kBAAA;;YAWnN,EAA6D,EAA7C,EAAQ,IAAI,GAAA;GAAG,MAAM;GAAK,gBAAc;YAE1D,EASM,OATN,GASM,CARJ,EAEO,QAFP,GAEO,EADF,EAAS,EAAQ,GAAG,CAAA,GAAA,CAAA,GAEzB,EAIO,QAJP,GAIO,EADF,EAAe,EAAQ,GAAG,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,GAAA,IAAA,CAAA"}
1
+ {"version":3,"file":"AiFeatureMenu-B0zH66nO.js","names":[],"sources":["../../../src/cloud/components/AiFeatureMenu.vue","../../../src/cloud/components/AiFeatureMenu.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useCloudI18nStrict } from \"../../composables\";\nimport { AI_CONFIG_KEY, requireInject } from \"../../keys\";\nimport type { AiConfig } from \"@templatical/types\";\nimport { ImageUp, ShieldCheck, Sparkles } from \"@lucide/vue\";\nimport { computed } from \"vue\";\n\nexport type AiFeature = \"ai-chat\" | \"design-reference\" | \"scoring\";\n\ndefineProps<{\n activeFeature: AiFeature | null;\n}>();\n\nconst emit = defineEmits<{\n (e: \"select\", feature: AiFeature): void;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n\nconst aiConfig = requireInject(AI_CONFIG_KEY, \"AiFeatureMenu\");\n\nconst configKeyMap: Record<AiFeature, keyof AiConfig> = {\n \"ai-chat\": \"chat\",\n \"design-reference\": \"designToTemplate\",\n scoring: \"scoring\",\n};\n\nconst allFeatures: { key: AiFeature; icon: typeof Sparkles }[] = [\n { key: \"ai-chat\", icon: Sparkles },\n { key: \"design-reference\", icon: ImageUp },\n { key: \"scoring\", icon: ShieldCheck },\n];\n\nconst features = computed(() =>\n allFeatures.filter((f) => aiConfig.isFeatureEnabled(configKeyMap[f.key])),\n);\n\nfunction getTitle(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistant;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplate;\n return cloudT.aiMenu.templateScore;\n}\n\nfunction getDescription(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistantDesc;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplateDesc;\n return cloudT.aiMenu.templateScoreDesc;\n}\n</script>\n\n<template>\n <div\n class=\"tpl-ai-feature-menu tpl:w-[280px] tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:py-1 tpl:bg-[var(--tpl-bg-elevated)] tpl:border tpl:border-[var(--tpl-border)] tpl:shadow-[var(--tpl-shadow-lg)]\"\n style=\"backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px)\"\n >\n <button\n v-for=\"feature in features\"\n :key=\"feature.key\"\n class=\"tpl-ai-feature-menu-item tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-start tpl:gap-3 tpl:border-none tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-colors tpl:duration-100\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary-light)'\n : 'transparent',\n }\"\n @click=\"emit('select', feature.key)\"\n >\n <div\n class=\"tpl:mt-0.5 tpl:flex tpl:size-7 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)]\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary)'\n : 'var(--tpl-bg-active)',\n color:\n activeFeature === feature.key\n ? 'var(--tpl-bg)'\n : 'var(--tpl-text-muted)',\n }\"\n >\n <component :is=\"feature.icon\" :size=\"15\" :stroke-width=\"2\" />\n </div>\n <div class=\"tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5\">\n <span class=\"tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]\">\n {{ getTitle(feature.key) }}\n </span>\n <span\n class=\"tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ getDescription(feature.key) }}\n </span>\n </div>\n </button>\n </div>\n</template>\n\n<style scoped>\n.tpl-ai-feature-menu-item:hover {\n background-color: var(--tpl-bg-hover) !important;\n}\n</style>\n","<script setup lang=\"ts\">\nimport { useCloudI18nStrict } from \"../../composables\";\nimport { AI_CONFIG_KEY, requireInject } from \"../../keys\";\nimport type { AiConfig } from \"@templatical/types\";\nimport { ImageUp, ShieldCheck, Sparkles } from \"@lucide/vue\";\nimport { computed } from \"vue\";\n\nexport type AiFeature = \"ai-chat\" | \"design-reference\" | \"scoring\";\n\ndefineProps<{\n activeFeature: AiFeature | null;\n}>();\n\nconst emit = defineEmits<{\n (e: \"select\", feature: AiFeature): void;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n\nconst aiConfig = requireInject(AI_CONFIG_KEY, \"AiFeatureMenu\");\n\nconst configKeyMap: Record<AiFeature, keyof AiConfig> = {\n \"ai-chat\": \"chat\",\n \"design-reference\": \"designToTemplate\",\n scoring: \"scoring\",\n};\n\nconst allFeatures: { key: AiFeature; icon: typeof Sparkles }[] = [\n { key: \"ai-chat\", icon: Sparkles },\n { key: \"design-reference\", icon: ImageUp },\n { key: \"scoring\", icon: ShieldCheck },\n];\n\nconst features = computed(() =>\n allFeatures.filter((f) => aiConfig.isFeatureEnabled(configKeyMap[f.key])),\n);\n\nfunction getTitle(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistant;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplate;\n return cloudT.aiMenu.templateScore;\n}\n\nfunction getDescription(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistantDesc;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplateDesc;\n return cloudT.aiMenu.templateScoreDesc;\n}\n</script>\n\n<template>\n <div\n class=\"tpl-ai-feature-menu tpl:w-[280px] tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:py-1 tpl:bg-[var(--tpl-bg-elevated)] tpl:border tpl:border-[var(--tpl-border)] tpl:shadow-[var(--tpl-shadow-lg)]\"\n style=\"backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px)\"\n >\n <button\n v-for=\"feature in features\"\n :key=\"feature.key\"\n class=\"tpl-ai-feature-menu-item tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-start tpl:gap-3 tpl:border-none tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-colors tpl:duration-100\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary-light)'\n : 'transparent',\n }\"\n @click=\"emit('select', feature.key)\"\n >\n <div\n class=\"tpl:mt-0.5 tpl:flex tpl:size-7 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)]\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary)'\n : 'var(--tpl-bg-active)',\n color:\n activeFeature === feature.key\n ? 'var(--tpl-bg)'\n : 'var(--tpl-text-muted)',\n }\"\n >\n <component :is=\"feature.icon\" :size=\"15\" :stroke-width=\"2\" />\n </div>\n <div class=\"tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5\">\n <span class=\"tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]\">\n {{ getTitle(feature.key) }}\n </span>\n <span\n class=\"tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ getDescription(feature.key) }}\n </span>\n </div>\n </button>\n </div>\n</template>\n\n<style scoped>\n.tpl-ai-feature-menu-item:hover {\n background-color: var(--tpl-bg-hover) !important;\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;EAaA,IAAM,IAAO,GAIP,EAAE,GAAG,MAAW,EAAmB,GAEnC,IAAW,EAAc,GAAe,eAAe,GAEvD,IAAkD;GACtD,WAAW;GACX,oBAAoB;GACpB,SAAS;EACX,GAEM,IAA2D;GAC/D;IAAE,KAAK;IAAW,MAAM;GAAS;GACjC;IAAE,KAAK;IAAoB,MAAM;GAAQ;GACzC;IAAE,KAAK;IAAW,MAAM;GAAY;EACtC,GAEM,IAAW,QACf,EAAY,QAAQ,MAAM,EAAS,iBAAiB,EAAa,EAAE,IAAI,CAAC,CAC1E;EAEA,SAAS,EAAS,GAAwB;GAGxC,OAFI,MAAQ,YAAkB,EAAO,OAAO,cACxC,MAAQ,qBAA2B,EAAO,OAAO,mBAC9C,EAAO,OAAO;EACvB;EAEA,SAAS,EAAe,GAAwB;GAG9C,OAFI,MAAQ,YAAkB,EAAO,OAAO,kBACxC,MAAQ,qBAA2B,EAAO,OAAO,uBAC9C,EAAO,OAAO;EACvB;yBAIE,EA0CM,OA1CN,GA0CM,EAAA,EAAA,EAAA,GAtCJ,EAqCS,GAAA,MAAA,EApCW,EAAA,QAAX,YADT,EAqCS,UAAA;GAnCN,KAAK,EAAQ;GACd,OAAM;GACL,OAAK,EAAA,EAAA,iBAAuC,EAAA,kBAAkB,EAAQ,MAAA,6BAAA,cAAA,CAAA;GAMtE,UAAK,MAAE,EAAI,UAAW,EAAQ,GAAG;MAElC,EAcM,OAAA;GAbJ,OAAM;GACL,OAAK,EAAA;qBAA2C,EAAA,kBAAkB,EAAQ,MAAA,uBAAA;WAA8G,EAAA,kBAAkB,EAAQ,MAAA,kBAAA;;YAWnN,EAA6D,EAA7C,EAAQ,IAAI,GAAA;GAAG,MAAM;GAAK,gBAAc;YAE1D,EASM,OATN,GASM,CARJ,EAEO,QAFP,GAEO,EADF,EAAS,EAAQ,GAAG,CAAA,GAAA,CAAA,GAEzB,EAIO,QAJP,GAIO,EADF,EAAe,EAAQ,GAAG,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,GAAA,IAAA,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { M as e, T as t, f as n, g as r, h as i, it as a, m as o, ot as s, x as c } from "./draggable-D840DIZB.js";
2
- import { Bt as l, Mt as u, cn as d, ft as f } from "./features-BSpDuFFR.js";
2
+ import { Bt as l, Mt as u, cn as d, ft as f } from "./features-DLu_D-6j.js";
3
3
  //#region src/components/canvas/BlockIssueBadge.vue?vue&type=script&setup=true&lang.ts
4
4
  var p = ["title", "aria-label"], m = /* @__PURE__ */ c({
5
5
  __name: "BlockIssueBadge",
@@ -30,4 +30,4 @@ var p = ["title", "aria-label"], m = /* @__PURE__ */ c({
30
30
  //#endregion
31
31
  export { m as default };
32
32
 
33
- //# sourceMappingURL=BlockIssueBadge-BHEl_Hs7.js.map
33
+ //# sourceMappingURL=BlockIssueBadge-yD4pKsU9.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BlockIssueBadge-BHEl_Hs7.js","names":[],"sources":["../../../src/components/canvas/BlockIssueBadge.vue","../../../src/components/canvas/BlockIssueBadge.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, inject } from \"vue\";\nimport { CircleAlert, TriangleAlert } from \"@lucide/vue\";\nimport { useI18n } from \"../../composables/useI18n\";\nimport { TEMPLATE_LINT_KEY } from \"../../keys\";\n\nconst props = defineProps<{ blockId: string }>();\nconst { t } = useI18n();\nconst lint = inject(TEMPLATE_LINT_KEY, null);\n\nconst blockIssues = computed(() =>\n (lint?.issues.value ?? []).filter((i) => i.blockId === props.blockId),\n);\n\nconst severity = computed<\"error\" | \"warning\" | null>(() => {\n if (blockIssues.value.some((i) => i.severity === \"error\")) return \"error\";\n if (blockIssues.value.some((i) => i.severity === \"warning\")) return \"warning\";\n return null;\n});\n\nconst tooltip = computed(() =>\n severity.value === \"error\" ? t.issues.badgeError : t.issues.badgeWarning,\n);\n</script>\n\n<template>\n <span\n v-if=\"severity\"\n class=\"tpl:absolute tpl:top-1 tpl:right-1 tpl:z-10 tpl:flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)] tpl:ring-1 tpl:ring-[var(--tpl-border)]\"\n :class=\"\n severity === 'error'\n ? 'tpl:text-[var(--tpl-danger)]'\n : 'tpl:text-[var(--tpl-warning)]'\n \"\n :title=\"tooltip\"\n :aria-label=\"tooltip\"\n role=\"img\"\n >\n <CircleAlert\n v-if=\"severity === 'error'\"\n :size=\"14\"\n :stroke-width=\"2.25\"\n fill=\"currentColor\"\n stroke=\"var(--tpl-bg)\"\n />\n <TriangleAlert\n v-else\n :size=\"14\"\n :stroke-width=\"2.25\"\n fill=\"currentColor\"\n stroke=\"var(--tpl-bg)\"\n />\n </span>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, inject } from \"vue\";\nimport { CircleAlert, TriangleAlert } from \"@lucide/vue\";\nimport { useI18n } from \"../../composables/useI18n\";\nimport { TEMPLATE_LINT_KEY } from \"../../keys\";\n\nconst props = defineProps<{ blockId: string }>();\nconst { t } = useI18n();\nconst lint = inject(TEMPLATE_LINT_KEY, null);\n\nconst blockIssues = computed(() =>\n (lint?.issues.value ?? []).filter((i) => i.blockId === props.blockId),\n);\n\nconst severity = computed<\"error\" | \"warning\" | null>(() => {\n if (blockIssues.value.some((i) => i.severity === \"error\")) return \"error\";\n if (blockIssues.value.some((i) => i.severity === \"warning\")) return \"warning\";\n return null;\n});\n\nconst tooltip = computed(() =>\n severity.value === \"error\" ? t.issues.badgeError : t.issues.badgeWarning,\n);\n</script>\n\n<template>\n <span\n v-if=\"severity\"\n class=\"tpl:absolute tpl:top-1 tpl:right-1 tpl:z-10 tpl:flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)] tpl:ring-1 tpl:ring-[var(--tpl-border)]\"\n :class=\"\n severity === 'error'\n ? 'tpl:text-[var(--tpl-danger)]'\n : 'tpl:text-[var(--tpl-warning)]'\n \"\n :title=\"tooltip\"\n :aria-label=\"tooltip\"\n role=\"img\"\n >\n <CircleAlert\n v-if=\"severity === 'error'\"\n :size=\"14\"\n :stroke-width=\"2.25\"\n fill=\"currentColor\"\n stroke=\"var(--tpl-bg)\"\n />\n <TriangleAlert\n v-else\n :size=\"14\"\n :stroke-width=\"2.25\"\n fill=\"currentColor\"\n stroke=\"var(--tpl-bg)\"\n />\n </span>\n</template>\n"],"mappings":";;;;;;;EAMA,IAAM,IAAQ,GACR,EAAE,SAAM,EAAQ,GAChB,IAAO,EAAO,GAAmB,IAAI,GAErC,IAAc,SACjB,GAAM,OAAO,SAAS,CAAC,EAAA,CAAG,QAAQ,MAAM,EAAE,YAAY,EAAM,OAAO,CACtE,GAEM,IAAW,QACX,EAAY,MAAM,MAAM,MAAM,EAAE,aAAa,OAAO,IAAU,UAC9D,EAAY,MAAM,MAAM,MAAM,EAAE,aAAa,SAAS,IAAU,YAC7D,IACR,GAEK,IAAU,QACd,EAAS,UAAU,UAAU,EAAE,OAAO,aAAa,EAAE,OAAO,YAC9D;mBAKU,EAAA,SAAA,EAAA,GADR,EA0BO,QAAA;;GAxBL,OAAK,EAAA,CAAC,yNACS,EAAA,UAAQ,UAAA,iCAAA,+BAAA,CAAA;GAKtB,OAAO,EAAA;GACP,cAAY,EAAA;GACb,MAAK;MAGG,EAAA,UAAQ,WAAA,EAAA,GADhB,EAME,EAAA,CAAA,GAAA;;GAJC,MAAM;GACN,gBAAc;GACf,MAAK;GACL,QAAO;cAET,EAME,EAAA,CAAA,GAAA;;GAJC,MAAM;GACN,gBAAc;GACf,MAAK;GACL,QAAO"}
1
+ {"version":3,"file":"BlockIssueBadge-yD4pKsU9.js","names":[],"sources":["../../../src/components/canvas/BlockIssueBadge.vue","../../../src/components/canvas/BlockIssueBadge.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, inject } from \"vue\";\nimport { CircleAlert, TriangleAlert } from \"@lucide/vue\";\nimport { useI18n } from \"../../composables/useI18n\";\nimport { TEMPLATE_LINT_KEY } from \"../../keys\";\n\nconst props = defineProps<{ blockId: string }>();\nconst { t } = useI18n();\nconst lint = inject(TEMPLATE_LINT_KEY, null);\n\nconst blockIssues = computed(() =>\n (lint?.issues.value ?? []).filter((i) => i.blockId === props.blockId),\n);\n\nconst severity = computed<\"error\" | \"warning\" | null>(() => {\n if (blockIssues.value.some((i) => i.severity === \"error\")) return \"error\";\n if (blockIssues.value.some((i) => i.severity === \"warning\")) return \"warning\";\n return null;\n});\n\nconst tooltip = computed(() =>\n severity.value === \"error\" ? t.issues.badgeError : t.issues.badgeWarning,\n);\n</script>\n\n<template>\n <span\n v-if=\"severity\"\n class=\"tpl:absolute tpl:top-1 tpl:right-1 tpl:z-10 tpl:flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)] tpl:ring-1 tpl:ring-[var(--tpl-border)]\"\n :class=\"\n severity === 'error'\n ? 'tpl:text-[var(--tpl-danger)]'\n : 'tpl:text-[var(--tpl-warning)]'\n \"\n :title=\"tooltip\"\n :aria-label=\"tooltip\"\n role=\"img\"\n >\n <CircleAlert\n v-if=\"severity === 'error'\"\n :size=\"14\"\n :stroke-width=\"2.25\"\n fill=\"currentColor\"\n stroke=\"var(--tpl-bg)\"\n />\n <TriangleAlert\n v-else\n :size=\"14\"\n :stroke-width=\"2.25\"\n fill=\"currentColor\"\n stroke=\"var(--tpl-bg)\"\n />\n </span>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, inject } from \"vue\";\nimport { CircleAlert, TriangleAlert } from \"@lucide/vue\";\nimport { useI18n } from \"../../composables/useI18n\";\nimport { TEMPLATE_LINT_KEY } from \"../../keys\";\n\nconst props = defineProps<{ blockId: string }>();\nconst { t } = useI18n();\nconst lint = inject(TEMPLATE_LINT_KEY, null);\n\nconst blockIssues = computed(() =>\n (lint?.issues.value ?? []).filter((i) => i.blockId === props.blockId),\n);\n\nconst severity = computed<\"error\" | \"warning\" | null>(() => {\n if (blockIssues.value.some((i) => i.severity === \"error\")) return \"error\";\n if (blockIssues.value.some((i) => i.severity === \"warning\")) return \"warning\";\n return null;\n});\n\nconst tooltip = computed(() =>\n severity.value === \"error\" ? t.issues.badgeError : t.issues.badgeWarning,\n);\n</script>\n\n<template>\n <span\n v-if=\"severity\"\n class=\"tpl:absolute tpl:top-1 tpl:right-1 tpl:z-10 tpl:flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)] tpl:ring-1 tpl:ring-[var(--tpl-border)]\"\n :class=\"\n severity === 'error'\n ? 'tpl:text-[var(--tpl-danger)]'\n : 'tpl:text-[var(--tpl-warning)]'\n \"\n :title=\"tooltip\"\n :aria-label=\"tooltip\"\n role=\"img\"\n >\n <CircleAlert\n v-if=\"severity === 'error'\"\n :size=\"14\"\n :stroke-width=\"2.25\"\n fill=\"currentColor\"\n stroke=\"var(--tpl-bg)\"\n />\n <TriangleAlert\n v-else\n :size=\"14\"\n :stroke-width=\"2.25\"\n fill=\"currentColor\"\n stroke=\"var(--tpl-bg)\"\n />\n </span>\n</template>\n"],"mappings":";;;;;;;EAMA,IAAM,IAAQ,GACR,EAAE,SAAM,EAAQ,GAChB,IAAO,EAAO,GAAmB,IAAI,GAErC,IAAc,SACjB,GAAM,OAAO,SAAS,CAAC,EAAA,CAAG,QAAQ,MAAM,EAAE,YAAY,EAAM,OAAO,CACtE,GAEM,IAAW,QACX,EAAY,MAAM,MAAM,MAAM,EAAE,aAAa,OAAO,IAAU,UAC9D,EAAY,MAAM,MAAM,MAAM,EAAE,aAAa,SAAS,IAAU,YAC7D,IACR,GAEK,IAAU,QACd,EAAS,UAAU,UAAU,EAAE,OAAO,aAAa,EAAE,OAAO,YAC9D;mBAKU,EAAA,SAAA,EAAA,GADR,EA0BO,QAAA;;GAxBL,OAAK,EAAA,CAAC,yNACS,EAAA,UAAQ,UAAA,iCAAA,+BAAA,CAAA;GAKtB,OAAO,EAAA;GACP,cAAY,EAAA;GACb,MAAK;MAGG,EAAA,UAAQ,WAAA,EAAA,GADhB,EAME,EAAA,CAAA,GAAA;;GAJC,MAAM;GACN,gBAAc;GACf,MAAK;GACL,QAAO;cAET,EAME,EAAA,CAAA,GAAA;;GAJC,MAAM;GACN,gBAAc;GACf,MAAK;GACL,QAAO"}
@@ -1,8 +1,8 @@
1
1
  import { $ as e, A as t, H as n, J as r, M as i, N as a, P as o, V as s, Z as c, _ as l, b as u, ct as d, f, g as p, h as m, it as h, j as g, l as _, m as v, n as y, ot as b, p as x, s as S, st as C, u as w, v as T, x as E, y as D, z as O } from "./draggable-D840DIZB.js";
2
- import { Bt as k, Ct as A, E as j, Ft as M, Jt as N, Kt as ee, Mt as P, Nn as F, Qn as I, Rt as L, S as R, Sn as z, St as B, Ut as te, Vt as ne, X as V, _ as H, b as U, c as re, ct as W, d as G, f as K, ft as q, g as ie, h as ae, ht as J, in as oe, jt as Y, k as X, l as Z, m as Q, nt as se, on as ce, ot as $, p as le, pn as ue, qt as de, s as fe, sn as pe, u as me, v as he, vt as ge, x as _e, y as ve, zn as ye } from "./features-BSpDuFFR.js";
3
- import { S as be, x as xe } from "./icons-k3XVoRvc.js";
4
- import { a as Se, c as Ce, d as we, f as Te, i as Ee, l as De, n as Oe, o as ke, r as Ae, s as je, t as Me, u as Ne } from "./styles-CW_gRVVR.js";
5
- import { d as Pe } from "./ColorPicker-bsMmT-_B.js";
2
+ import { Bt as k, Ct as A, E as j, Ft as M, Jt as N, Kt as ee, Mt as P, Nn as F, Qn as I, Rt as L, S as R, Sn as z, St as B, Ut as te, Vt as ne, X as V, _ as H, b as U, c as re, ct as W, d as G, f as K, ft as q, g as ie, h as ae, ht as J, in as oe, jt as Y, k as X, l as Z, m as Q, nt as se, on as ce, ot as $, p as le, pn as ue, qt as de, s as fe, sn as pe, u as me, v as he, vt as ge, x as _e, y as ve, zn as ye } from "./features-DLu_D-6j.js";
3
+ import { S as be, x as xe } from "./icons-B03IY-pm.js";
4
+ import { a as Se, c as Ce, d as we, f as Te, i as Ee, l as De, n as Oe, o as ke, r as Ae, s as je, t as Me, u as Ne } from "./styles-hd_LBGaF.js";
5
+ import { d as Pe } from "./ColorPicker-O6xXCPEg.js";
6
6
  //#region src/cloud/composables/useSnapshotPreview.ts
7
7
  function Fe(t) {
8
8
  let { authManager: n, editor: i, history: a, conditionPreview: o, autoSave: s, onError: l } = t, u = e(null), d = c(null), p = c(null), m = !1;
@@ -175,7 +175,7 @@ function ze(e) {
175
175
  let t = f(e);
176
176
  if (t) return s?.(t), null;
177
177
  try {
178
- let { MediaApiClient: t } = await import("./src-Ddp969zE.js");
178
+ let { MediaApiClient: t } = await import("./src-CModhUDN.js");
179
179
  return l(await new t(a).uploadMedia(e));
180
180
  } catch (e) {
181
181
  return s?.(e), null;
@@ -246,6 +246,7 @@ function Be(e) {
246
246
  blockDefaults: t.blockDefaults,
247
247
  customBlocks: [],
248
248
  paletteBlocks: t.paletteBlocks,
249
+ htmlBlockPreview: t.htmlBlockPreview,
249
250
  mergeTags: t.mergeTags,
250
251
  logicTags: t.logicTags,
251
252
  displayConditions: t.displayConditions,
@@ -595,7 +596,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
595
596
  },
596
597
  emits: ["save"],
597
598
  setup(e) {
598
- let t = u(() => import("./CollaboratorBar-C0a5P64z.js")), n = u(() => import("./features-BSpDuFFR.js").then((e) => e.r)), r = u(() => import("./AiFeatureMenu-CuIg4yrB.js")), { t: a, format: o } = $();
599
+ let t = u(() => import("./CollaboratorBar-DixaFis-.js")), n = u(() => import("./features-DLu_D-6j.js").then((e) => e.r)), r = u(() => import("./AiFeatureMenu-B0zH66nO.js")), { t: a, format: o } = $();
599
600
  return (c, l) => (i(), p("header", et, [
600
601
  x("div", tt, [e.featureFlags.templateLimit.value === null ? m("", !0) : (i(), p("span", nt, d(h(o)(h(a).header.templatesUsed, {
601
602
  used: e.featureFlags.templateCount.value,
@@ -757,9 +758,9 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
757
758
  "module-insert"
758
759
  ],
759
760
  setup(e, { expose: t, emit: n }) {
760
- let r = u(() => import("./features-BSpDuFFR.js").then((e) => e.o)), a = u(() => import("./features-BSpDuFFR.js").then((e) => e.a)), o = u(() => import("./features-BSpDuFFR.js").then((e) => e.i)), s = u(() => import("./features-BSpDuFFR.js").then((e) => e.n)), l = u(() => import("./features-BSpDuFFR.js").then((e) => e.t)), d = u(() => import("./SaveModuleDialog-CVA5HPCi.js")), f = u(() => import("./ModuleBrowserModal-DUegB2Jk.js")), g = u(async () => {
761
+ let r = u(() => import("./features-DLu_D-6j.js").then((e) => e.o)), a = u(() => import("./features-DLu_D-6j.js").then((e) => e.a)), o = u(() => import("./features-DLu_D-6j.js").then((e) => e.i)), s = u(() => import("./features-DLu_D-6j.js").then((e) => e.n)), l = u(() => import("./features-DLu_D-6j.js").then((e) => e.t)), d = u(() => import("./SaveModuleDialog-dpRlVrrQ.js")), f = u(() => import("./ModuleBrowserModal-DPQLFTti.js")), g = u(async () => {
761
762
  try {
762
- return (await import("./src-Ddp969zE.js")).MediaLibraryModal;
763
+ return (await import("./src-CModhUDN.js")).MediaLibraryModal;
763
764
  } catch {
764
765
  throw Error("[Templatical] Cloud media library requires the optional peer dependency '@templatical/media-library'. Please install it.");
765
766
  }
@@ -1200,4 +1201,4 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1200
1201
  //#endregion
1201
1202
  export { It as default };
1202
1203
 
1203
- //# sourceMappingURL=CloudEditor-1Ms0w691.js.map
1204
+ //# sourceMappingURL=CloudEditor-Da-aSmw5.js.map