useblocks 1.1.43 → 1.1.44
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/README.md +378 -506
- package/iframe/js/amp.CVC2Iq48.js +1 -1
- package/iframe/js/iframe-eblock.js +1 -1
- package/iframe/js/iframe.js +1 -1
- package/iframe/js/rules.4N5s3OV-.js +1 -1
- package/npm-publish.manifest.json +51 -0
- package/package.json +2 -3
- package/singlepage_headless_plugin.html +1 -1
- package/static/core/{8b5b1941.js → 517cec3c.js} +9 -9
- package/static/core/{7f36c811.js → 7d884291.js} +24 -24
- package/static/core/{3d578760.js → 8c84cc76.js} +21 -21
- package/static/core/{58ac927a.js → 8d86c5ce.js} +27 -27
- package/static/core/{f99bda3c.js → 94f2c0df.js} +5996 -5988
- package/static/core/{e97665732.js → a59902082.js} +3 -3
- package/static/core/{f60cd334.js → bc098620.js} +3 -3
- package/static/core/{f505ff1c.js → cb72ea5e.js} +149 -149
- package/static/core/{db330968.js → d2b26db6.js} +156 -156
- package/static/core/{922866fe.js → d8749999.js} +101 -101
- package/two_step_headless_plugin.html +1 -1
- package/{useblocks-core.56efb32e.js → useblocks-core.bb621219.js} +2 -2
- package/useblocks-esm.js +51 -51
- package/useblocks.js +3 -3
- /package/iframe/{iframe-eblock.56efb32e.html → iframe-eblock.bb621219.html} +0 -0
- /package/iframe/{iframe.56efb32e.html → iframe.bb621219.html} +0 -0
|
@@ -494,7 +494,7 @@ __useblocks__.define("core", [
|
|
|
494
494
|
w
|
|
495
495
|
];
|
|
496
496
|
async function X() {
|
|
497
|
-
return (await Promise.resolve().then(() => f("./static/core/
|
|
497
|
+
return (await Promise.resolve().then(() => f("./static/core/517cec3c.js"))).default;
|
|
498
498
|
}
|
|
499
499
|
var W = (e) => {
|
|
500
500
|
let t = null, r = !1;
|
|
@@ -633,5 +633,5 @@ __useblocks__.define("core", [
|
|
|
633
633
|
ampHtml: r
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
|
-
b.init = ie, b.parseAMP = re, b.version = "1.1.
|
|
636
|
+
b.init = ie, b.parseAMP = re, b.version = "1.1.44";
|
|
637
637
|
});
|
package/useblocks-esm.js
CHANGED
|
@@ -13,8 +13,8 @@ import { useEffect as Ce, useMemo as st, useRef as Gt, useState as xe } from "us
|
|
|
13
13
|
if (d && d.src) return d.src.substring(0, d.src.lastIndexOf("/") + 1);
|
|
14
14
|
} catch {}
|
|
15
15
|
try {
|
|
16
|
-
var
|
|
17
|
-
if (
|
|
16
|
+
var b = import.meta.url;
|
|
17
|
+
if (b) return b.substring(0, b.lastIndexOf("/") + 1);
|
|
18
18
|
} catch {}
|
|
19
19
|
return "./";
|
|
20
20
|
})();
|
|
@@ -72,13 +72,13 @@ import { useEffect as Ce, useMemo as st, useRef as Gt, useState as xe } from "us
|
|
|
72
72
|
if (!u) return "";
|
|
73
73
|
if (/^(?:data:|blob:)/.test(u)) return u;
|
|
74
74
|
if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(u) || u.indexOf("//") === 0 || u.charAt(0) === "/") return l(u);
|
|
75
|
-
var d = u.replace(/^\.\/+/, "").replace(/^\/+/, ""),
|
|
75
|
+
var d = u.replace(/^\.\/+/, "").replace(/^\/+/, ""), b = "static/media".replace(/^\.\/+/, "").replace(/^\/+/, "").replace(/\/+$/, ""), E = b && d.indexOf(b + "/") !== 0 ? b + "/" + d : d, g = __useblocks__.publicPath || "./";
|
|
76
76
|
try {
|
|
77
|
-
return new URL(
|
|
77
|
+
return new URL(E, g).href;
|
|
78
78
|
} catch {
|
|
79
|
-
return g.slice(-1) !== "/" && (g += "/"), l(g +
|
|
79
|
+
return g.slice(-1) !== "/" && (g += "/"), l(g + E);
|
|
80
80
|
}
|
|
81
|
-
}), t.version || (t.version = "1.1.
|
|
81
|
+
}), t.version || (t.version = "1.1.44");
|
|
82
82
|
var e = t.modules = /* @__PURE__ */ Object.create(null), n = import("./runtime/index.js"), r = import("./ui-kit/index.js");
|
|
83
83
|
e.React = n.then(function(s) {
|
|
84
84
|
return s.React;
|
|
@@ -112,9 +112,9 @@ import { useEffect as Ce, useMemo as st, useRef as Gt, useState as xe } from "us
|
|
|
112
112
|
var o = Promise.all([n, r]).then(function(s) {
|
|
113
113
|
var l = s[0] || /* @__PURE__ */ Object.create(null), u = /* @__PURE__ */ Object.create(null);
|
|
114
114
|
for (var d in l) Object.prototype.hasOwnProperty.call(l, d) && (u[d] = l[d]);
|
|
115
|
-
var
|
|
116
|
-
u.UiKit =
|
|
117
|
-
for (var
|
|
115
|
+
var b = s[1] || /* @__PURE__ */ Object.create(null);
|
|
116
|
+
u.UiKit = b.UiKit !== void 0 ? b.UiKit : b;
|
|
117
|
+
for (var E in u) Object.prototype.hasOwnProperty.call(u, E) && (e[E] = u[E]);
|
|
118
118
|
return u;
|
|
119
119
|
}), i = e, a = o;
|
|
120
120
|
if (typeof t.define != "function") new Function("__amdEnv", `/**
|
|
@@ -790,7 +790,7 @@ import { useEffect as Ce, useMemo as st, useRef as Gt, useState as xe } from "us
|
|
|
790
790
|
})();
|
|
791
791
|
`)(t), typeof t.require == "function" && typeof t.require.config == "function" && t.require.config({
|
|
792
792
|
baseUrl: "./",
|
|
793
|
-
paths: { core: "useblocks-core.
|
|
793
|
+
paths: { core: "useblocks-core.bb621219.js" }
|
|
794
794
|
});
|
|
795
795
|
var p = typeof t.prefetch == "function" ? t.prefetch : void 0;
|
|
796
796
|
if (t.prefetch = function() {
|
|
@@ -809,8 +809,8 @@ import { useEffect as Ce, useMemo as st, useRef as Gt, useState as xe } from "us
|
|
|
809
809
|
__esModule: { value: !0 },
|
|
810
810
|
[Symbol.toStringTag]: { value: "Module" }
|
|
811
811
|
});
|
|
812
|
-
for (var
|
|
813
|
-
var g = E
|
|
812
|
+
for (var b = Reflect.ownKeys(l), E = 0; E < b.length; E++) {
|
|
813
|
+
var g = b[E];
|
|
814
814
|
if (g !== "__esModule") {
|
|
815
815
|
var I = Object.getOwnPropertyDescriptor(l, g);
|
|
816
816
|
I && Object.defineProperty(d, g, I);
|
|
@@ -1347,7 +1347,7 @@ var fn = F(), Ve;
|
|
|
1347
1347
|
t.getAll = r;
|
|
1348
1348
|
})(Ve || (Ve = {}));
|
|
1349
1349
|
var pe = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new WeakMap();
|
|
1350
|
-
function
|
|
1350
|
+
function bt(t) {
|
|
1351
1351
|
const e = String(t || "").trim();
|
|
1352
1352
|
if (e) return Ae(e);
|
|
1353
1353
|
return Ae("https://app.useblocks.io/api".trim());
|
|
@@ -1359,7 +1359,7 @@ async function pn(t) {
|
|
|
1359
1359
|
}
|
|
1360
1360
|
function mn(t) {
|
|
1361
1361
|
return async ({ baseUrl: e }) => {
|
|
1362
|
-
const n =
|
|
1362
|
+
const n = bt(e);
|
|
1363
1363
|
if (!n) throw new Error("[Loader] appInit warmup requires baseUrl or REACT_APP_OPENAPI_BASE_URL");
|
|
1364
1364
|
const r = new Headers({
|
|
1365
1365
|
Accept: "application/json",
|
|
@@ -1378,12 +1378,12 @@ function mn(t) {
|
|
|
1378
1378
|
}
|
|
1379
1379
|
function _n(t) {
|
|
1380
1380
|
return JSON.stringify({
|
|
1381
|
-
baseUrl:
|
|
1381
|
+
baseUrl: bt(t.baseUrl) || "",
|
|
1382
1382
|
project: t.project ?? "",
|
|
1383
1383
|
userId: t.user?.id ?? ""
|
|
1384
1384
|
});
|
|
1385
1385
|
}
|
|
1386
|
-
function
|
|
1386
|
+
function bn(t) {
|
|
1387
1387
|
return async (e) => {
|
|
1388
1388
|
const n = _n(e), r = pe.get(n);
|
|
1389
1389
|
if (r) return r;
|
|
@@ -1393,11 +1393,11 @@ function En(t) {
|
|
|
1393
1393
|
return pe.set(n, o), o;
|
|
1394
1394
|
};
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1396
|
+
function En(t) {
|
|
1397
1397
|
if (t.standaloneKey) return t;
|
|
1398
1398
|
const e = t.appInit || mn(t);
|
|
1399
1399
|
let n = He.get(e);
|
|
1400
|
-
return n || (n =
|
|
1400
|
+
return n || (n = bn(e), He.set(e, n)), Promise.resolve(n({
|
|
1401
1401
|
baseUrl: t.baseUrl,
|
|
1402
1402
|
user: t.user,
|
|
1403
1403
|
project: t.project,
|
|
@@ -1424,7 +1424,7 @@ function hn(t) {
|
|
|
1424
1424
|
getAuthToken: n
|
|
1425
1425
|
};
|
|
1426
1426
|
}
|
|
1427
|
-
function
|
|
1427
|
+
function Et(...t) {
|
|
1428
1428
|
const e = t.filter((i) => i != null);
|
|
1429
1429
|
if (e.length === 0) return;
|
|
1430
1430
|
if (e.length === 1) return e[0];
|
|
@@ -1461,13 +1461,13 @@ function R(t) {
|
|
|
1461
1461
|
function yn(t) {
|
|
1462
1462
|
return typeof t == "object" && t !== null ? t : void 0;
|
|
1463
1463
|
}
|
|
1464
|
-
function x({ id: t, title: e, meta: n, type: r, guid: o, acf: { lock: i, subject: a, description: c, html: f, project: p, tags: m, utm_parameters: s, parent_email: l, common_styles: u, is_template: d }, author:
|
|
1464
|
+
function x({ id: t, title: e, meta: n, type: r, guid: o, acf: { lock: i, subject: a, description: c, html: f, project: p, tags: m, utm_parameters: s, parent_email: l, common_styles: u, is_template: d }, author: b, ...E }) {
|
|
1465
1465
|
const g = yn(n);
|
|
1466
1466
|
return {
|
|
1467
|
-
...
|
|
1467
|
+
...E,
|
|
1468
1468
|
...g !== void 0 ? { meta: g } : {},
|
|
1469
1469
|
id: y(t),
|
|
1470
|
-
author: y(
|
|
1470
|
+
author: y(b),
|
|
1471
1471
|
title: R(e) || "",
|
|
1472
1472
|
lock: i,
|
|
1473
1473
|
description: c,
|
|
@@ -2486,9 +2486,9 @@ var er = class {
|
|
|
2486
2486
|
}, yt = (t) => {
|
|
2487
2487
|
return Ke[t] || Ke.editor;
|
|
2488
2488
|
};
|
|
2489
|
-
function M({ id: t, type: e, title: n, excerpt: r, author: o, acf: { subject: i, description: a, html: c, project: f, related_email: p, tags: m, type: s, is_template: l, global_block: u, lock: d }, ...
|
|
2489
|
+
function M({ id: t, type: e, title: n, excerpt: r, author: o, acf: { subject: i, description: a, html: c, project: f, related_email: p, tags: m, type: s, is_template: l, global_block: u, lock: d }, ...b }) {
|
|
2490
2490
|
return {
|
|
2491
|
-
...
|
|
2491
|
+
...b,
|
|
2492
2492
|
id: String(t),
|
|
2493
2493
|
author: String(o),
|
|
2494
2494
|
renderGuid: lt(),
|
|
@@ -2758,14 +2758,14 @@ var sr = "Edit selected element", Ze = "Build", vt = "desktop", ur = "mobile", S
|
|
|
2758
2758
|
return o.wp.eblock_autosaves_create({ id: e }, i, { type: k.FormData }).then(S(Ye));
|
|
2759
2759
|
} })
|
|
2760
2760
|
})
|
|
2761
|
-
}), { useGetBlocksQuery: fo, useGetBlockQuery: po, useLazyGetBlockQuery: mo, useGetBlockHistoryQuery: _o, useLazyGetBlockHistoryQuery:
|
|
2761
|
+
}), { useGetBlocksQuery: fo, useGetBlockQuery: po, useLazyGetBlockQuery: mo, useGetBlockHistoryQuery: _o, useLazyGetBlockHistoryQuery: bo, useGetBlocksSchemaQuery: Eo, useGetParentEmailBlocksQuery: go, useAddBlockMutation: ho, useEditBlockMutation: yo, useAddTagMutation: vo, useAutoSaveBlockMutation: So, useGetTemplateBlocksQuery: Ao } = St, et = window.localStorage?.getItem(B.em_code_mode_settings), be = et && JSON.parse(et), Ie = {
|
|
2762
2762
|
activeModal: "",
|
|
2763
2763
|
lastActiveSettingsTab: Ze,
|
|
2764
2764
|
activeSettingsTab: Ze,
|
|
2765
2765
|
isPanelHistoryCollapsed: !0,
|
|
2766
2766
|
monacoHeight: 0,
|
|
2767
|
-
isCodeMode:
|
|
2768
|
-
codeModeDirection:
|
|
2767
|
+
isCodeMode: be?.isCodeMode || re.isPlugin && be?.isCodeMode === void 0,
|
|
2768
|
+
codeModeDirection: be?.codeModeDirection || "left",
|
|
2769
2769
|
isHeaderCodeMenuOpen: {
|
|
2770
2770
|
current: !1,
|
|
2771
2771
|
switched: !1
|
|
@@ -2863,7 +2863,7 @@ var { openModal: To, closeModal: Io, setActiveSettingsTab: wo, resetToLastActive
|
|
|
2863
2863
|
"paying",
|
|
2864
2864
|
"paying_user"
|
|
2865
2865
|
];
|
|
2866
|
-
function
|
|
2866
|
+
function Ee(t) {
|
|
2867
2867
|
if (!t || typeof t != "object") return !1;
|
|
2868
2868
|
const e = t;
|
|
2869
2869
|
for (const n of pr) {
|
|
@@ -2884,7 +2884,7 @@ function mr(t) {
|
|
|
2884
2884
|
return n === !0 || n === 1 || n === "1" || typeof n == "string" && n.toLowerCase() === "true";
|
|
2885
2885
|
}
|
|
2886
2886
|
function ge(t) {
|
|
2887
|
-
const e = t.acf ?? {}, { autosaves: n, hide_mergetags: r, theme: o, newsletter_consent: i, code_editor: a, counters: c, subscription: f, subscription_end: p, recurring_payments: m, subscription_id: s, promocode: l, subscription_amount: u, enterprise_users_limit: d, enterprise_price:
|
|
2887
|
+
const e = t.acf ?? {}, { autosaves: n, hide_mergetags: r, theme: o, newsletter_consent: i, code_editor: a, counters: c, subscription: f, subscription_end: p, recurring_payments: m, subscription_id: s, promocode: l, subscription_amount: u, enterprise_users_limit: d, enterprise_price: b, enterprise_12_price: E, privacy_policy_agreement: g, last_used_project: I, email_confirmation: N, email_builder_config: j } = e, { id: le, acf: Le, ...q } = t, Dt = mr(e), Fe = c ?? {}, Ot = Ee(e) || Ee(q) || Ee(t.meta);
|
|
2888
2888
|
return {
|
|
2889
2889
|
...q,
|
|
2890
2890
|
id: y(le),
|
|
@@ -2909,19 +2909,19 @@ function ge(t) {
|
|
|
2909
2909
|
promocode: l,
|
|
2910
2910
|
subscription_amount: Y(u),
|
|
2911
2911
|
enterprise_users_limit: Y(d),
|
|
2912
|
-
enterprise_price: Y(
|
|
2913
|
-
enterprise_12_price: Y(
|
|
2912
|
+
enterprise_price: Y(b),
|
|
2913
|
+
enterprise_12_price: Y(E),
|
|
2914
2914
|
privacy_policy_agreement: g,
|
|
2915
2915
|
last_used_project: I,
|
|
2916
2916
|
email_confirmation: N,
|
|
2917
2917
|
email_builder_config: j
|
|
2918
2918
|
};
|
|
2919
2919
|
}
|
|
2920
|
-
function _r({ autosaves: t, theme: e, newsletter_consent: n, code_editor: r, counters: o, subscription: i, subscription_end: a, recurring_payments: c, subscription_id: f, promocode: p, subscription_amount: m, enterprise_users_limit: s, enterprise_price: l, enterprise_12_price: u, privacy_policy_agreement: d, locale:
|
|
2920
|
+
function _r({ autosaves: t, theme: e, newsletter_consent: n, code_editor: r, counters: o, subscription: i, subscription_end: a, recurring_payments: c, subscription_id: f, promocode: p, subscription_amount: m, enterprise_users_limit: s, enterprise_price: l, enterprise_12_price: u, privacy_policy_agreement: d, locale: b, last_used_project: E, email_confirmation: g, email_builder_config: I, trial_enabled: N, is_paying: j, id: le, ...Le }) {
|
|
2921
2921
|
return {
|
|
2922
2922
|
...Le,
|
|
2923
2923
|
id: T(le),
|
|
2924
|
-
locale:
|
|
2924
|
+
locale: b,
|
|
2925
2925
|
acf: {
|
|
2926
2926
|
autosaves: t,
|
|
2927
2927
|
theme: e,
|
|
@@ -2941,7 +2941,7 @@ function _r({ autosaves: t, theme: e, newsletter_consent: n, code_editor: r, cou
|
|
|
2941
2941
|
enterprise_price: l,
|
|
2942
2942
|
enterprise_12_price: u,
|
|
2943
2943
|
privacy_policy_agreement: d,
|
|
2944
|
-
last_used_project:
|
|
2944
|
+
last_used_project: E,
|
|
2945
2945
|
email_confirmation: g,
|
|
2946
2946
|
email_builder_config: I,
|
|
2947
2947
|
...N !== void 0 ? { trial_enabled: N } : {},
|
|
@@ -2949,7 +2949,7 @@ function _r({ autosaves: t, theme: e, newsletter_consent: n, code_editor: r, cou
|
|
|
2949
2949
|
}
|
|
2950
2950
|
};
|
|
2951
2951
|
}
|
|
2952
|
-
function
|
|
2952
|
+
function br({ title: t, acf: { limits: e, price: n }, ...r }) {
|
|
2953
2953
|
return {
|
|
2954
2954
|
...r,
|
|
2955
2955
|
title: R(t) || "",
|
|
@@ -2994,7 +2994,7 @@ var At = W({
|
|
|
2994
2994
|
return r.wp.users_me_create(o, { type: k.Json }).then(S(ge));
|
|
2995
2995
|
} }),
|
|
2996
2996
|
getSubscriptions: t.query({ queryFn(e, n) {
|
|
2997
|
-
return _(n).wp.subscription_list(void 0).then(C(
|
|
2997
|
+
return _(n).wp.subscription_list(void 0).then(C(br));
|
|
2998
2998
|
} }),
|
|
2999
2999
|
activateTrial: t.mutation({ query: (e) => ({
|
|
3000
3000
|
url: `${"https://app.useblocks.io/api".replaceAll(/[\\/]$/g, "")}/wp-json/subscription/v2/activate_trial`,
|
|
@@ -3034,7 +3034,7 @@ function he(t) {
|
|
|
3034
3034
|
t.base
|
|
3035
3035
|
];
|
|
3036
3036
|
}
|
|
3037
|
-
function
|
|
3037
|
+
function Er(t) {
|
|
3038
3038
|
let e;
|
|
3039
3039
|
for (const n of t) n?.fileManager && (e = {
|
|
3040
3040
|
...e || {},
|
|
@@ -3062,7 +3062,7 @@ function Z(t) {
|
|
|
3062
3062
|
n,
|
|
3063
3063
|
t.user,
|
|
3064
3064
|
r
|
|
3065
|
-
], i = Oe(o), a =
|
|
3065
|
+
], i = Oe(o), a = Er(o);
|
|
3066
3066
|
a !== void 0 && (i.fileManager = a);
|
|
3067
3067
|
const c = gr(o);
|
|
3068
3068
|
c !== void 0 && (i.resourceProxy = c);
|
|
@@ -3470,12 +3470,12 @@ var kt = W({
|
|
|
3470
3470
|
return e.page && (o.page = e.page), e.order && (o.order = e.order), e.orderby && (o.orderby = e.orderby), e.search && (o.search = e.search), e.after && (o.after = e.after), e.before && (o.before = e.before), e.per_page != null && (o.per_page = e.per_page), r.wp.project_list(o).then((i) => {
|
|
3471
3471
|
const a = C(L)(i);
|
|
3472
3472
|
if (a.error) return { error: a.error };
|
|
3473
|
-
const c = i.headers?.get?.("X-WP-Total"), f = i.headers?.get?.("X-WP-TotalPages"), p = c != null && c !== "" ? parseInt(String(c), 10) : NaN, m = f != null && f !== "" ? parseInt(String(f), 10) : NaN, s = Math.max(1, e.per_page ?? 12), l = Number.isFinite(m) ? m : Number.isFinite(p) ? Math.max(1, Math.ceil(p / s)) : NaN, u = a.data.length, d = Math.max(1, e.page ?? 1),
|
|
3474
|
-
let
|
|
3475
|
-
return Number.isFinite(
|
|
3473
|
+
const c = i.headers?.get?.("X-WP-Total"), f = i.headers?.get?.("X-WP-TotalPages"), p = c != null && c !== "" ? parseInt(String(c), 10) : NaN, m = f != null && f !== "" ? parseInt(String(f), 10) : NaN, s = Math.max(1, e.per_page ?? 12), l = Number.isFinite(m) ? m : Number.isFinite(p) ? Math.max(1, Math.ceil(p / s)) : NaN, u = a.data.length, d = Math.max(1, e.page ?? 1), b = s;
|
|
3474
|
+
let E = p, g = l;
|
|
3475
|
+
return Number.isFinite(E) ? Number.isFinite(g) || (g = Math.max(1, Math.ceil(E / b))) : d === 1 ? u === 0 ? (E = 0, g = 1) : u < b ? (E = u, g = 1) : (E = u + 1, g = 2) : u === 0 ? (E = Math.max(0, (d - 1) * b), g = Math.max(1, d - 1)) : u < b ? (E = (d - 1) * b + u, g = d) : (E = d * b + 1, g = d + 1), {
|
|
3476
3476
|
data: a.data,
|
|
3477
3477
|
meta: { projectsListPagination: {
|
|
3478
|
-
total:
|
|
3478
|
+
total: E,
|
|
3479
3479
|
totalPages: g
|
|
3480
3480
|
} }
|
|
3481
3481
|
};
|
|
@@ -3583,7 +3583,7 @@ var kt = W({
|
|
|
3583
3583
|
}]
|
|
3584
3584
|
})
|
|
3585
3585
|
})
|
|
3586
|
-
}), { useGetProjectsQuery: _i, useGetProjectQuery:
|
|
3586
|
+
}), { useGetProjectsQuery: _i, useGetProjectQuery: bi, useAddProjectMutation: Ei, useEditProjectMutation: gi, useGetFrequentProjectsQuery: hi } = kt, Pr = "Taxonomies", D = () => window.location.toString().includes("/blocks") ? "block" : "", kr = () => window.location.toString().includes("/blocks") ? "block" : "email", Ct = W({
|
|
3587
3587
|
reducerPath: "taxonomiesApi",
|
|
3588
3588
|
tagTypes: [
|
|
3589
3589
|
Pr,
|
|
@@ -3856,16 +3856,16 @@ var V = {
|
|
|
3856
3856
|
n.id, e.appliedShowToken, r?.id;
|
|
3857
3857
|
return;
|
|
3858
3858
|
}
|
|
3859
|
-
const
|
|
3860
|
-
if (re.isPlugin && a === void 0 && e.appliedShowToken > 0 && n.id !== r?.id && !
|
|
3859
|
+
const E = r?.renderGuid != null && r.renderGuid === n.renderGuid;
|
|
3860
|
+
if (re.isPlugin && a === void 0 && e.appliedShowToken > 0 && n.id !== r?.id && !E) {
|
|
3861
3861
|
n.id, e.appliedShowToken, r?.id;
|
|
3862
3862
|
return;
|
|
3863
3863
|
}
|
|
3864
3864
|
}
|
|
3865
|
-
const p = f || a !== void 0 && a !== e.appliedShowToken, m = i && n.modified !== void 0 && r.modified === n.modified, s = i && r.is_inited === !0 && m && !p && !!r.html?.trim(), l = i && r.renderGuid ? r.renderGuid : n.renderGuid ?? lt(), { showToken: u, showId: d, ...
|
|
3865
|
+
const p = f || a !== void 0 && a !== e.appliedShowToken, m = i && n.modified !== void 0 && r.modified === n.modified, s = i && r.is_inited === !0 && m && !p && !!r.html?.trim(), l = i && r.renderGuid ? r.renderGuid : n.renderGuid ?? lt(), { showToken: u, showId: d, ...b } = n;
|
|
3866
3866
|
e.email = {
|
|
3867
3867
|
...V.email,
|
|
3868
|
-
...
|
|
3868
|
+
...b,
|
|
3869
3869
|
...c ? { showId: c } : {},
|
|
3870
3870
|
renderGuid: l,
|
|
3871
3871
|
...s ? { html: r.html } : {},
|
|
@@ -3922,7 +3922,7 @@ function Nr(t) {
|
|
|
3922
3922
|
const i = new AbortController();
|
|
3923
3923
|
return Rr(n, () => {
|
|
3924
3924
|
n.id, i.abort(Dr());
|
|
3925
|
-
}, o),
|
|
3925
|
+
}, o), Et(r, i.signal);
|
|
3926
3926
|
}
|
|
3927
3927
|
var Mt = "Superseded by newer init() on the same mount element";
|
|
3928
3928
|
function ot() {
|
|
@@ -4004,7 +4004,7 @@ function ve(t, ...e) {
|
|
|
4004
4004
|
const n = O.get(t);
|
|
4005
4005
|
e.some((r) => r !== void 0 && r === n) && O.delete(t);
|
|
4006
4006
|
}
|
|
4007
|
-
var Ki = "1.1.
|
|
4007
|
+
var Ki = "1.1.44";
|
|
4008
4008
|
async function Ji(t) {
|
|
4009
4009
|
await dt(typeof window.__useblocks__ < "u" ? window.__useblocks__ : void 0);
|
|
4010
4010
|
}
|
|
@@ -4023,7 +4023,7 @@ async function zr(t) {
|
|
|
4023
4023
|
disposable: e
|
|
4024
4024
|
}), i = Fr(r);
|
|
4025
4025
|
n = i.release;
|
|
4026
|
-
const a =
|
|
4026
|
+
const a = Et(o, i.signal);
|
|
4027
4027
|
return await Lt(Vr(t, r, a), a);
|
|
4028
4028
|
} finally {
|
|
4029
4029
|
n?.(), e.dispose();
|
|
@@ -4031,7 +4031,7 @@ async function zr(t) {
|
|
|
4031
4031
|
}
|
|
4032
4032
|
async function Vr(t, e, n) {
|
|
4033
4033
|
P(n);
|
|
4034
|
-
const r =
|
|
4034
|
+
const r = En(hn(jr(t, e))), o = n != null ? {
|
|
4035
4035
|
...r,
|
|
4036
4036
|
signal: n
|
|
4037
4037
|
} : r;
|
package/useblocks.js
CHANGED
|
@@ -688,7 +688,7 @@ var __amdEnv = window.__useblocks__ || (window.__useblocks__ = {});
|
|
|
688
688
|
|
|
689
689
|
|
|
690
690
|
// Configure AMD loader
|
|
691
|
-
__amdEnv.require.config({ baseUrl: "./", paths: {"core":"useblocks-core.
|
|
691
|
+
__amdEnv.require.config({ baseUrl: "./", paths: {"core":"useblocks-core.bb621219.js"} });
|
|
692
692
|
|
|
693
693
|
// PublicPath (script detection: entry script lookup → document.currentScript)
|
|
694
694
|
if (!__useblocks__.publicPath) {
|
|
@@ -1002,7 +1002,7 @@ if (!__useblocks__.assetUrl) {
|
|
|
1002
1002
|
}
|
|
1003
1003
|
|
|
1004
1004
|
if (!ns.version) {
|
|
1005
|
-
ns.version = "1.1.
|
|
1005
|
+
ns.version = "1.1.44";
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
1008
1008
|
var modules = ns.modules = Object.create(null);
|
|
@@ -14268,7 +14268,7 @@ Error generating stack: ` + c.message + `
|
|
|
14268
14268
|
const o = rr.get(r);
|
|
14269
14269
|
n.some((l) => l !== void 0 && l === o) && rr.delete(r);
|
|
14270
14270
|
}
|
|
14271
|
-
var Mg = "1.1.
|
|
14271
|
+
var Mg = "1.1.44";
|
|
14272
14272
|
async function xg(r) {
|
|
14273
14273
|
await Is(typeof __useblocks__ < "u" ? __useblocks__ : void 0);
|
|
14274
14274
|
}
|
|
File without changes
|
|
File without changes
|