@mastra/playground-ui 30.0.1-alpha.0 → 30.0.1

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 CHANGED
@@ -1,5 +1,52 @@
1
1
  # @mastra/playground-ui
2
2
 
3
+ ## 30.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Renamed `DataList.Row` (the non-interactive grid wrapper) to `DataList.RowWrapper` for clarity, since the name `Row` was easy to confuse with the interactive row primitives (`.RowButton`, `.RowLink`, `.RowStatic`). The corresponding exported component is now `DataListRowWrapper` (was `DataListRow`). ([#17123](https://github.com/mastra-ai/mastra/pull/17123))
8
+
9
+ **Migration**
10
+
11
+ ```tsx
12
+ // Before
13
+ <DataList.Row>
14
+ <DataList.SelectCell ... />
15
+ <DataList.RowButton ...>...</DataList.RowButton>
16
+ </DataList.Row>
17
+
18
+ // After
19
+ <DataList.RowWrapper>
20
+ <DataList.SelectCell ... />
21
+ <DataList.RowButton ...>...</DataList.RowButton>
22
+ </DataList.RowWrapper>
23
+ ```
24
+
25
+ The `.RowButton`, `.RowLink`, and `.RowStatic` primitives are unchanged.
26
+
27
+ - `ContextMenu` Positioner and popup raised from `z-50` to `z-1000` with `isolate`, so the menu sits above app chrome that uses higher stacking contexts (e.g. sticky headers with `z-500`). Previously the menu would render behind such elements when opened on triggers near them. ([#17133](https://github.com/mastra-ai/mastra/pull/17133))
28
+
29
+ - Removed the EntityList and EntityListPageLayout components — they were superseded by DataList. The 9 Studio root list pages (Agents, Datasets, Experiments, MCPs, Processors, Prompts, Scorers, Tools, Workflows) now build on DataList, matching the condensed layout shared across the rest of Studio. ([#17058](https://github.com/mastra-ai/mastra/pull/17058))
30
+
31
+ **Migration**
32
+
33
+ If you were importing EntityList or EntityListPageLayout from `@mastra/playground-ui`, switch to DataList — its API is a strict superset:
34
+
35
+ ```tsx
36
+ // Before
37
+ import { EntityList, EntityListSkeleton } from '@mastra/playground-ui';
38
+
39
+ // After
40
+ import { DataList, DataListSkeleton } from '@mastra/playground-ui';
41
+ ```
42
+
43
+ The primitive names match (`.Top`, `.TopCell`, `.TopCellSmart`, `.RowLink`, `.Cell`, `.TextCell`, `.NameCell`, `.DescriptionCell`, `.NoMatch`, `.Pagination`). DataList additionally exposes `.Row`, `.RowButton`, `.RowStatic`, `.IdCell`, `.MonoCell`, `.SelectCell`, `.NextPageLoading`, and more — useful when you need selection rows or action cells outside a RowLink.
44
+
45
+ - Updated dependencies [[`21db1a4`](https://github.com/mastra-ai/mastra/commit/21db1a4b8ac058d5a4fbe38b516cc1b81e526915)]:
46
+ - @mastra/core@1.37.1
47
+ - @mastra/client-js@1.21.1
48
+ - @mastra/react@0.4.2
49
+
3
50
  ## 30.0.1-alpha.0
4
51
 
5
52
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -6719,7 +6719,7 @@ const itemClass$1 = cn(
6719
6719
  "[&>svg]:w-[1.1em] [&>svg]:h-[1.1em] [&>svg]:opacity-60 [&:hover>svg]:opacity-100"
6720
6720
  );
6721
6721
  const popupClass$1 = cn(
6722
- "bg-surface3 text-neutral4 z-50 min-w-44 max-h-[min(20rem,var(--available-height))] overflow-x-hidden overflow-y-auto rounded-xl border border-border1 p-1 shadow-dialog origin-[var(--transform-origin)] outline-none",
6722
+ "bg-surface3 text-neutral4 z-1000 min-w-44 max-h-[min(20rem,var(--available-height))] overflow-x-hidden overflow-y-auto rounded-xl border border-border1 p-1 shadow-dialog origin-[var(--transform-origin)] outline-none",
6723
6723
  "data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95",
6724
6724
  "data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1"
6725
6725
  );
@@ -6732,7 +6732,7 @@ const ContextMenuContent = React__namespace.forwardRef(
6732
6732
  alignOffset,
6733
6733
  side,
6734
6734
  sideOffset,
6735
- className: "z-50 outline-none",
6735
+ className: "isolate z-1000 outline-none",
6736
6736
  children: /* @__PURE__ */ jsxRuntime.jsx(
6737
6737
  contextMenu.ContextMenu.Popup,
6738
6738
  {
@@ -6853,7 +6853,7 @@ const ContextMenuSubContent = React__namespace.forwardRef(
6853
6853
  alignOffset,
6854
6854
  side,
6855
6855
  sideOffset,
6856
- className: "z-50 outline-none",
6856
+ className: "isolate z-1000 outline-none",
6857
6857
  children: /* @__PURE__ */ jsxRuntime.jsx(
6858
6858
  contextMenu.ContextMenu.Popup,
6859
6859
  {
@@ -13516,11 +13516,6 @@ const dataListRowStyles = [
13516
13516
  ...dataListRowOuterStyles
13517
13517
  ];
13518
13518
 
13519
- const DataListRow = React.forwardRef(({ children, className, ...rest }, ref) => {
13520
- return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("grid grid-cols-subgrid gap-0 mx-1", ...dataListRowOuterStyles, className), ...rest, children });
13521
- });
13522
- DataListRow.displayName = "DataListRow";
13523
-
13524
13519
  const DataListRowButton = React.forwardRef(
13525
13520
  ({ children, className, type = "button", flushLeft, flushRight, colStart, colEnd, featured, style, ...rest }, ref) => {
13526
13521
  const hasColumnOverride = colStart !== void 0 || colEnd !== void 0;
@@ -13603,6 +13598,21 @@ const DataListRowStatic = React.forwardRef(
13603
13598
  );
13604
13599
  DataListRowStatic.displayName = "DataListRowStatic";
13605
13600
 
13601
+ const DataListRowWrapper = React.forwardRef(
13602
+ ({ children, className, ...rest }, ref) => {
13603
+ return /* @__PURE__ */ jsxRuntime.jsx(
13604
+ "div",
13605
+ {
13606
+ ref,
13607
+ className: cn("grid grid-cols-subgrid gap-0 mx-1", ...dataListRowOuterStyles, className),
13608
+ ...rest,
13609
+ children
13610
+ }
13611
+ );
13612
+ }
13613
+ );
13614
+ DataListRowWrapper.displayName = "DataListRowWrapper";
13615
+
13606
13616
  function DataListSpacer({ height }) {
13607
13617
  if (height <= 0) return null;
13608
13618
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-full", style: { height } });
@@ -13734,7 +13744,7 @@ const DataList = Object.assign(DataListRoot, {
13734
13744
  TopCell: DataListTopCell,
13735
13745
  TopCellWithTooltip: DataListTopCellWithTooltip,
13736
13746
  TopCellSmart: DataListTopCellSmart,
13737
- Row: DataListRow,
13747
+ RowWrapper: DataListRowWrapper,
13738
13748
  RowButton: DataListRowButton,
13739
13749
  RowLink: DataListRowLink,
13740
13750
  RowStatic: DataListRowStatic,
@@ -13943,7 +13953,7 @@ const LogsDataList = Object.assign(DataListRoot, {
13943
13953
  TopCell: DataListTopCell,
13944
13954
  TopCellWithTooltip: DataListTopCellWithTooltip,
13945
13955
  TopCellSmart: DataListTopCellSmart,
13946
- Row: DataListRow,
13956
+ RowWrapper: DataListRowWrapper,
13947
13957
  RowButton: DataListRowButton,
13948
13958
  RowLink: DataListRowLink,
13949
13959
  Spacer: DataListSpacer,