@fynixorg/ui 1.0.7 → 1.0.9

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.
@@ -1,30 +0,0 @@
1
- /**
2
- * Memoizes a callback function based on a dependency array.
3
- * Similar to React's useCallback.
4
- *
5
- * @param {Function} fn
6
- * Function to memoize. Should be pure and not mutate external state.
7
- *
8
- * @param {Array<any>} [deps=[]]
9
- * Dependency array. Callback identity changes only when deps change.
10
- *
11
- * @returns {Function}
12
- * Memoized callback function.
13
- *
14
- * @throws {Error}
15
- * If called outside of a component context.
16
- *
17
- * @example
18
- * const onClick = nixCallback(() => {
19
- * console.log(count.value);
20
- * }, [count.value]);
21
- *
22
- * @security
23
- * - Avoids JSON.stringify to prevent crashes on circular references
24
- * - Limits dependency array size to prevent performance abuse
25
- *
26
- * @memory
27
- * - Does not allocate large temporary strings
28
- * - Reuses function reference when deps are unchanged
29
- */
30
- export function nixCallback(fn: Function, deps?: Array<any>): Function;
@@ -1,93 +0,0 @@
1
- /**
2
- * @template T
3
- * @typedef {Object} ComputedState
4
- * @property {T} value - Get the computed value (read-only)
5
- * @property {(fn: (value: T) => void) => (() => void)} subscribe - Subscribe to computed value changes
6
- * @property {() => void} cleanup - Cleanup all subscriptions and dependencies
7
- * @property {() => number} getSubscriberCount - Get number of active subscribers (debugging)
8
- * @property {() => number} getDependencyCount - Get number of tracked dependencies (debugging)
9
- * @property {() => boolean} isDestroyed - Check if computed state has been destroyed
10
- * @property {boolean} _isNixState - Internal flag (computed states behave like states)
11
- * @property {boolean} _isComputed - Internal flag to identify computed states
12
- */
13
- /**
14
- * Create a derived/computed state from other states.
15
- * Automatically tracks dependencies and updates when any dependency changes.
16
- *
17
- * @template T
18
- * @param {() => T} computeFn - Function that computes the derived value
19
- * @returns {ComputedState<T>} A reactive state object with the computed value
20
- *
21
- * @example
22
- * const count = nixState(5);
23
- * const doubled = nixComputed(() => count.value * 2);
24
- * console.log(doubled.value); // 10
25
- * count.value = 10;
26
- * console.log(doubled.value); // 20
27
- *
28
- * @example
29
- * // Multiple dependencies
30
- * const a = nixState(5);
31
- * const b = nixState(10);
32
- * const sum = nixComputed(() => a.value + b.value);
33
- * console.log(sum.value); // 15
34
- *
35
- * @example
36
- * // Conditional dependencies
37
- * const flag = nixState(true);
38
- * const x = nixState(1);
39
- * const y = nixState(2);
40
- * const result = nixComputed(() => flag.value ? x.value : y.value);
41
- *
42
- * @example
43
- * // With cleanup
44
- * const MyComponent = () => {
45
- * const count = nixState(0);
46
- * const doubled = nixComputed(() => count.value * 2);
47
- *
48
- * nixEffect(() => {
49
- * return () => {
50
- * doubled.cleanup();
51
- * count.cleanup();
52
- * };
53
- * }, []);
54
- * };
55
- *
56
- * @throws {Error} If called outside a component context
57
- * @throws {TypeError} If computeFn is not a function
58
- */
59
- export function nixComputed<T>(computeFn: () => T): ComputedState<T>;
60
- export type ComputedState<T> = {
61
- /**
62
- * - Get the computed value (read-only)
63
- */
64
- value: T;
65
- /**
66
- * - Subscribe to computed value changes
67
- */
68
- subscribe: (fn: (value: T) => void) => (() => void);
69
- /**
70
- * - Cleanup all subscriptions and dependencies
71
- */
72
- cleanup: () => void;
73
- /**
74
- * - Get number of active subscribers (debugging)
75
- */
76
- getSubscriberCount: () => number;
77
- /**
78
- * - Get number of tracked dependencies (debugging)
79
- */
80
- getDependencyCount: () => number;
81
- /**
82
- * - Check if computed state has been destroyed
83
- */
84
- isDestroyed: () => boolean;
85
- /**
86
- * - Internal flag (computed states behave like states)
87
- */
88
- _isNixState: boolean;
89
- /**
90
- * - Internal flag to identify computed states
91
- */
92
- _isComputed: boolean;
93
- };
@@ -1,32 +0,0 @@
1
- /**
2
- * @fileoverview Debounce utility function with advanced options.
3
- * Supports leading/trailing edge invocation, maxWait, and AbortController.
4
- */
5
- /**
6
- * Debounce a function with options for leading, trailing, maxWait, and AbortController support.
7
- *
8
- * @param {Function} fn - The function to debounce
9
- * @param {number} [delay=300] - Delay in milliseconds
10
- * @param {Object} [options={}] - Debounce options
11
- * @param {boolean} [options.leading=false] - Invoke on the leading edge
12
- * @param {boolean} [options.trailing=true] - Invoke on the trailing edge
13
- * @param {number} [options.maxWait] - Maximum wait time before forced invocation
14
- * @param {AbortSignal} [options.signal] - Optional AbortSignal to cancel pending calls
15
- * @returns {Function} Debounced function with `.cancel()` method
16
- *
17
- * @example
18
- * const controller = new AbortController();
19
- * const debounced = nixDebounce(() => console.log('Hello'), 500, {
20
- * leading: true,
21
- * maxWait: 2000,
22
- * signal: controller.signal
23
- * });
24
- * debounced();
25
- * controller.abort(); // Cancel pending invocation
26
- */
27
- export function nixDebounce(fn: Function, delay?: number, options?: {
28
- leading?: boolean;
29
- trailing?: boolean;
30
- maxWait?: number;
31
- signal?: AbortSignal;
32
- }): Function;
@@ -1,64 +0,0 @@
1
- /**
2
- * Execute side effects in a component with automatic cleanup.
3
- * Similar to React's useEffect.
4
- *
5
- * @param {() => (void | (() => void))} effect - Effect function, optionally returns cleanup function
6
- * @param {Array<any>} [deps=[]] - Dependency array. Effect re-runs when dependencies change.
7
- *
8
- * @example
9
- * // Run once on mount
10
- * nixEffect(() => {
11
- * console.log('Component mounted');
12
- * return () => console.log('Component unmounted');
13
- * }, []);
14
- *
15
- * @example
16
- * // Run when count changes
17
- * const count = nixState(0);
18
- * nixEffect(() => {
19
- * console.log('Count is:', count.value);
20
- * }, [count.value]);
21
- *
22
- * @example
23
- * // Timer with cleanup
24
- * nixEffect(() => {
25
- * const timer = setInterval(() => console.log('tick'), 1000);
26
- * return () => clearInterval(timer);
27
- * }, []);
28
- *
29
- * @example
30
- * // Event listener with cleanup
31
- * nixEffect(() => {
32
- * const handler = (e) => console.log('clicked', e);
33
- * document.addEventListener('click', handler);
34
- * return () => document.removeEventListener('click', handler);
35
- * }, []);
36
- *
37
- * @throws {Error} If called outside a component context
38
- */
39
- export function nixEffect(effect: () => (void | (() => void)), deps?: Array<any>): void;
40
- /**
41
- * Run an effect only once on component mount.
42
- * Convenience wrapper around nixEffect.
43
- *
44
- * @param {() => (void | (() => void))} effect - Effect function
45
- *
46
- * @example
47
- * nixEffectOnce(() => {
48
- * console.log('Mounted');
49
- * return () => console.log('Unmounted');
50
- * });
51
- */
52
- export function nixEffectOnce(effect: () => (void | (() => void))): void;
53
- /**
54
- * Run an effect every time the component renders.
55
- * Use with caution - can cause performance issues.
56
- *
57
- * @param {() => (void | (() => void))} effect - Effect function
58
- *
59
- * @example
60
- * nixEffectAlways(() => {
61
- * console.log('Component rendered');
62
- * });
63
- */
64
- export function nixEffectAlways(effect: () => (void | (() => void))): void;
@@ -1,15 +0,0 @@
1
- /**
2
- * Reactive form handler with validation, reactive state, and safe async submit.
3
- *
4
- * @param {Object} [initialValues={}] - Initial values for form fields.
5
- * @param {Object} [validationRules={}] - Validation rules for fields.
6
- * @returns {Object} Form utilities: values, errors, touched, isSubmitting, isValid,
7
- * handleChange, handleBlur, handleSubmit, reset, getFieldProps, cancelSubmit
8
- *
9
- * @example
10
- * const form = nixForm({ email: "" }, {
11
- * email: { required: true, pattern: /^\S+@\S+$/, message: "Invalid email" }
12
- * });
13
- * form.handleSubmit(async (values) => { await api.submit(values); });
14
- */
15
- export function nixForm(initialValues?: any, validationRules?: any): any;
@@ -1,20 +0,0 @@
1
- /**
2
- * Full-featured reactive form with debounced async API submission.
3
- *
4
- * @param {Object} [initialValues={}] - Initial field values.
5
- * @param {Object} [validationRules={}] - Validation rules for each field.
6
- * @param {Object} [options={}] - Async submit options.
7
- * @param {number} [options.delay=300] - Debounce delay in ms.
8
- * @param {boolean} [options.leading=false] - Invoke submit on leading edge.
9
- * @param {boolean} [options.trailing=true] - Invoke submit on trailing edge.
10
- * @param {number} [options.maxWait] - Maximum wait time before forced invocation.
11
- * @param {boolean} [options.cache=true] - Cache last submission result.
12
- * @returns {Object} Form API with state, validation, and debounced async submission.
13
- */
14
- export function nixFormAsync(initialValues?: any, validationRules?: any, options?: {
15
- delay?: number;
16
- leading?: boolean;
17
- trailing?: boolean;
18
- maxWait?: number;
19
- cache?: boolean;
20
- }): any;
@@ -1,26 +0,0 @@
1
- /**
2
- * @fileoverview Safe interval utility with automatic cleanup support.
3
- * Provides AbortController integration for cancellable intervals.
4
- */
5
- /**
6
- * Safe interval with automatic cleanup support and optional AbortController.
7
- * Must be called within a component and cleaned up on unmount.
8
- *
9
- * @param {() => void} fn - Function to run at each interval
10
- * @param {number} ms - Interval duration in milliseconds
11
- * @param {AbortSignal} [signal] - Optional AbortSignal to cancel the interval
12
- * @returns {() => void} Cleanup function to stop the interval
13
- *
14
- * @example
15
- * const cancel = nixInterval(() => console.log('tick'), 1000);
16
- * // stop interval
17
- * cancel();
18
- *
19
- * @example
20
- * const controller = new AbortController();
21
- * nixInterval(() => console.log('tick'), 1000, controller.signal);
22
- * controller.abort(); // automatically clears interval
23
- *
24
- * @throws {TypeError} If fn is not a function or ms is not a non-negative number
25
- */
26
- export function nixInterval(fn: () => void, ms: number, signal?: AbortSignal): () => void;
@@ -1,19 +0,0 @@
1
- /**
2
- * Lazy-load a module/component with caching.
3
- *
4
- * @param {() => Promise<any>} importFn - Function that returns a dynamic import.
5
- * @returns {Function} Component wrapper for lazy-loaded module.
6
- */
7
- export function nixLazy(importFn: () => Promise<any>): Function;
8
- /**
9
- * Suspense-like wrapper for lazy components.
10
- *
11
- * @param {Object} props
12
- * @param {any} props.fallback - Element to render while loading.
13
- * @param {Function} props.children - Function returning child component.
14
- * @returns {any} Rendered fallback or child.
15
- */
16
- export function Suspense({ fallback, children }: {
17
- fallback: any;
18
- children: Function;
19
- }): any;
@@ -1,26 +0,0 @@
1
- /**
2
- * Lazy-load a module/component with caching, retry, and abort support.
3
- *
4
- * @param {() => Promise<any>} importFn - Function returning a dynamic import.
5
- * @param {Object} [options={}] - Options for lazy loading.
6
- * @param {number} [options.retry=0] - Number of retry attempts on failure.
7
- * @returns {Function} Component wrapper for lazy-loaded module.
8
- *
9
- * @example
10
- * const LazyComp = nixLazyAsync(() => import("./MyComponent"), { retry: 2 });
11
- */
12
- export function nixLazyAsync(importFn: () => Promise<any>, options?: {
13
- retry?: number;
14
- }): Function;
15
- /**
16
- * Suspense wrapper to catch pending promises and render fallback.
17
- *
18
- * @param {Object} props
19
- * @param {any} props.fallback - Element to render while loading.
20
- * @param {Function} props.children - Function returning child component.
21
- * @returns {any} Rendered fallback or child component.
22
- */
23
- export function Suspense({ fallback, children }: {
24
- fallback: any;
25
- children: Function;
26
- }): any;
@@ -1,29 +0,0 @@
1
- /**
2
- * Lazy-load a form component and manage its state with debounced async submissions.
3
- *
4
- * @param {() => Promise<any>} importFn - Function returning a dynamic import of the form component.
5
- * @param {Object} [formOptions={}] - Initial values and validation rules.
6
- * @param {Object} [formOptions.initialValues={}] - Initial field values.
7
- * @param {Object} [formOptions.validationRules={}] - Validation rules per field.
8
- * @param {Object} [submitOptions={}] - Debounce and async submission options.
9
- * @param {number} [submitOptions.delay=300] - Debounce delay.
10
- * @param {boolean} [submitOptions.leading=false] - Invoke submit on leading edge.
11
- * @param {boolean} [submitOptions.trailing=true] - Invoke submit on trailing edge.
12
- * @param {number} [submitOptions.maxWait] - Max wait before forced submission.
13
- * @param {boolean} [submitOptions.cache=true] - Cache last submission result.
14
- * @param {Object} [lazyOptions={}] - Options for lazy-loaded component import.
15
- * @param {number} [lazyOptions.retry=0] - Retry count for lazy-loaded component import.
16
- * @returns {Object} Lazy-loaded form component and reactive form API.
17
- */
18
- export function nixLazyFormAsync(importFn: () => Promise<any>, formOptions?: {
19
- initialValues?: any;
20
- validationRules?: any;
21
- }, submitOptions?: {
22
- delay?: number;
23
- leading?: boolean;
24
- trailing?: boolean;
25
- maxWait?: number;
26
- cache?: boolean;
27
- }, lazyOptions?: {
28
- retry?: number;
29
- }): any;
@@ -1,22 +0,0 @@
1
- /**
2
- * Reactive wrapper around localStorage with safe JSON parsing/stringifying.
3
- * Automatically persists state changes to localStorage.
4
- *
5
- * @template T
6
- * @param {string} key - LocalStorage key
7
- * @param {T} initial - Initial value if key does not exist
8
- * @returns {{ value: T, set: (v: T) => void }} Object with value getter and setter
9
- *
10
- * @example
11
- * const theme = nixLocalStorage('theme', 'light');
12
- * console.log(theme.value); // 'light' or stored value
13
- * theme.set('dark'); // Updates state and localStorage
14
- *
15
- * @example
16
- * const user = nixLocalStorage('user', { name: '', age: 0 });
17
- * user.set({ name: 'John', age: 30 });
18
- */
19
- export function nixLocalStorage<T>(key: string, initial: T): {
20
- value: T;
21
- set: (v: T) => void;
22
- };
@@ -1,8 +0,0 @@
1
- /**
2
- * Memoize a value based on dependencies, similar to React's useMemo.
3
- *
4
- * @param {() => any} factory - Function to compute the memoized value
5
- * @param {Array<any>} deps - Dependency array
6
- * @returns {any} Memoized value
7
- */
8
- export function nixMemo(factory: () => any, deps?: Array<any>): any;
@@ -1,18 +0,0 @@
1
- /**
2
- * Returns the previous value of a variable across renders.
3
- * Useful for detecting changes and implementing undo functionality.
4
- *
5
- * @template T
6
- * @param {T} val - Current value
7
- * @returns {T | undefined} Previous value (undefined on first render)
8
- *
9
- * @example
10
- * const count = nixState(0);
11
- * const prevCount = nixPrevious(count.value);
12
- *
13
- * // prevCount will be undefined on first render
14
- * // then will hold the previous value on subsequent renders
15
- *
16
- * @throws {Error} If called outside a component context
17
- */
18
- export function nixPrevious<T>(val: T): T | undefined;
@@ -1,10 +0,0 @@
1
- /**
2
- * Returns a mutable ref object that persists across renders.
3
- * Similar to React's useRef.
4
- *
5
- * @param {any} initial - Initial value for the ref
6
- * @returns {{ current: any }} Ref object
7
- */
8
- export function nixRef(initial?: any): {
9
- current: any;
10
- };
@@ -1,73 +0,0 @@
1
- /**
2
- * Creates a reactive state value that triggers component re-renders when changed.
3
- * Must be called within a component function.
4
- *
5
- * @param {any} initial - The initial value for the state
6
- * @returns {NixState} A reactive state object with value getter/setter and subscription methods
7
- *
8
- * @typedef {Object} NixState
9
- * @property {any} value - Get/set the current state value. Getting tracks the dependency, setting triggers subscribers.
10
- * @property {(fn: Function) => Function} subscribe - Subscribe to state changes. Returns unsubscribe function.
11
- * @property {() => void} cleanup - Cleanup all subscriptions to prevent memory leaks
12
- * @property {() => number} getSubscriberCount - Get number of active subscribers (debugging)
13
- * @property {() => boolean} isDestroyed - Check if state has been destroyed
14
- * @property {() => Object} asReadOnly - Get read-only version of the state
15
- * @property {boolean} _isNixState - Internal flag to identify nixState objects
16
- *
17
- * @example
18
- * const Counter = () => {
19
- * const count = nixState(0);
20
- *
21
- * return h("div", {},
22
- * h("p", {}, "Count: ", count),
23
- * h("button", { "r-click": () => count.value++ }, "Increment")
24
- * );
25
- * };
26
- *
27
- * @example
28
- * // With cleanup
29
- * const MyComponent = () => {
30
- * const state = nixState(0);
31
- *
32
- * nixEffect(() => {
33
- * return () => state.cleanup(); // Clean up on unmount
34
- * }, []);
35
- * };
36
- *
37
- * @throws {Error} If called outside a component context
38
- */
39
- export function nixState(initial: any): NixState;
40
- /**
41
- * Creates a reactive state value that triggers component re-renders when changed.
42
- * Must be called within a component function.
43
- */
44
- export type NixState = {
45
- /**
46
- * - Get/set the current state value. Getting tracks the dependency, setting triggers subscribers.
47
- */
48
- value: any;
49
- /**
50
- * - Subscribe to state changes. Returns unsubscribe function.
51
- */
52
- subscribe: (fn: Function) => Function;
53
- /**
54
- * - Cleanup all subscriptions to prevent memory leaks
55
- */
56
- cleanup: () => void;
57
- /**
58
- * - Get number of active subscribers (debugging)
59
- */
60
- getSubscriberCount: () => number;
61
- /**
62
- * - Check if state has been destroyed
63
- */
64
- isDestroyed: () => boolean;
65
- /**
66
- * - Get read-only version of the state
67
- */
68
- asReadOnly: () => any;
69
- /**
70
- * - Internal flag to identify nixState objects
71
- */
72
- _isNixState: boolean;
73
- };
@@ -1,9 +0,0 @@
1
- /**
2
- * Reactive store hook with subscription support.
3
- * Memory-safe: cleans up subscribers on component unmount.
4
- *
5
- * @param {string} path - Optional path identifier
6
- * @param {any} initial - Initial value
7
- * @returns {Object} Reactive store object with get/set/subscribe
8
- */
9
- export function nixStore(path: string, initial: any): any;
@@ -1,16 +0,0 @@
1
- /**
2
- * Vite plugin for transforming Fynix JSX files.
3
- * Automatically transforms .js and .fnx files.
4
- *
5
- * @returns {Object} Vite plugin object
6
- *
7
- * @example
8
- * // vite.config.js
9
- * import { defineConfig } from 'vite';
10
- * import { fynix } from '@fynixorg/ui/plugins/vite-plugin-fynix';
11
- *
12
- * export default defineConfig({
13
- * plugins: [fynix()]
14
- * });
15
- */
16
- export function fynix(): any;
@@ -1,53 +0,0 @@
1
- /**
2
- * @typedef {Object} FynixRouter
3
- * @property {function(string=): void} mountRouter - Mount router to DOM element
4
- * @property {function(string, Object=): void} navigate - Navigate to path with props
5
- * @property {function(string, Object=): void} replace - Replace current path
6
- * @property {function(): void} back - Navigate back
7
- * @property {function(): void} cleanup - Cleanup router instance
8
- * @property {Object} routes - Static routes map
9
- * @property {Array} dynamicRoutes - Dynamic routes array
10
- */
11
- /**
12
- * Fynix Router Factory
13
- * @returns {FynixRouter}
14
- */
15
- export default function createFynix(): FynixRouter;
16
- /**
17
- * Helper: Set props for links
18
- */
19
- export function setLinkProps(key: any, props: any): void;
20
- /**
21
- * Helper: Clear link props
22
- */
23
- export function clearLinkProps(key: any): void;
24
- export type FynixRouter = {
25
- /**
26
- * - Mount router to DOM element
27
- */
28
- mountRouter: (arg0: string | undefined) => void;
29
- /**
30
- * - Navigate to path with props
31
- */
32
- navigate: (arg0: string, arg1: any | undefined) => void;
33
- /**
34
- * - Replace current path
35
- */
36
- replace: (arg0: string, arg1: any | undefined) => void;
37
- /**
38
- * - Navigate back
39
- */
40
- back: () => void;
41
- /**
42
- * - Cleanup router instance
43
- */
44
- cleanup: () => void;
45
- /**
46
- * - Static routes map
47
- */
48
- routes: any;
49
- /**
50
- * - Dynamic routes array
51
- */
52
- dynamicRoutes: any[];
53
- };
package/dist/runtime.d.ts DELETED
@@ -1,91 +0,0 @@
1
- /**
2
- * Create a virtual text node, supporting reactive state.
3
- * @param {string|number|object} text
4
- * @returns {object} vnode
5
- */
6
- export function createTextVNode(text: string | number | object): object;
7
- /**
8
- * Create a virtual DOM node (element, fragment, or component).
9
- * @param {string|function|symbol} type
10
- * @param {object} [props={}]
11
- * @param {...any} children
12
- * @returns {object} vnode
13
- */
14
- export function h(type: string | Function | symbol, props?: object, ...children: any[]): object;
15
- export namespace h {
16
- function Fragment({ children }: {
17
- children: any;
18
- }): any;
19
- }
20
- /**
21
- * Safely render a component
22
- * @param {function} Component
23
- * @param {object} props
24
- * @returns {object} vnode
25
- */
26
- export function renderComponent(Component: Function, props?: object): object;
27
- /**
28
- * Patch a parent DOM node based on oldVNode -> newVNode changes
29
- * @param {Node} parent
30
- * @param {object|string|number} newVNode
31
- * @param {object|string|number} oldVNode
32
- * @returns {Promise<void>}
33
- */
34
- export function patch(parent: Node, newVNode: object | string | number, oldVNode: object | string | number): Promise<void>;
35
- /**
36
- * Mount the app component to a root DOM node
37
- * @param {function} AppComponent
38
- * @param {string|Element} root
39
- * @param {boolean} [hydrate=false]
40
- * @param {object} [props={}]
41
- */
42
- export function mount(AppComponent: Function, root: string | Element, hydrate?: boolean, props?: object): void;
43
- /**
44
- * Symbol for text nodes
45
- * @type {symbol}
46
- */
47
- export const TEXT: symbol;
48
- /**
49
- * Symbol for fragments
50
- * @type {symbol}
51
- */
52
- export const Fragment: symbol;
53
- /**
54
- * Create a virtual DOM node (element, fragment, or component).
55
- * @param {string|function|symbol} type
56
- * @param {object} [props={}]
57
- * @param {...any} children
58
- * @returns {object} vnode
59
- */
60
- export function Fynix(type: string | Function | symbol, props?: object, ...children: any[]): object;
61
- export namespace Fynix {
62
- import Fragment = h.Fragment;
63
- export { Fragment };
64
- }
65
- import { nixState } from "./hooks/nixState";
66
- import { nixEffect } from "./hooks/nixEffect";
67
- import { nixStore } from "./hooks/nixStore";
68
- import { nixInterval } from "./hooks/nixInterval";
69
- import { nixAsync } from "./hooks/nixAsync";
70
- import { nixCallback } from "./hooks/nixCallback";
71
- import { nixComputed } from "./hooks/nixComputed";
72
- import { nixMemo } from "./hooks/nixMemo";
73
- import { nixDebounce } from "./hooks/nixDebounce";
74
- import { nixPrevious } from "./hooks/nixPrevious";
75
- import { nixLocalStorage } from "./hooks/nixLocalStorage";
76
- import { nixRef } from "./hooks/nixRef";
77
- import { nixLazy } from "./hooks/nixLazy.js";
78
- import { Suspense } from "./hooks/nixLazy.js";
79
- import { nixForm } from "./hooks/nixForm.js";
80
- import { nixAsyncCached } from "./hooks/nixAsyncCache";
81
- import { nixAsyncDebounce } from "./hooks/nixAsyncDebounce";
82
- import { nixAsyncQuery } from "./hooks/nixAsyncQuery";
83
- import { nixEffectAlways } from "./hooks/nixEffect";
84
- import { nixEffectOnce } from "./hooks/nixEffect";
85
- import { nixFormAsync } from "./hooks/nixFormAsync";
86
- import { nixLazyAsync } from "./hooks/nixLazyAsync";
87
- import { nixLazyFormAsync } from "./hooks/nixLazyFormAsync";
88
- import { Path } from "./custom/index.js";
89
- import { Button } from "./custom/index.js";
90
- import createFynix from "./router/router.js";
91
- export { nixState, nixEffect, nixStore, nixInterval, nixAsync, nixCallback, nixComputed, nixMemo, nixDebounce, nixPrevious, nixLocalStorage, nixRef, nixLazy, Suspense, nixForm, nixAsyncCached, nixAsyncDebounce, nixAsyncQuery, nixEffectAlways, nixEffectOnce, nixFormAsync, nixLazyAsync, nixLazyFormAsync, Path, Button, createFynix };