@mastra/playground-ui 31.0.0-alpha.5 → 31.0.0-alpha.6
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 +15 -0
- package/dist/index.cjs.js +17 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +206 -32
- package/dist/index.es.js +17 -11
- package/dist/index.es.js.map +1 -1
- package/dist/src/ds/components/Switch/switch.stories.d.ts +2 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 31.0.0-alpha.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Agent Builder starter agents now use the admin-configured default model when the model policy has one set. Previously, the starter ignored the admin default and always picked the first entry from the picker allowlist, which surfaced as "default model gets over-written by agent builder" on agents created from starter cards or the freeform prompt. ([#17424](https://github.com/mastra-ai/mastra/pull/17424))
|
|
8
|
+
|
|
9
|
+
When no admin default is set, behavior is unchanged: the starter falls back to the first allowed model, then to the hardcoded fallback.
|
|
10
|
+
|
|
11
|
+
- Improved switch focus, disabled, and motion states. ([#17416](https://github.com/mastra-ai/mastra/pull/17416))
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`860ec4e`](https://github.com/mastra-ai/mastra/commit/860ec4edf6aa508edfd4f34c312c141209eb0dbf), [`bb3fce8`](https://github.com/mastra-ai/mastra/commit/bb3fce8f8d80079170c0f98cb2efbb29ae34375d), [`19a8658`](https://github.com/mastra-ai/mastra/commit/19a86589c788ef48bb6c1b0612cc82a201857379), [`a659a77`](https://github.com/mastra-ai/mastra/commit/a659a779bdebe3a52a518c56d2260592d0240fe0), [`3332be9`](https://github.com/mastra-ai/mastra/commit/3332be9701ecd77aba840959d9a1d1ce7aef02d3), [`05d61e1`](https://github.com/mastra-ai/mastra/commit/05d61e18aa014a012a32ee9cb79cdcf3210dbe9d)]:
|
|
14
|
+
- @mastra/react@0.4.3-alpha.6
|
|
15
|
+
- @mastra/client-js@1.22.0-alpha.6
|
|
16
|
+
- @mastra/core@1.38.0-alpha.6
|
|
17
|
+
|
|
3
18
|
## 31.0.0-alpha.5
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/index.cjs.js
CHANGED
|
@@ -9955,13 +9955,16 @@ const Switch = React__namespace.forwardRef(({ className, asChild, children, ...p
|
|
|
9955
9955
|
ref,
|
|
9956
9956
|
"data-slot": "switch",
|
|
9957
9957
|
className: cn(
|
|
9958
|
-
"peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-
|
|
9959
|
-
|
|
9960
|
-
|
|
9961
|
-
"
|
|
9962
|
-
"
|
|
9963
|
-
"data-[checked]:bg-
|
|
9964
|
-
"data-[
|
|
9958
|
+
"peer group/switch inline-flex h-5 w-9 shrink-0 cursor-pointer items-center overflow-hidden rounded-full border-0 bg-neutral6/[0.14] p-0.5 outline-hidden",
|
|
9959
|
+
"transition-colors duration-normal ease-out-custom motion-reduce:transition-none",
|
|
9960
|
+
"hover:bg-neutral6/[0.18]",
|
|
9961
|
+
"active:bg-neutral6/[0.22]",
|
|
9962
|
+
"focus-visible:outline focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-neutral5/55",
|
|
9963
|
+
"data-[checked]:bg-neutral6/[0.92]",
|
|
9964
|
+
"data-[checked]:hover:bg-neutral6",
|
|
9965
|
+
"data-[checked]:active:bg-neutral5",
|
|
9966
|
+
"data-[disabled]:cursor-not-allowed data-[disabled]:bg-neutral6/[0.16] data-[disabled]:hover:bg-neutral6/[0.16]",
|
|
9967
|
+
"data-[disabled]:data-[checked]:bg-neutral6/[0.3] data-[disabled]:data-[checked]:hover:bg-neutral6/[0.3]",
|
|
9965
9968
|
className
|
|
9966
9969
|
),
|
|
9967
9970
|
...renderProps,
|
|
@@ -9971,11 +9974,14 @@ const Switch = React__namespace.forwardRef(({ className, asChild, children, ...p
|
|
|
9971
9974
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9972
9975
|
_switch.Switch.Thumb,
|
|
9973
9976
|
{
|
|
9977
|
+
"data-slot": "switch-thumb",
|
|
9974
9978
|
className: cn(
|
|
9975
|
-
"pointer-events-none block h-4 w-
|
|
9976
|
-
"transition-
|
|
9977
|
-
"
|
|
9978
|
-
"data-[checked]:
|
|
9979
|
+
"switch-thumb-motion pointer-events-none block h-4 w-5 rounded-full bg-neutral6",
|
|
9980
|
+
"transition-[background-color,translate,width,transform] duration-normal ease-out-custom motion-reduce:transition-none",
|
|
9981
|
+
"group-active/switch:w-6 group-data-[disabled]/switch:w-5",
|
|
9982
|
+
"data-[checked]:translate-x-3 data-[checked]:bg-surface1 data-[unchecked]:translate-x-0",
|
|
9983
|
+
"group-active/switch:data-[checked]:translate-x-2",
|
|
9984
|
+
"data-[disabled]:data-[unchecked]:bg-neutral6/[0.42] data-[disabled]:data-[checked]:bg-surface1/80"
|
|
9979
9985
|
)
|
|
9980
9986
|
}
|
|
9981
9987
|
)
|