@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.
- package/dist/cjs/index.js +147 -280
- package/dist/esm/index.js +148 -281
- package/dist/types/components/Visualizer.d.ts +1 -1
- package/dist/types/components/ui/badge.d.ts +7 -4
- package/dist/types/components/ui/tooltip.d.ts +9 -0
- package/dist/types/lib/ThemeProvider.d.ts +1 -0
- package/dist/types/lib/utils.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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
|
|
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
|
-
|
|
3
|
-
variant?:
|
|
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
|
|
6
|
-
export {
|
|
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
|
|
17
|
+
* @param latency - Latency in seconds
|
|
18
18
|
* @returns The formatted latency string
|
|
19
19
|
*/
|
|
20
|
-
export declare function formatLatency(
|
|
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
|