Major Changes
-
e8458bc5
#623 Thanks @ifiokjr! - - π₯ Remove thekeyBindings
option and the keyboard handler.- π₯ Remove
createCommand
handler, since it's up to the developer to interpret the information that's been provided to them. - π₯ Remove the
onCharacterPress
keyboard handler. - π₯ Merge
onExit
functionality into theonChange
method and splitreason
property intoexitReason
andchangeReason
only one of which can be defined. - π₯Remove a lot of type exports.
- π₯Rename
FromToEndParameter
toRangeWithCursor
and change the property name ofto
=>cursor
andend
=>to
. - π₯Rename
queryText
=>query
andmatchText
=>text
in theonChange
handler parameter. - π Allow the activation character to be
RegExp
. - π Add raw regex
match
to theonChange
handler parameter. - π Add a
priority
property which allowssuggesters
to specify importance. Higher priority means being checked for a match first. - π Support invalid nodes and marks by name.
- π Support valid nodes and marks by name.
- π Allow whitespace in
supportedCharacters
. - π Support an
isValidPosition
handler which is a predicate that is run with the active resolved positioner on each suggester. It allows more advanced criteria for rejecting asuggester
in the dom.
See #548 for more details.
- π₯ Remove