@mastra/playground-ui 37.0.0-alpha.5 → 37.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 +127 -0
- package/dist/components/Columns.cjs.js +1 -1
- package/dist/components/Columns.es.js +1 -1
- package/dist/components/RuleBuilder.cjs.js +10 -0
- package/dist/components/RuleBuilder.cjs.js.map +1 -0
- package/dist/components/RuleBuilder.d.ts +2 -0
- package/dist/components/RuleBuilder.es.js +2 -0
- package/dist/components/RuleBuilder.es.js.map +1 -0
- package/dist/index.cjs.js +65 -908
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +18 -842
- package/dist/index.es.js.map +1 -1
- package/dist/{multi-column-B9TVKcLl.cjs → multi-column-BLp7eL6P.cjs} +1 -2
- package/dist/{multi-column-B9TVKcLl.cjs.map → multi-column-BLp7eL6P.cjs.map} +1 -1
- package/dist/{multi-column-p8sEagdM.js → multi-column-DeSb1YDE.js} +1 -2
- package/dist/{multi-column-p8sEagdM.js.map → multi-column-DeSb1YDE.js.map} +1 -1
- package/dist/rule-builder-Zs6Ywp5-.js +563 -0
- package/dist/rule-builder-Zs6Ywp5-.js.map +1 -0
- package/dist/rule-builder-vwKEUlZU.cjs +594 -0
- package/dist/rule-builder-vwKEUlZU.cjs.map +1 -0
- package/dist/src/ds/components/RuleBuilder/index.d.ts +2 -0
- package/dist/src/utils/colors.d.ts +1 -0
- package/dist/src/utils/errors.d.ts +2 -0
- package/dist/src/utils/file.d.ts +1 -0
- package/dist/src/utils/formatting.d.ts +1 -0
- package/dist/src/utils/json-schema.d.ts +1 -0
- package/dist/src/utils/number.d.ts +1 -0
- package/dist/src/utils/query-utils.d.ts +1 -0
- package/dist/src/utils/rule-engine.d.ts +2 -0
- package/dist/src/utils/string.d.ts +1 -0
- package/dist/src/utils/truncate-string.d.ts +1 -0
- package/dist/utils/colors.cjs.js +15 -0
- package/dist/utils/colors.cjs.js.map +1 -0
- package/dist/utils/colors.d.ts +2 -0
- package/dist/utils/colors.es.js +11 -0
- package/dist/utils/colors.es.js.map +1 -0
- package/dist/utils/errors.cjs.js +33 -0
- package/dist/utils/errors.cjs.js.map +1 -0
- package/dist/utils/errors.d.ts +2 -0
- package/dist/utils/errors.es.js +22 -0
- package/dist/utils/errors.es.js.map +1 -0
- package/dist/utils/file.cjs.js +113 -0
- package/dist/utils/file.cjs.js.map +1 -0
- package/dist/utils/file.d.ts +2 -0
- package/dist/utils/file.es.js +100 -0
- package/dist/utils/file.es.js.map +1 -0
- package/dist/utils/formatting.cjs.js +47 -0
- package/dist/utils/formatting.cjs.js.map +1 -0
- package/dist/utils/formatting.d.ts +2 -0
- package/dist/utils/formatting.es.js +41 -0
- package/dist/utils/formatting.es.js.map +1 -0
- package/dist/utils/json-schema.cjs.js +3 -0
- package/dist/utils/json-schema.cjs.js.map +1 -0
- package/dist/utils/json-schema.d.ts +2 -0
- package/dist/utils/json-schema.es.js +2 -0
- package/dist/utils/json-schema.es.js.map +1 -0
- package/dist/utils/number.cjs.js +10 -0
- package/dist/utils/number.cjs.js.map +1 -0
- package/dist/utils/number.d.ts +2 -0
- package/dist/utils/number.es.js +6 -0
- package/dist/utils/number.es.js.map +1 -0
- package/dist/utils/query-utils.cjs.js +98 -0
- package/dist/utils/query-utils.cjs.js.map +1 -0
- package/dist/utils/query-utils.d.ts +2 -0
- package/dist/utils/query-utils.es.js +88 -0
- package/dist/utils/query-utils.es.js.map +1 -0
- package/dist/utils/rule-engine.cjs.js +29 -0
- package/dist/utils/rule-engine.cjs.js.map +1 -0
- package/dist/utils/rule-engine.d.ts +2 -0
- package/dist/utils/rule-engine.es.js +21 -0
- package/dist/utils/rule-engine.es.js.map +1 -0
- package/dist/utils/string.cjs.js +11 -0
- package/dist/utils/string.cjs.js.map +1 -0
- package/dist/utils/string.d.ts +2 -0
- package/dist/utils/string.es.js +7 -0
- package/dist/utils/string.es.js.map +1 -0
- package/dist/utils/truncate-string.cjs.js +11 -0
- package/dist/utils/truncate-string.cjs.js.map +1 -0
- package/dist/utils/truncate-string.d.ts +2 -0
- package/dist/utils/truncate-string.es.js +7 -0
- package/dist/utils/truncate-string.es.js.map +1 -0
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,132 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 37.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Added a reusable environment variables editor with .env import, bulk paste support, and custom-row hook support. ([#18371](https://github.com/mastra-ai/mastra/pull/18371))
|
|
8
|
+
|
|
9
|
+
```tsx
|
|
10
|
+
import { EnvironmentVariablesEditor, useEnvironmentVariablesEditor } from '@mastra/playground-ui';
|
|
11
|
+
|
|
12
|
+
function SettingsEnvVars() {
|
|
13
|
+
const editor = useEnvironmentVariablesEditor({
|
|
14
|
+
initialRows: [{ key: 'PUBLIC_BASE_URL', value: 'https://example.com' }],
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<EnvironmentVariablesEditor
|
|
19
|
+
editor={editor}
|
|
20
|
+
actions={
|
|
21
|
+
<button type="button" onClick={() => editor.getEnvironmentVariablesForSubmit()}>
|
|
22
|
+
Save
|
|
23
|
+
</button>
|
|
24
|
+
}
|
|
25
|
+
/>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
- Added sticky row headers to DataList. ([#18222](https://github.com/mastra-ai/mastra/pull/18222))
|
|
31
|
+
|
|
32
|
+
Use `sticky="start"` on the leading `DataList.TopCell` and render matching row cells with `DataList.RowHeaderCell`:
|
|
33
|
+
|
|
34
|
+
```tsx
|
|
35
|
+
<DataList columns="auto auto auto" variant="lined">
|
|
36
|
+
<DataList.Top>
|
|
37
|
+
<DataList.TopCell sticky="start">Model</DataList.TopCell>
|
|
38
|
+
<DataList.TopCell>Input</DataList.TopCell>
|
|
39
|
+
<DataList.TopCell>Output</DataList.TopCell>
|
|
40
|
+
</DataList.Top>
|
|
41
|
+
<DataList.RowStatic>
|
|
42
|
+
<DataList.RowHeaderCell>Model A</DataList.RowHeaderCell>
|
|
43
|
+
<DataList.Cell>1,200</DataList.Cell>
|
|
44
|
+
<DataList.Cell>800</DataList.Cell>
|
|
45
|
+
</DataList.RowStatic>
|
|
46
|
+
</DataList>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Metrics tables now render directly through DataList so sticky row headers share the same header colors and hover treatment as the rest of the list system. Metrics tables also follow the default DataList variant, and sticky row headers use the same neutral header treatment as column headers.
|
|
50
|
+
|
|
51
|
+
DataList now exposes `stickyHeaderBackground` to keep the top header and sticky row-header fill in sync, and forwards `mask` to the underlying ScrollArea so sticky-start tables can disable the left edge fade.
|
|
52
|
+
|
|
53
|
+
Added `DataList.NumberCell` for right-aligned numeric columns. It bakes in the tabular-figure, compact metric-table styling, with a `highlight` prop for the emphasized value:
|
|
54
|
+
|
|
55
|
+
```tsx
|
|
56
|
+
<DataList.NumberCell>1,200</DataList.NumberCell>
|
|
57
|
+
<DataList.NumberCell highlight>$0.42</DataList.NumberCell>
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
The metrics-specific `MetricsDataTable` wrapper was removed. Use DataList for DS-owned metrics table layouts.
|
|
61
|
+
|
|
62
|
+
- Add the experimental Signals observability experience to Studio. Introduces a route-driven enterprise topics/signals trace explorer (topic, subtopic, and trace panels) and a reusable scatter plot chart component in `@mastra/playground-ui`, with the reusable Signals UI and data placed behind the playground-ui EE export boundary. The Signals page is gated behind a server-injected `MASTRA_SIGNALS_UI` runtime flag: the Studio HTML exposes `window.MASTRA_SIGNALS_UI`, which the CLI and deployers populate from the `MASTRA_SIGNALS_UI` env var (default off). When disabled, the Signals sidebar item and `/signals` routes are not registered. ([#18138](https://github.com/mastra-ai/mastra/pull/18138))
|
|
63
|
+
|
|
64
|
+
### Patch Changes
|
|
65
|
+
|
|
66
|
+
- Fixed overlay content components to support Base UI positioning options. ([#18431](https://github.com/mastra-ai/mastra/pull/18431))
|
|
67
|
+
|
|
68
|
+
- Added direct Playground UI subpaths for shared helpers so apps can avoid the root barrel when importing existing utility and rule builder APIs. ([#18502](https://github.com/mastra-ai/mastra/pull/18502))
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
import { is401UnauthorizedError } from '@mastra/playground-ui/utils/errors';
|
|
72
|
+
import type { JsonSchema } from '@mastra/playground-ui/utils/json-schema';
|
|
73
|
+
import { RuleBuilder } from '@mastra/playground-ui/components/RuleBuilder';
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
- Show an unavailable state when the configured observability storage does not support listing logs, and stop polling the logs endpoint for that non-transient capability error. ([#18375](https://github.com/mastra-ai/mastra/pull/18375))
|
|
77
|
+
|
|
78
|
+
- Added a direct utility import for the class name helper so applications can avoid the root Playground UI barrel. ([#18458](https://github.com/mastra-ai/mastra/pull/18458))
|
|
79
|
+
|
|
80
|
+
```ts
|
|
81
|
+
import { cn } from '@mastra/playground-ui/utils/cn';
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
- Added direct import paths for toast and Playground UI icons so apps can avoid the root Playground UI barrel when using high-traffic utilities and icon components. ([#18470](https://github.com/mastra-ai/mastra/pull/18470))
|
|
85
|
+
|
|
86
|
+
```ts
|
|
87
|
+
import { Toaster } from '@mastra/playground-ui/components/Toaster';
|
|
88
|
+
import { AgentIcon } from '@mastra/playground-ui/icons/AgentIcon';
|
|
89
|
+
import { toast } from '@mastra/playground-ui/utils/toast';
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
- Move the Memory Studio (timeline, flamegraph, and observational-memory detail) into the agent chat view as an opt-in panel. ([#18272](https://github.com/mastra-ai/mastra/pull/18272))
|
|
93
|
+
- The standalone Memory nav entry, `/memory` routes, and the separate thread/chat list are removed; the studio is now opened from the chat view and shown inside the Memory sidepanel, with the agent layout's left resizable panel expanding when the detail opens. Clicking the flamegraph timeline drives a replay cursor that highlights the matching observational-memory record. Marker types are imported from `@mastra/memory` instead of being redeclared in the UI so the studio stays in sync with the stream format.
|
|
94
|
+
- `MemoryStudioPanel` gains an optional `contextWindow` prop so callers can supply authoritative message/observation token counts and thresholds; when provided these take precedence over values re-derived from message markers, keeping the panel's MESSAGES/OBSERVATIONS readout in sync with the observational-memory sidebar (marker-derived values remain the fallback for standalone usage).
|
|
95
|
+
- `MemoryStudioPanel` now shows both Messages and Observations progress bars, matching the collapsed memory sidebar. The FlameGraph zoom range is lifted into the panel and filters the observation list: collapsing the range hides out-of-range observations and "Reset zoom" restores the full list. `FlameGraph` gains optional controlled `zoomRange`/`onZoomRangeChange` props (uncontrolled usage is unchanged).
|
|
96
|
+
|
|
97
|
+
- Updated dependencies [[`86623c1`](https://github.com/mastra-ai/mastra/commit/86623c1adf7d22de32cc916dda17f4155184db36), [`023766f`](https://github.com/mastra-ai/mastra/commit/023766f44d59b30a50f3a381e33eddde8ab56c00), [`0200e75`](https://github.com/mastra-ai/mastra/commit/0200e7552d02d4221cd6040bf4eddf189a97a156), [`7c9dd77`](https://github.com/mastra-ai/mastra/commit/7c9dd77bd18cb8dc72797e25f1a0fbdc71a11347), [`7f9ae70`](https://github.com/mastra-ai/mastra/commit/7f9ae70826b047e5a66218f9e92f20e54a2d791f), [`b4e97e6`](https://github.com/mastra-ai/mastra/commit/b4e97e676232a3a398ef32d3e78faa0c91c5fa1c), [`a0509c7`](https://github.com/mastra-ai/mastra/commit/a0509c731a08aa3ed626557c5338126362856f57), [`06e0d63`](https://github.com/mastra-ai/mastra/commit/06e0d63d42bc2a202e18bc091f3781f409f5e6fb), [`bf3fe49`](https://github.com/mastra-ai/mastra/commit/bf3fe49f9467dbbdb8f9eaf74e0f7971ffb19559), [`01caf93`](https://github.com/mastra-ai/mastra/commit/01caf93d71ae2c1e65f49735cafb531975187426), [`438a971`](https://github.com/mastra-ai/mastra/commit/438a9715c8b4398e5eaf8914a1f19dc8a85dc1de), [`9990965`](https://github.com/mastra-ai/mastra/commit/999096571635a83b42ef40841fd7028cfa630779), [`77518cc`](https://github.com/mastra-ai/mastra/commit/77518ccb5bb8cc684875081e64213dc85cffdbee), [`fbeda0c`](https://github.com/mastra-ai/mastra/commit/fbeda0c0f35def07e6837936dd3a003b2b7c5172), [`8a68844`](https://github.com/mastra-ai/mastra/commit/8a688443013816105a09f89c6afa34b5ff13e26d), [`bb2a13b`](https://github.com/mastra-ai/mastra/commit/bb2a13bb4b32e6bb807200fe7b18ae8fa4322118), [`24ceaea`](https://github.com/mastra-ai/mastra/commit/24ceaea0bdd8609cabbab764380608ca6621a194), [`a73cd1a`](https://github.com/mastra-ai/mastra/commit/a73cd1a62a5e4ca023dcc39ba150029f4f1f74c1), [`c0ffa3c`](https://github.com/mastra-ai/mastra/commit/c0ffa3c897ccd326de880df734740a7f0681a18f), [`462a769`](https://github.com/mastra-ai/mastra/commit/462a769da61850862ca1be3d74134d33078ee6a7), [`0504bf5`](https://github.com/mastra-ai/mastra/commit/0504bf5e8cffc571a4b343326178de371e6f859b), [`9e45902`](https://github.com/mastra-ai/mastra/commit/9e4590208e745055cecca202e2db0e5c65e17d3c), [`0b5cc47`](https://github.com/mastra-ai/mastra/commit/0b5cc4726dc18d9a685a27520db39ff1b36bb89a), [`87f38a3`](https://github.com/mastra-ai/mastra/commit/87f38a3de03e24731f2dd6f8ed6a60b6722b85a1), [`d5fa3cd`](https://github.com/mastra-ai/mastra/commit/d5fa3cda1788c3cb93a361a3c6ec47de6ba21e98), [`fe98ef2`](https://github.com/mastra-ai/mastra/commit/fe98ef2e66dbfcbd7d645c88c9ee1e67b458a136), [`6ccf67b`](https://github.com/mastra-ai/mastra/commit/6ccf67bf075753754927a57bc2e1734ba2c820c5), [`793ea0f`](https://github.com/mastra-ai/mastra/commit/793ea0f52f831178837f21c83af6af93bf4ce638), [`825d8de`](https://github.com/mastra-ai/mastra/commit/825d8def9fa64c2bcc3d8dd6b49e09342c3ac5c7), [`507a5c4`](https://github.com/mastra-ai/mastra/commit/507a5c461bdc3136ad80744c0efbb55ce1f18f97), [`5afe423`](https://github.com/mastra-ai/mastra/commit/5afe423e4badf040f1b0d4525183a856fcb8146e), [`307573b`](https://github.com/mastra-ai/mastra/commit/307573b9ff3149b70c79540dbc86f1319b180f29), [`79b3626`](https://github.com/mastra-ai/mastra/commit/79b3626f8d647307eb07c8da14c9073c2699719d), [`c2c1d7b`](https://github.com/mastra-ai/mastra/commit/c2c1d7bb61d2602955f14ed3952f807c2d6eb576), [`86623c1`](https://github.com/mastra-ai/mastra/commit/86623c1adf7d22de32cc916dda17f4155184db36), [`1505c07`](https://github.com/mastra-ai/mastra/commit/1505c07603f6346bae12aa82f140e8b88ffea9ab), [`f328049`](https://github.com/mastra-ai/mastra/commit/f3280498c324afd2a8d36cd828f5b9f94a2dddc1), [`e545228`](https://github.com/mastra-ai/mastra/commit/e54522856934a5dc030b7b6385771e3548020d59), [`3eb852e`](https://github.com/mastra-ai/mastra/commit/3eb852e5435bc908b800193498103dc724f455b0), [`ffa09e7`](https://github.com/mastra-ai/mastra/commit/ffa09e772a5c92270eabe2090fc42d45bd8ec4b7), [`8c9f1c0`](https://github.com/mastra-ai/mastra/commit/8c9f1c0361d89066f9bcd14a2f69e761b01766c8), [`461a7c5`](https://github.com/mastra-ai/mastra/commit/461a7c501449295287f4f0ee4b0b42344f39fcf8), [`0200e75`](https://github.com/mastra-ai/mastra/commit/0200e7552d02d4221cd6040bf4eddf189a97a156), [`4211472`](https://github.com/mastra-ai/mastra/commit/4211472a5a2bd319c60cd2e42d9109c3eef7ac1c), [`9e45902`](https://github.com/mastra-ai/mastra/commit/9e4590208e745055cecca202e2db0e5c65e17d3c), [`5c0df77`](https://github.com/mastra-ai/mastra/commit/5c0df776c40efa420f8c07a2f3ee66010296618e), [`e940f09`](https://github.com/mastra-ai/mastra/commit/e940f099ef5d18b403e6f2b4937e086a4da857b1)]:
|
|
98
|
+
- @mastra/core@1.47.0
|
|
99
|
+
- @mastra/client-js@1.28.0
|
|
100
|
+
- @mastra/react@1.2.0
|
|
101
|
+
- @mastra/memory@1.21.2
|
|
102
|
+
|
|
103
|
+
## 37.0.0-alpha.7
|
|
104
|
+
|
|
105
|
+
### Patch Changes
|
|
106
|
+
|
|
107
|
+
- Updated dependencies [[`8a68844`](https://github.com/mastra-ai/mastra/commit/8a688443013816105a09f89c6afa34b5ff13e26d)]:
|
|
108
|
+
- @mastra/core@1.47.0-alpha.7
|
|
109
|
+
- @mastra/client-js@1.28.0-alpha.7
|
|
110
|
+
- @mastra/react@1.2.0-alpha.7
|
|
111
|
+
|
|
112
|
+
## 37.0.0-alpha.6
|
|
113
|
+
|
|
114
|
+
### Patch Changes
|
|
115
|
+
|
|
116
|
+
- Added direct Playground UI subpaths for shared helpers so apps can avoid the root barrel when importing existing utility and rule builder APIs. ([#18502](https://github.com/mastra-ai/mastra/pull/18502))
|
|
117
|
+
|
|
118
|
+
```ts
|
|
119
|
+
import { is401UnauthorizedError } from '@mastra/playground-ui/utils/errors';
|
|
120
|
+
import type { JsonSchema } from '@mastra/playground-ui/utils/json-schema';
|
|
121
|
+
import { RuleBuilder } from '@mastra/playground-ui/components/RuleBuilder';
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
- Updated dependencies [[`0200e75`](https://github.com/mastra-ai/mastra/commit/0200e7552d02d4221cd6040bf4eddf189a97a156), [`b4e97e6`](https://github.com/mastra-ai/mastra/commit/b4e97e676232a3a398ef32d3e78faa0c91c5fa1c), [`06e0d63`](https://github.com/mastra-ai/mastra/commit/06e0d63d42bc2a202e18bc091f3781f409f5e6fb), [`438a971`](https://github.com/mastra-ai/mastra/commit/438a9715c8b4398e5eaf8914a1f19dc8a85dc1de), [`77518cc`](https://github.com/mastra-ai/mastra/commit/77518ccb5bb8cc684875081e64213dc85cffdbee), [`bb2a13b`](https://github.com/mastra-ai/mastra/commit/bb2a13bb4b32e6bb807200fe7b18ae8fa4322118), [`a73cd1a`](https://github.com/mastra-ai/mastra/commit/a73cd1a62a5e4ca023dcc39ba150029f4f1f74c1), [`0b5cc47`](https://github.com/mastra-ai/mastra/commit/0b5cc4726dc18d9a685a27520db39ff1b36bb89a), [`87f38a3`](https://github.com/mastra-ai/mastra/commit/87f38a3de03e24731f2dd6f8ed6a60b6722b85a1), [`d5fa3cd`](https://github.com/mastra-ai/mastra/commit/d5fa3cda1788c3cb93a361a3c6ec47de6ba21e98), [`fe98ef2`](https://github.com/mastra-ai/mastra/commit/fe98ef2e66dbfcbd7d645c88c9ee1e67b458a136), [`793ea0f`](https://github.com/mastra-ai/mastra/commit/793ea0f52f831178837f21c83af6af93bf4ce638), [`507a5c4`](https://github.com/mastra-ai/mastra/commit/507a5c461bdc3136ad80744c0efbb55ce1f18f97), [`79b3626`](https://github.com/mastra-ai/mastra/commit/79b3626f8d647307eb07c8da14c9073c2699719d), [`0200e75`](https://github.com/mastra-ai/mastra/commit/0200e7552d02d4221cd6040bf4eddf189a97a156)]:
|
|
125
|
+
- @mastra/core@1.47.0-alpha.6
|
|
126
|
+
- @mastra/client-js@1.28.0-alpha.6
|
|
127
|
+
- @mastra/react@1.2.0-alpha.6
|
|
128
|
+
- @mastra/memory@1.21.2-alpha.1
|
|
129
|
+
|
|
3
130
|
## 37.0.0-alpha.5
|
|
4
131
|
|
|
5
132
|
### Patch Changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as Column, a as Columns, M as MultiColumn } from '../multi-column-
|
|
1
|
+
export { C as Column, a as Columns, M as MultiColumn } from '../multi-column-DeSb1YDE.js';
|
|
2
2
|
//# sourceMappingURL=Columns.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleBuilder.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleBuilder.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|