flexium 0.10.7 → 0.12.8

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.
Files changed (192) hide show
  1. package/README.md +10 -10
  2. package/dist/canvas.d.cts +83 -23
  3. package/dist/canvas.d.ts +83 -23
  4. package/dist/canvas.js +1 -1
  5. package/dist/canvas.js.map +1 -1
  6. package/dist/canvas.mjs +1 -1
  7. package/dist/canvas.mjs.map +1 -1
  8. package/dist/chunk-44RZHCII.mjs +2 -0
  9. package/dist/chunk-44RZHCII.mjs.map +1 -0
  10. package/dist/chunk-7BXR4ZFD.js +2 -0
  11. package/dist/chunk-7BXR4ZFD.js.map +1 -0
  12. package/dist/chunk-CPJRQL2C.mjs +2 -0
  13. package/dist/chunk-CPJRQL2C.mjs.map +1 -0
  14. package/dist/chunk-ENWGYQNU.js +2 -0
  15. package/dist/chunk-ENWGYQNU.js.map +1 -0
  16. package/dist/chunk-EXLNKYSH.js +2 -0
  17. package/dist/chunk-EXLNKYSH.js.map +1 -0
  18. package/dist/chunk-IA4FEBFE.js +2 -0
  19. package/dist/chunk-IA4FEBFE.js.map +1 -0
  20. package/dist/chunk-IOF6L2BT.mjs +2 -0
  21. package/dist/chunk-IOF6L2BT.mjs.map +1 -0
  22. package/dist/chunk-KBUONZI2.js +2 -0
  23. package/dist/chunk-KBUONZI2.js.map +1 -0
  24. package/dist/chunk-LUREDEUB.mjs +2 -0
  25. package/dist/chunk-LUREDEUB.mjs.map +1 -0
  26. package/dist/chunk-LUW7DIEW.js +2 -0
  27. package/dist/chunk-LUW7DIEW.js.map +1 -0
  28. package/dist/chunk-S6WF3XNF.mjs +2 -0
  29. package/dist/chunk-S6WF3XNF.mjs.map +1 -0
  30. package/dist/chunk-ZCO4NIGC.mjs +2 -0
  31. package/dist/chunk-ZCO4NIGC.mjs.map +1 -0
  32. package/dist/core.d.cts +41 -2
  33. package/dist/core.d.ts +41 -2
  34. package/dist/core.js +1 -1
  35. package/dist/core.mjs +1 -1
  36. package/dist/dom.d.cts +10 -33
  37. package/dist/dom.d.ts +10 -33
  38. package/dist/dom.js +1 -1
  39. package/dist/dom.js.map +1 -1
  40. package/dist/dom.mjs +1 -1
  41. package/dist/dom.mjs.map +1 -1
  42. package/dist/index.d.cts +1 -24
  43. package/dist/index.d.ts +1 -24
  44. package/dist/index.js +1 -1
  45. package/dist/index.js.map +1 -1
  46. package/dist/index.mjs +1 -1
  47. package/dist/index.mjs.map +1 -1
  48. package/dist/interactive.d.cts +65 -148
  49. package/dist/interactive.d.ts +65 -148
  50. package/dist/interactive.js +1 -1
  51. package/dist/interactive.js.map +1 -1
  52. package/dist/interactive.mjs +1 -1
  53. package/dist/interactive.mjs.map +1 -1
  54. package/dist/jsx-dev-runtime.d.cts +6 -2
  55. package/dist/jsx-dev-runtime.d.ts +6 -2
  56. package/dist/jsx-dev-runtime.js +1 -1
  57. package/dist/jsx-dev-runtime.js.map +1 -1
  58. package/dist/jsx-dev-runtime.mjs +1 -1
  59. package/dist/jsx-dev-runtime.mjs.map +1 -1
  60. package/dist/jsx-runtime.d.cts +6 -68
  61. package/dist/jsx-runtime.d.ts +6 -68
  62. package/dist/jsx-runtime.js +1 -1
  63. package/dist/jsx-runtime.mjs +1 -1
  64. package/dist/metafile-cjs.json +1 -1
  65. package/dist/metafile-esm.json +1 -1
  66. package/dist/router.d.cts +48 -15
  67. package/dist/router.d.ts +48 -15
  68. package/dist/router.js +1 -1
  69. package/dist/router.js.map +1 -1
  70. package/dist/router.mjs +1 -1
  71. package/dist/router.mjs.map +1 -1
  72. package/package.json +13 -53
  73. package/dist/DrawText-CVAKQ5wZ.d.cts +0 -309
  74. package/dist/DrawText-Dlh1L1Ar.d.ts +0 -309
  75. package/dist/Motion-BrOAJzgH.d.cts +0 -87
  76. package/dist/Motion-BrOAJzgH.d.ts +0 -87
  77. package/dist/advanced.d.cts +0 -32
  78. package/dist/advanced.d.ts +0 -32
  79. package/dist/advanced.js +0 -2
  80. package/dist/advanced.js.map +0 -1
  81. package/dist/advanced.mjs +0 -2
  82. package/dist/advanced.mjs.map +0 -1
  83. package/dist/chunk-5ICRQIS2.js +0 -3
  84. package/dist/chunk-5ICRQIS2.js.map +0 -1
  85. package/dist/chunk-5K55ASOD.mjs +0 -3
  86. package/dist/chunk-5K55ASOD.mjs.map +0 -1
  87. package/dist/chunk-AZEHBSBG.js +0 -3
  88. package/dist/chunk-AZEHBSBG.js.map +0 -1
  89. package/dist/chunk-BBNYMXE7.mjs +0 -2
  90. package/dist/chunk-BBNYMXE7.mjs.map +0 -1
  91. package/dist/chunk-BYHIHYRR.mjs +0 -2
  92. package/dist/chunk-BYHIHYRR.mjs.map +0 -1
  93. package/dist/chunk-DZ7L3SHV.js +0 -2
  94. package/dist/chunk-DZ7L3SHV.js.map +0 -1
  95. package/dist/chunk-ECYYIQEX.mjs +0 -3
  96. package/dist/chunk-ECYYIQEX.mjs.map +0 -1
  97. package/dist/chunk-FDMJHFN7.mjs +0 -2
  98. package/dist/chunk-FDMJHFN7.mjs.map +0 -1
  99. package/dist/chunk-GKJQEOP7.mjs +0 -2
  100. package/dist/chunk-GKJQEOP7.mjs.map +0 -1
  101. package/dist/chunk-GYDP6MFV.js +0 -3
  102. package/dist/chunk-GYDP6MFV.js.map +0 -1
  103. package/dist/chunk-HB5VPQTB.mjs +0 -2
  104. package/dist/chunk-HB5VPQTB.mjs.map +0 -1
  105. package/dist/chunk-KNF5ERPK.mjs +0 -2
  106. package/dist/chunk-KNF5ERPK.mjs.map +0 -1
  107. package/dist/chunk-OPAAGNBO.mjs +0 -2
  108. package/dist/chunk-OPAAGNBO.mjs.map +0 -1
  109. package/dist/chunk-OPAQ4R4M.mjs +0 -2
  110. package/dist/chunk-OPAQ4R4M.mjs.map +0 -1
  111. package/dist/chunk-Q7IWDVJ4.js +0 -2
  112. package/dist/chunk-Q7IWDVJ4.js.map +0 -1
  113. package/dist/chunk-QPCIDSMM.js +0 -2
  114. package/dist/chunk-QPCIDSMM.js.map +0 -1
  115. package/dist/chunk-QZIX4FXS.mjs +0 -2
  116. package/dist/chunk-QZIX4FXS.mjs.map +0 -1
  117. package/dist/chunk-RMN5IPS5.js +0 -2
  118. package/dist/chunk-RMN5IPS5.js.map +0 -1
  119. package/dist/chunk-U6C6VDVZ.js +0 -2
  120. package/dist/chunk-U6C6VDVZ.js.map +0 -1
  121. package/dist/chunk-WQFQO5LK.js +0 -2
  122. package/dist/chunk-WQFQO5LK.js.map +0 -1
  123. package/dist/chunk-WVEJT7HD.mjs +0 -2
  124. package/dist/chunk-WVEJT7HD.mjs.map +0 -1
  125. package/dist/chunk-WWEWRI6S.js +0 -2
  126. package/dist/chunk-WWEWRI6S.js.map +0 -1
  127. package/dist/chunk-XJHWMHKF.js +0 -2
  128. package/dist/chunk-XJHWMHKF.js.map +0 -1
  129. package/dist/chunk-Y6KKAHLS.mjs +0 -3
  130. package/dist/chunk-Y6KKAHLS.mjs.map +0 -1
  131. package/dist/chunk-YDZ37ZZ4.js +0 -2
  132. package/dist/chunk-YDZ37ZZ4.js.map +0 -1
  133. package/dist/chunk-YPVRQKMW.js +0 -2
  134. package/dist/chunk-YPVRQKMW.js.map +0 -1
  135. package/dist/components-BMbqsbMY.d.cts +0 -126
  136. package/dist/components-C83mBQXW.d.ts +0 -126
  137. package/dist/core-CxHP8991.d.cts +0 -32
  138. package/dist/core-D0ggvjX3.d.ts +0 -32
  139. package/dist/effect-554ONNZR.js +0 -2
  140. package/dist/effect-554ONNZR.js.map +0 -1
  141. package/dist/effect-T2GVIS3T.mjs +0 -2
  142. package/dist/effect-T2GVIS3T.mjs.map +0 -1
  143. package/dist/owner-QS9tPwPr.d.cts +0 -27
  144. package/dist/owner-QS9tPwPr.d.ts +0 -27
  145. package/dist/portal-BK_0Z0hE.d.cts +0 -206
  146. package/dist/portal-CbguxtuQ.d.ts +0 -206
  147. package/dist/primitives/layout.d.cts +0 -295
  148. package/dist/primitives/layout.d.ts +0 -295
  149. package/dist/primitives/layout.js +0 -2
  150. package/dist/primitives/layout.js.map +0 -1
  151. package/dist/primitives/layout.mjs +0 -2
  152. package/dist/primitives/layout.mjs.map +0 -1
  153. package/dist/primitives/motion.d.cts +0 -230
  154. package/dist/primitives/motion.d.ts +0 -230
  155. package/dist/primitives/motion.js +0 -2
  156. package/dist/primitives/motion.js.map +0 -1
  157. package/dist/primitives/motion.mjs +0 -2
  158. package/dist/primitives/motion.mjs.map +0 -1
  159. package/dist/primitives/ui.d.cts +0 -81
  160. package/dist/primitives/ui.d.ts +0 -81
  161. package/dist/primitives/ui.js +0 -2
  162. package/dist/primitives/ui.js.map +0 -1
  163. package/dist/primitives/ui.mjs +0 -2
  164. package/dist/primitives/ui.mjs.map +0 -1
  165. package/dist/primitives.d.cts +0 -93
  166. package/dist/primitives.d.ts +0 -93
  167. package/dist/primitives.js +0 -2
  168. package/dist/primitives.js.map +0 -1
  169. package/dist/primitives.mjs +0 -2
  170. package/dist/primitives.mjs.map +0 -1
  171. package/dist/renderer-DSLb-FGg.d.cts +0 -135
  172. package/dist/renderer-DSLb-FGg.d.ts +0 -135
  173. package/dist/server.d.cts +0 -3
  174. package/dist/server.d.ts +0 -3
  175. package/dist/server.js +0 -2
  176. package/dist/server.js.map +0 -1
  177. package/dist/server.mjs +0 -2
  178. package/dist/server.mjs.map +0 -1
  179. package/dist/state-DitsMyev.d.cts +0 -96
  180. package/dist/state-DitsMyev.d.ts +0 -96
  181. package/dist/state-RYKSC35A.mjs +0 -2
  182. package/dist/state-RYKSC35A.mjs.map +0 -1
  183. package/dist/state-XUXPMCFJ.js +0 -2
  184. package/dist/state-XUXPMCFJ.js.map +0 -1
  185. package/dist/sync-Z4QqUDjF.d.cts +0 -25
  186. package/dist/sync-Z4QqUDjF.d.ts +0 -25
  187. package/dist/test-exports.d.cts +0 -68
  188. package/dist/test-exports.d.ts +0 -68
  189. package/dist/test-exports.js +0 -2
  190. package/dist/test-exports.js.map +0 -1
  191. package/dist/test-exports.mjs +0 -2
  192. 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 };
@@ -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 };
@@ -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"}
@@ -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"}
@@ -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 };
@@ -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 };
@@ -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 };
@@ -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 };
@@ -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
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"test-exports.js"}
@@ -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"}