@mastra/playground-ui 5.0.2-alpha.5 → 5.0.2

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.d.ts CHANGED
@@ -15,6 +15,8 @@ export * from './ds/components/Logo/index';
15
15
  export * from './ds/components/Table/index';
16
16
  export * from './ds/components/Txt/index';
17
17
  export * from './ds/icons/index';
18
+ export * from './lib/polls';
18
19
  export { useTraces } from './hooks/index';
19
20
  export { TraceContext, TraceProvider } from './domains/traces/context/trace-context';
21
+ export type { TraceContextType } from './domains/traces/context/trace-context';
20
22
  export { refineTraces } from './domains/traces/utils';
package/dist/index.es.js CHANGED
@@ -4796,10 +4796,13 @@ function EvalTable({ evals, isCIMode = false }) {
4796
4796
  }
4797
4797
 
4798
4798
  const TraceContext = createContext({});
4799
- function TraceProvider({ children }) {
4799
+ function TraceProvider({
4800
+ children,
4801
+ initialTraces
4802
+ }) {
4800
4803
  const [open, setOpen] = useState(false);
4801
4804
  const [trace, setTrace] = useState(null);
4802
- const [traces, setTraces] = useState([]);
4805
+ const [traces, setTraces] = useState(initialTraces || []);
4803
4806
  const [currentTraceIndex, setCurrentTraceIndex] = useState(0);
4804
4807
  const [span, setSpan] = useState(null);
4805
4808
  const nextTrace = () => {
@@ -5010,7 +5013,7 @@ const TracesTable = ({ traces, isLoading, error }) => {
5010
5013
  /* @__PURE__ */ jsx(Th, { width: 120, children: "Spans" }),
5011
5014
  /* @__PURE__ */ jsx(Th, { width: 120, children: "Status" })
5012
5015
  ] }),
5013
- isLoading ? /* @__PURE__ */ jsx(TracesTableSkeleton, { colsCount }) : error ? /* @__PURE__ */ jsx(TracesTableError, { error, colsCount }) : hasNoTraces ? /* @__PURE__ */ jsx(TracesTableEmpty, { colsCount }) : /* @__PURE__ */ jsx(Tbody, { children: traces.map((trace, index) => /* @__PURE__ */ jsx(TraceRow, { trace, index, isActive: index === currentTraceIndex }, trace.traceId)) })
5016
+ isLoading ? /* @__PURE__ */ jsx(TracesTableSkeleton, { colsCount }) : error ? /* @__PURE__ */ jsx(TracesTableError, { error, colsCount }) : hasNoTraces ? /* @__PURE__ */ jsx(TracesTableEmpty, { colsCount }) : /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Tbody, { children: traces.map((trace, index) => /* @__PURE__ */ jsx(TraceRow, { trace, index, isActive: index === currentTraceIndex }, trace.traceId)) }) })
5014
5017
  ] });
5015
5018
  };
5016
5019
 
@@ -8964,5 +8967,5 @@ const useTraces = (componentName, baseUrl, isWorkflow = false) => {
8964
8967
  return { traces, firstCallLoading, error };
8965
8968
  };
8966
8969
 
8967
- export { AgentChat, AgentCoinIcon, AgentContext, AgentEvals, AgentIcon, AgentProvider, AgentTraces, AiIcon, ApiIcon, Badge$1 as Badge, BranchIcon, Breadcrumb, Button, Cell, CheckIcon, ChevronIcon, CommitIcon, CrossIcon, Crumb, DarkLogo, DataTable, DateTimeCell, DbIcon, DebugIcon, DeploymentIcon, DividerIcon, DocsIcon, DynamicForm, EntryCell, EnvIcon, EvaluatorCoinIcon, FiltersIcon, GithubCoinIcon, GithubIcon, GoogleIcon, Header, HeaderAction, HeaderGroup, HeaderTitle, HomeIcon, Icon, InfoIcon, JudgeIcon, LatencyIcon, LogsIcon, MastraResizablePanel, MemoryIcon, NetworkChat, NetworkContext, NetworkProvider, OpenAIIcon, PromptIcon, RepoIcon, Row, ScoreIcon, SettingsIcon, SlashIcon, Table, Tbody, Th, Thead, ThreadDeleteButton, ThreadItem, ThreadLink, ThreadList, Threads, ToolsIcon, TraceContext, TraceIcon, TraceProvider, TsIcon, Txt, TxtCell, UnitCell, VNextWorkflowGraph, VNextWorkflowTrigger, VariablesIcon, WorkflowCoinIcon, WorkflowGraph, WorkflowIcon, WorkflowRunContext, WorkflowRunProvider, WorkflowTraces, WorkflowTrigger, refineTraces, useTraces };
8970
+ export { AgentChat, AgentCoinIcon, AgentContext, AgentEvals, AgentIcon, AgentProvider, AgentTraces, AiIcon, ApiIcon, Badge$1 as Badge, BranchIcon, Breadcrumb, Button, Cell, CheckIcon, ChevronIcon, CommitIcon, CrossIcon, Crumb, DarkLogo, DataTable, DateTimeCell, DbIcon, DebugIcon, DeploymentIcon, DividerIcon, DocsIcon, DynamicForm, EntryCell, EnvIcon, EvaluatorCoinIcon, FiltersIcon, GithubCoinIcon, GithubIcon, GoogleIcon, Header, HeaderAction, HeaderGroup, HeaderTitle, HomeIcon, Icon, InfoIcon, JudgeIcon, LatencyIcon, LogsIcon, MastraResizablePanel, MemoryIcon, NetworkChat, NetworkContext, NetworkProvider, OpenAIIcon, PromptIcon, RepoIcon, Row, ScoreIcon, SettingsIcon, SlashIcon, Table, Tbody, Th, Thead, ThreadDeleteButton, ThreadItem, ThreadLink, ThreadList, Threads, ToolsIcon, TraceContext, TraceIcon, TraceProvider, TsIcon, Txt, TxtCell, UnitCell, VNextWorkflowGraph, VNextWorkflowTrigger, VariablesIcon, WorkflowCoinIcon, WorkflowGraph, WorkflowIcon, WorkflowRunContext, WorkflowRunProvider, WorkflowTraces, WorkflowTrigger, refineTraces, usePolling, useTraces };
8968
8971
  //# sourceMappingURL=index.es.js.map