Minor Changes
-
#6311
a1852f8Thanks @dylans! - Add opt-ininlineEdgeAffinityandleafEdgeAffinityeditor hooks andEditor.insertionPointfor consistent insertion at inline and mark boundaries. Implicit text, fragment and inline-node insertion at collapsed carets follows the configured rules, andEditor.marksreports the receiving leaf’s marks. Both hooks default tonull, preserving existing behavior.BaseEditornow requires the two affinity hooks and theinsertionPointquery. Editors created throughcreateEditorreceive them automatically; structurally constructed editors and editor mocks must supply them. Slate React disables native insertion when affinity changes the receiving point, while retaining compatibility with older supported Slate peers that lack the helper.Committed Android typing that changes receiving leaves uses the existing action reconciliation path, so a native mutation does not remain rendered in the old leaf. Active composition retains its existing diff path.