@aswin.dev/editor 0.7.2 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/dist/{AccessibilityPanel-EmQ19wiS.js → AccessibilityPanel-COL6Wm7p.js} +1 -1
  2. package/dist/{AiChatSidebar-DeB0w_32.js → AiChatSidebar-Dt5pvG5t.js} +9 -9
  3. package/dist/{AiFeatureMenu-DoLD5Cde.js → AiFeatureMenu-BipxcGap.js} +5 -5
  4. package/dist/{BlockA11yBadge-DkNbDvJA.js → BlockA11yBadge-Qs6HtXid.js} +1 -1
  5. package/dist/{CloudEditor-zo9PjjvY.js → CloudEditor-CnUX0IOW.js} +327 -290
  6. package/dist/{CollaboratorBar-BsXMY-8e.js → CollaboratorBar-NaaZTjbs.js} +2 -2
  7. package/dist/{CommentsSidebar-DIWIa4rS.js → CommentsSidebar-DE6ZsM4D.js} +15 -16
  8. package/dist/CountdownBlock-Ba3T-i2X.js +1536 -0
  9. package/dist/{CountdownToolbar-BuS8p5ju.js → CountdownToolbar-CbhSp_uq.js} +2 -2
  10. package/dist/{DesignReferenceSidebar-RDlnhL-6.js → DesignReferenceSidebar-CZg97bbj.js} +5 -5
  11. package/dist/{LoadingTrack-BJ59h9ok.js → LoadingTrack-Ba2pfF57.js} +1 -1
  12. package/dist/{ModuleBrowserModal-b7HbpByz.js → ModuleBrowserModal-D2EVdexc.js} +7 -7
  13. package/dist/{ModulePreviewCanvas-D__YlOLS.js → ModulePreviewCanvas-P3N-nxkU.js} +52 -47
  14. package/dist/{NumberWithSuffix-Ca3vNY84.js → NumberWithSuffix-CihczoAd.js} +2 -2
  15. package/dist/{ParagraphEditor-B1aYPO-6.js → ParagraphEditor-BbRuKhWv.js} +23 -23
  16. package/dist/{RichTextEditorContent-BmEVMrkJ.js → RichTextEditorContent-CrqPQdnk.js} +1 -1
  17. package/dist/{SaveModuleDialog-ClovqI6h.js → SaveModuleDialog-DLZa3m3O.js} +3 -3
  18. package/dist/{SnapshotHistory-DoqtH0cw.js → SnapshotHistory-Csg1_jXi.js} +5 -5
  19. package/dist/{TemplateScoringPanel-DQv2ZAiL.js → TemplateScoringPanel-CS7o62zS.js} +7 -7
  20. package/dist/{TestEmailModal-iIeYJYsj.js → TestEmailModal-m3okLbJz.js} +3 -3
  21. package/dist/{TitleEditor-CTDIwRF_.js → TitleEditor-CtJIS5ER.js} +7 -7
  22. package/dist/{TplModal-CBq1J1pG.js → TplModal-CQCrKeKP.js} +1 -1
  23. package/dist/{blockTypeIcons-QkC6f5UE.js → blockTypeIcons-Dah0pgt-.js} +50 -19
  24. package/dist/bundle-stats.json +7 -7
  25. package/dist/cdn/chunks/{AccessibilityPanel-BeU8nz7A.js → AccessibilityPanel-Bt_fD7QT.js} +8 -8
  26. package/dist/cdn/chunks/{AccessibilityPanel-BeU8nz7A.js.map → AccessibilityPanel-Bt_fD7QT.js.map} +1 -1
  27. package/dist/cdn/chunks/{AiFeatureMenu-B2mhscyP.js → AiFeatureMenu-Bn-0rgfr.js} +8 -8
  28. package/dist/cdn/chunks/{AiFeatureMenu-B2mhscyP.js.map → AiFeatureMenu-Bn-0rgfr.js.map} +1 -1
  29. package/dist/cdn/chunks/{BlockA11yBadge-C4g77gF0.js → BlockA11yBadge-Cj18Iw0p.js} +4 -4
  30. package/dist/cdn/chunks/{BlockA11yBadge-C4g77gF0.js.map → BlockA11yBadge-Cj18Iw0p.js.map} +1 -1
  31. package/dist/cdn/chunks/{CloudEditor-Btyr0b0_.js → CloudEditor-56lVcdot.js} +312 -275
  32. package/dist/cdn/chunks/CloudEditor-56lVcdot.js.map +1 -0
  33. package/dist/cdn/chunks/{CollaboratorBar-YBiIjiRh.js → CollaboratorBar-B7DCV3xp.js} +3 -3
  34. package/dist/cdn/chunks/{CollaboratorBar-YBiIjiRh.js.map → CollaboratorBar-B7DCV3xp.js.map} +1 -1
  35. package/dist/cdn/chunks/{CountdownToolbar-C9XZr33O.js → CountdownToolbar-BtaD3d3-.js} +4 -4
  36. package/dist/cdn/chunks/{CountdownToolbar-C9XZr33O.js.map → CountdownToolbar-BtaD3d3-.js.map} +1 -1
  37. package/dist/cdn/chunks/{ModuleBrowserModal-C2CDWKW6.js → ModuleBrowserModal-CiIY7ZGv.js} +7 -7
  38. package/dist/cdn/chunks/{ModuleBrowserModal-C2CDWKW6.js.map → ModuleBrowserModal-CiIY7ZGv.js.map} +1 -1
  39. package/dist/cdn/chunks/{ModulePreviewCanvas-Drt8Evai.js → ModulePreviewCanvas-M7_OGV2m.js} +55 -51
  40. package/dist/cdn/chunks/ModulePreviewCanvas-M7_OGV2m.js.map +1 -0
  41. package/dist/cdn/chunks/{NumberWithSuffix-Ty1bp9vB.js → NumberWithSuffix-DfVBnsgc.js} +3 -3
  42. package/dist/cdn/chunks/{NumberWithSuffix-Ty1bp9vB.js.map → NumberWithSuffix-DfVBnsgc.js.map} +1 -1
  43. package/dist/cdn/chunks/{ParagraphEditor-BA1WbHI7.js → ParagraphEditor-1XJOpiLX.js} +45 -45
  44. package/dist/cdn/chunks/{ParagraphEditor-BA1WbHI7.js.map → ParagraphEditor-1XJOpiLX.js.map} +1 -1
  45. package/dist/cdn/chunks/{RichTextEditorContent-BtWCA_Oc.js → RichTextEditorContent-C2q8sbp2.js} +4 -4
  46. package/dist/cdn/chunks/{RichTextEditorContent-BtWCA_Oc.js.map → RichTextEditorContent-C2q8sbp2.js.map} +1 -1
  47. package/dist/cdn/chunks/{SaveModuleDialog-AwL0tkCV.js → SaveModuleDialog-BNxh1jPT.js} +4 -4
  48. package/dist/cdn/chunks/{SaveModuleDialog-AwL0tkCV.js.map → SaveModuleDialog-BNxh1jPT.js.map} +1 -1
  49. package/dist/cdn/chunks/{TitleEditor-DbSyeixS.js → TitleEditor-IF7VzLTk.js} +13 -13
  50. package/dist/cdn/chunks/{TitleEditor-DbSyeixS.js.map → TitleEditor-IF7VzLTk.js.map} +1 -1
  51. package/dist/cdn/chunks/blockTypeIcons-tPBKQ8WC.js +24 -0
  52. package/dist/cdn/chunks/blockTypeIcons-tPBKQ8WC.js.map +1 -0
  53. package/dist/{de-2LEvILeZ.js → cdn/chunks/de-B05yW8Gi.js} +74 -3
  54. package/dist/cdn/chunks/de-B05yW8Gi.js.map +1 -0
  55. package/dist/cdn/chunks/{de-RQrZR56a.js → de-BPHtelu7.js} +1 -1
  56. package/dist/cdn/chunks/{de-RQrZR56a.js.map → de-BPHtelu7.js.map} +1 -1
  57. package/dist/cdn/chunks/{de-Ce-LbJ2J.js → de-BRDqJwJe.js} +1 -1
  58. package/dist/cdn/chunks/{de-Ce-LbJ2J.js.map → de-BRDqJwJe.js.map} +1 -1
  59. package/dist/cdn/chunks/{emojiData-EMFlj6FJ.js → emojiData-DUHzsh4j.js} +1 -1
  60. package/dist/cdn/chunks/{emojiData-EMFlj6FJ.js.map → emojiData-DUHzsh4j.js.map} +1 -1
  61. package/dist/cdn/chunks/{en-CNqLoIm9.js → en-BII7695P.js} +73 -4
  62. package/dist/cdn/chunks/en-BII7695P.js.map +1 -0
  63. package/dist/cdn/chunks/{en-DiCWK5fG.js → en-Cdj_Ikl1.js} +1 -1
  64. package/dist/cdn/chunks/{en-DiCWK5fG.js.map → en-Cdj_Ikl1.js.map} +1 -1
  65. package/dist/cdn/chunks/{en-Bl1ecfRF.js → en-DejwuJhw.js} +1 -1
  66. package/dist/cdn/chunks/{en-Bl1ecfRF.js.map → en-DejwuJhw.js.map} +1 -1
  67. package/dist/cdn/chunks/{extensions-BVKQw_sp.js → extensions-B0eT-yjf.js} +22 -22
  68. package/dist/cdn/chunks/{extensions-BVKQw_sp.js.map → extensions-B0eT-yjf.js.map} +1 -1
  69. package/dist/cdn/chunks/{features-DIBEo4xl.js → features-BrvE2Fzv.js} +2934 -1170
  70. package/dist/cdn/chunks/features-BrvE2Fzv.js.map +1 -0
  71. package/dist/cdn/chunks/{icons-C1Gg-ov-.js → icons-C7wtAD8p.js} +111 -60
  72. package/dist/cdn/chunks/icons-C7wtAD8p.js.map +1 -0
  73. package/dist/cdn/chunks/{liquid.browser-lQbkge2E.js → liquid.browser-CllF-us3.js} +1 -1
  74. package/dist/cdn/chunks/{liquid.browser-lQbkge2E.js.map → liquid.browser-CllF-us3.js.map} +1 -1
  75. package/dist/cdn/chunks/{media-library-BTF_Ko70.js → media-library-Cl5XuaKy.js} +676 -660
  76. package/dist/cdn/chunks/media-library-Cl5XuaKy.js.map +1 -0
  77. package/dist/cdn/chunks/{pusher-CDbNlZBE.js → pusher-i7-OBujc.js} +1 -1
  78. package/dist/cdn/chunks/{pusher-CDbNlZBE.js.map → pusher-i7-OBujc.js.map} +1 -1
  79. package/dist/cdn/chunks/{quality-C5AmotmP.js → quality-Va91a3N8.js} +40 -40
  80. package/dist/cdn/chunks/{quality-C5AmotmP.js.map → quality-Va91a3N8.js.map} +1 -1
  81. package/dist/cdn/chunks/{renderer-D0L44Vlp.js → renderer-si0Zgxeb.js} +17 -17
  82. package/dist/cdn/chunks/{renderer-D0L44Vlp.js.map → renderer-si0Zgxeb.js.map} +1 -1
  83. package/dist/cdn/chunks/{src-RKexlYjA.js → src-BLyYIbdZ.js} +10 -10
  84. package/dist/cdn/chunks/{src-RKexlYjA.js.map → src-BLyYIbdZ.js.map} +1 -1
  85. package/dist/cdn/chunks/{styleConstants-PgmvNBzQ.js → styleConstants-DfcU8u_r.js} +1 -1
  86. package/dist/cdn/chunks/{styleConstants-PgmvNBzQ.js.map → styleConstants-DfcU8u_r.js.map} +1 -1
  87. package/dist/cdn/chunks/{styles-CQR6ed13.js → styles-C6BQLT9F.js} +2174 -1343
  88. package/dist/cdn/chunks/styles-C6BQLT9F.js.map +1 -0
  89. package/dist/cdn/chunks/{tiptap-CDzAbF2j.js → tiptap-D8whBv5F.js} +2 -2
  90. package/dist/cdn/chunks/{tiptap-CDzAbF2j.js.map → tiptap-D8whBv5F.js.map} +1 -1
  91. package/dist/cdn/editor.css +1 -1
  92. package/dist/cdn/editor.js +146 -117
  93. package/dist/cdn/editor.js.map +1 -1
  94. package/dist/{cloud-DJG4tb4_.js → cloud-BoS0J0vs.js} +1 -1
  95. package/dist/{cdn/chunks/de-_tooy3Q8.js → de-C74F9xK3.js} +72 -5
  96. package/dist/{dist-BSJvAvH3.js → dist-BUzw1buG.js} +1 -1
  97. package/dist/{dist-b-XUqAoF.js → dist-BZyY-SS4.js} +1 -1
  98. package/dist/{dist-Df4ie7vZ.js → dist-BadNx4qo.js} +1 -1
  99. package/dist/{dist-wfAedlzi.js → dist-BesOh2mk.js} +1 -1
  100. package/dist/{dist-kZfaVUpW.js → dist-Bz3M4RXG.js} +3 -3
  101. package/dist/{dist-Bmir0gYb.js → dist-C2grMquk.js} +233 -139
  102. package/dist/{dist-BvPgo-UK.js → dist-C3T2AKtB.js} +1 -1
  103. package/dist/{dist-CPVBKMmd.js → dist-C9ckKEZL.js} +1 -1
  104. package/dist/{dist-DxOoemkW.js → dist-CBItRG-Z.js} +1 -1
  105. package/dist/{dist-BeFnymxK.js → dist-COSzWQUs.js} +1 -1
  106. package/dist/{dist-CivF9P8b.js → dist-Djgi0A6k.js} +92 -77
  107. package/dist/{dist-BHAeXaUY.js → dist-DtiDUrX-.js} +1 -1
  108. package/dist/{dist-HEQ52gTJ.js → dist-Dzt5foyL.js} +1 -1
  109. package/dist/{en-D2RU2Poj.js → en-B24jVTeO.js} +72 -3
  110. package/dist/{extensions-BQ1xXx3d.js → extensions-DsmjHqBF.js} +21 -21
  111. package/dist/index.d.ts +8 -8
  112. package/dist/{pencil-BZJPNYWR.js → pencil-Bpimrzzw.js} +5 -2
  113. package/dist/style.css +1 -1
  114. package/dist/{styles-CavWjvol.js → styles-BMFMtR9R.js} +2121 -1267
  115. package/dist/templatical-editor.js +149 -120
  116. package/dist/{useEditorCore-BGnzcT7p.js → useEditorCore-CtNAo0uy.js} +2331 -2202
  117. package/dist/useMergeTag-2vTcVpNo.js +34 -0
  118. package/package.json +7 -7
  119. package/dist/CountdownBlock-BCi7-DAM.js +0 -92
  120. package/dist/cdn/chunks/CloudEditor-Btyr0b0_.js.map +0 -1
  121. package/dist/cdn/chunks/CountdownBlock-B06UZoWe.js +0 -93
  122. package/dist/cdn/chunks/CountdownBlock-B06UZoWe.js.map +0 -1
  123. package/dist/cdn/chunks/ModulePreviewCanvas-Drt8Evai.js.map +0 -1
  124. package/dist/cdn/chunks/blockTypeIcons-pQIkxJzc.js +0 -23
  125. package/dist/cdn/chunks/blockTypeIcons-pQIkxJzc.js.map +0 -1
  126. package/dist/cdn/chunks/de-_tooy3Q8.js.map +0 -1
  127. package/dist/cdn/chunks/en-CNqLoIm9.js.map +0 -1
  128. package/dist/cdn/chunks/features-DIBEo4xl.js.map +0 -1
  129. package/dist/cdn/chunks/icons-C1Gg-ov-.js.map +0 -1
  130. package/dist/cdn/chunks/media-library-BTF_Ko70.js.map +0 -1
  131. package/dist/cdn/chunks/styles-CQR6ed13.js.map +0 -1
  132. package/dist/check-DJrpDKO_.js +0 -7
  133. package/dist/useMergeTag-CfuZq2fF.js +0 -34
  134. /package/dist/{_plugin-vue_export-helper-Bwh4ceeO.js → _plugin-vue_export-helper-BVAJ4lgT.js} +0 -0
  135. /package/dist/{clock-ik2pRJKG.js → clock-Ba4p3rJM.js} +0 -0
  136. /package/dist/{de-D2npYjrZ.js → de-GOtR9DwW.js} +0 -0
  137. /package/dist/{dist-DvHLtWVP.js → dist-DXa1uAMh.js} +0 -0
  138. /package/dist/{emojiData-DvQBBzmO.js → emojiData-DrBuvEoP.js} +0 -0
  139. /package/dist/{en-ib-4h3_o.js → en-dFFQVzNn.js} +0 -0
  140. /package/dist/{formatRelativeTime-CFDZnEIs.js → formatRelativeTime-BhhO8yCl.js} +0 -0
  141. /package/dist/{liquid.browser-7Rv0QDiO.js → liquid.browser-BvCyLQII.js} +0 -0
  142. /package/dist/{scan-line-DlghmhNf.js → scan-line-CzfFJO1o.js} +0 -0
  143. /package/dist/{send-DDdhIRj8.js → send-D2eSo4GH.js} +0 -0
  144. /package/dist/{shield-check-OSQ-JVTX.js → shield-check-jkpgcC0-.js} +0 -0
  145. /package/dist/{sparkles-BN4a-CoF.js → sparkles-Chm5CZfb.js} +0 -0
  146. /package/dist/{styleConstants-wWRbcuEK.js → styleConstants-34eUKPOZ.js} +0 -0
  147. /package/dist/{text-align-start-D1weisjS.js → text-align-start-CzBnJsW8.js} +0 -0
  148. /package/dist/{trash-2-CMWvQ5KX.js → trash-2-CtK2apEH.js} +0 -0
  149. /package/dist/{triangle-alert-DyidRNX_.js → triangle-alert-KpDVNbpn.js} +0 -0
  150. /package/dist/{undo-2-Cg8I7obC.js → undo-2-m1EUDbUg.js} +0 -0
  151. /package/dist/{useCloudI18n-BTTNBk5i.js → useCloudI18n-DOKSZql1.js} +0 -0
  152. /package/dist/{x-CgIhNcT9.js → x-BkaOMosX.js} +0 -0
@@ -9,12 +9,12 @@ var b = /* @__PURE__ */ new WeakMap(), x = (...e) => {
9
9
  return i && b.has(i) && r in b.get(i) ? b.get(i)[r] : t(...e);
10
10
  }, S = typeof window < "u" && typeof document < "u";
11
11
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
12
- var ee = (e) => e != null, C = Object.prototype.toString, w = (e) => C.call(e) === "[object Object]", T = () => {}, E = /* @__PURE__ */ D();
13
- function D() {
12
+ var ee = (e) => e != null, C = Object.prototype.toString, w = (e) => C.call(e) === "[object Object]", T = () => {}, E = /* @__PURE__ */ te();
13
+ function te() {
14
14
  var e, t;
15
15
  return S && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
16
16
  }
17
- function O(...t) {
17
+ function D(...t) {
18
18
  if (t.length !== 1) return u(...t);
19
19
  let n = t[0];
20
20
  return typeof n == "function" ? e(i(() => ({
@@ -22,7 +22,7 @@ function O(...t) {
22
22
  set: T
23
23
  }))) : l(n);
24
24
  }
25
- function k(e, t) {
25
+ function O(e, t) {
26
26
  function n(...n) {
27
27
  return new Promise((r, i) => {
28
28
  Promise.resolve(e(() => t.apply(this, n), {
@@ -34,8 +34,8 @@ function k(e, t) {
34
34
  }
35
35
  return n;
36
36
  }
37
- var A = (e) => e();
38
- function j(e, t = {}) {
37
+ var k = (e) => e();
38
+ function A(e, t = {}) {
39
39
  let n, r, i = T, a = (e) => {
40
40
  clearTimeout(e), i(), i = T;
41
41
  }, o;
@@ -50,26 +50,26 @@ function j(e, t = {}) {
50
50
  });
51
51
  };
52
52
  }
53
- function M(e) {
53
+ function j(e) {
54
54
  return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
55
55
  }
56
- function N(e) {
56
+ function M(e) {
57
57
  return Array.isArray(e) ? e : [e];
58
58
  }
59
- function te(e) {
59
+ function ne(e) {
60
60
  return e || v();
61
61
  }
62
- function ne(e, t = 200, n = {}) {
63
- return k(j(t, n), e);
62
+ function re(e, t = 200, n = {}) {
63
+ return O(A(t, n), e);
64
64
  }
65
- function re(e, t, n = {}) {
66
- let { eventFilter: r = A, ...i } = n;
67
- return a(e, k(r, t), i);
65
+ function ie(e, t, n = {}) {
66
+ let { eventFilter: r = k, ...i } = n;
67
+ return a(e, O(r, t), i);
68
68
  }
69
- function P(e, t = !0, n) {
70
- te(n) ? d(e, n) : t ? e() : f(e);
69
+ function N(e, t = !0, n) {
70
+ ne(n) ? d(e, n) : t ? e() : f(e);
71
71
  }
72
- function F(e, t = 1e3, n = {}) {
72
+ function P(e, t = 1e3, n = {}) {
73
73
  let { immediate: r = !0, immediateCallback: i = !1 } = n, s = null, l = m(!1);
74
74
  function u() {
75
75
  s &&= (clearInterval(s), null);
@@ -89,7 +89,7 @@ function F(e, t = 1e3, n = {}) {
89
89
  resume: f
90
90
  };
91
91
  }
92
- function I(e, t, n = {}) {
92
+ function F(e, t, n = {}) {
93
93
  let { immediate: r = !0, immediateCallback: i = !1 } = n, a = m(!1), o;
94
94
  function s() {
95
95
  o &&= (clearTimeout(o), void 0);
@@ -108,7 +108,7 @@ function I(e, t, n = {}) {
108
108
  stop: l
109
109
  };
110
110
  }
111
- function L(e = !1, t = {}) {
111
+ function I(e = !1, t = {}) {
112
112
  let { truthyValue: n = !0, falsyValue: r = !1 } = t, i = o(e), a = m(e);
113
113
  function s(e) {
114
114
  if (arguments.length) return a.value = e, a.value;
@@ -119,14 +119,14 @@ function L(e = !1, t = {}) {
119
119
  }
120
120
  return i ? s : [a, s];
121
121
  }
122
- function R(e, t, n = {}) {
122
+ function L(e, t, n = {}) {
123
123
  let { debounce: r = 0, maxWait: i = void 0, ...a } = n;
124
- return re(e, t, {
124
+ return ie(e, t, {
125
125
  ...a,
126
- eventFilter: j(r, { maxWait: i })
126
+ eventFilter: A(r, { maxWait: i })
127
127
  });
128
128
  }
129
- function z(e, t, n) {
129
+ function R(e, t, n) {
130
130
  return a(e, t, {
131
131
  ...n,
132
132
  immediate: !0
@@ -134,21 +134,21 @@ function z(e, t, n) {
134
134
  }
135
135
  //#endregion
136
136
  //#region ../../node_modules/.pnpm/@vueuse+core@14.2.1_vue@3.5.33_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
137
- var B = S ? window : void 0;
137
+ var z = S ? window : void 0;
138
138
  S && window.document, S && window.navigator, S && window.location;
139
- function V(e) {
139
+ function B(e) {
140
140
  let t = c(e);
141
141
  return t?.$el ?? t;
142
142
  }
143
- function H(...e) {
143
+ function V(...e) {
144
144
  let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = p(() => {
145
- let t = N(c(e[0])).filter((e) => e != null);
145
+ let t = M(c(e[0])).filter((e) => e != null);
146
146
  return t.every((e) => typeof e != "string") ? t : void 0;
147
147
  });
148
- return z(() => [
149
- n.value?.map((e) => V(e)) ?? [B].filter((e) => e != null),
150
- N(c(n.value ? e[1] : e[0])),
151
- N(g(n.value ? e[2] : e[1])),
148
+ return R(() => [
149
+ n.value?.map((e) => B(e)) ?? [z].filter((e) => e != null),
150
+ M(c(n.value ? e[1] : e[0])),
151
+ M(g(n.value ? e[2] : e[1])),
152
152
  c(n.value ? e[3] : e[2])
153
153
  ], ([e, n, r, i], a, o) => {
154
154
  if (!e?.length || !n?.length || !r?.length) return;
@@ -158,23 +158,23 @@ function H(...e) {
158
158
  });
159
159
  }, { flush: "post" });
160
160
  }
161
- var U = !1;
162
- function W(e, t, n = {}) {
163
- let { window: r = B, ignore: i = [], capture: a = !0, detectIframe: o = !1, controls: s = !1 } = n;
161
+ var H = !1;
162
+ function U(e, t, n = {}) {
163
+ let { window: r = z, ignore: i = [], capture: a = !0, detectIframe: o = !1, controls: s = !1 } = n;
164
164
  if (!r) return s ? {
165
165
  stop: T,
166
166
  cancel: T,
167
167
  trigger: T
168
168
  } : T;
169
- if (E && !U) {
170
- U = !0;
169
+ if (E && !H) {
170
+ H = !0;
171
171
  let e = { passive: !0 };
172
172
  Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", T, e)), r.document.documentElement.addEventListener("click", T, e);
173
173
  }
174
174
  let l = !0, u = (e) => c(i).some((t) => {
175
175
  if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
176
176
  {
177
- let n = V(t);
177
+ let n = B(t);
178
178
  return n && (e.target === n || e.composedPath().includes(n));
179
179
  }
180
180
  });
@@ -187,7 +187,7 @@ function W(e, t, n = {}) {
187
187
  return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
188
188
  }
189
189
  let p = (n) => {
190
- let r = V(e);
190
+ let r = B(e);
191
191
  if (n.target != null && !(!(r instanceof Element) && d(e) && f(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
192
192
  if ("detail" in n && n.detail === 0 && (l = !u(n)), !l) {
193
193
  l = !0;
@@ -196,7 +196,7 @@ function W(e, t, n = {}) {
196
196
  t(n);
197
197
  }
198
198
  }, m = !1, h = [
199
- H(r, "click", (e) => {
199
+ V(r, "click", (e) => {
200
200
  m || (m = !0, setTimeout(() => {
201
201
  m = !1;
202
202
  }, 0), p(e));
@@ -204,13 +204,13 @@ function W(e, t, n = {}) {
204
204
  passive: !0,
205
205
  capture: a
206
206
  }),
207
- H(r, "pointerdown", (t) => {
208
- let n = V(e);
207
+ V(r, "pointerdown", (t) => {
208
+ let n = B(e);
209
209
  l = !u(t) && !!(n && !t.composedPath().includes(n));
210
210
  }, { passive: !0 }),
211
- o && H(r, "blur", (n) => {
211
+ o && V(r, "blur", (n) => {
212
212
  setTimeout(() => {
213
- let i = V(e);
213
+ let i = B(e);
214
214
  r.document.activeElement?.tagName === "IFRAME" && !i?.contains(r.document.activeElement) && t(n);
215
215
  }, 0);
216
216
  }, { passive: !0 })
@@ -225,22 +225,22 @@ function W(e, t, n = {}) {
225
225
  }
226
226
  } : g;
227
227
  }
228
- function G() {
228
+ function W() {
229
229
  let e = m(!1), t = v();
230
230
  return t && d(() => {
231
231
  e.value = !0;
232
232
  }, t), e;
233
233
  }
234
234
  /* @__NO_SIDE_EFFECTS__ */
235
- function K(e) {
236
- let t = G();
235
+ function G(e) {
236
+ let t = W();
237
237
  return p(() => (t.value, !!e()));
238
238
  }
239
- function q(e, t, n = {}) {
240
- let { window: r = B, ...i } = n, o, s = /* @__PURE__ */ K(() => r && "MutationObserver" in r), l = () => {
239
+ function K(e, t, n = {}) {
240
+ let { window: r = z, ...i } = n, o, s = /* @__PURE__ */ G(() => r && "MutationObserver" in r), l = () => {
241
241
  o &&= (o.disconnect(), void 0);
242
242
  }, u = a(p(() => {
243
- let t = N(c(e)).map(V).filter(ee);
243
+ let t = M(c(e)).map(B).filter(ee);
244
244
  return new Set(t);
245
245
  }), (e) => {
246
246
  l(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, i)));
@@ -256,33 +256,33 @@ function q(e, t, n = {}) {
256
256
  takeRecords: d
257
257
  };
258
258
  }
259
- var J = Symbol("vueuse-ssr-width");
259
+ var q = Symbol("vueuse-ssr-width");
260
260
  /* @__NO_SIDE_EFFECTS__ */
261
- function Y() {
262
- let e = n() ? x(J, null) : null;
261
+ function J() {
262
+ let e = n() ? x(q, null) : null;
263
263
  return typeof e == "number" ? e : void 0;
264
264
  }
265
- function X(e, t = {}) {
266
- let { window: n = B, ssrWidth: i = /* @__PURE__ */ Y() } = t, a = /* @__PURE__ */ K(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), o = m(typeof i == "number"), s = m(), l = m(!1);
265
+ function Y(e, t = {}) {
266
+ let { window: n = z, ssrWidth: i = /* @__PURE__ */ J() } = t, a = /* @__PURE__ */ G(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), o = m(typeof i == "number"), s = m(), l = m(!1);
267
267
  return r(() => {
268
268
  if (o.value) {
269
269
  o.value = !a.value, l.value = c(e).split(",").some((e) => {
270
270
  let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), r = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || r);
271
- return n && a && (a = i >= M(n[1])), r && a && (a = i <= M(r[1])), t ? !a : a;
271
+ return n && a && (a = i >= j(n[1])), r && a && (a = i <= j(r[1])), t ? !a : a;
272
272
  });
273
273
  return;
274
274
  }
275
275
  a.value && (s.value = n.matchMedia(c(e)), l.value = s.value.matches);
276
- }), H(s, "change", (e) => {
276
+ }), V(s, "change", (e) => {
277
277
  l.value = e.matches;
278
278
  }, { passive: !0 }), p(() => l.value);
279
279
  }
280
- function ie(e, t, n = {}) {
281
- let { window: r = B, ...i } = n, o, s = /* @__PURE__ */ K(() => r && "ResizeObserver" in r), l = () => {
280
+ function ae(e, t, n = {}) {
281
+ let { window: r = z, ...i } = n, o, s = /* @__PURE__ */ G(() => r && "ResizeObserver" in r), l = () => {
282
282
  o &&= (o.disconnect(), void 0);
283
283
  }, u = a(p(() => {
284
284
  let t = c(e);
285
- return Array.isArray(t) ? t.map((e) => V(e)) : [V(t)];
285
+ return Array.isArray(t) ? t.map((e) => B(e)) : [B(t)];
286
286
  }), (e) => {
287
287
  if (l(), s.value && r) {
288
288
  o = new ResizeObserver(t);
@@ -299,10 +299,10 @@ function ie(e, t, n = {}) {
299
299
  stop: d
300
300
  };
301
301
  }
302
- function ae(e, t = {}) {
302
+ function oe(e, t = {}) {
303
303
  let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: o = !0, updateTiming: s = "sync" } = t, c = m(0), l = m(0), u = m(0), d = m(0), f = m(0), p = m(0), h = m(0), g = m(0);
304
304
  function _() {
305
- let t = V(e);
305
+ let t = B(e);
306
306
  if (!t) {
307
307
  n && (c.value = 0, l.value = 0, u.value = 0, d.value = 0, f.value = 0, p.value = 0, h.value = 0, g.value = 0);
308
308
  return;
@@ -313,10 +313,10 @@ function ae(e, t = {}) {
313
313
  function v() {
314
314
  s === "sync" ? _() : s === "next-frame" && requestAnimationFrame(() => _());
315
315
  }
316
- return ie(e, v), a(() => V(e), (e) => !e && v()), q(e, v, { attributeFilter: ["style", "class"] }), i && H("scroll", v, {
316
+ return ae(e, v), a(() => B(e), (e) => !e && v()), K(e, v, { attributeFilter: ["style", "class"] }), i && V("scroll", v, {
317
317
  capture: !0,
318
318
  passive: !0
319
- }), r && H("resize", v, { passive: !0 }), P(() => {
319
+ }), r && V("resize", v, { passive: !0 }), N(() => {
320
320
  o && v();
321
321
  }), {
322
322
  height: c,
@@ -330,30 +330,30 @@ function ae(e, t = {}) {
330
330
  update: v
331
331
  };
332
332
  }
333
- function Z(e) {
333
+ function X(e) {
334
334
  return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
335
335
  }
336
- function oe(e) {
337
- let t = X("(prefers-reduced-motion: reduce)", e);
336
+ function se(e) {
337
+ let t = Y("(prefers-reduced-motion: reduce)", e);
338
338
  return p(() => t.value ? "reduce" : "no-preference");
339
339
  }
340
- function Q(e) {
340
+ function Z(e) {
341
341
  let t = window.getComputedStyle(e);
342
342
  if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight) return !0;
343
343
  {
344
344
  let t = e.parentNode;
345
- return !t || t.tagName === "BODY" ? !1 : Q(t);
345
+ return !t || t.tagName === "BODY" ? !1 : Z(t);
346
346
  }
347
347
  }
348
- function se(e) {
348
+ function Q(e) {
349
349
  let t = e || window.event, n = t.target;
350
- return Q(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
350
+ return Z(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
351
351
  }
352
352
  var $ = /* @__PURE__ */ new WeakMap();
353
353
  function ce(e, t = !1) {
354
354
  let n = m(t), r = null, i = "";
355
- a(O(e), (e) => {
356
- let t = Z(c(e));
355
+ a(D(e), (e) => {
356
+ let t = X(c(e));
357
357
  if (t) {
358
358
  let e = t;
359
359
  if ($.get(e) || $.set(e, e.style.overflow), e.style.overflow !== "hidden" && (i = e.style.overflow), e.style.overflow === "hidden") return n.value = !0;
@@ -361,12 +361,12 @@ function ce(e, t = !1) {
361
361
  }
362
362
  }, { immediate: !0 });
363
363
  let o = () => {
364
- let t = Z(c(e));
365
- !t || n.value || (E && (r = H(t, "touchmove", (e) => {
366
- se(e);
364
+ let t = X(c(e));
365
+ !t || n.value || (E && (r = V(t, "touchmove", (e) => {
366
+ Q(e);
367
367
  }, { passive: !1 })), t.style.overflow = "hidden", n.value = !0);
368
368
  }, s = () => {
369
- let t = Z(c(e));
369
+ let t = X(c(e));
370
370
  !t || !n.value || (E && r?.(), t.style.overflow = i, $.delete(t), n.value = !1);
371
371
  };
372
372
  return y(s), p({
@@ -378,5 +378,20 @@ function ce(e, t = !1) {
378
378
  }
379
379
  });
380
380
  }
381
+ function le(e = {}) {
382
+ let { window: t = z, initialWidth: n = Infinity, initialHeight: r = Infinity, listenOrientation: i = !0, includeScrollbar: o = !0, type: s = "inner" } = e, c = m(n), l = m(r), u = () => {
383
+ if (t) if (s === "outer") c.value = t.outerWidth, l.value = t.outerHeight;
384
+ else if (s === "visual" && t.visualViewport) {
385
+ let { width: e, height: n, scale: r } = t.visualViewport;
386
+ c.value = Math.round(e * r), l.value = Math.round(n * r);
387
+ } else o ? (c.value = t.innerWidth, l.value = t.innerHeight) : (c.value = t.document.documentElement.clientWidth, l.value = t.document.documentElement.clientHeight);
388
+ };
389
+ u(), N(u);
390
+ let d = { passive: !0 };
391
+ return V("resize", u, d), t && s === "visual" && t.visualViewport && V(t.visualViewport, "resize", u, d), i && a(Y("(orientation: portrait)"), () => u()), {
392
+ width: c,
393
+ height: l
394
+ };
395
+ }
381
396
  //#endregion
382
- export { oe as a, F as c, R as d, X as i, I as l, ae as n, ce as o, H as r, ne as s, W as t, L as u };
397
+ export { se as a, re as c, I as d, L as f, Y as i, P as l, oe as n, ce as o, V as r, le as s, U as t, F as u };
@@ -1,4 +1,4 @@
1
- import { Gt as e, c as t, i as n } from "./dist-DvHLtWVP.js";
1
+ import { Gt as e, c as t, i as n } from "./dist-DXa1uAMh.js";
2
2
  //#region ../../node_modules/.pnpm/@tiptap+extension-text-style@3.22.5_@tiptap+core@3.22.5_@tiptap+pm@3.22.5_/node_modules/@tiptap/extension-text-style/dist/index.js
3
3
  var r = 20, i = (e, t = 0) => {
4
4
  let n = [];
@@ -1,4 +1,4 @@
1
- import { Gt as e, c as t } from "./dist-DvHLtWVP.js";
1
+ import { Gt as e, c as t } from "./dist-DXa1uAMh.js";
2
2
  //#region ../../node_modules/.pnpm/@tiptap+extension-underline@3.22.5_@tiptap+core@3.22.5_@tiptap+pm@3.22.5_/node_modules/@tiptap/extension-underline/dist/index.js
3
3
  var n = t.create({
4
4
  name: "underline",
@@ -57,7 +57,8 @@ var e = {
57
57
  html: "HTML",
58
58
  menu: "Menu",
59
59
  table: "Table",
60
- countdown: "Countdown"
60
+ countdown: "Countdown",
61
+ form: "Form"
61
62
  },
62
63
  sidebar: {
63
64
  content: "Content",
@@ -252,6 +253,60 @@ var e = {
252
253
  fixedWidth: "Fixed width",
253
254
  placeholderColor: "Placeholder color"
254
255
  },
256
+ form: {
257
+ tabs: {
258
+ sync: "Sync",
259
+ fields: "Fields",
260
+ button: "Button",
261
+ terms: "Terms"
262
+ },
263
+ sync: { heading: "Pick your marketing platform" },
264
+ fieldTypes: {
265
+ firstName: "First name",
266
+ lastName: "Last name",
267
+ email: "Email",
268
+ phone: "Phone"
269
+ },
270
+ fields: {
271
+ addField: "Add field",
272
+ noMoreFields: "All field types added",
273
+ cancel: "Cancel",
274
+ remove: "Remove field",
275
+ label: "Label",
276
+ labelPlaceholder: "What is your email?",
277
+ optional: "optional",
278
+ placeholder: "Placeholder",
279
+ name: "Field name",
280
+ required: "Field is required",
281
+ blockExisting: "Block existing emails",
282
+ blockExistingHint: "Prevent signing up with the emails you've already collected.",
283
+ blockExistingAll: "Check across all my campaigns",
284
+ blockExistingThis: "Check only this campaign",
285
+ errorMessage: "Error message"
286
+ },
287
+ button: {
288
+ submitText: "Submit button",
289
+ actionOnClick: "Action on click",
290
+ url: "Page URL",
291
+ position: "Position",
292
+ oneLine: "One line",
293
+ twoLines: "Two lines",
294
+ background: "Background",
295
+ textColor: "Text color",
296
+ borderRadius: "Border radius"
297
+ },
298
+ buttonActions: {
299
+ nextStep: "Show next step",
300
+ closePopup: "Close the popup",
301
+ loadPage: "Load new page",
302
+ none: "Do nothing"
303
+ },
304
+ terms: {
305
+ enable: "Show terms",
306
+ content: "Terms content",
307
+ htmlHint: "HTML is allowed. Use links and small print as needed."
308
+ }
309
+ },
255
310
  divider: {
256
311
  style: "Style",
257
312
  solid: "Solid",
@@ -363,7 +418,14 @@ var e = {
363
418
  expiredImageUrl: "Expired Image URL",
364
419
  hideOnExpiry: "Hide when expired",
365
420
  setDate: "Set a target date in the settings panel",
366
- hidden: "Hidden (expired)"
421
+ hidden: "Hidden (expired)",
422
+ style: "Style",
423
+ layout: "Layout",
424
+ animationSpeed: "Animation Speed",
425
+ accentColor: "Accent Color",
426
+ cardGap: "Card Gap",
427
+ cardRadius: "Card Radius",
428
+ enableHoverFx: "Enable hover effects"
367
429
  },
368
430
  customBlocks: {
369
431
  definitionNotFound: "Unknown block type — this block is not registered",
@@ -425,6 +487,8 @@ var e = {
425
487
  contentPadding: "Padding",
426
488
  appearance: "Appearance",
427
489
  backgroundColor: "Background Color",
490
+ backgroundOpacity: "Background Opacity",
491
+ backgroundShadow: "Background Shadow",
428
492
  fontFamily: "Font Family",
429
493
  preheaderText: "Preheader Text",
430
494
  preheaderTextPlaceholder: "Preview text shown after subject line in inbox...",
@@ -480,7 +544,9 @@ var e = {
480
544
  stepActions: "Step actions",
481
545
  rename: "Rename",
482
546
  delete: "Delete",
483
- renamePrompt: "Step name"
547
+ renamePrompt: "Step name",
548
+ unreachableLabel: "Unreachable step",
549
+ unreachableTooltip: "This step is unreachable. The previous step has no Button or Form block configured with “Show next step” (or equivalent) that leads here."
484
550
  }
485
551
  },
486
552
  mediaLibrary: {
@@ -689,6 +755,9 @@ var e = {
689
755
  backgroundImageOnly: "Image only (hide body chrome)",
690
756
  options: "Options",
691
757
  useOverlay: "Use overlay",
758
+ overlayBlur: "Background blur",
759
+ overlayBlurHint: "Blurs whatever is behind the popup. Drag to 0 for a sharp backdrop.",
760
+ overlayImageOpacity: "Overlay image opacity",
692
761
  overlayImage: "Overlay image",
693
762
  overlayImagePanelAriaLabel: "Overlay image upload",
694
763
  overlayImageDropLineBefore: "Drag your image here or ",
@@ -1,9 +1,9 @@
1
1
  import { At as e, C as t, F as n, Ft as r, N as i, T as a, U as o, W as s, _ as c, c as l, d as u, et as d, f, g as p, h as m, jt as h, k as g, m as _, n as v, st as y, u as b, v as x } from "./vue.runtime.esm-bundler-CjauPXjj.js";
2
- import { M as S, O as C, i as w, k as T } from "./dist-Bmir0gYb.js";
2
+ import { A as S, N as C, i as w, k as T } from "./dist-C2grMquk.js";
3
3
  import { t as E } from "./useI18n-C2xQZ6K9.js";
4
- import { t as D } from "./useMergeTag-CfuZq2fF.js";
5
- import { F as O, Gt as k, _n as A, bn as j, i as M, o as N, p as P, u as F, vn as ee, xn as I } from "./dist-DvHLtWVP.js";
6
- import { n as L, t as R } from "./dist-CPVBKMmd.js";
4
+ import { t as D } from "./useMergeTag-2vTcVpNo.js";
5
+ import { F as O, Gt as k, _n as A, bn as j, i as M, o as N, p as P, u as F, vn as ee, xn as I } from "./dist-DXa1uAMh.js";
6
+ import { n as L, t as R } from "./dist-C9ckKEZL.js";
7
7
  //#region src/extensions/FontSize.ts
8
8
  var te = M.create({
9
9
  name: "fontSize",
@@ -85,9 +85,9 @@ var te = M.create({
85
85
  updateAttributes: { type: Function }
86
86
  },
87
87
  setup(t) {
88
- let n = t, { syntax: a } = D(), { t: f } = E(), v = _(() => S(n.node.attrs.value, a)), w = _(() => C(n.node.attrs.value, a)), T = d(!1), O = d(""), k = d(null), A = !1;
88
+ let n = t, { syntax: a } = D(), { t: f } = E(), v = _(() => C(n.node.attrs.value, a)), S = _(() => T(n.node.attrs.value, a)), w = d(!1), O = d(""), k = d(null), A = !1;
89
89
  function j() {
90
- O.value = n.node.attrs.value, A = !1, T.value = !0, g(() => {
90
+ O.value = n.node.attrs.value, A = !1, w.value = !0, g(() => {
91
91
  k.value?.focus(), k.value?.select();
92
92
  });
93
93
  }
@@ -96,16 +96,16 @@ var te = M.create({
96
96
  A = !0;
97
97
  let e = O.value.trim();
98
98
  if (!e) {
99
- T.value = !1;
99
+ w.value = !1;
100
100
  return;
101
101
  }
102
102
  e !== n.node.attrs.value && n.updateAttributes({
103
103
  value: e,
104
- keyword: S(e, a) ? C(e, a) : ""
105
- }), T.value = !1;
104
+ keyword: C(e, a) ? T(e, a) : ""
105
+ }), w.value = !1;
106
106
  }
107
107
  function N(e) {
108
- e.key === "Enter" ? (e.preventDefault(), M()) : e.key === "Escape" && (T.value = !1);
108
+ e.key === "Enter" ? (e.preventDefault(), M()) : e.key === "Escape" && (w.value = !1);
109
109
  }
110
110
  return (n, a) => (i(), p(y(R), {
111
111
  as: "span",
@@ -113,7 +113,7 @@ var te = M.create({
113
113
  style: h(v.value ? "background-color: transparent; border: 1.5px solid color-mix(in srgb, var(--tpl-primary) 50%, transparent); color: var(--tpl-primary);" : ""),
114
114
  contenteditable: "false"
115
115
  }, {
116
- default: o(() => [T.value ? s((i(), x("input", {
116
+ default: o(() => [w.value ? s((i(), x("input", {
117
117
  key: 0,
118
118
  ref_key: "inputRef",
119
119
  ref: k,
@@ -131,7 +131,7 @@ var te = M.create({
131
131
  "data-tooltip": t.node.attrs.value,
132
132
  onClick: u(j, ["stop"]),
133
133
  onKeydown: [b(u(j, ["stop"]), ["enter"]), b(u(j, ["prevent", "stop"]), ["space"])]
134
- }, r(w.value), 41, z)) : (i(), x("span", {
134
+ }, r(S.value), 41, z)) : (i(), x("span", {
135
135
  key: 2,
136
136
  role: "button",
137
137
  tabindex: "0",
@@ -207,12 +207,12 @@ var G = F.create({
207
207
  return [{ tag: "span[data-logic-merge-tag]" }];
208
208
  },
209
209
  renderHTML({ node: e, HTMLAttributes: t }) {
210
- if (!S(e.attrs.value, this.options.syntax)) return [
210
+ if (!C(e.attrs.value, this.options.syntax)) return [
211
211
  "span",
212
212
  {},
213
213
  e.attrs.value
214
214
  ];
215
- let n = C(e.attrs.value, this.options.syntax);
215
+ let n = T(e.attrs.value, this.options.syntax);
216
216
  return [
217
217
  "span",
218
218
  k(t, {
@@ -236,8 +236,8 @@ var G = F.create({
236
236
  find: RegExp(this.options.syntax.logic.source + "$", ""),
237
237
  handler: ({ state: e, range: t, match: n }) => {
238
238
  let r = n[0];
239
- if (!S(r, this.options.syntax)) return;
240
- let i = C(r, this.options.syntax), a = this.type.create({
239
+ if (!C(r, this.options.syntax)) return;
240
+ let i = T(r, this.options.syntax), a = this.type.create({
241
241
  value: r,
242
242
  keyword: i
243
243
  });
@@ -250,8 +250,8 @@ var G = F.create({
250
250
  find: new RegExp(this.options.syntax.logic.source, "g"),
251
251
  handler: ({ state: e, range: t, match: n }) => {
252
252
  let r = n[0];
253
- if (!S(r, this.options.syntax)) return;
254
- let i = C(r, this.options.syntax), a = this.type.create({
253
+ if (!C(r, this.options.syntax)) return;
254
+ let i = T(r, this.options.syntax), a = this.type.create({
255
255
  value: r,
256
256
  keyword: i
257
257
  });
@@ -366,7 +366,7 @@ var G = F.create({
366
366
  return [{ tag: "span[data-merge-tag]" }];
367
367
  },
368
368
  renderHTML({ node: e, HTMLAttributes: t }) {
369
- let n = T(e.attrs.value, this.options.mergeTags);
369
+ let n = S(e.attrs.value, this.options.mergeTags);
370
370
  return [
371
371
  "span",
372
372
  k(t, {
@@ -395,7 +395,7 @@ var G = F.create({
395
395
  return [new N({
396
396
  find: RegExp(this.options.syntax.value.source + "$", ""),
397
397
  handler: ({ state: e, range: t, match: n }) => {
398
- let r = n[0], i = T(r, this.options.mergeTags), a = this.type.create({
398
+ let r = n[0], i = S(r, this.options.mergeTags), a = this.type.create({
399
399
  label: i,
400
400
  value: r
401
401
  });
@@ -407,7 +407,7 @@ var G = F.create({
407
407
  return [new P({
408
408
  find: new RegExp(this.options.syntax.value.source, "g"),
409
409
  handler: ({ state: e, range: t, match: n }) => {
410
- let r = n[0], i = T(r, this.options.mergeTags), a = this.type.create({
410
+ let r = n[0], i = S(r, this.options.mergeTags), a = this.type.create({
411
411
  label: i,
412
412
  value: r
413
413
  });
package/dist/index.d.ts CHANGED
@@ -326,9 +326,9 @@ export { }
326
326
 
327
327
  declare module "@tiptap/core" {
328
328
  interface Commands<ReturnType> {
329
- fontSize: {
330
- setFontSize: (size: string) => ReturnType;
331
- unsetFontSize: () => ReturnType;
329
+ lineHeight: {
330
+ setLineHeight: (lineHeight: string) => ReturnType;
331
+ unsetLineHeight: () => ReturnType;
332
332
  };
333
333
  }
334
334
  }
@@ -346,8 +346,9 @@ declare module "@tiptap/core" {
346
346
 
347
347
  declare module "@tiptap/core" {
348
348
  interface Commands<ReturnType> {
349
- mergeTagNode: {
350
- insertMergeTag: (attrs: MergeTag) => ReturnType;
349
+ fontSize: {
350
+ setFontSize: (size: string) => ReturnType;
351
+ unsetFontSize: () => ReturnType;
351
352
  };
352
353
  }
353
354
  }
@@ -355,9 +356,8 @@ declare module "@tiptap/core" {
355
356
 
356
357
  declare module "@tiptap/core" {
357
358
  interface Commands<ReturnType> {
358
- lineHeight: {
359
- setLineHeight: (lineHeight: string) => ReturnType;
360
- unsetLineHeight: () => ReturnType;
359
+ mergeTagNode: {
360
+ insertMergeTag: (attrs: MergeTag) => ReturnType;
361
361
  };
362
362
  }
363
363
  }