slate@0.91.3
·
364 commits
to main
since this release
Patch Changes
-
#5295
84f811a7Thanks @zbeyens! - Neweditormethod that can be overridden to control when the normalization should stop. Default behavior (unchanged) is to throw an error when it iterates over 42 times the dirty paths length.shouldNormalize: ({ iteration, dirtyPaths, operation, }: { iteration: number dirtyPaths: Path[] operation?: Operation }) => boolean
editor.onChangesignature change:(options?: { operation?: Operation }) => voidwhereoperationis triggering the function.editor.normalizeNodesignature change:(entry: NodeEntry, options?: { operation?: Operation }) => voidwhereoperationis triggering the function.EditorNormalizeOptionsnew optionoperation?: Operationwhereoperationis triggering the function.