Comparing version 0.91.4 to 0.93.0-20233318843
@@ -17,3 +17,5 @@ import { Ancestor, ExtendedType, Location, Node, NodeEntry, Operation, Path, PathRef, Point, PointRef, Range, RangeRef, Span, Text } from '..'; | ||
marks: EditorMarks | null; | ||
isElementReadOnly: (element: Element) => boolean; | ||
isInline: (element: Element) => boolean; | ||
isSelectable: (element: Element) => boolean; | ||
isVoid: (element: Element) => boolean; | ||
@@ -67,2 +69,7 @@ markableVoid: (element: Element) => boolean; | ||
} | ||
export interface EditorElementReadOnlyOptions { | ||
at?: Location; | ||
mode?: MaximizeMode; | ||
voids?: boolean; | ||
} | ||
export interface EditorFragmentDeletionOptions { | ||
@@ -98,2 +105,3 @@ direction?: TextDirection; | ||
voids?: boolean; | ||
ignoreNonSelectable?: boolean; | ||
} | ||
@@ -126,2 +134,3 @@ export interface EditorNormalizeOptions { | ||
voids?: boolean; | ||
ignoreNonSelectable?: boolean; | ||
} | ||
@@ -157,2 +166,3 @@ export interface EditorPreviousOptions<T extends Node> { | ||
edges: (editor: Editor, at: Location) => [Point, Point]; | ||
elementReadOnly: (editor: Editor, options?: EditorElementReadOnlyOptions) => NodeEntry<Element> | undefined; | ||
end: (editor: Editor, at: Location) => Point; | ||
@@ -174,5 +184,7 @@ first: (editor: Editor, at: Location) => NodeEntry; | ||
isEdge: (editor: Editor, point: Point, at: Location) => boolean; | ||
isElementReadOnly: (editor: Editor, element: Element) => boolean; | ||
isEmpty: (editor: Editor, element: Element) => boolean; | ||
isInline: (editor: Editor, value: Element) => boolean; | ||
isNormalizing: (editor: Editor) => boolean; | ||
isSelectable: (editor: Editor, element: Element) => boolean; | ||
isStart: (editor: Editor, point: Point, at: Location) => boolean; | ||
@@ -179,0 +191,0 @@ isVoid: (editor: Editor, value: Element) => boolean; |
@@ -1,2 +0,2 @@ | ||
import { Operation } from '..'; | ||
import { InsertNodeOperation, MergeNodeOperation, MoveNodeOperation, RemoveNodeOperation, SplitNodeOperation, Operation } from '..'; | ||
import { TextDirection } from './types'; | ||
@@ -38,3 +38,3 @@ /** | ||
next: (path: Path) => Path; | ||
operationCanTransformPath: (operation: Operation) => boolean; | ||
operationCanTransformPath: (operation: Operation) => operation is InsertNodeOperation | RemoveNodeOperation | MergeNodeOperation | SplitNodeOperation | MoveNodeOperation; | ||
parent: (path: Path) => Path; | ||
@@ -41,0 +41,0 @@ previous: (path: Path) => Path; |
{ | ||
"name": "slate", | ||
"description": "A completely customizable framework for building rich text editors.", | ||
"version": "0.91.4", | ||
"version": "0.93.0-20233318843", | ||
"license": "MIT", | ||
@@ -24,3 +24,3 @@ "repository": "git://github.com/ianstormtaylor/slate.git", | ||
"lodash": "^4.17.21", | ||
"slate-hyperscript": "^0.81.3", | ||
"slate-hyperscript": "^0.81.3-20233318843", | ||
"source-map-loader": "^4.0.0" | ||
@@ -27,0 +27,0 @@ }, |
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 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
Sorry, the diff of this file is not supported yet
1678202
19687