@mastra/playground-ui 5.1.11-alpha.2 → 5.1.11-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/LICENSE.md +11 -42
- package/dist/index.cjs.js +309 -170
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +312 -173
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/assistant-ui/attachments/attachment-preview-dialog.d.ts +31 -0
- package/dist/src/components/assistant-ui/attachments/attachment.d.ts +2 -0
- package/dist/src/components/assistant-ui/hooks/use-attachment-src.d.ts +1 -0
- package/dist/src/components/assistant-ui/hooks/use-file-src.d.ts +1 -0
- package/dist/src/components/assistant-ui/hooks/use-load-browser-file.d.ts +4 -0
- package/dist/src/components/assistant-ui/messages/assistant-message.d.ts +6 -0
- package/dist/src/components/assistant-ui/messages/markdown-text.d.ts +2 -0
- package/dist/src/components/assistant-ui/messages/user-messages.d.ts +9 -0
- package/package.json +5 -5
- package/dist/src/components/assistant-ui/assistant-message.d.ts +0 -6
- package/dist/src/components/assistant-ui/assistant-modal.d.ts +0 -1
- package/dist/src/components/assistant-ui/attachment.d.ts +0 -5
- package/dist/src/components/assistant-ui/image-with-fallback.d.ts +0 -3
- package/dist/src/components/assistant-ui/markdown-text.d.ts +0 -2
- package/dist/src/components/assistant-ui/user-message.d.ts +0 -1
- /package/dist/src/components/assistant-ui/{attachment-adapters → attachments}/pdfs-adapter.d.ts +0 -0
- /package/dist/src/components/assistant-ui/{use-has-attachments.d.ts → hooks/use-has-attachments.d.ts} +0 -0
- /package/dist/src/components/assistant-ui/{tool-fallback.d.ts → tools/tool-fallback.d.ts} +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
interface PdfEntryProps {
|
|
2
|
+
data: string;
|
|
3
|
+
}
|
|
4
|
+
export declare const PdfEntry: ({ data }: PdfEntryProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
interface PdfPreviewDialogProps {
|
|
6
|
+
data: string;
|
|
7
|
+
open: boolean;
|
|
8
|
+
onOpenChange: (open: boolean) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const PdfPreviewDialog: ({ data, open, onOpenChange }: PdfPreviewDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
interface ImageEntryProps {
|
|
12
|
+
src: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const ImageEntry: ({ src }: ImageEntryProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
interface ImagePreviewDialogProps {
|
|
16
|
+
src: string;
|
|
17
|
+
open: boolean;
|
|
18
|
+
onOpenChange: (open: boolean) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare const ImagePreviewDialog: ({ src, open, onOpenChange }: ImagePreviewDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
interface TxtEntryProps {
|
|
22
|
+
data: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const TxtEntry: ({ data }: TxtEntryProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
interface TxtPreviewDialogProps {
|
|
26
|
+
data: string;
|
|
27
|
+
open: boolean;
|
|
28
|
+
onOpenChange: (open: boolean) => void;
|
|
29
|
+
}
|
|
30
|
+
export declare const TxtPreviewDialog: ({ data, open, onOpenChange }: TxtPreviewDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useAttachmentSrc: () => string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useFileSrc: (file: File | undefined) => string | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ToolCallContentPartComponent } from '@assistant-ui/react';
|
|
2
|
+
|
|
3
|
+
export interface AssistantMessageProps {
|
|
4
|
+
ToolFallback?: ToolCallContentPartComponent;
|
|
5
|
+
}
|
|
6
|
+
export declare const AssistantMessage: ({ ToolFallback: ToolFallbackCustom }: AssistantMessageProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface InMessageAttachmentProps {
|
|
2
|
+
type: string;
|
|
3
|
+
contentType?: string;
|
|
4
|
+
nameSlot: React.ReactNode;
|
|
5
|
+
src?: string;
|
|
6
|
+
data?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const UserMessageAttachments: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const UserMessage: () => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/playground-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.1.11-alpha.
|
|
4
|
+
"version": "5.1.11-alpha.4",
|
|
5
5
|
"description": "Mastra Playground components",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"components"
|
|
35
35
|
],
|
|
36
36
|
"author": "Mastra",
|
|
37
|
-
"license": "
|
|
37
|
+
"license": "Apache-2.0",
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@ai-sdk/ui-utils": "^1.2.11",
|
|
40
40
|
"@assistant-ui/react": "^0.7.91",
|
|
@@ -93,10 +93,10 @@
|
|
|
93
93
|
"use-debounce": "^10.0.5",
|
|
94
94
|
"zod": "^3.25.67",
|
|
95
95
|
"zustand": "^5.0.5",
|
|
96
|
-
"@mastra/client-js": "^0.10.10-alpha.
|
|
96
|
+
"@mastra/client-js": "^0.10.10-alpha.4"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
|
-
"@mastra/core": ">=0.10.
|
|
99
|
+
"@mastra/core": ">=0.10.11-0 <0.11.0-0",
|
|
100
100
|
"lucide-react": "^0.474.0",
|
|
101
101
|
"react": ">=19.0.0",
|
|
102
102
|
"react-dom": ">=19.0.0",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"vite": "^6.3.5",
|
|
119
119
|
"vite-plugin-dts": "^3.9.1",
|
|
120
120
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
121
|
-
"@mastra/core": "0.10.11-alpha.
|
|
121
|
+
"@mastra/core": "0.10.11-alpha.4"
|
|
122
122
|
},
|
|
123
123
|
"scripts": {
|
|
124
124
|
"dev": "vite",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const UserMessage: () => import("react/jsx-runtime").JSX.Element;
|
/package/dist/src/components/assistant-ui/{attachment-adapters → attachments}/pdfs-adapter.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|