Releases: portabletext/editor
Releases · portabletext/editor
editor: v1.15.1
editor: v1.15.0
editor: v1.14.2
editor: v1.14.1
editor: v1.14.0
1.14.0 (2024-12-06)
Features
- add experimental
useEditorSelector
(04a290c) - behavior: add 'move block down/up' actions (d53a844)
- behavior: add
blur
event and action (e4720e5) - behavior: add
insert.inline object
event and action (39407b8) - behavior: add
list item.toggle
event andlist item.(add|remove|toggle)
actions (2152950) - behavior: add
noop
action (0139a7c) - behavior: add
style.toggle
event andstyle.(add|remove|toggle)
actions (12825bd) - behavior: allow code editor behaviors to move multiple blocks (5da6b4f)
- behavior: allow imperative
decorator.(add|remove|toggle)
(bb5fbfd) - behavior: allow imperative
insert block object
(eaeb5ed) - behavior: allow imperative
insert.inline object
(3ddf73d) - behavior: allow imperative
list item.toggle
(3927074) - behavior: allow imperative
style.toggle
(174b64d) - export experimental
getActiveListItem
selector (2fd7261)
Bug Fixes
- behavior: '(un)set block' actions now only accept one path (35ed503)
- behavior: mark
editable
as_internal
(a8156fc) - behavior: merge
EditorContext
andEditorState
intoEditorSnapshot
(27ee5ac) - behavior: move
schema
fromEditorState
toEditorContext
(cc3d61b) - behavior: namespace all
delete.*
events and actions (915d373) - behavior: namespace all
insert.*
events and actions (982cc9e) - behavior: namespace all
move.*
actions (46b1249) - behavior: remove
noop
event (763fdff) - behavior: rename
(set|unset) block
totext block.(set|unset)
(0ef0396) - behavior: rename
BehaviorContext
->EditorState
(88fd672) - behavior: rename
blockPath
->at
in 'move block' action (4bb435e) - behavior: rename
config
->initialConfig
(48718be) - behavior: rename
useEditorContext
->useEditor
(927e165) - behavior: route legacy focus method through behaviors (3d091c7)
- behavior: simplify
BehaviorActionIntendSet
callback (a6f9a48) - deps: update sanity monorepo to ^3.66.0 (#505) (58fa31e)
- guard against nullable target block when producing move node patch (eb7049f)
- selectors: export all experimental selectors (cf042a7)
- switch to
"type": "module"
(a8c7c78)
editor: v1.13.0
1.13.0 (2024-12-03)
Features
- behavior: add 'copy' event (54db5e9)
- behavior: add 'key.down' and 'key.up' events (99d7335)
- behavior: add 'move block' action (69a259e)
- behavior: add 'select previous block' and 'select next block' actions (9b5fecb)
- behavior: ship experimental code editor behaviors (b97b218)
Bug Fixes
- behavior: allow guards to return falsy (21cb638)
- behavior: fix
selectionIsCollapsed
utility function (dd67720) - behavior: rename
clipboardData
->data
(6e139c8) - behavior: use React event as 'native' event (35a9fcf)
- make sure you can hit Enter on an expanded selection (d2ebbbe)
- remove decorators from new block when splitting empty decorated block (109b7c4)