@emailmaker/emailmaker 1.1.46 → 1.1.49

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 (80) hide show
  1. package/{emailmaker-core.0eca2ff8.js → emailmaker-core.686599cb.js} +78 -72
  2. package/emailmaker-esm.js +620 -3190
  3. package/emailmaker.d.ts +184 -52
  4. package/emailmaker.js +818 -12588
  5. package/iframe/js/amp.V09Q6hy6.js +1 -0
  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/monacoeditorwork/css.worker.bundle.js +40524 -40442
  10. package/monacoeditorwork/editor.worker.bundle.js +9740 -9697
  11. package/monacoeditorwork/html.worker.bundle.js +50513 -50431
  12. package/monacoeditorwork/json.worker.bundle.js +14570 -14527
  13. package/monacoeditorwork/ts.worker.bundle.js +119593 -119455
  14. package/npm-publish.manifest.json +7 -7
  15. package/package.json +1 -1
  16. package/runtime/@ant-design/cssinjs/index.js +1 -1
  17. package/runtime/@ant-design/icons/index.js +2 -2
  18. package/runtime/README.md +1 -1
  19. package/runtime/THIRD_PARTY_LICENSES.txt +70 -42
  20. package/runtime/antd/index.js +1 -1
  21. package/runtime/react/index.js +3 -3
  22. package/runtime/react/jsx-runtime/index.js +1 -1
  23. package/runtime/react-dom/client/index.js +4 -4
  24. package/runtime/react-dom/index.js +3 -3
  25. package/runtime/react-router-dom/index.js +2 -2
  26. package/singlepage_headless_plugin.html +1 -1
  27. package/static/core/1724d302.js +649 -0
  28. package/static/core/{7db5498f2.js → 23692b142.js} +184 -155
  29. package/static/core/{f62c7573.js → 2638406e.js} +3 -3
  30. package/static/core/{e7554764.js → 28d0ee07.js} +537 -518
  31. package/static/core/{62495fd5.js → 2c90e83d.js} +177 -173
  32. package/static/core/{9833df3b.js → 35b2febf.js} +3 -3
  33. package/static/core/5a79f04d.js +924 -0
  34. package/static/core/{3c7560b7.js → 5cd9928a.js} +55 -55
  35. package/static/core/{139b301d.js → 67b72215.js} +1349 -1297
  36. package/static/core/{1f63a578.js → 7b48c5bf.js} +3949 -3707
  37. package/static/core/{3cf9dc9b.js → b61ea992.js} +7639 -6595
  38. package/static/core/{868e86a7.js → bfec1c65.js} +3573 -3559
  39. package/static/core/c78634e5.js +2090 -0
  40. package/static/core/{6410579b.js → c9f81757.js} +7 -7
  41. package/static/core/{dc3b3081.js → cf9b492f.js} +26 -26
  42. package/static/core/{ac8a414a.js → dde3447a.js} +17037 -16857
  43. package/static/core/{8833ee6c.js → e19a9688.js} +745 -664
  44. package/static/core/{36e22fa5.js → f5401fe7.js} +22 -22
  45. package/static/esm/{e21389f1.js → 1ce2bc32.js} +50 -47
  46. package/static/esm/{c951742a.js → c9e541a3.js} +70 -70
  47. package/static/runtime/{DownloadOutlined-CgJ8OpH_.js → DownloadOutlined-Dg_G2xO7.js} +4 -4
  48. package/static/runtime/client-CfXgU5Vo.js +7580 -0
  49. package/static/runtime/{defineProperty-B-FyVNQF.js → defineProperty-C_9hhJHt.js} +1 -1
  50. package/static/runtime/dom-export-CHgQ7Ws9.js +8069 -0
  51. package/static/runtime/{es-DnZp8dh1.js → es-BPfImJ0x.js} +5 -5
  52. package/static/runtime/{es-B2DS-PLP.js → es-DcH6fwd6.js} +2 -2
  53. package/static/runtime/{es-deqzngIL.js → es-_OY-D9g1.js} +2 -2
  54. package/static/runtime/{jsx-dev-runtime-Wj1_6O79.js → jsx-dev-runtime-DDukXY54.js} +2 -2
  55. package/static/runtime/jsx-runtime-BodCQYDg.js +22 -0
  56. package/static/runtime/react-BHNx_xzv.js +290 -0
  57. package/static/runtime/react-dom-CyByzibb.js +127 -0
  58. package/two_step_headless_plugin.html +1 -1
  59. package/vite/index.cjs +46 -21
  60. package/vite/index.d.ts +0 -1
  61. package/vite/index.js +46 -21
  62. package/vite/pluginDev/index.d.ts +0 -1
  63. package/webpack/index.cjs +46 -21
  64. package/webpack/index.d.ts +0 -1
  65. package/webpack/index.js +46 -21
  66. package/webpack/pluginDev/index.d.ts +0 -1
  67. package/iframe/js/amp.Op4DZt9X.js +0 -1
  68. package/static/core/4da039b3.js +0 -1119
  69. package/static/core/6130a367.js +0 -869
  70. package/static/core/bdd1d845.js +0 -2063
  71. package/static/esm/352121c5.js +0 -55
  72. package/static/esm/64966e1c.js +0 -18
  73. package/static/esm/b8792b4f.js +0 -3480
  74. package/static/runtime/client-CM3WFcip.js +0 -7
  75. package/static/runtime/dist-DUS42Hru.js +0 -3421
  76. package/static/runtime/jsx-runtime-DmPQfqtr.js +0 -28
  77. package/static/runtime/react-DIf5CLST.js +0 -258
  78. package/static/runtime/react-dom-Cc3IcUkg.js +0 -5604
  79. /package/iframe/{iframe-eblock.0eca2ff8.html → iframe-eblock.686599cb.html} +0 -0
  80. /package/iframe/{iframe.0eca2ff8.html → iframe.686599cb.html} +0 -0
@@ -1,9 +1,9 @@
1
1
  import { n as cR, r as Lr, t as go } from "./rolldown-runtime-Bklm4c_g.js";
2
- import { t as uR } from "./react-DIf5CLST.js";
3
- import { t as dR } from "./react-dom-Cc3IcUkg.js";
4
- import { A as fR, At as mR, B as pR, C as fv, Ct as Vl, D as gR, Dt as VS, E as hR, Et as Br, F as vR, Ft as pt, G as mu, H as KS, I as XS, It as Fi, J as pu, K as Zn, L as bR, Lt as ke, M as GS, Mt as An, N as yR, Nt as gt, O as mv, Ot as qr, P as CR, Pt as mg, Q as ia, R as qS, S as pv, St as pg, T as SR, Tt as gv, U as gu, V as ur, W as Qa, X as Wn, Y as ho, Z as Qr, _ as US, _t as Bt, a as $R, at as xR, b as wR, bt as ER, c as YS, ct as xd, d as IR, dt as Ot, f as NR, ft as D, g as PR, gt as dt, h as RR, ht as Kt, i as MR, j as TR, jt as QS, k as OR, kt as tr, l as DR, lt as La, m as AR, mt as ZS, n as zR, o as LR, ot as hv, p as BR, pt as hu, q as Jn, r as kR, s as HR, st as FR, t as _R, u as WR, ut as vu, v as jR, vt as VR, w as JS, wt as rn, x as KR, xt as gg, y as XR, yt as kf, z as hg } from "./DownloadOutlined-CgJ8OpH_.js";
5
- import { a as Hf, c as Ur, i as Vt, l as br, n as Nn, o as e$, s as vv, t as Ie } from "./defineProperty-B-FyVNQF.js";
6
- import { _ as $c, a as Mt, b as qR, c as Ff, g as j, h as wd, m as UR, p as YR, s as QR } from "./es-deqzngIL.js";
2
+ import { t as uR } from "./react-BHNx_xzv.js";
3
+ import { t as dR } from "./react-dom-CyByzibb.js";
4
+ import { A as fR, At as mR, B as pR, C as fv, Ct as Vl, D as gR, Dt as VS, E as hR, Et as Br, F as vR, Ft as pt, G as mu, H as KS, I as XS, It as Fi, J as pu, K as Zn, L as bR, Lt as ke, M as GS, Mt as An, N as yR, Nt as gt, O as mv, Ot as qr, P as CR, Pt as mg, Q as ia, R as qS, S as pv, St as pg, T as SR, Tt as gv, U as gu, V as ur, W as Qa, X as Wn, Y as ho, Z as Qr, _ as US, _t as Bt, a as $R, at as xR, b as wR, bt as ER, c as YS, ct as xd, d as IR, dt as Ot, f as NR, ft as D, g as PR, gt as dt, h as RR, ht as Kt, i as MR, j as TR, jt as QS, k as OR, kt as tr, l as DR, lt as La, m as AR, mt as ZS, n as zR, o as LR, ot as hv, p as BR, pt as hu, q as Jn, r as kR, s as HR, st as FR, t as _R, u as WR, ut as vu, v as jR, vt as VR, w as JS, wt as rn, x as KR, xt as gg, y as XR, yt as kf, z as hg } from "./DownloadOutlined-Dg_G2xO7.js";
5
+ import { a as Hf, c as Ur, i as Vt, l as br, n as Nn, o as e$, s as vv, t as Ie } from "./defineProperty-C_9hhJHt.js";
6
+ import { _ as $c, a as Mt, b as qR, c as Ff, g as j, h as wd, m as UR, p as YR, s as QR } from "./es-_OY-D9g1.js";
7
7
  import { t as ZR } from "./dayjs.min-CVzHlYit.js";
8
8
  var o = Lr(uR());
9
9
  function _a(e) {
@@ -1,6 +1,6 @@
1
1
  import { n as rl, r as l, t as c } from "./rolldown-runtime-Bklm4c_g.js";
2
- import { t as nl } from "./react-DIf5CLST.js";
3
- import { $ as i, A as ll, B as cl, C as il, D as ol, E as ul, F as sl, G as dl, H as vl, I as fl, J as hl, K as ml, L as gl, M as pl, N as Ol, O as bl, P as _l, Q as wl, R as zl, S as jl, T as Ml, U as Hl, V as Pl, W as yl, X as Vl, Y as Rl, Z as Tl, _ as $l, a as Fl, at as Q7, b as Cl, c as Ll, d as ql, et as Bl, f as Il, ft as G7, g as xl, h as Sl, i as El, it as N7, j as Al, k as Dl, kt as Ul, l as Wl, m as Gl, n as Nl, nt as Ql, o as Zl, p as Yl, q as Jl, r as Kl, rt as Xl, s as kl, t as ec, tt as tc, u as ac, v as rc, w as nc, x as lc, y as cc, z as ic } from "./DownloadOutlined-CgJ8OpH_.js";
2
+ import { t as nl } from "./react-BHNx_xzv.js";
3
+ import { $ as i, A as ll, B as cl, C as il, D as ol, E as ul, F as sl, G as dl, H as vl, I as fl, J as hl, K as ml, L as gl, M as pl, N as Ol, O as bl, P as _l, Q as wl, R as zl, S as jl, T as Ml, U as Hl, V as Pl, W as yl, X as Vl, Y as Rl, Z as Tl, _ as $l, a as Fl, at as Q7, b as Cl, c as Ll, d as ql, et as Bl, f as Il, ft as G7, g as xl, h as Sl, i as El, it as N7, j as Al, k as Dl, kt as Ul, l as Wl, m as Gl, n as Nl, nt as Ql, o as Zl, p as Yl, q as Jl, r as Kl, rt as Xl, s as kl, t as ec, tt as tc, u as ac, v as rc, w as nc, x as lc, y as cc, z as ic } from "./DownloadOutlined-Dg_G2xO7.js";
4
4
  var oc = c(((t) => {
5
5
  Object.defineProperty(t, "__esModule", { value: !0 });
6
6
  t.default = {
@@ -1,6 +1,6 @@
1
1
  import { n as Ct, r as wt } from "./rolldown-runtime-Bklm4c_g.js";
2
- import { t as xt } from "./react-DIf5CLST.js";
3
- import { a as je, c as Tt, i as Et, l as pe, n as Ue, o as X, t as I } from "./defineProperty-B-FyVNQF.js";
2
+ import { t as xt } from "./react-BHNx_xzv.js";
3
+ import { a as je, c as Tt, i as Et, l as pe, n as Ue, o as X, t as I } from "./defineProperty-C_9hhJHt.js";
4
4
  function ie(e) {
5
5
  for (var t = 0, r, s = 0, n = e.length; n >= 4; ++s, n -= 4) r = e.charCodeAt(s) & 255 | (e.charCodeAt(++s) & 255) << 8 | (e.charCodeAt(++s) & 255) << 16 | (e.charCodeAt(++s) & 255) << 24, r = (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= r >>> 24, t = (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
6
6
  switch (n) {
@@ -1,7 +1,7 @@
1
1
  import { t } from "./rolldown-runtime-Bklm4c_g.js";
2
- var o = t(((r) => {
2
+ var _ = t(((r) => {
3
3
  r.Fragment = Symbol.for("react.fragment"), r.jsxDEV = void 0;
4
4
  })), a = t(((r, e) => {
5
- e.exports = o();
5
+ e.exports = _();
6
6
  }));
7
7
  export { a as t };
@@ -0,0 +1,22 @@
1
+ import { t as n } from "./rolldown-runtime-Bklm4c_g.js";
2
+ var i = n(((e) => {
3
+ var _ = Symbol.for("react.transitional.element"), u = Symbol.for("react.fragment");
4
+ function l(v, r, t) {
5
+ var s = null;
6
+ if (t !== void 0 && (s = "" + t), r.key !== void 0 && (s = "" + r.key), "key" in r) {
7
+ t = {};
8
+ for (var o in r) o !== "key" && (t[o] = r[o]);
9
+ } else t = r;
10
+ return r = t.ref, {
11
+ $$typeof: _,
12
+ type: v,
13
+ key: s,
14
+ ref: r !== void 0 ? r : null,
15
+ props: t
16
+ };
17
+ }
18
+ e.Fragment = u, e.jsx = l, e.jsxs = l;
19
+ })), a = n(((e, _) => {
20
+ _.exports = i();
21
+ }));
22
+ export { a as t };
@@ -0,0 +1,290 @@
1
+ import { t as $ } from "./rolldown-runtime-Bklm4c_g.js";
2
+ var X = $(((n) => {
3
+ var E = Symbol.for("react.transitional.element"), N = Symbol.for("react.portal"), Y = Symbol.for("react.fragment"), M = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), U = Symbol.for("react.context"), k = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), D = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), q = Symbol.for("react.activity"), S = Symbol.iterator;
4
+ function z(t) {
5
+ return t === null || typeof t != "object" ? null : (t = S && t[S] || t["@@iterator"], typeof t == "function" ? t : null);
6
+ }
7
+ var w = {
8
+ isMounted: function() {
9
+ return !1;
10
+ },
11
+ enqueueForceUpdate: function() {},
12
+ enqueueReplaceState: function() {},
13
+ enqueueSetState: function() {}
14
+ }, g = Object.assign, d = {};
15
+ function _(t, e, u) {
16
+ this.props = t, this.context = e, this.refs = d, this.updater = u || w;
17
+ }
18
+ _.prototype.isReactComponent = {}, _.prototype.setState = function(t, e) {
19
+ if (typeof t != "object" && typeof t != "function" && t != null) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
20
+ this.updater.enqueueSetState(this, t, e, "setState");
21
+ }, _.prototype.forceUpdate = function(t) {
22
+ this.updater.enqueueForceUpdate(this, t, "forceUpdate");
23
+ };
24
+ function h() {}
25
+ h.prototype = _.prototype;
26
+ function y(t, e, u) {
27
+ this.props = t, this.context = e, this.refs = d, this.updater = u || w;
28
+ }
29
+ var p = y.prototype = new h();
30
+ p.constructor = y, g(p, _.prototype), p.isPureReactComponent = !0;
31
+ var H = Array.isArray;
32
+ function T() {}
33
+ var s = {
34
+ H: null,
35
+ A: null,
36
+ T: null,
37
+ S: null
38
+ }, O = Object.prototype.hasOwnProperty;
39
+ function R(t, e, u) {
40
+ var r = u.ref;
41
+ return {
42
+ $$typeof: E,
43
+ type: t,
44
+ key: e,
45
+ ref: r !== void 0 ? r : null,
46
+ props: u
47
+ };
48
+ }
49
+ function G(t, e) {
50
+ return R(t.type, e, t.props);
51
+ }
52
+ function m(t) {
53
+ return typeof t == "object" && t !== null && t.$$typeof === E;
54
+ }
55
+ function K(t) {
56
+ var e = {
57
+ "=": "=0",
58
+ ":": "=2"
59
+ };
60
+ return "$" + t.replace(/[=:]/g, function(u) {
61
+ return e[u];
62
+ });
63
+ }
64
+ var P = /\/+/g;
65
+ function C(t, e) {
66
+ return typeof t == "object" && t !== null && t.key != null ? K("" + t.key) : e.toString(36);
67
+ }
68
+ function B(t) {
69
+ switch (t.status) {
70
+ case "fulfilled": return t.value;
71
+ case "rejected": throw t.reason;
72
+ default: switch (typeof t.status == "string" ? t.then(T, T) : (t.status = "pending", t.then(function(e) {
73
+ t.status === "pending" && (t.status = "fulfilled", t.value = e);
74
+ }, function(e) {
75
+ t.status === "pending" && (t.status = "rejected", t.reason = e);
76
+ })), t.status) {
77
+ case "fulfilled": return t.value;
78
+ case "rejected": throw t.reason;
79
+ }
80
+ }
81
+ throw t;
82
+ }
83
+ function l(t, e, u, r, o) {
84
+ var f = typeof t;
85
+ (f === "undefined" || f === "boolean") && (t = null);
86
+ var i = !1;
87
+ if (t === null) i = !0;
88
+ else switch (f) {
89
+ case "bigint":
90
+ case "string":
91
+ case "number":
92
+ i = !0;
93
+ break;
94
+ case "object": switch (t.$$typeof) {
95
+ case E:
96
+ case N:
97
+ i = !0;
98
+ break;
99
+ case A: return i = t._init, l(i(t._payload), e, u, r, o);
100
+ }
101
+ }
102
+ if (i) return o = o(t), i = r === "" ? "." + C(t, 0) : r, H(o) ? (u = "", i != null && (u = i.replace(P, "$&/") + "/"), l(o, e, u, "", function(Q) {
103
+ return Q;
104
+ })) : o != null && (m(o) && (o = G(o, u + (o.key == null || t && t.key === o.key ? "" : ("" + o.key).replace(P, "$&/") + "/") + i)), e.push(o)), 1;
105
+ i = 0;
106
+ var a = r === "" ? "." : r + ":";
107
+ if (H(t)) for (var c = 0; c < t.length; c++) r = t[c], f = a + C(r, c), i += l(r, e, u, f, o);
108
+ else if (c = z(t), typeof c == "function") for (t = c.call(t), c = 0; !(r = t.next()).done;) r = r.value, f = a + C(r, c++), i += l(r, e, u, f, o);
109
+ else if (f === "object") {
110
+ if (typeof t.then == "function") return l(B(t), e, u, r, o);
111
+ throw e = String(t), Error("Objects are not valid as a React child (found: " + (e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e) + "). If you meant to render a collection of children, use an array instead.");
112
+ }
113
+ return i;
114
+ }
115
+ function v(t, e, u) {
116
+ if (t == null) return t;
117
+ var r = [], o = 0;
118
+ return l(t, r, "", "", function(f) {
119
+ return e.call(u, f, o++);
120
+ }), r;
121
+ }
122
+ function W(t) {
123
+ if (t._status === -1) {
124
+ var e = t._result;
125
+ e = e(), e.then(function(u) {
126
+ (t._status === 0 || t._status === -1) && (t._status = 1, t._result = u);
127
+ }, function(u) {
128
+ (t._status === 0 || t._status === -1) && (t._status = 2, t._result = u);
129
+ }), t._status === -1 && (t._status = 0, t._result = e);
130
+ }
131
+ if (t._status === 1) return t._result.default;
132
+ throw t._result;
133
+ }
134
+ var j = typeof reportError == "function" ? reportError : function(t) {
135
+ if (typeof window == "object" && typeof window.ErrorEvent == "function") {
136
+ var e = new window.ErrorEvent("error", {
137
+ bubbles: !0,
138
+ cancelable: !0,
139
+ message: typeof t == "object" && t !== null && typeof t.message == "string" ? String(t.message) : String(t),
140
+ error: t
141
+ });
142
+ if (!window.dispatchEvent(e)) return;
143
+ } else if (typeof process == "object" && typeof process.emit == "function") {
144
+ process.emit("uncaughtException", t);
145
+ return;
146
+ }
147
+ }, J = {
148
+ map: v,
149
+ forEach: function(t, e, u) {
150
+ v(t, function() {
151
+ e.apply(this, arguments);
152
+ }, u);
153
+ },
154
+ count: function(t) {
155
+ var e = 0;
156
+ return v(t, function() {
157
+ e++;
158
+ }), e;
159
+ },
160
+ toArray: function(t) {
161
+ return v(t, function(e) {
162
+ return e;
163
+ }) || [];
164
+ },
165
+ only: function(t) {
166
+ if (!m(t)) throw Error("React.Children.only expected to receive a single React element child.");
167
+ return t;
168
+ }
169
+ };
170
+ n.Activity = q, n.Children = J, n.Component = _, n.Fragment = Y, n.Profiler = I, n.PureComponent = y, n.StrictMode = M, n.Suspense = b, n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = s, n.__COMPILER_RUNTIME = {
171
+ __proto__: null,
172
+ c: function(t) {
173
+ return s.H.useMemoCache(t);
174
+ }
175
+ }, n.cache = function(t) {
176
+ return function() {
177
+ return t.apply(null, arguments);
178
+ };
179
+ }, n.cacheSignal = function() {
180
+ return null;
181
+ }, n.cloneElement = function(t, e, u) {
182
+ if (t == null) throw Error("The argument must be a React element, but you passed " + t + ".");
183
+ var r = g({}, t.props), o = t.key;
184
+ if (e != null) for (f in e.key !== void 0 && (o = "" + e.key), e) !O.call(e, f) || f === "key" || f === "__self" || f === "__source" || f === "ref" && e.ref === void 0 || (r[f] = e[f]);
185
+ var f = arguments.length - 2;
186
+ if (f === 1) r.children = u;
187
+ else if (1 < f) {
188
+ for (var i = Array(f), a = 0; a < f; a++) i[a] = arguments[a + 2];
189
+ r.children = i;
190
+ }
191
+ return R(t.type, o, r);
192
+ }, n.createContext = function(t) {
193
+ return t = {
194
+ $$typeof: U,
195
+ _currentValue: t,
196
+ _currentValue2: t,
197
+ _threadCount: 0,
198
+ Provider: null,
199
+ Consumer: null
200
+ }, t.Provider = t, t.Consumer = {
201
+ $$typeof: L,
202
+ _context: t
203
+ }, t;
204
+ }, n.createElement = function(t, e, u) {
205
+ var r, o = {}, f = null;
206
+ if (e != null) for (r in e.key !== void 0 && (f = "" + e.key), e) O.call(e, r) && r !== "key" && r !== "__self" && r !== "__source" && (o[r] = e[r]);
207
+ var i = arguments.length - 2;
208
+ if (i === 1) o.children = u;
209
+ else if (1 < i) {
210
+ for (var a = Array(i), c = 0; c < i; c++) a[c] = arguments[c + 2];
211
+ o.children = a;
212
+ }
213
+ if (t && t.defaultProps) for (r in i = t.defaultProps, i) o[r] === void 0 && (o[r] = i[r]);
214
+ return R(t, f, o);
215
+ }, n.createRef = function() {
216
+ return { current: null };
217
+ }, n.forwardRef = function(t) {
218
+ return {
219
+ $$typeof: k,
220
+ render: t
221
+ };
222
+ }, n.isValidElement = m, n.lazy = function(t) {
223
+ return {
224
+ $$typeof: A,
225
+ _payload: {
226
+ _status: -1,
227
+ _result: t
228
+ },
229
+ _init: W
230
+ };
231
+ }, n.memo = function(t, e) {
232
+ return {
233
+ $$typeof: D,
234
+ type: t,
235
+ compare: e === void 0 ? null : e
236
+ };
237
+ }, n.startTransition = function(t) {
238
+ var e = s.T, u = {};
239
+ s.T = u;
240
+ try {
241
+ var r = t(), o = s.S;
242
+ o !== null && o(u, r), typeof r == "object" && r !== null && typeof r.then == "function" && r.then(T, j);
243
+ } catch (f) {
244
+ j(f);
245
+ } finally {
246
+ e !== null && u.types !== null && (e.types = u.types), s.T = e;
247
+ }
248
+ }, n.unstable_useCacheRefresh = function() {
249
+ return s.H.useCacheRefresh();
250
+ }, n.use = function(t) {
251
+ return s.H.use(t);
252
+ }, n.useActionState = function(t, e, u) {
253
+ return s.H.useActionState(t, e, u);
254
+ }, n.useCallback = function(t, e) {
255
+ return s.H.useCallback(t, e);
256
+ }, n.useContext = function(t) {
257
+ return s.H.useContext(t);
258
+ }, n.useDebugValue = function() {}, n.useDeferredValue = function(t, e) {
259
+ return s.H.useDeferredValue(t, e);
260
+ }, n.useEffect = function(t, e) {
261
+ return s.H.useEffect(t, e);
262
+ }, n.useEffectEvent = function(t) {
263
+ return s.H.useEffectEvent(t);
264
+ }, n.useId = function() {
265
+ return s.H.useId();
266
+ }, n.useImperativeHandle = function(t, e, u) {
267
+ return s.H.useImperativeHandle(t, e, u);
268
+ }, n.useInsertionEffect = function(t, e) {
269
+ return s.H.useInsertionEffect(t, e);
270
+ }, n.useLayoutEffect = function(t, e) {
271
+ return s.H.useLayoutEffect(t, e);
272
+ }, n.useMemo = function(t, e) {
273
+ return s.H.useMemo(t, e);
274
+ }, n.useOptimistic = function(t, e) {
275
+ return s.H.useOptimistic(t, e);
276
+ }, n.useReducer = function(t, e, u) {
277
+ return s.H.useReducer(t, e, u);
278
+ }, n.useRef = function(t) {
279
+ return s.H.useRef(t);
280
+ }, n.useState = function(t) {
281
+ return s.H.useState(t);
282
+ }, n.useSyncExternalStore = function(t, e, u) {
283
+ return s.H.useSyncExternalStore(t, e, u);
284
+ }, n.useTransition = function() {
285
+ return s.H.useTransition();
286
+ }, n.version = "19.2.7";
287
+ })), V = $(((n, E) => {
288
+ E.exports = X();
289
+ }));
290
+ export { V as t };
@@ -0,0 +1,127 @@
1
+ import { t as _ } from "./rolldown-runtime-Bklm4c_g.js";
2
+ import { t as s } from "./react-BHNx_xzv.js";
3
+ var S = _(((n) => {
4
+ var d = s();
5
+ function c(r) {
6
+ var e = "https://react.dev/errors/" + r;
7
+ if (1 < arguments.length) {
8
+ e += "?args[]=" + encodeURIComponent(arguments[1]);
9
+ for (var t = 2; t < arguments.length; t++) e += "&args[]=" + encodeURIComponent(arguments[t]);
10
+ }
11
+ return "Minified React error #" + r + "; visit " + e + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
12
+ }
13
+ function a() {}
14
+ var i = {
15
+ d: {
16
+ f: a,
17
+ r: function() {
18
+ throw Error(c(522));
19
+ },
20
+ D: a,
21
+ C: a,
22
+ L: a,
23
+ m: a,
24
+ X: a,
25
+ S: a,
26
+ M: a
27
+ },
28
+ p: 0,
29
+ findDOMNode: null
30
+ }, m = Symbol.for("react.portal");
31
+ function v(r, e, t) {
32
+ var f = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
33
+ return {
34
+ $$typeof: m,
35
+ key: f == null ? null : "" + f,
36
+ children: r,
37
+ containerInfo: e,
38
+ implementation: t
39
+ };
40
+ }
41
+ var u = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
42
+ function g(r, e) {
43
+ if (r === "font") return "";
44
+ if (typeof e == "string") return e === "use-credentials" ? e : "";
45
+ }
46
+ n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = i, n.createPortal = function(r, e) {
47
+ var t = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
48
+ if (!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11) throw Error(c(299));
49
+ return v(r, e, null, t);
50
+ }, n.flushSync = function(r) {
51
+ var e = u.T, t = i.p;
52
+ try {
53
+ if (u.T = null, i.p = 2, r) return r();
54
+ } finally {
55
+ u.T = e, i.p = t, i.d.f();
56
+ }
57
+ }, n.preconnect = function(r, e) {
58
+ typeof r == "string" && (e ? (e = e.crossOrigin, e = typeof e == "string" ? e === "use-credentials" ? e : "" : void 0) : e = null, i.d.C(r, e));
59
+ }, n.prefetchDNS = function(r) {
60
+ typeof r == "string" && i.d.D(r);
61
+ }, n.preinit = function(r, e) {
62
+ if (typeof r == "string" && e && typeof e.as == "string") {
63
+ var t = e.as, f = g(t, e.crossOrigin), y = typeof e.integrity == "string" ? e.integrity : void 0, l = typeof e.fetchPriority == "string" ? e.fetchPriority : void 0;
64
+ t === "style" ? i.d.S(r, typeof e.precedence == "string" ? e.precedence : void 0, {
65
+ crossOrigin: f,
66
+ integrity: y,
67
+ fetchPriority: l
68
+ }) : t === "script" && i.d.X(r, {
69
+ crossOrigin: f,
70
+ integrity: y,
71
+ fetchPriority: l,
72
+ nonce: typeof e.nonce == "string" ? e.nonce : void 0
73
+ });
74
+ }
75
+ }, n.preinitModule = function(r, e) {
76
+ if (typeof r == "string") if (typeof e == "object" && e !== null) {
77
+ if (e.as == null || e.as === "script") {
78
+ var t = g(e.as, e.crossOrigin);
79
+ i.d.M(r, {
80
+ crossOrigin: t,
81
+ integrity: typeof e.integrity == "string" ? e.integrity : void 0,
82
+ nonce: typeof e.nonce == "string" ? e.nonce : void 0
83
+ });
84
+ }
85
+ } else e ?? i.d.M(r);
86
+ }, n.preload = function(r, e) {
87
+ if (typeof r == "string" && typeof e == "object" && e !== null && typeof e.as == "string") {
88
+ var t = e.as, f = g(t, e.crossOrigin);
89
+ i.d.L(r, t, {
90
+ crossOrigin: f,
91
+ integrity: typeof e.integrity == "string" ? e.integrity : void 0,
92
+ nonce: typeof e.nonce == "string" ? e.nonce : void 0,
93
+ type: typeof e.type == "string" ? e.type : void 0,
94
+ fetchPriority: typeof e.fetchPriority == "string" ? e.fetchPriority : void 0,
95
+ referrerPolicy: typeof e.referrerPolicy == "string" ? e.referrerPolicy : void 0,
96
+ imageSrcSet: typeof e.imageSrcSet == "string" ? e.imageSrcSet : void 0,
97
+ imageSizes: typeof e.imageSizes == "string" ? e.imageSizes : void 0,
98
+ media: typeof e.media == "string" ? e.media : void 0
99
+ });
100
+ }
101
+ }, n.preloadModule = function(r, e) {
102
+ if (typeof r == "string") if (e) {
103
+ var t = g(e.as, e.crossOrigin);
104
+ i.d.m(r, {
105
+ as: typeof e.as == "string" && e.as !== "script" ? e.as : void 0,
106
+ crossOrigin: t,
107
+ integrity: typeof e.integrity == "string" ? e.integrity : void 0
108
+ });
109
+ } else i.d.m(r);
110
+ }, n.requestFormReset = function(r) {
111
+ i.d.r(r);
112
+ }, n.unstable_batchedUpdates = function(r, e) {
113
+ return r(e);
114
+ }, n.useFormState = function(r, e, t) {
115
+ return u.H.useFormState(r, e, t);
116
+ }, n.useFormStatus = function() {
117
+ return u.H.useHostTransitionStatus();
118
+ }, n.version = "19.2.7";
119
+ })), T = _(((n, d) => {
120
+ function c() {
121
+ if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try {
122
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c);
123
+ } catch {}
124
+ }
125
+ c(), d.exports = S();
126
+ }));
127
+ export { T as t };
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <title>Two-step flow: design → subject/preheader (headless)</title>
6
- <script id="plugin-script" type="text/javascript" src="emailmaker.js?0eca2ff8"></script>
6
+ <script id="plugin-script" type="text/javascript" src="emailmaker.js?686599cb"></script>
7
7
  <style>
8
8
  body {
9
9
  margin: 0;
package/vite/index.cjs CHANGED
@@ -92,6 +92,51 @@ async function copyFolder(src, dest, filter) {
92
92
  }));
93
93
  }
94
94
  //#endregion
95
+ //#region src/shared/publicPathResolve.ts
96
+ /**
97
+ * Build-time mirror of build-tools/plugins/shared/publicPathResolve.ts (SSOT).
98
+ * bundler-plugins tsc emits declarations with rootDir = src/, so shared helpers must live here.
99
+ */
100
+ /** JS-выражение: document.baseURI с fallback на location.href */
101
+ var PUBLIC_PATH_RESOLUTION_BASE_EXPRESSION = `(
102
+ typeof document !== 'undefined' && document.baseURI
103
+ ? document.baseURI
104
+ : (typeof window !== 'undefined' && window.location ? window.location.href : '')
105
+ )`;
106
+ /**
107
+ * Тело IIFE для нормализации publicPath в сгенерированном bootstrap-коде.
108
+ * `rawPathExpression` — JS-выражение, дающее сырой путь.
109
+ */
110
+ function generateNormalizePublicPathBody(rawPathExpression) {
111
+ return `
112
+ var rawPath = ${rawPathExpression};
113
+ if (!rawPath) {
114
+ rawPath = './';
115
+ }
116
+ try {
117
+ var normalizedPath = String(rawPath);
118
+ if (/^[a-zA-Z][a-zA-Z\\d+\\-.]*:/.test(normalizedPath) || normalizedPath.indexOf('//') === 0) {
119
+ return normalizedPath.charAt(normalizedPath.length - 1) === '/'
120
+ ? normalizedPath
121
+ : normalizedPath + '/';
122
+ }
123
+ var baseUrl = ${PUBLIC_PATH_RESOLUTION_BASE_EXPRESSION};
124
+ var resolved = baseUrl ? new URL(normalizedPath, baseUrl).href : normalizedPath;
125
+ return resolved.charAt(resolved.length - 1) === '/'
126
+ ? resolved
127
+ : resolved + '/';
128
+ } catch (e) {
129
+ var fallback = String(rawPath);
130
+ return fallback.charAt(fallback.length - 1) === '/'
131
+ ? fallback
132
+ : fallback + '/';
133
+ }`.trim();
134
+ }
135
+ function generateNormalizePublicPathIIFE(rawPathExpression) {
136
+ return `(function() {${generateNormalizePublicPathBody(rawPathExpression)}
137
+ })()`;
138
+ }
139
+ //#endregion
95
140
  //#region src/shared/hostBootstrap.ts
96
141
  /**
97
142
  * Joins an integrator-provided `publicPath` prefix with the product `outputFolder`
@@ -123,27 +168,7 @@ function joinHostPublicPath(publicPath, outputFolder, defaultOutputFolder) {
123
168
  * `publicPath` is still unset — plugin-dev must rely on host prepend, not detection.
124
169
  */
125
170
  function createNormalizedPublicPathAssignment(environmentVariable, rawPath) {
126
- const literal = JSON.stringify(String(rawPath || ""));
127
- return [
128
- `if (!window.${environmentVariable}.publicPath) window.${environmentVariable}.publicPath = (function() {`,
129
- ` var rawPath = ${literal};`,
130
- " if (!rawPath) {",
131
- " rawPath = './';",
132
- " }",
133
- " try {",
134
- " var normalizedPath = String(rawPath);",
135
- " if (/^[a-zA-Z][a-zA-Z\\d+\\-.]*:/.test(normalizedPath) || normalizedPath.indexOf('//') === 0) {",
136
- " return normalizedPath;",
137
- " }",
138
- " var baseUrl = typeof document !== 'undefined' && document.baseURI",
139
- " ? document.baseURI",
140
- " : (typeof window !== 'undefined' && window.location ? window.location.href : '');",
141
- " return baseUrl ? new URL(normalizedPath, baseUrl).href : normalizedPath;",
142
- " } catch (_error) {",
143
- " return String(rawPath);",
144
- " }",
145
- "})();"
146
- ].join(" ");
171
+ return `if (!window.${environmentVariable}.publicPath) window.${environmentVariable}.publicPath = ${generateNormalizePublicPathIIFE(JSON.stringify(String(rawPath || "")))};`;
147
172
  }
148
173
  function createInitFragment$1(environmentVariable, publicPath, startupPrefetchMode) {
149
174
  return [
package/vite/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Plugin } from "vite";
2
-
3
2
  //#region node_modules/.cache/bundler-plugins-dts/shared/hostPackageEntryMatch.d.ts
4
3
  type EntryModuleTest = RegExp | ((moduleId: string) => boolean);
5
4
  //#endregion
package/vite/index.js CHANGED
@@ -63,6 +63,51 @@ async function copyFolder(src, dest, filter) {
63
63
  }));
64
64
  }
65
65
  //#endregion
66
+ //#region src/shared/publicPathResolve.ts
67
+ /**
68
+ * Build-time mirror of build-tools/plugins/shared/publicPathResolve.ts (SSOT).
69
+ * bundler-plugins tsc emits declarations with rootDir = src/, so shared helpers must live here.
70
+ */
71
+ /** JS-выражение: document.baseURI с fallback на location.href */
72
+ var PUBLIC_PATH_RESOLUTION_BASE_EXPRESSION = `(
73
+ typeof document !== 'undefined' && document.baseURI
74
+ ? document.baseURI
75
+ : (typeof window !== 'undefined' && window.location ? window.location.href : '')
76
+ )`;
77
+ /**
78
+ * Тело IIFE для нормализации publicPath в сгенерированном bootstrap-коде.
79
+ * `rawPathExpression` — JS-выражение, дающее сырой путь.
80
+ */
81
+ function generateNormalizePublicPathBody(rawPathExpression) {
82
+ return `
83
+ var rawPath = ${rawPathExpression};
84
+ if (!rawPath) {
85
+ rawPath = './';
86
+ }
87
+ try {
88
+ var normalizedPath = String(rawPath);
89
+ if (/^[a-zA-Z][a-zA-Z\\d+\\-.]*:/.test(normalizedPath) || normalizedPath.indexOf('//') === 0) {
90
+ return normalizedPath.charAt(normalizedPath.length - 1) === '/'
91
+ ? normalizedPath
92
+ : normalizedPath + '/';
93
+ }
94
+ var baseUrl = ${PUBLIC_PATH_RESOLUTION_BASE_EXPRESSION};
95
+ var resolved = baseUrl ? new URL(normalizedPath, baseUrl).href : normalizedPath;
96
+ return resolved.charAt(resolved.length - 1) === '/'
97
+ ? resolved
98
+ : resolved + '/';
99
+ } catch (e) {
100
+ var fallback = String(rawPath);
101
+ return fallback.charAt(fallback.length - 1) === '/'
102
+ ? fallback
103
+ : fallback + '/';
104
+ }`.trim();
105
+ }
106
+ function generateNormalizePublicPathIIFE(rawPathExpression) {
107
+ return `(function() {${generateNormalizePublicPathBody(rawPathExpression)}
108
+ })()`;
109
+ }
110
+ //#endregion
66
111
  //#region src/shared/hostBootstrap.ts
67
112
  /**
68
113
  * Joins an integrator-provided `publicPath` prefix with the product `outputFolder`
@@ -94,27 +139,7 @@ function joinHostPublicPath(publicPath, outputFolder, defaultOutputFolder) {
94
139
  * `publicPath` is still unset — plugin-dev must rely on host prepend, not detection.
95
140
  */
96
141
  function createNormalizedPublicPathAssignment(environmentVariable, rawPath) {
97
- const literal = JSON.stringify(String(rawPath || ""));
98
- return [
99
- `if (!window.${environmentVariable}.publicPath) window.${environmentVariable}.publicPath = (function() {`,
100
- ` var rawPath = ${literal};`,
101
- " if (!rawPath) {",
102
- " rawPath = './';",
103
- " }",
104
- " try {",
105
- " var normalizedPath = String(rawPath);",
106
- " if (/^[a-zA-Z][a-zA-Z\\d+\\-.]*:/.test(normalizedPath) || normalizedPath.indexOf('//') === 0) {",
107
- " return normalizedPath;",
108
- " }",
109
- " var baseUrl = typeof document !== 'undefined' && document.baseURI",
110
- " ? document.baseURI",
111
- " : (typeof window !== 'undefined' && window.location ? window.location.href : '');",
112
- " return baseUrl ? new URL(normalizedPath, baseUrl).href : normalizedPath;",
113
- " } catch (_error) {",
114
- " return String(rawPath);",
115
- " }",
116
- "})();"
117
- ].join(" ");
142
+ return `if (!window.${environmentVariable}.publicPath) window.${environmentVariable}.publicPath = ${generateNormalizePublicPathIIFE(JSON.stringify(String(rawPath || "")))};`;
118
143
  }
119
144
  function createInitFragment$1(environmentVariable, publicPath, startupPrefetchMode) {
120
145
  return [
@@ -1,5 +1,4 @@
1
1
  import { Plugin } from "vite";
2
-
3
2
  //#region node_modules/.cache/bundler-plugins-dts/shared/pluginDevOptions.d.ts
4
3
  type PluginDevExternalsMode = 'esm' | 'globals' | 'async-globals' | false;
5
4
  type PluginDevOptions = {