@bolttech/form-engine 3.1.0-beta.5 → 3.1.0-beta.6
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/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bolttech/form-engine",
|
|
3
|
-
"version": "3.1.0-beta.
|
|
3
|
+
"version": "3.1.0-beta.6",
|
|
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.
|
|
10
|
-
"react": "18.2.0"
|
|
11
|
-
"rxjs": "7.8.1"
|
|
9
|
+
"@bolttech/form-engine-core": "1.0.0-beta.6",
|
|
10
|
+
"react": "18.2.0"
|
|
12
11
|
},
|
|
13
12
|
"peerDependencies": {}
|
|
14
13
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ElementType, ReactNode } from 'react';
|
|
2
|
-
import { IFormField, IComponentSchemaAsFormField } from '@bolttech/form-engine-core';
|
|
2
|
+
import { IFormField, IComponentSchemaAsFormField, TMapper, IComponentSchema } from '@bolttech/form-engine-core';
|
|
3
3
|
/**
|
|
4
4
|
* recursive function to transform form fields from a form instance into
|
|
5
5
|
* a react component tree
|
|
@@ -9,10 +9,11 @@ import { IFormField, IComponentSchemaAsFormField } from '@bolttech/form-engine-c
|
|
|
9
9
|
* @param {string} param.formIndex form index to aid field identification onto the FieldWrapper
|
|
10
10
|
* @returns {ReactNode}
|
|
11
11
|
*/
|
|
12
|
-
declare const BuildTree: ({ fields, prevPath, formIndex, }: {
|
|
12
|
+
declare const BuildTree: ({ fields, prevPath, formIndex, mappers, }: {
|
|
13
13
|
fields: Map<string, IFormField>;
|
|
14
14
|
prevPath?: string | undefined;
|
|
15
15
|
formIndex: string;
|
|
16
|
+
mappers?: TMapper<ElementType>[] | undefined;
|
|
16
17
|
}) => ReactNode;
|
|
17
18
|
/**
|
|
18
19
|
* function to transform AsFormField elements onto a JSON schema
|
|
@@ -23,4 +24,10 @@ declare const BuildTree: ({ fields, prevPath, formIndex, }: {
|
|
|
23
24
|
declare const BuildAsFormFieldTree: ({ children, }: {
|
|
24
25
|
children?: ReactNode;
|
|
25
26
|
}) => IComponentSchemaAsFormField<ElementType>[] | null | undefined;
|
|
26
|
-
|
|
27
|
+
declare const BuildSchemaAsFields: ({ components, mappers, formIndex, mountedForm, }: {
|
|
28
|
+
components?: IComponentSchema[] | undefined;
|
|
29
|
+
mappers?: TMapper<ElementType>[] | undefined;
|
|
30
|
+
formIndex: string;
|
|
31
|
+
mountedForm: boolean;
|
|
32
|
+
}) => import("react/jsx-runtime").JSX.Element[] | undefined;
|
|
33
|
+
export { BuildTree, BuildAsFormFieldTree, BuildSchemaAsFields };
|