@mastra/playground-ui 22.1.2-alpha.3 → 22.1.2-alpha.4
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 +13 -0
- package/dist/index.cjs.js +32 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +32 -1
- package/dist/index.es.js.map +1 -1
- package/dist/src/ds/components/EntityList/entity-list-pagination.d.ts +7 -0
- package/dist/src/ds/components/EntityList/entity-list.d.ts +2 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 22.1.2-alpha.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix dataset detail tab badges to use total item and experiment counts instead of currently loaded rows. ([#14994](https://github.com/mastra-ai/mastra/pull/14994))
|
|
8
|
+
|
|
9
|
+
- Added `EntityList.Pagination` sub-component for server-side pagination of `EntityList` views. Mirrors the existing `ItemList.Pagination` API. ([#15353](https://github.com/mastra-ai/mastra/pull/15353))
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`cbdf3e1`](https://github.com/mastra-ai/mastra/commit/cbdf3e12b3d0c30a6e5347be658e2009648c130a), [`8fe46d3`](https://github.com/mastra-ai/mastra/commit/8fe46d354027f3f0f0846e64219772348de106dd), [`18c67db`](https://github.com/mastra-ai/mastra/commit/18c67dbb9c9ebc26f26f65f7d3ff836e5691ef46), [`8dcc77e`](https://github.com/mastra-ai/mastra/commit/8dcc77e78a5340f5848f74b9e9f1b3da3513c1f5), [`aa67fc5`](https://github.com/mastra-ai/mastra/commit/aa67fc59ee8a5eeff1f23eb05970b8d7a536c8ff), [`fa8140b`](https://github.com/mastra-ai/mastra/commit/fa8140bcd4251d2e3ac85fdc5547dfc4f372b5be), [`190f452`](https://github.com/mastra-ai/mastra/commit/190f45258b0640e2adfc8219fa3258cdc5b8f071), [`7e7bf60`](https://github.com/mastra-ai/mastra/commit/7e7bf606886bf374a6f9d4ca9b09dd83d0533372), [`184907d`](https://github.com/mastra-ai/mastra/commit/184907d775d8609c03c26e78ccaf37315f3aa287), [`0c4cd13`](https://github.com/mastra-ai/mastra/commit/0c4cd131931c04ac5405373c932a242dbe88edd6), [`b16a753`](https://github.com/mastra-ai/mastra/commit/b16a753d5748440248d7df82e29bb987a9c8386c)]:
|
|
12
|
+
- @mastra/core@1.25.0-alpha.3
|
|
13
|
+
- @mastra/client-js@1.13.4-alpha.3
|
|
14
|
+
- @mastra/react@0.2.26-alpha.3
|
|
15
|
+
|
|
3
16
|
## 22.1.2-alpha.3
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.cjs.js
CHANGED
|
@@ -11462,6 +11462,36 @@ function EntityListNoMatch({ message = "Nothing matches your search", className
|
|
|
11462
11462
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("col-span-full flex flex-col items-center justify-center gap-2 py-12 text-neutral3", className), children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-ui-md", children: message }) });
|
|
11463
11463
|
}
|
|
11464
11464
|
|
|
11465
|
+
function EntityListPagination({ currentPage, hasMore, onNextPage, onPrevPage }) {
|
|
11466
|
+
const showNavigation = typeof currentPage === "number" && currentPage > 0 || hasMore;
|
|
11467
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("col-span-full flex items-center justify-center gap-8 pt-6 pb-4 text-ui-md text-neutral3"), children: [
|
|
11468
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
|
11469
|
+
"Page ",
|
|
11470
|
+
/* @__PURE__ */ jsxRuntime.jsx("b", { children: currentPage ? currentPage + 1 : "1" })
|
|
11471
|
+
] }),
|
|
11472
|
+
showNavigation && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
11473
|
+
"div",
|
|
11474
|
+
{
|
|
11475
|
+
className: cn(
|
|
11476
|
+
"flex gap-4",
|
|
11477
|
+
"[&>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",
|
|
11478
|
+
"[&_svg]:w-[1em] [&_svg]:h-[1em] [&_svg]:text-neutral3"
|
|
11479
|
+
),
|
|
11480
|
+
children: [
|
|
11481
|
+
typeof currentPage === "number" && currentPage > 0 && /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", onClick: onPrevPage, children: [
|
|
11482
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeftIcon, {}),
|
|
11483
|
+
"Previous"
|
|
11484
|
+
] }),
|
|
11485
|
+
hasMore && /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", onClick: onNextPage, children: [
|
|
11486
|
+
"Next",
|
|
11487
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowRightIcon, {})
|
|
11488
|
+
] })
|
|
11489
|
+
]
|
|
11490
|
+
}
|
|
11491
|
+
)
|
|
11492
|
+
] });
|
|
11493
|
+
}
|
|
11494
|
+
|
|
11465
11495
|
function EntityListRoot({ children, columns, className }) {
|
|
11466
11496
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11467
11497
|
"div",
|
|
@@ -11601,7 +11631,8 @@ const EntityList = Object.assign(EntityListRoot, {
|
|
|
11601
11631
|
TextCell: EntityListTextCell,
|
|
11602
11632
|
NameCell: EntityListNameCell,
|
|
11603
11633
|
DescriptionCell: EntityListDescriptionCell,
|
|
11604
|
-
NoMatch: EntityListNoMatch
|
|
11634
|
+
NoMatch: EntityListNoMatch,
|
|
11635
|
+
Pagination: EntityListPagination
|
|
11605
11636
|
});
|
|
11606
11637
|
|
|
11607
11638
|
const widths = ["75%", "50%", "65%", "90%", "60%", "80%"];
|