@mastra/playground-ui 5.1.11-alpha.2 → 5.1.11-alpha.3

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 (22) hide show
  1. package/dist/index.cjs.js +309 -170
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.es.js +312 -173
  4. package/dist/index.es.js.map +1 -1
  5. package/dist/src/components/assistant-ui/attachments/attachment-preview-dialog.d.ts +31 -0
  6. package/dist/src/components/assistant-ui/attachments/attachment.d.ts +2 -0
  7. package/dist/src/components/assistant-ui/hooks/use-attachment-src.d.ts +1 -0
  8. package/dist/src/components/assistant-ui/hooks/use-file-src.d.ts +1 -0
  9. package/dist/src/components/assistant-ui/hooks/use-load-browser-file.d.ts +4 -0
  10. package/dist/src/components/assistant-ui/messages/assistant-message.d.ts +6 -0
  11. package/dist/src/components/assistant-ui/messages/markdown-text.d.ts +2 -0
  12. package/dist/src/components/assistant-ui/messages/user-messages.d.ts +9 -0
  13. package/package.json +3 -3
  14. package/dist/src/components/assistant-ui/assistant-message.d.ts +0 -6
  15. package/dist/src/components/assistant-ui/assistant-modal.d.ts +0 -1
  16. package/dist/src/components/assistant-ui/attachment.d.ts +0 -5
  17. package/dist/src/components/assistant-ui/image-with-fallback.d.ts +0 -3
  18. package/dist/src/components/assistant-ui/markdown-text.d.ts +0 -2
  19. package/dist/src/components/assistant-ui/user-message.d.ts +0 -1
  20. /package/dist/src/components/assistant-ui/{attachment-adapters → attachments}/pdfs-adapter.d.ts +0 -0
  21. /package/dist/src/components/assistant-ui/{use-has-attachments.d.ts → hooks/use-has-attachments.d.ts} +0 -0
  22. /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,2 @@
1
+ export declare const ComposerAttachments: () => import("react/jsx-runtime").JSX.Element | null;
2
+ export declare const ComposerAddAttachment: () => import("react/jsx-runtime").JSX.Element;
@@ -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,4 @@
1
+ export declare const useLoadBrowserFile: (file?: File) => {
2
+ isLoading: boolean;
3
+ text: string;
4
+ };
@@ -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,2 @@
1
+
2
+ export declare const MarkdownText: import('../../../../node_modules/@types/react').MemoExoticComponent<() => 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.2",
4
+ "version": "5.1.11-alpha.3",
5
5
  "description": "Mastra Playground components",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
@@ -93,7 +93,7 @@
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.2"
96
+ "@mastra/client-js": "^0.10.10-alpha.3"
97
97
  },
98
98
  "peerDependencies": {
99
99
  "@mastra/core": ">=0.10.9-0 <0.11.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.2"
121
+ "@mastra/core": "0.10.11-alpha.3"
122
122
  },
123
123
  "scripts": {
124
124
  "dev": "vite",
@@ -1,6 +0,0 @@
1
- import { ToolCallContentPartComponent } from '@assistant-ui/react';
2
- import { FC } from '../../../node_modules/@types/react';
3
-
4
- export declare const AssistantMessage: FC<{
5
- ToolFallback?: ToolCallContentPartComponent;
6
- }>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- import { FC } from '../../../node_modules/@types/react';
2
-
3
- export declare const UserMessageAttachments: FC;
4
- export declare const ComposerAttachments: FC;
5
- export declare const ComposerAddAttachment: FC;
@@ -1,3 +0,0 @@
1
- import { ImgHTMLAttributes } from '../../../node_modules/@types/react';
2
-
3
- export declare const ImageWithFallback: ({ alt, src, ...rest }: ImgHTMLAttributes<HTMLImageElement>) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
-
2
- export declare const MarkdownText: import('../../../node_modules/@types/react').MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
@@ -1 +0,0 @@
1
- export declare const UserMessage: () => import("react/jsx-runtime").JSX.Element;