@mastra/playground-ui 16.0.1 → 16.1.0
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/CHANGELOG.md +46 -0
- package/dist/index.cjs.js +4364 -4486
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4355 -4479
- package/dist/index.es.js.map +1 -1
- package/dist/src/domains/agents/components/{agent-table/agent-table.d.ts → agent-list/agent-list.d.ts} +2 -2
- package/dist/src/domains/agents/components/agent-list/no-agents-info.d.ts +4 -0
- package/dist/src/domains/agents/components/provider-map-icon.d.ts +1 -0
- package/dist/src/domains/agents/hooks/use-agents.d.ts +3 -1
- package/dist/src/domains/agents/index.d.ts +1 -1
- package/dist/src/domains/datasets/components/datasets-list/datasets-list.d.ts +8 -0
- package/dist/src/domains/datasets/components/datasets-list/no-datasets-info.d.ts +4 -0
- package/dist/src/domains/datasets/index.d.ts +2 -2
- package/dist/src/domains/experiments/hooks/use-experiment-trace.d.ts +10 -3
- package/dist/src/domains/mcps/components/mcp-server-list/mcp-server-list.d.ts +7 -0
- package/dist/src/domains/mcps/components/mcp-server-list/no-mcp-servers-info.d.ts +1 -0
- package/dist/src/domains/mcps/index.d.ts +1 -1
- package/dist/src/domains/observability/components/traces-list.d.ts +10 -3
- package/dist/src/domains/observability/components/traces-tools.d.ts +3 -1
- package/dist/src/domains/observability/index.d.ts +1 -0
- package/dist/src/domains/observability/utils/__tests__/group-traces-by-thread.test.d.ts +1 -0
- package/dist/src/domains/observability/utils/group-traces-by-thread.d.ts +20 -0
- package/dist/src/domains/processors/components/index.d.ts +1 -1
- package/dist/src/domains/processors/components/processor-list/no-processors-info.d.ts +1 -0
- package/dist/src/domains/processors/components/processor-list/processor-list.d.ts +7 -0
- package/dist/src/domains/prompt-blocks/components/prompt-block-list/no-prompt-blocks-info.d.ts +1 -0
- package/dist/src/domains/prompt-blocks/components/prompt-block-list/prompt-blocks-list.d.ts +6 -0
- package/dist/src/domains/prompt-blocks/index.d.ts +1 -1
- package/dist/src/domains/scores/components/scorers-list/no-scorers-info.d.ts +1 -0
- package/dist/src/domains/scores/components/scorers-list/scorers-list.d.ts +7 -0
- package/dist/src/domains/scores/index.d.ts +1 -1
- package/dist/src/domains/templates/index.d.ts +0 -1
- package/dist/src/domains/templates/templates-list.d.ts +4 -4
- package/dist/src/domains/tool-providers/components/index.d.ts +1 -1
- package/dist/src/domains/tool-providers/components/{tool-list.d.ts → provider-tool-list.d.ts} +1 -1
- package/dist/src/domains/tools/components/tool-list/no-tools-info.d.ts +1 -0
- package/dist/src/domains/tools/components/{tool-table/tool-table.d.ts → tool-list/tool-list.d.ts} +2 -2
- package/dist/src/domains/tools/index.d.ts +1 -1
- package/dist/src/domains/workflows/components/workflow-list/no-workflow-info.d.ts +1 -0
- package/dist/src/domains/workflows/components/workflow-list/workflow-list.d.ts +7 -0
- package/dist/src/domains/workflows/index.d.ts +1 -1
- package/dist/src/ds/components/EmptyState/EmptyState.d.ts +1 -1
- package/dist/src/ds/components/ErrorState/ErrorState.d.ts +5 -0
- package/dist/src/ds/components/ErrorState/error-state.stories.d.ts +8 -0
- package/dist/src/ds/components/ErrorState/index.d.ts +2 -0
- package/dist/src/ds/components/FormFieldBlocks/fields/search-field-block.d.ts +2 -1
- package/dist/src/ds/components/ItemList/item-list-cell.d.ts +3 -2
- package/dist/src/ds/components/ItemList/item-list-row.d.ts +2 -1
- package/dist/src/ds/components/ItemList/item-list-text-cell.d.ts +1 -2
- package/dist/src/ds/components/ListSearch/index.d.ts +1 -0
- package/dist/src/ds/components/ListSearch/list-search.d.ts +7 -0
- package/dist/src/ds/components/PageContent/index.d.ts +1 -0
- package/dist/src/ds/components/PageContent/page-content-main.d.ts +5 -0
- package/dist/src/ds/components/PageContent/page-content-root.d.ts +4 -0
- package/dist/src/ds/components/PageContent/page-content-top-bar.d.ts +4 -0
- package/dist/src/ds/components/PageContent/page-content.d.ts +7 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/tailwind.preset.cjs.js.map +1 -1
- package/dist/tailwind.preset.es.js.map +1 -1
- package/package.json +9 -9
- package/dist/src/domains/agents/components/agent-table/columns.d.ts +0 -6
- package/dist/src/domains/agents/components/agent-table/types.d.ts +0 -4
- package/dist/src/domains/datasets/components/datasets-table/columns.d.ts +0 -6
- package/dist/src/domains/datasets/components/datasets-table/datasets-table.d.ts +0 -8
- package/dist/src/domains/mcps/components/mcp-table/columns.d.ts +0 -3
- package/dist/src/domains/mcps/components/mcp-table/mcp-table.d.ts +0 -7
- package/dist/src/domains/mcps/components/mcp-table/types.d.ts +0 -2
- package/dist/src/domains/processors/components/processor-table/columns.d.ts +0 -12
- package/dist/src/domains/processors/components/processor-table/index.d.ts +0 -2
- package/dist/src/domains/processors/components/processor-table/processor-table.d.ts +0 -8
- package/dist/src/domains/prompt-blocks/components/prompt-blocks-table/columns.d.ts +0 -3
- package/dist/src/domains/prompt-blocks/components/prompt-blocks-table/prompt-blocks-table.d.ts +0 -6
- package/dist/src/domains/prompt-blocks/components/prompt-blocks-table/types.d.ts +0 -2
- package/dist/src/domains/scores/components/scorers-table/columns.d.ts +0 -3
- package/dist/src/domains/scores/components/scorers-table/scorers-table.d.ts +0 -7
- package/dist/src/domains/scores/components/scorers-table/types.d.ts +0 -4
- package/dist/src/domains/tools/components/tool-table/columns.d.ts +0 -3
- package/dist/src/domains/workflows/components/workflow-table/columns.d.ts +0 -3
- package/dist/src/domains/workflows/components/workflow-table/types.d.ts +0 -4
- package/dist/src/domains/workflows/components/workflow-table/workflow-table.d.ts +0 -7
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GetAgentResponse } from '@mastra/client-js';
|
|
2
|
-
export interface
|
|
2
|
+
export interface AgentListProps {
|
|
3
3
|
agents: Record<string, GetAgentResponse>;
|
|
4
4
|
isLoading: boolean;
|
|
5
5
|
error?: Error | null;
|
|
6
6
|
onCreateClick?: () => void;
|
|
7
7
|
}
|
|
8
|
-
export declare function
|
|
8
|
+
export declare function AgentList({ agents, isLoading, error, onCreateClick }: AgentListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const providerMapToIcon: {
|
|
2
2
|
'openai.chat': import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
'openai.responses': import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
openai: import("react/jsx-runtime").JSX.Element;
|
|
4
5
|
'anthropic.chat': import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
'anthropic.messages': import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
AZURE: import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ReorderModelListParams, UpdateModelInModelListParams, UpdateModelParams } from '@mastra/client-js';
|
|
2
|
-
export declare const useAgents: () => import('@tanstack/react-query').UseQueryResult<
|
|
2
|
+
export declare const useAgents: () => import('@tanstack/react-query').UseQueryResult<{
|
|
3
|
+
[k: string]: import('@mastra/client-js').GetAgentResponse;
|
|
4
|
+
}, Error>;
|
|
3
5
|
export declare const useUpdateAgentModel: (agentId: string) => import('@tanstack/react-query').UseMutationResult<{
|
|
4
6
|
message: string;
|
|
5
7
|
}, Error, UpdateModelParams, unknown>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './components/agent-chat';
|
|
2
2
|
export * from './context';
|
|
3
3
|
export * from './components/agent-settings';
|
|
4
|
-
export * from './components/agent-
|
|
4
|
+
export * from './components/agent-list/agent-list';
|
|
5
5
|
export * from './components/request-context';
|
|
6
6
|
export * from './components/provider-map-icon';
|
|
7
7
|
export * from './components/agent-metadata';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DatasetRecord } from '@mastra/client-js';
|
|
2
|
+
export interface DatasetsListProps {
|
|
3
|
+
datasets: DatasetRecord[];
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
error?: Error | null;
|
|
6
|
+
onCreateClick?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function DatasetsList({ datasets, isLoading, onCreateClick, error }: DatasetsListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,14 +13,14 @@ export * from './utils/json-validation';
|
|
|
13
13
|
export * from './hooks/use-item-selection';
|
|
14
14
|
export * from './utils/csv-export';
|
|
15
15
|
export * from './utils/json-export';
|
|
16
|
-
export {
|
|
16
|
+
export { DatasetsList } from './components/datasets-list/datasets-list';
|
|
17
17
|
export { CreateDatasetDialog } from './components/create-dataset-dialog';
|
|
18
18
|
export { CreateDatasetFromItemsDialog } from './components/create-dataset-from-items-dialog';
|
|
19
19
|
export { AddItemsToDatasetDialog } from './components/add-items-to-dataset-dialog';
|
|
20
20
|
export { DuplicateDatasetDialog } from './components/duplicate-dataset-dialog';
|
|
21
21
|
export { EditDatasetDialog } from './components/edit-dataset-dialog';
|
|
22
22
|
export { DeleteDatasetDialog } from './components/delete-dataset-dialog';
|
|
23
|
-
export {
|
|
23
|
+
export { NoDatasetInfo } from './components/datasets-list/no-datasets-info';
|
|
24
24
|
export { DatasetCombobox } from './components/dataset-combobox';
|
|
25
25
|
export type { DatasetComboboxProps } from './components/dataset-combobox';
|
|
26
26
|
export { DatasetPageContent } from './components/dataset-detail/dataset-page-content';
|
|
@@ -9,16 +9,25 @@ export declare const useExperimentTrace: (traceId: string | null | undefined) =>
|
|
|
9
9
|
startedAt: Date;
|
|
10
10
|
traceId: string;
|
|
11
11
|
spanId: string;
|
|
12
|
+
experimentId?: string | null | undefined;
|
|
12
13
|
attributes?: Record<string, unknown> | null | undefined;
|
|
13
14
|
links?: unknown[] | null | undefined;
|
|
14
15
|
input?: unknown;
|
|
15
16
|
output?: unknown;
|
|
16
17
|
error?: unknown;
|
|
17
|
-
requestContext?: Record<string, unknown> | null | undefined;
|
|
18
18
|
endedAt?: Date | null | undefined;
|
|
19
|
+
requestContext?: Record<string, unknown> | null | undefined;
|
|
20
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
21
|
+
tags?: string[] | null | undefined;
|
|
19
22
|
entityType?: import('@mastra/core/observability').EntityType | null | undefined;
|
|
20
23
|
entityId?: string | null | undefined;
|
|
21
24
|
entityName?: string | null | undefined;
|
|
25
|
+
parentEntityType?: import('@mastra/core/observability').EntityType | null | undefined;
|
|
26
|
+
parentEntityId?: string | null | undefined;
|
|
27
|
+
parentEntityName?: string | null | undefined;
|
|
28
|
+
rootEntityType?: import('@mastra/core/observability').EntityType | null | undefined;
|
|
29
|
+
rootEntityId?: string | null | undefined;
|
|
30
|
+
rootEntityName?: string | null | undefined;
|
|
22
31
|
userId?: string | null | undefined;
|
|
23
32
|
organizationId?: string | null | undefined;
|
|
24
33
|
resourceId?: string | null | undefined;
|
|
@@ -30,8 +39,6 @@ export declare const useExperimentTrace: (traceId: string | null | undefined) =>
|
|
|
30
39
|
source?: string | null | undefined;
|
|
31
40
|
serviceName?: string | null | undefined;
|
|
32
41
|
scope?: Record<string, unknown> | null | undefined;
|
|
33
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
34
|
-
tags?: string[] | null | undefined;
|
|
35
42
|
parentSpanId?: string | null | undefined;
|
|
36
43
|
}[];
|
|
37
44
|
}, Error>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { McpServerListResponse } from '@mastra/client-js';
|
|
2
|
+
export interface MCPServerListProps {
|
|
3
|
+
mcpServers: McpServerListResponse['servers'];
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
error?: Error | null;
|
|
6
|
+
}
|
|
7
|
+
export declare function MCPServerList({ mcpServers, isLoading, error }: MCPServerListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NoMCPServersInfo: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import { SpanRecord } from '@mastra/core/storage';
|
|
2
1
|
export declare const tracesListColumns: {
|
|
3
2
|
name: string;
|
|
4
3
|
label: string;
|
|
5
4
|
size: string;
|
|
6
5
|
}[];
|
|
7
|
-
type Trace =
|
|
6
|
+
type Trace = {
|
|
7
|
+
traceId: string;
|
|
8
|
+
name: string;
|
|
9
|
+
entityType?: string | null;
|
|
10
|
+
entityId?: string | null;
|
|
11
|
+
entityName?: string | null;
|
|
8
12
|
attributes?: Record<string, any> | null;
|
|
9
13
|
input?: unknown;
|
|
10
14
|
createdAt: Date | string;
|
|
15
|
+
threadId?: string | null;
|
|
11
16
|
};
|
|
12
17
|
type TracesListProps = {
|
|
13
18
|
selectedTraceId?: string;
|
|
@@ -18,7 +23,9 @@ type TracesListProps = {
|
|
|
18
23
|
filtersApplied?: boolean;
|
|
19
24
|
isFetchingNextPage?: boolean;
|
|
20
25
|
hasNextPage?: boolean;
|
|
26
|
+
groupByThread?: boolean;
|
|
27
|
+
threadTitles?: Record<string, string>;
|
|
21
28
|
columns?: typeof tracesListColumns;
|
|
22
29
|
};
|
|
23
|
-
export declare function TracesList({ traces, selectedTraceId, onTraceClick, errorMsg, setEndOfListElement, filtersApplied, isFetchingNextPage, hasNextPage, columns, }: TracesListProps): import("react/jsx-runtime").JSX.Element | null;
|
|
30
|
+
export declare function TracesList({ traces, selectedTraceId, onTraceClick, errorMsg, setEndOfListElement, filtersApplied, isFetchingNextPage, hasNextPage, groupByThread, threadTitles, columns, }: TracesListProps): import("react/jsx-runtime").JSX.Element | null;
|
|
24
31
|
export {};
|
|
@@ -21,6 +21,8 @@ type TracesToolsProps = {
|
|
|
21
21
|
onReset?: () => void;
|
|
22
22
|
onDateChange?: (value: Date | undefined, type: 'from' | 'to') => void;
|
|
23
23
|
isLoading?: boolean;
|
|
24
|
+
groupByThread?: boolean;
|
|
25
|
+
onGroupByThreadChange?: (value: boolean) => void;
|
|
24
26
|
};
|
|
25
|
-
export declare function TracesTools({ onEntityChange, onReset, selectedEntity, entityOptions, onDateChange, selectedDateFrom, selectedDateTo, isLoading, }: TracesToolsProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare function TracesTools({ onEntityChange, onReset, selectedEntity, entityOptions, onDateChange, selectedDateFrom, selectedDateTo, isLoading, groupByThread, onGroupByThreadChange, }: TracesToolsProps): import("react/jsx-runtime").JSX.Element;
|
|
26
28
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** Minimal trace shape required by groupTracesByThread */
|
|
2
|
+
export type GroupableTrace = {
|
|
3
|
+
threadId?: string | null;
|
|
4
|
+
createdAt: Date | string;
|
|
5
|
+
};
|
|
6
|
+
export type ThreadGroup<T extends GroupableTrace = GroupableTrace> = {
|
|
7
|
+
threadId: string;
|
|
8
|
+
traces: T[];
|
|
9
|
+
};
|
|
10
|
+
export type GroupedTraces<T extends GroupableTrace = GroupableTrace> = {
|
|
11
|
+
groups: ThreadGroup<T>[];
|
|
12
|
+
ungrouped: T[];
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Groups traces by their threadId field.
|
|
16
|
+
* Traces without a threadId are placed in the `ungrouped` bucket.
|
|
17
|
+
* Groups are ordered by the most recent trace's createdAt (descending).
|
|
18
|
+
* Within each group, traces maintain their original order.
|
|
19
|
+
*/
|
|
20
|
+
export declare function groupTracesByThread<T extends GroupableTrace>(traces: T[]): GroupedTraces<T>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NoProcessorsInfo: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ProcessorInfo } from '../../hooks/use-processors';
|
|
2
|
+
export interface ProcessorListProps {
|
|
3
|
+
processors: Record<string, ProcessorInfo>;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
error?: Error | null;
|
|
6
|
+
}
|
|
7
|
+
export declare function ProcessorList({ processors, isLoading, error }: ProcessorListProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/src/domains/prompt-blocks/components/prompt-block-list/no-prompt-blocks-info.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NoPromptBlocksInfo: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { StoredPromptBlockResponse } from '@mastra/client-js';
|
|
2
|
+
export interface PromptBlockListProps {
|
|
3
|
+
promptBlocks: StoredPromptBlockResponse[];
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function PromptBlockList({ promptBlocks, isLoading }: PromptBlockListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { PromptBlockCreateContent } from './components/prompt-block-create-content';
|
|
2
|
-
export {
|
|
2
|
+
export { PromptBlockList, type PromptBlockListProps } from './components/prompt-block-list/prompt-blocks-list';
|
|
3
3
|
export { PromptBlockVersionCombobox, type PromptBlockVersionComboboxProps, } from './components/prompt-block-version-combobox';
|
|
4
4
|
export { PromptBlockEditSidebar } from './components/prompt-block-edit-page/prompt-block-edit-sidebar';
|
|
5
5
|
export { PromptBlockEditMain } from './components/prompt-block-edit-page/prompt-block-edit-main';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NoScorersInfo: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GetScorerResponse } from '@mastra/client-js';
|
|
2
|
+
export interface ScorersListProps {
|
|
3
|
+
scorers: Record<string, GetScorerResponse>;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
error?: Error | null;
|
|
6
|
+
}
|
|
7
|
+
export declare function ScorersList({ scorers, isLoading, error }: ScorersListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ export * from './components/score-dialog';
|
|
|
3
3
|
export * from './components/score-as-item-dialog';
|
|
4
4
|
export * from './components/scores-tools';
|
|
5
5
|
export * from './components/scorer-combobox';
|
|
6
|
-
export * from './components/scorers-
|
|
6
|
+
export * from './components/scorers-list/scorers-list';
|
|
7
7
|
export * from './components/scorer-edit-page';
|
|
8
8
|
export * from './components/scorer-create-content';
|
|
9
9
|
export * from './hooks/use-trace-span-scores';
|
|
@@ -12,11 +12,11 @@ type Template = {
|
|
|
12
12
|
mcp?: string[];
|
|
13
13
|
supportedProviders: string[];
|
|
14
14
|
};
|
|
15
|
-
type TemplatesListProps = {
|
|
15
|
+
export type TemplatesListProps = {
|
|
16
16
|
templates: Template[];
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
tags: string[];
|
|
18
|
+
providers: string[];
|
|
19
19
|
isLoading?: boolean;
|
|
20
20
|
};
|
|
21
|
-
export declare function TemplatesList({ templates,
|
|
21
|
+
export declare function TemplatesList({ templates, tags, providers, isLoading }: TemplatesListProps): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { IntegrationToolsSection } from './integration-tools-section';
|
|
2
2
|
export { ToolProviderDialog } from './tool-provider-dialog';
|
|
3
3
|
export { ToolkitList } from './toolkit-list';
|
|
4
|
-
export {
|
|
4
|
+
export { ProviderToolList } from './provider-tool-list';
|
package/dist/src/domains/tool-providers/components/{tool-list.d.ts → provider-tool-list.d.ts}
RENAMED
|
@@ -4,5 +4,5 @@ interface ToolListProps {
|
|
|
4
4
|
selectedIds?: Set<string>;
|
|
5
5
|
onToggle?: (id: string, description: string) => void;
|
|
6
6
|
}
|
|
7
|
-
export declare function
|
|
7
|
+
export declare function ProviderToolList({ providerId, toolkit, selectedIds, onToggle }: ToolListProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NoToolsInfo: () => import("react/jsx-runtime").JSX.Element;
|
package/dist/src/domains/tools/components/{tool-table/tool-table.d.ts → tool-list/tool-list.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GetAgentResponse, GetToolResponse } from '@mastra/client-js';
|
|
2
|
-
export interface
|
|
2
|
+
export interface ToolListProps {
|
|
3
3
|
tools: Record<string, GetToolResponse>;
|
|
4
4
|
agents: Record<string, GetAgentResponse>;
|
|
5
5
|
isLoading: boolean;
|
|
6
6
|
error?: Error | null;
|
|
7
7
|
}
|
|
8
|
-
export declare function
|
|
8
|
+
export declare function ToolList({ tools, agents, isLoading, error }: ToolListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NoWorkflowInfo: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GetWorkflowResponse } from '@mastra/client-js';
|
|
2
|
+
export interface WorkflowListProps {
|
|
3
|
+
workflows: Record<string, GetWorkflowResponse>;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
error?: Error | null;
|
|
6
|
+
}
|
|
7
|
+
export declare function WorkflowList({ workflows, isLoading, error }: WorkflowListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,7 +4,7 @@ export * from './workflow/workflow-graph';
|
|
|
4
4
|
export * from './workflow/workflow-trigger';
|
|
5
5
|
export * from './context/use-current-run';
|
|
6
6
|
export * from './runs/workflow-run-details';
|
|
7
|
-
export * from './components/workflow-
|
|
7
|
+
export * from './components/workflow-list/workflow-list';
|
|
8
8
|
export * from './components/workflow-information';
|
|
9
9
|
export * from './components/workflow-combobox';
|
|
10
10
|
export * from './utils';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { ErrorState } from './ErrorState';
|
|
3
|
+
declare const meta: Meta<typeof ErrorState>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ErrorState>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const ServerError: Story;
|
|
8
|
+
export declare const Timeout: Story;
|
|
@@ -14,5 +14,6 @@ export type SearchFieldBlockProps = {
|
|
|
14
14
|
errorMsg?: string;
|
|
15
15
|
size?: 'small' | 'default';
|
|
16
16
|
layout?: 'horizontal' | 'vertical';
|
|
17
|
+
className?: string;
|
|
17
18
|
};
|
|
18
|
-
export declare function SearchFieldBlock({ name, helpText, errorMsg, required, disabled, size, value, label, labelIsHidden, layout, placeholder, onChange, onReset, }: SearchFieldBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function SearchFieldBlock({ name, helpText, errorMsg, required, disabled, size, value, label, labelIsHidden, layout, placeholder, onChange, onReset, className, }: SearchFieldBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type ItemListCellProps = {
|
|
2
2
|
children: React.ReactNode;
|
|
3
3
|
className?: string;
|
|
4
|
+
style?: React.CSSProperties;
|
|
4
5
|
};
|
|
5
|
-
export declare function ItemListCell({ children, className }:
|
|
6
|
+
export declare function ItemListCell({ children, className, style }: ItemListCellProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,5 +3,6 @@ export type ItemListRowProps = {
|
|
|
3
3
|
isSelected?: boolean;
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
columns?: ItemListColumn[];
|
|
6
|
+
className?: string;
|
|
6
7
|
};
|
|
7
|
-
export declare function ItemListRow({ isSelected, children, columns }: ItemListRowProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function ItemListRow({ isSelected, children, columns, className }: ItemListRowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export type ItemListTextCellProps = {
|
|
2
2
|
children: React.ReactNode;
|
|
3
|
-
isLoading?: boolean;
|
|
4
3
|
className?: string;
|
|
5
4
|
};
|
|
6
|
-
export declare function ItemListTextCell({ children,
|
|
5
|
+
export declare function ItemListTextCell({ children, className }: ItemListTextCellProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './list-search';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type ListSearchProps = {
|
|
2
|
+
onSearch: (search: string) => void;
|
|
3
|
+
label: string;
|
|
4
|
+
placeholder: string;
|
|
5
|
+
debounceMs?: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const ListSearch: ({ onSearch, label, placeholder, debounceMs }: ListSearchProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './page-content';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PageContentRoot } from './page-content-root';
|
|
2
|
+
import { PageContentTopBar } from './page-content-top-bar';
|
|
3
|
+
import { PageContentMain } from './page-content-main';
|
|
4
|
+
export declare const PageContent: typeof PageContentRoot & {
|
|
5
|
+
TopBar: typeof PageContentTopBar;
|
|
6
|
+
Main: typeof PageContentMain;
|
|
7
|
+
};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './ds/components/Breadcrumb/index';
|
|
|
17
17
|
export * from './ds/components/Button/index';
|
|
18
18
|
export * from './ds/components/CodeEditor/index';
|
|
19
19
|
export * from './ds/components/EmptyState/index';
|
|
20
|
+
export * from './ds/components/ErrorState/index';
|
|
20
21
|
export * from './ds/components/Entity/index';
|
|
21
22
|
export * from './ds/components/PermissionDenied';
|
|
22
23
|
export * from './ds/components/Header/index';
|
|
@@ -40,6 +41,7 @@ export * from './ds/components/Popover';
|
|
|
40
41
|
export * from './ds/components/RadioGroup';
|
|
41
42
|
export * from './ds/components/ScrollArea';
|
|
42
43
|
export * from './ds/components/Searchbar';
|
|
44
|
+
export * from './ds/components/ListSearch';
|
|
43
45
|
export * from './ds/components/Select';
|
|
44
46
|
export * from './ds/components/Skeleton';
|
|
45
47
|
export * from './ds/components/Slider';
|
|
@@ -59,6 +61,7 @@ export * from './ds/components/JSONSchemaForm';
|
|
|
59
61
|
export * from './ds/components/KeyValueList';
|
|
60
62
|
export * from './ds/components/MainSidebar';
|
|
61
63
|
export * from './ds/components/Notification';
|
|
64
|
+
export * from './ds/components/PageContent';
|
|
62
65
|
export * from './ds/components/PageHeader';
|
|
63
66
|
export * from './ds/components/Section';
|
|
64
67
|
export * from './ds/components/SelectElement';
|