@railtownai/railtracks-visualizer 0.0.19 → 0.0.20

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.
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { AgenticFlowVisualizerProps } from "./AgenticFlowVisualizer";
3
3
  /**
4
- * Visualizer component that wraps AgenticFlowVisualizer with ReactFlowProvider and ThemeProvider.
4
+ * Visualizer component that wraps AgenticFlowVisualizer with ReactFlowProvider.
5
5
  * This is the main component that should be imported from the npm package.
6
6
  */
7
7
  declare const Visualizer: React.FC<AgenticFlowVisualizerProps>;
@@ -1,6 +1,9 @@
1
1
  import * as React from "react";
2
- export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
3
- variant?: "default" | "secondary" | "destructive" | "outline" | "cost" | "gray" | "latency" | "latencyLow" | "latencyMedium" | "latencyHigh";
2
+ interface BadgeProps {
3
+ variant?: string;
4
+ children: React.ReactNode;
5
+ title?: string;
6
+ placement?: "top" | "bottom" | "left" | "right" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
4
7
  }
5
- declare function Badge({ className, variant, ...props }: BadgeProps): React.JSX.Element;
6
- export { Badge };
8
+ export declare const Badge: React.FC<BadgeProps>;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ interface TooltipProps {
3
+ children: React.ReactNode;
4
+ content: React.ReactNode;
5
+ placement?: "top" | "bottom" | "left" | "right" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
6
+ delay?: number;
7
+ }
8
+ export declare const Tooltip: React.FC<TooltipProps>;
9
+ export {};
@@ -11,4 +11,5 @@ interface ThemeProviderProps {
11
11
  export declare const ThemeProvider: React.FC<ThemeProviderProps>;
12
12
  export declare const useTheme: () => ThemeContextType;
13
13
  export declare const useThemeValue: () => Theme;
14
+ export declare const useComponentTheme: (themeProp?: Theme) => Theme;
14
15
  export {};
@@ -14,10 +14,10 @@ export declare function toTitleCase(str: string): string;
14
14
  export declare function formatCurrency(value: number | null | undefined): string;
15
15
  /**
16
16
  * Formats latency in a human-readable format
17
- * @param latencyMs - Latency in milliseconds
17
+ * @param latency - Latency in seconds
18
18
  * @returns The formatted latency string
19
19
  */
20
- export declare function formatLatency(latencyMs: number): string;
20
+ export declare function formatLatency(latency: number): string;
21
21
  /**
22
22
  * Truncates text to a specified length
23
23
  * @param text - The text to truncate
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@railtownai/railtracks-visualizer",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Railtown AI",
6
6
  "description": "A visualizer for RailTracks agentic flows",