@mastra/playground-ui 40.0.0-alpha.4 → 40.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,66 @@
1
1
  # @mastra/playground-ui
2
2
 
3
+ ## 40.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Deprecated the legacy line TabList fallback for new tabs while keeping existing tabs compatible. ([#18978](https://github.com/mastra-ai/mastra/pull/18978))
8
+
9
+ - Deprecated legacy `asChild` props in Playground UI. Use Base UI's native `render` prop for typed composition. ([#18880](https://github.com/mastra-ai/mastra/pull/18880))
10
+
11
+ - Improved Studio metrics latency tabs so empty entity types are clearly disabled. ([#18996](https://github.com/mastra-ai/mastra/pull/18996))
12
+
13
+ - Added reusable message scroller and thread rail primitives for conversation navigation, plus a shared `useIsomorphicLayoutEffect` hook for layout work that must also render safely on the server. ([#18902](https://github.com/mastra-ai/mastra/pull/18902))
14
+
15
+ ```tsx
16
+ import {
17
+ MessageScroller,
18
+ MessageScrollerButton,
19
+ MessageScrollerContent,
20
+ MessageScrollerItem,
21
+ MessageScrollerProvider,
22
+ MessageScrollerViewport,
23
+ } from '@mastra/playground-ui/components/MessageScroller';
24
+ import { ThreadRail, buildThreadRailTurns } from '@mastra/playground-ui/components/ThreadRail';
25
+
26
+ const turns = buildThreadRailTurns(messages);
27
+
28
+ <MessageScrollerProvider>
29
+ <MessageScroller>
30
+ <MessageScrollerViewport>
31
+ <MessageScrollerContent>
32
+ {messages.map(message => (
33
+ <MessageScrollerItem key={message.id} messageId={message.id}>
34
+ <MessageRow message={message} />
35
+ </MessageScrollerItem>
36
+ ))}
37
+ </MessageScrollerContent>
38
+ </MessageScrollerViewport>
39
+ <MessageScrollerButton />
40
+ <ThreadRail turns={turns} />
41
+ </MessageScroller>
42
+ </MessageScrollerProvider>;
43
+ ```
44
+
45
+ - Improved playground-ui's safety around array and object access. ([#18860](https://github.com/mastra-ai/mastra/pull/18860))
46
+ This release reduces the risk of undefined reads without changing behavior.
47
+
48
+ - Hardened several string-parsing code paths against regular-expression denial of service (ReDoS). Path normalization, URL trimming, LLM token stripping, and observation parsing now use linear-time string scanning instead of regexes that could back-track polynomially on adversarial input. No behavior changes. ([#18801](https://github.com/mastra-ai/mastra/pull/18801))
49
+
50
+ - Updated dependencies [[`b291760`](https://github.com/mastra-ai/mastra/commit/b291760df9d6c7e4fc72606c8f0a4af2cf6e946c), [`3ffb8b7`](https://github.com/mastra-ai/mastra/commit/3ffb8b720e90f5e6977129ec1f6707d43c2bebe0), [`6ef59fe`](https://github.com/mastra-ai/mastra/commit/6ef59fef1da52ed8da5fbb2a892c71cf4fb6c739), [`4039488`](https://github.com/mastra-ai/mastra/commit/403948898af7293198d9e8b3e7fb47f623c78b94), [`29b7ea6`](https://github.com/mastra-ai/mastra/commit/29b7ea64e72b5523d5bdcbd34ee03d2b854d54e1), [`b2c9d70`](https://github.com/mastra-ai/mastra/commit/b2c9d70757207fb01a9069549e69b6f0d73a6636), [`a51c63d`](https://github.com/mastra-ai/mastra/commit/a51c63d8ee639e4daeba2a0be093efa6a1b5e52f), [`252f63d`](https://github.com/mastra-ai/mastra/commit/252f63d8fec723955adb2202be2f01a75ad0e69c), [`5ea76a7`](https://github.com/mastra-ai/mastra/commit/5ea76a723d966c72da9aa3ab30ae20276e049765), [`6445560`](https://github.com/mastra-ai/mastra/commit/6445560327045d20b239585fc63fed72e9ce36ec), [`82f0f43`](https://github.com/mastra-ai/mastra/commit/82f0f439600871ca2d20ab6fced2c68db1e42536), [`e2b9f33`](https://github.com/mastra-ai/mastra/commit/e2b9f33456fd638eca555f9466c6519d8d049666), [`10959d5`](https://github.com/mastra-ai/mastra/commit/10959d509d824f682d40ff96e05ee044aec3b0e5), [`c547a77`](https://github.com/mastra-ai/mastra/commit/c547a7729bdf64dfc2df29c965046c0712a18f10), [`a0085fa`](https://github.com/mastra-ai/mastra/commit/a0085fa0934e52c37c8c8b3d75a6bb5cd199af36), [`a2ba369`](https://github.com/mastra-ai/mastra/commit/a2ba369e796dfab610f41c6875965b488272fa55), [`ffc3c17`](https://github.com/mastra-ai/mastra/commit/ffc3c17274ea17c11aa6f73d3140649cd7fc8abc), [`81542c1`](https://github.com/mastra-ai/mastra/commit/81542c1835c35bc32f2ce4fa9136ee11993cd299), [`3908e53`](https://github.com/mastra-ai/mastra/commit/3908e53ce04bbea04f5e0c097d7aa298c35fabee), [`3908e53`](https://github.com/mastra-ai/mastra/commit/3908e53ce04bbea04f5e0c097d7aa298c35fabee), [`cb24ce7`](https://github.com/mastra-ai/mastra/commit/cb24ce76bd16ca88eb6a963f6277f8780e703029), [`02705fd`](https://github.com/mastra-ai/mastra/commit/02705fd2f5a9062210d64ea061adeeb10dc9452e), [`ae51e81`](https://github.com/mastra-ai/mastra/commit/ae51e818825582d42500338dfc1929a082eff0ba), [`6f304ef`](https://github.com/mastra-ai/mastra/commit/6f304ef319e99725e884bdb8d3193c001b6e5964), [`5f9858f`](https://github.com/mastra-ai/mastra/commit/5f9858f791f1137ca7d52d23559fb4568f7a9026)]:
51
+ - @mastra/core@1.50.0
52
+ - @mastra/react@1.2.3
53
+ - @mastra/client-js@1.31.0
54
+
55
+ ## 40.0.0-alpha.5
56
+
57
+ ### Patch Changes
58
+
59
+ - Updated dependencies [[`a0085fa`](https://github.com/mastra-ai/mastra/commit/a0085fa0934e52c37c8c8b3d75a6bb5cd199af36)]:
60
+ - @mastra/core@1.50.0-alpha.5
61
+ - @mastra/client-js@1.31.0-alpha.5
62
+ - @mastra/react@1.2.3-alpha.5
63
+
3
64
  ## 40.0.0-alpha.4
4
65
 
5
66
  ### Patch Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mastra/playground-ui",
3
3
  "type": "module",
4
- "version": "40.0.0-alpha.4",
4
+ "version": "40.0.0",
5
5
  "description": "Mastra Playground components",
6
6
  "sideEffects": [
7
7
  "**/*.css"
@@ -150,8 +150,8 @@
150
150
  "react": ">=19.0.0",
151
151
  "react-dom": ">=19.0.0",
152
152
  "tailwindcss": "^4.0.0",
153
- "@mastra/react": "1.2.3-alpha.4",
154
- "@mastra/client-js": "^1.31.0-alpha.4"
153
+ "@mastra/client-js": "^1.31.0",
154
+ "@mastra/react": "1.2.3"
155
155
  },
156
156
  "devDependencies": {
157
157
  "@storybook/addon-a11y": "^10.4.1",
@@ -188,11 +188,11 @@
188
188
  "vite-plugin-dts": "^4.5.4",
189
189
  "vite-plugin-lib-inject-css": "^2.2.2",
190
190
  "vitest": "4.1.8",
191
- "@mastra/core": "1.50.0-alpha.4",
192
- "@mastra/client-js": "^1.31.0-alpha.4",
191
+ "@internal/lint": "0.0.112",
192
+ "@mastra/client-js": "^1.31.0",
193
+ "@mastra/core": "1.50.0",
193
194
  "@mastra/memory": "1.22.1",
194
- "@mastra/react": "1.2.3-alpha.4",
195
- "@internal/lint": "0.0.111"
195
+ "@mastra/react": "1.2.3"
196
196
  },
197
197
  "homepage": "https://mastra.ai",
198
198
  "repository": {