@mastra/playground-ui 5.1.3 → 5.1.4-alpha.0
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/dist/index.cjs.js +477 -206
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +479 -208
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/dynamic-form/index.d.ts +3 -2
- package/dist/src/components/ui/copy-button.d.ts +2 -2
- package/dist/src/components/ui/form.d.ts +1 -1
- package/dist/src/components/ui/resizable.d.ts +1 -1
- package/dist/src/ds/components/Txt/Txt.d.ts +2 -0
- package/package.json +4 -4
- package/dist/src/components/syntax-highlighter.d.ts +0 -4
- package/dist/src/components/ui/syntax-highlighter.d.ts +0 -5
|
@@ -2,10 +2,11 @@ import { default as z } from 'zod';
|
|
|
2
2
|
|
|
3
3
|
interface DynamicFormProps<T extends z.ZodSchema> {
|
|
4
4
|
schema: T;
|
|
5
|
-
onSubmit
|
|
5
|
+
onSubmit?: (values: z.infer<T>) => void | Promise<void>;
|
|
6
6
|
defaultValues?: z.infer<T>;
|
|
7
7
|
isSubmitLoading?: boolean;
|
|
8
8
|
submitButtonLabel?: string;
|
|
9
|
+
className?: string;
|
|
9
10
|
}
|
|
10
|
-
export declare function DynamicForm<T extends z.ZodSchema>({ schema, onSubmit, defaultValues, isSubmitLoading, submitButtonLabel, }: DynamicFormProps<T>): import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
export declare function DynamicForm<T extends z.ZodSchema>({ schema, onSubmit, defaultValues, isSubmitLoading, submitButtonLabel, className, }: DynamicFormProps<T>): import("react/jsx-runtime").JSX.Element | null;
|
|
11
12
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
type CopyButtonProps = {
|
|
2
2
|
content: string;
|
|
3
3
|
copyMessage?: string;
|
|
4
|
-
|
|
4
|
+
className?: string;
|
|
5
5
|
};
|
|
6
|
-
export declare function CopyButton({ content, copyMessage,
|
|
6
|
+
export declare function CopyButton({ content, copyMessage, className }: CopyButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
4
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues
|
|
4
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import('react-hook-form').FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
5
5
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare const useFormField: () => {
|
|
7
7
|
invalid: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
2
2
|
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare const ResizablePanel: import('../../../node_modules/@types/react').ForwardRefExoticComponent<Omit<import('../../../node_modules/@types/react').HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLDivElement | HTMLObjectElement | HTMLLinkElement | HTMLMapElement | HTMLFormElement | HTMLSlotElement | HTMLStyleElement | HTMLTitleElement | HTMLDialogElement | HTMLImageElement | HTMLOptionElement | HTMLTableElement | HTMLAnchorElement | HTMLHeadingElement | HTMLInputElement | HTMLLabelElement | HTMLLIElement | HTMLOListElement | HTMLParagraphElement | HTMLSpanElement | HTMLUListElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement |
|
|
3
|
+
declare const ResizablePanel: import('../../../node_modules/@types/react').ForwardRefExoticComponent<Omit<import('../../../node_modules/@types/react').HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLDivElement | HTMLObjectElement | HTMLLinkElement | HTMLMapElement | HTMLFormElement | HTMLSlotElement | HTMLStyleElement | HTMLTitleElement | HTMLDialogElement | HTMLImageElement | HTMLOptionElement | HTMLTableElement | HTMLAnchorElement | HTMLHeadingElement | HTMLInputElement | HTMLLabelElement | HTMLLIElement | HTMLOListElement | HTMLParagraphElement | HTMLSelectElement | HTMLSpanElement | HTMLUListElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSourceElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
4
4
|
className?: string | undefined;
|
|
5
5
|
collapsedSize?: number | undefined;
|
|
6
6
|
collapsible?: boolean | undefined;
|
|
@@ -6,5 +6,7 @@ export interface TxtProps extends React.HTMLAttributes<HTMLDivElement | HTMLLabe
|
|
|
6
6
|
variant?: keyof typeof FontSizes;
|
|
7
7
|
font?: 'mono';
|
|
8
8
|
htmlFor?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
9
11
|
}
|
|
10
12
|
export declare const Txt: ({ as: Root, className, variant, font, ...props }: TxtProps) => 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.
|
|
4
|
+
"version": "5.1.4-alpha.0",
|
|
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.4",
|
|
93
93
|
"zod": "^3.24.3",
|
|
94
94
|
"zustand": "^5.0.3",
|
|
95
|
-
"@mastra/client-js": "^0.10.
|
|
95
|
+
"@mastra/client-js": "^0.10.3-alpha.0"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
98
|
"@mastra/core": "^0.10.0-alpha.0",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"tailwindcss": "^3.0.0"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
|
-
"@types/node": "^20.17.
|
|
105
|
+
"@types/node": "^20.17.57",
|
|
106
106
|
"@types/react": "^19.0.10",
|
|
107
107
|
"@types/react-dom": "^19.0.4",
|
|
108
108
|
"@vitejs/plugin-react": "^4.3.4",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"vite": "^6.0.0",
|
|
118
118
|
"vite-plugin-dts": "^3.9.1",
|
|
119
119
|
"vite-plugin-lib-inject-css": "^2.2.1",
|
|
120
|
-
"@mastra/core": "0.10.
|
|
120
|
+
"@mastra/core": "0.10.4-alpha.0"
|
|
121
121
|
},
|
|
122
122
|
"scripts": {
|
|
123
123
|
"dev": "vite",
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const useCodemirrorTheme: () => import('@uiw/react-codemirror').Extension;
|
|
2
|
-
export declare const SyntaxHighlighter: ({ data }: {
|
|
3
|
-
data: Record<string, unknown>;
|
|
4
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare function highlight(code: string, language: string): Promise<import('shiki').ThemedToken[][] | null>;
|