@formisch/vue 0.7.0 → 0.7.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/README.md CHANGED
@@ -31,7 +31,7 @@ const loginForm = useForm({ schema: LoginSchema });
31
31
  </script>
32
32
 
33
33
  <template>
34
- <Form :of="loginForm" @submit="(output) => console.log(output)">
34
+ <Form :of="loginForm" @submit="(output, event) => console.log(output)">
35
35
  <Field :of="loginForm" :path="['email']" v-slot="field">
36
36
  <div>
37
37
  <input v-model="field.input" v-bind="field.props" type="email" />
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as v from "valibot";
2
- import * as vue0 from "vue";
2
+ import * as vue1 from "vue";
3
3
  import { ComponentPublicInstance, MaybeRefOrGetter, ShallowRef as Signal } from "vue";
4
4
 
5
5
  //#region ../../packages/core/dist/index.vue.d.ts
@@ -199,11 +199,11 @@ type MaybePromise<TValue> = TValue | Promise<TValue>;
199
199
  /**
200
200
  * Makes all properties deeply optional.
201
201
  */
202
- type DeepPartial<TValue> = TValue extends readonly unknown[] ? number extends TValue["length"] ? TValue : { [Key in keyof TValue]?: DeepPartial<TValue[Key]> | undefined } : TValue extends Record<PropertyKey, unknown> ? { [Key in keyof TValue]?: DeepPartial<TValue[Key]> | undefined } : TValue | undefined;
202
+ type DeepPartial<TValue> = TValue extends Record<PropertyKey, unknown> | readonly unknown[] ? { [Key in keyof TValue]?: DeepPartial<TValue[Key]> | undefined } : TValue | undefined;
203
203
  /**
204
204
  * Makes all value properties optional.
205
205
  */
206
- type PartialValues<TValue> = TValue extends readonly unknown[] ? number extends TValue["length"] ? TValue : { [Key in keyof TValue]: PartialValues<TValue[Key]> } : TValue extends Record<PropertyKey, unknown> ? { [Key in keyof TValue]: PartialValues<TValue[Key]> } : TValue | undefined;
206
+ type PartialValues<TValue> = TValue extends Record<PropertyKey, unknown> | readonly unknown[] ? { [Key in keyof TValue]: PartialValues<TValue[Key]> } : TValue | undefined;
207
207
  //#endregion
208
208
  //#region src/types/form.d.ts
209
209
  /**
@@ -955,14 +955,14 @@ interface FieldProps<TSchema extends Schema = Schema, TFieldPath extends Require
955
955
  readonly path: ValidPath<v.InferInput<TSchema>, TFieldPath>;
956
956
  }
957
957
  declare const __VLS_export$2: <TSchema extends Schema, TFieldPath extends RequiredPath>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$2<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
958
- props: __VLS_PrettifyLocal$2<FieldProps<TSchema, TFieldPath>> & vue0.PublicProps;
958
+ props: __VLS_PrettifyLocal$2<FieldProps<TSchema, TFieldPath>> & vue1.PublicProps;
959
959
  expose: (exposed: {}) => void;
960
960
  attrs: any;
961
961
  slots: {
962
962
  default(props: FieldStore<TSchema, TFieldPath>): any;
963
963
  };
964
964
  emit: {};
965
- }>) => vue0.VNode & {
965
+ }>) => vue1.VNode & {
966
966
  __ctx?: Awaited<typeof __VLS_setup>;
967
967
  };
968
968
  declare const _default: typeof __VLS_export$2;
@@ -983,14 +983,14 @@ interface FieldArrayProps<TSchema extends Schema = Schema, TFieldArrayPath exten
983
983
  readonly path: ValidArrayPath<v.InferInput<TSchema>, TFieldArrayPath>;
984
984
  }
985
985
  declare const __VLS_export$1: <TSchema extends Schema, TFieldArrayPath extends RequiredPath>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$1<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
986
- props: __VLS_PrettifyLocal$1<FieldArrayProps<TSchema, TFieldArrayPath>> & vue0.PublicProps;
986
+ props: __VLS_PrettifyLocal$1<FieldArrayProps<TSchema, TFieldArrayPath>> & vue1.PublicProps;
987
987
  expose: (exposed: {}) => void;
988
988
  attrs: any;
989
989
  slots: {
990
990
  default(props: FieldArrayStore<TSchema, TFieldArrayPath>): any;
991
991
  };
992
992
  emit: {};
993
- }>) => vue0.VNode & {
993
+ }>) => vue1.VNode & {
994
994
  __ctx?: Awaited<typeof __VLS_setup>;
995
995
  };
996
996
  declare const _default$1: typeof __VLS_export$1;
@@ -1011,14 +1011,14 @@ interface FormProps<TSchema extends Schema = Schema> {
1011
1011
  onSubmit: SubmitHandler<TSchema> | SubmitEventHandler<TSchema>;
1012
1012
  }
1013
1013
  declare const __VLS_export: <TSchema extends Schema = Schema>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
1014
- props: __VLS_PrettifyLocal<FormProps<TSchema>> & vue0.PublicProps;
1014
+ props: __VLS_PrettifyLocal<FormProps<TSchema>> & vue1.PublicProps;
1015
1015
  expose: (exposed: {}) => void;
1016
1016
  attrs: any;
1017
1017
  slots: {
1018
1018
  default?: (props: {}) => any;
1019
1019
  };
1020
1020
  emit: {};
1021
- }>) => vue0.VNode & {
1021
+ }>) => vue1.VNode & {
1022
1022
  __ctx?: Awaited<typeof __VLS_setup>;
1023
1023
  };
1024
1024
  declare const _default$2: typeof __VLS_export;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@formisch/vue",
3
3
  "description": "The modular and type-safe form library for Vue",
4
- "version": "0.7.0",
4
+ "version": "0.7.1",
5
5
  "license": "MIT",
6
6
  "author": "Fabian Hiller",
7
7
  "homepage": "https://formisch.dev",
@@ -43,8 +43,8 @@
43
43
  "valibot": "^1.2.0",
44
44
  "vue": "^3.5.18",
45
45
  "vue-tsc": "^3.0.4",
46
+ "@formisch/core": "0.6.1",
46
47
  "@formisch/eslint-config": "0.1.0",
47
- "@formisch/core": "0.6.0",
48
48
  "@formisch/methods": "0.7.0"
49
49
  },
50
50
  "peerDependencies": {