@mastra/playground-ui 5.1.6-alpha.0 → 5.1.6-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.
|
@@ -7,6 +7,7 @@ interface DynamicFormProps<T extends z.ZodSchema> {
|
|
|
7
7
|
isSubmitLoading?: boolean;
|
|
8
8
|
submitButtonLabel?: string;
|
|
9
9
|
className?: string;
|
|
10
|
+
readOnly?: boolean;
|
|
10
11
|
}
|
|
11
|
-
export declare function DynamicForm<T extends z.ZodSchema>({ schema, onSubmit, defaultValues, isSubmitLoading, submitButtonLabel, className, }: DynamicFormProps<T>): import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
export declare function DynamicForm<T extends z.ZodSchema>({ schema, onSubmit, defaultValues, isSubmitLoading, submitButtonLabel, className, readOnly, }: DynamicFormProps<T>): import("react/jsx-runtime").JSX.Element | null;
|
|
12
13
|
export {};
|
|
@@ -2,12 +2,14 @@ import { default as React } from '../../../../node_modules/@types/react';
|
|
|
2
2
|
import { AutoFormProps } from './types';
|
|
3
3
|
|
|
4
4
|
export declare const ShadcnAutoFormFieldComponents: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
string: React.FC<import('@autoform/react').AutoFormFieldProps>;
|
|
6
|
+
number: React.FC<import('@autoform/react').AutoFormFieldProps>;
|
|
7
|
+
boolean: React.FC<import('@autoform/react').AutoFormFieldProps>;
|
|
8
|
+
date: React.FC<import('@autoform/react').AutoFormFieldProps>;
|
|
9
|
+
select: React.FC<import('@autoform/react').AutoFormFieldProps>;
|
|
10
|
+
record: React.FC<import('@autoform/react').AutoFormFieldProps>;
|
|
11
11
|
};
|
|
12
12
|
export type FieldTypes = keyof typeof ShadcnAutoFormFieldComponents;
|
|
13
|
-
export declare function AutoForm<T extends Record<string, any>>({ uiComponents, formComponents, ...props }: AutoFormProps<T>
|
|
13
|
+
export declare function AutoForm<T extends Record<string, any>>({ uiComponents, formComponents, readOnly, ...props }: AutoFormProps<T> & {
|
|
14
|
+
readOnly?: boolean;
|
|
15
|
+
}): 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.6-alpha.
|
|
4
|
+
"version": "5.1.6-alpha.2",
|
|
5
5
|
"description": "Mastra Playground components",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"use-debounce": "^10.0.5",
|
|
93
93
|
"zod": "^3.25.57",
|
|
94
94
|
"zustand": "^5.0.5",
|
|
95
|
-
"@mastra/client-js": "^0.10.5-alpha.
|
|
95
|
+
"@mastra/client-js": "^0.10.5-alpha.2"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
98
|
"@mastra/core": "^0.10.0-alpha.0",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"vite": "^6.3.5",
|
|
118
118
|
"vite-plugin-dts": "^3.9.1",
|
|
119
119
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
120
|
-
"@mastra/core": "0.10.6-alpha.
|
|
120
|
+
"@mastra/core": "0.10.6-alpha.2"
|
|
121
121
|
},
|
|
122
122
|
"scripts": {
|
|
123
123
|
"dev": "vite",
|