@faasjs/ant-design 0.0.3-beta.35 → 0.0.3-beta.36

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 CHANGED
@@ -157,7 +157,7 @@ interface FaasDataWrapperProps<T = any> extends FaasDataWrapperProps$1<T> {
157
157
  loading?: JSX.Element;
158
158
  }
159
159
  /**
160
- * FaasDataWrapper component with Loading and ErrorBoundary
160
+ * FaasDataWrapper component with Loading
161
161
  */
162
162
  declare function FaasDataWrapper<T = any>(props: FaasDataWrapperProps<T>): JSX.Element;
163
163
 
package/dist/index.js CHANGED
@@ -106,7 +106,6 @@ function ConfigProvider({
106
106
  }) {
107
107
  const [values, setValues] = (0, import_react2.useState)(baseConfig);
108
108
  (0, import_react2.useEffect)(() => {
109
- console.log(config);
110
109
  if (config.lang === "zh") {
111
110
  setValues((0, import_lodash_es.defaultsDeep)(config, {
112
111
  lang: "zh",
@@ -1048,27 +1047,25 @@ function PageNotFound() {
1048
1047
  });
1049
1048
  }
1050
1049
  function Routes(props) {
1051
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd10.Alert.ErrorBoundary, {
1052
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react_router_dom2.Routes, {
1053
- children: [
1054
- props.routes.map((r) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_router_dom2.Route, {
1055
- ...r,
1056
- element: r.element || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react11.Suspense, {
1057
- fallback: props.fallback || /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1058
- style: { padding: "24px" },
1059
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd10.Skeleton, {
1060
- active: true
1061
- })
1062
- }),
1063
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(r.page, {})
1064
- })
1065
- }, r.path)),
1066
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_router_dom2.Route, {
1067
- path: "*",
1068
- element: props.notFound || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PageNotFound, {})
1069
- }, "*")
1070
- ]
1071
- })
1050
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react_router_dom2.Routes, {
1051
+ children: [
1052
+ props.routes.map((r) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_router_dom2.Route, {
1053
+ ...r,
1054
+ element: r.element || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react11.Suspense, {
1055
+ fallback: props.fallback || /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1056
+ style: { padding: "24px" },
1057
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd10.Skeleton, {
1058
+ active: true
1059
+ })
1060
+ }),
1061
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(r.page, {})
1062
+ })
1063
+ }, r.path)),
1064
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_router_dom2.Route, {
1065
+ path: "*",
1066
+ element: props.notFound || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PageNotFound, {})
1067
+ }, "*")
1068
+ ]
1072
1069
  });
1073
1070
  }
1074
1071
 
package/dist/index.mjs CHANGED
@@ -59,7 +59,6 @@ function ConfigProvider({
59
59
  }) {
60
60
  const [values, setValues] = useState(baseConfig);
61
61
  useEffect(() => {
62
- console.log(config);
63
62
  if (config.lang === "zh") {
64
63
  setValues(defaultsDeep(config, {
65
64
  lang: "zh",
@@ -1019,11 +1018,7 @@ function useModal(init) {
1019
1018
  }
1020
1019
 
1021
1020
  // src/Routers.tsx
1022
- import {
1023
- Result,
1024
- Skeleton,
1025
- Alert as Alert2
1026
- } from "antd";
1021
+ import { Result, Skeleton } from "antd";
1027
1022
  import {
1028
1023
  Suspense
1029
1024
  } from "react";
@@ -1040,27 +1035,25 @@ function PageNotFound() {
1040
1035
  });
1041
1036
  }
1042
1037
  function Routes(props) {
1043
- return /* @__PURE__ */ jsx12(Alert2.ErrorBoundary, {
1044
- children: /* @__PURE__ */ jsxs3(OriginRoutes, {
1045
- children: [
1046
- props.routes.map((r) => /* @__PURE__ */ jsx12(Route, {
1047
- ...r,
1048
- element: r.element || /* @__PURE__ */ jsx12(Suspense, {
1049
- fallback: props.fallback || /* @__PURE__ */ jsx12("div", {
1050
- style: { padding: "24px" },
1051
- children: /* @__PURE__ */ jsx12(Skeleton, {
1052
- active: true
1053
- })
1054
- }),
1055
- children: /* @__PURE__ */ jsx12(r.page, {})
1056
- })
1057
- }, r.path)),
1058
- /* @__PURE__ */ jsx12(Route, {
1059
- path: "*",
1060
- element: props.notFound || /* @__PURE__ */ jsx12(PageNotFound, {})
1061
- }, "*")
1062
- ]
1063
- })
1038
+ return /* @__PURE__ */ jsxs3(OriginRoutes, {
1039
+ children: [
1040
+ props.routes.map((r) => /* @__PURE__ */ jsx12(Route, {
1041
+ ...r,
1042
+ element: r.element || /* @__PURE__ */ jsx12(Suspense, {
1043
+ fallback: props.fallback || /* @__PURE__ */ jsx12("div", {
1044
+ style: { padding: "24px" },
1045
+ children: /* @__PURE__ */ jsx12(Skeleton, {
1046
+ active: true
1047
+ })
1048
+ }),
1049
+ children: /* @__PURE__ */ jsx12(r.page, {})
1050
+ })
1051
+ }, r.path)),
1052
+ /* @__PURE__ */ jsx12(Route, {
1053
+ path: "*",
1054
+ element: props.notFound || /* @__PURE__ */ jsx12(PageNotFound, {})
1055
+ }, "*")
1056
+ ]
1064
1057
  });
1065
1058
  }
1066
1059
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/ant-design",
3
- "version": "0.0.3-beta.35",
3
+ "version": "0.0.3-beta.36",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -28,7 +28,7 @@
28
28
  "lodash-es": "*",
29
29
  "react": "*",
30
30
  "react-dom": "*",
31
- "@faasjs/react": "^0.0.3-beta.35",
31
+ "@faasjs/react": "^0.0.3-beta.36",
32
32
  "react-router-dom": "*",
33
33
  "dayjs": "*"
34
34
  },