@mastra/playground-ui 40.0.2-alpha.2 → 40.1.0-alpha.4
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 +61 -0
- package/dist/components/Command.cjs.js +3 -0
- package/dist/components/Command.cjs.js.map +1 -1
- package/dist/components/Command.es.js +3 -0
- package/dist/components/Command.es.js.map +1 -1
- package/dist/components/MarkdownRenderer.cjs.js +3 -83
- package/dist/components/MarkdownRenderer.cjs.js.map +1 -1
- package/dist/components/MarkdownRenderer.es.js +1 -85
- package/dist/components/MarkdownRenderer.es.js.map +1 -1
- package/dist/components/ai/plan.cjs.js +171 -0
- package/dist/components/ai/plan.cjs.js.map +1 -0
- package/dist/components/ai/plan.d.ts +2 -0
- package/dist/components/ai/plan.es.js +152 -0
- package/dist/components/ai/plan.es.js.map +1 -0
- package/dist/markdown-renderer-Bcrk5ZJO.js +86 -0
- package/dist/markdown-renderer-Bcrk5ZJO.js.map +1 -0
- package/dist/markdown-renderer-Ca-WbDb4.cjs +88 -0
- package/dist/markdown-renderer-Ca-WbDb4.cjs.map +1 -0
- package/dist/src/ds/components/Command/command.d.ts +2 -1
- package/dist/src/ds/components/ai/plan/index.d.ts +1 -0
- package/dist/src/ds/components/ai/plan/plan.d.ts +48 -0
- package/dist/src/ds/components/ai/plan/plan.stories.d.ts +9 -0
- package/dist/style.css +74 -0
- package/package.json +7 -7
|
@@ -7,10 +7,11 @@ type CommandDialogProps = Omit<React.ComponentPropsWithoutRef<typeof Dialog>, 'c
|
|
|
7
7
|
description?: string;
|
|
8
8
|
contentClassName?: string;
|
|
9
9
|
commandClassName?: string;
|
|
10
|
+
commandLabel?: string;
|
|
10
11
|
showOverlay?: boolean;
|
|
11
12
|
overlayClassName?: string;
|
|
12
13
|
};
|
|
13
|
-
declare const CommandDialog: ({ children, title, description, contentClassName, commandClassName, showOverlay, overlayClassName, ...props }: CommandDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare const CommandDialog: ({ children, title, description, contentClassName, commandClassName, commandLabel, showOverlay, overlayClassName, ...props }: CommandDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
declare const CommandInput: React.ForwardRefExoticComponent<any>;
|
|
15
16
|
declare const CommandList: React.ForwardRefExoticComponent<any>;
|
|
16
17
|
declare const CommandEmpty: React.ForwardRefExoticComponent<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './plan';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { Badge } from '../../Badge';
|
|
3
|
+
import { Button } from '../../Button';
|
|
4
|
+
import { Txt } from '../../Txt';
|
|
5
|
+
export interface PlanProps extends ComponentProps<'div'> {
|
|
6
|
+
collapsedHeight?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function Plan({ children, collapsedHeight, className, ...props }: PlanProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export type PlanHeaderProps = ComponentProps<'div'>;
|
|
10
|
+
export declare function PlanHeader({ children, className, ...props }: PlanHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export type PlanLabelProps = ComponentProps<'div'>;
|
|
12
|
+
export declare function PlanLabel({ children, className, ...props }: PlanLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export type PlanHeaderActionsProps = ComponentProps<'div'>;
|
|
14
|
+
export declare function PlanHeaderActions({ children, className, ...props }: PlanHeaderActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export type PlanStatusProps = Omit<ComponentProps<typeof Badge>, 'icon' | 'size'>;
|
|
16
|
+
export declare function PlanStatus({ children, variant, ...props }: PlanStatusProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export interface PlanCopyButtonProps extends Omit<ComponentProps<typeof Button>, 'aria-label' | 'children' | 'onClick' | 'size' | 'tooltip' | 'type' | 'variant'> {
|
|
18
|
+
content: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function PlanCopyButton({ content, ...props }: PlanCopyButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export type PlanBodyProps = ComponentProps<'div'>;
|
|
22
|
+
export declare function PlanBody({ children, className, ...props }: PlanBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export type PlanIntroProps = ComponentProps<'div'>;
|
|
24
|
+
export declare function PlanIntro({ children, className, ...props }: PlanIntroProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export interface PlanTitleProps extends Omit<ComponentProps<typeof Txt>, 'as' | 'children' | 'variant'> {
|
|
26
|
+
children: ReactNode;
|
|
27
|
+
}
|
|
28
|
+
export declare function PlanTitle({ children, className, ...props }: PlanTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export interface PlanPathProps extends Omit<ComponentProps<typeof Txt>, 'as' | 'children' | 'font' | 'title' | 'variant'> {
|
|
30
|
+
children: string;
|
|
31
|
+
}
|
|
32
|
+
export declare function PlanPath({ children, className, ...props }: PlanPathProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export type PlanMainProps = ComponentProps<'div'>;
|
|
34
|
+
export declare function PlanMain({ children, className, ...props }: PlanMainProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export interface PlanContentProps extends Omit<ComponentProps<'div'>, 'children'> {
|
|
36
|
+
children: string;
|
|
37
|
+
}
|
|
38
|
+
export declare function PlanContent({ children, className, style, ...props }: PlanContentProps): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export interface PlanFileProps extends Omit<ComponentProps<'div'>, 'children'> {
|
|
40
|
+
children: string;
|
|
41
|
+
}
|
|
42
|
+
export declare function PlanFile({ children, className, ...props }: PlanFileProps): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export type PlanControlsProps = ComponentProps<'div'>;
|
|
44
|
+
export declare function PlanControls({ children, className, ...props }: PlanControlsProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export type PlanActionGroupProps = ComponentProps<'div'>;
|
|
46
|
+
export declare function PlanActionGroup({ children, className, ...props }: PlanActionGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
export type PlanExpandButtonProps = Omit<ComponentProps<typeof Button>, 'aria-label' | 'children' | 'onClick' | 'size' | 'type' | 'variant'>;
|
|
48
|
+
export declare function PlanExpandButton(props: PlanExpandButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Plan } from './plan';
|
|
3
|
+
declare const meta: Meta<typeof Plan>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Plan>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Collapsed: Story;
|
|
8
|
+
export declare const FileUnavailable: Story;
|
|
9
|
+
export declare const WithStatusAndActions: Story;
|
package/dist/style.css
CHANGED
|
@@ -150,6 +150,7 @@
|
|
|
150
150
|
--color-white: #fff;
|
|
151
151
|
--breakpoint-lg: 64rem;
|
|
152
152
|
--container-xs: 20rem;
|
|
153
|
+
--container-sm: 24rem;
|
|
153
154
|
--container-md: 28rem;
|
|
154
155
|
--container-lg: 32rem;
|
|
155
156
|
--container-2xl: 42rem;
|
|
@@ -1135,6 +1136,10 @@
|
|
|
1135
1136
|
margin-bottom: var(--spacing-4);
|
|
1136
1137
|
}
|
|
1137
1138
|
|
|
1139
|
+
.mb-5 {
|
|
1140
|
+
margin-bottom: var(--spacing-5);
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1138
1143
|
.mb-6 {
|
|
1139
1144
|
margin-bottom: var(--spacing-6);
|
|
1140
1145
|
}
|
|
@@ -1246,6 +1251,11 @@
|
|
|
1246
1251
|
display: table-row;
|
|
1247
1252
|
}
|
|
1248
1253
|
|
|
1254
|
+
.size-1 {
|
|
1255
|
+
width: var(--spacing-1);
|
|
1256
|
+
height: var(--spacing-1);
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1249
1259
|
.size-1\.5 {
|
|
1250
1260
|
width: var(--spacing-1_5);
|
|
1251
1261
|
height: var(--spacing-1_5);
|
|
@@ -1671,6 +1681,10 @@
|
|
|
1671
1681
|
min-height: var(--spacing-9);
|
|
1672
1682
|
}
|
|
1673
1683
|
|
|
1684
|
+
.min-h-10 {
|
|
1685
|
+
min-height: var(--spacing-10);
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1674
1688
|
.min-h-14 {
|
|
1675
1689
|
min-height: var(--spacing-14);
|
|
1676
1690
|
}
|
|
@@ -2208,6 +2222,10 @@
|
|
|
2208
2222
|
max-width: var(--breakpoint-lg);
|
|
2209
2223
|
}
|
|
2210
2224
|
|
|
2225
|
+
.max-w-sm {
|
|
2226
|
+
max-width: var(--container-sm);
|
|
2227
|
+
}
|
|
2228
|
+
|
|
2211
2229
|
.max-w-xs {
|
|
2212
2230
|
max-width: var(--container-xs);
|
|
2213
2231
|
}
|
|
@@ -2520,6 +2538,10 @@
|
|
|
2520
2538
|
grid-template-columns: 1fr auto;
|
|
2521
2539
|
}
|
|
2522
2540
|
|
|
2541
|
+
.grid-cols-\[1fr_auto_1fr\] {
|
|
2542
|
+
grid-template-columns: 1fr auto 1fr;
|
|
2543
|
+
}
|
|
2544
|
+
|
|
2523
2545
|
.grid-cols-\[5rem_repeat\(4\,minmax\(0\,1fr\)\)\] {
|
|
2524
2546
|
grid-template-columns: 5rem repeat(4, minmax(0, 1fr));
|
|
2525
2547
|
}
|
|
@@ -4184,6 +4206,10 @@
|
|
|
4184
4206
|
padding-inline: var(--spacing-8);
|
|
4185
4207
|
}
|
|
4186
4208
|
|
|
4209
|
+
.px-10 {
|
|
4210
|
+
padding-inline: var(--spacing-10);
|
|
4211
|
+
}
|
|
4212
|
+
|
|
4187
4213
|
.px-12 {
|
|
4188
4214
|
padding-inline: var(--spacing-12);
|
|
4189
4215
|
}
|
|
@@ -4392,6 +4418,10 @@
|
|
|
4392
4418
|
padding-bottom: var(--spacing-4);
|
|
4393
4419
|
}
|
|
4394
4420
|
|
|
4421
|
+
.pb-5 {
|
|
4422
|
+
padding-bottom: var(--spacing-5);
|
|
4423
|
+
}
|
|
4424
|
+
|
|
4395
4425
|
.pb-6 {
|
|
4396
4426
|
padding-bottom: var(--spacing-6);
|
|
4397
4427
|
}
|
|
@@ -6097,6 +6127,10 @@
|
|
|
6097
6127
|
margin-top: var(--spacing-3);
|
|
6098
6128
|
}
|
|
6099
6129
|
|
|
6130
|
+
.empty\:hidden:empty {
|
|
6131
|
+
display: none;
|
|
6132
|
+
}
|
|
6133
|
+
|
|
6100
6134
|
.empty\:before\:text-neutral2:empty:before {
|
|
6101
6135
|
content: var(--tw-content);
|
|
6102
6136
|
color: var(--color-neutral2);
|
|
@@ -8267,6 +8301,37 @@
|
|
|
8267
8301
|
width: var(--spacing-5);
|
|
8268
8302
|
}
|
|
8269
8303
|
|
|
8304
|
+
.\[\&_code\]\:bg-surface4 code {
|
|
8305
|
+
background-color: var(--color-surface4);
|
|
8306
|
+
}
|
|
8307
|
+
|
|
8308
|
+
.\[\&_h1\]\:text-header-md h1 {
|
|
8309
|
+
font-size: var(--text-header-md);
|
|
8310
|
+
}
|
|
8311
|
+
|
|
8312
|
+
.\[\&_h1\]\:leading-header-md h1 {
|
|
8313
|
+
--tw-leading: var(--leading-header-md);
|
|
8314
|
+
line-height: var(--leading-header-md);
|
|
8315
|
+
}
|
|
8316
|
+
|
|
8317
|
+
.\[\&_h2\]\:text-header-sm h2 {
|
|
8318
|
+
font-size: var(--text-header-sm);
|
|
8319
|
+
}
|
|
8320
|
+
|
|
8321
|
+
.\[\&_h2\]\:leading-header-sm h2 {
|
|
8322
|
+
--tw-leading: var(--leading-header-sm);
|
|
8323
|
+
line-height: var(--leading-header-sm);
|
|
8324
|
+
}
|
|
8325
|
+
|
|
8326
|
+
.\[\&_h3\]\:text-ui-lg h3 {
|
|
8327
|
+
font-size: var(--text-ui-lg);
|
|
8328
|
+
}
|
|
8329
|
+
|
|
8330
|
+
.\[\&_h3\]\:leading-ui-lg h3 {
|
|
8331
|
+
--tw-leading: var(--leading-ui-lg);
|
|
8332
|
+
line-height: var(--leading-ui-lg);
|
|
8333
|
+
}
|
|
8334
|
+
|
|
8270
8335
|
.\[\&_img\]\:h-\[1\.2em\] img {
|
|
8271
8336
|
height: 1.2em;
|
|
8272
8337
|
}
|
|
@@ -8283,6 +8348,15 @@
|
|
|
8283
8348
|
opacity: .5;
|
|
8284
8349
|
}
|
|
8285
8350
|
|
|
8351
|
+
.\[\&_p\]\:text-ui-md p {
|
|
8352
|
+
font-size: var(--text-ui-md);
|
|
8353
|
+
}
|
|
8354
|
+
|
|
8355
|
+
.\[\&_p\]\:leading-6 p {
|
|
8356
|
+
--tw-leading: var(--spacing-6);
|
|
8357
|
+
line-height: var(--spacing-6);
|
|
8358
|
+
}
|
|
8359
|
+
|
|
8286
8360
|
.\[\&_svg\]\:pointer-events-none svg {
|
|
8287
8361
|
pointer-events: none;
|
|
8288
8362
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/playground-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "40.0
|
|
4
|
+
"version": "40.1.0-alpha.4",
|
|
5
5
|
"description": "Mastra Playground components",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.css"
|
|
@@ -150,8 +150,8 @@
|
|
|
150
150
|
"react": ">=19.0.0",
|
|
151
151
|
"react-dom": ">=19.0.0",
|
|
152
152
|
"tailwindcss": "^4.0.0",
|
|
153
|
-
"@mastra/client-js": "^1.31.2-alpha.
|
|
154
|
-
"@mastra/react": "1.2.5-alpha.
|
|
153
|
+
"@mastra/client-js": "^1.31.2-alpha.4",
|
|
154
|
+
"@mastra/react": "1.2.5-alpha.4"
|
|
155
155
|
},
|
|
156
156
|
"devDependencies": {
|
|
157
157
|
"@storybook/addon-a11y": "^10.4.1",
|
|
@@ -189,10 +189,10 @@
|
|
|
189
189
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
190
190
|
"vitest": "4.1.9",
|
|
191
191
|
"@internal/lint": "0.0.113",
|
|
192
|
-
"@mastra/client-js": "^1.31.2-alpha.
|
|
193
|
-
"@mastra/core": "1.51.0-alpha.
|
|
194
|
-
"@mastra/memory": "1.23.0-alpha.
|
|
195
|
-
"@mastra/react": "1.2.5-alpha.
|
|
192
|
+
"@mastra/client-js": "^1.31.2-alpha.4",
|
|
193
|
+
"@mastra/core": "1.51.0-alpha.4",
|
|
194
|
+
"@mastra/memory": "1.23.0-alpha.3",
|
|
195
|
+
"@mastra/react": "1.2.5-alpha.4"
|
|
196
196
|
},
|
|
197
197
|
"homepage": "https://mastra.ai",
|
|
198
198
|
"repository": {
|