Releases: ianstormtaylor/slate
Releases · ianstormtaylor/slate
Release list
slate@0.118.0
Minor Changes
- #5923
ba33735aThanks @12joan! - - When removing a text node containing the cursor, always perfer placing the cursor in a sibling text node if one exists.- Previously, the selection would enter a sibling inline in some circumstances, even when a sibling text node was available.
- The most noticeable effect of this change occurs when pressing backspace at the start of line N when the last non-empty node in line N-1 is an inline.
- Before, the cursor would be placed inside the inline.
- Now, the cursor is placed outside the inline.
slate-react@0.117.4
slate-dom@0.117.4
slate-react@0.117.3
slate@0.117.2
slate-react@0.117.2
Patch Changes
- #5908
06b21fdcThanks @nabbydude! - Fixed issue on android where deleting forward at the end of a block would delete the first character in the next block instead of the linebreak
slate-react@0.117.1
slate@0.117.0
Minor Changes
- #5885
c56a98fdThanks @felixfeng33! - - RemoveignoreNonSelectableoption from positions,before,after,nodes.- Fix move behavior when encounter non-selectable inline voids.
Patch Changes
- #5890
9862ae71Thanks @joblolin95! - Handle backspace correctly for grapheme clusters in Burmese, Hindi, Khmer, Malayalam, Oriya, Punjabi, Tamil, and Telugu.
slate@0.116.0
slate-react@0.116.0
Minor Changes
- #5871
fb87646eThanks @12joan! - - Implement experimental chunking optimization (disabled by default, see https://docs.slatejs.org/walkthroughs/09-performance).- Add
useElementanduseElementIfhooks to get the current element. - BREAKING CHANGE: Decorations are no longer recomputed when a node's parent re-renders, only when the node itself re-renders or when the
decoratefunction is changed.- Ensure that
decorateis a pure function of the node passed into it. Depending on the node's parent may result in decorations not being recomputed when you expect them to be. - If this change impacts you, consider changing your
decoratefunction to work on the node's parent instead. - For example, if your
decoratefunction decorates acode-linebased on the parentcode-block's language, decorate thecode-blockinstead. - This is unlikely to result in any performance detriment, since in previous versions of
slate-react, the decorations of all siblings were recomputed when one sibling was modified.
- Ensure that
- Increase minimum
slate-domversion to0.116.0. - Deprecate the
useSlateWithVhook - PERF: Use subscribable pattern for
useSlate,useSelectedand decorations to reduce re-renders.
- Add