diff --git a/.changeset/beige-cougars-add.md b/.changeset/beige-cougars-add.md new file mode 100644 index 000000000000..38e032817467 --- /dev/null +++ b/.changeset/beige-cougars-add.md @@ -0,0 +1,7 @@ +--- +"@refinedev/chakra-ui": patch +--- + +chore(tsdoc): fix broken external documentation link + +In TSDoc description of the `` component, link to the official documentation of Chakra UI was broken and couldn't be opened. This PR fixes the link by updating the URL to the correct one. diff --git a/.changeset/breezy-wolves-nail.md b/.changeset/breezy-wolves-nail.md new file mode 100644 index 000000000000..01bd149d090a --- /dev/null +++ b/.changeset/breezy-wolves-nail.md @@ -0,0 +1,45 @@ +--- +"@refinedev/chakra-ui": minor +"@refinedev/mantine": minor +"@refinedev/antd": minor +"@refinedev/core": minor +"@refinedev/mui": minor +--- + +feat: added new prop called `mutationVariables` to ``. #6431 +From now on, you can pass additional parameters to the `authProvider` methods using the `mutationVariables` prop of the `` component. + +```tsx +import { AuthPage } from "@refinedev/antd"; // or "@refinedev/chakra-ui", "@refinedev/mantine", "@refinedev/mui" + +const MyLoginPage = () => { + return ( + + ); +}; + +// all mutation methods are supported. +const authProvider = { + login: async ({ foo, xyz, ...otherProps }) => { + console.log(foo); // bar + console.log(xyz); // abc + // ... + }, + register: async ({ foo, xyz, ...otherProps }) => { + console.log(foo); // bar + console.log(xyz); // abc + // ... + }, + // ... +}; +``` + +[Resolves #6431](https://github.com/refinedev/refine/issues/6431) diff --git a/.changeset/early-pets-march.md b/.changeset/early-pets-march.md new file mode 100644 index 000000000000..ebae9ea0af46 --- /dev/null +++ b/.changeset/early-pets-march.md @@ -0,0 +1,15 @@ +--- +"@refinedev/antd": minor +--- + +chore: update `@ant-design/icons` and `@ant-design/pro-layout` versions + +Updated previously pinned versions of `@ant-design/icons` from `5.0.1` and `@ant-design/pro-layout` from `7.17.12` to latest versions. This minor update resolves the previous issues with `React@18` types and conflicting type ranges with `@ant-design/pro-layout` package. + +After `@ant-design/icons` version `5.4.0` build issues and type issues are resolved. Following this release `@ant-design/pro-layout` also updated its dependency range to match the latest `@ant-design/icons` version. + +Previously `@ant-design/icons` were pinned to `5.0.1` and recommended to pin in projects as well. After this update, you may also need to update the `@ant-design/icons` version in your project to match the latest version. (A range above `^5.5.1` is required to match `@refinedev/antd`). + +[Resolves #6363](https://github.com/refinedev/refine/issues/6363) +[Resolves #5931 - previously resolved by #5934](https://github.com/refinedev/refine/issues/5931) +[Accompanies #6354 - `@ant-design/pro-layout` also depends on `express` dependency and updated its version in the latest release](https://github.com/refinedev/refine/pull/6354) diff --git a/.changeset/eight-drinks-compare.md b/.changeset/eight-drinks-compare.md new file mode 100644 index 000000000000..2ab46a70e078 --- /dev/null +++ b/.changeset/eight-drinks-compare.md @@ -0,0 +1,9 @@ +--- +"@refinedev/react-hook-form": patch +--- + +fix: onChange handler `autoSave` check in `useForm` + +Autosave can now be explicitly disabled. + +Resolves #6458 diff --git a/.changeset/hip-spies-end.md b/.changeset/hip-spies-end.md new file mode 100644 index 000000000000..70737dd7fce1 --- /dev/null +++ b/.changeset/hip-spies-end.md @@ -0,0 +1,7 @@ +--- +"@refinedev/inferencer": patch +--- + +chore: update `@ant-design/icons` version to match `@refinedev/antd`. + +This is a patch release to update the `@ant-design/icons` version to match the `@refinedev/antd` version. Previously `@ant-design/icons` were pinned to `5.0.1` version to avoid conflicts with `React@18` and `@ant-design/pro-layout` packages. After `5.4.0` these issues are resolved and we can safely update the version to latest range. diff --git a/.changeset/red-cups-decide.md b/.changeset/red-cups-decide.md new file mode 100644 index 000000000000..db0db30e5727 --- /dev/null +++ b/.changeset/red-cups-decide.md @@ -0,0 +1,9 @@ +--- +"@refinedev/core": minor +--- + +feat: exported useInvalidateAuthStore hook from auth hooks + +Now you can invalide the users identity state and force a react query refresh using this hook + +Resolves [#6341](https://github.com/refinedev/refine/issues/6341) diff --git a/.changeset/ten-radios-rush.md b/.changeset/ten-radios-rush.md new file mode 100644 index 000000000000..448e5fe3eb7d --- /dev/null +++ b/.changeset/ten-radios-rush.md @@ -0,0 +1,7 @@ +--- +"@refinedev/core": minor +--- + +feat: Added `MetaContext` to share data between components, providers, and hooks. + +> 🚨 Designed for internal use only. diff --git a/.changeset/three-cameras-hope.md b/.changeset/three-cameras-hope.md new file mode 100644 index 000000000000..991a204b3efd --- /dev/null +++ b/.changeset/three-cameras-hope.md @@ -0,0 +1,17 @@ +--- +"@refinedev/core": patch +--- + +fix: Added more flexibility to the [``](https://refine.dev/docs/routing/components/link/) component's `ref` type by changing it from `HTMLAnchorElement` to `Element`. +From now on, we can pass any type of `ref` to the [``](https://refine.dev/docs/routing/components/link/) component. + +```tsx +// Before fix - Only worked with HTMLAnchorElement +const ref = useRef(null); + +// After fix - Works with any Element type +const ref = useRef(null); +const ref = useRef(null); +``` + +Resolves [#6463](https://github.com/refinedev/refine/issues/6463) diff --git a/.changeset/unlucky-spoons-shout.md b/.changeset/unlucky-spoons-shout.md new file mode 100644 index 000000000000..2b7a48ed93cf --- /dev/null +++ b/.changeset/unlucky-spoons-shout.md @@ -0,0 +1,16 @@ +--- +"@refinedev/core": patch +--- + +fix: Priority logic between `to` and `go` props in [`Link`](https://refine.dev/docs/routing/components/link/) component. +From now on, the `to` prop has priority over the `go` prop. If both are passed, the `to` prop will be used. + +```tsx +// Before fix - go would override to + + +// After fix - to overrides go + +``` + +Resolves [#6461](https://github.com/refinedev/refine/issues/6461) diff --git a/documentation/docs/authentication/components/auth-page/index.md b/documentation/docs/authentication/components/auth-page/index.md index e5863f9211da..5c5d18b610b6 100644 --- a/documentation/docs/authentication/components/auth-page/index.md +++ b/documentation/docs/authentication/components/auth-page/index.md @@ -748,6 +748,41 @@ const MyLoginPage = () => { }; ``` +### mutationVariables + +`mutationVariables` is used to pass additional variables to the `authProvider` methods. + +```tsx +const MyLoginPage = () => { + return ( + + ); +}; + +// all mutation methods are supported. +const authProvider = { + login: async ({ foo, xyz, ...otherProps }) => { + console.log(foo); // bar + console.log(xyz); // abc + // ... + }, + register: async ({ foo, xyz, ...otherProps }) => { + console.log(foo); // bar + console.log(xyz); // abc + // ... + }, + // ... +}; +``` + ## API Reference ### Properties diff --git a/documentation/docs/routing/components/link/index.md b/documentation/docs/routing/components/link/index.md index 10ed841dbfc3..a3c2e024cad2 100644 --- a/documentation/docs/routing/components/link/index.md +++ b/documentation/docs/routing/components/link/index.md @@ -1,5 +1,6 @@ --- title: +source: packages/core/src/components/link/index.tsx --- `` is a component that is used to navigate to different pages in your application. diff --git a/documentation/docs/ui-integrations/ant-design/components/auth-page/index.md b/documentation/docs/ui-integrations/ant-design/components/auth-page/index.md index fe4ee1e5897d..7c1ef69787d7 100644 --- a/documentation/docs/ui-integrations/ant-design/components/auth-page/index.md +++ b/documentation/docs/ui-integrations/ant-design/components/auth-page/index.md @@ -892,6 +892,41 @@ const MyLoginPage = () => { }; ``` +### mutationVariables + +`mutationVariables` is used to pass additional variables to the `authProvider` methods. + +```tsx +const MyLoginPage = () => { + return ( + + ); +}; + +// all mutation methods are supported. +const authProvider = { + login: async ({ foo, xyz, ...otherProps }) => { + console.log(foo); // bar + console.log(xyz); // abc + // ... + }, + register: async ({ foo, xyz, ...otherProps }) => { + console.log(foo); // bar + console.log(xyz); // abc + // ... + }, + // ... +}; +``` + ## FAQ ### How can I remove the default title and logo ? diff --git a/documentation/docs/ui-integrations/chakra-ui/components/auth-page/index.md b/documentation/docs/ui-integrations/chakra-ui/components/auth-page/index.md index 5132fc94cc71..a6ab6061d74a 100644 --- a/documentation/docs/ui-integrations/chakra-ui/components/auth-page/index.md +++ b/documentation/docs/ui-integrations/chakra-ui/components/auth-page/index.md @@ -878,6 +878,41 @@ const MyLoginPage = () => { }; ``` +### mutationVariables + +`mutationVariables` is used to pass additional variables to the `authProvider` methods. + +```tsx +const MyLoginPage = () => { + return ( + + ); +}; + +// all mutation methods are supported. +const authProvider = { + login: async ({ foo, xyz, ...otherProps }) => { + console.log(foo); // bar + console.log(xyz); // abc + // ... + }, + register: async ({ foo, xyz, ...otherProps }) => { + console.log(foo); // bar + console.log(xyz); // abc + // ... + }, + // ... +}; +``` + ## API Reference ### Properties diff --git a/documentation/docs/ui-integrations/mantine/components/auth-page/index.md b/documentation/docs/ui-integrations/mantine/components/auth-page/index.md index 68f5fa020581..d0b361cccbf5 100644 --- a/documentation/docs/ui-integrations/mantine/components/auth-page/index.md +++ b/documentation/docs/ui-integrations/mantine/components/auth-page/index.md @@ -911,6 +911,41 @@ const MyLoginPage = () => { }; ``` +### mutationVariables + +`mutationVariables` is used to pass additional variables to the `authProvider` methods. + +```tsx +const MyLoginPage = () => { + return ( + + ); +}; + +// all mutation methods are supported. +const authProvider = { + login: async ({ foo, xyz, ...otherProps }) => { + console.log(foo); // bar + console.log(xyz); // abc + // ... + }, + register: async ({ foo, xyz, ...otherProps }) => { + console.log(foo); // bar + console.log(xyz); // abc + // ... + }, + // ... +}; +``` + ## API Reference ### Properties diff --git a/documentation/docs/ui-integrations/material-ui/components/auth-page/index.md b/documentation/docs/ui-integrations/material-ui/components/auth-page/index.md index 73ab43d81de1..262887691f0d 100644 --- a/documentation/docs/ui-integrations/material-ui/components/auth-page/index.md +++ b/documentation/docs/ui-integrations/material-ui/components/auth-page/index.md @@ -967,6 +967,43 @@ const MyLoginPage = () => { }; ``` +### mutationVariables + +`mutationVariables` is used to pass additional variables to the `authProvider` methods. + +```tsx +import { AuthPage } from "@refinedev/mui"; + +const MyLoginPage = () => { + return ( + + ); +}; + +// all mutation methods are supported. +const authProvider = { + login: async ({ foo, xyz, ...otherProps }) => { + console.log(foo); // bar + console.log(xyz); // abc + // ... + }, + register: async ({ foo, xyz, ...otherProps }) => { + console.log(foo); // bar + console.log(xyz); // abc + // ... + }, + // ... +}; +``` + ## API Reference ### Properties diff --git a/examples/app-crm-minimal/package.json b/examples/app-crm-minimal/package.json index 0e22aa6b1d4b..721eadb79ed8 100644 --- a/examples/app-crm-minimal/package.json +++ b/examples/app-crm-minimal/package.json @@ -14,7 +14,7 @@ }, "dependencies": { "@ant-design/cssinjs": "^1.17.2", - "@ant-design/icons": "5.0.1", + "@ant-design/icons": "^5.5.1", "@ant-design/plots": "^1.2.5", "@dnd-kit/core": "^6.0.8", "@dnd-kit/modifiers": "^6.0.1", diff --git a/examples/app-crm-minimal/src/components/icon/TextIcon.tsx b/examples/app-crm-minimal/src/components/icon/TextIcon.tsx index 88c7b1df7553..9db41856abd3 100644 --- a/examples/app-crm-minimal/src/components/icon/TextIcon.tsx +++ b/examples/app-crm-minimal/src/components/icon/TextIcon.tsx @@ -28,6 +28,5 @@ export const TextIconSvg = () => ( ); export const TextIcon = (props: Partial) => ( - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 ); diff --git a/examples/app-crm-minimal/src/components/layout/account-settings/index.tsx b/examples/app-crm-minimal/src/components/layout/account-settings/index.tsx index 6a3455bdd1d1..8f65647ca97c 100644 --- a/examples/app-crm-minimal/src/components/layout/account-settings/index.tsx +++ b/examples/app-crm-minimal/src/components/layout/account-settings/index.tsx @@ -86,7 +86,6 @@ export const AccountSettings = ({ opened, setOpened, userId }: Props) => { Account Settings diff --git a/examples/finefoods-antd/src/components/icons/trend.tsx b/examples/finefoods-antd/src/components/icons/trend.tsx index f719cbc140f5..be5b61c09832 100644 --- a/examples/finefoods-antd/src/components/icons/trend.tsx +++ b/examples/finefoods-antd/src/components/icons/trend.tsx @@ -5,7 +5,6 @@ export const TrendUpIcon = () => { const { token } = theme.useToken(); return ( - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 { const { token } = theme.useToken(); return ( - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 = ({ record }) => { }} disabled={record.status.text !== "Pending"} icon={ - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 = ({ record }) => { fontWeight: 500, }} icon={ - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 { description: string; }[] = [ { - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 icon: , title: t("orders.fields.deliveryTime"), description: dayjs(order.events[0]?.date) @@ -39,31 +38,26 @@ export const OrderDeliveryDetails = ({ order }: Props) => { .format("hh:mm A"), }, { - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 icon: , title: t("orders.fields.store"), description: order.store.title, }, { - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 icon: , title: t("orders.fields.courier"), description: order.courier?.name, }, { - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 icon: , title: t("orders.fields.phone"), description: order.courier?.gsm, }, { - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 icon: , title: t("orders.fields.customer"), description: `${order.user.firstName} ${order.user.lastName}`, }, { - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 icon: , title: t("orders.fields.createdAt"), description: order.createdAt, @@ -96,7 +90,6 @@ export const OrderDeliveryDetails = ({ order }: Props) => { title={t(`enum.orderStatuses.${event.status}`)} icon={ getNotFinishedCurrentStep(order, event, index) && ( - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 ) } diff --git a/examples/finefoods-antd/src/components/order/status/index.tsx b/examples/finefoods-antd/src/components/order/status/index.tsx index 471a68cd8add..5a9cd451bbcc 100644 --- a/examples/finefoods-antd/src/components/order/status/index.tsx +++ b/examples/finefoods-antd/src/components/order/status/index.tsx @@ -20,27 +20,22 @@ export const OrderStatus: React.FC = ({ status }) => { switch (status) { case "Pending": color = "orange"; - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 icon = ; break; case "Ready": color = "cyan"; - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 icon = ; break; case "On The Way": color = "blue"; - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 icon = ; break; case "Delivered": color = "green"; - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 icon = ; break; case "Cancelled": color = "red"; - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 icon = ; break; } diff --git a/examples/finefoods-antd/src/components/product/drawer-form/index.tsx b/examples/finefoods-antd/src/components/product/drawer-form/index.tsx index 376c4bea277c..ef7d0437f556 100644 --- a/examples/finefoods-antd/src/components/product/drawer-form/index.tsx +++ b/examples/finefoods-antd/src/components/product/drawer-form/index.tsx @@ -142,7 +142,6 @@ export const ProductDrawerForm = (props: Props) => { alt="Product Image" /> @@ -212,7 +211,6 @@ export const DashboardPage: React.FC = () => { { { { padding: 0, }} icon={ - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 { padding: 0, }} icon={ - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 { padding: "1px 0px 0px 0px", }} icon={ - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 { padding: 0, }} icon={ - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 { )} filterIcon={(filtered) => ( - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 { dataIndex={["store", "title"]} title={t("orders.fields.store")} filterIcon={(filtered) => ( - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 { dataIndex={["user", "fullName"]} title={t("orders.fields.customer")} filterIcon={(filtered) => ( - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 { return ( <> - {/* @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 */} }>{t("orders.orders")} @@ -78,7 +77,6 @@ export const OrderShow = () => { disabled={!canRejectOrder} key="reject" danger - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 icon={} onClick={() => handleMutate({ diff --git a/examples/finefoods-antd/src/pages/products/list.tsx b/examples/finefoods-antd/src/pages/products/list.tsx index eb1cf7bb184f..da0b18fa52b0 100644 --- a/examples/finefoods-antd/src/pages/products/list.tsx +++ b/examples/finefoods-antd/src/pages/products/list.tsx @@ -41,13 +41,11 @@ export const ProductList = ({ children }: PropsWithChildren) => { { label: "", value: "table", - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 icon: , }, { label: "", value: "card", - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 icon: , }, ]} diff --git a/examples/finefoods-antd/src/pages/stores/create.tsx b/examples/finefoods-antd/src/pages/stores/create.tsx index ed2384b5678a..5441250f715d 100644 --- a/examples/finefoods-antd/src/pages/stores/create.tsx +++ b/examples/finefoods-antd/src/pages/stores/create.tsx @@ -10,7 +10,6 @@ export const StoreCreate = () => { return ( <> - {/* @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 */} }>{t("stores.stores")} diff --git a/examples/finefoods-antd/src/pages/stores/edit.tsx b/examples/finefoods-antd/src/pages/stores/edit.tsx index cc8f73f2cf0f..a388e0245d8b 100644 --- a/examples/finefoods-antd/src/pages/stores/edit.tsx +++ b/examples/finefoods-antd/src/pages/stores/edit.tsx @@ -11,7 +11,6 @@ export const StoreEdit = () => { return ( <> - {/* @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 */} }>{t("stores.stores")} diff --git a/examples/finefoods-antd/src/pages/stores/list.tsx b/examples/finefoods-antd/src/pages/stores/list.tsx index 973647d6bc3b..0c7d602841c3 100644 --- a/examples/finefoods-antd/src/pages/stores/list.tsx +++ b/examples/finefoods-antd/src/pages/stores/list.tsx @@ -34,13 +34,11 @@ export const StoreList = () => { { label: "", value: "table", - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 icon: , }, { label: "", value: "map", - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 icon: , }, ]} diff --git a/examples/i18n-nextjs/package.json b/examples/i18n-nextjs/package.json index d1d291e225e8..e808ec229848 100644 --- a/examples/i18n-nextjs/package.json +++ b/examples/i18n-nextjs/package.json @@ -9,7 +9,7 @@ "start": "refine start" }, "dependencies": { - "@ant-design/icons": "5.0.1", + "@ant-design/icons": "^5.5.1", "@ant-design/nextjs-registry": "^1.0.0", "@refinedev/antd": "^5.43.1", "@refinedev/cli": "^2.16.39", diff --git a/examples/i18n-nextjs/src/components/header/index.tsx b/examples/i18n-nextjs/src/components/header/index.tsx index 6b8c719705ec..023ecc55e7cf 100644 --- a/examples/i18n-nextjs/src/components/header/index.tsx +++ b/examples/i18n-nextjs/src/components/header/index.tsx @@ -78,7 +78,6 @@ export const Header: React.FC = ({ {currentLocale === "en" ? "English" : "German"} - {/* @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 */} diff --git a/examples/i18n-react/package.json b/examples/i18n-react/package.json index 7e5af0f49ac1..b8716942fd3a 100644 --- a/examples/i18n-react/package.json +++ b/examples/i18n-react/package.json @@ -22,7 +22,7 @@ ] }, "dependencies": { - "@ant-design/icons": "5.0.1", + "@ant-design/icons": "^5.5.1", "@refinedev/antd": "^5.43.1", "@refinedev/cli": "^2.16.39", "@refinedev/core": "^4.55.0", diff --git a/examples/i18n-react/src/components/header/index.tsx b/examples/i18n-react/src/components/header/index.tsx index 2361bebc1b99..fd2871f6d255 100644 --- a/examples/i18n-react/src/components/header/index.tsx +++ b/examples/i18n-react/src/components/header/index.tsx @@ -52,7 +52,6 @@ export const Header: React.FC = () => { {currentLocale === "en" ? "English" : "German"} - {/* @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 */} diff --git a/examples/inferencer-antd/package.json b/examples/inferencer-antd/package.json index 71d14782bd29..740d446a1539 100644 --- a/examples/inferencer-antd/package.json +++ b/examples/inferencer-antd/package.json @@ -22,7 +22,7 @@ ] }, "dependencies": { - "@ant-design/icons": "5.0.1", + "@ant-design/icons": "^5.5.1", "@refinedev/antd": "^5.43.1", "@refinedev/cli": "^2.16.39", "@refinedev/core": "^4.55.0", diff --git a/examples/inferencer-antd/src/components/header/index.tsx b/examples/inferencer-antd/src/components/header/index.tsx index cdd1ad051002..c46534140941 100644 --- a/examples/inferencer-antd/src/components/header/index.tsx +++ b/examples/inferencer-antd/src/components/header/index.tsx @@ -78,7 +78,6 @@ export const Header: React.FC = ({ {currentLocale === "en" ? "English" : "German"} - {/* @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 */} diff --git a/examples/inferencer-graphql-hasura/package.json b/examples/inferencer-graphql-hasura/package.json index 74b59c5800b9..84895eba648c 100644 --- a/examples/inferencer-graphql-hasura/package.json +++ b/examples/inferencer-graphql-hasura/package.json @@ -22,7 +22,7 @@ ] }, "dependencies": { - "@ant-design/icons": "5.0.1", + "@ant-design/icons": "^5.5.1", "@refinedev/antd": "^5.43.1", "@refinedev/cli": "^2.16.39", "@refinedev/core": "^4.55.0", diff --git a/examples/invoicer/src/components/form/form-item-editable-input-text/index.tsx b/examples/invoicer/src/components/form/form-item-editable-input-text/index.tsx index ef7ca8079751..d36571eb0fba 100644 --- a/examples/invoicer/src/components/form/form-item-editable-input-text/index.tsx +++ b/examples/invoicer/src/components/form/form-item-editable-input-text/index.tsx @@ -105,7 +105,6 @@ export const FormItemEditableInputText = ({ /> )} - {/* @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 */} {disabled && diff --git a/examples/refine-week-invoice-generator/package.json b/examples/refine-week-invoice-generator/package.json index 64da7567d5ca..926e0a47e0e4 100644 --- a/examples/refine-week-invoice-generator/package.json +++ b/examples/refine-week-invoice-generator/package.json @@ -22,7 +22,7 @@ ] }, "dependencies": { - "@ant-design/icons": "5.0.1", + "@ant-design/icons": "^5.5.1", "@react-pdf/renderer": "^3.1.8", "@refinedev/antd": "^5.43.1", "@refinedev/cli": "^2.16.39", diff --git a/examples/refine-week-invoice-generator/src/App.tsx b/examples/refine-week-invoice-generator/src/App.tsx index ffac0e0f5f90..6ae6a8ad5133 100644 --- a/examples/refine-week-invoice-generator/src/App.tsx +++ b/examples/refine-week-invoice-generator/src/App.tsx @@ -49,26 +49,22 @@ function App() { { name: "companies", list: "/companies", - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 icon: , }, { name: "clients", list: "/clients", - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 icon: , }, { name: "contacts", list: "/contacts", edit: "/contacts/:id/edit", - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 icon: , }, { name: "missions", list: "/missions", - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 icon: , }, { @@ -76,7 +72,6 @@ function App() { list: "/invoices", create: "/invoices/create", edit: "invoices/:id/edit", - // @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 icon: , }, ]} diff --git a/examples/refine-week-invoice-generator/src/pages/invoices/list.tsx b/examples/refine-week-invoice-generator/src/pages/invoices/list.tsx index d0822ba1fd70..7616e84f5f8f 100755 --- a/examples/refine-week-invoice-generator/src/pages/invoices/list.tsx +++ b/examples/refine-week-invoice-generator/src/pages/invoices/list.tsx @@ -96,7 +96,6 @@ export const InvoiceList: React.FC = () => { {record.company && ( @@ -72,13 +71,11 @@ export const ReadyPage: React.FC = () => { target="_blank" rel="noreferrer" > - {/* @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 */} - {/* @ts-expect-error Ant Design Icon's v5.0.1 has an issue with @types/react@^18.2.66 */} diff --git a/packages/antd/src/components/table/components/filterDropdown/index.tsx b/packages/antd/src/components/table/components/filterDropdown/index.tsx index 75e30539c502..33f63db0fe0e 100644 --- a/packages/antd/src/components/table/components/filterDropdown/index.tsx +++ b/packages/antd/src/components/table/components/filterDropdown/index.tsx @@ -94,7 +94,6 @@ export const FilterDropdown: React.FC = (props) => {
{childrenWithProps}