ianstormtaylor/slate
 Watch   
 Star   
 Fork   
1 days ago
slate

slate-react@0.126.4

Patch Changes

  • #6099 ad04f91c Thanks @BetterAndBetterII! - Skip Selection.collapseToEnd() during composition selection-sync when the live DOM selection has no ranges, so a cleared selection no longer throws InvalidStateError and unmounts the editor.
1 days ago
slate

slate-react@0.126.3

Patch Changes

  • #6096 b96028a5 Thanks @melodysdreamj! - Fix IME composition being cancelled on the first character typed into an empty leaf on Android, which left the first character behind as a separate, uncomposed character (typing 안녕 in Korean produced ㅇ안녕).
18 days ago
slate

slate@0.126.2

Patch Changes

  • #6092 4231105d Thanks @12joan! - Deeply compare nested data structures inside array properties on nodes for the purpose of merging identical text nodes. Previously, items in array properties were shallowly compared using ===.
20 days ago
slate

slate@0.126.1

Patch Changes

  • #6083 ad3eaee5 Thanks @12joan! - Broaden the types of Transforms.setNodes and editor.setNodes to allow setting optional node properties to null (which has the effect of unsetting them).
2026-07-10 07:09:13
slate

slate-dom@0.126.0

Patch Changes

  • #6072 ea379934 Thanks @pangoyal-gong! - Fix toSlatePoint not respecting suppressThrow when toSlateNode throws. Only errors from findPath were guarded; errors from the preceding toSlateNode propagated unconditionally even with suppressThrow: true.
2026-07-10 07:09:13
slate

slate-react@0.126.0

Minor Changes

  • #6073 6fa9a129 Thanks @NikunjSonigara! - Add a suppressThrow option to useSelected to return false instead of throwing when the element can no longer be found in the editor.

Patch Changes

  • #6080 9265c408 Thanks @isachivka! - Suppress the findPath throw when translating beforeinput target ranges in <Editable> (#3556). A browser target range can point at a DOM node no longer resolvable to a Slate node (stale NODE_MAP after a re-render, IME composition, cross-editor click); with suppressThrow: false the "Unable to find the path" error escaped the DOM event handler and crashed the app. The two onDOMBeforeInput call sites now use suppressThrow: true (matching the other toSlateRange sites) and degrade gracefully — fall back to synthetic handling, or skip the selection move.
2026-07-10 07:09:13
slate

slate@0.126.0

Patch Changes

  • #6074 c5ea32ea Thanks @greymoth-jp! - Treat Indic conjunct clusters as a single grapheme in getCharacterDistance, implementing Unicode UAX #29 rule GB9c. Character-by-character cursor movement (Editor.positions with unit: 'character', and the Editor.before / Editor.after it powers) over scripts such as Devanagari and Bengali no longer stops inside a Consonant + virama + Consonant conjunct.
2026-07-01 03:43:42
slate

slate-react@0.125.1

Patch Changes

  • #6033 23e6a84e Thanks @dannelundqvist! - Fix caret jumping to wrong position when the decorate prop changes asynchronously

  • #6079 a6b520ed Thanks @dylans! - Fix Firefox contenteditable text input breaking on editor mount, caused by a forced re-render added in useDecorateContext for decoration-driven caret restoration (#6078)

2026-05-30 21:52:56
slate

slate-hyperscript@0.125.0

Minor Changes

  • #6065 cf5b3520 Thanks @12joan! - - Introduced new HyperscriptPointRef and HyperscriptRangeRef classes.
    • A HyperscriptPointRef can passed to the ref prop of the new <point /> tag to store any arbitrary point in the editor.
    • To access the point, call the point() method on the HyperscriptPointRef instance.
    • A HyperscriptRangeRef can be passed to the ref prop of an <anchor /> or <focus /> tag to construct an arbitrary range.
    • <anchor /> and <focus /> tags used in this manner do not affect editor.selection.
    • To access the range, call the range() method on the HyperscriptRangeRef instance.
2026-05-14 13:32:11
slate

slate-react@0.124.2

Patch Changes