@mastra/playground-ui 26.1.0-alpha.3 → 27.0.0-alpha.10

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +105 -0
  2. package/dist/index.cjs.js +4162 -3062
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.css +62 -8
  5. package/dist/index.es.js +4143 -3065
  6. package/dist/index.es.js.map +1 -1
  7. package/dist/src/domains/logs/hooks/use-logs-filter-persistence.d.ts +1 -1
  8. package/dist/src/domains/metrics/components/card-action-buttons.d.ts +15 -0
  9. package/dist/src/domains/metrics/components/index.d.ts +4 -2
  10. package/dist/src/domains/metrics/components/latency-card-view.d.ts +10 -1
  11. package/dist/src/domains/metrics/components/memory-card-view.d.ts +25 -0
  12. package/dist/src/domains/metrics/components/model-usage-cost-card-view.d.ts +8 -1
  13. package/dist/src/domains/metrics/components/token-usage-by-agent-card-view.d.ts +8 -1
  14. package/dist/src/domains/metrics/components/traces-volume-card-view.d.ts +14 -1
  15. package/dist/src/domains/metrics/drilldown.d.ts +49 -0
  16. package/dist/src/domains/metrics/hooks/index.d.ts +7 -0
  17. package/dist/src/domains/metrics/hooks/use-active-resources-kpi-metrics.d.ts +13 -0
  18. package/dist/src/domains/metrics/hooks/use-active-threads-kpi-metrics.d.ts +13 -0
  19. package/dist/src/domains/metrics/hooks/use-drilldown.d.ts +9 -0
  20. package/dist/src/domains/metrics/hooks/use-latency-metrics.d.ts +5 -0
  21. package/dist/src/domains/metrics/hooks/use-metrics-filters.d.ts +41 -3
  22. package/dist/src/domains/metrics/hooks/use-metrics.d.ts +40 -11
  23. package/dist/src/domains/metrics/hooks/use-top-active-threads-metrics.d.ts +15 -0
  24. package/dist/src/domains/metrics/hooks/use-top-resources-by-threads-metrics.d.ts +14 -0
  25. package/dist/src/domains/metrics/metrics-filters.d.ts +96 -0
  26. package/dist/src/domains/traces/components/index.d.ts +1 -0
  27. package/dist/src/domains/traces/components/no-traces-info.d.ts +7 -0
  28. package/dist/src/domains/traces/hooks/use-trace-filter-persistence.d.ts +1 -1
  29. package/dist/src/domains/traces/hooks/use-trace-url-state.d.ts +2 -1
  30. package/dist/src/domains/traces/hooks/use-traces.d.ts +8 -6
  31. package/dist/src/domains/traces/trace-filters.d.ts +3 -0
  32. package/dist/src/ds/components/Combobox/combobox-styles.d.ts +1 -2
  33. package/dist/src/ds/components/HorizontalBars/horizontal-bars.d.ts +16 -5
  34. package/dist/src/ds/components/MetricsCard/metrics-card-actions.d.ts +7 -0
  35. package/dist/src/ds/components/MetricsCard/metrics-card.d.ts +2 -0
  36. package/dist/src/ds/components/MetricsDataTable/metrics-data-table.d.ts +9 -1
  37. package/dist/src/ds/components/MetricsLineChart/metrics-line-chart.d.ts +3 -1
  38. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,110 @@
1
1
  # @mastra/playground-ui
2
2
 
3
+ ## 27.0.0-alpha.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`e281ae5`](https://github.com/mastra-ai/mastra/commit/e281ae50e6087affc242de13f471112835bc60b4)]:
8
+ - @mastra/client-js@1.18.0-alpha.10
9
+ - @mastra/react@0.2.36-alpha.10
10
+
11
+ ## 27.0.0-alpha.9
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [[`5688881`](https://github.com/mastra-ai/mastra/commit/5688881669c7ed157f31ac77f6fc5f8d95ceea32)]:
16
+ - @mastra/core@1.33.0-alpha.9
17
+ - @mastra/client-js@1.18.0-alpha.9
18
+ - @mastra/react@0.2.36-alpha.9
19
+
20
+ ## 27.0.0-alpha.8
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [[`7c275a8`](https://github.com/mastra-ai/mastra/commit/7c275a810595e1a6c41ccc39720531ab65734700), [`890b24c`](https://github.com/mastra-ai/mastra/commit/890b24cc7d32ed6aa4dfe253e54dc6bf4099f690), [`0f48ebf`](https://github.com/mastra-ai/mastra/commit/0f48ebfc7ac7897b2092a189f45751924cf56d1c), [`f180e49`](https://github.com/mastra-ai/mastra/commit/f180e4990e71b04c9a475b523584071712f0048f), [`9260e01`](https://github.com/mastra-ai/mastra/commit/9260e015276fb1b500f7878ee452b47476bf1583), [`2f6c54e`](https://github.com/mastra-ai/mastra/commit/2f6c54e17c041cac1def54baaa6b771647836414), [`e06a159`](https://github.com/mastra-ai/mastra/commit/e06a1598ca07a6c3778aefc2a2d288363c6294ff), [`db34bc6`](https://github.com/mastra-ai/mastra/commit/db34bc6fb36cf125bda0c46be4d3fdc774b70cc4)]:
25
+ - @mastra/core@1.33.0-alpha.8
26
+ - @mastra/client-js@1.18.0-alpha.8
27
+ - @mastra/react@0.2.36-alpha.8
28
+
29
+ ## 27.0.0-alpha.7
30
+
31
+ ### Patch Changes
32
+
33
+ - Refined Combobox and Select trigger interactions with an active state and fixed value truncation when a leading badge is rendered. Refreshed PanelSeparator with a clearer hover/active affordance, an enlarged hit area, and a focus-visible accent. Removed the default `bg-surface2` background from `Threads` so consumers can control the surface color. ([#16269](https://github.com/mastra-ai/mastra/pull/16269))
34
+
35
+ - Updated dependencies [[`6742347`](https://github.com/mastra-ai/mastra/commit/6742347d71955d7639adc9ddf6ff8282de7ee3ba), [`7b0ad1f`](https://github.com/mastra-ai/mastra/commit/7b0ad1f5c53dc118c6da12ae82ae2587037dc2b8), [`62666c3`](https://github.com/mastra-ai/mastra/commit/62666c367eaeac3941ead454b1d38810cc855721), [`4af2160`](https://github.com/mastra-ai/mastra/commit/4af2160322f4718cac421930cce85641e9512389), [`136c959`](https://github.com/mastra-ai/mastra/commit/136c9592fb0eeb0cd212f28629d8a29b7557a2fc), [`4df7cc7`](https://github.com/mastra-ai/mastra/commit/4df7cc79342fd065fe7fdeef93c094db14b12bcd), [`284b0d7`](https://github.com/mastra-ai/mastra/commit/284b0d78d0edb306413447e5268007491006937c), [`aca3121`](https://github.com/mastra-ai/mastra/commit/aca31211233dac25459f140ea4fcfb3a5af64c18), [`9cdf38e`](https://github.com/mastra-ai/mastra/commit/9cdf38e58506e1109c8b38f97cd7770978a4218e), [`990851e`](https://github.com/mastra-ai/mastra/commit/990851edcb0e30be5c2c18b6532f1a876cc2d335), [`6068a6c`](https://github.com/mastra-ai/mastra/commit/6068a6c42950fad3ebfc92346417896ba60803d2), [`00106be`](https://github.com/mastra-ai/mastra/commit/00106bede59b81e5b0e9cd6aad8d3b5dbc336387), [`e2a079c`](https://github.com/mastra-ai/mastra/commit/e2a079cc3755b1895f7bd5dc36e9be81b11c7c22), [`534a456`](https://github.com/mastra-ai/mastra/commit/534a456a25e4df1e5407e7e632f4cb3b1fa14f9d), [`36bae07`](https://github.com/mastra-ai/mastra/commit/36bae07c0e70b1b3006f2fd20830e8883dcbd066)]:
36
+ - @mastra/core@1.33.0-alpha.7
37
+ - @mastra/client-js@1.18.0-alpha.7
38
+ - @mastra/react@0.2.36-alpha.7
39
+
40
+ ## 27.0.0-alpha.6
41
+
42
+ ### Patch Changes
43
+
44
+ - Fixed Studio streaming render behavior for interleaved reasoning and improved chat autoscroll during rapid output. ([#16331](https://github.com/mastra-ai/mastra/pull/16331))
45
+
46
+ - Updated dependencies [[`b560d6f`](https://github.com/mastra-ai/mastra/commit/b560d6f88b9b904b15c10f75c949eb145bc27684), [`f176145`](https://github.com/mastra-ai/mastra/commit/f1761458eaa602f59c5499bd0855ae7a5fd9baf3), [`d416efd`](https://github.com/mastra-ai/mastra/commit/d416efdee26c1755328e21cc62584f8566e21432), [`36b3bbf`](https://github.com/mastra-ai/mastra/commit/36b3bbf5a8d59f7e23d47e29340e76c681b4929c), [`b275631`](https://github.com/mastra-ai/mastra/commit/b275631dc10541a482b2e2d4a3e3cfa843bd5fa1)]:
47
+ - @mastra/core@1.33.0-alpha.6
48
+ - @mastra/react@0.2.36-alpha.6
49
+ - @mastra/client-js@1.18.0-alpha.6
50
+
51
+ ## 27.0.0-alpha.5
52
+
53
+ ### Patch Changes
54
+
55
+ - Updated dependencies [[`bae019e`](https://github.com/mastra-ai/mastra/commit/bae019ecb6694da96909f7ec7b9eb3a0a33aa887), [`33f5061`](https://github.com/mastra-ai/mastra/commit/33f5061cd1c0335020c3faae61ce96de822854fa), [`99869ec`](https://github.com/mastra-ai/mastra/commit/99869ecb1f2aa6dfcc44fa4e843e5ee0344efa64), [`d86f031`](https://github.com/mastra-ai/mastra/commit/d86f031eb6b0b2570145afafea664e59bf688962)]:
56
+ - @mastra/core@1.33.0-alpha.5
57
+ - @mastra/client-js@1.18.0-alpha.5
58
+ - @mastra/react@0.2.36-alpha.5
59
+
60
+ ## 27.0.0-alpha.4
61
+
62
+ ### Minor Changes
63
+
64
+ - Added opt-in interactivity and per-page filter persistence support for observability UI components. ([#15747](https://github.com/mastra-ai/mastra/pull/15747))
65
+ - `MetricsLineChart` accepts an `onPointClick` callback so chart points can drive drilldowns.
66
+ - `HorizontalBars` accepts row-level and segment-level hrefs for linked metric bars without nested anchors.
67
+ - `MetricsDataTable` accepts `getRowHref(row)` for linked rows with consistent hover and focus styling.
68
+ - `MetricsCard` exposes an `Actions` slot in the top bar for contextual icon links.
69
+ - Observability filter helpers for Metrics, Traces, and Logs each keep their own saved-filters storage key so pages remember filters independently.
70
+
71
+ All additions are optional, so existing consumers continue to render the same way unless they pass the new props.
72
+
73
+ ```tsx
74
+ <MetricsLineChart
75
+ data={points}
76
+ series={series}
77
+ onPointClick={point => navigate(`/observability?dateFrom=${point.from}&dateTo=${point.to}`)}
78
+ />
79
+
80
+ <HorizontalBars data={[{ name: 'agent-a', values: [42, 3], href: '/observability?filterEntityName=agent-a' }]} />
81
+
82
+ <MetricsDataTable columns={cols} data={rows} getRowHref={row => `/observability?filterThreadId=${row.threadId}`} />
83
+
84
+ <MetricsCard>
85
+ <MetricsCard.TopBar>
86
+ <MetricsCard.TitleAndDescription title="Latency" />
87
+ <MetricsCard.Actions>
88
+ <IconButton href="/observability" />
89
+ </MetricsCard.Actions>
90
+ </MetricsCard.TopBar>
91
+ </MetricsCard>
92
+ ```
93
+
94
+ ### Patch Changes
95
+
96
+ - Fixed three issues on the Logs and Traces pages: ([#16306](https://github.com/mastra-ai/mastra/pull/16306))
97
+ - Column widths now stay stable while scrolling — they no longer jump as different rows scroll into view.
98
+ - Scrolling far down the Logs list no longer scrambles rows (duplicates, gaps, or empty rows after additional pages load).
99
+ - Changing a filter or the date range now scrolls the list back to the top, instead of leaving an empty band above the new data until you nudge the scroll. Logs and Traces now behave the same way on filter changes.
100
+
101
+ - Added `NoTracesInfo` component that informs the user there are no traces for the active date range. ([#16303](https://github.com/mastra-ai/mastra/pull/16303))
102
+
103
+ - Updated dependencies [[`9f17410`](https://github.com/mastra-ai/mastra/commit/9f1741080def23d42ee50b39887a385ae316a3c6), [`c6eb39e`](https://github.com/mastra-ai/mastra/commit/c6eb39ea6dca381c6563cb240237fbe608e02f93), [`c6eb39e`](https://github.com/mastra-ai/mastra/commit/c6eb39ea6dca381c6563cb240237fbe608e02f93), [`900d086`](https://github.com/mastra-ai/mastra/commit/900d086bb737b9cf2fcf68f11b0389b801a2738c), [`4c0e286`](https://github.com/mastra-ai/mastra/commit/4c0e28637c9cfb4f416549b55e97ebfa13319dfc), [`25184ff`](https://github.com/mastra-ai/mastra/commit/25184ffaf1293ec95119426eb1a1f8d38831b96c), [`25184ff`](https://github.com/mastra-ai/mastra/commit/25184ffaf1293ec95119426eb1a1f8d38831b96c), [`25184ff`](https://github.com/mastra-ai/mastra/commit/25184ffaf1293ec95119426eb1a1f8d38831b96c), [`aebde9c`](https://github.com/mastra-ai/mastra/commit/aebde9cfacf56592c6b6350cae721740fe090b8a)]:
104
+ - @mastra/core@1.33.0-alpha.4
105
+ - @mastra/client-js@1.18.0-alpha.4
106
+ - @mastra/react@0.2.36-alpha.4
107
+
3
108
  ## 26.1.0-alpha.3
4
109
 
5
110
  ### Patch Changes