essor 0.0.16-beta.5 → 0.0.16-beta.7
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/dist/{chunk-IAVSY4MK.dev.esm.js → chunk-P26FIEPU.dev.esm.js} +53 -50
- package/dist/chunk-P26FIEPU.dev.esm.js.map +1 -0
- package/dist/{chunk-UBPJN5Y6.esm.js → chunk-VNXSSOQ4.esm.js} +6 -6
- package/dist/essor.cjs.js +6 -6
- package/dist/essor.d.cts +1 -1
- package/dist/essor.d.ts +1 -1
- package/dist/essor.dev.cjs.js +63 -60
- package/dist/essor.dev.cjs.js.map +1 -1
- package/dist/essor.dev.esm.js +4 -4
- package/dist/essor.esm.js +3 -3
- package/dist/server.cjs.js +4 -4
- package/dist/server.dev.cjs.js +7 -7
- package/dist/server.dev.cjs.js.map +1 -1
- package/dist/server.dev.esm.js +6 -6
- package/dist/server.dev.esm.js.map +1 -1
- package/dist/server.esm.js +3 -3
- package/package.json +11 -6
- package/dist/chunk-IAVSY4MK.dev.esm.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* essor v0.0.16-beta.
|
|
3
|
-
* build time 2026-05-
|
|
2
|
+
* essor v0.0.16-beta.7
|
|
3
|
+
* build time 2026-05-13T02:09:20.811Z
|
|
4
4
|
* (c) 2023-Present jiangxd <jiangxd2016@gmail.com>
|
|
5
5
|
* @license MIT
|
|
6
6
|
**/
|
|
7
7
|
|
|
8
8
|
// src/version.ts
|
|
9
|
-
var __version = "0.0.16-beta.
|
|
9
|
+
var __version = "0.0.16-beta.7";
|
|
10
10
|
|
|
11
11
|
// ../shared/dist/shared.esm.js
|
|
12
12
|
var f = (e) => e !== null && typeof e == "object";
|
|
@@ -1212,7 +1212,7 @@ function de3(t2, e, n, o = false) {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
var fe3 = T;
|
|
1214
1214
|
var Ge2 = /\s*!important$/;
|
|
1215
|
-
var
|
|
1215
|
+
var Tt2 = ["Webkit", "Moz", "ms"];
|
|
1216
1216
|
var ke3 = {};
|
|
1217
1217
|
function me2(t2, e, n) {
|
|
1218
1218
|
let o = t2.style;
|
|
@@ -1253,20 +1253,20 @@ function J3(t2, e, n) {
|
|
|
1253
1253
|
o ? t2.setProperty(e, n, o) : t2.setProperty(e, n);
|
|
1254
1254
|
return;
|
|
1255
1255
|
}
|
|
1256
|
-
let r =
|
|
1257
|
-
o ? t2.setProperty(
|
|
1256
|
+
let r = Lt(t2, e);
|
|
1257
|
+
o ? t2.setProperty(Rt(r), n, o) : t2[r] = n;
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1259
|
+
function Rt(t2) {
|
|
1260
1260
|
let e = b(t2);
|
|
1261
1261
|
return t2.startsWith("Webkit") || t2.startsWith("Moz") || t2.startsWith("ms") ? `-${e}` : e;
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1263
|
+
function Lt(t2, e) {
|
|
1264
1264
|
let n = ke3[e];
|
|
1265
1265
|
if (n) return n;
|
|
1266
1266
|
let o = ne(e);
|
|
1267
1267
|
if (o !== "filter" && o in t2) return ke3[e] = o;
|
|
1268
1268
|
o = oe(o);
|
|
1269
|
-
for (let r of
|
|
1269
|
+
for (let r of Tt2) {
|
|
1270
1270
|
let s2 = r + o;
|
|
1271
1271
|
if (s2 in t2) return ke3[e] = s2;
|
|
1272
1272
|
}
|
|
@@ -1276,7 +1276,7 @@ var Te2 = 0;
|
|
|
1276
1276
|
function Ye2() {
|
|
1277
1277
|
return String(Te2++);
|
|
1278
1278
|
}
|
|
1279
|
-
function
|
|
1279
|
+
function Mt2() {
|
|
1280
1280
|
Te2 = 0;
|
|
1281
1281
|
}
|
|
1282
1282
|
var z3 = false;
|
|
@@ -1284,7 +1284,7 @@ function le3() {
|
|
|
1284
1284
|
return z3;
|
|
1285
1285
|
}
|
|
1286
1286
|
var Q2 = /* @__PURE__ */ new Map();
|
|
1287
|
-
function
|
|
1287
|
+
function It(t2) {
|
|
1288
1288
|
let e = t2.querySelectorAll("[data-hk]");
|
|
1289
1289
|
for (let n of e) {
|
|
1290
1290
|
let o = n.dataset.hk;
|
|
@@ -1293,7 +1293,7 @@ function Mt2(t2) {
|
|
|
1293
1293
|
}
|
|
1294
1294
|
var ye2 = [];
|
|
1295
1295
|
var se3 = /* @__PURE__ */ new Map();
|
|
1296
|
-
function
|
|
1296
|
+
function Ht2() {
|
|
1297
1297
|
if (typeof document == "undefined") return;
|
|
1298
1298
|
let t2 = document.createNodeIterator(document.body, NodeFilter.SHOW_COMMENT), e;
|
|
1299
1299
|
for (; e = t2.nextNode(); ) {
|
|
@@ -1322,12 +1322,12 @@ function Le(t2) {
|
|
|
1322
1322
|
return null;
|
|
1323
1323
|
}
|
|
1324
1324
|
function De2(t2) {
|
|
1325
|
-
z3 = true, Te2 = 0, Q2.clear(), ye2.length = 0, se3.clear(),
|
|
1325
|
+
z3 = true, Te2 = 0, Q2.clear(), ye2.length = 0, se3.clear(), It(t2), Ht2();
|
|
1326
1326
|
}
|
|
1327
1327
|
function Fe3() {
|
|
1328
1328
|
z3 = false, Q2.clear(), ye2.length = 0, se3.clear();
|
|
1329
1329
|
}
|
|
1330
|
-
function
|
|
1330
|
+
function Ot2(t2) {
|
|
1331
1331
|
if (!K()) return () => {
|
|
1332
1332
|
throw new Error("[essor] getRenderedElement called in non-browser environment");
|
|
1333
1333
|
};
|
|
@@ -1338,13 +1338,13 @@ function Ht2(t2) {
|
|
|
1338
1338
|
return o ? (Q2.delete(n), o) : (re(`[essor] hydration mismatch: no SSR element for key "${n}"`), e || (e = pe2(t2)), e());
|
|
1339
1339
|
};
|
|
1340
1340
|
}
|
|
1341
|
-
function
|
|
1341
|
+
function Vt2(t2, e, n, o) {
|
|
1342
1342
|
z3 || de3(t2, e, n, o);
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1344
|
+
function jt2(t2, e, n, o) {
|
|
1345
1345
|
z3 || G2(t2, e, n, o);
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1347
|
+
function Kt2(t2, e, n) {
|
|
1348
1348
|
z3 || me2(t2, e, n);
|
|
1349
1349
|
}
|
|
1350
1350
|
function Me3(t2, e) {
|
|
@@ -1370,10 +1370,10 @@ function Je2(t2, e, n, o) {
|
|
|
1370
1370
|
for (let p2 = c; p2 <= u2; p2++) F2(t2, n[p2], d4);
|
|
1371
1371
|
}
|
|
1372
1372
|
} else if (c > u2) for (let f2 = c; f2 <= l2; f2++) K3(e[f2]);
|
|
1373
|
-
else
|
|
1373
|
+
else $t(t2, e, n, c, l2, u2, r);
|
|
1374
1374
|
return n;
|
|
1375
1375
|
}
|
|
1376
|
-
function
|
|
1376
|
+
function $t(t2, e, n, o, r, s2, i2) {
|
|
1377
1377
|
let c = s2 - o + 1, l2 = /* @__PURE__ */ new Map();
|
|
1378
1378
|
for (let m3 = o; m3 <= s2; m3++) l2.set(n[m3], m3);
|
|
1379
1379
|
let u2 = new Int32Array(c);
|
|
@@ -1455,14 +1455,14 @@ function W3(t2, e, n) {
|
|
|
1455
1455
|
r = [];
|
|
1456
1456
|
}), r;
|
|
1457
1457
|
}
|
|
1458
|
-
function
|
|
1458
|
+
function Wt2(t2) {
|
|
1459
1459
|
return (t2 == null ? void 0 : t2.firstChild) || null;
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1461
|
+
function Bt2(t2, e = 1) {
|
|
1462
1462
|
for (; t2 && e > 0; ) t2 = t2.nextSibling, e--;
|
|
1463
1463
|
return t2 || null;
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1465
|
+
function Xt2(t2, e) {
|
|
1466
1466
|
if (!t2 || e < 0) return null;
|
|
1467
1467
|
let n = t2.firstChild;
|
|
1468
1468
|
for (; n && e > 0; ) n = n.nextSibling, e--;
|
|
@@ -1513,7 +1513,7 @@ function Oe2(t2) {
|
|
|
1513
1513
|
He(e, "onMount", t2);
|
|
1514
1514
|
}
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1516
|
+
function qt(t2) {
|
|
1517
1517
|
let e = w3();
|
|
1518
1518
|
e && He(e, "onUpdate", t2);
|
|
1519
1519
|
}
|
|
@@ -1538,17 +1538,17 @@ function rt2(t2, e, n = false) {
|
|
|
1538
1538
|
for (let r of Object.getOwnPropertyNames(e)) o == null || o.add(r), Object.defineProperty(t2, r, Object.getOwnPropertyDescriptor(e, r));
|
|
1539
1539
|
if (o) for (let r of Object.getOwnPropertyNames(t2)) o.has(r) || delete t2[r];
|
|
1540
1540
|
}
|
|
1541
|
-
function
|
|
1541
|
+
function it(t2, e) {
|
|
1542
1542
|
let n = Object.getOwnPropertyDescriptor(t2, e);
|
|
1543
1543
|
return n.get ? n.get.call(t2) : n.value;
|
|
1544
1544
|
}
|
|
1545
|
-
var
|
|
1546
|
-
|
|
1545
|
+
var st2;
|
|
1546
|
+
st2 = "normal";
|
|
1547
1547
|
var ne2 = class {
|
|
1548
1548
|
constructor(e, n = {}) {
|
|
1549
1549
|
this.component = e;
|
|
1550
1550
|
this.props = n;
|
|
1551
|
-
this[
|
|
1551
|
+
this[st2] = true;
|
|
1552
1552
|
this.scope = null;
|
|
1553
1553
|
this.state = 0;
|
|
1554
1554
|
this.beforeNode = void 0;
|
|
@@ -1599,12 +1599,14 @@ var ne2 = class {
|
|
|
1599
1599
|
if (n) {
|
|
1600
1600
|
this.releaseSpecialProps();
|
|
1601
1601
|
for (let o of Object.getOwnPropertyNames(e)) {
|
|
1602
|
-
let r = Jt(e, o);
|
|
1603
1602
|
if (o === "ref") {
|
|
1603
|
+
let r = it(e, o);
|
|
1604
1604
|
this.rootRefCleanup = this.bindRootRef(r, n);
|
|
1605
1605
|
continue;
|
|
1606
1606
|
}
|
|
1607
|
-
if (V(o)
|
|
1607
|
+
if (V(o)) {
|
|
1608
|
+
let r = it(e, o);
|
|
1609
|
+
if (!O(r)) continue;
|
|
1608
1610
|
let s2 = o.slice(2).toLowerCase();
|
|
1609
1611
|
this.rootEventCleanups.push(ee3(n, s2, r));
|
|
1610
1612
|
}
|
|
@@ -1694,7 +1696,7 @@ function ce(t2, e) {
|
|
|
1694
1696
|
function Ke(t2, e) {
|
|
1695
1697
|
Object.defineProperty(t2, "target", { configurable: true, value: e });
|
|
1696
1698
|
}
|
|
1697
|
-
function
|
|
1699
|
+
function at(t2) {
|
|
1698
1700
|
let e = t2.target, n = t2.type, o = t2.target, r = t2.currentTarget, s2 = () => {
|
|
1699
1701
|
let c = e[`_$${n}`];
|
|
1700
1702
|
if (c && O(c) && !e.disabled) {
|
|
@@ -1723,12 +1725,12 @@ function ct(t2) {
|
|
|
1723
1725
|
var ge3 = /* @__PURE__ */ Symbol("_$EVENTS");
|
|
1724
1726
|
function tn(t2, e = window.document) {
|
|
1725
1727
|
let n = e, o = n[ge3] || (n[ge3] = /* @__PURE__ */ new Set());
|
|
1726
|
-
for (let r of t2) o.has(r) || (o.add(r), e.addEventListener(r,
|
|
1728
|
+
for (let r of t2) o.has(r) || (o.add(r), e.addEventListener(r, at));
|
|
1727
1729
|
}
|
|
1728
1730
|
function nn(t2 = window.document) {
|
|
1729
1731
|
let e = t2, n = e[ge3];
|
|
1730
1732
|
if (n) {
|
|
1731
|
-
for (let o of n.keys()) t2.removeEventListener(o,
|
|
1733
|
+
for (let o of n.keys()) t2.removeEventListener(o, at);
|
|
1732
1734
|
delete e[ge3];
|
|
1733
1735
|
}
|
|
1734
1736
|
}
|
|
@@ -1824,10 +1826,11 @@ function gn(t2, e) {
|
|
|
1824
1826
|
return n.has(r) ? false : Reflect.has(o, r);
|
|
1825
1827
|
} });
|
|
1826
1828
|
}
|
|
1827
|
-
function
|
|
1828
|
-
|
|
1829
|
+
function ut(t2) {
|
|
1830
|
+
let e = t2 == null ? void 0 : t2.children;
|
|
1831
|
+
return e == null ? null : e;
|
|
1829
1832
|
}
|
|
1830
|
-
|
|
1833
|
+
ut[Ae3] = true;
|
|
1831
1834
|
function En(t2) {
|
|
1832
1835
|
return !!t2 && !!t2[Ae3];
|
|
1833
1836
|
}
|
|
@@ -1838,7 +1841,7 @@ function Ee3(t2) {
|
|
|
1838
1841
|
function Ne3(t2) {
|
|
1839
1842
|
return O(t2.disabled) ? !!t2.disabled() : !!t2.disabled;
|
|
1840
1843
|
}
|
|
1841
|
-
function
|
|
1844
|
+
function dt2(t2) {
|
|
1842
1845
|
if (le3()) {
|
|
1843
1846
|
let f2 = Sn(t2);
|
|
1844
1847
|
if (f2) return f2;
|
|
@@ -1879,7 +1882,7 @@ function ft(t2) {
|
|
|
1879
1882
|
u2.stop(), i2();
|
|
1880
1883
|
}), e$1;
|
|
1881
1884
|
}
|
|
1882
|
-
|
|
1885
|
+
dt2[ie2] = true;
|
|
1883
1886
|
function Sn(t2) {
|
|
1884
1887
|
if (Ne3(t2)) return null;
|
|
1885
1888
|
let e = Re2();
|
|
@@ -1893,19 +1896,19 @@ function bn(t2) {
|
|
|
1893
1896
|
function Se3(t2) {
|
|
1894
1897
|
for (; t2.firstChild; ) t2.removeChild(t2.firstChild);
|
|
1895
1898
|
}
|
|
1896
|
-
function
|
|
1899
|
+
function mt2(t2) {
|
|
1897
1900
|
let e = t2;
|
|
1898
1901
|
for (; O(e); ) e = e();
|
|
1899
|
-
return h2(e) || K2(e) ?
|
|
1902
|
+
return h2(e) || K2(e) ? mt2(e.value) : e;
|
|
1900
1903
|
}
|
|
1901
1904
|
var ae3 = /* @__PURE__ */ Symbol("SuspenseContext");
|
|
1902
|
-
function
|
|
1905
|
+
function pt2(t2) {
|
|
1903
1906
|
var N3;
|
|
1904
1907
|
if (!K()) return (N3 = t2.fallback) != null ? N3 : "";
|
|
1905
1908
|
let e = document.createElement("div");
|
|
1906
1909
|
e.style.display = "contents";
|
|
1907
1910
|
let n = true, o = 0, r = false, s2 = null, i2 = (m3) => {
|
|
1908
|
-
let g3 =
|
|
1911
|
+
let g3 = mt2(m3);
|
|
1909
1912
|
if (u(g3)) {
|
|
1910
1913
|
let a3 = [];
|
|
1911
1914
|
for (let y2 of g3) {
|
|
@@ -1949,7 +1952,7 @@ function mt2(t2) {
|
|
|
1949
1952
|
n = false, o = 0, s2 = null, Se3(e), e.remove();
|
|
1950
1953
|
}), e;
|
|
1951
1954
|
}
|
|
1952
|
-
|
|
1955
|
+
pt2[Pe3] = true;
|
|
1953
1956
|
function An(t2) {
|
|
1954
1957
|
return !!t2 && !!t2[Pe3];
|
|
1955
1958
|
}
|
|
@@ -1977,7 +1980,7 @@ function Pn(t2, e) {
|
|
|
1977
1980
|
yield f2();
|
|
1978
1981
|
}) }];
|
|
1979
1982
|
}
|
|
1980
|
-
function
|
|
1983
|
+
function yt(t2) {
|
|
1981
1984
|
return O(t2) ? t2 : t2.default;
|
|
1982
1985
|
}
|
|
1983
1986
|
function ze3(t2, e, n) {
|
|
@@ -1992,7 +1995,7 @@ function Tn(t2, e = {}) {
|
|
|
1992
1995
|
return g3.__asyncLoader = t2, g3.__asyncResolved = () => null, g3;
|
|
1993
1996
|
}
|
|
1994
1997
|
let p2 = null, h4 = null, N3 = () => h4 || (h4 = t2().then((g3) => {
|
|
1995
|
-
p2 =
|
|
1998
|
+
p2 = yt(g3);
|
|
1996
1999
|
}).catch(() => {
|
|
1997
2000
|
}), h4);
|
|
1998
2001
|
N3();
|
|
@@ -2002,7 +2005,7 @@ function Tn(t2, e = {}) {
|
|
|
2002
2005
|
let i2 = null, c = null, l2 = "pending", u2 = null;
|
|
2003
2006
|
function f2() {
|
|
2004
2007
|
return u2 || (u2 = t2().then((p2) => {
|
|
2005
|
-
i2 =
|
|
2008
|
+
i2 = yt(p2), l2 = "resolved";
|
|
2006
2009
|
}).catch((p2) => {
|
|
2007
2010
|
c = p2 instanceof Error ? p2 : new Error(String(p2)), l2 = "errored", u2 = null;
|
|
2008
2011
|
}), u2);
|
|
@@ -2062,7 +2065,7 @@ function Tn(t2, e = {}) {
|
|
|
2062
2065
|
}
|
|
2063
2066
|
return d4.__asyncLoader = f2, d4.__asyncResolved = () => i2, d4;
|
|
2064
2067
|
}
|
|
2065
|
-
function
|
|
2068
|
+
function ht2(t2) {
|
|
2066
2069
|
let e$1 = document.createDocumentFragment(), n = document.createComment("");
|
|
2067
2070
|
e$1.appendChild(n);
|
|
2068
2071
|
let o = [], r = [], s2 = t2.key, i2 = t2.children, c$1 = () => {
|
|
@@ -2158,8 +2161,8 @@ function yt(t2) {
|
|
|
2158
2161
|
o = [], p2(), n.parentNode && n.parentNode.removeChild(n);
|
|
2159
2162
|
}), e$1;
|
|
2160
2163
|
}
|
|
2161
|
-
|
|
2164
|
+
ht2[Xe] = true;
|
|
2162
2165
|
|
|
2163
|
-
export { A, An, At, B2 as B, Bt, Bt2, C2 as C, Ct, De2 as De, En, Fe3 as Fe, Ft,
|
|
2164
|
-
//# sourceMappingURL=chunk-
|
|
2165
|
-
//# sourceMappingURL=chunk-
|
|
2166
|
+
export { A, An, At, B2 as B, Bt, Bt2, C2 as C, Ct, De2 as De, En, Fe3 as Fe, Ft, G2 as G, Gt, J2 as J, J3 as J2, K2 as K, Kt, Kt2, L, L2, Le, M3 as M, Me2 as Me, Mt, Mt2, O, Oe, Oe2, Ot, Ot2, Pe2 as Pe, Pn, Pt, Qt, Re2 as Re, S, S2, Se2 as Se, T, T2, T3, Tn, Ue, Vt, Vt2, W3 as W, Wt2 as Wt, Xt2 as Xt, Ye, Ye2, Yt, Z2 as Z, Zt, Zt2, _2 as _, __version, a2 as a, bn, ce, de3 as de, dt2 as dt, ee3 as ee, f, fe3 as fe, gn, h2 as h, he, he2, hn, ht2 as ht, i, je2 as je, jt, jt2, k3 as k, kt, le, le3 as le2, m, me2 as me, ne2 as ne, nn, oe3 as oe, pe, pe2, pt2 as pt, qt, rt, s, se, te3 as te, tn, u, ut, v, w3 as w, z2 as z };
|
|
2167
|
+
//# sourceMappingURL=chunk-P26FIEPU.dev.esm.js.map
|
|
2168
|
+
//# sourceMappingURL=chunk-P26FIEPU.dev.esm.js.map
|