@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.es.js CHANGED
@@ -5219,13 +5219,20 @@ function useAgentModelSettingsState({ agentId }) {
5219
5219
  console.error(e);
5220
5220
  }
5221
5221
  }, [LOCAL_STORAGE_KEY]);
5222
- useEffect(() => {
5223
- if (modelSettings) {
5224
- localStorage.setItem(LOCAL_STORAGE_KEY, JSON.stringify({ modelSettings, chatWithGenerate, agentId }));
5225
- }
5226
- }, [modelSettings, chatWithGenerate, LOCAL_STORAGE_KEY]);
5227
- const setModelSettings = (modelSettingsValue) => setModelSettingsState((prev) => ({ ...prev, ...modelSettingsValue }));
5228
- const setChatWithGenerate = (chatWithGenerateValue) => setChatWithGenerateState(chatWithGenerateValue);
5222
+ const setModelSettings = (modelSettingsValue) => {
5223
+ setModelSettingsState((prev) => ({ ...prev, ...modelSettingsValue }));
5224
+ localStorage.setItem(
5225
+ LOCAL_STORAGE_KEY,
5226
+ JSON.stringify({ modelSettings: modelSettingsValue, chatWithGenerate, agentId })
5227
+ );
5228
+ };
5229
+ const setChatWithGenerate = (chatWithGenerateValue) => {
5230
+ setChatWithGenerateState(chatWithGenerateValue);
5231
+ localStorage.setItem(
5232
+ LOCAL_STORAGE_KEY,
5233
+ JSON.stringify({ modelSettings, chatWithGenerate: chatWithGenerateValue, agentId })
5234
+ );
5235
+ };
5229
5236
  const resetAll = () => {
5230
5237
  setModelSettingsState(defaultModelSettings$1);
5231
5238
  setChatWithGenerate(false);
@@ -8140,7 +8147,7 @@ const WorkflowRunEventForm = ({ event, runId, onSendEvent }) => {
8140
8147
  const formatted = await formatJSON(eventData);
8141
8148
  setEventData(formatted);
8142
8149
  };
8143
- return /* @__PURE__ */ jsxs("div", { children: [
8150
+ return /* @__PURE__ */ jsxs(TooltipProvider, { children: [
8144
8151
  /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
8145
8152
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between pb-2", children: [
8146
8153
  /* @__PURE__ */ jsx(Txt, { as: "label", variant: "ui-md", className: "text-icon3", children: "Event data (JSON)" }),
@@ -8247,7 +8254,7 @@ const WorkflowStepActionBar = ({
8247
8254
  ] }),
8248
8255
  onShowTrace && /* @__PURE__ */ jsx(Button, { onClick: onShowTrace, children: "Show trace" }),
8249
8256
  showEventForm && /* @__PURE__ */ jsxs(Fragment, { children: [
8250
- /* @__PURE__ */ jsx(Button, { onClick: () => setIsEventFormOpen(true), children: "Send event" }),
8257
+ /* @__PURE__ */ jsx(Button, { className: "ring-1 ring-accent5 !text-accent5", onClick: () => setIsEventFormOpen(true), children: "Send event" }),
8251
8258
  /* @__PURE__ */ jsx(Dialog, { open: isEventFormOpen, onOpenChange: setIsEventFormOpen, children: /* @__PURE__ */ jsxs(DialogContent, { className: dialogContentClass, children: [
8252
8259
  /* @__PURE__ */ jsxs(DialogTitle, { className: dialogTitleClass, children: [
8253
8260
  "Send ",