@mastra/playground-ui 24.0.0-alpha.2 → 24.0.0-alpha.3
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 +9 -0
- package/dist/index.cjs.js +22 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +22 -7
- package/dist/index.es.js.map +1 -1
- package/dist/src/domains/traces/components/span-data-panel-view.d.ts +12 -1
- package/dist/src/domains/traces/index.d.ts +1 -1
- package/package.json +6 -6
|
@@ -22,5 +22,16 @@ export interface SpanDataPanelViewProps {
|
|
|
22
22
|
}) => ReactNode;
|
|
23
23
|
/** Optional count shown in the "Scoring" tab label (e.g. number of scores). */
|
|
24
24
|
scoringTabBadge?: ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* When provided, a "Feedback" tab appears; the slot receives the loaded span and renders
|
|
27
|
+
* whatever feedback UI the consumer wants.
|
|
28
|
+
*/
|
|
29
|
+
feedbackTabSlot?: (args: {
|
|
30
|
+
span: SpanRecord;
|
|
31
|
+
traceId: string;
|
|
32
|
+
spanId: string;
|
|
33
|
+
}) => ReactNode;
|
|
34
|
+
/** Optional count shown in the "Feedback" tab label. */
|
|
35
|
+
feedbackTabBadge?: ReactNode;
|
|
25
36
|
}
|
|
26
|
-
export declare function SpanDataPanelView({ traceId, spanId, span, isLoading, onClose, onPrevious, onNext, activeTab, onTabChange, scoringTabSlot, scoringTabBadge, }: SpanDataPanelViewProps): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export declare function SpanDataPanelView({ traceId, spanId, span, isLoading, onClose, onPrevious, onNext, activeTab, onTabChange, scoringTabSlot, scoringTabBadge, feedbackTabSlot, feedbackTabBadge, }: SpanDataPanelViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,4 +5,4 @@ export * from './trace-filters';
|
|
|
5
5
|
export type { UISpan, UISpanStyle, TraceDatePreset, EntityOptions } from './types';
|
|
6
6
|
export { CONTEXT_FIELD_IDS } from './types';
|
|
7
7
|
/** Tab identifier for SpanDataPanelView. */
|
|
8
|
-
export type SpanTab = 'details' | 'scoring';
|
|
8
|
+
export type SpanTab = 'details' | 'scoring' | 'feedback';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/playground-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "24.0.0-alpha.
|
|
4
|
+
"version": "24.0.0-alpha.3",
|
|
5
5
|
"description": "Mastra Playground components",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -98,8 +98,8 @@
|
|
|
98
98
|
"lucide-react": "^0.474.0",
|
|
99
99
|
"react": ">=19.0.0",
|
|
100
100
|
"tailwindcss": "^4.0.0",
|
|
101
|
-
"@mastra/client-js": "^1.15.0-alpha.
|
|
102
|
-
"@mastra/react": "0.2.30-alpha.
|
|
101
|
+
"@mastra/client-js": "^1.15.0-alpha.3",
|
|
102
|
+
"@mastra/react": "0.2.30-alpha.3"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
105
|
"@storybook/addon-docs": "^10.3.5",
|
|
@@ -131,10 +131,10 @@
|
|
|
131
131
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
132
132
|
"vitest": "4.1.5",
|
|
133
133
|
"eslint-plugin-storybook": "^10.3.5",
|
|
134
|
-
"@mastra/client-js": "^1.15.0-alpha.2",
|
|
135
134
|
"@internal/lint": "0.0.86",
|
|
136
|
-
"@mastra/
|
|
137
|
-
"@mastra/
|
|
135
|
+
"@mastra/client-js": "^1.15.0-alpha.3",
|
|
136
|
+
"@mastra/react": "0.2.30-alpha.3",
|
|
137
|
+
"@mastra/core": "1.29.0-alpha.3"
|
|
138
138
|
},
|
|
139
139
|
"homepage": "https://mastra.ai",
|
|
140
140
|
"repository": {
|