sibujs 4.12.0 → 4.13.1
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 +71 -18
- package/dist/browser.js +4 -4
- package/dist/build.cjs +6618 -6178
- package/dist/build.d.cts +554 -415
- package/dist/build.d.ts +554 -415
- package/dist/build.js +2091 -1735
- package/dist/cdn.dev.global.js +12 -12
- package/dist/cdn.full.dev.global.js +13 -13
- package/dist/cdn.full.global.js +12 -12
- package/dist/cdn.global.js +12 -12
- package/dist/{chunk-WFRQ6D7H.js → chunk-22OPSWMF.js} +1 -1
- package/dist/{chunk-ZJCHY2IB.js → chunk-2NC56RGY.js} +1 -1
- package/dist/{chunk-NB7TFSJE.js → chunk-2O6JJCUR.js} +4 -4
- package/dist/{chunk-B2Y5BJSP.js → chunk-4UTGDVSA.js} +70 -16
- package/dist/{chunk-NAVLCP4S.js → chunk-5RIBLY2N.js} +4 -4
- package/dist/{chunk-T5O2CUHV.js → chunk-5XUGJM3J.js} +1 -1
- package/dist/{chunk-HXT2RNH5.js → chunk-ADZHPN2B.js} +1 -1
- package/dist/chunk-B36ADEIR.js +21 -0
- package/dist/{chunk-DFZL3AX7.js → chunk-C73VBPEF.js} +9 -5
- package/dist/{chunk-WH4U2VUE.js → chunk-CPQKWCJ2.js} +13 -5
- package/dist/{chunk-LEUEKK4G.js → chunk-EU7T7EB3.js} +2 -2
- package/dist/{chunk-QLG5IK7F.js → chunk-G3Z2FEBR.js} +4 -4
- package/dist/{chunk-ZPY2UAKM.js → chunk-J4X7ICH4.js} +3 -3
- package/dist/{chunk-XX4BRMWF.js → chunk-K4LNUT5L.js} +1 -1
- package/dist/{chunk-CI4W6XAU.js → chunk-KC62VURU.js} +3 -3
- package/dist/chunk-N5TBYXHW.js +17 -0
- package/dist/{chunk-653KGQS2.js → chunk-OIKD7YDY.js} +2 -2
- package/dist/{chunk-LYTUTXQP.js → chunk-PBJYCE2Z.js} +46 -4
- package/dist/{chunk-EMB5PG7V.js → chunk-QC3NP47A.js} +1 -1
- package/dist/{chunk-IHA62NGJ.js → chunk-QKFVMIAV.js} +1 -1
- package/dist/{chunk-LXBMVGVB.js → chunk-QZ47OZ25.js} +3 -3
- package/dist/{chunk-ZTYCCBU3.js → chunk-VFPLWUT7.js} +44 -26
- package/dist/{chunk-RK7EPQPG.js → chunk-YFTBCCVH.js} +1 -1
- package/dist/data.cjs +71 -18
- package/dist/data.js +5 -5
- package/dist/datePicker-DxuxWpgF.d.cts +285 -0
- package/dist/datePicker-DxuxWpgF.d.ts +285 -0
- package/dist/devtools.cjs +71 -18
- package/dist/devtools.js +4 -4
- package/dist/ecosystem.cjs +82 -21
- package/dist/ecosystem.js +7 -7
- package/dist/extras.cjs +131 -23
- package/dist/extras.d.cts +2 -2
- package/dist/extras.d.ts +2 -2
- package/dist/extras.js +21 -20
- package/dist/index.cjs +115 -37
- package/dist/index.d.cts +59 -5
- package/dist/index.d.ts +59 -5
- package/dist/index.js +10 -10
- package/dist/motion.cjs +69 -16
- package/dist/motion.js +3 -3
- package/dist/patterns.cjs +71 -18
- package/dist/patterns.js +5 -5
- package/dist/performance.cjs +69 -16
- package/dist/performance.js +4 -4
- package/dist/plugins.cjs +1421 -996
- package/dist/plugins.d.cts +132 -3
- package/dist/plugins.d.ts +132 -3
- package/dist/plugins.js +262 -11
- package/dist/routeMiddleware-B1sp4P7a.d.ts +688 -0
- package/dist/routeMiddleware-CedQTsLK.d.cts +688 -0
- package/dist/ssr.cjs +3607 -3524
- package/dist/ssr.d.cts +20 -671
- package/dist/ssr.d.ts +20 -671
- package/dist/ssr.js +15 -7
- package/dist/testing.cjs +71 -18
- package/dist/testing.js +2 -2
- package/dist/ui.cjs +78 -18
- package/dist/ui.js +8 -7
- package/dist/widgets.cjs +1352 -952
- package/dist/widgets.d.cts +100 -268
- package/dist/widgets.d.ts +100 -268
- package/dist/widgets.js +316 -7
- package/package.json +9 -1
package/dist/ssr.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isPrerendering,
|
|
3
|
+
prerenderRoute,
|
|
4
|
+
prerenderWait
|
|
5
|
+
} from "./chunk-B36ADEIR.js";
|
|
1
6
|
import {
|
|
2
7
|
Head,
|
|
3
8
|
clearWasmCache,
|
|
@@ -23,9 +28,9 @@ import {
|
|
|
23
28
|
wasm,
|
|
24
29
|
worker,
|
|
25
30
|
workerFn
|
|
26
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-2O6JJCUR.js";
|
|
27
32
|
import "./chunk-52XFPGSN.js";
|
|
28
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-5XUGJM3J.js";
|
|
29
34
|
import {
|
|
30
35
|
collectStream,
|
|
31
36
|
deserializeState,
|
|
@@ -48,15 +53,15 @@ import {
|
|
|
48
53
|
} from "./chunk-2F4PSJ5Z.js";
|
|
49
54
|
import "./chunk-AM6DZLBM.js";
|
|
50
55
|
import "./chunk-62BDYGAG.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-CPQKWCJ2.js";
|
|
57
|
+
import "./chunk-K4LNUT5L.js";
|
|
53
58
|
import "./chunk-F2UWOZ6J.js";
|
|
54
59
|
import "./chunk-7ZHH77QA.js";
|
|
55
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-QC3NP47A.js";
|
|
56
61
|
import "./chunk-EXXSN3BW.js";
|
|
57
62
|
import "./chunk-7XHATCIH.js";
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-QKFVMIAV.js";
|
|
64
|
+
import "./chunk-4UTGDVSA.js";
|
|
60
65
|
import "./chunk-NYNYSPK7.js";
|
|
61
66
|
export {
|
|
62
67
|
Head,
|
|
@@ -78,12 +83,15 @@ export {
|
|
|
78
83
|
hydrateIslands,
|
|
79
84
|
hydrateProgressively,
|
|
80
85
|
isDangerousMetaRefresh,
|
|
86
|
+
isPrerendering,
|
|
81
87
|
isWasmCached,
|
|
82
88
|
island,
|
|
83
89
|
loadRemoteModule,
|
|
84
90
|
loadWasmModule,
|
|
85
91
|
loadWasmModuleWithOptions,
|
|
86
92
|
preloadWasm,
|
|
93
|
+
prerenderRoute,
|
|
94
|
+
prerenderWait,
|
|
87
95
|
renderToDocument,
|
|
88
96
|
renderToReadableStream,
|
|
89
97
|
renderToStream,
|
package/dist/testing.cjs
CHANGED
|
@@ -425,6 +425,7 @@ function bindOwnerScope(fn) {
|
|
|
425
425
|
if (scope === null) return fn;
|
|
426
426
|
return (...args) => runWithOwnerScope(scope, () => fn(...args));
|
|
427
427
|
}
|
|
428
|
+
var currentStructOwner = null;
|
|
428
429
|
var subscriberEpochCounter = 0;
|
|
429
430
|
function retrack(effectFn, subscriber) {
|
|
430
431
|
const prev = currentSubscriber;
|
|
@@ -444,6 +445,9 @@ function retrack(effectFn, subscriber) {
|
|
|
444
445
|
if (prevScope !== null && !sub._epoch && sub._scope === void 0) sub._scope = prevScope;
|
|
445
446
|
const scope = sub._scope === void 0 ? null : sub._scope;
|
|
446
447
|
if (scope !== prevScope) currentOwnerScope = scope;
|
|
448
|
+
const prevStructOwner = currentStructOwner;
|
|
449
|
+
if (prevStructOwner !== null && !sub._epoch && !sub._c && sub._owner == null) sub._owner = prevStructOwner;
|
|
450
|
+
if (sub._tok != null) currentStructOwner = sub._tok;
|
|
447
451
|
const epoch = ++subscriberEpochCounter;
|
|
448
452
|
sub._epoch = epoch;
|
|
449
453
|
sub._structDirty = false;
|
|
@@ -457,6 +461,7 @@ function retrack(effectFn, subscriber) {
|
|
|
457
461
|
} finally {
|
|
458
462
|
currentSubscriber = prev;
|
|
459
463
|
currentOwnerScope = prevScope;
|
|
464
|
+
currentStructOwner = prevStructOwner;
|
|
460
465
|
if (savedDepth !== 0) {
|
|
461
466
|
suspendDepth = savedDepth;
|
|
462
467
|
suspendSavedSub = savedSuspendSub;
|
|
@@ -513,7 +518,25 @@ function track(effectFn, subscriber) {
|
|
|
513
518
|
}
|
|
514
519
|
return sub._dispose ?? (sub._dispose = () => cleanup(subscriber));
|
|
515
520
|
}
|
|
516
|
-
function reactiveBinding(commit, ownerNode) {
|
|
521
|
+
function reactiveBinding(commit, ownerNode, structural) {
|
|
522
|
+
return createBinding(commit, ownerNode, structural === true)._dispose;
|
|
523
|
+
}
|
|
524
|
+
function structuralBinding(commit, ownerNode) {
|
|
525
|
+
const sub = createBinding(commit, ownerNode, true);
|
|
526
|
+
return {
|
|
527
|
+
stop: sub._dispose,
|
|
528
|
+
run: (fn) => {
|
|
529
|
+
const prev = currentStructOwner;
|
|
530
|
+
currentStructOwner = sub._tok ?? null;
|
|
531
|
+
try {
|
|
532
|
+
return fn();
|
|
533
|
+
} finally {
|
|
534
|
+
currentStructOwner = prev;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
function createBinding(commit, ownerNode, structural) {
|
|
517
540
|
const run = () => {
|
|
518
541
|
const s = subscriber;
|
|
519
542
|
if (s._disposed || s._reentrant) return;
|
|
@@ -536,19 +559,25 @@ function reactiveBinding(commit, ownerNode) {
|
|
|
536
559
|
subscriber._disposed = false;
|
|
537
560
|
subscriber._errorPhase = "binding";
|
|
538
561
|
subscriber._errorNode = ownerNode;
|
|
562
|
+
subscriber._tok = null;
|
|
563
|
+
subscriber._owner = null;
|
|
564
|
+
if (structural) subscriber._tok = { sub: subscriber };
|
|
539
565
|
try {
|
|
540
566
|
run();
|
|
541
567
|
} catch (err) {
|
|
542
568
|
subscriber._disposed = true;
|
|
543
569
|
subscriber._errorNode = void 0;
|
|
570
|
+
if (subscriber._tok != null) subscriber._tok.sub = null;
|
|
544
571
|
cleanup(subscriber);
|
|
545
572
|
throw err;
|
|
546
573
|
}
|
|
547
|
-
|
|
574
|
+
subscriber._dispose = () => {
|
|
548
575
|
subscriber._disposed = true;
|
|
549
576
|
subscriber._errorNode = void 0;
|
|
577
|
+
if (subscriber._tok != null) subscriber._tok.sub = null;
|
|
550
578
|
cleanup(subscriber);
|
|
551
|
-
}
|
|
579
|
+
};
|
|
580
|
+
return subscriber;
|
|
552
581
|
}
|
|
553
582
|
function recordDependency(signal) {
|
|
554
583
|
if (!currentSubscriber) return;
|
|
@@ -572,6 +601,7 @@ function recordDependency(signal) {
|
|
|
572
601
|
}
|
|
573
602
|
function cleanup(subscriber) {
|
|
574
603
|
const sub = subscriber;
|
|
604
|
+
if (sub._owner != null) sub._owner = null;
|
|
575
605
|
let node = sub.depsHead ?? null;
|
|
576
606
|
sub.depsHead = null;
|
|
577
607
|
sub.depsTail = null;
|
|
@@ -631,20 +661,41 @@ function drainQueue() {
|
|
|
631
661
|
break;
|
|
632
662
|
}
|
|
633
663
|
const sub = pendingQueue[i++];
|
|
634
|
-
pendingSet.delete(sub);
|
|
635
|
-
if (
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
664
|
+
if (!pendingSet.delete(sub)) continue;
|
|
665
|
+
if (sub._owner != null && pendingSet.size > 0) {
|
|
666
|
+
runPendingOwners(sub);
|
|
667
|
+
if (pendingSet.has(sub)) continue;
|
|
668
|
+
}
|
|
669
|
+
runQueued(sub);
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
function runPendingOwners(sub) {
|
|
673
|
+
for (; ; ) {
|
|
674
|
+
let outer = null;
|
|
675
|
+
for (let t = sub._owner ?? null; t !== null; ) {
|
|
676
|
+
const o = t.sub;
|
|
677
|
+
if (o === null) break;
|
|
678
|
+
if (pendingSet.has(o)) outer = o;
|
|
679
|
+
t = o._owner ?? null;
|
|
680
|
+
}
|
|
681
|
+
if (outer === null) return;
|
|
682
|
+
pendingSet.delete(outer);
|
|
683
|
+
runQueued(outer);
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
function runQueued(sub) {
|
|
687
|
+
if (quarantined.size > 0 && quarantined.has(sub)) return;
|
|
688
|
+
if (sub._hasComputedDep === true && !depsChanged(sub)) return;
|
|
689
|
+
if (tickRepeat(sub)) {
|
|
690
|
+
cycleError(sub);
|
|
691
|
+
quarantined.add(sub);
|
|
692
|
+
return;
|
|
693
|
+
}
|
|
694
|
+
const pushed = beginDisposerCapture(sub._cap ?? null);
|
|
695
|
+
try {
|
|
696
|
+
safeInvoke(sub);
|
|
697
|
+
} finally {
|
|
698
|
+
if (pushed) endDisposerCapture();
|
|
648
699
|
}
|
|
649
700
|
}
|
|
650
701
|
function drainNotificationQueue() {
|
|
@@ -780,7 +831,7 @@ function forEachSubscriber(signal, visit) {
|
|
|
780
831
|
}
|
|
781
832
|
|
|
782
833
|
// src/reactivity/track.ts
|
|
783
|
-
var _runtimeVersion = true ? "4.
|
|
834
|
+
var _runtimeVersion = true ? "4.13.1" : "dev";
|
|
784
835
|
var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
|
|
785
836
|
function resolveReactiveApi() {
|
|
786
837
|
const g = globalThis;
|
|
@@ -815,6 +866,7 @@ function resolveReactiveApi() {
|
|
|
815
866
|
getOwnerScope,
|
|
816
867
|
runWithOwnerScope,
|
|
817
868
|
bindOwnerScope,
|
|
869
|
+
structuralBinding,
|
|
818
870
|
version: _runtimeVersion
|
|
819
871
|
};
|
|
820
872
|
g[REGISTRY_KEY] = local;
|
|
@@ -841,6 +893,7 @@ var forEachSubscriber2 = API.forEachSubscriber;
|
|
|
841
893
|
var getOwnerScope2 = API.getOwnerScope ?? getOwnerScope;
|
|
842
894
|
var runWithOwnerScope2 = API.runWithOwnerScope ?? runWithOwnerScope;
|
|
843
895
|
var bindOwnerScope2 = API.bindOwnerScope ?? bindOwnerScope;
|
|
896
|
+
var structuralBinding2 = API.structuralBinding ?? ((commit, ownerNode) => ({ stop: API.reactiveBinding(commit, ownerNode), run: (fn) => fn() }));
|
|
844
897
|
|
|
845
898
|
// src/core/devtoolsHook.ts
|
|
846
899
|
function emitDevtools(hook, event, payload) {
|
package/dist/testing.js
CHANGED
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
} from "./chunk-7ZHH77QA.js";
|
|
4
4
|
import {
|
|
5
5
|
effect
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QC3NP47A.js";
|
|
7
7
|
import "./chunk-7XHATCIH.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-4UTGDVSA.js";
|
|
9
9
|
import {
|
|
10
10
|
dispose,
|
|
11
11
|
replaceChildrenSafely,
|
package/dist/ui.cjs
CHANGED
|
@@ -508,6 +508,7 @@ function bindOwnerScope(fn) {
|
|
|
508
508
|
if (scope === null) return fn;
|
|
509
509
|
return (...args) => runWithOwnerScope(scope, () => fn(...args));
|
|
510
510
|
}
|
|
511
|
+
var currentStructOwner = null;
|
|
511
512
|
var subscriberEpochCounter = 0;
|
|
512
513
|
function retrack(effectFn, subscriber) {
|
|
513
514
|
const prev = currentSubscriber;
|
|
@@ -527,6 +528,9 @@ function retrack(effectFn, subscriber) {
|
|
|
527
528
|
if (prevScope !== null && !sub._epoch && sub._scope === void 0) sub._scope = prevScope;
|
|
528
529
|
const scope = sub._scope === void 0 ? null : sub._scope;
|
|
529
530
|
if (scope !== prevScope) currentOwnerScope = scope;
|
|
531
|
+
const prevStructOwner = currentStructOwner;
|
|
532
|
+
if (prevStructOwner !== null && !sub._epoch && !sub._c && sub._owner == null) sub._owner = prevStructOwner;
|
|
533
|
+
if (sub._tok != null) currentStructOwner = sub._tok;
|
|
530
534
|
const epoch = ++subscriberEpochCounter;
|
|
531
535
|
sub._epoch = epoch;
|
|
532
536
|
sub._structDirty = false;
|
|
@@ -540,6 +544,7 @@ function retrack(effectFn, subscriber) {
|
|
|
540
544
|
} finally {
|
|
541
545
|
currentSubscriber = prev;
|
|
542
546
|
currentOwnerScope = prevScope;
|
|
547
|
+
currentStructOwner = prevStructOwner;
|
|
543
548
|
if (savedDepth !== 0) {
|
|
544
549
|
suspendDepth = savedDepth;
|
|
545
550
|
suspendSavedSub = savedSuspendSub;
|
|
@@ -596,7 +601,25 @@ function track(effectFn, subscriber) {
|
|
|
596
601
|
}
|
|
597
602
|
return sub._dispose ?? (sub._dispose = () => cleanup(subscriber));
|
|
598
603
|
}
|
|
599
|
-
function reactiveBinding(commit, ownerNode) {
|
|
604
|
+
function reactiveBinding(commit, ownerNode, structural) {
|
|
605
|
+
return createBinding(commit, ownerNode, structural === true)._dispose;
|
|
606
|
+
}
|
|
607
|
+
function structuralBinding(commit, ownerNode) {
|
|
608
|
+
const sub = createBinding(commit, ownerNode, true);
|
|
609
|
+
return {
|
|
610
|
+
stop: sub._dispose,
|
|
611
|
+
run: (fn) => {
|
|
612
|
+
const prev = currentStructOwner;
|
|
613
|
+
currentStructOwner = sub._tok ?? null;
|
|
614
|
+
try {
|
|
615
|
+
return fn();
|
|
616
|
+
} finally {
|
|
617
|
+
currentStructOwner = prev;
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
function createBinding(commit, ownerNode, structural) {
|
|
600
623
|
const run = () => {
|
|
601
624
|
const s = subscriber;
|
|
602
625
|
if (s._disposed || s._reentrant) return;
|
|
@@ -619,19 +642,25 @@ function reactiveBinding(commit, ownerNode) {
|
|
|
619
642
|
subscriber._disposed = false;
|
|
620
643
|
subscriber._errorPhase = "binding";
|
|
621
644
|
subscriber._errorNode = ownerNode;
|
|
645
|
+
subscriber._tok = null;
|
|
646
|
+
subscriber._owner = null;
|
|
647
|
+
if (structural) subscriber._tok = { sub: subscriber };
|
|
622
648
|
try {
|
|
623
649
|
run();
|
|
624
650
|
} catch (err) {
|
|
625
651
|
subscriber._disposed = true;
|
|
626
652
|
subscriber._errorNode = void 0;
|
|
653
|
+
if (subscriber._tok != null) subscriber._tok.sub = null;
|
|
627
654
|
cleanup(subscriber);
|
|
628
655
|
throw err;
|
|
629
656
|
}
|
|
630
|
-
|
|
657
|
+
subscriber._dispose = () => {
|
|
631
658
|
subscriber._disposed = true;
|
|
632
659
|
subscriber._errorNode = void 0;
|
|
660
|
+
if (subscriber._tok != null) subscriber._tok.sub = null;
|
|
633
661
|
cleanup(subscriber);
|
|
634
|
-
}
|
|
662
|
+
};
|
|
663
|
+
return subscriber;
|
|
635
664
|
}
|
|
636
665
|
function recordDependency(signal2) {
|
|
637
666
|
if (!currentSubscriber) return;
|
|
@@ -655,6 +684,7 @@ function recordDependency(signal2) {
|
|
|
655
684
|
}
|
|
656
685
|
function cleanup(subscriber) {
|
|
657
686
|
const sub = subscriber;
|
|
687
|
+
if (sub._owner != null) sub._owner = null;
|
|
658
688
|
let node = sub.depsHead ?? null;
|
|
659
689
|
sub.depsHead = null;
|
|
660
690
|
sub.depsTail = null;
|
|
@@ -714,20 +744,41 @@ function drainQueue() {
|
|
|
714
744
|
break;
|
|
715
745
|
}
|
|
716
746
|
const sub = pendingQueue[i++];
|
|
717
|
-
pendingSet.delete(sub);
|
|
718
|
-
if (
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
747
|
+
if (!pendingSet.delete(sub)) continue;
|
|
748
|
+
if (sub._owner != null && pendingSet.size > 0) {
|
|
749
|
+
runPendingOwners(sub);
|
|
750
|
+
if (pendingSet.has(sub)) continue;
|
|
751
|
+
}
|
|
752
|
+
runQueued(sub);
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
function runPendingOwners(sub) {
|
|
756
|
+
for (; ; ) {
|
|
757
|
+
let outer = null;
|
|
758
|
+
for (let t = sub._owner ?? null; t !== null; ) {
|
|
759
|
+
const o = t.sub;
|
|
760
|
+
if (o === null) break;
|
|
761
|
+
if (pendingSet.has(o)) outer = o;
|
|
762
|
+
t = o._owner ?? null;
|
|
763
|
+
}
|
|
764
|
+
if (outer === null) return;
|
|
765
|
+
pendingSet.delete(outer);
|
|
766
|
+
runQueued(outer);
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
function runQueued(sub) {
|
|
770
|
+
if (quarantined.size > 0 && quarantined.has(sub)) return;
|
|
771
|
+
if (sub._hasComputedDep === true && !depsChanged(sub)) return;
|
|
772
|
+
if (tickRepeat(sub)) {
|
|
773
|
+
cycleError(sub);
|
|
774
|
+
quarantined.add(sub);
|
|
775
|
+
return;
|
|
776
|
+
}
|
|
777
|
+
const pushed = beginDisposerCapture(sub._cap ?? null);
|
|
778
|
+
try {
|
|
779
|
+
safeInvoke(sub);
|
|
780
|
+
} finally {
|
|
781
|
+
if (pushed) endDisposerCapture();
|
|
731
782
|
}
|
|
732
783
|
}
|
|
733
784
|
function drainNotificationQueue() {
|
|
@@ -863,7 +914,7 @@ function forEachSubscriber(signal2, visit) {
|
|
|
863
914
|
}
|
|
864
915
|
|
|
865
916
|
// src/reactivity/track.ts
|
|
866
|
-
var _runtimeVersion = true ? "4.
|
|
917
|
+
var _runtimeVersion = true ? "4.13.1" : "dev";
|
|
867
918
|
var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
|
|
868
919
|
function resolveReactiveApi() {
|
|
869
920
|
const g = globalThis;
|
|
@@ -898,6 +949,7 @@ function resolveReactiveApi() {
|
|
|
898
949
|
getOwnerScope,
|
|
899
950
|
runWithOwnerScope,
|
|
900
951
|
bindOwnerScope,
|
|
952
|
+
structuralBinding,
|
|
901
953
|
version: _runtimeVersion
|
|
902
954
|
};
|
|
903
955
|
g[REGISTRY_KEY] = local;
|
|
@@ -924,6 +976,7 @@ var forEachSubscriber2 = API.forEachSubscriber;
|
|
|
924
976
|
var getOwnerScope2 = API.getOwnerScope ?? getOwnerScope;
|
|
925
977
|
var runWithOwnerScope2 = API.runWithOwnerScope ?? runWithOwnerScope;
|
|
926
978
|
var bindOwnerScope2 = API.bindOwnerScope ?? bindOwnerScope;
|
|
979
|
+
var structuralBinding2 = API.structuralBinding ?? ((commit, ownerNode) => ({ stop: API.reactiveBinding(commit, ownerNode), run: (fn) => fn() }));
|
|
927
980
|
|
|
928
981
|
// src/core/devtoolsHook.ts
|
|
929
982
|
function emitDevtools(hook, event, payload) {
|
|
@@ -3156,6 +3209,12 @@ function bindData(el, key, getter) {
|
|
|
3156
3209
|
return bindAttribute(el, dataAttr, getter);
|
|
3157
3210
|
}
|
|
3158
3211
|
|
|
3212
|
+
// src/widgets/keyOwnership.ts
|
|
3213
|
+
var CLAIM = /* @__PURE__ */ Symbol.for("sibujs.widgetKey");
|
|
3214
|
+
function isWidgetKeyEvent(event) {
|
|
3215
|
+
return event[CLAIM] !== void 0;
|
|
3216
|
+
}
|
|
3217
|
+
|
|
3159
3218
|
// src/ui/dialog.ts
|
|
3160
3219
|
var _dlg = globalSingleton(/* @__PURE__ */ Symbol.for("sibujs.dialog.v1"), () => ({
|
|
3161
3220
|
stack: [],
|
|
@@ -3171,6 +3230,7 @@ function __resetDialogStack() {
|
|
|
3171
3230
|
}
|
|
3172
3231
|
function handleGlobalKeydown(event) {
|
|
3173
3232
|
if (event.key !== "Escape") return;
|
|
3233
|
+
if (isWidgetKeyEvent(event)) return;
|
|
3174
3234
|
const top = dialogStack[dialogStack.length - 1];
|
|
3175
3235
|
if (top) top.close();
|
|
3176
3236
|
}
|
package/dist/ui.js
CHANGED
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
toast,
|
|
39
39
|
withScopedStyle,
|
|
40
40
|
zipMask
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-C73VBPEF.js";
|
|
42
42
|
import {
|
|
43
43
|
RenderProp,
|
|
44
44
|
assertType,
|
|
@@ -55,6 +55,7 @@ import {
|
|
|
55
55
|
withProps,
|
|
56
56
|
withWrapper
|
|
57
57
|
} from "./chunk-TUCPL2HB.js";
|
|
58
|
+
import "./chunk-N5TBYXHW.js";
|
|
58
59
|
import {
|
|
59
60
|
DEFAULT_EMBED_REFERRER_POLICY,
|
|
60
61
|
DEFAULT_EMBED_SANDBOX,
|
|
@@ -68,28 +69,28 @@ import {
|
|
|
68
69
|
} from "./chunk-AM6DZLBM.js";
|
|
69
70
|
import {
|
|
70
71
|
createId
|
|
71
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-22OPSWMF.js";
|
|
72
73
|
import {
|
|
73
74
|
noDocument
|
|
74
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-K4LNUT5L.js";
|
|
75
76
|
import "./chunk-F2UWOZ6J.js";
|
|
76
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-YFTBCCVH.js";
|
|
77
78
|
import {
|
|
78
79
|
globalSingleton
|
|
79
80
|
} from "./chunk-7ZHH77QA.js";
|
|
80
81
|
import {
|
|
81
82
|
effect
|
|
82
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-QC3NP47A.js";
|
|
83
84
|
import "./chunk-EXXSN3BW.js";
|
|
84
85
|
import "./chunk-7XHATCIH.js";
|
|
85
86
|
import "./chunk-5HZXGZ6T.js";
|
|
86
87
|
import {
|
|
87
88
|
batch,
|
|
88
89
|
signal
|
|
89
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-QKFVMIAV.js";
|
|
90
91
|
import {
|
|
91
92
|
reactiveBinding
|
|
92
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-4UTGDVSA.js";
|
|
93
94
|
import {
|
|
94
95
|
devWarnLazy,
|
|
95
96
|
registerDisposer,
|