@railtownai/railtracks-visualizer 0.0.33 → 0.0.35

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.
@@ -17,6 +17,7 @@ export interface AgenticFlowVisualizerProps {
17
17
  showTimeline?: boolean;
18
18
  minNodeSpacing?: number;
19
19
  onInspect?: (nodeData: any) => void;
20
+ panToNodeId?: string;
20
21
  }
21
22
  declare const AgenticFlowVisualizer: React.FC<AgenticFlowVisualizerProps>;
22
23
  export default AgenticFlowVisualizer;
@@ -8,12 +8,11 @@ export declare function cn(...inputs: ClassValue[]): string;
8
8
  */
9
9
  export declare function toTitleCase(str: string): string;
10
10
  /**
11
- * Formats a currency value (USD dollars)
11
+ * Formats a currency value (USD dollars) with dynamic precision
12
12
  * @param value - The dollar value to format
13
- * @param precision - The number of decimal places to show. Defaults to 3.
14
- * @returns The formatted dollar string (eg: $123.002)
13
+ * @returns The formatted dollar string with appropriate precision
15
14
  */
16
- export declare function formatCurrency(value: number | null | undefined, precision?: number): string;
15
+ export declare function formatCurrency(value: number | null | undefined): string;
17
16
  /**
18
17
  * Formats latency in a human-readable format
19
18
  * @param latency - Latency in seconds
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@railtownai/railtracks-visualizer",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "license": "MIT",
5
5
  "author": "Railtown AI",
6
6
  "description": "A visualizer for RailTracks agentic flows",
@@ -37,15 +37,15 @@
37
37
  "react-dom": "^18.3.1"
38
38
  },
39
39
  "dependencies": {
40
- "@ant-design/plots": "2.6.4",
40
+ "@ant-design/plots": "2.6.5",
41
41
  "@emotion/react": "11.14.0",
42
42
  "@emotion/styled": "11.14.1",
43
43
  "@radix-ui/react-checkbox": "1.3.3",
44
44
  "@radix-ui/react-dialog": "1.1.15",
45
45
  "@radix-ui/react-select": "2.2.6",
46
- "@railtownai/railtracks-timeline": "latest",
47
- "@xyflow/react": "12.8.4",
48
- "lucide-react": "0.542.0",
46
+ "@railtownai/railtracks-timeline": "0.0.13",
47
+ "@xyflow/react": "12.9.0",
48
+ "lucide-react": "0.546.0",
49
49
  "moment": "2.30.1",
50
50
  "react-countup": "6.5.3",
51
51
  "react-textarea-autosize": "8.5.9",
@@ -68,44 +68,44 @@
68
68
  "storybook:preview": "npx http-server ./storybook-static",
69
69
  "test:ui": "vitest --ui",
70
70
  "test": "vitest run --silent",
71
- "up": "ncu -u -x react -x react-dom -x @types/react -x @types/react-dom && npm install"
71
+ "up": "ncu -u -x react -x react-dom -x @types/react -x @types/react-dom"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@chromatic-com/storybook": "4.1.1",
75
- "@rollup/plugin-commonjs": "28.0.6",
75
+ "@rollup/plugin-commonjs": "28.0.8",
76
76
  "@rollup/plugin-json": "6.1.0",
77
- "@rollup/plugin-node-resolve": "16.0.1",
77
+ "@rollup/plugin-node-resolve": "16.0.3",
78
78
  "@rollup/plugin-swc": "0.4.0",
79
79
  "@rollup/plugin-terser": "0.4.4",
80
- "@storybook/addon-a11y": "9.1.10",
81
- "@storybook/addon-docs": "9.1.10",
82
- "@storybook/addon-onboarding": "9.1.10",
83
- "@storybook/addon-vitest": "9.1.10",
84
- "@storybook/react-vite": "9.1.10",
85
- "@testing-library/jest-dom": "6.8.0",
80
+ "@storybook/addon-a11y": "9.1.13",
81
+ "@storybook/addon-docs": "9.1.13",
82
+ "@storybook/addon-onboarding": "9.1.13",
83
+ "@storybook/addon-vitest": "9.1.13",
84
+ "@storybook/react-vite": "9.1.13",
85
+ "@testing-library/jest-dom": "6.9.1",
86
86
  "@testing-library/react": "16.3.0",
87
87
  "@testing-library/user-event": "14.6.1",
88
- "@types/node": "24.3.1",
88
+ "@types/node": "24.9.0",
89
89
  "@types/react": "18.2.79",
90
90
  "@types/react-dom": "18.2.25",
91
- "@vitejs/plugin-react-swc": "4.0.1",
91
+ "@vitejs/plugin-react-swc": "4.1.0",
92
92
  "@vitest/browser": "3.2.4",
93
93
  "@vitest/coverage-v8": "3.2.4",
94
94
  "class-variance-authority": "0.7.1",
95
95
  "clsx": "2.1.1",
96
- "cross-env": "^10.0.0",
96
+ "cross-env": "^10.1.0",
97
97
  "gh-pages": "6.3.0",
98
- "jsdom": "26.1.0",
98
+ "jsdom": "27.0.1",
99
99
  "license-checker": "25.0.1",
100
- "npm-check-updates": "18.1.0",
101
- "playwright": "^1.55.0",
100
+ "npm-check-updates": "19.1.1",
101
+ "playwright": "^1.56.1",
102
102
  "prettier": "3.6.2",
103
- "rollup": "4.50.1",
103
+ "rollup": "4.52.5",
104
104
  "rollup-plugin-postcss": "4.0.2",
105
- "storybook": "9.1.10",
105
+ "storybook": "9.1.13",
106
106
  "tslib": "2.8.1",
107
- "typescript": "5.9.2",
108
- "vite": "7.1.5",
107
+ "typescript": "5.9.3",
108
+ "vite": "7.1.11",
109
109
  "vitest": "3.2.4"
110
110
  },
111
111
  "prettier": {