@mastra/playground-ui 4.0.4-alpha.3 → 4.0.4-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.
@@ -1,32 +1,15 @@
1
- import { ColumnDef } from '@tanstack/react-table';
1
+ import { ColumnDef as ReactTableColumnDef } from '@tanstack/react-table';
2
2
  import { PaginationResult } from '../../lib/pagination/types';
3
3
 
4
- interface DataTableProps<TData, TValue> {
5
- /**
6
- * table title
7
- */
8
- title?: string | React.ReactNode;
9
- /**
10
- * table icon
11
- */
12
- icon?: React.ReactNode;
13
- /**
14
- * disable table border
15
- * @default false
16
- */
17
- withoutBorder?: boolean;
4
+ export interface DataTableProps<TData, TValue> {
18
5
  /**
19
6
  * table columns
20
7
  */
21
- columns: ColumnDef<TData, TValue>[];
8
+ columns: ReactTableColumnDef<TData, TValue>[];
22
9
  /**
23
10
  * table data
24
11
  */
25
12
  data: TData[];
26
- /**
27
- * custom className for the table parent container
28
- */
29
- className?: string;
30
13
  pagination?: PaginationResult;
31
14
  /**
32
15
  * goto next page
@@ -36,21 +19,6 @@ interface DataTableProps<TData, TValue> {
36
19
  * goto previous page
37
20
  */
38
21
  gotoPreviousPage?: () => void;
39
- /**
40
- * disable table container radius
41
- * @default false
42
- */
43
- withoutRadius?: boolean;
44
- /**
45
- * disable flex container
46
- * @default false
47
- */
48
- disabledFlex?: boolean;
49
- /**
50
- * height of the table row when there are no results
51
- * @default '96px'
52
- */
53
- emptyStateHeight?: string;
54
22
  /**
55
23
  * get the row id
56
24
  */
@@ -68,5 +36,4 @@ interface DataTableProps<TData, TValue> {
68
36
  */
69
37
  emptyText?: string;
70
38
  }
71
- export declare const DataTable: <TData, TValue>({ icon, withoutBorder, columns, data, className, pagination, gotoNextPage, gotoPreviousPage, withoutRadius, disabledFlex, emptyStateHeight, getRowId, selectedRowId, isLoading, emptyText, }: DataTableProps<TData, TValue>) => import("react/jsx-runtime").JSX.Element;
72
- export {};
39
+ export declare const DataTable: <TData, TValue>({ columns, data, pagination, gotoNextPage, gotoPreviousPage, getRowId, selectedRowId, isLoading, emptyText, }: DataTableProps<TData, TValue>) => import("react/jsx-runtime").JSX.Element;
@@ -3,8 +3,10 @@ import { ModelSettings } from '../../../../types';
3
3
 
4
4
  type AgentContextType = {
5
5
  modelSettings: ModelSettings;
6
+ chatWithGenerate: boolean;
6
7
  setModelSettings: React.Dispatch<React.SetStateAction<ModelSettings>>;
7
8
  resetModelSettings: () => void;
9
+ setChatWithGenerate: React.Dispatch<React.SetStateAction<boolean>>;
8
10
  };
9
11
  export declare const AgentContext: import('../../../../../node_modules/@types/react').Context<AgentContextType>;
10
12
  export declare function AgentProvider({ children }: {
@@ -1,5 +1,4 @@
1
1
  export * from './agent/agent-chat';
2
2
  export * from './agent/agent-evals';
3
3
  export * from './agent/agent-traces';
4
- export * from './agents-table';
5
4
  export * from './agent/context/agent-context';
@@ -1,5 +1,4 @@
1
1
  export * from './workflow/workflow-traces';
2
2
  export * from './workflow/workflow-graph';
3
- export * from './workflows-table';
4
3
  export * from './workflow/workflow-trigger';
5
4
  export * from './context/workflow-run-context';
@@ -1,24 +1,22 @@
1
1
  import { default as React } from '../../../../node_modules/@types/react';
2
2
 
3
- export interface CellProps {
3
+ export interface CellProps extends React.TdHTMLAttributes<HTMLTableCellElement> {
4
4
  className?: string;
5
5
  children: React.ReactNode;
6
6
  }
7
- export declare const Cell: ({ className, children }: CellProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const Cell: ({ className, children, ...props }: CellProps) => import("react/jsx-runtime").JSX.Element;
8
8
  export declare const TxtCell: ({ className, children }: CellProps) => import("react/jsx-runtime").JSX.Element;
9
9
  export declare const UnitCell: ({ className, children, unit }: CellProps & {
10
10
  unit: string;
11
11
  }) => import("react/jsx-runtime").JSX.Element;
12
- export interface DateTimeCellProps {
13
- className?: string;
12
+ export interface DateTimeCellProps extends Omit<CellProps, 'children'> {
14
13
  dateTime: Date;
15
14
  }
16
- export declare const DateTimeCell: ({ className, dateTime }: DateTimeCellProps) => import("react/jsx-runtime").JSX.Element;
17
- export interface EntryCellProps {
18
- className?: string;
15
+ export declare const DateTimeCell: ({ dateTime, ...props }: DateTimeCellProps) => import("react/jsx-runtime").JSX.Element;
16
+ export interface EntryCellProps extends Omit<CellProps, 'children'> {
19
17
  name: React.ReactNode;
20
18
  description?: React.ReactNode;
21
19
  icon: React.ReactNode;
22
20
  meta?: React.ReactNode;
23
21
  }
24
- export declare const EntryCell: ({ className, name, description, icon, meta }: EntryCellProps) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const EntryCell: ({ name, description, icon, meta, ...props }: EntryCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -11,11 +11,11 @@ export interface TheadProps {
11
11
  children: React.ReactNode;
12
12
  }
13
13
  export declare const Thead: ({ className, children }: TheadProps) => import("react/jsx-runtime").JSX.Element;
14
- export interface ThProps {
14
+ export interface ThProps extends React.TdHTMLAttributes<HTMLTableCellElement> {
15
15
  className?: string;
16
16
  children: React.ReactNode;
17
17
  }
18
- export declare const Th: ({ className, children }: ThProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const Th: ({ className, children, ...props }: ThProps) => import("react/jsx-runtime").JSX.Element;
19
19
  export interface TbodyProps {
20
20
  className?: string;
21
21
  children: React.ReactNode;
@@ -0,0 +1,30 @@
1
+ export * from './AgentIcon';
2
+ export * from './AiIcon';
3
+ export * from './ApiIcon';
4
+ export * from './BranchIcon';
5
+ export * from './CheckIcon';
6
+ export * from './CommitIcon';
7
+ export * from './CrossIcon';
8
+ export * from './DbIcon';
9
+ export * from './DebugIcon';
10
+ export * from './DeploymentIcon';
11
+ export * from './DividerIcon';
12
+ export * from './DocsIcon';
13
+ export * from './EnvIcon';
14
+ export * from './FiltersIcon';
15
+ export * from './HomeIcon';
16
+ export * from './Icon';
17
+ export * from './InfoIcon';
18
+ export * from './JudgeIcon';
19
+ export * from './LogsIcon';
20
+ export * from './MemoryIcon';
21
+ export * from './OpenAIIcon';
22
+ export * from './PromptIcon';
23
+ export * from './ScoreIcon';
24
+ export * from './SettingsIcon';
25
+ export * from './SlashIcon';
26
+ export * from './ToolsIcon';
27
+ export * from './TraceIcon';
28
+ export * from './TsIcon';
29
+ export * from './VariablesIcon';
30
+ export * from './WorkflowIcon';