@fynixorg/ui 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # Fynix Core
2
+
3
+ This is the core package for the Fynix UI framework. It contains the essential runtime, hooks, context, and utilities for building Fynix-based applications.
4
+
5
+ ## Structure
6
+ - `runtime.js`: Main runtime logic
7
+ - `context/`: Context management
8
+ - `custom/`: Custom UI elements
9
+ - `error/`: Error overlays and handling
10
+ - `fynix/`: Fynix core logic
11
+ - `hooks/`: Reactivity and utility hooks
12
+ - `plugins/`: Plugins (e.g., Vite integration)
13
+ - `router/`: Routing logic
14
+ - `types/`: TypeScript type definitions
15
+ - `global.d.ts`: Global type extensions
16
+
17
+ ## Usage
18
+ Install via npm after publishing:
19
+
20
+ ```sh
21
+ npm install fynix-core
22
+ ```
23
+
24
+ Then import in your project:
25
+
26
+ ```js
27
+ import { ... } from 'fynix-core';
28
+ ```
29
+
30
+ ## Development
31
+ - Ensure all files are included in `package.json`.
32
+ - Update type definitions in `global.d.ts` as needed.
33
+ - Export all public APIs via the `exports` field in `package.json`.
34
+
35
+ ## License
36
+ MIT
package/package.json ADDED
@@ -0,0 +1,63 @@
1
+ {
2
+ "name": "@fynixorg/ui",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "description": "Core package for Fynix UI framework.",
6
+ "main": "dist/runtime.js",
7
+ "types": "runtime.d.ts",
8
+ "exports": {
9
+ ".": "./dist/runtime.js",
10
+ "./context": "./dist/context/context.js",
11
+ "./custom": "./dist/custom/index.js",
12
+ "./custom/button": "./dist/custom/button.js",
13
+ "./custom/path": "./dist/custom/path.js",
14
+ "./error": "./dist/error/errorOverlay.js",
15
+ "./fynix": "./dist/fynix/index.js",
16
+ "./hooks/nixAsync": "./dist/hooks/nixAsync.js",
17
+ "./hooks/nixAsyncCache": "./dist/hooks/nixAsyncCache.js",
18
+ "./hooks/nixAsyncDebounce": "./dist/hooks/nixAsyncDebounce.js",
19
+ "./hooks/nixAsyncQuery": "./dist/hooks/nixAsyncQuery.js",
20
+ "./hooks/nixCallback": "./dist/hooks/nixCallback.js",
21
+ "./hooks/nixComputed": "./dist/hooks/nixComputed.js",
22
+ "./hooks/nixDebounce": "./dist/hooks/nixDebounce.js",
23
+ "./hooks/nixEffect": "./dist/hooks/nixEffect.js",
24
+ "./hooks/nixForm": "./dist/hooks/nixForm.js",
25
+ "./hooks/nixFormAsync": "./dist/hooks/nixFormAsync.js",
26
+ "./hooks/nixInterval": "./dist/hooks/nixInterval.js",
27
+ "./hooks/nixLazy": "./dist/hooks/nixLazy.js",
28
+ "./hooks/nixLazyAsync": "./dist/hooks/nixLazyAsync.js",
29
+ "./hooks/nixLazyFormAsync": "./dist/hooks/nixLazyFormAsync.js",
30
+ "./hooks/nixLocalStorage": "./dist/hooks/nixLocalStorage.js",
31
+ "./hooks/nixMemo": "./dist/hooks/nixMemo.js",
32
+ "./hooks/nixPrevious": "./dist/hooks/nixPrevious.js",
33
+ "./hooks/nixRef": "./dist/hooks/nixRef.js",
34
+ "./hooks/nixState": "./dist/hooks/nixState.js",
35
+ "./hooks/nixStore": "./dist/hooks/nixStore.js",
36
+ "./plugins/vite-plugin-res": "./dist/plugins/vite-plugin-res.js",
37
+ "./router": "./dist/router/router.js",
38
+ "./types/jsx": "./types/jsx.d.ts",
39
+ "./types/global": "./types/global.d.ts"
40
+ },
41
+ "files": [
42
+ "dist/",
43
+ "types/",
44
+ "runtime.d.ts",
45
+ "router/"
46
+ ],
47
+ "keywords": [
48
+ "fynix",
49
+ "ui",
50
+ "framework",
51
+ "core"
52
+ ],
53
+ "author": "Your Name",
54
+ "license": "MIT",
55
+ "devDependencies": {
56
+ "@types/node": "^25.0.3",
57
+ "esbuild": "^0.20.0",
58
+ "vite": "^7.3.0"
59
+ },
60
+ "scripts": {
61
+ "build": "node build.js"
62
+ }
63
+ }
@@ -0,0 +1,21 @@
1
+ // Type definitions for Fynix Router
2
+
3
+ export interface FynixRouter {
4
+ mountRouter(selector?: string): void;
5
+ navigate(path: string, props?: Record<string, any>): void;
6
+ replace(path: string, props?: Record<string, any>): void;
7
+ back(): void;
8
+ cleanup(): void;
9
+ routes: Record<string, any>;
10
+ dynamicRoutes: Array<{
11
+ pattern: string;
12
+ regex: RegExp;
13
+ component: any;
14
+ params: string[];
15
+ }>;
16
+ }
17
+
18
+ export default function createFynix(): FynixRouter;
19
+
20
+ export function setLinkProps(key: string, props: Record<string, any>): void;
21
+ export function clearLinkProps(key: string): void;