@emailmaker/emailmaker 1.1.53 → 1.1.56

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 (63) hide show
  1. package/{emailmaker-core.2cbaea2b.js → emailmaker-core.80c7793f.js} +6 -6
  2. package/emailmaker-esm.js +298 -338
  3. package/emailmaker.js +62 -147
  4. package/iframe/js/amp.V09Q6hy6.js +1 -1
  5. package/iframe/js/iframe-eblock.js +1 -1
  6. package/iframe/js/iframe.js +1 -1
  7. package/iframe/js/rules.B-wCbIo7.js +1 -1
  8. package/npm-publish.manifest.json +7 -7
  9. package/package.json +1 -7
  10. package/runtime/THIRD_PARTY_LICENSES.txt +0 -235
  11. package/runtime/index.js +0 -2
  12. package/runtime/package.json +0 -6
  13. package/runtime/plugin-dev-manifest.json +0 -4
  14. package/singlepage_headless_plugin.html +1 -1
  15. package/static/core/100f1a1f.js +3150 -0
  16. package/static/core/{7e999d72.js → 116ebe97.js} +13 -13
  17. package/static/core/{3723b7392.js → 17f94ad52.js} +2 -2
  18. package/static/core/{cc1487fb.js → 270ea1f0.js} +3 -3
  19. package/static/core/{f903e0b02.js → 3b0afd352.js} +17 -17
  20. package/static/core/{57d41489.js → 41907e94.js} +334 -323
  21. package/static/core/{9f0a0813.js → 478adc67.js} +26 -8
  22. package/static/core/{b3475019.js → 4de323c6.js} +3 -3
  23. package/static/core/{51d702ff2.js → 54db7dc92.js} +3 -3
  24. package/static/core/{97d77f4b.js → 5761661e.js} +5 -5
  25. package/static/core/{704587a1.js → 60b14e0c.js} +17 -17
  26. package/static/core/{7f43dc55.js → 6bc4ff83.js} +10 -10
  27. package/static/core/{4a0c3723.js → 6dcd0dc9.js} +25 -25
  28. package/static/core/{9e5fd9cd.js → 7515f9852.js} +1 -1
  29. package/static/core/{d745f656.js → 76f8b642.js} +1019 -1032
  30. package/static/core/{1ce9dbcd2.js → 86a167002.js} +4 -4
  31. package/static/core/{54619353.js → 86ef0d53.js} +7 -7
  32. package/static/core/{10ac6936.js → 87d6fa75.js} +5 -5
  33. package/static/core/8a4486b0.js +761 -0
  34. package/static/core/{83b6ffb1.js → 8c887aba.js} +12606 -12580
  35. package/static/core/{4f1afec5.js → 916b241e.js} +247 -250
  36. package/static/core/{c4f07357.js → 95fcea69.js} +5 -5
  37. package/static/core/{956da3cd.js → 99b9545a.js} +9096 -9074
  38. package/static/core/{b6536443.js → 9be94d262.js} +1 -1
  39. package/static/core/{d858c4102.js → aa8e5c1c2.js} +3 -3
  40. package/static/core/{51134c092.js → afd04ca42.js} +4 -4
  41. package/static/core/{61a44678.js → b654a72e.js} +6491 -4930
  42. package/static/core/{c46c4a1e2.js → b6cc5b522.js} +4 -4
  43. package/static/core/c6089a51.js +466 -0
  44. package/static/core/{927ea89f2.js → d7506406.js} +1 -1
  45. package/static/core/{d6b9ee5f2.js → d76199d02.js} +15 -15
  46. package/static/core/{abb0338c.js → d89e1015.js} +90 -90
  47. package/static/core/{b768aab6.js → e57264b8.js} +3 -3
  48. package/static/core/{75e0e02f.js → fa39fd23.js} +26 -26
  49. package/static/core/{898acf3a.js → fd0c6ce7.js} +8 -8
  50. package/static/core/{4a151a86.js → ffb0449a.js} +42 -42
  51. package/static/core/{c79a7344.js → ffd61885.js} +5 -5
  52. package/static/esm/{1ce2bc32.js → 8b0bebd1.js} +55 -74
  53. package/static/esm/{c9e541a3.js → aec29e9e.js} +1 -1
  54. package/two_step_headless_plugin.html +1 -1
  55. package/runtime/prop-types/index.js +0 -4
  56. package/runtime/react-router-dom/index.js +0 -2
  57. package/static/core/342d650a.js +0 -467
  58. package/static/core/3bff559e.js +0 -3097
  59. package/static/core/9e7e9aa52.js +0 -602
  60. package/static/runtime/dom-export-CHgQ7Ws9.js +0 -8069
  61. package/static/runtime/prop-types-p_yYKrF7.js +0 -47
  62. /package/iframe/{iframe-eblock.2cbaea2b.html → iframe-eblock.80c7793f.html} +0 -0
  63. /package/iframe/{iframe.2cbaea2b.html → iframe.80c7793f.html} +0 -0
@@ -1,18 +1,18 @@
1
- var E = Object.defineProperty, v = (t, e) => {
1
+ var g = Object.defineProperty, E = (t, e) => {
2
2
  let r = {};
3
- for (var n in t) E(r, n, {
3
+ for (var n in t) g(r, n, {
4
4
  get: t[n],
5
5
  enumerable: !0
6
6
  });
7
- return e || E(r, Symbol.toStringTag, { value: "Module" }), r;
8
- }, f = class y {
7
+ return e || g(r, Symbol.toStringTag, { value: "Module" }), r;
8
+ }, d = class v {
9
9
  _inner;
10
10
  _isDisposed = !1;
11
11
  constructor(e = []) {
12
12
  this._inner = e;
13
13
  }
14
14
  addDisposable(e) {
15
- return this._inner.push(e), e instanceof y && e.addDispose(() => {
15
+ return this._inner.push(e), e instanceof v && e.addDispose(() => {
16
16
  this.removeDisposable(e);
17
17
  }), e;
18
18
  }
@@ -33,10 +33,10 @@ var E = Object.defineProperty, v = (t, e) => {
33
33
  }
34
34
  }
35
35
  };
36
- function p(t) {
36
+ function f(t) {
37
37
  return `service_container_${t}`;
38
38
  }
39
- var T = class h extends f {
39
+ var D = class h extends d {
40
40
  _parent;
41
41
  _injectCallbacks = [];
42
42
  _injections = /* @__PURE__ */ Object.create(null);
@@ -55,14 +55,14 @@ var T = class h extends f {
55
55
  }
56
56
  injectFactory(e, r, n) {
57
57
  const s = this._injections[e];
58
- let o = typeof s == "function" ? s() : s;
59
- const i = this._injections[e] = () => (o = r(this, o), o);
60
- n && i(), this._runCallbacks(e);
58
+ let i = typeof s == "function" ? s() : s;
59
+ const o = this._injections[e] = () => (i = r(this, i), i);
60
+ n && o(), this._runCallbacks(e);
61
61
  }
62
62
  _find(e, r = !0) {
63
63
  return this._injections[e] || r && this._parent?._find(e);
64
64
  }
65
- _onInject(e, r, n = new f()) {
65
+ _onInject(e, r, n = new d()) {
66
66
  return n.addDisposable(this.onInject((s) => {
67
67
  e === s && (n.dispose(), r(this.getInstance(s)));
68
68
  })), this._parent && n.addDisposable(this._parent._onInject(e, r, n)), this.addDisposable(n), n;
@@ -82,24 +82,24 @@ var T = class h extends f {
82
82
  return typeof r == "function" ? Promise.resolve(r()) : new Promise((n) => this._onInject(e, () => n(this.getInstance(e))));
83
83
  }
84
84
  addService(e, r) {
85
- const n = p(e);
86
- this.injectFactory(n, (o, i = []) => i.indexOf(r) < 0 ? [...i, r] : i);
87
- const s = new f();
85
+ const n = f(e);
86
+ this.injectFactory(n, (i, o = []) => o.indexOf(r) < 0 ? [...o, r] : o);
87
+ const s = new d();
88
88
  return s.addDispose(() => {
89
- this.injectFactory(n, (o, i = []) => i.filter((u) => u !== r));
89
+ this.injectFactory(n, (i, o = []) => o.filter((u) => u !== r));
90
90
  }), s;
91
91
  }
92
92
  addServiceFactory(e, r, n) {
93
- const s = p(e);
94
- let o;
95
- this.injectFactory(s, (u, c = []) => (o = r(u, o), o === void 0 ? c : c.indexOf(o) < 0 ? [...c, o] : c), n);
96
- const i = new f();
97
- return i.addDispose(() => {
98
- this.injectFactory(s, (u, c = []) => o === void 0 ? c : c.filter((d) => d !== o));
99
- }), i;
93
+ const s = f(e);
94
+ let i;
95
+ this.injectFactory(s, (u, c = []) => (i = r(u, i), i === void 0 ? c : c.indexOf(i) < 0 ? [...c, i] : c), n);
96
+ const o = new d();
97
+ return o.addDispose(() => {
98
+ this.injectFactory(s, (u, c = []) => i === void 0 ? c : c.filter((T) => T !== i));
99
+ }), o;
100
100
  }
101
101
  getServices(e) {
102
- const r = p(e);
102
+ const r = f(e);
103
103
  return [...this.getInstance(r, !1) || [], ...this._parent?.getServices(e) || []];
104
104
  }
105
105
  createChild() {
@@ -115,101 +115,82 @@ var T = class h extends f {
115
115
  this._injections = /* @__PURE__ */ Object.create(null);
116
116
  }
117
117
  };
118
- function g(t) {
118
+ function p(t) {
119
119
  return t.startsWith("__") ? t : `__${t}__`;
120
120
  }
121
121
  function A(t) {
122
122
  if (typeof globalThis > "u") throw new Error("[di] globalThis is required for namespace container access.");
123
- const e = g(t), r = globalThis;
123
+ const e = p(t), r = globalThis;
124
124
  return r[e] ??= {};
125
125
  }
126
126
  function C(t) {
127
127
  return t != null && typeof t == "object" && typeof t.inject == "function" && typeof t.getInstance == "function";
128
128
  }
129
- function m(t) {
130
- if (t) return g(t);
131
- return g("emailmaker".trim());
129
+ function x(t) {
130
+ if (t) return p(t);
131
+ return p("emailmaker".trim());
132
132
  }
133
- function S(t) {
134
- const e = A(m(t));
133
+ function y(t) {
134
+ const e = A(x(t));
135
135
  if (C(e.container)) return e.container;
136
- const r = new T(null);
136
+ const r = new D(null);
137
137
  return e.container = r, r;
138
138
  }
139
- function x(t) {
140
- return S(t);
139
+ function O(t) {
140
+ return y(t);
141
141
  }
142
- function O() {
142
+ function m() {
143
143
  let t = (/* @__PURE__ */ new Date()).getTime(), e = typeof performance < "u" && performance.now && performance.now() * 1e3 || 0;
144
144
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(r) {
145
145
  let n = Math.random() * 16;
146
146
  return t > 0 ? (n = (t + n) % 16 | 0, t = Math.floor(t / 16)) : (n = (e + n) % 16 | 0, e = Math.floor(e / 16)), (r === "x" ? n : n & 3 | 8).toString(16);
147
147
  });
148
148
  }
149
- function w() {
150
- return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : O();
149
+ function N() {
150
+ return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : m();
151
151
  }
152
- function a(t = w()) {
152
+ function a(t = N()) {
153
153
  return t;
154
154
  }
155
155
  function I() {
156
156
  return "esm".trim();
157
157
  }
158
- function N(t) {
158
+ function R(t) {
159
159
  if (typeof globalThis > "u") return;
160
160
  const e = I(), r = globalThis[t] ?? {};
161
161
  globalThis[t] = r;
162
162
  const n = r.__diagnostics ??= {}, s = n.diModuleEval ??= {
163
163
  evalCount: 0,
164
- records: [],
165
- duplicateWarned: !1
164
+ records: []
166
165
  };
167
- if (s.records.push({
166
+ s.records.push({
168
167
  buildSource: e,
169
168
  timestamp: Date.now(),
170
169
  stack: (/* @__PURE__ */ new Error()).stack
171
- }), s.evalCount += 1, s.evalCount <= 1 || s.duplicateWarned) return;
172
- s.duplicateWarned = !0;
173
- s.evalCount, s.records;
170
+ }), s.evalCount += 1;
174
171
  }
175
- function R() {
172
+ function b() {
176
173
  return `__${"emailmaker".trim()}__`;
177
174
  }
178
- function b(t, e) {
179
- if (N(e), typeof globalThis > "u") return t;
180
- const r = I(), n = globalThis, s = n[e] = n[e] || {}, o = s.__diagnostics = s.__diagnostics || {}, i = o.dependencyResolver = o.dependencyResolver || {
181
- entries: [],
182
- warnings: []
183
- }, u = {
175
+ function M(t, e) {
176
+ if (R(e), typeof globalThis > "u") return t;
177
+ const r = I(), n = globalThis, s = n[e] = n[e] || {}, i = s.__diagnostics = s.__diagnostics || {}, o = i.dependencyResolver = i.dependencyResolver || { entries: [] }, u = {
184
178
  container: t,
185
179
  source: "packages/runtime-core/di/index.ts",
186
180
  buildSource: r,
187
181
  timestamp: Date.now(),
188
182
  stack: (/* @__PURE__ */ new Error()).stack
189
183
  };
190
- if (i.entries.push(u), i.entries.length > 1) {
191
- const c = i.entries[0];
192
- if (i.entries.some((d) => d.container !== c.container) && !i.duplicateWarningShown) {
193
- i.duplicateWarningShown = !0;
194
- const d = {
195
- message: "[di] Multiple DependencyResolver instances detected on namespace",
196
- namespaceKey: e,
197
- buildSource: r,
198
- entries: i.entries
199
- };
200
- i.warnings.push(d);
201
- }
202
- }
203
- return t;
184
+ return o.entries.push(u), t;
204
185
  }
205
186
  var _;
206
- function M() {
187
+ function w() {
207
188
  if (_) return _;
208
- const t = R();
209
- return _ = b(S(t), t), _;
189
+ const t = b();
190
+ return _ = M(y(t), t), _;
210
191
  }
211
192
  new Proxy({}, { get(t, e, r) {
212
- const n = M(), s = Reflect.get(n, e, r);
193
+ const n = w(), s = Reflect.get(n, e, r);
213
194
  return typeof s == "function" ? s.bind(n) : s;
214
195
  } });
215
196
  function L(t, e = "BackendError") {
@@ -388,7 +369,7 @@ var j = class {
388
369
  return this.target().forContext();
389
370
  }
390
371
  }, U = "PluginRegistry";
391
- function F(t = x()) {
372
+ function F(t = O()) {
392
373
  return t.getOrCreateInstance(U, () => new j());
393
374
  }
394
375
  var G = new P(() => F());
@@ -400,7 +381,7 @@ l("SETTINGS_PANEL_EVENT");
400
381
  l("MODAL_SHOW_EVENT");
401
382
  l("MODAL_CLOSE_EVENT");
402
383
  l("MODAL_UPDATE_EVENT");
403
- var oe = /* @__PURE__ */ v({ FileManagerApiError: () => V }), V = class D extends Error {
384
+ var oe = /* @__PURE__ */ E({ FileManagerApiError: () => V }), V = class S extends Error {
404
385
  code;
405
386
  status;
406
387
  details;
@@ -408,7 +389,7 @@ var oe = /* @__PURE__ */ v({ FileManagerApiError: () => V }), V = class D extend
408
389
  return this.status;
409
390
  }
410
391
  constructor(e, r, n, s) {
411
- super(e), this.name = "FileManagerApiError", this.code = r, this.status = n, this.details = s, Error.captureStackTrace && Error.captureStackTrace(this, D);
392
+ super(e), this.name = "FileManagerApiError", this.code = r, this.status = n, this.details = s, Error.captureStackTrace && Error.captureStackTrace(this, S);
412
393
  }
413
- }, ae = /* @__PURE__ */ v({ mapHttpStatusToErrorCode: () => L });
414
- export { f as a, a as i, oe as n, G as r, ae as t };
394
+ }, ae = /* @__PURE__ */ E({ mapHttpStatusToErrorCode: () => L });
395
+ export { d as a, a as i, oe as n, G as r, ae as t };
@@ -1,4 +1,4 @@
1
- import { a as P, i as I } from "./1ce2bc32.js";
1
+ import { a as P, i as I } from "./8b0bebd1.js";
2
2
  import "@emailmaker/emailmaker/runtime/react";
3
3
  function i(o) {
4
4
  if (o instanceof DOMException && o.name === "AbortError") return o;
@@ -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?2cbaea2b"></script>
6
+ <script id="plugin-script" type="text/javascript" src="emailmaker.js?80c7793f"></script>
7
7
  <style>
8
8
  body {
9
9
  margin: 0;
@@ -1,4 +0,0 @@
1
- import { r as t } from "../../static/runtime/rolldown-runtime-Bklm4c_g.js";
2
- import { t as a } from "../../static/runtime/prop-types-p_yYKrF7.js";
3
- var e = t(a()), f = e.default && e.default.default ? e.default.default : e.default, { array: p, bigint: n, bool: l, func: s, number: u, object: d, string: y, symbol: i, any: m, arrayOf: c, element: _, elementType: b, instanceOf: O, node: T, objectOf: g, oneOf: h, oneOfType: v, shape: j, exact: x, checkPropTypes: P, resetWarningCache: k, PropTypes: q } = e.default;
4
- export { q as PropTypes, m as any, p as array, c as arrayOf, n as bigint, l as bool, P as checkPropTypes, f as default, _ as element, b as elementType, x as exact, s as func, O as instanceOf, T as node, u as number, d as object, g as objectOf, h as oneOf, v as oneOfType, k as resetWarningCache, j as shape, y as string, i as symbol };
@@ -1,2 +0,0 @@
1
- import { $ as a, $t as e, A as s, At as r, B as o, Bt as n, C as u, Ct as i, D as S, Dt as c, E as R, Et as F, F as l, Ft as E, G as d, Gt as h, H as N, Ht as _, I as A, It as y, J as C, Jt as m, K as p, Kt as P, L as U, Lt as v, M as H, Mt as g, N as x, Nt as D, O as b, Ot as k, P as w, Pt as L, Q as B, Qt as M, R as O, Rt as T, S as W, Sn as f, St as I, T as V, Tt as q, U as G, Ut as K, V as j, Vt as z, W as J, Wt as Q, X, Xt as Y, Y as Z, Yt as $, Z as tt, Zt as at, _ as et, _n as st, _t as rt, a as ot, an as nt, at as ut, b as it, bn as St, bt as ct, c as Rt, cn as Ft, ct as lt, d as Et, dn as dt, dt as ht, en as Nt, et as _t, f as At, fn as yt, ft as Ct, g as mt, gn as pt, gt as Pt, h as Ut, hn as vt, ht as Ht, i as gt, in as xt, it as Dt, j as bt, jt as kt, k as wt, kt as Lt, l as Bt, ln as Mt, lt as Ot, m as Tt, mn as Wt, mt as ft, n as It, nn as Vt, nt as qt, o as Gt, on as Kt, ot as jt, p as zt, pn as Jt, pt as Qt, q as Xt, qt as Yt, r as Zt, rn as $t, rt as ta, s as aa, sn as ea, st as sa, t as ra, tn as oa, tt as na, u as ua, un as ia, ut as Sa, v as ca, vn as Ra, vt as Fa, w as la, wt as Ea, x as da, xn as ha, xt as Na, y as _a, yn as Aa, yt as ya, z as Ca, zt as ma } from "../../static/runtime/dom-export-CHgQ7Ws9.js";
2
- export { da as Await, u as BrowserRouter, b as Form, s as HashRouter, ra as HydratedRouter, H as IDLE_BLOCKER, x as IDLE_FETCHER, w as IDLE_NAVIGATION, l as Link, A as Links, O as MemoryRouter, Ca as Meta, o as NavLink, j as Navigate, it as NavigationType, G as Outlet, J as PrefetchPageLinks, p as Route, C as Router, Z as RouterContextProvider, It as RouterProvider, X as Routes, tt as Scripts, B as ScrollRestoration, Gt as ServerRouter, _t as StaticRouter, na as StaticRouterProvider, W as UNSAFE_AwaitContextProvider, la as UNSAFE_DataRouterContext, V as UNSAFE_DataRouterStateContext, R as UNSAFE_ErrorResponseImpl, S as UNSAFE_FetchersContext, wt as UNSAFE_FrameworkContext, U as UNSAFE_LocationContext, N as UNSAFE_NavigationContext, Zt as UNSAFE_RSCDefaultRootErrorBoundary, d as UNSAFE_RemixErrorBoundary, Xt as UNSAFE_RouteContext, ot as UNSAFE_ServerMode, a as UNSAFE_SingleFetchRedirectSymbol, qt as UNSAFE_ViewTransitionContext, ta as UNSAFE_WithComponentProps, Dt as UNSAFE_WithErrorBoundaryProps, ut as UNSAFE_WithHydrateFallbackProps, jt as UNSAFE_createBrowserHistory, lt as UNSAFE_createClientRoutes, Ot as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ht as UNSAFE_createHashHistory, Qt as UNSAFE_createMemoryHistory, Pt as UNSAFE_createRouter, i as UNSAFE_decodeViaTurboStream, Tt as UNSAFE_getHydrationData, q as UNSAFE_getPatchRoutesOnNavigationFunction, F as UNSAFE_getTurboStreamSingleFetchDataStrategy, c as UNSAFE_hydrationRouteProperties, k as UNSAFE_invariant, r as UNSAFE_mapRouteProperties, ma as UNSAFE_shouldHydrateRouteLoader, Yt as UNSAFE_useFogOFWarDiscovery, pt as UNSAFE_useScrollRestoration, St as UNSAFE_withComponentProps, ha as UNSAFE_withErrorBoundaryProps, f as UNSAFE_withHydrateFallbackProps, sa as createBrowserRouter, Sa as createContext, aa as createCookie, Rt as createCookieSessionStorage, Ct as createHashRouter, ft as createMemoryRouter, Bt as createMemorySessionStorage, Ht as createPath, ua as createRequestHandler, rt as createRoutesFromChildren, Fa as createRoutesFromElements, Et as createRoutesStub, ya as createSearchParams, At as createSession, zt as createSessionStorage, ct as createStaticHandler, Na as createStaticRouter, I as data, Ea as generatePath, Ut as href, mt as isCookie, Lt as isRouteErrorResponse, et as isSession, kt as matchPath, g as matchRoutes, D as parsePath, L as redirect, E as redirectDocument, y as renderMatches, v as replace, T as resolvePath, bt as unstable_HistoryRouter, gt as unstable_RSCStaticRouter, ca as unstable_routeRSCServerRequest, _a as unstable_setDevServerHooks, Ft as unstable_usePrompt, dt as unstable_useRoute, Wt as unstable_useRouterState, n as useActionData, z as useAsyncError, _ as useAsyncValue, K as useBeforeUnload, Q as useBlocker, h as useFetcher, P as useFetchers, m as useFormAction, $ as useHref, Y as useInRouterContext, at as useLinkClickHandler, M as useLoaderData, e as useLocation, Nt as useMatch, oa as useMatches, Vt as useNavigate, $t as useNavigation, xt as useNavigationType, nt as useOutlet, Kt as useOutletContext, ea as useParams, Mt as useResolvedPath, ia as useRevalidator, yt as useRouteError, Jt as useRouteLoaderData, vt as useRoutes, st as useSearchParams, Ra as useSubmit, Aa as useViewTransitionState };