@formisch/qwik 0.9.0 → 0.9.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 CHANGED
@@ -33,7 +33,7 @@ export default component$(() => {
33
33
  });
34
34
 
35
35
  return (
36
- <Form of={loginForm} onSubmit$={(output) => console.log(output)}>
36
+ <Form of={loginForm} onSubmit$={(output, event) => console.log(output)}>
37
37
  <Field
38
38
  of={loginForm}
39
39
  path={['email']}
package/dist/index.d.ts CHANGED
@@ -213,11 +213,11 @@ type MaybePromise<TValue> = TValue | Promise<TValue>;
213
213
  /**
214
214
  * Makes all properties deeply optional.
215
215
  */
216
- 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;
216
+ type DeepPartial<TValue> = TValue extends Record<PropertyKey, unknown> | readonly unknown[] ? { [Key in keyof TValue]?: DeepPartial<TValue[Key]> | undefined } : TValue | undefined;
217
217
  /**
218
218
  * Makes all value properties optional.
219
219
  */
220
- 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;
220
+ type PartialValues<TValue> = TValue extends Record<PropertyKey, unknown> | readonly unknown[] ? { [Key in keyof TValue]: PartialValues<TValue[Key]> } : TValue | undefined;
221
221
  //#endregion
222
222
  //#region src/types/form.d.ts
223
223
  /**
@@ -1027,7 +1027,7 @@ type FormProps<TSchema extends Schema = Schema> = Omit<PropsOf<'form'>, 'onSubmi
1027
1027
  /**
1028
1028
  * The submit handler called when the form is submitted and validation succeeds.
1029
1029
  */
1030
- readonly onSubmit$: QRL<SubmitHandler<TSchema> | SubmitEventHandler<TSchema>>;
1030
+ readonly onSubmit$: QRL<SubmitHandler<TSchema>> | QRL<SubmitEventHandler<TSchema>>;
1031
1031
  };
1032
1032
  /**
1033
1033
  * Form component that manages form submission and applies internal state.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@formisch/qwik",
3
3
  "description": "The modular and type-safe form library for Qwik",
4
- "version": "0.9.0",
4
+ "version": "0.9.2",
5
5
  "license": "MIT",
6
6
  "author": "Fabian Hiller",
7
7
  "homepage": "https://formisch.dev",
@@ -47,9 +47,9 @@
47
47
  "valibot": "^1.2.0",
48
48
  "vite": "7.0.4",
49
49
  "vite-tsconfig-paths": "^5.1.4",
50
- "@formisch/core": "0.6.0",
51
- "@formisch/methods": "0.7.0",
52
- "@formisch/eslint-config": "0.1.0"
50
+ "@formisch/core": "0.6.1",
51
+ "@formisch/eslint-config": "0.1.0",
52
+ "@formisch/methods": "0.7.0"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@qwik.dev/core": ">=2",