@mastra/playground-ui 36.0.0-alpha.3 → 36.0.0-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 +26 -0
- package/dist/components/Columns.cjs.js +1 -1
- package/dist/components/Columns.es.js +1 -1
- package/dist/index.cjs.js +8 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +9 -4
- package/dist/index.es.js.map +1 -1
- package/dist/{multi-column-BLRjYB5N.cjs → multi-column-BbVNPvhh.cjs} +1 -2
- package/dist/{multi-column-BLRjYB5N.cjs.map → multi-column-BbVNPvhh.cjs.map} +1 -1
- package/dist/{multi-column-e_-j_rrO.js → multi-column-o9qcoBXV.js} +1 -2
- package/dist/{multi-column-e_-j_rrO.js.map → multi-column-o9qcoBXV.js.map} +1 -1
- package/dist/src/domains/traces/components/trace-data-panel-view.d.ts +5 -1
- package/package.json +7 -7
package/dist/index.es.js
CHANGED
|
@@ -83,7 +83,7 @@ import { b as Tabs, a as TabList, T as Tab } from './tabs-tab-Bv9aRRTl.js';
|
|
|
83
83
|
import { T as TabContent } from './tabs-content-D-fKCtLW.js';
|
|
84
84
|
export { T as TextAndIcon, g as getShortId } from './get-short-id-B4_2mLzM.js';
|
|
85
85
|
export { C as ContentBlock, a as ContentBlocks } from './content-block-BTpK7gPz.js';
|
|
86
|
-
export { C as Column, a as Columns, M as MultiColumn } from './multi-column-
|
|
86
|
+
export { C as Column, a as Columns, M as MultiColumn } from './multi-column-o9qcoBXV.js';
|
|
87
87
|
export { C as CodeDiff } from './code-diff-lktH1err.js';
|
|
88
88
|
export { I as ItemList, a as ItemListSkeleton, g as getItemListColumnTemplate, b as getToNextItemFn, c as getToPreviousItemFn } from './helpers-BH-wPlF0.js';
|
|
89
89
|
import { N as Notice } from './Notice-D5nzvm08.js';
|
|
@@ -124,7 +124,7 @@ export { useIsMobile } from './hooks/use-is-mobile.es.js';
|
|
|
124
124
|
export { useIsApplePlatform, useKeyboardShortcutLabel } from './hooks/use-keyboard-shortcut-label.es.js';
|
|
125
125
|
import { c as cn } from './utils-CzYGxqbG.js';
|
|
126
126
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
127
|
-
import { Wand2, Type, ToggleLeft, Hash, List, Braces, Ban, Check, ListX, ChevronsLeft, ChevronsRight, ChevronLeft, ChevronRight, Text, TextSearch, EqualNot, Equal, X, Plus, Component, LogsIcon as LogsIcon$1, EyeIcon, GaugeIcon, BrainIcon, ChevronUpIcon, ChevronDownIcon, ChevronsUpIcon, ChevronsDownIcon, FoldVerticalIcon, UnfoldVerticalIcon, ChevronsDownUpIcon, ChevronsUpDownIcon, Link2Icon, CircleGaugeIcon, SaveIcon, Loader2Icon, DownloadIcon, FileInputIcon, FileOutputIcon, BracesIcon, ExternalLinkIcon, CircleSlashIcon, ArrowUpIcon, ArrowDownIcon, ArrowRightIcon } from 'lucide-react';
|
|
127
|
+
import { Wand2, Type, ToggleLeft, Hash, List, Braces, Ban, Check, ListX, ChevronsLeft, ChevronsRight, ChevronLeft, ChevronRight, Text, TextSearch, EqualNot, Equal, X, Plus, Component, LogsIcon as LogsIcon$1, EyeIcon, GaugeIcon, BrainIcon, ChevronUpIcon, ChevronDownIcon, ChevronsUpIcon, ChevronsDownIcon, FoldVerticalIcon, UnfoldVerticalIcon, ChevronsDownUpIcon, ChevronsUpDownIcon, Link2Icon, CircleGaugeIcon, SaveIcon, WrenchIcon, Loader2Icon, DownloadIcon, FileInputIcon, FileOutputIcon, BracesIcon, ExternalLinkIcon, CircleSlashIcon, ArrowUpIcon, ArrowDownIcon, ArrowRightIcon } from 'lucide-react';
|
|
128
128
|
import * as React from 'react';
|
|
129
129
|
import { useRef, useCallback, useState, useEffect, useMemo, useContext, createContext, Fragment as Fragment$1 } from 'react';
|
|
130
130
|
import { usePanelRef, Panel, Separator } from 'react-resizable-panels';
|
|
@@ -6065,6 +6065,7 @@ function TraceDataPanelView({
|
|
|
6065
6065
|
onSpanSelect,
|
|
6066
6066
|
onEvaluateTrace,
|
|
6067
6067
|
onSaveAsDatasetItem,
|
|
6068
|
+
onAddTraceMocksToItem,
|
|
6068
6069
|
initialSpanId,
|
|
6069
6070
|
onPrevious,
|
|
6070
6071
|
onNext,
|
|
@@ -6181,7 +6182,7 @@ function TraceDataPanelView({
|
|
|
6181
6182
|
] }) }),
|
|
6182
6183
|
!collapsed && (isLoading ? /* @__PURE__ */ jsx(DataPanel.LoadingData, { children: "Loading trace..." }) : hierarchicalSpans.length === 0 ? /* @__PURE__ */ jsx(DataPanel.NoData, { children: "No spans found for this trace." }) : /* @__PURE__ */ jsxs(DataPanel.Content, { ref: contentRef, children: [
|
|
6183
6184
|
!isOnTracePage && rootSpan && /* @__PURE__ */ jsx(TraceKeysAndValues, { rootSpan, className: "mb-6" }),
|
|
6184
|
-
!isOnTracePage && (onEvaluateTrace || onSaveAsDatasetItem) && /* @__PURE__ */ jsxs("div", { className: "mb-6 flex justify-between items-center gap-4", children: [
|
|
6185
|
+
!isOnTracePage && (onEvaluateTrace || onSaveAsDatasetItem || onAddTraceMocksToItem) && /* @__PURE__ */ jsxs("div", { className: "mb-6 flex flex-wrap justify-between items-center gap-4", children: [
|
|
6185
6186
|
onEvaluateTrace && /* @__PURE__ */ jsxs(Button, { size: "sm", onClick: onEvaluateTrace, children: [
|
|
6186
6187
|
/* @__PURE__ */ jsx(Icon, { children: /* @__PURE__ */ jsx(CircleGaugeIcon, {}) }),
|
|
6187
6188
|
"Evaluate Trace"
|
|
@@ -6189,9 +6190,13 @@ function TraceDataPanelView({
|
|
|
6189
6190
|
onSaveAsDatasetItem && /* @__PURE__ */ jsxs(Button, { size: "sm", onClick: () => onSaveAsDatasetItem({ traceId, rootSpanId: rootSpan?.spanId }), children: [
|
|
6190
6191
|
/* @__PURE__ */ jsx(Icon, { children: /* @__PURE__ */ jsx(SaveIcon, {}) }),
|
|
6191
6192
|
"Save as Dataset Item"
|
|
6193
|
+
] }),
|
|
6194
|
+
onAddTraceMocksToItem && /* @__PURE__ */ jsxs(Button, { size: "sm", onClick: () => onAddTraceMocksToItem({ traceId }), children: [
|
|
6195
|
+
/* @__PURE__ */ jsx(Icon, { children: /* @__PURE__ */ jsx(WrenchIcon, {}) }),
|
|
6196
|
+
"Add tool mocks to item"
|
|
6192
6197
|
] })
|
|
6193
6198
|
] }),
|
|
6194
|
-
!isOnTracePage && !onEvaluateTrace && !onSaveAsDatasetItem && showUnavailableFeaturesMsg && /* @__PURE__ */ jsx(Notice, { variant: "info", className: "mb-6", children: /* @__PURE__ */ jsx(Notice.Message, { children: "Evaluating traces and saving them as dataset items is available in Mastra Studio (local or deployed)." }) }),
|
|
6199
|
+
!isOnTracePage && !onEvaluateTrace && !onSaveAsDatasetItem && !onAddTraceMocksToItem && showUnavailableFeaturesMsg && /* @__PURE__ */ jsx(Notice, { variant: "info", className: "mb-6", children: /* @__PURE__ */ jsx(Notice.Message, { children: "Evaluating traces and saving them as dataset items is available in Mastra Studio (local or deployed)." }) }),
|
|
6195
6200
|
/* @__PURE__ */ jsx(
|
|
6196
6201
|
TraceTimeline,
|
|
6197
6202
|
{
|