@mastra/playground-ui 30.0.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 +67 -0
- package/dist/index.cjs.js +28 -261
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +9 -17
- package/dist/index.es.js +29 -259
- package/dist/index.es.js.map +1 -1
- package/dist/src/ds/components/DataList/{data-list-row.d.ts → data-list-row-wrapper.d.ts} +2 -2
- package/dist/src/ds/components/DataList/data-list.d.ts +1 -1
- package/dist/src/ds/components/DataList/shared.d.ts +3 -3
- package/dist/src/ds/components/LogsDataList/logs-data-list.d.ts +1 -1
- package/dist/src/index.d.ts +0 -2
- package/package.json +7 -7
- package/dist/src/ds/components/EntityList/entity-list-cells.d.ts +0 -9
- package/dist/src/ds/components/EntityList/entity-list-no-match.d.ts +0 -5
- package/dist/src/ds/components/EntityList/entity-list-pagination.d.ts +0 -7
- package/dist/src/ds/components/EntityList/entity-list-root.d.ts +0 -7
- package/dist/src/ds/components/EntityList/entity-list-row-link.d.ts +0 -9
- package/dist/src/ds/components/EntityList/entity-list-row.d.ts +0 -8
- package/dist/src/ds/components/EntityList/entity-list-rows.d.ts +0 -6
- package/dist/src/ds/components/EntityList/entity-list-skeleton.d.ts +0 -5
- package/dist/src/ds/components/EntityList/entity-list-top-cell.d.ts +0 -20
- package/dist/src/ds/components/EntityList/entity-list-top.d.ts +0 -6
- package/dist/src/ds/components/EntityList/entity-list.d.ts +0 -24
- package/dist/src/ds/components/EntityList/index.d.ts +0 -2
- package/dist/src/ds/components/EntityListPageLayout/entity-list-page-layout-root.d.ts +0 -5
- package/dist/src/ds/components/EntityListPageLayout/entity-list-page-layout-top.d.ts +0 -5
- package/dist/src/ds/components/EntityListPageLayout/entity-list-page-layout.d.ts +0 -5
- package/dist/src/ds/components/EntityListPageLayout/index.d.ts +0 -1
package/dist/index.css
CHANGED
|
@@ -790,6 +790,14 @@
|
|
|
790
790
|
z-index: 50;
|
|
791
791
|
}
|
|
792
792
|
|
|
793
|
+
.z-500 {
|
|
794
|
+
z-index: 500;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
.z-1000 {
|
|
798
|
+
z-index: 1000;
|
|
799
|
+
}
|
|
800
|
+
|
|
793
801
|
.z-\[1\] {
|
|
794
802
|
z-index: 1;
|
|
795
803
|
}
|
|
@@ -1887,10 +1895,6 @@
|
|
|
1887
1895
|
max-width: 90vw !important;
|
|
1888
1896
|
}
|
|
1889
1897
|
|
|
1890
|
-
.max-w-\[110rem\] {
|
|
1891
|
-
max-width: 110rem;
|
|
1892
|
-
}
|
|
1893
|
-
|
|
1894
1898
|
.max-w-\[200px\] {
|
|
1895
1899
|
max-width: 200px;
|
|
1896
1900
|
}
|
|
@@ -3469,10 +3473,6 @@
|
|
|
3469
3473
|
padding-inline: var(--spacing-8);
|
|
3470
3474
|
}
|
|
3471
3475
|
|
|
3472
|
-
.px-10 {
|
|
3473
|
-
padding-inline: var(--spacing-10);
|
|
3474
|
-
}
|
|
3475
|
-
|
|
3476
3476
|
.px-12 {
|
|
3477
3477
|
padding-inline: var(--spacing-12);
|
|
3478
3478
|
}
|
|
@@ -4971,10 +4971,6 @@
|
|
|
4971
4971
|
border-color: var(--color-neutral2);
|
|
4972
4972
|
}
|
|
4973
4973
|
|
|
4974
|
-
.focus-within\:border-transparent:focus-within {
|
|
4975
|
-
border-color: #0000;
|
|
4976
|
-
}
|
|
4977
|
-
|
|
4978
4974
|
.focus-within\:bg-surface4:focus-within {
|
|
4979
4975
|
background-color: var(--color-surface4);
|
|
4980
4976
|
}
|
|
@@ -5009,10 +5005,6 @@
|
|
|
5009
5005
|
}
|
|
5010
5006
|
}
|
|
5011
5007
|
|
|
5012
|
-
.focus-within\:ring-inset:focus-within {
|
|
5013
|
-
--tw-ring-inset: inset;
|
|
5014
|
-
}
|
|
5015
|
-
|
|
5016
5008
|
@media (hover: hover) {
|
|
5017
5009
|
.hover\:scale-105:hover {
|
|
5018
5010
|
--tw-scale-x: 105%;
|
|
@@ -7327,7 +7319,7 @@
|
|
|
7327
7319
|
rotate: 90deg;
|
|
7328
7320
|
}
|
|
7329
7321
|
|
|
7330
|
-
.data-list-row:focus-visible + .\[\.data-list-row\:focus-visible\+\&\]\:border-t-transparent, .data-list-row:hover + .\[\.data-list-row\:hover\+\&\]\:border-t-transparent, .data-list-subheader + .\[\.data-list-subheader\+\&\]\:border-t-transparent
|
|
7322
|
+
.data-list-row:focus-visible + .\[\.data-list-row\:focus-visible\+\&\]\:border-t-transparent, .data-list-row:hover + .\[\.data-list-row\:hover\+\&\]\:border-t-transparent, .data-list-subheader + .\[\.data-list-subheader\+\&\]\:border-t-transparent {
|
|
7331
7323
|
border-top-color: #0000;
|
|
7332
7324
|
}
|
|
7333
7325
|
|
package/dist/index.es.js
CHANGED
|
@@ -6698,7 +6698,7 @@ const itemClass$1 = cn(
|
|
|
6698
6698
|
"[&>svg]:w-[1.1em] [&>svg]:h-[1.1em] [&>svg]:opacity-60 [&:hover>svg]:opacity-100"
|
|
6699
6699
|
);
|
|
6700
6700
|
const popupClass$1 = cn(
|
|
6701
|
-
"bg-surface3 text-neutral4 z-
|
|
6701
|
+
"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",
|
|
6702
6702
|
"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",
|
|
6703
6703
|
"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"
|
|
6704
6704
|
);
|
|
@@ -6711,7 +6711,7 @@ const ContextMenuContent = React.forwardRef(
|
|
|
6711
6711
|
alignOffset,
|
|
6712
6712
|
side,
|
|
6713
6713
|
sideOffset,
|
|
6714
|
-
className: "z-
|
|
6714
|
+
className: "isolate z-1000 outline-none",
|
|
6715
6715
|
children: /* @__PURE__ */ jsx(
|
|
6716
6716
|
ContextMenu$1.Popup,
|
|
6717
6717
|
{
|
|
@@ -6832,7 +6832,7 @@ const ContextMenuSubContent = React.forwardRef(
|
|
|
6832
6832
|
alignOffset,
|
|
6833
6833
|
side,
|
|
6834
6834
|
sideOffset,
|
|
6835
|
-
className: "z-
|
|
6835
|
+
className: "isolate z-1000 outline-none",
|
|
6836
6836
|
children: /* @__PURE__ */ jsx(
|
|
6837
6837
|
ContextMenu$1.Popup,
|
|
6838
6838
|
{
|
|
@@ -12816,11 +12816,11 @@ const ItemList = Object.assign(ItemListRoot, {
|
|
|
12816
12816
|
LabelCell: ItemListLabelCell
|
|
12817
12817
|
});
|
|
12818
12818
|
|
|
12819
|
-
const widths$
|
|
12819
|
+
const widths$1 = ["75%", "50%", "65%", "90%", "60%", "80%"];
|
|
12820
12820
|
function ItemListItemsSkeleton({ columns, numberOfRows = 3 }) {
|
|
12821
12821
|
const getPseudoRandomWidth = (rowIdx, colIdx) => {
|
|
12822
|
-
const index = (rowIdx + colIdx + (columns?.length || 0) + (numberOfRows || 0)) % widths$
|
|
12823
|
-
return widths$
|
|
12822
|
+
const index = (rowIdx + colIdx + (columns?.length || 0) + (numberOfRows || 0)) % widths$1.length;
|
|
12823
|
+
return widths$1[index];
|
|
12824
12824
|
};
|
|
12825
12825
|
return /* @__PURE__ */ jsx(ItemListItems, { children: Array.from({ length: numberOfRows }).map((_, rowIdx) => /* @__PURE__ */ jsx(ItemListRow, { children: /* @__PURE__ */ jsx(ItemListRowButton, { columns, children: (columns || []).map((col, colIdx) => {
|
|
12826
12826
|
const key = `${col.name}-${colIdx}`;
|
|
@@ -13495,11 +13495,6 @@ const dataListRowStyles = [
|
|
|
13495
13495
|
...dataListRowOuterStyles
|
|
13496
13496
|
];
|
|
13497
13497
|
|
|
13498
|
-
const DataListRow = forwardRef(({ children, className, ...rest }, ref) => {
|
|
13499
|
-
return /* @__PURE__ */ jsx("div", { ref, className: cn("grid grid-cols-subgrid gap-0 mx-1", ...dataListRowOuterStyles, className), ...rest, children });
|
|
13500
|
-
});
|
|
13501
|
-
DataListRow.displayName = "DataListRow";
|
|
13502
|
-
|
|
13503
13498
|
const DataListRowButton = forwardRef(
|
|
13504
13499
|
({ children, className, type = "button", flushLeft, flushRight, colStart, colEnd, featured, style, ...rest }, ref) => {
|
|
13505
13500
|
const hasColumnOverride = colStart !== void 0 || colEnd !== void 0;
|
|
@@ -13582,6 +13577,21 @@ const DataListRowStatic = forwardRef(
|
|
|
13582
13577
|
);
|
|
13583
13578
|
DataListRowStatic.displayName = "DataListRowStatic";
|
|
13584
13579
|
|
|
13580
|
+
const DataListRowWrapper = forwardRef(
|
|
13581
|
+
({ children, className, ...rest }, ref) => {
|
|
13582
|
+
return /* @__PURE__ */ jsx(
|
|
13583
|
+
"div",
|
|
13584
|
+
{
|
|
13585
|
+
ref,
|
|
13586
|
+
className: cn("grid grid-cols-subgrid gap-0 mx-1", ...dataListRowOuterStyles, className),
|
|
13587
|
+
...rest,
|
|
13588
|
+
children
|
|
13589
|
+
}
|
|
13590
|
+
);
|
|
13591
|
+
}
|
|
13592
|
+
);
|
|
13593
|
+
DataListRowWrapper.displayName = "DataListRowWrapper";
|
|
13594
|
+
|
|
13585
13595
|
function DataListSpacer({ height }) {
|
|
13586
13596
|
if (height <= 0) return null;
|
|
13587
13597
|
return /* @__PURE__ */ jsx("div", { className: "col-span-full", style: { height } });
|
|
@@ -13647,7 +13657,7 @@ function DataListTopCellWithTooltip({ children, tooltip, className }) {
|
|
|
13647
13657
|
/* @__PURE__ */ jsx(TooltipContent, { children: tooltip })
|
|
13648
13658
|
] });
|
|
13649
13659
|
}
|
|
13650
|
-
const breakpointClasses
|
|
13660
|
+
const breakpointClasses = {
|
|
13651
13661
|
sm: { show: "hidden sm:inline-flex", hide: "inline-flex sm:hidden" },
|
|
13652
13662
|
md: { show: "hidden md:inline-flex", hide: "inline-flex md:hidden" },
|
|
13653
13663
|
lg: { show: "hidden lg:inline-flex", hide: "inline-flex lg:hidden" },
|
|
@@ -13662,7 +13672,7 @@ function DataListTopCellSmart({
|
|
|
13662
13672
|
className
|
|
13663
13673
|
}) {
|
|
13664
13674
|
const tooltipText = tooltip ?? (typeof long === "string" ? long : void 0);
|
|
13665
|
-
const bp = breakpointClasses
|
|
13675
|
+
const bp = breakpointClasses[breakpoint];
|
|
13666
13676
|
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
13667
13677
|
/* @__PURE__ */ jsx("span", { className: cn("items-center gap-1", bp.show), children: long }),
|
|
13668
13678
|
/* @__PURE__ */ jsx("span", { className: cn("items-center gap-1", bp.hide), children: short })
|
|
@@ -13713,7 +13723,7 @@ const DataList = Object.assign(DataListRoot, {
|
|
|
13713
13723
|
TopCell: DataListTopCell,
|
|
13714
13724
|
TopCellWithTooltip: DataListTopCellWithTooltip,
|
|
13715
13725
|
TopCellSmart: DataListTopCellSmart,
|
|
13716
|
-
|
|
13726
|
+
RowWrapper: DataListRowWrapper,
|
|
13717
13727
|
RowButton: DataListRowButton,
|
|
13718
13728
|
RowLink: DataListRowLink,
|
|
13719
13729
|
RowStatic: DataListRowStatic,
|
|
@@ -13735,14 +13745,14 @@ const DataList = Object.assign(DataListRoot, {
|
|
|
13735
13745
|
Pagination: DataListPagination
|
|
13736
13746
|
});
|
|
13737
13747
|
|
|
13738
|
-
const widths
|
|
13748
|
+
const widths = ["75%", "50%", "65%", "90%", "60%", "80%"];
|
|
13739
13749
|
function DataListSkeleton({ columns = "auto 1fr auto auto", numberOfRows = 3 }) {
|
|
13740
13750
|
const columnParts = columns.trim().split(/\s+/);
|
|
13741
13751
|
const columnCount = columnParts.length;
|
|
13742
13752
|
const skeletonColumns = columnParts.map((col) => col === "auto" ? "minmax(6rem, auto)" : col).join(" ");
|
|
13743
13753
|
const getPseudoRandomWidth = (rowIdx, colIdx) => {
|
|
13744
|
-
const index = (rowIdx + colIdx + columnCount + numberOfRows) % widths
|
|
13745
|
-
return widths
|
|
13754
|
+
const index = (rowIdx + colIdx + columnCount + numberOfRows) % widths.length;
|
|
13755
|
+
return widths[index];
|
|
13746
13756
|
};
|
|
13747
13757
|
return /* @__PURE__ */ jsx(DataListRoot, { columns: skeletonColumns, children: Array.from({ length: numberOfRows }).map((_, rowIdx) => /* @__PURE__ */ jsx(
|
|
13748
13758
|
"div",
|
|
@@ -13868,221 +13878,6 @@ const TracesDataList = Object.assign(TracesDataListRoot, {
|
|
|
13868
13878
|
NextPageLoading: DataListNextPageLoading
|
|
13869
13879
|
});
|
|
13870
13880
|
|
|
13871
|
-
function EntityListCell({ children, className }) {
|
|
13872
|
-
return /* @__PURE__ */ jsx("span", { className: cn("relative py-4 grid items-center text-ui-md whitespace-nowrap text-neutral3", className), children });
|
|
13873
|
-
}
|
|
13874
|
-
function EntityListTextCell({ children, className }) {
|
|
13875
|
-
return /* @__PURE__ */ jsx(EntityListCell, { className, children });
|
|
13876
|
-
}
|
|
13877
|
-
function EntityListNameCell({ children, className }) {
|
|
13878
|
-
return /* @__PURE__ */ jsx(EntityListCell, { className: cn("text-left text-neutral4", className), children: /* @__PURE__ */ jsx("span", { className: "truncate", children }) });
|
|
13879
|
-
}
|
|
13880
|
-
function EntityListDescriptionCell({ children, className }) {
|
|
13881
|
-
return /* @__PURE__ */ jsx(EntityListCell, { className: cn("text-neutral2", className), children: /* @__PURE__ */ jsx("span", { className: "truncate", children }) });
|
|
13882
|
-
}
|
|
13883
|
-
|
|
13884
|
-
function EntityListNoMatch({ message = "Nothing matches your search", className }) {
|
|
13885
|
-
return /* @__PURE__ */ jsx("div", { className: cn("col-span-full flex flex-col items-center justify-center gap-2 py-12 text-neutral3", className), children: /* @__PURE__ */ jsx("p", { className: "text-ui-md", children: message }) });
|
|
13886
|
-
}
|
|
13887
|
-
|
|
13888
|
-
function EntityListPagination({ currentPage, hasMore, onNextPage, onPrevPage }) {
|
|
13889
|
-
const showNavigation = typeof currentPage === "number" && currentPage > 0 || hasMore;
|
|
13890
|
-
return /* @__PURE__ */ jsxs("div", { className: cn("col-span-full flex items-center justify-center gap-8 pt-6 pb-4 text-ui-md text-neutral3"), children: [
|
|
13891
|
-
/* @__PURE__ */ jsxs("span", { children: [
|
|
13892
|
-
"Page ",
|
|
13893
|
-
/* @__PURE__ */ jsx("b", { children: currentPage ? currentPage + 1 : "1" })
|
|
13894
|
-
] }),
|
|
13895
|
-
showNavigation && /* @__PURE__ */ jsxs(
|
|
13896
|
-
"div",
|
|
13897
|
-
{
|
|
13898
|
-
className: cn(
|
|
13899
|
-
"flex gap-4",
|
|
13900
|
-
"[&>button]:flex [&>button]:items-center [&>button]:gap-2 [&>button]:text-neutral4 [&>button:hover]:text-neutral5 [&>button]:transition-colors [&>button]:border [&>button]:border-border1 [&>button]:p-1 [&>button]:px-2 [&>button]:rounded-md",
|
|
13901
|
-
"[&_svg]:w-[1em] [&_svg]:h-[1em] [&_svg]:text-neutral3"
|
|
13902
|
-
),
|
|
13903
|
-
children: [
|
|
13904
|
-
typeof currentPage === "number" && currentPage > 0 && /* @__PURE__ */ jsxs("button", { type: "button", onClick: onPrevPage, children: [
|
|
13905
|
-
/* @__PURE__ */ jsx(ArrowLeftIcon, {}),
|
|
13906
|
-
"Previous"
|
|
13907
|
-
] }),
|
|
13908
|
-
hasMore && /* @__PURE__ */ jsxs("button", { type: "button", onClick: onNextPage, children: [
|
|
13909
|
-
"Next",
|
|
13910
|
-
/* @__PURE__ */ jsx(ArrowRightIcon, {})
|
|
13911
|
-
] })
|
|
13912
|
-
]
|
|
13913
|
-
}
|
|
13914
|
-
)
|
|
13915
|
-
] });
|
|
13916
|
-
}
|
|
13917
|
-
|
|
13918
|
-
function EntityListRoot({ children, columns, className }) {
|
|
13919
|
-
return /* @__PURE__ */ jsx(
|
|
13920
|
-
"div",
|
|
13921
|
-
{
|
|
13922
|
-
className: cn(
|
|
13923
|
-
"grid bg-surface2 border h-full border-border1 rounded-xl overflow-y-auto content-start",
|
|
13924
|
-
className
|
|
13925
|
-
),
|
|
13926
|
-
style: { gridTemplateColumns: columns },
|
|
13927
|
-
children
|
|
13928
|
-
}
|
|
13929
|
-
);
|
|
13930
|
-
}
|
|
13931
|
-
|
|
13932
|
-
function EntityListRow({ children, className, onClick, selected }) {
|
|
13933
|
-
return /* @__PURE__ */ jsx(
|
|
13934
|
-
"div",
|
|
13935
|
-
{
|
|
13936
|
-
role: onClick ? "button" : void 0,
|
|
13937
|
-
tabIndex: onClick ? 0 : void 0,
|
|
13938
|
-
onClick,
|
|
13939
|
-
onKeyDown: onClick ? (e) => {
|
|
13940
|
-
if (e.currentTarget !== e.target) return;
|
|
13941
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
13942
|
-
e.preventDefault();
|
|
13943
|
-
onClick();
|
|
13944
|
-
}
|
|
13945
|
-
} : void 0,
|
|
13946
|
-
className: cn(
|
|
13947
|
-
"entity-list-row grid grid-cols-subgrid gap-6 lg:gap-8 xl:gap-10 2xl:gap-12 3xl:gap-14 col-span-full cursor-pointer border-y border-b-border1 border-t-transparent px-5",
|
|
13948
|
-
"hover:bg-surface4 hover:border-transparent focus-within:bg-surface4 focus-within:border-transparent focus-within:ring-1 focus-within:ring-inset focus-within:ring-accent1",
|
|
13949
|
-
"[.entity-list-row:hover+&]:border-t-transparent [.entity-list-row:focus-within+&]:border-t-transparent",
|
|
13950
|
-
"transition-colors duration-200 rounded-lg",
|
|
13951
|
-
selected && "bg-surface4 border-transparent",
|
|
13952
|
-
className
|
|
13953
|
-
),
|
|
13954
|
-
children
|
|
13955
|
-
}
|
|
13956
|
-
);
|
|
13957
|
-
}
|
|
13958
|
-
|
|
13959
|
-
function EntityListRowLink({ children, to, className, LinkComponent: Link }) {
|
|
13960
|
-
return /* @__PURE__ */ jsx(
|
|
13961
|
-
Link,
|
|
13962
|
-
{
|
|
13963
|
-
href: to,
|
|
13964
|
-
className: cn(
|
|
13965
|
-
"entity-list-row grid grid-cols-subgrid gap-6 lg:gap-8 xl:gap-10 2xl:gap-12 3xl:gap-14 col-span-full px-5 outline-hidden cursor-pointer border-y border-b-border1 border-t-transparent",
|
|
13966
|
-
"hover:bg-surface4 hover:border-transparent focus-within:bg-surface4 focus-within:border-transparent focus-within:ring-1 focus-within:ring-inset focus-within:ring-accent1",
|
|
13967
|
-
"[.entity-list-row:hover+&]:border-t-transparent [.entity-list-row:focus-within+&]:border-t-transparent",
|
|
13968
|
-
"transition-colors duration-200 rounded-lg",
|
|
13969
|
-
className
|
|
13970
|
-
),
|
|
13971
|
-
children
|
|
13972
|
-
}
|
|
13973
|
-
);
|
|
13974
|
-
}
|
|
13975
|
-
|
|
13976
|
-
function EntityListRows({ children, className }) {
|
|
13977
|
-
return /* @__PURE__ */ jsx("div", { className: cn("grid grid-cols-subgrid col-span-full overflow-y-auto p-1", className), children });
|
|
13978
|
-
}
|
|
13979
|
-
|
|
13980
|
-
function EntityListTop({ children, className }) {
|
|
13981
|
-
return /* @__PURE__ */ jsx(
|
|
13982
|
-
"div",
|
|
13983
|
-
{
|
|
13984
|
-
className: cn(
|
|
13985
|
-
"grid grid-cols-subgrid gap-6 lg:gap-8 xl:gap-10 2xl:gap-12 3xl:gap-14 col-span-full border-b border-border1 px-4 bg-surface2 sticky top-0 z-10",
|
|
13986
|
-
className
|
|
13987
|
-
),
|
|
13988
|
-
children
|
|
13989
|
-
}
|
|
13990
|
-
);
|
|
13991
|
-
}
|
|
13992
|
-
|
|
13993
|
-
const EntityListTopCell = forwardRef(({ children, className }, ref) => {
|
|
13994
|
-
return /* @__PURE__ */ jsx(
|
|
13995
|
-
"span",
|
|
13996
|
-
{
|
|
13997
|
-
ref,
|
|
13998
|
-
className: cn(
|
|
13999
|
-
"h-8 py-1 flex items-center uppercase whitespace-nowrap text-neutral2 tracking-widest text-ui-xs",
|
|
14000
|
-
className
|
|
14001
|
-
),
|
|
14002
|
-
children
|
|
14003
|
-
}
|
|
14004
|
-
);
|
|
14005
|
-
});
|
|
14006
|
-
function EntityListTopCellWithTooltip({ children, tooltip, className }) {
|
|
14007
|
-
return /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
14008
|
-
/* @__PURE__ */ jsx(TooltipTrigger, { children: /* @__PURE__ */ jsx(EntityListTopCell, { className, children }) }),
|
|
14009
|
-
/* @__PURE__ */ jsx(TooltipContent, { children: tooltip })
|
|
14010
|
-
] });
|
|
14011
|
-
}
|
|
14012
|
-
const breakpointClasses = {
|
|
14013
|
-
sm: { show: "hidden sm:inline-flex", hide: "inline-flex sm:hidden" },
|
|
14014
|
-
md: { show: "hidden md:inline-flex", hide: "inline-flex md:hidden" },
|
|
14015
|
-
lg: { show: "hidden lg:inline-flex", hide: "inline-flex lg:hidden" },
|
|
14016
|
-
xl: { show: "hidden xl:inline-flex", hide: "inline-flex xl:hidden" },
|
|
14017
|
-
"2xl": { show: "hidden 2xl:inline-flex", hide: "inline-flex 2xl:hidden" }
|
|
14018
|
-
};
|
|
14019
|
-
function EntityListTopCellSmart({
|
|
14020
|
-
long,
|
|
14021
|
-
short,
|
|
14022
|
-
tooltip,
|
|
14023
|
-
breakpoint = "2xl",
|
|
14024
|
-
className
|
|
14025
|
-
}) {
|
|
14026
|
-
const tooltipText = tooltip ?? (typeof long === "string" ? long : void 0);
|
|
14027
|
-
const bp = breakpointClasses[breakpoint];
|
|
14028
|
-
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
14029
|
-
/* @__PURE__ */ jsx("span", { className: cn("items-center gap-1", bp.show), children: long }),
|
|
14030
|
-
/* @__PURE__ */ jsx("span", { className: cn("items-center gap-1", bp.hide), children: short })
|
|
14031
|
-
] });
|
|
14032
|
-
if (tooltipText) {
|
|
14033
|
-
return /* @__PURE__ */ jsx(
|
|
14034
|
-
EntityListTopCellWithTooltip,
|
|
14035
|
-
{
|
|
14036
|
-
tooltip: tooltipText,
|
|
14037
|
-
className: cn("flex [&_svg]:w-[1.3em] [&_svg]:h-[1.3em]", className),
|
|
14038
|
-
children: content
|
|
14039
|
-
}
|
|
14040
|
-
);
|
|
14041
|
-
}
|
|
14042
|
-
return /* @__PURE__ */ jsx(EntityListTopCell, { className: cn("flex [&_svg]:w-[1.3em] [&_svg]:h-[1.3em]", className), children: content });
|
|
14043
|
-
}
|
|
14044
|
-
|
|
14045
|
-
const EntityList = Object.assign(EntityListRoot, {
|
|
14046
|
-
Top: EntityListTop,
|
|
14047
|
-
TopCell: EntityListTopCell,
|
|
14048
|
-
TopCellWithTooltip: EntityListTopCellWithTooltip,
|
|
14049
|
-
TopCellSmart: EntityListTopCellSmart,
|
|
14050
|
-
Rows: EntityListRows,
|
|
14051
|
-
Row: EntityListRow,
|
|
14052
|
-
RowLink: EntityListRowLink,
|
|
14053
|
-
Cell: EntityListCell,
|
|
14054
|
-
TextCell: EntityListTextCell,
|
|
14055
|
-
NameCell: EntityListNameCell,
|
|
14056
|
-
DescriptionCell: EntityListDescriptionCell,
|
|
14057
|
-
NoMatch: EntityListNoMatch,
|
|
14058
|
-
Pagination: EntityListPagination
|
|
14059
|
-
});
|
|
14060
|
-
|
|
14061
|
-
const widths = ["75%", "50%", "65%", "90%", "60%", "80%"];
|
|
14062
|
-
function EntityListSkeleton({ columns, numberOfRows = 3 }) {
|
|
14063
|
-
const columnParts = columns.trim().split(/\s+/);
|
|
14064
|
-
const columnCount = columnParts.length;
|
|
14065
|
-
const skeletonColumns = columnParts.map((col) => col === "auto" ? "minmax(6rem, auto)" : col).join(" ");
|
|
14066
|
-
const getPseudoRandomWidth = (rowIdx, colIdx) => {
|
|
14067
|
-
const index = (rowIdx + colIdx + columnCount + numberOfRows) % widths.length;
|
|
14068
|
-
return widths[index];
|
|
14069
|
-
};
|
|
14070
|
-
return /* @__PURE__ */ jsx(EntityListRoot, { columns: skeletonColumns, children: Array.from({ length: numberOfRows }).map((_, rowIdx) => /* @__PURE__ */ jsx(
|
|
14071
|
-
"div",
|
|
14072
|
-
{
|
|
14073
|
-
className: "entity-list-row grid grid-cols-subgrid gap-6 lg:gap-8 xl:gap-10 2xl:gap-12 3xl:gap-14 col-span-full px-5 border-y border-b-border1 border-t-transparent transition-colors duration-200 rounded-lg",
|
|
14074
|
-
children: Array.from({ length: columnCount }).map((_2, colIdx) => /* @__PURE__ */ jsx(EntityListCell, { children: /* @__PURE__ */ jsx(
|
|
14075
|
-
"div",
|
|
14076
|
-
{
|
|
14077
|
-
className: "bg-surface4 rounded-md animate-pulse text-transparent h-4 select-none",
|
|
14078
|
-
style: { width: getPseudoRandomWidth(rowIdx, colIdx) }
|
|
14079
|
-
}
|
|
14080
|
-
) }, colIdx))
|
|
14081
|
-
},
|
|
14082
|
-
rowIdx
|
|
14083
|
-
)) });
|
|
14084
|
-
}
|
|
14085
|
-
|
|
14086
13881
|
const LEVEL_CONFIG = {
|
|
14087
13882
|
debug: { label: "DEBUG", color: "#71717a" },
|
|
14088
13883
|
info: { label: "INFO", color: "#60a5fa" },
|
|
@@ -14137,7 +13932,7 @@ const LogsDataList = Object.assign(DataListRoot, {
|
|
|
14137
13932
|
TopCell: DataListTopCell,
|
|
14138
13933
|
TopCellWithTooltip: DataListTopCellWithTooltip,
|
|
14139
13934
|
TopCellSmart: DataListTopCellSmart,
|
|
14140
|
-
|
|
13935
|
+
RowWrapper: DataListRowWrapper,
|
|
14141
13936
|
RowButton: DataListRowButton,
|
|
14142
13937
|
RowLink: DataListRowLink,
|
|
14143
13938
|
Spacer: DataListSpacer,
|
|
@@ -14151,31 +13946,6 @@ const LogsDataList = Object.assign(DataListRoot, {
|
|
|
14151
13946
|
NextPageLoading: DataListNextPageLoading
|
|
14152
13947
|
});
|
|
14153
13948
|
|
|
14154
|
-
function EntityListPageLayoutRoot({ children, className }) {
|
|
14155
|
-
const pageHeading = usePageHeading();
|
|
14156
|
-
return /* @__PURE__ */ jsxs(
|
|
14157
|
-
"main",
|
|
14158
|
-
{
|
|
14159
|
-
className: cn(
|
|
14160
|
-
"w-full h-full overflow-hidden grid grid-rows-[auto_auto] max-w-[110rem] px-10 mx-auto gap-4 py-6 content-start",
|
|
14161
|
-
className
|
|
14162
|
-
),
|
|
14163
|
-
children: [
|
|
14164
|
-
pageHeading && /* @__PURE__ */ jsx("h1", { className: "sr-only", children: pageHeading }),
|
|
14165
|
-
children
|
|
14166
|
-
]
|
|
14167
|
-
}
|
|
14168
|
-
);
|
|
14169
|
-
}
|
|
14170
|
-
|
|
14171
|
-
function EntityListPageLayoutTop({ children, className }) {
|
|
14172
|
-
return /* @__PURE__ */ jsx("div", { className: cn("grid gap-4", className), children });
|
|
14173
|
-
}
|
|
14174
|
-
|
|
14175
|
-
const EntityListPageLayout = Object.assign(EntityListPageLayoutRoot, {
|
|
14176
|
-
Top: EntityListPageLayoutTop
|
|
14177
|
-
});
|
|
14178
|
-
|
|
14179
13949
|
function PageLayoutColumn({ children, className }) {
|
|
14180
13950
|
return /* @__PURE__ */ jsx("div", { className: cn("grid content-start", className), children });
|
|
14181
13951
|
}
|
|
@@ -22315,5 +22085,5 @@ function useLogsListNavigation(logs, featuredLogId, onFeaturedChange, featuredTr
|
|
|
22315
22085
|
};
|
|
22316
22086
|
}
|
|
22317
22087
|
|
|
22318
|
-
export { AddField, AgentCoinIcon, AgentIcon, AgentNetworkCoinIcon, AiIcon, AlertDialog, AmazonIcon, AnthropicChatIcon, AnthropicMessagesIcon, ApiIcon, Avatar, AzureIcon, Badge, BarListContent, BorderColors, BorderRadius, BranchIcon, BrandLoader, Breadcrumb, Button, ButtonsGroup, ButtonsGroupSeparator, ButtonsGroupText, CHART_COLORS, CONTEXT_FIELD_IDS, Card, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardTitle, Cell, CheckIcon, Checkbox, ChevronIcon, Chip, ChipsGroup, CodeBlock$1 as CodeBlock, CodeDiff, CodeEditor, CohereIcon, Collapsible, CollapsibleContent, CollapsiblePanel, CollapsibleTrigger, Colors, Column, Columns, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CommitIcon, ContentBlock, ContentBlocks, ContextMenu, CopyButton, CrossIcon, Crumb, DATE_PRESETS, DEFAULT_LOGS_FILTERS_STORAGE_KEY, DEFAULT_TRACE_FILTERS_STORAGE_KEY, DashboardCard, DataCodeSection, DataDetailsPanel, DataKeysAndValues, DataList, DataListSkeleton, DataPanel, DatasetsIcon, DatePicker, DateRangeSelector, DateTimeCell, DateTimePicker, DateTimePickerContent, DateTimeRangePicker, DbIcon, DebugIcon, DefaultTrigger, DeploymentIcon, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DividerIcon, DocsIcon, Drawer, DrawerBackdrop, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerIndent, DrawerIndentBackground, DrawerPopup, DrawerPortal, DrawerProvider, DrawerSwipeArea, DrawerTitle, DrawerTrigger, DrawerViewport, DropdownMenu, EXTENSION_TO_MIME, ElementSelect, EmptyState, Entity, EntityContent, EntityDescription, EntityHeader, EntityIcon,
|
|
22088
|
+
export { AddField, AgentCoinIcon, AgentIcon, AgentNetworkCoinIcon, AiIcon, AlertDialog, AmazonIcon, AnthropicChatIcon, AnthropicMessagesIcon, ApiIcon, Avatar, AzureIcon, Badge, BarListContent, BorderColors, BorderRadius, BranchIcon, BrandLoader, Breadcrumb, Button, ButtonsGroup, ButtonsGroupSeparator, ButtonsGroupText, CHART_COLORS, CONTEXT_FIELD_IDS, Card, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardTitle, Cell, CheckIcon, Checkbox, ChevronIcon, Chip, ChipsGroup, CodeBlock$1 as CodeBlock, CodeDiff, CodeEditor, CohereIcon, Collapsible, CollapsibleContent, CollapsiblePanel, CollapsibleTrigger, Colors, Column, Columns, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CommitIcon, ContentBlock, ContentBlocks, ContextMenu, CopyButton, CrossIcon, Crumb, DATE_PRESETS, DEFAULT_LOGS_FILTERS_STORAGE_KEY, DEFAULT_TRACE_FILTERS_STORAGE_KEY, DashboardCard, DataCodeSection, DataDetailsPanel, DataKeysAndValues, DataList, DataListSkeleton, DataPanel, DatasetsIcon, DatePicker, DateRangeSelector, DateTimeCell, DateTimePicker, DateTimePickerContent, DateTimeRangePicker, DbIcon, DebugIcon, DefaultTrigger, DeploymentIcon, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DividerIcon, DocsIcon, Drawer, DrawerBackdrop, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerIndent, DrawerIndentBackground, DrawerPopup, DrawerPortal, DrawerProvider, DrawerSwipeArea, DrawerTitle, DrawerTrigger, DrawerViewport, DropdownMenu, EXTENSION_TO_MIME, ElementSelect, EmptyState, Entity, EntityContent, EntityDescription, EntityHeader, EntityIcon, EntityName, Entry, EntryCell, EnvIcon, ErrorBoundary, ErrorState, ExperimentsIcon, Field, FieldBlock, FieldBlocksLayout, FieldDescription, FieldList, FieldName, FieldNullable, FieldOptional, FieldRemove, FieldType, FiltersIcon, FolderIcon, FontSizes, GithubCoinIcon, GithubIcon, Glows, GoogleIcon, GroqIcon, Header$1 as Header, HeaderAction, HeaderGroup, HeaderTitle, HomeIcon, HorizontalBars, HoverCard, HoverCardContent, HoverCardTrigger, HoverPopover, Icon, InfoIcon, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, ItemList, ItemListSkeleton, JSONSchemaForm, JudgeIcon, Kbd, KeyValueList, KpiCardView, LOGS_DATE_FROM_PARAM, LOGS_DATE_PRESET_PARAM, LOGS_DATE_PRESET_VALUES, LOGS_DATE_TO_PARAM, LOGS_PROPERTY_FILTER_FIELD_IDS, LOGS_PROPERTY_FILTER_PARAM_BY_FIELD, LOGS_ROOT_ENTITY_TYPES, LOGS_ROOT_ENTITY_TYPE_OPTIONS, LOGS_ROOT_ENTITY_TYPE_PARAM, LOG_LEVEL_OPTIONS, LOG_LEVEL_VALUES, Label, LatencyCardView, LatencyIcon, LineHeights, ListSearch, LogDetailsView, Logo, LogoWithoutText, LogsDataList, DataListSkeleton as LogsDataListSkeleton, LogsErrorContent, LogsIcon, LogsLayout, LogsListView, LogsToolbar, MainContentContent, MainContentLayout, MainHeader, MainSidebar, MainSidebarMobileTrigger, MainSidebarProvider, MainSidebarTrigger, MarkdownRenderer, MastraIcon, McpCoinIcon, McpServerIcon, MemoryCardView, MemoryIcon, MetricsCard, MetricsDataTable, MetricsFlexGrid, MetricsIcon, MetricsKpiCard, MetricsLineChart, MetricsLineChartTooltip, MetricsProvider, MistralIcon, ModelUsageCostCardView, MultiColumn, MultiCombobox, NestedFields, NetlifyIcon, NoDataPageLayout, NoLogsInfo, NoTracesInfo, Notice, OPERATORS, OPERATOR_LABELS, OpenAIIcon, OpenErrorsInLogsButton, OpenInTracesButton, OpenaiChatIcon, PageHeader, PageHeadingContext, PageLayout, PanelSeparator, PermissionDenied, PickMultiPanel, Popover, PopoverContent, PopoverTrigger, PrevNextNav, ProcessStepList, ProcessStepListItem, ProcessStepProgressBar, ProcessorIcon, PromptIcon, PropertyFilterActions, PropertyFilterApplied, PropertyFilterCreator, ROOT_ENTITY_TYPES, ROOT_ENTITY_TYPE_OPTIONS, RadioGroup, RadioGroupItem, RepoIcon, RequestContextIcon, Root$1 as Root, Row, RuleBuilder, RuleFieldSelect, RuleOperatorSelect, RuleRow, RuleValueInput, ScorersIcon, ScoresCardView, ScoresDataList, ScrollArea, ScrollBar, ScrollableContainer, SearchFieldBlock, Searchbar, SearchbarWrapper, Section, SectionCard, SectionRoot, Sections, Select, SelectContent, SelectDataFilter, SelectFieldBlock, SelectGroup, SelectItem, SelectTrigger, SelectValue, SessionExpired, SettingsIcon, SettingsRow, Shadows, SideDialog, Sizes, Skeleton, SkillIcon, SlashIcon, Slider, Spacings, SpanDataPanelView, SpanDetailsView, SpanTokenUsage, Spinner, StackedRunsBars, StatusBadge, SubSectionRoot, Switch, TRACE_ANCHOR_SPAN_ID_PARAM, TRACE_DATE_FROM_PARAM, TRACE_DATE_PRESET_PARAM, TRACE_DATE_PRESET_VALUES, TRACE_DATE_TO_PARAM, TRACE_LIST_MODE_OPTIONS, TRACE_LIST_MODE_PARAM, TRACE_LIST_MODE_VALUES, TRACE_PROPERTY_FILTER_FIELD_IDS, TRACE_PROPERTY_FILTER_PARAM_BY_FIELD, TRACE_ROOT_ENTITY_TYPE_PARAM, TRACE_STATUS_OPTIONS, TRACE_STATUS_PARAM, TRACE_STATUS_VALUES, TRACE_SYNTHETIC_FILTER_FIELD_IDS, Tab, TabContent, TabList, Table, Tabs, Tbody, TextAndIcon, TextFieldBlock, Textarea, Th, Thead, ThemeProvider, ThemeToggle, TimePicker, TimelineExpandCol, TimelineNameCol, TimelineStructureSign, TimelineTimingCol, Toaster, TokenUsageByAgentCardView, ToolCoinIcon, ToolsIcon, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TraceDataPanelView, TraceDetailsView, TraceIcon, TraceKeysAndValues, TraceTimeline, TraceTimelineSpan, TracesDataList, TracesErrorContent, TracesLayout, TracesListModeToggle, TracesListView, TracesToolbar, TracesVolumeCardView, Tree, Truncate, TsIcon, Txt, TxtCell, VARIABLE_PATTERN, VariablesIcon, WorkflowCoinIcon, WorkflowIcon, WorkspacesIcon, XGroqIcon, applyLogsPropertyFilterTokens, applyMetricsPropertyFilterTokens, applyTracePropertyFilterTokens, buildLogsDrilldownUrl, buildLogsListFilters, buildMetricsDimensionalFilter, buildTraceListFilters, buildTracesDrilldownUrl, buttonVariants, buttonsGroupVariants, clearSavedLogsFilters, clearSavedMetricsFilters, clearSavedTraceFilters, cn, comboboxStyles, countLeafRules, createDefaultRule, createDefaultRuleGroup, createDrawerHandle, createField, createLogsPropertyFilterFields, createMetricsPropertyFilterFields, createTracePropertyFilterFields, createVariableAutocomplete, fieldsToJSONSchema, fileToBase64, flattenSchemaToVariables, focusRing, formElementFocus, formElementFocusWithin, formElementRadius, formElementSizes, formElementTransition, formatCompact, formatCost, formatHierarchicalSpans, formatJSON, generateDefaultValues, getAllSpanIds, getChildFieldOptions, getFieldOptionAtPath, getFieldOptionsFromSchema, getFileContentType, getInputPreview, getIsLinkActive, getItemListColumnTemplate, getLogsPropertyFilterTokens, getMainContentContentClassName, getMetricsPropertyFilterTokens, getPreservedLogsFilterParams, getPreservedTraceFilterParams, getShortId$1 as getShortId, getSpanDescendantIds, getSpanTypeUi, getStatusIcon, getToNextItemFn, getToPreviousItemFn, getTokenLimitMessage, getTracePropertyFilterTokens, hasAnyLogsFilterParams, hasAnyMetricsFilterParams, hasAnyTraceFilterParams, highlight, hoverEffects, inputVariants, is401UnauthorizedError, is403ForbiddenError, isBranchesNotSupportedError, isNonRetryableError, isObjectEmpty, isRule, isRuleGroup, isTokenLimitExceeded, isValidJson, isValidPreset, jsonSchemaToFields, loadLogsFiltersFromStorage, loadMetricsFiltersFromStorage, loadTraceFiltersFromStorage, lodashTitleCase, narrowWindowToBucket, navItemClasses, neutralizeFilterTokens, neutralizeLogsFilterTokens, parseError, parseFieldPath, saveLogsFiltersToStorage, saveMetricsFiltersToStorage, saveTraceFiltersToStorage, sharedFormElementDisabledStyle, sharedFormElementFocusStyle, sharedFormElementStyle, shouldRetryQuery, spanTypePrefixes, stringToColor, textareaVariants, toSigFigs, toast, transitions, truncateString, useActiveResourcesKpiMetrics, useActiveThreadsKpiMetrics, useAgentRunsKpiMetrics, useAutoscroll, useBranch, useCodemirrorTheme$3 as useCodemirrorTheme, useCopyToClipboard, useDrilldown, useEntityNames, useEnvironments, useInView, useJSONSchemaForm, useJSONSchemaFormField, useJSONSchemaFormNestedContext, useLatencyMetrics, useLogs, useLogsFilterPersistence, useLogsListNavigation, useLogsUrlState, useMainSidebar, useMaybeSidebar, useMetrics, useMetricsFilters, useModelCostKpiMetrics, useModelUsageCostMetrics, usePageHeading, usePlaygroundStore, useScoresMetrics, useServiceNames, useSpanDetail, useTableKeyboardNavigation, useTags, useTheme, useTokenUsageByAgentMetrics, useTopActiveThreadsMetrics, useTopResourcesByThreadsMetrics, useTotalTokensKpiMetrics, useTraceFilterPersistence, useTraceLightSpans, useTraceListNavigation, useTraceOrBranchSpans, useTraceSpanNavigation, useTraceSpans, useTraceUrlState, useTraceVolumeMetrics, useTraces, variableHighlight };
|
|
22319
22089
|
//# sourceMappingURL=index.es.js.map
|