remirror v1.0.0-next.40 Release Notes
Release Date: 2020-09-24 // over 3 years ago-
Major Changes
🍱
7c5778ed
#700 Thanks @ifiokjr! - 🎉 Add support for position tracking toCommandsExtension
.- New commands are available.
commands.addPositionTracker
commands.removePositionTracker
.commands.clearPositionTrackers
.
- New exports from
@remirror/core
includingdelayedCommand
which is a building block for creating your own delayed commands. - BREAKING: 💥 Rename
clearRangeSelection
toemptySelection
and fix a bug where it would always select thefrom
rather than theanchor
. - Add store property
this.store.rawCommands
for access to the original command functions which can sometimes come in handy. Also add it to the manager store and export new type namedRawCommandsFromExtensions
- Add
initialState
as a property of theBaseFramework
. - BREAKING 💥 Require the
Framework
to be attached to the manager before any calls togetState
are allowed. If you're usingjest-remirror
this change might break some of your tests that don't recreate the editor between tests. commands.insertText
now support delayed commands.commands.insertText
now supports adding marks to the added text.commands.insertText('Hello', {marks: {// The empty object
{}
represents the attributes being added.bold: {},},});
💥
227657ae
#700 Thanks @ifiokjr! - BREAKING: 💥 Remove@remirror/position-tracker
extension from the repository and removeremirror/extension/position-tracker
as a potential import.💥
add65c90
#700 Thanks @ifiokjr! - BREAKING: 💥 Remove exports forflatten
andemptyCommandFunction
which are unused in the codebase and not very practical.⚡️ Update API for
findChildrenByAttribute
to only support an object of attributeNames and literal value or predicate value.const mergedCells = findChildrenByAttribute({node: table,attrs: { colspan: 2, id: (\_, exists) =\> exists },});
Minor Changes
89bd1e86
#702 Thanks @ronnyroeller! - Visualize the amount of overlapping annotations💅 The annotation-extension would allow to style individual annotations via a CSS class. This led to issues with overlapping annotations. For example, if an annotation with a red background and another with a green background were overlapping, the editor would show (more or less) randomly one of the two colors. Now, the annotation-extension allows users to style decorations based on all overlapping annotations within a given decoration. The default implementation visualizes overlapping annotations by showing a darker shade the more annotations are overlapping.
💅
07aab2e8
#700 Thanks @ifiokjr! - Improve style output and fix CSS output issues.643555cc
#700 Thanks @ifiokjr! - ExportcreateEditorView
from@remirror/react
.Patch Changes
- ⚡️
cbf15ec4
#698 Thanks @ifiokjr! - Fix badsetState()
warning when rendering a controlledRemirrorProvider
with child component. By wrapping the controlled state update withinuseLayoutEffect
hook,updates now synchronously happen during the commit phase.useEffect
caused errors in ProseMirror due to the asynchronous update. cbf15ec4
#698 Thanks @ifiokjr! - CheckEditorView
has been added to framework before removing the focus and blur listeners.- 👍
4b1d99a6
#700 Thanks @ifiokjr! - Fix type ofRemirrorJSON
attrs to support allLiteral
values. 1808a9e9
#700 Thanks @ifiokjr! - Pass command through toonMentionChange
to fix #701 and give users control over when they want to ensure the mention is created.- ⚡️ Updated dependencies [
7c5778ed
,cbf15ec4
,add65c90
,89bd1e86
,4b1d99a6
,cbf15ec4
,fd694d61
,1808a9e9
,643555cc
]:- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- @remirror/[email protected]
- New commands are available.