@mastra/playground-ui 22.1.2 → 22.1.3-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/dist/index.es.js
CHANGED
|
@@ -9437,7 +9437,7 @@ function PageHeaderDescription({ children, isLoading }) {
|
|
|
9437
9437
|
return /* @__PURE__ */ jsx(
|
|
9438
9438
|
"p",
|
|
9439
9439
|
{
|
|
9440
|
-
className: cn("text-
|
|
9440
|
+
className: cn("text-neutral2 text-sm max-w-[35rem] flex flex-wrap gap-x-4 gap-y-1 mt-1", {
|
|
9441
9441
|
"bg-surface4 w-[40rem] max-w-[80%] rounded-md animate-pulse": isLoading
|
|
9442
9442
|
}),
|
|
9443
9443
|
children: isLoading ? /* @__PURE__ */ jsx(Fragment, { children: " " }) : /* @__PURE__ */ jsx(Fragment, { children })
|
|
@@ -12475,13 +12475,10 @@ function DataKeysAndValuesValue({ className, children }) {
|
|
|
12475
12475
|
function isExternalUrl(href) {
|
|
12476
12476
|
return /^https?:\/\//.test(href);
|
|
12477
12477
|
}
|
|
12478
|
-
function DataKeysAndValuesValueLink({
|
|
12479
|
-
className,
|
|
12480
|
-
children,
|
|
12481
|
-
href,
|
|
12482
|
-
LinkComponent: Link
|
|
12483
|
-
}) {
|
|
12478
|
+
function DataKeysAndValuesValueLink({ className, children, href, as }) {
|
|
12484
12479
|
const isExternal = isExternalUrl(href);
|
|
12480
|
+
const Component = as || "a";
|
|
12481
|
+
const navigationProps = as ? { href, to: href } : { href };
|
|
12485
12482
|
const linkClassName = cn(
|
|
12486
12483
|
"truncate flex items-center gap-2 hover:text-neutral4 transition-colors",
|
|
12487
12484
|
"[&>svg]:w-4 [&>svg]:h-4 [&>svg]:shrink-0 [&>svg]:opacity-70 [&:hover>svg]:opacity-100"
|
|
@@ -12492,7 +12489,7 @@ function DataKeysAndValuesValueLink({
|
|
|
12492
12489
|
/* @__PURE__ */ jsx(ExternalLinkIcon, {})
|
|
12493
12490
|
] }) });
|
|
12494
12491
|
}
|
|
12495
|
-
return /* @__PURE__ */ jsx("dd", { className: cn(dataKeysAndValuesValueStyles, className), children: /* @__PURE__ */ jsxs(
|
|
12492
|
+
return /* @__PURE__ */ jsx("dd", { className: cn(dataKeysAndValuesValueStyles, className), children: /* @__PURE__ */ jsxs(Component, { ...navigationProps, className: linkClassName, children: [
|
|
12496
12493
|
/* @__PURE__ */ jsx("span", { children }),
|
|
12497
12494
|
/* @__PURE__ */ jsx(Link2Icon, {})
|
|
12498
12495
|
] }) });
|