@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 CHANGED
@@ -7,7 +7,7 @@
7
7
  ╚══════╝ ╚═════╝ ╚═╝ ╚══╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝
8
8
  ```
9
9
 
10
- Version 1.5.1 / License MIT / Copyright (c) 2024 Edmund Hung
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
@@ -158,3 +158,4 @@ export declare function updateFieldValue(element: HTMLInputElement | HTMLSelectE
158
158
  defaultValue?: string | string[];
159
159
  }): void;
160
160
  export {};
161
+ //# sourceMappingURL=form.d.ts.map
@@ -64,3 +64,4 @@ export declare function flatten(data: unknown, options?: {
64
64
  resolve?: (data: unknown) => unknown;
65
65
  prefix?: string;
66
66
  }): Record<string, unknown>;
67
+ //# sourceMappingURL=formdata.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
@@ -1,3 +1,4 @@
1
1
  export declare function invariant(expectedCondition: boolean, message: string): asserts expectedCondition;
2
2
  export declare function generateId(): string;
3
3
  export declare function clone<Data>(data: Data): Data;
4
+ //# sourceMappingURL=util.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.5.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
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