@mastra/playground-ui 5.1.1-alpha.0 → 5.1.1-alpha.2

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.
@@ -4,8 +4,9 @@ export interface ThreadProps {
4
4
  ToolFallback?: ToolCallContentPartComponent;
5
5
  agentName?: string;
6
6
  hasMemory?: boolean;
7
+ showFileSupport?: boolean;
7
8
  }
8
- export declare const Thread: ({ ToolFallback, agentName, hasMemory }: ThreadProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const Thread: ({ ToolFallback, agentName, hasMemory, showFileSupport }: ThreadProps) => import("react/jsx-runtime").JSX.Element;
9
10
  export interface ThreadWelcomeProps {
10
11
  agentName?: string;
11
12
  }
@@ -0,0 +1 @@
1
+ export declare const useHasAttachments: () => boolean;
@@ -1,3 +1,3 @@
1
1
  import { ChatProps } from '../../../types';
2
2
 
3
- export declare const AgentChat: ({ agentId, agentName, threadId, initialMessages, memory, baseUrl, refreshThreadList, }: ChatProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const AgentChat: ({ agentId, agentName, threadId, initialMessages, memory, baseUrl, refreshThreadList, showFileSupport, }: ChatProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const AgentNetworkCoinIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { default as React } from '../../../node_modules/@types/react';
2
+
3
+ export declare const McpCoinIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { default as React } from '../../../node_modules/@types/react';
2
+
3
+ export declare const ToolCoinIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -39,3 +39,6 @@ export * from './WorkflowCoinIcon';
39
39
  export * from './LatencyIcon';
40
40
  export * from './McpServerIcon';
41
41
  export * from './FolderIcon';
42
+ export * from './McpCoinIcon';
43
+ export * from './ToolCoinIcon';
44
+ export * from './AgentNetworkCoinIcon';
@@ -0,0 +1,15 @@
1
+ export interface SpeechRecognitionState {
2
+ isListening: boolean;
3
+ transcript: string;
4
+ error: string | null;
5
+ }
6
+ export interface UseSpeechRecognitionArgs {
7
+ language?: string;
8
+ }
9
+ export declare const useSpeechRecognition: ({ language }?: UseSpeechRecognitionArgs) => {
10
+ start: () => void;
11
+ stop: () => void;
12
+ isListening: boolean;
13
+ transcript: string;
14
+ error: string | null;
15
+ };
@@ -15,8 +15,10 @@ export * from './ds/components/Logo/index';
15
15
  export * from './ds/components/Table/index';
16
16
  export * from './ds/components/Txt/index';
17
17
  export * from './ds/components/Entity/index';
18
+ export * from './ds/components/EmptyState/index';
18
19
  export * from './ds/icons/index';
19
20
  export * from './lib/polls';
21
+ export * from './hooks/use-speech-recognition';
20
22
  export { useTraces } from './hooks/index';
21
23
  export { TraceContext, TraceProvider } from './domains/traces/context/trace-context';
22
24
  export type { TraceContextType } from './domains/traces/context/trace-context';
@@ -0,0 +1 @@
1
+ export declare const fileToBase64: (file: File) => Promise<string>;
@@ -26,6 +26,7 @@ export interface ChatProps {
26
26
  modelSettings?: ModelSettings;
27
27
  chatWithGenerate?: boolean;
28
28
  runtimeContext?: Record<string, any>;
29
+ showFileSupport?: boolean;
29
30
  }
30
31
  export type SpanStatus = {
31
32
  code: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mastra/playground-ui",
3
3
  "type": "module",
4
- "version": "5.1.1-alpha.0",
4
+ "version": "5.1.1-alpha.2",
5
5
  "description": "Mastra Playground components",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
@@ -91,7 +91,7 @@
91
91
  "use-debounce": "^10.0.4",
92
92
  "zod": "^3.24.3",
93
93
  "zustand": "^5.0.3",
94
- "@mastra/client-js": "^0.10.1-alpha.0"
94
+ "@mastra/client-js": "^0.10.1-alpha.1"
95
95
  },
96
96
  "peerDependencies": {
97
97
  "@mastra/core": "^0.10.0",
@@ -116,7 +116,7 @@
116
116
  "vite": "^6.0.0",
117
117
  "vite-plugin-dts": "^3.9.1",
118
118
  "vite-plugin-lib-inject-css": "^2.2.1",
119
- "@mastra/core": "0.10.1-alpha.0"
119
+ "@mastra/core": "0.10.1-alpha.1"
120
120
  },
121
121
  "scripts": {
122
122
  "dev": "vite",