@bolttech/form-engine 3.0.0-beta.19 → 3.0.0-beta.20

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,12 +1,12 @@
1
1
  {
2
2
  "name": "@bolttech/form-engine",
3
- "version": "3.0.0-beta.19",
3
+ "version": "3.0.0-beta.20",
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.10",
9
+ "@bolttech/form-engine-core": "0.0.1-beta.11",
10
10
  "react": "18.2.0"
11
11
  },
12
12
  "peerDependencies": {}
@@ -1,9 +1,9 @@
1
- import { IComponentSchema } from '@bolttech/form-engine-core';
2
- import { PropsWithChildren } from 'react';
1
+ import { IComponentSchemaAsFormField } from '@bolttech/form-engine-core';
2
+ import { ElementType, PropsWithChildren } from 'react';
3
3
  /**
4
4
  * AsFormField props, inherits all schema field implementation except the children
5
- * property, that will be a ReactNode
6
- * @see {@link IComponentSchema}
5
+ * property and has mappers property to pass a custom component, that will be a ReactNode
6
+ * @see {@link IComponentSchemaWithMapper}
7
7
  */
8
- type TAsFormFieldProps = PropsWithChildren<Omit<IComponentSchema, 'children'>>;
8
+ type TAsFormFieldProps = PropsWithChildren<Omit<IComponentSchemaAsFormField<ElementType>, 'children'>>;
9
9
  export type { TAsFormFieldProps };
@@ -1,5 +1,5 @@
1
- import { ReactNode } from 'react';
2
- import { IFormField, IComponentSchema } from '@bolttech/form-engine-core';
1
+ import { ElementType, ReactNode } from 'react';
2
+ import { IFormField, IComponentSchemaAsFormField } 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
@@ -22,5 +22,5 @@ declare const BuildTree: ({ fields, prevPath, formIndex, }: {
22
22
  */
23
23
  declare const BuildAsFormFieldTree: ({ children, }: {
24
24
  children?: ReactNode;
25
- }) => IComponentSchema[] | null | undefined;
25
+ }) => IComponentSchemaAsFormField<ElementType>[] | null | undefined;
26
26
  export { BuildTree, BuildAsFormFieldTree };