@mastra/playground-ui 57.0.0-alpha.3 → 57.0.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/components/DisabledFeatureButton.cjs.js +44 -0
- package/dist/components/DisabledFeatureButton.cjs.js.map +1 -0
- package/dist/components/DisabledFeatureButton.d.ts +2 -0
- package/dist/components/DisabledFeatureButton.es.js +40 -0
- package/dist/components/DisabledFeatureButton.es.js.map +1 -0
- package/dist/components/LogsDataList.cjs.js +2 -0
- package/dist/components/LogsDataList.cjs.js.map +1 -1
- package/dist/components/LogsDataList.es.js +2 -0
- package/dist/components/LogsDataList.es.js.map +1 -1
- package/dist/components/Workflow.cjs.js +1 -0
- package/dist/components/Workflow.cjs.js.map +1 -1
- package/dist/components/Workflow.es.js +2 -1
- package/dist/components/Workflow.es.js.map +1 -1
- package/dist/domains/traces/components/traces-page-skeleton.cjs.js +2 -0
- package/dist/domains/traces/components/traces-page-skeleton.cjs.js.map +1 -1
- package/dist/domains/traces/components/traces-page-skeleton.es.js +2 -0
- package/dist/domains/traces/components/traces-page-skeleton.es.js.map +1 -1
- package/dist/domains/traces/hooks/use-trace-query.cjs.js +1 -1
- package/dist/domains/traces/hooks/use-trace-query.cjs.js.map +1 -1
- package/dist/domains/traces/hooks/use-trace-query.es.js +1 -1
- package/dist/domains/traces/hooks/use-trace-query.es.js.map +1 -1
- package/dist/ee/signals/components/entity-index-list.cjs.js +2 -0
- package/dist/ee/signals/components/entity-index-list.cjs.js.map +1 -1
- package/dist/ee/signals/components/entity-index-list.es.js +2 -0
- package/dist/ee/signals/components/entity-index-list.es.js.map +1 -1
- package/dist/ee/signals/components/trace-intelligence-entity-index.cjs.js +1 -0
- package/dist/ee/signals/components/trace-intelligence-entity-index.cjs.js.map +1 -1
- package/dist/ee/signals/components/trace-intelligence-entity-index.es.js +1 -0
- package/dist/ee/signals/components/trace-intelligence-entity-index.es.js.map +1 -1
- package/dist/src/domains/traces/hooks/use-trace-query.d.ts +4 -10
- package/dist/src/ds/components/DisabledFeatureButton/disabled-feature-button.d.ts +13 -0
- package/dist/src/ds/components/DisabledFeatureButton/index.d.ts +1 -0
- package/dist/src/ds/components/Workflow/types.d.ts +1 -1
- package/dist/style.css +4 -0
- package/package.json +7 -7
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
const lucideReact = require('lucide-react');
|
|
7
|
+
const Button = require('../Button-MMZPEb_q.cjs');
|
|
8
|
+
const tooltip = require('../tooltip-FvWL16Xn.cjs');
|
|
9
|
+
const primitives_transitions = require('../primitives/transitions.cjs.js');
|
|
10
|
+
const utils_cn = require('../cn-DG0X1KEP.cjs');
|
|
11
|
+
|
|
12
|
+
function DisabledFeatureButton({ icon, label, tooltipContent, docsHref }) {
|
|
13
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(tooltip.Tooltip, { children: [
|
|
14
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15
|
+
tooltip.TooltipTrigger,
|
|
16
|
+
{
|
|
17
|
+
render: /* @__PURE__ */ jsxRuntime.jsx("span", { role: "button", tabIndex: 0, "aria-disabled": "true", "aria-label": label, className: "inline-flex", children: /* @__PURE__ */ jsxRuntime.jsx(Button.Button, { variant: "ghost", size: "icon-md", disabled: true, "aria-hidden": "true", tabIndex: -1, children: icon }) })
|
|
18
|
+
}
|
|
19
|
+
),
|
|
20
|
+
/* @__PURE__ */ jsxRuntime.jsx(tooltip.TooltipContent, { side: "bottom", className: "max-w-[calc(100dvw-1rem)]", children: /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
|
21
|
+
tooltipContent,
|
|
22
|
+
" ",
|
|
23
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
24
|
+
"a",
|
|
25
|
+
{
|
|
26
|
+
href: docsHref,
|
|
27
|
+
target: "_blank",
|
|
28
|
+
rel: "noopener noreferrer",
|
|
29
|
+
className: utils_cn.cn(
|
|
30
|
+
"inline-flex items-center gap-1 text-inherit underline hover:text-foreground",
|
|
31
|
+
primitives_transitions.controlStateColorTransition
|
|
32
|
+
),
|
|
33
|
+
children: [
|
|
34
|
+
"Learn more",
|
|
35
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ExternalLink, { className: "size-3" })
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
] }) })
|
|
40
|
+
] });
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
exports.DisabledFeatureButton = DisabledFeatureButton;
|
|
44
|
+
//# sourceMappingURL=DisabledFeatureButton.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DisabledFeatureButton.cjs.js","sources":["../../src/ds/components/DisabledFeatureButton/disabled-feature-button.tsx"],"sourcesContent":["import { ExternalLink } from 'lucide-react';\nimport type { ReactNode } from 'react';\n\nimport { Button } from '@/ds/components/Button';\nimport { Tooltip, TooltipContent, TooltipTrigger } from '@/ds/components/Tooltip';\nimport { controlStateColorTransition } from '@/ds/primitives/transitions';\nimport { cn } from '@/lib/utils';\n\nexport type DisabledFeatureButtonProps = {\n icon: ReactNode;\n label: string;\n tooltipContent: ReactNode;\n docsHref: `https://${string}`;\n};\n\n/**\n * Icon-only, disabled control for a feature that is not available yet.\n * The focusable wrapper carries the accessible name and disabled state so the\n * tooltip stays reachable by keyboard while the visual button remains inert.\n */\nexport function DisabledFeatureButton({ icon, label, tooltipContent, docsHref }: DisabledFeatureButtonProps) {\n return (\n <Tooltip>\n <TooltipTrigger\n render={\n <span role=\"button\" tabIndex={0} aria-disabled=\"true\" aria-label={label} className=\"inline-flex\">\n <Button variant=\"ghost\" size=\"icon-md\" disabled aria-hidden=\"true\" tabIndex={-1}>\n {icon}\n </Button>\n </span>\n }\n />\n <TooltipContent side=\"bottom\" className=\"max-w-[calc(100dvw-1rem)]\">\n <span>\n {tooltipContent}{' '}\n <a\n href={docsHref}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className={cn(\n 'inline-flex items-center gap-1 text-inherit underline hover:text-foreground',\n controlStateColorTransition,\n )}\n >\n Learn more\n <ExternalLink className=\"size-3\" />\n </a>\n </span>\n </TooltipContent>\n </Tooltip>\n );\n}\n"],"names":["Tooltip","jsx","TooltipTrigger","Button","TooltipContent","jsxs","cn","controlStateColorTransition","ExternalLink"],"mappings":";;;;;;;;;;;AAoBO,SAAS,sBAAsB,EAAE,IAAA,EAAM,KAAA,EAAO,cAAA,EAAgB,UAAS,EAA+B;AAC3G,EAAA,uCACGA,eAAA,EAAA,EACC,QAAA,EAAA;AAAA,oBAAAC,cAAA;AAAA,MAACC,sBAAA;AAAA,MAAA;AAAA,QACC,MAAA,kBACED,cAAA,CAAC,MAAA,EAAA,EAAK,IAAA,EAAK,QAAA,EAAS,QAAA,EAAU,CAAA,EAAG,eAAA,EAAc,MAAA,EAAO,YAAA,EAAY,KAAA,EAAO,SAAA,EAAU,aAAA,EACjF,yCAACE,aAAA,EAAA,EAAO,OAAA,EAAQ,OAAA,EAAQ,IAAA,EAAK,SAAA,EAAU,QAAA,EAAQ,IAAA,EAAC,aAAA,EAAY,MAAA,EAAO,QAAA,EAAU,EAAA,EAC1E,QAAA,EAAA,IAAA,EACH,CAAA,EACF;AAAA;AAAA,KAEJ;AAAA,mCACCC,sBAAA,EAAA,EAAe,IAAA,EAAK,UAAS,SAAA,EAAU,2BAAA,EACtC,0CAAC,MAAA,EAAA,EACE,QAAA,EAAA;AAAA,MAAA,cAAA;AAAA,MAAgB,GAAA;AAAA,sBACjBC,eAAA;AAAA,QAAC,GAAA;AAAA,QAAA;AAAA,UACC,IAAA,EAAM,QAAA;AAAA,UACN,MAAA,EAAO,QAAA;AAAA,UACP,GAAA,EAAI,qBAAA;AAAA,UACJ,SAAA,EAAWC,WAAA;AAAA,YACT,6EAAA;AAAA,YACAC;AAAA,WACF;AAAA,UACD,QAAA,EAAA;AAAA,YAAA,YAAA;AAAA,4BAECN,cAAA,CAACO,wBAAA,EAAA,EAAa,SAAA,EAAU,QAAA,EAAS;AAAA;AAAA;AAAA;AACnC,KAAA,EACF,CAAA,EACF;AAAA,GAAA,EACF,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { ExternalLink } from 'lucide-react';
|
|
3
|
+
import { B as Button } from '../Button-KUj0U-5I.js';
|
|
4
|
+
import { T as Tooltip, c as TooltipTrigger, a as TooltipContent } from '../tooltip-BrDiP0RI.js';
|
|
5
|
+
import { controlStateColorTransition } from '../primitives/transitions.es.js';
|
|
6
|
+
import { c as cn } from '../cn-65Adrsfj.js';
|
|
7
|
+
|
|
8
|
+
function DisabledFeatureButton({ icon, label, tooltipContent, docsHref }) {
|
|
9
|
+
return /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
10
|
+
/* @__PURE__ */ jsx(
|
|
11
|
+
TooltipTrigger,
|
|
12
|
+
{
|
|
13
|
+
render: /* @__PURE__ */ jsx("span", { role: "button", tabIndex: 0, "aria-disabled": "true", "aria-label": label, className: "inline-flex", children: /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon-md", disabled: true, "aria-hidden": "true", tabIndex: -1, children: icon }) })
|
|
14
|
+
}
|
|
15
|
+
),
|
|
16
|
+
/* @__PURE__ */ jsx(TooltipContent, { side: "bottom", className: "max-w-[calc(100dvw-1rem)]", children: /* @__PURE__ */ jsxs("span", { children: [
|
|
17
|
+
tooltipContent,
|
|
18
|
+
" ",
|
|
19
|
+
/* @__PURE__ */ jsxs(
|
|
20
|
+
"a",
|
|
21
|
+
{
|
|
22
|
+
href: docsHref,
|
|
23
|
+
target: "_blank",
|
|
24
|
+
rel: "noopener noreferrer",
|
|
25
|
+
className: cn(
|
|
26
|
+
"inline-flex items-center gap-1 text-inherit underline hover:text-foreground",
|
|
27
|
+
controlStateColorTransition
|
|
28
|
+
),
|
|
29
|
+
children: [
|
|
30
|
+
"Learn more",
|
|
31
|
+
/* @__PURE__ */ jsx(ExternalLink, { className: "size-3" })
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
)
|
|
35
|
+
] }) })
|
|
36
|
+
] });
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { DisabledFeatureButton };
|
|
40
|
+
//# sourceMappingURL=DisabledFeatureButton.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DisabledFeatureButton.es.js","sources":["../../src/ds/components/DisabledFeatureButton/disabled-feature-button.tsx"],"sourcesContent":["import { ExternalLink } from 'lucide-react';\nimport type { ReactNode } from 'react';\n\nimport { Button } from '@/ds/components/Button';\nimport { Tooltip, TooltipContent, TooltipTrigger } from '@/ds/components/Tooltip';\nimport { controlStateColorTransition } from '@/ds/primitives/transitions';\nimport { cn } from '@/lib/utils';\n\nexport type DisabledFeatureButtonProps = {\n icon: ReactNode;\n label: string;\n tooltipContent: ReactNode;\n docsHref: `https://${string}`;\n};\n\n/**\n * Icon-only, disabled control for a feature that is not available yet.\n * The focusable wrapper carries the accessible name and disabled state so the\n * tooltip stays reachable by keyboard while the visual button remains inert.\n */\nexport function DisabledFeatureButton({ icon, label, tooltipContent, docsHref }: DisabledFeatureButtonProps) {\n return (\n <Tooltip>\n <TooltipTrigger\n render={\n <span role=\"button\" tabIndex={0} aria-disabled=\"true\" aria-label={label} className=\"inline-flex\">\n <Button variant=\"ghost\" size=\"icon-md\" disabled aria-hidden=\"true\" tabIndex={-1}>\n {icon}\n </Button>\n </span>\n }\n />\n <TooltipContent side=\"bottom\" className=\"max-w-[calc(100dvw-1rem)]\">\n <span>\n {tooltipContent}{' '}\n <a\n href={docsHref}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className={cn(\n 'inline-flex items-center gap-1 text-inherit underline hover:text-foreground',\n contro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8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const logsDataList = require('../logs-data-list-DgoCLb6k.cjs');
|
|
6
6
|
const dataListSkeleton = require('../data-list-skeleton-K_WmrVke.cjs');
|
|
7
|
+
require('react');
|
|
8
|
+
require('../keyboard/keyboard-shortcuts-context.cjs.js');
|
|
7
9
|
|
|
8
10
|
|
|
9
11
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogsDataList.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LogsDataList.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogsDataList.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LogsDataList.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -51,6 +51,7 @@ function getWorkflowCardBadge(props) {
|
|
|
51
51
|
return { label: "Delay", tone: "purple", Icon: lucideReact.Timer, indicator: "sleep" };
|
|
52
52
|
if (props.nodeKind === "agent") return { label: "Agent", tone: "cyan", Icon: lucideReact.Bot };
|
|
53
53
|
if (props.nodeKind === "tool") return { label: "Tool", tone: "pink", Icon: lucideReact.Wrench };
|
|
54
|
+
if (props.nodeKind === "classifier") return { label: "Classifier", tone: "blue", Icon: lucideReact.GitBranch };
|
|
54
55
|
return { label: "Step", tone: "neutral", Icon: lucideReact.Braces };
|
|
55
56
|
}
|
|
56
57
|
|