@formisch/preact 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 +1 -1
- package/dist/index.d.ts +2 -2
- package/package.json +3 -3
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
|
@@ -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
|
|
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
|
|
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
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formisch/preact",
|
|
3
3
|
"description": "The modular and type-safe form library for Preact",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.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
|
"vite": "^6.0.4",
|
|
45
45
|
"@formisch/eslint-config": "0.1.0",
|
|
46
|
-
"@formisch/
|
|
47
|
-
"@formisch/
|
|
46
|
+
"@formisch/methods": "0.7.0",
|
|
47
|
+
"@formisch/core": "0.6.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@preact/signals": "^2.0.0",
|