@emailmaker/emailmaker 1.1.43 → 1.1.45-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/emailmaker-core.7f77c8e5.js +663 -0
  2. package/emailmaker-esm.js +1587 -1384
  3. package/emailmaker.d.ts +8 -0
  4. package/emailmaker.js +4077 -3766
  5. package/iframe/js/amp.Op4DZt9X.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 +57 -0
  10. package/package.json +2 -3
  11. package/singlepage_headless_plugin.html +1 -1
  12. package/static/core/{5235ce86.js → 1e9b3ac0.js} +158 -158
  13. package/static/core/{3aa157fc.js → 3061fb0a.js} +84 -84
  14. package/static/core/{b76b2f0e.js → 3684652a.js} +24 -24
  15. package/static/core/{4bd9eb47.js → 392598f0.js} +4368 -4050
  16. package/static/core/{817fa7b9.js → 39da69f4.js} +2846 -2642
  17. package/static/core/{2fc2fdef.js → 3b17491b.js} +3 -3
  18. package/static/core/{10304f0f.js → 41282200.js} +5996 -5988
  19. package/static/core/{b9218a7a.js → 56cdb425.js} +4 -4
  20. package/static/core/{7572b4092.js → 80fb5b6a2.js} +7 -7
  21. package/static/core/{855e2647.js → 87cde128.js} +2641 -2564
  22. package/static/core/{5734d163.js → a5701653.js} +21 -21
  23. package/static/core/{2f7f1bbb.js → b039deae.js} +3 -3
  24. package/static/core/{c197c069.js → c189c538.js} +76 -76
  25. package/static/core/{1a072c1f.js → e8d51fcb.js} +149 -149
  26. package/static/core/{2abd616a.js → f34c0a04.js} +3 -3
  27. package/static/core/{9053f080.js → f910bde1.js} +151 -146
  28. package/static/core/{c42188e4.js → fa02d83e.js} +7 -7
  29. package/static/esm/176b4cb2.js +131 -0
  30. package/static/esm/{b8792b4f.js → 705e2770.js} +907 -793
  31. package/two_step_headless_plugin.html +1 -1
  32. package/emailmaker-core.8b808ca0.js +0 -637
  33. package/static/esm/c951742a.js +0 -127
  34. /package/iframe/{iframe-eblock.8b808ca0.html → iframe-eblock.7f77c8e5.html} +0 -0
  35. /package/iframe/{iframe.8b808ca0.html → iframe.7f77c8e5.html} +0 -0
@@ -1,22 +1,22 @@
1
1
  (function(){try{if(typeof document<"u"){var o=document.createElement("style");o.setAttribute("data-emailmaker","true"),o.appendChild(document.createTextNode('.monaco-editor{width:100%;height:100%}.monaco-editor .monaco-hover{border-radius:6px}.monaco-editor .monaco-editor .scroll-decoration{box-shadow:none}.monaco-editor,.monaco-editor *,.monaco-editor .view-lines,.monaco-editor .view-lines *,.monaco-editor .view-lines .view-line,.monaco-editor .view-lines .monaco-mouse-cursor-text,.monaco-editor .view-line,.monaco-editor .monaco-mouse-cursor-text{font-family:var(--monaco-editor-font-family,"Source Code Pro", Consolas, "Courier New", monospace)!important}.monaco-editor .view-line,.monaco-editor .view-line span,.monaco-editor .view-line span.inline-selected-text{font-variant-ligatures:none;font-feature-settings:"liga" 0, "calt" 0;font-kerning:none;white-space:pre;font-family:var(--monaco-monospace-font,var(--monaco-editor-font-family,"Source Code Pro", Consolas, "Courier New", monospace))!important;font-size:var(--monaco-editor-font-size,14px)!important;font-weight:400!important}.monaco-editor .standalone-colorpicker-body{max-width:460px!important}.monaco-editor .standalone-colorpicker-body .colorpicker-body .saturation-wrap{flex:0 auto;max-width:280px}.blocks-app .colorpicker-body .saturation-box,.blocks-app .colorpicker-body .strip{border-radius:4px}.blocks-app .scrollbar.vertical{width:5px!important}.blocks-app .scrollbar.vertical .slider{border-radius:5px!important;width:5px!important}.blocks-app .user-cursor{z-index:10;border-left:2px solid #ff00e1;width:2px;height:20px;position:absolute}.blocks-app .cursor-hover{color:#fff;text-wrap-mode:nowrap;z-index:10000;border-radius:7px 7px 7px 0;margin-left:-2px;padding:0 5px;font-size:12px;position:absolute;top:-17px}.blocks-app .user-selection-decoration{background-color:#8080eb4d}.monaco-editor__spin{z-index:1000;align-items:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- __emailmaker__.define("static/core/c42188e4.js", [
2
+ __emailmaker__.define("static/core/fa02d83e.js", [
3
3
  "require",
4
4
  "exports",
5
5
  "module",
6
6
  "static/core/16c2710d.js",
7
- "static/core/817fa7b9.js",
7
+ "static/core/39da69f4.js",
8
8
  "static/core/51fd08fd.js",
9
- "static/core/2fc2fdef.js",
10
- "static/core/2f7f1bbb.js",
9
+ "static/core/3b17491b.js",
10
+ "static/core/b039deae.js",
11
11
  "static/core/898acf3a.js",
12
12
  "static/core/b4a6f1ca2.js",
13
- "static/core/b9218a7a.js",
13
+ "static/core/56cdb425.js",
14
14
  "react",
15
15
  "react/jsx-runtime"
16
16
  ], function($e, bc, Gy) {
17
- const g = $e("./16c2710d.js"), y = $e("./817fa7b9.js"), ue = $e("./51fd08fd.js"), ot = $e("./2fc2fdef.js"), sr = $e("./2f7f1bbb.js");
17
+ const g = $e("./16c2710d.js"), y = $e("./39da69f4.js"), ue = $e("./51fd08fd.js"), ot = $e("./3b17491b.js"), sr = $e("./b039deae.js");
18
18
  $e("./898acf3a.js");
19
- const Ae = $e("./b4a6f1ca2.js"), ge = $e("./b9218a7a.js");
19
+ const Ae = $e("./b4a6f1ca2.js"), ge = $e("./56cdb425.js");
20
20
  let S = $e("react"), $ = g.__toESM(S, 1);
21
21
  S = g.__toESM(S);
22
22
  let Dt = $e("react/jsx-runtime");
@@ -0,0 +1,131 @@
1
+ import { d as P, s as e } from "./e21389f1.js";
2
+ import "@emailmaker/emailmaker/runtime/react";
3
+ function i(r) {
4
+ if (r instanceof DOMException && r.name === "AbortError") return r;
5
+ const t = r === void 0 ? "The operation was aborted." : typeof r == "string" ? r : r instanceof Error ? r.message : String(r);
6
+ return new DOMException(t, "AbortError");
7
+ }
8
+ function S(r) {
9
+ if (r?.aborted) throw i(r.reason);
10
+ }
11
+ function h(r, t) {
12
+ return t ? (S(t), new Promise((n, E) => {
13
+ const _ = () => {
14
+ N(), E(i(t.reason));
15
+ }, N = () => {
16
+ t.removeEventListener("abort", _);
17
+ };
18
+ t.addEventListener("abort", _), r.then((D) => {
19
+ N(), n(D);
20
+ }, (D) => {
21
+ N(), E(D);
22
+ });
23
+ })) : r;
24
+ }
25
+ function p(r) {
26
+ return typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(r) : r.replace(/([^a-zA-Z0-9_-])/g, "\\$1");
27
+ }
28
+ function T(r, t = document) {
29
+ try {
30
+ const E = t.querySelector(r);
31
+ if (E) return E;
32
+ } catch {
33
+ return null;
34
+ }
35
+ const n = t.querySelectorAll("*");
36
+ for (let E = 0; E < n.length; E++) {
37
+ const _ = n[E]?.shadowRoot;
38
+ if (!_) continue;
39
+ const N = T(r, _);
40
+ if (N) return N;
41
+ }
42
+ return null;
43
+ }
44
+ function C(r, t = []) {
45
+ const n = r.querySelectorAll("*");
46
+ for (let E = 0; E < n.length; E++) {
47
+ const _ = n[E]?.shadowRoot;
48
+ _ && (t.push(_), C(_, t));
49
+ }
50
+ return t;
51
+ }
52
+ function b(r, t, n) {
53
+ if (r.isConnected) return r;
54
+ const E = r.id?.trim();
55
+ return E ? M(`#${p(E)}`, t, n) : 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 M(r, t, n) {
58
+ if (S(n), typeof r < "u") {
59
+ if (typeof r == "string") {
60
+ const E = r, _ = T(E);
61
+ if (_) return _;
62
+ const N = t.addDisposable(new P());
63
+ return new Promise((D, a) => {
64
+ const O = (I) => {
65
+ N.dispose(), I();
66
+ }, c = () => {
67
+ O(() => a(i(n?.reason)));
68
+ };
69
+ if (n?.aborted) {
70
+ c();
71
+ return;
72
+ }
73
+ n?.addEventListener("abort", c), N.addDispose(() => n?.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 I = T(E);
81
+ if (I) {
82
+ O(() => D(I));
83
+ return;
84
+ }
85
+ d();
86
+ }), s = (I) => {
87
+ A.has(I) || (A.add(I), L.observe(I, {
88
+ attributes: !0,
89
+ childList: !0,
90
+ subtree: !0
91
+ }));
92
+ }, d = () => {
93
+ const I = document.documentElement;
94
+ if (I) for (const R of C(I)) s(R);
95
+ };
96
+ s(u), d(), N.addDispose(() => L.disconnect());
97
+ });
98
+ }
99
+ return r instanceof Element ? b(r, t, n) : r;
100
+ }
101
+ return r;
102
+ }
103
+ var w = /* @__PURE__ */ new Map();
104
+ e("ELEMENT_INSERT_HTML_PIPELINE");
105
+ e("BLOCK_INSERT_HTML_PIPELINE");
106
+ e("DomComponentRegistry");
107
+ e("ComponentRegistry");
108
+ function o(r) {
109
+ return e(r);
110
+ }
111
+ var f;
112
+ (function(r) {
113
+ r.BEFORE_SAVE_EMAIL = o(), r.ON_SAVEBUTTON_CLICK_ID = o(), r.ON_NEXTBUTTON_CLICK_ID = o(), r.ON_PREVIOUSBUTTON_CLICK_ID = o(), r.ON_MODEL_CHANGE = o(), r.WILL_EMAIL_INIT_ID = o(), r.ON_EMAIL_INIT_ID = o(), r.ON_BLOCK_INIT_ID = o(), r.ON_CONTENT_CHANGED_ID = o(), r.ON_PREHEADER_CHANGED_ID = o(), r.ON_SUBJECT_CHANGED_ID = o(), r.ON_EMAIL_CHANGED_ID = o(), r.ON_BLOCK_CHANGED_ID = o(), r.ON_CHUNKS_LOADED = o(), r.ON_SEND_TESTEMAIL_ID = o(), r.ON_SEND_LIVEPREVIEW_ID = o(), r.ON_SHARE_ID = o(), r.ON_SHOW_PREVIEW_ID = o(), r.ON_EMAIL_CLONE_ID = o(), r.ON_SEND_EMAIL_MODAL_ID = o(), r.ON_NOTIFICATION = o(), r.READ_LOCALE = o(), r.ON_TRANSLATE_ID = o(), r.ON_CODE_VALIDATE_ID = o(), r.UPLOAD_EVENT_ID = o(), r.PROXY_URL_EVENT_ID = o(), r.FILE_PROXY_EVENT_ID = o(), r.ON_LIMIT_ID = o(), r.ON_BROWSER_EXTENSION_DETECTED_ID = o(), r.ON_LAYOUT_CONVERT_REQUEST_ID = o(), r.ON_BROWSER_TRANSLATE_DETECTED_ID = o();
114
+ })(f || (f = {}));
115
+ e();
116
+ e();
117
+ e("InitPipelineContext");
118
+ e();
119
+ e();
120
+ e();
121
+ e();
122
+ e();
123
+ e();
124
+ e();
125
+ e();
126
+ e("plugin.jwt.token");
127
+ e("plugin.jwt.error");
128
+ e("PluginCollection");
129
+ o("APP_LOAD_EVENT");
130
+ o("CONFIG_CHANGED_EVENT");
131
+ export { S as a, h as i, M as n, i as r, w as t };