@mastra/playground-ui 5.0.2-alpha.1 → 5.0.2-alpha.4
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/components/threads.d.ts +28 -0
- package/dist/domains/agents/agent/agent-traces.d.ts +8 -3
- package/dist/domains/workflows/workflow/workflow-traces.d.ts +8 -3
- package/dist/hooks/index.d.ts +1 -0
- package/dist/index.cjs.js +302 -239
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.es.js +295 -241
- package/dist/index.es.js.map +1 -1
- package/dist/lib/number.d.ts +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ElementType } from '../../node_modules/@types/react';
|
|
2
|
+
|
|
3
|
+
export interface ThreadsProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const Threads: ({ children }: ThreadsProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export interface ThreadLinkProps {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
as?: ElementType;
|
|
10
|
+
href?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
prefetch?: boolean;
|
|
13
|
+
to?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const ThreadLink: ({ children, as: Component, href, className, prefetch, to }: ThreadLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export interface ThreadListProps {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare const ThreadList: ({ children }: ThreadListProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export interface ThreadItemProps {
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
isActive?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare const ThreadItem: ({ children, isActive }: ThreadItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export interface ThreadDeleteButtonProps {
|
|
26
|
+
onClick: () => void;
|
|
27
|
+
}
|
|
28
|
+
export declare const ThreadDeleteButton: ({ onClick }: ThreadDeleteButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
import { RefinedTrace } from '../../traces/types';
|
|
2
|
+
|
|
1
3
|
export interface AgentTracesProps {
|
|
2
|
-
agentName: string;
|
|
3
|
-
baseUrl: string;
|
|
4
4
|
className?: string;
|
|
5
|
+
traces: RefinedTrace[];
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
error: {
|
|
8
|
+
message: string;
|
|
9
|
+
} | null;
|
|
5
10
|
}
|
|
6
|
-
export declare function AgentTraces({
|
|
11
|
+
export declare function AgentTraces({ className, traces, isLoading, error }: AgentTracesProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import { RefinedTrace } from '../../traces/types';
|
|
2
|
+
|
|
1
3
|
export interface WorkflowTracesProps {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
+
traces: RefinedTrace[];
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
error: {
|
|
7
|
+
message: string;
|
|
8
|
+
} | null;
|
|
4
9
|
}
|
|
5
|
-
export declare function WorkflowTraces({
|
|
10
|
+
export declare function WorkflowTraces({ traces, isLoading, error }: WorkflowTracesProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './use-traces';
|