@bolttech/form-engine 3.1.0-beta.4 → 3.1.0-beta.5
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/README.md +0 -14
- package/index.esm.js +1221 -1217
- package/package.json +2 -2
- package/src/components/FieldWrapper/FieldWrapper.d.ts +1 -1
- package/src/components/FieldWrapper/FieldWrapper.type.d.ts +6 -2
- package/assets/asformfield-current.gif +0 -0
- package/assets/asformfield-ssr.gif +0 -0
- package/assets/form-engine-ssr.gif +0 -0
- package/assets/form-engine-without-ssr.gif +0 -0
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.5",
|
|
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.5",
|
|
10
10
|
"react": "18.2.0",
|
|
11
11
|
"rxjs": "7.8.1"
|
|
12
12
|
},
|
|
@@ -7,5 +7,5 @@ import { TFieldWrapperProps } from './FieldWrapper.type';
|
|
|
7
7
|
* @param {TFieldWrapperProps} param FieldWrapper params
|
|
8
8
|
* @returns {ReactElement}
|
|
9
9
|
*/
|
|
10
|
-
declare const FieldWrapper: ({ name, formIndex, children, props, context, }: TFieldWrapperProps) => ReactElement;
|
|
10
|
+
declare const FieldWrapper: ({ name, formIndex, children, props, context, mounted, mapper, visibility, }: TFieldWrapperProps) => ReactElement;
|
|
11
11
|
export default FieldWrapper;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
1
|
+
import { ElementType, PropsWithChildren } from 'react';
|
|
2
2
|
import { TFieldWrapper } from '../../types';
|
|
3
3
|
import { TFormContext } from '../../context/FormGroupContext';
|
|
4
|
-
import { FormField } from '@bolttech/form-engine-core';
|
|
4
|
+
import { FormField, TMapper } from '@bolttech/form-engine-core';
|
|
5
5
|
/**
|
|
6
6
|
* Represents the props for a field wrapper component, including children.
|
|
7
7
|
*
|
|
@@ -13,6 +13,9 @@ import { FormField } from '@bolttech/form-engine-core';
|
|
|
13
13
|
type TFieldWrapperProps = PropsWithChildren<TFieldWrapper & {
|
|
14
14
|
props?: Record<string, unknown>;
|
|
15
15
|
context?: TFormContext | null;
|
|
16
|
+
mounted?: boolean;
|
|
17
|
+
mapper?: TMapper<ElementType>;
|
|
18
|
+
visibility?: boolean;
|
|
16
19
|
}>;
|
|
17
20
|
/**
|
|
18
21
|
* Represents the props for rendering a field wrapper component, including children.
|
|
@@ -24,5 +27,6 @@ type TFieldWrapperProps = PropsWithChildren<TFieldWrapper & {
|
|
|
24
27
|
type TFieldWrapperComponentRenderProps = PropsWithChildren<{
|
|
25
28
|
props: Record<string, unknown>;
|
|
26
29
|
fieldInstance?: FormField;
|
|
30
|
+
mapper?: TMapper<ElementType>;
|
|
27
31
|
}>;
|
|
28
32
|
export type { TFieldWrapperProps, TFieldWrapperComponentRenderProps };
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|