flexium 0.10.7 → 0.12.6
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 +10 -10
- package/dist/canvas.d.cts +83 -23
- package/dist/canvas.d.ts +83 -23
- package/dist/canvas.js +1 -1
- package/dist/canvas.js.map +1 -1
- package/dist/canvas.mjs +1 -1
- package/dist/canvas.mjs.map +1 -1
- package/dist/chunk-44RZHCII.mjs +2 -0
- package/dist/chunk-44RZHCII.mjs.map +1 -0
- package/dist/chunk-7BXR4ZFD.js +2 -0
- package/dist/chunk-7BXR4ZFD.js.map +1 -0
- package/dist/chunk-7DXFHPWZ.mjs +2 -0
- package/dist/chunk-7DXFHPWZ.mjs.map +1 -0
- package/dist/chunk-ALTO2MGI.js +2 -0
- package/dist/chunk-ALTO2MGI.js.map +1 -0
- package/dist/chunk-C452JE6C.js +2 -0
- package/dist/chunk-C452JE6C.js.map +1 -0
- package/dist/chunk-CPJRQL2C.mjs +2 -0
- package/dist/chunk-CPJRQL2C.mjs.map +1 -0
- package/dist/chunk-EJ7Z5OMU.mjs +2 -0
- package/dist/chunk-EJ7Z5OMU.mjs.map +1 -0
- package/dist/chunk-ENWGYQNU.js +2 -0
- package/dist/chunk-ENWGYQNU.js.map +1 -0
- package/dist/chunk-EXLNKYSH.js +2 -0
- package/dist/chunk-EXLNKYSH.js.map +1 -0
- package/dist/chunk-LUREDEUB.mjs +2 -0
- package/dist/chunk-LUREDEUB.mjs.map +1 -0
- package/dist/chunk-LUW7DIEW.js +2 -0
- package/dist/chunk-LUW7DIEW.js.map +1 -0
- package/dist/chunk-ZCO4NIGC.mjs +2 -0
- package/dist/chunk-ZCO4NIGC.mjs.map +1 -0
- package/dist/core.d.cts +41 -2
- package/dist/core.d.ts +41 -2
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/dom.d.cts +10 -33
- package/dist/dom.d.ts +10 -33
- package/dist/dom.js +1 -1
- package/dist/dom.js.map +1 -1
- package/dist/dom.mjs +1 -1
- package/dist/dom.mjs.map +1 -1
- package/dist/index.d.cts +1 -24
- package/dist/index.d.ts +1 -24
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/interactive.d.cts +65 -148
- package/dist/interactive.d.ts +65 -148
- package/dist/interactive.js +1 -1
- package/dist/interactive.js.map +1 -1
- package/dist/interactive.mjs +1 -1
- package/dist/interactive.mjs.map +1 -1
- package/dist/jsx-dev-runtime.d.cts +6 -2
- package/dist/jsx-dev-runtime.d.ts +6 -2
- package/dist/jsx-dev-runtime.js +1 -1
- package/dist/jsx-dev-runtime.js.map +1 -1
- package/dist/jsx-dev-runtime.mjs +1 -1
- package/dist/jsx-dev-runtime.mjs.map +1 -1
- package/dist/jsx-runtime.d.cts +6 -68
- package/dist/jsx-runtime.d.ts +6 -68
- package/dist/jsx-runtime.js +1 -1
- package/dist/jsx-runtime.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/router.d.cts +48 -15
- package/dist/router.d.ts +48 -15
- package/dist/router.js +1 -1
- package/dist/router.js.map +1 -1
- package/dist/router.mjs +1 -1
- package/dist/router.mjs.map +1 -1
- package/package.json +13 -53
- package/dist/DrawText-CVAKQ5wZ.d.cts +0 -309
- package/dist/DrawText-Dlh1L1Ar.d.ts +0 -309
- package/dist/Motion-BrOAJzgH.d.cts +0 -87
- package/dist/Motion-BrOAJzgH.d.ts +0 -87
- package/dist/advanced.d.cts +0 -32
- package/dist/advanced.d.ts +0 -32
- package/dist/advanced.js +0 -2
- package/dist/advanced.js.map +0 -1
- package/dist/advanced.mjs +0 -2
- package/dist/advanced.mjs.map +0 -1
- package/dist/chunk-5ICRQIS2.js +0 -3
- package/dist/chunk-5ICRQIS2.js.map +0 -1
- package/dist/chunk-5K55ASOD.mjs +0 -3
- package/dist/chunk-5K55ASOD.mjs.map +0 -1
- package/dist/chunk-AZEHBSBG.js +0 -3
- package/dist/chunk-AZEHBSBG.js.map +0 -1
- package/dist/chunk-BBNYMXE7.mjs +0 -2
- package/dist/chunk-BBNYMXE7.mjs.map +0 -1
- package/dist/chunk-BYHIHYRR.mjs +0 -2
- package/dist/chunk-BYHIHYRR.mjs.map +0 -1
- package/dist/chunk-DZ7L3SHV.js +0 -2
- package/dist/chunk-DZ7L3SHV.js.map +0 -1
- package/dist/chunk-ECYYIQEX.mjs +0 -3
- package/dist/chunk-ECYYIQEX.mjs.map +0 -1
- package/dist/chunk-FDMJHFN7.mjs +0 -2
- package/dist/chunk-FDMJHFN7.mjs.map +0 -1
- package/dist/chunk-GKJQEOP7.mjs +0 -2
- package/dist/chunk-GKJQEOP7.mjs.map +0 -1
- package/dist/chunk-GYDP6MFV.js +0 -3
- package/dist/chunk-GYDP6MFV.js.map +0 -1
- package/dist/chunk-HB5VPQTB.mjs +0 -2
- package/dist/chunk-HB5VPQTB.mjs.map +0 -1
- package/dist/chunk-KNF5ERPK.mjs +0 -2
- package/dist/chunk-KNF5ERPK.mjs.map +0 -1
- package/dist/chunk-OPAAGNBO.mjs +0 -2
- package/dist/chunk-OPAAGNBO.mjs.map +0 -1
- package/dist/chunk-OPAQ4R4M.mjs +0 -2
- package/dist/chunk-OPAQ4R4M.mjs.map +0 -1
- package/dist/chunk-Q7IWDVJ4.js +0 -2
- package/dist/chunk-Q7IWDVJ4.js.map +0 -1
- package/dist/chunk-QPCIDSMM.js +0 -2
- package/dist/chunk-QPCIDSMM.js.map +0 -1
- package/dist/chunk-QZIX4FXS.mjs +0 -2
- package/dist/chunk-QZIX4FXS.mjs.map +0 -1
- package/dist/chunk-RMN5IPS5.js +0 -2
- package/dist/chunk-RMN5IPS5.js.map +0 -1
- package/dist/chunk-U6C6VDVZ.js +0 -2
- package/dist/chunk-U6C6VDVZ.js.map +0 -1
- package/dist/chunk-WQFQO5LK.js +0 -2
- package/dist/chunk-WQFQO5LK.js.map +0 -1
- package/dist/chunk-WVEJT7HD.mjs +0 -2
- package/dist/chunk-WVEJT7HD.mjs.map +0 -1
- package/dist/chunk-WWEWRI6S.js +0 -2
- package/dist/chunk-WWEWRI6S.js.map +0 -1
- package/dist/chunk-XJHWMHKF.js +0 -2
- package/dist/chunk-XJHWMHKF.js.map +0 -1
- package/dist/chunk-Y6KKAHLS.mjs +0 -3
- package/dist/chunk-Y6KKAHLS.mjs.map +0 -1
- package/dist/chunk-YDZ37ZZ4.js +0 -2
- package/dist/chunk-YDZ37ZZ4.js.map +0 -1
- package/dist/chunk-YPVRQKMW.js +0 -2
- package/dist/chunk-YPVRQKMW.js.map +0 -1
- package/dist/components-BMbqsbMY.d.cts +0 -126
- package/dist/components-C83mBQXW.d.ts +0 -126
- package/dist/core-CxHP8991.d.cts +0 -32
- package/dist/core-D0ggvjX3.d.ts +0 -32
- package/dist/effect-554ONNZR.js +0 -2
- package/dist/effect-554ONNZR.js.map +0 -1
- package/dist/effect-T2GVIS3T.mjs +0 -2
- package/dist/effect-T2GVIS3T.mjs.map +0 -1
- package/dist/owner-QS9tPwPr.d.cts +0 -27
- package/dist/owner-QS9tPwPr.d.ts +0 -27
- package/dist/portal-BK_0Z0hE.d.cts +0 -206
- package/dist/portal-CbguxtuQ.d.ts +0 -206
- package/dist/primitives/layout.d.cts +0 -295
- package/dist/primitives/layout.d.ts +0 -295
- package/dist/primitives/layout.js +0 -2
- package/dist/primitives/layout.js.map +0 -1
- package/dist/primitives/layout.mjs +0 -2
- package/dist/primitives/layout.mjs.map +0 -1
- package/dist/primitives/motion.d.cts +0 -230
- package/dist/primitives/motion.d.ts +0 -230
- package/dist/primitives/motion.js +0 -2
- package/dist/primitives/motion.js.map +0 -1
- package/dist/primitives/motion.mjs +0 -2
- package/dist/primitives/motion.mjs.map +0 -1
- package/dist/primitives/ui.d.cts +0 -81
- package/dist/primitives/ui.d.ts +0 -81
- package/dist/primitives/ui.js +0 -2
- package/dist/primitives/ui.js.map +0 -1
- package/dist/primitives/ui.mjs +0 -2
- package/dist/primitives/ui.mjs.map +0 -1
- package/dist/primitives.d.cts +0 -93
- package/dist/primitives.d.ts +0 -93
- package/dist/primitives.js +0 -2
- package/dist/primitives.js.map +0 -1
- package/dist/primitives.mjs +0 -2
- package/dist/primitives.mjs.map +0 -1
- package/dist/renderer-DSLb-FGg.d.cts +0 -135
- package/dist/renderer-DSLb-FGg.d.ts +0 -135
- package/dist/server.d.cts +0 -3
- package/dist/server.d.ts +0 -3
- package/dist/server.js +0 -2
- package/dist/server.js.map +0 -1
- package/dist/server.mjs +0 -2
- package/dist/server.mjs.map +0 -1
- package/dist/state-DitsMyev.d.cts +0 -96
- package/dist/state-DitsMyev.d.ts +0 -96
- package/dist/state-RYKSC35A.mjs +0 -2
- package/dist/state-RYKSC35A.mjs.map +0 -1
- package/dist/state-XUXPMCFJ.js +0 -2
- package/dist/state-XUXPMCFJ.js.map +0 -1
- package/dist/sync-Z4QqUDjF.d.cts +0 -25
- package/dist/sync-Z4QqUDjF.d.ts +0 -25
- package/dist/test-exports.d.cts +0 -68
- package/dist/test-exports.d.ts +0 -68
- package/dist/test-exports.js +0 -2
- package/dist/test-exports.js.map +0 -1
- package/dist/test-exports.mjs +0 -2
- package/dist/test-exports.mjs.map +0 -1
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Global State Registry & Metadata
|
|
3
|
-
*
|
|
4
|
-
* Manages global state registry, namespaces, metadata, and auto-cleanup
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
interface AutoCleanupConfig {
|
|
8
|
-
enabled: boolean;
|
|
9
|
-
maxIdleTime: number;
|
|
10
|
-
checkInterval: number;
|
|
11
|
-
minAccessCount: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Main State API
|
|
16
|
-
*
|
|
17
|
-
* Unified state() function that handles all state patterns:
|
|
18
|
-
* - Local state (like useState)
|
|
19
|
-
* - Global state (like Recoil atoms)
|
|
20
|
-
* - Async resources (like React Query)
|
|
21
|
-
* - Computed values (like selectors)
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Main State API Types
|
|
26
|
-
*/
|
|
27
|
-
type StateKey = string | readonly (string | number | boolean | null | undefined | object)[];
|
|
28
|
-
type StateAction<T> = (newValue: T | ((prev: T) => T)) => void;
|
|
29
|
-
type StateValue<T> = T & (() => T) & {
|
|
30
|
-
peek(): T;
|
|
31
|
-
};
|
|
32
|
-
type AsyncStatus = 'idle' | 'loading' | 'success' | 'error';
|
|
33
|
-
interface StateOptions<P = unknown> {
|
|
34
|
-
key?: StateKey;
|
|
35
|
-
params?: P;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a value is a state value (Proxy-based)
|
|
39
|
-
*/
|
|
40
|
-
declare function isStateValue(value: unknown): value is StateValue<unknown>;
|
|
41
|
-
/**
|
|
42
|
-
* Check if a value is a signal (alias for isStateValue for compatibility)
|
|
43
|
-
* @deprecated Use isStateValue instead
|
|
44
|
-
*/
|
|
45
|
-
declare function isSignal(value: unknown): value is StateValue<unknown>;
|
|
46
|
-
declare function equals<T>(stateValue: StateValue<T>, value: T): boolean;
|
|
47
|
-
declare function isTruthy<T>(stateValue: StateValue<T>): boolean;
|
|
48
|
-
interface StateStats {
|
|
49
|
-
total: number;
|
|
50
|
-
byNamespace: Record<string, number>;
|
|
51
|
-
topNamespaces: Array<{
|
|
52
|
-
namespace: string;
|
|
53
|
-
count: number;
|
|
54
|
-
}>;
|
|
55
|
-
averageAccessCount: number;
|
|
56
|
-
}
|
|
57
|
-
interface NamespaceStats {
|
|
58
|
-
namespace: string;
|
|
59
|
-
count: number;
|
|
60
|
-
totalAccessCount: number;
|
|
61
|
-
averageAccessCount: number;
|
|
62
|
-
states: Array<{
|
|
63
|
-
key: string;
|
|
64
|
-
accessCount: number;
|
|
65
|
-
createdAt: number;
|
|
66
|
-
}>;
|
|
67
|
-
}
|
|
68
|
-
interface StateFunction {
|
|
69
|
-
<T>(initialValue: T, options?: StateOptions): [StateValue<T>, StateAction<T>];
|
|
70
|
-
<T, P>(computeFn: (params: P) => T, options: StateOptions<P> & {
|
|
71
|
-
params: P;
|
|
72
|
-
}): [StateValue<T>];
|
|
73
|
-
<T>(computeFn: () => T, options?: StateOptions): [StateValue<T>];
|
|
74
|
-
<T, P>(fetcher: (params: P) => Promise<T>, options: StateOptions<P> & {
|
|
75
|
-
params: P;
|
|
76
|
-
}): [StateValue<T | undefined>, () => void, StateValue<AsyncStatus>, StateValue<unknown>];
|
|
77
|
-
<T>(fetcher: () => Promise<T>, options?: StateOptions): [StateValue<T | undefined>, () => void, StateValue<AsyncStatus>, StateValue<unknown>];
|
|
78
|
-
delete: (key: StateKey) => boolean;
|
|
79
|
-
clear: () => void;
|
|
80
|
-
clearByPrefix: (prefix: StateKey) => number;
|
|
81
|
-
has: (key: StateKey) => boolean;
|
|
82
|
-
readonly size: number;
|
|
83
|
-
getStats: () => StateStats;
|
|
84
|
-
getNamespaceStats: (prefix: StateKey) => NamespaceStats;
|
|
85
|
-
enableAutoCleanup: (config?: Partial<AutoCleanupConfig>) => void;
|
|
86
|
-
disableAutoCleanup: () => void;
|
|
87
|
-
readonly isAutoCleanupEnabled: boolean;
|
|
88
|
-
}
|
|
89
|
-
declare const state: StateFunction;
|
|
90
|
-
|
|
91
|
-
interface RefObject<T> {
|
|
92
|
-
current: T | null;
|
|
93
|
-
}
|
|
94
|
-
declare function ref<T>(initial: T | null): RefObject<T>;
|
|
95
|
-
|
|
96
|
-
export { type AsyncStatus as A, type RefObject as R, type StateValue as S, isTruthy as a, isStateValue as b, type StateAction as c, type StateKey as d, equals as e, type StateOptions as f, isSignal as i, ref as r, state as s };
|
package/dist/state-DitsMyev.d.ts
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Global State Registry & Metadata
|
|
3
|
-
*
|
|
4
|
-
* Manages global state registry, namespaces, metadata, and auto-cleanup
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
interface AutoCleanupConfig {
|
|
8
|
-
enabled: boolean;
|
|
9
|
-
maxIdleTime: number;
|
|
10
|
-
checkInterval: number;
|
|
11
|
-
minAccessCount: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Main State API
|
|
16
|
-
*
|
|
17
|
-
* Unified state() function that handles all state patterns:
|
|
18
|
-
* - Local state (like useState)
|
|
19
|
-
* - Global state (like Recoil atoms)
|
|
20
|
-
* - Async resources (like React Query)
|
|
21
|
-
* - Computed values (like selectors)
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Main State API Types
|
|
26
|
-
*/
|
|
27
|
-
type StateKey = string | readonly (string | number | boolean | null | undefined | object)[];
|
|
28
|
-
type StateAction<T> = (newValue: T | ((prev: T) => T)) => void;
|
|
29
|
-
type StateValue<T> = T & (() => T) & {
|
|
30
|
-
peek(): T;
|
|
31
|
-
};
|
|
32
|
-
type AsyncStatus = 'idle' | 'loading' | 'success' | 'error';
|
|
33
|
-
interface StateOptions<P = unknown> {
|
|
34
|
-
key?: StateKey;
|
|
35
|
-
params?: P;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a value is a state value (Proxy-based)
|
|
39
|
-
*/
|
|
40
|
-
declare function isStateValue(value: unknown): value is StateValue<unknown>;
|
|
41
|
-
/**
|
|
42
|
-
* Check if a value is a signal (alias for isStateValue for compatibility)
|
|
43
|
-
* @deprecated Use isStateValue instead
|
|
44
|
-
*/
|
|
45
|
-
declare function isSignal(value: unknown): value is StateValue<unknown>;
|
|
46
|
-
declare function equals<T>(stateValue: StateValue<T>, value: T): boolean;
|
|
47
|
-
declare function isTruthy<T>(stateValue: StateValue<T>): boolean;
|
|
48
|
-
interface StateStats {
|
|
49
|
-
total: number;
|
|
50
|
-
byNamespace: Record<string, number>;
|
|
51
|
-
topNamespaces: Array<{
|
|
52
|
-
namespace: string;
|
|
53
|
-
count: number;
|
|
54
|
-
}>;
|
|
55
|
-
averageAccessCount: number;
|
|
56
|
-
}
|
|
57
|
-
interface NamespaceStats {
|
|
58
|
-
namespace: string;
|
|
59
|
-
count: number;
|
|
60
|
-
totalAccessCount: number;
|
|
61
|
-
averageAccessCount: number;
|
|
62
|
-
states: Array<{
|
|
63
|
-
key: string;
|
|
64
|
-
accessCount: number;
|
|
65
|
-
createdAt: number;
|
|
66
|
-
}>;
|
|
67
|
-
}
|
|
68
|
-
interface StateFunction {
|
|
69
|
-
<T>(initialValue: T, options?: StateOptions): [StateValue<T>, StateAction<T>];
|
|
70
|
-
<T, P>(computeFn: (params: P) => T, options: StateOptions<P> & {
|
|
71
|
-
params: P;
|
|
72
|
-
}): [StateValue<T>];
|
|
73
|
-
<T>(computeFn: () => T, options?: StateOptions): [StateValue<T>];
|
|
74
|
-
<T, P>(fetcher: (params: P) => Promise<T>, options: StateOptions<P> & {
|
|
75
|
-
params: P;
|
|
76
|
-
}): [StateValue<T | undefined>, () => void, StateValue<AsyncStatus>, StateValue<unknown>];
|
|
77
|
-
<T>(fetcher: () => Promise<T>, options?: StateOptions): [StateValue<T | undefined>, () => void, StateValue<AsyncStatus>, StateValue<unknown>];
|
|
78
|
-
delete: (key: StateKey) => boolean;
|
|
79
|
-
clear: () => void;
|
|
80
|
-
clearByPrefix: (prefix: StateKey) => number;
|
|
81
|
-
has: (key: StateKey) => boolean;
|
|
82
|
-
readonly size: number;
|
|
83
|
-
getStats: () => StateStats;
|
|
84
|
-
getNamespaceStats: (prefix: StateKey) => NamespaceStats;
|
|
85
|
-
enableAutoCleanup: (config?: Partial<AutoCleanupConfig>) => void;
|
|
86
|
-
disableAutoCleanup: () => void;
|
|
87
|
-
readonly isAutoCleanupEnabled: boolean;
|
|
88
|
-
}
|
|
89
|
-
declare const state: StateFunction;
|
|
90
|
-
|
|
91
|
-
interface RefObject<T> {
|
|
92
|
-
current: T | null;
|
|
93
|
-
}
|
|
94
|
-
declare function ref<T>(initial: T | null): RefObject<T>;
|
|
95
|
-
|
|
96
|
-
export { type AsyncStatus as A, type RefObject as R, type StateValue as S, isTruthy as a, isStateValue as b, type StateAction as c, type StateKey as d, equals as e, type StateOptions as f, isSignal as i, ref as r, state as s };
|
package/dist/state-RYKSC35A.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export{e as STATE_SIGNAL,i as equals,h as getStateSignal,g as isSignal,f as isStateValue,j as isTruthy,l as ref,k as state}from'./chunk-BBNYMXE7.mjs';import'./chunk-FDMJHFN7.mjs';import'./chunk-HB5VPQTB.mjs';import'./chunk-ECYYIQEX.mjs';//# sourceMappingURL=state-RYKSC35A.mjs.map
|
|
2
|
-
//# sourceMappingURL=state-RYKSC35A.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"state-RYKSC35A.mjs"}
|
package/dist/state-XUXPMCFJ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkXJHWMHKF_js=require('./chunk-XJHWMHKF.js');require('./chunk-YPVRQKMW.js'),require('./chunk-WWEWRI6S.js'),require('./chunk-GYDP6MFV.js');Object.defineProperty(exports,"STATE_SIGNAL",{enumerable:true,get:function(){return chunkXJHWMHKF_js.e}});Object.defineProperty(exports,"equals",{enumerable:true,get:function(){return chunkXJHWMHKF_js.i}});Object.defineProperty(exports,"getStateSignal",{enumerable:true,get:function(){return chunkXJHWMHKF_js.h}});Object.defineProperty(exports,"isSignal",{enumerable:true,get:function(){return chunkXJHWMHKF_js.g}});Object.defineProperty(exports,"isStateValue",{enumerable:true,get:function(){return chunkXJHWMHKF_js.f}});Object.defineProperty(exports,"isTruthy",{enumerable:true,get:function(){return chunkXJHWMHKF_js.j}});Object.defineProperty(exports,"ref",{enumerable:true,get:function(){return chunkXJHWMHKF_js.l}});Object.defineProperty(exports,"state",{enumerable:true,get:function(){return chunkXJHWMHKF_js.k}});//# sourceMappingURL=state-XUXPMCFJ.js.map
|
|
2
|
-
//# sourceMappingURL=state-XUXPMCFJ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"state-XUXPMCFJ.js"}
|
package/dist/sync-Z4QqUDjF.d.cts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Synchronizes state updates.
|
|
3
|
-
*
|
|
4
|
-
* - `sync()`: Force flushes any pending auto-batched effects.
|
|
5
|
-
* - `sync(fn)`: Batches updates within `fn`, then flushes them and any pending effects synchronously.
|
|
6
|
-
*
|
|
7
|
-
* @param fn - Optional function containing state updates
|
|
8
|
-
* @returns The return value of fn, if provided
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```tsx
|
|
12
|
-
* // 1. Force flush pending effects
|
|
13
|
-
* count.value++
|
|
14
|
-
* sync() // DOM is now updated
|
|
15
|
-
*
|
|
16
|
-
* // 2. Batch updates and flush immediately
|
|
17
|
-
* sync(() => {
|
|
18
|
-
* count.value = 1
|
|
19
|
-
* name.value = 'Bob'
|
|
20
|
-
* }) // Effects run once here, DOM updated
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
declare function sync<T>(fn?: () => T): T | void;
|
|
24
|
-
|
|
25
|
-
export { sync as s };
|
package/dist/sync-Z4QqUDjF.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Synchronizes state updates.
|
|
3
|
-
*
|
|
4
|
-
* - `sync()`: Force flushes any pending auto-batched effects.
|
|
5
|
-
* - `sync(fn)`: Batches updates within `fn`, then flushes them and any pending effects synchronously.
|
|
6
|
-
*
|
|
7
|
-
* @param fn - Optional function containing state updates
|
|
8
|
-
* @returns The return value of fn, if provided
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```tsx
|
|
12
|
-
* // 1. Force flush pending effects
|
|
13
|
-
* count.value++
|
|
14
|
-
* sync() // DOM is now updated
|
|
15
|
-
*
|
|
16
|
-
* // 2. Batch updates and flush immediately
|
|
17
|
-
* sync(() => {
|
|
18
|
-
* count.value = 1
|
|
19
|
-
* name.value = 'Bob'
|
|
20
|
-
* }) // Effects run once here, DOM updated
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
declare function sync<T>(fn?: () => T): T | void;
|
|
24
|
-
|
|
25
|
-
export { sync as s };
|
package/dist/test-exports.d.cts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { S as StateValue } from './state-DitsMyev.cjs';
|
|
2
|
-
export { i as isSignal, s as state } from './state-DitsMyev.cjs';
|
|
3
|
-
export { e as effect, o as onCleanup } from './core-CxHP8991.cjs';
|
|
4
|
-
export { r as root, u as untrack } from './owner-QS9tPwPr.cjs';
|
|
5
|
-
export { s as sync } from './sync-Z4QqUDjF.cjs';
|
|
6
|
-
import { a as FNodeChild } from './renderer-DSLb-FGg.cjs';
|
|
7
|
-
export { h as Link, O as Outlet, g as Route, f as Router, e as createLocation, m as matchPath, r as router } from './components-BMbqsbMY.cjs';
|
|
8
|
-
import { L as ListComponent } from './portal-BK_0Z0hE.cjs';
|
|
9
|
-
export { P as Portal, a as createReactiveRoot, d as domRenderer, f, r as render } from './portal-BK_0Z0hE.cjs';
|
|
10
|
-
export { c as cleanupMotionState } from './Motion-BrOAJzgH.cjs';
|
|
11
|
-
|
|
12
|
-
/** Marker symbol for List components */
|
|
13
|
-
declare const LIST_MARKER: unique symbol;
|
|
14
|
-
/**
|
|
15
|
-
* Check if a value is a ListComponent
|
|
16
|
-
*/
|
|
17
|
-
declare function isListComponent<T>(value: unknown): value is ListComponent<T>;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Resource API - Proxy-based async state management
|
|
21
|
-
*
|
|
22
|
-
* Creates a resource for handling async data with loading/error states
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Resource interface for async data
|
|
27
|
-
*/
|
|
28
|
-
interface Resource<T> {
|
|
29
|
-
(): T | undefined;
|
|
30
|
-
value: T | undefined;
|
|
31
|
-
loading: boolean;
|
|
32
|
-
error: any;
|
|
33
|
-
state: 'unresolved' | 'pending' | 'ready' | 'refreshing' | 'errored';
|
|
34
|
-
latest: T | undefined;
|
|
35
|
-
peek(): T | undefined;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Creates a resource for handling async data
|
|
39
|
-
* @internal Use state(async () => ...) instead which returns [data, refetch, status, error]
|
|
40
|
-
*/
|
|
41
|
-
declare function createResource<T, S = any>(source: S | StateValue<S> | (() => S), fetcher: (source: S, { value, refetching }: {
|
|
42
|
-
value: T | undefined;
|
|
43
|
-
refetching: any;
|
|
44
|
-
}) => Promise<T>): [Resource<T>, {
|
|
45
|
-
mutate: (v: T | undefined) => void;
|
|
46
|
-
refetch: () => void;
|
|
47
|
-
}];
|
|
48
|
-
|
|
49
|
-
interface Context<T> {
|
|
50
|
-
id: symbol;
|
|
51
|
-
Provider: (props: {
|
|
52
|
-
value: T;
|
|
53
|
-
children: FNodeChild;
|
|
54
|
-
}) => FNodeChild;
|
|
55
|
-
defaultValue: T;
|
|
56
|
-
}
|
|
57
|
-
declare function createContext<T>(defaultValue: T): Context<T>;
|
|
58
|
-
/**
|
|
59
|
-
* Get the current value from a context.
|
|
60
|
-
*
|
|
61
|
-
* @example
|
|
62
|
-
* ```tsx
|
|
63
|
-
* const theme = context(ThemeContext)
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
declare function context<T>(ctx: Context<T>): T;
|
|
67
|
-
|
|
68
|
-
export { LIST_MARKER, context, createContext, createResource, isListComponent };
|
package/dist/test-exports.d.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { S as StateValue } from './state-DitsMyev.js';
|
|
2
|
-
export { i as isSignal, s as state } from './state-DitsMyev.js';
|
|
3
|
-
export { e as effect, o as onCleanup } from './core-D0ggvjX3.js';
|
|
4
|
-
export { r as root, u as untrack } from './owner-QS9tPwPr.js';
|
|
5
|
-
export { s as sync } from './sync-Z4QqUDjF.js';
|
|
6
|
-
import { a as FNodeChild } from './renderer-DSLb-FGg.js';
|
|
7
|
-
export { h as Link, O as Outlet, g as Route, f as Router, e as createLocation, m as matchPath, r as router } from './components-C83mBQXW.js';
|
|
8
|
-
import { L as ListComponent } from './portal-CbguxtuQ.js';
|
|
9
|
-
export { P as Portal, a as createReactiveRoot, d as domRenderer, f, r as render } from './portal-CbguxtuQ.js';
|
|
10
|
-
export { c as cleanupMotionState } from './Motion-BrOAJzgH.js';
|
|
11
|
-
|
|
12
|
-
/** Marker symbol for List components */
|
|
13
|
-
declare const LIST_MARKER: unique symbol;
|
|
14
|
-
/**
|
|
15
|
-
* Check if a value is a ListComponent
|
|
16
|
-
*/
|
|
17
|
-
declare function isListComponent<T>(value: unknown): value is ListComponent<T>;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Resource API - Proxy-based async state management
|
|
21
|
-
*
|
|
22
|
-
* Creates a resource for handling async data with loading/error states
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Resource interface for async data
|
|
27
|
-
*/
|
|
28
|
-
interface Resource<T> {
|
|
29
|
-
(): T | undefined;
|
|
30
|
-
value: T | undefined;
|
|
31
|
-
loading: boolean;
|
|
32
|
-
error: any;
|
|
33
|
-
state: 'unresolved' | 'pending' | 'ready' | 'refreshing' | 'errored';
|
|
34
|
-
latest: T | undefined;
|
|
35
|
-
peek(): T | undefined;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Creates a resource for handling async data
|
|
39
|
-
* @internal Use state(async () => ...) instead which returns [data, refetch, status, error]
|
|
40
|
-
*/
|
|
41
|
-
declare function createResource<T, S = any>(source: S | StateValue<S> | (() => S), fetcher: (source: S, { value, refetching }: {
|
|
42
|
-
value: T | undefined;
|
|
43
|
-
refetching: any;
|
|
44
|
-
}) => Promise<T>): [Resource<T>, {
|
|
45
|
-
mutate: (v: T | undefined) => void;
|
|
46
|
-
refetch: () => void;
|
|
47
|
-
}];
|
|
48
|
-
|
|
49
|
-
interface Context<T> {
|
|
50
|
-
id: symbol;
|
|
51
|
-
Provider: (props: {
|
|
52
|
-
value: T;
|
|
53
|
-
children: FNodeChild;
|
|
54
|
-
}) => FNodeChild;
|
|
55
|
-
defaultValue: T;
|
|
56
|
-
}
|
|
57
|
-
declare function createContext<T>(defaultValue: T): Context<T>;
|
|
58
|
-
/**
|
|
59
|
-
* Get the current value from a context.
|
|
60
|
-
*
|
|
61
|
-
* @example
|
|
62
|
-
* ```tsx
|
|
63
|
-
* const theme = context(ThemeContext)
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
declare function context<T>(ctx: Context<T>): T;
|
|
67
|
-
|
|
68
|
-
export { LIST_MARKER, context, createContext, createResource, isListComponent };
|
package/dist/test-exports.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkAZEHBSBG_js=require('./chunk-AZEHBSBG.js'),chunk5ICRQIS2_js=require('./chunk-5ICRQIS2.js'),chunkDZ7L3SHV_js=require('./chunk-DZ7L3SHV.js'),chunkXJHWMHKF_js=require('./chunk-XJHWMHKF.js'),chunkYPVRQKMW_js=require('./chunk-YPVRQKMW.js'),chunkRMN5IPS5_js=require('./chunk-RMN5IPS5.js'),chunkQ7IWDVJ4_js=require('./chunk-Q7IWDVJ4.js');require('./chunk-WQFQO5LK.js');var chunkWWEWRI6S_js=require('./chunk-WWEWRI6S.js'),chunkGYDP6MFV_js=require('./chunk-GYDP6MFV.js');Object.defineProperty(exports,"Link",{enumerable:true,get:function(){return chunkAZEHBSBG_js.k}});Object.defineProperty(exports,"Outlet",{enumerable:true,get:function(){return chunkAZEHBSBG_js.j}});Object.defineProperty(exports,"Route",{enumerable:true,get:function(){return chunkAZEHBSBG_js.i}});Object.defineProperty(exports,"Router",{enumerable:true,get:function(){return chunkAZEHBSBG_js.h}});Object.defineProperty(exports,"createLocation",{enumerable:true,get:function(){return chunkAZEHBSBG_js.a}});Object.defineProperty(exports,"matchPath",{enumerable:true,get:function(){return chunkAZEHBSBG_js.d}});Object.defineProperty(exports,"router",{enumerable:true,get:function(){return chunkAZEHBSBG_js.g}});Object.defineProperty(exports,"LIST_MARKER",{enumerable:true,get:function(){return chunk5ICRQIS2_js.c}});Object.defineProperty(exports,"Portal",{enumerable:true,get:function(){return chunk5ICRQIS2_js.i}});Object.defineProperty(exports,"createReactiveRoot",{enumerable:true,get:function(){return chunk5ICRQIS2_js.f}});Object.defineProperty(exports,"domRenderer",{enumerable:true,get:function(){return chunk5ICRQIS2_js.b}});Object.defineProperty(exports,"isListComponent",{enumerable:true,get:function(){return chunk5ICRQIS2_js.d}});Object.defineProperty(exports,"render",{enumerable:true,get:function(){return chunk5ICRQIS2_js.g}});Object.defineProperty(exports,"context",{enumerable:true,get:function(){return chunkDZ7L3SHV_js.b}});Object.defineProperty(exports,"createContext",{enumerable:true,get:function(){return chunkDZ7L3SHV_js.a}});Object.defineProperty(exports,"createResource",{enumerable:true,get:function(){return chunkXJHWMHKF_js.a}});Object.defineProperty(exports,"isSignal",{enumerable:true,get:function(){return chunkXJHWMHKF_js.g}});Object.defineProperty(exports,"state",{enumerable:true,get:function(){return chunkXJHWMHKF_js.k}});Object.defineProperty(exports,"sync",{enumerable:true,get:function(){return chunkYPVRQKMW_js.e}});Object.defineProperty(exports,"cleanupMotionState",{enumerable:true,get:function(){return chunkRMN5IPS5_js.a}});Object.defineProperty(exports,"f",{enumerable:true,get:function(){return chunkQ7IWDVJ4_js.a}});Object.defineProperty(exports,"effect",{enumerable:true,get:function(){return chunkWWEWRI6S_js.c}});Object.defineProperty(exports,"onCleanup",{enumerable:true,get:function(){return chunkWWEWRI6S_js.d}});Object.defineProperty(exports,"root",{enumerable:true,get:function(){return chunkGYDP6MFV_js.i}});Object.defineProperty(exports,"untrack",{enumerable:true,get:function(){return chunkGYDP6MFV_js.f}});//# sourceMappingURL=test-exports.js.map
|
|
2
|
-
//# sourceMappingURL=test-exports.js.map
|
package/dist/test-exports.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"test-exports.js"}
|
package/dist/test-exports.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export{k as Link,j as Outlet,i as Route,h as Router,a as createLocation,d as matchPath,g as router}from'./chunk-5K55ASOD.mjs';export{c as LIST_MARKER,i as Portal,f as createReactiveRoot,b as domRenderer,d as isListComponent,g as render}from'./chunk-Y6KKAHLS.mjs';export{b as context,a as createContext}from'./chunk-OPAAGNBO.mjs';export{a as createResource,g as isSignal,k as state}from'./chunk-BBNYMXE7.mjs';export{e as sync}from'./chunk-FDMJHFN7.mjs';export{a as cleanupMotionState}from'./chunk-GKJQEOP7.mjs';export{a as f}from'./chunk-WVEJT7HD.mjs';import'./chunk-KNF5ERPK.mjs';export{c as effect,d as onCleanup}from'./chunk-HB5VPQTB.mjs';export{i as root,f as untrack}from'./chunk-ECYYIQEX.mjs';//# sourceMappingURL=test-exports.mjs.map
|
|
2
|
-
//# sourceMappingURL=test-exports.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"test-exports.mjs"}
|