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
slate-react@0.124.0
- #6012
57bdd4feThanks @changlin-cn! - Fix Slate component to properly handle editor updates by addingeditoras a dependency in the useEffect hook.
slate@0.124.0
slate-react@0.123.0
- #6000
8d9bf305Thanks @nabbydude! - AddedLocation.isPath,Location.isPoint,Location.isRange, andLocation.isSpanfunctions, as efficient type discriminators. Use these instead ofPath.isPath,Point.isPoint,Range.isRange, andSpan.isSpanwhenever possible.
slate-dom@0.123.0
- #6000
8d9bf305Thanks @nabbydude! - AddedLocation.isPath,Location.isPoint,Location.isRange, andLocation.isSpanfunctions, as efficient type discriminators. Use these instead ofPath.isPath,Point.isPoint,Range.isRange, andSpan.isSpanwhenever possible.