@formisch/react 0.4.0 → 0.4.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 +1 -1
- package/dist/index.d.ts +2 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ export default function LoginPage() {
|
|
|
32
32
|
});
|
|
33
33
|
|
|
34
34
|
return (
|
|
35
|
-
<Form of={loginForm} onSubmit={(output) => console.log(output)}>
|
|
35
|
+
<Form of={loginForm} onSubmit={(output, event) => console.log(output)}>
|
|
36
36
|
<Field of={loginForm} path={['email']}>
|
|
37
37
|
{(field) => (
|
|
38
38
|
<div>
|
package/dist/index.d.ts
CHANGED
|
@@ -200,11 +200,11 @@ type MaybePromise<TValue> = TValue | Promise<TValue>;
|
|
|
200
200
|
/**
|
|
201
201
|
* Makes all properties deeply optional.
|
|
202
202
|
*/
|
|
203
|
-
type DeepPartial<TValue> = TValue extends
|
|
203
|
+
type DeepPartial<TValue> = TValue extends Record<PropertyKey, unknown> | readonly unknown[] ? { [Key in keyof TValue]?: DeepPartial<TValue[Key]> | undefined } : TValue | undefined;
|
|
204
204
|
/**
|
|
205
205
|
* Makes all value properties optional.
|
|
206
206
|
*/
|
|
207
|
-
type PartialValues<TValue> = TValue extends
|
|
207
|
+
type PartialValues<TValue> = TValue extends Record<PropertyKey, unknown> | readonly unknown[] ? { [Key in keyof TValue]: PartialValues<TValue[Key]> } : TValue | undefined;
|
|
208
208
|
//#endregion
|
|
209
209
|
//#region src/values.d.ts
|
|
210
210
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formisch/react",
|
|
3
3
|
"description": "The modular and type-safe form library for React",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Fabian Hiller",
|
|
7
7
|
"homepage": "https://formisch.dev",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"tsdown": "^0.16.8",
|
|
47
47
|
"typescript": "~5.9.3",
|
|
48
48
|
"vite": "^7.2.4",
|
|
49
|
-
"@formisch/core": "0.6.
|
|
50
|
-
"@formisch/
|
|
51
|
-
"@formisch/
|
|
49
|
+
"@formisch/core": "0.6.1",
|
|
50
|
+
"@formisch/eslint-config": "0.1.0",
|
|
51
|
+
"@formisch/methods": "0.7.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|