@aswin.dev/editor 0.7.0 → 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 (182) hide show
  1. package/LICENSE +56 -0
  2. package/README.md +3 -3
  3. package/dist/{AccessibilityPanel-CvQGLdu6.js → AccessibilityPanel-EmQ19wiS.js} +37 -37
  4. package/dist/{AiChatSidebar-B3SJIKG_.js → AiChatSidebar-DeB0w_32.js} +67 -81
  5. package/dist/{AiFeatureMenu-BLLKoOos.js → AiFeatureMenu-DoLD5Cde.js} +22 -22
  6. package/dist/{BlockA11yBadge-CXDLqkcJ.js → BlockA11yBadge-DkNbDvJA.js} +12 -12
  7. package/dist/CloudEditor-zo9PjjvY.js +1214 -0
  8. package/dist/{CollaboratorBar-DuPYW5iF.js → CollaboratorBar-BsXMY-8e.js} +21 -21
  9. package/dist/CommentsSidebar-DIWIa4rS.js +436 -0
  10. package/dist/CountdownBlock-BCi7-DAM.js +92 -0
  11. package/dist/CountdownToolbar-BuS8p5ju.js +210 -0
  12. package/dist/{DesignReferenceSidebar-B8V_F2yF.js → DesignReferenceSidebar-RDlnhL-6.js} +58 -58
  13. package/dist/{LoadingTrack-B0CWFHXQ.js → LoadingTrack-BJ59h9ok.js} +2 -2
  14. package/dist/ModuleBrowserModal-b7HbpByz.js +206 -0
  15. package/dist/ModulePreviewCanvas-D__YlOLS.js +108 -0
  16. package/dist/{NumberWithSuffix-DkXUez9t.js → NumberWithSuffix-Ca3vNY84.js} +87 -87
  17. package/dist/{ParagraphEditor-D75wl3BX.js → ParagraphEditor-B1aYPO-6.js} +182 -182
  18. package/dist/{RichTextEditorContent-DYkIauIk.js → RichTextEditorContent-BmEVMrkJ.js} +38 -38
  19. package/dist/{SaveModuleDialog-FZ9lxY7_.js → SaveModuleDialog-ClovqI6h.js} +28 -28
  20. package/dist/{SnapshotHistory-BR3eV120.js → SnapshotHistory-DoqtH0cw.js} +45 -50
  21. package/dist/{TemplateScoringPanel-4GTNHej5.js → TemplateScoringPanel-DQv2ZAiL.js} +75 -75
  22. package/dist/{TestEmailModal--ue5w9fT.js → TestEmailModal-iIeYJYsj.js} +28 -28
  23. package/dist/{TitleEditor-fStSADI-.js → TitleEditor-CTDIwRF_.js} +68 -68
  24. package/dist/{TplModal-BwSfxIHf.js → TplModal-CBq1J1pG.js} +14 -14
  25. package/dist/{accessibility-e8JYu_zd.js → accessibility-BU09xZrQ.js} +1 -1
  26. package/dist/{blockTypeIcons-BcTrDjmH.js → blockTypeIcons-QkC6f5UE.js} +19 -5
  27. package/dist/bundle-stats.json +7 -7
  28. package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js → AccessibilityPanel-BeU8nz7A.js} +28 -28
  29. package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js.map → AccessibilityPanel-BeU8nz7A.js.map} +1 -1
  30. package/dist/cdn/chunks/{AiFeatureMenu-qEdB2fZJ.js → AiFeatureMenu-B2mhscyP.js} +21 -21
  31. package/dist/cdn/chunks/AiFeatureMenu-B2mhscyP.js.map +1 -0
  32. package/dist/cdn/chunks/{BlockA11yBadge-DcEZftf6.js → BlockA11yBadge-C4g77gF0.js} +11 -11
  33. package/dist/cdn/chunks/{BlockA11yBadge-DcEZftf6.js.map → BlockA11yBadge-C4g77gF0.js.map} +1 -1
  34. package/dist/{CloudEditor-BCz1ZTYC.js → cdn/chunks/CloudEditor-Btyr0b0_.js} +486 -475
  35. package/dist/cdn/chunks/CloudEditor-Btyr0b0_.js.map +1 -0
  36. package/dist/cdn/chunks/{CollaboratorBar--nO7TX6b.js → CollaboratorBar-YBiIjiRh.js} +15 -15
  37. package/dist/cdn/chunks/CollaboratorBar-YBiIjiRh.js.map +1 -0
  38. package/dist/cdn/chunks/CountdownBlock-B06UZoWe.js +93 -0
  39. package/dist/cdn/chunks/CountdownBlock-B06UZoWe.js.map +1 -0
  40. package/dist/cdn/chunks/CountdownToolbar-C9XZr33O.js +212 -0
  41. package/dist/cdn/chunks/CountdownToolbar-C9XZr33O.js.map +1 -0
  42. package/dist/{ModuleBrowserModal-DrUFMTDx.js → cdn/chunks/ModuleBrowserModal-C2CDWKW6.js} +51 -62
  43. package/dist/cdn/chunks/ModuleBrowserModal-C2CDWKW6.js.map +1 -0
  44. package/dist/cdn/chunks/ModulePreviewCanvas-Drt8Evai.js +109 -0
  45. package/dist/cdn/chunks/ModulePreviewCanvas-Drt8Evai.js.map +1 -0
  46. package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js → NumberWithSuffix-Ty1bp9vB.js} +64 -64
  47. package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js.map → NumberWithSuffix-Ty1bp9vB.js.map} +1 -1
  48. package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js → ParagraphEditor-BA1WbHI7.js} +188 -188
  49. package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js.map → ParagraphEditor-BA1WbHI7.js.map} +1 -1
  50. package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js → RichTextEditorContent-BtWCA_Oc.js} +30 -30
  51. package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js.map → RichTextEditorContent-BtWCA_Oc.js.map} +1 -1
  52. package/dist/cdn/chunks/{SaveModuleDialog-B0TnO_o9.js → SaveModuleDialog-AwL0tkCV.js} +21 -21
  53. package/dist/cdn/chunks/SaveModuleDialog-AwL0tkCV.js.map +1 -0
  54. package/dist/cdn/chunks/{TitleEditor-BHpfxvwy.js → TitleEditor-DbSyeixS.js} +65 -65
  55. package/dist/cdn/chunks/TitleEditor-DbSyeixS.js.map +1 -0
  56. package/dist/cdn/chunks/blockTypeIcons-pQIkxJzc.js +23 -0
  57. package/dist/cdn/chunks/blockTypeIcons-pQIkxJzc.js.map +1 -0
  58. package/dist/cdn/chunks/{de-D8CnZxV9.js → de-_tooy3Q8.js} +250 -2
  59. package/dist/cdn/chunks/de-_tooy3Q8.js.map +1 -0
  60. package/dist/cdn/chunks/{draggable-Bcb86AsV.js → draggable-C-1_gch3.js} +2 -2
  61. package/dist/cdn/chunks/{draggable-Bcb86AsV.js.map → draggable-C-1_gch3.js.map} +1 -1
  62. package/dist/cdn/chunks/{en-8FHaQv4V.js → en-CNqLoIm9.js} +250 -2
  63. package/dist/cdn/chunks/en-CNqLoIm9.js.map +1 -0
  64. package/dist/cdn/chunks/{extensions-DIxF31tA.js → extensions-BVKQw_sp.js} +107 -107
  65. package/dist/cdn/chunks/extensions-BVKQw_sp.js.map +1 -0
  66. package/dist/cdn/chunks/{features-DEMb13KS.js → features-DIBEo4xl.js} +3388 -2289
  67. package/dist/cdn/chunks/features-DIBEo4xl.js.map +1 -0
  68. package/dist/cdn/chunks/{icons-CsLTcirh.js → icons-C1Gg-ov-.js} +346 -54
  69. package/dist/cdn/chunks/icons-C1Gg-ov-.js.map +1 -0
  70. package/dist/cdn/chunks/{media-library-CVaNvhpM.js → media-library-BTF_Ko70.js} +985 -985
  71. package/dist/cdn/chunks/media-library-BTF_Ko70.js.map +1 -0
  72. package/dist/cdn/chunks/{quality-BaBfc54_.js → quality-C5AmotmP.js} +312 -312
  73. package/dist/cdn/chunks/quality-C5AmotmP.js.map +1 -0
  74. package/dist/cdn/chunks/{renderer-CUxvx7ro.js → renderer-D0L44Vlp.js} +236 -142
  75. package/dist/cdn/chunks/renderer-D0L44Vlp.js.map +1 -0
  76. package/dist/cdn/chunks/{src-CRaqN-p8.js → src-RKexlYjA.js} +161 -161
  77. package/dist/cdn/chunks/src-RKexlYjA.js.map +1 -0
  78. package/dist/cdn/chunks/styleConstants-PgmvNBzQ.js +57 -0
  79. package/dist/cdn/chunks/styleConstants-PgmvNBzQ.js.map +1 -0
  80. package/dist/cdn/chunks/styles-CQR6ed13.js +4976 -0
  81. package/dist/cdn/chunks/styles-CQR6ed13.js.map +1 -0
  82. package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js → tiptap-CDzAbF2j.js} +43 -43
  83. package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js.map → tiptap-CDzAbF2j.js.map} +1 -1
  84. package/dist/cdn/editor.css +1 -1
  85. package/dist/cdn/editor.js +211 -123
  86. package/dist/cdn/editor.js.map +1 -1
  87. package/dist/{check-Da05j8yl.js → check-DJrpDKO_.js} +1 -1
  88. package/dist/{chevron-down-R2uY34iD.js → chevron-down-C5oBUhT8.js} +1 -1
  89. package/dist/chevron-right-BqCptpdp.js +10 -0
  90. package/dist/{circle-alert-DZuGWPX-.js → circle-alert-ZQQc98HC.js} +1 -1
  91. package/dist/{clock-CRp2sIub.js → clock-ik2pRJKG.js} +1 -1
  92. package/dist/{cloud-DEk_b4CR.js → cloud-DJG4tb4_.js} +485 -427
  93. package/dist/{createLucideIcon-C3pa2siy.js → createLucideIcon-ClREiSx3.js} +6 -6
  94. package/dist/{de-Brqvgr43.js → de-2LEvILeZ.js} +249 -1
  95. package/dist/{dist-Cp0zXPAD.js → dist-BHAeXaUY.js} +1 -1
  96. package/dist/{dist-BaQIYPsn.js → dist-BSJvAvH3.js} +1 -1
  97. package/dist/{dist-wzMIGj-D.js → dist-BeFnymxK.js} +1 -1
  98. package/dist/dist-Bmir0gYb.js +1167 -0
  99. package/dist/{dist-DDJIWTRY.js → dist-BvPgo-UK.js} +1 -1
  100. package/dist/{dist-BFawx6IS.js → dist-CPVBKMmd.js} +51 -51
  101. package/dist/dist-CivF9P8b.js +382 -0
  102. package/dist/{dist-D6uC2xhi.js → dist-Df4ie7vZ.js} +1 -1
  103. package/dist/{dist-us-RpCWN.js → dist-DxOoemkW.js} +1 -1
  104. package/dist/{dist-KoBJjK1G.js → dist-HEQ52gTJ.js} +1 -1
  105. package/dist/{dist-DjviJBCi.js → dist-b-XUqAoF.js} +1 -1
  106. package/dist/{dist-D90y8dvT.js → dist-kZfaVUpW.js} +3 -3
  107. package/dist/{dist-aRzjfSRN.js → dist-wfAedlzi.js} +1 -1
  108. package/dist/{en-WDVp87TE.js → en-D2RU2Poj.js} +249 -1
  109. package/dist/{extensions-CUcl9Ok4.js → extensions-BQ1xXx3d.js} +103 -103
  110. package/dist/{image-up-MBZKKg9p.js → image-up-DT7gcJLN.js} +1 -1
  111. package/dist/index.d.ts +102 -14
  112. package/dist/{info-CJEC7piy.js → info-BSPGcsSM.js} +1 -1
  113. package/dist/keys-CvX8D-8C.js +10 -0
  114. package/dist/{loader-circle-DsY5Yg33.js → loader-circle-Balo8p3d.js} +1 -1
  115. package/dist/{message-circle-yElBbR2C.js → message-circle-B39qAHxs.js} +1 -1
  116. package/dist/pencil-BZJPNYWR.js +10 -0
  117. package/dist/{refresh-cw-CE_AGtn8.js → refresh-cw-DwDqGUM0.js} +1 -1
  118. package/dist/{scan-line-D0vcUekt.js → scan-line-DlghmhNf.js} +1 -1
  119. package/dist/{send-DH4oDQqC.js → send-DDdhIRj8.js} +1 -1
  120. package/dist/{shield-check-CfJgs2Hd.js → shield-check-OSQ-JVTX.js} +1 -1
  121. package/dist/{sparkles-CvRXGqFs.js → sparkles-BN4a-CoF.js} +1 -1
  122. package/dist/style.css +1 -1
  123. package/dist/styleConstants-wWRbcuEK.js +55 -0
  124. package/dist/styles-CavWjvol.js +5487 -0
  125. package/dist/templatical-editor.js +211 -119
  126. package/dist/{text-align-start-BT9VUDxK.js → text-align-start-D1weisjS.js} +1 -1
  127. package/dist/{trash-2-DbP2Y6t2.js → trash-2-CMWvQ5KX.js} +1 -1
  128. package/dist/{triangle-alert-aOXceTSe.js → triangle-alert-DyidRNX_.js} +1 -1
  129. package/dist/undo-2-Cg8I7obC.js +16 -0
  130. package/dist/{useCloudI18n-BuIwR6OE.js → useCloudI18n-BTTNBk5i.js} +2 -2
  131. package/dist/{useEditorCore-C6ost42Q.js → useEditorCore-BGnzcT7p.js} +2424 -2249
  132. package/dist/{useI18n-lb2DHDiu.js → useI18n-C2xQZ6K9.js} +2 -2
  133. package/dist/{useMergeTag-CBwKnnNB.js → useMergeTag-CfuZq2fF.js} +4 -4
  134. package/dist/{vue.runtime.esm-bundler-DpvJL-nX.js → vue.runtime.esm-bundler-CjauPXjj.js} +1 -1
  135. package/dist/{x-u2oVmjN_.js → x-CgIhNcT9.js} +1 -1
  136. package/package.json +15 -15
  137. package/dist/CommentsSidebar-B1pvJdqF.js +0 -441
  138. package/dist/CountdownBlock-BNSj1jvJ.js +0 -92
  139. package/dist/CountdownToolbar-ClJr2GzL.js +0 -210
  140. package/dist/ModulePreviewCanvas-CHdOwV_4.js +0 -106
  141. package/dist/cdn/chunks/AiFeatureMenu-qEdB2fZJ.js.map +0 -1
  142. package/dist/cdn/chunks/CloudEditor-D2GsEC_n.js +0 -1143
  143. package/dist/cdn/chunks/CloudEditor-D2GsEC_n.js.map +0 -1
  144. package/dist/cdn/chunks/CollaboratorBar--nO7TX6b.js.map +0 -1
  145. package/dist/cdn/chunks/CountdownBlock-5YdT1uUu.js +0 -93
  146. package/dist/cdn/chunks/CountdownBlock-5YdT1uUu.js.map +0 -1
  147. package/dist/cdn/chunks/CountdownToolbar-DXPXrbAA.js +0 -212
  148. package/dist/cdn/chunks/CountdownToolbar-DXPXrbAA.js.map +0 -1
  149. package/dist/cdn/chunks/ModuleBrowserModal-DxoPp81s.js +0 -195
  150. package/dist/cdn/chunks/ModuleBrowserModal-DxoPp81s.js.map +0 -1
  151. package/dist/cdn/chunks/ModulePreviewCanvas-CoLdb4ar.js +0 -107
  152. package/dist/cdn/chunks/ModulePreviewCanvas-CoLdb4ar.js.map +0 -1
  153. package/dist/cdn/chunks/SaveModuleDialog-B0TnO_o9.js.map +0 -1
  154. package/dist/cdn/chunks/TitleEditor-BHpfxvwy.js.map +0 -1
  155. package/dist/cdn/chunks/blockTypeIcons-BzzY9_kA.js +0 -22
  156. package/dist/cdn/chunks/blockTypeIcons-BzzY9_kA.js.map +0 -1
  157. package/dist/cdn/chunks/de-D8CnZxV9.js.map +0 -1
  158. package/dist/cdn/chunks/en-8FHaQv4V.js.map +0 -1
  159. package/dist/cdn/chunks/extensions-DIxF31tA.js.map +0 -1
  160. package/dist/cdn/chunks/features-DEMb13KS.js.map +0 -1
  161. package/dist/cdn/chunks/icons-CsLTcirh.js.map +0 -1
  162. package/dist/cdn/chunks/media-library-CVaNvhpM.js.map +0 -1
  163. package/dist/cdn/chunks/quality-BaBfc54_.js.map +0 -1
  164. package/dist/cdn/chunks/renderer-CUxvx7ro.js.map +0 -1
  165. package/dist/cdn/chunks/src-CRaqN-p8.js.map +0 -1
  166. package/dist/cdn/chunks/styleConstants-DP1VOca8.js +0 -57
  167. package/dist/cdn/chunks/styleConstants-DP1VOca8.js.map +0 -1
  168. package/dist/cdn/chunks/styles-BHJULjNR.js +0 -2947
  169. package/dist/cdn/chunks/styles-BHJULjNR.js.map +0 -1
  170. package/dist/dist-B1IR0bpH.js +0 -326
  171. package/dist/dist-DJmnUmW9.js +0 -362
  172. package/dist/keys-ciNfSSGj.js +0 -10
  173. package/dist/styleConstants-fWzlIIwN.js +0 -55
  174. package/dist/styles-DEXEkBvg.js +0 -3176
  175. /package/dist/{_plugin-vue_export-helper-B0hnzhyu.js → _plugin-vue_export-helper-Bwh4ceeO.js} +0 -0
  176. /package/dist/{de-DCaaCE5s.js → de-D2npYjrZ.js} +0 -0
  177. /package/dist/{dist-iLBdeBDR.js → dist-DvHLtWVP.js} +0 -0
  178. /package/dist/{emojiData-PQyVa4bU.js → emojiData-DvQBBzmO.js} +0 -0
  179. /package/dist/{en-DXCyK4-X.js → en-ib-4h3_o.js} +0 -0
  180. /package/dist/{formatRelativeTime-BOEf47hq.js → formatRelativeTime-CFDZnEIs.js} +0 -0
  181. /package/dist/{liquid.browser-CdMv1BTn.js → liquid.browser-7Rv0QDiO.js} +0 -0
  182. /package/dist/{readableTextColor-CY3SiRnt.js → readableTextColor-C_9OpzBw.js} +0 -0
@@ -1,326 +0,0 @@
1
- import { $ as e, A as t, B as n, C as r, E as i, G as a, O as o, T as s, Y as c, et as l, it as u, nt as d, p as f, q as p, z as m } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
- //#region ../../node_modules/.pnpm/@vueuse+shared@14.2.1_vue@3.5.33_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
3
- function h(e, t) {
4
- return a() ? (c(e, t), !0) : !1;
5
- }
6
- var g = /* @__PURE__ */ new WeakMap(), _ = (...e) => {
7
- let t = e[0], n = r()?.proxy ?? a();
8
- if (n == null && !s()) throw Error("injectLocal must be called in setup");
9
- return n && g.has(n) && t in g.get(n) ? g.get(n)[t] : i(...e);
10
- }, v = typeof window < "u" && typeof document < "u";
11
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
12
- var y = (e) => e != null, b = Object.prototype.toString, x = (e) => b.call(e) === "[object Object]", S = () => {}, C = /* @__PURE__ */ w();
13
- function w() {
14
- var e, t;
15
- return v && !!(!((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
- }
17
- function T(e, t) {
18
- function n(...n) {
19
- return new Promise((r, i) => {
20
- Promise.resolve(e(() => t.apply(this, n), {
21
- fn: t,
22
- thisArg: this,
23
- args: n
24
- })).then(r).catch(i);
25
- });
26
- }
27
- return n;
28
- }
29
- var E = (e) => e();
30
- function D(e, t = {}) {
31
- let n, r, i = S, a = (e) => {
32
- clearTimeout(e), i(), i = S;
33
- }, o;
34
- return (s) => {
35
- let c = d(e), l = d(t.maxWait);
36
- return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
37
- i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
38
- n && a(n), r = void 0, e(o());
39
- }, l)), n = setTimeout(() => {
40
- r && a(r), r = void 0, e(s());
41
- }, c);
42
- });
43
- };
44
- }
45
- function O(e) {
46
- return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
47
- }
48
- function k(e) {
49
- return Array.isArray(e) ? e : [e];
50
- }
51
- function A(e) {
52
- return e || r();
53
- }
54
- function j(e, t = 200, n = {}) {
55
- return T(D(t, n), e);
56
- }
57
- function M(e, t, n = {}) {
58
- let { eventFilter: r = E, ...i } = n;
59
- return m(e, T(r, t), i);
60
- }
61
- function N(e, n = !0, r) {
62
- A(r) ? t(e, r) : n ? e() : o(e);
63
- }
64
- function P(t, n = 1e3, r = {}) {
65
- let { immediate: i = !0, immediateCallback: a = !1 } = r, o = null, s = l(!1);
66
- function c() {
67
- o &&= (clearInterval(o), null);
68
- }
69
- function u() {
70
- s.value = !1, c();
71
- }
72
- function f() {
73
- let e = d(n);
74
- e <= 0 || (s.value = !0, a && t(), c(), s.value && (o = setInterval(t, e)));
75
- }
76
- return i && v && f(), (p(n) || typeof n == "function") && h(m(n, () => {
77
- s.value && v && f();
78
- })), h(u), {
79
- isActive: e(s),
80
- pause: u,
81
- resume: f
82
- };
83
- }
84
- function F(t, n, r = {}) {
85
- let { immediate: i = !0, immediateCallback: a = !1 } = r, o = l(!1), s;
86
- function c() {
87
- s &&= (clearTimeout(s), void 0);
88
- }
89
- function u() {
90
- o.value = !1, c();
91
- }
92
- function f(...e) {
93
- a && t(), c(), o.value = !0, s = setTimeout(() => {
94
- o.value = !1, s = void 0, t(...e);
95
- }, d(n));
96
- }
97
- return i && (o.value = !0, v && f()), h(u), {
98
- isPending: e(o),
99
- start: f,
100
- stop: u
101
- };
102
- }
103
- function I(e = !1, t = {}) {
104
- let { truthyValue: n = !0, falsyValue: r = !1 } = t, i = p(e), a = l(e);
105
- function o(e) {
106
- if (arguments.length) return a.value = e, a.value;
107
- {
108
- let e = d(n);
109
- return a.value = a.value === e ? d(r) : e, a.value;
110
- }
111
- }
112
- return i ? o : [a, o];
113
- }
114
- function L(e, t, n = {}) {
115
- let { debounce: r = 0, maxWait: i = void 0, ...a } = n;
116
- return M(e, t, {
117
- ...a,
118
- eventFilter: D(r, { maxWait: i })
119
- });
120
- }
121
- function R(e, t, n) {
122
- return m(e, t, {
123
- ...n,
124
- immediate: !0
125
- });
126
- }
127
- //#endregion
128
- //#region ../../node_modules/.pnpm/@vueuse+core@14.2.1_vue@3.5.33_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
129
- var z = v ? window : void 0;
130
- v && window.document, v && window.navigator, v && window.location;
131
- function B(e) {
132
- let t = d(e);
133
- return t?.$el ?? t;
134
- }
135
- function V(...e) {
136
- let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = f(() => {
137
- let t = k(d(e[0])).filter((e) => e != null);
138
- return t.every((e) => typeof e != "string") ? t : void 0;
139
- });
140
- return R(() => [
141
- n.value?.map((e) => B(e)) ?? [z].filter((e) => e != null),
142
- k(d(n.value ? e[1] : e[0])),
143
- k(u(n.value ? e[2] : e[1])),
144
- d(n.value ? e[3] : e[2])
145
- ], ([e, n, r, i], a, o) => {
146
- if (!e?.length || !n?.length || !r?.length) return;
147
- let s = x(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
148
- o(() => {
149
- c.forEach((e) => e());
150
- });
151
- }, { flush: "post" });
152
- }
153
- var H = !1;
154
- function U(e, t, n = {}) {
155
- let { window: r = z, ignore: i = [], capture: a = !0, detectIframe: o = !1, controls: s = !1 } = n;
156
- if (!r) return s ? {
157
- stop: S,
158
- cancel: S,
159
- trigger: S
160
- } : S;
161
- if (C && !H) {
162
- H = !0;
163
- let e = { passive: !0 };
164
- Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", S, e)), r.document.documentElement.addEventListener("click", S, e);
165
- }
166
- let c = !0, l = (e) => d(i).some((t) => {
167
- if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
168
- {
169
- let n = B(t);
170
- return n && (e.target === n || e.composedPath().includes(n));
171
- }
172
- });
173
- function u(e) {
174
- let t = d(e);
175
- return t && t.$.subTree.shapeFlag === 16;
176
- }
177
- function f(e, t) {
178
- let n = d(e), r = n.$.subTree && n.$.subTree.children;
179
- return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
180
- }
181
- let p = (n) => {
182
- let r = B(e);
183
- if (n.target != null && !(!(r instanceof Element) && u(e) && f(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
184
- if ("detail" in n && n.detail === 0 && (c = !l(n)), !c) {
185
- c = !0;
186
- return;
187
- }
188
- t(n);
189
- }
190
- }, m = !1, h = [
191
- V(r, "click", (e) => {
192
- m || (m = !0, setTimeout(() => {
193
- m = !1;
194
- }, 0), p(e));
195
- }, {
196
- passive: !0,
197
- capture: a
198
- }),
199
- V(r, "pointerdown", (t) => {
200
- let n = B(e);
201
- c = !l(t) && !!(n && !t.composedPath().includes(n));
202
- }, { passive: !0 }),
203
- o && V(r, "blur", (n) => {
204
- setTimeout(() => {
205
- let i = B(e);
206
- r.document.activeElement?.tagName === "IFRAME" && !i?.contains(r.document.activeElement) && t(n);
207
- }, 0);
208
- }, { passive: !0 })
209
- ].filter(Boolean), g = () => h.forEach((e) => e());
210
- return s ? {
211
- stop: g,
212
- cancel: () => {
213
- c = !1;
214
- },
215
- trigger: (e) => {
216
- c = !0, p(e), c = !1;
217
- }
218
- } : g;
219
- }
220
- function W() {
221
- let e = l(!1), n = r();
222
- return n && t(() => {
223
- e.value = !0;
224
- }, n), e;
225
- }
226
- /* @__NO_SIDE_EFFECTS__ */
227
- function G(e) {
228
- let t = W();
229
- return f(() => (t.value, !!e()));
230
- }
231
- function K(e, t, n = {}) {
232
- let { window: r = z, ...i } = n, a, o = /* @__PURE__ */ G(() => r && "MutationObserver" in r), s = () => {
233
- a &&= (a.disconnect(), void 0);
234
- }, c = m(f(() => {
235
- let t = k(d(e)).map(B).filter(y);
236
- return new Set(t);
237
- }), (e) => {
238
- s(), o.value && e.size && (a = new MutationObserver(t), e.forEach((e) => a.observe(e, i)));
239
- }, {
240
- immediate: !0,
241
- flush: "post"
242
- }), l = () => a?.takeRecords(), u = () => {
243
- c(), s();
244
- };
245
- return h(u), {
246
- isSupported: o,
247
- stop: u,
248
- takeRecords: l
249
- };
250
- }
251
- var q = Symbol("vueuse-ssr-width");
252
- /* @__NO_SIDE_EFFECTS__ */
253
- function J() {
254
- let e = s() ? _(q, null) : null;
255
- return typeof e == "number" ? e : void 0;
256
- }
257
- function Y(e, t = {}) {
258
- let { window: r = z, ssrWidth: i = /* @__PURE__ */ J() } = t, a = /* @__PURE__ */ G(() => r && "matchMedia" in r && typeof r.matchMedia == "function"), o = l(typeof i == "number"), s = l(), c = l(!1);
259
- return n(() => {
260
- if (o.value) {
261
- o.value = !a.value, c.value = d(e).split(",").some((e) => {
262
- 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);
263
- return n && a && (a = i >= O(n[1])), r && a && (a = i <= O(r[1])), t ? !a : a;
264
- });
265
- return;
266
- }
267
- a.value && (s.value = r.matchMedia(d(e)), c.value = s.value.matches);
268
- }), V(s, "change", (e) => {
269
- c.value = e.matches;
270
- }, { passive: !0 }), f(() => c.value);
271
- }
272
- function X(e, t, n = {}) {
273
- let { window: r = z, ...i } = n, a, o = /* @__PURE__ */ G(() => r && "ResizeObserver" in r), s = () => {
274
- a &&= (a.disconnect(), void 0);
275
- }, c = m(f(() => {
276
- let t = d(e);
277
- return Array.isArray(t) ? t.map((e) => B(e)) : [B(t)];
278
- }), (e) => {
279
- if (s(), o.value && r) {
280
- a = new ResizeObserver(t);
281
- for (let t of e) t && a.observe(t, i);
282
- }
283
- }, {
284
- immediate: !0,
285
- flush: "post"
286
- }), l = () => {
287
- s(), c();
288
- };
289
- return h(l), {
290
- isSupported: o,
291
- stop: l
292
- };
293
- }
294
- function Z(e, t = {}) {
295
- let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s = l(0), c = l(0), u = l(0), d = l(0), f = l(0), p = l(0), h = l(0), g = l(0);
296
- function _() {
297
- let t = B(e);
298
- if (!t) {
299
- n && (s.value = 0, c.value = 0, u.value = 0, d.value = 0, f.value = 0, p.value = 0, h.value = 0, g.value = 0);
300
- return;
301
- }
302
- let r = t.getBoundingClientRect();
303
- s.value = r.height, c.value = r.bottom, u.value = r.left, d.value = r.right, f.value = r.top, p.value = r.width, h.value = r.x, g.value = r.y;
304
- }
305
- function v() {
306
- o === "sync" ? _() : o === "next-frame" && requestAnimationFrame(() => _());
307
- }
308
- return X(e, v), m(() => B(e), (e) => !e && v()), K(e, v, { attributeFilter: ["style", "class"] }), i && V("scroll", v, {
309
- capture: !0,
310
- passive: !0
311
- }), r && V("resize", v, { passive: !0 }), N(() => {
312
- a && v();
313
- }), {
314
- height: s,
315
- bottom: c,
316
- left: u,
317
- right: d,
318
- top: f,
319
- width: p,
320
- x: h,
321
- y: g,
322
- update: v
323
- };
324
- }
325
- //#endregion
326
- export { j as a, I as c, Y as i, L as l, Z as n, P as o, V as r, F as s, U as t };
@@ -1,362 +0,0 @@
1
- //#region ../types/dist/index.js
2
- var e = {
3
- 1: 36,
4
- 2: 28,
5
- 3: 22,
6
- 4: 18
7
- };
8
- function t(e) {
9
- return e.type === "custom";
10
- }
11
- var n = {
12
- content: "<p>Enter your title</p>",
13
- level: 2,
14
- color: "#1a1a1a",
15
- textAlign: "left"
16
- }, r = { content: "<p>Enter your text here</p>" }, i = {
17
- src: "",
18
- alt: "",
19
- width: "full",
20
- align: "center"
21
- }, a = {
22
- text: "Click Here",
23
- url: "",
24
- backgroundColor: "#333333",
25
- textColor: "#ffffff",
26
- borderRadius: 6,
27
- fontSize: 15,
28
- buttonPadding: {
29
- top: 12,
30
- right: 24,
31
- bottom: 12,
32
- left: 24
33
- }
34
- }, o = {
35
- lineStyle: "solid",
36
- color: "#e0e0e0",
37
- thickness: 1,
38
- width: "full"
39
- }, s = { columns: "1" }, c = {
40
- url: "",
41
- thumbnailUrl: "",
42
- alt: "Video",
43
- width: "full",
44
- align: "center"
45
- }, l = {
46
- iconStyle: "solid",
47
- iconSize: "medium",
48
- spacing: 10,
49
- align: "center"
50
- }, u = { height: 24 }, d = { content: "" }, f = {
51
- fontSize: 15,
52
- color: "#1a1a1a",
53
- textAlign: "center",
54
- separator: "|",
55
- separatorColor: "#e0e0e0",
56
- spacing: 10
57
- }, p = {
58
- hasHeaderRow: !0,
59
- borderColor: "#e0e0e0",
60
- borderWidth: 1,
61
- cellPadding: 8,
62
- fontSize: 15,
63
- color: "#1a1a1a",
64
- textAlign: "left"
65
- }, m = {
66
- targetDate: "",
67
- timezone: "UTC",
68
- showDays: !0,
69
- showHours: !0,
70
- showMinutes: !0,
71
- showSeconds: !0,
72
- separator: ":",
73
- digitFontSize: 32,
74
- digitColor: "#1a1a1a",
75
- labelColor: "#6b7280",
76
- labelFontSize: 12,
77
- backgroundColor: "#ffffff",
78
- labelDays: "Days",
79
- labelHours: "Hours",
80
- labelMinutes: "Minutes",
81
- labelSeconds: "Seconds",
82
- expiredMessage: "This offer has expired",
83
- expiredImageUrl: "",
84
- hideOnExpiry: !1
85
- }, h = {
86
- width: 600,
87
- backgroundColor: "#ffffff",
88
- fontFamily: "Arial",
89
- locale: "en"
90
- };
91
- function g(e) {
92
- return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
93
- }
94
- function _(e, t) {
95
- let n = { ...e };
96
- for (let r of Object.keys(t)) {
97
- let i = e[r], a = t[r];
98
- a !== void 0 && (g(i) && g(a) ? n[r] = _(i, a) : n[r] = a);
99
- }
100
- return n;
101
- }
102
- function v(e = "Arial", t) {
103
- return {
104
- blocks: [],
105
- settings: {
106
- ...h,
107
- fontFamily: e,
108
- ...t
109
- }
110
- };
111
- }
112
- function y(e, t) {
113
- return !t || Object.keys(t).length === 0 ? e : _(e, t);
114
- }
115
- function b() {
116
- return crypto.randomUUID();
117
- }
118
- function x(e = 0) {
119
- return {
120
- top: e,
121
- right: e,
122
- bottom: e,
123
- left: e
124
- };
125
- }
126
- function S(e = 10) {
127
- return {
128
- padding: x(e),
129
- margin: x(0)
130
- };
131
- }
132
- function C(e = {}) {
133
- return y({
134
- id: b(),
135
- type: "title",
136
- ...n,
137
- styles: S()
138
- }, e);
139
- }
140
- function w(e = {}) {
141
- return y({
142
- id: b(),
143
- type: "paragraph",
144
- ...r,
145
- styles: S()
146
- }, e);
147
- }
148
- function T(e = {}) {
149
- return y({
150
- id: b(),
151
- type: "image",
152
- ...i,
153
- styles: S()
154
- }, e);
155
- }
156
- function E(e = {}) {
157
- return y({
158
- id: b(),
159
- type: "button",
160
- ...a,
161
- styles: S()
162
- }, e);
163
- }
164
- function D(e = {}) {
165
- return y({
166
- id: b(),
167
- type: "divider",
168
- ...o,
169
- styles: S(20)
170
- }, e);
171
- }
172
- function O(e = {}) {
173
- return y({
174
- id: b(),
175
- type: "section",
176
- ...s,
177
- children: [[]],
178
- styles: S(20)
179
- }, e);
180
- }
181
- function k(e = {}) {
182
- return y({
183
- id: b(),
184
- type: "video",
185
- ...c,
186
- styles: S()
187
- }, e);
188
- }
189
- function A(e = {}) {
190
- return y({
191
- id: b(),
192
- type: "social",
193
- icons: [],
194
- ...l,
195
- styles: S()
196
- }, e);
197
- }
198
- function j(e = {}) {
199
- return y({
200
- id: b(),
201
- type: "spacer",
202
- ...u,
203
- styles: S(0)
204
- }, e);
205
- }
206
- function M(e = {}) {
207
- return y({
208
- id: b(),
209
- type: "html",
210
- ...d,
211
- styles: S()
212
- }, e);
213
- }
214
- function N(e = {}) {
215
- return y({
216
- id: b(),
217
- type: "menu",
218
- items: [],
219
- ...f,
220
- styles: S()
221
- }, e);
222
- }
223
- function P(e, t) {
224
- return Array.from({ length: t }, () => ({
225
- id: b(),
226
- cells: Array.from({ length: e }, () => ({
227
- id: b(),
228
- content: ""
229
- }))
230
- }));
231
- }
232
- function F(e = {}) {
233
- return y({
234
- id: b(),
235
- type: "table",
236
- rows: P(3, 3),
237
- ...p,
238
- styles: S()
239
- }, e);
240
- }
241
- function I(e = {}) {
242
- return y({
243
- id: b(),
244
- type: "countdown",
245
- ...m,
246
- styles: S()
247
- }, e);
248
- }
249
- function L(e) {
250
- return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
251
- }
252
- function R(e) {
253
- let t = {};
254
- for (let n of e.fields) t[n.key] = L(n);
255
- return {
256
- id: b(),
257
- type: "custom",
258
- customType: e.type,
259
- fieldValues: t,
260
- styles: S(),
261
- ...e.dataSource ? { dataSourceFetched: !1 } : {}
262
- };
263
- }
264
- function z(e, t) {
265
- switch (e) {
266
- case "section": return O(t?.section);
267
- case "title": return C(t?.title);
268
- case "paragraph": return w(t?.paragraph);
269
- case "image": return T(t?.image);
270
- case "button": return E(t?.button);
271
- case "divider": return D(t?.divider);
272
- case "video": return k(t?.video);
273
- case "social": return A(t?.social);
274
- case "spacer": return j(t?.spacer);
275
- case "html": return M(t?.html);
276
- case "menu": return N(t?.menu);
277
- case "table": return F(t?.table);
278
- case "countdown": return I(t?.countdown);
279
- default: throw Error(`Unknown block type: ${e}`);
280
- }
281
- }
282
- function B(e) {
283
- let t = JSON.parse(JSON.stringify(e));
284
- return t.id = b(), t.type === "section" && (t.children = t.children.map((e) => e.map((e) => B(e)))), t;
285
- }
286
- var V = {
287
- liquid: {
288
- value: /\{\{.+?\}\}/g,
289
- logic: /\{%-?\s*(\w+).*?-?%\}/g
290
- },
291
- handlebars: {
292
- value: /\{\{\{?.+?\}?\}\}/g,
293
- logic: /\{\{[#/](\w+).*?\}\}/g
294
- },
295
- mailchimp: {
296
- value: /\*\|\w+\|\*/g,
297
- logic: /\*\|(\w+)[:|].*?\|\*/g
298
- },
299
- ampscript: {
300
- value: /%%=.+?=%%/g,
301
- logic: /%%\[\s*(\w+).*?\]%%/g
302
- }
303
- }, H = {
304
- liquid: "{{",
305
- handlebars: "{{",
306
- mailchimp: "*|",
307
- ampscript: "%%="
308
- };
309
- function U(e) {
310
- for (let t of Object.keys(V)) if (V[t].value.source === e.value.source) return H[t];
311
- return null;
312
- }
313
- function W(e) {
314
- return e ? typeof e == "string" ? V[e] ?? V.liquid : e : V.liquid;
315
- }
316
- function G(e) {
317
- let t = e.source, n = e.flags.replace("g", "");
318
- return RegExp(`^${t}$`, n);
319
- }
320
- function K(e, t) {
321
- let n = e?.trim() || "";
322
- return G(t.logic).test(n) ? !1 : G(t.value).test(n);
323
- }
324
- function q(e, t) {
325
- let n = t.find((t) => t.value === e);
326
- return n ? n.label : e;
327
- }
328
- function J(e, t) {
329
- return e.replace(/(<span[^>]*\sdata-merge-tag="([^"]*)"[^>]*>)(.*?)(<\/span>)/g, (e, n, r, i, a) => `${n}${q(r, t)}${a}`);
330
- }
331
- function Y(e, t) {
332
- if (!e) return !1;
333
- let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
334
- return n.test(e) || r.test(e);
335
- }
336
- function X(e, t) {
337
- return G(t.logic).test(e?.trim() || "");
338
- }
339
- function Z(e, t) {
340
- let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
341
- return r && r[1] ? r[1].toUpperCase() : e;
342
- }
343
- function Q(e, t) {
344
- return e.replace(/(<span[^>]*\sdata-logic-merge-tag="([^"]*)"[^>]*>)(.*?)(<\/span>)/g, (e, n, r, i, a) => `${n}${Z(r, t)}${a}`);
345
- }
346
- var $ = class extends Error {
347
- constructor(e, t) {
348
- super(e), this.statusCode = t, this.name = "SdkError";
349
- }
350
- statusCode;
351
- get isNotFound() {
352
- return this.statusCode === 404;
353
- }
354
- get isUnauthorized() {
355
- return this.statusCode === 401;
356
- }
357
- get isServerError() {
358
- return this.statusCode !== void 0 && this.statusCode >= 500;
359
- }
360
- };
361
- //#endregion
362
- export { J as A, Z as C, X as D, t as E, K as O, b as S, U as T, A as _, Y as a, C as b, I as c, D as d, M as f, O as g, w as h, B as i, W as j, Q as k, R as l, N as m, V as n, z as o, T as p, $ as r, E as s, e as t, v as u, j as v, q as w, k as x, F as y };
@@ -1,10 +0,0 @@
1
- import { E as e } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
- //#region src/keys.ts
3
- var t = Symbol("translations"), n = Symbol("editor"), r = Symbol("history"), i = Symbol("blockActions"), a = Symbol("conditionPreview"), o = Symbol("fontsManager"), s = Symbol("themeStyles"), c = Symbol("tplUiTheme"), l = Symbol("blockDefaults"), u = Symbol("blockRegistry"), d = Symbol("customBlockDefinitions"), f = Symbol("mergeTags"), p = Symbol("mergeTagSyntax"), m = Symbol("onRequestMergeTag"), h = Symbol("mergeTagAutocomplete"), g = Symbol("onRequestMedia"), _ = Symbol("displayConditions"), v = Symbol("allowCustomConditions"), y = Symbol("capabilities"), b = Symbol("keyboardReorder"), x = Symbol("accessibilityLint"), S = Symbol("authManager"), C = Symbol("aiConfig"), w = Symbol("comments"), T = Symbol("savedModulesHeadless"), E = Symbol("scoring"), D = Symbol("cloudTranslations");
4
- function O(t, n) {
5
- let r = e(t, null);
6
- if (r == null) throw Error(`${n} requires a provider for ${t.description ?? "unknown key"}. Ensure it is a descendant of Editor or CloudEditor.`);
7
- return r;
8
- }
9
- //#endregion
10
- export { T as C, c as D, t as E, O, m as S, s as T, b as _, i as a, p as b, y as c, a as d, d as f, r as g, o as h, S as i, D as l, n as m, C as n, l as o, _ as p, v as r, u as s, x as t, w as u, f as v, E as w, g as x, h as y };