fynixui 1.0.10 → 1.0.12
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/custom/DataTable.js +1 -0
- package/dist/custom/button.js +241 -1
- package/dist/custom/index.js +1 -1
- package/dist/error/errorOverlay.js +1 -1
- package/dist/hooks/nixFor.js +6 -4
- package/dist/package.json +34 -37
- package/dist/plugins/vite-plugin-res.js +26 -4
- package/dist/router/router.js +108 -217
- package/dist/runtime.js +1251 -1028
- package/{dist → dist-types}/context/context.d.ts +1 -2
- package/dist-types/custom/DataTable.d.ts +0 -0
- package/dist-types/custom/button.d.ts +35 -0
- package/dist-types/custom/index.d.ts +2 -0
- package/{dist → dist-types}/custom/path.d.ts +0 -1
- package/{dist → dist-types}/error/errorOverlay.d.ts +0 -1
- package/{dist → dist-types}/fynix/index.d.ts +0 -1
- package/{dist → dist-types}/hooks/nixAsync.d.ts +0 -1
- package/{dist → dist-types}/hooks/nixAsyncCache.d.ts +0 -1
- package/{dist → dist-types}/hooks/nixAsyncDebounce.d.ts +0 -1
- package/{dist → dist-types}/hooks/nixAsyncQuery.d.ts +0 -1
- package/{dist → dist-types}/hooks/nixCallback.d.ts +0 -1
- package/{dist → dist-types}/hooks/nixComputed.d.ts +0 -1
- package/{dist → dist-types}/hooks/nixDebounce.d.ts +0 -1
- package/{dist → dist-types}/hooks/nixEffect.d.ts +0 -1
- package/{dist → dist-types}/hooks/nixFor.d.ts +0 -1
- package/{dist → dist-types}/hooks/nixForm.d.ts +0 -1
- package/{dist → dist-types}/hooks/nixFormAsync.d.ts +0 -1
- package/{dist → dist-types}/hooks/nixInterval.d.ts +0 -1
- package/{dist → dist-types}/hooks/nixLazy.d.ts +0 -1
- package/{dist → dist-types}/hooks/nixLazyAsync.d.ts +0 -1
- package/{dist → dist-types}/hooks/nixLazyFormAsync.d.ts +0 -1
- package/{dist → dist-types}/hooks/nixLocalStorage.d.ts +0 -1
- package/{dist → dist-types}/hooks/nixMemo.d.ts +0 -1
- package/{dist → dist-types}/hooks/nixPrevious.d.ts +0 -1
- package/{dist → dist-types}/hooks/nixRef.d.ts +0 -1
- package/{dist → dist-types}/hooks/nixState.d.ts +0 -1
- package/{dist → dist-types}/hooks/nixStore.d.ts +0 -1
- package/{dist → dist-types}/plugins/vite-plugin-res.d.ts +0 -1
- package/{dist → dist-types}/router/router.d.ts +14 -11
- package/dist-types/runtime.d.ts +200 -0
- package/package.json +43 -41
- package/dist/context/context.d.ts.map +0 -1
- package/dist/context/context.js.map +0 -7
- package/dist/custom/button.d.ts +0 -2
- package/dist/custom/button.d.ts.map +0 -1
- package/dist/custom/button.js.map +0 -7
- package/dist/custom/index.d.ts +0 -3
- package/dist/custom/index.d.ts.map +0 -1
- package/dist/custom/index.js.map +0 -7
- package/dist/custom/path.d.ts.map +0 -1
- package/dist/custom/path.js.map +0 -7
- package/dist/error/errorOverlay.d.ts.map +0 -1
- package/dist/error/errorOverlay.js.map +0 -7
- package/dist/fynix/index.d.ts.map +0 -1
- package/dist/fynix/index.js.map +0 -7
- package/dist/hooks/nixAsync.d.ts.map +0 -1
- package/dist/hooks/nixAsync.js.map +0 -7
- package/dist/hooks/nixAsyncCache.d.ts.map +0 -1
- package/dist/hooks/nixAsyncCache.js.map +0 -7
- package/dist/hooks/nixAsyncDebounce.d.ts.map +0 -1
- package/dist/hooks/nixAsyncDebounce.js.map +0 -7
- package/dist/hooks/nixAsyncQuery.d.ts.map +0 -1
- package/dist/hooks/nixAsyncQuery.js.map +0 -7
- package/dist/hooks/nixCallback.d.ts.map +0 -1
- package/dist/hooks/nixCallback.js.map +0 -7
- package/dist/hooks/nixComputed.d.ts.map +0 -1
- package/dist/hooks/nixComputed.js.map +0 -7
- package/dist/hooks/nixDebounce.d.ts.map +0 -1
- package/dist/hooks/nixDebounce.js.map +0 -7
- package/dist/hooks/nixEffect.d.ts.map +0 -1
- package/dist/hooks/nixEffect.js.map +0 -7
- package/dist/hooks/nixFor.d.ts.map +0 -1
- package/dist/hooks/nixFor.js.map +0 -7
- package/dist/hooks/nixForm.d.ts.map +0 -1
- package/dist/hooks/nixForm.js.map +0 -7
- package/dist/hooks/nixFormAsync.d.ts.map +0 -1
- package/dist/hooks/nixFormAsync.js.map +0 -7
- package/dist/hooks/nixInterval.d.ts.map +0 -1
- package/dist/hooks/nixInterval.js.map +0 -7
- package/dist/hooks/nixLazy.d.ts.map +0 -1
- package/dist/hooks/nixLazy.js.map +0 -7
- package/dist/hooks/nixLazyAsync.d.ts.map +0 -1
- package/dist/hooks/nixLazyAsync.js.map +0 -7
- package/dist/hooks/nixLazyFormAsync.d.ts.map +0 -1
- package/dist/hooks/nixLazyFormAsync.js.map +0 -7
- package/dist/hooks/nixLocalStorage.d.ts.map +0 -1
- package/dist/hooks/nixLocalStorage.js.map +0 -7
- package/dist/hooks/nixMemo.d.ts.map +0 -1
- package/dist/hooks/nixMemo.js.map +0 -7
- package/dist/hooks/nixPrevious.d.ts.map +0 -1
- package/dist/hooks/nixPrevious.js.map +0 -7
- package/dist/hooks/nixRef.d.ts.map +0 -1
- package/dist/hooks/nixRef.js.map +0 -7
- package/dist/hooks/nixState.d.ts.map +0 -1
- package/dist/hooks/nixState.js.map +0 -7
- package/dist/hooks/nixStore.d.ts.map +0 -1
- package/dist/hooks/nixStore.js.map +0 -7
- package/dist/plugins/vite-plugin-res.d.ts.map +0 -1
- package/dist/plugins/vite-plugin-res.js.map +0 -7
- package/dist/router/router.d.ts.map +0 -1
- package/dist/router/router.js.map +0 -7
- package/dist/runtime.d.ts +0 -124
- package/dist/runtime.d.ts.map +0 -1
- package/dist/runtime.js.map +0 -7
|
@@ -4,7 +4,7 @@ export interface ComponentContext {
|
|
|
4
4
|
effects: Function[];
|
|
5
5
|
cleanups: Function[];
|
|
6
6
|
stateCleanups?: Function[];
|
|
7
|
-
_vnode: object;
|
|
7
|
+
_vnode: object | null;
|
|
8
8
|
_accessedStates: Set<any>;
|
|
9
9
|
_subscriptions: Set<any>;
|
|
10
10
|
_subscriptionCleanups: Function[];
|
|
@@ -16,4 +16,3 @@ export interface ComponentContext {
|
|
|
16
16
|
}
|
|
17
17
|
export declare let activeContext: ComponentContext | null;
|
|
18
18
|
export declare function setActiveContext(ctx: ComponentContext | null): void;
|
|
19
|
-
//# sourceMappingURL=context.d.ts.map
|
|
File without changes
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
type ButtonVariant = "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "light" | "dark" | "link";
|
|
2
|
+
type ButtonSize = "sm" | "md" | "lg";
|
|
3
|
+
interface ButtonProps {
|
|
4
|
+
value?: string;
|
|
5
|
+
type?: "button" | "submit" | "reset";
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
variant?: ButtonVariant;
|
|
8
|
+
size?: ButtonSize;
|
|
9
|
+
outline?: boolean;
|
|
10
|
+
style?: Record<string, string>;
|
|
11
|
+
class?: string;
|
|
12
|
+
rc?: string;
|
|
13
|
+
"r-click"?: (this: HTMLElement, event: MouseEvent) => void;
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}
|
|
16
|
+
export declare function Button({ value, ...props }: ButtonProps): any;
|
|
17
|
+
export declare const PrimaryButton: (p: ButtonProps) => any;
|
|
18
|
+
export declare const SecondaryButton: (p: ButtonProps) => any;
|
|
19
|
+
export declare const SuccessButton: (p: ButtonProps) => any;
|
|
20
|
+
export declare const DangerButton: (p: ButtonProps) => any;
|
|
21
|
+
export declare const WarningButton: (p: ButtonProps) => any;
|
|
22
|
+
export declare const InfoButton: (p: ButtonProps) => any;
|
|
23
|
+
export declare const LightButton: (p: ButtonProps) => any;
|
|
24
|
+
export declare const DarkButton: (p: ButtonProps) => any;
|
|
25
|
+
export declare const LinkButton: (p: ButtonProps) => any;
|
|
26
|
+
export declare const OutlinePrimaryButton: (p: ButtonProps) => any;
|
|
27
|
+
export declare const OutlineSecondaryButton: (p: ButtonProps) => any;
|
|
28
|
+
export declare const OutlineSuccessButton: (p: ButtonProps) => any;
|
|
29
|
+
export declare const OutlineDangerButton: (p: ButtonProps) => any;
|
|
30
|
+
export declare const OutlineWarningButton: (p: ButtonProps) => any;
|
|
31
|
+
export declare const OutlineInfoButton: (p: ButtonProps) => any;
|
|
32
|
+
export declare const OutlineLightButton: (p: ButtonProps) => any;
|
|
33
|
+
export declare const OutlineDarkButton: (p: ButtonProps) => any;
|
|
34
|
+
export declare const OutlineLinkButton: (p: ButtonProps) => any;
|
|
35
|
+
export {};
|
|
@@ -8,4 +8,3 @@ export type DebouncedFunction<T extends (...args: any[]) => any> = ((...args: Pa
|
|
|
8
8
|
cancel: () => void;
|
|
9
9
|
};
|
|
10
10
|
export declare function nixDebounce<T extends (...args: any[]) => any>(fn: T, delay?: number, options?: NixDebounceOptions): DebouncedFunction<T>;
|
|
11
|
-
//# sourceMappingURL=nixDebounce.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export declare function nixEffect(effect: () => void | (() => void), deps?: any[]): void;
|
|
2
2
|
export declare function nixEffectOnce(effect: () => void | (() => void)): void;
|
|
3
3
|
export declare function nixEffectAlways(effect: () => void | (() => void)): void;
|
|
4
|
-
//# sourceMappingURL=nixEffect.d.ts.map
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
interface
|
|
1
|
+
interface LocationSignal {
|
|
2
2
|
path: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
layout?: ComponentFunction;
|
|
6
|
-
keepAlive?: boolean;
|
|
3
|
+
params: Record<string, string>;
|
|
4
|
+
search: string;
|
|
7
5
|
}
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
declare class LocationManager {
|
|
7
|
+
private current;
|
|
8
|
+
private subscribers;
|
|
9
|
+
get value(): LocationSignal;
|
|
10
|
+
set value(newLocation: LocationSignal);
|
|
11
|
+
subscribe(callback: (location: LocationSignal) => void): () => void;
|
|
10
12
|
}
|
|
13
|
+
export declare const location: LocationManager;
|
|
11
14
|
interface RouteComponent {
|
|
12
15
|
(props: any): any;
|
|
13
16
|
props?: Record<string, any> | (() => Record<string, any>);
|
|
@@ -28,6 +31,9 @@ interface DynamicRoute {
|
|
|
28
31
|
component: RouteComponent;
|
|
29
32
|
params: string[];
|
|
30
33
|
}
|
|
34
|
+
interface FynixRouterOptions {
|
|
35
|
+
lazy?: boolean;
|
|
36
|
+
}
|
|
31
37
|
interface FynixRouter {
|
|
32
38
|
mountRouter(selector?: string): void;
|
|
33
39
|
navigate(path: string, props?: Record<string, any>): void;
|
|
@@ -36,13 +42,10 @@ interface FynixRouter {
|
|
|
36
42
|
cleanup(): void;
|
|
37
43
|
routes: Record<string, RouteComponent>;
|
|
38
44
|
dynamicRoutes: DynamicRoute[];
|
|
39
|
-
preloadRoute?(path: string): Promise<void>;
|
|
40
45
|
clearCache?(): void;
|
|
41
|
-
enableNestedRouting?(routes: NestedRoute[]): void;
|
|
42
46
|
}
|
|
43
|
-
declare function createFynix(): FynixRouter;
|
|
47
|
+
declare function createFynix(options?: FynixRouterOptions): FynixRouter;
|
|
44
48
|
export { createFynix };
|
|
45
49
|
export default createFynix;
|
|
46
50
|
export declare function setLinkProps(key: string, props: Record<string, any>): void;
|
|
47
51
|
export declare function clearLinkProps(key: string): void;
|
|
48
|
-
//# sourceMappingURL=router.d.ts.map
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
type Priority = "immediate" | "high" | "normal" | "low" | "idle";
|
|
2
|
+
type EffectTag = "PLACEMENT" | "UPDATE" | "DELETION" | null;
|
|
3
|
+
interface FynixFiber {
|
|
4
|
+
type: string | symbol | ComponentFunction;
|
|
5
|
+
props: VNodeProps;
|
|
6
|
+
key: string | number | null;
|
|
7
|
+
child: FynixFiber | null;
|
|
8
|
+
sibling: FynixFiber | null;
|
|
9
|
+
parent: FynixFiber | null;
|
|
10
|
+
alternate: FynixFiber | null;
|
|
11
|
+
effectTag: EffectTag;
|
|
12
|
+
updatePriority: Priority;
|
|
13
|
+
_domNode: Node | null;
|
|
14
|
+
ctx: ComponentContext | null;
|
|
15
|
+
_vnode: VNode | null;
|
|
16
|
+
}
|
|
17
|
+
export type VNodeType = string | symbol | ComponentFunction;
|
|
18
|
+
export type VNodeChild = VNode | string | number | boolean | null | undefined;
|
|
19
|
+
export type VNodeChildren = VNodeChild | VNodeChild[];
|
|
20
|
+
export interface VNodeProps {
|
|
21
|
+
children?: VNode[];
|
|
22
|
+
key?: string | number | null;
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
}
|
|
25
|
+
export interface VNode {
|
|
26
|
+
type: VNodeType;
|
|
27
|
+
props: VNodeProps;
|
|
28
|
+
key: string | number | null;
|
|
29
|
+
_domNode?: Node | null;
|
|
30
|
+
_fiber?: FynixFiber | null;
|
|
31
|
+
_rendered?: VNode | null;
|
|
32
|
+
_fragmentStart?: Node | null;
|
|
33
|
+
_fragmentEnd?: Node | null;
|
|
34
|
+
_state?: ReactiveState<any> | null;
|
|
35
|
+
_cleanup?: (() => void) | null;
|
|
36
|
+
}
|
|
37
|
+
export interface ComponentFunction {
|
|
38
|
+
(props: any): VNode | Promise<VNode>;
|
|
39
|
+
}
|
|
40
|
+
interface ReactiveState<T> {
|
|
41
|
+
value: T;
|
|
42
|
+
_isNixState: boolean;
|
|
43
|
+
subscribe(callback: () => void): () => void;
|
|
44
|
+
}
|
|
45
|
+
interface ComponentContext {
|
|
46
|
+
hooks: any[];
|
|
47
|
+
hookIndex: number;
|
|
48
|
+
effects: Array<() => void | (() => void)>;
|
|
49
|
+
cleanups: Array<() => void>;
|
|
50
|
+
_vnode: VNode | null;
|
|
51
|
+
_fiber: FynixFiber | null;
|
|
52
|
+
_accessedStates: Set<ReactiveState<any>>;
|
|
53
|
+
_subscriptions: Set<ReactiveState<any>>;
|
|
54
|
+
_subscriptionCleanups: Array<() => void>;
|
|
55
|
+
version: number;
|
|
56
|
+
rerender: (() => void) | null;
|
|
57
|
+
Component: ComponentFunction;
|
|
58
|
+
_isMounted: boolean;
|
|
59
|
+
_isRerendering: boolean;
|
|
60
|
+
_rerenderTimeout: ReturnType<typeof setTimeout> | null;
|
|
61
|
+
}
|
|
62
|
+
import { Button, Path } from "./custom/index";
|
|
63
|
+
import { nixAsync } from "./hooks/nixAsync";
|
|
64
|
+
import { nixAsyncCached } from "./hooks/nixAsyncCache";
|
|
65
|
+
import { nixAsyncDebounce } from "./hooks/nixAsyncDebounce";
|
|
66
|
+
import { nixAsyncQuery } from "./hooks/nixAsyncQuery";
|
|
67
|
+
import { nixCallback } from "./hooks/nixCallback";
|
|
68
|
+
import { nixComputed } from "./hooks/nixComputed";
|
|
69
|
+
import { nixDebounce } from "./hooks/nixDebounce";
|
|
70
|
+
import { nixEffect, nixEffectAlways, nixEffectOnce } from "./hooks/nixEffect";
|
|
71
|
+
import { nixForm } from "./hooks/nixForm";
|
|
72
|
+
import { nixFormAsync } from "./hooks/nixFormAsync";
|
|
73
|
+
import { nixInterval } from "./hooks/nixInterval";
|
|
74
|
+
import { nixLazy, Suspense } from "./hooks/nixLazy";
|
|
75
|
+
import { nixLazyAsync } from "./hooks/nixLazyAsync";
|
|
76
|
+
import { nixLazyFormAsync } from "./hooks/nixLazyFormAsync";
|
|
77
|
+
import { nixLocalStorage } from "./hooks/nixLocalStorage";
|
|
78
|
+
import { nixMemo } from "./hooks/nixMemo";
|
|
79
|
+
import { nixPrevious } from "./hooks/nixPrevious";
|
|
80
|
+
import { nixRef } from "./hooks/nixRef";
|
|
81
|
+
import { nixState } from "./hooks/nixState";
|
|
82
|
+
import { nixStore } from "./hooks/nixStore";
|
|
83
|
+
import createFynix from "./router/router";
|
|
84
|
+
type AsyncBatchingStore = {
|
|
85
|
+
isBatching: boolean;
|
|
86
|
+
callbacks: Array<() => void>;
|
|
87
|
+
};
|
|
88
|
+
export declare function batchUpdates(fn: () => void): void;
|
|
89
|
+
export declare function isCurrentlyBatching(): boolean;
|
|
90
|
+
export interface ErrorHandlerConfig {
|
|
91
|
+
onRenderError?: (error: Error, component?: ComponentFunction) => boolean;
|
|
92
|
+
onAsyncError?: (error: Error) => boolean;
|
|
93
|
+
onCommitError?: (error: Error, fiber?: FynixFiber) => boolean;
|
|
94
|
+
logToConsole?: boolean;
|
|
95
|
+
showOverlay?: boolean;
|
|
96
|
+
}
|
|
97
|
+
export declare function configureErrorHandling(config: Partial<ErrorHandlerConfig>): void;
|
|
98
|
+
export declare function getErrorConfig(): ErrorHandlerConfig;
|
|
99
|
+
export interface PerformanceProfileConfig {
|
|
100
|
+
enabled?: boolean;
|
|
101
|
+
logMeasurements?: boolean;
|
|
102
|
+
slowRenderThreshold?: number;
|
|
103
|
+
onMetrics?: (metrics: PerformanceMetrics) => void;
|
|
104
|
+
}
|
|
105
|
+
export interface PerformanceMetrics {
|
|
106
|
+
renderTime: number;
|
|
107
|
+
commitTime: number;
|
|
108
|
+
totalTime: number;
|
|
109
|
+
updateCount: number;
|
|
110
|
+
fiberCount: number;
|
|
111
|
+
componentName?: string;
|
|
112
|
+
timestamp: number;
|
|
113
|
+
}
|
|
114
|
+
export declare function enablePerformanceProfiling(config: PerformanceProfileConfig): void;
|
|
115
|
+
export declare function getPerfConfig(): PerformanceProfileConfig;
|
|
116
|
+
export declare const TEXT: unique symbol;
|
|
117
|
+
export declare const Fragment: unique symbol;
|
|
118
|
+
export declare const BOOLEAN_ATTRS: Set<string>;
|
|
119
|
+
export declare const DOM_PROPERTIES: Set<string>;
|
|
120
|
+
export declare const DANGEROUS_HTML_PROPS: Set<string>;
|
|
121
|
+
export declare const DANGEROUS_PROTOCOLS: Set<string>;
|
|
122
|
+
export declare const SAFE_PROTOCOLS: Set<string>;
|
|
123
|
+
export declare function createTextVNode(text: any): VNode;
|
|
124
|
+
export declare function h(type: VNodeType, props?: VNodeProps | null, ...children: VNodeChildren[]): VNode;
|
|
125
|
+
export declare namespace h {
|
|
126
|
+
var Fragment: ({ children }: {
|
|
127
|
+
children?: VNode[];
|
|
128
|
+
}) => VNode[];
|
|
129
|
+
}
|
|
130
|
+
export declare const Fynix: typeof h;
|
|
131
|
+
declare class FiberReconciler {
|
|
132
|
+
private wipRoot;
|
|
133
|
+
private nextWork;
|
|
134
|
+
private deletions;
|
|
135
|
+
mountRoot(vnode: VNode, container: Element): void;
|
|
136
|
+
scheduleUpdate(fiber: FynixFiber, priority?: Priority): void;
|
|
137
|
+
private scheduleRender;
|
|
138
|
+
private workLoop;
|
|
139
|
+
private performWork;
|
|
140
|
+
private updateComponentFiber;
|
|
141
|
+
private updateHostFiber;
|
|
142
|
+
private reconcileChildren;
|
|
143
|
+
private commitRoot;
|
|
144
|
+
private commitWork;
|
|
145
|
+
private commitDeletion;
|
|
146
|
+
private unmountFiber;
|
|
147
|
+
private runEffects;
|
|
148
|
+
private vnodeToFiber;
|
|
149
|
+
private cloneFiber;
|
|
150
|
+
private findDomParent;
|
|
151
|
+
private findNearestDom;
|
|
152
|
+
private findNextDomSibling;
|
|
153
|
+
}
|
|
154
|
+
declare const fiberReconciler: FiberReconciler;
|
|
155
|
+
export declare const __debug__: {
|
|
156
|
+
getSchedulerState: () => {
|
|
157
|
+
isScheduled: boolean;
|
|
158
|
+
isWorking: boolean;
|
|
159
|
+
currentPriority: Priority;
|
|
160
|
+
queueSize: number;
|
|
161
|
+
batchedUpdatesSize: number;
|
|
162
|
+
idCounter: number;
|
|
163
|
+
};
|
|
164
|
+
getQueueMetrics: () => {
|
|
165
|
+
pending: number;
|
|
166
|
+
batched: number;
|
|
167
|
+
isActive: boolean;
|
|
168
|
+
currentPriority: Priority;
|
|
169
|
+
};
|
|
170
|
+
getFiberReconciler: () => FiberReconciler;
|
|
171
|
+
getErrorConfig: () => ErrorHandlerConfig;
|
|
172
|
+
getPerfConfig: () => PerformanceProfileConfig;
|
|
173
|
+
collectGarbage: () => void;
|
|
174
|
+
clearSchedulerQueue: () => void;
|
|
175
|
+
getAsyncContext: () => {
|
|
176
|
+
currentBatchStore: AsyncBatchingStore | null;
|
|
177
|
+
batchingStorageAvailable: boolean;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
declare class HierarchicalStore {
|
|
181
|
+
private root;
|
|
182
|
+
private selectorCache;
|
|
183
|
+
private stateSnapshot;
|
|
184
|
+
select<T>(selector: (state: any) => T): T;
|
|
185
|
+
optimisticUpdate<T>(path: string, update: T, onRollback?: () => void): {
|
|
186
|
+
commit: () => void;
|
|
187
|
+
rollback: () => void;
|
|
188
|
+
};
|
|
189
|
+
private set;
|
|
190
|
+
}
|
|
191
|
+
export declare function useHierarchicalStore(): HierarchicalStore;
|
|
192
|
+
declare function mount(AppComponent: ComponentFunction, root: string | Element, props?: any): void;
|
|
193
|
+
declare function hydrate(AppComponent: ComponentFunction, root: string | Element, props?: any): void;
|
|
194
|
+
export declare function memo(Component: ComponentFunction, propsAreEqual?: (oldProps: any, newProps: any) => boolean): ComponentFunction;
|
|
195
|
+
export declare function renderComponent(Component: ComponentFunction, props?: any): VNode;
|
|
196
|
+
export declare function ErrorBoundary({ fallback, children, }: {
|
|
197
|
+
fallback: (error: Error) => VNode;
|
|
198
|
+
children?: VNode[];
|
|
199
|
+
}): VNode;
|
|
200
|
+
export { Button, createFynix, nixAsync, nixAsyncCached, nixAsyncDebounce, nixAsyncQuery, nixCallback, nixComputed, nixDebounce, nixEffect, nixEffectAlways, nixEffectOnce, nixForm, nixFormAsync, nixInterval, nixLazy, nixLazyAsync, nixLazyFormAsync, nixLocalStorage, nixMemo, nixPrevious, nixRef, nixState, nixStore, Path, Suspense, mount, hydrate, fiberReconciler, };
|