Releases: niuware/mui-rte
Releases · niuware/mui-rte
Fix package.json
Add MUI (Material-UI v5) compatibility
- Updated package dependencies including compatibility with MUI (Material-UI v5)
- Removed tests (temporarily as they were not useful). Hopefully will add soon.
- Updated examples and source code with updated package dependencies.
⚠️ Breaking changes
The code implementing mui-rte
version 1.x
should be compatible with version 2.x
, it only requires to wrap instances of the text editor with a ThemeProvider
from MUI which in most of the cases this is already added. For further explanation check the updated examples.
Notes
This release bumped the major version to explicitly distinguish the version 1.x from 2.x as the dependencies used are completely different. With that said, no further changes in functionality were added at this time.
Updates peer dependency version range
- Allows
react
version17.0.x
to be used as a peer dependency for this package. - Formats example source codes.
- Removes reference to
src
directory on example files. - Updates package dependencies.
Updates package distribution file
- Removes source files from the package to avoid conflicts with different environment settings. (#206, #238).
- Adds types declarations file in order to keep providing typings for
Typescript
projects.
⚠ Note: This version could break builds if using previous provided types in typescript source files. In general this should not be the case, as all necessary typings in the official documentation are provided.
Fix export type
- Uses
TPosition
type ongetEditorBounds
fromutils
instead of a dependency type. - Updates package dependencies.
Add editorRef nullability checks
- Add nullability check before using the
editor
property of theeditorRef
reference. (#208)
Update configuration
- Update tsconfig (#206)
- Small code refactoring.
Remove auto focus
Fix editor bugs
Fix HTML list tags
- Fixed HTML tags used for ordered/unordered lists. (#166)
⚠️ Previous saved content may show swapped HTML list tags with this fix. - Updated package dependencies.