@mastra/playground-ui 5.1.11-alpha.1 → 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 (23) hide show
  1. package/dist/index.cjs.js +417 -203
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.es.js +420 -206
  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/dist/src/domains/workflows/workflow/workflow-input-data.d.ts +10 -0
  14. package/package.json +9 -9
  15. package/dist/src/components/assistant-ui/assistant-message.d.ts +0 -6
  16. package/dist/src/components/assistant-ui/assistant-modal.d.ts +0 -1
  17. package/dist/src/components/assistant-ui/attachment.d.ts +0 -5
  18. package/dist/src/components/assistant-ui/image-with-fallback.d.ts +0 -3
  19. package/dist/src/components/assistant-ui/markdown-text.d.ts +0 -2
  20. package/dist/src/components/assistant-ui/user-message.d.ts +0 -1
  21. /package/dist/src/components/assistant-ui/{attachment-adapters → attachments}/pdfs-adapter.d.ts +0 -0
  22. /package/dist/src/components/assistant-ui/{use-has-attachments.d.ts → hooks/use-has-attachments.d.ts} +0 -0
  23. /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;
@@ -0,0 +1,10 @@
1
+ import { ZodSchema } from 'zod';
2
+
3
+ export interface WorkflowInputDataProps {
4
+ schema: ZodSchema;
5
+ defaultValues?: any;
6
+ isSubmitLoading: boolean;
7
+ submitButtonLabel: string;
8
+ onSubmit: (data: any) => void;
9
+ }
10
+ export declare const WorkflowInputData: ({ schema, defaultValues, isSubmitLoading, submitButtonLabel, onSubmit, }: WorkflowInputDataProps) => 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.1",
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",
@@ -44,7 +44,7 @@
44
44
  "@autoform/react": "^3.1.0",
45
45
  "@autoform/zod": "^2.2.0",
46
46
  "@codemirror/lang-json": "^6.0.2",
47
- "@dagrejs/dagre": "^1.1.4",
47
+ "@dagrejs/dagre": "^1.1.5",
48
48
  "@hookform/resolvers": "^3.10.0",
49
49
  "@lezer/highlight": "^1.2.1",
50
50
  "@lukeed/uuid": "^2.0.1",
@@ -65,13 +65,13 @@
65
65
  "@radix-ui/react-tooltip": "^1.2.7",
66
66
  "@tanstack/react-table": "^8.21.3",
67
67
  "@types/react-syntax-highlighter": "^15.5.13",
68
- "@uiw/codemirror-theme-dracula": "^4.23.13",
69
- "@uiw/react-codemirror": "^4.23.13",
70
- "@xyflow/react": "^12.6.4",
68
+ "@uiw/codemirror-theme-dracula": "^4.23.14",
69
+ "@uiw/react-codemirror": "^4.23.14",
70
+ "@xyflow/react": "^12.8.1",
71
71
  "cmdk": "^1.1.1",
72
72
  "date-fns": "^4.1.0",
73
73
  "json-schema-to-zod": "^2.6.1",
74
- "motion": "^12.16.0",
74
+ "motion": "^12.23.0",
75
75
  "prettier": "^3.5.3",
76
76
  "prism-react-renderer": "^2.4.1",
77
77
  "react-code-block": "1.1.3",
@@ -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.1"
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",
@@ -106,7 +106,7 @@
106
106
  "@types/node": "^20.19.0",
107
107
  "@types/react": "^19.1.8",
108
108
  "@types/react-dom": "^19.1.6",
109
- "@vitejs/plugin-react": "^4.5.2",
109
+ "@vitejs/plugin-react": "^4.6.0",
110
110
  "autoprefixer": "^10.4.21",
111
111
  "class-variance-authority": "^0.7.1",
112
112
  "clsx": "^2.1.1",
@@ -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.1"
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;