-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump React #14424
Bump React #14424
Conversation
Deploy preview: https://deploy-preview-14424--material-ui-x.netlify.app/ |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
304351b
to
9521871
Compare
9521871
to
79a0cbf
Compare
This line:
any after DefinitelyTyped/DefinitelyTyped#70361WDYT @mui/xgrid, is there a way around it? 🤔 |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea why some proptypes were removed and other were added 😅
But I don't think we should spend additional time on that, since the proptypes checks will be removed in React 19 anyway.
@@ -344,7 +344,7 @@ describe('<DataGridPro /> - Cell editing', () => { | |||
}); | |||
|
|||
describe('stopCellEditMode', () => { | |||
function CustomEditComponent({ hasFocus }: GridCellProps) { | |||
function CustomEditComponent({ hasFocus }: GridRenderEditCellParams) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We were using the wrong interface here 😅
@@ -101,7 +101,6 @@ const GridRow = React.forwardRef<HTMLDivElement, GridRowProps>(function GridRow( | |||
isLastVisible, | |||
isNotVisible, | |||
showBottomBorder, | |||
focusedCell, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's unused and not passed to the component
@@ -493,13 +496,6 @@ GridCell.propTypes = { | |||
}), | |||
gridHasFiller: PropTypes.bool.isRequired, | |||
isNotVisible: PropTypes.bool.isRequired, | |||
onClick: PropTypes.func, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea why optional props were removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WDYT @cherniavskii?
I've made some other changes and stabilized GridToolbar
components prop generation as it seemed "cursed" (used to generate proptypes on one run, then destroy on the other... 🙈 )
/** | ||
* The props used for each slot inside. | ||
* @default {} | ||
*/ | ||
slotProps?: { button?: Partial<ButtonProps>; tooltip?: Partial<TooltipProps> }; | ||
[key: string]: any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These entries in types seemed to be "ruining" proptypes
script... 🙈
I've explicitly added the missing excelOptions
.
WDYT?
As far as I can see—this is a slight BC like the cases with Cell and Row.
Docs examples had to be updated. 🙈
But, in the grand scheme—it's a bug fix as well... 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, this breaking change seems to be more impactful, I'm not sure I'm willing to trade it for proper proptypes generation, especially given that even our own demos are impacted 🤔
); | ||
} | ||
|
||
GridCsvExportMenuItem.propTypes = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've moved these components to separate files in order to have stable proptypes
generation (they are generated for all the files).
In the original place one of the components was missing proptypes... 🤷
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
b26a822
to
de573b8
Compare
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
de573b8
to
86fdb4a
Compare
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
86fdb4a
to
39c94e3
Compare
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
39c94e3
to
fee2275
Compare
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
fee2275
to
6ddde87
Compare
This PR contains the following updates:
^18.3.4
->^18.3.12
^18.3.0
->^18.3.1
Configuration
📅 Schedule: Branch creation - "on sunday before 6:00am" in timezone UTC, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.