- #3830 by @felixfeng33 – Replace
findNodePath
withfindPath
- #3420 by @zbeyens –
createListPlugin
->ListPlugin
- NEW
BulletedListPlugin
- NEW
NumberedListPlugin
- NEW
ListItemPlugin
- NEW
ListItemContentPlugin
- NEW list transforms:
toggle.list
,toggle.bulletedList
,toggle.numberedList
- Remove type utils:
getListItemType
,getUnorderedListType
,getOrderedListType
,getListItemContentType
- Replace
insertBreakList(editor)
withwithInsertBreakList(ctx)
- Replace
insertFragmentList(editor)
withwithInsertFragmentList(ctx)
- Replace
insertBreakTodoList(editor)
withwithInsertBreakTodoList(ctx)
- Replace
deleteForwardList(editor)
withwithdeleteForwardList(ctx)
- Replace
deleteBackwardList(editor)
withwithdeleteBackwardList(ctx)
- Move list options from
ul
andol
tolist
plugin toggleList
options are now{ type: string }
- #3194 by @KorovinQuantori – Export plugin keys for easier access plugin options by key
4cbed7159
by @zbeyens – Move@udecode/plate-common
to peerDeps to fix a bug when multiple instances were installed
- #2597 by @nicktrn – Prevent
deleteBackward
anddeleteForward
from creating empty nodes when merging sibling list items with multiple children
-
#2351 by @almeraikhi – Enables the developer to enable or disable the checkbox state inheritance when creating a new todo list item.
The option is configurable for when a line break is inserted from the start of the node or the end of the node.
The plugin now has two new optional options:
createTodoListPlugin( options:{ inheritCheckStateOnLineStartBreak: false, inheritCheckStateOnLineEndBreak: false } )
inheritCheckStateOnLineStartBreak
option will create a new todo item on top of the current one, and the new todo item will inherit the checkbox state of the current todo item. Default value isfalse
.inheritCheckStateOnLineEndBreak
option will create a new todo item below the current one, and the new todo item will inherit the checkbox state of the current todo item. Default value isfalse
.
- #1986 by @charrondev – Fix Tab and Shift+Tab adjust selection ranges with the list plugin.
- #1693 by @zbeyens – fix: list plugin was preventing default event even when selection was not containing any list node
- #1676 by @zakishaheen – Allow escape unindent of the first element of a list
- #1663 by @zakishaheen – Allow un-indenting top level list items
- #1642 by @zakishaheen – Improved list item indentation when selection spans across different elements
- #1651 by @davisg123 – Some types of nested lists are not unwrapped completely
42c5ed1
by @zbeyens – Toggling a nested list that includes paragraph content should toggle all nested list elements
- #1560 by @zbeyens –
- fix: tab / untab when composing with IME
- update peerDeps:
"slate": ">=0.78.0"
"slate-react": ">=0.79.0"
-
#1386 by @fakedarren – Improvements to list behaviours:
- copy/paste of lis into existing lists
- behaviour of browser autocorrection
Improvements to list-specific tests
- #1336 by @fondation451 – Copy/paste inside a list now works properly with pasting text: The text was not pasted at all. For other kind of nodes like "p", there were pasted but inside the same bullet.
-
#1146
3718c6d1
Thanks @ghingis! - fix: list toggle when selection is inside a single block -
Updated dependencies [
a6bf8c5e
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
8aec270f
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
7ee21356
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- #1105
503956fd
Thanks @aj-foster! - Unwrap list item only if selection is at start of list item, not any block
- Updated dependencies [
503956fd
]:- @udecode/[email protected]
- @udecode/[email protected]
-
#1098
c353b008
Thanks @djagya! - Respect validLiChildrenTypes by keeping valid block elements as direct li children -
Updated dependencies [
b22c06aa
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
58f6fb53
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
6af469cd
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- #1058
6fe49e22
Thanks @ghingis! - Normalizer:- now merges lists with the same type next to each other
- if a list has no lic and it has children it moves those childrens up a level
- #1058
87cca4a0
Thanks @ghingis! - fix:toggleList
works as expectedmoveListItemDown
wrap transformations inwithoutNormalizing
(it caused a pathing issue since the normalization would remove the created empty list)
- Updated dependencies [
f1da7267
,35caf35d
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
58387c6d
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
-
Updated dependencies [
f6c58134
]:- @udecode/[email protected]
- @udecode/[email protected]
- #990
2906a0a4
Thanks @nemanja-tosic! - Fix nested list paste
- #971
46398095
Thanks @vimtor! - List plugin was preventing all tab key strokes without checking if a list item was being selected. Fix: Don't prevent tab if list is not selected.
- Updated dependencies [
ec4d5b7b
]:- @udecode/[email protected]
- @udecode/[email protected]
- #927
a3825e35
Thanks @zbeyens! - partial fix pasting into lists, if the selection is inli
:preInsert
: override the default (do not runsetNodes
)- filter out
ul
andol
from the fragment to paste onlyli
- override
insertFragment
byinsertNodes
. Note that it implies that the first fragment node children will not be merged into the selectedli
.
-
#918
7d045d8d
Thanks @zbeyens! - addslate-history
as a peerDep -
Updated dependencies [
7d045d8d
]:- @udecode/[email protected]
- @udecode/[email protected]
🎉 The Slate Plugins project has evolved to Plate 🎉
To migrate, install @udecode/plate[-x]
then find and replace all
occurrences of:
slate-plugins
toplate
SlatePlugins
toPlate
SlatePlugin
toPlatePlugin
This is the last version of
@udecode/slate-plugins[-x]
, please install@udecode/plate[-x]
.
- Updated dependencies [
7c26cf32
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
3a3eb1b8
]:- @udecode/[email protected]
- @udecode/[email protected]
- #858
5abacbc2
Thanks @dylans! - wrap toggleNode inside a withoutNormalizing call to prevent errors when inserting new lists
- Updated dependencies [
75b39f18
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
abaf4a11
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- #850
477bab57
Thanks @zbeyens! - fix:- Indenting multiple list items was not working as expected
- Normalizer: lists without list items are deleted
- Unindent a list item should not delete the list at the first level
- Updated dependencies [
bf693c13
,d906095d
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
42360b44
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- #828
be3023db
Thanks @zbeyens! - fix:- Can't delete a list as first block
- Deleting at the start of the first list item is deleting a character from the previous block
- #824
92e19158
Thanks @stephenkiers! - Allowli
elements to be deleted, even when they are the first node
- Updated dependencies [
92e19158
]:- @udecode/[email protected]
- #817
a15ab621
Thanks @whytspace! - add deserializer forELEMENT_LIC
- Updated dependencies [
6e9068f6
]:- @udecode/[email protected]
- @udecode/[email protected]
- #787
e10f2fa4
Thanks @zbeyens! - feat:- (shift+)tab will (un)indent the highest selected list items (multi blocks support)
- Hotkeys support
- #787
558a89da
Thanks @zbeyens! - normalizer: set node with ELEMENT_LIC type to ELEMENT_DEFAULT if its parent type is not ELEMENT_LI
- Updated dependencies [
15048e6f
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
b444071e
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
-
#751
f4c3b4fb
Thanks @dylans! - fix: improve lic (list-item-content) normalization -
#747
317f6205
Thanks @dylans! - Fix comments for list normalization
- Updated dependencies [
2cf618c3
]:- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
7cbd7bd9
,806e1632
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- #702
15cdf5d7
Thanks @zbeyens! - fix: when unwrapping list, set node to paragraph instead of unwrappinglic
-
#694
84b5feed
Thanks @pubuzhixing8! - fix: list range deletion -
Updated dependencies [
33605a49
,28f30c8a
,75e6d25d
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- Updated dependencies [
dfbde8bd
,dfbde8bd
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]
- #670
88d49713
Thanks @ngfk! - unwrap and reset to default element when removing a list item (first element, non-nested)
- Updated dependencies [
201a7993
]:- @udecode/[email protected]
- @udecode/[email protected]
- @udecode/[email protected]