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