@conform-to/dom 0.6.3 → 0.7.0-pre.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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { type FormControl as FieldElement, isFormControl as isFieldElement, isFocusableFormControl, getFormAction, getFormControls, getFormElement, getFormEncType, getFormMethod, focusFirstInvalidControl, focusFormControl, createSubmitter, requestSubmit, } from './dom';
2
- export { formatPaths as getName, getPaths, getFormData, getValidationMessage, getErrors, } from './formdata';
3
- export { type ListCommand, INTENT, getScope, isSubmitting, validate, list, parseListCommand, updateList, requestIntent, } from './intent';
4
- export { type Submission, parse } from './parse';
5
- export { type FieldConstraint, type FieldsetConstraint, type ResolveType, type KeysOf, } from './types';
1
+ export { type FormControl as FieldElement, isFormControl as isFieldElement, isFocusableFormControl, getFormAction, getFormControls, getFormElement, getFormEncType, getFormMethod, focusFirstInvalidControl, focusFormControl, createSubmitter, requestSubmit, } from './dom.js';
2
+ export { formatPaths as getName, getPaths, getFormData, getValidationMessage, getErrors, } from './formdata.js';
3
+ export { type ListCommand, INTENT, getScope, isSubmitting, validate, list, parseListCommand, updateList, requestIntent, } from './intent.js';
4
+ export { type Submission, parse } from './parse.js';
5
+ export { type FieldConstraint, type FieldsetConstraint, type ResolveType, type KeysOf, } from './types.js';
@@ -1,4 +1,4 @@
1
- export { createSubmitter, focusFirstInvalidControl, focusFormControl, getFormAction, getFormControls, getFormElement, getFormEncType, getFormMethod, isFormControl as isFieldElement, isFocusableFormControl, requestSubmit } from './dom.js';
2
- export { getErrors, getFormData, formatPaths as getName, getPaths, getValidationMessage } from './formdata.js';
3
- export { INTENT, getScope, isSubmitting, list, parseListCommand, requestIntent, updateList, validate } from './intent.js';
4
- export { parse } from './parse.js';
1
+ export { createSubmitter, focusFirstInvalidControl, focusFormControl, getFormAction, getFormControls, getFormElement, getFormEncType, getFormMethod, isFormControl as isFieldElement, isFocusableFormControl, requestSubmit } from './dom.mjs';
2
+ export { getErrors, getFormData, formatPaths as getName, getPaths, getValidationMessage } from './formdata.mjs';
3
+ export { INTENT, getScope, isSubmitting, list, parseListCommand, requestIntent, updateList, validate } from './intent.mjs';
4
+ export { parse } from './parse.mjs';
@@ -1,4 +1,4 @@
1
- import { createSubmitter, requestSubmit } from './dom.js';
1
+ import { createSubmitter, requestSubmit } from './dom.mjs';
2
2
 
3
3
  var INTENT = '__intent__';
4
4
 
package/package.json CHANGED
@@ -3,9 +3,19 @@
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": "0.6.3",
6
+ "version": "0.7.0-pre.1",
7
7
  "main": "index.js",
8
- "module": "module/index.js",
8
+ "module": "index.mjs",
9
+ "types": "index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./index.d.ts",
13
+ "module": "./index.mjs",
14
+ "import": "./index.mjs",
15
+ "require": "./index.js",
16
+ "default": "./index.mjs"
17
+ }
18
+ },
9
19
  "repository": {
10
20
  "type": "git",
11
21
  "url": "https://github.com/edmundhung/conform",
@@ -1,6 +1,6 @@
1
- import { objectSpread2 as _objectSpread2 } from './_virtual/_rollupPluginBabelHelpers.js';
2
- import { resolve, setValue } from './formdata.js';
3
- import { getIntent, parseListCommand, updateList } from './intent.js';
1
+ import { objectSpread2 as _objectSpread2 } from './_virtual/_rollupPluginBabelHelpers.mjs';
2
+ import { resolve, setValue } from './formdata.mjs';
3
+ import { getIntent, parseListCommand, updateList } from './intent.mjs';
4
4
 
5
5
  function parse(payload, options) {
6
6
  var submission = {
File without changes
File without changes