@emailmaker/emailmaker 1.1.46 → 1.1.53
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.0eca2ff8.js → emailmaker-core.2cbaea2b.js} +78 -72
- package/emailmaker-esm.js +620 -3190
- package/emailmaker.d.ts +184 -52
- package/emailmaker.js +818 -12588
- package/iframe/js/amp.V09Q6hy6.js +1 -0
- 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/monacoeditorwork/css.worker.bundle.js +40524 -40442
- package/monacoeditorwork/editor.worker.bundle.js +9740 -9697
- package/monacoeditorwork/html.worker.bundle.js +50513 -50431
- package/monacoeditorwork/json.worker.bundle.js +14570 -14527
- package/monacoeditorwork/ts.worker.bundle.js +119593 -119455
- package/npm-publish.manifest.json +7 -7
- package/package.json +1 -1
- package/runtime/@ant-design/cssinjs/index.js +1 -1
- package/runtime/@ant-design/icons/index.js +2 -2
- package/runtime/README.md +1 -1
- package/runtime/THIRD_PARTY_LICENSES.txt +71 -43
- package/runtime/antd/index.js +1 -1
- package/runtime/react/index.js +3 -3
- package/runtime/react/jsx-runtime/index.js +1 -1
- package/runtime/react-dom/client/index.js +4 -4
- package/runtime/react-dom/index.js +3 -3
- package/runtime/react-router-dom/index.js +2 -2
- package/singlepage_headless_plugin.html +1 -1
- package/static/core/342d650a.js +467 -0
- package/static/core/{e7554764.js → 3bff559e.js} +573 -554
- package/static/core/4a0c3723.js +655 -0
- package/static/core/{f62c7573.js → 4a151a86.js} +41 -41
- package/static/core/4f1afec5.js +2095 -0
- package/static/core/{1f63a578.js → 57d41489.js} +3960 -3704
- package/static/core/{3cf9dc9b.js → 61a44678.js} +7773 -6593
- package/static/core/{dc3b3081.js → 704587a1.js} +18 -18
- package/static/core/{36e22fa5.js → 75e0e02f.js} +17 -17
- package/static/core/{8833ee6c.js → 7e999d72.js} +856 -755
- package/static/core/{6410579b.js → 7f43dc55.js} +7 -7
- package/static/core/{ac8a414a.js → 83b6ffb1.js} +17365 -17141
- package/static/core/{868e86a7.js → 956da3cd.js} +6209 -6155
- package/static/core/{7db5498f2.js → 9e7e9aa52.js} +182 -153
- package/static/core/{3c7560b7.js → abb0338c.js} +64 -64
- package/static/core/{9833df3b.js → b3475019.js} +3 -3
- package/static/core/cc1487fb.js +924 -0
- package/static/core/{139b301d.js → d745f656.js} +1756 -1702
- package/static/esm/{e21389f1.js → 1ce2bc32.js} +50 -47
- package/static/esm/{c951742a.js → c9e541a3.js} +70 -70
- package/static/runtime/{DownloadOutlined-CgJ8OpH_.js → DownloadOutlined-Dg_G2xO7.js} +4 -4
- package/static/runtime/client-CfXgU5Vo.js +7580 -0
- package/static/runtime/{defineProperty-B-FyVNQF.js → defineProperty-C_9hhJHt.js} +1 -1
- package/static/runtime/dom-export-CHgQ7Ws9.js +8069 -0
- package/static/runtime/{es-DnZp8dh1.js → es-BPfImJ0x.js} +5 -5
- package/static/runtime/{es-B2DS-PLP.js → es-DcH6fwd6.js} +2 -2
- package/static/runtime/{es-deqzngIL.js → es-_OY-D9g1.js} +2 -2
- package/static/runtime/{jsx-dev-runtime-Wj1_6O79.js → jsx-dev-runtime-DDukXY54.js} +2 -2
- package/static/runtime/jsx-runtime-BodCQYDg.js +22 -0
- package/static/runtime/react-BHNx_xzv.js +290 -0
- package/static/runtime/react-dom-CyByzibb.js +127 -0
- package/two_step_headless_plugin.html +1 -1
- package/ui-kit/index.js +49 -47
- package/vite/index.cjs +46 -21
- package/vite/index.d.ts +0 -1
- package/vite/index.js +46 -21
- package/vite/pluginDev/index.d.ts +0 -1
- package/webpack/index.cjs +46 -21
- package/webpack/index.d.ts +0 -1
- package/webpack/index.js +46 -21
- package/webpack/pluginDev/index.d.ts +0 -1
- package/iframe/js/amp.Op4DZt9X.js +0 -1
- package/static/core/4da039b3.js +0 -1119
- package/static/core/6130a367.js +0 -869
- package/static/core/62495fd5.js +0 -463
- package/static/core/bdd1d845.js +0 -2063
- package/static/esm/352121c5.js +0 -55
- package/static/esm/64966e1c.js +0 -18
- package/static/esm/b8792b4f.js +0 -3480
- package/static/runtime/client-CM3WFcip.js +0 -7
- package/static/runtime/dist-DUS42Hru.js +0 -3421
- package/static/runtime/jsx-runtime-DmPQfqtr.js +0 -28
- package/static/runtime/react-DIf5CLST.js +0 -258
- package/static/runtime/react-dom-Cc3IcUkg.js +0 -5604
- /package/iframe/{iframe-eblock.0eca2ff8.html → iframe-eblock.2cbaea2b.html} +0 -0
- /package/iframe/{iframe.0eca2ff8.html → iframe.2cbaea2b.html} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
__emailmaker__.define("static/core/
|
|
1
|
+
__emailmaker__.define("static/core/704587a1.js", [
|
|
2
2
|
"require",
|
|
3
3
|
"exports",
|
|
4
4
|
"module",
|
|
5
5
|
"static/core/16c2710d.js",
|
|
6
|
-
"static/core/
|
|
6
|
+
"static/core/956da3cd.js"
|
|
7
7
|
], function(tt, te, ge) {
|
|
8
8
|
tt("./16c2710d.js");
|
|
9
|
-
const ee = tt("./
|
|
9
|
+
const ee = tt("./956da3cd.js");
|
|
10
10
|
var et, nt, H = {};
|
|
11
11
|
function ne() {
|
|
12
12
|
return nt ? et : (nt = 1, et = function() {
|
|
@@ -452,25 +452,25 @@ __emailmaker__.define("static/core/dc3b3081.js", [
|
|
|
452
452
|
}
|
|
453
453
|
}, j;
|
|
454
454
|
}
|
|
455
|
-
var mt, vt, Et, yt, At = {},
|
|
455
|
+
var mt, vt, Et, yt, At = {}, K = {};
|
|
456
456
|
function re() {
|
|
457
457
|
return vt || (vt = 1, (function(a) {
|
|
458
458
|
const u = (function() {
|
|
459
|
-
if (mt) return
|
|
459
|
+
if (mt) return K;
|
|
460
460
|
mt = 1;
|
|
461
461
|
const n = new Uint8Array(512), t = new Uint8Array(256);
|
|
462
462
|
return (function() {
|
|
463
463
|
let r = 1;
|
|
464
464
|
for (let s = 0; s < 255; s++) n[s] = r, t[r] = s, r <<= 1, 256 & r && (r ^= 285);
|
|
465
465
|
for (let s = 255; s < 512; s++) n[s] = n[s - 255];
|
|
466
|
-
})(),
|
|
466
|
+
})(), K.log = function(r) {
|
|
467
467
|
if (r < 1) throw new Error("log(" + r + ")");
|
|
468
468
|
return t[r];
|
|
469
|
-
},
|
|
469
|
+
}, K.exp = function(r) {
|
|
470
470
|
return n[r];
|
|
471
|
-
},
|
|
471
|
+
}, K.mul = function(r, s) {
|
|
472
472
|
return r === 0 || s === 0 ? 0 : n[t[r] + t[s]];
|
|
473
|
-
},
|
|
473
|
+
}, K;
|
|
474
474
|
})();
|
|
475
475
|
a.mul = function(n, t) {
|
|
476
476
|
const r = new Uint8Array(n.length + t.length - 1);
|
|
@@ -632,9 +632,9 @@ __emailmaker__.define("static/core/dc3b3081.js", [
|
|
|
632
632
|
};
|
|
633
633
|
})(Bt)), Bt;
|
|
634
634
|
}
|
|
635
|
-
var Lt, $ = {}, xt, Ut, St, _t, kt, zt, Ft, Dt, Ht = {},
|
|
635
|
+
var Lt, $ = {}, xt, Ut, St, _t, kt, zt, Ft, Dt, Ht = {}, Yt, Jt, Kt, jt = { exports: {} };
|
|
636
636
|
function ie() {
|
|
637
|
-
return
|
|
637
|
+
return Yt || (Yt = 1, (function(a) {
|
|
638
638
|
var u = {
|
|
639
639
|
single_source_shortest_paths: function(n, t, r) {
|
|
640
640
|
var s = {}, l = {};
|
|
@@ -950,8 +950,8 @@ Make sure your charset is UTF-8`);
|
|
|
950
950
|
})(Ht)), Ht;
|
|
951
951
|
}
|
|
952
952
|
function se() {
|
|
953
|
-
if (
|
|
954
|
-
|
|
953
|
+
if (Kt) return q;
|
|
954
|
+
Kt = 1;
|
|
955
955
|
const a = F(), u = O(), n = (function() {
|
|
956
956
|
if (at) return it;
|
|
957
957
|
function e() {
|
|
@@ -1136,13 +1136,13 @@ Make sure your charset is UTF-8`);
|
|
|
1136
1136
|
for (let i = 0; i < h; i++) f.put(i % 2 ? 17 : 236, 8);
|
|
1137
1137
|
return (function(i, v, m) {
|
|
1138
1138
|
const g = a.getSymbolTotalCodewords(v), C = g - B.getTotalCodewordsCount(v, m), E = B.getBlocksCount(v, m), I = E - g % E, L = Math.floor(g / E), x = Math.floor(C / E), T = x + 1, N = L - x, U = new P(N);
|
|
1139
|
-
let
|
|
1139
|
+
let Y = 0;
|
|
1140
1140
|
const V = new Array(E), Wt = new Array(E);
|
|
1141
1141
|
let X = 0;
|
|
1142
1142
|
const he = new Uint8Array(i.buffer);
|
|
1143
1143
|
for (let J = 0; J < E; J++) {
|
|
1144
1144
|
const G = J < I ? x : T;
|
|
1145
|
-
V[J] = he.slice(
|
|
1145
|
+
V[J] = he.slice(Y, Y + G), Wt[J] = U.encode(V[J]), Y += G, X = Math.max(X, G);
|
|
1146
1146
|
}
|
|
1147
1147
|
const W = new Uint8Array(g);
|
|
1148
1148
|
let _, k, Gt = 0;
|
|
@@ -1201,8 +1201,8 @@ Minimum version required to store current data is: ` + h + `.
|
|
|
1201
1201
|
let I = -1, L = E - 1, x = 7, T = 0;
|
|
1202
1202
|
for (let N = E - 1; N > 0; N -= 2) for (N === 6 && N--;;) {
|
|
1203
1203
|
for (let U = 0; U < 2; U++) if (!g.isReserved(L, N - U)) {
|
|
1204
|
-
let
|
|
1205
|
-
T < C.length && (
|
|
1204
|
+
let Y = !1;
|
|
1205
|
+
T < C.length && (Y = (C[T] >>> x & 1) == 1), g.set(L, N - U, Y), x--, x === -1 && (T++, x = 7);
|
|
1206
1206
|
}
|
|
1207
1207
|
if (L += I, L < 0 || E <= L) {
|
|
1208
1208
|
L -= I, I = -I;
|
|
@@ -1320,7 +1320,7 @@ Minimum version required to store current data is: ` + h + `.
|
|
|
1320
1320
|
return typeof s == "function" && s(null, R), R;
|
|
1321
1321
|
}, Z;
|
|
1322
1322
|
}
|
|
1323
|
-
var fe = ee
|
|
1323
|
+
var fe = ee.$o((function() {
|
|
1324
1324
|
if (Xt) return H;
|
|
1325
1325
|
Xt = 1;
|
|
1326
1326
|
const a = ne(), u = se(), n = ue(), t = ce();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
__emailmaker__.define("static/core/
|
|
1
|
+
__emailmaker__.define("static/core/75e0e02f.js", [
|
|
2
2
|
"require",
|
|
3
3
|
"exports",
|
|
4
4
|
"module",
|
|
5
5
|
"static/core/16c2710d.js",
|
|
6
|
-
"static/core/
|
|
6
|
+
"static/core/956da3cd.js",
|
|
7
7
|
"react",
|
|
8
8
|
"react-dom",
|
|
9
9
|
"react/jsx-runtime",
|
|
@@ -12,7 +12,7 @@ __emailmaker__.define("static/core/36e22fa5.js", [
|
|
|
12
12
|
"@ant-design/icons",
|
|
13
13
|
"@ant-design/cssinjs"
|
|
14
14
|
], function(c, J, se) {
|
|
15
|
-
const U = c("./16c2710d.js"),
|
|
15
|
+
const U = c("./16c2710d.js"), _ = c("./956da3cd.js");
|
|
16
16
|
let n = c("react");
|
|
17
17
|
n = U.__toESM(n, 1);
|
|
18
18
|
c("react-dom");
|
|
@@ -20,11 +20,11 @@ __emailmaker__.define("static/core/36e22fa5.js", [
|
|
|
20
20
|
c("react-dom/client");
|
|
21
21
|
c("@ant-design/icons");
|
|
22
22
|
c("@ant-design/cssinjs");
|
|
23
|
-
var
|
|
23
|
+
var N = ({ size: j = 24, color: S = "currentColor", ...l }) => n.createElement("svg", {
|
|
24
24
|
viewBox: "0 0 24 24",
|
|
25
25
|
width: j,
|
|
26
26
|
height: j,
|
|
27
|
-
stroke:
|
|
27
|
+
stroke: S,
|
|
28
28
|
strokeWidth: "2",
|
|
29
29
|
fill: "none",
|
|
30
30
|
strokeLinecap: "round",
|
|
@@ -32,7 +32,7 @@ __emailmaker__.define("static/core/36e22fa5.js", [
|
|
|
32
32
|
"aria-hidden": "true",
|
|
33
33
|
...l
|
|
34
34
|
}, n.createElement("path", { d: "m14 10 7-7m0 0h-6m6 0v6m-11 5-7 7m0 0h6m-6 0v-6" }));
|
|
35
|
-
|
|
35
|
+
N.displayName = "Expand01";
|
|
36
36
|
var r = {
|
|
37
37
|
root: "root",
|
|
38
38
|
controls: "controls",
|
|
@@ -56,14 +56,14 @@ __emailmaker__.define("static/core/36e22fa5.js", [
|
|
|
56
56
|
previewCanvas: "previewCanvas",
|
|
57
57
|
previewCanvasBarcode: "previewCanvasBarcode",
|
|
58
58
|
actions: "actions"
|
|
59
|
-
}, q = ({ customRequest: j, state:
|
|
59
|
+
}, q = ({ customRequest: j, state: S, setState: l }) => {
|
|
60
60
|
var P, z;
|
|
61
|
-
const { t: o } =
|
|
61
|
+
const { t: o } = _.sr(), { options: I } = _.hn(), A = (z = (P = I?.config) === null || P === void 0 ? void 0 : P.iconStrokeWidth) !== null && z !== void 0 ? z : 1.75, F = (0, n.useRef)(null), { mode: h, rawText: g, foregroundHex: x, backgroundHex: f, transparentBackground: p, qrSidePx: C, barcodeBarHeightPx: k } = S, Y = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { mode: e })), [l]), K = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { rawText: e })), [l]), X = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { foregroundHex: e })), [l]), Z = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { backgroundHex: e })), [l]), ee = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { transparentBackground: e })), [l]), ae = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { qrSidePx: e })), [l]), te = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { barcodeBarHeightPx: e })), [l]), [E, re] = (0, n.useState)(g), [T, v] = (0, n.useState)(null), [L, G] = (0, n.useState)(!1), y = (0, n.useMemo)(() => _._n.debounce((e) => re(e), 300), []);
|
|
62
62
|
(0, n.useEffect)(() => (y(g), () => {
|
|
63
63
|
y.cancel();
|
|
64
64
|
}), [g, y]);
|
|
65
65
|
const M = p ? "#00000000" : f, D = (0, n.useCallback)(async (e, a) => {
|
|
66
|
-
const i = (await Promise.resolve().then(() => c("./
|
|
66
|
+
const i = (await Promise.resolve().then(() => c("./704587a1.js")).then(function(s) {
|
|
67
67
|
return s.b;
|
|
68
68
|
})).default, u = a.trim(), m = Math.min(280, Math.max(80, C));
|
|
69
69
|
if (!u) {
|
|
@@ -85,7 +85,7 @@ __emailmaker__.define("static/core/36e22fa5.js", [
|
|
|
85
85
|
M,
|
|
86
86
|
C
|
|
87
87
|
]), Q = (0, n.useCallback)(async (e, a) => {
|
|
88
|
-
const i = (await Promise.resolve().then(() => c("./
|
|
88
|
+
const i = (await Promise.resolve().then(() => c("./4a151a86.js")).then(function(b) {
|
|
89
89
|
return b.J;
|
|
90
90
|
})).default, u = a.trim(), m = p ? "rgba(0,0,0,0)" : f, s = Math.min(72, Math.max(24, k)), R = Math.max(1, Math.round(s / 42)), O = Math.max(4, Math.round(.07 * s)), W = Math.max(10, Math.round(.15 * s));
|
|
91
91
|
if (!u) {
|
|
@@ -142,7 +142,7 @@ __emailmaker__.define("static/core/36e22fa5.js", [
|
|
|
142
142
|
const a = typeof window > "u" ? 2 : Math.min(3, Math.max(2, window.devicePixelRatio || 2));
|
|
143
143
|
if (h === "qr") {
|
|
144
144
|
const w = Math.round(Math.min(600, Math.max(80, C)) * a), B = document.createElement("canvas");
|
|
145
|
-
B.width = w, B.height = w, await (await Promise.resolve().then(() => c("./
|
|
145
|
+
B.width = w, B.height = w, await (await Promise.resolve().then(() => c("./704587a1.js")).then(function(H) {
|
|
146
146
|
return H.b;
|
|
147
147
|
})).default.toCanvas(B, e, {
|
|
148
148
|
width: w,
|
|
@@ -156,7 +156,7 @@ __emailmaker__.define("static/core/36e22fa5.js", [
|
|
|
156
156
|
if (!$) throw new Error("PNG export failed");
|
|
157
157
|
return $;
|
|
158
158
|
}
|
|
159
|
-
const i = (await Promise.resolve().then(() => c("./
|
|
159
|
+
const i = (await Promise.resolve().then(() => c("./4a151a86.js")).then(function(w) {
|
|
160
160
|
return w.J;
|
|
161
161
|
})).default, u = document.createElement("canvas"), m = p ? "rgba(0,0,0,0)" : f, s = Math.min(130, Math.max(24, k)), R = Math.max(6, Math.round(.1 * s)), O = Math.max(2, Math.round(s / 36)), W = Math.max(12, Math.round(.16 * s));
|
|
162
162
|
i(u, e, {
|
|
@@ -221,7 +221,7 @@ __emailmaker__.define("static/core/36e22fa5.js", [
|
|
|
221
221
|
className: r.segmentedControl,
|
|
222
222
|
value: h,
|
|
223
223
|
onChange: (e) => {
|
|
224
|
-
|
|
224
|
+
Y(e), v(null);
|
|
225
225
|
},
|
|
226
226
|
options: [{
|
|
227
227
|
label: o("QR code"),
|
|
@@ -242,7 +242,7 @@ __emailmaker__.define("static/core/36e22fa5.js", [
|
|
|
242
242
|
(0, t.jsx)(d.Input.TextArea, {
|
|
243
243
|
value: g,
|
|
244
244
|
onChange: (e) => {
|
|
245
|
-
|
|
245
|
+
K(e.target.value), v(null);
|
|
246
246
|
},
|
|
247
247
|
placeholder: o("Text or URL"),
|
|
248
248
|
rows: 3,
|
|
@@ -262,7 +262,7 @@ __emailmaker__.define("static/core/36e22fa5.js", [
|
|
|
262
262
|
step: 8,
|
|
263
263
|
value: C,
|
|
264
264
|
onChange: (e) => ae(typeof e != "number" || Number.isNaN(e) ? 200 : e),
|
|
265
|
-
prefix: (0, t.jsx)(
|
|
265
|
+
prefix: (0, t.jsx)(N, {
|
|
266
266
|
size: 18,
|
|
267
267
|
strokeWidth: A
|
|
268
268
|
}),
|
|
@@ -278,7 +278,7 @@ __emailmaker__.define("static/core/36e22fa5.js", [
|
|
|
278
278
|
step: 4,
|
|
279
279
|
value: k,
|
|
280
280
|
onChange: (e) => te(typeof e != "number" || Number.isNaN(e) ? 60 : e),
|
|
281
|
-
prefix: (0, t.jsx)(
|
|
281
|
+
prefix: (0, t.jsx)(N, {
|
|
282
282
|
size: 18,
|
|
283
283
|
strokeWidth: A
|
|
284
284
|
}),
|
|
@@ -306,7 +306,7 @@ __emailmaker__.define("static/core/36e22fa5.js", [
|
|
|
306
306
|
showText: !0,
|
|
307
307
|
onChange: (e, a) => {
|
|
308
308
|
const i = typeof e == "string" ? e : e?.toHexString ? e.toHexString() : a;
|
|
309
|
-
|
|
309
|
+
X(i);
|
|
310
310
|
}
|
|
311
311
|
})]
|
|
312
312
|
}),
|