@railtownai/railtracks-visualizer 0.0.16 → 0.0.18

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 (65) hide show
  1. package/dist/cjs/index.js +591 -68
  2. package/dist/esm/index.js +592 -69
  3. package/dist/types/components/AgenticFlowVisualizer.d.ts +0 -1
  4. package/dist/types/components/Edge.d.ts +0 -1
  5. package/dist/types/components/FileSelector.d.ts +3 -3
  6. package/dist/types/components/Node.d.ts +0 -1
  7. package/dist/types/components/Timeline.d.ts +1 -2
  8. package/dist/types/components/Visualizer.d.ts +0 -1
  9. package/dist/types/components/icons/AnthropicIcon.d.ts +2 -2
  10. package/dist/types/components/icons/GoogleIcon.d.ts +2 -2
  11. package/dist/types/components/icons/OpenAIIcon.d.ts +2 -2
  12. package/dist/types/components/icons/index.d.ts +0 -1
  13. package/dist/types/components/ui/badge.d.ts +0 -1
  14. package/dist/types/components/ui/checkbox.d.ts +0 -1
  15. package/dist/types/components/ui/drawer.d.ts +0 -1
  16. package/dist/types/components/ui/json-tree.d.ts +0 -1
  17. package/dist/types/components/ui/select.d.ts +8 -9
  18. package/dist/types/components/ui/sheet.d.ts +2 -6
  19. package/dist/types/dto/AgentRun.d.ts +0 -1
  20. package/dist/types/dto/AgentRunEdge.d.ts +0 -1
  21. package/dist/types/dto/AgentRunNode.d.ts +0 -1
  22. package/dist/types/dto/AgentSession.d.ts +0 -1
  23. package/dist/types/hooks/index.d.ts +1 -1
  24. package/dist/types/hooks/useApi.d.ts +0 -1
  25. package/dist/types/hooks/useFlowData.d.ts +0 -1
  26. package/dist/types/hooks/useTheme.d.ts +7 -0
  27. package/dist/types/index.d.ts +0 -1
  28. package/dist/types/lib/GlobalStyles.d.ts +2 -0
  29. package/dist/types/lib/ThemeProvider.d.ts +14 -0
  30. package/dist/types/lib/index.d.ts +3 -1
  31. package/dist/types/lib/layout.d.ts +0 -1
  32. package/dist/types/lib/theme.d.ts +64 -0
  33. package/dist/types/lib/utils.d.ts +32 -11
  34. package/package.json +7 -16
  35. package/dist/cjs/index.js.map +0 -1
  36. package/dist/esm/index.js.map +0 -1
  37. package/dist/types/App.d.ts +0 -9
  38. package/dist/types/App.d.ts.map +0 -1
  39. package/dist/types/components/AgenticFlowVisualizer.d.ts.map +0 -1
  40. package/dist/types/components/Edge.d.ts.map +0 -1
  41. package/dist/types/components/FileSelector.d.ts.map +0 -1
  42. package/dist/types/components/Node.d.ts.map +0 -1
  43. package/dist/types/components/Timeline.d.ts.map +0 -1
  44. package/dist/types/components/Visualizer.d.ts.map +0 -1
  45. package/dist/types/components/icons/AnthropicIcon.d.ts.map +0 -1
  46. package/dist/types/components/icons/GoogleIcon.d.ts.map +0 -1
  47. package/dist/types/components/icons/OpenAIIcon.d.ts.map +0 -1
  48. package/dist/types/components/icons/index.d.ts.map +0 -1
  49. package/dist/types/components/ui/badge.d.ts.map +0 -1
  50. package/dist/types/components/ui/checkbox.d.ts.map +0 -1
  51. package/dist/types/components/ui/drawer.d.ts.map +0 -1
  52. package/dist/types/components/ui/json-tree.d.ts.map +0 -1
  53. package/dist/types/components/ui/select.d.ts.map +0 -1
  54. package/dist/types/components/ui/sheet.d.ts.map +0 -1
  55. package/dist/types/dto/AgentRun.d.ts.map +0 -1
  56. package/dist/types/dto/AgentRunEdge.d.ts.map +0 -1
  57. package/dist/types/dto/AgentRunNode.d.ts.map +0 -1
  58. package/dist/types/dto/AgentSession.d.ts.map +0 -1
  59. package/dist/types/hooks/index.d.ts.map +0 -1
  60. package/dist/types/hooks/useApi.d.ts.map +0 -1
  61. package/dist/types/hooks/useFlowData.d.ts.map +0 -1
  62. package/dist/types/index.d.ts.map +0 -1
  63. package/dist/types/lib/index.d.ts.map +0 -1
  64. package/dist/types/lib/layout.d.ts.map +0 -1
  65. 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
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
- import { JsonFile } from "../hooks";
3
2
  interface FileSelectorProps {
4
- files: JsonFile[];
3
+ files: {
4
+ name: string;
5
+ }[];
5
6
  currentFile: string | null;
6
7
  onFileSelect: (filename: string) => void;
7
8
  onRefresh: () => void;
@@ -10,4 +11,3 @@ interface FileSelectorProps {
10
11
  }
11
12
  export declare const FileSelector: React.FC<FileSelectorProps>;
12
13
  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
@@ -3,7 +3,7 @@ interface IProps {
3
3
  stamps: Array<{
4
4
  step: number;
5
5
  time: number;
6
- identifier: string;
6
+ identifier?: string;
7
7
  }>;
8
8
  currentStep: number;
9
9
  onStepChange: (step: number) => void;
@@ -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
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  interface AnthropicIconProps {
3
- className?: string;
3
+ width?: string | number;
4
+ height?: string | number;
4
5
  }
5
6
  export declare const AnthropicIcon: React.FC<AnthropicIconProps>;
6
7
  export {};
7
- //# sourceMappingURL=AnthropicIcon.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  interface GoogleIconProps {
3
- className?: string;
3
+ width?: string | number;
4
+ height?: string | number;
4
5
  }
5
6
  export declare const GoogleIcon: React.FC<GoogleIconProps>;
6
7
  export {};
7
- //# sourceMappingURL=GoogleIcon.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  interface OpenAIIconProps {
3
- className?: string;
3
+ width?: string | number;
4
+ height?: string | number;
4
5
  }
5
6
  export declare const OpenAIIcon: React.FC<OpenAIIconProps>;
6
7
  export {};
7
- //# sourceMappingURL=OpenAIIcon.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export { OpenAIIcon } from "./OpenAIIcon";
2
2
  export { AnthropicIcon } from "./AnthropicIcon";
3
3
  export { GoogleIcon } from "./GoogleIcon";
4
- //# sourceMappingURL=index.d.ts.map
@@ -4,4 +4,3 @@ export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  }
5
5
  declare function Badge({ className, variant, ...props }: BadgeProps): React.JSX.Element;
6
6
  export { Badge };
7
- //# sourceMappingURL=badge.d.ts.map
@@ -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
@@ -3,12 +3,11 @@ import * as SelectPrimitive from "@radix-ui/react-select";
3
3
  declare const Select: React.FC<SelectPrimitive.SelectProps>;
4
4
  declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
5
5
  declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
6
- declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
- declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
- declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
- declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
- declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
- declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
- declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
- export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton };
14
- //# sourceMappingURL=select.d.ts.map
6
+ declare const SelectTriggerWithRef: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const SelectScrollUpButtonWithRef: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const SelectScrollDownButtonWithRef: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const SelectContentWithRef: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
+ declare const SelectLabelWithRef: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
+ declare const SelectItemWithRef: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const SelectSeparatorWithRef: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ export { Select, SelectGroup, SelectValue, SelectTriggerWithRef as SelectTrigger, SelectContentWithRef as SelectContent, SelectLabelWithRef as SelectLabel, SelectItemWithRef as SelectItem, SelectSeparatorWithRef as SelectSeparator, SelectScrollUpButtonWithRef as SelectScrollUpButton, SelectScrollDownButtonWithRef as SelectScrollDownButton };
@@ -1,15 +1,12 @@
1
1
  import * as React from "react";
2
2
  import * as SheetPrimitive from "@radix-ui/react-dialog";
3
- import { type VariantProps } from "class-variance-authority";
4
3
  declare const Sheet: React.FC<SheetPrimitive.DialogProps>;
5
4
  declare const SheetTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
5
  declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
6
  declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
8
7
  declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
- declare const sheetVariants: (props?: ({
10
- side?: "top" | "right" | "bottom" | "left" | null | undefined;
11
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
12
- interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
8
+ interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content> {
9
+ side?: "top" | "bottom" | "left" | "right";
13
10
  }
14
11
  declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
15
12
  declare const SheetHeader: {
@@ -23,4 +20,3 @@ declare const SheetFooter: {
23
20
  declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
24
21
  declare const SheetDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
25
22
  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
@@ -1,8 +1,8 @@
1
1
  export { useApi } from "./useApi";
2
2
  export { useFlowData } from "./useFlowData";
3
+ export { useTheme } from "./useTheme";
3
4
  export type { JsonFile, ApiError } from "./useApi";
4
5
  export type { FlowDataState } from "./useFlowData";
5
6
  export type { AgentRunNode } from "../dto/AgentRunNode";
6
7
  export type { AgentRunEdge } from "../dto/AgentRunEdge";
7
8
  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
@@ -0,0 +1,7 @@
1
+ import { Theme } from "../lib/theme";
2
+ export declare const useTheme: () => {
3
+ isDarkMode: boolean;
4
+ theme: Theme;
5
+ toggleTheme: () => void;
6
+ setTheme: (theme: "light" | "dark") => void;
7
+ };
@@ -15,4 +15,3 @@ export type { AgentRunNode } from "./dto/AgentRunNode";
15
15
  export type { AgentRunEdge } from "./dto/AgentRunEdge";
16
16
  export { OpenAIIcon, AnthropicIcon, GoogleIcon } from "./components/icons";
17
17
  export * from "./lib";
18
- //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const GlobalStyles: React.FC;
@@ -0,0 +1,14 @@
1
+ import React, { ReactNode } from "react";
2
+ import { Theme } from "./theme";
3
+ interface ThemeContextType {
4
+ theme: Theme;
5
+ setTheme: (theme: Theme) => void;
6
+ }
7
+ interface ThemeProviderProps {
8
+ children: ReactNode;
9
+ theme?: Theme;
10
+ }
11
+ export declare const ThemeProvider: React.FC<ThemeProviderProps>;
12
+ export declare const useTheme: () => ThemeContextType;
13
+ export declare const useThemeValue: () => Theme;
14
+ export {};
@@ -1,3 +1,5 @@
1
1
  export * from "./utils";
2
2
  export * from "./layout";
3
- //# sourceMappingURL=index.d.ts.map
3
+ export * from "./theme";
4
+ export * from "./ThemeProvider";
5
+ export * from "./GlobalStyles";
@@ -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
@@ -0,0 +1,64 @@
1
+ export interface Theme {
2
+ colors: {
3
+ background: string;
4
+ foreground: string;
5
+ card: string;
6
+ cardForeground: string;
7
+ popover: string;
8
+ popoverForeground: string;
9
+ primary: string;
10
+ primaryForeground: string;
11
+ secondary: string;
12
+ secondaryForeground: string;
13
+ muted: string;
14
+ mutedForeground: string;
15
+ accent: string;
16
+ accentForeground: string;
17
+ destructive: string;
18
+ destructiveForeground: string;
19
+ border: string;
20
+ input: string;
21
+ ring: string;
22
+ };
23
+ spacing: {
24
+ xs: string;
25
+ sm: string;
26
+ md: string;
27
+ lg: string;
28
+ xl: string;
29
+ "2xl": string;
30
+ "3xl": string;
31
+ };
32
+ borderRadius: {
33
+ sm: string;
34
+ md: string;
35
+ lg: string;
36
+ xl: string;
37
+ };
38
+ fontSize: {
39
+ xs: string;
40
+ sm: string;
41
+ base: string;
42
+ lg: string;
43
+ xl: string;
44
+ };
45
+ fontWeight: {
46
+ normal: string;
47
+ medium: string;
48
+ semibold: string;
49
+ bold: string;
50
+ };
51
+ shadows: {
52
+ sm: string;
53
+ md: string;
54
+ lg: string;
55
+ };
56
+ transitions: {
57
+ fast: string;
58
+ normal: string;
59
+ slow: string;
60
+ };
61
+ }
62
+ export declare const lightTheme: Theme;
63
+ export declare const darkTheme: Theme;
64
+ export declare const defaultTheme: Theme;
@@ -7,22 +7,43 @@ export declare function cn(...inputs: ClassValue[]): string;
7
7
  */
8
8
  export declare function toTitleCase(str: string): string;
9
9
  /**
10
- * Truncates text to specified length with ellipsis
10
+ * Formats a currency value
11
+ * @param value - The value to format
12
+ * @returns The formatted currency string
13
+ */
14
+ export declare function formatCurrency(value: number | null | undefined): string;
15
+ /**
16
+ * Formats latency in a human-readable format
17
+ * @param latencyMs - Latency in milliseconds
18
+ * @returns The formatted latency string
19
+ */
20
+ export declare function formatLatency(latencyMs: number): string;
21
+ /**
22
+ * Truncates text to a specified length
11
23
  * @param text - The text to truncate
12
- * @param maxLength - The maximum length of the text
24
+ * @param maxLength - The maximum length
13
25
  * @returns The truncated text
14
26
  */
15
27
  export declare function truncateText(text: string, maxLength: number): string;
16
28
  /**
17
- * Formats a number as currency with $0.00 format
18
- * @param amount - The amount to format
19
- * @returns The formatted currency string
29
+ * Styled-components utility for conditional styling
30
+ * @param condition - The condition to check
31
+ * @param trueStyle - The style to apply if condition is true
32
+ * @param falseStyle - The style to apply if condition is false (optional)
33
+ * @returns The appropriate style string
34
+ */
35
+ export declare function conditionalStyle(condition: boolean, trueStyle: string, falseStyle?: string): string;
36
+ /**
37
+ * Styled-components utility for responsive spacing
38
+ * @param theme - The theme object
39
+ * @param size - The spacing size
40
+ * @returns The spacing value
20
41
  */
21
- export declare function formatCurrency(amount: number | string | null | undefined): string;
42
+ export declare function getSpacing(theme: any, size: keyof typeof theme.spacing): string;
22
43
  /**
23
- * Formats latency time in milliseconds
24
- * @param time - The time in milliseconds
25
- * @returns The formatted time string in milliseconds
44
+ * Styled-components utility for responsive colors
45
+ * @param theme - The theme object
46
+ * @param colorKey - The color key
47
+ * @returns The color value
26
48
  */
27
- export declare function formatLatency(time: number | string | null | undefined): string;
28
- //# sourceMappingURL=utils.d.ts.map
49
+ export declare function getColor(theme: any, colorKey: keyof typeof theme.colors): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@railtownai/railtracks-visualizer",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
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,8 +33,8 @@
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
40
  "@emotion/react": "11.14.0",
@@ -50,8 +50,9 @@
50
50
  "build:lib": "rollup -c",
51
51
  "build:spa": "vite build",
52
52
  "build:types": "tsc -p tsconfig.types.json",
53
+ "build:size": "npm pack --dry-run",
53
54
  "build": "npm run build:types && npm run build:lib && npm run build:spa",
54
- "clean": "rm -rf dist build",
55
+ "clean": "rm -rf dist build test-results .railtracks/ui/*",
55
56
  "dev:spa": "vite build && rm -rf .railtracks/ui/* && cp -r build/* .railtracks/ui",
56
57
  "lint:fix": "prettier --write \"src/**/*.{js,jsx,ts,tsx,json,css,md}\"",
57
58
  "lint": "prettier --check \"src/**/*.{js,jsx,ts,tsx,json,css,md}\"",
@@ -64,17 +65,12 @@
64
65
  "up": "ncu -u -x react -x react-dom -x @types/react -x @types/react-dom && npm install"
65
66
  },
66
67
  "devDependencies": {
67
- "@babel/core": "7.28.0",
68
- "@babel/preset-env": "7.28.0",
69
- "@babel/preset-react": "7.27.1",
70
- "@babel/preset-typescript": "7.27.1",
71
68
  "@chromatic-com/storybook": "4.1.1",
72
- "@rollup/plugin-babel": "6.0.3",
73
69
  "@rollup/plugin-commonjs": "25.0.2",
74
70
  "@rollup/plugin-json": "6.0.0",
75
71
  "@rollup/plugin-node-resolve": "15.1.0",
72
+ "@rollup/plugin-swc": "0.4.0",
76
73
  "@rollup/plugin-terser": "0.4.3",
77
- "@rollup/plugin-typescript": "11.1.1",
78
74
  "@storybook/addon-a11y": "9.1.3",
79
75
  "@storybook/addon-docs": "9.1.3",
80
76
  "@storybook/addon-onboarding": "9.1.3",
@@ -89,7 +85,6 @@
89
85
  "@vitejs/plugin-react-swc": "3.10.2",
90
86
  "@vitest/browser": "3.2.4",
91
87
  "@vitest/coverage-v8": "3.2.4",
92
- "autoprefixer": "10.4.21",
93
88
  "class-variance-authority": "0.7.1",
94
89
  "clsx": "2.1.1",
95
90
  "cross-env": "^7.0.3",
@@ -97,14 +92,10 @@
97
92
  "jsdom": "26.1.0",
98
93
  "npm-check-updates": "18.0.1",
99
94
  "playwright": "^1.55.0",
100
- "postcss": "8.5.6",
101
95
  "prettier": "3.6.2",
102
96
  "rollup": "3.29.5",
103
97
  "rollup-plugin-postcss": "4.0.2",
104
98
  "storybook": "9.1.3",
105
- "tailwind-merge": "3.3.1",
106
- "tailwindcss": "3.4.17",
107
- "tailwindcss-animate": "1.0.7",
108
99
  "tslib": "2.8.1",
109
100
  "typescript": "5.8.3",
110
101
  "vite": "7.0.5",