sibujs 3.3.1 → 3.3.2
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 +21 -15
- package/dist/browser.js +5 -5
- package/dist/build.cjs +48 -20
- package/dist/build.js +13 -13
- package/dist/cdn.global.js +7 -7
- package/dist/{chunk-IKLYI3RF.js → chunk-2ARSB7NG.js} +36 -13
- package/dist/{chunk-TEFZT5PJ.js → chunk-4NJEAPLI.js} +1 -1
- package/dist/{chunk-F7FXQ3QS.js → chunk-5VH3GIDX.js} +1 -1
- package/dist/{chunk-RYMOSG5B.js → chunk-62V653X2.js} +16 -21
- package/dist/{chunk-XH2RTYEQ.js → chunk-655B7MMR.js} +3 -3
- package/dist/{chunk-37BUKSLH.js → chunk-6TCOWMGY.js} +1 -1
- package/dist/{chunk-6LTFHJQG.js → chunk-A7CZH3GN.js} +3 -3
- package/dist/{chunk-ULLTNDRA.js → chunk-AEOLHSSQ.js} +3 -3
- package/dist/chunk-CCSJMTRN.js +15 -0
- package/dist/{chunk-R3QEDXFS.js → chunk-EX77FXTT.js} +1 -1
- package/dist/{chunk-ZUVLC7TM.js → chunk-FJIRS3FM.js} +1 -1
- package/dist/{chunk-Z37APKBV.js → chunk-FJO2ZL4Q.js} +4 -4
- package/dist/{chunk-WW6DAGGR.js → chunk-G6N3LMO2.js} +1 -1
- package/dist/{chunk-WL7BIR6O.js → chunk-IQJ36UTJ.js} +1 -1
- package/dist/{chunk-WZG2SZOT.js → chunk-JCQG2I2G.js} +1 -1
- package/dist/{chunk-MHBCEJQO.js → chunk-N5TQVEKE.js} +2 -2
- package/dist/{chunk-4UUMSLSL.js → chunk-P7C7SEJV.js} +4 -4
- package/dist/{chunk-VOVVTOEA.js → chunk-Q46YIQYW.js} +2 -2
- package/dist/{chunk-NHKQKKZU.js → chunk-QCFBIVIQ.js} +1 -1
- package/dist/{chunk-SLMFA3ZZ.js → chunk-RLTFJYDN.js} +2 -2
- package/dist/{chunk-GOJMFRBL.js → chunk-S3NFJO6L.js} +20 -14
- package/dist/{chunk-AMIKDMLP.js → chunk-YUBEOWII.js} +5 -5
- package/dist/{chunk-M5KBNOSJ.js → chunk-YUR5SX7F.js} +2 -2
- package/dist/{chunk-LU2MQXQQ.js → chunk-ZEUP4TUD.js} +2 -2
- package/dist/data.cjs +21 -15
- package/dist/data.js +7 -7
- package/dist/devtools.cjs +21 -15
- package/dist/devtools.js +5 -5
- package/dist/ecosystem.cjs +21 -15
- package/dist/ecosystem.js +8 -8
- package/dist/extras.cjs +32 -31
- package/dist/extras.js +22 -22
- package/dist/index.cjs +50 -20
- package/dist/index.d.cts +20 -7
- package/dist/index.d.ts +20 -7
- package/dist/index.js +17 -13
- package/dist/motion.cjs +1 -1
- package/dist/motion.js +3 -3
- package/dist/patterns.cjs +21 -15
- package/dist/patterns.js +6 -6
- package/dist/performance.cjs +21 -15
- package/dist/performance.js +6 -6
- package/dist/plugins.cjs +110 -103
- package/dist/plugins.js +95 -94
- package/dist/{ssr-6D67RAVB.js → ssr-2PPULEK2.js} +2 -2
- package/dist/ssr.cjs +21 -15
- package/dist/ssr.js +9 -9
- package/dist/testing.cjs +21 -15
- package/dist/testing.js +3 -3
- package/dist/ui.cjs +36 -34
- package/dist/ui.js +8 -8
- package/dist/widgets.cjs +21 -15
- package/dist/widgets.js +7 -7
- package/package.json +1 -1
- package/dist/chunk-YT6HQ6AM.js +0 -14
package/dist/ui.cjs
CHANGED
|
@@ -523,7 +523,7 @@ function forEachSubscriber(signal2, visit) {
|
|
|
523
523
|
|
|
524
524
|
// src/reactivity/track.ts
|
|
525
525
|
var _isDev3 = isDev();
|
|
526
|
-
var _runtimeVersion =
|
|
526
|
+
var _runtimeVersion = true ? "3.3.2" : "dev";
|
|
527
527
|
var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
|
|
528
528
|
function resolveReactiveApi() {
|
|
529
529
|
const g = globalThis;
|
|
@@ -834,23 +834,18 @@ function custom(fn, message) {
|
|
|
834
834
|
return (value) => fn(value) ? null : message;
|
|
835
835
|
}
|
|
836
836
|
function bindField(field, extras) {
|
|
837
|
+
const readControlValue = (target) => {
|
|
838
|
+
if ("checked" in target && target.type === "checkbox") {
|
|
839
|
+
return target.checked;
|
|
840
|
+
}
|
|
841
|
+
if (target instanceof HTMLSelectElement && target.multiple) {
|
|
842
|
+
return Array.from(target.selectedOptions, (o) => o.value);
|
|
843
|
+
}
|
|
844
|
+
return target.value;
|
|
845
|
+
};
|
|
837
846
|
const fieldOn = {
|
|
838
|
-
input: (e) =>
|
|
839
|
-
|
|
840
|
-
if (target.type === "checkbox") {
|
|
841
|
-
field.set(target.checked);
|
|
842
|
-
} else {
|
|
843
|
-
field.set(target.value);
|
|
844
|
-
}
|
|
845
|
-
},
|
|
846
|
-
change: (e) => {
|
|
847
|
-
const target = e.target;
|
|
848
|
-
if ("checked" in target && target.type === "checkbox") {
|
|
849
|
-
field.set(target.checked);
|
|
850
|
-
} else {
|
|
851
|
-
field.set(target.value);
|
|
852
|
-
}
|
|
853
|
-
},
|
|
847
|
+
input: (e) => field.set(readControlValue(e.target)),
|
|
848
|
+
change: (e) => field.set(readControlValue(e.target)),
|
|
854
849
|
blur: () => field.touch()
|
|
855
850
|
};
|
|
856
851
|
const { on: extraOn, value: _ignoreValue, ...restExtras } = extras ?? {};
|
|
@@ -1073,23 +1068,29 @@ function dispose(node) {
|
|
|
1073
1068
|
}
|
|
1074
1069
|
|
|
1075
1070
|
// src/core/ssr-context.ts
|
|
1076
|
-
var
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1071
|
+
var SSR_KEY = /* @__PURE__ */ Symbol.for("sibujs.ssr.v1");
|
|
1072
|
+
function detectSSRShared() {
|
|
1073
|
+
let detected = null;
|
|
1074
|
+
try {
|
|
1075
|
+
if (typeof process !== "undefined" && process.versions && process.versions.node) {
|
|
1076
|
+
let mod = null;
|
|
1077
|
+
const getBuiltin = process.getBuiltinModule;
|
|
1078
|
+
if (typeof getBuiltin === "function") {
|
|
1079
|
+
mod = getBuiltin("node:async_hooks");
|
|
1080
|
+
} else {
|
|
1081
|
+
const req = Function("return typeof require==='function'?require:null")();
|
|
1082
|
+
if (req) mod = req("node:async_hooks");
|
|
1083
|
+
}
|
|
1084
|
+
if (mod) detected = new mod.AsyncLocalStorage();
|
|
1086
1085
|
}
|
|
1087
|
-
|
|
1086
|
+
} catch {
|
|
1087
|
+
detected = null;
|
|
1088
1088
|
}
|
|
1089
|
-
|
|
1090
|
-
als = null;
|
|
1089
|
+
return { als: detected, fallbackStore: { ssr: false, suspenseIdCounter: 0 } };
|
|
1091
1090
|
}
|
|
1092
|
-
var
|
|
1091
|
+
var _shared = globalThis[SSR_KEY] ?? (globalThis[SSR_KEY] = detectSSRShared());
|
|
1092
|
+
var als = _shared.als;
|
|
1093
|
+
var fallbackStore = _shared.fallbackStore;
|
|
1093
1094
|
function getSSRStore() {
|
|
1094
1095
|
if (als) {
|
|
1095
1096
|
const s = als.getStore();
|
|
@@ -1649,10 +1650,11 @@ function announce(message, priority = "polite") {
|
|
|
1649
1650
|
}
|
|
1650
1651
|
|
|
1651
1652
|
// src/core/rendering/createId.ts
|
|
1652
|
-
var
|
|
1653
|
+
var COUNTER_KEY = /* @__PURE__ */ Symbol.for("sibujs.createId.v1");
|
|
1654
|
+
var _counter = globalThis[COUNTER_KEY] ?? (globalThis[COUNTER_KEY] = { n: 0 });
|
|
1653
1655
|
function createId(prefix = "sibu") {
|
|
1654
|
-
|
|
1655
|
-
return `${prefix}-${
|
|
1656
|
+
_counter.n++;
|
|
1657
|
+
return `${prefix}-${_counter.n}`;
|
|
1656
1658
|
}
|
|
1657
1659
|
|
|
1658
1660
|
// src/ui/a11yPrimitives.ts
|
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-62V653X2.js";
|
|
42
42
|
import {
|
|
43
43
|
RenderProp,
|
|
44
44
|
assertType,
|
|
@@ -57,21 +57,21 @@ import {
|
|
|
57
57
|
} from "./chunk-VJE6DDYM.js";
|
|
58
58
|
import {
|
|
59
59
|
createId
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
60
|
+
} from "./chunk-CCSJMTRN.js";
|
|
61
|
+
import "./chunk-QCFBIVIQ.js";
|
|
62
|
+
import "./chunk-G6N3LMO2.js";
|
|
63
63
|
import {
|
|
64
64
|
registerDisposer
|
|
65
65
|
} from "./chunk-5VGSK6D2.js";
|
|
66
66
|
import "./chunk-L3GAGWCC.js";
|
|
67
67
|
import {
|
|
68
68
|
effect
|
|
69
|
-
} from "./chunk-
|
|
70
|
-
import "./chunk-
|
|
69
|
+
} from "./chunk-N5TQVEKE.js";
|
|
70
|
+
import "./chunk-S3NFJO6L.js";
|
|
71
71
|
import {
|
|
72
72
|
signal
|
|
73
|
-
} from "./chunk-
|
|
74
|
-
import "./chunk-
|
|
73
|
+
} from "./chunk-JCQG2I2G.js";
|
|
74
|
+
import "./chunk-4NJEAPLI.js";
|
|
75
75
|
import "./chunk-COY6PUD2.js";
|
|
76
76
|
|
|
77
77
|
// src/ui/formAction.ts
|
package/dist/widgets.cjs
CHANGED
|
@@ -470,7 +470,7 @@ function forEachSubscriber(signal2, visit) {
|
|
|
470
470
|
|
|
471
471
|
// src/reactivity/track.ts
|
|
472
472
|
var _isDev3 = isDev();
|
|
473
|
-
var _runtimeVersion =
|
|
473
|
+
var _runtimeVersion = true ? "3.3.2" : "dev";
|
|
474
474
|
var REGISTRY_KEY = /* @__PURE__ */ Symbol.for("sibujs.reactive.v1");
|
|
475
475
|
function resolveReactiveApi() {
|
|
476
476
|
const g = globalThis;
|
|
@@ -606,23 +606,29 @@ function derived(getter, options) {
|
|
|
606
606
|
}
|
|
607
607
|
|
|
608
608
|
// src/core/ssr-context.ts
|
|
609
|
-
var
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
609
|
+
var SSR_KEY = /* @__PURE__ */ Symbol.for("sibujs.ssr.v1");
|
|
610
|
+
function detectSSRShared() {
|
|
611
|
+
let detected = null;
|
|
612
|
+
try {
|
|
613
|
+
if (typeof process !== "undefined" && process.versions && process.versions.node) {
|
|
614
|
+
let mod = null;
|
|
615
|
+
const getBuiltin = process.getBuiltinModule;
|
|
616
|
+
if (typeof getBuiltin === "function") {
|
|
617
|
+
mod = getBuiltin("node:async_hooks");
|
|
618
|
+
} else {
|
|
619
|
+
const req = Function("return typeof require==='function'?require:null")();
|
|
620
|
+
if (req) mod = req("node:async_hooks");
|
|
621
|
+
}
|
|
622
|
+
if (mod) detected = new mod.AsyncLocalStorage();
|
|
619
623
|
}
|
|
620
|
-
|
|
624
|
+
} catch {
|
|
625
|
+
detected = null;
|
|
621
626
|
}
|
|
622
|
-
|
|
623
|
-
als = null;
|
|
627
|
+
return { als: detected, fallbackStore: { ssr: false, suspenseIdCounter: 0 } };
|
|
624
628
|
}
|
|
625
|
-
var
|
|
629
|
+
var _shared = globalThis[SSR_KEY] ?? (globalThis[SSR_KEY] = detectSSRShared());
|
|
630
|
+
var als = _shared.als;
|
|
631
|
+
var fallbackStore = _shared.fallbackStore;
|
|
626
632
|
function getSSRStore() {
|
|
627
633
|
if (als) {
|
|
628
634
|
const s = als.getStore();
|
package/dist/widgets.js
CHANGED
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
select,
|
|
9
9
|
tabs,
|
|
10
10
|
tooltip
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-FJO2ZL4Q.js";
|
|
12
|
+
import "./chunk-RLTFJYDN.js";
|
|
13
|
+
import "./chunk-G6N3LMO2.js";
|
|
14
14
|
import "./chunk-L3GAGWCC.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-N5TQVEKE.js";
|
|
16
|
+
import "./chunk-S3NFJO6L.js";
|
|
17
|
+
import "./chunk-JCQG2I2G.js";
|
|
18
|
+
import "./chunk-4NJEAPLI.js";
|
|
19
19
|
import "./chunk-COY6PUD2.js";
|
|
20
20
|
export {
|
|
21
21
|
accordion,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sibujs",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"description": "A lightweight, function-based frontend framework that combines the best of React, Svelte, and Vue — with zero VDOM and maximum simplicity. Designed for developers who want fine-grained reactivity and full control without compilation or magic.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"frontend",
|
package/dist/chunk-YT6HQ6AM.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// src/core/rendering/createId.ts
|
|
2
|
-
var idCounter = 0;
|
|
3
|
-
function createId(prefix = "sibu") {
|
|
4
|
-
idCounter++;
|
|
5
|
-
return `${prefix}-${idCounter}`;
|
|
6
|
-
}
|
|
7
|
-
function __resetIdCounter() {
|
|
8
|
-
idCounter = 0;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export {
|
|
12
|
-
createId,
|
|
13
|
-
__resetIdCounter
|
|
14
|
-
};
|