@mastra/playground-ui 22.0.1-alpha.9 → 22.1.0-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 +46 -0
- package/dist/index.cjs.js +44 -17
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +24 -10
- package/dist/index.es.js +44 -17
- package/dist/index.es.js.map +1 -1
- package/dist/src/ds/components/DataCodeSection/data-code-section.d.ts +9 -0
- package/dist/src/ds/components/DataCodeSection/data-code-section.stories.d.ts +12 -0
- package/dist/src/ds/components/DataCodeSection/index.d.ts +1 -0
- package/dist/src/ds/components/DataKeysAndValues/data-keys-and-values-header.d.ts +5 -0
- package/dist/src/ds/components/DataKeysAndValues/data-keys-and-values-key.d.ts +5 -0
- package/dist/src/ds/components/DataKeysAndValues/data-keys-and-values-root.d.ts +6 -0
- package/dist/src/ds/components/DataKeysAndValues/data-keys-and-values-value.d.ts +5 -0
- package/dist/src/ds/components/DataKeysAndValues/data-keys-and-values.d.ts +9 -0
- package/dist/src/ds/components/DataKeysAndValues/data-keys-and-values.stories.d.ts +11 -0
- package/dist/src/ds/components/DataKeysAndValues/index.d.ts +5 -0
- package/dist/src/ds/components/DataPanel/data-panel-close-button.d.ts +6 -0
- package/dist/src/ds/components/DataPanel/data-panel-content.d.ts +6 -0
- package/dist/src/ds/components/DataPanel/data-panel-header.d.ts +5 -0
- package/dist/src/ds/components/DataPanel/data-panel-heading.d.ts +5 -0
- package/dist/src/ds/components/DataPanel/data-panel-loading-data.d.ts +5 -0
- package/dist/src/ds/components/DataPanel/data-panel-next-prev-nav.d.ts +7 -0
- package/dist/src/ds/components/DataPanel/data-panel-no-data.d.ts +4 -0
- package/dist/src/ds/components/DataPanel/data-panel-root.d.ts +5 -0
- package/dist/src/ds/components/DataPanel/data-panel.d.ts +17 -0
- package/dist/src/ds/components/DataPanel/data-panel.stories.d.ts +12 -0
- package/dist/src/ds/components/DataPanel/index.d.ts +9 -0
- package/dist/src/ds/components/DateTimeRangePicker/date-time-range-picker.d.ts +10 -0
- package/dist/src/ds/components/DateTimeRangePicker/date-time-range-picker.stories.d.ts +9 -0
- package/dist/src/ds/components/DateTimeRangePicker/index.d.ts +2 -0
- package/dist/src/ds/components/FormFieldBlocks/fields/search-field-block.d.ts +3 -1
- package/dist/src/ds/components/FormFieldBlocks/fields/search-field-block.stories.d.ts +1 -0
- package/package.json +14 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,51 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 22.1.0-alpha.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Search input can now be collapsed into a compact icon button with tooltip and auto-focuses when expanded ([#15130](https://github.com/mastra-ai/mastra/pull/15130))
|
|
8
|
+
|
|
9
|
+
- Added DataKeysAndValues component — a compound component for displaying key-value pairs in a grid layout with support for single or two-column modes and section headers ([#15126](https://github.com/mastra-ai/mastra/pull/15126))
|
|
10
|
+
|
|
11
|
+
- Added DateTimeRangePicker component — a date range selector with preset options (last 24h, 7d, 30d, etc.) and a custom range mode with dual calendar and time pickers ([#15128](https://github.com/mastra-ai/mastra/pull/15128))
|
|
12
|
+
|
|
13
|
+
- Added DataCodeSection component — a read-only code viewer with JSON syntax highlighting, search, multiline toggle, and an expandable fullscreen dialog ([#15125](https://github.com/mastra-ai/mastra/pull/15125))
|
|
14
|
+
|
|
15
|
+
- Added DataPanel compound component — a container for detail panels with header, navigation, close button, loading, and empty states ([#15127](https://github.com/mastra-ai/mastra/pull/15127))
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [[`153e864`](https://github.com/mastra-ai/mastra/commit/153e86476b425db7cd0dc8490050096e92964a38), [`153e864`](https://github.com/mastra-ai/mastra/commit/153e86476b425db7cd0dc8490050096e92964a38), [`b0190af`](https://github.com/mastra-ai/mastra/commit/b0190af9179181aa051fa62162dc0dc686999ffe)]:
|
|
20
|
+
- @mastra/core@1.23.1-alpha.0
|
|
21
|
+
- @mastra/ai-sdk@1.3.3-alpha.0
|
|
22
|
+
- @mastra/client-js@1.13.2-alpha.0
|
|
23
|
+
- @mastra/react@0.2.24-alpha.0
|
|
24
|
+
|
|
25
|
+
## 22.0.1
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Added SessionExpired component and is401UnauthorizedError utility to handle 401 Unauthorized errors gracefully. When a user's token expires and refresh fails, they now see a clear 'Session Expired' message with a 'Log In' button instead of a broken/empty UI state. ([#15093](https://github.com/mastra-ai/mastra/pull/15093))
|
|
30
|
+
|
|
31
|
+
- Added Memory as a recognized span type in the trace timeline. Memory operation spans now display with a dedicated icon, color, and filter toggle alongside Agent, Workflow, Model, MCP, and Tool spans. ([#14305](https://github.com/mastra-ai/mastra/pull/14305))
|
|
32
|
+
|
|
33
|
+
- Expired sessions now refresh automatically. Requests that previously returned 401 are retried after refreshing, so users stay signed in instead of being logged out. ([#15024](https://github.com/mastra-ai/mastra/pull/15024))
|
|
34
|
+
|
|
35
|
+
- Fixed agent editor crash caused by missing BrowserSessionProvider in the test chat component ([#15113](https://github.com/mastra-ai/mastra/pull/15113))
|
|
36
|
+
|
|
37
|
+
- Improved agent editor variables section: replaced editable key-value inputs with a read-only tree view that correctly displays variables from requestContextSchema, including nested object properties. Fixed requestContextSchema not loading for code agents by using superjson parsing to unwrap the serialized schema envelope. ([#15113](https://github.com/mastra-ai/mastra/pull/15113))
|
|
38
|
+
|
|
39
|
+
- Improved chat rendering for system reminder messages by showing a collapsible reminder badge instead of raw XML text. ([#15100](https://github.com/mastra-ai/mastra/pull/15100))
|
|
40
|
+
|
|
41
|
+
- Improved evaluation tab design consistency by migrating detail list views (scorers, datasets, experiments, review) to use the shared EntityList component. Added padding to evaluate and review tab wrappers. Fixed experiment result split-panel layout being too narrow. Fixed sidebar highlighting when viewing experiment details from the Experiments tab. ([#14987](https://github.com/mastra-ai/mastra/pull/14987))
|
|
42
|
+
|
|
43
|
+
- Updated dependencies [[`f32b9e1`](https://github.com/mastra-ai/mastra/commit/f32b9e115a3c754d1c8cfa3f4256fba87b09cfb7), [`7d6f521`](https://github.com/mastra-ai/mastra/commit/7d6f52164d0cca099f0b07cb2bba334360f1c8ab), [`a50d220`](https://github.com/mastra-ai/mastra/commit/a50d220b01ecbc5644d489a3d446c3bd4ab30245), [`665477b`](https://github.com/mastra-ai/mastra/commit/665477bc104fd52cfef8e7610d7664781a70c220), [`4cc2755`](https://github.com/mastra-ai/mastra/commit/4cc2755a7194cb08720ff2ab4dffb4b4a5103dfd), [`ac7baf6`](https://github.com/mastra-ai/mastra/commit/ac7baf66ef1db15e03975ef4ebb02724f015a391), [`ac7baf6`](https://github.com/mastra-ai/mastra/commit/ac7baf66ef1db15e03975ef4ebb02724f015a391), [`ed425d7`](https://github.com/mastra-ai/mastra/commit/ed425d78e7c66cbda8209fee910856f98c6c6b82), [`fd8cf05`](https://github.com/mastra-ai/mastra/commit/fd8cf05151465e479504aa42eb009bcb36b9a801), [`1371703`](https://github.com/mastra-ai/mastra/commit/1371703835080450ef3f9aea58059a95d0da2e5a), [`0df8321`](https://github.com/mastra-ai/mastra/commit/0df832196eeb2450ab77ce887e8553abdd44c5a6), [`98f8a8b`](https://github.com/mastra-ai/mastra/commit/98f8a8bdf5761b9982f3ad3acbe7f1cc3efa71f3), [`ba6f7e9`](https://github.com/mastra-ai/mastra/commit/ba6f7e9086d8281393f2acae60fda61de3bff1f9), [`7eb2596`](https://github.com/mastra-ai/mastra/commit/7eb25960d607e07468c9a10c5437abd2deaf1e9a), [`1805ddc`](https://github.com/mastra-ai/mastra/commit/1805ddc9c9b3b14b63749735a13c05a45af43a80), [`fff91cf`](https://github.com/mastra-ai/mastra/commit/fff91cf914de0e731578aacebffdeebef82f0440), [`61109b3`](https://github.com/mastra-ai/mastra/commit/61109b34feb0e38d54bee4b8ca83eb7345b1d557), [`33f1ead`](https://github.com/mastra-ai/mastra/commit/33f1eadfa19c86953f593478e5fa371093b33779)]:
|
|
44
|
+
- @mastra/core@1.23.0
|
|
45
|
+
- @mastra/client-js@1.13.1
|
|
46
|
+
- @mastra/ai-sdk@1.3.2
|
|
47
|
+
- @mastra/react@0.2.23
|
|
48
|
+
|
|
3
49
|
## 22.0.1-alpha.9
|
|
4
50
|
|
|
5
51
|
### Patch Changes
|
package/dist/index.cjs.js
CHANGED
|
@@ -35798,8 +35798,31 @@ function SearchFieldBlock({
|
|
|
35798
35798
|
onChange,
|
|
35799
35799
|
onReset,
|
|
35800
35800
|
className,
|
|
35801
|
-
size
|
|
35801
|
+
size,
|
|
35802
|
+
isMinimized,
|
|
35803
|
+
onMinimizedChange
|
|
35802
35804
|
}) {
|
|
35805
|
+
const inputRef = React.useRef(null);
|
|
35806
|
+
React.useEffect(() => {
|
|
35807
|
+
if (isMinimized === false) {
|
|
35808
|
+
inputRef.current?.focus();
|
|
35809
|
+
}
|
|
35810
|
+
}, [isMinimized]);
|
|
35811
|
+
if (isMinimized) {
|
|
35812
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { children: [
|
|
35813
|
+
/* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
35814
|
+
Button,
|
|
35815
|
+
{
|
|
35816
|
+
size: size || "sm",
|
|
35817
|
+
"aria-label": label || "Search",
|
|
35818
|
+
disabled,
|
|
35819
|
+
onClick: () => onMinimizedChange?.(false),
|
|
35820
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.SearchIcon, {})
|
|
35821
|
+
}
|
|
35822
|
+
) }),
|
|
35823
|
+
/* @__PURE__ */ jsxRuntime.jsx(TooltipContent, { children: label || "Search" })
|
|
35824
|
+
] });
|
|
35825
|
+
}
|
|
35803
35826
|
return /* @__PURE__ */ jsxRuntime.jsxs(FieldBlock.Layout, { layout, className, children: [
|
|
35804
35827
|
layout === "horizontal" ? /* @__PURE__ */ jsxRuntime.jsx(FieldBlock.Column, { children: /* @__PURE__ */ jsxRuntime.jsx(FieldBlock.Label, { name, required, children: labelIsHidden ? /* @__PURE__ */ jsxRuntime.jsx(VisuallyHidden.VisuallyHidden, { children: label }) : label }) }) : null,
|
|
35805
35828
|
/* @__PURE__ */ jsxRuntime.jsxs(FieldBlock.Column, { children: [
|
|
@@ -35808,6 +35831,7 @@ function SearchFieldBlock({
|
|
|
35808
35831
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35809
35832
|
Input,
|
|
35810
35833
|
{
|
|
35834
|
+
ref: inputRef,
|
|
35811
35835
|
name,
|
|
35812
35836
|
disabled,
|
|
35813
35837
|
value,
|
|
@@ -35815,10 +35839,10 @@ function SearchFieldBlock({
|
|
|
35815
35839
|
onChange,
|
|
35816
35840
|
size,
|
|
35817
35841
|
className: cn(
|
|
35818
|
-
size === "sm" && "pl-8",
|
|
35819
|
-
size === "md" && "pl-9",
|
|
35820
|
-
(!size || size === "default") && "pl-10",
|
|
35821
|
-
size === "lg" && "pl-11"
|
|
35842
|
+
size === "sm" && "pl-8 pr-8",
|
|
35843
|
+
size === "md" && "pl-9 pr-9",
|
|
35844
|
+
(!size || size === "default") && "pl-10 pr-10",
|
|
35845
|
+
size === "lg" && "pl-11 pr-11"
|
|
35822
35846
|
)
|
|
35823
35847
|
}
|
|
35824
35848
|
),
|
|
@@ -35835,19 +35859,22 @@ function SearchFieldBlock({
|
|
|
35835
35859
|
)
|
|
35836
35860
|
}
|
|
35837
35861
|
),
|
|
35838
|
-
onReset && value && /* @__PURE__ */ jsxRuntime.jsx(
|
|
35839
|
-
|
|
35862
|
+
onReset && (value || isMinimized === false) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
35863
|
+
Button,
|
|
35840
35864
|
{
|
|
35841
|
-
|
|
35842
|
-
|
|
35843
|
-
|
|
35844
|
-
|
|
35845
|
-
|
|
35846
|
-
|
|
35847
|
-
|
|
35848
|
-
|
|
35849
|
-
|
|
35850
|
-
|
|
35865
|
+
variant: "ghost",
|
|
35866
|
+
size: size || "default",
|
|
35867
|
+
"aria-label": "Clear search",
|
|
35868
|
+
onClick: () => {
|
|
35869
|
+
if (value) {
|
|
35870
|
+
onReset();
|
|
35871
|
+
}
|
|
35872
|
+
if (isMinimized === false) {
|
|
35873
|
+
onMinimizedChange?.(true);
|
|
35874
|
+
}
|
|
35875
|
+
},
|
|
35876
|
+
className: "absolute top-1/2 right-0 -translate-y-1/2",
|
|
35877
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.XIcon, {})
|
|
35851
35878
|
}
|
|
35852
35879
|
)
|
|
35853
35880
|
] }),
|