@bolttech/form-engine 3.1.0-beta.16 → 3.1.0-beta.18
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
CHANGED
|
@@ -1693,8 +1693,8 @@ const IsolatedContext = ({
|
|
|
1693
1693
|
const printFormGroupInstance = () => {
|
|
1694
1694
|
console.log(formGroupInstance.current.printFormGroupInstance());
|
|
1695
1695
|
};
|
|
1696
|
-
function submitMultipleFormsByIndex(indexes) {
|
|
1697
|
-
return formGroupInstance.current.submitMultipleFormsByIndex(indexes);
|
|
1696
|
+
function submitMultipleFormsByIndex(indexes, callback) {
|
|
1697
|
+
return formGroupInstance.current.submitMultipleFormsByIndex(indexes, callback);
|
|
1698
1698
|
}
|
|
1699
1699
|
useEffect(() => {
|
|
1700
1700
|
return () => {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bolttech/form-engine",
|
|
3
|
-
"version": "3.1.0-beta.
|
|
3
|
+
"version": "3.1.0-beta.18",
|
|
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": "1.0.0-beta.
|
|
9
|
+
"@bolttech/form-engine-core": "1.0.0-beta.18",
|
|
10
10
|
"react": "18.2.0"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormCore, TFormEntry, TFormGroup, TMapper, TSchemaFormConfig } from '@bolttech/form-engine-core';
|
|
1
|
+
import { FormCore, TFormEntry, TFormGroup, TFormValues, TMapper, TSchemaFormConfig } from '@bolttech/form-engine-core';
|
|
2
2
|
import { ElementType } from 'react';
|
|
3
3
|
/**
|
|
4
4
|
* Represents the context for managing forms within a form group.
|
|
@@ -29,7 +29,7 @@ type TFormContext = {
|
|
|
29
29
|
formGroupInstance: TFormGroup;
|
|
30
30
|
mappers?: TMapper<ElementType>[];
|
|
31
31
|
printFormGroupInstance: () => void;
|
|
32
|
-
submitMultipleFormsByIndex: (indexes: string[]) => void;
|
|
32
|
+
submitMultipleFormsByIndex: <T>(indexes: string[], callback?: (payload: TFormValues<T>) => void) => void;
|
|
33
33
|
debugMode: boolean;
|
|
34
34
|
active: boolean;
|
|
35
35
|
config?: TSchemaFormConfig;
|