@macrulez/vue-form-schema 0.2.1 → 0.2.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/README.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1108,7 +1108,7 @@ import { useForm } from '@macrulez/vue-form-schema'
|
|
|
1108
1108
|
const schema = z.object({ username: z.string(), age: z.number() })
|
|
1109
1109
|
const fields = parseZod(schema)
|
|
1110
1110
|
|
|
1111
|
-
const { values
|
|
1111
|
+
const { values } = useForm({
|
|
1112
1112
|
schema: fields,
|
|
1113
1113
|
onSubmit: (data) => {
|
|
1114
1114
|
data.username // string ✓ — inferred from `schema`, not Record<string, unknown>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@macrulez/vue-form-schema",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Reactive Vue 3 forms generated from JSON, Zod, Yup or Valibot schemas, with validation, input masking, conditional UI and SSR support.",
|
|
5
5
|
"author": "macrulez <macrulezru@gmail.com> (https://macrulez.ru/en)",
|
|
6
6
|
"license": "MIT",
|