@faasjs/ant-design 3.2.0 → 3.3.0
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 +1 -1
- package/dist/index.d.mts +4 -5
- package/dist/index.d.ts +4 -5
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
UI components based on [FaasJS](https://faasjs.com), [Ant Design](https://ant.design) and [React Router](https://reactrouter.com).
|
|
4
4
|
|
|
5
|
-
[](https://github.com/faasjs/faasjs/blob/main/packages/
|
|
5
|
+
[](https://github.com/faasjs/faasjs/blob/main/packages/ant-design/LICENSE)
|
|
6
6
|
[](https://www.npmjs.com/package/@faasjs/ant-design)
|
|
7
7
|
|
|
8
8
|
## Install
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ErrorBoundaryProps, FaasReactClientOptions, FaasDataInjection as FaasDataInjection$1, FaasDataWrapperProps as FaasDataWrapperProps$1 } from '@faasjs/react';
|
|
2
2
|
export { ErrorBoundaryProps, faas, useFaas } from '@faasjs/react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import { ConfigProviderProps as ConfigProviderProps$1 } from 'antd
|
|
5
|
-
import { StyleProviderProps } from '@ant-design/cssinjs
|
|
4
|
+
import { ModalProps as ModalProps$1, DrawerProps as DrawerProps$1, ConfigProviderProps as ConfigProviderProps$1, FormItemProps as FormItemProps$1, FormInstance, InputProps, SelectProps, RadioProps, InputNumberProps, SwitchProps, DatePickerProps, DescriptionsProps, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1, FormProps as FormProps$1, ButtonProps, TabsProps as TabsProps$1 } from 'antd';
|
|
5
|
+
import { StyleProviderProps } from '@ant-design/cssinjs';
|
|
6
6
|
import { MessageInstance } from 'antd/es/message/interface';
|
|
7
7
|
import { NotificationInstance } from 'antd/es/notification/interface';
|
|
8
8
|
import * as antd_es_modal_PurePanel from 'antd/es/modal/PurePanel';
|
|
@@ -11,7 +11,6 @@ import * as antd_es_modal_confirm from 'antd/es/modal/confirm';
|
|
|
11
11
|
import * as react from 'react';
|
|
12
12
|
import { Dispatch, SetStateAction, CSSProperties, ReactNode, ReactElement, LazyExoticComponent, ComponentType } from 'react';
|
|
13
13
|
export { lazy } from 'react';
|
|
14
|
-
import { ModalProps as ModalProps$1, DrawerProps as DrawerProps$1, FormItemProps as FormItemProps$1, FormInstance, InputProps, SelectProps, RadioProps, InputNumberProps, SwitchProps, DatePickerProps, DescriptionsProps, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1, FormProps as FormProps$1, ButtonProps, TabsProps as TabsProps$1 } from 'antd';
|
|
15
14
|
import { BrowserRouterProps, RouteProps } from 'react-router-dom';
|
|
16
15
|
import { Dayjs } from 'dayjs';
|
|
17
16
|
import * as antd_es_form_FormItem from 'antd/es/form/FormItem';
|
|
@@ -149,7 +148,7 @@ interface AppProps {
|
|
|
149
148
|
/**
|
|
150
149
|
* `false` to disable StyleProvider.
|
|
151
150
|
*
|
|
152
|
-
* @see https://ant
|
|
151
|
+
* @see https://github.com/ant-design/cssinjs?tab=readme-ov-file#styleprovider
|
|
153
152
|
*/
|
|
154
153
|
styleProviderProps?: StyleProviderProps | false;
|
|
155
154
|
/** @see https://ant.design/components/config-provider/#API */
|
|
@@ -393,7 +392,7 @@ declare namespace FaasDataWrapper {
|
|
|
393
392
|
* const MyComponent = withFaasData(({ data }) => <div>{data.name}</div>, { action: 'test', params: { a: 1 } })
|
|
394
393
|
* ```
|
|
395
394
|
*/
|
|
396
|
-
declare function withFaasData<
|
|
395
|
+
declare function withFaasData<PathOrData extends FaasAction, TComponentProps extends Required<FaasDataInjection<PathOrData>> = Required<FaasDataInjection<PathOrData>>>(Component: React.FC<TComponentProps & Record<string, any>>, faasProps: FaasDataWrapperProps<PathOrData>): React.FC<Omit<TComponentProps, keyof FaasDataInjection<PathOrData>> & Record<string, any>>;
|
|
397
396
|
|
|
398
397
|
interface ExtendDescriptionTypeProps<T = any> {
|
|
399
398
|
children?: UnionFaasItemElement<T>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ErrorBoundaryProps, FaasReactClientOptions, FaasDataInjection as FaasDataInjection$1, FaasDataWrapperProps as FaasDataWrapperProps$1 } from '@faasjs/react';
|
|
2
2
|
export { ErrorBoundaryProps, faas, useFaas } from '@faasjs/react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import { ConfigProviderProps as ConfigProviderProps$1 } from 'antd
|
|
5
|
-
import { StyleProviderProps } from '@ant-design/cssinjs
|
|
4
|
+
import { ModalProps as ModalProps$1, DrawerProps as DrawerProps$1, ConfigProviderProps as ConfigProviderProps$1, FormItemProps as FormItemProps$1, FormInstance, InputProps, SelectProps, RadioProps, InputNumberProps, SwitchProps, DatePickerProps, DescriptionsProps, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1, FormProps as FormProps$1, ButtonProps, TabsProps as TabsProps$1 } from 'antd';
|
|
5
|
+
import { StyleProviderProps } from '@ant-design/cssinjs';
|
|
6
6
|
import { MessageInstance } from 'antd/es/message/interface';
|
|
7
7
|
import { NotificationInstance } from 'antd/es/notification/interface';
|
|
8
8
|
import * as antd_es_modal_PurePanel from 'antd/es/modal/PurePanel';
|
|
@@ -11,7 +11,6 @@ import * as antd_es_modal_confirm from 'antd/es/modal/confirm';
|
|
|
11
11
|
import * as react from 'react';
|
|
12
12
|
import { Dispatch, SetStateAction, CSSProperties, ReactNode, ReactElement, LazyExoticComponent, ComponentType } from 'react';
|
|
13
13
|
export { lazy } from 'react';
|
|
14
|
-
import { ModalProps as ModalProps$1, DrawerProps as DrawerProps$1, FormItemProps as FormItemProps$1, FormInstance, InputProps, SelectProps, RadioProps, InputNumberProps, SwitchProps, DatePickerProps, DescriptionsProps, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1, FormProps as FormProps$1, ButtonProps, TabsProps as TabsProps$1 } from 'antd';
|
|
15
14
|
import { BrowserRouterProps, RouteProps } from 'react-router-dom';
|
|
16
15
|
import { Dayjs } from 'dayjs';
|
|
17
16
|
import * as antd_es_form_FormItem from 'antd/es/form/FormItem';
|
|
@@ -149,7 +148,7 @@ interface AppProps {
|
|
|
149
148
|
/**
|
|
150
149
|
* `false` to disable StyleProvider.
|
|
151
150
|
*
|
|
152
|
-
* @see https://ant
|
|
151
|
+
* @see https://github.com/ant-design/cssinjs?tab=readme-ov-file#styleprovider
|
|
153
152
|
*/
|
|
154
153
|
styleProviderProps?: StyleProviderProps | false;
|
|
155
154
|
/** @see https://ant.design/components/config-provider/#API */
|
|
@@ -393,7 +392,7 @@ declare namespace FaasDataWrapper {
|
|
|
393
392
|
* const MyComponent = withFaasData(({ data }) => <div>{data.name}</div>, { action: 'test', params: { a: 1 } })
|
|
394
393
|
* ```
|
|
395
394
|
*/
|
|
396
|
-
declare function withFaasData<
|
|
395
|
+
declare function withFaasData<PathOrData extends FaasAction, TComponentProps extends Required<FaasDataInjection<PathOrData>> = Required<FaasDataInjection<PathOrData>>>(Component: React.FC<TComponentProps & Record<string, any>>, faasProps: FaasDataWrapperProps<PathOrData>): React.FC<Omit<TComponentProps, keyof FaasDataInjection<PathOrData>> & Record<string, any>>;
|
|
397
396
|
|
|
398
397
|
interface ExtendDescriptionTypeProps<T = any> {
|
|
399
398
|
children?: UnionFaasItemElement<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/ant-design",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -33,21 +33,21 @@
|
|
|
33
33
|
"files": [
|
|
34
34
|
"dist"
|
|
35
35
|
],
|
|
36
|
-
"dependencies": {
|
|
37
|
-
"@ant-design/icons": "*",
|
|
38
|
-
"lodash-es": "*"
|
|
39
|
-
},
|
|
40
36
|
"peerDependencies": {
|
|
41
|
-
"@faasjs/react": "3.
|
|
37
|
+
"@faasjs/react": "3.3.0",
|
|
42
38
|
"antd": "*",
|
|
39
|
+
"@ant-design/icons": "*",
|
|
40
|
+
"lodash-es": "*",
|
|
43
41
|
"react": "*",
|
|
44
42
|
"react-dom": "*",
|
|
45
43
|
"react-router-dom": "*"
|
|
46
44
|
},
|
|
47
45
|
"devDependencies": {
|
|
48
46
|
"@types/lodash-es": "*",
|
|
49
|
-
"@faasjs/react": "3.
|
|
47
|
+
"@faasjs/react": "3.3.0",
|
|
50
48
|
"antd": "*",
|
|
49
|
+
"@ant-design/icons": "*",
|
|
50
|
+
"lodash-es": "*",
|
|
51
51
|
"react": "*",
|
|
52
52
|
"react-dom": "*",
|
|
53
53
|
"react-router-dom": "*"
|