@templatical/editor 0.21.2 → 0.22.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 (88) hide show
  1. package/README.md +1 -1
  2. package/dist/{AiFeatureMenu-CcqQDHzJ.js → AiFeatureMenu-CcqjRMFW.js} +1 -1
  3. package/dist/{CloudEditor-DOjGJwPe.js → CloudEditor-BVH7D1Ka.js} +5 -5
  4. package/dist/{CollaboratorBar-Bj4NZiie.js → CollaboratorBar-C_1SF7Xf.js} +1 -1
  5. package/dist/{MergeTagSuggestion-DMe4rqn0.js → MergeTagSuggestion-D9eCryMC.js} +2 -2
  6. package/dist/{ParagraphEditor--_zWfxps.js → ParagraphEditor-MKJYyWN9.js} +13 -13
  7. package/dist/{SaveBlockDialog-CYIEHABH.js → SaveBlockDialog-B_5KBaXW.js} +3 -3
  8. package/dist/{SavedBlockPreviewCanvas-2-mzAnZE.js → SavedBlockPreviewCanvas-DXkGDYph.js} +1 -1
  9. package/dist/{SavedBlocksBrowserModal-D5V5yF_3.js → SavedBlocksBrowserModal-DoJBoYPk.js} +4 -4
  10. package/dist/{SavedBlocksPanels-Dff38YXu.js → SavedBlocksPanels-3Af5dMaf.js} +1 -1
  11. package/dist/{SavedBlocksPickBar-rB6iyji6.js → SavedBlocksPickBar-C1FTJP-I.js} +1 -1
  12. package/dist/{SnapshotHistory-FtzDq8f0.js → SnapshotHistory-DWlQ3Eh0.js} +1 -1
  13. package/dist/{TestEmailModal-DL2O1H8M.js → TestEmailModal-DComAFpR.js} +2 -2
  14. package/dist/{TitleEditor-CPda5lh-.js → TitleEditor-DzsPxKv4.js} +5 -5
  15. package/dist/{TplModal-C7Koj5gM.js → TplModal-CykwWFhF.js} +1 -1
  16. package/dist/{blockTypeIcons-CgwECCut.js → blockTypeIcons-CpKkI47V.js} +1 -1
  17. package/dist/bundle-stats.json +7 -7
  18. package/dist/cdn/chunks/{AiFeatureMenu-Duwg413F.js → AiFeatureMenu-hWgWQg11.js} +2 -2
  19. package/dist/cdn/chunks/{AiFeatureMenu-Duwg413F.js.map → AiFeatureMenu-hWgWQg11.js.map} +1 -1
  20. package/dist/cdn/chunks/{CloudEditor-C0Y4RD4c.js → CloudEditor-FCS53UcZ.js} +8 -8
  21. package/dist/cdn/chunks/{CloudEditor-C0Y4RD4c.js.map → CloudEditor-FCS53UcZ.js.map} +1 -1
  22. package/dist/cdn/chunks/{CollaboratorBar-BS3rJy6-.js → CollaboratorBar-mkJVAkSh.js} +2 -2
  23. package/dist/cdn/chunks/{CollaboratorBar-BS3rJy6-.js.map → CollaboratorBar-mkJVAkSh.js.map} +1 -1
  24. package/dist/cdn/chunks/{MergeTagSuggestion-D7TsECll.js → MergeTagSuggestion-BM349_QH.js} +2 -2
  25. package/dist/cdn/chunks/{MergeTagSuggestion-D7TsECll.js.map → MergeTagSuggestion-BM349_QH.js.map} +1 -1
  26. package/dist/cdn/chunks/{ParagraphEditor-CtaRa1vr.js → ParagraphEditor-J-1RLyi7.js} +14 -14
  27. package/dist/cdn/chunks/{ParagraphEditor-CtaRa1vr.js.map → ParagraphEditor-J-1RLyi7.js.map} +1 -1
  28. package/dist/cdn/chunks/{SaveBlockDialog-Bb3fdUEZ.js → SaveBlockDialog-CSeD3gn9.js} +4 -4
  29. package/dist/cdn/chunks/{SaveBlockDialog-Bb3fdUEZ.js.map → SaveBlockDialog-CSeD3gn9.js.map} +1 -1
  30. package/dist/cdn/chunks/{SavedBlockPreviewCanvas-DZOMgNsz.js → SavedBlockPreviewCanvas-DgLOKtR_.js} +2 -2
  31. package/dist/cdn/chunks/{SavedBlockPreviewCanvas-DZOMgNsz.js.map → SavedBlockPreviewCanvas-DgLOKtR_.js.map} +1 -1
  32. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CeUWcPv0.js → SavedBlocksBrowserModal-B2x5WRPN.js} +4 -4
  33. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CeUWcPv0.js.map → SavedBlocksBrowserModal-B2x5WRPN.js.map} +1 -1
  34. package/dist/cdn/chunks/{SavedBlocksPanels-D-pA_wfk.js → SavedBlocksPanels-BzMTZxf2.js} +2 -2
  35. package/dist/cdn/chunks/{SavedBlocksPanels-D-pA_wfk.js.map → SavedBlocksPanels-BzMTZxf2.js.map} +1 -1
  36. package/dist/cdn/chunks/{SavedBlocksPickBar-1rf1KpqS.js → SavedBlocksPickBar-CduR1Cpb.js} +2 -2
  37. package/dist/cdn/chunks/{SavedBlocksPickBar-1rf1KpqS.js.map → SavedBlocksPickBar-CduR1Cpb.js.map} +1 -1
  38. package/dist/cdn/chunks/{SnapshotHistory-Bf1uovti.js → SnapshotHistory-DO-gzr3i.js} +2 -2
  39. package/dist/cdn/chunks/{SnapshotHistory-Bf1uovti.js.map → SnapshotHistory-DO-gzr3i.js.map} +1 -1
  40. package/dist/cdn/chunks/{TestEmailModal-BJTDxFHh.js → TestEmailModal-DT37w7i_.js} +3 -3
  41. package/dist/cdn/chunks/{TestEmailModal-BJTDxFHh.js.map → TestEmailModal-DT37w7i_.js.map} +1 -1
  42. package/dist/cdn/chunks/{TitleEditor-BJ7LFykI.js → TitleEditor-J1vgU_J6.js} +6 -6
  43. package/dist/cdn/chunks/{TitleEditor-BJ7LFykI.js.map → TitleEditor-J1vgU_J6.js.map} +1 -1
  44. package/dist/cdn/chunks/{TplModal-CH9RzKF7.js → TplModal-BN53d9Se.js} +2 -2
  45. package/dist/cdn/chunks/{TplModal-CH9RzKF7.js.map → TplModal-BN53d9Se.js.map} +1 -1
  46. package/dist/cdn/chunks/{extensions-ZX2oarW6.js → extensions-C49c51P1.js} +3 -3
  47. package/dist/cdn/chunks/{extensions-ZX2oarW6.js.map → extensions-C49c51P1.js.map} +1 -1
  48. package/dist/cdn/chunks/fr-BMWOPztQ.js +610 -0
  49. package/dist/cdn/chunks/fr-BMWOPztQ.js.map +1 -0
  50. package/dist/cdn/chunks/fr-Dswns199.js +89 -0
  51. package/dist/cdn/chunks/fr-Dswns199.js.map +1 -0
  52. package/dist/cdn/chunks/nl-CbcPJlrL.js +89 -0
  53. package/dist/cdn/chunks/nl-CbcPJlrL.js.map +1 -0
  54. package/dist/cdn/chunks/nl-Dhctu7JL.js +610 -0
  55. package/dist/cdn/chunks/nl-Dhctu7JL.js.map +1 -0
  56. package/dist/cdn/chunks/{src-D6F_3XkE.js → src-ByWL5K1f.js} +3 -1
  57. package/dist/cdn/chunks/{src-D6F_3XkE.js.map → src-ByWL5K1f.js.map} +1 -1
  58. package/dist/cdn/chunks/{src-BuC_IHzN.js → src-MA8DWI8O.js} +2 -2
  59. package/dist/cdn/chunks/{src-BuC_IHzN.js.map → src-MA8DWI8O.js.map} +1 -1
  60. package/dist/cdn/chunks/{styles-DMOEiSX9.js → styles-BkXzQ4-n.js} +4 -4
  61. package/dist/cdn/chunks/{styles-DMOEiSX9.js.map → styles-BkXzQ4-n.js.map} +1 -1
  62. package/dist/cdn/chunks/{tiptap-BMZ-OENR.js → tiptap-DUTbZTeR.js} +5 -5
  63. package/dist/cdn/chunks/{tiptap-BMZ-OENR.js.map → tiptap-DUTbZTeR.js.map} +1 -1
  64. package/dist/cdn/chunks/{useEditorCore-BA6mspzD.js → useEditorCore-CzMhD6Gd.js} +3 -3
  65. package/dist/cdn/chunks/{useEditorCore-BA6mspzD.js.map → useEditorCore-CzMhD6Gd.js.map} +1 -1
  66. package/dist/cdn/editor.js +7 -5
  67. package/dist/cdn/editor.js.map +1 -1
  68. package/dist/{dist-CDO52Rxy.js → dist-3DHaYEiT.js} +2 -2
  69. package/dist/{dist-BEpCh2mG.js → dist-3HenmYIg.js} +1 -1
  70. package/dist/{dist-CrjzhIxB.js → dist-BCnJcAQc.js} +2 -2
  71. package/dist/{dist-BgPYC_8-.js → dist-B_etKYyh.js} +5 -5
  72. package/dist/{dist-CBzCU-a-.js → dist-CL_CfQ3Q.js} +2 -2
  73. package/dist/dist-CcQLJeWV.js +5 -0
  74. package/dist/{dist-CuXha2_7.js → dist-CclnU_v0.js} +2 -2
  75. package/dist/{dist-BkM8A17N.js → dist-DKWoZJAV.js} +2 -2
  76. package/dist/{dist-DYClLqy8.js → dist-DOtLGnLr.js} +2 -2
  77. package/dist/dist-DerdmERj.js +5 -0
  78. package/dist/{dist-BuNDAAVp.js → dist-Ih7ejWzn.js} +2 -2
  79. package/dist/{dist-CtcgoC_R.js → dist-bivrM-nS.js} +2 -2
  80. package/dist/{extensions-ClY5Sh7S.js → extensions-3870a_3R.js} +3 -3
  81. package/dist/fr-BMWOPztQ.js +608 -0
  82. package/dist/nl-Dhctu7JL.js +608 -0
  83. package/dist/{styles-PcOPXvLO.js → styles-AxBd7CgB.js} +4 -4
  84. package/dist/templatical-editor.js +6 -4
  85. package/dist/{useEditorCore-CT1slufs.js → useEditorCore-CuMMIfiS.js} +2 -2
  86. package/package.json +20 -20
  87. package/dist/dist-CweLDZrs.js +0 -5
  88. package/dist/dist-DOsdqAEZ.js +0 -5
package/README.md CHANGED
@@ -12,7 +12,7 @@ The visual editor for [Templatical](https://github.com/templatical/sdk) — an o
12
12
  - 🎨 **27 design tokens** — full theming via `--tpl-user-*` CSS variables, dark mode, custom fonts
13
13
  - 🔌 **Framework-agnostic** — works in React, Vue, Svelte, Angular, vanilla
14
14
  - 📦 **JSON in, MJML out** — portable templates, render with any email provider
15
- - 🌍 **Multilingual** — English, German, Portuguese, Spanish & Catalan built in
15
+ - 🌍 **Multilingual** — English, German, Portuguese, Spanish, Catalan, French & Dutch built in
16
16
  - 🔒 **TypeScript strict** — full type safety end to end
17
17
 
18
18
  ## Install
@@ -1,5 +1,5 @@
1
1
  import { A as e, Dt as t, N as n, O as r, Ot as i, _ as a, c as o, d as s, l as c, r as l, s as u } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
- import "./useEditorCore-CT1slufs.js";
2
+ import "./useEditorCore-CuMMIfiS.js";
3
3
  import { B as d, t as f } from "./keys-CHPcp-Nz.js";
4
4
  import { t as p } from "./image-up-CQdtq8ge.js";
5
5
  import { t as m } from "./shield-check-B7x5OKt5.js";
@@ -2,7 +2,7 @@ import { A as e, D as t, Dt as n, E as r, Et as i, I as a, K as o, O as s, Ot as
2
2
  import { c as E, o as D, t as O } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
3
  import { n as k } from "./upload-BwwE0U6G.js";
4
4
  import { A } from "./dist-BJbqgyPn.js";
5
- import { E as j, V as M, t as N, x as P } from "./useEditorCore-CT1slufs.js";
5
+ import { E as j, V as M, t as N, x as P } from "./useEditorCore-CuMMIfiS.js";
6
6
  import { m as F } from "./dist-DYv_Pttj.js";
7
7
  import { s as I } from "./usePopoverPosition-BO2LNy5n.js";
8
8
  import { A as L, F as R, c as z, r as B, s as V, t as H, u as ee } from "./keys-CHPcp-Nz.js";
@@ -10,7 +10,7 @@ import { t as U } from "./useI18n-D2L9Mkik.js";
10
10
  import { t as W } from "./createLucideIcon-JWHwTI6N.js";
11
11
  import { t as G } from "./check-BpQDKiPz.js";
12
12
  import { t as K } from "./circle-alert-CgtE46ND.js";
13
- import { a as q, c as te, d as ne, f as re, i as ie, l as ae, m as oe, n as se, o as ce, p as le, r as ue, s as de, t as fe, u as pe } from "./styles-PcOPXvLO.js";
13
+ import { a as q, c as te, d as ne, f as re, i as ie, l as ae, m as oe, n as se, o as ce, p as le, r as ue, s as de, t as fe, u as pe } from "./styles-AxBd7CgB.js";
14
14
  import { t as me } from "./clock-BzKLLW5L.js";
15
15
  import { t as J } from "./loader-circle-C-Z6kgI6.js";
16
16
  import { t as Y } from "./message-circle-CEm5qckV.js";
@@ -622,7 +622,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
622
622
  },
623
623
  emits: ["save"],
624
624
  setup(e) {
625
- let t = h(() => import("./CollaboratorBar-Bj4NZiie.js")), r = h(() => import("./SnapshotHistory-FtzDq8f0.js")), a = h(() => import("./AiFeatureMenu-CcqQDHzJ.js")), { t: o, format: u } = Q();
625
+ let t = h(() => import("./CollaboratorBar-C_1SF7Xf.js")), r = h(() => import("./SnapshotHistory-DWlQ3Eh0.js")), a = h(() => import("./AiFeatureMenu-CcqjRMFW.js")), { t: o, format: u } = Q();
626
626
  return (d, f) => (s(), m("header", et, [
627
627
  p("div", tt, [e.featureFlags.templateLimit.value === null ? w("", !0) : (s(), m("span", nt, c(b(u)(b(o).header.templatesUsed, {
628
628
  used: e.featureFlags.templateCount.value,
@@ -774,7 +774,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
774
774
  },
775
775
  emits: ["send-test-email"],
776
776
  setup(e, { expose: t, emit: n }) {
777
- let r = h(() => import("./AiChatSidebar-K_AehWc-.js")), i = h(() => import("./CommentsSidebar-DvNEdugN.js")), a = h(() => import("./DesignReferenceSidebar-DNmK3dxp.js")), o = h(() => import("./TemplateScoringPanel-ifGGGWs5.js")), c = h(() => import("./TestEmailModal-DL2O1H8M.js")), l = h(async () => {
777
+ let r = h(() => import("./AiChatSidebar-K_AehWc-.js")), i = h(() => import("./CommentsSidebar-DvNEdugN.js")), a = h(() => import("./DesignReferenceSidebar-DNmK3dxp.js")), o = h(() => import("./TemplateScoringPanel-ifGGGWs5.js")), c = h(() => import("./TestEmailModal-DComAFpR.js")), l = h(async () => {
778
778
  try {
779
779
  return (await import("@templatical/media-library")).MediaLibraryModal;
780
780
  } catch {
@@ -933,7 +933,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
933
933
  },
934
934
  emits: ["ready"],
935
935
  setup(e, { expose: a, emit: o }) {
936
- let d = h(() => import("./SavedBlocksPanels-Dff38YXu.js")), f = e;
936
+ let d = h(() => import("./SavedBlocksPanels-3Af5dMaf.js")), f = e;
937
937
  _(z, f.cloudTranslations);
938
938
  let x = o, S = u(null), C = u(null), k = Be({
939
939
  config: f.config,
@@ -1,5 +1,5 @@
1
1
  import { A as e, Dt as t, O as n, Ot as r, _ as i, c as a, d as o, l as s, nt as c, r as l, s as u, u as d } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
- import "./useEditorCore-CT1slufs.js";
2
+ import "./useEditorCore-CuMMIfiS.js";
3
3
  import { t as f } from "./createLucideIcon-JWHwTI6N.js";
4
4
  import { n as p } from "./useCloudI18n-BmiygEM4.js";
5
5
  import { t as m } from "./readableTextColor-f8Kykfnh.js";
@@ -1,6 +1,6 @@
1
1
  import { A as e, Et as t, O as n, Ot as r, Y as i, _ as a, c as o, d as s, r as c, u as l, y as u } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
2
  import { c as d, n as f } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import { F as p, Sn as m, i as h, vn as g, xn as _, yn as v } from "./dist-BEpCh2mG.js";
3
+ import { F as p, Sn as m, i as h, vn as g, xn as _, yn as v } from "./dist-3HenmYIg.js";
4
4
  //#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
5
5
  var y = Math.min, b = Math.max, x = Math.round, S = Math.floor, C = (e) => ({
6
6
  x: e,
@@ -704,7 +704,7 @@ var $e = _e, et = me, tt = (e, t, n) => {
704
704
  });
705
705
  };
706
706
  //#endregion
707
- //#region ../../node_modules/.pnpm/@tiptap+suggestion@3.29.0_@floating-ui+dom@1.8.0_@tiptap+core@3.29.0_@tiptap+pm@3.29.0__@tiptap+pm@3.29.0/node_modules/@tiptap/suggestion/dist/index.js
707
+ //#region ../../node_modules/.pnpm/@tiptap+suggestion@3.29.1_@floating-ui+dom@1.8.0_@tiptap+core@3.29.1_@tiptap+pm@3.29.1__@tiptap+pm@3.29.1/node_modules/@tiptap/suggestion/dist/index.js
708
708
  function nt(e) {
709
709
  let { char: t, allowSpaces: n, allowToIncludeChar: r, allowedPrefixes: i, startOfLine: a, $position: o } = e, s = n && !r, c = p(t), l = RegExp(`\\s${c}$`), u = a ? "^" : "", d = r ? "" : c, f = RegExp(s ? `${u}${c}.*?(?=\\s${d}|$)` : `${u}(?:^)?${c}[^\\s${d}]*`, "gm"), m = o.nodeBefore?.isText && o.nodeBefore.text;
710
710
  if (!m) return null;
@@ -1,6 +1,6 @@
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 { C as S, D as C, O as w, S as T } from "./useEditorCore-CT1slufs.js";
3
+ import { C as S, D as C, O as w, S as T } from "./useEditorCore-CuMMIfiS.js";
4
4
  import { n as E, s as D } from "./usePopoverPosition-BO2LNy5n.js";
5
5
  import { B as O, D as k, L as A, _ as ee, h as te, w as ne, z as re } from "./keys-CHPcp-Nz.js";
6
6
  import { t as j } from "./useI18n-D2L9Mkik.js";
@@ -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: C, LetterSpacing: w }] = await Promise.all([
628
- import("./dist-DYClLqy8.js").then((e) => e.r),
629
- import("./dist-BgPYC_8-.js"),
630
- import("./dist-BuNDAAVp.js"),
631
- import("./dist-CtcgoC_R.js"),
632
- import("./dist-CrjzhIxB.js"),
633
- import("./dist-BkM8A17N.js"),
634
- import("./dist-CuXha2_7.js"),
635
- import("./dist-CBzCU-a-.js"),
636
- import("./dist-CweLDZrs.js"),
637
- import("./dist-DOsdqAEZ.js"),
638
- import("./dist-CDO52Rxy.js"),
639
- import("./extensions-ClY5Sh7S.js")
628
+ import("./dist-DOtLGnLr.js").then((e) => e.r),
629
+ import("./dist-B_etKYyh.js"),
630
+ import("./dist-Ih7ejWzn.js"),
631
+ import("./dist-bivrM-nS.js"),
632
+ import("./dist-BCnJcAQc.js"),
633
+ import("./dist-DKWoZJAV.js"),
634
+ import("./dist-CclnU_v0.js"),
635
+ import("./dist-CL_CfQ3Q.js"),
636
+ import("./dist-DerdmERj.js"),
637
+ import("./dist-CcQLJeWV.js"),
638
+ import("./dist-3DHaYEiT.js"),
639
+ import("./extensions-3870a_3R.js")
640
640
  ]);
641
641
  return {
642
642
  TiptapEditor: o,
@@ -1,13 +1,13 @@
1
1
  import { A as e, Dt as t, E as n, Et as r, I as i, N as a, O as o, Ot as s, R as c, T as l, Y as u, _ as d, c as f, d as p, h as m, l as h, m as g, nt as _, r as v, s as y, u as b, x, z as S } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
2
  import { a as C, c as w, s as T } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import { H as E, P as D, c as O } from "./useEditorCore-CT1slufs.js";
3
+ import { H as E, P as D, c as O } from "./useEditorCore-CuMMIfiS.js";
4
4
  import { B as k, P as A, f as j, h as M } from "./keys-CHPcp-Nz.js";
5
5
  import { t as N } from "./useI18n-D2L9Mkik.js";
6
6
  import { t as P } from "./chevron-down-j8GrdTyz.js";
7
7
  import { t as F } from "./chevron-up-BACyVhyC.js";
8
8
  import { t as I } from "./loader-circle-C-Z6kgI6.js";
9
- import { t as L } from "./TplModal-C7Koj5gM.js";
10
- import { t as R } from "./SavedBlockPreviewCanvas-2-mzAnZE.js";
9
+ import { t as L } from "./TplModal-CykwWFhF.js";
10
+ import { t as R } from "./SavedBlockPreviewCanvas-DXkGDYph.js";
11
11
  //#region src/components/SavedBlockPreviewRow.vue?vue&type=script&setup=true&lang.ts
12
12
  var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relative tpl:min-w-0 tpl:flex-1" }, H = {
13
13
  key: 0,
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
2
  import { A as t, Dt as n, M as r, N as i, O as a, _ as o, c as s, d as c, l, nt as u, r as d, s as f, x as p } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
3
- import { a as m, b as h, d as g, f as _, g as v, h as y, i as b, l as x, m as S, n as C, p as w, r as T, v as E, y as D, z as O } from "./useEditorCore-CT1slufs.js";
3
+ import { a as m, b as h, d as g, f as _, g as v, h as y, i as b, l as x, m as S, n as C, p as w, r as T, v as E, y as D, z as O } from "./useEditorCore-CuMMIfiS.js";
4
4
  import { h as k, o as A } from "./keys-CHPcp-Nz.js";
5
5
  //#region src/components/blocks/PreviewSectionBlock.vue?vue&type=script&setup=true&lang.ts
6
6
  var j = { class: "tpl:w-full" }, M = { class: "tpl:flex tpl:gap-0" }, N = /* @__PURE__ */ o({
@@ -1,13 +1,13 @@
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, g as te, h as d, l as f, nt as p, r as m, s as h, u as g, w as ne, z as _ } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
2
  import { a as v, c as y, i as b, s as x } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import "./useEditorCore-CT1slufs.js";
3
+ import "./useEditorCore-CuMMIfiS.js";
4
4
  import { B as S, P as re, h as ie } from "./keys-CHPcp-Nz.js";
5
5
  import { t as ae } from "./useI18n-D2L9Mkik.js";
6
- import { n as oe, r as C, t as w } from "./blockTypeIcons-CgwECCut.js";
6
+ import { n as oe, r as C, t as w } from "./blockTypeIcons-CpKkI47V.js";
7
7
  import { t as se } from "./pencil-DdwmkKLb.js";
8
8
  import { t as ce } from "./trash-2-DE8CmxAG.js";
9
9
  import { t as le } from "./x-CkD6A1iB.js";
10
- import { t as ue } from "./TplModal-C7Koj5gM.js";
10
+ import { t as ue } from "./TplModal-CykwWFhF.js";
11
11
  import { t as de } from "./formatRelativeTime-CtUU-QZ8.js";
12
12
  //#region src/components/SavedBlocksBrowserModal.vue?vue&type=script&setup=true&lang.ts
13
13
  var fe = {
@@ -65,7 +65,7 @@ var fe = {
65
65
  props: { visible: { type: Boolean } },
66
66
  emits: ["close", "insert"],
67
67
  setup(c, { emit: A }) {
68
- let et = c, j = A, tt = te(() => import("./SavedBlockPreviewCanvas-2-mzAnZE.js").then((e) => e.n)), { t: M, format: N } = ae(), P = S(re, "SavedBlocksBrowserModal"), F = S(ie, "SavedBlocksBrowserModal"), I = s(""), L = s(""), R = s(null), z = s(null), B = s(null), V = s(""), H = s(""), U = s(null), W = s("end"), G = h(() => {
68
+ let et = c, j = A, tt = te(() => import("./SavedBlockPreviewCanvas-DXkGDYph.js").then((e) => e.n)), { t: M, format: N } = ae(), P = S(re, "SavedBlocksBrowserModal"), F = S(ie, "SavedBlocksBrowserModal"), I = s(""), L = s(""), R = s(null), z = s(null), B = s(null), V = s(""), H = s(""), U = s(null), W = s("end"), G = h(() => {
69
69
  let e = I.value.trim().toLowerCase(), t = L.value;
70
70
  return P.savedBlocks.value.filter((n) => !(e && !n.name.toLowerCase().includes(e) || t && n.category !== t));
71
71
  }), K = h(() => P.isLoading.value && P.savedBlocks.value.length === 0), nt = h(() => I.value.trim().length > 0 || L.value !== ""), q = h(() => R.value ? P.savedBlocks.value.find((e) => e.id === R.value) ?? null : null), rt = h(() => {
@@ -5,7 +5,7 @@ var c = /* @__PURE__ */ t({
5
5
  __name: "SavedBlocksPanels",
6
6
  props: { feature: {} },
7
7
  setup(t) {
8
- let c = t, l = r(() => import("./SavedBlocksPickBar-rB6iyji6.js")), u = r(() => import("./SaveBlockDialog-CYIEHABH.js")), d = r(() => import("./SavedBlocksBrowserModal-D5V5yF_3.js"));
8
+ let c = t, l = r(() => import("./SavedBlocksPickBar-C1FTJP-I.js")), u = r(() => import("./SaveBlockDialog-B_5KBaXW.js")), d = r(() => import("./SavedBlocksBrowserModal-DoJBoYPk.js"));
9
9
  function f(e, t) {
10
10
  c.feature.insert(e, t);
11
11
  }
@@ -1,5 +1,5 @@
1
1
  import { O as e, Ot as t, _ as n, c as r, d as i, h as a, m as o, nt as s } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
- import { R as c } from "./useEditorCore-CT1slufs.js";
2
+ import { R as c } from "./useEditorCore-CuMMIfiS.js";
3
3
  import { t as l } from "./useI18n-D2L9Mkik.js";
4
4
  import { t as u } from "./x-CkD6A1iB.js";
5
5
  //#region src/components/SavedBlocksPickBar.vue?vue&type=script&setup=true&lang.ts
@@ -1,6 +1,6 @@
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-CT1slufs.js";
3
+ import "./useEditorCore-CuMMIfiS.js";
4
4
  import { s as _ } from "./usePopoverPosition-BO2LNy5n.js";
5
5
  import { t as v } from "./useI18n-D2L9Mkik.js";
6
6
  import { t as y } from "./createLucideIcon-JWHwTI6N.js";
@@ -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-CT1slufs.js";
3
+ import "./useEditorCore-CuMMIfiS.js";
4
4
  import { t as v } from "./loader-circle-C-Z6kgI6.js";
5
5
  import { n as y } from "./useCloudI18n-BmiygEM4.js";
6
- import { t as b } from "./TplModal-C7Koj5gM.js";
6
+ import { t as b } from "./TplModal-CykwWFhF.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,5 +1,5 @@
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 { C as ee, S as te } from "./useEditorCore-CT1slufs.js";
2
+ import { C as ee, S as te } from "./useEditorCore-CuMMIfiS.js";
3
3
  import { n as ne } from "./usePopoverPosition-BO2LNy5n.js";
4
4
  import { D as _, L as v, w as y, z as b } from "./keys-CHPcp-Nz.js";
5
5
  import { t as re } from "./useI18n-D2L9Mkik.js";
@@ -31,10 +31,10 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
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-DYClLqy8.js").then((e) => e.r),
35
- import("./dist-BgPYC_8-.js"),
36
- import("./dist-BuNDAAVp.js"),
37
- import("./extensions-ClY5Sh7S.js")
34
+ import("./dist-DOtLGnLr.js").then((e) => e.r),
35
+ import("./dist-B_etKYyh.js"),
36
+ import("./dist-Ih7ejWzn.js"),
37
+ import("./extensions-3870a_3R.js")
38
38
  ]);
39
39
  return {
40
40
  TiptapEditor: a,
@@ -1,6 +1,6 @@
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 { O as g } from "./useEditorCore-CT1slufs.js";
3
+ import { O as g } from "./useEditorCore-CuMMIfiS.js";
4
4
  import { n as _ } from "./usePopoverPosition-BO2LNy5n.js";
5
5
  import { z as v } from "./keys-CHPcp-Nz.js";
6
6
  //#region src/components/TplModal.vue?vue&type=script&setup=true&lang.ts
@@ -1,4 +1,4 @@
1
- import { A as e, L as t, M as n, N as r, j as i } from "./useEditorCore-CT1slufs.js";
1
+ import { A as e, L as t, M as n, N as r, j as i } from "./useEditorCore-CuMMIfiS.js";
2
2
  import { t as a } from "./createLucideIcon-JWHwTI6N.js";
3
3
  var o = a("columns-3", [
4
4
  ["rect", {
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.21.2",
3
- "initialGzipBytes": 286975,
4
- "initialRawBytes": 1033853,
2
+ "version": "0.22.0",
3
+ "initialGzipBytes": 287017,
4
+ "initialRawBytes": 1033961,
5
5
  "initialFileCount": 38,
6
- "lazyGzipBytes": 190290,
7
- "lazyRawBytes": 624509,
8
- "lazyFileCount": 52,
9
- "generatedAt": "2026-07-30T09:39:43.642Z"
6
+ "lazyGzipBytes": 204052,
7
+ "lazyRawBytes": 665598,
8
+ "lazyFileCount": 54,
9
+ "generatedAt": "2026-07-30T15:57:58.591Z"
10
10
  }
@@ -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 "./useEditorCore-BA6mspzD.js";
2
+ import "./useEditorCore-CzMhD6Gd.js";
3
3
  import { B as d, t as f } from "./keys-D7kUmfpE.js";
4
4
  import { O as p, ft as m, w as h } from "./icons-CYWw8Xfp.js";
5
5
  import { t as g } from "./_plugin-vue_export-helper-B3ysoDQm.js";
@@ -60,4 +60,4 @@ var v = {
60
60
  //#endregion
61
61
  export { C as default };
62
62
 
63
- //# sourceMappingURL=AiFeatureMenu-Duwg413F.js.map
63
+ //# sourceMappingURL=AiFeatureMenu-hWgWQg11.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AiFeatureMenu-Duwg413F.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-hWgWQg11.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,7 +1,7 @@
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
2
  import { t as k } from "./timeouts-Bmi_yePw.js";
3
3
  import { F as A } from "./src-BKI1x1k7.js";
4
- import { T as j, b as M, j as N, t as P } from "./useEditorCore-BA6mspzD.js";
4
+ import { T as j, b as M, j as N, t as P } from "./useEditorCore-CzMhD6Gd.js";
5
5
  import { _ as F } from "./dist-CiBEt0VR.js";
6
6
  import { t as I } from "./dist-CxTt8FRE.js";
7
7
  import { A as L, F as R, c as z, r as B, s as V, t as H, u as ee } from "./keys-D7kUmfpE.js";
@@ -9,7 +9,7 @@ import { t as U } from "./useI18n-8Wd7G-cq.js";
9
9
  import { At as W, Dt as G, F as te, Ft as K, P as q, et as J, j as ne, rt as Y, u as re, w as ie } from "./icons-CYWw8Xfp.js";
10
10
  import { t as ae } from "./_plugin-vue_export-helper-B3ysoDQm.js";
11
11
  import { n as X } from "./useCloudI18n-BjNENqkM.js";
12
- import { a as Z, c as oe, d as se, f as Q, i as ce, l as le, n as ue, o as de, p as fe, r as pe, s as me, t as he, u as ge } from "./styles-DMOEiSX9.js";
12
+ import { a as Z, c as oe, d as se, f as Q, i as ce, l as le, n as ue, o as de, p as fe, r as pe, s as me, t as he, u as ge } from "./styles-BkXzQ4-n.js";
13
13
  import { d as $ } from "./ColorPicker-DZSzZ5ZP.js";
14
14
  import { S as _e, _ as ve, a as ye, c as be, d as xe, f as Se, h as Ce, i as we, l as Te, m as Ee, n as De, o as Oe, r as ke, s as Ae, t as je, u as Me, v as Ne } from "./cloud-BJlbXGTJ.js";
15
15
  //#region src/cloud/composables/useSnapshotPreview.ts
@@ -184,7 +184,7 @@ function Re(e) {
184
184
  let t = f(e);
185
185
  if (t) return s?.(t), null;
186
186
  try {
187
- let { MediaApiClient: t } = await import("./src-D6F_3XkE.js");
187
+ let { MediaApiClient: t } = await import("./src-ByWL5K1f.js");
188
188
  return l(await new t(a).uploadMedia(e));
189
189
  } catch (e) {
190
190
  return s?.(e), null;
@@ -598,7 +598,7 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
598
598
  },
599
599
  emits: ["save"],
600
600
  setup(e) {
601
- let t = u(() => import("./CollaboratorBar-BS3rJy6-.js")), n = u(() => import("./SnapshotHistory-Bf1uovti.js")), r = u(() => import("./AiFeatureMenu-Duwg413F.js")), { t: a, format: o } = X();
601
+ let t = u(() => import("./CollaboratorBar-mkJVAkSh.js")), n = u(() => import("./SnapshotHistory-DO-gzr3i.js")), r = u(() => import("./AiFeatureMenu-hWgWQg11.js")), { t: a, format: o } = X();
602
602
  return (c, l) => (i(), p("header", $e, [
603
603
  x("div", et, [e.featureFlags.templateLimit.value === null ? m("", !0) : (i(), p("span", tt, d(h(o)(h(a).header.templatesUsed, {
604
604
  used: e.featureFlags.templateCount.value,
@@ -750,9 +750,9 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
750
750
  },
751
751
  emits: ["send-test-email"],
752
752
  setup(e, { expose: t, emit: n }) {
753
- let r = u(() => import("./AiChatSidebar-A1CuWGY0.js")), a = u(() => import("./CommentsSidebar-DHdRiGPX.js")), o = u(() => import("./DesignReferenceSidebar-Dre99DTH.js")), s = u(() => import("./TemplateScoringPanel-CTk8WwxU.js")), l = u(() => import("./TestEmailModal-BJTDxFHh.js")), d = u(async () => {
753
+ let r = u(() => import("./AiChatSidebar-A1CuWGY0.js")), a = u(() => import("./CommentsSidebar-DHdRiGPX.js")), o = u(() => import("./DesignReferenceSidebar-Dre99DTH.js")), s = u(() => import("./TemplateScoringPanel-CTk8WwxU.js")), l = u(() => import("./TestEmailModal-DT37w7i_.js")), d = u(async () => {
754
754
  try {
755
- return (await import("./src-D6F_3XkE.js")).MediaLibraryModal;
755
+ return (await import("./src-ByWL5K1f.js")).MediaLibraryModal;
756
756
  } catch {
757
757
  throw Error("[Templatical] Cloud media library requires the optional peer dependency '@templatical/media-library'. Please install it.");
758
758
  }
@@ -909,7 +909,7 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
909
909
  },
910
910
  emits: ["ready"],
911
911
  setup(e, { expose: r, emit: o }) {
912
- let l = u(() => import("./SavedBlocksPanels-D-pA_wfk.js")), f = e;
912
+ let l = u(() => import("./SavedBlocksPanels-BzMTZxf2.js")), f = e;
913
913
  a(z, f.cloudTranslations);
914
914
  let w = o, E = c(null), O = c(null), k = ze({
915
915
  config: f.config,
@@ -1160,4 +1160,4 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1160
1160
  //#endregion
1161
1161
  export { Ft as default };
1162
1162
 
1163
- //# sourceMappingURL=CloudEditor-C0Y4RD4c.js.map
1163
+ //# sourceMappingURL=CloudEditor-FCS53UcZ.js.map