@mastra/playground-ui 5.1.10 → 5.1.11-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/dist/index.cjs.js CHANGED
@@ -5252,13 +5252,20 @@ function useAgentModelSettingsState({ agentId }) {
5252
5252
  console.error(e);
5253
5253
  }
5254
5254
  }, [LOCAL_STORAGE_KEY]);
5255
- React.useEffect(() => {
5256
- if (modelSettings) {
5257
- localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify({ modelSettings, chatWithGenerate, agentId }));
5258
- }
5259
- }, [modelSettings, chatWithGenerate, LOCAL_STORAGE_KEY]);
5260
- const setModelSettings = (modelSettingsValue) => setModelSettingsState((prev) => ({ ...prev, ...modelSettingsValue }));
5261
- const setChatWithGenerate = (chatWithGenerateValue) => setChatWithGenerateState(chatWithGenerateValue);
5255
+ const setModelSettings = (modelSettingsValue) => {
5256
+ setModelSettingsState((prev) => ({ ...prev, ...modelSettingsValue }));
5257
+ localStorage.setItem(
5258
+ LOCAL_STORAGE_KEY,
5259
+ JSON.stringify({ modelSettings: modelSettingsValue, chatWithGenerate, agentId })
5260
+ );
5261
+ };
5262
+ const setChatWithGenerate = (chatWithGenerateValue) => {
5263
+ setChatWithGenerateState(chatWithGenerateValue);
5264
+ localStorage.setItem(
5265
+ LOCAL_STORAGE_KEY,
5266
+ JSON.stringify({ modelSettings, chatWithGenerate: chatWithGenerateValue, agentId })
5267
+ );
5268
+ };
5262
5269
  const resetAll = () => {
5263
5270
  setModelSettingsState(defaultModelSettings$1);
5264
5271
  setChatWithGenerate(false);
@@ -8173,7 +8180,7 @@ const WorkflowRunEventForm = ({ event, runId, onSendEvent }) => {
8173
8180
  const formatted = await formatJSON(eventData);
8174
8181
  setEventData(formatted);
8175
8182
  };
8176
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
8183
+ return /* @__PURE__ */ jsxRuntime.jsxs(TooltipProvider, { children: [
8177
8184
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
8178
8185
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between pb-2", children: [
8179
8186
  /* @__PURE__ */ jsxRuntime.jsx(Txt, { as: "label", variant: "ui-md", className: "text-icon3", children: "Event data (JSON)" }),
@@ -8280,7 +8287,7 @@ const WorkflowStepActionBar = ({
8280
8287
  ] }),
8281
8288
  onShowTrace && /* @__PURE__ */ jsxRuntime.jsx(Button, { onClick: onShowTrace, children: "Show trace" }),
8282
8289
  showEventForm && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
8283
- /* @__PURE__ */ jsxRuntime.jsx(Button, { onClick: () => setIsEventFormOpen(true), children: "Send event" }),
8290
+ /* @__PURE__ */ jsxRuntime.jsx(Button, { className: "ring-1 ring-accent5 !text-accent5", onClick: () => setIsEventFormOpen(true), children: "Send event" }),
8284
8291
  /* @__PURE__ */ jsxRuntime.jsx(Dialog, { open: isEventFormOpen, onOpenChange: setIsEventFormOpen, children: /* @__PURE__ */ jsxRuntime.jsxs(DialogContent, { className: dialogContentClass, children: [
8285
8292
  /* @__PURE__ */ jsxRuntime.jsxs(DialogTitle, { className: dialogTitleClass, children: [
8286
8293
  "Send ",