useblocks 1.1.49 → 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.
- package/iframe/js/amp.BP7EklKo.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 +7 -7
- package/package.json +1 -7
- package/runtime/THIRD_PARTY_LICENSES.txt +1 -236
- package/runtime/index.js +0 -2
- package/runtime/package.json +0 -6
- package/runtime/plugin-dev-manifest.json +0 -4
- package/singlepage_headless_plugin.html +1 -1
- package/static/core/{339377b8.js → 12a9aa4e.js} +15355 -15285
- package/static/core/{b9f47840.js → 17d3ee0b.js} +8 -8
- package/static/core/{6895dd352.js → 195ca4a32.js} +15 -15
- package/static/core/{8e110c69.js → 2569fac8.js} +31 -31
- package/static/core/{4ca527032.js → 26ddf93e2.js} +2 -2
- package/static/core/{de79e0c5.js → 289ba982.js} +543 -518
- package/static/core/{11296a18.js → 30c5fe5f.js} +114 -114
- package/static/core/{e93d55b92.js → 3af8f3592.js} +4 -4
- package/static/core/{542ea53f2.js → 4a27bba92.js} +8 -8
- package/static/core/4a5f1756.js +466 -0
- package/static/core/{13f581cc.js → 4d493eba.js} +3 -3
- package/static/core/{acb049cb.js → 4dadf572.js} +1509 -1520
- package/static/core/{7a229b90.js → 5345bef8.js} +46 -46
- package/static/core/{27544e7e.js → 581ce428.js} +37 -19
- package/static/core/58c4b8d7.js +3150 -0
- package/static/core/{d8daf1142.js → 6156301b2.js} +3 -3
- package/static/core/{c3849484.js → 64bea1a9.js} +5 -5
- package/static/core/{ce4fc17f2.js → 680236f4.js} +1 -1
- package/static/core/{4b75d16c2.js → 687795b52.js} +4 -4
- package/static/core/{70407ac0.js → 72f86b2d.js} +3 -3
- package/static/core/{b77f0769.js → 8432f11e.js} +5 -5
- package/static/core/{59023866.js → 87969347.js} +706 -704
- package/static/core/{13d197af.js → 8a496b64.js} +27 -27
- package/static/core/{4e1b970f.js → 8ba13f332.js} +1 -1
- package/static/core/{386cf7b3.js → 951903fb.js} +9347 -9285
- package/static/core/{3dea3b87.js → 988589a5.js} +10 -10
- package/static/core/{a95c02bb.js → a1355a35.js} +5 -5
- package/static/core/{7c6fb2162.js → a36c3ab62.js} +3 -3
- package/static/core/{aacf134d.js → a4c19e27.js} +523 -503
- package/static/core/{2da1d66b.js → abd3f34c.js} +5 -5
- package/static/core/{528ad9282.js → ae20f0992.js} +16 -16
- package/static/core/{c59f9731.js → b9bb2c5f.js} +6785 -5088
- package/static/core/bf446743.js +761 -0
- package/static/core/{f96d2049.js → d1a1d4902.js} +1 -1
- package/static/core/{5b48fd69.js → d8d6485e.js} +5 -5
- package/static/core/{59e92cc3.js → d9398296.js} +5 -5
- package/static/core/{8c81db36.js → eb23332a.js} +3 -3
- package/static/core/{e7c24fe9.js → fa354fb5.js} +179 -173
- package/static/core/{1e5bf73c.js → ffee9a77.js} +7 -7
- package/static/esm/{d180c108.js → 3cde7cb6.js} +51 -70
- package/static/esm/{448d4bb0.js → 550bf3cb.js} +1 -1
- package/two_step_headless_plugin.html +1 -1
- package/ui-kit/index.js +49 -47
- package/{useblocks-core.15a9129c.js → useblocks-core.1279854f.js} +6 -6
- package/useblocks-esm.js +352 -392
- package/useblocks.js +67 -152
- package/runtime/prop-types/index.js +0 -4
- package/runtime/react-router-dom/index.js +0 -2
- package/static/core/1ca5f3772.js +0 -602
- package/static/core/3b4845f7.js +0 -3097
- package/static/core/a11c28c2.js +0 -467
- package/static/runtime/dom-export-CHgQ7Ws9.js +0 -8069
- package/static/runtime/prop-types-p_yYKrF7.js +0 -47
- /package/iframe/{iframe-eblock.15a9129c.html → iframe-eblock.1279854f.html} +0 -0
- /package/iframe/{iframe.15a9129c.html → iframe.1279854f.html} +0 -0
package/useblocks.js
CHANGED
|
@@ -689,7 +689,7 @@ var __amdEnv = window.__useblocks__ || (window.__useblocks__ = {});
|
|
|
689
689
|
|
|
690
690
|
|
|
691
691
|
// Configure AMD loader
|
|
692
|
-
__amdEnv.require.config({ baseUrl: "./", paths: {"core":"useblocks-core.
|
|
692
|
+
__amdEnv.require.config({ baseUrl: "./", paths: {"core":"useblocks-core.1279854f.js"} });
|
|
693
693
|
|
|
694
694
|
// PublicPath (script detection: entry script lookup → document.currentScript)
|
|
695
695
|
if (!__useblocks__.publicPath) {
|
|
@@ -1037,7 +1037,7 @@ if (!ns.assetUrl) {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
|
|
1039
1039
|
if (!ns.version) {
|
|
1040
|
-
ns.version = "1.1.
|
|
1040
|
+
ns.version = "1.1.56";
|
|
1041
1041
|
}
|
|
1042
1042
|
|
|
1043
1043
|
var modules = ns.modules = Object.create(null);
|
|
@@ -1050,8 +1050,6 @@ if (!ns.version) {
|
|
|
1050
1050
|
modules["ReactDomClient"] = runtimePromise.then(function(m) { return m["ReactDomClient"]; });
|
|
1051
1051
|
modules["ReactJsxRuntime"] = runtimePromise.then(function(m) { return m["ReactJsxRuntime"]; });
|
|
1052
1052
|
modules["ReactJsxDevRuntime"] = runtimePromise.then(function(m) { return m["ReactJsxDevRuntime"]; });
|
|
1053
|
-
modules["PropTypes"] = runtimePromise.then(function(m) { return m["PropTypes"]; });
|
|
1054
|
-
modules["ReactRouterDom"] = runtimePromise.then(function(m) { return m["ReactRouterDom"]; });
|
|
1055
1053
|
modules["Antd"] = runtimePromise.then(function(m) { return m["Antd"]; });
|
|
1056
1054
|
modules["AntDesignIcons"] = runtimePromise.then(function(m) { return m["AntDesignIcons"]; });
|
|
1057
1055
|
modules["AntDesignCssinjs"] = runtimePromise.then(function(m) { return m["AntDesignCssinjs"]; });
|
|
@@ -1291,70 +1289,6 @@ if (typeof ns.define === 'function') {
|
|
|
1291
1289
|
return __toSharedEsModule(originalValue);
|
|
1292
1290
|
});
|
|
1293
1291
|
});
|
|
1294
|
-
ns.define("prop-types", [], function() {
|
|
1295
|
-
var value = _modules["PropTypes"];
|
|
1296
|
-
if (value && typeof value.then === 'function') {
|
|
1297
|
-
return _modulesPromise.then(function(barrel) {
|
|
1298
|
-
var originalValue = barrel["PropTypes"];
|
|
1299
|
-
return __toSharedEsModule(originalValue);
|
|
1300
|
-
});
|
|
1301
|
-
}
|
|
1302
|
-
if (value !== undefined) {
|
|
1303
|
-
return __toSharedEsModule(value);
|
|
1304
|
-
}
|
|
1305
|
-
return _modulesPromise.then(function(barrel) {
|
|
1306
|
-
var originalValue = barrel["PropTypes"];
|
|
1307
|
-
return __toSharedEsModule(originalValue);
|
|
1308
|
-
});
|
|
1309
|
-
});
|
|
1310
|
-
ns.define("useblocks/runtime/prop-types", [], function() {
|
|
1311
|
-
var value = _modules["PropTypes"];
|
|
1312
|
-
if (value && typeof value.then === 'function') {
|
|
1313
|
-
return _modulesPromise.then(function(barrel) {
|
|
1314
|
-
var originalValue = barrel["PropTypes"];
|
|
1315
|
-
return __toSharedEsModule(originalValue);
|
|
1316
|
-
});
|
|
1317
|
-
}
|
|
1318
|
-
if (value !== undefined) {
|
|
1319
|
-
return __toSharedEsModule(value);
|
|
1320
|
-
}
|
|
1321
|
-
return _modulesPromise.then(function(barrel) {
|
|
1322
|
-
var originalValue = barrel["PropTypes"];
|
|
1323
|
-
return __toSharedEsModule(originalValue);
|
|
1324
|
-
});
|
|
1325
|
-
});
|
|
1326
|
-
ns.define("react-router-dom", [], function() {
|
|
1327
|
-
var value = _modules["ReactRouterDom"];
|
|
1328
|
-
if (value && typeof value.then === 'function') {
|
|
1329
|
-
return _modulesPromise.then(function(barrel) {
|
|
1330
|
-
var originalValue = barrel["ReactRouterDom"];
|
|
1331
|
-
return __toSharedEsModule(originalValue);
|
|
1332
|
-
});
|
|
1333
|
-
}
|
|
1334
|
-
if (value !== undefined) {
|
|
1335
|
-
return __toSharedEsModule(value);
|
|
1336
|
-
}
|
|
1337
|
-
return _modulesPromise.then(function(barrel) {
|
|
1338
|
-
var originalValue = barrel["ReactRouterDom"];
|
|
1339
|
-
return __toSharedEsModule(originalValue);
|
|
1340
|
-
});
|
|
1341
|
-
});
|
|
1342
|
-
ns.define("useblocks/runtime/react-router-dom", [], function() {
|
|
1343
|
-
var value = _modules["ReactRouterDom"];
|
|
1344
|
-
if (value && typeof value.then === 'function') {
|
|
1345
|
-
return _modulesPromise.then(function(barrel) {
|
|
1346
|
-
var originalValue = barrel["ReactRouterDom"];
|
|
1347
|
-
return __toSharedEsModule(originalValue);
|
|
1348
|
-
});
|
|
1349
|
-
}
|
|
1350
|
-
if (value !== undefined) {
|
|
1351
|
-
return __toSharedEsModule(value);
|
|
1352
|
-
}
|
|
1353
|
-
return _modulesPromise.then(function(barrel) {
|
|
1354
|
-
var originalValue = barrel["ReactRouterDom"];
|
|
1355
|
-
return __toSharedEsModule(originalValue);
|
|
1356
|
-
});
|
|
1357
|
-
});
|
|
1358
1292
|
ns.define("antd", [], function() {
|
|
1359
1293
|
var value = _modules["Antd"];
|
|
1360
1294
|
if (value && typeof value.then === 'function') {
|
|
@@ -1589,7 +1523,7 @@ __useblocks__.define("useblocks.js", [
|
|
|
1589
1523
|
"require",
|
|
1590
1524
|
"exports",
|
|
1591
1525
|
"module"
|
|
1592
|
-
], function(At, E,
|
|
1526
|
+
], function(At, E, Tt) {
|
|
1593
1527
|
Object.defineProperties(E, {
|
|
1594
1528
|
__esModule: { value: !0 },
|
|
1595
1529
|
[Symbol.toStringTag]: { value: "Module" }
|
|
@@ -1691,7 +1625,7 @@ __useblocks__.define("useblocks.js", [
|
|
|
1691
1625
|
this.injectFactory(o, (d, f = []) => (i = r(d, i), i === void 0 ? f : f.indexOf(i) < 0 ? [...f, i] : f), n);
|
|
1692
1626
|
const s = new y();
|
|
1693
1627
|
return s.addDispose(() => {
|
|
1694
|
-
this.injectFactory(o, (d, f = []) => i === void 0 ? f : f.filter((
|
|
1628
|
+
this.injectFactory(o, (d, f = []) => i === void 0 ? f : f.filter((u) => u !== i));
|
|
1695
1629
|
}), s;
|
|
1696
1630
|
}
|
|
1697
1631
|
getServices(t) {
|
|
@@ -1722,17 +1656,17 @@ __useblocks__.define("useblocks.js", [
|
|
|
1722
1656
|
function he(e) {
|
|
1723
1657
|
return e != null && typeof e == "object" && typeof e.inject == "function" && typeof e.getInstance == "function";
|
|
1724
1658
|
}
|
|
1725
|
-
function
|
|
1659
|
+
function Ie(e) {
|
|
1726
1660
|
if (e) return N(e);
|
|
1727
1661
|
return N("useblocks".trim());
|
|
1728
1662
|
}
|
|
1729
1663
|
function $(e) {
|
|
1730
|
-
const t = Ee(
|
|
1664
|
+
const t = Ee(Ie(e));
|
|
1731
1665
|
if (he(t.container)) return t.container;
|
|
1732
1666
|
const r = new _e(null);
|
|
1733
1667
|
return t.container = r, r;
|
|
1734
1668
|
}
|
|
1735
|
-
function
|
|
1669
|
+
function ge(e) {
|
|
1736
1670
|
return $(e);
|
|
1737
1671
|
}
|
|
1738
1672
|
function ye() {
|
|
@@ -1745,7 +1679,7 @@ __useblocks__.define("useblocks.js", [
|
|
|
1745
1679
|
function Se() {
|
|
1746
1680
|
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : ye();
|
|
1747
1681
|
}
|
|
1748
|
-
function
|
|
1682
|
+
function c(e = Se()) {
|
|
1749
1683
|
return e;
|
|
1750
1684
|
}
|
|
1751
1685
|
function q() {
|
|
@@ -1757,52 +1691,33 @@ __useblocks__.define("useblocks.js", [
|
|
|
1757
1691
|
globalThis[e] = r;
|
|
1758
1692
|
const n = r.__diagnostics ??= {}, o = n.diModuleEval ??= {
|
|
1759
1693
|
evalCount: 0,
|
|
1760
|
-
records: []
|
|
1761
|
-
duplicateWarned: !1
|
|
1694
|
+
records: []
|
|
1762
1695
|
};
|
|
1763
|
-
|
|
1696
|
+
o.records.push({
|
|
1764
1697
|
buildSource: t,
|
|
1765
1698
|
timestamp: Date.now(),
|
|
1766
1699
|
stack: new Error().stack
|
|
1767
|
-
}), o.evalCount += 1
|
|
1768
|
-
o.duplicateWarned = !0;
|
|
1769
|
-
o.evalCount, o.records;
|
|
1700
|
+
}), o.evalCount += 1;
|
|
1770
1701
|
}
|
|
1771
|
-
function
|
|
1702
|
+
function Te() {
|
|
1772
1703
|
return `__${"useblocks".trim()}__`;
|
|
1773
1704
|
}
|
|
1774
|
-
function
|
|
1705
|
+
function me(e, t) {
|
|
1775
1706
|
if (Ae(t), typeof globalThis > "u") return e;
|
|
1776
|
-
const r = q(), n = globalThis, o = n[t] = n[t] || {}, i = o.__diagnostics = o.__diagnostics || {}, s = i.dependencyResolver = i.dependencyResolver || {
|
|
1777
|
-
entries: [],
|
|
1778
|
-
warnings: []
|
|
1779
|
-
}, d = {
|
|
1707
|
+
const r = q(), n = globalThis, o = n[t] = n[t] || {}, i = o.__diagnostics = o.__diagnostics || {}, s = i.dependencyResolver = i.dependencyResolver || { entries: [] }, d = {
|
|
1780
1708
|
container: e,
|
|
1781
1709
|
source: "packages/runtime-core/di/index.ts",
|
|
1782
1710
|
buildSource: r,
|
|
1783
1711
|
timestamp: Date.now(),
|
|
1784
1712
|
stack: new Error().stack
|
|
1785
1713
|
};
|
|
1786
|
-
|
|
1787
|
-
const f = s.entries[0];
|
|
1788
|
-
if (s.entries.some((c) => c.container !== f.container) && !s.duplicateWarningShown) {
|
|
1789
|
-
s.duplicateWarningShown = !0;
|
|
1790
|
-
const c = {
|
|
1791
|
-
message: "[di] Multiple DependencyResolver instances detected on namespace",
|
|
1792
|
-
namespaceKey: t,
|
|
1793
|
-
buildSource: r,
|
|
1794
|
-
entries: s.entries
|
|
1795
|
-
};
|
|
1796
|
-
s.warnings.push(c);
|
|
1797
|
-
}
|
|
1798
|
-
}
|
|
1799
|
-
return e;
|
|
1714
|
+
return s.entries.push(d), e;
|
|
1800
1715
|
}
|
|
1801
|
-
var
|
|
1716
|
+
var T;
|
|
1802
1717
|
function De() {
|
|
1803
|
-
if (
|
|
1804
|
-
const e =
|
|
1805
|
-
return
|
|
1718
|
+
if (T) return T;
|
|
1719
|
+
const e = Te();
|
|
1720
|
+
return T = me($(e), e), T;
|
|
1806
1721
|
}
|
|
1807
1722
|
new Proxy({}, { get(e, t, r) {
|
|
1808
1723
|
const n = De(), o = Reflect.get(n, t, r);
|
|
@@ -2024,7 +1939,7 @@ __useblocks__.define("useblocks.js", [
|
|
|
2024
1939
|
}
|
|
2025
1940
|
}
|
|
2026
1941
|
var Me = "PluginRegistry";
|
|
2027
|
-
function xe(e =
|
|
1942
|
+
function xe(e = ge()) {
|
|
2028
1943
|
return e.getOrCreateInstance(Me, () => new Ne());
|
|
2029
1944
|
}
|
|
2030
1945
|
var ke = new ve(() => xe()), S = new WeakMap(), je = "data-useblocks-config-styles";
|
|
@@ -2051,18 +1966,18 @@ __useblocks__.define("useblocks.js", [
|
|
|
2051
1966
|
const t = S.get(e);
|
|
2052
1967
|
t && (t.remove(), S.delete(e));
|
|
2053
1968
|
}
|
|
2054
|
-
function
|
|
1969
|
+
function I(e) {
|
|
2055
1970
|
if (e instanceof DOMException && e.name === "AbortError") return e;
|
|
2056
1971
|
const t = e === void 0 ? "The operation was aborted." : typeof e == "string" ? e : e instanceof Error ? e.message : String(e);
|
|
2057
1972
|
return new DOMException(t, "AbortError");
|
|
2058
1973
|
}
|
|
2059
1974
|
function _(e) {
|
|
2060
|
-
if (e?.aborted) throw
|
|
1975
|
+
if (e?.aborted) throw I(e.reason);
|
|
2061
1976
|
}
|
|
2062
1977
|
function He(e, t) {
|
|
2063
1978
|
return t ? (_(t), new Promise((r, n) => {
|
|
2064
1979
|
const o = () => {
|
|
2065
|
-
i(), n(
|
|
1980
|
+
i(), n(I(t.reason));
|
|
2066
1981
|
}, i = () => {
|
|
2067
1982
|
t.removeEventListener("abort", o);
|
|
2068
1983
|
};
|
|
@@ -2103,7 +2018,7 @@ __useblocks__.define("useblocks.js", [
|
|
|
2103
2018
|
function Ve(e, t, r) {
|
|
2104
2019
|
if (e.isConnected) return e;
|
|
2105
2020
|
const n = e.id?.trim();
|
|
2106
|
-
return n ? z(`#${Fe(n)}`, t, r) : Promise.reject(
|
|
2021
|
+
return n ? z(`#${Fe(n)}`, t, r) : 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."));
|
|
2107
2022
|
}
|
|
2108
2023
|
function z(e, t, r) {
|
|
2109
2024
|
if (_(r), typeof e < "u") {
|
|
@@ -2114,17 +2029,17 @@ __useblocks__.define("useblocks.js", [
|
|
|
2114
2029
|
return new Promise((s, d) => {
|
|
2115
2030
|
const f = (h) => {
|
|
2116
2031
|
i.dispose(), h();
|
|
2117
|
-
},
|
|
2118
|
-
f(() => d(
|
|
2032
|
+
}, u = () => {
|
|
2033
|
+
f(() => d(I(r?.reason)));
|
|
2119
2034
|
};
|
|
2120
2035
|
if (r?.aborted) {
|
|
2121
|
-
|
|
2036
|
+
u();
|
|
2122
2037
|
return;
|
|
2123
2038
|
}
|
|
2124
|
-
r?.addEventListener("abort",
|
|
2039
|
+
r?.addEventListener("abort", u), i.addDispose(() => r?.removeEventListener("abort", u));
|
|
2125
2040
|
const l = document.body ?? document.documentElement;
|
|
2126
2041
|
if (!l) {
|
|
2127
|
-
f(() => d(
|
|
2042
|
+
f(() => d(I("Document is not ready to observe mount element")));
|
|
2128
2043
|
return;
|
|
2129
2044
|
}
|
|
2130
2045
|
const p = new Set(), ue = new MutationObserver(() => {
|
|
@@ -2151,7 +2066,7 @@ __useblocks__.define("useblocks.js", [
|
|
|
2151
2066
|
}
|
|
2152
2067
|
return e;
|
|
2153
2068
|
}
|
|
2154
|
-
var
|
|
2069
|
+
var g = new Map();
|
|
2155
2070
|
function J() {
|
|
2156
2071
|
return !1;
|
|
2157
2072
|
}
|
|
@@ -2205,7 +2120,7 @@ __useblocks__.define("useblocks.js", [
|
|
|
2205
2120
|
};
|
|
2206
2121
|
}
|
|
2207
2122
|
function A(e) {
|
|
2208
|
-
return
|
|
2123
|
+
return c(e);
|
|
2209
2124
|
}
|
|
2210
2125
|
A("HANDLE_ATOM_INSERT");
|
|
2211
2126
|
A("SETTINGS_PANEL_EVENT");
|
|
@@ -2221,19 +2136,19 @@ __useblocks__.define("useblocks.js", [
|
|
|
2221
2136
|
enqueueReplaceState: function() {},
|
|
2222
2137
|
enqueueSetState: function() {}
|
|
2223
2138
|
}, r = Object.assign, n = {};
|
|
2224
|
-
function o(
|
|
2225
|
-
this.props =
|
|
2226
|
-
}
|
|
2227
|
-
o.prototype.isReactComponent = {}, o.prototype.setState = function(
|
|
2228
|
-
if (typeof
|
|
2229
|
-
this.updater.enqueueSetState(this,
|
|
2230
|
-
}, o.prototype.forceUpdate = function(
|
|
2231
|
-
this.updater.enqueueForceUpdate(this,
|
|
2139
|
+
function o(u, l, p) {
|
|
2140
|
+
this.props = u, this.context = l, this.refs = n, this.updater = p || t;
|
|
2141
|
+
}
|
|
2142
|
+
o.prototype.isReactComponent = {}, o.prototype.setState = function(u, l) {
|
|
2143
|
+
if (typeof u != "object" && typeof u != "function" && u != null) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
2144
|
+
this.updater.enqueueSetState(this, u, l, "setState");
|
|
2145
|
+
}, o.prototype.forceUpdate = function(u) {
|
|
2146
|
+
this.updater.enqueueForceUpdate(this, u, "forceUpdate");
|
|
2232
2147
|
};
|
|
2233
2148
|
function i() {}
|
|
2234
2149
|
i.prototype = o.prototype;
|
|
2235
|
-
function s(
|
|
2236
|
-
this.props =
|
|
2150
|
+
function s(u, l, p) {
|
|
2151
|
+
this.props = u, this.context = l, this.refs = n, this.updater = p || t;
|
|
2237
2152
|
}
|
|
2238
2153
|
var d = s.prototype = new i();
|
|
2239
2154
|
d.constructor = s, r(d, o.prototype), d.isPureReactComponent = !0;
|
|
@@ -2243,7 +2158,7 @@ __useblocks__.define("useblocks.js", [
|
|
|
2243
2158
|
t.exports = Xe();
|
|
2244
2159
|
}))();
|
|
2245
2160
|
function a(e) {
|
|
2246
|
-
return
|
|
2161
|
+
return c(e);
|
|
2247
2162
|
}
|
|
2248
2163
|
var Q;
|
|
2249
2164
|
(function(e) {
|
|
@@ -2377,7 +2292,7 @@ __useblocks__.define("useblocks.js", [
|
|
|
2377
2292
|
}
|
|
2378
2293
|
var k = "Editor mount element was removed from the document. Call instance.destroy() on host unmount.";
|
|
2379
2294
|
function rt() {
|
|
2380
|
-
return
|
|
2295
|
+
return I(k);
|
|
2381
2296
|
}
|
|
2382
2297
|
function oe(e) {
|
|
2383
2298
|
return !(e instanceof DOMException) || e.name !== "AbortError" ? !1 : e.message === k;
|
|
@@ -2410,12 +2325,12 @@ __useblocks__.define("useblocks.js", [
|
|
|
2410
2325
|
}
|
|
2411
2326
|
var j = "Superseded by newer init() on the same mount element";
|
|
2412
2327
|
function ie() {
|
|
2413
|
-
return
|
|
2328
|
+
return I(j);
|
|
2414
2329
|
}
|
|
2415
2330
|
function se(e) {
|
|
2416
2331
|
return !(e instanceof DOMException) || e.name !== "AbortError" ? !1 : e.message === j;
|
|
2417
2332
|
}
|
|
2418
|
-
var
|
|
2333
|
+
var m = new Map(), D = new WeakMap();
|
|
2419
2334
|
function it(e) {
|
|
2420
2335
|
if (e instanceof Element) {
|
|
2421
2336
|
const t = e.id?.trim();
|
|
@@ -2425,12 +2340,12 @@ __useblocks__.define("useblocks.js", [
|
|
|
2425
2340
|
function st(e) {
|
|
2426
2341
|
if (!(e instanceof Element)) return { release: () => {} };
|
|
2427
2342
|
const t = it(e);
|
|
2428
|
-
D.get(e)?.abort(ie()), t &&
|
|
2343
|
+
D.get(e)?.abort(ie()), t && m.get(t)?.abort(ie());
|
|
2429
2344
|
const r = new AbortController();
|
|
2430
|
-
return D.set(e, r), t &&
|
|
2345
|
+
return D.set(e, r), t && m.set(t, r), {
|
|
2431
2346
|
signal: r.signal,
|
|
2432
2347
|
release: () => {
|
|
2433
|
-
D.get(e) === r && D.delete(e), t &&
|
|
2348
|
+
D.get(e) === r && D.delete(e), t && m.get(t) === r && m.delete(t);
|
|
2434
2349
|
}
|
|
2435
2350
|
};
|
|
2436
2351
|
}
|
|
@@ -2496,17 +2411,17 @@ __useblocks__.define("useblocks.js", [
|
|
|
2496
2411
|
} catch {}
|
|
2497
2412
|
}
|
|
2498
2413
|
function G(e, ...t) {
|
|
2499
|
-
const r =
|
|
2500
|
-
t.some((n) => n !== void 0 && n === r) &&
|
|
2414
|
+
const r = g.get(e);
|
|
2415
|
+
t.some((n) => n !== void 0 && n === r) && g.delete(e);
|
|
2501
2416
|
}
|
|
2502
|
-
var _t = "1.1.
|
|
2417
|
+
var _t = "1.1.56";
|
|
2503
2418
|
async function Et(e) {
|
|
2504
2419
|
await X(typeof __useblocks__ < "u" ? __useblocks__ : void 0);
|
|
2505
2420
|
}
|
|
2506
2421
|
async function ht(e) {
|
|
2507
|
-
return
|
|
2422
|
+
return It(e);
|
|
2508
2423
|
}
|
|
2509
|
-
async function
|
|
2424
|
+
async function It(e) {
|
|
2510
2425
|
_(e.signal);
|
|
2511
2426
|
const t = new y();
|
|
2512
2427
|
let r;
|
|
@@ -2519,34 +2434,34 @@ __useblocks__.define("useblocks.js", [
|
|
|
2519
2434
|
}), i = st(n);
|
|
2520
2435
|
r = i.release;
|
|
2521
2436
|
const s = ne(o, i.signal);
|
|
2522
|
-
return await He(
|
|
2437
|
+
return await He(gt(e, n, s), s);
|
|
2523
2438
|
} finally {
|
|
2524
2439
|
r?.(), t.dispose();
|
|
2525
2440
|
}
|
|
2526
2441
|
}
|
|
2527
|
-
async function
|
|
2442
|
+
async function gt(e, t, r) {
|
|
2528
2443
|
_(r);
|
|
2529
2444
|
const n = Ze(tt(lt(e, t))), o = r != null ? {
|
|
2530
2445
|
...n,
|
|
2531
2446
|
signal: r
|
|
2532
2447
|
} : n;
|
|
2533
2448
|
if (t) {
|
|
2534
|
-
const
|
|
2535
|
-
if (
|
|
2449
|
+
const u = g.get(t);
|
|
2450
|
+
if (u) {
|
|
2536
2451
|
let l;
|
|
2537
2452
|
try {
|
|
2538
|
-
l = await
|
|
2453
|
+
l = await u, _(r);
|
|
2539
2454
|
} catch (p) {
|
|
2540
|
-
if (_(r), G(t,
|
|
2455
|
+
if (_(r), G(t, u), ae(p)) throw p;
|
|
2541
2456
|
l = void 0;
|
|
2542
2457
|
}
|
|
2543
2458
|
if (l) if (l.getElement() === t) try {
|
|
2544
2459
|
return await l.reset(o);
|
|
2545
2460
|
} catch (p) {
|
|
2546
2461
|
if (_(r), se(p) || oe(p) || ae(p) && r?.aborted) throw p;
|
|
2547
|
-
G(t,
|
|
2462
|
+
G(t, u, l), ce(l);
|
|
2548
2463
|
}
|
|
2549
|
-
else G(t,
|
|
2464
|
+
else G(t, u, l), ce(l);
|
|
2550
2465
|
}
|
|
2551
2466
|
}
|
|
2552
2467
|
_(r);
|
|
@@ -2557,14 +2472,14 @@ __useblocks__.define("useblocks.js", [
|
|
|
2557
2472
|
let f;
|
|
2558
2473
|
try {
|
|
2559
2474
|
await W(), _(r);
|
|
2560
|
-
const
|
|
2561
|
-
pt(d.plugins) ? (await R(
|
|
2475
|
+
const u = typeof __useblocks__ < "u" ? __useblocks__ : void 0;
|
|
2476
|
+
pt(d.plugins) ? (await R(u), _(r)) : Pe(u), _(r), f = C().then((p) => p.init(d)), t && g.set(t, f);
|
|
2562
2477
|
const l = await f;
|
|
2563
|
-
if (r?.aborted && (l.destroy(), _(r)), t) if (
|
|
2564
|
-
else throw l.destroy(), _(r),
|
|
2478
|
+
if (r?.aborted && (l.destroy(), _(r)), t) if (g.get(t) === f) g.set(t, l);
|
|
2479
|
+
else throw l.destroy(), _(r), I(r?.reason);
|
|
2565
2480
|
return l;
|
|
2566
|
-
} catch (
|
|
2567
|
-
throw i(), s.cleanup(), t && f &&
|
|
2481
|
+
} catch (u) {
|
|
2482
|
+
throw i(), s.cleanup(), t && f && g.get(t) === f && g.delete(t), u;
|
|
2568
2483
|
}
|
|
2569
2484
|
}
|
|
2570
2485
|
async function yt(e) {
|
|
@@ -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 };
|