@mastra/playground-ui 7.0.0-beta.0 → 7.0.0-beta.1

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.
Files changed (52) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/index.cjs.js +330 -598
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.es.js +334 -592
  5. package/dist/index.es.js.map +1 -1
  6. package/dist/src/components/syntax-highlighter.d.ts +2 -1
  7. package/dist/src/components/ui/elements/form-fields/index.d.ts +0 -4
  8. package/dist/src/components/ui/elements/headers/index.d.ts +0 -1
  9. package/dist/src/components/ui/elements/main-sidebar/main-sidebar.d.ts +1 -1
  10. package/dist/src/components/ui/input.d.ts +1 -1
  11. package/dist/src/components/ui/syntax-highlighter.d.ts +1 -1
  12. package/dist/src/components/ui/textarea.d.ts +1 -1
  13. package/dist/src/domains/agents/context/index.d.ts +0 -1
  14. package/dist/src/domains/agents/context/model-reset-context.d.ts +0 -4
  15. package/dist/src/domains/scores/hooks/use-scorers.d.ts +2 -6
  16. package/dist/src/domains/scores/index.d.ts +1 -1
  17. package/dist/src/domains/tools/components/ToolExecutor.d.ts +1 -1
  18. package/dist/src/domains/workflows/workflow/workflow-default-node.d.ts +4 -0
  19. package/dist/src/domains/workflows/workflow/workflow-nested-node.d.ts +4 -0
  20. package/dist/src/domains/workflows/workflow/workflow-node-badges.d.ts +55 -0
  21. package/dist/src/domains/workflows/workflow/workflow-step-action-bar.d.ts +2 -1
  22. package/dist/src/ds/components/Table/Cells.d.ts +0 -3
  23. package/dist/src/index.d.ts +1 -2
  24. package/package.json +11 -9
  25. package/dist/src/components/assistant-ui/thread-list.d.ts +0 -2
  26. package/dist/src/components/assistant-ui/tools/tool-approval.d.ts +0 -8
  27. package/dist/src/components/icons/agent-icon.d.ts +0 -3
  28. package/dist/src/components/icons/automation-icon.d.ts +0 -3
  29. package/dist/src/components/ui/copyable-content.d.ts +0 -7
  30. package/dist/src/components/ui/dropdown-menu.d.ts +0 -42
  31. package/dist/src/components/ui/elements/entry-list/entry-list-toolbar.d.ts +0 -6
  32. package/dist/src/components/ui/elements/form-fields/form-actions.d.ts +0 -12
  33. package/dist/src/components/ui/elements/form-fields/radio-group-field.d.ts +0 -21
  34. package/dist/src/components/ui/elements/form-fields/slider-field.d.ts +0 -15
  35. package/dist/src/components/ui/elements/form-fields/textarea-field.d.ts +0 -11
  36. package/dist/src/components/ui/elements/headers/entity-main-header.d.ts +0 -11
  37. package/dist/src/components/ui/elements/side-dialog/side-dialog-footer.d.ts +0 -10
  38. package/dist/src/components/ui/formatted-date.d.ts +0 -3
  39. package/dist/src/components/ui/resizable.d.ts +0 -23
  40. package/dist/src/components/ui/score-indicator.d.ts +0 -3
  41. package/dist/src/components/ui/toggle.d.ts +0 -12
  42. package/dist/src/domains/agents/components/agent-metadata/connection-dot.d.ts +0 -6
  43. package/dist/src/domains/agents/components/agent-metadata/models.d.ts +0 -5
  44. package/dist/src/domains/agents/components/agent-metadata/provider-status-indicator.d.ts +0 -7
  45. package/dist/src/domains/resizable-panel.d.ts +0 -11
  46. package/dist/src/domains/scores/components/score-table.d.ts +0 -11
  47. package/dist/src/domains/tools/components/tool-table/types.d.ts +0 -2
  48. package/dist/src/domains/workflows/workflow/workflow-result.d.ts +0 -5
  49. package/dist/src/hooks/use-resize-column.d.ts +0 -12
  50. package/dist/src/lib/mastra-client.d.ts +0 -2
  51. package/dist/src/lib/pagination/types.d.ts +0 -11
  52. package/dist/src/lib/polls.d.ts +0 -36
@@ -1,4 +1,5 @@
1
- export declare const useCodemirrorTheme: () => import('@uiw/react-codemirror').Extension;
1
+ import { Extension } from '@codemirror/state';
2
+ export declare const useCodemirrorTheme: () => Extension;
2
3
  export declare const SyntaxHighlighter: ({ data }: {
3
4
  data: Record<string, unknown>;
4
5
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,3 @@
1
1
  export * from './search-field';
2
2
  export * from './input-field';
3
- export * from './textarea-field';
4
- export * from './form-actions';
5
3
  export * from './select-field';
6
- export * from './slider-field';
7
- export * from './radio-group-field';
@@ -1,2 +1 @@
1
- export * from './entity-main-header';
2
1
  export * from './page-header';
@@ -6,7 +6,7 @@ import { MainSidebarNavLink } from './main-sidebar-nav-link';
6
6
  import { MainSidebarNavHeader } from './main-sidebar-nav-header';
7
7
  import { MainSidebarNavList } from './main-sidebar-nav-list';
8
8
  import { MainSidebarNavSeparator } from './main-sidebar-nav-separator';
9
- export { MainSidebarProvider } from './main-sidebar-context';
9
+ export { MainSidebarProvider, type SidebarState } from './main-sidebar-context';
10
10
  export { useMainSidebar } from './main-sidebar-context';
11
11
  export { type NavLink } from './main-sidebar-nav-link';
12
12
  export { type NavSection } from './main-sidebar-nav-section';
@@ -4,7 +4,7 @@ declare const inputVariants: (props?: ({
4
4
  variant?: "default" | "filled" | "unstyled" | null | undefined;
5
5
  customSize?: "default" | "sm" | "lg" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
- export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
7
+ interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
8
8
  testId?: string;
9
9
  }
10
10
  declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from '../../../node_modules/@types/react';
2
- export declare const useCodemirrorTheme: () => import('@uiw/react-codemirror').Extension;
2
+ export declare const useCodemirrorTheme: () => import('@codemirror/state').Extension;
3
3
  export declare const SyntaxHighlighter: ({ data, className, ...props }: {
4
4
  data: Record<string, unknown> | Array<Record<string, unknown>>;
5
5
  className?: string;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
2
+ interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
3
3
  }
4
4
  declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
5
5
  export { Textarea };
@@ -1,4 +1,3 @@
1
1
  export * from './agent-context';
2
2
  export * from './agent-working-memory-context';
3
- export * from './model-reset-context';
4
3
  export * from './agent-prompt-experiment-context';
@@ -1,10 +1,6 @@
1
- import { ReactNode } from '../../../../node_modules/@types/react';
2
1
  type ModelResetContextType = {
3
2
  registerResetFn: (fn: (() => void) | null) => void;
4
3
  triggerReset: () => void;
5
4
  };
6
- export declare function ModelResetProvider({ children }: {
7
- children: ReactNode;
8
- }): import("react/jsx-runtime").JSX.Element;
9
5
  export declare function useModelReset(): ModelResetContextType;
10
6
  export {};
@@ -1,15 +1,11 @@
1
- import { GetScorerResponse, ListScoresResponse } from '@mastra/client-js';
2
- export declare const useScoresByEntityId: (entityId: string, entityType: string, page?: number) => {
3
- scores: ListScoresResponse | null;
4
- isLoading: boolean;
5
- };
1
+ import { GetScorerResponse } from '@mastra/client-js';
6
2
  type UseScoresByScorerIdProps = {
7
3
  scorerId: string;
8
4
  page?: number;
9
5
  entityId?: string;
10
6
  entityType?: string;
11
7
  };
12
- export declare const useScoresByScorerId: ({ scorerId, page, entityId, entityType }: UseScoresByScorerIdProps) => import('@tanstack/react-query').UseQueryResult<ListScoresResponse, Error>;
8
+ export declare const useScoresByScorerId: ({ scorerId, page, entityId, entityType }: UseScoresByScorerIdProps) => import('@tanstack/react-query').UseQueryResult<import('@mastra/client-js').ListScoresResponse, Error>;
13
9
  export declare const useScorer: (scorerId: string) => {
14
10
  scorer: GetScorerResponse | null;
15
11
  isLoading: boolean;
@@ -2,6 +2,6 @@ export * from './components/scores-list';
2
2
  export * from './components/score-dialog';
3
3
  export * from './components/scores-tools';
4
4
  export * from './components/scorer-combobox';
5
- export * from './hooks/use-scorers';
6
5
  export * from './components/scorers-table/scorers-table';
7
6
  export * from './hooks/use-trace-span-scores';
7
+ export { useScorers, useScorer, useScoresByScorerId } from './hooks/use-scorers';
@@ -1,6 +1,6 @@
1
1
  import { ZodType } from 'zod';
2
2
  import { MCPToolType } from '@mastra/core/mcp';
3
- export interface ToolExecutorProps {
3
+ interface ToolExecutorProps {
4
4
  isExecutingTool: boolean;
5
5
  zodInputSchema: ZodType;
6
6
  handleExecuteTool: (data: any) => void;
@@ -1,12 +1,16 @@
1
1
  import { NodeProps, Node } from '@xyflow/react';
2
2
  export type DefaultNode = Node<{
3
3
  label: string;
4
+ stepId?: string;
4
5
  description?: string;
5
6
  withoutTopHandle?: boolean;
6
7
  withoutBottomHandle?: boolean;
7
8
  mapConfig?: string;
8
9
  duration?: number;
9
10
  date?: Date;
11
+ isParallel?: boolean;
12
+ canSuspend?: boolean;
13
+ isForEach?: boolean;
10
14
  }, 'default-node'>;
11
15
  export interface WorkflowDefaultNodeProps {
12
16
  parentWorkflowName?: string;
@@ -2,11 +2,15 @@ import { NodeProps, Node } from '@xyflow/react';
2
2
  import { SerializedStepFlowEntry } from '@mastra/core/workflows';
3
3
  export type NestedNode = Node<{
4
4
  label: string;
5
+ stepId?: string;
5
6
  description?: string;
6
7
  withoutTopHandle?: boolean;
7
8
  withoutBottomHandle?: boolean;
8
9
  stepGraph: SerializedStepFlowEntry[];
9
10
  mapConfig?: string;
11
+ isParallel?: boolean;
12
+ canSuspend?: boolean;
13
+ isForEach?: boolean;
10
14
  }, 'nested-node'>;
11
15
  export interface WorkflowNestedNodeProps {
12
16
  parentWorkflowName?: string;
@@ -0,0 +1,55 @@
1
+ import { LucideIcon } from 'lucide-react';
2
+ export declare const BADGE_COLORS: {
3
+ readonly sleep: "#A855F7";
4
+ readonly forEach: "#F97316";
5
+ readonly map: "#F97316";
6
+ readonly parallel: "#3B82F6";
7
+ readonly suspend: "#EC4899";
8
+ readonly after: "#14B8A6";
9
+ readonly workflow: "#8B5CF6";
10
+ readonly when: "#ECB047";
11
+ readonly dountil: "#8B5CF6";
12
+ readonly dowhile: "#06B6D4";
13
+ readonly until: "#F59E0B";
14
+ readonly while: "#10B981";
15
+ readonly if: "#3B82F6";
16
+ readonly else: "#6B7280";
17
+ };
18
+ export declare const BADGE_ICONS: {
19
+ readonly sleep: import('../../../../node_modules/@types/react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('../../../../node_modules/@types/react').RefAttributes<SVGSVGElement>>;
20
+ readonly sleepUntil: import('../../../../node_modules/@types/react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('../../../../node_modules/@types/react').RefAttributes<SVGSVGElement>>;
21
+ readonly forEach: import('../../../../node_modules/@types/react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('../../../../node_modules/@types/react').RefAttributes<SVGSVGElement>>;
22
+ readonly map: import('../../../../node_modules/@types/react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('../../../../node_modules/@types/react').RefAttributes<SVGSVGElement>>;
23
+ readonly parallel: import('../../../../node_modules/@types/react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('../../../../node_modules/@types/react').RefAttributes<SVGSVGElement>>;
24
+ readonly suspend: import('../../../../node_modules/@types/react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('../../../../node_modules/@types/react').RefAttributes<SVGSVGElement>>;
25
+ readonly after: import('../../../../node_modules/@types/react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('../../../../node_modules/@types/react').RefAttributes<SVGSVGElement>>;
26
+ readonly workflow: import('../../../../node_modules/@types/react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('../../../../node_modules/@types/react').RefAttributes<SVGSVGElement>>;
27
+ readonly when: import('../../../../node_modules/@types/react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('../../../../node_modules/@types/react').RefAttributes<SVGSVGElement>>;
28
+ readonly dountil: import('../../../../node_modules/@types/react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('../../../../node_modules/@types/react').RefAttributes<SVGSVGElement>>;
29
+ readonly dowhile: import('../../../../node_modules/@types/react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('../../../../node_modules/@types/react').RefAttributes<SVGSVGElement>>;
30
+ readonly until: import('../../../../node_modules/@types/react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('../../../../node_modules/@types/react').RefAttributes<SVGSVGElement>>;
31
+ readonly while: import('../../../../node_modules/@types/react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('../../../../node_modules/@types/react').RefAttributes<SVGSVGElement>>;
32
+ readonly if: import('../../../../node_modules/@types/react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('../../../../node_modules/@types/react').RefAttributes<SVGSVGElement>>;
33
+ readonly else: import('../../../../node_modules/@types/react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('../../../../node_modules/@types/react').RefAttributes<SVGSVGElement>>;
34
+ };
35
+ export interface ConditionIconConfig {
36
+ icon: LucideIcon | undefined;
37
+ color: string | undefined;
38
+ }
39
+ export declare const getConditionIconAndColor: (type: string) => ConditionIconConfig;
40
+ export interface NodeBadgeInfo {
41
+ isSleepNode: boolean;
42
+ isForEachNode: boolean;
43
+ isMapNode: boolean;
44
+ isNestedWorkflow: boolean;
45
+ hasSpecialBadge: boolean;
46
+ }
47
+ export declare const getNodeBadgeInfo: (data: {
48
+ duration?: number;
49
+ date?: Date;
50
+ isForEach?: boolean;
51
+ mapConfig?: string;
52
+ canSuspend?: boolean;
53
+ isParallel?: boolean;
54
+ stepGraph?: any;
55
+ }) => NodeBadgeInfo;
@@ -4,8 +4,9 @@ export interface WorkflowStepActionBarProps {
4
4
  resumeData?: any;
5
5
  error?: any;
6
6
  stepName: string;
7
+ stepId?: string;
7
8
  mapConfig?: string;
8
9
  onShowNestedGraph?: () => void;
9
10
  status?: 'running' | 'success' | 'failed' | 'suspended' | 'waiting';
10
11
  }
11
- export declare const WorkflowStepActionBar: ({ input, output, resumeData, error, mapConfig, stepName, onShowNestedGraph, status, }: WorkflowStepActionBarProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const WorkflowStepActionBar: ({ input, output, resumeData, error, mapConfig, stepName, stepId, onShowNestedGraph, status, }: WorkflowStepActionBarProps) => import("react/jsx-runtime").JSX.Element;
@@ -5,9 +5,6 @@ export interface CellProps extends React.TdHTMLAttributes<HTMLTableCellElement>
5
5
  }
6
6
  export declare const Cell: ({ className, children, ...props }: CellProps) => import("react/jsx-runtime").JSX.Element;
7
7
  export declare const TxtCell: ({ className, children }: CellProps) => import("react/jsx-runtime").JSX.Element;
8
- export declare const UnitCell: ({ className, children, unit }: CellProps & {
9
- unit: string;
10
- }) => import("react/jsx-runtime").JSX.Element;
11
8
  export interface DateTimeCellProps extends Omit<CellProps, 'children'> {
12
9
  dateTime: Date;
13
10
  }
@@ -4,7 +4,6 @@ export * from './domains/tools/index';
4
4
  export * from './domains/workflows/index';
5
5
  export * from './domains/templates/index';
6
6
  export * from './domains/observability/index';
7
- export * from './domains/resizable-panel';
8
7
  export * from './components/dynamic-form/index';
9
8
  export * from './components/ui/containers';
10
9
  export * from './components/ui/elements';
@@ -24,7 +23,6 @@ export * from './ds/components/Entity/index';
24
23
  export * from './ds/components/EmptyState/index';
25
24
  export * from './ds/icons/index';
26
25
  export * from './ds/components/Alert';
27
- export * from './lib/polls';
28
26
  export * from './domains/voice/hooks/use-speech-recognition';
29
27
  export * from './components/ui/radio-group';
30
28
  export * from './components/ui/entry';
@@ -40,6 +38,7 @@ export * from './components/ui/tooltip';
40
38
  export * from './components/ui/kbd';
41
39
  export * from './components/ui/collapsible';
42
40
  export * from './components/ui/combobox';
41
+ export * from './components/ui/skeleton';
43
42
  export * from './domains/conversation/index';
44
43
  export * from './lib/errors';
45
44
  export * from './components/assistant-ui/tools/tool-fallback';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mastra/playground-ui",
3
3
  "type": "module",
4
- "version": "7.0.0-beta.0",
4
+ "version": "7.0.0-beta.1",
5
5
  "description": "Mastra Playground components",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
@@ -48,6 +48,8 @@
48
48
  "@codemirror/lang-json": "^6.0.2",
49
49
  "@codemirror/lang-markdown": "^6.5.0",
50
50
  "@codemirror/language-data": "^6.5.2",
51
+ "@codemirror/state": "^6.5.2",
52
+ "@codemirror/view": "^6.38.6",
51
53
  "@dagrejs/dagre": "^1.1.5",
52
54
  "@hello-pangea/dnd": "^18.0.1",
53
55
  "@hookform/resolvers": "^3.10.0",
@@ -111,13 +113,13 @@
111
113
  "react": ">=19.0.0",
112
114
  "react-dom": ">=19.0.0",
113
115
  "tailwindcss": "^3.0.0",
114
- "@mastra/client-js": "^1.0.0-beta.0",
115
- "@mastra/react": "0.1.0-beta.0"
116
+ "@mastra/client-js": "^1.0.0-beta.1",
117
+ "@mastra/react": "0.1.0-beta.1"
116
118
  },
117
119
  "devDependencies": {
118
- "@storybook/addon-docs": "^9.1.10",
119
- "@storybook/react-vite": "^9.1.10",
120
- "@tanstack/react-query": "^5.81.5",
120
+ "@storybook/addon-docs": "^9.1.16",
121
+ "@storybook/react-vite": "^9.1.16",
122
+ "@tanstack/react-query": "^5.90.6",
121
123
  "@types/node": "^20.19.0",
122
124
  "@types/react": "^19.1.9",
123
125
  "@types/react-dom": "^19.1.7",
@@ -135,9 +137,9 @@
135
137
  "vite-plugin-dts": "^4.5.4",
136
138
  "vite-plugin-lib-inject-css": "^2.2.2",
137
139
  "vitest": "^3.2.4",
138
- "@mastra/client-js": "^1.0.0-beta.0",
139
- "@mastra/core": "1.0.0-beta.0",
140
- "@mastra/react": "0.1.0-beta.0"
140
+ "@mastra/core": "1.0.0-beta.1",
141
+ "@mastra/client-js": "^1.0.0-beta.1",
142
+ "@mastra/react": "0.1.0-beta.1"
141
143
  },
142
144
  "homepage": "https://mastra.ai",
143
145
  "repository": {
@@ -1,2 +0,0 @@
1
- import { FC } from '../../../node_modules/@types/react';
2
- export declare const ThreadList: FC;
@@ -1,8 +0,0 @@
1
- export interface ToolApprovalProps {
2
- toolCallId: string;
3
- toolName: string;
4
- args: any;
5
- onApprove: () => void;
6
- onDecline: () => void;
7
- }
8
- export declare const ToolApproval: ({ toolName, args, onApprove, onDecline }: ToolApprovalProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- export declare const AgentIcon: ({ className }: {
2
- className?: string;
3
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- export declare const AutomationIcon: ({ className }: {
2
- className?: string;
3
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- interface CopyableCell {
2
- content: string;
3
- label: string;
4
- multiline?: boolean;
5
- }
6
- export declare function CopyableContent({ content, label, multiline }: CopyableCell): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,42 +0,0 @@
1
- import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
2
- import * as React from 'react';
3
- /**
4
- *
5
- * Right now, these are the props mostly used for the menu
6
- * if we find out, consumers need more props, we can just extend it
7
- * with componentProps
8
- */
9
- declare function Dropdown({ open, onOpenChange, children, modal, }: {
10
- open?: boolean;
11
- onOpenChange?: (open: boolean) => void;
12
- children: React.ReactNode;
13
- modal?: boolean;
14
- }): import("react/jsx-runtime").JSX.Element;
15
- declare namespace Dropdown {
16
- var Trigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
17
- var Content: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
18
- container?: HTMLElement;
19
- } & React.RefAttributes<HTMLDivElement>>;
20
- var Group: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
21
- var Portal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
22
- var Item: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
23
- inset?: boolean;
24
- } & React.RefAttributes<HTMLDivElement>>;
25
- var CheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
26
- var RadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
27
- var Label: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
28
- inset?: boolean;
29
- } & React.RefAttributes<HTMLDivElement>>;
30
- var Separator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
31
- var Shortcut: {
32
- ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
33
- displayName: string;
34
- };
35
- var Sub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
36
- var SubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
37
- var SubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
38
- inset?: boolean;
39
- } & React.RefAttributes<HTMLDivElement>>;
40
- var RadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
41
- }
42
- export { Dropdown };
@@ -1,6 +0,0 @@
1
- type EntryListToolbarProps = {
2
- children?: React.ReactNode;
3
- className?: string;
4
- };
5
- export declare function EntryListToolbar({ children, className }: EntryListToolbarProps): import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,12 +0,0 @@
1
- type FormActionsProps = {
2
- children?: React.ReactNode;
3
- onSubmit?: () => void;
4
- onCancel?: () => void;
5
- className?: string;
6
- submitLabel?: string;
7
- cancelLabel?: string;
8
- isSubmitting?: boolean;
9
- variant?: 'toLeft' | 'toRight' | 'stretch';
10
- };
11
- export declare function FormActions({ children, onSubmit, onCancel, className, submitLabel, cancelLabel, isSubmitting, variant, }: FormActionsProps): import("react/jsx-runtime").JSX.Element | null;
12
- export {};
@@ -1,21 +0,0 @@
1
- import * as React from 'react';
2
- import * as RadixRadioGroup from '@radix-ui/react-radio-group';
3
- type RadioGroupFieldProps = React.ComponentProps<typeof RadixRadioGroup.Root> & {
4
- name?: string;
5
- testId?: string;
6
- label?: React.ReactNode;
7
- required?: boolean;
8
- disabled?: boolean;
9
- value?: number[];
10
- helpMsg?: string;
11
- errorMsg?: string;
12
- className?: string;
13
- options?: {
14
- value: string;
15
- label: string;
16
- }[];
17
- layout?: 'horizontal' | 'vertical';
18
- onChange?: (value: string) => void;
19
- };
20
- export declare function RadioGroupField({ name, value, label, className, testId, required, disabled, helpMsg, errorMsg, onChange, options, layout, onValueChange, ...props }: RadioGroupFieldProps): import("react/jsx-runtime").JSX.Element;
21
- export {};
@@ -1,15 +0,0 @@
1
- import * as React from 'react';
2
- import * as RadixSlider from '@radix-ui/react-slider';
3
- type SliderFieldProps = React.ComponentProps<typeof RadixSlider.Root> & {
4
- name?: string;
5
- testId?: string;
6
- label?: React.ReactNode;
7
- required?: boolean;
8
- disabled?: boolean;
9
- value?: number[];
10
- helpMsg?: string;
11
- errorMsg?: string;
12
- className?: string;
13
- };
14
- export declare function SliderField({ name, value, label, className, testId, required, disabled, helpMsg, errorMsg, onChange, ...props }: SliderFieldProps): import("react/jsx-runtime").JSX.Element;
15
- export {};
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
- type TextareaFieldProps = React.InputHTMLAttributes<HTMLTextAreaElement> & {
3
- testId?: string;
4
- label?: React.ReactNode;
5
- helpText?: string;
6
- value?: string;
7
- disabled?: boolean;
8
- className?: string;
9
- };
10
- export declare function TextareaField({ value, label, helpText, className, testId, type, disabled, ...props }: TextareaFieldProps): import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,11 +0,0 @@
1
- type EntityMainHeaderProps = {
2
- title?: string;
3
- description?: string;
4
- children?: React.ReactNode;
5
- icon?: React.ReactNode;
6
- isLoading?: boolean;
7
- className?: string;
8
- placement?: 'page' | 'sidebar';
9
- };
10
- export declare function EntityMainHeader({ title, description, icon, children, isLoading, className, placement, }: EntityMainHeaderProps): import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,10 +0,0 @@
1
- export type SideDialogFooterProps = {
2
- children?: React.ReactNode;
3
- onNext?: (() => void) | null;
4
- onPrevious?: (() => void) | null;
5
- showInnerNav?: boolean;
6
- };
7
- export declare function SideDialogFooter({ children, onNext, onPrevious, showInnerNav }: SideDialogFooterProps): import("react/jsx-runtime").JSX.Element;
8
- export declare function SideDialogFooterGroup({ children }: {
9
- children: React.ReactNode;
10
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- export declare function FormattedDate({ date }: {
2
- date: string;
3
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,23 +0,0 @@
1
- import * as ResizablePrimitive from 'react-resizable-panels';
2
- declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
3
- declare const ResizablePanel: import('../../../node_modules/@types/react').ForwardRefExoticComponent<Omit<import('../../../node_modules/@types/react').HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLDivElement | HTMLObjectElement | HTMLLinkElement | HTMLFormElement | HTMLSlotElement | HTMLStyleElement | HTMLTitleElement | HTMLDialogElement | HTMLImageElement | HTMLOptionElement | HTMLTableElement | HTMLMapElement | HTMLAnchorElement | HTMLHeadingElement | HTMLInputElement | HTMLLabelElement | HTMLLIElement | HTMLOListElement | HTMLParagraphElement | HTMLSelectElement | HTMLSpanElement | HTMLUListElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSourceElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement | HTMLMenuElement | HTMLTableCaptionElement | HTMLPictureElement>, "id" | "onResize"> & {
4
- className?: string | undefined;
5
- collapsedSize?: number | undefined;
6
- collapsible?: boolean | undefined;
7
- defaultSize?: number | undefined;
8
- id?: string | undefined;
9
- maxSize?: number | undefined;
10
- minSize?: number | undefined;
11
- onCollapse?: ResizablePrimitive.PanelOnCollapse | undefined;
12
- onExpand?: ResizablePrimitive.PanelOnExpand | undefined;
13
- onResize?: ResizablePrimitive.PanelOnResize | undefined;
14
- order?: number | undefined;
15
- style?: object | undefined;
16
- tagName?: keyof HTMLElementTagNameMap | undefined;
17
- } & {
18
- children?: import('../../../node_modules/@types/react').ReactNode;
19
- } & import('../../../node_modules/@types/react').RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
20
- declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
21
- withHandle?: boolean;
22
- }) => import("react/jsx-runtime").JSX.Element;
23
- export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
@@ -1,3 +0,0 @@
1
- export declare function ScoreIndicator({ score }: {
2
- score: number;
3
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,12 +0,0 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- import * as React from 'react';
3
- import * as TogglePrimitive from '@radix-ui/react-toggle';
4
- declare const toggleVariants: (props?: ({
5
- variant?: "default" | "outline" | null | undefined;
6
- size?: "default" | "sm" | "lg" | null | undefined;
7
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
- declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
9
- variant?: "default" | "outline" | null | undefined;
10
- size?: "default" | "sm" | "lg" | null | undefined;
11
- } & import('class-variance-authority/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
12
- export { Toggle, toggleVariants };
@@ -1,6 +0,0 @@
1
- interface ConnectionDotProps {
2
- connected: boolean;
3
- size?: 'sm' | 'md';
4
- }
5
- export declare const ConnectionDot: ({ connected, size }: ConnectionDotProps) => import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,5 +0,0 @@
1
- export declare const openaiModels: string[];
2
- export declare const anthropicModels: string[];
3
- export declare const googleModels: string[];
4
- export declare const xAIModels: string[];
5
- export declare const groqModels: string[];
@@ -1,7 +0,0 @@
1
- interface ProviderStatusIndicatorProps {
2
- providerId: string;
3
- connected: boolean;
4
- envVar?: string;
5
- }
6
- export declare const ProviderStatusIndicator: ({ providerId, connected, envVar }: ProviderStatusIndicatorProps) => import("react/jsx-runtime").JSX.Element | null;
7
- export {};
@@ -1,11 +0,0 @@
1
- import { ReactNode } from '../../node_modules/@types/react';
2
- export declare const MastraResizablePanel: ({ children, defaultWidth, minimumWidth, maximumWidth, className, disabled, setCurrentWidth, dividerPosition, }: {
3
- children: ReactNode;
4
- defaultWidth: number;
5
- minimumWidth: number;
6
- maximumWidth: number;
7
- className?: string;
8
- disabled?: boolean;
9
- setCurrentWidth?: (width: number) => void;
10
- dividerPosition?: "left" | "right";
11
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +0,0 @@
1
- export interface ScoreTableProps {
2
- scores: Array<{
3
- type: string;
4
- scoreId: string;
5
- scorerName: string;
6
- score: number;
7
- createdAt: string;
8
- }>;
9
- onItemClick: (scorerName: string) => void;
10
- }
11
- export declare const ScoreTable: ({ scores, onItemClick }: ScoreTableProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { GetToolResponse } from '@mastra/client-js';
2
- export type ToolTableData = GetToolResponse;
@@ -1,5 +0,0 @@
1
- export interface WorkflowResultProps {
2
- jsonResult: string;
3
- sanitizedJsonResult?: string | null;
4
- }
5
- export declare const WorkflowResult: ({ jsonResult, sanitizedJsonResult }: WorkflowResultProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +0,0 @@
1
- import { MouseEvent as ReactMouseEvent } from '../../node_modules/@types/react';
2
- export declare const useResizeColumn: ({ defaultWidth, minimumWidth, maximumWidth, setCurrentWidth, }: {
3
- defaultWidth: number;
4
- minimumWidth: number;
5
- maximumWidth: number;
6
- setCurrentWidth?: (width: number) => void;
7
- }) => {
8
- sidebarWidth: number;
9
- isDragging: boolean;
10
- handleMouseDown: (e: ReactMouseEvent) => void;
11
- containerRef: import('../../node_modules/@types/react').RefObject<HTMLDivElement | null>;
12
- };
@@ -1,2 +0,0 @@
1
- import { MastraClient } from '@mastra/client-js';
2
- export declare const createMastraClient: (baseUrl?: string, mastraClientHeaders?: Record<string, string>) => MastraClient;