@faasjs/ant-design 2.2.0 → 2.3.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.
- package/dist/index.d.mts +5 -11
- package/dist/index.d.ts +5 -11
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -9,7 +9,7 @@ import * as antd_es_modal_PurePanel from 'antd/es/modal/PurePanel';
|
|
|
9
9
|
import * as antd_es_modal_useModal from 'antd/es/modal/useModal';
|
|
10
10
|
import * as antd_es_modal_confirm from 'antd/es/modal/confirm';
|
|
11
11
|
import * as react from 'react';
|
|
12
|
-
import { CSSProperties, ReactNode, ReactElement, LazyExoticComponent, ComponentType } from 'react';
|
|
12
|
+
import { Dispatch, SetStateAction, CSSProperties, ReactNode, ReactElement, LazyExoticComponent, ComponentType } from 'react';
|
|
13
13
|
export { lazy } from 'react';
|
|
14
14
|
import { ModalProps as ModalProps$1, DrawerProps as DrawerProps$1, FormItemProps as FormItemProps$1, InputProps, InputNumberProps, SwitchProps, SelectProps, DatePickerProps, FormInstance, DescriptionsProps, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1, FormProps as FormProps$1, ButtonProps, TabsProps as TabsProps$1 } from 'antd';
|
|
15
15
|
import { BrowserRouterProps, RouteProps } from 'react-router-dom';
|
|
@@ -32,7 +32,7 @@ declare const Modal: react.FC<ModalProps$1> & antd_es_modal_confirm.ModalStaticF
|
|
|
32
32
|
interface ModalProps extends ModalProps$1 {
|
|
33
33
|
children?: JSX.Element | JSX.Element[] | string;
|
|
34
34
|
}
|
|
35
|
-
type setModalProps =
|
|
35
|
+
type setModalProps = Dispatch<SetStateAction<ModalProps>>;
|
|
36
36
|
/**
|
|
37
37
|
* Hook style modal
|
|
38
38
|
*
|
|
@@ -59,7 +59,7 @@ declare const Drawer: react.FC<DrawerProps> & {
|
|
|
59
59
|
interface DrawerProps extends DrawerProps$1 {
|
|
60
60
|
children?: JSX.Element | JSX.Element[];
|
|
61
61
|
}
|
|
62
|
-
type setDrawerProps =
|
|
62
|
+
type setDrawerProps = Dispatch<SetStateAction<DrawerProps>>;
|
|
63
63
|
/**
|
|
64
64
|
* Hook style drawer
|
|
65
65
|
*
|
|
@@ -192,10 +192,7 @@ interface useAppProps {
|
|
|
192
192
|
*/
|
|
193
193
|
declare function App(props: AppProps): react_jsx_runtime.JSX.Element;
|
|
194
194
|
declare namespace App {
|
|
195
|
-
var useApp:
|
|
196
|
-
(): Readonly<useAppProps>;
|
|
197
|
-
whyDidYouRender: boolean;
|
|
198
|
-
};
|
|
195
|
+
var useApp: () => Readonly<useAppProps>;
|
|
199
196
|
var whyDidYouRender: boolean;
|
|
200
197
|
}
|
|
201
198
|
/**
|
|
@@ -207,10 +204,7 @@ declare namespace App {
|
|
|
207
204
|
* const { message, notification, setModalProps, setDrawerProps } = useApp()
|
|
208
205
|
* ```
|
|
209
206
|
*/
|
|
210
|
-
declare const useApp:
|
|
211
|
-
(): Readonly<useAppProps>;
|
|
212
|
-
whyDidYouRender: boolean;
|
|
213
|
-
};
|
|
207
|
+
declare const useApp: () => Readonly<useAppProps>;
|
|
214
208
|
|
|
215
209
|
interface BlankProps {
|
|
216
210
|
value?: any;
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import * as antd_es_modal_PurePanel from 'antd/es/modal/PurePanel';
|
|
|
9
9
|
import * as antd_es_modal_useModal from 'antd/es/modal/useModal';
|
|
10
10
|
import * as antd_es_modal_confirm from 'antd/es/modal/confirm';
|
|
11
11
|
import * as react from 'react';
|
|
12
|
-
import { CSSProperties, ReactNode, ReactElement, LazyExoticComponent, ComponentType } from 'react';
|
|
12
|
+
import { Dispatch, SetStateAction, CSSProperties, ReactNode, ReactElement, LazyExoticComponent, ComponentType } from 'react';
|
|
13
13
|
export { lazy } from 'react';
|
|
14
14
|
import { ModalProps as ModalProps$1, DrawerProps as DrawerProps$1, FormItemProps as FormItemProps$1, InputProps, InputNumberProps, SwitchProps, SelectProps, DatePickerProps, FormInstance, DescriptionsProps, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1, FormProps as FormProps$1, ButtonProps, TabsProps as TabsProps$1 } from 'antd';
|
|
15
15
|
import { BrowserRouterProps, RouteProps } from 'react-router-dom';
|
|
@@ -32,7 +32,7 @@ declare const Modal: react.FC<ModalProps$1> & antd_es_modal_confirm.ModalStaticF
|
|
|
32
32
|
interface ModalProps extends ModalProps$1 {
|
|
33
33
|
children?: JSX.Element | JSX.Element[] | string;
|
|
34
34
|
}
|
|
35
|
-
type setModalProps =
|
|
35
|
+
type setModalProps = Dispatch<SetStateAction<ModalProps>>;
|
|
36
36
|
/**
|
|
37
37
|
* Hook style modal
|
|
38
38
|
*
|
|
@@ -59,7 +59,7 @@ declare const Drawer: react.FC<DrawerProps> & {
|
|
|
59
59
|
interface DrawerProps extends DrawerProps$1 {
|
|
60
60
|
children?: JSX.Element | JSX.Element[];
|
|
61
61
|
}
|
|
62
|
-
type setDrawerProps =
|
|
62
|
+
type setDrawerProps = Dispatch<SetStateAction<DrawerProps>>;
|
|
63
63
|
/**
|
|
64
64
|
* Hook style drawer
|
|
65
65
|
*
|
|
@@ -192,10 +192,7 @@ interface useAppProps {
|
|
|
192
192
|
*/
|
|
193
193
|
declare function App(props: AppProps): react_jsx_runtime.JSX.Element;
|
|
194
194
|
declare namespace App {
|
|
195
|
-
var useApp:
|
|
196
|
-
(): Readonly<useAppProps>;
|
|
197
|
-
whyDidYouRender: boolean;
|
|
198
|
-
};
|
|
195
|
+
var useApp: () => Readonly<useAppProps>;
|
|
199
196
|
var whyDidYouRender: boolean;
|
|
200
197
|
}
|
|
201
198
|
/**
|
|
@@ -207,10 +204,7 @@ declare namespace App {
|
|
|
207
204
|
* const { message, notification, setModalProps, setDrawerProps } = useApp()
|
|
208
205
|
* ```
|
|
209
206
|
*/
|
|
210
|
-
declare const useApp:
|
|
211
|
-
(): Readonly<useAppProps>;
|
|
212
|
-
whyDidYouRender: boolean;
|
|
213
|
-
};
|
|
207
|
+
declare const useApp: () => Readonly<useAppProps>;
|
|
214
208
|
|
|
215
209
|
interface BlankProps {
|
|
216
210
|
value?: any;
|
package/dist/index.js
CHANGED
|
@@ -163,12 +163,12 @@ function useConfigContext() {
|
|
|
163
163
|
return react$1.useContext(ConfigContext);
|
|
164
164
|
}
|
|
165
165
|
var AppContext = react.createSplitedContext({
|
|
166
|
-
message:
|
|
167
|
-
notification:
|
|
166
|
+
message: null,
|
|
167
|
+
notification: null,
|
|
168
168
|
modalProps: {},
|
|
169
|
-
setModalProps:
|
|
169
|
+
setModalProps: null,
|
|
170
170
|
drawerProps: {},
|
|
171
|
-
setDrawerProps:
|
|
171
|
+
setDrawerProps: null
|
|
172
172
|
});
|
|
173
173
|
function RoutesApp(props) {
|
|
174
174
|
const location = reactRouterDom.useLocation();
|
package/dist/index.mjs
CHANGED
|
@@ -159,12 +159,12 @@ function useConfigContext() {
|
|
|
159
159
|
return useContext(ConfigContext);
|
|
160
160
|
}
|
|
161
161
|
var AppContext = createSplitedContext({
|
|
162
|
-
message:
|
|
163
|
-
notification:
|
|
162
|
+
message: null,
|
|
163
|
+
notification: null,
|
|
164
164
|
modalProps: {},
|
|
165
|
-
setModalProps:
|
|
165
|
+
setModalProps: null,
|
|
166
166
|
drawerProps: {},
|
|
167
|
-
setDrawerProps:
|
|
167
|
+
setDrawerProps: null
|
|
168
168
|
});
|
|
169
169
|
function RoutesApp(props) {
|
|
170
170
|
const location = useLocation();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/ant-design",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"lodash-es": "*"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@faasjs/react": "2.
|
|
29
|
+
"@faasjs/react": "2.3.1",
|
|
30
30
|
"antd": "*",
|
|
31
31
|
"react": "*",
|
|
32
32
|
"react-dom": "*",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@testing-library/react": "*",
|
|
39
39
|
"@testing-library/user-event": "*",
|
|
40
40
|
"@welldone-software/why-did-you-render": "*",
|
|
41
|
-
"@faasjs/react": "2.
|
|
41
|
+
"@faasjs/react": "2.3.1",
|
|
42
42
|
"antd": "*",
|
|
43
43
|
"react": "*",
|
|
44
44
|
"react-dom": "*",
|