@faasjs/ant-design 2.2.0 → 2.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/dist/index.d.mts +2 -8
- package/dist/index.d.ts +2 -8
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -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
|
@@ -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.0",
|
|
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.0",
|
|
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.0",
|
|
42
42
|
"antd": "*",
|
|
43
43
|
"react": "*",
|
|
44
44
|
"react-dom": "*",
|