sibujs 4.6.0 → 4.7.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/README.md +1 -1
- package/dist/browser.cjs +18 -5
- package/dist/browser.js +4 -4
- package/dist/build.cjs +1956 -1007
- package/dist/build.d.cts +133 -44
- package/dist/build.d.ts +133 -44
- package/dist/build.js +1368 -569
- package/dist/cdn.dev.global.js +12 -12
- package/dist/cdn.full.dev.global.js +11 -11
- package/dist/cdn.full.global.js +10 -10
- package/dist/cdn.global.js +12 -12
- package/dist/{chunk-SXXVZMKZ.js → chunk-2BPG2XDA.js} +5 -5
- package/dist/{chunk-BAAG6ZTI.js → chunk-3QWBSL5R.js} +4 -4
- package/dist/{chunk-5MT6SJ3P.js → chunk-4AWA2PVD.js} +2 -2
- package/dist/{chunk-JSXPZCET.js → chunk-7LUJQAOJ.js} +1 -1
- package/dist/{chunk-3ISI6ACU.js → chunk-BC2SECJD.js} +1 -1
- package/dist/{chunk-DKGBBKOF.js → chunk-BSY63EM6.js} +2 -2
- package/dist/{chunk-7NCARGJW.js → chunk-DKXRACVN.js} +3 -3
- package/dist/{chunk-47M47FOM.js → chunk-FNJXNGYZ.js} +1 -1
- package/dist/{chunk-D33YTSX5.js → chunk-FQRUXCEE.js} +5 -4
- package/dist/{chunk-5Q4R7HCL.js → chunk-JWKYU5GV.js} +11 -2
- package/dist/{chunk-QE4TTDU3.js → chunk-RUSSKG6G.js} +12 -11
- package/dist/{chunk-UZQ6ALFS.js → chunk-SLM3IA34.js} +1 -1
- package/dist/{chunk-XRRZKZYX.js → chunk-UNWRJRKC.js} +1 -1
- package/dist/{chunk-VVWPJ543.js → chunk-UOL2ECCS.js} +40 -11
- package/dist/{chunk-ORMZXBKQ.js → chunk-VZSG24LS.js} +3 -3
- package/dist/{chunk-XC4MEKGA.js → chunk-WEQ3DMVL.js} +8 -2
- package/dist/{chunk-PK6FK2G2.js → chunk-WOLJZUFQ.js} +176 -27
- package/dist/{chunk-7GQCWFOE.js → chunk-XYV3EDB7.js} +143 -74
- package/dist/{chunk-AIF3Z2T7.js → chunk-XZR4PXRE.js} +3 -3
- package/dist/{chunk-HYXDKS4N.js → chunk-Z3OHK6QT.js} +4 -4
- package/dist/{chunk-OXUY2A6L.js → chunk-ZVL7TY4K.js} +2 -2
- package/dist/{contracts-DRIuclVT.d.ts → contracts-CLqzJnOV.d.ts} +28 -17
- package/dist/{contracts-DRIuclVT.d.cts → contracts-CTOJXu-x.d.cts} +28 -17
- package/dist/data.cjs +198 -39
- package/dist/data.d.cts +119 -3
- package/dist/data.d.ts +119 -3
- package/dist/data.js +5 -5
- package/dist/devtools.cjs +18 -5
- package/dist/devtools.js +4 -4
- package/dist/ecosystem.cjs +64 -23
- package/dist/ecosystem.d.cts +2 -1
- package/dist/ecosystem.d.ts +2 -1
- package/dist/ecosystem.js +7 -7
- package/dist/extras.cjs +236 -49
- package/dist/extras.d.cts +3 -2
- package/dist/extras.d.ts +3 -2
- package/dist/extras.js +20 -20
- package/dist/index.cjs +259 -108
- package/dist/index.d.cts +193 -168
- package/dist/index.d.ts +193 -168
- package/dist/index.js +10 -10
- package/dist/motion.cjs +12 -4
- package/dist/motion.js +3 -3
- package/dist/patterns.cjs +28 -15
- package/dist/patterns.d.cts +2 -1
- package/dist/patterns.d.ts +2 -1
- package/dist/patterns.js +5 -5
- package/dist/performance.cjs +18 -5
- package/dist/performance.js +4 -4
- package/dist/plugins.cjs +118 -34
- package/dist/plugins.d.cts +124 -11
- package/dist/plugins.d.ts +124 -11
- package/dist/plugins.js +68 -26
- package/dist/ssr.cjs +54 -13
- package/dist/ssr.js +7 -7
- package/dist/{tagFactory-DFstCLQV.d.cts → tagFactory-8qL9LCIx.d.cts} +58 -19
- package/dist/{tagFactory-DkaNVUNV.d.ts → tagFactory-BL2fymez.d.ts} +58 -19
- package/dist/testing.cjs +15 -2
- package/dist/testing.js +2 -2
- package/dist/types-CJFViL6Q.d.cts +26 -0
- package/dist/types-CJFViL6Q.d.ts +26 -0
- package/dist/ui.cjs +28 -15
- package/dist/ui.d.cts +2 -1
- package/dist/ui.d.ts +2 -1
- package/dist/ui.js +7 -7
- package/dist/widgets.cjs +22 -14
- package/dist/widgets.js +6 -6
- package/package.json +4 -2
package/dist/index.js
CHANGED
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
unregisterIsland,
|
|
54
54
|
when,
|
|
55
55
|
writable
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-XYV3EDB7.js";
|
|
57
57
|
import {
|
|
58
58
|
a,
|
|
59
59
|
abbr,
|
|
@@ -191,33 +191,33 @@ import {
|
|
|
191
191
|
use,
|
|
192
192
|
var_,
|
|
193
193
|
video
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-7LUJQAOJ.js";
|
|
195
195
|
import {
|
|
196
196
|
trustHTML
|
|
197
197
|
} from "./chunk-HURREPU2.js";
|
|
198
198
|
import {
|
|
199
199
|
watch
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-SLM3IA34.js";
|
|
201
201
|
import {
|
|
202
202
|
__resetIdCounter,
|
|
203
203
|
createId
|
|
204
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-BC2SECJD.js";
|
|
205
205
|
import {
|
|
206
206
|
SVG_NS,
|
|
207
207
|
tagFactory
|
|
208
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-UOL2ECCS.js";
|
|
209
209
|
import {
|
|
210
210
|
bindDynamic
|
|
211
|
-
} from "./chunk-
|
|
211
|
+
} from "./chunk-FNJXNGYZ.js";
|
|
212
212
|
import {
|
|
213
213
|
derived
|
|
214
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-RUSSKG6G.js";
|
|
215
215
|
import "./chunk-2INLLLMZ.js";
|
|
216
216
|
import "./chunk-7ZHH77QA.js";
|
|
217
217
|
import {
|
|
218
218
|
effect,
|
|
219
219
|
on
|
|
220
|
-
} from "./chunk-
|
|
220
|
+
} from "./chunk-WEQ3DMVL.js";
|
|
221
221
|
import {
|
|
222
222
|
disableSSR,
|
|
223
223
|
enableSSR,
|
|
@@ -234,12 +234,12 @@ import {
|
|
|
234
234
|
external,
|
|
235
235
|
isBatching,
|
|
236
236
|
signal
|
|
237
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-FQRUXCEE.js";
|
|
238
238
|
import {
|
|
239
239
|
retrack,
|
|
240
240
|
setMaxDrainIterations,
|
|
241
241
|
untracked
|
|
242
|
-
} from "./chunk-
|
|
242
|
+
} from "./chunk-JWKYU5GV.js";
|
|
243
243
|
import {
|
|
244
244
|
MAX_DRAIN_TEARDOWNS,
|
|
245
245
|
checkLeaks,
|
package/dist/motion.cjs
CHANGED
|
@@ -761,7 +761,7 @@ function forEachSubscriber(signal2, visit) {
|
|
|
761
761
|
}
|
|
762
762
|
|
|
763
763
|
// src/reactivity/track.ts
|
|
764
|
-
var _runtimeVersion = true ? "4.
|
|
764
|
+
var _runtimeVersion = true ? "4.7.0" : "dev";
|
|
765
765
|
var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
|
|
766
766
|
function resolveReactiveApi() {
|
|
767
767
|
const g = globalThis;
|
|
@@ -867,6 +867,14 @@ var batch = API2.batch;
|
|
|
867
867
|
var enqueueBatchedSignal = API2.enqueueBatchedSignal;
|
|
868
868
|
var isBatching = API2.isBatching;
|
|
869
869
|
|
|
870
|
+
// src/core/devtoolsHook.ts
|
|
871
|
+
function emitDevtools(hook, event, payload) {
|
|
872
|
+
try {
|
|
873
|
+
hook.emit(event, payload);
|
|
874
|
+
} catch {
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
|
|
870
878
|
// src/core/signals/signal.ts
|
|
871
879
|
var _g = globalThis;
|
|
872
880
|
function signal(initial, options) {
|
|
@@ -900,7 +908,7 @@ function signal(initial, options) {
|
|
|
900
908
|
state2.__v++;
|
|
901
909
|
if (DEV) {
|
|
902
910
|
const hook = _g.__SIBU_DEVTOOLS_GLOBAL_HOOK__;
|
|
903
|
-
if (hook) hook
|
|
911
|
+
if (hook) emitDevtools(hook, "signal:update", { signal: state2, name: debugName, oldValue: prev, newValue });
|
|
904
912
|
}
|
|
905
913
|
if (!enqueueBatchedSignal(state2)) {
|
|
906
914
|
notifySubscribers2(state2);
|
|
@@ -914,7 +922,7 @@ function signal(initial, options) {
|
|
|
914
922
|
state2.value = newValue;
|
|
915
923
|
state2.__v++;
|
|
916
924
|
const hook = _g.__SIBU_DEVTOOLS_GLOBAL_HOOK__;
|
|
917
|
-
if (hook) hook
|
|
925
|
+
if (hook) emitDevtools(hook, "signal:update", { signal: state2, name: debugName, oldValue: prev, newValue });
|
|
918
926
|
if (!enqueueBatchedSignal(state2)) {
|
|
919
927
|
notifySubscribers2(state2);
|
|
920
928
|
}
|
|
@@ -933,7 +941,7 @@ function signal(initial, options) {
|
|
|
933
941
|
}
|
|
934
942
|
if (DEV) {
|
|
935
943
|
const hook = _g.__SIBU_DEVTOOLS_GLOBAL_HOOK__;
|
|
936
|
-
if (hook) hook
|
|
944
|
+
if (hook) emitDevtools(hook, "signal:create", { signal: state2, name: debugName, getter: get, initial });
|
|
937
945
|
}
|
|
938
946
|
return [get, set];
|
|
939
947
|
}
|
package/dist/motion.js
CHANGED
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
stagger,
|
|
21
21
|
transition,
|
|
22
22
|
viewTransition
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-UNWRJRKC.js";
|
|
24
24
|
import "./chunk-5HZXGZ6T.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-FQRUXCEE.js";
|
|
26
|
+
import "./chunk-JWKYU5GV.js";
|
|
27
27
|
import "./chunk-NYNYSPK7.js";
|
|
28
28
|
export {
|
|
29
29
|
TransitionGroup,
|
package/dist/patterns.cjs
CHANGED
|
@@ -657,7 +657,7 @@ function forEachSubscriber(signal2, visit) {
|
|
|
657
657
|
}
|
|
658
658
|
|
|
659
659
|
// src/reactivity/track.ts
|
|
660
|
-
var _runtimeVersion = true ? "4.
|
|
660
|
+
var _runtimeVersion = true ? "4.7.0" : "dev";
|
|
661
661
|
var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
|
|
662
662
|
function resolveReactiveApi() {
|
|
663
663
|
const g = globalThis;
|
|
@@ -763,6 +763,14 @@ var batch = API2.batch;
|
|
|
763
763
|
var enqueueBatchedSignal = API2.enqueueBatchedSignal;
|
|
764
764
|
var isBatching = API2.isBatching;
|
|
765
765
|
|
|
766
|
+
// src/core/devtoolsHook.ts
|
|
767
|
+
function emitDevtools(hook, event, payload) {
|
|
768
|
+
try {
|
|
769
|
+
hook.emit(event, payload);
|
|
770
|
+
} catch {
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
|
|
766
774
|
// src/core/signals/signal.ts
|
|
767
775
|
var _g = globalThis;
|
|
768
776
|
function signal(initial, options) {
|
|
@@ -796,7 +804,7 @@ function signal(initial, options) {
|
|
|
796
804
|
state2.__v++;
|
|
797
805
|
if (DEV) {
|
|
798
806
|
const hook = _g.__SIBU_DEVTOOLS_GLOBAL_HOOK__;
|
|
799
|
-
if (hook) hook
|
|
807
|
+
if (hook) emitDevtools(hook, "signal:update", { signal: state2, name: debugName, oldValue: prev, newValue });
|
|
800
808
|
}
|
|
801
809
|
if (!enqueueBatchedSignal(state2)) {
|
|
802
810
|
notifySubscribers2(state2);
|
|
@@ -810,7 +818,7 @@ function signal(initial, options) {
|
|
|
810
818
|
state2.value = newValue;
|
|
811
819
|
state2.__v++;
|
|
812
820
|
const hook = _g.__SIBU_DEVTOOLS_GLOBAL_HOOK__;
|
|
813
|
-
if (hook) hook
|
|
821
|
+
if (hook) emitDevtools(hook, "signal:update", { signal: state2, name: debugName, oldValue: prev, newValue });
|
|
814
822
|
if (!enqueueBatchedSignal(state2)) {
|
|
815
823
|
notifySubscribers2(state2);
|
|
816
824
|
}
|
|
@@ -829,7 +837,7 @@ function signal(initial, options) {
|
|
|
829
837
|
}
|
|
830
838
|
if (DEV) {
|
|
831
839
|
const hook = _g.__SIBU_DEVTOOLS_GLOBAL_HOOK__;
|
|
832
|
-
if (hook) hook
|
|
840
|
+
if (hook) emitDevtools(hook, "signal:create", { signal: state2, name: debugName, getter: get, initial });
|
|
833
841
|
}
|
|
834
842
|
return [get, set];
|
|
835
843
|
}
|
|
@@ -1094,12 +1102,17 @@ function effect(effectFn, options) {
|
|
|
1094
1102
|
try {
|
|
1095
1103
|
retrack2(ctx.bodyFn, ctx.subscriber);
|
|
1096
1104
|
if (ctx.rerunPending) drainReruns(ctx);
|
|
1105
|
+
} catch (err) {
|
|
1106
|
+
ctx.disposed = true;
|
|
1107
|
+
if (ctx.userCleanups.length > 0) flushUserCleanups(ctx);
|
|
1108
|
+
cleanup2(ctx.subscriber);
|
|
1109
|
+
throw err;
|
|
1097
1110
|
} finally {
|
|
1098
1111
|
ctx.running = false;
|
|
1099
1112
|
ctx.rerunPending = false;
|
|
1100
1113
|
}
|
|
1101
1114
|
const hook = _g2.__SIBU_DEVTOOLS_GLOBAL_HOOK__;
|
|
1102
|
-
if (hook) hook
|
|
1115
|
+
if (hook) emitDevtools(hook, "effect:create", { effectFn });
|
|
1103
1116
|
return () => disposeEffect(ctx);
|
|
1104
1117
|
}
|
|
1105
1118
|
|
|
@@ -1497,17 +1510,17 @@ function derived(getter, options) {
|
|
|
1497
1510
|
cs._d = false;
|
|
1498
1511
|
cs._init = true;
|
|
1499
1512
|
};
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
try {
|
|
1513
|
+
try {
|
|
1514
|
+
track2(() => {
|
|
1503
1515
|
cs._v = getter();
|
|
1504
1516
|
cs._d = false;
|
|
1505
1517
|
cs._init = true;
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1518
|
+
}, markDirty);
|
|
1519
|
+
} catch (err) {
|
|
1520
|
+
disposed = true;
|
|
1521
|
+
cleanup2(markDirty);
|
|
1522
|
+
throw err;
|
|
1523
|
+
}
|
|
1511
1524
|
const hook = globalThis.__SIBU_DEVTOOLS_GLOBAL_HOOK__;
|
|
1512
1525
|
const validate = () => {
|
|
1513
1526
|
if (!cs._d || disposed || pendingError !== void 0) return;
|
|
@@ -1526,7 +1539,7 @@ function derived(getter, options) {
|
|
|
1526
1539
|
if (disposed) cleanup2(markDirty);
|
|
1527
1540
|
}
|
|
1528
1541
|
if (hook && !disposed && !Object.is(oldValue, cs._v)) {
|
|
1529
|
-
hook
|
|
1542
|
+
emitDevtools(hook, "computed:update", { signal: cs, oldValue, newValue: cs._v });
|
|
1530
1543
|
}
|
|
1531
1544
|
};
|
|
1532
1545
|
cs._validate = validate;
|
|
@@ -1577,7 +1590,7 @@ function derived(getter, options) {
|
|
|
1577
1590
|
}
|
|
1578
1591
|
}
|
|
1579
1592
|
};
|
|
1580
|
-
if (hook) hook
|
|
1593
|
+
if (hook) emitDevtools(hook, "computed:create", { signal: cs, name: debugName, getter: computedGetter });
|
|
1581
1594
|
return computedGetter;
|
|
1582
1595
|
}
|
|
1583
1596
|
|
package/dist/patterns.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { C as ComponentProps, P as PropDef, a as PropSchema, R as RenderProp, V as Validator, W as WithDefaultsProps, b as assertType, c as compose, d as createGuard, e as createSlots, f as defineComponent, g as defineSlottedComponent, h as defineStrictComponent, v as validateProps, i as validators, w as withBoundary, j as withDefaults, k as withProps, l as withWrapper } from './contracts-
|
|
1
|
+
export { C as ComponentProps, P as PropDef, a as PropSchema, R as RenderProp, V as Validator, W as WithDefaultsProps, b as assertType, c as compose, d as createGuard, e as createSlots, f as defineComponent, g as defineSlottedComponent, h as defineStrictComponent, v as validateProps, i as validators, w as withBoundary, j as withDefaults, k as withProps, l as withWrapper } from './contracts-CTOJXu-x.cjs';
|
|
2
|
+
import './types-CJFViL6Q.cjs';
|
|
2
3
|
|
|
3
4
|
interface MachineConfig<S extends string, E extends string, C extends object = Record<string, unknown>> {
|
|
4
5
|
initial: S;
|
package/dist/patterns.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { C as ComponentProps, P as PropDef, a as PropSchema, R as RenderProp, V as Validator, W as WithDefaultsProps, b as assertType, c as compose, d as createGuard, e as createSlots, f as defineComponent, g as defineSlottedComponent, h as defineStrictComponent, v as validateProps, i as validators, w as withBoundary, j as withDefaults, k as withProps, l as withWrapper } from './contracts-
|
|
1
|
+
export { C as ComponentProps, P as PropDef, a as PropSchema, R as RenderProp, V as Validator, W as WithDefaultsProps, b as assertType, c as compose, d as createGuard, e as createSlots, f as defineComponent, g as defineSlottedComponent, h as defineStrictComponent, v as validateProps, i as validators, w as withBoundary, j as withDefaults, k as withProps, l as withWrapper } from './contracts-CLqzJnOV.js';
|
|
2
|
+
import './types-CJFViL6Q.js';
|
|
2
3
|
|
|
3
4
|
interface MachineConfig<S extends string, E extends string, C extends object = Record<string, unknown>> {
|
|
4
5
|
initial: S;
|
package/dist/patterns.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
optimisticList,
|
|
6
6
|
persisted,
|
|
7
7
|
timeline
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XZR4PXRE.js";
|
|
9
9
|
import {
|
|
10
10
|
RenderProp,
|
|
11
11
|
assertType,
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
withWrapper
|
|
24
24
|
} from "./chunk-TUCPL2HB.js";
|
|
25
25
|
import "./chunk-H3SRKIYX.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-RUSSKG6G.js";
|
|
27
|
+
import "./chunk-WEQ3DMVL.js";
|
|
28
28
|
import "./chunk-7XHATCIH.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-FQRUXCEE.js";
|
|
30
|
+
import "./chunk-JWKYU5GV.js";
|
|
31
31
|
import "./chunk-NYNYSPK7.js";
|
|
32
32
|
export {
|
|
33
33
|
RenderProp,
|
package/dist/performance.cjs
CHANGED
|
@@ -923,7 +923,7 @@ function forEachSubscriber(signal2, visit) {
|
|
|
923
923
|
}
|
|
924
924
|
|
|
925
925
|
// src/reactivity/track.ts
|
|
926
|
-
var _runtimeVersion = true ? "4.
|
|
926
|
+
var _runtimeVersion = true ? "4.7.0" : "dev";
|
|
927
927
|
var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
|
|
928
928
|
function resolveReactiveApi() {
|
|
929
929
|
const g = globalThis;
|
|
@@ -979,6 +979,14 @@ var getSubscriberCount2 = API.getSubscriberCount;
|
|
|
979
979
|
var getSubscriberDeps2 = API.getSubscriberDeps;
|
|
980
980
|
var forEachSubscriber2 = API.forEachSubscriber;
|
|
981
981
|
|
|
982
|
+
// src/core/devtoolsHook.ts
|
|
983
|
+
function emitDevtools(hook, event, payload) {
|
|
984
|
+
try {
|
|
985
|
+
hook.emit(event, payload);
|
|
986
|
+
} catch {
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
|
|
982
990
|
// src/core/ssr-context.ts
|
|
983
991
|
var SSR_KEY = /* @__PURE__ */ Symbol.for("sibujs.ssr.v1");
|
|
984
992
|
function detectSSRShared() {
|
|
@@ -1133,12 +1141,17 @@ function effect(effectFn, options) {
|
|
|
1133
1141
|
try {
|
|
1134
1142
|
retrack2(ctx.bodyFn, ctx.subscriber);
|
|
1135
1143
|
if (ctx.rerunPending) drainReruns(ctx);
|
|
1144
|
+
} catch (err) {
|
|
1145
|
+
ctx.disposed = true;
|
|
1146
|
+
if (ctx.userCleanups.length > 0) flushUserCleanups(ctx);
|
|
1147
|
+
cleanup2(ctx.subscriber);
|
|
1148
|
+
throw err;
|
|
1136
1149
|
} finally {
|
|
1137
1150
|
ctx.running = false;
|
|
1138
1151
|
ctx.rerunPending = false;
|
|
1139
1152
|
}
|
|
1140
1153
|
const hook = _g.__SIBU_DEVTOOLS_GLOBAL_HOOK__;
|
|
1141
|
-
if (hook) hook
|
|
1154
|
+
if (hook) emitDevtools(hook, "effect:create", { effectFn });
|
|
1142
1155
|
return () => disposeEffect(ctx);
|
|
1143
1156
|
}
|
|
1144
1157
|
|
|
@@ -1225,7 +1238,7 @@ function signal(initial, options) {
|
|
|
1225
1238
|
state2.__v++;
|
|
1226
1239
|
if (DEV) {
|
|
1227
1240
|
const hook = _g2.__SIBU_DEVTOOLS_GLOBAL_HOOK__;
|
|
1228
|
-
if (hook) hook
|
|
1241
|
+
if (hook) emitDevtools(hook, "signal:update", { signal: state2, name: debugName, oldValue: prev, newValue });
|
|
1229
1242
|
}
|
|
1230
1243
|
if (!enqueueBatchedSignal(state2)) {
|
|
1231
1244
|
notifySubscribers2(state2);
|
|
@@ -1239,7 +1252,7 @@ function signal(initial, options) {
|
|
|
1239
1252
|
state2.value = newValue;
|
|
1240
1253
|
state2.__v++;
|
|
1241
1254
|
const hook = _g2.__SIBU_DEVTOOLS_GLOBAL_HOOK__;
|
|
1242
|
-
if (hook) hook
|
|
1255
|
+
if (hook) emitDevtools(hook, "signal:update", { signal: state2, name: debugName, oldValue: prev, newValue });
|
|
1243
1256
|
if (!enqueueBatchedSignal(state2)) {
|
|
1244
1257
|
notifySubscribers2(state2);
|
|
1245
1258
|
}
|
|
@@ -1258,7 +1271,7 @@ function signal(initial, options) {
|
|
|
1258
1271
|
}
|
|
1259
1272
|
if (DEV) {
|
|
1260
1273
|
const hook = _g2.__SIBU_DEVTOOLS_GLOBAL_HOOK__;
|
|
1261
|
-
if (hook) hook
|
|
1274
|
+
if (hook) emitDevtools(hook, "signal:create", { signal: state2, name: debugName, getter: get, initial });
|
|
1262
1275
|
}
|
|
1263
1276
|
return [get, set];
|
|
1264
1277
|
}
|
package/dist/performance.js
CHANGED
|
@@ -33,16 +33,16 @@ import {
|
|
|
33
33
|
transitionState,
|
|
34
34
|
uniqueId,
|
|
35
35
|
yieldToMain
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-BSY63EM6.js";
|
|
37
37
|
import {
|
|
38
38
|
trustHTML
|
|
39
39
|
} from "./chunk-HURREPU2.js";
|
|
40
40
|
import "./chunk-2INLLLMZ.js";
|
|
41
41
|
import "./chunk-7ZHH77QA.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-WEQ3DMVL.js";
|
|
43
43
|
import "./chunk-7XHATCIH.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-FQRUXCEE.js";
|
|
45
|
+
import "./chunk-JWKYU5GV.js";
|
|
46
46
|
import "./chunk-NYNYSPK7.js";
|
|
47
47
|
export {
|
|
48
48
|
DOMPool,
|