@aiready/components 0.13.0 → 0.13.2
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/charts/ForceDirectedGraph.d.ts +1 -0
- package/dist/charts/ForceDirectedGraph.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/charts/ForceDirectedGraph.tsx +2 -24
- package/src/charts/LinkItem.tsx +1 -1
- package/src/charts/NodeItem.tsx +1 -1
- package/src/charts/types.ts +24 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiready/components",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.2",
|
|
4
4
|
"description": "Unified shared components library (UI, charts, hooks, utilities) for AIReady",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"framer-motion": "^12.35.0",
|
|
66
66
|
"lucide-react": "^0.577.0",
|
|
67
67
|
"tailwind-merge": "^3.0.0",
|
|
68
|
-
"@aiready/core": "0.23.
|
|
68
|
+
"@aiready/core": "0.23.2"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@testing-library/jest-dom": "^6.6.5",
|
|
@@ -11,30 +11,8 @@ import { cn } from '../utils/cn';
|
|
|
11
11
|
import NodeItem from './NodeItem';
|
|
12
12
|
import LinkItem from './LinkItem';
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
label?: string;
|
|
17
|
-
color?: string;
|
|
18
|
-
size?: number;
|
|
19
|
-
group?: string;
|
|
20
|
-
kind?: 'file' | 'package';
|
|
21
|
-
packageGroup?: string;
|
|
22
|
-
x?: number;
|
|
23
|
-
y?: number;
|
|
24
|
-
fx?: number | null;
|
|
25
|
-
fy?: number | null;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface GraphLink {
|
|
29
|
-
source: string | GraphNode;
|
|
30
|
-
target: string | GraphNode;
|
|
31
|
-
color?: string;
|
|
32
|
-
width?: number;
|
|
33
|
-
label?: string;
|
|
34
|
-
type?: string;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export type LayoutType = 'force' | 'hierarchical' | 'circular';
|
|
14
|
+
import { GraphNode, GraphLink, LayoutType } from './types';
|
|
15
|
+
export type { GraphNode, GraphLink, LayoutType };
|
|
38
16
|
|
|
39
17
|
export interface ForceDirectedGraphHandle {
|
|
40
18
|
pinAll: () => void;
|
package/src/charts/LinkItem.tsx
CHANGED
package/src/charts/NodeItem.tsx
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface GraphNode {
|
|
2
|
+
id: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
size?: number;
|
|
6
|
+
group?: string;
|
|
7
|
+
kind?: 'file' | 'package';
|
|
8
|
+
packageGroup?: string;
|
|
9
|
+
x?: number;
|
|
10
|
+
y?: number;
|
|
11
|
+
fx?: number | null;
|
|
12
|
+
fy?: number | null;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface GraphLink {
|
|
16
|
+
source: string | GraphNode;
|
|
17
|
+
target: string | GraphNode;
|
|
18
|
+
color?: string;
|
|
19
|
+
width?: number;
|
|
20
|
+
label?: string;
|
|
21
|
+
type?: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type LayoutType = 'force' | 'hierarchical' | 'circular';
|