sibujs 1.3.0 → 1.4.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/build.cjs +1 -93
- package/dist/build.js +2 -82
- package/dist/cdn.global.js +7 -7
- package/dist/chunk-CNZ35WI2.js +178 -0
- package/dist/chunk-M4NLBH4I.js +725 -0
- package/dist/chunk-UHNL42EF.js +2730 -0
- package/dist/chunk-ZWKZCBO6.js +317 -0
- package/dist/contracts-xo5ckdRP.d.cts +240 -0
- package/dist/contracts-xo5ckdRP.d.ts +240 -0
- package/dist/devtools.d.cts +1 -1
- package/dist/devtools.d.ts +1 -1
- package/dist/extras.cjs +1 -23
- package/dist/extras.d.cts +2 -2
- package/dist/extras.d.ts +2 -2
- package/dist/extras.js +3 -11
- package/dist/index.cjs +0 -14
- package/dist/index.d.cts +2 -24
- package/dist/index.d.ts +2 -24
- package/dist/index.js +1 -5
- package/dist/patterns.cjs +0 -22
- package/dist/patterns.d.cts +2 -50
- package/dist/patterns.d.ts +2 -50
- package/dist/patterns.js +2 -10
- package/dist/plugins.cjs +1 -1
- package/dist/plugins.js +1 -1
- package/dist/ui.cjs +0 -5
- package/dist/ui.d.cts +1 -1
- package/dist/ui.d.ts +1 -1
- package/dist/ui.js +1 -3
- package/package.json +1 -1
package/dist/patterns.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ComponentProps, P as PropDef, a as PropSchema, R as RenderProp, V as Validator, b as assertType, c as
|
|
1
|
+
export { C as ComponentProps, P as PropDef, a as PropSchema, R as RenderProp, V as Validator, 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-xo5ckdRP.cjs';
|
|
2
2
|
|
|
3
3
|
interface MachineConfig<S extends string, E extends string, C extends Record<string, unknown> = Record<string, unknown>> {
|
|
4
4
|
initial: S;
|
|
@@ -151,52 +151,4 @@ declare function globalStore<S extends Record<string, unknown>, A extends Record
|
|
|
151
151
|
middleware?: Middleware<S>[];
|
|
152
152
|
}): GlobalStore<S, A>;
|
|
153
153
|
|
|
154
|
-
|
|
155
|
-
* SolidJS-style reactive primitives — standalone APIs that don't require
|
|
156
|
-
* being inside a component. These are thin wrappers around the signal system.
|
|
157
|
-
*/
|
|
158
|
-
/**
|
|
159
|
-
* Creates a reactive signal. Equivalent to signal but with SolidJS naming.
|
|
160
|
-
*
|
|
161
|
-
* @param value Initial value
|
|
162
|
-
* @returns Tuple [getter, setter]
|
|
163
|
-
*
|
|
164
|
-
* @example
|
|
165
|
-
* ```ts
|
|
166
|
-
* const [count, setCount] = createSignal(0);
|
|
167
|
-
* console.log(count()); // 0
|
|
168
|
-
* setCount(5);
|
|
169
|
-
* ```
|
|
170
|
-
*/
|
|
171
|
-
declare function createSignal<T>(value: T): [() => T, (next: T | ((prev: T) => T)) => void];
|
|
172
|
-
/**
|
|
173
|
-
* Creates a derived/computed reactive value. Equivalent to derived.
|
|
174
|
-
*
|
|
175
|
-
* @param fn Computation function that reads other signals
|
|
176
|
-
* @returns Getter for the computed value
|
|
177
|
-
*
|
|
178
|
-
* @example
|
|
179
|
-
* ```ts
|
|
180
|
-
* const [count] = createSignal(5);
|
|
181
|
-
* const doubled = createMemo(() => count() * 2);
|
|
182
|
-
* console.log(doubled()); // 10
|
|
183
|
-
* ```
|
|
184
|
-
*/
|
|
185
|
-
declare function createMemo<T>(fn: () => T): () => T;
|
|
186
|
-
/**
|
|
187
|
-
* Creates a reactive side effect. Equivalent to effect.
|
|
188
|
-
*
|
|
189
|
-
* @param fn Effect function that reads reactive signals
|
|
190
|
-
* @returns Cleanup/teardown function
|
|
191
|
-
*
|
|
192
|
-
* @example
|
|
193
|
-
* ```ts
|
|
194
|
-
* const [count] = createSignal(0);
|
|
195
|
-
* const cleanup = createEffect(() => {
|
|
196
|
-
* console.log("Count is:", count());
|
|
197
|
-
* });
|
|
198
|
-
* ```
|
|
199
|
-
*/
|
|
200
|
-
declare function createEffect(fn: () => void): () => void;
|
|
201
|
-
|
|
202
|
-
export { type GlobalStore, type MachineConfig, type MachineReturn, type Middleware, type OptimisticAction, type PersistOptions, type Selector, type TimeTravelReturn, createEffect, createMemo, createSignal, globalStore, machine, optimistic, optimisticList, persisted, timeline };
|
|
154
|
+
export { type GlobalStore, type MachineConfig, type MachineReturn, type Middleware, type OptimisticAction, type PersistOptions, type Selector, type TimeTravelReturn, globalStore, machine, optimistic, optimisticList, persisted, timeline };
|
package/dist/patterns.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ComponentProps, P as PropDef, a as PropSchema, R as RenderProp, V as Validator, b as assertType, c as
|
|
1
|
+
export { C as ComponentProps, P as PropDef, a as PropSchema, R as RenderProp, V as Validator, 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-xo5ckdRP.js';
|
|
2
2
|
|
|
3
3
|
interface MachineConfig<S extends string, E extends string, C extends Record<string, unknown> = Record<string, unknown>> {
|
|
4
4
|
initial: S;
|
|
@@ -151,52 +151,4 @@ declare function globalStore<S extends Record<string, unknown>, A extends Record
|
|
|
151
151
|
middleware?: Middleware<S>[];
|
|
152
152
|
}): GlobalStore<S, A>;
|
|
153
153
|
|
|
154
|
-
|
|
155
|
-
* SolidJS-style reactive primitives — standalone APIs that don't require
|
|
156
|
-
* being inside a component. These are thin wrappers around the signal system.
|
|
157
|
-
*/
|
|
158
|
-
/**
|
|
159
|
-
* Creates a reactive signal. Equivalent to signal but with SolidJS naming.
|
|
160
|
-
*
|
|
161
|
-
* @param value Initial value
|
|
162
|
-
* @returns Tuple [getter, setter]
|
|
163
|
-
*
|
|
164
|
-
* @example
|
|
165
|
-
* ```ts
|
|
166
|
-
* const [count, setCount] = createSignal(0);
|
|
167
|
-
* console.log(count()); // 0
|
|
168
|
-
* setCount(5);
|
|
169
|
-
* ```
|
|
170
|
-
*/
|
|
171
|
-
declare function createSignal<T>(value: T): [() => T, (next: T | ((prev: T) => T)) => void];
|
|
172
|
-
/**
|
|
173
|
-
* Creates a derived/computed reactive value. Equivalent to derived.
|
|
174
|
-
*
|
|
175
|
-
* @param fn Computation function that reads other signals
|
|
176
|
-
* @returns Getter for the computed value
|
|
177
|
-
*
|
|
178
|
-
* @example
|
|
179
|
-
* ```ts
|
|
180
|
-
* const [count] = createSignal(5);
|
|
181
|
-
* const doubled = createMemo(() => count() * 2);
|
|
182
|
-
* console.log(doubled()); // 10
|
|
183
|
-
* ```
|
|
184
|
-
*/
|
|
185
|
-
declare function createMemo<T>(fn: () => T): () => T;
|
|
186
|
-
/**
|
|
187
|
-
* Creates a reactive side effect. Equivalent to effect.
|
|
188
|
-
*
|
|
189
|
-
* @param fn Effect function that reads reactive signals
|
|
190
|
-
* @returns Cleanup/teardown function
|
|
191
|
-
*
|
|
192
|
-
* @example
|
|
193
|
-
* ```ts
|
|
194
|
-
* const [count] = createSignal(0);
|
|
195
|
-
* const cleanup = createEffect(() => {
|
|
196
|
-
* console.log("Count is:", count());
|
|
197
|
-
* });
|
|
198
|
-
* ```
|
|
199
|
-
*/
|
|
200
|
-
declare function createEffect(fn: () => void): () => void;
|
|
201
|
-
|
|
202
|
-
export { type GlobalStore, type MachineConfig, type MachineReturn, type Middleware, type OptimisticAction, type PersistOptions, type Selector, type TimeTravelReturn, createEffect, createMemo, createSignal, globalStore, machine, optimistic, optimisticList, persisted, timeline };
|
|
154
|
+
export { type GlobalStore, type MachineConfig, type MachineReturn, type Middleware, type OptimisticAction, type PersistOptions, type Selector, type TimeTravelReturn, globalStore, machine, optimistic, optimisticList, persisted, timeline };
|
package/dist/patterns.js
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
createEffect,
|
|
3
|
-
createMemo,
|
|
4
|
-
createSignal,
|
|
5
2
|
globalStore,
|
|
6
3
|
machine,
|
|
7
4
|
optimistic,
|
|
8
5
|
optimisticList,
|
|
9
6
|
persisted,
|
|
10
7
|
timeline
|
|
11
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZWKZCBO6.js";
|
|
12
9
|
import {
|
|
13
10
|
RenderProp,
|
|
14
11
|
assertType,
|
|
15
|
-
composable,
|
|
16
12
|
compose,
|
|
17
13
|
createGuard,
|
|
18
14
|
createSlots,
|
|
@@ -25,7 +21,7 @@ import {
|
|
|
25
21
|
withDefaults,
|
|
26
22
|
withProps,
|
|
27
23
|
withWrapper
|
|
28
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CNZ35WI2.js";
|
|
29
25
|
import "./chunk-NEKUBFPT.js";
|
|
30
26
|
import "./chunk-CHF5OHIA.js";
|
|
31
27
|
import "./chunk-EUZND3CB.js";
|
|
@@ -35,12 +31,8 @@ import "./chunk-5X6PP2UK.js";
|
|
|
35
31
|
export {
|
|
36
32
|
RenderProp,
|
|
37
33
|
assertType,
|
|
38
|
-
composable,
|
|
39
34
|
compose,
|
|
40
|
-
createEffect,
|
|
41
35
|
createGuard,
|
|
42
|
-
createMemo,
|
|
43
|
-
createSignal,
|
|
44
36
|
createSlots,
|
|
45
37
|
defineComponent,
|
|
46
38
|
defineSlottedComponent,
|
package/dist/plugins.cjs
CHANGED
|
@@ -3428,7 +3428,7 @@ var bundlerMetadata = {
|
|
|
3428
3428
|
sideEffects: false,
|
|
3429
3429
|
modules: {
|
|
3430
3430
|
core: ["html", "mount", "each", "slots", "fragment", "catch", "portal", "directives"],
|
|
3431
|
-
hooks: ["signal", "effect", "derived", "watch", "store", "ref", "
|
|
3431
|
+
hooks: ["signal", "effect", "derived", "watch", "store", "ref", "array", "deepSignal"],
|
|
3432
3432
|
plugins: ["router", "i18n"],
|
|
3433
3433
|
components: ["ErrorBoundary", "Loading"],
|
|
3434
3434
|
ssr: ["ssr"],
|
package/dist/plugins.js
CHANGED
package/dist/ui.cjs
CHANGED
|
@@ -30,7 +30,6 @@ __export(ui_exports, {
|
|
|
30
30
|
bindBoolAttr: () => bindBoolAttr,
|
|
31
31
|
bindData: () => bindData,
|
|
32
32
|
bindField: () => bindField,
|
|
33
|
-
composable: () => composable,
|
|
34
33
|
compose: () => compose,
|
|
35
34
|
createDialogAria: () => createDialogAria,
|
|
36
35
|
createFocusManager: () => createFocusManager,
|
|
@@ -1758,9 +1757,6 @@ function svgElement(tag, props = {}, ...nodes) {
|
|
|
1758
1757
|
}
|
|
1759
1758
|
|
|
1760
1759
|
// src/patterns/composable.ts
|
|
1761
|
-
function composable(setup) {
|
|
1762
|
-
return setup;
|
|
1763
|
-
}
|
|
1764
1760
|
function RenderProp(props) {
|
|
1765
1761
|
return props.render(props.data());
|
|
1766
1762
|
}
|
|
@@ -1933,7 +1929,6 @@ function createGuard(validator) {
|
|
|
1933
1929
|
bindBoolAttr,
|
|
1934
1930
|
bindData,
|
|
1935
1931
|
bindField,
|
|
1936
|
-
composable,
|
|
1937
1932
|
compose,
|
|
1938
1933
|
createDialogAria,
|
|
1939
1934
|
createFocusManager,
|
package/dist/ui.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { B as BoundFieldProps, C as CustomElementOptions, F as FieldConfig, a as FocusTrap, b as FormConfig, c as FormField, d as FormReturn, I as IntersectionResult, M as MaskOptions, T as Toast, e as ToastInstance, V as ValidatorFn, f as VirtualList, g as VirtualListProps, h as announce, i as aria, j as bindAttrs, k as bindBoolAttr, l as bindData, m as bindField, n as creditCardMask, o as custom, p as dateMask, q as defineElement, r as dialog, s as email, t as eventBus, u as focus, v as form, w as hotkey, x as infiniteScroll, y as inputMask, z as intersection, A as lazyLoad, D as matchesPattern, E as max, G as maxLength, H as min, J as minLength, K as pagination, L as phoneMask, N as removeScopedStyle, O as required, P as scopedStyle, Q as ssnMask, R as svgElement, S as timeMask, U as toast, W as withScopedStyle, X as zipMask } from './customElement-D2DJp_xn.cjs';
|
|
2
|
-
export { C as ComponentProps, P as PropDef, a as PropSchema, R as RenderProp, V as Validator, b as assertType, c as
|
|
2
|
+
export { C as ComponentProps, P as PropDef, a as PropSchema, R as RenderProp, V as Validator, 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-xo5ckdRP.cjs';
|
|
3
3
|
|
|
4
4
|
interface FormActionHandle<TArgs extends unknown[], TResult> {
|
|
5
5
|
/** Invoke the action. Rejections become `error()`, resolutions `result()`. */
|
package/dist/ui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { B as BoundFieldProps, C as CustomElementOptions, F as FieldConfig, a as FocusTrap, b as FormConfig, c as FormField, d as FormReturn, I as IntersectionResult, M as MaskOptions, T as Toast, e as ToastInstance, V as ValidatorFn, f as VirtualList, g as VirtualListProps, h as announce, i as aria, j as bindAttrs, k as bindBoolAttr, l as bindData, m as bindField, n as creditCardMask, o as custom, p as dateMask, q as defineElement, r as dialog, s as email, t as eventBus, u as focus, v as form, w as hotkey, x as infiniteScroll, y as inputMask, z as intersection, A as lazyLoad, D as matchesPattern, E as max, G as maxLength, H as min, J as minLength, K as pagination, L as phoneMask, N as removeScopedStyle, O as required, P as scopedStyle, Q as ssnMask, R as svgElement, S as timeMask, U as toast, W as withScopedStyle, X as zipMask } from './customElement-D2DJp_xn.js';
|
|
2
|
-
export { C as ComponentProps, P as PropDef, a as PropSchema, R as RenderProp, V as Validator, b as assertType, c as
|
|
2
|
+
export { C as ComponentProps, P as PropDef, a as PropSchema, R as RenderProp, V as Validator, 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-xo5ckdRP.js';
|
|
3
3
|
|
|
4
4
|
interface FormActionHandle<TArgs extends unknown[], TResult> {
|
|
5
5
|
/** Invoke the action. Rejections become `error()`, resolutions `result()`. */
|
package/dist/ui.js
CHANGED
|
@@ -41,7 +41,6 @@ import {
|
|
|
41
41
|
import {
|
|
42
42
|
RenderProp,
|
|
43
43
|
assertType,
|
|
44
|
-
composable,
|
|
45
44
|
compose,
|
|
46
45
|
createGuard,
|
|
47
46
|
createSlots,
|
|
@@ -54,7 +53,7 @@ import {
|
|
|
54
53
|
withDefaults,
|
|
55
54
|
withProps,
|
|
56
55
|
withWrapper
|
|
57
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-CNZ35WI2.js";
|
|
58
57
|
import {
|
|
59
58
|
createId
|
|
60
59
|
} from "./chunk-YT6HQ6AM.js";
|
|
@@ -420,7 +419,6 @@ export {
|
|
|
420
419
|
bindBoolAttr,
|
|
421
420
|
bindData,
|
|
422
421
|
bindField,
|
|
423
|
-
composable,
|
|
424
422
|
compose,
|
|
425
423
|
createDialogAria,
|
|
426
424
|
createFocusManager,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sibujs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
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",
|