Comparing version 0.94.1 to 0.100.0-20231020154238
@@ -0,0 +0,0 @@ import { WithEditorFirstArg } from '../utils/types'; |
@@ -0,0 +0,0 @@ import { WithEditorFirstArg } from '../utils/types'; |
@@ -0,0 +0,0 @@ import { Editor } from '../interfaces'; |
@@ -0,0 +0,0 @@ export * from './apply'; |
@@ -0,0 +0,0 @@ import { WithEditorFirstArg } from '../utils/types'; |
@@ -0,0 +0,0 @@ import { WithEditorFirstArg } from '../utils/types'; |
@@ -0,0 +0,0 @@ import { Editor } from './'; |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const above: EditorInterface['above']; | ||
//# sourceMappingURL=above.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const addMark: EditorInterface['addMark']; | ||
//# sourceMappingURL=add-mark.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const after: EditorInterface['after']; | ||
//# sourceMappingURL=after.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const before: EditorInterface['before']; | ||
//# sourceMappingURL=before.d.ts.map |
@@ -0,0 +0,0 @@ import { Editor } from '../interfaces/editor'; |
@@ -0,0 +0,0 @@ import { Editor } from '../interfaces/editor'; |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const deleteFragment: EditorInterface['deleteFragment']; | ||
//# sourceMappingURL=delete-fragment.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const edges: EditorInterface['edges']; | ||
//# sourceMappingURL=edges.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const elementReadOnly: EditorInterface['elementReadOnly']; | ||
//# sourceMappingURL=element-read-only.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const end: EditorInterface['end']; | ||
//# sourceMappingURL=end.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const first: EditorInterface['first']; | ||
//# sourceMappingURL=first.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const fragment: EditorInterface['fragment']; | ||
//# sourceMappingURL=fragment.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const getVoid: EditorInterface['void']; | ||
//# sourceMappingURL=get-void.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const hasBlocks: EditorInterface['hasBlocks']; | ||
//# sourceMappingURL=has-blocks.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const hasInlines: EditorInterface['hasInlines']; | ||
//# sourceMappingURL=has-inlines.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const hasPath: EditorInterface['hasPath']; | ||
//# sourceMappingURL=has-path.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const hasTexts: EditorInterface['hasTexts']; | ||
//# sourceMappingURL=has-texts.d.ts.map |
@@ -0,0 +0,0 @@ export * from './above'; |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const insertBreak: EditorInterface['insertBreak']; | ||
//# sourceMappingURL=insert-break.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const insertNode: EditorInterface['insertNode']; | ||
//# sourceMappingURL=insert-node.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const insertSoftBreak: EditorInterface['insertSoftBreak']; | ||
//# sourceMappingURL=insert-soft-break.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const insertText: EditorInterface['insertText']; | ||
//# sourceMappingURL=insert-text.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const isBlock: EditorInterface['isBlock']; | ||
//# sourceMappingURL=is-block.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const isEdge: EditorInterface['isEdge']; | ||
//# sourceMappingURL=is-edge.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const isEditor: EditorInterface['isEditor']; | ||
//# sourceMappingURL=is-editor.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const isEmpty: EditorInterface['isEmpty']; | ||
//# sourceMappingURL=is-empty.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const isEnd: EditorInterface['isEnd']; | ||
//# sourceMappingURL=is-end.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const isNormalizing: EditorInterface['isNormalizing']; | ||
//# sourceMappingURL=is-normalizing.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const isStart: EditorInterface['isStart']; | ||
//# sourceMappingURL=is-start.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const last: EditorInterface['last']; | ||
//# sourceMappingURL=last.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const leaf: EditorInterface['leaf']; | ||
//# sourceMappingURL=leaf.d.ts.map |
@@ -0,0 +0,0 @@ import { Node, NodeEntry } from '../interfaces/node'; |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const marks: EditorInterface['marks']; | ||
//# sourceMappingURL=marks.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const next: EditorInterface['next']; | ||
//# sourceMappingURL=next.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const node: EditorInterface['node']; | ||
//# sourceMappingURL=node.d.ts.map |
@@ -0,0 +0,0 @@ import { Node, NodeEntry } from '../interfaces/node'; |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const normalize: EditorInterface['normalize']; | ||
//# sourceMappingURL=normalize.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const parent: EditorInterface['parent']; | ||
//# sourceMappingURL=parent.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const pathRef: EditorInterface['pathRef']; | ||
//# sourceMappingURL=path-ref.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const pathRefs: EditorInterface['pathRefs']; | ||
//# sourceMappingURL=path-refs.d.ts.map |
import { EditorInterface } from '../interfaces'; | ||
export declare const path: EditorInterface['path']; | ||
//# sourceMappingURL=path.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const pointRef: EditorInterface['pointRef']; | ||
//# sourceMappingURL=point-ref.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const pointRefs: EditorInterface['pointRefs']; | ||
//# sourceMappingURL=point-refs.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const point: EditorInterface['point']; | ||
//# sourceMappingURL=point.d.ts.map |
@@ -0,0 +0,0 @@ import { Editor, EditorPositionsOptions } from '../interfaces/editor'; |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const previous: EditorInterface['previous']; | ||
//# sourceMappingURL=previous.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const rangeRef: EditorInterface['rangeRef']; | ||
//# sourceMappingURL=range-ref.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const rangeRefs: EditorInterface['rangeRefs']; | ||
//# sourceMappingURL=range-refs.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const range: EditorInterface['range']; | ||
//# sourceMappingURL=range.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const removeMark: EditorInterface['removeMark']; | ||
//# sourceMappingURL=remove-mark.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const setNormalizing: EditorInterface['setNormalizing']; | ||
//# sourceMappingURL=set-normalizing.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const start: EditorInterface['start']; | ||
//# sourceMappingURL=start.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const string: EditorInterface['string']; | ||
//# sourceMappingURL=string.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const unhangRange: EditorInterface['unhangRange']; | ||
//# sourceMappingURL=unhang-range.d.ts.map |
import { EditorInterface } from '../interfaces/editor'; | ||
export declare const withoutNormalizing: EditorInterface['withoutNormalizing']; | ||
//# sourceMappingURL=without-normalizing.d.ts.map |
@@ -0,0 +0,0 @@ export * from './core'; |
@@ -116,6 +116,6 @@ import { Ancestor, Descendant, Element, ExtendedType, Location, Node, NodeEntry, Operation, Path, PathRef, Point, PointRef, Range, RangeRef, Span, Text, Transforms } from '..'; | ||
} | ||
export declare type Editor = ExtendedType<'Editor', BaseEditor>; | ||
export declare type BaseSelection = Range | null; | ||
export declare type Selection = ExtendedType<'Selection', BaseSelection>; | ||
export declare type EditorMarks = Omit<Text, 'text'>; | ||
export type Editor = ExtendedType<'Editor', BaseEditor>; | ||
export type BaseSelection = Range | null; | ||
export type Selection = ExtendedType<'Selection', BaseSelection>; | ||
export type EditorMarks = Omit<Text, 'text'>; | ||
export interface EditorAboveOptions<T extends Ancestor> { | ||
@@ -496,5 +496,5 @@ at?: Location; | ||
*/ | ||
export declare type NodeMatch<T extends Node> = ((node: Node, path: Path) => node is T) | ((node: Node, path: Path) => boolean); | ||
export declare type PropsCompare = (prop: Partial<Node>, node: Partial<Node>) => boolean; | ||
export declare type PropsMerge = (prop: Partial<Node>, node: Partial<Node>) => object; | ||
export type NodeMatch<T extends Node> = ((node: Node, path: Path) => node is T) | ((node: Node, path: Path) => boolean); | ||
export type PropsCompare = (prop: Partial<Node>, node: Partial<Node>) => boolean; | ||
export type PropsMerge = (prop: Partial<Node>, node: Partial<Node>) => object; | ||
//# sourceMappingURL=editor.d.ts.map |
@@ -10,3 +10,3 @@ import { Ancestor, Descendant, ExtendedType, Path } from '..'; | ||
} | ||
export declare type Element = ExtendedType<'Element', BaseElement>; | ||
export type Element = ExtendedType<'Element', BaseElement>; | ||
export interface ElementInterface { | ||
@@ -47,3 +47,3 @@ /** | ||
*/ | ||
export declare type ElementEntry = [Element, Path]; | ||
export type ElementEntry = [Element, Path]; | ||
//# sourceMappingURL=element.d.ts.map |
@@ -0,0 +0,0 @@ export * from './editor'; |
@@ -10,3 +10,3 @@ import { Path, Point, Range } from '..'; | ||
*/ | ||
export declare type Location = Path | Point | Range; | ||
export type Location = Path | Point | Range; | ||
export interface LocationInterface { | ||
@@ -23,3 +23,3 @@ /** | ||
*/ | ||
export declare type Span = [Path, Path]; | ||
export type Span = [Path, Path]; | ||
export interface SpanInterface { | ||
@@ -26,0 +26,0 @@ /** |
@@ -7,4 +7,4 @@ import { Editor, Path, Range, Text } from '..'; | ||
*/ | ||
export declare type BaseNode = Editor | Element | Text; | ||
export declare type Node = Editor | Element | Text; | ||
export type BaseNode = Editor | Element | Text; | ||
export type Node = Editor | Element | Text; | ||
export interface NodeAncestorsOptions { | ||
@@ -158,3 +158,3 @@ reverse?: boolean; | ||
*/ | ||
export declare type Descendant = Element | Text; | ||
export type Descendant = Element | Text; | ||
/** | ||
@@ -165,3 +165,3 @@ * The `Ancestor` union type represents nodes that are ancestors in the tree. | ||
*/ | ||
export declare type Ancestor = Editor | Element; | ||
export type Ancestor = Editor | Element; | ||
/** | ||
@@ -172,7 +172,7 @@ * `NodeEntry` objects are returned when iterating over the nodes in a Slate | ||
*/ | ||
export declare type NodeEntry<T extends Node = Node> = [T, Path]; | ||
export type NodeEntry<T extends Node = Node> = [T, Path]; | ||
/** | ||
* Convenience type for returning the props of a node. | ||
*/ | ||
export declare type NodeProps = Omit<Editor, 'children'> | Omit<Element, 'children'> | Omit<Text, 'text'>; | ||
export type NodeProps = Omit<Editor, 'children'> | Omit<Element, 'children'> | Omit<Text, 'text'>; | ||
//# sourceMappingURL=node.d.ts.map |
import { ExtendedType, Node, Path, Range } from '..'; | ||
export declare type BaseInsertNodeOperation = { | ||
export type BaseInsertNodeOperation = { | ||
type: 'insert_node'; | ||
@@ -7,4 +7,4 @@ path: Path; | ||
}; | ||
export declare type InsertNodeOperation = ExtendedType<'InsertNodeOperation', BaseInsertNodeOperation>; | ||
export declare type BaseInsertTextOperation = { | ||
export type InsertNodeOperation = ExtendedType<'InsertNodeOperation', BaseInsertNodeOperation>; | ||
export type BaseInsertTextOperation = { | ||
type: 'insert_text'; | ||
@@ -15,4 +15,4 @@ path: Path; | ||
}; | ||
export declare type InsertTextOperation = ExtendedType<'InsertTextOperation', BaseInsertTextOperation>; | ||
export declare type BaseMergeNodeOperation = { | ||
export type InsertTextOperation = ExtendedType<'InsertTextOperation', BaseInsertTextOperation>; | ||
export type BaseMergeNodeOperation = { | ||
type: 'merge_node'; | ||
@@ -23,4 +23,4 @@ path: Path; | ||
}; | ||
export declare type MergeNodeOperation = ExtendedType<'MergeNodeOperation', BaseMergeNodeOperation>; | ||
export declare type BaseMoveNodeOperation = { | ||
export type MergeNodeOperation = ExtendedType<'MergeNodeOperation', BaseMergeNodeOperation>; | ||
export type BaseMoveNodeOperation = { | ||
type: 'move_node'; | ||
@@ -30,4 +30,4 @@ path: Path; | ||
}; | ||
export declare type MoveNodeOperation = ExtendedType<'MoveNodeOperation', BaseMoveNodeOperation>; | ||
export declare type BaseRemoveNodeOperation = { | ||
export type MoveNodeOperation = ExtendedType<'MoveNodeOperation', BaseMoveNodeOperation>; | ||
export type BaseRemoveNodeOperation = { | ||
type: 'remove_node'; | ||
@@ -37,4 +37,4 @@ path: Path; | ||
}; | ||
export declare type RemoveNodeOperation = ExtendedType<'RemoveNodeOperation', BaseRemoveNodeOperation>; | ||
export declare type BaseRemoveTextOperation = { | ||
export type RemoveNodeOperation = ExtendedType<'RemoveNodeOperation', BaseRemoveNodeOperation>; | ||
export type BaseRemoveTextOperation = { | ||
type: 'remove_text'; | ||
@@ -45,4 +45,4 @@ path: Path; | ||
}; | ||
export declare type RemoveTextOperation = ExtendedType<'RemoveTextOperation', BaseRemoveTextOperation>; | ||
export declare type BaseSetNodeOperation = { | ||
export type RemoveTextOperation = ExtendedType<'RemoveTextOperation', BaseRemoveTextOperation>; | ||
export type BaseSetNodeOperation = { | ||
type: 'set_node'; | ||
@@ -53,4 +53,4 @@ path: Path; | ||
}; | ||
export declare type SetNodeOperation = ExtendedType<'SetNodeOperation', BaseSetNodeOperation>; | ||
export declare type BaseSetSelectionOperation = { | ||
export type SetNodeOperation = ExtendedType<'SetNodeOperation', BaseSetNodeOperation>; | ||
export type BaseSetSelectionOperation = { | ||
type: 'set_selection'; | ||
@@ -68,4 +68,4 @@ properties: null; | ||
}; | ||
export declare type SetSelectionOperation = ExtendedType<'SetSelectionOperation', BaseSetSelectionOperation>; | ||
export declare type BaseSplitNodeOperation = { | ||
export type SetSelectionOperation = ExtendedType<'SetSelectionOperation', BaseSetSelectionOperation>; | ||
export type BaseSplitNodeOperation = { | ||
type: 'split_node'; | ||
@@ -76,6 +76,6 @@ path: Path; | ||
}; | ||
export declare type SplitNodeOperation = ExtendedType<'SplitNodeOperation', BaseSplitNodeOperation>; | ||
export declare type NodeOperation = InsertNodeOperation | MergeNodeOperation | MoveNodeOperation | RemoveNodeOperation | SetNodeOperation | SplitNodeOperation; | ||
export declare type SelectionOperation = SetSelectionOperation; | ||
export declare type TextOperation = InsertTextOperation | RemoveTextOperation; | ||
export type SplitNodeOperation = ExtendedType<'SplitNodeOperation', BaseSplitNodeOperation>; | ||
export type NodeOperation = InsertNodeOperation | MergeNodeOperation | MoveNodeOperation | RemoveNodeOperation | SetNodeOperation | SplitNodeOperation; | ||
export type SelectionOperation = SetSelectionOperation; | ||
export type TextOperation = InsertTextOperation | RemoveTextOperation; | ||
/** | ||
@@ -87,4 +87,4 @@ * `Operation` objects define the low-level instructions that Slate editors use | ||
*/ | ||
export declare type BaseOperation = NodeOperation | SelectionOperation | TextOperation; | ||
export declare type Operation = ExtendedType<'Operation', BaseOperation>; | ||
export type BaseOperation = NodeOperation | SelectionOperation | TextOperation; | ||
export type Operation = ExtendedType<'Operation', BaseOperation>; | ||
export interface OperationInterface { | ||
@@ -91,0 +91,0 @@ /** |
@@ -0,0 +0,0 @@ import { Operation, Path } from '..'; |
@@ -8,3 +8,3 @@ import { InsertNodeOperation, MergeNodeOperation, MoveNodeOperation, Operation, RemoveNodeOperation, SplitNodeOperation } from '..'; | ||
*/ | ||
export declare type Path = number[]; | ||
export type Path = number[]; | ||
export interface PathAncestorsOptions { | ||
@@ -11,0 +11,0 @@ reverse?: boolean; |
@@ -0,0 +0,0 @@ import { Operation, Point } from '..'; |
@@ -13,3 +13,3 @@ import { ExtendedType, Operation, Path } from '..'; | ||
} | ||
export declare type Point = ExtendedType<'Point', BasePoint>; | ||
export type Point = ExtendedType<'Point', BasePoint>; | ||
export interface PointTransformOptions { | ||
@@ -50,3 +50,3 @@ affinity?: TextDirection | null; | ||
*/ | ||
export declare type PointEntry = [Point, 'anchor' | 'focus']; | ||
export type PointEntry = [Point, 'anchor' | 'focus']; | ||
//# sourceMappingURL=point.d.ts.map |
@@ -0,0 +0,0 @@ import { Operation, Range } from '..'; |
@@ -12,3 +12,3 @@ import { ExtendedType, Operation, Path, Point, PointEntry } from '..'; | ||
} | ||
export declare type Range = ExtendedType<'Range', BaseRange>; | ||
export type Range = ExtendedType<'Range', BaseRange>; | ||
export interface RangeEdgesOptions { | ||
@@ -15,0 +15,0 @@ reverse?: boolean; |
@@ -1,2 +0,2 @@ | ||
export declare type Scrubber = (key: string, value: unknown) => unknown; | ||
export type Scrubber = (key: string, value: unknown) => unknown; | ||
export interface ScrubberInterface { | ||
@@ -3,0 +3,0 @@ setScrubber(scrubber: Scrubber | undefined): void; |
@@ -11,3 +11,3 @@ import { Range } from '..'; | ||
} | ||
export declare type Text = ExtendedType<'Text', BaseText>; | ||
export type Text = ExtendedType<'Text', BaseText>; | ||
export interface TextEqualsOptions { | ||
@@ -14,0 +14,0 @@ loose?: boolean; |
@@ -0,0 +0,0 @@ import { Editor, Operation } from '../../index'; |
@@ -0,0 +0,0 @@ import { GeneralTransforms } from './general'; |
@@ -0,0 +0,0 @@ import { Editor, Element, Location, Node, Path } from '../../index'; |
@@ -0,0 +0,0 @@ import { Editor, Location, Point, Range } from '../../index'; |
@@ -0,0 +0,0 @@ import { Editor, Location, Node } from '../../index'; |
@@ -0,0 +0,0 @@ export * from './insert-nodes'; |
import { NodeTransforms } from '../interfaces/transforms/node'; | ||
export declare const insertNodes: NodeTransforms['insertNodes']; | ||
//# sourceMappingURL=insert-nodes.d.ts.map |
import { NodeTransforms } from '../interfaces/transforms/node'; | ||
export declare const liftNodes: NodeTransforms['liftNodes']; | ||
//# sourceMappingURL=lift-nodes.d.ts.map |
import { NodeTransforms } from '../interfaces/transforms/node'; | ||
export declare const mergeNodes: NodeTransforms['mergeNodes']; | ||
//# sourceMappingURL=merge-nodes.d.ts.map |
import { NodeTransforms } from '../interfaces/transforms/node'; | ||
export declare const moveNodes: NodeTransforms['moveNodes']; | ||
//# sourceMappingURL=move-nodes.d.ts.map |
import { NodeTransforms } from '../interfaces/transforms/node'; | ||
export declare const removeNodes: NodeTransforms['removeNodes']; | ||
//# sourceMappingURL=remove-nodes.d.ts.map |
import { NodeTransforms } from '../interfaces/transforms/node'; | ||
export declare const setNodes: NodeTransforms['setNodes']; | ||
//# sourceMappingURL=set-nodes.d.ts.map |
import { NodeTransforms } from '../interfaces/transforms/node'; | ||
export declare const splitNodes: NodeTransforms['splitNodes']; | ||
//# sourceMappingURL=split-nodes.d.ts.map |
import { NodeTransforms } from '../interfaces/transforms/node'; | ||
export declare const unsetNodes: NodeTransforms['unsetNodes']; | ||
//# sourceMappingURL=unset-nodes.d.ts.map |
import { NodeTransforms } from '../interfaces/transforms/node'; | ||
export declare const unwrapNodes: NodeTransforms['unwrapNodes']; | ||
//# sourceMappingURL=unwrap-nodes.d.ts.map |
import { NodeTransforms } from '../interfaces/transforms/node'; | ||
export declare const wrapNodes: NodeTransforms['wrapNodes']; | ||
//# sourceMappingURL=wrap-nodes.d.ts.map |
import { SelectionTransforms } from '../interfaces/transforms/selection'; | ||
export declare const collapse: SelectionTransforms['collapse']; | ||
//# sourceMappingURL=collapse.d.ts.map |
import { SelectionTransforms } from '../interfaces/transforms/selection'; | ||
export declare const deselect: SelectionTransforms['deselect']; | ||
//# sourceMappingURL=deselect.d.ts.map |
@@ -0,0 +0,0 @@ export * from './collapse'; |
import { SelectionTransforms } from '../interfaces/transforms/selection'; | ||
export declare const move: SelectionTransforms['move']; | ||
//# sourceMappingURL=move.d.ts.map |
import { SelectionTransforms } from '../interfaces/transforms/selection'; | ||
export declare const select: SelectionTransforms['select']; | ||
//# sourceMappingURL=select.d.ts.map |
import { SelectionTransforms } from '../interfaces/transforms/selection'; | ||
export declare const setPoint: SelectionTransforms['setPoint']; | ||
//# sourceMappingURL=set-point.d.ts.map |
import { SelectionTransforms } from '../interfaces/transforms/selection'; | ||
export declare const setSelection: SelectionTransforms['setSelection']; | ||
//# sourceMappingURL=set-selection.d.ts.map |
import { TextTransforms } from '../interfaces/transforms/text'; | ||
export declare const deleteText: TextTransforms['delete']; | ||
//# sourceMappingURL=delete-text.d.ts.map |
export * from './delete-text'; | ||
export * from './insert-fragment'; | ||
//# sourceMappingURL=index.d.ts.map |
import { TextTransforms } from '../interfaces/transforms/text'; | ||
export declare const insertFragment: TextTransforms['insertFragment']; | ||
//# sourceMappingURL=insert-fragment.d.ts.map |
/** | ||
* Extendable Custom Types Interface | ||
*/ | ||
declare type ExtendableTypes = 'Editor' | 'Element' | 'Text' | 'Selection' | 'Range' | 'Point' | 'Operation' | 'InsertNodeOperation' | 'InsertTextOperation' | 'MergeNodeOperation' | 'MoveNodeOperation' | 'RemoveNodeOperation' | 'RemoveTextOperation' | 'SetNodeOperation' | 'SetSelectionOperation' | 'SplitNodeOperation'; | ||
type ExtendableTypes = 'Editor' | 'Element' | 'Text' | 'Selection' | 'Range' | 'Point' | 'Operation' | 'InsertNodeOperation' | 'InsertTextOperation' | 'MergeNodeOperation' | 'MoveNodeOperation' | 'RemoveNodeOperation' | 'RemoveTextOperation' | 'SetNodeOperation' | 'SetSelectionOperation' | 'SplitNodeOperation'; | ||
export interface CustomTypes { | ||
[key: string]: unknown; | ||
} | ||
export declare type ExtendedType<K extends ExtendableTypes, B> = unknown extends CustomTypes[K] ? B : CustomTypes[K]; | ||
export type ExtendedType<K extends ExtendableTypes, B> = unknown extends CustomTypes[K] ? B : CustomTypes[K]; | ||
export {}; | ||
//# sourceMappingURL=custom-types.d.ts.map |
export * from './custom-types'; | ||
export * from './types'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,11 +0,11 @@ | ||
export declare type LeafEdge = 'start' | 'end'; | ||
export declare type MaximizeMode = RangeMode | 'all'; | ||
export declare type MoveUnit = 'offset' | 'character' | 'word' | 'line'; | ||
export declare type RangeDirection = TextDirection | 'outward' | 'inward'; | ||
export declare type RangeMode = 'highest' | 'lowest'; | ||
export declare type SelectionEdge = 'anchor' | 'focus' | 'start' | 'end'; | ||
export declare type SelectionMode = 'all' | 'highest' | 'lowest'; | ||
export declare type TextDirection = 'forward' | 'backward'; | ||
export declare type TextUnit = 'character' | 'word' | 'line' | 'block'; | ||
export declare type TextUnitAdjustment = TextUnit | 'offset'; | ||
export type LeafEdge = 'start' | 'end'; | ||
export type MaximizeMode = RangeMode | 'all'; | ||
export type MoveUnit = 'offset' | 'character' | 'word' | 'line'; | ||
export type RangeDirection = TextDirection | 'outward' | 'inward'; | ||
export type RangeMode = 'highest' | 'lowest'; | ||
export type SelectionEdge = 'anchor' | 'focus' | 'start' | 'end'; | ||
export type SelectionMode = 'all' | 'highest' | 'lowest'; | ||
export type TextDirection = 'forward' | 'backward'; | ||
export type TextUnit = 'character' | 'word' | 'line' | 'block'; | ||
export type TextUnitAdjustment = TextUnit | 'offset'; | ||
//# sourceMappingURL=types.d.ts.map |
export declare const isDeepEqual: (node: Record<string, any>, another: Record<string, any>) => boolean; | ||
//# sourceMappingURL=deep-equal.d.ts.map |
@@ -0,0 +0,0 @@ import { Editor, Location } from '../interfaces'; |
@@ -0,0 +0,0 @@ export * from './deep-equal'; |
@@ -0,0 +0,0 @@ import { Editor } from '../interfaces/editor'; |
@@ -13,3 +13,3 @@ /** | ||
*/ | ||
export declare const splitByCharacterDistance: (str: string, dist: number, isRTL?: boolean | undefined) => [string, string]; | ||
export declare const splitByCharacterDistance: (str: string, dist: number, isRTL?: boolean) => [string, string]; | ||
/** | ||
@@ -16,0 +16,0 @@ * Iterate on codepoints from right to left. |
import { Editor } from '../interfaces/editor'; | ||
export declare type OmitFirstArg<F> = F extends (x: any, ...args: infer P) => infer R ? (...args: P) => R : never; | ||
export declare type OmitFirstArgWithSpecificGeneric<F, TSpecific> = F extends (x: any, ...args: infer P) => infer R ? (...args: P) => R : never; | ||
export declare type WithEditorFirstArg<T extends (...args: any) => any> = (editor: Editor, ...args: Parameters<T>) => ReturnType<T>; | ||
export type OmitFirstArg<F> = F extends (x: any, ...args: infer P) => infer R ? (...args: P) => R : never; | ||
export type OmitFirstArgWithSpecificGeneric<F, TSpecific> = F extends (x: any, ...args: infer P) => infer R ? (...args: P) => R : never; | ||
export type WithEditorFirstArg<T extends (...args: any) => any> = (editor: Editor, ...args: Parameters<T>) => ReturnType<T>; | ||
//# sourceMappingURL=types.d.ts.map |
@@ -0,0 +0,0 @@ import { Editor, Path, PathRef, PointRef, RangeRef } from '..'; |
{ | ||
"name": "slate", | ||
"description": "A completely customizable framework for building rich text editors.", | ||
"version": "0.94.1", | ||
"version": "0.100.0-20231020154238", | ||
"license": "MIT", | ||
@@ -17,3 +17,3 @@ "repository": "git://github.com/ianstormtaylor/slate.git", | ||
"dependencies": { | ||
"immer": "^9.0.6", | ||
"immer": "^10.0.3", | ||
"is-plain-object": "^5.0.0", | ||
@@ -23,6 +23,6 @@ "tiny-warning": "^1.0.3" | ||
"devDependencies": { | ||
"@babel/runtime": "^7.7.4", | ||
"@babel/runtime": "^7.23.2", | ||
"lodash": "^4.17.21", | ||
"slate-hyperscript": "^0.81.3", | ||
"source-map-loader": "^4.0.0" | ||
"slate-hyperscript": "0.100.0-20231020154238", | ||
"source-map-loader": "^4.0.1" | ||
}, | ||
@@ -29,0 +29,0 @@ "keywords": [ |
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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
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 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 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 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 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 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 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 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 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 not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
2064152
21864
1
+ Addedimmer@10.1.1(transitive)
- Removedimmer@9.0.21(transitive)
Updatedimmer@^10.0.3