react-simple-formkit 2.4.2 → 2.4.3

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 (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +1 -2
package/README.md CHANGED
@@ -382,7 +382,7 @@ return (
382
382
 
383
383
  - **Use cases**: When you need to group multiple fields into an object. By registering these fields with dot notation, you can manage these fieldStates, errors, values as a nested object.
384
384
 
385
- - **Example**: Suppose an address has two fields, line1 and line2. You want to track their individual states (fieldStates, errors, values) separately, but you also need to group them under a single address object for easier management and form submission.
385
+ - **Example**: Suppose an address group has two fields, line1 and line2. You want to track their individual states (fieldStates, errors, values) separately, but you also need to group them under a single address object for easier management and form submission.
386
386
 
387
387
  ## Registering
388
388
 
@@ -411,7 +411,7 @@ const { control, actions } = useForm({ groups: ["address"] })
411
411
  actions.addGroups(["address"])
412
412
  ```
413
413
 
414
- > **Rule\***: Nested fields must be registered using dot notation through inputs or Controllers `name` prop. If not registered, the field will be treated as a regular field with an object type value.
414
+ > **Rule\***: If a group isn't registered, the field will be treated as a regular field with an object type value.
415
415
 
416
416
  ## Watching
417
417
 
@@ -433,7 +433,7 @@ actions.setFieldState("address.line1", "disabled", true)
433
433
  actions.setFieldState("address.line1", "custom", { hello: "world" })
434
434
  ```
435
435
 
436
- > **Rule\***: If nested field is registered, all the fieldState, error, and value will be stored in the bottom level fields (leaf nodes). You cannot set a primitive value for a parent field.
436
+ > **Rule\***: If a `group` is registered, all the fieldState, error, and value will be stored in the bottom level fields (leaf nodes). You cannot set fieldState, error, and value for a `group` (e.g. "address").
437
437
 
438
438
  # Utilities
439
439
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-simple-formkit",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "keywords": [
5
5
  "react formkit",
6
6
  "react ez formkit",
@@ -22,7 +22,6 @@
22
22
  "scripts": {
23
23
  "build": "vite build",
24
24
  "prepublish": "vite build",
25
- "publish": "npm publish",
26
25
  "dev": "vite"
27
26
  },
28
27
  "dependencies": {},