@templatical/editor 0.44.1 → 0.44.3

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 (91) hide show
  1. package/README.md +1 -1
  2. package/dist/{AiFeatureMenu-CgfLFHJw.js → AiFeatureMenu-CXqrbDNb.js} +1 -1
  3. package/dist/{BlockPreviewCanvas-2vVu55yN.js → BlockPreviewCanvas-DCeZid0G.js} +2 -2
  4. package/dist/{CloudHeaderExtras-BZ62q1aS.js → CloudHeaderExtras-B38fU84y.js} +1 -1
  5. package/dist/{CloudPanels-sv4aCKKE.js → CloudPanels-B2Mz-TwS.js} +1 -1
  6. package/dist/{CollaboratorBar-CSEFL7uC.js → CollaboratorBar-CL70aVnL.js} +1 -1
  7. package/dist/{ParagraphEditor-C_p6yKLK.js → ParagraphEditor-CHlX3nAk.js} +1 -1
  8. package/dist/{RestoreVersionDialog-CKHeCPG2.js → RestoreVersionDialog-C8Qt-sJV.js} +1 -1
  9. package/dist/{SaveBlockDialog-q3_fjb9t.js → SaveBlockDialog-CsielLi1.js} +5 -5
  10. package/dist/SavedBlocksBrowserModal-RKo9mq3U.js +363 -0
  11. package/dist/{SavedBlocksPanels-DNpnl5cO.js → SavedBlocksPanels-B7IlFCQp.js} +1 -1
  12. package/dist/{SavedBlocksPickBar-Pq2bjpB_.js → SavedBlocksPickBar-BYCwMUR6.js} +1 -1
  13. package/dist/{TestEmailModal-BYCKpH7g.js → TestEmailModal-Btbk0B1s.js} +3 -3
  14. package/dist/{TestEmailPanel-lUXAFsT5.js → TestEmailPanel-kdF_QluO.js} +1 -1
  15. package/dist/{TitleEditor-CWPxXUp2.js → TitleEditor-Cl6AmEy9.js} +1 -1
  16. package/dist/{TplModal-D6lqrKls.js → TplModal-DD1xZyBq.js} +1 -1
  17. package/dist/{VersionHistoryPanels-C3XhpQO_.js → VersionHistoryPanels-Caa2_niu.js} +1 -1
  18. package/dist/{WrapperBlock-ox8TMS_p.js → WrapperBlock-Do8kLejT.js} +1 -1
  19. package/dist/bundle-stats.json +6 -6
  20. package/dist/{ca-DSwai-th.js → ca-DES69VJW.js} +1 -0
  21. package/dist/cdn/chunks/{AiFeatureMenu-vOJtwdmT.js → AiFeatureMenu-B291Us2g.js} +2 -2
  22. package/dist/cdn/chunks/{AiFeatureMenu-vOJtwdmT.js.map → AiFeatureMenu-B291Us2g.js.map} +1 -1
  23. package/dist/cdn/chunks/{BlockPreviewCanvas-CB27Joyn.js → BlockPreviewCanvas-CRJZBmwV.js} +3 -3
  24. package/dist/cdn/chunks/{BlockPreviewCanvas-CB27Joyn.js.map → BlockPreviewCanvas-CRJZBmwV.js.map} +1 -1
  25. package/dist/cdn/chunks/{CloudHeaderExtras-9tKrhPm6.js → CloudHeaderExtras-BvCPpih5.js} +2 -2
  26. package/dist/cdn/chunks/{CloudHeaderExtras-9tKrhPm6.js.map → CloudHeaderExtras-BvCPpih5.js.map} +1 -1
  27. package/dist/cdn/chunks/{CloudPanels-DTQ7zbEN.js → CloudPanels-vlPH6N3s.js} +2 -2
  28. package/dist/cdn/chunks/{CloudPanels-DTQ7zbEN.js.map → CloudPanels-vlPH6N3s.js.map} +1 -1
  29. package/dist/cdn/chunks/{CollaboratorBar-BKTkVMbz.js → CollaboratorBar-Xt3WJ-rn.js} +2 -2
  30. package/dist/cdn/chunks/{CollaboratorBar-BKTkVMbz.js.map → CollaboratorBar-Xt3WJ-rn.js.map} +1 -1
  31. package/dist/cdn/chunks/{ParagraphEditor-BSDGOsja.js → ParagraphEditor-BWfx94pb.js} +2 -2
  32. package/dist/cdn/chunks/{ParagraphEditor-BSDGOsja.js.map → ParagraphEditor-BWfx94pb.js.map} +1 -1
  33. package/dist/cdn/chunks/{RestoreVersionDialog-DLe0Co57.js → RestoreVersionDialog-DWUnyA0B.js} +2 -2
  34. package/dist/cdn/chunks/{RestoreVersionDialog-DLe0Co57.js.map → RestoreVersionDialog-DWUnyA0B.js.map} +1 -1
  35. package/dist/cdn/chunks/{SaveBlockDialog-DQzaED8U.js → SaveBlockDialog-CcfyxDfZ.js} +6 -6
  36. package/dist/cdn/chunks/{SaveBlockDialog-DQzaED8U.js.map → SaveBlockDialog-CcfyxDfZ.js.map} +1 -1
  37. package/dist/cdn/chunks/SavedBlocksBrowserModal-DauQ_V9N.js +360 -0
  38. package/dist/cdn/chunks/SavedBlocksBrowserModal-DauQ_V9N.js.map +1 -0
  39. package/dist/cdn/chunks/{SavedBlocksPanels-lW7PMvJN.js → SavedBlocksPanels-J5v2PsFv.js} +2 -2
  40. package/dist/cdn/chunks/{SavedBlocksPanels-lW7PMvJN.js.map → SavedBlocksPanels-J5v2PsFv.js.map} +1 -1
  41. package/dist/cdn/chunks/{SavedBlocksPickBar-DEL0r3Bv.js → SavedBlocksPickBar-v3AMSqli.js} +2 -2
  42. package/dist/cdn/chunks/{SavedBlocksPickBar-DEL0r3Bv.js.map → SavedBlocksPickBar-v3AMSqli.js.map} +1 -1
  43. package/dist/cdn/chunks/{TestEmailModal-B7Dr2eFa.js → TestEmailModal-CW9EFpFR.js} +4 -4
  44. package/dist/cdn/chunks/{TestEmailModal-B7Dr2eFa.js.map → TestEmailModal-CW9EFpFR.js.map} +1 -1
  45. package/dist/cdn/chunks/{TestEmailPanel-C3PTYDbT.js → TestEmailPanel-D1Hchlr7.js} +2 -2
  46. package/dist/cdn/chunks/{TestEmailPanel-C3PTYDbT.js.map → TestEmailPanel-D1Hchlr7.js.map} +1 -1
  47. package/dist/cdn/chunks/{TitleEditor-gHTla_4I.js → TitleEditor-nDV6P-ag.js} +2 -2
  48. package/dist/cdn/chunks/{TitleEditor-gHTla_4I.js.map → TitleEditor-nDV6P-ag.js.map} +1 -1
  49. package/dist/cdn/chunks/{TplModal-BVUBOEQL.js → TplModal-VuZ9bDw9.js} +2 -2
  50. package/dist/cdn/chunks/{TplModal-BVUBOEQL.js.map → TplModal-VuZ9bDw9.js.map} +1 -1
  51. package/dist/cdn/chunks/{VersionHistoryPanels-Dcdy7ySA.js → VersionHistoryPanels-BChjjMC6.js} +2 -2
  52. package/dist/cdn/chunks/{VersionHistoryPanels-Dcdy7ySA.js.map → VersionHistoryPanels-BChjjMC6.js.map} +1 -1
  53. package/dist/cdn/chunks/{WrapperBlock-23nAzweL.js → WrapperBlock-DDnue8oy.js} +2 -2
  54. package/dist/cdn/chunks/{WrapperBlock-23nAzweL.js.map → WrapperBlock-DDnue8oy.js.map} +1 -1
  55. package/dist/cdn/chunks/{ca-DSwai-th.js → ca-DES69VJW.js} +2 -1
  56. package/dist/cdn/chunks/{ca-DSwai-th.js.map → ca-DES69VJW.js.map} +1 -1
  57. package/dist/cdn/chunks/{de-DOhKuphf.js → de-MlrDhC3Y.js} +2 -1
  58. package/dist/cdn/chunks/{de-DOhKuphf.js.map → de-MlrDhC3Y.js.map} +1 -1
  59. package/dist/cdn/chunks/{en-BE28ZcUF.js → en-6vJh7KCM.js} +2 -1
  60. package/dist/cdn/chunks/{en-BE28ZcUF.js.map → en-6vJh7KCM.js.map} +1 -1
  61. package/dist/cdn/chunks/{es-oQI-dfx2.js → es-ewL03EaP.js} +2 -1
  62. package/dist/cdn/chunks/{es-oQI-dfx2.js.map → es-ewL03EaP.js.map} +1 -1
  63. package/dist/cdn/chunks/{fr-rzLdCMSG.js → fr-D1syuxs1.js} +2 -1
  64. package/dist/cdn/chunks/{fr-rzLdCMSG.js.map → fr-D1syuxs1.js.map} +1 -1
  65. package/dist/{ja-dyFc6Ghz.js → cdn/chunks/ja-Dd_nytwe.js} +3 -0
  66. package/dist/cdn/chunks/{ja-dyFc6Ghz.js.map → ja-Dd_nytwe.js.map} +1 -1
  67. package/dist/cdn/chunks/{nl-BcQhRqKR.js → nl-DD1t_qxS.js} +2 -1
  68. package/dist/cdn/chunks/{nl-BcQhRqKR.js.map → nl-DD1t_qxS.js.map} +1 -1
  69. package/dist/cdn/chunks/{pt-BR-UombhTMO.js → pt-BR-BmtO0R7k.js} +2 -1
  70. package/dist/cdn/chunks/{pt-BR-UombhTMO.js.map → pt-BR-BmtO0R7k.js.map} +1 -1
  71. package/dist/cdn/chunks/{src-D_l1LAxs.js → src-CjjJWoUZ.js} +19 -17
  72. package/dist/cdn/chunks/{src-D_l1LAxs.js.map → src-CjjJWoUZ.js.map} +1 -1
  73. package/dist/cdn/chunks/{useEditorCore-DjD7fJpq.js → useEditorCore-q0G4q-52.js} +11 -11
  74. package/dist/cdn/chunks/{useEditorCore-DjD7fJpq.js.map → useEditorCore-q0G4q-52.js.map} +1 -1
  75. package/dist/cdn/editor.css +1 -1
  76. package/dist/cdn/editor.js +42 -34
  77. package/dist/cdn/editor.js.map +1 -1
  78. package/dist/{de-DOhKuphf.js → de-MlrDhC3Y.js} +1 -0
  79. package/dist/{en-BE28ZcUF.js → en-6vJh7KCM.js} +1 -0
  80. package/dist/{es-oQI-dfx2.js → es-ewL03EaP.js} +1 -0
  81. package/dist/{fr-rzLdCMSG.js → fr-D1syuxs1.js} +1 -0
  82. package/dist/{cdn/chunks/ja-dyFc6Ghz.js → ja-Dd_nytwe.js} +1 -2
  83. package/dist/{nl-BcQhRqKR.js → nl-DD1t_qxS.js} +1 -0
  84. package/dist/{pt-BR-UombhTMO.js → pt-BR-BmtO0R7k.js} +1 -0
  85. package/dist/style.css +1 -1
  86. package/dist/templatical-editor.js +41 -33
  87. package/dist/{useEditorCore-iuKC8yr5.js → useEditorCore-B1CWeFTj.js} +10 -10
  88. package/package.json +7 -7
  89. package/dist/SavedBlocksBrowserModal-DeUo5aFV.js +0 -325
  90. package/dist/cdn/chunks/SavedBlocksBrowserModal-CliZBxHo.js +0 -322
  91. package/dist/cdn/chunks/SavedBlocksBrowserModal-CliZBxHo.js.map +0 -1
package/README.md CHANGED
@@ -9,7 +9,7 @@ The visual editor for [Templatical](https://github.com/templatical/sdk) — a so
9
9
 
10
10
  - 🧩 **14 block types** — title, paragraph, image, button, section, divider, spacer, social icons, menu, table, HTML, video, countdown, custom
11
11
  - 🛡 **Shadow DOM isolated** — mounts inside an open shadow root by default so host page CSS cannot bleed in
12
- - 🎨 **27 design tokens** — full theming via `--tpl-user-*` CSS variables, dark mode, custom fonts
12
+ - 🎨 **Full theming via design tokens** — `--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
15
  - 🌍 **Multilingual** — English, German, Portuguese, Spanish, Catalan, French, Dutch & Japanese built in
@@ -1,5 +1,5 @@
1
1
  import { A as e, At as t, F as n, M as r, c as i, d as a, jt as o, l as s, r as c, s as l, v as u } from "./vue.runtime.esm-bundler-CyqhBwpY.js";
2
- import "./useEditorCore-iuKC8yr5.js";
2
+ import "./useEditorCore-B1CWeFTj.js";
3
3
  import { $ as d, t as f } from "./keys-CDqfZIRt.js";
4
4
  import { t as p } from "./image-up-C1jC7NzQ.js";
5
5
  import { t as m } from "./shield-check-Cg8f4LB0.js";
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
2
  import { A as t, At as n, F as r, M as i, P as a, S as o, at as s, c, d as l, j as u, l as d, r as f, s as p, v as m } from "./vue.runtime.esm-bundler-CyqhBwpY.js";
3
3
  import { Y as h } from "./dist-HjILVdTA.js";
4
- import { A as g, D as _, E as v, O as y, a as b, c as x, d as S, f as C, h as w, i as T, m as E, n as D, p as O, r as k, u as A } from "./useEditorCore-iuKC8yr5.js";
4
+ import { A as g, D as _, E as v, O as y, a as b, c as x, d as S, f as C, h as w, i as T, m as E, n as D, p as O, r as k, u as A } from "./useEditorCore-B1CWeFTj.js";
5
5
  import { M as j, Q as M, f as N, g as P, s as F } from "./keys-CDqfZIRt.js";
6
- import { n as I, r as L, t as R } from "./WrapperBlock-ox8TMS_p.js";
6
+ import { n as I, r as L, t as R } from "./WrapperBlock-Do8kLejT.js";
7
7
  //#region src/components/blocks/PreviewSectionBlock.vue?vue&type=script&setup=true&lang.ts
8
8
  var z = { class: "tpl:w-full" }, B = { class: "tpl:flex tpl:gap-0" }, V = /* @__PURE__ */ m({
9
9
  name: "PreviewSectionBlock",
@@ -17,7 +17,7 @@ var v = {
17
17
  cloud: {}
18
18
  },
19
19
  setup(p) {
20
- let x = n(() => import("./CollaboratorBar-CSEFL7uC.js")), S = n(() => import("./AiFeatureMenu-CgfLFHJw.js")), { t: C, format: w } = _();
20
+ let x = n(() => import("./CollaboratorBar-CL70aVnL.js")), S = n(() => import("./AiFeatureMenu-CXqrbDNb.js")), { t: C, format: w } = _();
21
21
  return (n, _) => p.part === "left" ? (e(), a(d, { key: 0 }, [p.cloud.featureFlags.templateLimit.value === null ? f("", !0) : (e(), a("span", v, c(r(w)(r(C).header.templatesUsed, {
22
22
  used: p.cloud.featureFlags.templateCount.value,
23
23
  max: p.cloud.featureFlags.templateLimit.value
@@ -5,7 +5,7 @@ import { t as _ } from "./circle-alert-B6xl1B_M.js";
5
5
  import { t as v } from "./triangle-alert-fcb2KoA-.js";
6
6
  import { n as y } from "./useCloudI18n-DpEsiLeR.js";
7
7
  import { d as b, v as x, x as S } from "./styleConstants-C_YAPdQS.js";
8
- import { t as C } from "./TplModal-D6lqrKls.js";
8
+ import { t as C } from "./TplModal-DD1xZyBq.js";
9
9
  //#region src/cloud/components/CloudErrorOverlay.vue?vue&type=script&setup=true&lang.ts
10
10
  var w = {
11
11
  key: 0,
@@ -1,5 +1,5 @@
1
1
  import { A as e, At as t, M as n, at as r, c as i, d as a, jt as o, l as s, r as c, s as l, u, v as d } from "./vue.runtime.esm-bundler-CyqhBwpY.js";
2
- import "./useEditorCore-iuKC8yr5.js";
2
+ import "./useEditorCore-B1CWeFTj.js";
3
3
  import { t as f } from "./createLucideIcon-BVcoovvP.js";
4
4
  import { n as p } from "./useCloudI18n-DpEsiLeR.js";
5
5
  import { t as m } from "./readableTextColor-f8Kykfnh.js";
@@ -2,7 +2,7 @@ import { A as e, At as t, F as n, K as r, M as i, S as a, Z as o, at as s, c, d
2
2
  import { c as b, s as x } from "./runtime-dom.esm-bundler-BGbPz4-g.js";
3
3
  import { Y as S } from "./dist-HjILVdTA.js";
4
4
  import { t as C } from "./dist-BDuPwOyn.js";
5
- import { _ as w, b as T, v as E, x as D } from "./useEditorCore-iuKC8yr5.js";
5
+ import { _ as w, b as T, v as E, x as D } from "./useEditorCore-B1CWeFTj.js";
6
6
  import { $ as O, A as k, E as A, J as j, Z as M, g as N, v as ee } from "./keys-CDqfZIRt.js";
7
7
  import { t as P } from "./useI18n-B_CdcBwG.js";
8
8
  import { n as F } from "./usePopoverPosition-BYmd-lhR.js";
@@ -3,7 +3,7 @@ import { t as f } from "./useI18n-B_CdcBwG.js";
3
3
  import { t as p } from "./loader-circle-BRdCPW5h.js";
4
4
  import { t as m } from "./triangle-alert-fcb2KoA-.js";
5
5
  import { d as h, v as g, x as _ } from "./styleConstants-C_YAPdQS.js";
6
- import { t as v } from "./TplModal-D6lqrKls.js";
6
+ import { t as v } from "./TplModal-DD1xZyBq.js";
7
7
  //#region src/components/RestoreVersionDialog.vue?vue&type=script&setup=true&lang.ts
8
8
  var y = ["aria-busy"], b = { class: "tpl:flex tpl:items-center tpl:gap-2" }, x = {
9
9
  id: "tpl-restore-version-title",
@@ -1,16 +1,16 @@
1
1
  import { A as e, At as t, B as n, D as r, F as i, M as a, O as o, R as s, S as c, V as l, Z as u, at as d, c as f, d as p, g as m, h, jt as g, kt as _, l as v, r as y, s as b, u as x, v as S } from "./vue.runtime.esm-bundler-CyqhBwpY.js";
2
2
  import { a as C, c as w, s as T } from "./runtime-dom.esm-bundler-BGbPz4-g.js";
3
3
  import { d as ee } from "./socialIcons-D1gkHc_i.js";
4
- import { C as E, s as D } from "./useEditorCore-iuKC8yr5.js";
4
+ import { C as E, s as D } from "./useEditorCore-B1CWeFTj.js";
5
5
  import { $ as O, U as k, g as A, p as te } from "./keys-CDqfZIRt.js";
6
6
  import { t as j } from "./useI18n-B_CdcBwG.js";
7
7
  import { t as M } from "./chevron-down-BYnhkMsA.js";
8
8
  import { t as N } from "./chevron-up-BnIR1-ma.js";
9
9
  import { t as P } from "./loader-circle-BRdCPW5h.js";
10
10
  import { v as F } from "./styleConstants-C_YAPdQS.js";
11
- import { r as I } from "./WrapperBlock-ox8TMS_p.js";
12
- import { t as L } from "./TplModal-D6lqrKls.js";
13
- import { t as R } from "./BlockPreviewCanvas-2vVu55yN.js";
11
+ import { r as I } from "./WrapperBlock-Do8kLejT.js";
12
+ import { t as L } from "./TplModal-DD1xZyBq.js";
13
+ import { t as R } from "./BlockPreviewCanvas-DCeZid0G.js";
14
14
  //#region src/components/SavedBlockPreviewRow.vue?vue&type=script&setup=true&lang.ts
15
15
  var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relative tpl:min-w-0 tpl:flex-1" }, H = {
16
16
  key: 0,
@@ -49,7 +49,7 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
49
49
  return (r, a) => (e(), p("div", {
50
50
  "data-testid": "saved-blocks-reorder-row",
51
51
  "data-block-id": n.block.id,
52
- class: "tpl:flex tpl:items-start tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-md)] tpl:border tpl:p-1.5 tpl:border-[var(--tpl-border)]",
52
+ class: "tpl:flex tpl:items-start tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:p-1.5 tpl:border-[var(--tpl-border)]",
53
53
  style: { "background-color": "var(--tpl-bg)" }
54
54
  }, [f("button", {
55
55
  type: "button",
@@ -0,0 +1,363 @@
1
+ import { A as e, At as t, B as n, E as r, F as i, M as a, R as o, S as ee, V as s, Z as c, _ as te, at as l, c as u, d, g as f, jt as p, kt as ne, l as m, r as h, s as g, u as _, v } from "./vue.runtime.esm-bundler-CyqhBwpY.js";
2
+ import { a as y, c as b, i as x, s as S } from "./runtime-dom.esm-bundler-BGbPz4-g.js";
3
+ import "./useEditorCore-B1CWeFTj.js";
4
+ import { $ as C, U as re, X as ie, g as ae } from "./keys-CDqfZIRt.js";
5
+ import { t as oe } from "./useI18n-B_CdcBwG.js";
6
+ import { t as w } from "./blockTypeIcons-DEvNVvBj.js";
7
+ import { t as T } from "./package-B9OWk-Kp.js";
8
+ import { t as se } from "./pencil-BDnjo24u.js";
9
+ import { t as ce } from "./search-CxRUiOSF.js";
10
+ import { t as le } from "./trash-BxIzHAri.js";
11
+ import { t as ue } from "./x-DrZO5tt0.js";
12
+ import { v as de } from "./styleConstants-C_YAPdQS.js";
13
+ import { t as fe } from "./formatAbsoluteDateTime-DMmop3C-.js";
14
+ import { t as pe } from "./formatRelativeTime-CtUU-QZ8.js";
15
+ import { t as me } from "./TplModal-DD1xZyBq.js";
16
+ //#region src/components/SavedBlocksBrowserModal.vue?vue&type=script&setup=true&lang.ts
17
+ var he = {
18
+ role: "dialog",
19
+ "aria-modal": "true",
20
+ "data-testid": "saved-blocks-browser",
21
+ "aria-labelledby": "tpl-saved-blocks-browser-title",
22
+ class: "tpl-scale-in tpl:flex tpl:max-h-[90%] tpl:w-[1000px] tpl:max-w-full tpl:flex-col tpl:rounded-[var(--tpl-radius-lg)]",
23
+ style: {
24
+ "background-color": "var(--tpl-bg-elevated)",
25
+ "box-shadow": "var(--tpl-shadow-xl)"
26
+ }
27
+ }, ge = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:px-5 tpl:py-4 tpl:border-[var(--tpl-border)]" }, _e = {
28
+ id: "tpl-saved-blocks-browser-title",
29
+ class: "tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
30
+ }, ve = ["aria-label"], ye = { class: "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:overflow-hidden" }, be = { class: "tpl:flex tpl:w-[300px] tpl:shrink-0 tpl:flex-col tpl:overflow-hidden" }, xe = { class: "tpl:flex tpl:flex-col tpl:gap-2 tpl:px-4 tpl:pt-4 tpl:pb-3" }, Se = { class: "tpl:relative" }, Ce = ["placeholder", "disabled"], we = ["aria-label"], Te = { value: "" }, Ee = ["value"], De = { id: "tpl-saved-block-browser-categories" }, Oe = ["value"], ke = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:px-4 tpl:pb-4" }, Ae = ["aria-label"], je = {
31
+ key: 1,
32
+ class: "tpl:flex tpl:flex-col tpl:gap-1"
33
+ }, Me = ["onFocusout"], Ne = ["aria-label", "onKeydown"], Pe = [
34
+ "aria-label",
35
+ "placeholder",
36
+ "onKeydown"
37
+ ], Fe = ["onClick"], Ie = ["aria-pressed"], Le = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Re = {
38
+ "data-testid": "saved-block-name",
39
+ class: "tpl:flex-1 tpl:truncate tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]"
40
+ }, ze = { class: "tpl:shrink-0 tpl:rounded-full tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]" }, Be = {
41
+ key: 0,
42
+ class: "tpl:mt-1 tpl:flex tpl:items-center"
43
+ }, Ve = {
44
+ "data-testid": "saved-block-category",
45
+ class: "tpl:max-w-full tpl:truncate tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]"
46
+ }, He = { class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1" }, Ue = {
47
+ key: 0,
48
+ class: "tpl:shrink-0 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]"
49
+ }, We = ["title"], Ge = [
50
+ "aria-label",
51
+ "onClick",
52
+ "onKeydown"
53
+ ], Ke = [
54
+ "aria-label",
55
+ "title",
56
+ "onClick"
57
+ ], qe = [
58
+ "aria-label",
59
+ "title",
60
+ "onClick"
61
+ ], Je = {
62
+ key: 2,
63
+ class: "tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:py-12"
64
+ }, Ye = {
65
+ key: 0,
66
+ class: "tpl:mt-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
67
+ }, Xe = { class: "tpl:mt-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, Ze = { class: "tpl:mt-1 tpl:max-w-[220px] tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, Qe = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-hidden tpl:border-l tpl:border-[var(--tpl-border)]" }, $e = {
68
+ key: 0,
69
+ class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-hidden"
70
+ }, et = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, tt = {
71
+ key: 1,
72
+ class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:items-center tpl:justify-center tpl:px-4"
73
+ }, nt = { class: "tpl:mt-2 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, rt = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:px-5 tpl:py-3 tpl:border-[var(--tpl-border)]" }, it = { class: "tpl:flex tpl:items-center tpl:gap-2" }, at = { class: "tpl:shrink-0 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, ot = ["value"], st = { class: "tpl:flex tpl:gap-2" }, ct = ["disabled"], lt = ".tpl-saved-block-select", E = ".tpl-saved-block-rename-btn", ut = ".tpl-saved-block-delete-btn", D = /* @__PURE__ */ v({
74
+ __name: "SavedBlocksBrowserModal",
75
+ props: { visible: { type: Boolean } },
76
+ emits: ["close", "insert"],
77
+ setup(v, { emit: D }) {
78
+ let dt = v, O = D, ft = te(() => import("./BlockPreviewCanvas-DCeZid0G.js").then((e) => e.n)), { t: k, format: A } = oe(), j = C(re, "SavedBlocksBrowserModal"), M = C(ae, "SavedBlocksBrowserModal"), pt = ee(ie, void 0), N = c(""), P = c(""), F = c(null), I = c(null), L = c(null), R = c(""), z = c(""), B = c(null), V = c(null), H = c(null), U = c("end"), W = /* @__PURE__ */ new Map();
79
+ function mt(e, t) {
80
+ t ? W.set(e, t) : W.delete(e);
81
+ }
82
+ async function G(e, t) {
83
+ await r(), W.get(e)?.querySelector(t)?.focus();
84
+ }
85
+ let K = g(() => {
86
+ let e = N.value.trim().toLowerCase(), t = P.value;
87
+ return j.savedBlocks.value.filter((n) => !(e && !n.name.toLowerCase().includes(e) || t && n.category !== t));
88
+ }), q = g(() => j.isLoading.value && j.savedBlocks.value.length === 0), ht = g(() => N.value.trim().length > 0 || P.value !== ""), J = g(() => F.value ? j.savedBlocks.value.find((e) => e.id === F.value) ?? null : null), gt = g(() => {
89
+ let e = [{
90
+ value: "beginning",
91
+ label: k.savedBlocks.insertAtBeginning
92
+ }], t = M.content.value.blocks;
93
+ for (let n = 0; n < t.length; n++) {
94
+ let r = t[n], i = r.type, a = k.blocks[i] ?? r.type;
95
+ e.push({
96
+ value: r.id,
97
+ label: A(k.savedBlocks.insertAfterBlock, { block: `${a} ${n + 1}` })
98
+ });
99
+ }
100
+ return e.push({
101
+ value: "end",
102
+ label: k.savedBlocks.insertAtEnd
103
+ }), e;
104
+ }), _t = g(() => {
105
+ if (U.value === "end") return;
106
+ if (U.value === "beginning") return 0;
107
+ let e = M.content.value.blocks.findIndex((e) => e.id === U.value);
108
+ if (e !== -1) return e + 1;
109
+ });
110
+ o(() => dt.visible, (e) => {
111
+ if (e) {
112
+ N.value = "", P.value = "", F.value = null, I.value = null, L.value = null;
113
+ let e = M.state.selectedBlockId;
114
+ if (e) {
115
+ let t = M.content.value.blocks.findIndex((t) => t.id === e);
116
+ U.value = t === -1 ? "end" : e;
117
+ } else U.value = "end";
118
+ }
119
+ }, { immediate: !0 });
120
+ function vt(e) {
121
+ let t = [], n = /* @__PURE__ */ new Set();
122
+ for (let r of e.content) if (!n.has(r.type) && w[r.type] && (n.add(r.type), t.push({
123
+ type: r.type,
124
+ icon: w[r.type]
125
+ })), t.length >= 5) break;
126
+ return t;
127
+ }
128
+ function Y(e) {
129
+ let t = new Set(e.content.map((e) => e.type));
130
+ return Math.max(0, t.size - 5);
131
+ }
132
+ function X(e) {
133
+ let t = e.updatedAt ?? e.createdAt;
134
+ return t ? pe(t, k.time, A) ?? "" : "";
135
+ }
136
+ function yt(e) {
137
+ let t = e.updatedAt ?? e.createdAt;
138
+ return t ? fe(t, pt) : "";
139
+ }
140
+ async function bt(e) {
141
+ I.value = e, await r(), H.value?.focus();
142
+ }
143
+ function Z(e) {
144
+ return I.value = null, G(e, ut);
145
+ }
146
+ async function xt(e) {
147
+ let t = K.value.findIndex((t) => t.id === e);
148
+ try {
149
+ await j.remove(e);
150
+ } catch (t) {
151
+ throw await Z(e), t;
152
+ }
153
+ I.value = null, F.value === e && (F.value = null);
154
+ let n = K.value, i = n[Math.min(t, n.length - 1)];
155
+ i ? await G(i.id, lt) : (await r(), V.value?.focus());
156
+ }
157
+ async function St(e) {
158
+ j.canUpdateBlock(e) && (L.value = e.id, R.value = e.name, z.value = e.category ?? "", I.value = null, await r(), B.value?.focus(), B.value?.select());
159
+ }
160
+ function Q() {
161
+ L.value = null, R.value = "", z.value = "";
162
+ }
163
+ async function Ct(e) {
164
+ if (L.value !== e) return;
165
+ let t = R.value.trim(), n = z.value.trim(), r = j.savedBlocks.value.find((t) => t.id === e), i = {};
166
+ if (t && t !== r?.name && (i.name = t), n !== (r?.category ?? "") && (i.category = n), Object.keys(i).length === 0) {
167
+ Q();
168
+ return;
169
+ }
170
+ try {
171
+ await j.update(e, i);
172
+ } finally {
173
+ Q();
174
+ }
175
+ }
176
+ async function wt(e) {
177
+ try {
178
+ await Ct(e);
179
+ } finally {
180
+ await G(e, E);
181
+ }
182
+ }
183
+ function Tt(e) {
184
+ return Q(), G(e, E);
185
+ }
186
+ function Et(e, t) {
187
+ let n = e.currentTarget, r = e.relatedTarget;
188
+ r && n.contains(r) || Ct(t);
189
+ }
190
+ function Dt() {
191
+ J.value && O("insert", J.value, _t.value);
192
+ }
193
+ function $() {
194
+ O("close");
195
+ }
196
+ function Ot(e) {
197
+ L.value || (e.key === "Escape" && $(), e.key === "Enter" && J.value && (e.preventDefault(), Dt()));
198
+ }
199
+ return (r, o) => (e(), m(me, {
200
+ visible: v.visible,
201
+ onClose: $,
202
+ onKeydown: Ot
203
+ }, {
204
+ default: n(() => [u("div", he, [
205
+ u("div", ge, [u("h3", _e, p(l(k).savedBlocks.browse), 1), u("button", {
206
+ "aria-label": l(k).savedBlocks.close,
207
+ class: "tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-1 tpl:transition-colors tpl:text-[var(--tpl-text-dim)]",
208
+ onClick: $
209
+ }, [f(l(ue), {
210
+ size: 16,
211
+ "stroke-width": 2
212
+ })], 8, ve)]),
213
+ u("div", ye, [u("div", be, [
214
+ u("div", xe, [u("div", Se, [f(l(ce), {
215
+ size: 14,
216
+ "stroke-width": 2,
217
+ class: "tpl:pointer-events-none tpl:absolute tpl:left-3 tpl:top-1/2 tpl:-translate-y-1/2 tpl:text-[var(--tpl-text-dim)]"
218
+ }), s(u("input", {
219
+ ref_key: "searchInput",
220
+ ref: V,
221
+ "onUpdate:modelValue": o[0] ||= (e) => N.value = e,
222
+ type: "text",
223
+ placeholder: l(k).savedBlocks.search,
224
+ disabled: q.value,
225
+ class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:pl-9 tpl:pr-3 tpl:text-sm tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)] tpl:disabled:opacity-50 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
226
+ }, null, 8, Ce), [[y, N.value]])]), l(j).categories.value.length > 0 ? s((e(), d("select", {
227
+ key: 0,
228
+ "onUpdate:modelValue": o[1] ||= (e) => P.value = e,
229
+ "data-testid": "saved-blocks-category-filter",
230
+ "aria-label": l(k).savedBlocks.filterByCategory,
231
+ class: "tpl:h-8 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)] tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
232
+ }, [u("option", Te, p(l(k).savedBlocks.allCategories), 1), (e(!0), d(h, null, a(l(j).categories.value, (t) => (e(), d("option", {
233
+ key: t,
234
+ value: t
235
+ }, p(t), 9, Ee))), 128))], 8, we)), [[x, P.value]]) : _("", !0)]),
236
+ u("datalist", De, [(e(!0), d(h, null, a(l(j).categories.value, (t) => (e(), d("option", {
237
+ key: t,
238
+ value: t
239
+ }, null, 8, Oe))), 128))]),
240
+ u("div", ke, [q.value ? (e(), d("div", {
241
+ key: 0,
242
+ "data-testid": "saved-blocks-loading",
243
+ class: "tpl:flex tpl:flex-col tpl:gap-1",
244
+ role: "status",
245
+ "aria-busy": "true",
246
+ "aria-label": l(k).savedBlocks.loading
247
+ }, [(e(), d(h, null, a(3, (e) => u("div", {
248
+ key: e,
249
+ "aria-hidden": "true",
250
+ class: "tpl-saved-block-skeleton tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)]"
251
+ }, [...o[5] ||= [u("div", { class: "tpl:h-3 tpl:w-1/2 tpl:rounded tpl:bg-[var(--tpl-bg-hover)]" }, null, -1), u("div", { class: "tpl:mt-2 tpl:h-2.5 tpl:w-1/4 tpl:rounded tpl:bg-[var(--tpl-bg-hover)]" }, null, -1)]])), 64))], 8, Ae)) : K.value.length > 0 ? (e(), d("div", je, [(e(!0), d(h, null, a(K.value, (n) => (e(), d(h, { key: n.id }, [L.value === n.id ? (e(), d("div", {
252
+ key: 0,
253
+ class: "tpl:flex tpl:w-full tpl:flex-col tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-primary)]",
254
+ style: { "background-color": "var(--tpl-primary-light)" },
255
+ onFocusout: (e) => Et(e, n.id)
256
+ }, [s(u("input", {
257
+ ref_for: !0,
258
+ ref: (e) => B.value = e,
259
+ "onUpdate:modelValue": o[2] ||= (e) => R.value = e,
260
+ type: "text",
261
+ "aria-label": l(k).savedBlocks.rename,
262
+ class: "tpl:h-7 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)] tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
263
+ onKeydown: [S(b((e) => wt(n.id), ["prevent", "stop"]), ["enter"]), S(b((e) => Tt(n.id), ["prevent", "stop"]), ["esc"])]
264
+ }, null, 40, Ne), [[y, R.value]]), s(u("input", {
265
+ "onUpdate:modelValue": o[3] ||= (e) => z.value = e,
266
+ type: "text",
267
+ "data-testid": "saved-blocks-edit-category",
268
+ "aria-label": l(k).savedBlocks.category,
269
+ placeholder: l(k).savedBlocks.categoryPlaceholder,
270
+ list: "tpl-saved-block-browser-categories",
271
+ class: "tpl:h-7 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)] tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
272
+ onKeydown: [S(b((e) => wt(n.id), ["prevent", "stop"]), ["enter"]), S(b((e) => Tt(n.id), ["prevent", "stop"]), ["esc"])]
273
+ }, null, 40, Pe), [[y, z.value]])], 40, Me)) : (e(), d("div", {
274
+ key: 1,
275
+ "data-testid": "saved-block-card",
276
+ class: "tpl:group/card tpl:relative tpl:w-full tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:bg-transparent tpl:px-3 tpl:py-2 tpl:text-left tpl:transition-all tpl:duration-[120ms]",
277
+ style: t({
278
+ borderColor: F.value === n.id ? "var(--tpl-primary)" : "var(--tpl-border)",
279
+ backgroundColor: F.value === n.id ? "var(--tpl-primary-light)" : "transparent"
280
+ }),
281
+ onClick: (e) => F.value = n.id,
282
+ ref_for: !0,
283
+ ref: (e) => mt(n.id, e)
284
+ }, [u("button", {
285
+ type: "button",
286
+ "aria-pressed": F.value === n.id,
287
+ class: "tpl-saved-block-select tpl:block tpl:w-full tpl:text-left"
288
+ }, [u("span", Le, [u("span", Re, p(n.name), 1), u("span", ze, p(l(A)(l(k).savedBlocks.blockCount, { count: n.content.length })), 1)]), n.category ? (e(), d("span", Be, [u("span", Ve, p(n.category), 1)])) : _("", !0)], 8, Ie), u("div", He, [
289
+ (e(!0), d(h, null, a(vt(n), (t) => (e(), m(i(t.icon), {
290
+ key: t.type,
291
+ size: 14,
292
+ "stroke-width": 1.5,
293
+ class: "tpl:shrink-0 tpl:text-[var(--tpl-text-dim)]"
294
+ }))), 128)),
295
+ Y(n) > 0 ? (e(), d("span", Ue, " +" + p(Y(n)), 1)) : _("", !0),
296
+ X(n) ? (e(), d("span", {
297
+ key: 1,
298
+ "data-testid": "saved-block-updated",
299
+ class: "tpl:ml-1 tpl:truncate tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]",
300
+ title: yt(n)
301
+ }, p(X(n)), 9, We)) : _("", !0),
302
+ I.value === n.id ? (e(), d("button", {
303
+ key: 2,
304
+ ref_for: !0,
305
+ ref: (e) => H.value = e,
306
+ "aria-label": l(k).savedBlocks.deleteConfirm,
307
+ class: "tpl:ml-auto tpl:shrink-0 tpl:cursor-pointer tpl:whitespace-nowrap tpl:rounded-md tpl:border tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:transition-colors tpl:border-[var(--tpl-danger)] tpl:text-[var(--tpl-danger)]",
308
+ style: { "background-color": "transparent" },
309
+ onClick: b((e) => xt(n.id), ["stop"]),
310
+ onKeydown: S(b((e) => Z(n.id), ["prevent", "stop"]), ["esc"])
311
+ }, p(l(k).savedBlocks.deleteConfirmShort), 41, Ge)) : (e(), d(h, { key: 3 }, [l(j).canUpdateBlock(n) ? (e(), d("button", {
312
+ key: 0,
313
+ class: "tpl-saved-block-rename-btn tpl:ml-auto tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-dim)]",
314
+ "aria-label": l(k).savedBlocks.rename,
315
+ title: l(k).savedBlocks.rename,
316
+ onClick: b((e) => St(n), ["stop"])
317
+ }, [f(l(se), {
318
+ size: 12,
319
+ "stroke-width": 1.5
320
+ })], 8, Ke)) : _("", !0), l(j).canDeleteBlock(n) ? (e(), d("button", {
321
+ key: 1,
322
+ class: ne(["tpl-saved-block-delete-btn tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-dim)]", { "tpl:ml-auto": !l(j).canUpdateBlock(n) }]),
323
+ "aria-label": l(k).savedBlocks.delete,
324
+ title: l(k).savedBlocks.delete,
325
+ onClick: b((e) => bt(n.id), ["stop"])
326
+ }, [f(l(le), {
327
+ size: 12,
328
+ "stroke-width": 1.5
329
+ })], 10, qe)) : _("", !0)], 64))
330
+ ])], 12, Fe))], 64))), 128))])) : (e(), d("div", Je, [f(l(T), {
331
+ size: 32,
332
+ "stroke-width": 1,
333
+ class: "tpl:text-[var(--tpl-text-dim)]"
334
+ }), ht.value ? (e(), d("p", Ye, p(l(k).savedBlocks.noResults), 1)) : (e(), d(h, { key: 1 }, [u("p", Xe, p(l(k).savedBlocks.empty), 1), u("p", Ze, p(l(k).savedBlocks.emptyHint), 1)], 64))]))])
335
+ ]), u("div", Qe, [J.value ? (e(), d("div", $e, [u("div", et, [f(l(ft), { blocks: J.value.content }, null, 8, ["blocks"])])])) : (e(), d("div", tt, [f(l(T), {
336
+ size: 32,
337
+ "stroke-width": 1,
338
+ class: "tpl:text-[var(--tpl-text-dim)]"
339
+ }), u("p", nt, p(l(k).savedBlocks.selectToPreview), 1)]))])]),
340
+ u("div", rt, [u("div", it, [u("label", at, p(l(k).savedBlocks.insertPosition), 1), s(u("select", {
341
+ "onUpdate:modelValue": o[4] ||= (e) => U.value = e,
342
+ class: "tpl:h-7 tpl:max-w-[220px] tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)] tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
343
+ }, [(e(!0), d(h, null, a(gt.value, (t) => (e(), d("option", {
344
+ key: t.value,
345
+ value: t.value
346
+ }, p(t.label), 9, ot))), 128))], 512), [[x, U.value]])]), u("div", st, [u("button", {
347
+ type: "button",
348
+ "data-testid": "saved-blocks-browser-close",
349
+ class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-[var(--tpl-shadow-sm)] tpl:transition-all tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]",
350
+ onClick: $
351
+ }, p(l(k).savedBlocks.close), 1), u("button", {
352
+ type: "button",
353
+ class: ne(l(de)),
354
+ disabled: !J.value,
355
+ onClick: Dt
356
+ }, p(l(k).savedBlocks.insert), 11, ct)])])
357
+ ])]),
358
+ _: 1
359
+ }, 8, ["visible"]));
360
+ }
361
+ });
362
+ //#endregion
363
+ export { D as default };
@@ -5,7 +5,7 @@ var c = /* @__PURE__ */ s({
5
5
  __name: "SavedBlocksPanels",
6
6
  props: { feature: {} },
7
7
  setup(s) {
8
- let c = s, l = t(() => import("./SavedBlocksPickBar-Pq2bjpB_.js")), u = t(() => import("./SaveBlockDialog-q3_fjb9t.js")), d = t(() => import("./SavedBlocksBrowserModal-DeUo5aFV.js"));
8
+ let c = s, l = t(() => import("./SavedBlocksPickBar-BYCwMUR6.js")), u = t(() => import("./SaveBlockDialog-CsielLi1.js")), d = t(() => import("./SavedBlocksBrowserModal-RKo9mq3U.js"));
9
9
  function f(e, t) {
10
10
  c.feature.insert(e, t);
11
11
  }
@@ -1,5 +1,5 @@
1
1
  import { A as e, at as t, c as n, d as r, g as i, h as a, jt as o, kt as s, v as c } from "./vue.runtime.esm-bundler-CyqhBwpY.js";
2
- import { T as l } from "./useEditorCore-iuKC8yr5.js";
2
+ import { T as l } from "./useEditorCore-B1CWeFTj.js";
3
3
  import { t as u } from "./useI18n-B_CdcBwG.js";
4
4
  import { t as d } from "./x-DrZO5tt0.js";
5
5
  import { v as f, x as p } from "./styleConstants-C_YAPdQS.js";
@@ -1,15 +1,15 @@
1
1
  import { A as e, B as t, M as n, R as r, S as i, V as a, Z as o, at as s, c, d as l, g as u, h as d, jt as f, kt as p, l as m, r as h, s as g, u as _, v } from "./vue.runtime.esm-bundler-CyqhBwpY.js";
2
2
  import { a as ee, i as te } from "./runtime-dom.esm-bundler-BGbPz4-g.js";
3
3
  import { B as ne, u as re } from "./dist-HjILVdTA.js";
4
- import { R as ie } from "./useEditorCore-iuKC8yr5.js";
4
+ import { R as ie } from "./useEditorCore-B1CWeFTj.js";
5
5
  import { C as ae, F as y, H as oe, M as b, O as se, g as ce } from "./keys-CDqfZIRt.js";
6
6
  import { t as le } from "./useI18n-B_CdcBwG.js";
7
7
  import { t as ue } from "./check-DNyj-E0y.js";
8
8
  import { t as de } from "./loader-circle-BRdCPW5h.js";
9
9
  import { n as fe, t as pe } from "./MergeTagModeToggle-DOHixe4G.js";
10
10
  import { v as me } from "./styleConstants-C_YAPdQS.js";
11
- import { t as he } from "./TplModal-D6lqrKls.js";
12
- import { t as ge } from "./BlockPreviewCanvas-2vVu55yN.js";
11
+ import { t as he } from "./TplModal-DD1xZyBq.js";
12
+ import { t as ge } from "./BlockPreviewCanvas-DCeZid0G.js";
13
13
  //#region src/utils/validateEmailShape.ts
14
14
  var x = /[,;<>()[\]\\"'`|/?#@!$%^&*+=~{}]/;
15
15
  function S(e) {
@@ -5,7 +5,7 @@ var o = /* @__PURE__ */ a({
5
5
  __name: "TestEmailPanel",
6
6
  props: { feature: {} },
7
7
  setup(a) {
8
- let o = a, s = t(() => import("./TestEmailModal-BYCKpH7g.js"));
8
+ let o = a, s = t(() => import("./TestEmailModal-Btbk0B1s.js"));
9
9
  function c(e) {
10
10
  o.feature.send(e);
11
11
  }
@@ -1,5 +1,5 @@
1
1
  import { A as e, At as t, K as n, S as r, at as i, c as a, d as o, g as s, h as c, i as l, jt as u, kt as d, l as f, r as p, s as m, u as h, v as g } from "./vue.runtime.esm-bundler-CyqhBwpY.js";
2
- import { _ as ee, v as te } from "./useEditorCore-iuKC8yr5.js";
2
+ import { _ as ee, v as te } from "./useEditorCore-B1CWeFTj.js";
3
3
  import { A as ne, E as re, J as _, Z as v } from "./keys-CDqfZIRt.js";
4
4
  import { t as y } from "./useI18n-B_CdcBwG.js";
5
5
  import { n as b } from "./usePopoverPosition-BYmd-lhR.js";
@@ -1,6 +1,6 @@
1
1
  import { A as e, At as t, B as n, N as r, S as i, Z as a, at as o, c as s, d as c, g as l, i as u, l as d, s as f, u as p, v as m } from "./vue.runtime.esm-bundler-CyqhBwpY.js";
2
2
  import { c as h, t as g } from "./runtime-dom.esm-bundler-BGbPz4-g.js";
3
- import { x as _ } from "./useEditorCore-iuKC8yr5.js";
3
+ import { x as _ } from "./useEditorCore-B1CWeFTj.js";
4
4
  import { J as v, Z as y } from "./keys-CDqfZIRt.js";
5
5
  import { n as b } from "./usePopoverPosition-BYmd-lhR.js";
6
6
  //#region src/components/TplModal.vue?vue&type=script&setup=true&lang.ts
@@ -5,7 +5,7 @@ var c = /* @__PURE__ */ s({
5
5
  __name: "VersionHistoryPanels",
6
6
  props: { feature: {} },
7
7
  setup(s) {
8
- let c = s, l = t(() => import("./VersionPreviewBanner-CWuxq_bb.js")), u = t(() => import("./RestoreVersionDialog-CKHeCPG2.js"));
8
+ let c = s, l = t(() => import("./VersionPreviewBanner-CWuxq_bb.js")), u = t(() => import("./RestoreVersionDialog-C8Qt-sJV.js"));
9
9
  async function d() {
10
10
  try {
11
11
  await c.feature.requestRestore();
@@ -1,5 +1,5 @@
1
1
  import { A as e, At as t, F as n, M as r, S as i, at as a, d as o, l as s, r as c, s as l, v as u } from "./vue.runtime.esm-bundler-CyqhBwpY.js";
2
- import { A as d, D as f, k as p } from "./useEditorCore-iuKC8yr5.js";
2
+ import { A as d, D as f, k as p } from "./useEditorCore-B1CWeFTj.js";
3
3
  import { s as m } from "./keys-CDqfZIRt.js";
4
4
  function h(e, t = "desktop") {
5
5
  return t === "mobile" ? 375 : e?.width ?? 600;
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.44.1",
3
- "initialGzipBytes": 176972,
4
- "initialRawBytes": 589225,
2
+ "version": "0.44.3",
3
+ "initialGzipBytes": 177014,
4
+ "initialRawBytes": 589355,
5
5
  "initialFileCount": 48,
6
- "lazyGzipBytes": 430782,
7
- "lazyRawBytes": 1520079,
6
+ "lazyGzipBytes": 431133,
7
+ "lazyRawBytes": 1521441,
8
8
  "lazyFileCount": 84,
9
- "generatedAt": "2026-10-09T16:01:29.487Z"
9
+ "generatedAt": "2026-10-09T22:14:34.520Z"
10
10
  }
@@ -502,6 +502,7 @@ var e = {
502
502
  rename: "Canvia el nom",
503
503
  delete: "Elimina",
504
504
  deleteConfirm: "Vols eliminar aquest bloc desat?",
505
+ deleteConfirmShort: "Eliminar?",
505
506
  blockCount: "{count} bloc(s)",
506
507
  browse: "Explora els blocs desats",
507
508
  selectToPreview: "Selecciona un bloc desat per previsualitzar-lo",
@@ -1,5 +1,5 @@
1
1
  import { F as e, N as t, R as n, S as r, f as i, g as a, lt as o, m as s, p as c, u as l, ut as u } from "./draggable-IB4x6w2O.js";
2
- import "./useEditorCore-DjD7fJpq.js";
2
+ import "./useEditorCore-q0G4q-52.js";
3
3
  import { $ as d, t as f } from "./keys-DCWeHkSF.js";
4
4
  import { A as p, D as m, mt as h } from "./icons-BjvraR-Y.js";
5
5
  import { t as g } from "./_plugin-vue_export-helper-B3ysoDQm.js";
@@ -54,4 +54,4 @@ var v = { class: "tpl-ai-feature-menu tpl:w-[280px] tpl:overflow-hidden tpl:roun
54
54
  //#endregion
55
55
  export { C as default };
56
56
 
57
- //# sourceMappingURL=AiFeatureMenu-vOJtwdmT.js.map
57
+ //# sourceMappingURL=AiFeatureMenu-B291Us2g.js.map