Comparing version 0.91.1 to 0.91.3-202312212158
import { Ancestor, ExtendedType, Location, Node, NodeEntry, Operation, Path, PathRef, Point, PointRef, Range, RangeRef, Span, Text } from '..'; | ||
import { Element } from './element'; | ||
import { Descendant } from './node'; | ||
import { Element } from './element'; | ||
import { LeafEdge, SelectionMode, TextDirection, TextUnit, TextUnitAdjustment, RangeDirection, MaximizeMode } from './types'; | ||
import { LeafEdge, MaximizeMode, RangeDirection, SelectionMode, TextDirection, TextUnit, TextUnitAdjustment } from './types'; | ||
export declare type BaseSelection = Range | null; | ||
@@ -20,4 +20,8 @@ export declare type Selection = ExtendedType<'Selection', BaseSelection>; | ||
markableVoid: (element: Element) => boolean; | ||
normalizeNode: (entry: NodeEntry) => void; | ||
onChange: () => void; | ||
normalizeNode: (entry: NodeEntry, options?: { | ||
operation?: Operation; | ||
}) => void; | ||
onChange: (options?: { | ||
operation?: Operation; | ||
}) => void; | ||
addMark: (key: string, value: any) => void; | ||
@@ -35,3 +39,8 @@ apply: (operation: Operation) => void; | ||
removeMark: (key: string) => void; | ||
getDirtyPaths: (op: Operation) => Path[]; | ||
getDirtyPaths: (operation: Operation) => Path[]; | ||
shouldNormalize: ({ iteration, dirtyPaths, operation, }: { | ||
iteration: number; | ||
dirtyPaths: Path[]; | ||
operation?: Operation; | ||
}) => boolean; | ||
} | ||
@@ -91,2 +100,3 @@ export declare type Editor = ExtendedType<'Editor', BaseEditor>; | ||
force?: boolean; | ||
operation?: Operation; | ||
} | ||
@@ -93,0 +103,0 @@ export interface EditorParentOptions { |
{ | ||
"name": "slate", | ||
"description": "A completely customizable framework for building rich text editors.", | ||
"version": "0.91.1", | ||
"version": "0.91.3-202312212158", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/ianstormtaylor/slate.git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1658917
19515