sibujs 4.2.0 → 4.3.0
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/browser.cjs +1 -1
- package/dist/browser.js +4 -4
- package/dist/build.cjs +30 -8
- package/dist/build.js +10 -10
- package/dist/cdn.dev.global.js +6 -6
- package/dist/cdn.global.js +6 -6
- package/dist/{chunk-HZEBO22J.js → chunk-2LSY4WDM.js} +38 -16
- package/dist/{chunk-2LOYNGBY.js → chunk-3E5YNK2F.js} +1 -1
- package/dist/{chunk-7VEC3UD2.js → chunk-7BJLKDBI.js} +1 -1
- package/dist/{chunk-XZ2N525U.js → chunk-7BPN4MXR.js} +4 -4
- package/dist/{chunk-NEYWS4EX.js → chunk-7GQIRV27.js} +3 -3
- package/dist/{chunk-HJEPKZ2O.js → chunk-7UBG6LDP.js} +1 -1
- package/dist/{chunk-P3DHXBR6.js → chunk-7UK6BSAT.js} +1 -1
- package/dist/{chunk-BNKV4REK.js → chunk-AAHT6AKT.js} +2 -2
- package/dist/{chunk-QCFLDD7C.js → chunk-G7GPNB6N.js} +4 -4
- package/dist/{chunk-SF3TB4K6.js → chunk-GZYQNIPS.js} +5 -5
- package/dist/{chunk-BMYYZWHX.js → chunk-IYHM4FWD.js} +1 -1
- package/dist/{chunk-FOWBJZDL.js → chunk-L4B3Y3OM.js} +1 -1
- package/dist/{chunk-HECVW343.js → chunk-MYA5HEK5.js} +1 -1
- package/dist/{chunk-GDUNQCCW.js → chunk-R4EF7V3K.js} +4 -4
- package/dist/{chunk-3VTSPNC5.js → chunk-RE6KLGMV.js} +1 -1
- package/dist/{chunk-7ALC7KGE.js → chunk-TSL64O5L.js} +1 -1
- package/dist/{chunk-KE4KWRDY.js → chunk-UD6YE2GW.js} +2 -2
- package/dist/{chunk-OUWAIXIK.js → chunk-USS5ENJ2.js} +3 -3
- package/dist/{chunk-6ZGI3RBE.js → chunk-XGCZ45NH.js} +2 -2
- package/dist/{chunk-QL4UREZO.js → chunk-ZVYNIUOG.js} +3 -3
- package/dist/data.cjs +1 -1
- package/dist/data.js +6 -6
- package/dist/devtools.cjs +1 -1
- package/dist/devtools.js +4 -4
- package/dist/ecosystem.cjs +1 -1
- package/dist/ecosystem.js +7 -7
- package/dist/extras.cjs +1 -1
- package/dist/extras.js +19 -19
- package/dist/index.cjs +30 -8
- package/dist/index.d.cts +36 -4
- package/dist/index.d.ts +36 -4
- package/dist/index.js +10 -10
- package/dist/motion.cjs +1 -1
- package/dist/motion.js +3 -3
- package/dist/patterns.cjs +1 -1
- package/dist/patterns.js +5 -5
- package/dist/performance.cjs +1 -1
- package/dist/performance.js +4 -4
- package/dist/plugins.cjs +4 -3
- package/dist/plugins.d.cts +10 -2
- package/dist/plugins.d.ts +10 -2
- package/dist/plugins.js +9 -8
- package/dist/ssr.cjs +1 -1
- package/dist/ssr.js +7 -7
- package/dist/testing.cjs +1 -1
- package/dist/testing.js +2 -2
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +6 -6
- package/dist/widgets.cjs +1 -1
- package/dist/widgets.js +6 -6
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
context
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L4B3Y3OM.js";
|
|
4
4
|
import {
|
|
5
5
|
derived
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3E5YNK2F.js";
|
|
7
7
|
import {
|
|
8
8
|
sanitizeUrl
|
|
9
9
|
} from "./chunk-IXKSNWV5.js";
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
} from "./chunk-7ZHH77QA.js";
|
|
13
13
|
import {
|
|
14
14
|
effect
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7BJLKDBI.js";
|
|
16
16
|
import {
|
|
17
17
|
getRequestScopedCache
|
|
18
18
|
} from "./chunk-5DXA2J44.js";
|
|
19
19
|
import {
|
|
20
20
|
batch,
|
|
21
21
|
signal
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MYA5HEK5.js";
|
|
23
23
|
|
|
24
24
|
// src/data/abort.ts
|
|
25
25
|
function isAbortError(error) {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
div,
|
|
8
8
|
span
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7UK6BSAT.js";
|
|
10
10
|
import {
|
|
11
11
|
STATIC_VALUE_RESOLVER,
|
|
12
12
|
planHeadElementEntry,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./chunk-7ZHH77QA.js";
|
|
21
21
|
import {
|
|
22
22
|
effect
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-7BJLKDBI.js";
|
|
24
24
|
import {
|
|
25
25
|
registerDisposer,
|
|
26
26
|
replaceChildrenSafely
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
batch,
|
|
30
30
|
signal
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-MYA5HEK5.js";
|
|
32
32
|
|
|
33
33
|
// src/platform/head.ts
|
|
34
34
|
function escapeScriptJsonLocal(json) {
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
} from "./chunk-7ZHH77QA.js";
|
|
7
7
|
import {
|
|
8
8
|
effect
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7BJLKDBI.js";
|
|
10
10
|
import {
|
|
11
11
|
dispose,
|
|
12
12
|
replaceChildrenSafely
|
|
13
13
|
} from "./chunk-QKRPLZ2V.js";
|
|
14
14
|
import {
|
|
15
15
|
signal
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MYA5HEK5.js";
|
|
17
17
|
import {
|
|
18
18
|
DEV,
|
|
19
19
|
devWarn,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
watch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IYHM4FWD.js";
|
|
4
4
|
import {
|
|
5
5
|
createId
|
|
6
6
|
} from "./chunk-CCSJMTRN.js";
|
|
7
7
|
import {
|
|
8
8
|
derived
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3E5YNK2F.js";
|
|
10
10
|
import {
|
|
11
11
|
stripHtml
|
|
12
12
|
} from "./chunk-IXKSNWV5.js";
|
|
13
13
|
import {
|
|
14
14
|
effect
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7BJLKDBI.js";
|
|
16
16
|
import {
|
|
17
17
|
batch,
|
|
18
18
|
signal
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MYA5HEK5.js";
|
|
20
20
|
|
|
21
21
|
// src/widgets/Combobox.ts
|
|
22
22
|
var boundComboboxes = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bindAttribute,
|
|
3
3
|
setSafeAttribute
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7UBG6LDP.js";
|
|
5
5
|
import {
|
|
6
6
|
derived
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3E5YNK2F.js";
|
|
8
8
|
import {
|
|
9
9
|
isEventHandlerAttr
|
|
10
10
|
} from "./chunk-IXKSNWV5.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-7ZHH77QA.js";
|
|
14
14
|
import {
|
|
15
15
|
effect
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7BJLKDBI.js";
|
|
17
17
|
import {
|
|
18
18
|
dispose,
|
|
19
19
|
registerDisposer,
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
} from "./chunk-QKRPLZ2V.js";
|
|
22
22
|
import {
|
|
23
23
|
signal
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-MYA5HEK5.js";
|
|
25
25
|
import {
|
|
26
26
|
track
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-TSL64O5L.js";
|
|
28
28
|
import {
|
|
29
29
|
reportError
|
|
30
30
|
} from "./chunk-2WLZ6757.js";
|
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
} from "./chunk-WWV3SJ3L.js";
|
|
4
4
|
import {
|
|
5
5
|
tagFactory
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XGCZ45NH.js";
|
|
7
7
|
import {
|
|
8
8
|
derived
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3E5YNK2F.js";
|
|
10
10
|
import {
|
|
11
11
|
effect
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7BJLKDBI.js";
|
|
13
13
|
import {
|
|
14
14
|
batch,
|
|
15
15
|
signal
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MYA5HEK5.js";
|
|
17
17
|
|
|
18
18
|
// src/ecosystem/adapters/mobx.ts
|
|
19
19
|
function mobXAdapter(options) {
|
|
@@ -460,7 +460,7 @@ function forEachSubscriber(signal, visit) {
|
|
|
460
460
|
}
|
|
461
461
|
|
|
462
462
|
// src/reactivity/track.ts
|
|
463
|
-
var _runtimeVersion = true ? "4.
|
|
463
|
+
var _runtimeVersion = true ? "4.3.0" : "dev";
|
|
464
464
|
var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
|
|
465
465
|
function resolveReactiveApi() {
|
|
466
466
|
const g = globalThis;
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
} from "./chunk-52XFPGSN.js";
|
|
7
7
|
import {
|
|
8
8
|
effect
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7BJLKDBI.js";
|
|
10
10
|
import {
|
|
11
11
|
batch,
|
|
12
12
|
signal
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MYA5HEK5.js";
|
|
14
14
|
import {
|
|
15
15
|
reportError
|
|
16
16
|
} from "./chunk-2WLZ6757.js";
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
} from "./chunk-H3SRKIYX.js";
|
|
5
5
|
import {
|
|
6
6
|
derived
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3E5YNK2F.js";
|
|
8
8
|
import {
|
|
9
9
|
effect
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7BJLKDBI.js";
|
|
11
11
|
import {
|
|
12
12
|
batch,
|
|
13
13
|
signal
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MYA5HEK5.js";
|
|
15
15
|
|
|
16
16
|
// src/patterns/machine.ts
|
|
17
17
|
function machine(config) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bindAttribute,
|
|
3
3
|
setSafeAttribute
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7UBG6LDP.js";
|
|
5
5
|
import {
|
|
6
6
|
isEventHandlerAttr,
|
|
7
7
|
sanitizeCSSValue,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-QKRPLZ2V.js";
|
|
14
14
|
import {
|
|
15
15
|
reactiveBinding
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TSL64O5L.js";
|
|
17
17
|
import {
|
|
18
18
|
DEV,
|
|
19
19
|
devWarn,
|
|
@@ -6,18 +6,18 @@ import {
|
|
|
6
6
|
} from "./chunk-7ZHH77QA.js";
|
|
7
7
|
import {
|
|
8
8
|
effect
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7BJLKDBI.js";
|
|
10
10
|
import {
|
|
11
11
|
dispose
|
|
12
12
|
} from "./chunk-QKRPLZ2V.js";
|
|
13
13
|
import {
|
|
14
14
|
signal
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MYA5HEK5.js";
|
|
16
16
|
import {
|
|
17
17
|
forEachSubscriber,
|
|
18
18
|
getSubscriberCount,
|
|
19
19
|
getSubscriberDeps
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TSL64O5L.js";
|
|
21
21
|
import {
|
|
22
22
|
isDev
|
|
23
23
|
} from "./chunk-2WLZ6757.js";
|
package/dist/data.cjs
CHANGED
|
@@ -604,7 +604,7 @@ function forEachSubscriber(signal2, visit) {
|
|
|
604
604
|
}
|
|
605
605
|
|
|
606
606
|
// src/reactivity/track.ts
|
|
607
|
-
var _runtimeVersion = true ? "4.
|
|
607
|
+
var _runtimeVersion = true ? "4.3.0" : "dev";
|
|
608
608
|
var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
|
|
609
609
|
function resolveReactiveApi() {
|
|
610
610
|
const g = globalThis;
|
package/dist/data.js
CHANGED
|
@@ -20,15 +20,15 @@ import {
|
|
|
20
20
|
syncAdapter,
|
|
21
21
|
throttle,
|
|
22
22
|
withRetry
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-7BPN4MXR.js";
|
|
24
|
+
import "./chunk-L4B3Y3OM.js";
|
|
25
|
+
import "./chunk-3E5YNK2F.js";
|
|
26
26
|
import "./chunk-IXKSNWV5.js";
|
|
27
27
|
import "./chunk-7ZHH77QA.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-7BJLKDBI.js";
|
|
29
29
|
import "./chunk-5DXA2J44.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-MYA5HEK5.js";
|
|
31
|
+
import "./chunk-TSL64O5L.js";
|
|
32
32
|
import "./chunk-2WLZ6757.js";
|
|
33
33
|
export {
|
|
34
34
|
__resetQueryCache,
|
package/dist/devtools.cjs
CHANGED
|
@@ -736,7 +736,7 @@ function forEachSubscriber(signal2, visit) {
|
|
|
736
736
|
}
|
|
737
737
|
|
|
738
738
|
// src/reactivity/track.ts
|
|
739
|
-
var _runtimeVersion = true ? "4.
|
|
739
|
+
var _runtimeVersion = true ? "4.3.0" : "dev";
|
|
740
740
|
var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
|
|
741
741
|
function resolveReactiveApi() {
|
|
742
742
|
const g = globalThis;
|
package/dist/devtools.js
CHANGED
|
@@ -35,14 +35,14 @@ import {
|
|
|
35
35
|
trackCleanup,
|
|
36
36
|
walkDependencyGraph,
|
|
37
37
|
withErrorTracking
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-ZVYNIUOG.js";
|
|
39
39
|
import "./chunk-IXKSNWV5.js";
|
|
40
40
|
import "./chunk-7ZHH77QA.js";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-7BJLKDBI.js";
|
|
42
42
|
import "./chunk-5DXA2J44.js";
|
|
43
43
|
import "./chunk-QKRPLZ2V.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-MYA5HEK5.js";
|
|
45
|
+
import "./chunk-TSL64O5L.js";
|
|
46
46
|
import {
|
|
47
47
|
isDev
|
|
48
48
|
} from "./chunk-2WLZ6757.js";
|
package/dist/ecosystem.cjs
CHANGED
|
@@ -597,7 +597,7 @@ function forEachSubscriber(signal2, visit) {
|
|
|
597
597
|
}
|
|
598
598
|
|
|
599
599
|
// src/reactivity/track.ts
|
|
600
|
-
var _runtimeVersion = true ? "4.
|
|
600
|
+
var _runtimeVersion = true ? "4.3.0" : "dev";
|
|
601
601
|
var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
|
|
602
602
|
function resolveReactiveApi() {
|
|
603
603
|
const g = globalThis;
|
package/dist/ecosystem.js
CHANGED
|
@@ -7,18 +7,18 @@ import {
|
|
|
7
7
|
mobXAdapter,
|
|
8
8
|
reduxAdapter,
|
|
9
9
|
zustandAdapter
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-R4EF7V3K.js";
|
|
11
11
|
import "./chunk-WWV3SJ3L.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-XGCZ45NH.js";
|
|
13
|
+
import "./chunk-7UBG6LDP.js";
|
|
14
|
+
import "./chunk-3E5YNK2F.js";
|
|
15
15
|
import "./chunk-IXKSNWV5.js";
|
|
16
16
|
import "./chunk-7ZHH77QA.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-7BJLKDBI.js";
|
|
18
18
|
import "./chunk-5DXA2J44.js";
|
|
19
19
|
import "./chunk-QKRPLZ2V.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-MYA5HEK5.js";
|
|
21
|
+
import "./chunk-TSL64O5L.js";
|
|
22
22
|
import "./chunk-2WLZ6757.js";
|
|
23
23
|
export {
|
|
24
24
|
antdAdapter,
|
package/dist/extras.cjs
CHANGED
|
@@ -888,7 +888,7 @@ function forEachSubscriber(signal2, visit) {
|
|
|
888
888
|
}
|
|
889
889
|
|
|
890
890
|
// src/reactivity/track.ts
|
|
891
|
-
var _runtimeVersion = true ? "4.
|
|
891
|
+
var _runtimeVersion = true ? "4.3.0" : "dev";
|
|
892
892
|
var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
|
|
893
893
|
function resolveReactiveApi() {
|
|
894
894
|
const g2 = globalThis;
|
package/dist/extras.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
optimisticList,
|
|
6
6
|
persisted,
|
|
7
7
|
timeline
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-USS5ENJ2.js";
|
|
9
9
|
import {
|
|
10
10
|
DOMPool,
|
|
11
11
|
Features,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
transitionState,
|
|
42
42
|
uniqueId,
|
|
43
43
|
yieldToMain
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-AAHT6AKT.js";
|
|
45
45
|
import {
|
|
46
46
|
VERSION,
|
|
47
47
|
bundlerMetadata,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
wasm,
|
|
89
89
|
worker,
|
|
90
90
|
workerFn
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-7GQIRV27.js";
|
|
92
92
|
import {
|
|
93
93
|
FocusTrap,
|
|
94
94
|
VirtualList,
|
|
@@ -129,7 +129,7 @@ import {
|
|
|
129
129
|
toast,
|
|
130
130
|
withScopedStyle,
|
|
131
131
|
zipMask
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-GZYQNIPS.js";
|
|
133
133
|
import {
|
|
134
134
|
RenderProp,
|
|
135
135
|
assertType,
|
|
@@ -156,7 +156,7 @@ import {
|
|
|
156
156
|
select,
|
|
157
157
|
tabs,
|
|
158
158
|
tooltip
|
|
159
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-G7GPNB6N.js";
|
|
160
160
|
import {
|
|
161
161
|
animationFrame,
|
|
162
162
|
battery,
|
|
@@ -194,7 +194,7 @@ import {
|
|
|
194
194
|
visibility,
|
|
195
195
|
wakeLock,
|
|
196
196
|
windowSize
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-UD6YE2GW.js";
|
|
198
198
|
import "./chunk-H3SRKIYX.js";
|
|
199
199
|
import "./chunk-52XFPGSN.js";
|
|
200
200
|
import {
|
|
@@ -219,7 +219,7 @@ import {
|
|
|
219
219
|
syncAdapter,
|
|
220
220
|
throttle,
|
|
221
221
|
withRetry
|
|
222
|
-
} from "./chunk-
|
|
222
|
+
} from "./chunk-7BPN4MXR.js";
|
|
223
223
|
import {
|
|
224
224
|
SibuError,
|
|
225
225
|
checkLeaks,
|
|
@@ -257,7 +257,7 @@ import {
|
|
|
257
257
|
trackCleanup,
|
|
258
258
|
walkDependencyGraph,
|
|
259
259
|
withErrorTracking
|
|
260
|
-
} from "./chunk-
|
|
260
|
+
} from "./chunk-ZVYNIUOG.js";
|
|
261
261
|
import {
|
|
262
262
|
antdAdapter,
|
|
263
263
|
chakraAdapter,
|
|
@@ -267,7 +267,7 @@ import {
|
|
|
267
267
|
mobXAdapter,
|
|
268
268
|
reduxAdapter,
|
|
269
269
|
zustandAdapter
|
|
270
|
-
} from "./chunk-
|
|
270
|
+
} from "./chunk-R4EF7V3K.js";
|
|
271
271
|
import {
|
|
272
272
|
createPlugin,
|
|
273
273
|
createPluginRegistry,
|
|
@@ -279,7 +279,7 @@ import {
|
|
|
279
279
|
triggerPluginMount,
|
|
280
280
|
triggerPluginUnmount
|
|
281
281
|
} from "./chunk-WWV3SJ3L.js";
|
|
282
|
-
import "./chunk-
|
|
282
|
+
import "./chunk-7UK6BSAT.js";
|
|
283
283
|
import {
|
|
284
284
|
collectStream,
|
|
285
285
|
deserializeState,
|
|
@@ -300,15 +300,15 @@ import {
|
|
|
300
300
|
suspenseSwapScript,
|
|
301
301
|
trustHTML
|
|
302
302
|
} from "./chunk-NIOYEGBQ.js";
|
|
303
|
-
import "./chunk-
|
|
303
|
+
import "./chunk-IYHM4FWD.js";
|
|
304
304
|
import "./chunk-CCSJMTRN.js";
|
|
305
|
-
import "./chunk-
|
|
306
|
-
import "./chunk-
|
|
307
|
-
import "./chunk-
|
|
308
|
-
import "./chunk-
|
|
305
|
+
import "./chunk-L4B3Y3OM.js";
|
|
306
|
+
import "./chunk-XGCZ45NH.js";
|
|
307
|
+
import "./chunk-7UBG6LDP.js";
|
|
308
|
+
import "./chunk-3E5YNK2F.js";
|
|
309
309
|
import "./chunk-IXKSNWV5.js";
|
|
310
310
|
import "./chunk-7ZHH77QA.js";
|
|
311
|
-
import "./chunk-
|
|
311
|
+
import "./chunk-7BJLKDBI.js";
|
|
312
312
|
import "./chunk-5DXA2J44.js";
|
|
313
313
|
import {
|
|
314
314
|
TransitionGroup,
|
|
@@ -332,10 +332,10 @@ import {
|
|
|
332
332
|
stagger,
|
|
333
333
|
transition,
|
|
334
334
|
viewTransition
|
|
335
|
-
} from "./chunk-
|
|
335
|
+
} from "./chunk-RE6KLGMV.js";
|
|
336
336
|
import "./chunk-QKRPLZ2V.js";
|
|
337
|
-
import "./chunk-
|
|
338
|
-
import "./chunk-
|
|
337
|
+
import "./chunk-MYA5HEK5.js";
|
|
338
|
+
import "./chunk-TSL64O5L.js";
|
|
339
339
|
import "./chunk-2WLZ6757.js";
|
|
340
340
|
export {
|
|
341
341
|
DOMPool,
|
package/dist/index.cjs
CHANGED
|
@@ -1210,7 +1210,7 @@ function forEachSubscriber(signal2, visit) {
|
|
|
1210
1210
|
}
|
|
1211
1211
|
|
|
1212
1212
|
// src/reactivity/track.ts
|
|
1213
|
-
var _runtimeVersion = true ? "4.
|
|
1213
|
+
var _runtimeVersion = true ? "4.3.0" : "dev";
|
|
1214
1214
|
var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
|
|
1215
1215
|
function resolveReactiveApi() {
|
|
1216
1216
|
const g2 = globalThis;
|
|
@@ -5256,7 +5256,16 @@ function enhance(target, setup) {
|
|
|
5256
5256
|
const teardowns = [];
|
|
5257
5257
|
const owner = /* @__PURE__ */ Symbol("sibujs.enhance");
|
|
5258
5258
|
let disposed = false;
|
|
5259
|
-
|
|
5259
|
+
let closed = false;
|
|
5260
|
+
const isClosed = (method) => {
|
|
5261
|
+
if (!closed) return false;
|
|
5262
|
+
devWarnLazy(
|
|
5263
|
+
() => `enhance: ctx.${method}() was called after this enhancement was rolled back or disposed, so it was ignored. The setup is still running past the point where its transaction ended \u2014 usually an async setup continuing after an await, or a callback it queued before it threw. Registrations made now would belong to nothing: the root carries no enhancement marker and the disposer has already run, so nothing could ever release them.`
|
|
5264
|
+
);
|
|
5265
|
+
return true;
|
|
5266
|
+
};
|
|
5267
|
+
const bind = (method, target_, fn) => {
|
|
5268
|
+
if (isClosed(method)) return;
|
|
5260
5269
|
const el = resolveTarget(root, target_);
|
|
5261
5270
|
if (!el) {
|
|
5262
5271
|
if (typeof console !== "undefined") {
|
|
@@ -5278,14 +5287,14 @@ function enhance(target, setup) {
|
|
|
5278
5287
|
}
|
|
5279
5288
|
},
|
|
5280
5289
|
on: (t, event, handler, options) => {
|
|
5281
|
-
bind(t, (el) => {
|
|
5290
|
+
bind("on", t, (el) => {
|
|
5282
5291
|
const wrapped = (e) => handler(e, el);
|
|
5283
5292
|
el.addEventListener(event, wrapped, options);
|
|
5284
5293
|
teardowns.push(() => el.removeEventListener(event, wrapped, options));
|
|
5285
5294
|
});
|
|
5286
5295
|
},
|
|
5287
5296
|
text: (t, value) => {
|
|
5288
|
-
bind(t, (el) => {
|
|
5297
|
+
bind("text", t, (el) => {
|
|
5289
5298
|
teardowns.push(
|
|
5290
5299
|
bindNode(el, () => {
|
|
5291
5300
|
const v = value();
|
|
@@ -5296,7 +5305,7 @@ function enhance(target, setup) {
|
|
|
5296
5305
|
});
|
|
5297
5306
|
},
|
|
5298
5307
|
attr: (t, name, value) => {
|
|
5299
|
-
bind(t, (el) => {
|
|
5308
|
+
bind("attr", t, (el) => {
|
|
5300
5309
|
teardowns.push(
|
|
5301
5310
|
bindNode(el, () => {
|
|
5302
5311
|
const v = value();
|
|
@@ -5307,7 +5316,7 @@ function enhance(target, setup) {
|
|
|
5307
5316
|
});
|
|
5308
5317
|
},
|
|
5309
5318
|
classed: (t, name, on2) => {
|
|
5310
|
-
bind(t, (el) => {
|
|
5319
|
+
bind("classed", t, (el) => {
|
|
5311
5320
|
teardowns.push(
|
|
5312
5321
|
bindNode(el, () => {
|
|
5313
5322
|
el.classList.toggle(name, Boolean(on2()));
|
|
@@ -5316,7 +5325,7 @@ function enhance(target, setup) {
|
|
|
5316
5325
|
});
|
|
5317
5326
|
},
|
|
5318
5327
|
show: (t, when2) => {
|
|
5319
|
-
bind(t, (el) => {
|
|
5328
|
+
bind("show", t, (el) => {
|
|
5320
5329
|
const prevHidden = el.hidden;
|
|
5321
5330
|
teardowns.push(
|
|
5322
5331
|
bindNode(el, () => {
|
|
@@ -5329,7 +5338,7 @@ function enhance(target, setup) {
|
|
|
5329
5338
|
});
|
|
5330
5339
|
},
|
|
5331
5340
|
model: (t, state2, options) => {
|
|
5332
|
-
bind(t, (el) => {
|
|
5341
|
+
bind("model", t, (el) => {
|
|
5333
5342
|
const control = el;
|
|
5334
5343
|
const [get, set] = state2;
|
|
5335
5344
|
const evt = options?.event ?? (control instanceof HTMLSelectElement || control instanceof HTMLInputElement && (control.type === "checkbox" || control.type === "radio") ? "change" : "input");
|
|
@@ -5344,6 +5353,7 @@ function enhance(target, setup) {
|
|
|
5344
5353
|
});
|
|
5345
5354
|
},
|
|
5346
5355
|
each: (target_, describe2) => {
|
|
5356
|
+
if (isClosed("each")) return;
|
|
5347
5357
|
devAssert(typeof describe2 === "function", "ctx.each: second argument must be a function.");
|
|
5348
5358
|
const elements = typeof target_ === "string" ? ctx.refs(target_) : Array.from(target_);
|
|
5349
5359
|
for (let i2 = 0; i2 < elements.length; i2++) {
|
|
@@ -5354,14 +5364,25 @@ function enhance(target, setup) {
|
|
|
5354
5364
|
}
|
|
5355
5365
|
},
|
|
5356
5366
|
cleanup: (fn) => {
|
|
5367
|
+
if (isClosed("cleanup")) return;
|
|
5357
5368
|
teardowns.push(fn);
|
|
5358
5369
|
}
|
|
5359
5370
|
};
|
|
5360
5371
|
let extra;
|
|
5361
5372
|
try {
|
|
5362
5373
|
extra = setup(ctx);
|
|
5374
|
+
const returned = extra;
|
|
5375
|
+
if (returned && typeof returned.then === "function") {
|
|
5376
|
+
returned.then(void 0, (reason) => {
|
|
5377
|
+
devWarnLazy(() => `enhance: the promise returned by the setup also rejected: ${String(reason)}`);
|
|
5378
|
+
});
|
|
5379
|
+
throw new Error(
|
|
5380
|
+
(typeof __SIBU_DEV__ !== "undefined" ? __SIBU_DEV__ : DEV) ? "[SibuJS enhance] the setup returned a promise, so its work did not complete inside the enhancement transaction. If it is a lazy import, register it as lazyIsland(() => import(\u2026)): an unwrapped loader is called as a setup, so its module is fetched but the setup it resolves to is discarded. If it is an async setup, make it synchronous \u2014 this enhancement has been rolled back, and ctx registrations made after this point are ignored." : "[SibuJS enhance] setup returned a promise"
|
|
5381
|
+
);
|
|
5382
|
+
}
|
|
5363
5383
|
} catch (err) {
|
|
5364
5384
|
drainTeardowns(teardowns, "enhance");
|
|
5385
|
+
closed = true;
|
|
5365
5386
|
throw err;
|
|
5366
5387
|
}
|
|
5367
5388
|
if (typeof extra === "function") teardowns.push(extra);
|
|
@@ -5374,6 +5395,7 @@ function enhance(target, setup) {
|
|
|
5374
5395
|
}
|
|
5375
5396
|
unregisterDisposer(root, dispose2);
|
|
5376
5397
|
drainTeardowns(teardowns, "enhance");
|
|
5398
|
+
closed = true;
|
|
5377
5399
|
};
|
|
5378
5400
|
registerDisposer(root, dispose2);
|
|
5379
5401
|
enhancementOwner.set(root, owner);
|