@emailmaker/emailmaker 1.1.44 → 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.
- package/emailmaker-core.7f77c8e5.js +663 -0
- package/emailmaker-esm.js +1587 -1384
- package/emailmaker.d.ts +8 -0
- package/emailmaker.js +4077 -3766
- package/iframe/js/amp.Op4DZt9X.js +1 -1
- package/iframe/js/iframe-eblock.js +1 -1
- package/iframe/js/iframe.js +1 -1
- package/iframe/js/rules.B-wCbIo7.js +1 -1
- package/npm-publish.manifest.json +13 -13
- package/package.json +1 -1
- package/singlepage_headless_plugin.html +1 -1
- package/static/core/{87046041.js → 1e9b3ac0.js} +5 -5
- package/static/core/{aca56cbd.js → 3061fb0a.js} +6 -6
- package/static/core/{13625145.js → 392598f0.js} +4367 -4049
- package/static/core/{817fa7b9.js → 39da69f4.js} +2846 -2642
- package/static/core/{2fc2fdef.js → 3b17491b.js} +3 -3
- package/static/core/{b9218a7a.js → 56cdb425.js} +4 -4
- package/static/core/{17738ed52.js → 80fb5b6a2.js} +5 -5
- package/static/core/{855e2647.js → 87cde128.js} +2641 -2564
- package/static/core/{2f7f1bbb.js → b039deae.js} +3 -3
- package/static/core/{7e4a0267.js → c189c538.js} +7 -7
- package/static/core/{9053f080.js → f910bde1.js} +151 -146
- package/static/core/{c42188e4.js → fa02d83e.js} +7 -7
- package/static/esm/176b4cb2.js +131 -0
- package/static/esm/{b8792b4f.js → 705e2770.js} +907 -793
- package/two_step_headless_plugin.html +1 -1
- package/emailmaker-core.83b5b773.js +0 -637
- package/static/esm/c951742a.js +0 -127
- /package/iframe/{iframe-eblock.83b5b773.html → iframe-eblock.7f77c8e5.html} +0 -0
- /package/iframe/{iframe.83b5b773.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/
|
|
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/
|
|
7
|
+
"static/core/39da69f4.js",
|
|
8
8
|
"static/core/51fd08fd.js",
|
|
9
|
-
"static/core/
|
|
10
|
-
"static/core/
|
|
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/
|
|
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("./
|
|
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("./
|
|
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 };
|