@mastra/playground-ui 42.0.0-alpha.17 → 42.0.0-alpha.19
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 +20 -0
- package/dist/components/Command.cjs.js +1 -1
- package/dist/components/Command.es.js +1 -1
- package/dist/components/Composer.cjs.js +1 -1
- package/dist/components/Composer.es.js +1 -1
- package/dist/components/DataList.cjs.js +4 -4
- package/dist/components/DataList.es.js +4 -4
- package/dist/components/DateRangeTimeline.cjs.js +36 -26
- package/dist/components/DateRangeTimeline.cjs.js.map +1 -1
- package/dist/components/DateRangeTimeline.es.js +36 -26
- package/dist/components/DateRangeTimeline.es.js.map +1 -1
- package/dist/components/EnvironmentVariablesEditor.cjs.js +1 -1
- package/dist/components/EnvironmentVariablesEditor.es.js +1 -1
- package/dist/components/HorizontalBars.cjs.js +1 -1
- package/dist/components/HorizontalBars.es.js +1 -1
- package/dist/components/LogsDataList.cjs.js +2 -2
- package/dist/components/LogsDataList.es.js +2 -2
- package/dist/components/MainSidebar.cjs.js +5 -5
- package/dist/components/MainSidebar.cjs.js.map +1 -1
- package/dist/components/MainSidebar.es.js +5 -5
- package/dist/components/MainSidebar.es.js.map +1 -1
- package/dist/components/ScrollArea.cjs.js +1 -1
- package/dist/components/ScrollArea.es.js +1 -1
- package/dist/components/ThreadRail.cjs.js +1 -1
- package/dist/components/ThreadRail.es.js +1 -1
- package/dist/{data-list-BwGRWaNd.cjs → data-list-CQWBPREX.cjs} +3 -3
- package/dist/{data-list-BwGRWaNd.cjs.map → data-list-CQWBPREX.cjs.map} +1 -1
- package/dist/{data-list-By3xmGvT.js → data-list-Ca8j8X2e.js} +3 -3
- package/dist/{data-list-By3xmGvT.js.map → data-list-Ca8j8X2e.js.map} +1 -1
- package/dist/{data-list-row-wrapper-D0eATMXZ.cjs → data-list-row-wrapper-D-ieH7I9.cjs} +2 -2
- package/dist/{data-list-row-wrapper-D0eATMXZ.cjs.map → data-list-row-wrapper-D-ieH7I9.cjs.map} +1 -1
- package/dist/{data-list-row-wrapper--77eZufv.js → data-list-row-wrapper-dMY1gERX.js} +2 -2
- package/dist/{data-list-row-wrapper--77eZufv.js.map → data-list-row-wrapper-dMY1gERX.js.map} +1 -1
- package/dist/{data-list-skeleton-BGvCCBtu.cjs → data-list-skeleton-C-DkvqbS.cjs} +2 -2
- package/dist/{data-list-skeleton-BGvCCBtu.cjs.map → data-list-skeleton-C-DkvqbS.cjs.map} +1 -1
- package/dist/{data-list-skeleton-rDMLgcEJ.js → data-list-skeleton-CIxMXF73.js} +2 -2
- package/dist/{data-list-skeleton-rDMLgcEJ.js.map → data-list-skeleton-CIxMXF73.js.map} +1 -1
- package/dist/{data-list-top-cell-CT5c7UVt.cjs → data-list-top-cell-CL-FVkPX.cjs} +9 -4
- package/dist/data-list-top-cell-CL-FVkPX.cjs.map +1 -0
- package/dist/{data-list-top-cell-B5qdzDE4.js → data-list-top-cell-QZpCLDIZ.js} +9 -4
- package/dist/data-list-top-cell-QZpCLDIZ.js.map +1 -0
- package/dist/domains/logs/components/logs-list-view.cjs.js +2 -2
- package/dist/domains/logs/components/logs-list-view.es.js +2 -2
- package/dist/domains/metrics/components/memory-card-view.cjs.js +1 -1
- package/dist/domains/metrics/components/memory-card-view.es.js +1 -1
- package/dist/domains/metrics/components/model-usage-cost-card-view.cjs.js +1 -1
- package/dist/domains/metrics/components/model-usage-cost-card-view.es.js +1 -1
- package/dist/domains/metrics/components/scores-card-view.cjs.js +1 -1
- package/dist/domains/metrics/components/scores-card-view.es.js +1 -1
- package/dist/domains/metrics/components/token-usage-by-agent-card-view.cjs.js +1 -1
- package/dist/domains/metrics/components/token-usage-by-agent-card-view.es.js +1 -1
- package/dist/domains/metrics/components/traces-volume-card-view.cjs.js +1 -1
- package/dist/domains/metrics/components/traces-volume-card-view.es.js +1 -1
- package/dist/domains/traces/components/traces-list-view.cjs.js +2 -2
- package/dist/domains/traces/components/traces-list-view.es.js +2 -2
- package/dist/ee/topics/components/topic-trace-summary-list.cjs.js +1 -1
- package/dist/ee/topics/components/topic-trace-summary-list.es.js +1 -1
- package/dist/{horizontal-bars-DmWxvGBL.js → horizontal-bars-CHoNhl-X.js} +2 -2
- package/dist/{horizontal-bars-DmWxvGBL.js.map → horizontal-bars-CHoNhl-X.js.map} +1 -1
- package/dist/{horizontal-bars-C39TYAB0.cjs → horizontal-bars-aRhVh7mi.cjs} +2 -2
- package/dist/{horizontal-bars-C39TYAB0.cjs.map → horizontal-bars-aRhVh7mi.cjs.map} +1 -1
- package/dist/{logs-data-list-BYbBzVcC.cjs → logs-data-list-4R9mXlZ5.cjs} +3 -3
- package/dist/{logs-data-list-BYbBzVcC.cjs.map → logs-data-list-4R9mXlZ5.cjs.map} +1 -1
- package/dist/{logs-data-list-DbfZpFx8.js → logs-data-list-BXLk5vqv.js} +3 -3
- package/dist/{logs-data-list-DbfZpFx8.js.map → logs-data-list-BXLk5vqv.js.map} +1 -1
- package/dist/{scroll-area-C3deZ3yj.cjs → scroll-area-BIaiA4t3.cjs} +7 -5
- package/dist/scroll-area-BIaiA4t3.cjs.map +1 -0
- package/dist/{scroll-area-DcY6f0GS.js → scroll-area-h3DvBR0U.js} +7 -5
- package/dist/scroll-area-h3DvBR0U.js.map +1 -0
- package/dist/src/ds/components/DataList/data-list-cells.d.ts +3 -1
- package/dist/src/ds/components/MainSidebar/main-sidebar-nav-label.d.ts +1 -1
- package/dist/src/ds/components/ScrollArea/scroll-area.d.ts +13 -1
- package/dist/style.css +4 -0
- package/dist/{traces-data-list-DKKrObgb.js → traces-data-list-DLmFHLQ6.js} +2 -2
- package/dist/{traces-data-list-DKKrObgb.js.map → traces-data-list-DLmFHLQ6.js.map} +1 -1
- package/dist/{traces-data-list-Bh6onSDp.cjs → traces-data-list-G69pEglx.cjs} +2 -2
- package/dist/{traces-data-list-Bh6onSDp.cjs.map → traces-data-list-G69pEglx.cjs.map} +1 -1
- package/package.json +4 -4
- package/dist/data-list-top-cell-B5qdzDE4.js.map +0 -1
- package/dist/data-list-top-cell-CT5c7UVt.cjs.map +0 -1
- package/dist/scroll-area-C3deZ3yj.cjs.map +0 -1
- package/dist/scroll-area-DcY6f0GS.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 42.0.0-alpha.19
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Added a `revealScrollbarOnHover` prop to `ScrollArea`. Set it to `false` to keep the overlay scrollbar hidden until the user actively scrolls, instead of also revealing it when the pointer hovers the area. Defaults to `true`, so existing usage is unchanged. ([#20037](https://github.com/mastra-ai/mastra/pull/20037))
|
|
8
|
+
|
|
9
|
+
```tsx
|
|
10
|
+
<ScrollArea revealScrollbarOnHover={false}>{content}</ScrollArea>
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Added a disabled prop to DataList.SelectCell so rows can block checkbox toggling while an async selection save is pending. ([#20038](https://github.com/mastra-ai/mastra/pull/20038))
|
|
16
|
+
|
|
17
|
+
## 42.0.0-alpha.18
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Improved sidebar density and prevented date range timelines from clipping edge labels. ([#19972](https://github.com/mastra-ai/mastra/pull/19972))
|
|
22
|
+
|
|
3
23
|
## 42.0.0-alpha.17
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -7,7 +7,7 @@ const cmdk = require('cmdk');
|
|
|
7
7
|
const lucideReact = require('lucide-react');
|
|
8
8
|
const React = require('react');
|
|
9
9
|
const dialog = require('../dialog-XVpF4nQ5.cjs');
|
|
10
|
-
const scrollArea = require('../scroll-area-
|
|
10
|
+
const scrollArea = require('../scroll-area-BIaiA4t3.cjs');
|
|
11
11
|
const primitives_transitions = require('../primitives/transitions.cjs.js');
|
|
12
12
|
const utils_cn = require('../cn-vA5sWo9W.cjs');
|
|
13
13
|
|
|
@@ -3,7 +3,7 @@ import { Command as Command$1 } from 'cmdk';
|
|
|
3
3
|
import { Search } from 'lucide-react';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { D as Dialog, c as DialogContent, i as DialogTitle, d as DialogDescription } from '../dialog-DhjOHEDT.js';
|
|
6
|
-
import { S as ScrollArea } from '../scroll-area-
|
|
6
|
+
import { S as ScrollArea } from '../scroll-area-h3DvBR0U.js';
|
|
7
7
|
import { transitions } from '../primitives/transitions.es.js';
|
|
8
8
|
import { c as cn } from '../cn-BakJzhuv.js';
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
require('../Composer.css');const jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
const React = require('react');
|
|
7
|
-
const scrollArea = require('../scroll-area-
|
|
7
|
+
const scrollArea = require('../scroll-area-BIaiA4t3.cjs');
|
|
8
8
|
const utils_cn = require('../cn-vA5sWo9W.cjs');
|
|
9
9
|
|
|
10
10
|
const Composer = React.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("form", { ref, "data-slot": "composer", ...props, children }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import { S as ScrollArea } from '../scroll-area-
|
|
3
|
+
import { S as ScrollArea } from '../scroll-area-h3DvBR0U.js';
|
|
4
4
|
import { c as cn } from '../cn-BakJzhuv.js';
|
|
5
5
|
|
|
6
6
|
import '../Composer.css';const Composer = forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ jsx("form", { ref, "data-slot": "composer", ...props, children }));
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const dataList = require('../data-list-
|
|
6
|
-
const dataListSkeleton = require('../data-list-skeleton-
|
|
5
|
+
const dataList = require('../data-list-CQWBPREX.cjs');
|
|
6
|
+
const dataListSkeleton = require('../data-list-skeleton-C-DkvqbS.cjs');
|
|
7
7
|
const jsxRuntime = require('react/jsx-runtime');
|
|
8
|
-
const dataListTopCell = require('../data-list-top-cell-
|
|
8
|
+
const dataListTopCell = require('../data-list-top-cell-CL-FVkPX.cjs');
|
|
9
9
|
const dateFns = require('date-fns');
|
|
10
|
-
const tracesDataList = require('../traces-data-list-
|
|
10
|
+
const tracesDataList = require('../traces-data-list-G69pEglx.cjs');
|
|
11
11
|
|
|
12
12
|
function toDate(value) {
|
|
13
13
|
const date = value instanceof Date ? value : new Date(value);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { D as DataList } from '../data-list-
|
|
2
|
-
export { D as DataListSkeleton } from '../data-list-skeleton-
|
|
1
|
+
export { D as DataList } from '../data-list-Ca8j8X2e.js';
|
|
2
|
+
export { D as DataListSkeleton } from '../data-list-skeleton-CIxMXF73.js';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
import { a as DataListCell, c as DataListNextPageLoading, f as DataListNoMatch, h as DataListRowButton, k as DataListTopCell, l as DataListTop, D as DataListRoot } from '../data-list-top-cell-
|
|
4
|
+
import { a as DataListCell, c as DataListNextPageLoading, f as DataListNoMatch, h as DataListRowButton, k as DataListTopCell, l as DataListTop, D as DataListRoot } from '../data-list-top-cell-QZpCLDIZ.js';
|
|
5
5
|
import { format, isToday } from 'date-fns';
|
|
6
|
-
export { T as TracesDataList } from '../traces-data-list-
|
|
6
|
+
export { T as TracesDataList } from '../traces-data-list-DLmFHLQ6.js';
|
|
7
7
|
|
|
8
8
|
function toDate(value) {
|
|
9
9
|
const date = value instanceof Date ? value : new Date(value);
|
|
@@ -424,7 +424,8 @@ function getMarkerHeight(emphasis) {
|
|
|
424
424
|
return "h-1.5";
|
|
425
425
|
}
|
|
426
426
|
function DateRangeTrackGrid({ markers }) {
|
|
427
|
-
|
|
427
|
+
const interiorMarkers = markers.filter((marker) => marker.position > 0 && marker.position < 100);
|
|
428
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none absolute inset-0", "aria-hidden": "true", children: interiorMarkers.map((marker) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
428
429
|
"span",
|
|
429
430
|
{
|
|
430
431
|
className: utils_cn.cn("absolute top-1/2 w-px -translate-1/2 bg-neutral3/15", getMarkerHeight(marker.emphasis)),
|
|
@@ -968,31 +969,40 @@ function DateRangeTimeline({ value, min, max, onCommit }) {
|
|
|
968
969
|
});
|
|
969
970
|
const boundaryModel = createDateRangeBoundaryModel(timeline.state);
|
|
970
971
|
const axisModel = createDateRangeAxisModel(timeline.state);
|
|
971
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
972
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
973
|
+
"div",
|
|
974
|
+
{
|
|
975
|
+
ref: rootRef,
|
|
976
|
+
role: "group",
|
|
977
|
+
"aria-label": "Date range timeline",
|
|
978
|
+
className: "w-full overflow-x-clip select-none [overflow-clip-margin:0.75rem]",
|
|
979
|
+
children: [
|
|
980
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
981
|
+
DateRangeBoundaryPickers,
|
|
982
|
+
{
|
|
983
|
+
positions: boundaryModel.positions,
|
|
984
|
+
value: boundaryModel.range,
|
|
985
|
+
min,
|
|
986
|
+
max,
|
|
987
|
+
onSelect: timeline.selectDate
|
|
988
|
+
}
|
|
989
|
+
),
|
|
990
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
991
|
+
DateRangeTrack,
|
|
992
|
+
{
|
|
993
|
+
wheelTargetRef: rootRef,
|
|
994
|
+
timeline: timeline.state,
|
|
995
|
+
maximumIndex: timeline.maximumIndex,
|
|
996
|
+
onSelectionPreview: timeline.previewSelection,
|
|
997
|
+
onSelectionCommit: timeline.commitSelection,
|
|
998
|
+
onSelectionCancel: timeline.cancelSelection,
|
|
999
|
+
onZoom: timeline.zoom
|
|
1000
|
+
}
|
|
1001
|
+
),
|
|
1002
|
+
/* @__PURE__ */ jsxRuntime.jsx(DateRangeTicks, { ticks: axisModel.ticks, min, max })
|
|
1003
|
+
]
|
|
1004
|
+
}
|
|
1005
|
+
);
|
|
996
1006
|
}
|
|
997
1007
|
|
|
998
1008
|
exports.DateRangeTimeline = DateRangeTimeline;
|