@bolttech/form-engine 3.0.0-beta.56 → 3.0.0-beta.57
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/index.esm.js +2 -3
- package/package.json +2 -2
package/index.esm.js
CHANGED
|
@@ -2929,15 +2929,14 @@ const AsFormFieldBuilder = props => {
|
|
|
2929
2929
|
* allows to control field selected value on each event
|
|
2930
2930
|
*/
|
|
2931
2931
|
useEffect(() => {
|
|
2932
|
-
var _a
|
|
2932
|
+
var _a;
|
|
2933
2933
|
if (!props.onSelected) return;
|
|
2934
|
-
(_a = context.formGroupInstance.forms.get(props.formIndex)) === null || _a === void 0 ? void 0 : _a.fields.get(props.name);
|
|
2935
2934
|
const callback = payload => {
|
|
2936
2935
|
if (props.onSelected) {
|
|
2937
2936
|
props.onSelected(payload);
|
|
2938
2937
|
}
|
|
2939
2938
|
};
|
|
2940
|
-
const sub = (
|
|
2939
|
+
const sub = (_a = context.formGroupInstance.forms.get(props.formIndex)) === null || _a === void 0 ? void 0 : _a.subscribeFieldEvent({
|
|
2941
2940
|
callback
|
|
2942
2941
|
});
|
|
2943
2942
|
return () => sub === null || sub === void 0 ? void 0 : sub.unsubscribe();
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bolttech/form-engine",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.57",
|
|
4
4
|
"description": "A react adapter for bolttech form engine",
|
|
5
5
|
"module": "./index.esm.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.esm.js",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@bolttech/form-engine-core": "0.0.1-beta.
|
|
9
|
+
"@bolttech/form-engine-core": "0.0.1-beta.42",
|
|
10
10
|
"react": "18.2.0",
|
|
11
11
|
"rxjs": "7.8.1"
|
|
12
12
|
},
|