146 KiB
@refinedev/mui
5.22.0
Minor Changes
-
#6445
4ff4335274d5689ec62127312695b76d692a125aThanks @alicanerdurmaz! - feat: added new prop calledmutationVariablesto<AuthPage />. #6431 From now on, you can pass additional parameters to theauthProvidermethods using themutationVariablesprop of the<AuthPage />component.import { AuthPage } from "@refinedev/antd"; // or "@refinedev/chakra-ui", "@refinedev/mantine", "@refinedev/mui" const MyLoginPage = () => { return ( <AuthPage type="login" // all other types are also supported. // highlight-start mutationVariables={{ foo: "bar", xyz: "abc", }} // highlight-end /> ); }; // 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 // ... }, // ... };
Patch Changes
- Updated dependencies [
4ff4335274d5689ec62127312695b76d692a125a]:- @refinedev/react-hook-form@4.9.1
5.21.0
Minor Changes
-
#6271
2b89fbd136b2134f22d38dff8d4a7f24e57e73dbThanks @Anonymous961! - feat(mui): added loading spinner to<Create />,<Edit />and<Show />componentsThis change introduces a loading spinner to the
<Create />,<Edit />and<Show />components in the@refinedev/muipackage. The spinner provides a visual indication that data is being loaded, improving the user experience bym giving clear feedback during loading states.
5.20.0
Minor Changes
-
#6180
292cebc5a70f19400793292b79d1400fec114591Thanks @alicanerdurmaz! - feat:useAutocomplete'squeryResultanddefaultValueQueryResultis deprecated, usequeryanddefaultValueQueryinstead. #6179import { useAutocomplete } from '@refinedev/mui'; - const { queryResult, defaultValueQueryResult } = useAutocomplete(); + const { query, defaultValueQuery } = useAutocomplete();✨ You can use
@refinedev/codemodto automatically migrate your codebase. Simply run the following command in your project's root directory:npx @refinedev/codemod@latest rename-query-and-mutation-result -
#6161
ff975374efcc05220be4411218c2daf7c19b8995Thanks @ritute! - feat(react-hook-form): update version constraint from^7.30.0to^7.43.5Update react-hook-form version to address runtime subscribe error
-
#6172
4967a51944c139d102fcfc04ada5a42c725ed7c2Thanks @alicanerdurmaz! - feat:useDataGrid'stableQueryResultis deprecated, usetableQueryinstead. #6169import { useDataGrid } from '@refinedev/mui'; - const { tableQueryResult } = useDataGrid(); + const { tableQuery } = useDataGrid();✨ You can use
@refinedev/codemodto automatically migrate your codebase. Simply run the following command in your project's root directory:npx @refinedev/codemod@latest rename-query-and-mutation-result
Patch Changes
-
#6144
f3e06e8ea3cd65bfe8a8eb0e347aa45b93015764Thanks @aliemir! - fix(mui): horizontal scroll is broken inDue to the changes in CSS rendering in latest Google Chrome updates,
<DataGrid />components are not properly sized when used inside<ThemedLayoutV2 />component. Theoverflow: clipproperty in the layout content is causing either miscalculations on the data grid width or causing an overflow on the container and overlapping with the sidebar.This change replaces the
overflow: clipproperty withmin-heightandmin-widthproperties to ensure the layout content is properly rendered and responsive to the content inside it. -
#6151
4b842703dbeb5306fef5c804bc5366e52fa830a0Thanks @Sergio16T! - fix(use-data-grid): incompatible types when using data-grid-prouseDataGrid overide DataGridPropsType onFilterModelChange.
-
#6199
5a8e94aa4afe0faf3ea1de93a4b00e0b44dd1eceThanks @aliemir! - fix(auth-page): fix wrong translation keys intype="register"andtype="forgotPassword"In
type="forgotPassword":"pages.register.buttons.haveAccount"is replaced with"pages.forgotPassword.buttons.haveAccount""pages.login.signin"is replaced with"pages.forgotPassword.signin"
In
type="register":"pages.login.divider"is replaced with"pages.register.divider""pages.login.buttons.haveAccount"is replaced with"pages.register.buttons.haveAccount""pages.login.signin"is replaced with"pages.register.signin"
Wrong keys are kept as fallbacks in case the new keys are not found in the translation file. If you are using those keys in your project, make sure to update them accordingly. Fallback keys will be removed in future releases.
-
#6217
aefd093cfd85096fdac36cd25073d14dfb12094fThanks @webscriptmaster! - fix(date-field): falsy values should render empty stringPreviously,
<DateField value={undefined} />was rendering the current date. After this change, it will render empty string if a falsy value is provided. -
Updated dependencies [
ff975374efcc05220be4411218c2daf7c19b8995,a93eed09796b780557f6fecee0c2f1e7b4f9e93b]:- @refinedev/react-hook-form@4.9.0
5.19.0
Minor Changes
-
#5989
b86648f42cd849a506e4c32d740de26b72681f72Thanks @lnikitadobrenkol! - feat: editable feature for MUI Data Grid #5656It is now possible to make MUI Data Grid editable by setting editable property on specific column.
Resolves #5656
-
#6071
853bef97ed7baf59e74c98fc54c0ed11624fb491Thanks @Dominic-Preap! - feat: addselectedOptionsOrderinuseSelectNow with
selectedOptionsOrder, you can sortselectedOptionsat the top of list when useuseSelectwithdefaultValue.Resolves #6061
Patch Changes
-
#6021
55cd0662b1e3ff8f8410eba812e80130afe75d14Thanks @JayBhensdadia! - fix: ensure Sider component handles various resource name formats correctlyUpdated Sider component to correctly handle lowercase and camelcased resource names, enhancing usability and functionality.
Fixes #6004
-
#6064
b516c18b828ba8823561d0fefc4afe02b45ce332Thanks @aliemir! - fix(auto-save-indicator): replace reservedkeyprop withtranslationKeyin components<AutoSaveIndicator />components from UI libraries have been using a<Message />component internally that uses akeyprop. Sincekeyis a reserved prop in React, it was causing a warning in the console. This change replaces thekeyprop withtranslationKeyto avoid the warning.Resolves #6067
5.17.0
Minor Changes
-
6bd14228760d3e1e205ea9248e427f9afa2ec046Thanks @BatuhanW! - feat: use global values by default for app title and app iconNow
<Refine />component acceptsoptions.titleprop that can be used to set app icon and app name globally. For<ThemedLayoutV2 />and<AuthPage />components, these values will be used by default. While users can useoptions.titleto pass global values for app icon and app name, option to override through<ThemedTitleV2 />component is still available for users to override these values in specific use cases.import { Refine } from "@refinedev/core"; const MyIcon = () => <svg>{/* ... */}</svg>; const App = () => { return ( <Refine options={{ title: { icon: <MyIcon />, text: "Refine App", }, }} > {/* ... */} </Refine> ); };Then,
<ThemedLayoutV2 />and<AuthPage />components will display<MyIcon />and"Refine App"as app icon and app name respectively.
Patch Changes
-
6bd14228760d3e1e205ea9248e427f9afa2ec046Thanks @BatuhanW! - fix:transformMuiOperatorToCrudOperatorreturn type is wrong.This PR fixes the return type of
transformMuiOperatorToCrudOperatorfunction. It has return typeExclude<CrudOperators, "or">but it also should excludeandoperator to satisfyLogicalFiltertype. -
6bd14228760d3e1e205ea9248e427f9afa2ec046Thanks @BatuhanW! - chore: addedtypequalifier to imports used as type only.- import { A } from "./example.ts"; + import type { A } from "./example.ts"; -
Updated dependencies [
6bd14228760d3e1e205ea9248e427f9afa2ec046,6bd14228760d3e1e205ea9248e427f9afa2ec046]:- @refinedev/ui-types@1.22.9
- @refinedev/react-hook-form@4.8.20
5.16.0
Minor Changes
-
#5945
903ea231538b00ce02ddc9394c72848ec1e90772Thanks @aliemir! - feat: use global values by default for app title and app iconNow
<Refine />component acceptsoptions.titleprop that can be used to set app icon and app name globally. For<ThemedLayoutV2 />and<AuthPage />components, these values will be used by default. While users can useoptions.titleto pass global values for app icon and app name, option to override through<ThemedTitleV2 />component is still available for users to override these values in specific use cases.import { Refine } from "@refinedev/core"; const MyIcon = () => <svg>{/* ... */}</svg>; const App = () => { return ( <Refine options={{ title: { icon: <MyIcon />, text: "Refine App", }, }} > {/* ... */} </Refine> ); };Then,
<ThemedLayoutV2 />and<AuthPage />components will display<MyIcon />and"Refine App"as app icon and app name respectively.
Patch Changes
-
#5945
5b1230b63bf07034e81d0c0116fcc4ab14f7537cThanks @aliemir! - fix:transformMuiOperatorToCrudOperatorreturn type is wrong.This PR fixes the return type of
transformMuiOperatorToCrudOperatorfunction. It has return typeExclude<CrudOperators, "or">but it also should excludeandoperator to satisfyLogicalFiltertype. -
#5945
90930b381d8d369c63bc59beedf69c391875166dThanks @aliemir! - chore: addedtypequalifier to imports used as type only.- import { A } from "./example.ts"; + import type { A } from "./example.ts"; -
Updated dependencies [
903ea231538b00ce02ddc9394c72848ec1e90772,90930b381d8d369c63bc59beedf69c391875166d]:- @refinedev/ui-types@1.22.8
- @refinedev/react-hook-form@4.8.19
5.15.1
Patch Changes
-
#5928
db9756e7908Thanks @aliemir! - fix: type errors on typescript <5Due to the changes in #5881, typescript users below version 5 are facing type errors. This PR fixes the type errors by updating the file extensions required by the
d.mtsdeclaration files to provide a compatible declarations for both typescript 4 and 5 users. -
Updated dependencies [
db9756e7908]:- @refinedev/react-hook-form@4.8.18
- @refinedev/ui-types@1.22.7
5.15.0
Minor Changes
-
#5868
a82ef6afc15Thanks @Ac-Srikanth! - feat: add message prop for required auth input fields for the above packages.Now you can provide custom required messages with translate feature for all auth input fields(Login, register, forget password,update password).
Resolves #5855
Patch Changes
-
#5876
4940b6106b2Thanks @Yash-271120! - feat: add ability to customize anchor origin from snackbar providerPreviously,
useNotificationProviderused hardcodedanchorOriginanddisableWindowBlurListenervalues, preventing users to customize these values. This change moves these values to<RefineSnackbarProvider />as default props to allow users to customize them when needed.Resolves #5847
-
#5881
ba719f6ea26Thanks @aliemir! - fix: declaration files in node10, node16 and nodenext module resolutions -
Updated dependencies [
ba719f6ea26]:- @refinedev/react-hook-form@4.8.17
- @refinedev/ui-types@1.22.6
5.14.6
Patch Changes
-
#5737
4e8188a6652Thanks @aliemir! - chore: updated content ofREADME.mdto include installation, usage and scaffolding instructions. -
#5765
0c197d82393Thanks @aliemir! - fix:dayjsimports in ESM bundlesdayjs imports in ESM bundles were not being correctly resolved, this has been fixed by adding an esbuild plugin to replace the imports with the correct path for ESM bundles.
-
#5765
0c197d82393Thanks @aliemir! - Fixed thelodash-esimports for ESM builds to access the exports properly. -
#5765
0c197d82393Thanks @aliemir! - refactor: package bundles and package.json configuration for exportsPreviously, Refine packages had exported ESM and CJS bundles with same
.jsextension and same types for both with.d.tsextensions. This was causing issues with bundlers and compilers to pick up the wrong files for the wrong environment. Now we're outputting ESM bundles with.mjsextension and CJS bundles with.cjsextension. Also types are now exported with both.d.mtsand.d.ctsextensions.In older versions ESM and CJS outputs of some packages were using wrong imports/requires to dependencies causing errors in some environments. This will be fixed since now we're also enforcing the module type with extensions.
Above mentioned changes also supported with changes in
package.jsonfiles of the packages to support the new extensions and types. All Refine packages now includeexportsfields in their configuration to make sure the correct bundle is picked up by the bundlers and compilers.In context of
@refinedev/muithese changes may cause unexpected issues due to misconfigured bundlers/compilers in some environments.In projects using
react-scripts, you may have issues with import statements in the@refinedev/mui's ESM bundle, this should be resolved by customizing the webpack configuration of the project by allowing imports without fully specifying the extensions.An example configuration with
@craco/cracois as follows:// craco.config.js module.exports = { webpack: { configure: { module: { rules: [ { test: /.m?js$/, resolve: { fullySpecified: false, }, }, ], }, }, }, };In Remix projects using
@refinedev/muiyou may encounter issues due to ESM issues from Material UI packages, please refer to this issue if you have any problems related to this: https://github.com/mui/material-ui/issues/39765If the error is related with
@refinedev/muispecifically, settingserverModuleFormatto"cjs"will help getting rid of the related errors. -
#5754
56ed144a0f5Thanks @alicanerdurmaz! - chore: TypeScript upgraded to v5.x.x. #5752 -
#5765
0c197d82393Thanks @aliemir! - fix: broken eslint plugin for removing test ids from componentsEslint plugin to remove test ids from components was broken and might miss some test ids to be included in the bundles.
-
#5765
0c197d82393Thanks @aliemir! - fix:@mui/icons-materialimports from ESM builds.@mui/icons-materialimports from ESM builds were not being correctly resolved, this has been fixed by adding an esbuild plugin to replace the imports with the correct path for ESM bundles. -
#5808
10ba9c34490Thanks @aliemir! - refactor: moved internal logic of buttons to respective hooks from@refinedev/coreWe've moved the internal logic of buttons to their respective hooks in the
@refinedev/corepackage to ensure consistency and reduce duplication. This change will make it easier to manage and maintain the buttons across different UI integrations of Refine. This will also benefit the users who want to customize the buttons viaswizzleoption or create their own buttons withouth having to duplicate the logic. -
Updated dependencies [
56ed144a0f5,0c197d82393,0c197d82393,56ed144a0f5,38f129f40ee,404b2ef5e1b]:- @refinedev/react-hook-form@4.8.16
- @refinedev/ui-types@1.22.5
5.14.5
Patch Changes
-
#5695
79865affa1cThanks @BatuhanW! - chore: apply biome format and fix lint errors. -
#5725
b216eb35458Thanks @beg1c! - fix: issue with dropdown button on ThemedSiderV2 #5724There was unexpected margin on dropdown button at ThemedSiderV2.
Fixes #5724
-
Updated dependencies [
79865affa1c]:- @refinedev/react-hook-form@4.8.15
5.14.4
Patch Changes
-
#5573
546df06482Thanks @alicanerdurmaz! - chore: add "use client" directive to exported files to work with nextjs app router -
Updated dependencies [
546df06482]:- @refinedev/react-hook-form@4.8.14
5.14.3
Patch Changes
-
#5568
f1244819adThanks @alicanerdurmaz! - feat:notificationProvideris deprecated due to consistent naming convention between UI libraries. Please useuseNotificationProviderexport as your notification provider. #5567 -
#5564
1bb7d30888Thanks @alicanerdurmaz! - feat:<ThemedTitleV2 />'sdefault icon updated.
5.14.2
Patch Changes
-
#5430
cfe78749ffThanks @alicanerdurmaz! - fix:useNotification.close("notification-key")not working. Resolves #5431 -
#5465
00e00cbd98Thanks @aliemir! - Fixed the type issue betweenremark-gfmandreact-markdown. #5463
5.14.1
Patch Changes
-
#5425
190af9fce2Thanks @aliemir! - Updated@refinedev/corepeer dependencies to latest (^4.46.1) -
Updated dependencies [
190af9fce2]:- @refinedev/react-hook-form@4.8.13
- @refinedev/ui-types@1.22.4
5.14.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
-
#5325
7ff54b2060Thanks @alicanerdurmaz! - fix:<AuthPage />styling issues on mobile screens.chore: new tests are added to
<AuthPage />.
5.13.18
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.13.17
Patch Changes
-
#5117
0b050f97b55Thanks @BatuhanW! - fix: map missing operators for useDataGrid hook.- number field, added
isAnyOfoperator. - string field, added
startsWith,endsWithandisAnyOfoperators.
fix:
isNullandisNotNulldoesn't trigger request.When filter has a value
"", it's ignored and doesn't trigger request. PreviouslyisNullandisNotNulloperators weren't handled correctly and had value""by default. With this change, these operators hastruevalue, so they won't be ignored. - number field, added
5.13.16
Patch Changes
-
#5117
0b050f97b55Thanks @BatuhanW! - fix: map missing operators for useDataGrid hook.- number field, added
isAnyOfoperator. - string field, added
startsWith,endsWithandisAnyOfoperators.
fix:
isNullandisNotNulldoesn't trigger request.When filter has a value
"", it's ignored and doesn't trigger request. PreviouslyisNullandisNotNulloperators weren't handled correctly and had value""by default. With this change, these operators hastruevalue, so they won't be ignored. - number field, added
5.13.15
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. -
#4974
a7b32dbf137Thanks @IkumaTadokoro! - fix: add missing DataGrid operator conversion casesMUI defines the operator for each column types in here. However, there were not enough conversion cases for the following operators, so this changes added them to the mapping.
- isAnyof: used in Numeric, SingleSelect, String
- contains: used in String,
- startsWith: used in String
- endsWith: used in String
5.13.14
Patch Changes
-
#4974
a7b32dbf137Thanks @IkumaTadokoro! - fix: add missing DataGrid operator conversion casesMUI defines the operator for each column types in here. However, there were not enough conversion cases for the following operators, so this changes added them to the mapping.
- isAnyof: used in Numeric, SingleSelect, String
- contains: used in String,
- startsWith: used in String
- endsWith: used in String
5.13.13
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.13.12
Patch Changes
-
#5022
80513a4e42fThanks @BatuhanW! - chore: update README.md- fix grammar errors.
- make all README.md files consistent.
- add code example code snippets.
-
Updated dependencies [
80513a4e42f]:- @refinedev/react-hook-form@4.8.10
5.13.11
Patch Changes
-
#5022
80513a4e42fThanks @BatuhanW! - chore: update README.md- fix grammar errors.
- make all README.md files consistent.
- add code example code snippets.
-
Updated dependencies [
80513a4e42f]:- @refinedev/react-hook-form@4.8.9
5.13.10
Patch Changes
-
#4964
85b1ac0db5fThanks @BatuhanW! - chore: update @refinedev/core peer dependency versions. -
Updated dependencies [
85b1ac0db5f]:- @refinedev/react-hook-form@4.8.8
5.13.9
Patch Changes
-
#4964
85b1ac0db5fThanks @BatuhanW! - chore: update @refinedev/core peer dependency versions. -
Updated dependencies [
85b1ac0db5f]:- @refinedev/react-hook-form@4.8.7
5.13.8
Patch Changes
- #4951
04837c62077Thanks @aliemir! - - Update build configuration foresbuildto use the shared plugins.- Fix the lodash replacement plugin to skip redundant files.
- Updated dependencies [
04837c62077]:
5.13.7
Patch Changes
- #4951
04837c62077Thanks @aliemir! - - Update build configuration foresbuildto use the shared plugins.- Fix the lodash replacement plugin to skip redundant files.
- Updated dependencies [
04837c62077]:
5.13.6
Patch Changes
-
#4948
8e5efffbb23Thanks @aliemir! - Keep the hook and component names in builds for better debugging. -
Updated dependencies [
8e5efffbb23]:- @refinedev/react-hook-form@4.8.4
5.13.5
Patch Changes
-
#4948
8e5efffbb23Thanks @aliemir! - Keep the hook and component names in builds for better debugging. -
Updated dependencies [
8e5efffbb23]:- @refinedev/react-hook-form@4.8.3
5.13.4
Patch Changes
- #4823
68592b67357Thanks @alicanerdurmaz! - fixed: Material UI<List />,<Show />,<Edit />,<Create />component's header buttons not being aligned properly. #4816
5.13.3
Patch Changes
- #4823
68592b67357Thanks @alicanerdurmaz! - fixed: Material UI<List />,<Show />,<Edit />,<Create />component's header buttons not being aligned properly. #4816
5.13.2
Patch Changes
- #4788
38680378c7aThanks @salihozdemir! - fix: render user avatar and name in<HeaderV2 />based on user data fromauthProvider.
5.13.1
Patch Changes
- #4788
38680378c7aThanks @salihozdemir! - fix: render user avatar and name in<HeaderV2 />based on user data fromauthProvider.
5.13.0
Minor Changes
- #4775
3052fb22449Thanks @alicanerdurmaz! - fixed:<RefreshButton />does not refresh content #4618. From now,<RefreshButton />usesuseInvalidatehook to refresh data instead ofuseOne.
Patch Changes
- Updated dependencies [
3052fb22449]:
5.12.0
Minor Changes
- #4775
3052fb22449Thanks @alicanerdurmaz! - fixed:<RefreshButton />does not refresh content #4618. From now,<RefreshButton />usesuseInvalidatehook to refresh data instead ofuseOne.
Patch Changes
- Updated dependencies [
3052fb22449]:
5.11.2
Patch Changes
-
#4774
030a9dda75aThanks @yildirayunlu! - feat: unlock and upgrade@mui/materialto^5.14.2 -
Updated dependencies [
c757355da60]:- @refinedev/react-hook-form@4.8.2
5.11.1
Patch Changes
-
#4774
030a9dda75aThanks @yildirayunlu! - feat: unlock and upgrade@mui/materialto^5.14.2 -
Updated dependencies [
c757355da60]:- @refinedev/react-hook-form@4.8.1
5.11.0
Minor Changes
- #4741
026ccf34356Thanks @aliemir! - AddedsideEffects: falsetopackage.jsonto help bundlers tree-shake unused code.
Patch Changes
- Updated dependencies [
026ccf34356]:- @refinedev/react-hook-form@4.8.0
5.10.0
Minor Changes
- #4741
026ccf34356Thanks @aliemir! - AddedsideEffects: falsetopackage.jsonto help bundlers tree-shake unused code.
Patch Changes
- Updated dependencies [
026ccf34356]:- @refinedev/react-hook-form@4.7.0
5.9.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({ refineCoreProps: { 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/mui"; const { autoSaveProps } = useForm({ refineCoreProps: { autoSave: { enabled: true, debounce: 2000, // not required, default is 1000 }, } }); return ( <div> <AutoSaveIndicator {...autoSaveProps}> </div> );
Patch Changes
- Updated dependencies [
96af6d25b7a,f8891ead2bd]:- @refinedev/react-hook-form@4.6.0
- @refinedev/ui-types@1.20.0
5.8.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({ refineCoreProps: { 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/mui"; const { autoSaveProps } = useForm({ refineCoreProps: { autoSave: { enabled: true, debounce: 2000, // not required, default is 1000 }, } }); return ( <div> <AutoSaveIndicator {...autoSaveProps}> </div> );
Patch Changes
- Updated dependencies [
96af6d25b7a,f8891ead2bd]:- @refinedev/react-hook-form@4.5.0
- @refinedev/ui-types@1.19.0
5.7.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/>. -
Updated dependencies [
c7872ca621f]:
5.6.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/>. -
Updated dependencies [
c7872ca621f]:
5.5.0
Minor Changes
-
#4523
18d446b1069Thanks @yildirayunlu! - feat: implement following hooks haveuseLoadingOvertimehook
Patch Changes
-
#4557
781050e56a4Thanks @yildirayunlu! - fix:Buttontext color onRefineThemes -
#4527
ceadcd29fc9Thanks @salihozdemir! - fix: prioritization of forgottenidentifierIf
identifieris provided, it will be used instead ofname.import { DeleteButton } from "@refinedev/mui"; <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. -
Updated dependencies [
9a895ea39dc,ceadcd29fc9]:- @refinedev/react-hook-form@4.4.2
5.4.0
Minor Changes
-
#4523
18d446b1069Thanks @yildirayunlu! - feat: implement following hooks haveuseLoadingOvertimehook
Patch Changes
-
#4557
781050e56a4Thanks @yildirayunlu! - fix:Buttontext color onRefineThemes -
#4527
ceadcd29fc9Thanks @salihozdemir! - fix: prioritization of forgottenidentifierIf
identifieris provided, it will be used instead ofname.import { DeleteButton } from "@refinedev/mui"; <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. -
Updated dependencies [
9a895ea39dc,ceadcd29fc9]:- @refinedev/react-hook-form@4.4.1
5.3.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.2.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.1.0
Minor Changes
-
#4454
4bae8add99fThanks @aliemir! - Updated the@mui/x-data-griddependency to the latest version (v6). This update introduces some changes to the existing codebases which are addressed in Material UI's migration guide for@mui/x-data-gridfromv5tov6. We've created a simple migration guide to navigate refine users through the changes that might be required in their codebases. While this guide does not cover all the changes, it will help you get started with the migration process.Breaking Changes
useDataGridno longer returnspage,pageSize,onPageChangeandonPageSizeChange. According to the changes in theDataGridAPI,useDataGridnow returnspaginationModelandonPaginationModelChangeprops which are used to control the pagination state of theDataGridand contains the previous logic ofpage,pageSize,onPageChangeandonPageSizeChange.With this release, the peer dependency of
@mui/x-data-gridis updated to^6.6.0.
Patch Changes
-
#4454
4bae8add99fThanks @aliemir! - Added missing@contextalias to the declaration configuration, this was causing buildtime errors when creating declarations for the package. -
#4454
4bae8add99fThanks @aliemir! - Addedoverflow: autoandoverflow: clip(if supported) properties to the content container of theThemedLayoutV2to make sure theDataGridcomponent doesn't break the layout.
5.0.0
Major Changes
-
#4454
4bae8add99fThanks @aliemir! - Updated the@mui/x-data-griddependency to the latest version (v6). This update introduces some changes to the existing codebases which are addressed in Material UI's migration guide for@mui/x-data-gridfromv5tov6. We've created a simple migration guide to navigate refine users through the changes that might be required in their codebases. While this guide does not cover all the changes, it will help you get started with the migration process.Breaking Changes
useDataGridno longer returnspage,pageSize,onPageChangeandonPageSizeChange. According to the changes in theDataGridAPI,useDataGridnow returnspaginationModelandonPaginationModelChangeprops which are used to control the pagination state of theDataGridand contains the previous logic ofpage,pageSize,onPageChangeandonPageSizeChange.With this release, the peer dependency of
@mui/x-data-gridis updated to^6.6.0.
Patch Changes
-
#4454
4bae8add99fThanks @aliemir! - Added missing@contextalias to the declaration configuration, this was causing buildtime errors when creating declarations for the package. -
#4454
4bae8add99fThanks @aliemir! - Addedoverflow: autoandoverflow: clip(if supported) properties to the content container of theThemedLayoutV2to make sure theDataGridcomponent doesn't break the layout.
4.18.2
Patch Changes
- #4431
c29a3618cf6Thanks @aliemir! - Updated the TSDoc comments to fix the broken links in the documentation.
4.18.1
Patch Changes
- #4431
c29a3618cf6Thanks @aliemir! - Updated the TSDoc comments to fix the broken links in the documentation.
4.18.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/mui"; const { siderCollapsed, setSiderCollapsed, mobileSiderOpen, setMobileSiderOpen, } = useThemedLayoutContext();
4.17.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/mui"; const { siderCollapsed, setSiderCollapsed, mobileSiderOpen, setMobileSiderOpen, } = useThemedLayoutContext();
4.16.4
Patch Changes
- #4355
bf4011f1d00Thanks @aliemir! - Updated@mui/materialand@mui/icons-materialimports to use subpath imports.
4.16.3
Patch Changes
- #4355
bf4011f1d00Thanks @aliemir! - Updated@mui/materialand@mui/icons-materialimports to use subpath imports.
4.16.2
Patch Changes
- #4316
4690c627e05Thanks @yildirayunlu! - fix: fixedclassNamefor easier selection of all buttons and titles of CRUD components
4.16.1
Patch Changes
- #4316
4690c627e05Thanks @yildirayunlu! - fix: fixedclassNamefor easier selection of all buttons and titles of CRUD components
4.16.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/mui"; 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> ); };
Patch Changes
-
#4312
9a5f79186c1Thanks @yildirayunlu! - feat: addedclassNamefor easier selection of all buttons and titles of CRUD components -
Updated dependencies [
0c569f42b4e,e6eb4dea627,9a5f79186c1]:- @refinedev/ui-types@1.16.0
- @refinedev/react-hook-form@4.4.0
4.15.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/mui"; 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> ); };
Patch Changes
-
#4312
9a5f79186c1Thanks @yildirayunlu! - feat: addedclassNamefor easier selection of all buttons and titles of CRUD components -
Updated dependencies [
0c569f42b4e,e6eb4dea627,9a5f79186c1]:- @refinedev/ui-types@1.15.0
- @refinedev/react-hook-form@4.3.0
4.14.7
Patch Changes
-
#4295
7f24a6a2b14Thanks @salihozdemir! - chore: bump to latest version of@refinedev/ui-types -
Updated dependencies [
dc62abc890f]:
4.14.6
Patch Changes
- #4295
7f24a6a2b14Thanks @salihozdemir! - chore: bump to latest version of@refinedev/ui-types
4.14.5
Patch Changes
-
#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> ); }; -
#4272
420d2442741Thanks @salihozdemir! - fix: updated the sider styles to solve issues that occur when there are too many items in the sider
4.14.4
Patch Changes
-
#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> ); }; -
#4272
420d2442741Thanks @salihozdemir! - fix: updated the sider styles to solve issues that occur when there are too many items in the sider
4.14.3
Patch Changes
-
#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> ); }; -
#4272
420d2442741Thanks @salihozdemir! - fix: updated the sider styles to solve issues that occur when there are too many items in the sider
4.14.2
Patch Changes
- #4255
9694245718cThanks @alicanerdurmaz! - fixed:ThemedLayoutContextProviderimport path in internal usage.
4.14.1
Patch Changes
- #4255
9694245718cThanks @alicanerdurmaz! - fixed:ThemedLayoutContextProviderimport path in internal usage.
4.14.0
Minor Changes
-
#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> -
#4209
3f4b5fef76fThanks @yildirayunlu! - feat: addisStickyprop toThemedHeaderV2component. Default istrue.import { ThemedHeaderV2, ThemedLayoutV2 } from "@refinedev/mui"; const CustomHeader = () => <ThemedHeaderV2 isSticky={false} />; const App = () => ( <Refine> // ... <ThemedLayoutV2 Header={CustomHeader}> <Outlet /> </ThemedLayoutV2> // ... </Refine> );
Patch Changes
- Updated dependencies [
c99bc0ad7f7,3f4b5fef76f]:
4.13.0
Minor Changes
-
#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> -
#4209
3f4b5fef76fThanks @yildirayunlu! - feat: addisStickyprop toThemedHeaderV2component. Default istrue.import { ThemedHeaderV2, ThemedLayoutV2 } from "@refinedev/mui"; const CustomHeader = () => <ThemedHeaderV2 isSticky={false} />; const App = () => ( <Refine> // ... <ThemedLayoutV2 Header={CustomHeader}> <Outlet /> </ThemedLayoutV2> // ... </Refine> );
Patch Changes
- Updated dependencies [
c99bc0ad7f7,3f4b5fef76f]:
4.12.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":
Patch Changes
- Updated dependencies [
b992e11e338]:- @refinedev/react-hook-form@4.2.2
4.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":
Patch Changes
- Updated dependencies [
b992e11e338]:- @refinedev/react-hook-form@4.2.1
4.10.3
Patch Changes
-
#4198
6081efbc26bThanks @salihozdemir! - fix:useAutocompletenow resets the search value when the option is selected -
Updated dependencies [
deec38a034a]:
4.10.2
Patch Changes
-
#4198
6081efbc26bThanks @salihozdemir! - fix:useAutocompletenow resets the search value when the option is selected -
Updated dependencies [
deec38a034a]:- @refinedev/ui-types@1.9.0
4.10.1
Patch Changes
-
#4198
6081efbc26bThanks @salihozdemir! - fix:useAutocompletenow resets the search value when the option is selected -
Updated dependencies [
deec38a034a]:- @refinedev/ui-types@1.8.0
4.10.0
Minor Changes
-
#4153
8d9c408d089Thanks @yildirayunlu! - feat: addThemedLayoutV2andHamburgerMenucomponentThemeLayoutis deprecated. AddedThemedLayoutV2instead. This update fixed some UI problems in the layout. Also, with the new<HamburgerMenu />component, it's easier to collapse/uncollapse theSider.See here for detailed migration guideline.
Patch Changes
- Updated dependencies [
8d9c408d089]:- @refinedev/ui-types@1.7.0
4.9.0
Minor Changes
-
#4153
8d9c408d089Thanks @yildirayunlu! - feat: addThemedLayoutV2andHamburgerMenucomponentThemeLayoutis deprecated. AddedThemedLayoutV2instead. This update fixed some UI problems in the layout. Also, with the new<HamburgerMenu />component, it's easier to collapse/uncollapse theSider.See here for detailed migration guideline.
Patch Changes
- Updated dependencies [
8d9c408d089]:- @refinedev/ui-types@1.6.0
4.8.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. -
Updated dependencies [
1c13602e308]:- @refinedev/react-hook-form@4.2.0
4.7.2
Patch Changes
-
#4115
1d44ef15575Thanks @yildirayunlu! - Fixed icon and list item spacing for Material UI -
Updated dependencies [
1f310bd7b69]:- @refinedev/react-hook-form@4.1.6
4.7.1
Patch Changes
-
#4115
1d44ef15575Thanks @yildirayunlu! - Fixed icon and list item spacing for Material UI -
Updated dependencies [
1f310bd7b69]:- @refinedev/react-hook-form@4.1.5
4.7.0
Minor Changes
- #4072
fad40e6237fThanks @alicanerdurmaz! - -<Layout>is deprecated. use<ThemedLayout>instead with 100% backward compatibility. - https://refine.dev/docs/api-reference/mui/components/mui-themed-layout
Patch Changes
- Updated dependencies [
afdaed3dd83]:- @refinedev/react-hook-form@4.1.4
4.6.0
Minor Changes
- #4072
fad40e6237fThanks @alicanerdurmaz! - -<Layout>is deprecated. use<ThemedLayout>instead with 100% backward compatibility. - https://refine.dev/docs/api-reference/mui/components/mui-themed-layout
Patch Changes
- Updated dependencies [
afdaed3dd83]:- @refinedev/react-hook-form@4.1.3
4.5.10
Patch Changes
222f3baacc6Thanks @omeraplak! - fixed 'Sign in' link on the ForgotPassword page
4.5.9
Patch Changes
222f3baacc6Thanks @omeraplak! - fixed 'Sign in' link on the ForgotPassword page
4.5.8
Patch Changes
- #4033
08955914473Thanks @alicanerdurmaz! - - Fixed: Sider toggle button color - The color of the toggle button in the<ThemedSider>and<ThemedHeader>does not meet the contrast ratio. This is now fixed.
4.5.7
Patch Changes
- #4033
08955914473Thanks @alicanerdurmaz! - - Fixed: Sider toggle button color - The color of the toggle button in the<ThemedSider>and<ThemedHeader>does not meet the contrast ratio. This is now fixed.
4.5.6
Patch Changes
- #4024
dc6d2311eb7Thanks @alicanerdurmaz! - - Added: defaultgap: 8pxto<ThemedTitle>component.
4.5.5
Patch Changes
- #4024
dc6d2311eb7Thanks @alicanerdurmaz! - - Added: defaultgap: 8pxto<ThemedTitle>component.
4.5.4
Patch Changes
- #3974
4dcc20d6a60Thanks @salihozdemir! - Deprecated theWelcomePagecomponent. It'll be used from@refinedev/coreinstead.
4.5.3
Patch Changes
- #3974
4dcc20d6a60Thanks @salihozdemir! - Deprecated theWelcomePagecomponent. It'll be used from@refinedev/coreinstead.
4.5.2
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
4.5.1
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
4.5.0
Minor Changes
-
#3949
836b06a2f67Thanks @alicanerdurmaz! - -RefineThemesadded. It contains predefined colors for the Material UI components.import { Refine } from "@refinedev/core"; import { RefineThemes } from "@refinedev/mui"; import { ThemeProvider } from "@mui/material/styles"; import dataProvider from "@refinedev/simple-rest"; const App = () => { // --- return ( <ThemeProvider theme={RefineThemes.MagentaDark}> <Refine dataProvider={dataProvider("YOUR_API_URL")}> {/** your app here */} </Refine> </ConfigProvider> ); };- default title with icon added to
AuthPage. It uses<ThemedTitle>component from@refinedev/mui. You can remove it by settingtitleprop tofalse.
import { AuthPage } from "@refinedev/mui"; const MyAuthPage = () => { return <AuthPage title={false} />; };titleprop added toAuthPage'srenderContentprop to use in the custom content.
import { AuthPage } from "@refinedev/mui"; const MyAuthPage = () => { return ( <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. -
<AuthPage>component uses colors from the theme. -
<ThemedTitle>added toAuthPage
- default title with icon added to
Patch Changes
- #3956
c54714ed9abThanks @salihozdemir! - Fixed an issue where the<NumberField />component would throw an error if thevalueprop was set toundefined.
4.4.0
Minor Changes
-
#3949
836b06a2f67Thanks @alicanerdurmaz! - -RefineThemesadded. It contains predefined colors for the Material UI components.import { Refine } from "@refinedev/core"; import { RefineThemes } from "@refinedev/mui"; import { ThemeProvider } from "@mui/material/styles"; import dataProvider from "@refinedev/simple-rest"; const App = () => { // --- return ( <ThemeProvider theme={RefineThemes.MagentaDark}> <Refine dataProvider={dataProvider("YOUR_API_URL")}> {/** your app here */} </Refine> </ConfigProvider> ); };- default title with icon added to
AuthPage. It uses<ThemedTitle>component from@refinedev/mui. You can remove it by settingtitleprop tofalse.
import { AuthPage } from "@refinedev/mui"; const MyAuthPage = () => { return <AuthPage title={false} />; };titleprop added toAuthPage'srenderContentprop to use in the custom content.
import { AuthPage } from "@refinedev/mui"; const MyAuthPage = () => { return ( <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. -
<AuthPage>component uses colors from the theme. -
<ThemedTitle>added toAuthPage
- default title with icon added to
Patch Changes
- #3956
c54714ed9abThanks @salihozdemir! - Fixed an issue where the<NumberField />component would throw an error if thevalueprop was set toundefined.
4.3.2
Patch Changes
-
#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
4.3.1
Patch Changes
-
#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
4.3.0
Minor Changes
- #3912
0ffe70308b2Thanks @alicanerdurmaz! - -titleprop added toAuthPage'srenderContentprop to use in the custom content.titleprop added toAuthPageto render a custom title.- ⚠️ These features have not been implemented yet. Only types were added. It will be implemented in the next release.
Patch Changes
- Updated dependencies [
0ffe70308b2]:- @refinedev/ui-types@1.3.0
4.2.0
Minor Changes
- #3912
0ffe70308b2Thanks @alicanerdurmaz! - -titleprop added toAuthPage'srenderContentprop to use in the custom content.titleprop added toAuthPageto render a custom title.- ⚠️ These features have not been implemented yet. Only types were added. It will be implemented in the next release.
Patch Changes
- Updated dependencies [
0ffe70308b2]:- @refinedev/ui-types@1.2.0
4.1.0
Minor Changes
-
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!
🪄 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/muipackage. UseuseMenufrom@refinedev/corepackage instead.- import { useMenu } from "@refinedev/mui"; + import { useMenu } from "@refinedev/core"; -
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk!
metaprop is added. To ensure backward compatibility,metaDataprop will be used ifmetaprop is not provided. -
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.Removed props
ignoreAccessControlProviderprop is removed from buttons.cardProps,cardHeaderProps,cardContentProps,cardActionsPropsandactionButtonsprops are removed from CRUD component.
-
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk! All Material UI components re-exported from
@refinedev/muihave been removed. You should import them from Material UI packages directly.If the packages are not installed, you can install them with your package manager:
You don't have to install all of these packages below. Only install the packages you use.
npm install @mui/material @emotion/react @emotion/styled @mui/lab @mui/x-data-grid # or pnpm add @mui/material @emotion/react @emotion/styled @mui/lab @mui/x-data-grid # or yarn add @mui/material @emotion/react @emotion/styled @mui/lab @mui/x-data-gridAfter that, you can import them from related packages directly.
- import { - Box, - NumberField, - Stack, - Typography, - ThemeProvider, - DataGrid - LoadingButton, - } from "@refinedev/mui"; + import { NumberField } from "@refinedev/mui"; + import { ThemeProvider } from "@mui/material/styles"; + import { Box, Stack, Typography } from "@mui/material"; + import { DataGrid } from "@mui/x-data-grid"; + import { LoadingButton } from "@mui/lab"; -
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk!
<ReadyPage>isnow deprecated.- Created a
<WelcomePage>component to welcome users.
-
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk!
useAutocomplete's sort prop is now deprecated. Usesortersprop instead.
useAutocomplete({ - sort, + sorters, }) -
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!
useDataGridreturn values and properties are updated.-
initialCurrentandinitialPageSizeprops are now deprecated. Usepaginationprop instead. -
To ensure backward compatibility,
initialCurrentandinitialPageSizeprops will work as before.useDataGrid({ - initialCurrent, - initialPageSize, + pagination: { + current, + pageSize, + }, }) -
hasPaginationprop is now deprecated. Usepagination.modeinstead. -
To ensure backward compatibility,
hasPaginationprop will work as before.useDataGrid({ - hasPagination, + pagination: { + mode: "off" | "server" | "client", + }, }) -
initialSorterandpermanentSorterprops are now deprecated. Usesorters.initialandsorters.permanentinstead. -
To ensure backward compatibility,
initialSorterandpermanentSorterprops will work as before.useDataGrid({ - 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.useDataGrid({ - 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, } = useDataGrid();
-
-
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.
Patch Changes
3.63.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]:
3.62.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]:
3.61.5
Patch Changes
- #3517
ce6ed28ce3dThanks @yildirayunlu! - Fix multi-level Sider menu. (#3505)
3.61.4
Patch Changes
- #3517
ce6ed28ce3dThanks @yildirayunlu! - Fix multi-level Sider menu. (#3505)
3.61.3
Patch Changes
- #3399
22b44a857a8Thanks @yildirayunlu! - FixuseTablehook error return type.
3.61.2
Patch Changes
-
#3220
b867497f469Thanks @aliemir! - Updated image links inREADME.MDwith CDN -
93a7d7088aeThanks @omeraplak! - Fixedexperimental_sxexport -
Updated dependencies [
b867497f469]:
3.61.1
Patch Changes
-
#3220
b867497f469Thanks @aliemir! - Updated image links inREADME.MDwith CDN -
93a7d7088aeThanks @omeraplak! - Fixedexperimental_sxexport -
Updated dependencies [
b867497f469]:
3.61.0
Minor Changes
- #3159
af2eefb32a4Thanks @aliemir! - UpdatedLoginPageandReadyPageto use refine logos from CDN rather than bundled svg files.
3.60.0
Minor Changes
- #3159
af2eefb32a4Thanks @aliemir! - UpdatedLoginPageandReadyPageto use refine logos from CDN rather than bundled svg files.
3.59.4
Patch Changes
- #3128
db1000a7628Thanks @alicanerdurmaz! - Fixed:crudcomponents import path changed to relative path due to export issues on build.
3.59.3
Patch Changes
- #3128
db1000a7628Thanks @alicanerdurmaz! - Fixed:crudcomponents import path changed to relative path due to export issues on build.
3.59.2
Patch Changes
- #3109
16549ed3012Thanks @aliemir! - Updatedswizzleitems and their messages to include extra information and usage examples.
3.59.1
Patch Changes
- #3109
16549ed3012Thanks @aliemir! - Updatedswizzleitems and their messages to include extra information and usage examples.
3.59.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.58.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.57.0
Minor Changes
- #3076
bcd47eabbfcThanks @ahhshm! - exported material-ui localization files
3.56.0
Minor Changes
- #3076
bcd47eabbfcThanks @ahhshm! - exported material-ui localization files
3.55.2
Patch Changes
- #2975
249f9521c4Thanks @salihozdemir! - Prevented server request when empty filter value is provided.
3.55.1
Patch Changes
- #2975
249f9521c4Thanks @salihozdemir! - Prevented server request when empty filter value is provided.
3.55.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.54.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.53.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.52.0
Minor Changes
- #2836
e43e9a17aeThanks @alicanerdurmaz! - added locales prop to date fields
Patch Changes
- Updated dependencies [
e43e9a17ae]:
3.51.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.50.7
Patch Changes
-
Fix login link alignment on forgot password page.
-
Updated dependencies []:
3.50.6
Patch Changes
-
#2787
eeb7303b8bThanks @yildirayunlu! - Fix login link alignment on forgot password page. -
Updated dependencies [
19124711a7]:
3.50.5
Patch Changes
- Fixed
providersproperty empty array state in<AuthPage />component
3.50.4
Patch Changes
- Fixed
providersproperty empty array state in<AuthPage />component
3.50.3
Patch Changes
- #2712
c434055011Thanks @omeraplak! - Fixedprovidersproperty empty array state in<AuthPage />component
3.50.2
Patch Changes
- Add AuthProps type export
3.50.1
Patch Changes
- #2666
8a562d2114Thanks @omeraplak! - Add AuthProps type export
3.50.0
Minor Changes
-
- Added new component core and mantine support.
- Move Auth types
@pankod/refine-ui-typesto@pankod/refine-core
3.49.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.48.2
Patch Changes
- fix(material-ui): fix missing
<Header />component export
3.48.1
Patch Changes
- #2635
c24fb19264Thanks @Coinio! - fix(material-ui): fix missing<Header />component export
3.48.0
Minor Changes
-
-
Added
<AuthPage>for Material UI package of refine.<AuthPage>is a component that provides a login, register, forgot password and update password pages. -
Deprecated
LoginPage.
Before
import { LoginPage } from "@pankod/refine-mui"; <Refine LoginPage={LoginPage} ... />After
import { AuthPage } from "@pankod/refine-mui"; <Refine LoginPage={AuthPage} ... /> -
3.47.0
Minor Changes
-
-
Added
<AuthPage>for Material UI package of refine.<AuthPage>is a component that provides a login, register, forgot password and update password pages. -
Deprecated
LoginPage.
Before
import { LoginPage } from "@pankod/refine-mui"; <Refine LoginPage={LoginPage} ... />After
import { AuthPage } from "@pankod/refine-mui"; <Refine LoginPage={AuthPage} ... /> -
3.46.0
Minor Changes
-
#2580
e1ab7da6b3Thanks @yildirayunlu! - - Added<AuthPage>for Material UI package of refine.<AuthPage>is a component that provides a login, register, forgot password and update password pages.- Deprecated
LoginPage.
Before
import { LoginPage } from "@pankod/refine-mui"; <Refine LoginPage={LoginPage} ... />After
import { AuthPage } from "@pankod/refine-mui"; <Refine LoginPage={AuthPage} ... /> - Deprecated
3.45.9
Patch Changes
- ReadyPage examples link fixed.
3.45.8
Patch Changes
- #2505
a4dbb63c88Thanks @salihozdemir! - ReadyPage examples link fixed.
3.45.7
Patch Changes
-
Updated
disabledattribute of buttons in CRUD components according toisLoadingprop. -
Removed redundant type inheritance
-
Updated dependencies []:
3.45.6
Patch Changes
-
#2586
d7c8b7642bThanks @necatiozmen! - Removed redundant type inheritance -
Updated dependencies [
d7c8b7642b]:
3.45.5
Patch Changes
- #2585
e7ab42a73bThanks @salihozdemir! - Updateddisabledattribute of buttons in CRUD components according toisLoadingprop.
3.45.4
Patch Changes
- Updated dependencies []:
3.45.3
Patch Changes
- Updated dependencies [
a65525de6f]:
3.45.2
Patch Changes
- Updated dependencies []:
- @pankod/refine-ui-types@0.9.0
3.45.1
Patch Changes
- Updated dependencies [
ad99916d6d]:- @pankod/refine-ui-types@0.8.0
3.45.0
Minor Changes
- Added
renderprop toSidercomponent. You can getdashboard,logoutanditemsfromrenderprops to customize theSidercomponent.
Patch Changes
-
Fixed version of react-router to
6.3.0 -
Passed
collapsedprop torendermethod inSidercomponent of@pankod/refine-mui. -
Updated dependencies []:
- @pankod/refine-react-hook-form@3.33.2
- @pankod/refine-ui-types@0.7.0
3.44.2
Patch Changes
-
#2501
4095a578d4Thanks @omeraplak! - Fixed version of react-router to6.3.0 -
Updated dependencies [
4095a578d4]:
3.44.1
Patch Changes
-
#2492
7d5bf3023dThanks @ozkalai! - Passedcollapsedprop torendermethod inSidercomponent of@pankod/refine-mui. -
Updated dependencies [
7d5bf3023d]:- @pankod/refine-ui-types@0.6.1
3.44.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.43.0
Minor Changes
- Update type declaration generation with
tscinstead oftsupfor better navigation throughout projects source code.
Patch Changes
-
Update
ThemeProviderexport as value instead of type. -
Updated dependencies []:
- @pankod/refine-react-hook-form@3.33.0
- @pankod/refine-ui-types@0.5.0
3.42.0
Minor Changes
- #2440
0150dcd070Thanks @aliemir! - Update type declaration generation withtscinstead oftsupfor better navigation throughout projects source code.
Patch Changes
-
#2440
0150dcd070Thanks @aliemir! - UpdateThemeProviderexport as value instead of type. -
Updated dependencies [
0150dcd070,0150dcd070]:- @pankod/refine-react-hook-form@3.32.0
- @pankod/refine-ui-types@0.4.0
3.41.16
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.41.15
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.41.14
Patch Changes
-
lodashmoved to "dependencies" for CommonJS builds
3.41.13
Patch Changes
-
lodashmoved to "dependencies" for CommonJS builds
3.41.12
Patch Changes
-
lodashmoved to "dependencies" for CommonJS builds
3.41.11
Patch Changes
- #2366
de87f13dadThanks @omeraplak! - -lodashmoved to "dependencies" for CommonJS builds
3.41.10
Patch Changes
lodashmoved to dependencies.
3.41.9
Patch Changes
- #2350
f8e5d99598Thanks @ozkalai! -lodashmoved to dependencies.
3.41.8
Patch Changes
- Added React 17 support to
peerDependencies.
3.41.7
Patch Changes
- #2306
bb3183d3ebThanks @aliemir! - Added React 17 support topeerDependencies.
3.41.6
Patch Changes
- Fixed
StackPropsandStackTypeMaptype exports
3.41.5
Patch Changes
- #2300
59f9e5eebfThanks @omeraplak! - FixedStackPropsandStackTypeMaptype exports
3.41.4
Patch Changes
-
Upgraded
react-queryversion to 4. -
Updated dependencies []:
3.41.3
Patch Changes
-
#2260
a97ec592dfThanks @salihozdemir! - Upgradedreact-queryversion to 4. -
Updated dependencies [
6847672849]:
3.41.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.41.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.41.0
Minor Changes
- Add React@18 support 🚀
Patch Changes
- Updated dependencies []:
3.40.0
Minor Changes
- #1718
b38620d842Thanks @omeraplak! - Add React@18 support 🚀
Patch Changes
- Updated dependencies [
b38620d842]:
3.39.2
Patch Changes
- Updated
console.warn's to trigger once.
3.39.1
Patch Changes
- #2223
0a215f2000Thanks @salihozdemir! - Updatedconsole.warn's to trigger once.
3.39.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.
Patch Changes
- Updated dependencies []:
3.38.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.
Patch Changes
- Updated dependencies [
b4aae00f77]:
3.37.2
Patch Changes
-
Add
dataProviderNameproperty for<RefreshButton>and<DeleteButton>in<Edit>and<Show>CRUD components - #2096 -
Updated dependencies []:
3.37.1
Patch Changes
-
#2106
10a20d8714Thanks @omeraplak! - AdddataProviderNameproperty for<RefreshButton>and<DeleteButton>in<Edit>and<Show>CRUD components - #2096 -
Updated dependencies [
9d77c63a92,98966b586f]:
3.37.0
Minor Changes
-
The
useDataGridhook required thecolumnsproperty. Therefore, thequeryResultcould not be used in thecolumns. Now, we can define thecolumnsproperty wherever we want since theuseDataGridhook does not take thecolumnproperty.export const PostsList: React.FC = () => { - const { dataGridProps } = useDataGrid<IPost>({ - columns, - }); + const { dataGridProps } = useDataGrid<IPost>(); return ( <List> - <DataGrid {...dataGridProps} autoHeight /> + <DataGrid {...dataGridProps} columns={columns} autoHeight /> </List> ); };
3.36.0
Minor Changes
-
#2072
bbca622edeThanks @salihozdemir! - TheuseDataGridhook required thecolumnsproperty. Therefore, thequeryResultcould not be used in thecolumns. Now, we can define thecolumnsproperty wherever we want since theuseDataGridhook does not take thecolumnproperty.export const PostsList: React.FC = () => { - const { dataGridProps } = useDataGrid<IPost>({ - columns, - }); + const { dataGridProps } = useDataGrid<IPost>(); return ( <List> - <DataGrid {...dataGridProps} autoHeight /> + <DataGrid {...dataGridProps} columns={columns} autoHeight /> </List> ); };
3.34.0
Minor Changes
-
Updated
useDataGridhook withhasPaginationto enable/disable pagination.Implementation
Updated the
useDataGridaccordingly 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.33.0
Minor Changes
-
#2050
635cfe9fdbThanks @ozkalai! - UpdateduseDataGridhook withhasPaginationto enable/disable pagination.Implementation
Updated the
useDataGridaccordingly 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.32.0
Minor Changes
-
- Created
<Breadcrumb>component from<Breadcrumbs> - Added
<Breadcrumb>component toCRUDcomponents. (<List>,<Create>,<Edit>,<Show>) - Added breadcrumb props to all
CRUDcomponents. We can usebreadcrumbsprop to add custom breadcrumbs.
- Created
Patch Changes
-
Fixed missing imports (
DefaultColorScheme,ExtendedColorSchemeandThemeInput) in@mui/material/stylesin@pankod/refine-muipackage. -
Updated dependencies []:
3.31.0
Minor Changes
- #2027
fe2df4b788Thanks @biskuvit! - - Created<Breadcrumb>component from<Breadcrumbs>- Added
<Breadcrumb>component toCRUDcomponents. (<List>,<Create>,<Edit>,<Show>) - Added breadcrumb props to all
CRUDcomponents. We can usebreadcrumbsprop to add custom breadcrumbs.
- Added
Patch Changes
-
#2063
2067ac6bcbThanks @aliemir! - Fixed missing imports (DefaultColorScheme,ExtendedColorSchemeandThemeInput) in@mui/material/stylesin@pankod/refine-muipackage. -
Updated dependencies [
0338ce9d6b]:
3.30.9
Patch Changes
- #2039
6c8e1c9be2Thanks @ozkalai! - Added thedescriptionproperty to the notifications
3.30.8
Patch Changes
- We have fixed texts with translations of default login pages in Material UI and Headless.
- Update default variant of
<DeleteButton>totextand replace overrides in the<Edit>crud component.
-
dashboard icon changed from
<ListOutlined>to<Dashboard>in<Sider>for Material UI package -
Updated dependencies []:
3.30.7
Patch Changes
- #2029
b257d87fefThanks @ozkalai! - We have fixed texts with translations of default login pages in Material UI and Headless.
- #2033
14e14709ecThanks @ozkalai! - Update default variant of<DeleteButton>totextand replace overrides in the<Edit>crud component.
-
#2022
01f8631953Thanks @biskuvit! - dashboard icon changed from<ListOutlined>to<Dashboard>in<Sider>for Material UI package -
Updated dependencies [
d96ba1e9c8,b257d87fef,12f08ae6a3]:
3.30.6
Patch Changes
-
Add Dashboard item to default
<Sider/> -
Updated dependencies []:
3.30.5
Patch Changes
-
#2009
5b893a9bffThanks @aliemir! - Add Dashboard item to default<Sider/> -
Updated dependencies [
498c425a0e,498c425a0e,498c425a0e,5b893a9bff]:
3.30.4
Patch Changes
- Deprecated
useMenufrom@pankod/refine-antdand replaced with theuseMenufrom@pankod/refine-core
-
Remove unused
transitionproperty from@pankod/refine-mui's<Layout/> -
Updated dependencies []:
3.30.4
Patch Changes
- Fix styling for buttons in loading state
-
Fix the spacing of header and footer actions in crud components and updated their snapshot tests.
-
Updated dependencies []:
3.30.3
Patch Changes
- We've updated
secondarycolor to#2A132E
-
Could not stop
e.preventDefault()redirection in Next.js<Link>component. So we added ine.stopPropagation()for Ant Design Buttons and Material UI Buttons -
Updated dependencies []:
3.30.2
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.30.1
Patch Changes
-
#1936
0695c6fa01Thanks @omeraplak! - We've updatedsecondarycolor to#2A132E -
Updated dependencies [
4012d3c4ae]:
3.30.0
Minor Changes
-
Added default
sxproperty for Material UI buttons.const { sx, ...restProps } = rest; <Button sx={{ minWidth: 0, ...sx }} {...restProps} />;
Patch Changes
- Fixed the
useDataGridfilter bug that the selected filter was not displayed.
- Applied
refine's base theme to@pankod/refine-muipackage with dark and light options.
-
Refactor default
<Sider>component of@pankod/refine-mui -
Updated dependencies []:
3.29.0
Minor Changes
- Added new provider.
<RefineSnackbarProvider/>for notifications.
Patch Changes
- We are fixed the buttons' icon fontSize when hideText prop passed
- Renamed export
notificationProviderHandlefrom@pankod/refine-muitonotificationProviderfor consistency across packages
- Fixed Material UI
ReadyPageto be responsive for any screen
- Added missing exports from
notistackpackage.
-
Added
svgButtonPropsproperty for Material UI buttons.<CreateButton svgButtonProps={{ size: "small" }} />
-
Fixed Material UI
<ErrorComponent />to be responsive for any screen -
Updated dependencies []:
3.28.0
Minor Changes
- Added new provider.
<RefineSnackbarProvider/>for notifications.
Patch Changes
- We are fixed the buttons' icon fontSize when hideText prop passed
- Renamed export
notificationProviderHandlefrom@pankod/refine-muitonotificationProviderfor consistency across packages
- Fixed Material UI
ReadyPageto be responsive for any screen
- Added missing exports from
notistackpackage.
-
Added
svgButtonPropsproperty for Material UI buttons.<CreateButton svgButtonProps={{ size: "small" }} />
-
Fixed Material UI
<ErrorComponent />to be responsive for any screen -
Updated dependencies []:
3.27.0
Minor Changes
- Added new provider.
<RefineSnackbarProvider/>for notifications.
Patch Changes
- We are fixed the buttons' icon fontSize when hideText prop passed
- Renamed export
notificationProviderHandlefrom@pankod/refine-muitonotificationProviderfor consistency across packages
- Fixed Material UI
ReadyPageto be responsive for any screen
- Added missing exports from
notistackpackage.
-
Added
svgButtonPropsproperty for Material UI buttons.<CreateButton svgButtonProps={{ size: "small" }} />
-
Fixed Material UI
<ErrorComponent />to be responsive for any screen -
Updated dependencies []:
3.26.0
Minor Changes
- #1911
6aa09d34b8Thanks @biskuvit! - Added new provider.<RefineSnackbarProvider/>for notifications.
3.25.2
Patch Changes
- #1909
0170b1306dThanks @aliemir! - Renamed exportnotificationProviderHandlefrom@pankod/refine-muitonotificationProviderfor consistency across packages
-
#1896
2ba2a96fd2Thanks @aliemir! - Added missing exports fromnotistackpackage. -
Updated dependencies [
2ba2a96fd2]:
3.25.1
Patch Changes
- #1898
906cf51ecaThanks @ozkalai! - We are fixed the buttons' icon fontSize when hideText prop passed
- #1889
683fd6f932Thanks @biskuvit! - Fixed Material UIReadyPageto be responsive for any screen
-
#1878
07a2c48157Thanks @omeraplak! - AddedsvgButtonPropsproperty for Material UI buttons.<CreateButton svgButtonProps={{ size: "small" }} />
- #1890
607de3446bThanks @biskuvit! - Fixed Material UI<ErrorComponent />to be responsive for any screen
3.18.0-next.1
Minor Changes
- #1877
5bc54c25d6Thanks @aliemir! - AdduseDataGridhook documentation.
Patch Changes
- #1878
07a2c48157Thanks @omeraplak! - Passed svgButtonProps to mui buttons
3.17.1-next.0
Patch Changes
- #1755
a81836bc36Thanks @salihozdemir! - NotistackSnackbarProviderwhich is used as a notification provider (from@pankod/refine-mui) has been made compatible with the theme in the example of the fine food.
- #1755
a81836bc36Thanks @salihozdemir! - Notistack toast mobile view fixed
3.17.0-next.0
Minor Changes
- #1867
da2e12314dThanks @ozkalai! - Notistack toast mobile view fixed
Patch Changes
- #1850
40b3faca10Thanks @ozkalai! - NotistackSnackbarProviderwhich is used as a notification provider (from@pankod/refine-mui) has been made compatible with the theme in the example of the fine food.