@conform-to/dom 1.5.1 → 1.6.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/{dom.d.ts → dist/dom.d.ts} +1 -0
- package/{form.d.ts → dist/form.d.ts} +1 -0
- package/{formdata.d.ts → dist/formdata.d.ts} +1 -0
- package/{index.d.ts → dist/index.d.ts} +1 -0
- package/{submission.d.ts → dist/submission.d.ts} +1 -0
- package/{util.d.ts → dist/util.d.ts} +1 -0
- package/package.json +16 -11
- /package/{_virtual → dist/_virtual}/_rollupPluginBabelHelpers.js +0 -0
- /package/{_virtual → dist/_virtual}/_rollupPluginBabelHelpers.mjs +0 -0
- /package/{dom.js → dist/dom.js} +0 -0
- /package/{dom.mjs → dist/dom.mjs} +0 -0
- /package/{form.js → dist/form.js} +0 -0
- /package/{form.mjs → dist/form.mjs} +0 -0
- /package/{formdata.js → dist/formdata.js} +0 -0
- /package/{formdata.mjs → dist/formdata.mjs} +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{index.mjs → dist/index.mjs} +0 -0
- /package/{submission.js → dist/submission.js} +0 -0
- /package/{submission.mjs → dist/submission.mjs} +0 -0
- /package/{util.js → dist/util.js} +0 -0
- /package/{util.mjs → dist/util.mjs} +0 -0
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
╚══════╝ ╚═════╝ ╚═╝ ╚══╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
Version 1.
|
|
10
|
+
Version 1.6.1 / License MIT / Copyright (c) 2024 Edmund Hung
|
|
11
11
|
|
|
12
12
|
A type-safe form validation library utilizing web fundamentals to progressively enhance HTML Forms with full support for server frameworks like Remix and Next.js.
|
|
13
13
|
|
|
@@ -41,3 +41,4 @@ export declare function getFormMethod(event: SubmitEvent): 'GET' | 'POST' | 'PUT
|
|
|
41
41
|
* If the submitter is not mounted, it will be appended to the form and removed after submission.
|
|
42
42
|
*/
|
|
43
43
|
export declare function requestSubmit(form: HTMLFormElement | null | undefined, submitter: Submitter | null): void;
|
|
44
|
+
//# sourceMappingURL=dom.d.ts.map
|
|
@@ -2,3 +2,4 @@ export { type Combine, type Constraint, type ControlButtonProps, type FormId, ty
|
|
|
2
2
|
export { type FieldElement, isFieldElement } from './dom';
|
|
3
3
|
export { type Submission, type SubmissionResult, type Intent, INTENT, STATE, serializeIntent, parse, } from './submission';
|
|
4
4
|
export { getPaths, formatPaths, isPrefix } from './formdata';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -136,3 +136,4 @@ export declare const root: unique symbol;
|
|
|
136
136
|
export declare function setState(state: Record<string, unknown>, name: string, valueFn: (value: unknown) => unknown): void;
|
|
137
137
|
export declare function setListState(state: Record<string, unknown>, intent: InsertIntent | RemoveIntent | ReorderIntent, getDefaultValue?: (defaultValue: any) => any): void;
|
|
138
138
|
export declare function serialize<Schema>(defaultValue: Schema): FormValue<Schema>;
|
|
139
|
+
//# sourceMappingURL=submission.d.ts.map
|
package/package.json
CHANGED
|
@@ -3,19 +3,23 @@
|
|
|
3
3
|
"description": "A set of opinionated helpers built on top of the Constraint Validation API",
|
|
4
4
|
"homepage": "https://conform.guide",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "1.
|
|
7
|
-
"main": "index.js",
|
|
8
|
-
"module": "index.mjs",
|
|
9
|
-
"types": "index.d.ts",
|
|
6
|
+
"version": "1.6.1",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"module": "./dist/index.mjs",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
|
-
"types": "./index.d.ts",
|
|
13
|
-
"module": "./index.mjs",
|
|
14
|
-
"import": "./index.mjs",
|
|
15
|
-
"require": "./index.js",
|
|
16
|
-
"default": "./index.mjs"
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"module": "./dist/index.mjs",
|
|
14
|
+
"import": "./dist/index.mjs",
|
|
15
|
+
"require": "./dist/index.js",
|
|
16
|
+
"default": "./dist/index.mjs"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
|
+
"files": [
|
|
20
|
+
"./dist/**/*.{js,mjs}",
|
|
21
|
+
"./dist/**/*.d.ts"
|
|
22
|
+
],
|
|
19
23
|
"repository": {
|
|
20
24
|
"type": "git",
|
|
21
25
|
"url": "https://github.com/edmundhung/conform",
|
|
@@ -50,10 +54,11 @@
|
|
|
50
54
|
},
|
|
51
55
|
"scripts": {
|
|
52
56
|
"build:js": "rollup -c",
|
|
53
|
-
"build:ts": "tsc",
|
|
57
|
+
"build:ts": "tsc --project ./tsconfig.build.json",
|
|
54
58
|
"build": "pnpm run \"/^build:.*/\"",
|
|
55
59
|
"dev:js": "pnpm run build:js --watch",
|
|
56
60
|
"dev:ts": "pnpm run build:ts --watch",
|
|
57
|
-
"dev": "pnpm run \"/^dev:.*/\""
|
|
61
|
+
"dev": "pnpm run \"/^dev:.*/\"",
|
|
62
|
+
"typecheck": "tsc"
|
|
58
63
|
}
|
|
59
64
|
}
|
|
File without changes
|
|
File without changes
|
/package/{dom.js → dist/dom.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|