@conform-to/react 0.3.0-pre.0 → 0.3.0

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/hooks.d.ts CHANGED
@@ -42,7 +42,7 @@ interface FormProps {
42
42
  * Returns properties required to hook into form events.
43
43
  * Applied custom validation and define when error should be reported.
44
44
  *
45
- * @see https://github.com/edmundhung/conform/tree/v0.3.0-pre.0/packages/conform-react/README.md#useform
45
+ * @see https://github.com/edmundhung/conform/tree/v0.3.0/packages/conform-react/README.md#useform
46
46
  */
47
47
  export declare function useForm(config?: FormConfig): FormProps;
48
48
  /**
@@ -83,7 +83,7 @@ export interface FieldsetConfig<Schema extends Record<string, any>> {
83
83
  /**
84
84
  * Returns all the information about the fieldset.
85
85
  *
86
- * @see https://github.com/edmundhung/conform/tree/v0.3.0-pre.0/packages/conform-react/README.md#usefieldset
86
+ * @see https://github.com/edmundhung/conform/tree/v0.3.0/packages/conform-react/README.md#usefieldset
87
87
  */
88
88
  export declare function useFieldset<Schema extends Record<string, any>>(ref: RefObject<HTMLFormElement | HTMLFieldSetElement>, config?: FieldsetConfig<Schema>): Fieldset<Schema>;
89
89
  export declare function useFieldset<Schema extends Record<string, any>>(ref: RefObject<HTMLFormElement | HTMLFieldSetElement>, config?: FieldConfig<Schema>): Fieldset<Schema>;
@@ -110,7 +110,7 @@ interface ListControl<Schema> {
110
110
  * Returns a list of key and config, with a group of helpers
111
111
  * configuring buttons for list manipulation
112
112
  *
113
- * @see https://github.com/edmundhung/conform/tree/v0.3.0-pre.0/packages/conform-react/README.md#usefieldlist
113
+ * @see https://github.com/edmundhung/conform/tree/v0.3.0/packages/conform-react/README.md#usefieldlist
114
114
  */
115
115
  export declare function useFieldList<Payload = any>(ref: RefObject<HTMLFormElement | HTMLFieldSetElement>, config: FieldConfig<Array<Payload>>): [
116
116
  Array<{
@@ -137,7 +137,7 @@ interface InputControl {
137
137
  * This is particular useful when integrating dropdown and datepicker whichs
138
138
  * introduces custom input mode.
139
139
  *
140
- * @see https://github.com/edmundhung/conform/tree/v0.3.0-pre.0/packages/conform-react/README.md#usecontrolledinput
140
+ * @see https://github.com/edmundhung/conform/tree/v0.3.0/packages/conform-react/README.md#usecontrolledinput
141
141
  */
142
142
  export declare function useControlledInput<Schema extends Primitive = Primitive>(field: FieldConfig<Schema>): [ShadowInputProps, InputControl];
143
143
  export {};
package/hooks.js CHANGED
@@ -11,7 +11,7 @@ var helpers = require('./helpers.js');
11
11
  * Returns properties required to hook into form events.
12
12
  * Applied custom validation and define when error should be reported.
13
13
  *
14
- * @see https://github.com/edmundhung/conform/tree/v0.3.0-pre.0/packages/conform-react/README.md#useform
14
+ * @see https://github.com/edmundhung/conform/tree/v0.3.0/packages/conform-react/README.md#useform
15
15
  */
16
16
  function useForm() {
17
17
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -329,7 +329,7 @@ function useFieldset(ref, config) {
329
329
  * Returns a list of key and config, with a group of helpers
330
330
  * configuring buttons for list manipulation
331
331
  *
332
- * @see https://github.com/edmundhung/conform/tree/v0.3.0-pre.0/packages/conform-react/README.md#usefieldlist
332
+ * @see https://github.com/edmundhung/conform/tree/v0.3.0/packages/conform-react/README.md#usefieldlist
333
333
  */
334
334
  function useFieldList(ref, config) {
335
335
  var [entries, setEntries] = react.useState(() => {
@@ -448,7 +448,7 @@ function useFieldList(ref, config) {
448
448
  * This is particular useful when integrating dropdown and datepicker whichs
449
449
  * introduces custom input mode.
450
450
  *
451
- * @see https://github.com/edmundhung/conform/tree/v0.3.0-pre.0/packages/conform-react/README.md#usecontrolledinput
451
+ * @see https://github.com/edmundhung/conform/tree/v0.3.0/packages/conform-react/README.md#usecontrolledinput
452
452
  */
453
453
  function useControlledInput(field) {
454
454
  var _field$defaultValue;
package/module/hooks.js CHANGED
@@ -7,7 +7,7 @@ import { input } from './helpers.js';
7
7
  * Returns properties required to hook into form events.
8
8
  * Applied custom validation and define when error should be reported.
9
9
  *
10
- * @see https://github.com/edmundhung/conform/tree/v0.3.0-pre.0/packages/conform-react/README.md#useform
10
+ * @see https://github.com/edmundhung/conform/tree/v0.3.0/packages/conform-react/README.md#useform
11
11
  */
12
12
  function useForm() {
13
13
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -325,7 +325,7 @@ function useFieldset(ref, config) {
325
325
  * Returns a list of key and config, with a group of helpers
326
326
  * configuring buttons for list manipulation
327
327
  *
328
- * @see https://github.com/edmundhung/conform/tree/v0.3.0-pre.0/packages/conform-react/README.md#usefieldlist
328
+ * @see https://github.com/edmundhung/conform/tree/v0.3.0/packages/conform-react/README.md#usefieldlist
329
329
  */
330
330
  function useFieldList(ref, config) {
331
331
  var [entries, setEntries] = useState(() => {
@@ -444,7 +444,7 @@ function useFieldList(ref, config) {
444
444
  * This is particular useful when integrating dropdown and datepicker whichs
445
445
  * introduces custom input mode.
446
446
  *
447
- * @see https://github.com/edmundhung/conform/tree/v0.3.0-pre.0/packages/conform-react/README.md#usecontrolledinput
447
+ * @see https://github.com/edmundhung/conform/tree/v0.3.0/packages/conform-react/README.md#usecontrolledinput
448
448
  */
449
449
  function useControlledInput(field) {
450
450
  var _field$defaultValue;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@conform-to/react",
3
3
  "description": "Conform view adapter for react",
4
4
  "license": "MIT",
5
- "version": "0.3.0-pre.0",
5
+ "version": "0.3.0",
6
6
  "main": "index.js",
7
7
  "module": "module/index.js",
8
8
  "repository": {
@@ -19,7 +19,7 @@
19
19
  "url": "https://github.com/edmundhung/conform/issues"
20
20
  },
21
21
  "dependencies": {
22
- "@conform-to/dom": "0.3.0-pre.0"
22
+ "@conform-to/dom": "0.3.0"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": ">=16.8"