@mastra/playground-ui 28.0.1 → 29.0.0-alpha.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 +45 -0
- package/dist/index.cjs.js +178 -107
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +70 -8
- package/dist/index.es.js +180 -108
- package/dist/index.es.js.map +1 -1
- package/dist/src/domains/traces/components/traces-list-view.d.ts +4 -1
- package/dist/src/ds/components/Command/command.d.ts +6 -6
- package/dist/src/ds/components/DataList/TracesDataList/traces-data-list-cells.d.ts +6 -6
- package/dist/src/ds/components/DataList/TracesDataList/traces-data-list.d.ts +1 -2
- package/dist/src/ds/components/MainSidebar/main-sidebar-nav-link.d.ts +1 -1
- package/dist/src/ds/components/PageLayout/page-layout-row.d.ts +8 -2
- package/dist/src/ds/components/ScrollArea/scroll-area.d.ts +2 -2
- package/dist/src/ds/components/Tooltip/tooltip.d.ts +18 -5
- package/dist/src/ds/components/Tooltip/tooltip.stories.d.ts +3 -0
- package/package.json +6 -6
|
@@ -35,6 +35,9 @@ export type TracesListViewProps = {
|
|
|
35
35
|
* a row is featured only when both `traceId` and `spanId` match.
|
|
36
36
|
*/
|
|
37
37
|
featuredSpanId?: string | null;
|
|
38
|
+
/** Branches mode mixes root traces with subtraces — enables the Trace/Subtrace tooltip on the
|
|
39
|
+
* level icon in the Name column, which is meaningless when every row is a root. */
|
|
40
|
+
isBranchesMode?: boolean;
|
|
38
41
|
/** Called when a row is clicked. The current selection logic (toggle on same id) is the consumer's call. */
|
|
39
42
|
onTraceClick: (trace: TracesListViewTrace) => void;
|
|
40
43
|
};
|
|
@@ -42,4 +45,4 @@ export type TracesListViewProps = {
|
|
|
42
45
|
* Virtualized presentational list. Renders only the visible window via TanStack Virtual, and
|
|
43
46
|
* uses DataList primitives for layout (CSS Grid with subgrid rows).
|
|
44
47
|
*/
|
|
45
|
-
export declare function TracesListView({ traces, isLoading, isFetchingNextPage, hasNextPage, setEndOfListElement, filtersApplied, featuredTraceId, featuredSpanId, onTraceClick, }: TracesListViewProps): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export declare function TracesListView({ traces, isLoading, isFetchingNextPage, hasNextPage, setEndOfListElement, filtersApplied, featuredTraceId, featuredSpanId, isBranchesMode, onTraceClick, }: TracesListViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,7 +6,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
|
6
6
|
ref?: React.Ref<HTMLDivElement>;
|
|
7
7
|
} & {
|
|
8
8
|
asChild?: boolean;
|
|
9
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement
|
|
9
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
10
10
|
label?: string;
|
|
11
11
|
shouldFilter?: boolean;
|
|
12
12
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -36,7 +36,7 @@ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
|
36
36
|
ref?: React.Ref<HTMLDivElement>;
|
|
37
37
|
} & {
|
|
38
38
|
asChild?: boolean;
|
|
39
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement
|
|
39
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
40
40
|
label?: string;
|
|
41
41
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
42
42
|
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -45,14 +45,14 @@ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
|
45
45
|
ref?: React.Ref<HTMLDivElement>;
|
|
46
46
|
} & {
|
|
47
47
|
asChild?: boolean;
|
|
48
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement
|
|
48
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
49
49
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
50
50
|
children?: React.ReactNode;
|
|
51
51
|
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
52
52
|
ref?: React.Ref<HTMLDivElement>;
|
|
53
53
|
} & {
|
|
54
54
|
asChild?: boolean;
|
|
55
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement
|
|
55
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
|
|
56
56
|
heading?: React.ReactNode;
|
|
57
57
|
value?: string;
|
|
58
58
|
forceMount?: boolean;
|
|
@@ -61,7 +61,7 @@ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<R
|
|
|
61
61
|
ref?: React.Ref<HTMLDivElement>;
|
|
62
62
|
} & {
|
|
63
63
|
asChild?: boolean;
|
|
64
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement
|
|
64
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
65
65
|
alwaysRender?: boolean;
|
|
66
66
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
67
67
|
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -70,7 +70,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
70
70
|
ref?: React.Ref<HTMLDivElement>;
|
|
71
71
|
} & {
|
|
72
72
|
asChild?: boolean;
|
|
73
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement
|
|
73
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
|
|
74
74
|
disabled?: boolean;
|
|
75
75
|
onSelect?: (value: string) => void;
|
|
76
76
|
value?: string;
|
|
@@ -2,11 +2,6 @@ export interface TracesDataListIdCellProps {
|
|
|
2
2
|
traceId: string;
|
|
3
3
|
}
|
|
4
4
|
export declare function TracesDataListIdCell({ traceId }: TracesDataListIdCellProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export interface TracesDataListKindCellProps {
|
|
6
|
-
/** `null`/missing → root span (Trace). Set → nested span (Subtrace). */
|
|
7
|
-
parentSpanId?: string | null;
|
|
8
|
-
}
|
|
9
|
-
export declare function TracesDataListKindCell({ parentSpanId }: TracesDataListKindCellProps): import("react/jsx-runtime").JSX.Element;
|
|
10
5
|
export interface TracesDataListDateCellProps {
|
|
11
6
|
timestamp: Date | string;
|
|
12
7
|
}
|
|
@@ -17,8 +12,13 @@ export interface TracesDataListTimeCellProps {
|
|
|
17
12
|
export declare function TracesDataListTimeCell({ timestamp }: TracesDataListTimeCellProps): import("react/jsx-runtime").JSX.Element;
|
|
18
13
|
export interface TracesDataListNameCellProps {
|
|
19
14
|
name?: string | null;
|
|
15
|
+
/** `null`/missing → root span (Trace). Set → nested span (Subtrace). Drives the leading level icon. */
|
|
16
|
+
parentSpanId?: string | null;
|
|
17
|
+
/** When true, the leading level icon is wrapped in a Trace/Subtrace tooltip. Off by default —
|
|
18
|
+
* only meaningful in branches mode, where rows mix root traces and subtraces. */
|
|
19
|
+
showLevelTooltip?: boolean;
|
|
20
20
|
}
|
|
21
|
-
export declare function TracesDataListNameCell({ name }: TracesDataListNameCellProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function TracesDataListNameCell({ name, parentSpanId, showLevelTooltip }: TracesDataListNameCellProps): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
export interface TracesDataListInputCellProps {
|
|
23
23
|
input?: string | null;
|
|
24
24
|
}
|
|
@@ -6,7 +6,7 @@ import { DataListSpacer } from '../data-list-spacer';
|
|
|
6
6
|
import { DataListSubHeading } from '../data-list-subheading';
|
|
7
7
|
import { DataListTop } from '../data-list-top';
|
|
8
8
|
import { DataListTopCellWithTooltip } from '../data-list-top-cell';
|
|
9
|
-
import { TracesDataListIdCell,
|
|
9
|
+
import { TracesDataListIdCell, TracesDataListDateCell, TracesDataListTimeCell, TracesDataListNameCell, TracesDataListInputCell, TracesDataListEntityCell, TracesDataListStatusCell } from './traces-data-list-cells';
|
|
10
10
|
declare function TracesDataListRoot(props: ComponentProps<typeof DataListRoot>): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export declare const TracesDataList: typeof TracesDataListRoot & {
|
|
12
12
|
Top: typeof DataListTop;
|
|
@@ -18,7 +18,6 @@ export declare const TracesDataList: typeof TracesDataListRoot & {
|
|
|
18
18
|
SubHeading: typeof DataListSubHeading;
|
|
19
19
|
Spacer: typeof DataListSpacer;
|
|
20
20
|
IdCell: typeof TracesDataListIdCell;
|
|
21
|
-
KindCell: typeof TracesDataListKindCell;
|
|
22
21
|
DateCell: typeof TracesDataListDateCell;
|
|
23
22
|
TimeCell: typeof TracesDataListTimeCell;
|
|
24
23
|
NameCell: typeof TracesDataListNameCell;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
declare const pageLayoutRowVariants: (props?: ({
|
|
3
|
+
align?: "start" | "center" | null | undefined;
|
|
4
|
+
stack?: "horizontal" | "responsive" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
1
6
|
export type PageLayoutRowProps = {
|
|
2
7
|
children?: React.ReactNode;
|
|
3
8
|
className?: string;
|
|
4
|
-
}
|
|
5
|
-
export declare function PageLayoutRow({ children, className }: PageLayoutRowProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
} & VariantProps<typeof pageLayoutRowVariants>;
|
|
10
|
+
export declare function PageLayoutRow({ children, className, align, stack }: PageLayoutRowProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -27,7 +27,7 @@ export type ScrollAreaProps = React.ComponentPropsWithoutRef<typeof ScrollAreaPr
|
|
|
27
27
|
/** @deprecated Use `mask` instead. Retained for backward compatibility. */
|
|
28
28
|
showMask?: boolean;
|
|
29
29
|
};
|
|
30
|
-
declare const ScrollArea: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react
|
|
30
|
+
declare const ScrollArea: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').ScrollAreaRootProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
31
31
|
viewPortClassName?: string;
|
|
32
32
|
maxHeight?: string;
|
|
33
33
|
autoScroll?: boolean;
|
|
@@ -37,5 +37,5 @@ declare const ScrollArea: React.ForwardRefExoticComponent<Omit<Omit<import('@bas
|
|
|
37
37
|
/** @deprecated Use `mask` instead. Retained for backward compatibility. */
|
|
38
38
|
showMask?: boolean;
|
|
39
39
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
40
|
-
declare const ScrollBar: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react
|
|
40
|
+
declare const ScrollBar: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').ScrollAreaScrollbarProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
41
41
|
export { ScrollArea, ScrollBar };
|
|
@@ -1,7 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
type TooltipProviderProps = Omit<TooltipPrimitive.Provider.Props, 'delay' | 'timeout'> & {
|
|
4
|
+
delay?: number;
|
|
5
|
+
timeout?: number;
|
|
6
|
+
/** Radix API compatibility alias for `delay`. */
|
|
7
|
+
delayDuration?: number;
|
|
8
|
+
/** Radix API compatibility alias for `timeout`. */
|
|
9
|
+
skipDelayDuration?: number;
|
|
10
|
+
};
|
|
11
|
+
declare function TooltipProvider({ delay, delayDuration, timeout, skipDelayDuration, ...props }: TooltipProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare const Tooltip: <Payload>(props: TooltipPrimitive.Root.Props<Payload>) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
type TooltipTriggerProps = TooltipPrimitive.Trigger.Props & {
|
|
14
|
+
/** Radix-style alias for Base UI's native `render` prop. */
|
|
15
|
+
asChild?: boolean;
|
|
16
|
+
};
|
|
17
|
+
declare const TooltipTrigger: React.ForwardRefExoticComponent<Omit<TooltipTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
type TooltipContentProps = TooltipPrimitive.Popup.Props & Pick<TooltipPrimitive.Positioner.Props, 'side' | 'sideOffset' | 'align' | 'alignOffset'>;
|
|
19
|
+
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
20
|
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
@@ -4,7 +4,10 @@ declare const meta: Meta<typeof Tooltip>;
|
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof Tooltip>;
|
|
6
6
|
export declare const Default: Story;
|
|
7
|
+
export declare const WithKeyboardShortcut: Story;
|
|
7
8
|
export declare const WithIcon: Story;
|
|
9
|
+
export declare const UsingRenderProp: Story;
|
|
10
|
+
export declare const AllSides: Story;
|
|
8
11
|
export declare const TopSide: Story;
|
|
9
12
|
export declare const RightSide: Story;
|
|
10
13
|
export declare const BottomSide: Story;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/playground-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "29.0.0-alpha.1",
|
|
5
5
|
"description": "Mastra Playground components",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
"react": ">=19.0.0",
|
|
101
101
|
"react-dom": ">=19.0.0",
|
|
102
102
|
"tailwindcss": "^4.0.0",
|
|
103
|
-
"@mastra/client-js": "^1.
|
|
104
|
-
"@mastra/react": "0.
|
|
103
|
+
"@mastra/client-js": "^1.20.0-alpha.1",
|
|
104
|
+
"@mastra/react": "0.4.0-alpha.1"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
107
|
"@storybook/addon-a11y": "^10.3.6",
|
|
@@ -138,9 +138,9 @@
|
|
|
138
138
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
139
139
|
"vitest": "4.1.5",
|
|
140
140
|
"@internal/lint": "0.0.96",
|
|
141
|
-
"@mastra/client-js": "^1.
|
|
142
|
-
"@mastra/core": "1.
|
|
143
|
-
"@mastra/react": "0.
|
|
141
|
+
"@mastra/client-js": "^1.20.0-alpha.1",
|
|
142
|
+
"@mastra/core": "1.36.0-alpha.1",
|
|
143
|
+
"@mastra/react": "0.4.0-alpha.1"
|
|
144
144
|
},
|
|
145
145
|
"homepage": "https://mastra.ai",
|
|
146
146
|
"repository": {
|