Releases: ianstormtaylor/slate
slate-hyperscript@0.125.0
Minor Changes
- #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
Patch Changes
- #6054
31d8354fThanks @ckale-scorpio! - fix: add missingRenderTextPropsexport
slate@0.124.1
slate-dom@0.124.1
slate@0.124.0
slate@0.123.0
Minor Changes
- #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-react@0.124.0
Patch Changes
- #6012
57bdd4feThanks @changlin-cn! - Fix Slate component to properly handle editor updates by addingeditoras a dependency in the useEffect hook.
slate-react@0.123.0
Patch Changes
- #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-hyperscript@0.115.0
Patch Changes
-
#5862
98b115b7Thanks @12joan! - Increase minimumslateversion to0.114.3 -
#5859
72532fd2Thanks @12joan! - OptimizeisElement,isText,isNodeListandisEditorby removing dependency onis-plain-objectand by performing shallow checks by default. To perform a full check, including all descendants, pass the{ deep: true }option toisElement,isNodeListorisEditor.
slate-history@0.115.0
Patch Changes
-
#5866
7f5f9e1cThanks @nabbydude! - Fix certain undos undoing more than they should -
#5862
98b115b7Thanks @12joan! - Increase minimumslateversion to0.114.3 -
#5859
72532fd2Thanks @12joan! - OptimizeisElement,isText,isNodeListandisEditorby removing dependency onis-plain-objectand by performing shallow checks by default. To perform a full check, including all descendants, pass the{ deep: true }option toisElement,isNodeListorisEditor.