@templatical/editor 0.15.1 → 0.16.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 (176) hide show
  1. package/README.md +1 -1
  2. package/dist/{AiChatSidebar-BIKvYREk.js → AiChatSidebar-EaPCeDXr.js} +14 -14
  3. package/dist/{AiFeatureMenu-CU6kTMTf.js → AiFeatureMenu-Rb8G3EBo.js} +7 -7
  4. package/dist/{BlockIssueBadge-B3xVgMTh.js → BlockIssueBadge-CZYgn-qg.js} +5 -5
  5. package/dist/{CloudEditor-DRPxvUEj.js → CloudEditor-D88gLBXp.js} +25 -25
  6. package/dist/{CollaboratorBar-DMSjd3HZ.js → CollaboratorBar-dxCD8jSi.js} +4 -4
  7. package/dist/ColorPicker-CAgMCX3A.js +442 -0
  8. package/dist/{CommentsSidebar-D_tSGvTX.js → CommentsSidebar-DDKiFsSq.js} +13 -13
  9. package/dist/{CountdownBlock-apiYUhkQ.js → CountdownBlock-173fiO5Z.js} +3 -3
  10. package/dist/{CountdownToolbar-CS0axcjz.js → CountdownToolbar-8XVTOuGX.js} +4 -4
  11. package/dist/{DesignReferenceSidebar-DWYK9nTk.js → DesignReferenceSidebar-D6TfC176.js} +11 -11
  12. package/dist/{IssuesPanel-CR1MPaDE.js → IssuesPanel-CQQipLQP.js} +8 -8
  13. package/dist/{LoadingTrack-DsecR8Rw.js → LoadingTrack-KIcREPlS.js} +1 -1
  14. package/dist/{MergeTagSuggestion-CH2SUxBo.js → MergeTagSuggestion-DrT3LiZ4.js} +4 -4
  15. package/dist/{ModuleBrowserModal-BOzleijA.js → ModuleBrowserModal-l4_RCC8m.js} +11 -11
  16. package/dist/{ModulePreviewCanvas-Cg99Pbde.js → ModulePreviewCanvas-BqYAr4fz.js} +3 -3
  17. package/dist/NumberWithSuffix-Di-cDy_m.js +89 -0
  18. package/dist/{ParagraphEditor-8jnzoL0A.js → ParagraphEditor-DIQ1jmSP.js} +230 -195
  19. package/dist/{RichTextEditorContent-BqLHIZY7.js → RichTextEditorContent-DkTJ6KK8.js} +56 -45
  20. package/dist/{SaveModuleDialog-Cy2XyjYT.js → SaveModuleDialog-DPo3Raon.js} +8 -8
  21. package/dist/{SnapshotHistory-cfxmOsJu.js → SnapshotHistory-m7brKV7C.js} +10 -10
  22. package/dist/{TemplateScoringPanel-CZ62rGHz.js → TemplateScoringPanel-C8VOC6gn.js} +15 -15
  23. package/dist/{TestEmailModal-sr1MaMVX.js → TestEmailModal-BE9sFEIl.js} +6 -6
  24. package/dist/{TitleEditor-CvGTprIg.js → TitleEditor-BATN-k-Q.js} +38 -35
  25. package/dist/{TplModal-BtKB-0Bx.js → TplModal-DHBcZ1gq.js} +5 -5
  26. package/dist/{blockTypeIcons-BxEbbev5.js → blockTypeIcons-wRchKKx0.js} +7 -7
  27. package/dist/bundle-stats.json +7 -7
  28. package/dist/ca-B3eR47lE.js +559 -0
  29. package/dist/cdn/chunks/{AiFeatureMenu-fDUpv_-s.js → AiFeatureMenu-W7VQFAwq.js} +6 -6
  30. package/dist/cdn/chunks/{AiFeatureMenu-fDUpv_-s.js.map → AiFeatureMenu-W7VQFAwq.js.map} +1 -1
  31. package/dist/cdn/chunks/{BlockIssueBadge-Byce0j0W.js → BlockIssueBadge-ww2vNIfJ.js} +5 -5
  32. package/dist/cdn/chunks/{BlockIssueBadge-Byce0j0W.js.map → BlockIssueBadge-ww2vNIfJ.js.map} +1 -1
  33. package/dist/cdn/chunks/{CloudEditor-B4m8ldiE.js → CloudEditor-BVSJ1kvB.js} +161 -161
  34. package/dist/cdn/chunks/{CloudEditor-B4m8ldiE.js.map → CloudEditor-BVSJ1kvB.js.map} +1 -1
  35. package/dist/cdn/chunks/{CollaboratorBar-LnLmjxw_.js → CollaboratorBar-BFrAua9a.js} +4 -4
  36. package/dist/cdn/chunks/{CollaboratorBar-LnLmjxw_.js.map → CollaboratorBar-BFrAua9a.js.map} +1 -1
  37. package/dist/cdn/chunks/ColorPicker-DmxMDn-t.js +439 -0
  38. package/dist/cdn/chunks/ColorPicker-DmxMDn-t.js.map +1 -0
  39. package/dist/cdn/chunks/{CountdownBlock-DxTuMRBM.js → CountdownBlock-MC-mhtQD.js} +3 -3
  40. package/dist/cdn/chunks/{CountdownBlock-DxTuMRBM.js.map → CountdownBlock-MC-mhtQD.js.map} +1 -1
  41. package/dist/cdn/chunks/{CountdownToolbar-DUrVfQZH.js → CountdownToolbar-dXyr7tz-.js} +5 -5
  42. package/dist/cdn/chunks/{CountdownToolbar-DUrVfQZH.js.map → CountdownToolbar-dXyr7tz-.js.map} +1 -1
  43. package/dist/cdn/chunks/{IssuesPanel-CHl90k4h.js → IssuesPanel-CTxSgViL.js} +8 -8
  44. package/dist/cdn/chunks/{IssuesPanel-CHl90k4h.js.map → IssuesPanel-CTxSgViL.js.map} +1 -1
  45. package/dist/cdn/chunks/{MergeTagSuggestion-BsCAo4Co.js → MergeTagSuggestion-jesxS7An.js} +3 -3
  46. package/dist/cdn/chunks/{MergeTagSuggestion-BsCAo4Co.js.map → MergeTagSuggestion-jesxS7An.js.map} +1 -1
  47. package/dist/cdn/chunks/{ModuleBrowserModal-DW0iQW0J.js → ModuleBrowserModal-B5sCsrud.js} +9 -9
  48. package/dist/cdn/chunks/{ModuleBrowserModal-DW0iQW0J.js.map → ModuleBrowserModal-B5sCsrud.js.map} +1 -1
  49. package/dist/cdn/chunks/{ModulePreviewCanvas-Cxo8v8t1.js → ModulePreviewCanvas-DGTGo8kg.js} +11 -11
  50. package/dist/cdn/chunks/{ModulePreviewCanvas-Cxo8v8t1.js.map → ModulePreviewCanvas-DGTGo8kg.js.map} +1 -1
  51. package/dist/cdn/chunks/NumberWithSuffix-tAHfui6k.js +91 -0
  52. package/dist/cdn/chunks/NumberWithSuffix-tAHfui6k.js.map +1 -0
  53. package/dist/cdn/chunks/{ParagraphEditor-iG5cDjH0.js → ParagraphEditor-CB5FGRs3.js} +213 -179
  54. package/dist/cdn/chunks/ParagraphEditor-CB5FGRs3.js.map +1 -0
  55. package/dist/cdn/chunks/{RichTextEditorContent-DQpgeGMj.js → RichTextEditorContent-CPelbtck.js} +53 -42
  56. package/dist/cdn/chunks/RichTextEditorContent-CPelbtck.js.map +1 -0
  57. package/dist/cdn/chunks/{SaveModuleDialog-sJQXg2Mh.js → SaveModuleDialog-7f9uUUEC.js} +6 -6
  58. package/dist/cdn/chunks/{SaveModuleDialog-sJQXg2Mh.js.map → SaveModuleDialog-7f9uUUEC.js.map} +1 -1
  59. package/dist/cdn/chunks/{TitleEditor-C8qIn9Oi.js → TitleEditor-C0mYpgs4.js} +46 -43
  60. package/dist/cdn/chunks/TitleEditor-C0mYpgs4.js.map +1 -0
  61. package/dist/cdn/chunks/{blockTypeIcons-DySnOpPo.js → blockTypeIcons-BtxaUtlx.js} +5 -5
  62. package/dist/cdn/chunks/{blockTypeIcons-DySnOpPo.js.map → blockTypeIcons-BtxaUtlx.js.map} +1 -1
  63. package/dist/cdn/chunks/ca-B3eR47lE.js +561 -0
  64. package/dist/cdn/chunks/ca-B3eR47lE.js.map +1 -0
  65. package/dist/cdn/chunks/ca-CNRWAMHI.js +89 -0
  66. package/dist/cdn/chunks/ca-CNRWAMHI.js.map +1 -0
  67. package/dist/{de-LsV0u1tP.js → cdn/chunks/de-Cy8FB-Ii.js} +7 -1
  68. package/dist/cdn/chunks/de-Cy8FB-Ii.js.map +1 -0
  69. package/dist/cdn/chunks/{draggable-kG-D5Xsm.js → draggable-D840DIZB.js} +52 -39
  70. package/dist/cdn/chunks/draggable-D840DIZB.js.map +1 -0
  71. package/dist/{en-Bb8X1bOs.js → cdn/chunks/en-Bu-zS_5o.js} +7 -1
  72. package/dist/cdn/chunks/en-Bu-zS_5o.js.map +1 -0
  73. package/dist/cdn/chunks/es-CD3ZD6hK.js +561 -0
  74. package/dist/cdn/chunks/es-CD3ZD6hK.js.map +1 -0
  75. package/dist/cdn/chunks/es-OgkdMZGX.js +89 -0
  76. package/dist/cdn/chunks/es-OgkdMZGX.js.map +1 -0
  77. package/dist/cdn/chunks/{extensions-C2pTX899.js → extensions-BJ7vaBol.js} +28 -28
  78. package/dist/cdn/chunks/{extensions-C2pTX899.js.map → extensions-BJ7vaBol.js.map} +1 -1
  79. package/dist/cdn/chunks/{features-CHE3YjQE.js → features-CgbSSCgv.js} +602 -566
  80. package/dist/cdn/chunks/features-CgbSSCgv.js.map +1 -0
  81. package/dist/cdn/chunks/{icons-M4uqBV-_.js → icons-Dlx5MT1V.js} +2 -2
  82. package/dist/cdn/chunks/{icons-M4uqBV-_.js.map → icons-Dlx5MT1V.js.map} +1 -1
  83. package/dist/cdn/chunks/{media-library-Bqr15VN2.js → media-library-BMlykZGq.js} +104 -104
  84. package/dist/cdn/chunks/{media-library-Bqr15VN2.js.map → media-library-BMlykZGq.js.map} +1 -1
  85. package/dist/{pt-BR-BwJY_cvb.js → cdn/chunks/pt-BR-CgICL-CQ.js} +7 -1
  86. package/dist/cdn/chunks/pt-BR-CgICL-CQ.js.map +1 -0
  87. package/dist/cdn/chunks/quality-DsVgXk_j.js +2180 -0
  88. package/dist/cdn/chunks/quality-DsVgXk_j.js.map +1 -0
  89. package/dist/cdn/chunks/{renderer-CyzTR1Vq.js → renderer-DPvEtVGO.js} +35 -38
  90. package/dist/cdn/chunks/renderer-DPvEtVGO.js.map +1 -0
  91. package/dist/cdn/chunks/{src-q-SBgWx7.js → src-CAdirukY.js} +109 -112
  92. package/dist/cdn/chunks/{src-q-SBgWx7.js.map → src-CAdirukY.js.map} +1 -1
  93. package/dist/cdn/chunks/{styles-PWISdaws.js → styles-D7u4vCpH.js} +877 -856
  94. package/dist/cdn/chunks/styles-D7u4vCpH.js.map +1 -0
  95. package/dist/cdn/chunks/{tiptap-DF9PEiqH.js → tiptap-zpXk5mN4.js} +3278 -4992
  96. package/dist/cdn/chunks/tiptap-zpXk5mN4.js.map +1 -0
  97. package/dist/cdn/editor.css +1 -1
  98. package/dist/cdn/editor.js +75 -73
  99. package/dist/cdn/editor.js.map +1 -1
  100. package/dist/{check-rl7ok6uJ.js → check-D1zYtCPK.js} +1 -1
  101. package/dist/{chevron-down-BKe__NOD.js → chevron-down-ByXpufZD.js} +1 -1
  102. package/dist/{circle-alert-C8xmpMsK.js → circle-alert-CjcAORUw.js} +1 -1
  103. package/dist/{clock-BW4JuDCN.js → clock-5lWLadUn.js} +1 -1
  104. package/dist/{cloud-BQusL53H.js → cloud-BogxOeZu.js} +2 -2
  105. package/dist/{createLucideIcon-Dx-EjR9r.js → createLucideIcon-Bh9xOmlW.js} +3 -3
  106. package/dist/{cdn/chunks/de-LsV0u1tP.js → de-Cy8FB-Ii.js} +5 -3
  107. package/dist/dist-BE9m_i60.js +5 -0
  108. package/dist/{dist-BFmE-7hB.js → dist-BPPeDw62.js} +2 -2
  109. package/dist/{dist-BsCGIDSt.js → dist-BReUTadj.js} +4 -4
  110. package/dist/dist-BXR1aBJV.js +5 -0
  111. package/dist/{dist-CRsjOQM-.js → dist-Bm07Z3Es.js} +2 -2
  112. package/dist/{dist-BEWiuOMi.js → dist-CFOQvhSC.js} +3 -3
  113. package/dist/{dist-B5Sov3sS.js → dist-CHLoeloJ.js} +2 -2
  114. package/dist/{dist-COG3IdPK.js → dist-D1WmF8BF.js} +2 -2
  115. package/dist/{dist-itdjZraK.js → dist-D9g4CSnm.js} +1 -1
  116. package/dist/{dist-BMoa33wT.js → dist-DGEaAAIb.js} +2 -2
  117. package/dist/{dist-CTT6WYJ6.js → dist-DYv_Pttj.js} +2 -2
  118. package/dist/{dist-CQZxDvFw.js → dist-DcKlLQ8d.js} +2 -2
  119. package/dist/{dist-SXJJ2v41.js → dist-DhY2di4U.js} +2 -2
  120. package/dist/{dist-BibU4HNl.js → dist-DoRIUsfz.js} +2 -3
  121. package/dist/dist-i_Z7t67A.js +2594 -0
  122. package/dist/{cdn/chunks/en-Bb8X1bOs.js → en-Bu-zS_5o.js} +5 -3
  123. package/dist/es-CD3ZD6hK.js +559 -0
  124. package/dist/{extensions-DwaZAqm6.js → extensions-B2poxDIo.js} +8 -8
  125. package/dist/{image-up-BwBCmQ4P.js → image-up-Bj_nes3f.js} +1 -1
  126. package/dist/{info-TCn7uWR5.js → info-BhSQCxBV.js} +1 -1
  127. package/dist/{keys-Cv8-8GsD.js → keys-BbDgCU6K.js} +1 -1
  128. package/dist/{list-checks-CSrOWNgq.js → list-checks-CgxyUg7i.js} +1 -1
  129. package/dist/{loader-circle-BLmicnPG.js → loader-circle-DFU0HPAa.js} +1 -1
  130. package/dist/{message-circle-C9hHMQCI.js → message-circle-BEBsCHnk.js} +1 -1
  131. package/dist/{cdn/chunks/pt-BR-BwJY_cvb.js → pt-BR-CgICL-CQ.js} +5 -3
  132. package/dist/{refresh-cw-D1JQ1LNa.js → refresh-cw--lvWGy0_.js} +1 -1
  133. package/dist/{runtime-dom.esm-bundler-BzuoCyNp.js → runtime-dom.esm-bundler-GdMI8WqG.js} +6 -7
  134. package/dist/{scan-line-DgijVq9y.js → scan-line-QgyDIgn_.js} +1 -1
  135. package/dist/{send-DjPdq69F.js → send-BMyisUim.js} +1 -1
  136. package/dist/{shield-check-Bqluu8FS.js → shield-check-C49M20le.js} +1 -1
  137. package/dist/{sparkles-M4azPVSP.js → sparkles-DV7Dman6.js} +1 -1
  138. package/dist/style.css +1 -1
  139. package/dist/{styles-B2OrgEnn.js → styles-B-yhoJnH.js} +537 -516
  140. package/dist/templatical-editor.js +62 -60
  141. package/dist/{text-align-start-CMya5pCQ.js → text-align-start-BMU70uAm.js} +1 -1
  142. package/dist/{trash-2-C-81rkLS.js → trash-2-B6M659Ey.js} +1 -1
  143. package/dist/{triangle-alert-BuRWnynk.js → triangle-alert-D1lzx6ds.js} +1 -1
  144. package/dist/{upload-CWBIoLd4.js → upload-3A1oZtOR.js} +1 -1
  145. package/dist/{useAliveFlag-CECL_OUb.js → useAliveFlag-C43EhZFY.js} +1 -1
  146. package/dist/{useCloudI18n-AKCy98qD.js → useCloudI18n-WbfVWq5k.js} +2 -2
  147. package/dist/{useEditorCore-DJeOXVxQ.js → useEditorCore-CV1ct_17.js} +628 -591
  148. package/dist/{useI18n-C-TDeJBt.js → useI18n-eR1yVW0v.js} +2 -2
  149. package/dist/{useMergeTag-DSrBY0-2.js → useMergeTag-C3GfSktg.js} +3 -3
  150. package/dist/usePopoverRoot-C1j0D7cc.js +8 -0
  151. package/dist/{vue.runtime.esm-bundler-l0XAqiyv.js → vue.runtime.esm-bundler-B0xoGkDv.js} +84 -70
  152. package/dist/{x-CQSvXnGR.js → x-CG_NV3nP.js} +1 -1
  153. package/package.json +23 -23
  154. package/dist/NumberWithSuffix-CrA6quxx.js +0 -445
  155. package/dist/cdn/chunks/NumberWithSuffix-CnSRmUMK.js +0 -444
  156. package/dist/cdn/chunks/NumberWithSuffix-CnSRmUMK.js.map +0 -1
  157. package/dist/cdn/chunks/ParagraphEditor-iG5cDjH0.js.map +0 -1
  158. package/dist/cdn/chunks/RichTextEditorContent-DQpgeGMj.js.map +0 -1
  159. package/dist/cdn/chunks/TitleEditor-C8qIn9Oi.js.map +0 -1
  160. package/dist/cdn/chunks/de-LsV0u1tP.js.map +0 -1
  161. package/dist/cdn/chunks/draggable-kG-D5Xsm.js.map +0 -1
  162. package/dist/cdn/chunks/en-Bb8X1bOs.js.map +0 -1
  163. package/dist/cdn/chunks/features-CHE3YjQE.js.map +0 -1
  164. package/dist/cdn/chunks/pt-BR-BwJY_cvb.js.map +0 -1
  165. package/dist/cdn/chunks/quality-DJZ_fqc2.js +0 -2176
  166. package/dist/cdn/chunks/quality-DJZ_fqc2.js.map +0 -1
  167. package/dist/cdn/chunks/renderer-CyzTR1Vq.js.map +0 -1
  168. package/dist/cdn/chunks/styleConstants-lGobwiLH.js +0 -57
  169. package/dist/cdn/chunks/styleConstants-lGobwiLH.js.map +0 -1
  170. package/dist/cdn/chunks/styles-PWISdaws.js.map +0 -1
  171. package/dist/cdn/chunks/tiptap-DF9PEiqH.js.map +0 -1
  172. package/dist/dist-CNLKj9wa.js +0 -5
  173. package/dist/dist-CNXDNYQn.js +0 -4311
  174. package/dist/dist-Cqa6aeAJ.js +0 -5
  175. package/dist/styleConstants-lGobwiLH.js +0 -55
  176. package/dist/usePopoverRoot-DKUDnr55.js +0 -8
@@ -1,5 +1,5 @@
1
- import { W as e, x as t } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
2
- import { F as n } from "./keys-Cv8-8GsD.js";
1
+ import { W as e, x as t } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
+ import { F as n } from "./keys-BbDgCU6K.js";
3
3
  //#region src/composables/useI18n.ts
4
4
  function r(r) {
5
5
  let i = r ?? t(n, null);
@@ -1,6 +1,6 @@
1
- import { Y as e, x as t } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
2
- import { A as n, T as r, r as i } from "./dist-BibU4HNl.js";
3
- import { C as a, O as o, S as s, T as c, w as l } from "./keys-Cv8-8GsD.js";
1
+ import { Y as e, x as t } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
+ import { A as n, T as r, r as i } from "./dist-DoRIUsfz.js";
3
+ import { C as a, O as o, S as s, T as c, w as l } from "./keys-BbDgCU6K.js";
4
4
  //#region src/composables/useMergeTag.ts
5
5
  function u() {
6
6
  let u = t(s, []), d = t(c, i.liquid), f = t(o, null), p = t(a, !0), m = t(l, null), h = e(!1);
@@ -0,0 +1,8 @@
1
+ import { Y as e, x as t } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
+ import { A as n } from "./keys-BbDgCU6K.js";
3
+ //#region src/composables/usePopoverRoot.ts
4
+ function r() {
5
+ return t(n, e(null));
6
+ }
7
+ //#endregion
8
+ export { r as t };
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@vue+shared@3.5.39/node_modules/@vue/shared/dist/shared.esm-bundler.js
1
+ //#region ../../node_modules/.pnpm/@vue+shared@3.5.40/node_modules/@vue/shared/dist/shared.esm-bundler.js
2
2
  // @__NO_SIDE_EFFECTS__
3
3
  function e(e) {
4
4
  let t = /* @__PURE__ */ Object.create(null);
@@ -88,7 +88,7 @@ function Ee(e, t) {
88
88
  }
89
89
  var De = (e) => !!(e && e.__v_isRef === !0), Oe = (e) => g(e) ? e : e == null ? "" : d(e) || v(e) && (e.toString === b || !h(e.toString)) ? De(e) ? Oe(e.value) : JSON.stringify(e, ke, 2) : String(e), ke = (e, t) => De(t) ? ke(e, t.value) : f(t) ? { [`Map(${t.size})`]: [...t.entries()].reduce((e, [t, n], r) => (e[Ae(t, r) + " =>"] = n, e), {}) } : p(t) ? { [`Set(${t.size})`]: [...t.values()].map((e) => Ae(e)) } : _(t) ? Ae(t) : v(t) && !d(t) && !C(t) ? String(t) : t, Ae = (e, t = "") => _(e) ? `Symbol(${e.description ?? t})` : e;
90
90
  //#endregion
91
- //#region ../../node_modules/.pnpm/@vue+reactivity@3.5.39/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
91
+ //#region ../../node_modules/.pnpm/@vue+reactivity@3.5.40/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
92
92
  function M(e, ...t) {
93
93
  console.warn(`[Vue warn] ${e}`, ...t);
94
94
  }
@@ -103,7 +103,10 @@ var N, je = class {
103
103
  if (this._active) {
104
104
  this._isPaused = !0;
105
105
  let e, t;
106
- if (this.scopes) for (e = 0, t = this.scopes.length; e < t; e++) this.scopes[e].pause();
106
+ if (this.scopes) {
107
+ let n = this.scopes.slice();
108
+ for (e = 0, t = n.length; e < t; e++) n[e].pause();
109
+ }
107
110
  for (e = 0, t = this.effects.length; e < t; e++) this.effects[e].pause();
108
111
  }
109
112
  }
@@ -111,8 +114,12 @@ var N, je = class {
111
114
  if (this._active && this._isPaused) {
112
115
  this._isPaused = !1;
113
116
  let e, t;
114
- if (this.scopes) for (e = 0, t = this.scopes.length; e < t; e++) this.scopes[e].resume();
115
- for (e = 0, t = this.effects.length; e < t; e++) this.effects[e].resume();
117
+ if (this.scopes) {
118
+ let n = this.scopes.slice();
119
+ for (e = 0, t = n.length; e < t; e++) n[e].resume();
120
+ }
121
+ let n = this.effects.slice();
122
+ for (e = 0, t = n.length; e < t; e++) n[e].resume();
116
123
  }
117
124
  }
118
125
  run(e) {
@@ -151,7 +158,8 @@ var N, je = class {
151
158
  for (t = 0, n = this.effects.length; t < n; t++) this.effects[t].stop();
152
159
  for (this.effects.length = 0, t = 0, n = this.cleanups.length; t < n; t++) this.cleanups[t]();
153
160
  if (this.cleanups.length = 0, this.scopes) {
154
- for (t = 0, n = this.scopes.length; t < n; t++) this.scopes[t].stop(!0);
161
+ let e = this.scopes.slice();
162
+ for (t = 0, n = e.length; t < n; t++) e[t].stop(!0);
155
163
  this.scopes.length = 0;
156
164
  }
157
165
  if (!this.detached && this.parent && !e) {
@@ -184,12 +192,12 @@ var P, Pe = /* @__PURE__ */ new WeakSet(), Fe = class {
184
192
  run() {
185
193
  if (!(this.flags & 1)) return this.fn();
186
194
  this.flags |= 2, Xe(this), He(this);
187
- let e = P, t = Je;
188
- P = this, Je = !0;
195
+ let e = P, t = F;
196
+ P = this, F = !0;
189
197
  try {
190
198
  return this.fn();
191
199
  } finally {
192
- process.env.NODE_ENV !== "production" && P !== this && M("Active effect was not restored correctly - this is likely a Vue internal bug."), Ue(this), P = e, Je = t, this.flags &= -3;
200
+ process.env.NODE_ENV !== "production" && P !== this && M("Active effect was not restored correctly - this is likely a Vue internal bug."), Ue(this), P = e, F = t, this.flags &= -3;
193
201
  }
194
202
  }
195
203
  stop() {
@@ -260,8 +268,8 @@ function We(e) {
260
268
  function Ge(e) {
261
269
  if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === Ze) || (e.globalVersion = Ze, !e.isSSR && e.flags & 128 && (!e.deps && !e._dirty || !We(e)))) return;
262
270
  e.flags |= 2;
263
- let t = e.dep, n = P, r = Je;
264
- P = e, Je = !0;
271
+ let t = e.dep, n = P, r = F;
272
+ P = e, F = !0;
265
273
  try {
266
274
  He(e);
267
275
  let n = e.fn(e._value);
@@ -269,7 +277,7 @@ function Ge(e) {
269
277
  } catch (e) {
270
278
  throw t.version++, e;
271
279
  } finally {
272
- P = n, Je = r, Ue(e), e.flags &= -3;
280
+ P = n, F = r, Ue(e), e.flags &= -3;
273
281
  }
274
282
  }
275
283
  function Ke(e, t = !1) {
@@ -284,13 +292,13 @@ function qe(e) {
284
292
  let { prevDep: t, nextDep: n } = e;
285
293
  t && (t.nextDep = n, e.prevDep = void 0), n && (n.prevDep = t, e.nextDep = void 0);
286
294
  }
287
- var Je = !0, Ye = [];
288
- function F() {
289
- Ye.push(Je), Je = !1;
290
- }
295
+ var F = !0, Je = [];
291
296
  function I() {
292
- let e = Ye.pop();
293
- Je = e === void 0 || e;
297
+ Je.push(F), F = !1;
298
+ }
299
+ function Ye() {
300
+ let e = Je.pop();
301
+ F = e === void 0 || e;
294
302
  }
295
303
  function Xe(e) {
296
304
  let { cleanup: t } = e;
@@ -313,7 +321,7 @@ var Ze = 0, Qe = class {
313
321
  this.computed = e, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, this.__v_skip = !0, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
314
322
  }
315
323
  track(e) {
316
- if (!P || !Je || P === this.computed) return;
324
+ if (!P || !F || P === this.computed) return;
317
325
  let t = this.activeLink;
318
326
  if (t === void 0 || t.sub !== P) t = this.activeLink = new Qe(P, this), P.deps ? (t.prevDep = P.depsTail, P.depsTail.nextDep = t, P.depsTail = t) : P.deps = P.depsTail = t, et(t);
319
327
  else if (t.version === -1 && (t.version = this.version, t.nextDep)) {
@@ -348,7 +356,7 @@ function et(e) {
348
356
  }
349
357
  var tt = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ Symbol(process.env.NODE_ENV === "production" ? "" : "Object iterate"), rt = /* @__PURE__ */ Symbol(process.env.NODE_ENV === "production" ? "" : "Map keys iterate"), it = /* @__PURE__ */ Symbol(process.env.NODE_ENV === "production" ? "" : "Array iterate");
350
358
  function L(e, t, n) {
351
- if (Je && P) {
359
+ if (F && P) {
352
360
  let r = tt.get(e);
353
361
  r || tt.set(e, r = /* @__PURE__ */ new Map());
354
362
  let i = r.get(n);
@@ -535,9 +543,9 @@ function ht(e, t, n) {
535
543
  return (i === -1 || i === !1) && /* @__PURE__ */ Xt(n[0]) ? (n[0] = /* @__PURE__ */ z(n[0]), r[t](...n)) : i;
536
544
  }
537
545
  function gt(e, t, n = []) {
538
- F(), Be();
546
+ I(), Be();
539
547
  let r = (/* @__PURE__ */ z(e))[t].apply(e, n);
540
- return Ve(), I(), r;
548
+ return Ve(), Ye(), r;
541
549
  }
542
550
  var _t = /* @__PURE__ */ e("__proto__,__v_isRef,__isVue"), vt = new Set(/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(_));
543
551
  function yt(e) {
@@ -922,11 +930,11 @@ function xn(e, n, i = t) {
922
930
  process.env.NODE_ENV !== "production" && p(e);
923
931
  })) : h(e) ? _ = n ? f ? () => f(e, 2) : e : () => {
924
932
  if (v) {
925
- F();
933
+ I();
926
934
  try {
927
935
  v();
928
936
  } finally {
929
- I();
937
+ Ye();
930
938
  }
931
939
  }
932
940
  let t = yn;
@@ -993,7 +1001,7 @@ function Sn(e, t = Infinity, n) {
993
1001
  return e;
994
1002
  }
995
1003
  //#endregion
996
- //#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.39/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
1004
+ //#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.40/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
997
1005
  var Cn = [];
998
1006
  function wn(e) {
999
1007
  Cn.push(e);
@@ -1004,7 +1012,7 @@ function Tn() {
1004
1012
  var En = !1;
1005
1013
  function V(e, ...t) {
1006
1014
  if (En) return;
1007
- En = !0, F();
1015
+ En = !0, I();
1008
1016
  let n = Cn.length ? Cn[Cn.length - 1].component : null, r = n && n.appContext.config.warnHandler, i = Dn();
1009
1017
  if (r) Pn(r, n, 11, [
1010
1018
  e + t.map((e) => e.toString?.call(e) ?? JSON.stringify(e)).join(""),
@@ -1016,7 +1024,7 @@ function V(e, ...t) {
1016
1024
  let n = [`[Vue warn]: ${e}`, ...t];
1017
1025
  i.length && n.push("\n", ...On(i)), console.warn(...n);
1018
1026
  }
1019
- I(), En = !1;
1027
+ Ye(), En = !1;
1020
1028
  }
1021
1029
  function Dn() {
1022
1030
  let e = Cn[Cn.length - 1];
@@ -1128,11 +1136,11 @@ function In(e, n, r, i = !0) {
1128
1136
  t = t.parent;
1129
1137
  }
1130
1138
  if (o) {
1131
- F(), Pn(o, null, 10, [
1139
+ I(), Pn(o, null, 10, [
1132
1140
  e,
1133
1141
  i,
1134
1142
  a
1135
- ]), I();
1143
+ ]), Ye();
1136
1144
  return;
1137
1145
  }
1138
1146
  }
@@ -1337,13 +1345,14 @@ function Ar(e, t = W, n) {
1337
1345
  if (!t || e._n) return e;
1338
1346
  let r = (...n) => {
1339
1347
  r._d && Jo(-1);
1340
- let i = kr(t), a;
1348
+ let i = kr(t), a = Wo.length, o;
1341
1349
  try {
1342
- a = e(...n);
1350
+ o = e(...n);
1343
1351
  } finally {
1352
+ for (let e = Wo.length; e > a; e--) Ko();
1344
1353
  kr(i), r._d && Jo(1);
1345
1354
  }
1346
- return process.env.NODE_ENV !== "production" && br(t), a;
1355
+ return process.env.NODE_ENV !== "production" && br(t), o;
1347
1356
  };
1348
1357
  return r._n = !0, r._c = !0, r._d = !0, r;
1349
1358
  }
@@ -1375,12 +1384,12 @@ function Nr(e, t, n, r) {
1375
1384
  let s = i[o];
1376
1385
  a && (s.oldValue = a[o].value);
1377
1386
  let c = s.dir[r];
1378
- c && (F(), Fn(c, n, 8, [
1387
+ c && (I(), Fn(c, n, 8, [
1379
1388
  e.el,
1380
1389
  s,
1381
1390
  e,
1382
1391
  t
1383
- ]), I());
1392
+ ]), Ye());
1384
1393
  }
1385
1394
  }
1386
1395
  function Pr(e, t) {
@@ -1760,14 +1769,8 @@ function Ci(e, n, r, a, o = !1) {
1760
1769
  x(m, e.k) && (m.value = null), e.k && (_[e.k] = null);
1761
1770
  }
1762
1771
  }
1763
- if (h(p)) {
1764
- F();
1765
- try {
1766
- Pn(p, f, 12, [l, _]);
1767
- } finally {
1768
- I();
1769
- }
1770
- } else {
1772
+ if (h(p)) Pn(p, f, 12, [l, _]);
1773
+ else {
1771
1774
  let t = g(p), n = /* @__PURE__ */ B(p);
1772
1775
  if (t || n) {
1773
1776
  let i = () => {
@@ -1831,19 +1834,19 @@ function Oi(e) {
1831
1834
  name: "AsyncComponentWrapper",
1832
1835
  __asyncLoader: p,
1833
1836
  __asyncHydrate(e, t, n) {
1834
- let r = !1;
1835
- (t.bu ||= []).push(() => r = !0);
1836
- let i = () => {
1837
- if (r) {
1837
+ let r = e.isConnected, i = !1;
1838
+ (t.bu ||= []).push(() => i = !0);
1839
+ let o = () => {
1840
+ if (i) {
1838
1841
  process.env.NODE_ENV !== "production" && V(`Skipping lazy hydration for component '${Hs(u) || u.__file}': it was updated before lazy hydration performed.`);
1839
1842
  return;
1840
1843
  }
1841
- n();
1842
- }, o = a ? () => {
1843
- let n = a(i, (t) => Ei(e, t));
1844
+ !e.parentNode || r && !e.isConnected || n();
1845
+ }, s = a ? () => {
1846
+ let n = a(o, (t) => Ei(e, t));
1844
1847
  n && (t.bum ||= []).push(n);
1845
- } : i;
1846
- u ? o() : p().then(() => !t.isUnmounted && o());
1848
+ } : o;
1849
+ u ? s() : p().then(() => !t.isUnmounted && s());
1847
1850
  },
1848
1851
  get __asyncResolved() {
1849
1852
  return u;
@@ -1915,9 +1918,9 @@ function Pi(e, t, n, r) {
1915
1918
  function Fi(e, t, n = $, r = !1) {
1916
1919
  if (n) {
1917
1920
  let i = n[e] || (n[e] = []), a = t.__weh ||= (...r) => {
1918
- F();
1921
+ I();
1919
1922
  let i = Cs(n), a = Fn(t, n, e, r);
1920
- return i(), I(), a;
1923
+ return i(), Ye(), a;
1921
1924
  };
1922
1925
  return r ? i.unshift(a) : i.push(a), a;
1923
1926
  } else process.env.NODE_ENV !== "production" && V(`${ie(Nn[e].replace(/ hook$/, ""))} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`);
@@ -1979,15 +1982,26 @@ function $i(e, t, n, r) {
1979
1982
  else i = [];
1980
1983
  return n && (n[r] = i), i;
1981
1984
  }
1982
- function ea(e, t, n = {}, r, i) {
1985
+ function ea(e, t, n = {}, r, i, a) {
1983
1986
  if (W.ce || W.parent && Di(W.parent) && W.parent.ce) {
1984
- let e = Object.keys(n).length > 0;
1985
- return t !== "default" && (n.name = t), Go(), Zo(Y, null, [Q("slot", n, r && r())], e ? -2 : 64);
1987
+ let e = a != null && n.key == null ? s({}, n, { key: a }) : n, i = Object.keys(e).length > 0;
1988
+ return t !== "default" && (e.name = t), Go(), Zo(Y, null, [Q("slot", e, r && r())], i ? -2 : 64);
1989
+ }
1990
+ let o = e[t];
1991
+ process.env.NODE_ENV !== "production" && o && o.length > 1 && (V("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."), o = () => []), o && o._c && (o._d = !1);
1992
+ let c = Wo.length;
1993
+ Go();
1994
+ let l;
1995
+ try {
1996
+ let i = o && ta(o(n)), s = n.key || a || i && i.key;
1997
+ l = Zo(Y, { key: (s && !_(s) ? s : `_${t}`) + (!i && r ? "_fb" : "") }, i || (r ? r() : []), i && e._ === 1 ? 64 : -2);
1998
+ } catch (e) {
1999
+ for (let e = Wo.length; e > c; e--) Ko();
2000
+ throw e;
2001
+ } finally {
2002
+ o && o._c && (o._d = !0);
1986
2003
  }
1987
- let a = e[t];
1988
- process.env.NODE_ENV !== "production" && a && a.length > 1 && (V("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."), a = () => []), a && a._c && (a._d = !1), Go();
1989
- let o = a && ta(a(n)), s = n.key || o && o.key, c = Zo(Y, { key: (s && !_(s) ? s : `_${t}`) + (!o && r ? "_fb" : "") }, o || (r ? r() : []), o && e._ === 1 ? 64 : -2);
1990
- return !i && c.scopeId && (c.slotScopeIds = [c.scopeId + "-s"]), a && a._c && (a._d = !0), c;
2004
+ return !i && l.scopeId && (l.slotScopeIds = [l.scopeId + "-s"]), l;
1991
2005
  }
1992
2006
  function ta(e) {
1993
2007
  return e.some((e) => !Qo(e) || !(e.type === X || e.type === Y && !ta(e.children))) ? e : null;
@@ -2990,7 +3004,7 @@ function jo(e, i) {
2990
3004
  }, ue = (e, t, n) => {
2991
3005
  t.component = e;
2992
3006
  let r = e.vnode.props;
2993
- e.vnode = t, e.next = null, eo(e, t.props, r, n), Co(e, t.children, n), F(), Xn(e), I();
3007
+ e.vnode = t, e.next = null, eo(e, t.props, r, n), Co(e, t.children, n), I(), Xn(e), Ye();
2994
3008
  }, de = (e, t, n, r, i, a, o, s, c = !1) => {
2995
3009
  let l = e && e.children, u = e ? e.shapeFlag : 0, d = t.children, { patchFlag: f, shapeFlag: m } = t;
2996
3010
  if (f > 0) {
@@ -3098,7 +3112,7 @@ function jo(e, i) {
3098
3112
  else o(a, t, n);
3099
3113
  }, j = (e, t, n, r = !1, i = !1) => {
3100
3114
  let { type: a, props: o, ref: s, children: c, dynamicChildren: l, shapeFlag: u, patchFlag: d, dirs: f, cacheIndex: p, memo: m } = e;
3101
- if (d === -2 && (i = !1), s != null && (F(), Ci(s, null, n, e, !0), I()), p != null && (t.renderCache[p] = void 0), u & 256) {
3115
+ if (d === -2 && (i = !1), s != null && (I(), Ci(s, null, n, e, !0), Ye()), p != null && (t.renderCache[p] = void 0), u & 256) {
3102
3116
  t.ctx.deactivate(e);
3103
3117
  return;
3104
3118
  }
@@ -3516,9 +3530,9 @@ function As(e, t) {
3516
3530
  e.accessCache = /* @__PURE__ */ Object.create(null), e.proxy = new Proxy(e.ctx, oa), process.env.NODE_ENV !== "production" && ca(e);
3517
3531
  let { setup: r } = n;
3518
3532
  if (r) {
3519
- F();
3533
+ I();
3520
3534
  let i = e.setupContext = r.length > 1 ? Rs(e) : null, a = Cs(e), o = Pn(r, e, 0, [process.env.NODE_ENV === "production" ? e.props : /* @__PURE__ */ Kt(e.props), i]), s = y(o);
3521
- if (I(), a(), (s || e.sp) && !Di(e) && yi(e), s) {
3535
+ if (Ye(), a(), (s || e.sp) && !Di(e) && yi(e), s) {
3522
3536
  if (o.then(ws, ws), t) return o.then((n) => {
3523
3537
  js(e, n, t);
3524
3538
  }).catch((t) => {
@@ -3550,11 +3564,11 @@ function Fs(e, t, n) {
3550
3564
  }
3551
3565
  {
3552
3566
  let t = Cs(e);
3553
- F();
3567
+ I();
3554
3568
  try {
3555
3569
  ma(e);
3556
3570
  } finally {
3557
- I(), t();
3571
+ Ye(), t();
3558
3572
  }
3559
3573
  }
3560
3574
  process.env.NODE_ENV !== "production" && !i.render && e.render === r && !t && (!Ms && i.template ? V("Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias \"vue\" to \"vue/dist/vue.esm-bundler.js\".") : V("Component is missing template or render function: ", i));
@@ -3667,9 +3681,9 @@ function qs() {
3667
3681
  "VueInstance"
3668
3682
  ];
3669
3683
  if (/* @__PURE__ */ B(t)) {
3670
- F();
3684
+ I();
3671
3685
  let n = t.value;
3672
- return I(), [
3686
+ return Ye(), [
3673
3687
  "div",
3674
3688
  {},
3675
3689
  [
@@ -3795,10 +3809,10 @@ function qs() {
3795
3809
  }
3796
3810
  window.devtoolsFormatters ? window.devtoolsFormatters.push(a) : window.devtoolsFormatters = [a];
3797
3811
  }
3798
- var Js = "3.5.39", Ys = process.env.NODE_ENV === "production" ? r : V;
3812
+ var Js = "3.5.40", Ys = process.env.NODE_ENV === "production" ? r : V;
3799
3813
  process.env.NODE_ENV, process.env.NODE_ENV;
3800
3814
  //#endregion
3801
- //#region ../../node_modules/.pnpm/vue@3.5.39_typescript@6.0.3/node_modules/vue/dist/vue.runtime.esm-bundler.js
3815
+ //#region ../../node_modules/.pnpm/vue@3.5.40_typescript@6.0.3/node_modules/vue/dist/vue.runtime.esm-bundler.js
3802
3816
  function Xs() {
3803
3817
  qs();
3804
3818
  }
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-Dx-EjR9r.js";
1
+ import { t as e } from "./createLucideIcon-Bh9xOmlW.js";
2
2
  var t = e("x", [["path", {
3
3
  d: "M18 6 6 18",
4
4
  key: "1bl5f8"
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "name": "@templatical/editor",
3
3
  "description": "Vue 3 visual drag-and-drop email editor powered by Templatical",
4
- "version": "0.15.1",
4
+ "version": "0.16.1",
5
5
  "bugs": "https://github.com/templatical/sdk/issues",
6
6
  "devDependencies": {
7
7
  "@lucide/vue": "^1.24.0",
8
- "@tiptap/core": "^3.27.3",
9
- "@tiptap/extension-color": "^3.27.3",
10
- "@tiptap/extension-font-family": "^3.27.3",
11
- "@tiptap/extension-highlight": "^3.27.3",
12
- "@tiptap/extension-link": "^3.27.3",
13
- "@tiptap/extension-subscript": "^3.27.3",
14
- "@tiptap/extension-superscript": "^3.27.3",
15
- "@tiptap/extension-text-align": "^3.27.3",
16
- "@tiptap/extension-text-style": "^3.27.3",
17
- "@tiptap/extension-underline": "^3.27.3",
18
- "@tiptap/starter-kit": "^3.27.3",
19
- "@tiptap/suggestion": "^3.27.3",
20
- "@tiptap/vue-3": "^3.27.3",
21
- "@vitejs/plugin-vue": "^6.0.7",
8
+ "@tiptap/core": "^3.28.0",
9
+ "@tiptap/extension-color": "^3.28.0",
10
+ "@tiptap/extension-font-family": "^3.28.0",
11
+ "@tiptap/extension-highlight": "^3.28.0",
12
+ "@tiptap/extension-link": "^3.28.0",
13
+ "@tiptap/extension-subscript": "^3.28.0",
14
+ "@tiptap/extension-superscript": "^3.28.0",
15
+ "@tiptap/extension-text-align": "^3.28.0",
16
+ "@tiptap/extension-text-style": "^3.28.0",
17
+ "@tiptap/extension-underline": "^3.28.0",
18
+ "@tiptap/starter-kit": "^3.28.0",
19
+ "@tiptap/suggestion": "^3.28.0",
20
+ "@tiptap/vue-3": "^3.28.0",
21
+ "@vitejs/plugin-vue": "^6.0.8",
22
22
  "@vue/test-utils": "^2.4.11",
23
23
  "@vueuse/core": "^14.3.0",
24
24
  "es-module-lexer": "^2.3.1",
@@ -27,14 +27,14 @@
27
27
  "tailwindcss": "^4.3.2",
28
28
  "typescript": "^6.0.3",
29
29
  "vanilla-colorful": "^0.7.2",
30
- "vite": "^8.1.4",
30
+ "vite": "^8.1.5",
31
31
  "vitest": "^4.1.10",
32
- "vue": "^3.5.39",
32
+ "vue": "^3.5.40",
33
33
  "vue-draggable-plus": "^0.6.1",
34
34
  "vue-tsc": "^3.3.7",
35
- "@templatical/core": "0.15.1",
36
- "@templatical/quality": "0.15.1",
37
- "@templatical/types": "0.15.1"
35
+ "@templatical/core": "0.16.1",
36
+ "@templatical/quality": "0.16.1",
37
+ "@templatical/types": "0.16.1"
38
38
  },
39
39
  "exports": {
40
40
  ".": {
@@ -62,9 +62,9 @@
62
62
  "license": "SEE LICENSE IN LICENSE",
63
63
  "module": "./dist/templatical-editor.js",
64
64
  "peerDependencies": {
65
- "@templatical/media-library": "0.15.1",
66
- "@templatical/quality": "0.15.1",
67
- "@templatical/renderer": "0.15.1"
65
+ "@templatical/media-library": "0.16.1",
66
+ "@templatical/quality": "0.16.1",
67
+ "@templatical/renderer": "0.16.1"
68
68
  },
69
69
  "peerDependenciesMeta": {
70
70
  "@templatical/renderer": {