@mparticle/aquarium 2.3.0 → 2.4.0-fix-form-static-member-types.1

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.
@@ -1,28 +1,17 @@
1
- import { FormProps as AntFormProps, FormItemProps } from 'antd';
2
- import { ReactNode, FC } from 'react';
3
- import { useForm } from 'antd/es/form/Form';
4
- import { useWatch } from '@rc-component/form';
5
- import { default as __DTS_DEFAULT_0__ } from 'antd/es/form/hooks/useFormInstance';
6
- import { ValidateStatus } from 'antd/es/form/FormItem';
7
- import { FormListProps, ErrorListProps } from 'antd/es/form';
8
- import { FormProviderProps } from 'antd/es/form/context';
1
+ import { Form as AntForm, FormProps as AntFormProps } from 'antd';
2
+ import { ReactNode } from 'react';
9
3
  export type { FormInstance } from 'antd';
10
4
  export interface IFormProps<Values = any> extends AntFormProps<Values> {
11
5
  children: ReactNode;
12
6
  }
13
- export declare const Form: {
14
- <Values = any>(props: IFormProps<Values>): import("react/jsx-runtime").JSX.Element;
15
- useForm: useForm;
16
- useWatch: useWatch;
17
- useFormInstance: __DTS_DEFAULT_0__;
18
- Item: (<Values = any>(props: FormItemProps<Values>) => React.ReactElement) & {
19
- useStatus: () => {
20
- status?: ValidateStatus;
21
- errors: React.ReactNode[];
22
- warnings: React.ReactNode[];
23
- };
24
- };
25
- List: FC<FormListProps>;
26
- Provider: FC<FormProviderProps>;
27
- ErrorList: FC<ErrorListProps>;
7
+ declare const InternalForm: <Values = any>(props: IFormProps<Values>) => import("react/jsx-runtime").JSX.Element;
8
+ type FormComponent = typeof InternalForm & {
9
+ useForm: typeof AntForm.useForm;
10
+ useWatch: typeof AntForm.useWatch;
11
+ useFormInstance: typeof AntForm.useFormInstance;
12
+ Item: typeof AntForm.Item;
13
+ List: typeof AntForm.List;
14
+ Provider: typeof AntForm.Provider;
15
+ ErrorList: typeof AntForm.ErrorList;
28
16
  };
17
+ export declare const Form: FormComponent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mparticle/aquarium",
3
- "version": "2.3.0",
3
+ "version": "2.4.0-fix-form-static-member-types.1",
4
4
  "description": "mParticle Component Library",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [