153 KiB
@refinedev/antd
5.37.2
Patch Changes
- #5465
00e00cbd98Thanks @aliemir! - Fixed the type issue betweenremark-gfmandreact-markdown. #5463
5.37.1
Patch Changes
-
#5425
190af9fce2Thanks @aliemir! - Updated@refinedev/corepeer dependencies to latest (^4.46.1) -
Updated dependencies [
190af9fce2]:
5.37.0
Minor Changes
-
#5307
f8e407f850Thanks @jackprogramsjp! - feat: addedhideFormprops forLoginPageandRegisterPageforAuthPagefeature.Now with the
hideFormprops feature, you can be able to hide the forms (like email/password) to only show the OAuth providers. This avoids having to make your own entire AuthPage.
Patch Changes
-
#5207
30a2834a81Thanks @mjomble! - chore: updated deprecated use of antd Progress -
#5269
a23a0945d3Thanks @BatuhanW! - feat: add "autoComplete" field for Login pages. -
#5325
7ff54b2060Thanks @alicanerdurmaz! - fix:<AuthPage />styling issues on mobile screens.chore: new tests are added to
<AuthPage />.
5.36.19
Patch Changes
- #5259
eac3df87ffbThanks @aliemir! - Updated<AutoSaveIndicator />component to extend the<AutoSaveIndicator />from@refinedev/corewith custom elements and render appropriate element based on the state.
5.36.18
Patch Changes
-
#5199
2b8d658a17aThanks @aliemir! - NowuseSelect,useRadioGroupanduseCheckboxGrouphooks accept 4th generic typeTOptionwhich allows you to change the type of options. By defaultTOptionwill be equal toBaseOptiontype which is{ label: any; value: any; }. If you want to change the type of options, you can do it like this:import { useSelect } from "@refinedev/antd"; import { HttpError } from "@refinedev/core"; type MyData = { id: number; title: string; description: string; category: { id: string }; }; type Option = { label: MyData["title"]; value: MyData["id"] }; // equals to { label: string; value: number; } useSelect<MyData, HttpError, MyData, Option>({ resource: "posts", }); -
#5199
2b8d658a17aThanks @aliemir! - Updated return types ofuseSelect,useRadioGroupanduseCheckboxGrouphooks to only include properties that actually being returned from the hook. Previously, the return types included all properties of the respective components, which was not correct. -
#5201
760cfbaaa2aThanks @aliemir! - Handle nested server side validation errors properly inuseForm
5.36.17
Patch Changes
-
#5199
2b8d658a17aThanks @aliemir! - NowuseSelect,useRadioGroupanduseCheckboxGrouphooks accept 4th generic typeTOptionwhich allows you to change the type of options. By defaultTOptionwill be equal toBaseOptiontype which is{ label: any; value: any; }. If you want to change the type of options, you can do it like this:import { useSelect } from "@refinedev/antd"; import { HttpError } from "@refinedev/core"; type MyData = { id: number; title: string; description: string; category: { id: string }; }; type Option = { label: MyData["title"]; value: MyData["id"] }; // equals to { label: string; value: number; } useSelect<MyData, HttpError, MyData, Option>({ resource: "posts", }); -
#5199
2b8d658a17aThanks @aliemir! - Updated return types ofuseSelect,useRadioGroupanduseCheckboxGrouphooks to only include properties that actually being returned from the hook. Previously, the return types included all properties of the respective components, which was not correct. -
#5201
760cfbaaa2aThanks @aliemir! - Handle nested server side validation errors properly inuseForm
5.36.16
Patch Changes
-
#5189
34b5741289fThanks @BatuhanW! - chore: bump @ant-design/pro-layout dependency tov7.17.12.
5.36.15
Patch Changes
-
#5189
34b5741289fThanks @BatuhanW! - chore: bump @ant-design/pro-layout dependency tov7.17.12.
5.36.14
Patch Changes
- #5134
e4769b23171Thanks @alicanerdurmaz! - fixed: antd default<ThemedSiderV2 />is not collapsing.
5.36.13
Patch Changes
- #5134
e4769b23171Thanks @alicanerdurmaz! - fixed: antd default<ThemedSiderV2 />is not collapsing.
5.36.12
Patch Changes
- #5114
00a9252c5deThanks @alicanerdurmaz! - fixed:<ThemedTitleV2 />border-bottom removed. fixed:<ThemedLayoutV2 />glitches on first render.
5.36.11
Patch Changes
- #5114
00a9252c5deThanks @alicanerdurmaz! - fixed:<ThemedTitleV2 />border-bottom removed. fixed:<ThemedLayoutV2 />glitches on first render.
5.36.10
Patch Changes
- #5098
672f7916af7Thanks @alicanerdurmaz! - fix:undoableNotificationdoes not work when usinguseNotificationProviderdue to a differentnotificationinstance.
5.36.9
Patch Changes
- #5098
672f7916af7Thanks @alicanerdurmaz! - fix:undoableNotificationdoes not work when usinguseNotificationProviderdue to a differentnotificationinstance.
5.36.8
Patch Changes
-
#4945
b838412f0d0Thanks @MahirMahdi! - fix: antd notificationProvider issueAntd notification component could not access theme context, now it's fixed.
This release provides an alternative to exported
notificationProvidervalue from typeNotificationProviderto() => NotificationProvider. If you previously had customizations applied to thenotificationProviderobject, you may need to update your code like the following:- import { notificationProvider } from "@refinedev/antd"; + import { useNotificationProvider } from "@refinedev/antd"; + import { App as AntdApp } from "antd"; - const myNotificationProvider = { - ...notificationProvider, - open: (...args) => { - // do some operation here - notificationProvider.open(...args); - }, - } + const myNotificationProvider = () => { + const notificationProvider = useNotificationProvider(); + return { + ...notificationProvider, + open: (...args) => { + // do some operation here + notificationProvider.open(...args); + }, + } + } } const App = () => { return ( + <AntdApp> <Refine /* ... */ + notificationProvider={myNotificationProvider} > /* ... */ </Refine> + </AntdApp> ); }
5.36.7
Patch Changes
-
#4945
b838412f0d0Thanks @MahirMahdi! - fix: antd notificationProvider issueAntd notification component could not access theme context, now it's fixed.
This release provides an alternative to exported
notificationProvidervalue from typeNotificationProviderto() => NotificationProvider. If you previously had customizations applied to thenotificationProviderobject, you may need to update your code like the following:- import { notificationProvider } from "@refinedev/antd"; + import { useNotificationProvider } from "@refinedev/antd"; + import { App as AntdApp } from "antd"; - const myNotificationProvider = { - ...notificationProvider, - open: (...args) => { - // do some operation here - notificationProvider.open(...args); - }, - } + const myNotificationProvider = () => { + const notificationProvider = useNotificationProvider(); + return { + ...notificationProvider, + open: (...args) => { + // do some operation here + notificationProvider.open(...args); + }, + } + } } const App = () => { return ( + <AntdApp> <Refine /* ... */ + notificationProvider={myNotificationProvider} > /* ... */ </Refine> + </AntdApp> ); }
5.36.6
Patch Changes
-
#5026
a605e4cd318Thanks @alicanerdurmaz! - feat: deprecated<ThemedLayout />and<Layout />components removed fromswizzle. From now on, users can swizzle<ThemedLayoutV2 />component instead.feat: swizzled
<ThemedLayoutV2 />component destination changed tosrc/components/layout/fromsrc/components/themedLayout.
5.36.5
Patch Changes
-
#5026
a605e4cd318Thanks @alicanerdurmaz! - feat: deprecated<ThemedLayout />and<Layout />components removed fromswizzle. From now on, users can swizzle<ThemedLayoutV2 />component instead.feat: swizzled
<ThemedLayoutV2 />component destination changed tosrc/components/layout/fromsrc/components/themedLayout.
5.36.4
Patch Changes
-
#5022
80513a4e42fThanks @BatuhanW! - chore: update README.md- fix grammar errors.
- make all README.md files consistent.
- add code example code snippets.
5.36.3
Patch Changes
-
#5022
80513a4e42fThanks @BatuhanW! - chore: update README.md- fix grammar errors.
- make all README.md files consistent.
- add code example code snippets.
5.36.2
Patch Changes
- #4964
85b1ac0db5fThanks @BatuhanW! - chore: update @refinedev/core peer dependency versions.
5.36.1
Patch Changes
- #4964
85b1ac0db5fThanks @BatuhanW! - chore: update @refinedev/core peer dependency versions.
5.36.0
Minor Changes
-
#4914
91a4d0da9f1Thanks @yildirayunlu! - feat:optimisticUpdateMapprop added touseFormhook. This prop allows you to update the data in the cache.useForm({ mutationMode: "optimistic", optimisticUpdateMap: { list: true, many: true, detail: (previous, values, id) => { if (!previous) { return null; } const data = { id, ...previous.data, ...values, foo: "bar", }; return { ...previous, data, }; }, }, });
Patch Changes
-
#4903
e327cadc011Thanks @yildirayunlu! - fix: when usinguseForm,autoSaveparameters not passed to@refinedev/core/useFormhook. From now on, you can useautoSaveparameters inuseFormhook.feat: add
invalidateOnUnmountprop touseFormhook. feat: addinvalidateOnUnmountandinvalidateOnCloseprop touseModalFormanduseDrawerFormhooks. From now on, you can use the use this props to invalidate queries upon unmount or close.
5.35.0
Minor Changes
-
#4914
91a4d0da9f1Thanks @yildirayunlu! - feat:optimisticUpdateMapprop added touseFormhook. This prop allows you to update the data in the cache.useForm({ mutationMode: "optimistic", optimisticUpdateMap: { list: true, many: true, detail: (previous, values, id) => { if (!previous) { return null; } const data = { id, ...previous.data, ...values, foo: "bar", }; return { ...previous, data, }; }, }, });
Patch Changes
-
#4903
e327cadc011Thanks @yildirayunlu! - fix: when usinguseForm,autoSaveparameters not passed to@refinedev/core/useFormhook. From now on, you can useautoSaveparameters inuseFormhook.feat: add
invalidateOnUnmountprop touseFormhook. feat: addinvalidateOnUnmountandinvalidateOnCloseprop touseModalFormanduseDrawerFormhooks. From now on, you can use the use this props to invalidate queries upon unmount or close.
5.34.2
Patch Changes
- #4948
8e5efffbb23Thanks @aliemir! - Keep the hook and component names in builds for better debugging.
5.34.1
Patch Changes
- #4948
8e5efffbb23Thanks @aliemir! - Keep the hook and component names in builds for better debugging.
5.34.0
Minor Changes
- #4775
3052fb22449Thanks @alicanerdurmaz! - fixed:<RefreshButton />does not refresh content #4618. From now,<RefreshButton />usesuseInvalidatehook to refresh data instead ofuseOne.
Patch Changes
-
#4772
c9cc4398e99Thanks @alicanerdurmaz! - fixed: antduseModalFormanduseDrawerFormsends request twice whensyncWithLocationis true -
#4778
82909db10b4Thanks @salihozdemir! - fix: fixed thegoToStepofuseStepsFormhook return type -
Updated dependencies [
3052fb22449]:
5.33.0
Minor Changes
- #4775
3052fb22449Thanks @alicanerdurmaz! - fixed:<RefreshButton />does not refresh content #4618. From now,<RefreshButton />usesuseInvalidatehook to refresh data instead ofuseOne.
Patch Changes
-
#4772
c9cc4398e99Thanks @alicanerdurmaz! - fixed: antduseModalFormanduseDrawerFormsends request twice whensyncWithLocationis true -
#4778
82909db10b4Thanks @salihozdemir! - fix: fixed thegoToStepofuseStepsFormhook return type -
Updated dependencies [
3052fb22449]:
5.32.0
Minor Changes
- #4741
026ccf34356Thanks @aliemir! - AddedsideEffectstopackage.jsonto help bundlers tree-shake unused code.
Patch Changes
- #4741
026ccf34356Thanks @aliemir! - UpdatedDateFieldto setdayjsextension in component instead of a global side effect.
5.31.0
Minor Changes
- #4741
026ccf34356Thanks @aliemir! - AddedsideEffectstopackage.jsonto help bundlers tree-shake unused code.
Patch Changes
- #4741
026ccf34356Thanks @aliemir! - UpdatedDateFieldto setdayjsextension in component instead of a global side effect.
5.30.0
Minor Changes
-
#4591
f8891ead2bdThanks @yildirayunlu! - feat:autoSavefeature forEdit. useForm, useDrawerForm, useModalForm, useStepsForm hooks now acceptautoSaveobject.enabledis a boolean value anddebounceis a number value in milliseconds.debounceis optional and default value is1000.const { autoSaveProps } = useForm({ autoSave: { enabled: true, debounce: 2000, // not required, default is 1000 }, }); return ( <Edit saveButtonProps={saveButtonProps} // pass autoSaveProps to Edit component autoSaveProps={autoSaveProps} > // form fields </Edit> );feat: Add
<AutoSaveIndicator>component. It comes automatically whenautoSavePropsis given to theEditpage. However, this component can be used to position it in a different place.import { AutoSaveIndicator } from "@refinedev/antd"; const { autoSaveProps } = useForm({ autoSave: { enabled: true, debounce: 2000, // not required, default is 1000 }, }); return ( <div> <AutoSaveIndicator {...autoSaveProps}> </div> ); -
#4652
96af6d25b7aThanks @alicanerdurmaz! - feat: when thedataProviderreturns rejected promise witherrorsfield,useFormwill automatically update the error state with the rejectederrorsfield.Refer to the server-side form validation documentation for more information. →
Patch Changes
- Updated dependencies [
f8891ead2bd]:
5.29.0
Minor Changes
-
#4591
f8891ead2bdThanks @yildirayunlu! - feat:autoSavefeature forEdit. useForm, useDrawerForm, useModalForm, useStepsForm hooks now acceptautoSaveobject.enabledis a boolean value anddebounceis a number value in milliseconds.debounceis optional and default value is1000.const { autoSaveProps } = useForm({ autoSave: { enabled: true, debounce: 2000, // not required, default is 1000 }, }); return ( <Edit saveButtonProps={saveButtonProps} // pass autoSaveProps to Edit component autoSaveProps={autoSaveProps} > // form fields </Edit> );feat: Add
<AutoSaveIndicator>component. It comes automatically whenautoSavePropsis given to theEditpage. However, this component can be used to position it in a different place.import { AutoSaveIndicator } from "@refinedev/antd"; const { autoSaveProps } = useForm({ autoSave: { enabled: true, debounce: 2000, // not required, default is 1000 }, }); return ( <div> <AutoSaveIndicator {...autoSaveProps}> </div> ); -
#4652
96af6d25b7aThanks @alicanerdurmaz! - feat: when thedataProviderreturns rejected promise witherrorsfield,useFormwill automatically update the error state with the rejectederrorsfield.Refer to the server-side form validation documentation for more information. →
Patch Changes
- Updated dependencies [
f8891ead2bd]:
5.28.0
Minor Changes
-
#4502
c7872ca621fThanks @Mr0nline! - feat: ability to tweak active sider items navigationVisiting active sider items triggers page reloads due to them being links. We can now provide activeItemDisabled prop to disable such reloads.
Patch Changes
-
#4607
fed630dcc3eThanks @alicanerdurmaz! - test: added tests for<ThemedSiderV2/>. -
#4609
48aaf739352Thanks @salihozdemir! - fix:iconandlabelalignment inBreadcrumbcomponentFixed the issue that the
iconandlabelto be misaligned in theBreadcrumbcomponent. -
Updated dependencies [
c7872ca621f]:
5.27.0
Minor Changes
-
#4502
c7872ca621fThanks @Mr0nline! - feat: ability to tweak active sider items navigationVisiting active sider items triggers page reloads due to them being links. We can now provide activeItemDisabled prop to disable such reloads.
Patch Changes
-
#4607
fed630dcc3eThanks @alicanerdurmaz! - test: added tests for<ThemedSiderV2/>. -
#4609
48aaf739352Thanks @salihozdemir! - fix:iconandlabelalignment inBreadcrumbcomponentFixed the issue that the
iconandlabelto be misaligned in theBreadcrumbcomponent. -
Updated dependencies [
c7872ca621f]:
5.26.0
Minor Changes
-
#4523
18d446b1069Thanks @yildirayunlu! - feat: implement following hooks haveuseLoadingOvertimehook
Patch Changes
-
#4527
ceadcd29fc9Thanks @salihozdemir! - fix: prioritization of forgottenidentifierIf
identifieris provided, it will be used instead ofname.import { DeleteButton } from "@refinedev/antd"; <DeleteButton resource="identifier-value" recordItemId="123" />;fix: use translate keys with
identifierPreviously, the translate keys were generated using resource
name. This caused issues when you had multipleresourceusage with the same name. Now thetranslatekeys are generated usingidentifierif it's present.
5.25.0
Minor Changes
-
#4523
18d446b1069Thanks @yildirayunlu! - feat: implement following hooks haveuseLoadingOvertimehook
Patch Changes
-
#4527
ceadcd29fc9Thanks @salihozdemir! - fix: prioritization of forgottenidentifierIf
identifieris provided, it will be used instead ofname.import { DeleteButton } from "@refinedev/antd"; <DeleteButton resource="identifier-value" recordItemId="123" />;fix: use translate keys with
identifierPreviously, the translate keys were generated using resource
name. This caused issues when you had multipleresourceusage with the same name. Now thetranslatekeys are generated usingidentifierif it's present.
5.24.0
Minor Changes
-
#4449
cc84d61bc5cThanks @BatuhanW! - feat: updated Create, List, Show, Edit, Delete, Clone buttons to respect new globalaccessControlProviderconfiguration.fix: Delete button's text wasn't rendered as
reasonfield ofaccessControlProvider.Given the following
canmethod:const accessControlProvider: IAccessControlContext = { can: async (): Promise<CanReturnType> => { return { can: false, reason: "Access Denied!" }; }, };If user is unauthorized,
Deletebutton's text should beAccess Denied!instead of defaultDelete.This is the default behaviour for Create, List, Show, Edit, Delete, Clone buttons already.
5.23.0
Minor Changes
-
#4449
cc84d61bc5cThanks @BatuhanW! - feat: updated Create, List, Show, Edit, Delete, Clone buttons to respect new globalaccessControlProviderconfiguration.fix: Delete button's text wasn't rendered as
reasonfield ofaccessControlProvider.Given the following
canmethod:const accessControlProvider: IAccessControlContext = { can: async (): Promise<CanReturnType> => { return { can: false, reason: "Access Denied!" }; }, };If user is unauthorized,
Deletebutton's text should beAccess Denied!instead of defaultDelete.This is the default behaviour for Create, List, Show, Edit, Delete, Clone buttons already.
5.22.0
Minor Changes
-
#4430
cf07d59587fThanks @aliemir! - Updated theuseForm,useModalForm,useDrawerFormanduseStepsFormto acceptqueryMetaandmutationMetaproperties of theuseFormhook of@refinedev/core. These properties are used to pass specific meta values to the query or mutation. This is useful when you have overlapping values in your data provider'sgetOneandupdatemethods. For example, you may want to change themethodof the mutation toPATCHbut if you pass it in themetaproperty, you'll end up changing the method of thegetOnerequest as well.queryMetaandmutationMetahas precedence overmeta. This means that if you have the same property inqueryMetaandmeta, the value inqueryMetawill be used.Usage
import { useForm } from "@refinedev/core"; export const MyEditPage = () => { const form = useForm({ // this is passed both to the mutation and the query requests meta: { myValue: "myValue", }, // this is only passed to the query request queryMeta: { propertyOnlyWorksForQuery: "propertyOnlyWorksForQuery", }, // this is only passed to the mutation request mutationMeta: { propertyOnlyWorksForMutation: "propertyOnlyWorksForMutation", }, }); };
Patch Changes
-
#4429
63daabcb703Thanks @aliemir! - Fixed the issue offormLoadingproperty in return values ofuseStepsFormhook which was not being toggled correctly when the form was submitted or the form data was being fetched. -
#4431
c29a3618cf6Thanks @aliemir! - Updated the TSDoc comments to fix the broken links in the documentation.
5.21.0
Minor Changes
-
#4430
cf07d59587fThanks @aliemir! - Updated theuseForm,useModalForm,useDrawerFormanduseStepsFormto acceptqueryMetaandmutationMetaproperties of theuseFormhook of@refinedev/core. These properties are used to pass specific meta values to the query or mutation. This is useful when you have overlapping values in your data provider'sgetOneandupdatemethods. For example, you may want to change themethodof the mutation toPATCHbut if you pass it in themetaproperty, you'll end up changing the method of thegetOnerequest as well.queryMetaandmutationMetahas precedence overmeta. This means that if you have the same property inqueryMetaandmeta, the value inqueryMetawill be used.Usage
import { useForm } from "@refinedev/core"; export const MyEditPage = () => { const form = useForm({ // this is passed both to the mutation and the query requests meta: { myValue: "myValue", }, // this is only passed to the query request queryMeta: { propertyOnlyWorksForQuery: "propertyOnlyWorksForQuery", }, // this is only passed to the mutation request mutationMeta: { propertyOnlyWorksForMutation: "propertyOnlyWorksForMutation", }, }); };
Patch Changes
-
#4429
63daabcb703Thanks @aliemir! - Fixed the issue offormLoadingproperty in return values ofuseStepsFormhook which was not being toggled correctly when the form was submitted or the form data was being fetched. -
#4431
c29a3618cf6Thanks @aliemir! - Updated the TSDoc comments to fix the broken links in the documentation.
5.20.0
Minor Changes
-
#4404
f67967e8c87Thanks @salihozdemir! - refactor: fix name and state inconsistency in<ThemedLayoutV2>useSiderVisibleis deprecated, instead we created a new hookuseThemedLayoutContextfor it.useThemedLayoutContextsimilar touseSiderVisiblebut it returns more meaningful state names. However,useSiderVisibleis still available for backward compatibility.Updated
SiderandHamburgerMenucomponents usinguseThemedLayoutContext.import { useThemedLayoutContext } from "@refinedev/antd"; const { siderCollapsed, setSiderCollapsed, mobileSiderOpen, setMobileSiderOpen, } = useThemedLayoutContext();
5.19.0
Minor Changes
-
#4404
f67967e8c87Thanks @salihozdemir! - refactor: fix name and state inconsistency in<ThemedLayoutV2>useSiderVisibleis deprecated, instead we created a new hookuseThemedLayoutContextfor it.useThemedLayoutContextsimilar touseSiderVisiblebut it returns more meaningful state names. However,useSiderVisibleis still available for backward compatibility.Updated
SiderandHamburgerMenucomponents usinguseThemedLayoutContext.import { useThemedLayoutContext } from "@refinedev/antd"; const { siderCollapsed, setSiderCollapsed, mobileSiderOpen, setMobileSiderOpen, } = useThemedLayoutContext();
5.18.2
Patch Changes
- #4316
4690c627e05Thanks @yildirayunlu! - fix: fixedclassNamefor easier selection of all buttons and titles of CRUD components
5.18.1
Patch Changes
- #4316
4690c627e05Thanks @yildirayunlu! - fix: fixedclassNamefor easier selection of all buttons and titles of CRUD components
5.18.0
Minor Changes
-
#4303
0c569f42b4eThanks @alicanerdurmaz! - feat: added default button props into the renderer functionsheaderButtonsandfooterButtonsin CRUD components. Now, customization of the header and footer buttons can be achieved without losing the default functionality.import { DeleteButton, EditButton, ListButton, RefreshButton, Show, } from "@refinedev/antd"; const PostShow = () => { return ( <Show headerButtons={({ deleteButtonProps, editButtonProps, listButtonProps, refreshButtonProps, }) => { return ( <> {/* custom components */} {listButtonProps && ( <ListButton {...listButtonProps} meta={{ foo: "bar" }} /> )} {editButtonProps && ( <EditButton {...editButtonProps} meta={{ foo: "bar" }} /> )} {deleteButtonProps && ( <DeleteButton {...deleteButtonProps} meta={{ foo: "bar" }} /> )} <RefreshButton {...refreshButtonProps} meta={{ foo: "bar" }} /> </> ); }} > {/* ... */} </Show> ); }; -
#4306
e6eb4dea627Thanks @yildirayunlu! - feat:syncWithLocation.syncIddefault totrueforuseDrawerFormanduseModalForm.
Patch Changes
-
#4312
9a5f79186c1Thanks @yildirayunlu! - feat: addedclassNamefor easier selection of all buttons and titles of CRUD components -
Updated dependencies [
0c569f42b4e,9a5f79186c1]:
5.17.0
Minor Changes
-
#4303
0c569f42b4eThanks @alicanerdurmaz! - feat: added default button props into the renderer functionsheaderButtonsandfooterButtonsin CRUD components. Now, customization of the header and footer buttons can be achieved without losing the default functionality.import { DeleteButton, EditButton, ListButton, RefreshButton, Show, } from "@refinedev/antd"; const PostShow = () => { return ( <Show headerButtons={({ deleteButtonProps, editButtonProps, listButtonProps, refreshButtonProps, }) => { return ( <> {/* custom components */} {listButtonProps && ( <ListButton {...listButtonProps} meta={{ foo: "bar" }} /> )} {editButtonProps && ( <EditButton {...editButtonProps} meta={{ foo: "bar" }} /> )} {deleteButtonProps && ( <DeleteButton {...deleteButtonProps} meta={{ foo: "bar" }} /> )} <RefreshButton {...refreshButtonProps} meta={{ foo: "bar" }} /> </> ); }} > {/* ... */} </Show> ); }; -
#4306
e6eb4dea627Thanks @yildirayunlu! - feat:syncWithLocation.syncIddefault totrueforuseDrawerFormanduseModalForm.
Patch Changes
-
#4312
9a5f79186c1Thanks @yildirayunlu! - feat: addedclassNamefor easier selection of all buttons and titles of CRUD components -
Updated dependencies [
0c569f42b4e,9a5f79186c1]:
5.16.2
Patch Changes
-
#4295
7f24a6a2b14Thanks @salihozdemir! - chore: bump to latest version of@refinedev/ui-types -
Updated dependencies [
dc62abc890f]:
5.16.1
Patch Changes
- #4295
7f24a6a2b14Thanks @salihozdemir! - chore: bump to latest version of@refinedev/ui-types
5.16.0
Minor Changes
-
#4272
420d2442741Thanks @salihozdemir! - feat: added thefixedprop to the<ThemedSiderV2/>to allow the sider to be fixedThe prop is optional and defaults to
false. You can see the usage as follows:import { Refine } from "@refinedev/core"; import { ThemedLayoutV2, ThemedSiderV2 } from "@refinedev/antd"; const App: React.FC = () => { return ( <Refine ... > <ThemedLayoutV2 Sider={() => <ThemedSiderV2 fixed />}> {/* ... */} </ThemedLayoutV2> </Refine> ); }; -
#4278
b14f2ad8a70Thanks @alicanerdurmaz! - feat: addedautoSubmitCloseprop touseEditableTable. Now you can choose whether to close the table's row after submitting the form or not.const editableTable = useEditableTable({ autoSubmitClose: false, });
Patch Changes
-
#4267
5e128c76c16Thanks @yildirayunlu! - fix:onFinishprop override onuseDrawerFormanduseModalFormhookWhen override
onFinishprop using theuseDrawerFormanduseModalFormhooks, the modal not close after submit the form. -
#4277
7172c1b42d2Thanks @salihozdemir! - fix: renamed the<ThemedHeaderV2/>propisStickytostickyTo provide backwards compatibility, the old prop name is still supported, but it is deprecated and will be removed in the next major version.
Example:
import { Refine } from "@refinedev/core"; import { ThemedLayoutV2, ThemedHeaderV2 } from "@refinedev/antd"; // or @refinedev/chakra-ui, @refinedev/mui, @refinedev/mantine const App: React.FC = () => { return ( <Refine ... > <ThemedLayoutV2 Header={() => <ThemedHeaderV2 sticky />} > {/* ... */} </ThemedLayoutV2> </Refine> ); };
5.15.0
Minor Changes
-
#4272
420d2442741Thanks @salihozdemir! - feat: added thefixedprop to the<ThemedSiderV2/>to allow the sider to be fixedThe prop is optional and defaults to
false. You can see the usage as follows:import { Refine } from "@refinedev/core"; import { ThemedLayoutV2, ThemedSiderV2 } from "@refinedev/antd"; const App: React.FC = () => { return ( <Refine ... > <ThemedLayoutV2 Sider={() => <ThemedSiderV2 fixed />}> {/* ... */} </ThemedLayoutV2> </Refine> ); }; -
#4278
b14f2ad8a70Thanks @alicanerdurmaz! - feat: addedautoSubmitCloseprop touseEditableTable. Now you can choose whether to close the table's row after submitting the form or not.const editableTable = useEditableTable({ autoSubmitClose: false, });
Patch Changes
-
#4267
5e128c76c16Thanks @yildirayunlu! - fix:onFinishprop override onuseDrawerFormanduseModalFormhookWhen override
onFinishprop using theuseDrawerFormanduseModalFormhooks, the modal not close after submit the form. -
#4277
7172c1b42d2Thanks @salihozdemir! - fix: renamed the<ThemedHeaderV2/>propisStickytostickyTo provide backwards compatibility, the old prop name is still supported, but it is deprecated and will be removed in the next major version.
Example:
import { Refine } from "@refinedev/core"; import { ThemedLayoutV2, ThemedHeaderV2 } from "@refinedev/antd"; // or @refinedev/chakra-ui, @refinedev/mui, @refinedev/mantine const App: React.FC = () => { return ( <Refine ... > <ThemedLayoutV2 Header={() => <ThemedHeaderV2 sticky />} > {/* ... */} </ThemedLayoutV2> </Refine> ); };
5.14.0
Minor Changes
-
#4272
420d2442741Thanks @salihozdemir! - feat: added thefixedprop to the<ThemedSiderV2/>to allow the sider to be fixedThe prop is optional and defaults to
false. You can see the usage as follows:import { Refine } from "@refinedev/core"; import { ThemedLayoutV2, ThemedSiderV2 } from "@refinedev/antd"; const App: React.FC = () => { return ( <Refine ... > <ThemedLayoutV2 Sider={() => <ThemedSiderV2 fixed />}> {/* ... */} </ThemedLayoutV2> </Refine> ); }; -
#4278
b14f2ad8a70Thanks @alicanerdurmaz! - feat: addedautoSubmitCloseprop touseEditableTable. Now you can choose whether to close the table's row after submitting the form or not.const editableTable = useEditableTable({ autoSubmitClose: false, });
Patch Changes
-
#4267
5e128c76c16Thanks @yildirayunlu! - fix:onFinishprop override onuseDrawerFormanduseModalFormhookWhen override
onFinishprop using theuseDrawerFormanduseModalFormhooks, the modal not close after submit the form. -
#4277
7172c1b42d2Thanks @salihozdemir! - fix: renamed the<ThemedHeaderV2/>propisStickytostickyTo provide backwards compatibility, the old prop name is still supported, but it is deprecated and will be removed in the next major version.
Example:
import { Refine } from "@refinedev/core"; import { ThemedLayoutV2, ThemedHeaderV2 } from "@refinedev/antd"; // or @refinedev/chakra-ui, @refinedev/mui, @refinedev/mantine const App: React.FC = () => { return ( <Refine ... > <ThemedLayoutV2 Header={() => <ThemedHeaderV2 sticky />} > {/* ... */} </ThemedLayoutV2> </Refine> ); };
5.13.2
Patch Changes
- #4241
fbe109b5a8bThanks @salihozdemir! - Added new generic types to theuseFormhooks. Now you can pass the query types and the mutation types to the hook.
5.13.1
Patch Changes
- #4241
fbe109b5a8bThanks @salihozdemir! - Added new generic types to theuseFormhooks. Now you can pass the query types and the mutation types to the hook.
5.13.0
Minor Changes
-
#4209
3f4b5fef76fThanks @yildirayunlu! - feat: addisStickyprop toThemedHeaderV2componentimport { ThemedHeaderV2, ThemedLayoutV2 } from "@refinedev/antd"; const CustomHeader = () => <ThemedHeaderV2 isSticky={true} />; const App = () => ( <Refine> // ... <ThemedLayoutV2 Header={CustomHeader}> <Outlet /> </ThemedLayoutV2> // ... </Refine> ); -
#4232
c99bc0ad7f7Thanks @alicanerdurmaz! - feat:initialSiderCollapsedadded toRefineThemedLayoutV2Propsto control initial state of<ThemedSiderV2>. From now on, you can control the initial collapsed state of<ThemedSiderV2>by passing theinitialSiderCollapsedprop to<ThemedLayoutV2>.<ThemedLayoutV2 initialSiderCollapsed={true} // This will make the sider collapsed by default > {/* .. */} </ThemedLayoutV2>
Patch Changes
- Updated dependencies [
c99bc0ad7f7,3f4b5fef76f]:
5.12.0
Minor Changes
-
#4209
3f4b5fef76fThanks @yildirayunlu! - feat: addisStickyprop toThemedHeaderV2componentimport { ThemedHeaderV2, ThemedLayoutV2 } from "@refinedev/antd"; const CustomHeader = () => <ThemedHeaderV2 isSticky={true} />; const App = () => ( <Refine> // ... <ThemedLayoutV2 Header={CustomHeader}> <Outlet /> </ThemedLayoutV2> // ... </Refine> ); -
#4232
c99bc0ad7f7Thanks @alicanerdurmaz! - feat:initialSiderCollapsedadded toRefineThemedLayoutV2Propsto control initial state of<ThemedSiderV2>. From now on, you can control the initial collapsed state of<ThemedSiderV2>by passing theinitialSiderCollapsedprop to<ThemedLayoutV2>.<ThemedLayoutV2 initialSiderCollapsed={true} // This will make the sider collapsed by default > {/* .. */} </ThemedLayoutV2>
Patch Changes
- Updated dependencies [
c99bc0ad7f7,3f4b5fef76f]:
5.11.0
Minor Changes
-
#4194
8df15fe0e4eThanks @alicanerdurmaz! - feat:sorters.modeprop added touseTableanduseDataGridhooks. This prop handles the sorting mode of the table. It can be eitherserveroroff.- "off":
sortersare not sent to the server. You can use thesortersvalue to sort the records on the client side. - "server": Sorting is done on the server side. Records will be fetched by using the
sortersvalue.
feat:
filters.modeprop added touseTableanduseDataGridhooks. This prop handles the filtering mode of the table. It can be eitherserveroroff.- "off":
filtersare not sent to the server. You can use thefiltersvalue to filter the records on the client side. - "server": Filtering is done on the server side. Records will be fetched by using the
filtersvalue.
- "off":
5.10.0
Minor Changes
-
#4194
8df15fe0e4eThanks @alicanerdurmaz! - feat:sorters.modeprop added touseTableanduseDataGridhooks. This prop handles the sorting mode of the table. It can be eitherserveroroff.- "off":
sortersare not sent to the server. You can use thesortersvalue to sort the records on the client side. - "server": Sorting is done on the server side. Records will be fetched by using the
sortersvalue.
feat:
filters.modeprop added touseTableanduseDataGridhooks. This prop handles the filtering mode of the table. It can be eitherserveroroff.- "off":
filtersare not sent to the server. You can use thefiltersvalue to filter the records on the client side. - "server": Filtering is done on the server side. Records will be fetched by using the
filtersvalue.
- "off":
5.9.0
Minor Changes
-
#4193
3d28fccc1caThanks @yildirayunlu! - feat: addThemedLayoutV2component anduseSiderVisiblehookThemeLayoutis deprecated. AddedThemedLayoutV2instead. This update fixed some UI problems in the layout. Also, with the newuseSiderVisiblehook, it's easier to collapse/uncollapse theSider.See here for detailed migration guideline.
Patch Changes
- Updated dependencies [
deec38a034a]:
5.8.0
Minor Changes
-
#4193
3d28fccc1caThanks @yildirayunlu! - feat: addThemedLayoutV2component anduseSiderVisiblehookThemeLayoutis deprecated. AddedThemedLayoutV2instead. This update fixed some UI problems in the layout. Also, with the newuseSiderVisiblehook, it's easier to collapse/uncollapse theSider.See here for detailed migration guideline.
Patch Changes
- Updated dependencies [
deec38a034a]:- @refinedev/ui-types@1.9.0
5.7.0
Minor Changes
-
#4193
3d28fccc1caThanks @yildirayunlu! - feat: addThemedLayoutV2component anduseSiderVisiblehookThemeLayoutis deprecated. AddedThemedLayoutV2instead. This update fixed some UI problems in the layout. Also, with the newuseSiderVisiblehook, it's easier to collapse/uncollapse theSider.See here for detailed migration guideline.
Patch Changes
- Updated dependencies [
deec38a034a]:- @refinedev/ui-types@1.8.0
5.6.0
Minor Changes
-
#4113
1c13602e308Thanks @salihozdemir! - Added missing third generic parameter to hooks which are usinguseQueryinternally.For example:
import { useOne, HttpError } from "@refinedev/core"; const { data } = useOne<{ count: string }, HttpError, { count: number }>({ resource: "product-count", queryOptions: { select: (rawData) => { return { data: { count: Number(rawData?.data?.count), }, }; }, }, }); console.log(typeof data?.data.count); // number
Patch Changes
- #4113
1c13602e308Thanks @salihozdemir! - Updated the generic type name of hooks that useuseQueryto synchronize generic type names withtanstack-query.
5.5.2
Patch Changes
- #4120
1f310bd7b69Thanks @aliemir! - Fix brokenuseModalFormanduseDrawerFormwithcreateactions.
5.5.1
Patch Changes
- #4120
1f310bd7b69Thanks @aliemir! - Fix brokenuseModalFormanduseDrawerFormwithcreateactions.
5.5.0
Minor Changes
- #4072
fad40e6237fThanks @alicanerdurmaz! - -<Layout>is deprecated. use<ThemedLayout>instead with 100% backward compatibility. - https://refine.dev/docs/api-reference/antd/components/antd-themed-layout
Patch Changes
- #4114
afdaed3dd83Thanks @aliemir! - UpdateduseModalFormanduseDrawerFormhook'sshowmethod to check if there's anidpresent or provided. If there is, it will continue to show the modal/drawer. If not, the modal/drawer will not show. (Resolves #4062)
5.4.0
Minor Changes
- #4072
fad40e6237fThanks @alicanerdurmaz! - -<Layout>is deprecated. use<ThemedLayout>instead with 100% backward compatibility. - https://refine.dev/docs/api-reference/antd/components/antd-themed-layout
Patch Changes
- #4114
afdaed3dd83Thanks @aliemir! - UpdateduseModalFormanduseDrawerFormhook'sshowmethod to check if there's anidpresent or provided. If there is, it will continue to show the modal/drawer. If not, the modal/drawer will not show. (Resolves #4062)
5.3.14
Patch Changes
- #4035
e0c75450f97Thanks @salihozdemir! - - Re-extending theSuccessErrorNotificationandLivePropstypes removeduseEditableTable'ssuccessNotificationanderrorNotificationprops now work according to the mutation result instead of the query result
5.3.13
Patch Changes
- #4035
e0c75450f97Thanks @salihozdemir! - - Re-extending theSuccessErrorNotificationandLivePropstypes removeduseEditableTable'ssuccessNotificationanderrorNotificationprops now work according to the mutation result instead of the query result
5.3.12
Patch Changes
-
#4024
dc6d2311eb7Thanks @alicanerdurmaz! - - Added:wrapperStylesprop to<ThemedTitle>component to allow for custom styles to be passed in.- Added:
textDecoration: noneto<ThemedTitle>component.
- Added:
5.3.11
Patch Changes
-
#4024
dc6d2311eb7Thanks @alicanerdurmaz! - - Added:wrapperStylesprop to<ThemedTitle>component to allow for custom styles to be passed in.- Added:
textDecoration: noneto<ThemedTitle>component.
- Added:
5.3.10
Patch Changes
-
#3997
f027d8a53b8Thanks @alicanerdurmaz! - - Fixed the unsaved changes dialog is popping up unexpectedly when the user clicks the logs out.- The `<ThemedSider>`'s `onClick` handler was changed to use the `window.confirm` API to manage the confirmation dialog. -
#3974
4dcc20d6a60Thanks @salihozdemir! - Deprecated theWelcomePagecomponent. It'll be used from@refinedev/coreinstead.
5.3.9
Patch Changes
-
#3997
f027d8a53b8Thanks @alicanerdurmaz! - - Fixed the unsaved changes dialog is popping up unexpectedly when the user clicks the logs out.- The `<ThemedSider>`'s `onClick` handler was changed to use the `window.confirm` API to manage the confirmation dialog. -
#3974
4dcc20d6a60Thanks @salihozdemir! - Deprecated theWelcomePagecomponent. It'll be used from@refinedev/coreinstead.
5.3.8
Patch Changes
-
#3975
b1e6e32f9a1Thanks @alicanerdurmaz! - - Fixed the unsaved changes dialog is popping up unexpectedly when the user clicks the logs out.- The `<ThemedSider>`'s `onClick` handler was changed to use the `window.confirm` API to manage the confirmation dialog.<RefineThemes>colors updated to match the new theme colors.
-
Updated dependencies [
2798f715361]:- @refinedev/ui-types@1.5.0
5.3.7
Patch Changes
-
#3975
b1e6e32f9a1Thanks @alicanerdurmaz! - - Fixed the unsaved changes dialog is popping up unexpectedly when the user clicks the logs out.- The `<ThemedSider>`'s `onClick` handler was changed to use the `window.confirm` API to manage the confirmation dialog.<RefineThemes>colors updated to match the new theme colors.
-
Updated dependencies [
2798f715361]:- @refinedev/ui-types@1.4.0
5.3.6
Patch Changes
- #3967
67603562695Thanks @alicanerdurmaz! - Fixed:<ThemedTitle>font size was overridden by parent because<Space>has the default font size.
5.3.5
Patch Changes
- #3967
67603562695Thanks @alicanerdurmaz! - Fixed:<ThemedTitle>font size was overridden by parent because<Space>has the default font size.
5.3.4
Patch Changes
-
#3949
836b06a2f67Thanks @alicanerdurmaz! - Fixed: font size was "14px". Updated to "20px" on<AuthPage>, "14px" on<ThemedSider>. -
#3956
c54714ed9abThanks @salihozdemir! - Fixed an issue where the<NumberField />component would throw an error if thevalueprop was set toundefined.
5.3.3
Patch Changes
-
#3949
836b06a2f67Thanks @alicanerdurmaz! - Fixed: font size was "14px". Updated to "20px" on<AuthPage>, "14px" on<ThemedSider>. -
#3956
c54714ed9abThanks @salihozdemir! - Fixed an issue where the<NumberField />component would throw an error if thevalueprop was set toundefined.
5.3.2
Patch Changes
-
#3931
d92c8e82868Thanks @salihozdemir! - Added missingautoSubmitClose,autoResetForm, anddefaultVisibleprops touseDrawerFormhook. -
#3911
5f9c70ebf2fThanks @salihozdemir! - FixedautoSubmitCloseandautoResetFormprops ofuseModalFormhook to work properly. -
#3931
d92c8e82868Thanks @salihozdemir! - AddedautoSubmitClose,autoResetForm, anddefaultVisibleprops touseDrawerFormhook. -
#3948
b4950503334Thanks @salihozdemir! - Fixed the unsaved changes dialog is popping up unexpectedly when the user clicks the delete button or logs out, when the form is dirty.- The
<DeleteButton>already has a confirmation dialog, so the alert was removed. - The
<Sider>'sonClickhandler was changed to use thewindow.confirmAPI to manage the confirmation dialog.
- The
5.3.1
Patch Changes
-
#3931
d92c8e82868Thanks @salihozdemir! - Added missingautoSubmitClose,autoResetForm, anddefaultVisibleprops touseDrawerFormhook. -
#3911
5f9c70ebf2fThanks @salihozdemir! - FixedautoSubmitCloseandautoResetFormprops ofuseModalFormhook to work properly. -
#3931
d92c8e82868Thanks @salihozdemir! - AddedautoSubmitClose,autoResetForm, anddefaultVisibleprops touseDrawerFormhook. -
#3948
b4950503334Thanks @salihozdemir! - Fixed the unsaved changes dialog is popping up unexpectedly when the user clicks the delete button or logs out, when the form is dirty.- The
<DeleteButton>already has a confirmation dialog, so the alert was removed. - The
<Sider>'sonClickhandler was changed to use thewindow.confirmAPI to manage the confirmation dialog.
- The
5.3.0
Minor Changes
-
#3912
0ffe70308b2Thanks @alicanerdurmaz! - -RefineThemesadded. It contains predefined colors for the antd components.import { RefineThemes } from "@refinedev/antd"; import { Refine } from "@refinedev/core"; import dataProvider from "@refinedev/simple-rest"; const App = () => { // --- return ( <ConfigProvider theme={{ token: RefineThemes.Magenta.token, }} > <Refine dataProvider={dataProvider("YOUR_API_URL")}> {/** your app here */} </Refine> </ConfigProvider> ); };- default title with icon added to
AuthPage. It usesThemedTitlecomponent from@refinedev/antd. You can remove it by settingtitleprop tofalse.
<AuthPage title={false} />titleprop added toAuthPage'srenderContentprop to use in the custom content.
<AuthPage renderContent={(content: React.ReactNode, title: React.ReactNode) => { return ( <div style={{ display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", }} > {title} <h1 style={{ color: "white" }}>Extra Header</h1> {content} <h1 style={{ color: "white" }}>Extra Footer</h1> </div> ); }} />-
<ThemedLayout>,<ThemedSider>,<ThemedTitle>,<ThemedHeader>created to use theme colors. -
<EditButton>in<Show>type changed toprimary. -
<CreateButton>type changed toprimary. -
<AuthPage>component uses colors from the theme. -
<ThemedTitle>added toAuthPage
- default title with icon added to
Patch Changes
- Updated dependencies [
0ffe70308b2]:- @refinedev/ui-types@1.3.0
5.2.0
Minor Changes
-
#3912
0ffe70308b2Thanks @alicanerdurmaz! - -RefineThemesadded. It contains predefined colors for the antd components.import { RefineThemes } from "@refinedev/antd"; import { Refine } from "@refinedev/core"; import dataProvider from "@refinedev/simple-rest"; const App = () => { // --- return ( <ConfigProvider theme={{ token: RefineThemes.Magenta.token, }} > <Refine dataProvider={dataProvider("YOUR_API_URL")}> {/** your app here */} </Refine> </ConfigProvider> ); };- default title with icon added to
AuthPage. It usesThemedTitlecomponent from@refinedev/antd. You can remove it by settingtitleprop tofalse.
<AuthPage title={false} />titleprop added toAuthPage'srenderContentprop to use in the custom content.
<AuthPage renderContent={(content: React.ReactNode, title: React.ReactNode) => { return ( <div style={{ display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", }} > {title} <h1 style={{ color: "white" }}>Extra Header</h1> {content} <h1 style={{ color: "white" }}>Extra Footer</h1> </div> ); }} />-
<ThemedLayout>,<ThemedSider>,<ThemedTitle>,<ThemedHeader>created to use theme colors. -
<EditButton>in<Show>type changed toprimary. -
<CreateButton>type changed toprimary. -
<AuthPage>component uses colors from the theme. -
<ThemedTitle>added toAuthPage
- default title with icon added to
Patch Changes
- Updated dependencies [
0ffe70308b2]:- @refinedev/ui-types@1.2.0
5.1.2
Patch Changes
- #3885
5495ab7028eThanks @omeraplak! - fix: header text color
5.1.1
Patch Changes
- #3885
5495ab7028eThanks @omeraplak! - fix: header text color
5.1.0
Minor Changes
-
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk! Updated the components to match the changes in routing system of
@refinedev/core.metaproperty in componentsThis includes
metaprops in buttons andSidercomponent.metaproperty can be used to pass additional parameters to the navigation paths.For a
postsresource definition like this:<Refine resources={[ { name: "posts", list: "/posts", show: "/:authorId/posts/:id", } ]} >You can pass
authorIdto theShowButtoncomponent like this:<ShowButton resource="posts" id="1" meta={{ authorId: 123 }}>This will navigate to
/123/posts/1path.syncWithLocationsupport inuseDrawerFormanduseModalFormhooksuseDrawerFormanduseModalFormhooks now supportsyncWithLocationprop. This prop can be used to sync the visibility state of them with the location via query params.You can pass a boolean or an object with
keyandsyncIdproperties.-
keyis used to define the query param key. Default value is inferred from the resource and the action. For exampleposts-createforpostsresource andcreateaction. -
syncIdis used to include theidproperty in the query param key. Default value isfalse. This is useful foreditandcloneactions.
Removed props
ignoreAccessControlProviderprop is removed from buttons. -
-
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk! Updated buttons with
resourceproperty.resourceNameOrRouteNameis now deprecated but kept working until next major version. -
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk! All Ant Design components re-exported from
@refinedev/antdhave been removed. You should import them fromantdpackage directly.If the package is not installed, you should install it with your package manager:
npm install antd # or pnpm add antd # or yarn add antdAfter that, you can import components from
antdpackage directly like below:-import { useTable, SaveButton, Button, Form, Input, Select } from "@refinedev/antd"; +import { useTable, SaveButton } from "@refinedev/antd"; +import { Button, Form, Input, Select } from "antd";
Iconsare also removed from@refinedev/antd. So, you should import icons from@ant-design/iconspackage directly.If the package is not installed, you should install it with your package manager:
npm install @ant-design/icons # or pnpm add @ant-design/icons # or yarn add @ant-design/iconsAfter that, you can import icons from
@ant-design/iconspackage directly like below:-import { Icons } from "@refinedev/antd"; -const { EditOutlined } = Icons; + import { EditOutlined } from "@ant-design/icons"; -
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk! Upgrade
@ant-design/iconsto^5.0.1for consistency. -
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk!
useCheckboxGroup'ssortprop is now deprecated. Usesortersprop instead.
useCheckboxGroup({ - sort, + sorters, })useSelect'ssortprop is now deprecated. Usesortersprop instead.
useSelect({ - sort, + sorters, })useRadioGroup'ssortprop is now deprecated. Usesortersprop instead.
useRadioGroup({ - sort, + sorters, })useImport'sresourceNameprop is now deprecated. Useresourceprop instead.
useImport({ - resourceName, + resource, }) -
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk!
<ReadyPage>isnow deprecated.- Created a
<WelcomePage>component to welcome users.
-
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk! Added legacy auth provider and new auth provider support to all components and hooks.
-
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk!
🪄 Migrating your project automatically with refine-codemod ✨
@refinedev/codemodpackage handles the breaking changes for your project automatically, without any manual steps. It migrates your project from3.x.xto4.x.x.Just
cdinto root folder of your project (wherepackage.jsonis contained) and run this command:npx @refinedev/codemod@latest refine3-to-refine4And it's done. Now your project uses
refine@4.x.x.📝 Changelog
Deprecated
useMenuremoved from@refinedev/antdpackage. UseuseMenufrom@refinedev/corepackage instead.- import { useMenu } from "@refinedev/antd"; + import { useMenu } from "@refinedev/core"; -
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk! Moving to the
@refinedevscope 🎉🎉Moved to the
@refinedevscope and updated our packages to use the new scope. From now on, all packages will be published under the@refinedevscope with their new names.Now, we're also removing the
refineprefix from all packages. So, the@pankod/refine-corepackage is now@refinedev/core,@pankod/refine-antdis now@refinedev/antd, and so on. -
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk!
useTablehookuseTablereturn values and properties are updated.-
initialCurrentandinitialPageSizeprops are now deprecated. Usepaginationprop instead. -
To ensure backward compatibility,
initialCurrentandinitialPageSizeprops will work as before.useTable({ - initialCurrent, - initialPageSize, + pagination: { + current, + pageSize, + }, }) -
hasPaginationprop is now deprecated. Usepagination.modeinstead. -
To ensure backward compatibility,
hasPaginationprop will work as before.useTable({ - hasPagination, + pagination: { + mode: "off" | "server" | "client", + }, }) -
initialSorterandpermanentSorterprops are now deprecated. Usesorters.initialandsorters.permanentinstead. -
To ensure backward compatibility,
initialSorterandpermanentSorterprops will work as before.useTable({ - initialSorter, - permanentSorter, + sorters: { + initial, + permanent, + }, }) -
initialFilter,permanentFilter, anddefaultSetFilterBehaviorprops are now deprecated. Usefilters.initial,filters.permanent, andfilters.defaultBehaviorinstead. -
To ensure backward compatibility,
initialFilter,permanentFilter, anddefaultSetFilterBehaviorprops will work as before.useTable({ - initialFilter, - permanentFilter, - defaultSetFilterBehavior, + filters: { + initial, + permanent, + defaultBehavior, + }, }) -
sorterandsetSorterreturn values are now deprecated. UsesortersandsetSortersinstead. -
To ensure backward compatibility,
sorterandsetSorterreturn values will work as before.const { - sorter, + sorters, - setSorter, + setSorters, } = useTable();
useSimpleListhook-
Now
useSimpleListhook will not accept all of<List>component properties So, you can give their props to<List>component directly.import { useSimpleList } from "@refinedev/antd"; import { List } from "antd"; const { listProps } = useSimpleList({ resource: "orders", pagination: { pageSize: 6, - simple: true, }, }); <List {...listProps} + pagination={{ + ...listProps.pagination, + simple: true, + }} ... // other props /> -
initialCurrentandinitialPageSizeprops are now deprecated. Usepaginationprop instead. -
To ensure backward compatibility,
initialCurrentandinitialPageSizeprops will work as before. -
useSimpleList({ - initialCurrent, - initialPageSize, + pagination: { + current, + pageSize, + }, })
-
Patch Changes
4.9.0
Minor Changes
- #3822
0baa99ba787Thanks @BatuhanW! - - refine v4 release announcement added to "postinstall". - refine v4 is released 🎉 The new version is 100% backward compatible. You can upgrade to v4 with a single command! See the migration guide here: https://refine.dev/docs/migration-guide/3x-to-4x
Patch Changes
- Updated dependencies [
0baa99ba787]:
4.8.0
Minor Changes
- #3822
0baa99ba787Thanks @BatuhanW! - - refine v4 release announcement added to "postinstall". - refine v4 is released 🎉 The new version is 100% backward compatible. You can upgrade to v4 with a single command! See the migration guide here: https://refine.dev/docs/migration-guide/3x-to-4x
Patch Changes
- Updated dependencies [
0baa99ba787]:
4.7.3
Patch Changes
- #3606
00c9a5c471aThanks @aliemir! - Fixed the issue withdisabledstate inDeleteButton's still opening the popover.
4.7.2
Patch Changes
- #3606
00c9a5c471aThanks @aliemir! - Fixed the issue withdisabledstate inDeleteButton's still opening the popover.
4.7.1
Patch Changes
- #3399
22b44a857a8Thanks @yildirayunlu! - FixuseTablehook error return type.
4.7.0
Minor Changes
- #3324
9bfb34749bcThanks @aliemir! - Added the ability to pass mutation options touseMutationhooks in mutation hooks:useFormuseStepsFormuseModalFormuseDrawerForm
4.6.0
Minor Changes
- #3324
9bfb34749bcThanks @aliemir! - Added the ability to pass mutation options touseMutationhooks in mutation hooks:useFormuseStepsFormuseModalFormuseDrawerForm
4.5.0
Minor Changes
- #3294
3c9c8c07d21Thanks @aliemir! - RemovegetContainer: falsefromuseModalFormanduseDrawerFormand let it fallback to the default value. Users wanting to override the default value can still do so by passinggetContainerprop to theModalandDrawercomponents.
4.4.0
Minor Changes
- #3294
3c9c8c07d21Thanks @aliemir! - RemovegetContainer: falsefromuseModalFormanduseDrawerFormand let it fallback to the default value. Users wanting to override the default value can still do so by passinggetContainerprop to theModalandDrawercomponents.
4.3.0
Minor Changes
- #3285
cc2c1f042bfThanks @omeraplak! - Added exports for new<App />,<QrCode />and<Watermark />components.
4.2.0
Minor Changes
- #3285
cc2c1f042bfThanks @omeraplak! - Added exports for new<App />,<QrCode />and<Watermark />components.
4.1.5
Patch Changes
-
#3273
a30ba43cce2Thanks @yildirayunlu! - Set thetheme="dark"of theMenucomponent inSiderby default. -
a8d3f648a28Thanks @omeraplak! - Fixed onClick event type of the<Button />component
4.1.4
Patch Changes
a8d3f648a28Thanks @omeraplak! - Fixed onClick event type of the<Button />component- #3273
a30ba43cce2Thanks @yildirayunlu! - Set thetheme="dark"of theMenucomponent inSiderby default.
4.1.3
Patch Changes
- #3273
a30ba43cce2Thanks @yildirayunlu! - Set thetheme="dark"of theMenucomponent inSiderby default.
4.1.2
Patch Changes
- #3269
8b86c0c4c45Thanks @alicanerdurmaz! - Fixed: Wrong import and usage afterswizzling<Layout>component.
4.1.1
Patch Changes
- #3269
8b86c0c4c45Thanks @alicanerdurmaz! - Fixed: Wrong import and usage afterswizzling<Layout>component.
4.1.0
Minor Changes
-
#3249
fd2e1882e06Thanks @rajaomariajaona! - Add ability to pass pagination values inuseTablehook. (Resolves #3246)currentsetCurrentpageSizesetPageSizepageCount
-
#3121
214ea79c81cThanks @yildirayunlu! - We've released Ant Design v5 support 🎉Upgrade
⚡️ You can easily update refine packages with refine CLI
updatecommand.npm run refine update🪄 Migrating your project automatically with Codemod ✨
@pankod/refine-codemodpackage handles the breaking changes for your project automatically, without any manual steps. It migrates your@pankod/refine-antdversion from 3.x.x to 4.x.x.Just
cdinto root folder of your project (wherepackage.jsonis contained) and run this command:npx @pankod/refine-codemod antd4-to-antd5And it's done. Now your project uses
@pankod/refine-antd@4.x.x.Changes
<PageHeader>component moved into@ant-design/pro-components. refine is using<PageHeader>in<List>,<Create>,<Edit>,<Show>components and added as a dependency. You don't need to install@ant-design/pro-componentspackage manually.<Comment>component moved into@ant-design/compatible.moment.jsis replaced withday.js.lessis removed fromantdpackage.
Please refer to Ant Design Migration Guide for detailed information.
🚨 Next.js 13 Not Supported Now
Currently
ant-design/pro-componentsdoes not compatible with Next.js 13. refine is usingant-design/pro-componentsas a dependency for<PageHeader/>component.Refer to a related issue on ant-design/pro-components repository
4.0.0
Major Changes
-
#3121
214ea79c81cThanks @yildirayunlu! - We've released Ant Design v5 support 🎉Upgrade
⚡️ You can easily update refine packages with refine CLI
updatecommand.npm run refine update🪄 Migrating your project automatically with Codemod ✨
@pankod/refine-codemodpackage handles the breaking changes for your project automatically, without any manual steps. It migrates your@pankod/refine-antdversion from 3.x.x to 4.x.x.Just
cdinto root folder of your project (wherepackage.jsonis contained) and run this command:npx @pankod/refine-codemod antd4-to-antd5And it's done. Now your project uses
@pankod/refine-antd@4.x.x.Changes
<PageHeader>component moved into@ant-design/pro-components. refine is using<PageHeader>in<List>,<Create>,<Edit>,<Show>components and added as a dependency. You don't need to install@ant-design/pro-componentspackage manually.<Comment>component moved into@ant-design/compatible.moment.jsis replaced withday.js.lessis removed fromantdpackage.
Please refer to Ant Design Migration Guide for detailed information.
🚨 Next.js 13 Not Supported Now
Currently
ant-design/pro-componentsdoes not compatible with Next.js 13. refine is usingant-design/pro-componentsas a dependency for<PageHeader/>component.Refer to a related issue on ant-design/pro-components repository
Minor Changes
- #3249
fd2e1882e06Thanks @rajaomariajaona! - Add ability to pass pagination values inuseTablehook. (Resolves #3246)currentsetCurrentpageSizesetPageSizepageCount
3.70.4
Patch Changes
- #3252
cf696235d0bThanks @aliemir! - Updatedesbuildconfiguration to handleantd/libimports inesmbuilds. (Resolves #3187)
3.70.3
Patch Changes
- #3252
cf696235d0bThanks @aliemir! - Updatedesbuildconfiguration to handleantd/libimports inesmbuilds. (Resolves #3187)
3.70.2
Patch Changes
-
#3220
b867497f469Thanks @aliemir! - Updated image links inREADME.MDwith CDN -
Updated dependencies [
b867497f469]:
3.70.1
Patch Changes
-
#3220
b867497f469Thanks @aliemir! - Updated image links inREADME.MDwith CDN -
Updated dependencies [
b867497f469]:
3.70.0
Minor Changes
- #3216
e09eb81588eThanks @leapful! - Support filter dropdown on number value of single Select component
3.69.0
Minor Changes
- #3216
e09eb81588eThanks @leapful! - Support filter dropdown on number value of single Select component
3.68.0
Minor Changes
- #3195
2fdc5c2a88eThanks @leapful! - Support Date Picker component when using with Filter Dropdown
3.67.0
Minor Changes
- #3195
2fdc5c2a88eThanks @leapful! - Support Date Picker component when using with Filter Dropdown
3.66.0
Minor Changes
- #3159
af2eefb32a4Thanks @aliemir! - UpdatedLoginPageandReadyPageto use refine logos from CDN rather than bundled svg files.
3.65.0
Minor Changes
- #3159
af2eefb32a4Thanks @aliemir! - UpdatedLoginPageandReadyPageto use refine logos from CDN rather than bundled svg files.
3.64.4
Patch Changes
- #3128
db1000a7628Thanks @alicanerdurmaz! - Fixed:crudcomponents import path changed to relative path due to export issues on build.
3.64.3
Patch Changes
- #3128
db1000a7628Thanks @alicanerdurmaz! - Fixed:crudcomponents import path changed to relative path due to export issues on build.
3.64.2
Patch Changes
- #3109
16549ed3012Thanks @aliemir! - Updatedswizzleitems and their messages to include extra information and usage examples.
3.64.1
Patch Changes
- #3109
16549ed3012Thanks @aliemir! - Updatedswizzleitems and their messages to include extra information and usage examples.
3.64.0
Minor Changes
- #3062
6c2ed708a9aThanks @aliemir! - - Updated components and their type imports to make them compatible withswizzlefeature.- Added
refine.config.jsto configure theswizzlefeature.
- Added
3.63.0
Minor Changes
- #3062
6c2ed708a9aThanks @aliemir! - - Updated components and their type imports to make them compatible withswizzlefeature.- Added
refine.config.jsto configure theswizzlefeature.
- Added
3.62.0
Minor Changes
-
#2872
da3fc4a702Thanks @TDP17! - Feat: Added ability to manage breadcrumb component globally via optionsThe option set in individual CRUD components takes priority over the global option
3.61.0
Minor Changes
-
#2872
da3fc4a702Thanks @TDP17! - Feat: Added ability to manage breadcrumb component globally via optionsThe option set in individual CRUD components takes priority over the global option
3.60.0
Minor Changes
-
#2839
5388a338abThanks @aliemir! - DeprecationignoreAccessControlProviderprop on buttons is deprecated. UseaccessContro.enabledinstead.Features
accessControl.enabledprop is added to buttons to enable/disable access control for buttons.accessControl.hideIfUnauthorizedprop is added to buttons to hide the button if access is denied. -
#2836
e43e9a17aeThanks @alicanerdurmaz! - added locales prop to date fields
Patch Changes
-
#2838
f7968fa16fThanks @aliemir! - Fixed #2828 - Buttons were not respecting access control when navigating to a new page. Now, if button is disabled, it will not also block the navigation not just the onClick event. -
Updated dependencies [
476285e342,5388a338ab,e43e9a17ae]:
3.59.0
Minor Changes
- #2836
e43e9a17aeThanks @alicanerdurmaz! - added locales prop to date fields
Patch Changes
- Updated dependencies [
e43e9a17ae]:
3.58.0
Minor Changes
-
#2839
5388a338abThanks @aliemir! - DeprecationignoreAccessControlProviderprop on buttons is deprecated. UseaccessContro.enabledinstead.Features
accessControl.enabledprop is added to buttons to enable/disable access control for buttons.accessControl.hideIfUnauthorizedprop is added to buttons to hide the button if access is denied.
Patch Changes
-
#2838
f7968fa16fThanks @aliemir! - Fixed #2828 - Buttons were not respecting access control when navigating to a new page. Now, if button is disabled, it will not also block the navigation not just the onClick event. -
Updated dependencies [
476285e342,5388a338ab]:
3.57.0
Minor Changes
-
Only
orwas supported as a conditional filter. Nowandandorcan be used together and nested. 🚀{ operator: "or", value: [ { operator: "and", value: [ { field: "name", operator: "eq", value: "John Doe", }, { field: "age", operator: "eq", value: 30, }, ], }, { operator: "and", value: [ { field: "name", operator: "eq", value: "JR Doe", }, { field: "age", operator: "eq", value: 1, }, ], }, ], }
Patch Changes
- Updated dependencies []:
3.56.0
Minor Changes
-
#2751
addff64c77Thanks @yildirayunlu! - Onlyorwas supported as a conditional filter. Nowandandorcan be used together and nested. 🚀{ operator: "or", value: [ { operator: "and", value: [ { field: "name", operator: "eq", value: "John Doe", }, { field: "age", operator: "eq", value: 30, }, ], }, { operator: "and", value: [ { field: "name", operator: "eq", value: "JR Doe", }, { field: "age", operator: "eq", value: 1, }, ], }, ], }
Patch Changes
- Updated dependencies [
19124711a7]:
3.55.3
Patch Changes
- Fixed
providersproperty empty array state in<AuthPage />component
3.55.2
Patch Changes
- Fixed
providersproperty empty array state in<AuthPage />component
3.55.1
Patch Changes
- #2712
c434055011Thanks @omeraplak! - Fixedprovidersproperty empty array state in<AuthPage />component
3.55.0
Minor Changes
- Added infinite loading example to antd
useSelect()useSelect()fetchSizeprop is deprecated. From nowpaginationshould be used
Patch Changes
- Add AuthProps type export
3.54.0
Minor Changes
- #2629
bc89228e73Thanks @bungambohlah! - Added infinite loading example to antduseSelect()useSelect()fetchSizeprop is deprecated. From nowpaginationshould be used
Patch Changes
- #2666
8a562d2114Thanks @omeraplak! - Add AuthProps type export
3.53.0
Minor Changes
-
- Added new component core and mantine support.
- Move Auth types
@pankod/refine-ui-typesto@pankod/refine-core
3.52.0
Minor Changes
- #2627
c5fb45d61fThanks @yildirayunlu! - - Added new component core and mantine support.- Move Auth types
@pankod/refine-ui-typesto@pankod/refine-core
- Move Auth types
3.51.0
Minor Changes
-
Deprecated
LoginPage.Before
import { LoginPage } from "@pankod/refine-antd"; <Refine LoginPage={LoginPage} ... />After
import { AuthPage } from "@pankod/refine-antd"; <Refine LoginPage={AuthPage} ... />
3.50.0
Minor Changes
-
Deprecated
LoginPage.Before
import { LoginPage } from "@pankod/refine-antd"; <Refine LoginPage={LoginPage} ... />After
import { AuthPage } from "@pankod/refine-antd"; <Refine LoginPage={AuthPage} ... />
3.49.0
Minor Changes
-
#2580
e1ab7da6b3Thanks @yildirayunlu! - DeprecatedLoginPage.Before
import { LoginPage } from "@pankod/refine-antd"; <Refine LoginPage={LoginPage} ... />After
import { AuthPage } from "@pankod/refine-antd"; <Refine LoginPage={AuthPage} ... />
3.48.10
Patch Changes
- ReadyPage examples link fixed.
3.48.9
Patch Changes
- #2505
a4dbb63c88Thanks @salihozdemir! - ReadyPage examples link fixed.
3.48.8
Patch Changes
-
Updated
disabledattribute of buttons in CRUD components according toisLoadingprop. -
Removed redundant type inheritance
-
Updated dependencies []:
3.48.7
Patch Changes
-
#2586
d7c8b7642bThanks @necatiozmen! - Removed redundant type inheritance -
Updated dependencies [
d7c8b7642b]:
3.48.6
Patch Changes
- #2585
e7ab42a73bThanks @salihozdemir! - Updateddisabledattribute of buttons in CRUD components according toisLoadingprop.
3.48.5
Patch Changes
- Rename
reset-password->forgot-passwordon docs.
3.48.4
Patch Changes
- Rename
reset-password->forgot-passwordon docs.
3.48.3
Patch Changes
- #2568
efe99f7843Thanks @yildirayunlu! - Renamereset-password->forgot-passwordon docs.
3.48.2
Patch Changes
- Fixed
useModalForm&useStepsFormreturn type
3.48.1
Patch Changes
- #2552
52cd8d633eThanks @omeraplak! - FixeduseModalForm&useStepsFormreturn type
3.48.0
Minor Changes
- Add
providerssupport on AuthPage register page.
Patch Changes
- Updated dependencies []:
3.47.0
Minor Changes
- #2551
a65525de6fThanks @yildirayunlu! - Addproviderssupport on AuthPage register page.
Patch Changes
- Updated dependencies [
a65525de6f]:
3.46.4
Patch Changes
-
- Auth pages background color fixed.
- Removed unused
updatePasswordLinkprop from auth pages. - Removed
onSubmitprop from auth pages. useformPropsinstead.
- Updated dependencies []:
- @pankod/refine-ui-types@0.9.2
3.46.3
Patch Changes
- #2524
27bf81bebbThanks @biskuvit! - - Auth pages background color fixed.- Removed unused
updatePasswordLinkprop from auth pages. - Removed
onSubmitprop from auth pages. useformPropsinstead.
- Removed unused
- Updated dependencies [
27bf81bebb]:- @pankod/refine-ui-types@0.9.1
3.46.2
Patch Changes
- Fixed the spacing between
iconandbreadcrumb labelinBreadcrumbcomponent.
3.46.1
Patch Changes
- #2534
a9676932ccThanks @ozkalai! - Fixed the spacing betweeniconandbreadcrumb labelinBreadcrumbcomponent.
3.46.0
Minor Changes
-
Added
formPropsproperty support for AuthPage componentUsage
<AuthPage type="login" formProps={{ initialValues: { email: "demo@refine.dev", password: "demo", }, }} />
Patch Changes
- Updated dependencies []:
- @pankod/refine-ui-types@0.9.0
3.45.0
Minor Changes
-
#2516
ad99916d6dThanks @omeraplak! - AddedformPropsproperty support for AuthPage componentUsage
<AuthPage type="login" formProps={{ initialValues: { email: "demo@refine.dev", password: "demo", }, }} />
Patch Changes
- Updated dependencies [
ad99916d6d]:- @pankod/refine-ui-types@0.8.0
3.44.0
Minor Changes
-
Added
renderprop toSidercomponent. You can getdashboard,logoutanditemsfromrenderprops to customize theSidercomponent. -
Added
<AuthPage>for Ant Design.<AuthPage>is a component that provides a login, register, forgot password and update password pages.
Patch Changes
-
Fixed version of react-router to
6.3.0 -
Passed
collapsedprop torendermethod inSidercomponent of@pankod/refine-antd. -
Updated dependencies []:
- @pankod/refine-ui-types@0.7.0
3.43.1
Patch Changes
- #2501
4095a578d4Thanks @omeraplak! - Fixed version of react-router to6.3.0
3.43.0
Minor Changes
- #2447
628a37a675Thanks @biskuvit! - Added<AuthPage>for Ant Design.<AuthPage>is a component that provides a login, register, forgot password and update password pages.
Patch Changes
- Updated dependencies [
628a37a675]:- @pankod/refine-ui-types@0.6.2
3.42.1
Patch Changes
-
#2492
7d5bf3023dThanks @ozkalai! - Passedcollapsedprop torendermethod inSidercomponent of@pankod/refine-antd. -
Updated dependencies [
7d5bf3023d]:- @pankod/refine-ui-types@0.6.1
3.42.0
Minor Changes
- #2454
72487a4126Thanks @ozkalai! - Addedrenderprop toSidercomponent. You can getdashboard,logoutanditemsfromrenderprops to customize theSidercomponent.
Patch Changes
- Updated dependencies [
72487a4126]:- @pankod/refine-ui-types@0.6.0
3.41.0
Minor Changes
- Added support nested sorting
3.40.0
Minor Changes
- #2427
b21908e872Thanks @geoffatsource! - Added support nested sorting
3.39.0
Minor Changes
- Update type declaration generation with
tscinstead oftsupfor better navigation throughout projects source code.
Patch Changes
- Updated dependencies []:
- @pankod/refine-ui-types@0.5.0
3.38.0
Minor Changes
- #2440
0150dcd070Thanks @aliemir! - Update type declaration generation withtscinstead oftsupfor better navigation throughout projects source code.
Patch Changes
- Updated dependencies [
0150dcd070,0150dcd070]:- @pankod/refine-ui-types@0.4.0
3.37.11
Patch Changes
- Fix:
useStepsForm'ssubmitfunction can be overridden
3.37.10
Patch Changes
- Fix:
useStepsForm'ssubmitfunction can be overridden
3.37.9
Patch Changes
- #2421
2b1c5e01b0Thanks @omeraplak! - Fix:useStepsForm'ssubmitfunction can be overridden
3.37.8
Patch Changes
-
Fix: Wrap with
<CanAccess />component to parent sider items<Refine accessControlProvider={{ can: async ({ action, resource }) => { // console.log({ action, resource }); // output: {action: "list", resource: "cms" } return { can: true }; }, }} resources={[ { name: "CMS", }, { name: "posts", parentName: "CMS", list: PostList, }, ]} />
3.37.7
Patch Changes
-
#2411
c61470a2e0Thanks @omeraplak! - Fix: Wrap with<CanAccess />component to parent sider items<Refine accessControlProvider={{ can: async ({ action, resource }) => { // console.log({ action, resource }); // output: {action: "list", resource: "cms" } return { can: true }; }, }} resources={[ { name: "CMS", }, { name: "posts", parentName: "CMS", list: PostList, }, ]} />
3.37.6
Patch Changes
- Fix
useModalFormhook reset issue after successful submit
3.37.5
Patch Changes
- #2403
ef8622cba3Thanks @omeraplak! - FixuseModalFormhook reset issue after successful submit
3.37.4
Patch Changes
- Updated
<Edit/>component's default footer buttons property wrapper with<Space/>component like `
3.37.3
Patch Changes
- Updated
<Edit/>component's default footer buttons property wrapper with<Space/>component like `
3.37.2
Patch Changes
- Updated
<Edit/>component's default footer buttons property wrapper with<Space/>component like `
3.37.1
Patch Changes
- #2343
90b39d4f83Thanks @aliemir! - Updated<Edit/>component's default footer buttons property wrapper with<Space/>component like `
3.37.0
Minor Changes
- Separated
styles.min.cssfile asantd.min.cssandreset.min.cssto make users able to turn offresetstyles when needed.
3.36.0
Minor Changes
- #2312
ba5646c65cThanks @aliemir! - Separatedstyles.min.cssfile asantd.min.cssandreset.min.cssto make users able to turn offresetstyles when needed.
3.35.4
Patch Changes
- Upgraded
react-queryversion to 4.
3.35.3
Patch Changes
- #2260
a97ec592dfThanks @salihozdemir! - Upgradedreact-queryversion to 4.
3.35.2
Patch Changes
- Remove
data-testidprops from buttons in crud components to make use of button test ids presented by@pankod/refine-ui-typespackage.
-
Updated
@pankod/refine-antdand@pankod/refine-muifieldsproperties by using@pankod/refine-ui-typescommonfieldstypes.Updated
@pankod/refine-antdand@pankod/refine-muifieldstests by using@pankod/refine-ui-testscommonfieldstests.Updated
@pankod/refine-ui-testsfieldsproperties.
-
Added
@pankod/refine-ui-testsand@pankod/refine-ui-typespackages. Now, all of button prop types comes from@pankod/refine-ui-typespackage and all of button tests comes from@pankod/refine-ui-testspackage.Thus, button types and tests are managed by
@pankod/refine-ui-typespackage and@pankod/refine-ui-testspackage. -
Updated dependencies []:
- @pankod/refine-ui-types@0.3.0
3.35.1
Patch Changes
- #2216
201846c77dThanks @aliemir! - Removedata-testidprops from buttons in crud components to make use of button test ids presented by@pankod/refine-ui-typespackage.
-
#2216
201846c77dThanks @aliemir! - Updated@pankod/refine-antdand@pankod/refine-muifieldsproperties by using@pankod/refine-ui-typescommonfieldstypes.Updated
@pankod/refine-antdand@pankod/refine-muifieldstests by using@pankod/refine-ui-testscommonfieldstests.Updated
@pankod/refine-ui-testsfieldsproperties.
-
#2216
201846c77dThanks @aliemir! - Added@pankod/refine-ui-testsand@pankod/refine-ui-typespackages. Now, all of button prop types comes from@pankod/refine-ui-typespackage and all of button tests comes from@pankod/refine-ui-testspackage.Thus, button types and tests are managed by
@pankod/refine-ui-typespackage and@pankod/refine-ui-testspackage. -
Updated dependencies [
201846c77d]:- @pankod/refine-ui-types@0.2.0
3.35.0
Minor Changes
- Add React@18 support 🚀
Patch Changes
- Fixed
isMobilecontrol inSidercomponent detectingdesktopdimensions asmobileon route changes
3.34.0
Minor Changes
- #1718
b38620d842Thanks @omeraplak! - Add React@18 support 🚀
Patch Changes
- #2255
b56f43529fThanks @omeraplak! - FixedisMobilecontrol inSidercomponent detectingdesktopdimensions asmobileon route changes
3.33.2
Patch Changes
- Updated
console.warn's to trigger once.
3.33.1
Patch Changes
- #2223
0a215f2000Thanks @salihozdemir! - Updatedconsole.warn's to trigger once.
3.33.0
Minor Changes
-
All of the refine packages have dependencies on the
@pankod/refine-corepackage. So far we have managed these dependencies withpeerDependencies+dependenciesbut this causes issues like #2183. (having more than one @pankod/refine-core version in node_modules and creating different instances)Managing as
peerDependencies+devDependenciesseems like the best way for now to avoid such issues.
3.32.0
Minor Changes
-
#2217
b4aae00f77Thanks @omeraplak! - All of the refine packages have dependencies on the@pankod/refine-corepackage. So far we have managed these dependencies withpeerDependencies+dependenciesbut this causes issues like #2183. (having more than one @pankod/refine-core version in node_modules and creating different instances)Managing as
peerDependencies+devDependenciesseems like the best way for now to avoid such issues.
3.31.0
Minor Changes
- BREAKING Updated
useStepsFormpropisBackValidatewith defaultfalseinstead oftrueto achieve consistency between packages (@pankod/refine-react-hook-form).
Patch Changes
- Fix
useModalhook doesn't returnmodalProps
- Added
hasPaginationsupport touseSimpleListhook.
3.30.0
Minor Changes
- #2206
874b05af37Thanks @aliemir! - BREAKING UpdateduseStepsFormpropisBackValidatewith defaultfalseinstead oftrueto achieve consistency between packages (@pankod/refine-react-hook-form).
Patch Changes
- #2203
3c80308ca1Thanks @omeraplak! - FixuseModalhook doesn't returnmodalProps
- #2201
62c261c2a7Thanks @omeraplak! - AddedhasPaginationsupport touseSimpleListhook.
3.29.0
Minor Changes
-
Added
defaultSetFilterBehaviorprop touseTableanduseSimpleListhooks. ReturnsetFiltersandsetSorterfromuseTableof@pankod/refine-core.This feature will let
@pankod/refine-antdusers to set filters manually and change filter setter logic (defaults tomerge).
Patch Changes
- Updated dependencies []:
3.28.0
Minor Changes
-
#2168
a9196ffe2dThanks @aliemir! - AddeddefaultSetFilterBehaviorprop touseTableanduseSimpleListhooks. ReturnsetFiltersandsetSorterfromuseTableof@pankod/refine-core.This feature will let
@pankod/refine-antdusers to set filters manually and change filter setter logic (defaults tomerge).
Patch Changes
- Updated dependencies [
4d5f6b25e5]:
3.27.6
Patch Changes
-
Fixed the
Unhandled Promiseerror on console foruseFormwith failed requests (Resolves #2156).This fix only catches the errors triggered by submitting the form, requests by invoking
onFinishfunction should be handled by the user.
3.27.5
Patch Changes
-
#2161
8490f3c38fThanks @aliemir! - Fixed theUnhandled Promiseerror on console foruseFormwith failed requests (Resolves #2156).This fix only catches the errors triggered by submitting the form, requests by invoking
onFinishfunction should be handled by the user.
3.27.4
Patch Changes
-
Removed unused cases in
useFileUploadStateand fixed conflicting type inantd#UploadFileStatusinterface. -
Updated dependencies []:
3.27.3
Patch Changes
-
#2135
cf90324cb4Thanks @aliemir! - Removed unused cases inuseFileUploadStateand fixed conflicting type inantd#UploadFileStatusinterface. -
Updated dependencies [
868bb943ad]:
3.27.2
Patch Changes
-
Add
dataProviderNameproperty for<RefreshButton>and<DeleteButton>in<Edit>and<Show>CRUD components - #2096 -
Updated dependencies []:
3.27.1
Patch Changes
-
#2106
10a20d8714Thanks @omeraplak! - AdddataProviderNameproperty for<RefreshButton>and<DeleteButton>in<Edit>and<Show>CRUD components - #2096 -
Updated dependencies [
9d77c63a92,98966b586f]:
3.27.0
Minor Changes
-
Updated
useTablehook withhasPaginationto enable/disable pagination.Implementation
Updated the
useTableaccordingly to the changes in theuseTableof@pankod/refine-core.hasPaginationproperty is being send directly to theuseTableof@pankod/refine-coreto disable pagination.Use Cases
In some data providers, some of the resources might not support pagination which was not supported prior to these changes. To handle the pagination on the client-side or to disable completely, users can set
hasPaginationtofalse.
Patch Changes
-
Fixed
<Link>usage in packages.- <Link href={route} to={route}> - {label} - </Link> + <Link to={route}>{label}</Link>We used to have to pass
hrefandtofor Next.js and React applications, now we just need to passto. refine router providers handle for us. -
Updated dependencies []:
3.26.0
Minor Changes
-
#2050
635cfe9fdbThanks @ozkalai! - UpdateduseTablehook withhasPaginationto enable/disable pagination.Implementation
Updated the
useTableaccordingly to the changes in theuseTableof@pankod/refine-core.hasPaginationproperty is being send directly to theuseTableof@pankod/refine-coreto disable pagination.Use Cases
In some data providers, some of the resources might not support pagination which was not supported prior to these changes. To handle the pagination on the client-side or to disable completely, users can set
hasPaginationtofalse.
Patch Changes
-
#2061
0237725cf3Thanks @salihozdemir! - Fixed<Link>usage in packages.- <Link href={route} to={route}> - {label} - </Link> + <Link to={route}>{label}</Link>We used to have to pass
hrefandtofor Next.js and React applications, now we just need to passto. refine router providers handle for us. -
Updated dependencies [
ecde34a9b3,635cfe9fdb]:
3.25.10
Patch Changes
- Updated the
idparameter type toBaseKeyforshowfunction inuseModalFormhook
-
Updated the
idtype toBaseKeyforisEditingandeditButtonPropsproperties inuseEditableTablehook. -
Updated dependencies []:
3.25.9
Patch Changes
- #2059
326341c94eThanks @omeraplak! - Updated theidparameter type toBaseKeyforshowfunction inuseModalFormhook
-
#2052
cbb09e5b22Thanks @omeraplak! - Updated theidtype toBaseKeyforisEditingandeditButtonPropsproperties inuseEditableTablehook. -
Updated dependencies [
0338ce9d6b]:
3.25.8
Patch Changes
-
Fix missing behavior for dashboard item in deprecated
useMenu -
Updated dependencies []:
3.25.7
Patch Changes
-
#2009
5b893a9bffThanks @aliemir! - Fix missing behavior for dashboard item in deprecateduseMenu -
Updated dependencies [
498c425a0e,498c425a0e,498c425a0e,5b893a9bff]:
3.25.6
Patch Changes
- Update
keys in<Sider/>component to useroute
-
Deprecated
useMenufrom@pankod/refine-antdand replaced with theuseMenufrom@pankod/refine-core -
Updated dependencies []:
3.25.6
Patch Changes
- Could not stop
e.preventDefault()redirection in Next.js<Link>component. So we added ine.stopPropagation()for Ant Design Buttons and Material UI Buttons
3.25.5
Patch Changes
- #1945
592a401924Thanks @omeraplak! - Could not stope.preventDefault()redirection in Next.js<Link>component. So we added ine.stopPropagation()for Ant Design Buttons and Material UI Buttons
3.25.4
Patch Changes
-
@pankod/refine-antdPagination with Next.js Links breaks the app -
Updated dependencies []:
3.25.3
Patch Changes
-
@pankod/refine-antdPagination with Next.js Links breaks the app -
Updated dependencies []:
3.25.2
Patch Changes
-
@pankod/refine-antdPagination with Next.js Links breaks the app -
Updated dependencies []:
3.25.1
Patch Changes
- #1897
b1636033faThanks @aliemir! -@pankod/refine-antdPagination with Next.js Links breaks the app
3.23.2
Patch Changes
-
#1873
2deb19babfThanks @aliemir! - Removed dummy default values from internal contexts. Updated contexts:- Auth
- Access Control
- Notification
- Translation (i18n)
- unsavedWarn
BREAKING:
useGetLocalehook now can returnundefinedinstead of a fallback value ofenin cases ofi18nProviderbeingundefined. -
Updated dependencies [
2deb19babf]:
3.23.1
Patch Changes
-
#1865
5c3392ccd1Thanks @omeraplak! - Fix #1858useTablecreating nested<a>tag in Pagination component -
Updated dependencies [
3281378b11]:
3.23.0
Minor Changes
- #1843
31850119e0Thanks @salihozdemir! - AdduseBreadcrumbhook andBreadrumbcomponent for@pankod/refine-antdpackage
Patch Changes
- Updated dependencies [
31850119e0]: