@conform-to/react 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/helpers.d.ts +1 -1
- package/{module/helpers.js → helpers.mjs} +2 -2
- package/{module/hooks.js → hooks.mjs} +1 -1
- package/index.d.ts +2 -2
- package/{module/index.js → index.mjs} +2 -2
- package/package.json +13 -3
- package/base.d.ts +0 -0
- /package/{module/_virtual/_rollupPluginBabelHelpers.js → _virtual/_rollupPluginBabelHelpers.mjs} +0 -0
package/helpers.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { INTENT } from '@conform-to/dom';
|
|
2
|
-
import { type FieldConfig, type Primitive, VALIDATION_UNDEFINED, VALIDATION_SKIPPED } from './hooks';
|
|
2
|
+
import { type FieldConfig, type Primitive, VALIDATION_UNDEFINED, VALIDATION_SKIPPED } from './hooks.js';
|
|
3
3
|
import type { CSSProperties, HTMLInputTypeAttribute } from 'react';
|
|
4
4
|
interface FormControlProps {
|
|
5
5
|
id?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { objectSpread2 as _objectSpread2 } from './_virtual/_rollupPluginBabelHelpers.
|
|
1
|
+
import { objectSpread2 as _objectSpread2 } from './_virtual/_rollupPluginBabelHelpers.mjs';
|
|
2
2
|
export { INTENT } from '@conform-to/dom';
|
|
3
|
-
export { VALIDATION_SKIPPED, VALIDATION_UNDEFINED } from './hooks.
|
|
3
|
+
export { VALIDATION_SKIPPED, VALIDATION_UNDEFINED } from './hooks.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Style to make the input element visually hidden
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { objectSpread2 as _objectSpread2 } from './_virtual/_rollupPluginBabelHelpers.
|
|
1
|
+
import { objectSpread2 as _objectSpread2 } from './_virtual/_rollupPluginBabelHelpers.mjs';
|
|
2
2
|
import { getScope, getFormData, parse, isSubmitting, getFormAction, getFormEncType, getFormMethod, getPaths, getName, isFieldElement, getErrors, getFormControls, getFormElement, parseListCommand, updateList, getValidationMessage, focusFormControl, focusFirstInvalidControl, INTENT, isFocusableFormControl, requestIntent, validate } from '@conform-to/dom';
|
|
3
3
|
import { useState, useMemo, useEffect, useRef, useCallback, useLayoutEffect } from 'react';
|
|
4
4
|
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { type FieldsetConstraint, type Submission, parse, list, validate, requestIntent, isFieldElement, } from '@conform-to/dom';
|
|
2
|
-
export { type Fieldset, type FieldConfig, type FieldsetConfig, type FormConfig, useForm, useFieldset, useFieldList, useInputEvent, validateConstraint, } from './hooks';
|
|
3
|
-
export * as conform from './helpers';
|
|
2
|
+
export { type Fieldset, type FieldConfig, type FieldsetConfig, type FormConfig, useForm, useFieldset, useFieldList, useInputEvent, validateConstraint, } from './hooks.js';
|
|
3
|
+
export * as conform from './helpers.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { isFieldElement, list, parse, requestIntent, validate } from '@conform-to/dom';
|
|
2
|
-
export { useFieldList, useFieldset, useForm, useInputEvent, validateConstraint } from './hooks.
|
|
3
|
-
import * as helpers from './helpers.
|
|
2
|
+
export { useFieldList, useFieldset, useForm, useInputEvent, validateConstraint } from './hooks.mjs';
|
|
3
|
+
import * as helpers from './helpers.mjs';
|
|
4
4
|
export { helpers as conform };
|
package/package.json
CHANGED
|
@@ -3,9 +3,19 @@
|
|
|
3
3
|
"description": "Conform view adapter for react",
|
|
4
4
|
"homepage": "https://conform.guide",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.7.0-pre.1",
|
|
7
7
|
"main": "index.js",
|
|
8
|
-
"module": "
|
|
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",
|
|
@@ -20,7 +30,7 @@
|
|
|
20
30
|
"url": "https://github.com/edmundhung/conform/issues"
|
|
21
31
|
},
|
|
22
32
|
"dependencies": {
|
|
23
|
-
"@conform-to/dom": "0.
|
|
33
|
+
"@conform-to/dom": "0.7.0-pre.1"
|
|
24
34
|
},
|
|
25
35
|
"peerDependencies": {
|
|
26
36
|
"react": ">=16.8"
|
package/base.d.ts
DELETED
|
File without changes
|
/package/{module/_virtual/_rollupPluginBabelHelpers.js → _virtual/_rollupPluginBabelHelpers.mjs}
RENAMED
|
File without changes
|