@faasjs/ant-design 8.0.0-beta.2 → 8.0.0-beta.3

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
@@ -120,6 +120,4 @@ type FaasItemProps = {
120
120
  ## Variables
121
121
 
122
122
  - [ConfigContext](variables/ConfigContext.md)
123
- - [Drawer](variables/Drawer.md)
124
- - [Modal](variables/Modal.md)
125
123
  - [useApp](variables/useApp.md)
package/dist/index.cjs CHANGED
@@ -30,7 +30,6 @@ function Loading(props) {
30
30
  }
31
31
  );
32
32
  }
33
- Loading.whyDidYouRender = true;
34
33
  function FaasDataWrapper(props) {
35
34
  return /* @__PURE__ */ jsxRuntime.jsx(
36
35
  react.FaasDataWrapper,
@@ -40,7 +39,6 @@ function FaasDataWrapper(props) {
40
39
  }
41
40
  );
42
41
  }
43
- FaasDataWrapper.whyDidYouRender = true;
44
42
  function withFaasData(Component, faasProps) {
45
43
  return react.withFaasData(Component, {
46
44
  fallback: faasProps.loading || /* @__PURE__ */ jsxRuntime.jsx(Loading, { ...faasProps.loadingProps }),
@@ -111,8 +109,6 @@ function ConfigProvider(props) {
111
109
  function useConfigContext() {
112
110
  return react$1.useContext(ConfigContext);
113
111
  }
114
- var Drawer = antd.Drawer;
115
- Drawer.whyDidYouRender = true;
116
112
  function useDrawer(init) {
117
113
  const [props, setProps] = react$1.useState({
118
114
  open: false,
@@ -127,7 +123,7 @@ function useDrawer(init) {
127
123
  );
128
124
  return {
129
125
  drawer: /* @__PURE__ */ jsxRuntime.jsx(
130
- Drawer,
126
+ antd.Drawer,
131
127
  {
132
128
  onClose: () => setProps((prev) => ({
133
129
  ...prev,
@@ -162,9 +158,6 @@ function ErrorChildren(props) {
162
158
  function ErrorBoundary(props) {
163
159
  return /* @__PURE__ */ jsxRuntime.jsx(react.ErrorBoundary, { errorChildren: /* @__PURE__ */ jsxRuntime.jsx(ErrorChildren, {}), ...props });
164
160
  }
165
- ErrorBoundary.whyDidYouRender = true;
166
- var Modal = antd.Modal;
167
- Modal.whyDidYouRender = true;
168
161
  function useModal(init) {
169
162
  const [props, setProps] = react$1.useState({ open: false, ...init });
170
163
  const setModalProps = react.useEqualCallback(
@@ -176,7 +169,7 @@ function useModal(init) {
176
169
  );
177
170
  return {
178
171
  modal: /* @__PURE__ */ jsxRuntime.jsx(
179
- Modal,
172
+ antd.Modal,
180
173
  {
181
174
  onCancel: () => setProps((prev) => ({
182
175
  ...prev,
@@ -266,12 +259,10 @@ function App(props) {
266
259
  }
267
260
  var useApp = AppContext.use;
268
261
  App.useApp = useApp;
269
- App.whyDidYouRender = true;
270
262
  function Blank(options) {
271
263
  const { theme: theme2 } = useConfigContext();
272
264
  return !options || options.value === void 0 || options.value === null || Array.isArray(options.value) && !options.value.length || options.value === "" ? /* @__PURE__ */ jsxRuntime.jsx(antd.Typography.Text, { disabled: true, children: options?.text || theme2.Blank.text }) : options.value;
273
265
  }
274
- Blank.whyDidYouRender = true;
275
266
  function idToTitle(id) {
276
267
  if (typeof id === "number") return id.toString();
277
268
  const splitted = id.split(/(\s|_|-)/).filter((word) => !/(\s|_|-)/.test(word)).map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
@@ -433,7 +424,6 @@ function DescriptionItemContent(props) {
433
424
  }
434
425
  }
435
426
  DescriptionItemContent.displayName = "DescriptionItemContent";
436
- DescriptionItemContent.whyDidYouRender = true;
437
427
  function Description({
438
428
  faasData,
439
429
  dataSource,
@@ -482,7 +472,6 @@ function Description({
482
472
  );
483
473
  }
484
474
  Description.displayName = "Description";
485
- Description.whyDidYouRender = true;
486
475
  function isOptionsProps(item) {
487
476
  return item && Array.isArray(item.options);
488
477
  }
@@ -774,7 +763,6 @@ function FormItem(props) {
774
763
  return null;
775
764
  }
776
765
  }
777
- FormItem.whyDidYouRender = true;
778
766
  FormItem.useStatus = antd.Form.Item.useStatus;
779
767
  function isFormItemProps(item) {
780
768
  return item.id !== void 0;
@@ -897,7 +885,6 @@ function Form(props) {
897
885
  computedProps.footer
898
886
  ] });
899
887
  }
900
- Form.whyDidYouRender = true;
901
888
  Form.useForm = antd.Form.useForm;
902
889
  Form.useFormInstance = antd.Form.useFormInstance;
903
890
  Form.useWatch = antd.Form.useWatch;
@@ -958,7 +945,6 @@ function Link(props) {
958
945
  }
959
946
  );
960
947
  }
961
- Link.whyDidYouRender = true;
962
948
  function PageNotFound() {
963
949
  const { theme: theme2 } = useConfigContext();
964
950
  return /* @__PURE__ */ jsxRuntime.jsx(antd.Result, { status: "404", title: theme2.common.pageNotFound });
@@ -982,7 +968,6 @@ function Routes(props) {
982
968
  /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Route, { path: "*", element: props.notFound || /* @__PURE__ */ jsxRuntime.jsx(PageNotFound, {}) }, "*")
983
969
  ] });
984
970
  }
985
- Routes.whyDidYouRender = true;
986
971
  function processValue(item, value) {
987
972
  const transferred = transferValue(item.type, value);
988
973
  if (transferred === null || Array.isArray(transferred) && transferred.length === 0)
@@ -1566,7 +1551,6 @@ function Tabs(props) {
1566
1551
  }
1567
1552
  );
1568
1553
  }
1569
- Tabs.whyDidYouRender = true;
1570
1554
  function Title(props) {
1571
1555
  const { theme: theme2 } = useConfigContext();
1572
1556
  react$1.useEffect(() => {
@@ -1584,7 +1568,6 @@ function Title(props) {
1584
1568
  return react$1.cloneElement(props.children, { title: props.title });
1585
1569
  return null;
1586
1570
  }
1587
- Title.whyDidYouRender = true;
1588
1571
  function useThemeToken() {
1589
1572
  const config = antd.theme.useToken();
1590
1573
  return config.token;
@@ -1602,6 +1585,14 @@ Object.defineProperty(exports, "useFaas", {
1602
1585
  enumerable: true,
1603
1586
  get: function () { return react.useFaas; }
1604
1587
  });
1588
+ Object.defineProperty(exports, "Drawer", {
1589
+ enumerable: true,
1590
+ get: function () { return antd.Drawer; }
1591
+ });
1592
+ Object.defineProperty(exports, "Modal", {
1593
+ enumerable: true,
1594
+ get: function () { return antd.Modal; }
1595
+ });
1605
1596
  Object.defineProperty(exports, "lazy", {
1606
1597
  enumerable: true,
1607
1598
  get: function () { return react$1.lazy; }
@@ -1611,14 +1602,12 @@ exports.Blank = Blank;
1611
1602
  exports.ConfigContext = ConfigContext;
1612
1603
  exports.ConfigProvider = ConfigProvider;
1613
1604
  exports.Description = Description;
1614
- exports.Drawer = Drawer;
1615
1605
  exports.ErrorBoundary = ErrorBoundary;
1616
1606
  exports.FaasDataWrapper = FaasDataWrapper;
1617
1607
  exports.Form = Form;
1618
1608
  exports.FormItem = FormItem;
1619
1609
  exports.Link = Link;
1620
1610
  exports.Loading = Loading;
1621
- exports.Modal = Modal;
1622
1611
  exports.PageNotFound = PageNotFound;
1623
1612
  exports.Routes = Routes;
1624
1613
  exports.Table = Table;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { DrawerProps as DrawerProps$1, ModalProps as ModalProps$1, ConfigProviderProps as ConfigProviderProps$1, FormItemProps as FormItemProps$1, InputProps, SelectProps, RadioProps, InputNumberProps, SwitchProps, DatePickerProps, FormInstance, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1, DescriptionsProps, FormProps as FormProps$1, ButtonProps, TabsProps as TabsProps$1, GlobalToken } from 'antd';
3
+ export { Drawer, Modal } from 'antd';
3
4
  import { MessageInstance } from 'antd/es/message/interface';
4
5
  import { NotificationInstance } from 'antd/es/notification/interface';
5
6
  import { BrowserRouterProps, RouteProps } from 'react-router-dom';
@@ -8,9 +9,6 @@ import { JSX, CSSProperties, Dispatch, SetStateAction, ReactElement, FC, ReactNo
8
9
  export { lazy } from 'react';
9
10
  import { FaasDataWrapperProps as FaasDataWrapperProps$1, FaasDataInjection as FaasDataInjection$1, FaasReactClientOptions, ErrorBoundaryProps } from '@faasjs/react';
10
11
  export { ErrorBoundaryProps, FaasDataWrapperRef, FaasReactClient, FaasReactClientOptions, faas, useFaas } from '@faasjs/react';
11
- import * as antd_es_modal_PurePanel from 'antd/es/modal/PurePanel';
12
- import * as antd_es_modal_useModal from 'antd/es/modal/useModal';
13
- import * as antd_es_modal_confirm from 'antd/es/modal/confirm';
14
12
  import { FaasActionUnionType, FaasAction } from '@faasjs/types';
15
13
  import { Dayjs } from 'dayjs';
16
14
  import * as antd_es_form_FormItem from 'antd/es/form/FormItem';
@@ -42,9 +40,6 @@ type LoadingProps = {
42
40
  * ```
43
41
  */
44
42
  declare function Loading(props: LoadingProps): react_jsx_runtime.JSX.Element;
45
- declare namespace Loading {
46
- var whyDidYouRender: boolean;
47
- }
48
43
 
49
44
  type FaasDataInjection<T = any> = Partial<FaasDataInjection$1<T>>;
50
45
  interface FaasDataWrapperProps<T = any> extends FaasDataWrapperProps$1<T> {
@@ -69,9 +64,6 @@ interface FaasDataWrapperProps<T = any> extends FaasDataWrapperProps$1<T> {
69
64
  * ```
70
65
  */
71
66
  declare function FaasDataWrapper<T = any>(props: FaasDataWrapperProps<T>): JSX.Element;
72
- declare namespace FaasDataWrapper {
73
- var whyDidYouRender: boolean;
74
- }
75
67
  /**
76
68
  * HOC to wrap a component with FaasDataWrapper and Loading
77
69
  *
@@ -134,9 +126,6 @@ declare const ConfigContext: react.Context<Partial<ConfigProviderProps>>;
134
126
  declare function ConfigProvider(props: ConfigProviderProps): react_jsx_runtime.JSX.Element;
135
127
  declare function useConfigContext(): Partial<ConfigProviderProps>;
136
128
 
137
- declare const Drawer: React.FC<DrawerProps> & {
138
- whyDidYouRender?: boolean;
139
- };
140
129
  interface DrawerProps extends DrawerProps$1 {
141
130
  children?: JSX.Element | JSX.Element[];
142
131
  }
@@ -167,16 +156,7 @@ declare function useDrawer(init?: DrawerProps): {
167
156
  * Styled error boundary.
168
157
  */
169
158
  declare function ErrorBoundary(props: ErrorBoundaryProps): react_jsx_runtime.JSX.Element;
170
- declare namespace ErrorBoundary {
171
- var whyDidYouRender: boolean;
172
- }
173
159
 
174
- declare const Modal: react.FC<ModalProps$1> & antd_es_modal_confirm.ModalStaticFunctions & {
175
- useModal: typeof antd_es_modal_useModal.default;
176
- destroyAll: () => void;
177
- config: typeof antd_es_modal_confirm.modalGlobalConfig;
178
- _InternalPanelDoNotUseOrYouWillBeFired: (props: antd_es_modal_PurePanel.PurePanelProps) => React.JSX.Element;
179
- };
180
160
  interface ModalProps extends ModalProps$1 {
181
161
  children?: JSX.Element | JSX.Element[] | string;
182
162
  }
@@ -256,7 +236,6 @@ interface useAppProps {
256
236
  declare function App(props: AppProps): react_jsx_runtime.JSX.Element;
257
237
  declare namespace App {
258
238
  var useApp: <NewT extends useAppProps = useAppProps>() => Readonly<NewT>;
259
- var whyDidYouRender: boolean;
260
239
  }
261
240
  /**
262
241
  * Get app context.
@@ -286,9 +265,6 @@ interface BlankProps {
286
265
  * ```
287
266
  */
288
267
  declare function Blank(options?: BlankProps): JSX.Element;
289
- declare namespace Blank {
290
- var whyDidYouRender: boolean;
291
- }
292
268
 
293
269
  type ExtendFormTypeProps<T = any> = {
294
270
  children?: UnionFaasItemElement<T>;
@@ -382,7 +358,6 @@ interface ExtendFormItemProps extends Omit<FormItemProps, 'type'> {
382
358
  */
383
359
  declare function FormItem<T = any>(props: FormItemProps<T>): react_jsx_runtime.JSX.Element;
384
360
  declare namespace FormItem {
385
- var whyDidYouRender: boolean;
386
361
  var useStatus: () => {
387
362
  status?: antd_es_form_FormItem.ValidateStatus;
388
363
  errors: React.ReactNode[];
@@ -724,7 +699,6 @@ interface DescriptionItemContentProps<T = any> {
724
699
  declare function Description<T extends Record<string, any> = any>({ faasData, dataSource, renderTitle, extendTypes, ...props }: DescriptionProps<T>): react_jsx_runtime.JSX.Element;
725
700
  declare namespace Description {
726
701
  var displayName: string;
727
- var whyDidYouRender: boolean;
728
702
  }
729
703
 
730
704
  type FormSubmitProps = {
@@ -782,7 +756,6 @@ interface FormProps<Values extends Record<string, any> = any, ExtendItemProps ex
782
756
  */
783
757
  declare function Form<Values = any>(props: FormProps<Values>): react_jsx_runtime.JSX.Element;
784
758
  declare namespace Form {
785
- var whyDidYouRender: boolean;
786
759
  var useForm: typeof antd_es_form_Form.useForm;
787
760
  var useFormInstance: typeof antd_es_form_hooks_useFormInstance.default;
788
761
  var useWatch: typeof _rc_component_form.useWatch;
@@ -817,9 +790,6 @@ interface LinkProps {
817
790
  * ```
818
791
  */
819
792
  declare function Link(props: LinkProps): react_jsx_runtime.JSX.Element;
820
- declare namespace Link {
821
- var whyDidYouRender: boolean;
822
- }
823
793
 
824
794
  declare function PageNotFound(): react_jsx_runtime.JSX.Element;
825
795
  interface RoutesProps {
@@ -850,9 +820,6 @@ interface RoutesProps {
850
820
  * ```
851
821
  */
852
822
  declare function Routes(props: RoutesProps): react_jsx_runtime.JSX.Element;
853
- declare namespace Routes {
854
- var whyDidYouRender: boolean;
855
- }
856
823
 
857
824
  interface TabProps extends Partial<Tab> {
858
825
  id: string;
@@ -889,9 +856,6 @@ interface TabsProps extends Omit<TabsProps$1, 'items'> {
889
856
  * ```
890
857
  */
891
858
  declare function Tabs(props: TabsProps): react_jsx_runtime.JSX.Element;
892
- declare namespace Tabs {
893
- var whyDidYouRender: boolean;
894
- }
895
859
 
896
860
  interface TitleProps {
897
861
  title: string | string[];
@@ -927,9 +891,6 @@ interface TitleProps {
927
891
  * ```
928
892
  */
929
893
  declare function Title(props: TitleProps): JSX.Element;
930
- declare namespace Title {
931
- var whyDidYouRender: boolean;
932
- }
933
894
 
934
895
  /**
935
896
  * Hook to retrieve the theme token from the Ant Design theme configuration.
@@ -941,4 +902,4 @@ declare namespace Title {
941
902
  */
942
903
  declare function useThemeToken(): GlobalToken;
943
904
 
944
- 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 TableFaasDataParams, type TableFaasDataResponse, type TableItemProps, type TableProps, Tabs, type TabsProps, Title, type TitleProps, type UnionFaasItemElement, type UnionFaasItemInjection, type UnionFaasItemProps, type UnionFaasItemRender, type UnionScene, cloneUnionFaasItemElement, idToTitle, type setDrawerProps, type setModalProps, transferOptions, transferValue, useApp, type useAppProps, useConfigContext, useDrawer, useModal, useThemeToken, withFaasData };
905
+ export { App, type AppProps, type BaseItemProps, type BaseOption, Blank, type BlankProps, ConfigContext, ConfigProvider, type ConfigProviderProps, Description, type DescriptionItemContentProps, type DescriptionItemProps, type DescriptionProps, 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, type ModalProps, PageNotFound, Routes, type RoutesProps, type TabProps, Table, type TableFaasDataParams, type TableFaasDataResponse, type TableItemProps, type TableProps, Tabs, type TabsProps, Title, type TitleProps, type UnionFaasItemElement, type UnionFaasItemInjection, type UnionFaasItemProps, type UnionFaasItemRender, type UnionScene, cloneUnionFaasItemElement, idToTitle, type setDrawerProps, type setModalProps, transferOptions, transferValue, useApp, type useAppProps, useConfigContext, useDrawer, useModal, useThemeToken, withFaasData };
package/dist/index.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  import { createSplittingContext, FaasDataWrapper as FaasDataWrapper$1, withFaasData as withFaasData$1, useEqualEffect, FaasReactClient, useEqualCallback, ErrorBoundary as ErrorBoundary$1, OptionalWrapper, faas } from '@faasjs/react';
2
2
  export { FaasReactClient, faas, useFaas } from '@faasjs/react';
3
- import { Drawer as Drawer$1, Modal as Modal$1, Form as Form$1, Spin, message, notification, ConfigProvider as ConfigProvider$1, Typography, Descriptions, Input, Button, Row, Col, DatePicker, Switch, Select, InputNumber, Radio, Result, Skeleton, Table as Table$1, Tabs as Tabs$1, theme, Alert, Space } from 'antd';
3
+ import { Form as Form$1, Spin, Drawer, Modal, message, notification, ConfigProvider as ConfigProvider$1, Typography, Descriptions, Input, Button, Row, Col, DatePicker, Switch, Select, InputNumber, Radio, Result, Skeleton, Table as Table$1, Tabs as Tabs$1, theme, Alert, Space } from 'antd';
4
+ export { Drawer, Modal } from 'antd';
4
5
  import { BrowserRouter, useNavigate, Routes as Routes$1, Route, useLocation } from 'react-router-dom';
5
6
  import { defaultsDeep, cloneDeep, isNil, uniqBy } from 'lodash-es';
6
7
  import { createContext, useState, useContext, cloneElement, isValidElement, createElement, useEffect, Suspense } from 'react';
@@ -26,7 +27,6 @@ function Loading(props) {
26
27
  }
27
28
  );
28
29
  }
29
- Loading.whyDidYouRender = true;
30
30
  function FaasDataWrapper(props) {
31
31
  return /* @__PURE__ */ jsx(
32
32
  FaasDataWrapper$1,
@@ -36,7 +36,6 @@ function FaasDataWrapper(props) {
36
36
  }
37
37
  );
38
38
  }
39
- FaasDataWrapper.whyDidYouRender = true;
40
39
  function withFaasData(Component, faasProps) {
41
40
  return withFaasData$1(Component, {
42
41
  fallback: faasProps.loading || /* @__PURE__ */ jsx(Loading, { ...faasProps.loadingProps }),
@@ -107,8 +106,6 @@ function ConfigProvider(props) {
107
106
  function useConfigContext() {
108
107
  return useContext(ConfigContext);
109
108
  }
110
- var Drawer = Drawer$1;
111
- Drawer.whyDidYouRender = true;
112
109
  function useDrawer(init) {
113
110
  const [props, setProps] = useState({
114
111
  open: false,
@@ -158,9 +155,6 @@ function ErrorChildren(props) {
158
155
  function ErrorBoundary(props) {
159
156
  return /* @__PURE__ */ jsx(ErrorBoundary$1, { errorChildren: /* @__PURE__ */ jsx(ErrorChildren, {}), ...props });
160
157
  }
161
- ErrorBoundary.whyDidYouRender = true;
162
- var Modal = Modal$1;
163
- Modal.whyDidYouRender = true;
164
158
  function useModal(init) {
165
159
  const [props, setProps] = useState({ open: false, ...init });
166
160
  const setModalProps = useEqualCallback(
@@ -262,12 +256,10 @@ function App(props) {
262
256
  }
263
257
  var useApp = AppContext.use;
264
258
  App.useApp = useApp;
265
- App.whyDidYouRender = true;
266
259
  function Blank(options) {
267
260
  const { theme: theme2 } = useConfigContext();
268
261
  return !options || options.value === void 0 || options.value === null || Array.isArray(options.value) && !options.value.length || options.value === "" ? /* @__PURE__ */ jsx(Typography.Text, { disabled: true, children: options?.text || theme2.Blank.text }) : options.value;
269
262
  }
270
- Blank.whyDidYouRender = true;
271
263
  function idToTitle(id) {
272
264
  if (typeof id === "number") return id.toString();
273
265
  const splitted = id.split(/(\s|_|-)/).filter((word) => !/(\s|_|-)/.test(word)).map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
@@ -429,7 +421,6 @@ function DescriptionItemContent(props) {
429
421
  }
430
422
  }
431
423
  DescriptionItemContent.displayName = "DescriptionItemContent";
432
- DescriptionItemContent.whyDidYouRender = true;
433
424
  function Description({
434
425
  faasData,
435
426
  dataSource,
@@ -478,7 +469,6 @@ function Description({
478
469
  );
479
470
  }
480
471
  Description.displayName = "Description";
481
- Description.whyDidYouRender = true;
482
472
  function isOptionsProps(item) {
483
473
  return item && Array.isArray(item.options);
484
474
  }
@@ -770,7 +760,6 @@ function FormItem(props) {
770
760
  return null;
771
761
  }
772
762
  }
773
- FormItem.whyDidYouRender = true;
774
763
  FormItem.useStatus = Form$1.Item.useStatus;
775
764
  function isFormItemProps(item) {
776
765
  return item.id !== void 0;
@@ -893,7 +882,6 @@ function Form(props) {
893
882
  computedProps.footer
894
883
  ] });
895
884
  }
896
- Form.whyDidYouRender = true;
897
885
  Form.useForm = Form$1.useForm;
898
886
  Form.useFormInstance = Form$1.useFormInstance;
899
887
  Form.useWatch = Form$1.useWatch;
@@ -954,7 +942,6 @@ function Link(props) {
954
942
  }
955
943
  );
956
944
  }
957
- Link.whyDidYouRender = true;
958
945
  function PageNotFound() {
959
946
  const { theme: theme2 } = useConfigContext();
960
947
  return /* @__PURE__ */ jsx(Result, { status: "404", title: theme2.common.pageNotFound });
@@ -978,7 +965,6 @@ function Routes(props) {
978
965
  /* @__PURE__ */ jsx(Route, { path: "*", element: props.notFound || /* @__PURE__ */ jsx(PageNotFound, {}) }, "*")
979
966
  ] });
980
967
  }
981
- Routes.whyDidYouRender = true;
982
968
  function processValue(item, value) {
983
969
  const transferred = transferValue(item.type, value);
984
970
  if (transferred === null || Array.isArray(transferred) && transferred.length === 0)
@@ -1562,7 +1548,6 @@ function Tabs(props) {
1562
1548
  }
1563
1549
  );
1564
1550
  }
1565
- Tabs.whyDidYouRender = true;
1566
1551
  function Title(props) {
1567
1552
  const { theme: theme2 } = useConfigContext();
1568
1553
  useEffect(() => {
@@ -1580,10 +1565,9 @@ function Title(props) {
1580
1565
  return cloneElement(props.children, { title: props.title });
1581
1566
  return null;
1582
1567
  }
1583
- Title.whyDidYouRender = true;
1584
1568
  function useThemeToken() {
1585
1569
  const config = theme.useToken();
1586
1570
  return config.token;
1587
1571
  }
1588
1572
 
1589
- export { App, Blank, ConfigContext, ConfigProvider, Description, Drawer, ErrorBoundary, FaasDataWrapper, Form, FormItem, Link, Loading, Modal, PageNotFound, Routes, Table, Tabs, Title, cloneUnionFaasItemElement, idToTitle, transferOptions, transferValue, useApp, useConfigContext, useDrawer, useModal, useThemeToken, withFaasData };
1573
+ export { App, Blank, ConfigContext, ConfigProvider, Description, ErrorBoundary, FaasDataWrapper, Form, FormItem, Link, Loading, PageNotFound, Routes, Table, Tabs, Title, cloneUnionFaasItemElement, idToTitle, transferOptions, transferValue, useApp, useConfigContext, useDrawer, useModal, useThemeToken, withFaasData };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/ant-design",
3
- "version": "v8.0.0-beta.2",
3
+ "version": "v8.0.0-beta.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -30,7 +30,7 @@
30
30
  "dist"
31
31
  ],
32
32
  "peerDependencies": {
33
- "@faasjs/react": ">=v8.0.0-beta.2",
33
+ "@faasjs/react": ">=v8.0.0-beta.3",
34
34
  "antd": "^6.0.0",
35
35
  "@ant-design/icons": "*",
36
36
  "lodash-es": "*",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/lodash-es": "*",
43
- "@faasjs/react": ">=v8.0.0-beta.2",
43
+ "@faasjs/react": ">=v8.0.0-beta.3",
44
44
  "antd": "^6.0.0",
45
45
  "@ant-design/icons": "*",
46
46
  "lodash-es": "*",