@mastra/playground-ui 25.0.0 → 25.1.0-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/CHANGELOG.md +53 -0
- package/dist/index.cjs.js +20 -94
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -68
- package/dist/index.es.js +22 -94
- package/dist/index.es.js.map +1 -1
- package/dist/src/ds/components/Notice/notice-root.d.ts +1 -1
- package/dist/src/ds/components/Notice/notice.stories.d.ts +2 -0
- package/dist/src/index.d.ts +0 -2
- package/package.json +13 -11
- package/dist/src/ds/components/CombinedButtons/combined-buttons.d.ts +0 -6
- package/dist/src/ds/components/CombinedButtons/combined-buttons.stories.d.ts +0 -10
- package/dist/src/ds/components/CombinedButtons/index.d.ts +0 -1
- package/dist/src/ds/components/Notification/index.d.ts +0 -1
- package/dist/src/ds/components/Notification/notification.d.ts +0 -10
- package/dist/src/ds/components/Notification/notification.stories.d.ts +0 -12
|
@@ -2,7 +2,7 @@ import { default as React } from '../../../../node_modules/@types/react';
|
|
|
2
2
|
export type NoticeVariant = 'warning' | 'destructive' | 'success' | 'info' | 'note';
|
|
3
3
|
export interface NoticeRootProps {
|
|
4
4
|
variant: NoticeVariant;
|
|
5
|
-
title
|
|
5
|
+
title?: React.ReactNode;
|
|
6
6
|
icon?: React.ReactNode;
|
|
7
7
|
action?: React.ReactNode;
|
|
8
8
|
children?: React.ReactNode;
|
|
@@ -9,5 +9,7 @@ export declare const Success: Story;
|
|
|
9
9
|
export declare const Info: Story;
|
|
10
10
|
export declare const Note: Story;
|
|
11
11
|
export declare const TitleOnly: Story;
|
|
12
|
+
export declare const MessageOnly: Story;
|
|
13
|
+
export declare const MessageOnlyWithAction: Story;
|
|
12
14
|
export declare const CustomIcon: Story;
|
|
13
15
|
export declare const AllVariants: Story;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -50,14 +50,12 @@ export * from './ds/components/ButtonsGroup';
|
|
|
50
50
|
export * from './ds/components/MainContent';
|
|
51
51
|
export * from './ds/components/MainHeader';
|
|
52
52
|
export * from './ds/components/Sections';
|
|
53
|
-
export * from './ds/components/CombinedButtons';
|
|
54
53
|
export * from './ds/components/DateTimePicker';
|
|
55
54
|
export * from './ds/components/EntryList';
|
|
56
55
|
export * from './ds/components/FormFields';
|
|
57
56
|
export * from './ds/components/JSONSchemaForm';
|
|
58
57
|
export * from './ds/components/KeyValueList';
|
|
59
58
|
export * from './ds/components/MainSidebar';
|
|
60
|
-
export * from './ds/components/Notification';
|
|
61
59
|
export * from './ds/components/PageHeader';
|
|
62
60
|
export * from './ds/components/Section';
|
|
63
61
|
export * from './ds/components/SelectElement';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/playground-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "25.0.0",
|
|
4
|
+
"version": "25.1.0-alpha.0",
|
|
5
5
|
"description": "Mastra Playground components",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -98,16 +98,18 @@
|
|
|
98
98
|
"lucide-react": "^0.474.0",
|
|
99
99
|
"react": ">=19.0.0",
|
|
100
100
|
"tailwindcss": "^4.0.0",
|
|
101
|
-
"@mastra/client-js": "^1.16.0",
|
|
102
|
-
"@mastra/react": "0.2.
|
|
101
|
+
"@mastra/client-js": "^1.16.1-alpha.0",
|
|
102
|
+
"@mastra/react": "0.2.34-alpha.0"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
|
-
"@storybook/addon-
|
|
106
|
-
"@storybook/
|
|
107
|
-
"@
|
|
105
|
+
"@storybook/addon-a11y": "^10.3.6",
|
|
106
|
+
"@storybook/addon-docs": "^10.3.6",
|
|
107
|
+
"@storybook/addon-mcp": "^0.6.0",
|
|
108
|
+
"@storybook/react-vite": "^10.3.6",
|
|
108
109
|
"@tailwindcss/postcss": "^4.2.2",
|
|
109
110
|
"@tailwindcss/typography": "^0.5.19",
|
|
110
111
|
"@tailwindcss/vite": "4.2.2",
|
|
112
|
+
"@tanstack/react-query": "^5.90.21",
|
|
111
113
|
"@testing-library/react": "^16.3.2",
|
|
112
114
|
"@types/json-schema": "^7.0.15",
|
|
113
115
|
"@types/node": "22.19.15",
|
|
@@ -119,9 +121,10 @@
|
|
|
119
121
|
"clsx": "^2.1.1",
|
|
120
122
|
"eslint-plugin-react-hooks": "^7.1.0",
|
|
121
123
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
124
|
+
"eslint-plugin-storybook": "^10.3.6",
|
|
122
125
|
"jsdom": "^26.1.0",
|
|
123
126
|
"rollup-plugin-node-externals": "^8.1.2",
|
|
124
|
-
"storybook": "^10.3.
|
|
127
|
+
"storybook": "^10.3.6",
|
|
125
128
|
"tailwind-merge": "^3.5.0",
|
|
126
129
|
"tailwindcss": "4.2.2",
|
|
127
130
|
"tw-animate-css": "^1.4.0",
|
|
@@ -130,11 +133,10 @@
|
|
|
130
133
|
"vite-plugin-dts": "^4.5.4",
|
|
131
134
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
132
135
|
"vitest": "4.1.5",
|
|
133
|
-
"eslint-plugin-storybook": "^10.3.5",
|
|
134
|
-
"@mastra/client-js": "^1.16.0",
|
|
135
136
|
"@internal/lint": "0.0.90",
|
|
136
|
-
"@mastra/
|
|
137
|
-
"@mastra/
|
|
137
|
+
"@mastra/client-js": "^1.16.1-alpha.0",
|
|
138
|
+
"@mastra/core": "1.31.1-alpha.0",
|
|
139
|
+
"@mastra/react": "0.2.34-alpha.0"
|
|
138
140
|
},
|
|
139
141
|
"homepage": "https://mastra.ai",
|
|
140
142
|
"repository": {
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { default as React } from '../../../../node_modules/@types/react';
|
|
2
|
-
export interface CombinedButtonsProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
export declare const CombinedButtons: ({ className, children }: CombinedButtonsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { CombinedButtons } from './combined-buttons';
|
|
3
|
-
declare const meta: Meta<typeof CombinedButtons>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof CombinedButtons>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const ThreeButtons: Story;
|
|
8
|
-
export declare const WithIcons: Story;
|
|
9
|
-
export declare const IconOnly: Story;
|
|
10
|
-
export declare const SplitButton: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './combined-buttons';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './notification';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type NotificationProps = {
|
|
2
|
-
children: React.ReactNode;
|
|
3
|
-
className?: string;
|
|
4
|
-
isVisible?: boolean;
|
|
5
|
-
autoDismiss?: boolean;
|
|
6
|
-
dismissTime?: number;
|
|
7
|
-
dismissible?: boolean;
|
|
8
|
-
type?: 'info' | 'error' | 'success' | 'warning';
|
|
9
|
-
};
|
|
10
|
-
export declare function Notification({ children, className, isVisible, autoDismiss, dismissTime, dismissible, type, }: NotificationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { Notification } from './notification';
|
|
3
|
-
declare const meta: Meta<typeof Notification>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Notification>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const InfoNotification: Story;
|
|
8
|
-
export declare const ErrorNotification: Story;
|
|
9
|
-
export declare const SuccessMessage: Story;
|
|
10
|
-
export declare const NotDismissible: Story;
|
|
11
|
-
export declare const AutoDismiss: Story;
|
|
12
|
-
export declare const LongContent: Story;
|