@mastra/playground-ui 20.0.1-alpha.0 → 20.0.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/CHANGELOG.md +45 -0
- package/dist/index.cjs.js +18 -20
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -22
- package/dist/index.es.js +18 -20
- package/dist/index.es.js.map +1 -1
- package/dist/src/ds/components/Tabs/tabs-list.d.ts +1 -2
- package/dist/src/ds/components/Tabs/tabs.stories.d.ts +0 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 20.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Add optional chaining on `steps` in workflow-step-action-bar to prevent runtime crash during incremental SSE updates ([#14714](https://github.com/mastra-ai/mastra/pull/14714))
|
|
8
|
+
|
|
9
|
+
- Fixed form fields to show default values from form defaults. ([#14733](https://github.com/mastra-ai/mastra/pull/14733))
|
|
10
|
+
|
|
11
|
+
- Added Storybook theme switching support. The background toolbar now toggles between dark and light themes by applying the corresponding CSS class to the document. ([#14882](https://github.com/mastra-ai/mastra/pull/14882))
|
|
12
|
+
|
|
13
|
+
- Removed unused `buttons` variant from `TabList` component. ([#14881](https://github.com/mastra-ai/mastra/pull/14881))
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`180aaaf`](https://github.com/mastra-ai/mastra/commit/180aaaf4d0903d33a49bc72de2d40ca69a5bc599), [`9140989`](https://github.com/mastra-ai/mastra/commit/91409890e83f4f1d9c1b39223f1af91a6a53b549), [`d7c98cf`](https://github.com/mastra-ai/mastra/commit/d7c98cfc9d75baba9ecbf1a8835b5183d0a0aec8), [`acf5fbc`](https://github.com/mastra-ai/mastra/commit/acf5fbcb890dc7ca7167bec386ce5874dfadb997), [`24ca2ae`](https://github.com/mastra-ai/mastra/commit/24ca2ae57538ec189fabb9daee6175ad27035853), [`0762516`](https://github.com/mastra-ai/mastra/commit/07625167e029a8268ea7aaf0402416e6d8832874), [`9c57f2f`](https://github.com/mastra-ai/mastra/commit/9c57f2f7241e9f94769aa99fc86c531e8207d0f9), [`5bfc691`](https://github.com/mastra-ai/mastra/commit/5bfc69104c07ba7a9b55c2f8536422c0878b9c57), [`2de3d36`](https://github.com/mastra-ai/mastra/commit/2de3d36932b7f73ad26bc403f7da26cfe89e903e), [`d3736cb`](https://github.com/mastra-ai/mastra/commit/d3736cb9ce074d2b8e8b00218a01f790fe81a1b4), [`c627366`](https://github.com/mastra-ai/mastra/commit/c6273666f9ef4c8c617c68b7d07fe878a322f85c)]:
|
|
16
|
+
- @mastra/core@1.19.0
|
|
17
|
+
- @mastra/client-js@1.11.1
|
|
18
|
+
- @mastra/ai-sdk@1.3.0
|
|
19
|
+
- @mastra/react@0.2.19
|
|
20
|
+
|
|
21
|
+
## 20.0.1-alpha.2
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [[`9c57f2f`](https://github.com/mastra-ai/mastra/commit/9c57f2f7241e9f94769aa99fc86c531e8207d0f9), [`5bfc691`](https://github.com/mastra-ai/mastra/commit/5bfc69104c07ba7a9b55c2f8536422c0878b9c57)]:
|
|
26
|
+
- @mastra/core@1.19.0-alpha.2
|
|
27
|
+
- @mastra/ai-sdk@1.3.0
|
|
28
|
+
- @mastra/client-js@1.11.1-alpha.2
|
|
29
|
+
- @mastra/react@0.2.19-alpha.2
|
|
30
|
+
|
|
31
|
+
## 20.0.1-alpha.1
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- Add optional chaining on `steps` in workflow-step-action-bar to prevent runtime crash during incremental SSE updates ([#14714](https://github.com/mastra-ai/mastra/pull/14714))
|
|
36
|
+
|
|
37
|
+
- Fixed form fields to show default values from form defaults. ([#14733](https://github.com/mastra-ai/mastra/pull/14733))
|
|
38
|
+
|
|
39
|
+
- Added Storybook theme switching support. The background toolbar now toggles between dark and light themes by applying the corresponding CSS class to the document. ([#14882](https://github.com/mastra-ai/mastra/pull/14882))
|
|
40
|
+
|
|
41
|
+
- Removed unused `buttons` variant from `TabList` component. ([#14881](https://github.com/mastra-ai/mastra/pull/14881))
|
|
42
|
+
|
|
43
|
+
- Updated dependencies [[`9140989`](https://github.com/mastra-ai/mastra/commit/91409890e83f4f1d9c1b39223f1af91a6a53b549), [`d7c98cf`](https://github.com/mastra-ai/mastra/commit/d7c98cfc9d75baba9ecbf1a8835b5183d0a0aec8), [`acf5fbc`](https://github.com/mastra-ai/mastra/commit/acf5fbcb890dc7ca7167bec386ce5874dfadb997), [`24ca2ae`](https://github.com/mastra-ai/mastra/commit/24ca2ae57538ec189fabb9daee6175ad27035853), [`0762516`](https://github.com/mastra-ai/mastra/commit/07625167e029a8268ea7aaf0402416e6d8832874), [`2de3d36`](https://github.com/mastra-ai/mastra/commit/2de3d36932b7f73ad26bc403f7da26cfe89e903e), [`d3736cb`](https://github.com/mastra-ai/mastra/commit/d3736cb9ce074d2b8e8b00218a01f790fe81a1b4), [`c627366`](https://github.com/mastra-ai/mastra/commit/c6273666f9ef4c8c617c68b7d07fe878a322f85c)]:
|
|
44
|
+
- @mastra/core@1.18.1-alpha.1
|
|
45
|
+
- @mastra/client-js@1.11.1-alpha.1
|
|
46
|
+
- @mastra/react@0.2.19-alpha.1
|
|
47
|
+
|
|
3
48
|
## 20.0.1-alpha.0
|
|
4
49
|
|
|
5
50
|
### Patch Changes
|
package/dist/index.cjs.js
CHANGED
|
@@ -9195,12 +9195,17 @@ const CustomAutoFormField = ({ field, path }) => {
|
|
|
9195
9195
|
const { formComponents, uiComponents } = react$3.useAutoForm();
|
|
9196
9196
|
const {
|
|
9197
9197
|
register,
|
|
9198
|
-
formState: { errors },
|
|
9198
|
+
formState: { errors, defaultValues },
|
|
9199
9199
|
getValues
|
|
9200
9200
|
} = reactHookForm.useFormContext();
|
|
9201
9201
|
const fullPath = path.join(".");
|
|
9202
9202
|
const error = react$3.getPathInObject(errors, path)?.message;
|
|
9203
9203
|
const value = getValues(fullPath);
|
|
9204
|
+
const fieldDefault = React.useMemo(() => {
|
|
9205
|
+
if (!defaultValues) return field.default;
|
|
9206
|
+
const resolved = react$3.getPathInObject(defaultValues, path);
|
|
9207
|
+
return resolved === void 0 ? field.default : resolved;
|
|
9208
|
+
}, [defaultValues, path, field.default]);
|
|
9204
9209
|
const FieldWrapper = field.fieldConfig?.fieldWrapper || uiComponents.FieldWrapper;
|
|
9205
9210
|
let FieldComponent = () => /* @__PURE__ */ jsxRuntime.jsx(
|
|
9206
9211
|
uiComponents.ErrorMessage,
|
|
@@ -9217,11 +9222,12 @@ const CustomAutoFormField = ({ field, path }) => {
|
|
|
9217
9222
|
} else if ("fallback" in formComponents) {
|
|
9218
9223
|
FieldComponent = formComponents.fallback;
|
|
9219
9224
|
}
|
|
9220
|
-
|
|
9225
|
+
const fieldWithDefault = { ...field, default: fieldDefault };
|
|
9226
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FieldWrapper, { label: core.getLabel(field), error, id: fullPath, field: fieldWithDefault, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9221
9227
|
FieldComponent,
|
|
9222
9228
|
{
|
|
9223
9229
|
label: core.getLabel(field),
|
|
9224
|
-
field,
|
|
9230
|
+
field: fieldWithDefault,
|
|
9225
9231
|
value,
|
|
9226
9232
|
error,
|
|
9227
9233
|
id: fullPath,
|
|
@@ -10705,7 +10711,7 @@ const WorkflowStepActionBar = ({
|
|
|
10705
10711
|
}
|
|
10706
10712
|
return void 0;
|
|
10707
10713
|
}, [stepKey, stepsFlow, inDebugMode, result]);
|
|
10708
|
-
const showDebugMode = inDebugMode && stepPayload && !result?.steps[stepKey];
|
|
10714
|
+
const showDebugMode = inDebugMode && stepPayload && !result?.steps?.[stepKey];
|
|
10709
10715
|
const isMapConfigOpen = stepDetail?.type === "map-config" && stepDetail?.stepName === stepName;
|
|
10710
10716
|
const isNestedGraphOpen = stepDetail?.type === "nested-graph" && stepDetail?.stepName === stepName;
|
|
10711
10717
|
const activeButtonClass = "ring-2 ring-accent1 ring-offset-1 ring-offset-transparent";
|
|
@@ -13216,25 +13222,17 @@ const Tabs = ({ children, defaultTab, value, onValueChange, className }) => {
|
|
|
13216
13222
|
return /* @__PURE__ */ jsxRuntime.jsx(RadixTabs__namespace.Root, { value: currentTab, onValueChange: handleTabChange, className: cn("overflow-y-auto", className), children });
|
|
13217
13223
|
};
|
|
13218
13224
|
|
|
13219
|
-
const TabList = ({ children,
|
|
13225
|
+
const TabList = ({ children, alignment = "left", className }) => {
|
|
13220
13226
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("w-full overflow-x-auto", className), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13221
13227
|
RadixTabs__namespace.List,
|
|
13222
13228
|
{
|
|
13223
13229
|
className: cn(
|
|
13224
13230
|
"flex items-center relative w-max min-w-full",
|
|
13225
|
-
|
|
13226
|
-
|
|
13227
|
-
|
|
13228
|
-
|
|
13229
|
-
|
|
13230
|
-
[`[&>button]:${transitions.colors} [&>button]:hover:text-neutral4`]: variant === "default",
|
|
13231
|
-
"[&>button[data-state=active]]:text-neutral5 [&>button[data-state=active]]:border-black/50 [&>button[data-state=active]]:dark:border-white/50": variant === "default",
|
|
13232
|
-
// variant: buttons
|
|
13233
|
-
"border border-border1 flex justify-stretch rounded-md overflow-hidden text-ui-md min-h-[2.5rem]": variant === "buttons",
|
|
13234
|
-
[`[&>button]:flex-1 [&>button]:py-2 [&>button]:px-4 [&>button]:text-neutral3 [&>button]:${transitions.all}`]: variant === "buttons",
|
|
13235
|
-
"hover:[&>button]:text-neutral4 hover:[&>button]:bg-surface3": variant === "buttons",
|
|
13236
|
-
"[&>button[data-state=active]]:text-neutral5 [&>button[data-state=active]]:bg-surface4 [&>button[data-state=active]]:shadow-inner": variant === "buttons"
|
|
13237
|
-
},
|
|
13231
|
+
"text-ui-lg border-b border-border1",
|
|
13232
|
+
"[&>button]:py-2 [&>button]:px-6 [&>button]:font-normal [&>button]:text-neutral3 [&>button]:border-b-2 [&>button]:border-transparent",
|
|
13233
|
+
alignment === "full-width" && "[&>button]:flex-1",
|
|
13234
|
+
`[&>button]:${transitions.colors} [&>button]:hover:text-neutral4`,
|
|
13235
|
+
"[&>button[data-state=active]]:text-neutral5 [&>button[data-state=active]]:border-black/50 [&>button[data-state=active]]:dark:border-white/50",
|
|
13238
13236
|
className
|
|
13239
13237
|
),
|
|
13240
13238
|
children
|
|
@@ -44583,7 +44581,7 @@ function EmptyDatasetsTable({ onCreateClick }) {
|
|
|
44583
44581
|
size: "lg",
|
|
44584
44582
|
variant: "outline",
|
|
44585
44583
|
as: "a",
|
|
44586
|
-
href: "https://mastra.ai/docs/
|
|
44584
|
+
href: "https://mastra.ai/docs/evals/datasets/overview",
|
|
44587
44585
|
target: "_blank",
|
|
44588
44586
|
rel: "noopener noreferrer",
|
|
44589
44587
|
children: [
|
|
@@ -44684,7 +44682,7 @@ const NoDatasetsInfo = () => /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
|
44684
44682
|
{
|
|
44685
44683
|
variant: "ghost",
|
|
44686
44684
|
as: "a",
|
|
44687
|
-
href: "https://mastra.ai/docs/
|
|
44685
|
+
href: "https://mastra.ai/docs/evals/datasets/overview",
|
|
44688
44686
|
target: "_blank",
|
|
44689
44687
|
rel: "noopener noreferrer",
|
|
44690
44688
|
children: [
|