Major Changes
-
175c9461
#676 Thanks @ifiokjr! - 💥checkNextValidSelection
method is now run in theappendTransaction
plugin hook and should only update the provided transaction. It receives theTransaction
now instead ofEditorState
and another parameter formatches
provides the name of the changed suggester and the exited suggester. Both can be undefined.Suggester
Options- Add
caseInsensitive
option for case insensitive matches. - Add
multiline
options for matches that can span multiple lines`. - Add
appendTransaction
option which when true will run theonChange
handler in theappendTransaction
plugin hook and expect the transaction to be synchronously updated. - Add
transaction
parameter to theonChange
handler for whenappendTransaction
is true.
SuggestState
- Add new method
findNextTextSelection
which can be used to find the next text selection. - Add new method
findMatchAtPosition
which finds the match for the provided suggester name at the givenResolvedPos
. If no suggester name is provided then it looks through allSuggester
s.
Other
- Now supports matches with only the matching regex active.
- Fixes a bug where changes were determined by the query and not the full text match.
- Add
Patch Changes
-
725df02b
#672 Thanks @ifiokjr! - Reduce bundle size by updating babel configuration thanks to help from preconstruct/preconstruct/297. Fixes #358. -
Updated dependencies [
725df02b
]:- @remirror/core-constants@1.0.0-next.35
- @remirror/core-helpers@1.0.0-next.35