@mastra/playground-ui 25.0.0-alpha.6 → 25.0.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 +56 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,61 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 25.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Refactored Button component to use a single `cva` (class-variance-authority) variant config instead of nested manual maps. Consolidated `IconButton` into `Button` via `size="icon-sm|icon-md|icon-lg"` and removed the `IconButton` export. Replaced `variant="light"` and `variant="inputLike"` with `variant="default"` (no behavior change for default styling). Added `cta` and `outline` variants and unified active/hover styles between text- and icon-mode buttons. ([#15985](https://github.com/mastra-ai/mastra/pull/15985))
|
|
8
|
+
|
|
9
|
+
**Why:** A single source of truth for variants means consistent visuals, fewer drift bugs, simpler maintenance, and a more predictable surface for AI agents — single-variant cva is the dominant shadcn pattern across DS components in this repo (`Card`, `Input`, `Label`, `Textarea`, `StatusBadge`).
|
|
10
|
+
|
|
11
|
+
**Migration:**
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
// Before
|
|
15
|
+
import { IconButton } from '@mastra/playground-ui';
|
|
16
|
+
<IconButton><Settings /></IconButton>
|
|
17
|
+
<Button variant="light">…</Button>
|
|
18
|
+
<Combobox variant="inputLike" />
|
|
19
|
+
|
|
20
|
+
// After
|
|
21
|
+
import { Button } from '@mastra/playground-ui';
|
|
22
|
+
<Button size="icon-md"><Settings /></Button>
|
|
23
|
+
<Button variant="default">…</Button>
|
|
24
|
+
<Combobox variant="default" />
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
- Removed `<Alert>` in favor of `<Notice>`. The two components had significant visual and behavioral overlap; `<Notice>` is now the single banner primitive and supports every previous `<Alert>` use case. ([#15791](https://github.com/mastra-ai/mastra/pull/15791))
|
|
28
|
+
|
|
29
|
+
`<Notice>` is also redesigned with a flatter API: `title` and `icon` are now props, each variant ships a default icon, an optional `action` prop renders a button aligned to the title, and a new `note` variant has been added alongside `warning`, `destructive`, `info`, and `success`. Theme tokens (`notice-warning`, `notice-destructive`, `notice-info`, `notice-success`, `notice-note`) replace the previous hardcoded colors.
|
|
30
|
+
|
|
31
|
+
**Migration**
|
|
32
|
+
|
|
33
|
+
```tsx
|
|
34
|
+
// Before
|
|
35
|
+
<Alert variant="warning">
|
|
36
|
+
<AlertTitle>Provider not connected</AlertTitle>
|
|
37
|
+
<AlertDescription as="p">Set the API key environment variable.</AlertDescription>
|
|
38
|
+
</Alert>
|
|
39
|
+
|
|
40
|
+
// After
|
|
41
|
+
<Notice variant="warning" title="Provider not connected">
|
|
42
|
+
<Notice.Message>Set the API key environment variable.</Notice.Message>
|
|
43
|
+
</Notice>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Patch Changes
|
|
47
|
+
|
|
48
|
+
- Removed the "Avg Score" KPI card from the Metrics dashboard and the avg-score summary from the Scores card. ([#15967](https://github.com/mastra-ai/mastra/pull/15967))
|
|
49
|
+
|
|
50
|
+
- Fixed row click behavior in the dataset experiments compare view. Clicking a row while selection mode is active now toggles the row's selection instead of navigating to the experiment. Clicking directly on the checkbox no longer also triggers the row click handler. ([#15492](https://github.com/mastra-ai/mastra/pull/15492))
|
|
51
|
+
|
|
52
|
+
- Aligned AlertDialog visual styling with Dialog component for design system consistency. AlertDialog now uses the same surface tokens, border radius, shadow, animation curves, and typography scale as Dialog. The accessibility primitive remains separate (preserves `role="alertdialog"` and explicit Action/Cancel semantics) — only the visual shell was synced. Also added `AlertDialog.Body` for parity with Dialog. ([#15988](https://github.com/mastra-ai/mastra/pull/15988))
|
|
53
|
+
|
|
54
|
+
- Updated dependencies [[`1723e09`](https://github.com/mastra-ai/mastra/commit/1723e099829892419ddbfe49287acfeac2522724), [`629f9e9`](https://github.com/mastra-ai/mastra/commit/629f9e9a7e56aa8f129515a3923c5813298790c7), [`25168fb`](https://github.com/mastra-ai/mastra/commit/25168fb9c1de9db7f8171df4f58ceb842c53aa29), [`ab34b5a`](https://github.com/mastra-ai/mastra/commit/ab34b5a2191b8e4353df1dbf7b9155e7d6628d79), [`5fb6c2a`](https://github.com/mastra-ai/mastra/commit/5fb6c2a95c1843cc231704b91354311fc1f34a71), [`2b0f355`](https://github.com/mastra-ai/mastra/commit/2b0f3553be3e9e5524da539a66e5cf82668440a4), [`394f0cf`](https://github.com/mastra-ai/mastra/commit/394f0cfc31e6b4d801219fdef2e9cc69e5bc8682), [`b2deb29`](https://github.com/mastra-ai/mastra/commit/b2deb29412b300c868655b5840463614fbb7962d), [`66644be`](https://github.com/mastra-ai/mastra/commit/66644beac1aa560f0e417956ff007c89341dc382), [`e109607`](https://github.com/mastra-ai/mastra/commit/e10960749251e34d46b480a20648c490fd30381b), [`310b953`](https://github.com/mastra-ai/mastra/commit/310b95345f302dcd5ba3ed862bdc96f059d44122), [`3d7f709`](https://github.com/mastra-ai/mastra/commit/3d7f709b615e588050bb6283c4ee5cfe2978cbde), [`48a42f1`](https://github.com/mastra-ai/mastra/commit/48a42f114a4006a95e0b7a1b5ad1a24815a175c2), [`8091c7c`](https://github.com/mastra-ai/mastra/commit/8091c7c944d15e13fef6d61b6cfd903f158d4006), [`2c83efc`](https://github.com/mastra-ai/mastra/commit/2c83efc4482b3efe50830e3b8b4ba9a8d219edff), [`43f0e1d`](https://github.com/mastra-ai/mastra/commit/43f0e1d5d5a74ba6fc746f2ad89ebe0c64777a7d), [`57b8756`](https://github.com/mastra-ai/mastra/commit/57b87567523484825ef145a2c927f947d1306253), [`43f0e1d`](https://github.com/mastra-ai/mastra/commit/43f0e1d5d5a74ba6fc746f2ad89ebe0c64777a7d), [`da0b9e2`](https://github.com/mastra-ai/mastra/commit/da0b9e2ba7ecc560213b426d6c097fe63946086e), [`282a10c`](https://github.com/mastra-ai/mastra/commit/282a10c9446e9922afe80e10e3770481c8ac8a28), [`04151c7`](https://github.com/mastra-ai/mastra/commit/04151c7dcea934b4fe9076708a23fac161195414), [`8091c7c`](https://github.com/mastra-ai/mastra/commit/8091c7c944d15e13fef6d61b6cfd903f158d4006)]:
|
|
55
|
+
- @mastra/core@1.31.0
|
|
56
|
+
- @mastra/client-js@1.16.0
|
|
57
|
+
- @mastra/react@0.2.33
|
|
58
|
+
|
|
3
59
|
## 25.0.0-alpha.6
|
|
4
60
|
|
|
5
61
|
### Patch Changes
|
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.0.0",
|
|
5
5
|
"description": "Mastra Playground components",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -98,8 +98,8 @@
|
|
|
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.33
|
|
101
|
+
"@mastra/client-js": "^1.16.0",
|
|
102
|
+
"@mastra/react": "0.2.33"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
105
|
"@storybook/addon-docs": "^10.3.5",
|
|
@@ -131,10 +131,10 @@
|
|
|
131
131
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
132
132
|
"vitest": "4.1.5",
|
|
133
133
|
"eslint-plugin-storybook": "^10.3.5",
|
|
134
|
-
"@mastra/client-js": "^1.16.0
|
|
135
|
-
"@
|
|
136
|
-
"@
|
|
137
|
-
"@mastra/
|
|
134
|
+
"@mastra/client-js": "^1.16.0",
|
|
135
|
+
"@internal/lint": "0.0.90",
|
|
136
|
+
"@mastra/core": "1.31.0",
|
|
137
|
+
"@mastra/react": "0.2.33"
|
|
138
138
|
},
|
|
139
139
|
"homepage": "https://mastra.ai",
|
|
140
140
|
"repository": {
|