@faasjs/ant-design 8.0.0-beta.27 → 8.0.0-beta.28
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.ts +4 -2
- package/dist/index.mjs +0 -3
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ import { NotificationInstance } from "antd/es/notification/interface.js";
|
|
|
19
19
|
|
|
20
20
|
//#region ../types/src/index.d.ts
|
|
21
21
|
/**
|
|
22
|
+
* # @faasjs/types
|
|
23
|
+
*
|
|
22
24
|
* Action Type definitions for FaasJS and cross backend and frontend.
|
|
23
25
|
*
|
|
24
26
|
* [](https://github.com/faasjs/faasjs/blob/main/packages/types/LICENSE)
|
|
@@ -57,7 +59,7 @@ type FaasActionPaths = Extract<keyof FaasActions, string>;
|
|
|
57
59
|
/**
|
|
58
60
|
* Union type accepted by action helpers when callers pass either an action path or inferred data shape.
|
|
59
61
|
*/
|
|
60
|
-
type FaasActionUnionType = Record<string,
|
|
62
|
+
type FaasActionUnionType = Record<string, unknown> | string;
|
|
61
63
|
/**
|
|
62
64
|
* Infer the action path type.
|
|
63
65
|
*
|
|
@@ -66,7 +68,7 @@ type FaasActionUnionType = Record<string, any> | string;
|
|
|
66
68
|
*
|
|
67
69
|
* @template T - Candidate action path type.
|
|
68
70
|
*/
|
|
69
|
-
type FaasAction<T =
|
|
71
|
+
type FaasAction<T = unknown> = T extends FaasActionPaths ? T : string;
|
|
70
72
|
//#endregion
|
|
71
73
|
//#region src/Loading/index.d.ts
|
|
72
74
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -527,7 +527,6 @@ function RoutesApp(props) {
|
|
|
527
527
|
const location = useLocation();
|
|
528
528
|
const { drawerProps, setDrawerProps, modalProps, setModalProps } = useApp();
|
|
529
529
|
useEqualEffect(() => {
|
|
530
|
-
console.debug("location", location);
|
|
531
530
|
if (drawerProps.open) setDrawerProps({ open: false });
|
|
532
531
|
if (modalProps.open) setModalProps({ open: false });
|
|
533
532
|
}, [location]);
|
|
@@ -1337,7 +1336,6 @@ function Form(props) {
|
|
|
1337
1336
|
setAntdProps(propsCopy);
|
|
1338
1337
|
}, [props]);
|
|
1339
1338
|
const onValuesChange = useEqualCallback((changedValues, allValues) => {
|
|
1340
|
-
console.debug("Form:onValuesChange", changedValues, allValues);
|
|
1341
1339
|
if (props.onValuesChange) props.onValuesChange(changedValues, allValues);
|
|
1342
1340
|
if (!items.length) return;
|
|
1343
1341
|
for (const key in changedValues) {
|
|
@@ -1351,7 +1349,6 @@ function Form(props) {
|
|
|
1351
1349
|
]);
|
|
1352
1350
|
useEqualEffect(() => {
|
|
1353
1351
|
if (!initialValues) return;
|
|
1354
|
-
console.debug("Form:initialValues", initialValues);
|
|
1355
1352
|
form.setFieldsValue(initialValues);
|
|
1356
1353
|
setInitialValues(null);
|
|
1357
1354
|
}, [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/ant-design",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.28",
|
|
4
4
|
"homepage": "https://faasjs.com/doc/ant-design",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/faasjs/faasjs/issues"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@ant-design/icons": "*",
|
|
30
|
-
"@faasjs/react": ">=8.0.0-beta.
|
|
30
|
+
"@faasjs/react": ">=8.0.0-beta.28",
|
|
31
31
|
"@types/lodash-es": "*",
|
|
32
32
|
"@types/react": "^19.0.0",
|
|
33
33
|
"@types/react-dom": "^19.0.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@ant-design/icons": "*",
|
|
42
|
-
"@faasjs/react": ">=8.0.0-beta.
|
|
42
|
+
"@faasjs/react": ">=8.0.0-beta.28",
|
|
43
43
|
"antd": "^6.0.0",
|
|
44
44
|
"lodash-es": "*",
|
|
45
45
|
"react": "^19.0.0",
|