@templatical/editor 0.45.0 → 0.46.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 (140) hide show
  1. package/dist/{AiChatSidebar-BlFWWhBv.js → AiChatSidebar-DGcH4Lyo.js} +1 -1
  2. package/dist/{AiFeatureMenu-CvWygUmC.js → AiFeatureMenu-B4q-0g1S.js} +1 -1
  3. package/dist/{BlockPreviewCanvas-DwxJOTzH.js → BlockPreviewCanvas-DIZ0KgUD.js} +3 -3
  4. package/dist/{CloudHeaderExtras-BzM1QU1r.js → CloudHeaderExtras-ehMYJP68.js} +1 -1
  5. package/dist/{CloudPanels-d36YXXyn.js → CloudPanels-BwOaAlKz.js} +2 -2
  6. package/dist/{CollaboratorBar-rwXe_Qd2.js → CollaboratorBar-qOZFRNPx.js} +1 -1
  7. package/dist/{CountdownToolbar-lbjCc8ik.js → CountdownToolbar-BeF21SeB.js} +4 -4
  8. package/dist/{DesignReferenceSidebar-zlJQsP0X.js → DesignReferenceSidebar-zH93uB15.js} +1 -1
  9. package/dist/{IssuesPanel-CHx3m8SP.js → IssuesPanel-Dltw9haP.js} +1 -1
  10. package/dist/{LogicTagInsertButton-BvftbkL4.js → LogicTagInsertButton-CHa-UD76.js} +12 -12
  11. package/dist/{MergeTagInput-CR1kcj8X.js → MergeTagInput-B3ntd4dN.js} +1 -1
  12. package/dist/{MergeTagModeToggle-DssKrVYb.js → MergeTagModeToggle-C_06ZL0Q.js} +1 -1
  13. package/dist/{ParagraphEditor-DFizsZRc.js → ParagraphEditor-CxuW3TV0.js} +6 -6
  14. package/dist/{RestoreVersionDialog-Cp3q2mU4.js → RestoreVersionDialog-B1n37M1Z.js} +1 -1
  15. package/dist/{RichTextEditorContent-Cj3oaPMk.js → RichTextEditorContent-CP_uULWB.js} +2 -2
  16. package/dist/{SaveBlockDialog-BR8vW_XF.js → SaveBlockDialog-BSKX_7_v.js} +5 -5
  17. package/dist/{SavedBlocksBrowserModal-DmwbmKxI.js → SavedBlocksBrowserModal-CHKrH1gO.js} +4 -4
  18. package/dist/{SavedBlocksPanels-D4XKrs-a.js → SavedBlocksPanels-B-xDqBcz.js} +1 -1
  19. package/dist/{SavedBlocksPickBar-gfc-o5sR.js → SavedBlocksPickBar-D2J-g82g.js} +1 -1
  20. package/dist/{TemplateSettings-D7aNrd0d.js → TemplateSettings-D07K_Y4m.js} +4 -4
  21. package/dist/{TestEmailModal-DUmtcSm-.js → TestEmailModal-BNPw_lID.js} +5 -5
  22. package/dist/{TestEmailPanel-s9gISTI8.js → TestEmailPanel-8klWo8hE.js} +1 -1
  23. package/dist/{TitleEditor-C-uHqtml.js → TitleEditor-CmC9OuhA.js} +4 -4
  24. package/dist/{ToggleSwitch-CTwwCIVA.js → ToggleSwitch-COeyWGfT.js} +1 -1
  25. package/dist/{Toolbar-CLpA36RO.js → Toolbar-CqhRb6EM.js} +36 -36
  26. package/dist/{TplModal-D6XtxusQ.js → TplModal-BGFawHY9.js} +1 -1
  27. package/dist/{VersionHistoryPanels-Dvowtt7V.js → VersionHistoryPanels-DdbGjEOR.js} +1 -1
  28. package/dist/{WrapperBlock-CzJa2Mxw.js → WrapperBlock-CTkmA887.js} +1 -1
  29. package/dist/{blockTypeIcons-D3aj5u_5.js → blockTypeIcons-CVKo6V_v.js} +1 -1
  30. package/dist/bundle-stats.json +6 -6
  31. package/dist/cdn/chunks/{AiChatSidebar-SRGBP-SL.js → AiChatSidebar-kCK4NZM9.js} +2 -2
  32. package/dist/cdn/chunks/{AiChatSidebar-SRGBP-SL.js.map → AiChatSidebar-kCK4NZM9.js.map} +1 -1
  33. package/dist/cdn/chunks/{AiFeatureMenu-oZhlgsGh.js → AiFeatureMenu-K1dLeDft.js} +2 -2
  34. package/dist/cdn/chunks/{AiFeatureMenu-oZhlgsGh.js.map → AiFeatureMenu-K1dLeDft.js.map} +1 -1
  35. package/dist/cdn/chunks/{BlockPreviewCanvas-hKxE6f-k.js → BlockPreviewCanvas-Djz9YAFx.js} +4 -4
  36. package/dist/cdn/chunks/{BlockPreviewCanvas-hKxE6f-k.js.map → BlockPreviewCanvas-Djz9YAFx.js.map} +1 -1
  37. package/dist/cdn/chunks/{CloudHeaderExtras-t-_ZlHwn.js → CloudHeaderExtras-5ONQ1RCa.js} +2 -2
  38. package/dist/cdn/chunks/{CloudHeaderExtras-t-_ZlHwn.js.map → CloudHeaderExtras-5ONQ1RCa.js.map} +1 -1
  39. package/dist/cdn/chunks/{CloudPanels-DR2eEcpX.js → CloudPanels-_irSdWbi.js} +3 -3
  40. package/dist/cdn/chunks/{CloudPanels-DR2eEcpX.js.map → CloudPanels-_irSdWbi.js.map} +1 -1
  41. package/dist/cdn/chunks/{CollaboratorBar-w8_2WPE0.js → CollaboratorBar-CZufI1On.js} +2 -2
  42. package/dist/cdn/chunks/{CollaboratorBar-w8_2WPE0.js.map → CollaboratorBar-CZufI1On.js.map} +1 -1
  43. package/dist/cdn/chunks/{CountdownToolbar-CvNuDR5Z.js → CountdownToolbar-BaXCefQM.js} +5 -5
  44. package/dist/cdn/chunks/{CountdownToolbar-CvNuDR5Z.js.map → CountdownToolbar-BaXCefQM.js.map} +1 -1
  45. package/dist/cdn/chunks/{DesignReferenceSidebar-CJg_5GXU.js → DesignReferenceSidebar-GjkpHylX.js} +2 -2
  46. package/dist/cdn/chunks/{DesignReferenceSidebar-CJg_5GXU.js.map → DesignReferenceSidebar-GjkpHylX.js.map} +1 -1
  47. package/dist/cdn/chunks/{IssuesPanel-DXqlRk19.js → IssuesPanel-C1Lv2y_O.js} +2 -2
  48. package/dist/cdn/chunks/{IssuesPanel-DXqlRk19.js.map → IssuesPanel-C1Lv2y_O.js.map} +1 -1
  49. package/dist/cdn/chunks/{LogicTagInsertButton-DnHghQHb.js → LogicTagInsertButton-BYjdrDnQ.js} +4 -4
  50. package/dist/cdn/chunks/{LogicTagInsertButton-DnHghQHb.js.map → LogicTagInsertButton-BYjdrDnQ.js.map} +1 -1
  51. package/dist/cdn/chunks/{MergeTagInput-heTX9P_k.js → MergeTagInput-Cx67J_vg.js} +2 -2
  52. package/dist/cdn/chunks/{MergeTagInput-heTX9P_k.js.map → MergeTagInput-Cx67J_vg.js.map} +1 -1
  53. package/dist/cdn/chunks/{MergeTagModeToggle-C9EfuZIP.js → MergeTagModeToggle-DZ4EuXVp.js} +2 -2
  54. package/dist/cdn/chunks/{MergeTagModeToggle-C9EfuZIP.js.map → MergeTagModeToggle-DZ4EuXVp.js.map} +1 -1
  55. package/dist/cdn/chunks/{ParagraphEditor-B5DN4Sy4.js → ParagraphEditor-DndEFXmR.js} +7 -7
  56. package/dist/cdn/chunks/{ParagraphEditor-B5DN4Sy4.js.map → ParagraphEditor-DndEFXmR.js.map} +1 -1
  57. package/dist/cdn/chunks/{RestoreVersionDialog-DBgJ-Nui.js → RestoreVersionDialog-CFYs13a4.js} +2 -2
  58. package/dist/cdn/chunks/{RestoreVersionDialog-DBgJ-Nui.js.map → RestoreVersionDialog-CFYs13a4.js.map} +1 -1
  59. package/dist/cdn/chunks/{RichTextEditorContent-LOas4rfU.js → RichTextEditorContent-DKkDQ0dc.js} +3 -3
  60. package/dist/cdn/chunks/{RichTextEditorContent-LOas4rfU.js.map → RichTextEditorContent-DKkDQ0dc.js.map} +1 -1
  61. package/dist/cdn/chunks/{SaveBlockDialog-Dx-QVQCX.js → SaveBlockDialog-BOA2RaC_.js} +6 -6
  62. package/dist/cdn/chunks/{SaveBlockDialog-Dx-QVQCX.js.map → SaveBlockDialog-BOA2RaC_.js.map} +1 -1
  63. package/dist/cdn/chunks/{SavedBlocksBrowserModal-C2RQ-JCc.js → SavedBlocksBrowserModal-DQDVek3K.js} +4 -4
  64. package/dist/cdn/chunks/{SavedBlocksBrowserModal-C2RQ-JCc.js.map → SavedBlocksBrowserModal-DQDVek3K.js.map} +1 -1
  65. package/dist/cdn/chunks/{SavedBlocksPanels-BmRbvqqL.js → SavedBlocksPanels-Lu3tJ3QA.js} +2 -2
  66. package/dist/cdn/chunks/{SavedBlocksPanels-BmRbvqqL.js.map → SavedBlocksPanels-Lu3tJ3QA.js.map} +1 -1
  67. package/dist/cdn/chunks/{SavedBlocksPickBar-BzwKojoJ.js → SavedBlocksPickBar-D7MtqG6r.js} +2 -2
  68. package/dist/cdn/chunks/{SavedBlocksPickBar-BzwKojoJ.js.map → SavedBlocksPickBar-D7MtqG6r.js.map} +1 -1
  69. package/dist/cdn/chunks/{TemplateSettings-G-yV7C1C.js → TemplateSettings-rZiHmq24.js} +5 -5
  70. package/dist/cdn/chunks/{TemplateSettings-G-yV7C1C.js.map → TemplateSettings-rZiHmq24.js.map} +1 -1
  71. package/dist/cdn/chunks/{TestEmailModal-lOeztfTN.js → TestEmailModal-DWEyHXH2.js} +6 -6
  72. package/dist/cdn/chunks/{TestEmailModal-lOeztfTN.js.map → TestEmailModal-DWEyHXH2.js.map} +1 -1
  73. package/dist/cdn/chunks/{TestEmailPanel-CZswVkk_.js → TestEmailPanel-XXMD-Lnr.js} +2 -2
  74. package/dist/cdn/chunks/{TestEmailPanel-CZswVkk_.js.map → TestEmailPanel-XXMD-Lnr.js.map} +1 -1
  75. package/dist/cdn/chunks/{TitleEditor-CnTT2Y3H.js → TitleEditor-D1F0YoE-.js} +4 -4
  76. package/dist/cdn/chunks/{TitleEditor-CnTT2Y3H.js.map → TitleEditor-D1F0YoE-.js.map} +1 -1
  77. package/dist/cdn/chunks/{ToggleSwitch-CLHteVMO.js → ToggleSwitch-B5U9cqhi.js} +2 -2
  78. package/dist/cdn/chunks/{ToggleSwitch-CLHteVMO.js.map → ToggleSwitch-B5U9cqhi.js.map} +1 -1
  79. package/dist/cdn/chunks/{Toolbar-K4tIkpG1.js → Toolbar-C_5HfUQq.js} +55 -55
  80. package/dist/cdn/chunks/{Toolbar-K4tIkpG1.js.map → Toolbar-C_5HfUQq.js.map} +1 -1
  81. package/dist/cdn/chunks/{TplModal-OOT36AjS.js → TplModal-CYBbPCHL.js} +2 -2
  82. package/dist/cdn/chunks/{TplModal-OOT36AjS.js.map → TplModal-CYBbPCHL.js.map} +1 -1
  83. package/dist/cdn/chunks/{VersionHistoryPanels-BrpYRSfW.js → VersionHistoryPanels-Dq12VsTX.js} +2 -2
  84. package/dist/cdn/chunks/{VersionHistoryPanels-BrpYRSfW.js.map → VersionHistoryPanels-Dq12VsTX.js.map} +1 -1
  85. package/dist/cdn/chunks/{WrapperBlock-DdrnwH80.js → WrapperBlock-CJ0CLqi2.js} +2 -2
  86. package/dist/cdn/chunks/{WrapperBlock-DdrnwH80.js.map → WrapperBlock-CJ0CLqi2.js.map} +1 -1
  87. package/dist/cdn/chunks/{cloud-bhW8qTnh.js → cloud-h1vaHp2p.js} +2 -2
  88. package/dist/cdn/chunks/{cloud-bhW8qTnh.js.map → cloud-h1vaHp2p.js.map} +1 -1
  89. package/dist/cdn/chunks/{createCloudRuntime-CeRJkLR2.js → createCloudRuntime-bJN9EM1H.js} +3 -3
  90. package/dist/cdn/chunks/{createCloudRuntime-CeRJkLR2.js.map → createCloudRuntime-bJN9EM1H.js.map} +1 -1
  91. package/dist/cdn/chunks/{extensions-xjRsIjMP.js → extensions-CrmXF4MW.js} +6 -6
  92. package/dist/cdn/chunks/extensions-CrmXF4MW.js.map +1 -0
  93. package/dist/{preRenderCustomBlocks-DAS48ZCp.js → cdn/chunks/preRenderCustomBlocks-CyGB3lZr.js} +5 -3
  94. package/dist/cdn/chunks/{preRenderCustomBlocks-CFwa7nP9.js.map → preRenderCustomBlocks-CyGB3lZr.js.map} +1 -1
  95. package/dist/cdn/chunks/{socialIcons-CsYnPPll.js → socialIcons-ClJVDZwt.js} +82 -101
  96. package/dist/cdn/chunks/socialIcons-ClJVDZwt.js.map +1 -0
  97. package/dist/cdn/chunks/{src-HA9F2kvk.js → src-B0pZeTYO.js} +200 -183
  98. package/dist/cdn/chunks/src-B0pZeTYO.js.map +1 -0
  99. package/dist/cdn/chunks/{src-CkXmV2I2.js → src-BMw3u-iV.js} +213 -215
  100. package/dist/cdn/chunks/src-BMw3u-iV.js.map +1 -0
  101. package/dist/cdn/chunks/{src-BcqNlDMe.js → src-Bh0MoJ67.js} +280 -187
  102. package/dist/cdn/chunks/src-Bh0MoJ67.js.map +1 -0
  103. package/dist/cdn/chunks/{useEditorCore-BF1ZhcGu.js → useEditorCore-DuC7kVti.js} +323 -319
  104. package/dist/cdn/chunks/useEditorCore-DuC7kVti.js.map +1 -0
  105. package/dist/cdn/chunks/{useLogicTag-91bO_SOi.js → useLogicTag-B3uV3XHG.js} +2 -2
  106. package/dist/cdn/chunks/{useLogicTag-91bO_SOi.js.map → useLogicTag-B3uV3XHG.js.map} +1 -1
  107. package/dist/cdn/chunks/{useMergeTag-hwifK582.js → useMergeTag-DJLM-7WQ.js} +2 -2
  108. package/dist/cdn/chunks/{useMergeTag-hwifK582.js.map → useMergeTag-DJLM-7WQ.js.map} +1 -1
  109. package/dist/cdn/chunks/{useScrollToBlock-BDNJ25X1.js → useScrollToBlock-CpmB5KxW.js} +2 -3
  110. package/dist/cdn/chunks/useScrollToBlock-CpmB5KxW.js.map +1 -0
  111. package/dist/cdn/chunks/withCurrentFont-isIyuezD.js +21 -0
  112. package/dist/cdn/chunks/withCurrentFont-isIyuezD.js.map +1 -0
  113. package/dist/cdn/editor.css +1 -1
  114. package/dist/cdn/editor.js +435 -417
  115. package/dist/cdn/editor.js.map +1 -1
  116. package/dist/{cloud-CVfwPu19.js → cloud-DPGjMGfv.js} +1 -1
  117. package/dist/{createCloudRuntime-GRv_TDb2.js → createCloudRuntime-D0RRgWab.js} +2 -2
  118. package/dist/{dist-CSaWqmWM.js → dist-BI_LeQGl.js} +271 -200
  119. package/dist/{extensions-B65sfZRk.js → extensions-CYigjb1g.js} +13 -13
  120. package/dist/index.d.ts +34 -12
  121. package/dist/{cdn/chunks/preRenderCustomBlocks-CFwa7nP9.js → preRenderCustomBlocks-DokBGA_M.js} +3 -5
  122. package/dist/{socialIcons-CvAixjj8.js → socialIcons-Ct_IoqPQ.js} +107 -126
  123. package/dist/style.css +1 -1
  124. package/dist/templatical-editor.js +456 -438
  125. package/dist/{useEditorCore-DQSeKPE9.js → useEditorCore-BJAQMvNW.js} +482 -478
  126. package/dist/{useLogicTag-BH87j1vZ.js → useLogicTag-B5gjcMzn.js} +1 -1
  127. package/dist/{useMergeTag-DfPKX2Tk.js → useMergeTag-BwsBIDzR.js} +3 -3
  128. package/dist/{useScrollToBlock-Dr7Sb6Tr.js → useScrollToBlock-JRxhT1u_.js} +1 -2
  129. package/dist/withCurrentFont-C9vqrduu.js +19 -0
  130. package/package.json +8 -8
  131. package/dist/cdn/chunks/extensions-xjRsIjMP.js.map +0 -1
  132. package/dist/cdn/chunks/socialIcons-CsYnPPll.js.map +0 -1
  133. package/dist/cdn/chunks/src-BcqNlDMe.js.map +0 -1
  134. package/dist/cdn/chunks/src-CkXmV2I2.js.map +0 -1
  135. package/dist/cdn/chunks/src-HA9F2kvk.js.map +0 -1
  136. package/dist/cdn/chunks/useEditorCore-BF1ZhcGu.js.map +0 -1
  137. package/dist/cdn/chunks/useScrollToBlock-BDNJ25X1.js.map +0 -1
  138. package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js +0 -32
  139. package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js.map +0 -1
  140. package/dist/withCurrentFont-DeCbPVaE.js +0 -30
@@ -1,9 +1,9 @@
1
1
  import { A as e, At as t, B as n, E as r, J as i, V as a, Z as o, at as s, c, d as l, jt as u, kt as d, l as f, s as p, u as m, v as h } from "./vue.runtime.esm-bundler-CctRY8kr.js";
2
2
  import { a as g, c as _, s as v } from "./runtime-dom.esm-bundler-CO67ema2.js";
3
- import { F as y, H as b, I as x, c as S } from "./dist-CSaWqmWM.js";
3
+ import { L as y, R as b, W as x, l as S } from "./dist-BI_LeQGl.js";
4
4
  import { t as C } from "./useI18n-uF11q85g.js";
5
- import { a as w, o as T, s as E } from "./LogicTagInsertButton-BvftbkL4.js";
6
- import { t as D } from "./useMergeTag-DfPKX2Tk.js";
5
+ import { a as w, o as T, s as E } from "./LogicTagInsertButton-CHa-UD76.js";
6
+ import { t as D } from "./useMergeTag-BwsBIDzR.js";
7
7
  import { H as O, Kn as k, Xn as A, Yn as j, _n as M, m as N, qn as ee, s as P, u as te, v as ne } from "./dist-CMcFD7gP.js";
8
8
  import { n as F, t as re } from "./dist-1H4cnaoD.js";
9
9
  //#region src/extensions/FontSize.ts
@@ -101,7 +101,7 @@ var ie = P.create({
101
101
  updateAttributes: { type: Function }
102
102
  },
103
103
  setup(i) {
104
- let h = i, { syntax: x } = D(), { t: S } = C(), w = p(() => b(h.node.attrs.value, x)), T = p(() => y(h.node.attrs.value, x)), E = o(!1), O = o(""), k = o(null), A = !1;
104
+ let h = i, { syntax: b } = D(), { t: S } = C(), w = p(() => x(h.node.attrs.value, b)), T = p(() => y(h.node.attrs.value, b)), E = o(!1), O = o(""), k = o(null), A = !1;
105
105
  function j() {
106
106
  O.value = h.node.attrs.value, A = !1, E.value = !0, r(() => {
107
107
  k.value?.focus(), k.value?.select();
@@ -113,7 +113,7 @@ var ie = P.create({
113
113
  let e = O.value.trim();
114
114
  e && e !== h.node.attrs.value && h.updateAttributes({
115
115
  value: e,
116
- keyword: b(e, x) ? y(e, x) : ""
116
+ keyword: x(e, b) ? y(e, b) : ""
117
117
  }), E.value = !1;
118
118
  }
119
119
  function N(e) {
@@ -219,7 +219,7 @@ var me = N.create({
219
219
  return [{ tag: "span[data-logic-merge-tag]" }];
220
220
  },
221
221
  renderHTML({ node: e, HTMLAttributes: t }) {
222
- if (!b(e.attrs.value, this.options.syntax)) return [
222
+ if (!x(e.attrs.value, this.options.syntax)) return [
223
223
  "span",
224
224
  {},
225
225
  e.attrs.value
@@ -249,7 +249,7 @@ var me = N.create({
249
249
  find: e,
250
250
  handler: ({ state: e, range: t, match: n }) => {
251
251
  let r = n[0];
252
- if (!b(r, this.options.syntax)) return;
252
+ if (!x(r, this.options.syntax)) return;
253
253
  let i = y(r, this.options.syntax), a = this.type.create({
254
254
  value: r,
255
255
  keyword: i
@@ -264,7 +264,7 @@ var me = N.create({
264
264
  find: e,
265
265
  handler: ({ state: e, range: t, match: n }) => {
266
266
  let r = n[0];
267
- if (!b(r, this.options.syntax)) return;
267
+ if (!x(r, this.options.syntax)) return;
268
268
  let i = y(r, this.options.syntax), a = this.type.create({
269
269
  value: r,
270
270
  keyword: i
@@ -403,7 +403,7 @@ var me = N.create({
403
403
  return [{ tag: "span[data-merge-tag]" }];
404
404
  },
405
405
  renderHTML({ node: e, HTMLAttributes: t }) {
406
- let n = x(e.attrs.value, this.options.mergeTags());
406
+ let n = b(e.attrs.value, this.options.mergeTags());
407
407
  return [
408
408
  "span",
409
409
  M(t, {
@@ -436,7 +436,7 @@ var me = N.create({
436
436
  return [new te({
437
437
  find: e,
438
438
  handler: ({ state: e, range: t, match: n }) => {
439
- let r = n[0], i = x(r, this.options.mergeTags()), a = this.type.create({
439
+ let r = n[0], i = b(r, this.options.mergeTags()), a = this.type.create({
440
440
  label: i,
441
441
  value: r
442
442
  });
@@ -449,7 +449,7 @@ var me = N.create({
449
449
  return [new ne({
450
450
  find: e,
451
451
  handler: ({ state: e, range: t, match: n }) => {
452
- let r = n[0], i = x(r, this.options.mergeTags()), a = this.type.create({
452
+ let r = n[0], i = b(r, this.options.mergeTags()), a = this.type.create({
453
453
  label: i,
454
454
  value: r
455
455
  });
@@ -1602,12 +1602,12 @@ var nn = P.create({
1602
1602
  };
1603
1603
  },
1604
1604
  addProseMirrorPlugins() {
1605
- let e = this.options.mergeTags(), t = this.options.emptyText, n = this.options.popoverRoot, r = {
1605
+ let e = this.options.mergeTags, t = this.options.emptyText, n = this.options.popoverRoot, r = {
1606
1606
  char: this.options.char,
1607
1607
  allowSpaces: !1,
1608
1608
  startOfLine: !1,
1609
1609
  allowedPrefixes: null,
1610
- items: ({ query: t }) => T(e, t),
1610
+ items: ({ query: t }) => T(e(), t),
1611
1611
  command: ({ editor: e, range: t, props: n }) => {
1612
1612
  e.chain().focus().insertContentAt(t, {
1613
1613
  type: "mergeTagNode",
package/dist/index.d.ts CHANGED
@@ -1789,8 +1789,9 @@ declare interface SectionBlock extends BaseBlock {
1789
1789
 
1790
1790
  /**
1791
1791
  * Optional outer frame for a section. When present, the section is rendered
1792
- * inside an `mj-wrapper` — a full-width band (its own background + padding)
1793
- * that frames the section, e.g. a white card sitting on a colored band.
1792
+ * inside an `mj-wrapper` — a band (its own background + padding) that frames
1793
+ * the section, e.g. a white card sitting on a colored band. The band is as
1794
+ * wide as the email body (`settings.width`), not the recipient's viewport.
1794
1795
  */
1795
1796
  declare interface SectionWrapper {
1796
1797
  backgroundColor?: string;
@@ -2402,12 +2403,12 @@ export declare interface TemplaticalCloudEditorConfig {
2402
2403
  displayConditions?: DisplayConditionsConfig;
2403
2404
  customBlocks?: CustomBlockDefinition[];
2404
2405
  /**
2405
- * Allowlist + order for the block palette. When set, only the listed block
2406
- * types appear in the sidebar palette, in this order; unlisted built-ins are
2407
- * hidden. Built-ins use their bare type (`'image'`), custom blocks the
2408
- * `custom:`-prefixed type (`'custom:qrcode'`). Unknown entries are warned and
2409
- * skipped. Omit for the full default palette. See `paletteBlocks` on the OSS
2410
- * editor config for details.
2406
+ * Allowlist + order for the block palette. When non-empty, only the listed
2407
+ * block types appear in the sidebar palette, in this order; unlisted
2408
+ * built-ins are hidden. Built-ins use their bare type (`'image'`), custom
2409
+ * blocks the `custom:`-prefixed type (`'custom:qrcode'`). Unknown entries are
2410
+ * warned and skipped. Omit it or pass `[]` for the full default palette. See
2411
+ * `paletteBlocks` on the OSS editor config for details.
2411
2412
  */
2412
2413
  paletteBlocks?: string[];
2413
2414
  /**
@@ -2559,6 +2560,26 @@ export declare interface TemplaticalEditor extends TemplaticalEditorBase {
2559
2560
  declare interface TemplaticalEditorBase {
2560
2561
  getContent(): TemplateContent;
2561
2562
  setContent(content: TemplateContent): void;
2563
+ /**
2564
+ * Insert a block where a click on a palette item would put it: below the
2565
+ * selected block, in the same column when the selection is inside a section
2566
+ * (a section lands after that section instead), or at the end when nothing
2567
+ * usable is selected. The new block is selected and scrolled into view, so
2568
+ * repeated calls stack in order.
2569
+ *
2570
+ * The block is inserted as given: the editor defaults a palette block is
2571
+ * built with (`blockDefaults`, localized placeholder text, RTL alignment)
2572
+ * aren't applied, so insert ready-made content rather than fresh factory
2573
+ * blocks.
2574
+ *
2575
+ * Inserts a copy with fresh ids, so the same block can be inserted twice.
2576
+ * Bare merge tags are converted the same way `setContent` converts them.
2577
+ * Returns the inserted copy's id, or `null` once the instance is unmounted
2578
+ * or replaced by a later `init()` on its container, in preview mode (with a
2579
+ * warning), or when the block could not be placed. A slot or wrapper block
2580
+ * throws, as it does in `setContent`.
2581
+ */
2582
+ insertBlock(block: Block): string | null;
2562
2583
  setTheme(theme: UiTheme): void;
2563
2584
  /**
2564
2585
  * Replace the configured merge tags after `init()`.
@@ -2876,10 +2897,11 @@ export declare interface TemplaticalEditorConfig {
2876
2897
  displayConditions?: DisplayConditionsConfig;
2877
2898
  customBlocks?: CustomBlockDefinition[];
2878
2899
  /**
2879
- * Allowlist + order for the block palette. When set, only the listed block
2880
- * types appear in the sidebar palette, in exactly this order — unlisted
2881
- * built-ins (e.g. `video`, `table`) are hidden. When omitted, the full
2882
- * default palette is shown.
2900
+ * Allowlist + order for the block palette. When non-empty, only the listed
2901
+ * block types appear in the sidebar palette, in exactly this order —
2902
+ * unlisted built-ins (e.g. `video`, `table`) are hidden. When omitted or
2903
+ * empty (`[]`), the full default palette is shown: an empty allowlist means
2904
+ * "not configured", not "hide every block".
2883
2905
  *
2884
2906
  * Reference built-in blocks by their bare type (`'section'`, `'image'`, …)
2885
2907
  * and custom blocks by their `custom:`-prefixed type (`'custom:qrcode'`),
@@ -1,4 +1,4 @@
1
- import { Z as e, rt as t, ut as n } from "./src-BcqNlDMe.js";
1
+ import { U as e, Y as t, q as n } from "./dist-BI_LeQGl.js";
2
2
  //#region src/utils/preRenderCustomBlocks.ts
3
3
  async function r(r, i) {
4
4
  let a = async (r) => {
@@ -10,12 +10,10 @@ async function r(r, i) {
10
10
  e.renderedHtml = `<!-- Custom block render error: ${e.customType} -->`;
11
11
  }
12
12
  }
13
- if (t(r)) for (let e of r.children) for (let t of e) await a(t);
14
- else if (n(r)) for (let e of r.children) await a(e);
13
+ if (n(r)) for (let e of r.children) for (let t of e) await a(t);
14
+ else if (t(r)) for (let e of r.children) await a(e);
15
15
  };
16
16
  for (let e of r.blocks) await a(e);
17
17
  }
18
18
  //#endregion
19
19
  export { r as t };
20
-
21
- //# sourceMappingURL=preRenderCustomBlocks-CFwa7nP9.js.map