@aswin.dev/editor 0.7.1 → 0.7.2

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 (144) hide show
  1. package/LICENSE +56 -0
  2. package/dist/{AccessibilityPanel-COL6Wm7p.js → AccessibilityPanel-EmQ19wiS.js} +1 -1
  3. package/dist/{AiChatSidebar-DWGPVtvC.js → AiChatSidebar-DeB0w_32.js} +38 -52
  4. package/dist/{AiFeatureMenu-duUFSfDf.js → AiFeatureMenu-DoLD5Cde.js} +5 -5
  5. package/dist/{BlockA11yBadge-Qs6HtXid.js → BlockA11yBadge-DkNbDvJA.js} +1 -1
  6. package/dist/{CloudEditor-CFldoCOb.js → CloudEditor-zo9PjjvY.js} +255 -248
  7. package/dist/{CollaboratorBar-Bw-lbt61.js → CollaboratorBar-BsXMY-8e.js} +3 -3
  8. package/dist/{CommentsSidebar-BaD5F53-.js → CommentsSidebar-DIWIa4rS.js} +6 -6
  9. package/dist/{CountdownToolbar-Dg4F8MTk.js → CountdownToolbar-BuS8p5ju.js} +2 -2
  10. package/dist/{DesignReferenceSidebar-BSH7uNP_.js → DesignReferenceSidebar-RDlnhL-6.js} +5 -5
  11. package/dist/{LoadingTrack-Ba2pfF57.js → LoadingTrack-BJ59h9ok.js} +1 -1
  12. package/dist/{ModuleBrowserModal-6phxZSKI.js → ModuleBrowserModal-b7HbpByz.js} +7 -7
  13. package/dist/{ModulePreviewCanvas-BW8L3eQX.js → ModulePreviewCanvas-D__YlOLS.js} +1 -1
  14. package/dist/{NumberWithSuffix-BpUzQOJt.js → NumberWithSuffix-Ca3vNY84.js} +1 -1
  15. package/dist/{ParagraphEditor-DNSzAB-I.js → ParagraphEditor-B1aYPO-6.js} +18 -18
  16. package/dist/{RichTextEditorContent-CrqPQdnk.js → RichTextEditorContent-BmEVMrkJ.js} +1 -1
  17. package/dist/{SaveModuleDialog-zMQTpez7.js → SaveModuleDialog-ClovqI6h.js} +3 -3
  18. package/dist/{SnapshotHistory-Do-A5rYU.js → SnapshotHistory-DoqtH0cw.js} +3 -3
  19. package/dist/{TemplateScoringPanel-CS7o62zS.js → TemplateScoringPanel-DQv2ZAiL.js} +7 -7
  20. package/dist/{TestEmailModal-DGj_9V1u.js → TestEmailModal-iIeYJYsj.js} +3 -3
  21. package/dist/{TitleEditor-C7IDnAoS.js → TitleEditor-CTDIwRF_.js} +7 -7
  22. package/dist/{TplModal-BAsVzcTb.js → TplModal-CBq1J1pG.js} +1 -1
  23. package/dist/{blockTypeIcons-C6LDKvmd.js → blockTypeIcons-QkC6f5UE.js} +1 -1
  24. package/dist/bundle-stats.json +7 -7
  25. package/dist/cdn/chunks/AccessibilityPanel-BeU8nz7A.js +97 -0
  26. package/dist/cdn/chunks/AccessibilityPanel-BeU8nz7A.js.map +1 -0
  27. package/dist/cdn/chunks/AiFeatureMenu-B2mhscyP.js +59 -0
  28. package/dist/cdn/chunks/AiFeatureMenu-B2mhscyP.js.map +1 -0
  29. package/dist/cdn/chunks/BlockA11yBadge-C4g77gF0.js +33 -0
  30. package/dist/cdn/chunks/BlockA11yBadge-C4g77gF0.js.map +1 -0
  31. package/dist/cdn/chunks/CloudEditor-Btyr0b0_.js +1183 -0
  32. package/dist/cdn/chunks/CloudEditor-Btyr0b0_.js.map +1 -0
  33. package/dist/cdn/chunks/CollaboratorBar-YBiIjiRh.js +51 -0
  34. package/dist/cdn/chunks/CollaboratorBar-YBiIjiRh.js.map +1 -0
  35. package/dist/cdn/chunks/CountdownBlock-B06UZoWe.js +93 -0
  36. package/dist/cdn/chunks/CountdownBlock-B06UZoWe.js.map +1 -0
  37. package/dist/cdn/chunks/CountdownToolbar-C9XZr33O.js +212 -0
  38. package/dist/cdn/chunks/CountdownToolbar-C9XZr33O.js.map +1 -0
  39. package/dist/cdn/chunks/ModuleBrowserModal-C2CDWKW6.js +195 -0
  40. package/dist/cdn/chunks/ModuleBrowserModal-C2CDWKW6.js.map +1 -0
  41. package/dist/cdn/chunks/ModulePreviewCanvas-Drt8Evai.js +109 -0
  42. package/dist/cdn/chunks/ModulePreviewCanvas-Drt8Evai.js.map +1 -0
  43. package/dist/cdn/chunks/NumberWithSuffix-Ty1bp9vB.js +423 -0
  44. package/dist/cdn/chunks/NumberWithSuffix-Ty1bp9vB.js.map +1 -0
  45. package/dist/cdn/chunks/ParagraphEditor-BA1WbHI7.js +544 -0
  46. package/dist/cdn/chunks/ParagraphEditor-BA1WbHI7.js.map +1 -0
  47. package/dist/cdn/chunks/RichTextEditorContent-BtWCA_Oc.js +106 -0
  48. package/dist/cdn/chunks/RichTextEditorContent-BtWCA_Oc.js.map +1 -0
  49. package/dist/cdn/chunks/SaveModuleDialog-AwL0tkCV.js +119 -0
  50. package/dist/cdn/chunks/SaveModuleDialog-AwL0tkCV.js.map +1 -0
  51. package/dist/cdn/chunks/TitleEditor-DbSyeixS.js +171 -0
  52. package/dist/cdn/chunks/TitleEditor-DbSyeixS.js.map +1 -0
  53. package/dist/cdn/chunks/blockTypeIcons-pQIkxJzc.js +23 -0
  54. package/dist/cdn/chunks/blockTypeIcons-pQIkxJzc.js.map +1 -0
  55. package/dist/cdn/chunks/de-Ce-LbJ2J.js +89 -0
  56. package/dist/cdn/chunks/de-Ce-LbJ2J.js.map +1 -0
  57. package/dist/cdn/chunks/de-RQrZR56a.js +209 -0
  58. package/dist/cdn/chunks/de-RQrZR56a.js.map +1 -0
  59. package/dist/cdn/chunks/de-_tooy3Q8.js +771 -0
  60. package/dist/cdn/chunks/de-_tooy3Q8.js.map +1 -0
  61. package/dist/cdn/chunks/draggable-C-1_gch3.js +11572 -0
  62. package/dist/cdn/chunks/draggable-C-1_gch3.js.map +1 -0
  63. package/dist/cdn/chunks/emojiData-EMFlj6FJ.js +19 -0
  64. package/dist/cdn/chunks/emojiData-EMFlj6FJ.js.map +1 -0
  65. package/dist/cdn/chunks/en-Bl1ecfRF.js +209 -0
  66. package/dist/cdn/chunks/en-Bl1ecfRF.js.map +1 -0
  67. package/dist/cdn/chunks/en-CNqLoIm9.js +771 -0
  68. package/dist/cdn/chunks/en-CNqLoIm9.js.map +1 -0
  69. package/dist/cdn/chunks/en-DiCWK5fG.js +89 -0
  70. package/dist/cdn/chunks/en-DiCWK5fG.js.map +1 -0
  71. package/dist/cdn/chunks/extensions-BVKQw_sp.js +598 -0
  72. package/dist/cdn/chunks/extensions-BVKQw_sp.js.map +1 -0
  73. package/dist/cdn/chunks/features-DIBEo4xl.js +7913 -0
  74. package/dist/cdn/chunks/features-DIBEo4xl.js.map +1 -0
  75. package/dist/cdn/chunks/icons-C1Gg-ov-.js +992 -0
  76. package/dist/cdn/chunks/icons-C1Gg-ov-.js.map +1 -0
  77. package/dist/cdn/chunks/liquid.browser-lQbkge2E.js +3279 -0
  78. package/dist/cdn/chunks/liquid.browser-lQbkge2E.js.map +1 -0
  79. package/dist/cdn/chunks/media-library-BTF_Ko70.js +6014 -0
  80. package/dist/cdn/chunks/media-library-BTF_Ko70.js.map +1 -0
  81. package/dist/cdn/chunks/pusher-CDbNlZBE.js +2508 -0
  82. package/dist/cdn/chunks/pusher-CDbNlZBE.js.map +1 -0
  83. package/dist/cdn/chunks/quality-C5AmotmP.js +1456 -0
  84. package/dist/cdn/chunks/quality-C5AmotmP.js.map +1 -0
  85. package/dist/cdn/chunks/readableTextColor-DhoK4XiZ.js +32 -0
  86. package/dist/cdn/chunks/readableTextColor-DhoK4XiZ.js.map +1 -0
  87. package/dist/cdn/chunks/renderer-D0L44Vlp.js +642 -0
  88. package/dist/cdn/chunks/renderer-D0L44Vlp.js.map +1 -0
  89. package/dist/cdn/chunks/rolldown-runtime-BNuo_Jkg.js +20 -0
  90. package/dist/cdn/chunks/src-RKexlYjA.js +497 -0
  91. package/dist/cdn/chunks/src-RKexlYjA.js.map +1 -0
  92. package/dist/cdn/chunks/styleConstants-PgmvNBzQ.js +57 -0
  93. package/dist/cdn/chunks/styleConstants-PgmvNBzQ.js.map +1 -0
  94. package/dist/cdn/chunks/styles-CQR6ed13.js +4976 -0
  95. package/dist/cdn/chunks/styles-CQR6ed13.js.map +1 -0
  96. package/dist/cdn/chunks/tiptap-CDzAbF2j.js +14654 -0
  97. package/dist/cdn/chunks/tiptap-CDzAbF2j.js.map +1 -0
  98. package/dist/cdn/editor.css +2 -0
  99. package/dist/cdn/editor.js +338 -0
  100. package/dist/cdn/editor.js.map +1 -0
  101. package/dist/{cloud-6ZmAvF0j.js → cloud-DJG4tb4_.js} +1 -1
  102. package/dist/{de-DWcgp-7T.js → de-2LEvILeZ.js} +40 -0
  103. package/dist/{dist-DtiDUrX-.js → dist-BHAeXaUY.js} +1 -1
  104. package/dist/{dist-BUzw1buG.js → dist-BSJvAvH3.js} +1 -1
  105. package/dist/{dist-COSzWQUs.js → dist-BeFnymxK.js} +1 -1
  106. package/dist/dist-Bmir0gYb.js +1167 -0
  107. package/dist/{dist-C3T2AKtB.js → dist-BvPgo-UK.js} +1 -1
  108. package/dist/{dist-C9ckKEZL.js → dist-CPVBKMmd.js} +1 -1
  109. package/dist/{dist-BadNx4qo.js → dist-Df4ie7vZ.js} +1 -1
  110. package/dist/{dist-CBItRG-Z.js → dist-DxOoemkW.js} +1 -1
  111. package/dist/{dist-Dzt5foyL.js → dist-HEQ52gTJ.js} +1 -1
  112. package/dist/{dist-BZyY-SS4.js → dist-b-XUqAoF.js} +1 -1
  113. package/dist/{dist-Bz3M4RXG.js → dist-kZfaVUpW.js} +3 -3
  114. package/dist/{dist-BesOh2mk.js → dist-wfAedlzi.js} +1 -1
  115. package/dist/{en-Cxd4fhNm.js → en-D2RU2Poj.js} +40 -0
  116. package/dist/{extensions-D__hOlV1.js → extensions-BQ1xXx3d.js} +21 -21
  117. package/dist/index.d.ts +17 -6
  118. package/dist/style.css +1 -1
  119. package/dist/{styles-B4tjX5SP.js → styles-CavWjvol.js} +1573 -1310
  120. package/dist/templatical-editor.js +161 -132
  121. package/dist/undo-2-Cg8I7obC.js +16 -0
  122. package/dist/{useEditorCore-wslttMH-.js → useEditorCore-BGnzcT7p.js} +37 -37
  123. package/dist/{useMergeTag-DX0XG5V9.js → useMergeTag-CfuZq2fF.js} +3 -3
  124. package/package.json +12 -12
  125. package/dist/dist-C04s_fLA.js +0 -563
  126. /package/dist/{CountdownBlock-DaYGxKqo.js → CountdownBlock-BCi7-DAM.js} +0 -0
  127. /package/dist/{_plugin-vue_export-helper-BVAJ4lgT.js → _plugin-vue_export-helper-Bwh4ceeO.js} +0 -0
  128. /package/dist/{de-GOtR9DwW.js → de-D2npYjrZ.js} +0 -0
  129. /package/dist/{dist-DXa1uAMh.js → dist-DvHLtWVP.js} +0 -0
  130. /package/dist/{emojiData-DrBuvEoP.js → emojiData-DvQBBzmO.js} +0 -0
  131. /package/dist/{en-dFFQVzNn.js → en-ib-4h3_o.js} +0 -0
  132. /package/dist/{formatRelativeTime-BhhO8yCl.js → formatRelativeTime-CFDZnEIs.js} +0 -0
  133. /package/dist/{liquid.browser-BvCyLQII.js → liquid.browser-7Rv0QDiO.js} +0 -0
  134. /package/dist/{readableTextColor-DVuzNX1y.js → readableTextColor-C_9OpzBw.js} +0 -0
  135. /package/dist/{scan-line-CzfFJO1o.js → scan-line-DlghmhNf.js} +0 -0
  136. /package/dist/{send-D2eSo4GH.js → send-DDdhIRj8.js} +0 -0
  137. /package/dist/{shield-check-jkpgcC0-.js → shield-check-OSQ-JVTX.js} +0 -0
  138. /package/dist/{sparkles-Chm5CZfb.js → sparkles-BN4a-CoF.js} +0 -0
  139. /package/dist/{styleConstants-34eUKPOZ.js → styleConstants-wWRbcuEK.js} +0 -0
  140. /package/dist/{text-align-start-CzBnJsW8.js → text-align-start-D1weisjS.js} +0 -0
  141. /package/dist/{trash-2-CtK2apEH.js → trash-2-CMWvQ5KX.js} +0 -0
  142. /package/dist/{triangle-alert-KpDVNbpn.js → triangle-alert-DyidRNX_.js} +0 -0
  143. /package/dist/{useCloudI18n-DOKSZql1.js → useCloudI18n-BTTNBk5i.js} +0 -0
  144. /package/dist/{x-BkaOMosX.js → x-CgIhNcT9.js} +0 -0
@@ -1,22 +1,22 @@
1
1
  import { a as e, i as t, n, r, t as i } from "./rolldown-runtime-BZGGJVDF.js";
2
2
  import { $ as a, A as o, At as s, C as c, Ct as l, D as u, Dt as d, Et as f, F as p, Ft as m, G as h, I as g, It as _, J as v, Mt as y, N as b, Nt as x, Ot as S, P as C, Pt as w, Q as T, R as E, S as D, St as O, Tt as ee, U as te, V as k, W as ne, Y as re, Z as ie, _ as ae, _t as oe, a as se, b as ce, bt as le, ct as ue, d as A, dt as de, et as j, f as fe, ft as pe, g as me, gt as he, h as M, ht as ge, j as _e, jt as N, k as ve, kt as ye, l as be, lt as xe, m as P, mt as Se, nt as Ce, o as we, ot as Te, pt as Ee, q as De, r as Oe, st as F, u as ke, ut as Ae, v as I, vt as je, wt as Me, x as L, xt as Ne, yt as Pe } from "./vue.runtime.esm-bundler-CjauPXjj.js";
3
- import { C as Fe, E as Ie, F as Le, I as Re, N as ze, P as Be, S as Ve, T as He, _ as Ue, b as We, c as Ge, d as Ke, g as qe, h as Je, k as Ye, l as Xe, m as Ze, p as Qe, s as $e, t as et, u as tt, v as nt, w as rt, x as it, y as at } from "./dist-C04s_fLA.js";
3
+ import { A as Fe, C as Ie, D as Le, E as Re, F as ze, L as Be, R as Ve, S as He, T as Ue, _ as We, b as Ge, c as Ke, d as qe, g as Je, h as Ye, l as Xe, p as Ze, s as Qe, t as $e, u as et, v as tt, w as nt, x as rt, y as it, z as at } from "./dist-Bmir0gYb.js";
4
4
  import { d as ot, i as st, l as ct, n as lt, r as ut, s as dt, u as ft } from "./dist-CivF9P8b.js";
5
5
  import { A as pt, C as mt, D as ht, O as gt, S as _t, _ as vt, a as yt, b as bt, c as xt, d as St, f as Ct, g as wt, h as Tt, k as Et, m as Dt, o as Ot, p as kt, r as At, s as jt, t as Mt, v as Nt, x as Pt, y as Ft } from "./keys-CvX8D-8C.js";
6
6
  import { t as It } from "./useI18n-C2xQZ6K9.js";
7
7
  import { t as Lt } from "./createLucideIcon-ClREiSx3.js";
8
8
  import { t as Rt } from "./message-circle-B39qAHxs.js";
9
- import { t as zt } from "./trash-2-CtK2apEH.js";
10
- import { t as Bt } from "./triangle-alert-KpDVNbpn.js";
11
- import { t as Vt } from "./LoadingTrack-Ba2pfF57.js";
12
- import { t as Ht } from "./_plugin-vue_export-helper-BVAJ4lgT.js";
13
- import "./useCloudI18n-DOKSZql1.js";
14
- import { t as Ut } from "./useMergeTag-DX0XG5V9.js";
9
+ import { t as zt } from "./trash-2-CMWvQ5KX.js";
10
+ import { t as Bt } from "./triangle-alert-DyidRNX_.js";
11
+ import { t as Vt } from "./LoadingTrack-BJ59h9ok.js";
12
+ import { t as Ht } from "./_plugin-vue_export-helper-Bwh4ceeO.js";
13
+ import "./useCloudI18n-BTTNBk5i.js";
14
+ import { t as Ut } from "./useMergeTag-CfuZq2fF.js";
15
15
  //#region ../core/dist/index.js
16
16
  v();
17
17
  function Wt(e) {
18
18
  let t = T({
19
- content: ze(e.content ?? Qe(e.defaultFontFamily, e.templateDefaults)),
19
+ content: ze(e.content ?? Ze(e.defaultFontFamily, e.templateDefaults)),
20
20
  selectedBlockId: null,
21
21
  viewport: "desktop",
22
22
  darkMode: !1,
@@ -270,14 +270,14 @@ function Jt(e) {
270
270
  function Yt(e) {
271
271
  let { addBlock: t, removeBlock: n, updateBlock: r, selectBlock: i } = e;
272
272
  function a(n, r, a) {
273
- let o = Ge(n, e.blockDefaults);
273
+ let o = Ke(n, e.blockDefaults);
274
274
  return t(o, r, a), i(o.id), o;
275
275
  }
276
276
  function o(e, n, r) {
277
277
  let a = JSON.parse(JSON.stringify(e));
278
- return a.id = Ie(), a.type === "section" && (a.children = a.children.map((e) => e.map((e) => {
278
+ return a.id = Le(), a.type === "section" && (a.children = a.children.map((e) => e.map((e) => {
279
279
  let t = JSON.parse(JSON.stringify(e));
280
- return t.id = Ie(), t;
280
+ return t.id = Le(), t;
281
281
  }))), t(a, n, r), i(a.id), a;
282
282
  }
283
283
  function s(e) {
@@ -610,7 +610,7 @@ function dn() {
610
610
  function n(t, n) {
611
611
  let r = `custom:${t.type}`, i = {
612
612
  component: n,
613
- createBlock: () => Ke(t),
613
+ createBlock: () => qe(t),
614
614
  sidebarItem: {
615
615
  type: r,
616
616
  label: t.name,
@@ -648,7 +648,7 @@ function dn() {
648
648
  let t = o(e.customType);
649
649
  if (!t) return s("Block definition not found");
650
650
  try {
651
- let { Liquid: n } = await import("./liquid.browser-BvCyLQII.js");
651
+ let { Liquid: n } = await import("./liquid.browser-7Rv0QDiO.js");
652
652
  return await new n({
653
653
  strictVariables: !1,
654
654
  strictFilters: !1
@@ -677,22 +677,22 @@ var fn = [
677
677
  {
678
678
  type: "section",
679
679
  label: "Section",
680
- createBlock: We
680
+ createBlock: rt
681
681
  },
682
682
  {
683
683
  type: "title",
684
684
  label: "Title",
685
- createBlock: rt
685
+ createBlock: Ue
686
686
  },
687
687
  {
688
688
  type: "paragraph",
689
689
  label: "Paragraph",
690
- createBlock: at
690
+ createBlock: Ge
691
691
  },
692
692
  {
693
693
  type: "image",
694
694
  label: "Image",
695
- createBlock: qe
695
+ createBlock: We
696
696
  },
697
697
  {
698
698
  type: "button",
@@ -702,37 +702,37 @@ var fn = [
702
702
  {
703
703
  type: "input",
704
704
  label: "Input",
705
- createBlock: Ue
705
+ createBlock: tt
706
706
  },
707
707
  {
708
708
  type: "divider",
709
709
  label: "Divider",
710
- createBlock: Ze
710
+ createBlock: Ye
711
711
  },
712
712
  {
713
713
  type: "video",
714
714
  label: "Video",
715
- createBlock: He
715
+ createBlock: Re
716
716
  },
717
717
  {
718
718
  type: "social",
719
719
  label: "Social",
720
- createBlock: it
720
+ createBlock: He
721
721
  },
722
722
  {
723
723
  type: "menu",
724
724
  label: "Menu",
725
- createBlock: nt
725
+ createBlock: it
726
726
  },
727
727
  {
728
728
  type: "table",
729
729
  label: "Table",
730
- createBlock: Fe
730
+ createBlock: nt
731
731
  },
732
732
  {
733
733
  type: "spacer",
734
734
  label: "Spacer",
735
- createBlock: Ve
735
+ createBlock: Ie
736
736
  },
737
737
  {
738
738
  type: "html",
@@ -742,7 +742,7 @@ var fn = [
742
742
  {
743
743
  type: "countdown",
744
744
  label: "Countdown",
745
- createBlock: tt
745
+ createBlock: et
746
746
  }
747
747
  ];
748
748
  function pn(e, t) {
@@ -1103,7 +1103,7 @@ function Ln() {
1103
1103
  r = !0;
1104
1104
  }), k(e, async (e) => {
1105
1105
  if (e && n.value.length === 0) {
1106
- let { emojiCategories: e } = await import("./emojiData-DrBuvEoP.js");
1106
+ let { emojiCategories: e } = await import("./emojiData-DvQBBzmO.js");
1107
1107
  if (r) return;
1108
1108
  n.value = e;
1109
1109
  }
@@ -1330,7 +1330,7 @@ function Un(e) {
1330
1330
  //#endregion
1331
1331
  //#region src/composables/useRichTextEditor.ts
1332
1332
  function Wn(e) {
1333
- let t = u(Dt, null), { mergeTags: n, canRequestMergeTag: r, isRequesting: i, requestMergeTag: a, syntax: s, autocomplete: c } = Ut(), l = u(gt, null), d = (re(l) ? l.value : l)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", f = Ye(s), p = Ce(null), { showLinkDialog: m, linkUrl: h, linkDialogRef: g, openLinkDialog: _, insertLink: v, removeLink: y, closeLinkDialog: b, handleLinkKeydown: x } = Un(p), { start: S, stop: C } = ct(() => p.value?.commands.focus("end"), 0, { immediate: !1 }), w = Ce(null), T = j(!0), E = j(null), D = !1;
1333
+ let t = u(Dt, null), { mergeTags: n, canRequestMergeTag: r, isRequesting: i, requestMergeTag: a, syntax: s, autocomplete: c } = Ut(), l = u(gt, null), d = (re(l) ? l.value : l)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", f = Fe(s), p = Ce(null), { showLinkDialog: m, linkUrl: h, linkDialogRef: g, openLinkDialog: _, insertLink: v, removeLink: y, closeLinkDialog: b, handleLinkKeydown: x } = Un(p), { start: S, stop: C } = ct(() => p.value?.commands.focus("end"), 0, { immediate: !1 }), w = Ce(null), T = j(!0), E = j(null), D = !1;
1334
1334
  async function O() {
1335
1335
  E.value = null, T.value = !0;
1336
1336
  try {
@@ -1539,7 +1539,7 @@ var Gn = { class: "tpl:w-full" }, Kn = {
1539
1539
  display: "block",
1540
1540
  margin: n.block.align === "center" ? "0 auto" : void 0,
1541
1541
  marginLeft: n.block.align === "right" ? "auto" : void 0
1542
- })), f = P(() => $e(n.block.src, a));
1542
+ })), f = P(() => Qe(n.block.src, a));
1543
1543
  return (t, n) => (b(), I("div", {
1544
1544
  class: "tpl:w-full",
1545
1545
  style: N(l.value)
@@ -1712,7 +1712,7 @@ var Gn = { class: "tpl:w-full" }, Kn = {
1712
1712
  //#endregion
1713
1713
  //#region src/composables/useEditableTextBlock.ts
1714
1714
  function Er(e) {
1715
- let t = u(Ft, []), { syntax: n } = Ut(), r = P(() => Be(Le(e(), t), n)), i = j(!1), a = j(null), { top: o, left: s } = lt(a), c = P(() => ({
1715
+ let t = u(Ft, []), { syntax: n } = Ut(), r = P(() => Be(Ve(e(), t), n)), i = j(!1), a = j(null), { top: o, left: s } = lt(a), c = P(() => ({
1716
1716
  top: o.value - 8,
1717
1717
  left: s.value
1718
1718
  }));
@@ -1740,7 +1740,7 @@ var Dr = ["innerHTML"], Or = /* @__PURE__ */ c({
1740
1740
  viewport: {}
1741
1741
  },
1742
1742
  setup(e) {
1743
- let t = e, n = D(() => import("./ParagraphEditor-DNSzAB-I.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = Er(() => t.block.content);
1743
+ let t = e, n = D(() => import("./ParagraphEditor-B1aYPO-6.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = Er(() => t.block.content);
1744
1744
  return (t, l) => (b(), I("div", {
1745
1745
  ref_key: "blockRef",
1746
1746
  ref: i,
@@ -1804,7 +1804,7 @@ var jr = ["data-block-id", "data-block-type"], Mr = ["aria-label"], Nr = [
1804
1804
  },
1805
1805
  emits: ["select"],
1806
1806
  setup(e, { emit: t }) {
1807
- let n = D(() => import("./BlockA11yBadge-Qs6HtXid.js")), r = e, i = t, { t: a, format: o } = It(), c = u(Nt, null), l = j(null), d = P(() => c?.liftedBlockId.value === r.block.id), f = P(() => d.value ? o(a.blockActions.dragLifted, { block: r.block.type }) : a.blockActions.drag);
1807
+ let n = D(() => import("./BlockA11yBadge-DkNbDvJA.js")), r = e, i = t, { t: a, format: o } = It(), c = u(Nt, null), l = j(null), d = P(() => c?.liftedBlockId.value === r.block.id), f = P(() => d.value ? o(a.blockActions.dragLifted, { block: r.block.type }) : a.blockActions.drag);
1808
1808
  async function p() {
1809
1809
  await ve(), l.value?.focus();
1810
1810
  }
@@ -1939,9 +1939,9 @@ var jr = ["data-block-id", "data-block-type"], Mr = ["aria-label"], Nr = [
1939
1939
  viewport: {}
1940
1940
  },
1941
1941
  setup(e) {
1942
- let t = e, n = D(() => import("./TitleEditor-C7IDnAoS.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = Er(() => t.block.content), l = P(() => {
1942
+ let t = e, n = D(() => import("./TitleEditor-CTDIwRF_.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = Er(() => t.block.content), l = P(() => {
1943
1943
  let e = {
1944
- fontSize: `${et[t.block.level]}px`,
1944
+ fontSize: `${$e[t.block.level]}px`,
1945
1945
  color: t.block.color,
1946
1946
  textAlign: t.block.textAlign
1947
1947
  };
@@ -9369,13 +9369,13 @@ var Qf = ["src", "alt"], $f = {
9369
9369
  viewport: {}
9370
9370
  },
9371
9371
  setup(e) {
9372
- let t = e, { t: n } = It(), { syntax: r } = Ut(), i = P(() => $e(t.block.url, r) || $e(t.block.thumbnailUrl, r)), a = P(() => i.value ? null : Zf(t.block.url, t.block.thumbnailUrl)), o = P(() => ({ textAlign: t.block.align })), s = P(() => ({
9372
+ let t = e, { t: n } = It(), { syntax: r } = Ut(), i = P(() => Qe(t.block.url, r) || Qe(t.block.thumbnailUrl, r)), a = P(() => i.value ? null : Zf(t.block.url, t.block.thumbnailUrl)), o = P(() => ({ textAlign: t.block.align })), s = P(() => ({
9373
9373
  maxWidth: "100%",
9374
9374
  width: t.block.width === "full" ? "100%" : `${t.block.width}px`,
9375
9375
  display: "block",
9376
9376
  margin: t.block.align === "center" ? "0 auto" : void 0,
9377
9377
  marginLeft: t.block.align === "right" ? "auto" : void 0
9378
- })), c = P(() => $e(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
9378
+ })), c = P(() => Qe(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
9379
9379
  return (t, r) => (b(), I("div", {
9380
9380
  class: "tpl:w-full",
9381
9381
  style: N(o.value)
@@ -9436,7 +9436,7 @@ var Qf = ["src", "alt"], $f = {
9436
9436
  table: Jf,
9437
9437
  spacer: Hf,
9438
9438
  html: or,
9439
- countdown: D(() => import("./CountdownBlock-DaYGxKqo.js").then((e) => e.n))
9439
+ countdown: D(() => import("./CountdownBlock-BCi7-DAM.js").then((e) => e.n))
9440
9440
  };
9441
9441
  function op(e) {
9442
9442
  let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: o } = It(r);
@@ -9484,7 +9484,7 @@ function op(e) {
9484
9484
  });
9485
9485
  }
9486
9486
  ut(document, "keydown", v), C(gt, r), C(Dt, t), C(Tt, en(n.editorType)), C(vt, u), C(yt, d), C(St, f), C(wt, i), C(ht, l), C(Et, s), C(Ot, n.blockDefaults), C(jt, g), C(Ct, n.customBlocks ?? []);
9487
- let y = Re(n.mergeTags?.syntax);
9487
+ let y = at(n.mergeTags?.syntax);
9488
9488
  C(Ft, n.mergeTags?.tags ?? []), C(Pt, y), C(mt, n.mergeTags?.onRequest ?? null), C(bt, n.mergeTags?.autocomplete !== !1), C(_t, n.onRequestMedia ?? null), C(kt, n.displayConditions?.conditions ?? []), C(At, n.displayConditions?.allowCustom ?? !1), C(xt, e.capabilities ?? {}), C(Nt, h);
9489
9489
  let b = n.accessibility?.disabled === !0 ? null : tn({
9490
9490
  content: t.content,
@@ -1,14 +1,14 @@
1
1
  import { D as e, et as t } from "./vue.runtime.esm-bundler-CjauPXjj.js";
2
- import { M as n, O as r, i } from "./dist-C04s_fLA.js";
2
+ import { N as n, i as r, k as i } from "./dist-Bmir0gYb.js";
3
3
  import { C as a, b as o, x as s, y as c } from "./keys-CvX8D-8C.js";
4
4
  //#region src/composables/useMergeTag.ts
5
5
  function l() {
6
- let l = e(c, []), u = e(s, i.liquid), d = e(a, null), f = e(o, !0), p = t(!1);
6
+ let l = e(c, []), u = e(s, r.liquid), d = e(a, null), f = e(o, !0), p = t(!1);
7
7
  function m(e) {
8
8
  return n(e, u);
9
9
  }
10
10
  function h(e) {
11
- return r(e, l);
11
+ return i(e, l);
12
12
  }
13
13
  async function g() {
14
14
  if (!d) return null;
package/package.json CHANGED
@@ -1,13 +1,10 @@
1
1
  {
2
2
  "name": "@aswin.dev/editor",
3
3
  "description": "Vue 3 visual drag-and-drop email editor powered by Templatical",
4
- "version": "0.7.1",
4
+ "version": "0.7.2",
5
5
  "bugs": "https://github.com/templatical/sdk/issues",
6
6
  "devDependencies": {
7
7
  "@lucide/vue": "^1.11.0",
8
- "@aswin.dev/core": "workspace:*",
9
- "@aswin.dev/quality": "workspace:*",
10
- "@aswin.dev/types": "workspace:*",
11
8
  "@tiptap/core": "^3.22.4",
12
9
  "@tiptap/extension-color": "^3.22.4",
13
10
  "@tiptap/extension-font-family": "^3.22.4",
@@ -35,7 +32,10 @@
35
32
  "vitest": "^4.1.5",
36
33
  "vue": "^3.5.33",
37
34
  "vue-tsc": "^3.2.7",
38
- "vuedraggable": "^4.1.0"
35
+ "vuedraggable": "^4.1.0",
36
+ "@aswin.dev/core": "0.7.2",
37
+ "@aswin.dev/types": "0.7.2",
38
+ "@aswin.dev/quality": "0.7.2"
39
39
  },
40
40
  "exports": {
41
41
  ".": {
@@ -63,9 +63,9 @@
63
63
  "license": "SEE LICENSE IN LICENSE",
64
64
  "module": "./dist/templatical-editor.js",
65
65
  "peerDependencies": {
66
- "@aswin.dev/media-library": "workspace:*",
67
- "@aswin.dev/quality": "workspace:*",
68
- "@aswin.dev/renderer": "workspace:*"
66
+ "@aswin.dev/media-library": "0.7.2",
67
+ "@aswin.dev/quality": "0.7.2",
68
+ "@aswin.dev/renderer": "0.7.2"
69
69
  },
70
70
  "peerDependenciesMeta": {
71
71
  "@aswin.dev/renderer": {
@@ -86,6 +86,8 @@
86
86
  "url": "git+https://github.com/templatical/sdk.git",
87
87
  "directory": "packages/editor"
88
88
  },
89
+ "type": "module",
90
+ "types": "./dist/index.d.ts",
89
91
  "scripts": {
90
92
  "build": "vite build",
91
93
  "build:all": "vite build && vite build --config vite.cdn.config.ts",
@@ -93,7 +95,5 @@
93
95
  "test": "vitest run",
94
96
  "typecheck": "vue-tsc --noEmit",
95
97
  "verify:pack": "node scripts/verify-pack.mjs"
96
- },
97
- "type": "module",
98
- "types": "./dist/index.d.ts"
99
- }
98
+ }
99
+ }