@bolttech/form-engine 0.11.2 → 0.11.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.11.3](http://bitbucket.org/gofrank/bolttech-frontend/compare/form-engine-0.11.2...form-engine-0.11.3) (2024-02-21)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * react hook adapter ([02ae862](http://bitbucket.org/gofrank/bolttech-frontend/commit/02ae86208394e939d741e5622013e78af773257c))
11
+
5
12
  ## [0.11.2](http://bitbucket.org/gofrank/bolttech-frontend/compare/form-engine-0.11.1...form-engine-0.11.2) (2024-02-21)
6
13
 
7
14
 
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Achieve form logic re-usage with forms expressed in json format.
4
4
 
5
- > stable version 0.11.1
5
+ > stable version 0.11.3
6
6
 
7
7
  ---
8
8
 
@@ -1678,6 +1678,7 @@ You can use the following arguments to tho hook
1678
1678
  | id | string | The id of the form you want to connect to |
1679
1679
  | ids | array of string | A range of ids of the each form you want to connect to |
1680
1680
  | onValid | callback | Called whenever form validation changes |
1681
+ | onClick | callback | Called whenever field has clicked |
1681
1682
  | onData | callback | Called whenever data changes |
1682
1683
  | onSubmit | callback | Called whenever form is submitted |
1683
1684
 
@@ -1735,10 +1736,11 @@ Similar to `useForm`
1735
1736
  You can use the following arguments to tho hook
1736
1737
 
1737
1738
  | Prop | Type | Description |
1738
- | -------- | --------------- | --------------------------------------------------------- |
1739
+ | -------- | --------------- |-----------------------------------------------------------|
1739
1740
  | ids | array of string | The ids we want to listen to |
1740
1741
  | group | string | A string to identify the form group we want to connect to |
1741
1742
  | onValid | callback | Called whenever form validation changes |
1743
+ | onClick | callback | Called whenever field has clicked |
1742
1744
  | onData | callback | Called whenever data changes |
1743
1745
  | onSubmit | callback | Called whenever form is submitted |
1744
1746
 
@@ -1802,12 +1804,12 @@ Allows you to add separate components from a standard form engine form schema. T
1802
1804
 
1803
1805
  You can use the following arguments declare a component as a form field
1804
1806
 
1805
- | Prop | Type | Description |
1806
- |----------|--------------------------|-------------------------------------------------------------------|
1807
- | Comp | React Function Component | The component to be used as form field. |
1808
- | onSubmit | TPropsMapping | Link for the TPropsMapping likely props mapper from default form. |
1807
+ | Prop | Type | Description |
1808
+ |---------------|--------------------------|-----------------------------------------------------------------------------|
1809
+ | Comp | React Function Component | The component to be used as form field. |
1810
+ | propsMapping | TComponentPropsMapping | Link for the TComponentPropsMapping likely props mapper from default form. |
1809
1811
 
1810
- And it will provide you the following
1812
+ And this will give you the following properties in addition to the native ones of your component
1811
1813
 
1812
1814
  | Prop | Type | Description |
1813
1815
  |----------------------|-----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|