As of newer MUI versions, we require a couple adjustments to remain compatible. (The changes in this PR should be compatible with lower versions of MUI as well, but now ensure we don't break when users are installing newer MUI versions. Peer dependencies are still early MUI v5.)
Update MenuSelect prop types to support MUI v5.15.11 types
As of https://github.com/mui/material-ui/pull/39137, MUI's SelectProps is now a type and not an interface, so we can no longer extend it for our own MenuSelectProps. As such, we now make MenuSelectProps a type and use & syntax to inject additional props. This should support both MUI < v5.15.11 (where SelectProps is an interface) and >= 5.15.11 (where SelectProps is a type).
Appease TypeScript for heading fontSizes with makeStyles with MUI v5.15
Something about the fontSize definition has gotten more strict, so this works around the issue.
This also updates the dev dependencies within mui-tiptap to use the newest MUI, for easier testing of these changes.
As of newer MUI versions, we require a couple adjustments to remain compatible. (The changes in this PR should be compatible with lower versions of MUI as well, but now ensure we don't break when users are installing newer MUI versions. Peer dependencies are still early MUI v5.)
SelectProps
is now atype
and not aninterface
, so we can no longerextend
it for our ownMenuSelectProps
. As such, we now makeMenuSelectProps
atype
and use&
syntax to inject additional props. This should support both MUI < v5.15.11 (whereSelectProps
is aninterface
) and >= 5.15.11 (whereSelectProps
is atype
).fontSize
definition has gotten more strict, so this works around the issue.This also updates the dev dependencies within mui-tiptap to use the newest MUI, for easier testing of these changes.