@mastra/playground-ui 30.0.2-alpha.1 → 31.0.0-alpha.3
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 +83 -0
- package/dist/index.cjs.js +233 -75
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +201 -27
- package/dist/index.es.js +227 -70
- package/dist/index.es.js.map +1 -1
- package/dist/src/domains/logs/hooks/use-logs.d.ts +13 -1267
- package/dist/src/domains/traces/hooks/use-branch.d.ts +5 -46
- package/dist/src/domains/traces/hooks/use-span-detail.d.ts +6 -44
- package/dist/src/domains/traces/hooks/use-trace-light-spans.d.ts +5 -18
- package/dist/src/domains/traces/hooks/use-trace-spans.d.ts +5 -46
- package/dist/src/domains/traces/hooks/use-traces.d.ts +15 -1539
- package/dist/src/ds/components/ButtonsGroup/buttons-group.stories.d.ts +30 -0
- package/dist/src/ds/components/Command/command.d.ts +7 -72
- package/dist/src/ds/components/FormFieldBlocks/fields/search-field-block.d.ts +2 -1
- package/dist/src/ds/components/Input/input.d.ts +3 -3
- package/dist/src/ds/components/Input/input.stories.d.ts +4 -0
- package/dist/src/ds/components/InputGroup/input-group.d.ts +7 -2
- package/dist/src/ds/components/InputGroup/input-group.stories.d.ts +3 -0
- package/dist/src/ds/components/ListSearch/list-search.d.ts +2 -1
- package/dist/src/ds/components/Searchbar/searchbar.d.ts +4 -1
- package/dist/src/ds/components/Searchbar/searchbar.stories.d.ts +3 -0
- package/dist/src/ds/components/Textarea/textarea.d.ts +3 -3
- package/dist/src/ds/components/Textarea/textarea.stories.d.ts +1 -0
- package/dist/src/ds/primitives/form-element.d.ts +6 -4
- package/dist/src/lib/formatting.d.ts +1 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,88 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 31.0.0-alpha.3
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Made `ButtonsGroup` compose joined controls (searchbar + dropdown pills, split buttons, steppers) cleanly, and improved `InputGroup` so it drops straight into one. ([#17259](https://github.com/mastra-ai/mastra/pull/17259))
|
|
8
|
+
- `ButtonsGroup` with `spacing="close"` fuses outline, filled and `Select` segments into one pill with a single clean divider, a complete focus ring (no missing side), and no consumer width classes.
|
|
9
|
+
- `InputGroup` fills a flex row on its own, matches a same-size sibling height, and propagates size via `data-size` (no React context) — so an icon + input segment composes inside a `ButtonsGroup` pill with no layout classes.
|
|
10
|
+
|
|
11
|
+
Use `InputGroup` (icon as an `InputGroupAddon`, optional clear button as an `InputGroupButton`) to build an icon input — it owns the box, focus, hover and error states on the focusable wrapper:
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
import {
|
|
15
|
+
ButtonsGroup,
|
|
16
|
+
InputGroup,
|
|
17
|
+
InputGroupAddon,
|
|
18
|
+
InputGroupInput,
|
|
19
|
+
Select,
|
|
20
|
+
SelectTrigger,
|
|
21
|
+
SelectValue,
|
|
22
|
+
SelectContent,
|
|
23
|
+
SelectItem,
|
|
24
|
+
} from '@mastra/playground-ui';
|
|
25
|
+
|
|
26
|
+
<ButtonsGroup spacing="close">
|
|
27
|
+
<InputGroup variant="outline">
|
|
28
|
+
<InputGroupAddon align="inline-start">
|
|
29
|
+
<SearchIcon />
|
|
30
|
+
</InputGroupAddon>
|
|
31
|
+
<InputGroupInput placeholder="Search projects..." />
|
|
32
|
+
</InputGroup>
|
|
33
|
+
<Select value={sort} onValueChange={setSort}>
|
|
34
|
+
<SelectTrigger className="rounded-full">
|
|
35
|
+
<SelectValue />
|
|
36
|
+
</SelectTrigger>
|
|
37
|
+
<SelectContent align="end">{/* options */}</SelectContent>
|
|
38
|
+
</Select>
|
|
39
|
+
</ButtonsGroup>;
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
- Refined the focus state of form inputs in `@mastra/playground-ui`. Applies to `Input`, `InputGroup`, `Searchbar`, and `Textarea`. ([#17259](https://github.com/mastra-ai/mastra/pull/17259))
|
|
43
|
+
- Removed the green border and glow that appeared on focus.
|
|
44
|
+
- On focus, the field shows a subtle background shift and brightens its border to a neutral tone, so the focused field stays clearly visible on any underlying surface.
|
|
45
|
+
- Made single-line inputs fully rounded to match the design system. Multi-line surfaces (`Textarea`, and `InputGroup` with a block-style addon) keep a softer `rounded-xl` corner.
|
|
46
|
+
- Added `filled` and `outline` variants for consumers that need to choose between the new surface treatment and a quieter border-only treatment.
|
|
47
|
+
- The `unstyled` variant of `Input` and `Textarea` no longer leaks the browser default focus outline.
|
|
48
|
+
|
|
49
|
+
`Input`, `Textarea`, and `InputGroup` default to the `filled` surface. `Searchbar` and `ListSearch` default to the `outline` (transparent) treatment. For `Searchbar` this matches its previous transparent look. `ListSearch` previously rendered a filled (`bg-surface2`), `rounded-lg` box, so its search fields across the list pages now read as transparent, fully-rounded pills — pass `variant="filled"` to keep them on a filled surface:
|
|
50
|
+
|
|
51
|
+
```tsx
|
|
52
|
+
import { Input, InputGroup, InputGroupAddon, InputGroupInput, Searchbar } from '@mastra/playground-ui';
|
|
53
|
+
|
|
54
|
+
<Input placeholder="Name" />
|
|
55
|
+
<Input variant="outline" placeholder="Name" />
|
|
56
|
+
|
|
57
|
+
<InputGroup variant="outline">
|
|
58
|
+
<InputGroupAddon>
|
|
59
|
+
<SearchIcon />
|
|
60
|
+
</InputGroupAddon>
|
|
61
|
+
<InputGroupInput placeholder="Email" />
|
|
62
|
+
</InputGroup>
|
|
63
|
+
|
|
64
|
+
<Searchbar label="Search agents" placeholder="Search agents..." onSearch={handleSearch} />
|
|
65
|
+
<Searchbar variant="filled" label="Search agents" placeholder="Search agents..." onSearch={handleSearch} />
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Patch Changes
|
|
69
|
+
|
|
70
|
+
- Fixed syntax highlighting in Studio code blocks. Shiki tokens now render with per-token colors (keywords, strings, identifiers) instead of flat monochrome text, and Code Mode `execute_typescript` programs display as a formatted, highlighted TypeScript block instead of a one-line JSON string. ([#17324](https://github.com/mastra-ai/mastra/pull/17324))
|
|
71
|
+
|
|
72
|
+
- Updated dependencies [[`8ace89d`](https://github.com/mastra-ai/mastra/commit/8ace89df77f762e622d3b9f7f65ad7524350d050), [`fa63872`](https://github.com/mastra-ai/mastra/commit/fa6387280954e6b667bec5714b55ba082bc627ff), [`f07b646`](https://github.com/mastra-ai/mastra/commit/f07b64604ab7d25391179790b7fd4823df9e2dff), [`d8838ae`](https://github.com/mastra-ai/mastra/commit/d8838ae80b69780361693d27098f7f6684af12fe), [`40f9297`](https://github.com/mastra-ai/mastra/commit/40f9297003b921c62373d3e8d3a4bda76c9f6de3), [`0f0d1ba`](https://github.com/mastra-ai/mastra/commit/0f0d1ba67bfcb2204e571401662f1eceefc03357), [`8c31bcd`](https://github.com/mastra-ai/mastra/commit/8c31bcdb00e597880d5939b1b7d7566fbe5dacae), [`95b14cd`](https://github.com/mastra-ai/mastra/commit/95b14cdd820e86d97ac05fe568424c513a252e31), [`aa36be2`](https://github.com/mastra-ai/mastra/commit/aa36be23aa513b7dc53cb8ca16b7fab8f20e43ad), [`212c635`](https://github.com/mastra-ai/mastra/commit/212c635203e61d036ab41db8ff86c3893dc795b3), [`d8838ae`](https://github.com/mastra-ai/mastra/commit/d8838ae80b69780361693d27098f7f6684af12fe), [`9aa5a73`](https://github.com/mastra-ai/mastra/commit/9aa5a73e7e110f6e9365eec69364a33d5f03bb56), [`f73c789`](https://github.com/mastra-ai/mastra/commit/f73c789e8ef21561580395d2c410119cab5848c8), [`8bd16da`](https://github.com/mastra-ai/mastra/commit/8bd16da73a4cb874d739373643dbd6a6e7f88684), [`c8630f8`](https://github.com/mastra-ai/mastra/commit/c8630f80d4f40cb5d22e60ab162b618b1907167a), [`47f71dc`](https://github.com/mastra-ai/mastra/commit/47f71dc6fbcbd12d71e21a979e676e20a02bd77d), [`50ceae2`](https://github.com/mastra-ai/mastra/commit/50ceae270878e2f8fb2b2c6c2faab09df0007c8a), [`8cdde58`](https://github.com/mastra-ai/mastra/commit/8cdde5875bbba6702d9df226f2b20232b8d75d6c), [`847ff1e`](https://github.com/mastra-ai/mastra/commit/847ff1e0d94368d94b2e173e4e0908e115568ef3), [`259d409`](https://github.com/mastra-ai/mastra/commit/259d409a514174299dbde1ff5e1121209b3ba850), [`9e16c68`](https://github.com/mastra-ai/mastra/commit/9e16c6818b6485ccb43df28aba6f3a2219d28662), [`cefca33`](https://github.com/mastra-ai/mastra/commit/cefca33ae666e69810c935fedf95a929c173d1d7), [`d00e8c5`](https://github.com/mastra-ai/mastra/commit/d00e8c50daebe5bce5bf2f48bde39c86fc3d2fe4), [`36fa7e2`](https://github.com/mastra-ai/mastra/commit/36fa7e24d14e58a1eb46147097b32f583e5b8775), [`87e9774`](https://github.com/mastra-ai/mastra/commit/87e97741c1e493cd6d62f478eb810b49bda4d57c), [`65a72e7`](https://github.com/mastra-ai/mastra/commit/65a72e70c25eedea8ff985a6624b96be2850236b), [`0f77241`](https://github.com/mastra-ai/mastra/commit/0f7724108806703799a8ba80ad0f09414afd5066), [`92ff509`](https://github.com/mastra-ai/mastra/commit/92ff5098ef8a990438ca038077021a5f7541ec1d), [`3fce5e7`](https://github.com/mastra-ai/mastra/commit/3fce5e70d011d289043e75003ef3336ed4aa43c3), [`a763592`](https://github.com/mastra-ai/mastra/commit/a763592c3db46963ef1011cfe16fe372816e775e), [`80c7737`](https://github.com/mastra-ai/mastra/commit/80c7737e32d7917b5f356957d67c169d01744fd3), [`3f1cf47`](https://github.com/mastra-ai/mastra/commit/3f1cf476f74c1e4cc2df908837e05853a5347e31)]:
|
|
73
|
+
- @mastra/core@1.38.0-alpha.3
|
|
74
|
+
- @mastra/client-js@1.22.0-alpha.3
|
|
75
|
+
- @mastra/react@0.4.3-alpha.3
|
|
76
|
+
|
|
77
|
+
## 30.0.2-alpha.2
|
|
78
|
+
|
|
79
|
+
### Patch Changes
|
|
80
|
+
|
|
81
|
+
- Updated dependencies [[`d779de3`](https://github.com/mastra-ai/mastra/commit/d779de3cd9d2e7ed8110547190e2f15e786a0e41), [`1750c97`](https://github.com/mastra-ai/mastra/commit/1750c975d6179fbf6db2813b15229d4f8f23fc55), [`0e32507`](https://github.com/mastra-ai/mastra/commit/0e32507962cdfa5569b7bda5bc6fb3dd34e40b03), [`3a081c1`](https://github.com/mastra-ai/mastra/commit/3a081c1255c5ae8c99f6dad91cc612934ef6f2bd), [`fe9eacd`](https://github.com/mastra-ai/mastra/commit/fe9eacd9545a0a9d64aad31c9fa90294a425289e), [`db79c86`](https://github.com/mastra-ai/mastra/commit/db79c86c60723d57e02f9636ca2611bd4515f194)]:
|
|
82
|
+
- @mastra/core@1.38.0-alpha.2
|
|
83
|
+
- @mastra/client-js@1.21.2-alpha.2
|
|
84
|
+
- @mastra/react@0.4.3-alpha.2
|
|
85
|
+
|
|
3
86
|
## 30.0.2-alpha.1
|
|
4
87
|
|
|
5
88
|
### Patch Changes
|