Releases: sodenn/lexical-beautiful-mentions
Releases · sodenn/lexical-beautiful-mentions
[email protected]
Patch Changes
- ea87bf0: fix(): close menu when editor focus is lost
[email protected]
Patch Changes
- 164beac: feat(): add support for custom mention nodes
- a8da266: feat(): add option to enable/disable that the current mentions are displayed as suggestions
- c473eab: feat(): add 'data' field to getMentions function
- 1d2f712: fix(): allows inserting, deleting and renaming mentions when the editor was not previously focused
[email protected]
Patch Changes
-
2ff69af: fix(): do not close combobox when editor focus is lost
-
2ff69af: feat(Combobox): allow to add additional combobox items
-
2ff69af: feat(Combobox): control the combobox open state
-
4ce0123: refactor(): remove
open
prop from Menu component; refactor(): calledonComboboxFocusChange
with aBeautifulMentionsComboboxItem
instead of a stringBREAKING
open
prop has been removed fromBeautifulMentionsMenuProps
onComboboxFocusChange
now receives aBeautifulMentionsComboboxItem
instead of a string
[email protected]
[email protected]
Patch Changes
-
5760567: feat(): more reliable information about the state of the menu / combobox
BREAKING:
- Renamed
openMentionsMenu
toopenMentionMenu
- Removed the
isMentionsMenuOpen
andisTriggersMenuOpen
functions from theuseBeautifulMentions
hook in favor of the newonMenuOpen
,onMenuClose
,onComboboxOpen
,onComboboxClose
andonComboboxItemSelect
props of theBeautifulMentionsPlugin
component. This leads to a more reliable information about the state of the menu / combobox, since it is no longer determined by DOM elements.
- Renamed
-
ae9dd61: feat(): improve mention selection for mobile usage
[email protected]
[email protected]
Patch Changes
- 63c72e5: feat(): add additional metadata to mentions
- f425ce5: fix(Combobox): keep trigger selection when backspace key is pressed
- 54287e9: refactor(): add prefix to convertToMentionNodes function to indicate the Lexical scope. BREAKING: rename
convertToMentionNodes
to$convertToMentionNodes
. - 839502c: refactor(): combobox positioning
[email protected]
Patch Changes
- 7e1eb6d: feat(): add combobox as alternative to typeahead menu. BREAKING: the
showTriggers
prop has been removed as the combobox shows all available triggers by default. - 0f55446: feat(): allow mentions with spaces to enclose with custom-defined characters
- 0f55446: feat(): allow to define custom punctuation when looking for mentions
- 10f2c1e: fix(): trigger menu should not re-position when typing
[email protected]
Patch Changes
- c6072bf: fix(): trigger menu should not open before or after other nodes
[email protected]
Patch Changes
- 401421d: fix(): focused mentions should not use the CSS classes defined in "container"