@formisch/qwik 0.9.0 → 0.9.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
@@ -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
@@ -1,6 +1,6 @@
1
1
  import * as v from "valibot";
2
2
  import { JSXOutput, NoSerialize, PropsOf, QRL, ReadonlySignal } from "@qwik.dev/core";
3
- import * as _qwik_dev_core_internal3 from "@qwik.dev/core/internal";
3
+ import * as _qwik_dev_core_internal1 from "@qwik.dev/core/internal";
4
4
 
5
5
  //#region ../../packages/core/dist/index.qwik.d.ts
6
6
 
@@ -985,7 +985,7 @@ interface FieldProps<TSchema extends Schema = Schema, TFieldPath extends Require
985
985
  *
986
986
  * @returns The UI of the field to be rendered.
987
987
  */
988
- declare const Field: <TSchema extends Schema, TFieldPath extends RequiredPath>(props: _qwik_dev_core_internal3.PublicProps<FieldProps<TSchema, TFieldPath>>, key: string | null, flags: number, dev?: _qwik_dev_core_internal3.DevJSX) => JSXOutput;
988
+ declare const Field: <TSchema extends Schema, TFieldPath extends RequiredPath>(props: _qwik_dev_core_internal1.PublicProps<FieldProps<TSchema, TFieldPath>>, key: string | null, flags: number, dev?: _qwik_dev_core_internal1.DevJSX) => JSXOutput;
989
989
  //#endregion
990
990
  //#region src/components/FieldArray/FieldArray.d.ts
991
991
  /**
@@ -1013,7 +1013,7 @@ interface FieldArrayProps<TSchema extends Schema = Schema, TFieldArrayPath exten
1013
1013
  *
1014
1014
  * @returns The UI of the field array to be rendered.
1015
1015
  */
1016
- declare const FieldArray: <TSchema extends Schema, TFieldArrayPath extends RequiredPath>(props: _qwik_dev_core_internal3.PublicProps<FieldArrayProps<TSchema, TFieldArrayPath>>, key: string | null, flags: number, dev?: _qwik_dev_core_internal3.DevJSX) => JSXOutput;
1016
+ declare const FieldArray: <TSchema extends Schema, TFieldArrayPath extends RequiredPath>(props: _qwik_dev_core_internal1.PublicProps<FieldArrayProps<TSchema, TFieldArrayPath>>, key: string | null, flags: number, dev?: _qwik_dev_core_internal1.DevJSX) => JSXOutput;
1017
1017
  //#endregion
1018
1018
  //#region src/components/Form/Form.d.ts
1019
1019
  /**
@@ -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.
@@ -1035,7 +1035,7 @@ type FormProps<TSchema extends Schema = Schema> = Omit<PropsOf<'form'>, 'onSubmi
1035
1035
  *
1036
1036
  * @returns The a native form element.
1037
1037
  */
1038
- declare const Form: <TSchema extends Schema>(props: _qwik_dev_core_internal3.PublicProps<FormProps<TSchema>>, key: string | null, flags: number, dev?: _qwik_dev_core_internal3.DevJSX) => JSXOutput;
1038
+ declare const Form: <TSchema extends Schema>(props: _qwik_dev_core_internal1.PublicProps<FormProps<TSchema>>, key: string | null, flags: number, dev?: _qwik_dev_core_internal1.DevJSX) => JSXOutput;
1039
1039
  //#endregion
1040
1040
  //#region src/hooks/useField/useField.d.ts
1041
1041
  /**
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.1",
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",
50
+ "@formisch/eslint-config": "0.1.0",
51
51
  "@formisch/methods": "0.7.0",
52
- "@formisch/eslint-config": "0.1.0"
52
+ "@formisch/core": "0.6.0"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@qwik.dev/core": ">=2",