@mastra/playground-ui 36.0.0-alpha.5 → 36.0.1-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 +125 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,130 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 36.0.1-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`fbeda0c`](https://github.com/mastra-ai/mastra/commit/fbeda0c0f35def07e6837936dd3a003b2b7c5172), [`307573b`](https://github.com/mastra-ai/mastra/commit/307573b9ff3149b70c79540dbc86f1319b180f29)]:
|
|
8
|
+
- @mastra/core@1.46.1-alpha.0
|
|
9
|
+
- @mastra/client-js@1.27.1-alpha.0
|
|
10
|
+
- @mastra/react@1.1.2-alpha.0
|
|
11
|
+
|
|
12
|
+
## 36.0.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- Added a CodeEditor option to disable line wrapping when callers need horizontally scrollable content. ([#18303](https://github.com/mastra-ai/mastra/pull/18303))
|
|
17
|
+
|
|
18
|
+
- Improved command palette keyboard handling, input affordance/style slots, scroll-area-backed lists, shortcut labels, overlay behavior, and inline examples. ([#18142](https://github.com/mastra-ai/mastra/pull/18142))
|
|
19
|
+
|
|
20
|
+
- Added a multiple-selection mode to the Combobox component and removed the separate MultiCombobox export. ([#18166](https://github.com/mastra-ai/mastra/pull/18166))
|
|
21
|
+
|
|
22
|
+
Use the shared Combobox API for both single and multiple selection:
|
|
23
|
+
|
|
24
|
+
```tsx
|
|
25
|
+
<Combobox multiple value={selectedValues} onValueChange={setSelectedValues} options={options} />
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Storybook now includes examples for the single and multiple selection flows. Command item icons now render without an extra icon background.
|
|
29
|
+
|
|
30
|
+
- Added nested children support to `MainSidebar.Sections` navigation. Parent rows can now stay clickable while rendering child links as nested subitems. ([#18224](https://github.com/mastra-ai/mastra/pull/18224))
|
|
31
|
+
|
|
32
|
+
```tsx
|
|
33
|
+
<MainSidebar.Sections
|
|
34
|
+
sections={[
|
|
35
|
+
{
|
|
36
|
+
key: 'workspace',
|
|
37
|
+
title: 'Workspace',
|
|
38
|
+
links: [
|
|
39
|
+
{
|
|
40
|
+
name: 'Agents',
|
|
41
|
+
url: '/agents',
|
|
42
|
+
children: [{ name: 'Templates', url: '/agents/templates' }],
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
]}
|
|
47
|
+
/>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
- Removed the default DataList variant. DataList now uses the lined treatment when no variant is provided; use variant="striped" only when zebra rows are needed. ([#18218](https://github.com/mastra-ai/mastra/pull/18218))
|
|
51
|
+
|
|
52
|
+
**Before**
|
|
53
|
+
|
|
54
|
+
```tsx
|
|
55
|
+
<DataList columns={columns} variant="default" />
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**After**
|
|
59
|
+
|
|
60
|
+
```tsx
|
|
61
|
+
<DataList columns={columns} />
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
- Added helpers for working with remote and cloud-storage media URLs, used by the Studio agent chat composer so media can be attached by URL and forwarded to the model untouched instead of only being uploaded as inlined base64. ([#18149](https://github.com/mastra-ai/mastra/pull/18149))
|
|
65
|
+
- Recognizes cloud-storage URIs (`gs://`, `s3://`) so they are passed through and resolved server-side by the model provider.
|
|
66
|
+
- Recognizes video and audio URLs and renders them as a labeled file chip with the correct icon instead of a broken preview.
|
|
67
|
+
|
|
68
|
+
New exports:
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
import { isRemoteUrl, isBrowserFetchableUrl, isNonFetchableRemoteUrl } from '@mastra/playground-ui';
|
|
72
|
+
|
|
73
|
+
isRemoteUrl('gs://my-bucket/clip.mp4'); // true
|
|
74
|
+
isBrowserFetchableUrl('gs://my-bucket/clip.mp4'); // false (resolved server-side)
|
|
75
|
+
isBrowserFetchableUrl('https://example.com/clip.mp4'); // true
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Patch Changes
|
|
79
|
+
|
|
80
|
+
- Removed `ScrollableContainer`. Use `ScrollArea` with the `scrollButtons` prop for horizontal scroll controls. ([#18220](https://github.com/mastra-ai/mastra/pull/18220))
|
|
81
|
+
|
|
82
|
+
**Before**
|
|
83
|
+
|
|
84
|
+
```tsx
|
|
85
|
+
import { ScrollableContainer } from '@mastra/playground-ui';
|
|
86
|
+
|
|
87
|
+
<ScrollableContainer>{items}</ScrollableContainer>;
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**After**
|
|
91
|
+
|
|
92
|
+
```tsx
|
|
93
|
+
import { ScrollArea } from '@mastra/playground-ui';
|
|
94
|
+
|
|
95
|
+
<ScrollArea orientation="horizontal" scrollButtons>
|
|
96
|
+
{items}
|
|
97
|
+
</ScrollArea>;
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
- Fixed DataList selection headers so grouped header cells no longer cover select-all checkboxes. ([#18221](https://github.com/mastra-ai/mastra/pull/18221))
|
|
101
|
+
|
|
102
|
+
- Fixed line wrapping for JSON content in CodeEditor and tool result panels. Long JSON strings and tool outputs now wrap within the panel width instead of requiring horizontal scrolling. ([#18214](https://github.com/mastra-ai/mastra/pull/18214))
|
|
103
|
+
|
|
104
|
+
- Fixed the Studio conversation copy button in browsers that block async clipboard writes. ([#18268](https://github.com/mastra-ai/mastra/pull/18268))
|
|
105
|
+
|
|
106
|
+
- Added Studio support for authoring and viewing item-level tool mocks on dataset items. ([#18038](https://github.com/mastra-ai/mastra/pull/18038))
|
|
107
|
+
Added trace-derived mock creation with an editable preview before saving to a new or existing item.
|
|
108
|
+
Added tool mock propagation when creating new items and creating datasets from items.
|
|
109
|
+
Improved experiment results with a tool mock report (served, unconsumed, live calls, and mismatch details).
|
|
110
|
+
|
|
111
|
+
Author tool mocks on a dataset item as a JSON array:
|
|
112
|
+
|
|
113
|
+
```json
|
|
114
|
+
[
|
|
115
|
+
{
|
|
116
|
+
"toolName": "refundUser",
|
|
117
|
+
"args": { "user": "YJ", "amount": 100 },
|
|
118
|
+
"output": { "refundId": "refund_1", "user": "YJ", "amount": 100, "newBalance": 100 }
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
- Updated dependencies [[`5bd72d2`](https://github.com/mastra-ai/mastra/commit/5bd72d255f45b5ea8ab342643bd463814a980a24), [`1cc9ee1`](https://github.com/mastra-ai/mastra/commit/1cc9ee1ba51db53020a735626d33017a60b4b5b3), [`417baae`](https://github.com/mastra-ai/mastra/commit/417baae40b995db5819c845036947f0c27dc1c00), [`65f255a`](https://github.com/mastra-ai/mastra/commit/65f255a38667beb6ceeadabfa9eb5059bfec8298), [`74955f9`](https://github.com/mastra-ai/mastra/commit/74955f9120cde8b1d8ce4399232b4033236be858), [`30ebaf0`](https://github.com/mastra-ai/mastra/commit/30ebaf07bed5f4d30f2f257836c15d1bf7e40aae), [`5704634`](https://github.com/mastra-ai/mastra/commit/5704634b22133167dea337a942a34f57aaa3fa14), [`5c4e9a4`](https://github.com/mastra-ai/mastra/commit/5c4e9a4cfb2216bb3ea7f8988ad3727f3b92bb3a), [`4a88c6e`](https://github.com/mastra-ai/mastra/commit/4a88c6e2bdce316f8d7551b4ec3449b0b06fc71c), [`417baae`](https://github.com/mastra-ai/mastra/commit/417baae40b995db5819c845036947f0c27dc1c00), [`74955f9`](https://github.com/mastra-ai/mastra/commit/74955f9120cde8b1d8ce4399232b4033236be858), [`74955f9`](https://github.com/mastra-ai/mastra/commit/74955f9120cde8b1d8ce4399232b4033236be858), [`25961e3`](https://github.com/mastra-ai/mastra/commit/25961e3260ff3b1464637af8fcdb36210551c39f), [`6a1428a`](https://github.com/mastra-ai/mastra/commit/6a1428a23133fc070fc6c1caa08d28f3ba4fe5ff), [`87a17ef`](https://github.com/mastra-ai/mastra/commit/87a17efbd725aca6639febdc5e69e2abb3048689), [`e11ff30`](https://github.com/mastra-ai/mastra/commit/e11ff301408bf1731dca2fb7fbfcd8c819500a35), [`7794d71`](https://github.com/mastra-ai/mastra/commit/7794d71872c68733a30e028dfb7b1705daf6c5d2), [`9d2c946`](https://github.com/mastra-ai/mastra/commit/9d2c946d0859e90ae4bcec5beeb1da7398d2ad1e), [`c0eda2b`](https://github.com/mastra-ai/mastra/commit/c0eda2bcd91a228427314b12c91d8b147f3a739f), [`7b29f33`](https://github.com/mastra-ai/mastra/commit/7b29f332a357a83e555f29e718e5f2fab9979943), [`c0eda2b`](https://github.com/mastra-ai/mastra/commit/c0eda2bcd91a228427314b12c91d8b147f3a739f), [`b13925b`](https://github.com/mastra-ai/mastra/commit/b13925bfa91aa8700f56fa54a9ce707ee7e4ba62), [`f1ec385`](https://github.com/mastra-ai/mastra/commit/f1ec385386f62b1a0847ec5353ae2bb169d1c3d9), [`e14986f`](https://github.com/mastra-ai/mastra/commit/e14986f6e5478d6384d04ff9a7f9a79a46a8b529), [`24912b1`](https://github.com/mastra-ai/mastra/commit/24912b1f855d29ec36af4ef4bde1f7417e20cdf5), [`bf94ec6`](https://github.com/mastra-ai/mastra/commit/bf94ec68192d9f16e46ef7e5ac36370aeeddf35d), [`a29f371`](https://github.com/mastra-ai/mastra/commit/a29f371aef629ac8562661524a497127e93b5131), [`7686216`](https://github.com/mastra-ai/mastra/commit/7686216f37e74568feddec17cef3c3d24e10e60a), [`0be490f`](https://github.com/mastra-ai/mastra/commit/0be490fabb538c5a7de796ea0aff7d04a0bea1f3), [`74955f9`](https://github.com/mastra-ai/mastra/commit/74955f9120cde8b1d8ce4399232b4033236be858), [`073f910`](https://github.com/mastra-ai/mastra/commit/073f910481e7d94b95ba3830f96531774ae95d33), [`0be490f`](https://github.com/mastra-ai/mastra/commit/0be490fabb538c5a7de796ea0aff7d04a0bea1f3), [`0be490f`](https://github.com/mastra-ai/mastra/commit/0be490fabb538c5a7de796ea0aff7d04a0bea1f3), [`ebbe1d3`](https://github.com/mastra-ai/mastra/commit/ebbe1d31a965a3adb0e728758f326b8122b4b55f), [`974f614`](https://github.com/mastra-ai/mastra/commit/974f614e083bd68278536f94453f7b320b86a3c7), [`3818814`](https://github.com/mastra-ai/mastra/commit/38188149ce454c4403fe9fcbdf73b735c68d36be), [`975c59a`](https://github.com/mastra-ai/mastra/commit/975c59ae363ee275fc55062392e1ffd2cbccbd53), [`1f97ce5`](https://github.com/mastra-ai/mastra/commit/1f97ce5695463bebb4eaacf501da6fb403e20885), [`74955f9`](https://github.com/mastra-ai/mastra/commit/74955f9120cde8b1d8ce4399232b4033236be858), [`7f51548`](https://github.com/mastra-ai/mastra/commit/7f515481213780be7047cef00640b9d35f3d545c), [`64f58c0`](https://github.com/mastra-ai/mastra/commit/64f58c04e78b40137497d47f781e897e416f22a5), [`74955f9`](https://github.com/mastra-ai/mastra/commit/74955f9120cde8b1d8ce4399232b4033236be858), [`ebbe1d3`](https://github.com/mastra-ai/mastra/commit/ebbe1d31a965a3adb0e728758f326b8122b4b55f), [`d95f394`](https://github.com/mastra-ai/mastra/commit/d95f394fd24c8411886930d727679c4d5252aa26), [`417baae`](https://github.com/mastra-ai/mastra/commit/417baae40b995db5819c845036947f0c27dc1c00), [`8e25a78`](https://github.com/mastra-ai/mastra/commit/8e25a78e0597575f0b0729bae8c5e190c84869b5), [`25961e3`](https://github.com/mastra-ai/mastra/commit/25961e3260ff3b1464637af8fcdb36210551c39f), [`417baae`](https://github.com/mastra-ai/mastra/commit/417baae40b995db5819c845036947f0c27dc1c00), [`f3f0c9d`](https://github.com/mastra-ai/mastra/commit/f3f0c9d7c878db5a13177871ce3523a14f14b311), [`a5b22d3`](https://github.com/mastra-ai/mastra/commit/a5b22d314d62a68d801886a8d3d0eb6c089473db), [`6581e28`](https://github.com/mastra-ai/mastra/commit/6581e28a65d72cdb5f0e8d8f892220a5c27160fe), [`31be1cf`](https://github.com/mastra-ai/mastra/commit/31be1cf5f2a7b5eef12f6123a40653b4d8115c16), [`417baae`](https://github.com/mastra-ai/mastra/commit/417baae40b995db5819c845036947f0c27dc1c00), [`74955f9`](https://github.com/mastra-ai/mastra/commit/74955f9120cde8b1d8ce4399232b4033236be858), [`74955f9`](https://github.com/mastra-ai/mastra/commit/74955f9120cde8b1d8ce4399232b4033236be858)]:
|
|
124
|
+
- @mastra/core@1.46.0
|
|
125
|
+
- @mastra/client-js@1.27.0
|
|
126
|
+
- @mastra/react@1.1.1
|
|
127
|
+
|
|
3
128
|
## 36.0.0-alpha.5
|
|
4
129
|
|
|
5
130
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/playground-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "36.0.
|
|
4
|
+
"version": "36.0.1-alpha.0",
|
|
5
5
|
"description": "Mastra Playground components",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -102,8 +102,8 @@
|
|
|
102
102
|
"react": ">=19.0.0",
|
|
103
103
|
"react-dom": ">=19.0.0",
|
|
104
104
|
"tailwindcss": "^4.0.0",
|
|
105
|
-
"@mastra/client-js": "^1.27.
|
|
106
|
-
"@mastra/react": "1.1.
|
|
105
|
+
"@mastra/client-js": "^1.27.1-alpha.0",
|
|
106
|
+
"@mastra/react": "1.1.2-alpha.0"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
109
|
"@storybook/addon-a11y": "^10.4.1",
|
|
@@ -140,10 +140,10 @@
|
|
|
140
140
|
"vite-plugin-dts": "^4.5.4",
|
|
141
141
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
142
142
|
"vitest": "4.1.8",
|
|
143
|
-
"@internal/lint": "0.0.
|
|
144
|
-
"@mastra/client-js": "^1.27.
|
|
145
|
-
"@mastra/
|
|
146
|
-
"@mastra/
|
|
143
|
+
"@internal/lint": "0.0.108",
|
|
144
|
+
"@mastra/client-js": "^1.27.1-alpha.0",
|
|
145
|
+
"@mastra/core": "1.46.1-alpha.0",
|
|
146
|
+
"@mastra/react": "1.1.2-alpha.0"
|
|
147
147
|
},
|
|
148
148
|
"homepage": "https://mastra.ai",
|
|
149
149
|
"repository": {
|