@faasjs/ant-design 2.7.0 → 2.8.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/README.md CHANGED
@@ -50,8 +50,8 @@ type FaasItemProps = {
50
50
  - [LinkProps](interfaces/LinkProps.md)
51
51
  - [ModalProps](interfaces/ModalProps.md)
52
52
  - [RoutesProps](interfaces/RoutesProps.md)
53
- - [TabProps](interfaces/TabProps.md)
54
53
  - [TableItemProps](interfaces/TableItemProps.md)
54
+ - [TabProps](interfaces/TabProps.md)
55
55
  - [TabsProps](interfaces/TabsProps.md)
56
56
  - [TitleProps](interfaces/TitleProps.md)
57
57
  - [UnionFaasItemProps](interfaces/UnionFaasItemProps.md)
@@ -70,13 +70,13 @@ type FaasItemProps = {
70
70
  - [FaasItemTypeValue](type-aliases/FaasItemTypeValue.md)
71
71
  - [FormSubmitProps](type-aliases/FormSubmitProps.md)
72
72
  - [LoadingProps](type-aliases/LoadingProps.md)
73
+ - [setDrawerProps](type-aliases/setDrawerProps.md)
74
+ - [setModalProps](type-aliases/setModalProps.md)
73
75
  - [TableProps](type-aliases/TableProps.md)
74
76
  - [UnionFaasItemElement](type-aliases/UnionFaasItemElement.md)
75
77
  - [UnionFaasItemInjection](type-aliases/UnionFaasItemInjection.md)
76
78
  - [UnionFaasItemRender](type-aliases/UnionFaasItemRender.md)
77
79
  - [UnionScene](type-aliases/UnionScene.md)
78
- - [setDrawerProps](type-aliases/setDrawerProps.md)
79
- - [setModalProps](type-aliases/setModalProps.md)
80
80
 
81
81
  ## Variables
82
82
 
@@ -90,6 +90,7 @@ type FaasItemProps = {
90
90
  - [Description](functions/Description.md)
91
91
  - [Drawer](functions/Drawer.md)
92
92
  - [ErrorBoundary](functions/ErrorBoundary.md)
93
+ - [faas](functions/faas.md)
93
94
  - [FaasDataWrapper](functions/FaasDataWrapper.md)
94
95
  - [Form](functions/Form.md)
95
96
  - [FormItem](functions/FormItem.md)
@@ -101,7 +102,6 @@ type FaasItemProps = {
101
102
  - [Table](functions/Table.md)
102
103
  - [Tabs](functions/Tabs.md)
103
104
  - [Title](functions/Title.md)
104
- - [faas](functions/faas.md)
105
105
  - [transferOptions](functions/transferOptions.md)
106
106
  - [transferValue](functions/transferValue.md)
107
107
  - [useApp](functions/useApp.md)
@@ -109,3 +109,4 @@ type FaasItemProps = {
109
109
  - [useDrawer](functions/useDrawer.md)
110
110
  - [useFaas](functions/useFaas.md)
111
111
  - [useModal](functions/useModal.md)
112
+ - [withFaasData](functions/withFaasData.md)
package/dist/index.d.mts CHANGED
@@ -16,6 +16,7 @@ import { BrowserRouterProps, RouteProps } from 'react-router-dom';
16
16
  import { Dayjs } from 'dayjs';
17
17
  import * as antd_es_form_FormItem from 'antd/es/form/FormItem';
18
18
  import { RuleObject } from 'rc-field-form/lib/interface';
19
+ import { FaasAction } from '@faasjs/types';
19
20
  import { FilterValue, SorterResult, TableCurrentDataSource } from 'antd/es/table/interface';
20
21
  import * as antd_es_form_context from 'antd/es/form/context';
21
22
  import * as antd_es_form from 'antd/es/form';
@@ -384,6 +385,15 @@ declare function FaasDataWrapper<T = any>(props: FaasDataWrapperProps<T>): JSX.E
384
385
  declare namespace FaasDataWrapper {
385
386
  var whyDidYouRender: boolean;
386
387
  }
388
+ /**
389
+ * HOC to wrap a component with FaasDataWrapper and Loading
390
+ *
391
+ * @example
392
+ * ```tsx
393
+ * const MyComponent = withFaasData(({ data }) => <div>{data.name}</div>, { action: 'test', params: { a: 1 } })
394
+ * ```
395
+ */
396
+ declare function withFaasData<TComponent extends React.FC<any>, PathOrData extends FaasAction>(Component: TComponent, faasProps: FaasDataWrapperProps<PathOrData>): react.FC<Omit<any, keyof FaasDataInjection$1<any>> & Record<string, any>>;
387
397
 
388
398
  interface ExtendDescriptionTypeProps<T = any> {
389
399
  children?: UnionFaasItemElement<T>;
@@ -604,7 +614,7 @@ interface LinkProps {
604
614
  text?: string | number;
605
615
  children?: ReactNode;
606
616
  style?: CSSProperties;
607
- button?: ButtonProps;
617
+ button?: ButtonProps | boolean;
608
618
  block?: boolean;
609
619
  /** only use for text without button */
610
620
  copyable?: boolean;
@@ -737,4 +747,4 @@ declare namespace Title {
737
747
  var whyDidYouRender: boolean;
738
748
  }
739
749
 
740
- export { App, type AppProps, type BaseItemProps, type BaseOption, Blank, type BlankProps, ConfigContext, ConfigProvider, type ConfigProviderProps, Description, type DescriptionItemContentProps, type DescriptionItemProps, type DescriptionProps, Drawer, type DrawerProps, ErrorBoundary, type ExtendDescriptionItemProps, type ExtendDescriptionTypeProps, type ExtendFormItemProps, type ExtendFormTypeProps, type ExtendTableItemProps, type ExtendTableTypeProps, type ExtendTypes, type FaasDataInjection, FaasDataWrapper, type FaasDataWrapperProps, type FaasItemProps, type FaasItemType, type FaasItemTypeValue, Form, FormItem, type FormItemProps, type FormProps, type FormSubmitProps, Link, type LinkProps, Loading, type LoadingProps, Modal, type ModalProps, PageNotFound, Routes, type RoutesProps, type TabProps, Table, type TableItemProps, type TableProps, Tabs, type TabsProps, Title, type TitleProps, type UnionFaasItemElement, type UnionFaasItemInjection, type UnionFaasItemProps, type UnionFaasItemRender, type UnionScene, type setDrawerProps, type setModalProps, transferOptions, transferValue, useApp, type useAppProps, useConfigContext, useDrawer, useModal };
750
+ export { App, type AppProps, type BaseItemProps, type BaseOption, Blank, type BlankProps, ConfigContext, ConfigProvider, type ConfigProviderProps, Description, type DescriptionItemContentProps, type DescriptionItemProps, type DescriptionProps, Drawer, type DrawerProps, ErrorBoundary, type ExtendDescriptionItemProps, type ExtendDescriptionTypeProps, type ExtendFormItemProps, type ExtendFormTypeProps, type ExtendTableItemProps, type ExtendTableTypeProps, type ExtendTypes, type FaasDataInjection, FaasDataWrapper, type FaasDataWrapperProps, type FaasItemProps, type FaasItemType, type FaasItemTypeValue, Form, FormItem, type FormItemProps, type FormProps, type FormSubmitProps, Link, type LinkProps, Loading, type LoadingProps, Modal, type ModalProps, PageNotFound, Routes, type RoutesProps, type TabProps, Table, type TableItemProps, type TableProps, Tabs, type TabsProps, Title, type TitleProps, type UnionFaasItemElement, type UnionFaasItemInjection, type UnionFaasItemProps, type UnionFaasItemRender, type UnionScene, type setDrawerProps, type setModalProps, transferOptions, transferValue, useApp, type useAppProps, useConfigContext, useDrawer, useModal, withFaasData };
package/dist/index.d.ts CHANGED
@@ -16,6 +16,7 @@ import { BrowserRouterProps, RouteProps } from 'react-router-dom';
16
16
  import { Dayjs } from 'dayjs';
17
17
  import * as antd_es_form_FormItem from 'antd/es/form/FormItem';
18
18
  import { RuleObject } from 'rc-field-form/lib/interface';
19
+ import { FaasAction } from '@faasjs/types';
19
20
  import { FilterValue, SorterResult, TableCurrentDataSource } from 'antd/es/table/interface';
20
21
  import * as antd_es_form_context from 'antd/es/form/context';
21
22
  import * as antd_es_form from 'antd/es/form';
@@ -384,6 +385,15 @@ declare function FaasDataWrapper<T = any>(props: FaasDataWrapperProps<T>): JSX.E
384
385
  declare namespace FaasDataWrapper {
385
386
  var whyDidYouRender: boolean;
386
387
  }
388
+ /**
389
+ * HOC to wrap a component with FaasDataWrapper and Loading
390
+ *
391
+ * @example
392
+ * ```tsx
393
+ * const MyComponent = withFaasData(({ data }) => <div>{data.name}</div>, { action: 'test', params: { a: 1 } })
394
+ * ```
395
+ */
396
+ declare function withFaasData<TComponent extends React.FC<any>, PathOrData extends FaasAction>(Component: TComponent, faasProps: FaasDataWrapperProps<PathOrData>): react.FC<Omit<any, keyof FaasDataInjection$1<any>> & Record<string, any>>;
387
397
 
388
398
  interface ExtendDescriptionTypeProps<T = any> {
389
399
  children?: UnionFaasItemElement<T>;
@@ -604,7 +614,7 @@ interface LinkProps {
604
614
  text?: string | number;
605
615
  children?: ReactNode;
606
616
  style?: CSSProperties;
607
- button?: ButtonProps;
617
+ button?: ButtonProps | boolean;
608
618
  block?: boolean;
609
619
  /** only use for text without button */
610
620
  copyable?: boolean;
@@ -737,4 +747,4 @@ declare namespace Title {
737
747
  var whyDidYouRender: boolean;
738
748
  }
739
749
 
740
- export { App, type AppProps, type BaseItemProps, type BaseOption, Blank, type BlankProps, ConfigContext, ConfigProvider, type ConfigProviderProps, Description, type DescriptionItemContentProps, type DescriptionItemProps, type DescriptionProps, Drawer, type DrawerProps, ErrorBoundary, type ExtendDescriptionItemProps, type ExtendDescriptionTypeProps, type ExtendFormItemProps, type ExtendFormTypeProps, type ExtendTableItemProps, type ExtendTableTypeProps, type ExtendTypes, type FaasDataInjection, FaasDataWrapper, type FaasDataWrapperProps, type FaasItemProps, type FaasItemType, type FaasItemTypeValue, Form, FormItem, type FormItemProps, type FormProps, type FormSubmitProps, Link, type LinkProps, Loading, type LoadingProps, Modal, type ModalProps, PageNotFound, Routes, type RoutesProps, type TabProps, Table, type TableItemProps, type TableProps, Tabs, type TabsProps, Title, type TitleProps, type UnionFaasItemElement, type UnionFaasItemInjection, type UnionFaasItemProps, type UnionFaasItemRender, type UnionScene, type setDrawerProps, type setModalProps, transferOptions, transferValue, useApp, type useAppProps, useConfigContext, useDrawer, useModal };
750
+ export { App, type AppProps, type BaseItemProps, type BaseOption, Blank, type BlankProps, ConfigContext, ConfigProvider, type ConfigProviderProps, Description, type DescriptionItemContentProps, type DescriptionItemProps, type DescriptionProps, Drawer, type DrawerProps, ErrorBoundary, type ExtendDescriptionItemProps, type ExtendDescriptionTypeProps, type ExtendFormItemProps, type ExtendFormTypeProps, type ExtendTableItemProps, type ExtendTableTypeProps, type ExtendTypes, type FaasDataInjection, FaasDataWrapper, type FaasDataWrapperProps, type FaasItemProps, type FaasItemType, type FaasItemTypeValue, Form, FormItem, type FormItemProps, type FormProps, type FormSubmitProps, Link, type LinkProps, Loading, type LoadingProps, Modal, type ModalProps, PageNotFound, Routes, type RoutesProps, type TabProps, Table, type TableItemProps, type TableProps, Tabs, type TabsProps, Title, type TitleProps, type UnionFaasItemElement, type UnionFaasItemInjection, type UnionFaasItemProps, type UnionFaasItemRender, type UnionScene, type setDrawerProps, type setModalProps, transferOptions, transferValue, useApp, type useAppProps, useConfigContext, useDrawer, useModal, withFaasData };
package/dist/index.js CHANGED
@@ -307,6 +307,12 @@ function FaasDataWrapper(props) {
307
307
  );
308
308
  }
309
309
  FaasDataWrapper.whyDidYouRender = true;
310
+ function withFaasData(Component, faasProps) {
311
+ return react.withFaasData(Component, {
312
+ fallback: faasProps.loading || /* @__PURE__ */ jsxRuntime.jsx(Loading, { ...faasProps.loadingProps }),
313
+ ...faasProps
314
+ });
315
+ }
310
316
  function DescriptionItemContent(props) {
311
317
  var _a, _b;
312
318
  const [computedProps, setComputedProps] = react$1.useState();
@@ -891,9 +897,10 @@ Form.List = antd.Form.List;
891
897
  Form.ErrorList = antd.Form.ErrorList;
892
898
  Form.Provider = antd.Form.Provider;
893
899
  function Link(props) {
894
- var _a, _b, _c, _d, _e, _f, _g;
900
+ var _a, _b, _c;
895
901
  const { theme } = useConfigContext();
896
902
  const navigate = reactRouterDom.useNavigate();
903
+ const target = props.target || ((_a = theme.Link) == null ? void 0 : _a.target) || (props.href.startsWith("http") ? "_blank" : void 0);
897
904
  let computedStyle = {
898
905
  ...theme.Link.style || {},
899
906
  cursor: "pointer",
@@ -907,85 +914,39 @@ function Link(props) {
907
914
  },
908
915
  computedStyle
909
916
  );
910
- if (props.href.startsWith("http")) {
911
- if (props.button)
912
- return /* @__PURE__ */ jsxRuntime.jsx(
913
- antd.Button,
914
- {
915
- ...props.button,
916
- target: props.target || ((_a = theme.Link) == null ? void 0 : _a.target) || "_blank",
917
- style: computedStyle,
918
- href: props.href,
919
- onClick: props.onClick,
920
- children: (_b = props.text) != null ? _b : props.children
921
- }
922
- );
923
- if (props.children)
924
- return /* @__PURE__ */ jsxRuntime.jsx(
925
- "a",
926
- {
927
- href: props.href,
928
- target: props.target || ((_c = theme.Link) == null ? void 0 : _c.target),
929
- style: computedStyle,
930
- onClick: props.onClick,
931
- children: props.children
932
- }
933
- );
934
- return /* @__PURE__ */ jsxRuntime.jsx(
935
- antd.Typography.Link,
936
- {
937
- href: props.href,
938
- target: props.target || ((_d = theme.Link) == null ? void 0 : _d.target) || "_blank",
939
- style: computedStyle,
940
- copyable: props.copyable,
941
- onClick: props.onClick,
942
- children: props.text
943
- }
944
- );
945
- }
946
917
  if (props.button)
947
918
  return /* @__PURE__ */ jsxRuntime.jsx(
948
919
  antd.Button,
949
920
  {
950
- ...props.button,
921
+ ...props.button || {},
951
922
  style: computedStyle,
952
923
  onClick: (e) => {
953
- var _a2;
954
- return props.onClick ? props.onClick(e) : (props.target || ((_a2 = theme.Link) == null ? void 0 : _a2.target)) === "_blank" ? window.open(props.href) : navigate(props.href);
924
+ props.onClick ? props.onClick(e) : target === "_blank" ? window.open(props.href) : navigate(props.href);
925
+ e.preventDefault();
955
926
  },
956
- children: (_e = props.text) != null ? _e : props.children
957
- }
958
- );
959
- if (props.children)
960
- return /* @__PURE__ */ jsxRuntime.jsx(
961
- reactRouterDom.Link,
962
- {
963
- to: props.href,
964
- target: props.target || ((_f = theme.Link) == null ? void 0 : _f.target),
965
- style: computedStyle,
966
- onClick: props.onClick,
967
- children: props.children
927
+ children: (_b = props.children) != null ? _b : props.text
968
928
  }
969
929
  );
970
930
  return /* @__PURE__ */ jsxRuntime.jsx(
971
931
  antd.Typography.Link,
972
932
  {
973
933
  href: props.href,
974
- target: props.target || ((_g = theme.Link) == null ? void 0 : _g.target),
934
+ target,
975
935
  style: computedStyle,
976
936
  copyable: props.copyable,
977
937
  onClick: (e) => {
978
- var _a2;
938
+ e.preventDefault();
979
939
  if (props.onClick) {
980
940
  props.onClick(e);
981
941
  return;
982
942
  }
983
- if ((props.target || ((_a2 = theme.Link) == null ? void 0 : _a2.target)) !== "_blank") {
984
- e.preventDefault();
985
- navigate(props.href);
943
+ if (target === "_blank") {
944
+ window.open(props.href);
945
+ return;
986
946
  }
947
+ navigate(props.href);
987
948
  },
988
- children: props.text
949
+ children: (_c = props.children) != null ? _c : props.text
989
950
  }
990
951
  );
991
952
  }
@@ -1649,3 +1610,4 @@ exports.useApp = useApp;
1649
1610
  exports.useConfigContext = useConfigContext;
1650
1611
  exports.useDrawer = useDrawer;
1651
1612
  exports.useModal = useModal;
1613
+ exports.withFaasData = withFaasData;
package/dist/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
- import { createSplittingContext, ErrorBoundary as ErrorBoundary$1, FaasReactClient, OptionalWrapper, FaasDataWrapper as FaasDataWrapper$1, faas } from '@faasjs/react';
1
+ import { createSplittingContext, ErrorBoundary as ErrorBoundary$1, FaasReactClient, OptionalWrapper, FaasDataWrapper as FaasDataWrapper$1, withFaasData as withFaasData$1, faas } from '@faasjs/react';
2
2
  export { faas, useFaas } from '@faasjs/react';
3
3
  import { Form as Form$1, Modal as Modal$1, Drawer as Drawer$1, message, notification, ConfigProvider as ConfigProvider$1, Typography, Spin, Descriptions, Input, Button, Row, Col, DatePicker, Switch, Select, InputNumber, Radio, Result, Skeleton, Table as Table$1, Tabs as Tabs$1, Alert, Space } from 'antd';
4
4
  import { legacyLogicalPropertiesTransformer, StyleProvider } from '@ant-design/cssinjs';
5
5
  import { createContext, useState, useCallback, useEffect, useContext, useMemo, cloneElement, Suspense } from 'react';
6
6
  export { lazy } from 'react';
7
7
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
8
- import { BrowserRouter, useNavigate, Link as Link$1, Routes as Routes$1, Route, useLocation } from 'react-router-dom';
8
+ import { BrowserRouter, useNavigate, Routes as Routes$1, Route, useLocation } from 'react-router-dom';
9
9
  import { defaultsDeep, isNil, upperFirst, isFunction, cloneDeep, uniqBy } from 'lodash-es';
10
10
  import dayjs2 from 'dayjs';
11
11
  import { PlusOutlined, MinusCircleOutlined, CheckOutlined, CloseOutlined } from '@ant-design/icons';
@@ -303,6 +303,12 @@ function FaasDataWrapper(props) {
303
303
  );
304
304
  }
305
305
  FaasDataWrapper.whyDidYouRender = true;
306
+ function withFaasData(Component, faasProps) {
307
+ return withFaasData$1(Component, {
308
+ fallback: faasProps.loading || /* @__PURE__ */ jsx(Loading, { ...faasProps.loadingProps }),
309
+ ...faasProps
310
+ });
311
+ }
306
312
  function DescriptionItemContent(props) {
307
313
  var _a, _b;
308
314
  const [computedProps, setComputedProps] = useState();
@@ -887,9 +893,10 @@ Form.List = Form$1.List;
887
893
  Form.ErrorList = Form$1.ErrorList;
888
894
  Form.Provider = Form$1.Provider;
889
895
  function Link(props) {
890
- var _a, _b, _c, _d, _e, _f, _g;
896
+ var _a, _b, _c;
891
897
  const { theme } = useConfigContext();
892
898
  const navigate = useNavigate();
899
+ const target = props.target || ((_a = theme.Link) == null ? void 0 : _a.target) || (props.href.startsWith("http") ? "_blank" : void 0);
893
900
  let computedStyle = {
894
901
  ...theme.Link.style || {},
895
902
  cursor: "pointer",
@@ -903,85 +910,39 @@ function Link(props) {
903
910
  },
904
911
  computedStyle
905
912
  );
906
- if (props.href.startsWith("http")) {
907
- if (props.button)
908
- return /* @__PURE__ */ jsx(
909
- Button,
910
- {
911
- ...props.button,
912
- target: props.target || ((_a = theme.Link) == null ? void 0 : _a.target) || "_blank",
913
- style: computedStyle,
914
- href: props.href,
915
- onClick: props.onClick,
916
- children: (_b = props.text) != null ? _b : props.children
917
- }
918
- );
919
- if (props.children)
920
- return /* @__PURE__ */ jsx(
921
- "a",
922
- {
923
- href: props.href,
924
- target: props.target || ((_c = theme.Link) == null ? void 0 : _c.target),
925
- style: computedStyle,
926
- onClick: props.onClick,
927
- children: props.children
928
- }
929
- );
930
- return /* @__PURE__ */ jsx(
931
- Typography.Link,
932
- {
933
- href: props.href,
934
- target: props.target || ((_d = theme.Link) == null ? void 0 : _d.target) || "_blank",
935
- style: computedStyle,
936
- copyable: props.copyable,
937
- onClick: props.onClick,
938
- children: props.text
939
- }
940
- );
941
- }
942
913
  if (props.button)
943
914
  return /* @__PURE__ */ jsx(
944
915
  Button,
945
916
  {
946
- ...props.button,
917
+ ...props.button || {},
947
918
  style: computedStyle,
948
919
  onClick: (e) => {
949
- var _a2;
950
- return props.onClick ? props.onClick(e) : (props.target || ((_a2 = theme.Link) == null ? void 0 : _a2.target)) === "_blank" ? window.open(props.href) : navigate(props.href);
920
+ props.onClick ? props.onClick(e) : target === "_blank" ? window.open(props.href) : navigate(props.href);
921
+ e.preventDefault();
951
922
  },
952
- children: (_e = props.text) != null ? _e : props.children
953
- }
954
- );
955
- if (props.children)
956
- return /* @__PURE__ */ jsx(
957
- Link$1,
958
- {
959
- to: props.href,
960
- target: props.target || ((_f = theme.Link) == null ? void 0 : _f.target),
961
- style: computedStyle,
962
- onClick: props.onClick,
963
- children: props.children
923
+ children: (_b = props.children) != null ? _b : props.text
964
924
  }
965
925
  );
966
926
  return /* @__PURE__ */ jsx(
967
927
  Typography.Link,
968
928
  {
969
929
  href: props.href,
970
- target: props.target || ((_g = theme.Link) == null ? void 0 : _g.target),
930
+ target,
971
931
  style: computedStyle,
972
932
  copyable: props.copyable,
973
933
  onClick: (e) => {
974
- var _a2;
934
+ e.preventDefault();
975
935
  if (props.onClick) {
976
936
  props.onClick(e);
977
937
  return;
978
938
  }
979
- if ((props.target || ((_a2 = theme.Link) == null ? void 0 : _a2.target)) !== "_blank") {
980
- e.preventDefault();
981
- navigate(props.href);
939
+ if (target === "_blank") {
940
+ window.open(props.href);
941
+ return;
982
942
  }
943
+ navigate(props.href);
983
944
  },
984
- children: props.text
945
+ children: (_c = props.children) != null ? _c : props.text
985
946
  }
986
947
  );
987
948
  }
@@ -1609,4 +1570,4 @@ function Title(props) {
1609
1570
  }
1610
1571
  Title.whyDidYouRender = true;
1611
1572
 
1612
- export { App, Blank, ConfigContext, ConfigProvider, Description, Drawer, ErrorBoundary, FaasDataWrapper, Form, FormItem, Link, Loading, Modal, PageNotFound, Routes, Table, Tabs, Title, transferOptions, transferValue, useApp, useConfigContext, useDrawer, useModal };
1573
+ export { App, Blank, ConfigContext, ConfigProvider, Description, Drawer, ErrorBoundary, FaasDataWrapper, Form, FormItem, Link, Loading, Modal, PageNotFound, Routes, Table, Tabs, Title, transferOptions, transferValue, useApp, useConfigContext, useDrawer, useModal, withFaasData };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/ant-design",
3
- "version": "2.7.0",
3
+ "version": "2.8.1",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -38,7 +38,7 @@
38
38
  "lodash-es": "*"
39
39
  },
40
40
  "peerDependencies": {
41
- "@faasjs/react": "2.7.0",
41
+ "@faasjs/react": "2.8.1",
42
42
  "antd": "*",
43
43
  "react": "*",
44
44
  "react-dom": "*",
@@ -46,11 +46,7 @@
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/lodash-es": "*",
49
- "@testing-library/jest-dom": "*",
50
- "@testing-library/react": "*",
51
- "@testing-library/user-event": "*",
52
- "@welldone-software/why-did-you-render": "*",
53
- "@faasjs/react": "2.7.0",
49
+ "@faasjs/react": "2.8.1",
54
50
  "antd": "*",
55
51
  "react": "*",
56
52
  "react-dom": "*",