slate-react@0.126.4
- #6099
ad04f91cThanks @BetterAndBetterII! - SkipSelection.collapseToEnd()during composition selection-sync when the live DOM selection has no ranges, so a cleared selection no longer throwsInvalidStateErrorand unmounts the editor.
slate-react@0.126.3
- #6096
b96028a5Thanks @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 ㅇ안녕).
slate-dom@0.126.0
- #6072
ea379934Thanks @pangoyal-gong! - FixtoSlatePointnot respectingsuppressThrowwhentoSlateNodethrows. Only errors fromfindPathwere guarded; errors from the precedingtoSlateNodepropagated unconditionally even withsuppressThrow: true.
slate-react@0.126.0
- #6073
6fa9a129Thanks @NikunjSonigara! - Add asuppressThrowoption touseSelectedto returnfalseinstead of throwing when the element can no longer be found in the editor.
- #6080
9265c408Thanks @isachivka! - Suppress thefindPaththrow when translatingbeforeinputtarget ranges in<Editable>(#3556). A browser target range can point at a DOM node no longer resolvable to a Slate node (staleNODE_MAPafter a re-render, IME composition, cross-editor click); withsuppressThrow: falsethe "Unable to find the path" error escaped the DOM event handler and crashed the app. The twoonDOMBeforeInputcall sites now usesuppressThrow: true(matching the othertoSlateRangesites) and degrade gracefully — fall back to synthetic handling, or skip the selection move.
slate@0.126.0
- #6074
c5ea32eaThanks @greymoth-jp! - Treat Indic conjunct clusters as a single grapheme ingetCharacterDistance, implementing Unicode UAX #29 rule GB9c. Character-by-character cursor movement (Editor.positionswithunit: 'character', and theEditor.before/Editor.afterit powers) over scripts such as Devanagari and Bengali no longer stops inside aConsonant + virama + Consonantconjunct.
slate-react@0.125.1
-
#6033
23e6a84eThanks @dannelundqvist! - Fix caret jumping to wrong position when the decorate prop changes asynchronously -
#6079
a6b520edThanks @dylans! - Fix Firefox contenteditable text input breaking on editor mount, caused by a forced re-render added inuseDecorateContextfor decoration-driven caret restoration (#6078)
slate-hyperscript@0.125.0
- #6065
cf5b3520Thanks @12joan! - - Introduced newHyperscriptPointRefandHyperscriptRangeRefclasses.- A
HyperscriptPointRefcan passed to therefprop of the new<point />tag to store any arbitrary point in the editor. - To access the point, call the
point()method on theHyperscriptPointRefinstance. - A
HyperscriptRangeRefcan be passed to therefprop of an<anchor />or<focus />tag to construct an arbitrary range. <anchor />and<focus />tags used in this manner do not affecteditor.selection.- To access the range, call the
range()method on theHyperscriptRangeRefinstance.
- A
slate-react@0.124.2
- #6054
31d8354fThanks @ckale-scorpio! - fix: add missingRenderTextPropsexport