@emailmaker/emailmaker 1.1.53 → 1.1.60

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 (66) hide show
  1. package/emailmaker-core.dd403703.js +673 -0
  2. package/emailmaker-esm.js +888 -565
  3. package/emailmaker.d.ts +8 -0
  4. package/emailmaker.js +762 -479
  5. package/iframe/js/amp.V09Q6hy6.js +1 -1
  6. package/iframe/js/iframe-eblock.js +1 -1
  7. package/iframe/js/iframe.js +1 -1
  8. package/iframe/js/rules.B-wCbIo7.js +1 -1
  9. package/npm-publish.manifest.json +7 -7
  10. package/package.json +1 -7
  11. package/runtime/THIRD_PARTY_LICENSES.txt +0 -235
  12. package/runtime/index.js +0 -2
  13. package/runtime/package.json +0 -6
  14. package/runtime/plugin-dev-manifest.json +0 -4
  15. package/singlepage_headless_plugin.html +1 -1
  16. package/static/core/{b3475019.js → 1567a51d.js} +3 -3
  17. package/static/core/{3723b7392.js → 17f94ad52.js} +2 -2
  18. package/static/core/{cc1487fb.js → 3763d012.js} +221 -210
  19. package/static/core/{f903e0b02.js → 3b0afd352.js} +17 -17
  20. package/static/core/{9f0a0813.js → 478adc67.js} +26 -8
  21. package/static/core/{83b6ffb1.js → 5430829b.js} +15291 -14910
  22. package/static/core/{51d702ff2.js → 54db7dc92.js} +3 -3
  23. package/static/core/{97d77f4b.js → 5761661e.js} +5 -5
  24. package/static/core/{7f43dc55.js → 5c5734a1.js} +10 -10
  25. package/static/core/{704587a1.js → 60b14e0c.js} +17 -17
  26. package/static/core/6115fe1b.js +3150 -0
  27. package/static/core/{9e5fd9cd.js → 7515f9852.js} +1 -1
  28. package/static/core/{1ce9dbcd2.js → 86a167002.js} +4 -4
  29. package/static/core/{54619353.js → 86ef0d53.js} +7 -7
  30. package/static/core/{10ac6936.js → 87d6fa75.js} +5 -5
  31. package/static/core/8b2a4177.js +811 -0
  32. package/static/core/{c4f07357.js → 95fcea69.js} +5 -5
  33. package/static/core/{956da3cd.js → 99b9545a.js} +9096 -9074
  34. package/static/core/{b6536443.js → 9be94d262.js} +1 -1
  35. package/static/core/{d745f656.js → a88dd635.js} +1019 -1032
  36. package/static/core/{d858c4102.js → aa8e5c1c2.js} +3 -3
  37. package/static/core/{51134c092.js → afd04ca42.js} +4 -4
  38. package/static/core/{7e999d72.js → b6907f0c.js} +13 -13
  39. package/static/core/{c46c4a1e2.js → b6cc5b522.js} +4 -4
  40. package/static/core/c734b889.js +466 -0
  41. package/static/core/{61a44678.js → cbac193c.js} +6789 -4865
  42. package/static/core/{927ea89f2.js → d7506406.js} +1 -1
  43. package/static/core/{d6b9ee5f2.js → d76199d02.js} +15 -15
  44. package/static/core/{abb0338c.js → d89e1015.js} +90 -90
  45. package/static/core/{4f1afec5.js → e437b0b0.js} +787 -792
  46. package/static/core/{b768aab6.js → e57264b8.js} +3 -3
  47. package/static/core/{57d41489.js → e900413d.js} +2134 -2040
  48. package/static/core/{4a0c3723.js → f25e08d3.js} +25 -25
  49. package/static/core/{75e0e02f.js → fa39fd23.js} +26 -26
  50. package/static/core/{898acf3a.js → fd0c6ce7.js} +8 -8
  51. package/static/core/{4a151a86.js → ffb0449a.js} +42 -42
  52. package/static/core/{c79a7344.js → ffd61885.js} +5 -5
  53. package/static/esm/7cd4296a.js +131 -0
  54. package/static/esm/{1ce2bc32.js → adb3ef80.js} +69 -88
  55. package/two_step_headless_plugin.html +1 -1
  56. package/emailmaker-core.2cbaea2b.js +0 -643
  57. package/runtime/prop-types/index.js +0 -4
  58. package/runtime/react-router-dom/index.js +0 -2
  59. package/static/core/342d650a.js +0 -467
  60. package/static/core/3bff559e.js +0 -3097
  61. package/static/core/9e7e9aa52.js +0 -602
  62. package/static/esm/c9e541a3.js +0 -127
  63. package/static/runtime/dom-export-CHgQ7Ws9.js +0 -8069
  64. package/static/runtime/prop-types-p_yYKrF7.js +0 -47
  65. /package/iframe/{iframe-eblock.2cbaea2b.html → iframe-eblock.dd403703.html} +0 -0
  66. /package/iframe/{iframe.2cbaea2b.html → iframe.dd403703.html} +0 -0
@@ -1,127 +0,0 @@
1
- import { a as P, i as I } from "./1ce2bc32.js";
2
- import "@emailmaker/emailmaker/runtime/react";
3
- function i(o) {
4
- if (o instanceof DOMException && o.name === "AbortError") return o;
5
- const t = o === void 0 ? "The operation was aborted." : typeof o == "string" ? o : o instanceof Error ? o.message : String(o);
6
- return new DOMException(t, "AbortError");
7
- }
8
- function f(o) {
9
- if (o?.aborted) throw i(o.reason);
10
- }
11
- function l(o, t) {
12
- return t ? (f(t), new Promise((_, E) => {
13
- const n = () => {
14
- N(), E(i(t.reason));
15
- }, N = () => {
16
- t.removeEventListener("abort", n);
17
- };
18
- t.addEventListener("abort", n), o.then((D) => {
19
- N(), _(D);
20
- }, (D) => {
21
- N(), E(D);
22
- });
23
- })) : o;
24
- }
25
- function M(o) {
26
- return typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(o) : o.replace(/([^a-zA-Z0-9_-])/g, "\\$1");
27
- }
28
- function T(o, t = document) {
29
- try {
30
- const E = t.querySelector(o);
31
- if (E) return E;
32
- } catch {
33
- return null;
34
- }
35
- const _ = t.querySelectorAll("*");
36
- for (let E = 0; E < _.length; E++) {
37
- const n = _[E]?.shadowRoot;
38
- if (!n) continue;
39
- const N = T(o, n);
40
- if (N) return N;
41
- }
42
- return null;
43
- }
44
- function R(o, t = []) {
45
- const _ = o.querySelectorAll("*");
46
- for (let E = 0; E < _.length; E++) {
47
- const n = _[E]?.shadowRoot;
48
- n && (t.push(n), R(n, t));
49
- }
50
- return t;
51
- }
52
- function p(o, t, _) {
53
- if (o.isConnected) return o;
54
- const E = o.id?.trim();
55
- return E ? b(`#${M(E)}`, t, _) : Promise.reject(i("Editor mount element was disconnected and has no id — pass a CSS selector or call init() again after the host remounts the container."));
56
- }
57
- function b(o, t, _) {
58
- if (f(_), typeof o < "u") {
59
- if (typeof o == "string") {
60
- const E = o, n = T(E);
61
- if (n) return n;
62
- const N = t.addDisposable(new P());
63
- return new Promise((D, a) => {
64
- const O = (e) => {
65
- N.dispose(), e();
66
- }, c = () => {
67
- O(() => a(i(_?.reason)));
68
- };
69
- if (_?.aborted) {
70
- c();
71
- return;
72
- }
73
- _?.addEventListener("abort", c), N.addDispose(() => _?.removeEventListener("abort", c));
74
- const u = document.body ?? document.documentElement;
75
- if (!u) {
76
- O(() => a(i("Document is not ready to observe mount element")));
77
- return;
78
- }
79
- const A = /* @__PURE__ */ new Set(), L = new MutationObserver(() => {
80
- const e = T(E);
81
- if (e) {
82
- O(() => D(e));
83
- return;
84
- }
85
- S();
86
- }), d = (e) => {
87
- A.has(e) || (A.add(e), L.observe(e, {
88
- attributes: !0,
89
- childList: !0,
90
- subtree: !0
91
- }));
92
- }, S = () => {
93
- const e = document.documentElement;
94
- if (e) for (const C of R(e)) d(C);
95
- };
96
- d(u), S(), N.addDispose(() => L.disconnect());
97
- });
98
- }
99
- return o instanceof Element ? p(o, t, _) : o;
100
- }
101
- return o;
102
- }
103
- var w = /* @__PURE__ */ new Map();
104
- I("ELEMENT_INSERT_HTML_PIPELINE");
105
- I("BLOCK_INSERT_HTML_PIPELINE");
106
- I("DomComponentRegistry");
107
- I("ComponentRegistry");
108
- function r(o) {
109
- return I(o);
110
- }
111
- var s;
112
- (function(o) {
113
- o.BEFORE_SAVE_EMAIL = r(), o.ON_SAVEBUTTON_CLICK_ID = r(), o.ON_NEXTBUTTON_CLICK_ID = r(), o.ON_PREVIOUSBUTTON_CLICK_ID = r(), o.ON_MODEL_CHANGE = r(), o.WILL_EMAIL_INIT_ID = r(), o.ON_EMAIL_INIT_ID = r(), o.ON_BLOCK_INIT_ID = r(), o.ON_CONTENT_CHANGED_ID = r(), o.ON_PREHEADER_CHANGED_ID = r(), o.ON_SUBJECT_CHANGED_ID = r(), o.ON_EMAIL_CHANGED_ID = r(), o.ON_BLOCK_CHANGED_ID = r(), o.ON_CHUNKS_LOADED = r(), o.ON_SEND_TESTEMAIL_ID = r(), o.ON_SEND_LIVEPREVIEW_ID = r(), o.ON_SHARE_ID = r(), o.ON_SHOW_PREVIEW_ID = r(), o.ON_EMAIL_CLONE_ID = r(), o.ON_SEND_EMAIL_MODAL_ID = r(), o.ON_NOTIFICATION = r(), o.READ_LOCALE = r(), o.ON_TRANSLATE_ID = r(), o.ON_CODE_VALIDATE_ID = r(), o.UPLOAD_EVENT_ID = r(), o.PROXY_URL_EVENT_ID = r(), o.FILE_PROXY_EVENT_ID = r(), o.ON_LIMIT_ID = r(), o.ON_BROWSER_EXTENSION_DETECTED_ID = r(), o.ON_LAYOUT_CONVERT_REQUEST_ID = r(), o.ON_BROWSER_TRANSLATE_DETECTED_ID = r(), o.AI_TEXT_REQUEST_ID = r(), o.AI_IMAGE_REQUEST_ID = r(), o.AI_TEXT_PROGRESS_ID = r(), o.AI_IMAGE_PROGRESS_ID = r(), o.AI_TEXT_STREAM_ID = r();
114
- })(s || (s = {}));
115
- I();
116
- I();
117
- I("InitPipelineContext");
118
- I();
119
- I();
120
- I();
121
- I();
122
- I();
123
- I();
124
- I("PluginCollection");
125
- r("APP_LOAD_EVENT");
126
- r("CONFIG_CHANGED_EVENT");
127
- export { f as a, l as i, b as n, i as r, w as t };