@conform-to/react 1.14.0 → 1.14.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/future/types.d.ts +1 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
╚══════╝ ╚═════╝ ╚═╝ ╚══╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
Version 1.14.
|
|
10
|
+
Version 1.14.1 / License MIT / Copyright (c) 2025 Edmund Hung
|
|
11
11
|
|
|
12
12
|
Progressively enhance HTML forms with React. Build resilient, type-safe forms with no hassle using web standards.
|
|
13
13
|
|
package/dist/future/types.d.ts
CHANGED
|
@@ -128,9 +128,6 @@ export type NonPartial<T> = {
|
|
|
128
128
|
[K in keyof Required<T>]: T[K];
|
|
129
129
|
};
|
|
130
130
|
export type RequireKey<T, K extends keyof T> = Prettify<T & Pick<NonPartial<T>, K>>;
|
|
131
|
-
export type RequireOneOf<T, K extends keyof T> = Prettify<{
|
|
132
|
-
[K in keyof T]-?: RequireKey<T, K>;
|
|
133
|
-
}[K]>;
|
|
134
131
|
export type BaseSchemaType = StandardSchemaV1<any, any>;
|
|
135
132
|
export type InferInput<Schema> = Schema extends StandardSchemaV1<infer input, any> ? input : unknown;
|
|
136
133
|
export type InferOutput<Schema> = Schema extends StandardSchemaV1<any, infer output> ? output : undefined;
|
|
@@ -170,7 +167,7 @@ export type BaseFormOptions<FormShape extends Record<string, any> = Record<strin
|
|
|
170
167
|
/** Custom validation handler. Can be skipped if using the schema property, or combined with schema to customize validation errors. */
|
|
171
168
|
onValidate?: ValidateHandler<ErrorShape, Value, InferOutput<Schema>> | undefined;
|
|
172
169
|
};
|
|
173
|
-
export type FormOptions<FormShape extends Record<string, any> = Record<string, any>, ErrorShape extends BaseErrorShape = string extends BaseErrorShape ? string : BaseErrorShape, Value = undefined, Schema = undefined, RequiredKeys extends keyof BaseFormOptions<FormShape, ErrorShape, Value, Schema> = never> =
|
|
170
|
+
export type FormOptions<FormShape extends Record<string, any> = Record<string, any>, ErrorShape extends BaseErrorShape = string extends BaseErrorShape ? string : BaseErrorShape, Value = undefined, Schema = undefined, RequiredKeys extends keyof BaseFormOptions<FormShape, ErrorShape, Value, Schema> = never> = RequireKey<BaseFormOptions<FormShape, ErrorShape, Value, Schema>, RequiredKeys>;
|
|
174
171
|
export interface FormContext<ErrorShape extends BaseErrorShape = DefaultErrorShape> {
|
|
175
172
|
/** The form's unique identifier */
|
|
176
173
|
formId: string;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Conform view adapter for react",
|
|
4
4
|
"homepage": "https://conform.guide",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "1.14.
|
|
6
|
+
"version": "1.14.1",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"module": "./dist/index.mjs",
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"url": "https://github.com/edmundhung/conform/issues"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@conform-to/dom": "1.14.
|
|
44
|
+
"@conform-to/dom": "1.14.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@babel/core": "^7.17.8",
|