@templatical/editor 0.62.0 → 0.62.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 (58) hide show
  1. package/dist/{AiRewriteMenu-CpBcT6QL.js → AiRewriteMenu-BG3-appN.js} +1 -1
  2. package/dist/{BlockPreviewCanvas-BHRmnq0w.js → BlockPreviewCanvas-oxkPHm78.js} +2 -2
  3. package/dist/{LanguageMenu-BFOEQEPy.js → LanguageMenu-8yH1Ypum.js} +1 -1
  4. package/dist/{ParagraphEditor-C15Glzy_.js → ParagraphEditor-B2BpfcoY.js} +3 -3
  5. package/dist/{RestoreVersionDialog-C13Bo4b0.js → RestoreVersionDialog-BF9Wyma8.js} +1 -1
  6. package/dist/{SaveBlockDialog-lm_1-2w2.js → SaveBlockDialog-BZQkihki.js} +3 -3
  7. package/dist/{SavedBlocksBrowserModal-BjUZG5_S.js → SavedBlocksBrowserModal-CQNnmeGv.js} +3 -3
  8. package/dist/{SavedBlocksPanels-Bj3LAXcL.js → SavedBlocksPanels-n-IdFD6E.js} +1 -1
  9. package/dist/{SavedBlocksPickBar-DOTr0Imx.js → SavedBlocksPickBar-BtQgXlKF.js} +1 -1
  10. package/dist/{TestEmailModal-ClEnoNEB.js → TestEmailModal-IeP1EsJ5.js} +3 -3
  11. package/dist/{TestEmailPanel-CVmrt-d9.js → TestEmailPanel-DVxTZJ4H.js} +1 -1
  12. package/dist/{TitleEditor-BHZF5C6q.js → TitleEditor-D1UDQaHM.js} +2 -2
  13. package/dist/{TplModal-QWmSO1nR.js → TplModal-BvUeHkqB.js} +1 -1
  14. package/dist/{VersionHistoryPanels-D82hgc2v.js → VersionHistoryPanels-rkOqdUem.js} +1 -1
  15. package/dist/{WrapperBlock-32v93A9w.js → WrapperBlock-CvEmjNKs.js} +1 -1
  16. package/dist/bundle-stats.json +5 -5
  17. package/dist/cdn/chunks/{AiRewriteMenu-2a9WjizC.js → AiRewriteMenu-DoZh5Q74.js} +2 -2
  18. package/dist/cdn/chunks/{AiRewriteMenu-2a9WjizC.js.map → AiRewriteMenu-DoZh5Q74.js.map} +1 -1
  19. package/dist/cdn/chunks/{BlockPreviewCanvas-DDDKuWJz.js → BlockPreviewCanvas-BrxWnLLK.js} +3 -3
  20. package/dist/cdn/chunks/{BlockPreviewCanvas-DDDKuWJz.js.map → BlockPreviewCanvas-BrxWnLLK.js.map} +1 -1
  21. package/dist/cdn/chunks/{LanguageMenu-2Er64H2b.js → LanguageMenu-CyWfHmkP.js} +2 -2
  22. package/dist/cdn/chunks/{LanguageMenu-2Er64H2b.js.map → LanguageMenu-CyWfHmkP.js.map} +1 -1
  23. package/dist/cdn/chunks/{ParagraphEditor-CWjMxuy0.js → ParagraphEditor-DUbU-eqS.js} +4 -4
  24. package/dist/cdn/chunks/{ParagraphEditor-CWjMxuy0.js.map → ParagraphEditor-DUbU-eqS.js.map} +1 -1
  25. package/dist/cdn/chunks/{RestoreVersionDialog-BsfulSK7.js → RestoreVersionDialog-hDWvu1Fk.js} +2 -2
  26. package/dist/cdn/chunks/{RestoreVersionDialog-BsfulSK7.js.map → RestoreVersionDialog-hDWvu1Fk.js.map} +1 -1
  27. package/dist/cdn/chunks/{SaveBlockDialog-8zxJlHw2.js → SaveBlockDialog-DVVG78vs.js} +4 -4
  28. package/dist/cdn/chunks/{SaveBlockDialog-8zxJlHw2.js.map → SaveBlockDialog-DVVG78vs.js.map} +1 -1
  29. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DtaGW2H4.js → SavedBlocksBrowserModal-CJjVM9pN.js} +4 -4
  30. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DtaGW2H4.js.map → SavedBlocksBrowserModal-CJjVM9pN.js.map} +1 -1
  31. package/dist/cdn/chunks/{SavedBlocksPanels-CtDhdbiD.js → SavedBlocksPanels-CUu9BLen.js} +2 -2
  32. package/dist/cdn/chunks/{SavedBlocksPanels-CtDhdbiD.js.map → SavedBlocksPanels-CUu9BLen.js.map} +1 -1
  33. package/dist/cdn/chunks/{SavedBlocksPickBar-DovcCaoW.js → SavedBlocksPickBar-ClGm41Wt.js} +2 -2
  34. package/dist/cdn/chunks/{SavedBlocksPickBar-DovcCaoW.js.map → SavedBlocksPickBar-ClGm41Wt.js.map} +1 -1
  35. package/dist/cdn/chunks/{TestEmailModal-D1EuQSgA.js → TestEmailModal-BtrjByCC.js} +4 -4
  36. package/dist/cdn/chunks/{TestEmailModal-D1EuQSgA.js.map → TestEmailModal-BtrjByCC.js.map} +1 -1
  37. package/dist/cdn/chunks/{TestEmailPanel-0iG-utN7.js → TestEmailPanel-EjyQvj_M.js} +2 -2
  38. package/dist/cdn/chunks/{TestEmailPanel-0iG-utN7.js.map → TestEmailPanel-EjyQvj_M.js.map} +1 -1
  39. package/dist/cdn/chunks/{TitleEditor-k2vSwKxN.js → TitleEditor-B0SHe63R.js} +3 -3
  40. package/dist/cdn/chunks/{TitleEditor-k2vSwKxN.js.map → TitleEditor-B0SHe63R.js.map} +1 -1
  41. package/dist/cdn/chunks/{TplModal-iRdN04Sa.js → TplModal-uqelrGih.js} +2 -2
  42. package/dist/cdn/chunks/{TplModal-iRdN04Sa.js.map → TplModal-uqelrGih.js.map} +1 -1
  43. package/dist/cdn/chunks/{VersionHistoryPanels-Bw5UHEvo.js → VersionHistoryPanels-B1DN6c4B.js} +2 -2
  44. package/dist/cdn/chunks/{VersionHistoryPanels-Bw5UHEvo.js.map → VersionHistoryPanels-B1DN6c4B.js.map} +1 -1
  45. package/dist/cdn/chunks/{WrapperBlock-CFjCtyvx.js → WrapperBlock-CUuF8Ese.js} +2 -2
  46. package/dist/cdn/chunks/{WrapperBlock-CFjCtyvx.js.map → WrapperBlock-CUuF8Ese.js.map} +1 -1
  47. package/dist/cdn/chunks/{composables-Nir0umYc.js → composables-CuAVj7Ex.js} +3 -3
  48. package/dist/cdn/chunks/{composables-Nir0umYc.js.map → composables-CuAVj7Ex.js.map} +1 -1
  49. package/dist/cdn/chunks/{extensions-Br2hHeiR.js → extensions-CqhrbdGN.js} +31 -14
  50. package/dist/cdn/chunks/extensions-CqhrbdGN.js.map +1 -0
  51. package/dist/cdn/chunks/{src-9e0wFfHH.js → src-DxIDI6ZB.js} +2 -2
  52. package/dist/cdn/chunks/{src-9e0wFfHH.js.map → src-DxIDI6ZB.js.map} +1 -1
  53. package/dist/cdn/editor.js +8 -8
  54. package/dist/{composables-6SKZrQs-.js → composables-DZWtVCMq.js} +2 -2
  55. package/dist/{extensions-D74nAP73.js → extensions-DfhOxy6Z.js} +340 -323
  56. package/dist/templatical-editor.js +7 -7
  57. package/package.json +7 -7
  58. package/dist/cdn/chunks/extensions-Br2hHeiR.js.map +0 -1
@@ -8,15 +8,15 @@ import { n as qt, t as Jt } from "./chunks/useLocalizedDisplay-Brdkp3KH.js";
8
8
  import { t as Yt } from "./chunks/plural-CyxrJXL1.js";
9
9
  import { t as Xt } from "./chunks/useLanguageName-CeuoO9WZ.js";
10
10
  import { C as Zt, E as Qt, T as $t, b as en, h as tn, m as nn, w as rn, x as an } from "./chunks/styleConstants-Br6CIRoS.js";
11
- import { t as on } from "./chunks/TplModal-iRdN04Sa.js";
11
+ import { t as on } from "./chunks/TplModal-uqelrGih.js";
12
12
  import { n as sn } from "./chunks/sanitizeHtml-Plkmw1Qt.js";
13
- import { A as cn, E as ln, L as un, M as dn, O as fn, P as pn, _ as mn, a as hn, b as gn, c as _n, d as vn, f as yn, g as bn, h as xn, i as Sn, j as Cn, k as wn, l as Tn, m as En, n as Dn, o as On, p as kn, r as An, s as jn, t as Mn, u as Nn, v as Pn, x as Fn, y as In } from "./chunks/composables-Nir0umYc.js";
13
+ import { A as cn, E as ln, L as un, M as dn, O as fn, P as pn, _ as mn, a as hn, b as gn, c as _n, d as vn, f as yn, g as bn, h as xn, i as Sn, j as Cn, k as wn, l as Tn, m as En, n as Dn, o as On, p as kn, r as An, s as jn, t as Mn, u as Nn, v as Pn, x as Fn, y as In } from "./chunks/composables-CuAVj7Ex.js";
14
14
  import { a as Ln, i as Rn, n as zn, o as Bn, t as Vn } from "./chunks/normalizeMergeTagMarkup-CExCfSYI.js";
15
15
  import { t as Hn } from "./chunks/aiErrors-C3QEMB0x.js";
16
16
  import { n as Un, t as Wn } from "./chunks/aiImageContext-BQ5mQ6B5.js";
17
17
  import { i as Gn, n as Kn, r as qn, t as Jn } from "./chunks/useScrollToBlock-CS7zo4oQ.js";
18
18
  import { a as Yn } from "./chunks/dist-zu1jwYIS.js";
19
- import { t as Xn } from "./chunks/WrapperBlock-CFjCtyvx.js";
19
+ import { t as Xn } from "./chunks/WrapperBlock-CUuF8Ese.js";
20
20
  import { t as Zn } from "./chunks/blockTypeIcons-ZKw-Eiu0.js";
21
21
  import { t as Qn } from "./chunks/templateSettingsFields-cjlP-jdw.js";
22
22
  import { n as $n, t as er } from "./chunks/MergeTagModeToggle-Bir7lkLe.js";
@@ -1713,7 +1713,7 @@ function li(e) {
1713
1713
  // src/utils/toMjml.ts
1714
1714
  async function ui() {
1715
1715
  try {
1716
- return await import("./chunks/src-9e0wFfHH.js");
1716
+ return await import("./chunks/src-DxIDI6ZB.js");
1717
1717
  } catch {
1718
1718
  return null;
1719
1719
  }
@@ -3022,7 +3022,7 @@ var va = [
3022
3022
  ai: {}
3023
3023
  },
3024
3024
  setup(e) {
3025
- let n = g(() => import("./chunks/VersionHistoryMenu-DlPr3twf.js")), r = g(() => import("./chunks/LanguageMenu-2Er64H2b.js")), a = g(() => import("./chunks/CollaboratorBar-bNFuQxxP.js")), s = L(null), c = L(null), l = L(null), f = e, p = f.header?.actions, m = f.header?.viewportToggle !== !1, h = f.header?.darkModeToggle !== !1, _ = f.header?.previewToggle !== !1, { compact: v, fullWidth: b, statusLabel: x, invalidateContent: E } = _a(s, c, p), D = p?.getAttribute("slot"), O = null;
3025
+ let n = g(() => import("./chunks/VersionHistoryMenu-DlPr3twf.js")), r = g(() => import("./chunks/LanguageMenu-CyWfHmkP.js")), a = g(() => import("./chunks/CollaboratorBar-bNFuQxxP.js")), s = L(null), c = L(null), l = L(null), f = e, p = f.header?.actions, m = f.header?.viewportToggle !== !1, h = f.header?.darkModeToggle !== !1, _ = f.header?.previewToggle !== !1, { compact: v, fullWidth: b, statusLabel: x, invalidateContent: E } = _a(s, c, p), D = p?.getAttribute("slot"), O = null;
3026
3026
  return p && o([v, () => f.core.resolvedTheme.value], ([e, t]) => {
3027
3027
  p.setAttribute("data-tpl-compact", String(e)), p.setAttribute("data-tpl-theme", t === "dark" ? "dark" : "light");
3028
3028
  }, {
@@ -3782,7 +3782,7 @@ var va = [
3782
3782
  provider: n.config.savedBlocks,
3783
3783
  editor: h,
3784
3784
  onError: n.config.onError
3785
- }) : null, O = g(() => import("./chunks/SavedBlocksPanels-CtDhdbiD.js")), N = n.config.media || n.config.onRequestMedia ? ai({
3785
+ }) : null, O = g(() => import("./chunks/SavedBlocksPanels-CUu9BLen.js")), N = n.config.media || n.config.onRequestMedia ? ai({
3786
3786
  provider: n.config.media,
3787
3787
  onRequestMedia: n.config.onRequestMedia,
3788
3788
  getTemplateId: () => h.state.template?.id,
@@ -3793,7 +3793,7 @@ var va = [
3793
3793
  renderMjml: n.renderMjml,
3794
3794
  usesLocalRenderer: n.usesLocalRenderer,
3795
3795
  onError: n.config.onError
3796
- }) : null, L = g(() => import("./chunks/TestEmailPanel-0iG-utN7.js")), R = n.config.comments ? Ur({
3796
+ }) : null, L = g(() => import("./chunks/TestEmailPanel-EjyQvj_M.js")), R = n.config.comments ? Ur({
3797
3797
  provider: n.config.comments,
3798
3798
  editor: h,
3799
3799
  user: n.config.user,
@@ -3848,7 +3848,7 @@ var va = [
3848
3848
  }, r = re.setDefaultLocale(e);
3849
3849
  return r.applied && (G.value = t), r;
3850
3850
  } });
3851
- let K = g(() => import("./chunks/LocaleNotices-DSfOyyyf.js")), q = g(() => import("./chunks/CollaborationNotices-DyzhN_Ns.js")), ie = g(() => import("./chunks/VersionHistoryPanels-Bw5UHEvo.js")), ae = gi(n.config.templates?.autoSave, !1), oe = ae && v !== null;
3851
+ let K = g(() => import("./chunks/LocaleNotices-DSfOyyyf.js")), q = g(() => import("./chunks/CollaborationNotices-DyzhN_Ns.js")), ie = g(() => import("./chunks/VersionHistoryPanels-B1DN6c4B.js")), ae = gi(n.config.templates?.autoSave, !1), oe = ae && v !== null;
3852
3852
  ae && v !== null && !v.canSave.value && Ae.warn("config.templates.autoSave is on but this provider's save is false — there is nothing to persist to. Give it a real save function, or use `onChange` to persist the content yourself."), n.config.changeDebounce !== void 0 && v !== null && n.config.templates?.autoSave === void 0 && !n.config.onChange && Ae.warn("config.changeDebounce is set but nothing will use it — config.templates.autoSave is unset and there is no onChange either, so the timer has no consumer. Set config.templates.autoSave, or add onChange, so the debounce takes effect.");
3853
3853
  let se = n.config.onChange || oe ? {
3854
3854
  onChange: () => {
@@ -1778,7 +1778,7 @@ var Ya = ["innerHTML"], Xa = /* @__PURE__ */ B({
1778
1778
  viewport: {}
1779
1779
  },
1780
1780
  setup(e) {
1781
- let t = e, n = oe(() => import("./ParagraphEditor-C15Glzy_.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = Ja(() => t.block.content);
1781
+ let t = e, n = oe(() => import("./ParagraphEditor-B2BpfcoY.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = Ja(() => t.block.content);
1782
1782
  return (t, l) => (m(), N("div", {
1783
1783
  ref_key: "blockRef",
1784
1784
  ref: i,
@@ -2475,7 +2475,7 @@ var Po = /* @__PURE__ */ B({
2475
2475
  viewport: {}
2476
2476
  },
2477
2477
  setup(e) {
2478
- let t = e, n = oe(() => import("./TitleEditor-BHZF5C6q.js")), r = qe(lt, "TitleBlock"), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = Ja(() => t.block.content), u = k(() => {
2478
+ let t = e, n = oe(() => import("./TitleEditor-D1UDQaHM.js")), r = qe(lt, "TitleBlock"), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = Ja(() => t.block.content), u = k(() => {
2479
2479
  let e = {
2480
2480
  fontSize: `${wn[t.block.level]}px`,
2481
2481
  lineHeight: String(Jt),