@conform-to/react 0.9.0 → 0.9.2

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.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/hooks.d.ts +1 -1
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -350,7 +350,7 @@ function Example() {
350
350
  form={title.form}
351
351
  defaultValue={title.defaultValue}
352
352
  autoFocus={title.initialError ? true : undefined}
353
- requried={title.required}
353
+ required={title.required}
354
354
  minLength={title.minLength}
355
355
  maxLength={title.maxLength}
356
356
  min={title.min}
@@ -430,7 +430,7 @@ import { Form } from 'react-router-dom';
430
430
  export default function SignupForm() {
431
431
  const [form, { email, password, confirmPassword }] = useForm({
432
432
  onValidate(context) {
433
- // This enables validating each field based on the validity state and custom cosntraint if defined
433
+ // This enables validating each field based on the validity state and custom constraint if defined
434
434
  return validateConstraint(
435
435
  ...context,
436
436
  constraint: {
package/hooks.d.ts CHANGED
@@ -57,7 +57,7 @@ export interface FormConfig<Output extends Record<string, any>, Input extends Re
57
57
  /**
58
58
  * An object describing the result of the last submission
59
59
  */
60
- lastSubmission?: SubmissionResult;
60
+ lastSubmission?: SubmissionResult | null;
61
61
  /**
62
62
  * An object describing the constraint of each field
63
63
  */
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Conform view adapter for react",
4
4
  "homepage": "https://conform.guide",
5
5
  "license": "MIT",
6
- "version": "0.9.0",
6
+ "version": "0.9.2",
7
7
  "main": "index.js",
8
8
  "module": "index.mjs",
9
9
  "types": "index.d.ts",
@@ -30,7 +30,7 @@
30
30
  "url": "https://github.com/edmundhung/conform/issues"
31
31
  },
32
32
  "dependencies": {
33
- "@conform-to/dom": "0.9.0"
33
+ "@conform-to/dom": "0.9.2"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "react": ">=16.8"