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.
Files changed (104) hide show
  1. package/dist/custom/DataTable.js +1 -0
  2. package/dist/custom/button.js +241 -1
  3. package/dist/custom/index.js +1 -1
  4. package/dist/error/errorOverlay.js +1 -1
  5. package/dist/hooks/nixFor.js +6 -4
  6. package/dist/package.json +34 -37
  7. package/dist/plugins/vite-plugin-res.js +26 -4
  8. package/dist/router/router.js +108 -217
  9. package/dist/runtime.js +1251 -1028
  10. package/{dist → dist-types}/context/context.d.ts +1 -2
  11. package/dist-types/custom/DataTable.d.ts +0 -0
  12. package/dist-types/custom/button.d.ts +35 -0
  13. package/dist-types/custom/index.d.ts +2 -0
  14. package/{dist → dist-types}/custom/path.d.ts +0 -1
  15. package/{dist → dist-types}/error/errorOverlay.d.ts +0 -1
  16. package/{dist → dist-types}/fynix/index.d.ts +0 -1
  17. package/{dist → dist-types}/hooks/nixAsync.d.ts +0 -1
  18. package/{dist → dist-types}/hooks/nixAsyncCache.d.ts +0 -1
  19. package/{dist → dist-types}/hooks/nixAsyncDebounce.d.ts +0 -1
  20. package/{dist → dist-types}/hooks/nixAsyncQuery.d.ts +0 -1
  21. package/{dist → dist-types}/hooks/nixCallback.d.ts +0 -1
  22. package/{dist → dist-types}/hooks/nixComputed.d.ts +0 -1
  23. package/{dist → dist-types}/hooks/nixDebounce.d.ts +0 -1
  24. package/{dist → dist-types}/hooks/nixEffect.d.ts +0 -1
  25. package/{dist → dist-types}/hooks/nixFor.d.ts +0 -1
  26. package/{dist → dist-types}/hooks/nixForm.d.ts +0 -1
  27. package/{dist → dist-types}/hooks/nixFormAsync.d.ts +0 -1
  28. package/{dist → dist-types}/hooks/nixInterval.d.ts +0 -1
  29. package/{dist → dist-types}/hooks/nixLazy.d.ts +0 -1
  30. package/{dist → dist-types}/hooks/nixLazyAsync.d.ts +0 -1
  31. package/{dist → dist-types}/hooks/nixLazyFormAsync.d.ts +0 -1
  32. package/{dist → dist-types}/hooks/nixLocalStorage.d.ts +0 -1
  33. package/{dist → dist-types}/hooks/nixMemo.d.ts +0 -1
  34. package/{dist → dist-types}/hooks/nixPrevious.d.ts +0 -1
  35. package/{dist → dist-types}/hooks/nixRef.d.ts +0 -1
  36. package/{dist → dist-types}/hooks/nixState.d.ts +0 -1
  37. package/{dist → dist-types}/hooks/nixStore.d.ts +0 -1
  38. package/{dist → dist-types}/plugins/vite-plugin-res.d.ts +0 -1
  39. package/{dist → dist-types}/router/router.d.ts +14 -11
  40. package/dist-types/runtime.d.ts +200 -0
  41. package/package.json +43 -41
  42. package/dist/context/context.d.ts.map +0 -1
  43. package/dist/context/context.js.map +0 -7
  44. package/dist/custom/button.d.ts +0 -2
  45. package/dist/custom/button.d.ts.map +0 -1
  46. package/dist/custom/button.js.map +0 -7
  47. package/dist/custom/index.d.ts +0 -3
  48. package/dist/custom/index.d.ts.map +0 -1
  49. package/dist/custom/index.js.map +0 -7
  50. package/dist/custom/path.d.ts.map +0 -1
  51. package/dist/custom/path.js.map +0 -7
  52. package/dist/error/errorOverlay.d.ts.map +0 -1
  53. package/dist/error/errorOverlay.js.map +0 -7
  54. package/dist/fynix/index.d.ts.map +0 -1
  55. package/dist/fynix/index.js.map +0 -7
  56. package/dist/hooks/nixAsync.d.ts.map +0 -1
  57. package/dist/hooks/nixAsync.js.map +0 -7
  58. package/dist/hooks/nixAsyncCache.d.ts.map +0 -1
  59. package/dist/hooks/nixAsyncCache.js.map +0 -7
  60. package/dist/hooks/nixAsyncDebounce.d.ts.map +0 -1
  61. package/dist/hooks/nixAsyncDebounce.js.map +0 -7
  62. package/dist/hooks/nixAsyncQuery.d.ts.map +0 -1
  63. package/dist/hooks/nixAsyncQuery.js.map +0 -7
  64. package/dist/hooks/nixCallback.d.ts.map +0 -1
  65. package/dist/hooks/nixCallback.js.map +0 -7
  66. package/dist/hooks/nixComputed.d.ts.map +0 -1
  67. package/dist/hooks/nixComputed.js.map +0 -7
  68. package/dist/hooks/nixDebounce.d.ts.map +0 -1
  69. package/dist/hooks/nixDebounce.js.map +0 -7
  70. package/dist/hooks/nixEffect.d.ts.map +0 -1
  71. package/dist/hooks/nixEffect.js.map +0 -7
  72. package/dist/hooks/nixFor.d.ts.map +0 -1
  73. package/dist/hooks/nixFor.js.map +0 -7
  74. package/dist/hooks/nixForm.d.ts.map +0 -1
  75. package/dist/hooks/nixForm.js.map +0 -7
  76. package/dist/hooks/nixFormAsync.d.ts.map +0 -1
  77. package/dist/hooks/nixFormAsync.js.map +0 -7
  78. package/dist/hooks/nixInterval.d.ts.map +0 -1
  79. package/dist/hooks/nixInterval.js.map +0 -7
  80. package/dist/hooks/nixLazy.d.ts.map +0 -1
  81. package/dist/hooks/nixLazy.js.map +0 -7
  82. package/dist/hooks/nixLazyAsync.d.ts.map +0 -1
  83. package/dist/hooks/nixLazyAsync.js.map +0 -7
  84. package/dist/hooks/nixLazyFormAsync.d.ts.map +0 -1
  85. package/dist/hooks/nixLazyFormAsync.js.map +0 -7
  86. package/dist/hooks/nixLocalStorage.d.ts.map +0 -1
  87. package/dist/hooks/nixLocalStorage.js.map +0 -7
  88. package/dist/hooks/nixMemo.d.ts.map +0 -1
  89. package/dist/hooks/nixMemo.js.map +0 -7
  90. package/dist/hooks/nixPrevious.d.ts.map +0 -1
  91. package/dist/hooks/nixPrevious.js.map +0 -7
  92. package/dist/hooks/nixRef.d.ts.map +0 -1
  93. package/dist/hooks/nixRef.js.map +0 -7
  94. package/dist/hooks/nixState.d.ts.map +0 -1
  95. package/dist/hooks/nixState.js.map +0 -7
  96. package/dist/hooks/nixStore.d.ts.map +0 -1
  97. package/dist/hooks/nixStore.js.map +0 -7
  98. package/dist/plugins/vite-plugin-res.d.ts.map +0 -1
  99. package/dist/plugins/vite-plugin-res.js.map +0 -7
  100. package/dist/router/router.d.ts.map +0 -1
  101. package/dist/router/router.js.map +0 -7
  102. package/dist/runtime.d.ts +0 -124
  103. package/dist/runtime.d.ts.map +0 -1
  104. 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 {};
@@ -0,0 +1,2 @@
1
+ export { Button, PrimaryButton, SecondaryButton, SuccessButton, DangerButton, WarningButton, InfoButton, LightButton, DarkButton, LinkButton, } from "./button";
2
+ export { Path } from "./path";
@@ -11,4 +11,3 @@ export declare function Path({ to, value, props: routeProps, ...attrs }: {
11
11
  };
12
12
  [key: string]: any;
13
13
  }): any;
14
- //# sourceMappingURL=path.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export declare function showErrorOverlay(error: Error): void;
2
2
  export declare function removeErrorOverlay(): void;
3
- //# sourceMappingURL=errorOverlay.d.ts.map
@@ -3,4 +3,3 @@ export * from "../router/router.js";
3
3
  export { default as createFynix } from "../router/router.js";
4
4
  export { Fynix } from "../runtime.js";
5
5
  export { For } from "../hooks/nixFor.js";
6
- //# sourceMappingURL=index.d.ts.map
@@ -17,4 +17,3 @@ export declare function nixAsync<T>(promiseFactory: (signal: AbortSignal) => Pro
17
17
  cleanup: () => void;
18
18
  getCallId: () => number;
19
19
  };
20
- //# sourceMappingURL=nixAsync.d.ts.map
@@ -16,4 +16,3 @@ export declare function nixAsyncCached(key: any, promiseFactory: () => Promise<a
16
16
  cancel: () => void;
17
17
  clearCache: () => void;
18
18
  };
19
- //# sourceMappingURL=nixAsyncCache.d.ts.map
@@ -19,4 +19,3 @@ export declare function nixAsyncDebounce(promiseFactory: () => Promise<any>, opt
19
19
  run: () => void | Promise<any>;
20
20
  cancel: () => void;
21
21
  };
22
- //# sourceMappingURL=nixAsyncDebounce.d.ts.map
@@ -13,4 +13,3 @@ export declare function nixAsyncQuery<T>(key: string, queryFn: (signal: AbortSig
13
13
  run: () => Promise<void>;
14
14
  cancel: () => void;
15
15
  };
16
- //# sourceMappingURL=nixAsyncQuery.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function nixCallback<T extends (...args: any[]) => any>(fn: T, deps?: any[]): T;
2
- //# sourceMappingURL=nixCallback.d.ts.map
@@ -13,4 +13,3 @@ export declare function nixComputed<T>(computeFn: () => T): {
13
13
  _isNixState: true;
14
14
  _isComputed: true;
15
15
  };
16
- //# sourceMappingURL=nixComputed.d.ts.map
@@ -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
@@ -10,4 +10,3 @@ interface ForProps<T> {
10
10
  }
11
11
  export declare function For<T>(props: ForProps<T>): VNode;
12
12
  export {};
13
- //# sourceMappingURL=nixFor.d.ts.map
@@ -30,4 +30,3 @@ type FormState<T> = {
30
30
  };
31
31
  export declare function nixForm<T extends Record<string, any> = Record<string, any>>(initialValues?: T, validationRules?: ValidationRules<T>): FormState<T>;
32
32
  export {};
33
- //# sourceMappingURL=nixForm.d.ts.map
@@ -39,4 +39,3 @@ export declare function nixFormAsync<T extends Record<string, any> = Record<stri
39
39
  cache?: boolean;
40
40
  }): FormAsyncState<T, D, E>;
41
41
  export {};
42
- //# sourceMappingURL=nixFormAsync.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function nixInterval(fn: () => void, ms: number, signal?: AbortSignal): () => void;
2
- //# sourceMappingURL=nixInterval.d.ts.map
@@ -5,4 +5,3 @@ export declare function Suspense<T = any>({ fallback, children, }: {
5
5
  fallback: any;
6
6
  children: () => T;
7
7
  }): T | any;
8
- //# sourceMappingURL=nixLazy.d.ts.map
@@ -7,4 +7,3 @@ export declare function Suspense<T = any>({ fallback, children, }: {
7
7
  fallback: any;
8
8
  children: () => T;
9
9
  }): T | any;
10
- //# sourceMappingURL=nixLazyAsync.d.ts.map
@@ -47,4 +47,3 @@ export declare function nixLazyFormAsync<T extends Record<string, any> = Record<
47
47
  retry?: number;
48
48
  }): LazyFormAsyncReturn<T, D, E, P>;
49
49
  export {};
50
- //# sourceMappingURL=nixLazyFormAsync.d.ts.map
@@ -5,4 +5,3 @@ export declare function nixLocalStorage<T>(key: string, initial: T): {
5
5
  getSize: () => number;
6
6
  isValid: () => boolean;
7
7
  };
8
- //# sourceMappingURL=nixLocalStorage.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function nixMemo<T>(factory: () => T, deps?: any[]): T | undefined;
2
- //# sourceMappingURL=nixMemo.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function nixPrevious<T>(val: T): T | undefined;
2
- //# sourceMappingURL=nixPrevious.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export declare function nixRef<T = any>(initial?: T): {
2
2
  current: T;
3
3
  };
4
- //# sourceMappingURL=nixRef.d.ts.map
@@ -12,4 +12,3 @@ export declare function nixState<T>(initial: T): {
12
12
  };
13
13
  _isNixState: true;
14
14
  };
15
- //# sourceMappingURL=nixState.d.ts.map
@@ -7,4 +7,3 @@ export declare function nixStore<T = any>(path: string, initial: T): {
7
7
  isDestroyed: () => boolean;
8
8
  _isNixState: boolean;
9
9
  };
10
- //# sourceMappingURL=nixStore.d.ts.map
@@ -35,4 +35,3 @@ export default function fynixPlugin(options?: FynixPluginOptions): {
35
35
  };
36
36
  export { fynixPlugin };
37
37
  export type { FynixPluginOptions };
38
- //# sourceMappingURL=vite-plugin-res.d.ts.map
@@ -1,13 +1,16 @@
1
- interface NestedRoute {
1
+ interface LocationSignal {
2
2
  path: string;
3
- component: ComponentFunction;
4
- children?: NestedRoute[];
5
- layout?: ComponentFunction;
6
- keepAlive?: boolean;
3
+ params: Record<string, string>;
4
+ search: string;
7
5
  }
8
- interface ComponentFunction {
9
- (props: any): any;
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, };