@faasjs/ant-design 8.0.0-beta.32 → 8.0.0-beta.34
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.mjs +2 -1
- package/package.json +7 -5
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ErrorBoundary as ErrorBoundary$1, FaasDataWrapper as FaasDataWrapper$1, FaasReactClient, OptionalWrapper, createSplittingContext, faas, useEqualCallback, useEqualEffect, useEqualMemo, useFaas, withFaasData as withFaasData$1 } from "@faasjs/react";
|
|
2
|
+
import { toErrorMessage } from "@faasjs/utils";
|
|
2
3
|
import { Alert, Button, Col, ConfigProvider as ConfigProvider$1, DatePicker, Descriptions, Drawer, Form as Form$1, Input, InputNumber, Modal, Radio, Result, Row, Select, Skeleton, Space, Spin, Switch, Table as Table$1, Tabs as Tabs$1, Typography, message, notification, theme } from "antd";
|
|
3
4
|
import { BrowserRouter, Route, Routes as Routes$1, useLocation, useNavigate } from "react-router-dom";
|
|
4
5
|
import { cloneDeep, defaultsDeep, isNil, uniqBy } from "lodash-es";
|
|
@@ -527,7 +528,7 @@ function createOnErrorHandler(messageApi) {
|
|
|
527
528
|
return (action) => async (res) => {
|
|
528
529
|
if ("message" in res && res.toString().includes("AbortError")) return;
|
|
529
530
|
console.error(`[FaasJS][${action}]`, res);
|
|
530
|
-
messageApi.error(
|
|
531
|
+
messageApi.error(toErrorMessage(res));
|
|
531
532
|
};
|
|
532
533
|
}
|
|
533
534
|
function RoutesApp(props) {
|
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.34",
|
|
4
4
|
"homepage": "https://faasjs.com/doc/ant-design",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/faasjs/faasjs/issues"
|
|
@@ -27,8 +27,9 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@ant-design/icons": "*",
|
|
30
|
-
"@faasjs/react": ">=8.0.0-beta.
|
|
31
|
-
"@faasjs/types": ">=8.0.0-beta.
|
|
30
|
+
"@faasjs/react": ">=8.0.0-beta.34",
|
|
31
|
+
"@faasjs/types": ">=8.0.0-beta.34",
|
|
32
|
+
"@faasjs/utils": ">=8.0.0-beta.34",
|
|
32
33
|
"@types/lodash-es": "*",
|
|
33
34
|
"@types/react": "^19.0.0",
|
|
34
35
|
"@types/react-dom": "^19.0.0",
|
|
@@ -40,8 +41,9 @@
|
|
|
40
41
|
},
|
|
41
42
|
"peerDependencies": {
|
|
42
43
|
"@ant-design/icons": "*",
|
|
43
|
-
"@faasjs/react": ">=8.0.0-beta.
|
|
44
|
-
"@faasjs/types": ">=8.0.0-beta.
|
|
44
|
+
"@faasjs/react": ">=8.0.0-beta.34",
|
|
45
|
+
"@faasjs/types": ">=8.0.0-beta.34",
|
|
46
|
+
"@faasjs/utils": ">=8.0.0-beta.34",
|
|
45
47
|
"antd": "^6.0.0",
|
|
46
48
|
"lodash-es": "*",
|
|
47
49
|
"react": "^19.0.0",
|