@railtownai/railtracks-visualizer 0.0.15 → 0.0.17

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 (58) hide show
  1. package/README.md +1 -0
  2. package/dist/cjs/index.js +110 -42
  3. package/dist/esm/index.js +110 -42
  4. package/dist/types/components/AgenticFlowVisualizer.d.ts +0 -1
  5. package/dist/types/components/Edge.d.ts +0 -1
  6. package/dist/types/components/FileSelector.d.ts +0 -1
  7. package/dist/types/components/Node.d.ts +0 -1
  8. package/dist/types/components/Timeline.d.ts +0 -1
  9. package/dist/types/components/Visualizer.d.ts +0 -1
  10. package/dist/types/components/icons/AnthropicIcon.d.ts +6 -0
  11. package/dist/types/components/icons/GoogleIcon.d.ts +6 -0
  12. package/dist/types/components/icons/OpenAIIcon.d.ts +6 -0
  13. package/dist/types/components/icons/index.d.ts +3 -0
  14. package/dist/types/components/ui/badge.d.ts +3 -7
  15. package/dist/types/components/ui/checkbox.d.ts +0 -1
  16. package/dist/types/components/ui/drawer.d.ts +0 -1
  17. package/dist/types/components/ui/json-tree.d.ts +0 -1
  18. package/dist/types/components/ui/select.d.ts +0 -1
  19. package/dist/types/components/ui/sheet.d.ts +1 -2
  20. package/dist/types/dto/AgentRun.d.ts +0 -1
  21. package/dist/types/dto/AgentRunEdge.d.ts +0 -1
  22. package/dist/types/dto/AgentRunNode.d.ts +0 -1
  23. package/dist/types/dto/AgentSession.d.ts +0 -1
  24. package/dist/types/hooks/index.d.ts +0 -1
  25. package/dist/types/hooks/useApi.d.ts +0 -1
  26. package/dist/types/hooks/useFlowData.d.ts +0 -1
  27. package/dist/types/index.d.ts +1 -1
  28. package/dist/types/lib/index.d.ts +0 -1
  29. package/dist/types/lib/layout.d.ts +0 -1
  30. package/dist/types/lib/utils.d.ts +0 -1
  31. package/package.json +7 -10
  32. package/dist/cjs/index.js.map +0 -1
  33. package/dist/esm/index.js.map +0 -1
  34. package/dist/types/App.d.ts +0 -9
  35. package/dist/types/App.d.ts.map +0 -1
  36. package/dist/types/components/AgenticFlowVisualizer.d.ts.map +0 -1
  37. package/dist/types/components/Edge.d.ts.map +0 -1
  38. package/dist/types/components/FileSelector.d.ts.map +0 -1
  39. package/dist/types/components/Node.d.ts.map +0 -1
  40. package/dist/types/components/Timeline.d.ts.map +0 -1
  41. package/dist/types/components/Visualizer.d.ts.map +0 -1
  42. package/dist/types/components/ui/badge.d.ts.map +0 -1
  43. package/dist/types/components/ui/checkbox.d.ts.map +0 -1
  44. package/dist/types/components/ui/drawer.d.ts.map +0 -1
  45. package/dist/types/components/ui/json-tree.d.ts.map +0 -1
  46. package/dist/types/components/ui/select.d.ts.map +0 -1
  47. package/dist/types/components/ui/sheet.d.ts.map +0 -1
  48. package/dist/types/dto/AgentRun.d.ts.map +0 -1
  49. package/dist/types/dto/AgentRunEdge.d.ts.map +0 -1
  50. package/dist/types/dto/AgentRunNode.d.ts.map +0 -1
  51. package/dist/types/dto/AgentSession.d.ts.map +0 -1
  52. package/dist/types/hooks/index.d.ts.map +0 -1
  53. package/dist/types/hooks/useApi.d.ts.map +0 -1
  54. package/dist/types/hooks/useFlowData.d.ts.map +0 -1
  55. package/dist/types/index.d.ts.map +0 -1
  56. package/dist/types/lib/index.d.ts.map +0 -1
  57. package/dist/types/lib/layout.d.ts.map +0 -1
  58. package/dist/types/lib/utils.d.ts.map +0 -1
@@ -17,4 +17,3 @@ export interface AgenticFlowVisualizerProps {
17
17
  }
18
18
  declare const AgenticFlowVisualizer: React.FC<AgenticFlowVisualizerProps>;
19
19
  export default AgenticFlowVisualizer;
20
- //# sourceMappingURL=AgenticFlowVisualizer.d.ts.map
@@ -26,4 +26,3 @@ interface EdgeProps {
26
26
  }
27
27
  export declare const Edge: React.FC<EdgeProps>;
28
28
  export {};
29
- //# sourceMappingURL=Edge.d.ts.map
@@ -10,4 +10,3 @@ interface FileSelectorProps {
10
10
  }
11
11
  export declare const FileSelector: React.FC<FileSelectorProps>;
12
12
  export {};
13
- //# sourceMappingURL=FileSelector.d.ts.map
@@ -23,4 +23,3 @@ interface NodeProps {
23
23
  declare const Node: React.FC<NodeProps>;
24
24
  export { Node };
25
25
  export type { NodeData };
26
- //# sourceMappingURL=Node.d.ts.map
@@ -11,4 +11,3 @@ interface IProps {
11
11
  }
12
12
  declare const Timeline: React.FC<IProps>;
13
13
  export { Timeline };
14
- //# sourceMappingURL=Timeline.d.ts.map
@@ -6,4 +6,3 @@ import { AgenticFlowVisualizerProps } from "./AgenticFlowVisualizer";
6
6
  */
7
7
  declare const Visualizer: React.FC<AgenticFlowVisualizerProps>;
8
8
  export default Visualizer;
9
- //# sourceMappingURL=Visualizer.d.ts.map
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ interface AnthropicIconProps {
3
+ className?: string;
4
+ }
5
+ export declare const AnthropicIcon: React.FC<AnthropicIconProps>;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ interface GoogleIconProps {
3
+ className?: string;
4
+ }
5
+ export declare const GoogleIcon: React.FC<GoogleIconProps>;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ interface OpenAIIconProps {
3
+ className?: string;
4
+ }
5
+ export declare const OpenAIIcon: React.FC<OpenAIIconProps>;
6
+ export {};
@@ -0,0 +1,3 @@
1
+ export { OpenAIIcon } from "./OpenAIIcon";
2
+ export { AnthropicIcon } from "./AnthropicIcon";
3
+ export { GoogleIcon } from "./GoogleIcon";
@@ -1,10 +1,6 @@
1
1
  import * as React from "react";
2
- import { type VariantProps } from "class-variance-authority";
3
- declare const badgeVariants: (props?: ({
4
- variant?: "default" | "gray" | "secondary" | "destructive" | "outline" | "cost" | "latency" | "latencyLow" | "latencyMedium" | "latencyHigh" | null | undefined;
5
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
6
- export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
2
+ export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ variant?: "default" | "secondary" | "destructive" | "outline" | "cost" | "gray" | "latency" | "latencyLow" | "latencyMedium" | "latencyHigh";
7
4
  }
8
5
  declare function Badge({ className, variant, ...props }: BadgeProps): React.JSX.Element;
9
- export { Badge, badgeVariants };
10
- //# sourceMappingURL=badge.d.ts.map
6
+ export { Badge };
@@ -2,4 +2,3 @@ import * as React from "react";
2
2
  import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
3
3
  declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
4
  export { Checkbox };
5
- //# sourceMappingURL=checkbox.d.ts.map
@@ -22,4 +22,3 @@ declare const DrawerFooter: {
22
22
  declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
23
23
  declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
24
24
  export { Drawer, DrawerPortal, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription };
25
- //# sourceMappingURL=drawer.d.ts.map
@@ -9,4 +9,3 @@ interface JsonTreeViewerProps {
9
9
  declare const JsonTreeViewer: React.FC<JsonTreeViewerProps>;
10
10
  export { JsonTreeViewer };
11
11
  export type { JsonTreeViewerProps };
12
- //# sourceMappingURL=json-tree.d.ts.map
@@ -11,4 +11,3 @@ declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.
11
11
  declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
12
  declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
13
  export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton };
14
- //# sourceMappingURL=select.d.ts.map
@@ -7,7 +7,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
7
7
  declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
8
8
  declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
9
  declare const sheetVariants: (props?: ({
10
- side?: "top" | "right" | "bottom" | "left" | null | undefined;
10
+ side?: "left" | "right" | "bottom" | "top" | null | undefined;
11
11
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
12
12
  interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
13
13
  }
@@ -23,4 +23,3 @@ declare const SheetFooter: {
23
23
  declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
24
24
  declare const SheetDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
25
25
  export { Sheet, SheetPortal, SheetOverlay, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription };
26
- //# sourceMappingURL=sheet.d.ts.map
@@ -17,4 +17,3 @@ export interface AgentRun {
17
17
  identifier: string;
18
18
  }>;
19
19
  }
20
- //# sourceMappingURL=AgentRun.d.ts.map
@@ -16,4 +16,3 @@ export interface AgentRunEdge {
16
16
  };
17
17
  parent: AgentRunEdge | null;
18
18
  }
19
- //# sourceMappingURL=AgentRunEdge.d.ts.map
@@ -32,4 +32,3 @@ export interface AgentRunNode {
32
32
  };
33
33
  parent: AgentRunNode | null;
34
34
  }
35
- //# sourceMappingURL=AgentRunNode.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { AgentRun } from "./AgentRun";
2
2
  export type AgentSession = AgentRun[];
3
- //# sourceMappingURL=AgentSession.d.ts.map
@@ -5,4 +5,3 @@ export type { FlowDataState } from "./useFlowData";
5
5
  export type { AgentRunNode } from "../dto/AgentRunNode";
6
6
  export type { AgentRunEdge } from "../dto/AgentRunEdge";
7
7
  export type { AgentRun } from "../dto/AgentRun";
8
- //# sourceMappingURL=index.d.ts.map
@@ -14,4 +14,3 @@ export declare const useApi: () => {
14
14
  loadJsonFile: (filename: string) => Promise<any>;
15
15
  triggerRefresh: () => Promise<any>;
16
16
  };
17
- //# sourceMappingURL=useApi.d.ts.map
@@ -16,4 +16,3 @@ export declare const useFlowData: () => {
16
16
  currentFile: string | null;
17
17
  flowData: AgentRun | null;
18
18
  };
19
- //# sourceMappingURL=useFlowData.d.ts.map
@@ -13,5 +13,5 @@ export { Sheet } from "./components/ui/sheet";
13
13
  export type { AgentRun } from "./dto/AgentRun";
14
14
  export type { AgentRunNode } from "./dto/AgentRunNode";
15
15
  export type { AgentRunEdge } from "./dto/AgentRunEdge";
16
+ export { OpenAIIcon, AnthropicIcon, GoogleIcon } from "./components/icons";
16
17
  export * from "./lib";
17
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export * from "./utils";
2
2
  export * from "./layout";
3
- //# sourceMappingURL=index.d.ts.map
@@ -12,4 +12,3 @@ export interface LayoutOptions {
12
12
  * Calculates a clean tree layout: parents centered above children, siblings spaced evenly, no overlap.
13
13
  */
14
14
  export declare const calculateAutoLayout: (nodes: AgentRunNode[], edges: AgentRunEdge[], options?: LayoutOptions) => Map<string, Position>;
15
- //# sourceMappingURL=layout.d.ts.map
@@ -25,4 +25,3 @@ export declare function formatCurrency(amount: number | string | null | undefine
25
25
  * @returns The formatted time string in milliseconds
26
26
  */
27
27
  export declare function formatLatency(time: number | string | null | undefined): string;
28
- //# sourceMappingURL=utils.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@railtownai/railtracks-visualizer",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Railtown AI",
6
6
  "description": "A visualizer for RailTracks agentic flows",
@@ -9,7 +9,7 @@
9
9
  "types": "dist/types/index.d.ts",
10
10
  "exports": {
11
11
  ".": {
12
- "types": "./dist/types/src/index.d.ts",
12
+ "types": "./dist/types/index.d.ts",
13
13
  "import": "./dist/esm/index.js",
14
14
  "require": "./dist/cjs/index.js"
15
15
  }
@@ -33,10 +33,12 @@
33
33
  "typescript"
34
34
  ],
35
35
  "peerDependencies": {
36
- "react": "^18.2.0",
37
- "react-dom": "^18.2.0"
36
+ "react": "^18.3.1",
37
+ "react-dom": "^18.3.1"
38
38
  },
39
39
  "dependencies": {
40
+ "@emotion/react": "11.14.0",
41
+ "@emotion/styled": "11.14.1",
40
42
  "@radix-ui/react-checkbox": "1.3.3",
41
43
  "@radix-ui/react-dialog": "1.1.15",
42
44
  "@radix-ui/react-select": "2.2.6",
@@ -62,17 +64,12 @@
62
64
  "up": "ncu -u -x react -x react-dom -x @types/react -x @types/react-dom && npm install"
63
65
  },
64
66
  "devDependencies": {
65
- "@babel/core": "7.28.0",
66
- "@babel/preset-env": "7.28.0",
67
- "@babel/preset-react": "7.27.1",
68
- "@babel/preset-typescript": "7.27.1",
69
67
  "@chromatic-com/storybook": "4.1.1",
70
- "@rollup/plugin-babel": "6.0.3",
71
68
  "@rollup/plugin-commonjs": "25.0.2",
72
69
  "@rollup/plugin-json": "6.0.0",
73
70
  "@rollup/plugin-node-resolve": "15.1.0",
71
+ "@rollup/plugin-swc": "0.4.0",
74
72
  "@rollup/plugin-terser": "0.4.3",
75
- "@rollup/plugin-typescript": "11.1.1",
76
73
  "@storybook/addon-a11y": "9.1.3",
77
74
  "@storybook/addon-docs": "9.1.3",
78
75
  "@storybook/addon-onboarding": "9.1.3",