planning
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s

This commit is contained in:
2024-10-14 09:15:30 +02:00
parent bcba00a730
commit 6e64e138e2
21059 changed files with 2317811 additions and 1 deletions

3
node_modules/slate/Readme.md generated vendored Normal file
View File

@@ -0,0 +1,3 @@
This package contains the core logic of Slate. Feel free to poke around to learn more!
Note: A number of source files contain extracted types for `Interfaces` or `Transforms`. This is done currently to enable custom type extensions as found in `packages/src/interfaces/custom-types.ts`.

6
node_modules/slate/dist/create-editor.d.ts generated vendored Normal file
View File

@@ -0,0 +1,6 @@
import { Editor } from './';
/**
* Create a new Slate `Editor` object.
*/
export declare const createEditor: () => Editor;
//# sourceMappingURL=create-editor.d.ts.map

1
node_modules/slate/dist/create-editor.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"create-editor.d.ts","sourceRoot":"","sources":["packages/slate/src/create-editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EAWP,MAAM,IAAI,CAAA;AAIX;;GAEG;AAEH,eAAO,MAAM,YAAY,QAAO,MAyZ/B,CAAA"}

17
node_modules/slate/dist/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,17 @@
export * from './create-editor';
export * from './interfaces/custom-types';
export * from './interfaces/editor';
export * from './interfaces/element';
export * from './interfaces/location';
export * from './interfaces/node';
export * from './interfaces/operation';
export * from './interfaces/path';
export * from './interfaces/path-ref';
export * from './interfaces/point';
export * from './interfaces/point-ref';
export * from './interfaces/range';
export * from './interfaces/range-ref';
export * from './interfaces/scrubber';
export * from './interfaces/text';
export * from './transforms';
//# sourceMappingURL=index.d.ts.map

1
node_modules/slate/dist/index.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["packages/slate/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,2BAA2B,CAAA;AACzC,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA"}

6085
node_modules/slate/dist/index.es.js generated vendored Normal file

File diff suppressed because one or more lines are too long

1
node_modules/slate/dist/index.es.js.map generated vendored Normal file

File diff suppressed because one or more lines are too long

7023
node_modules/slate/dist/index.js generated vendored Normal file

File diff suppressed because one or more lines are too long

1
node_modules/slate/dist/index.js.map generated vendored Normal file

File diff suppressed because one or more lines are too long

10
node_modules/slate/dist/interfaces/custom-types.d.ts generated vendored Normal file
View File

@@ -0,0 +1,10 @@
/**
* Extendable Custom Types Interface
*/
declare 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 {};
//# sourceMappingURL=custom-types.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"custom-types.d.ts","sourceRoot":"","sources":["../packages/slate/src/interfaces/custom-types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,aAAK,eAAe,GAChB,QAAQ,GACR,SAAS,GACT,MAAM,GACN,WAAW,GACX,OAAO,GACP,OAAO,GACP,WAAW,GACX,qBAAqB,GACrB,qBAAqB,GACrB,oBAAoB,GACpB,mBAAmB,GACnB,qBAAqB,GACrB,qBAAqB,GACrB,kBAAkB,GAClB,uBAAuB,GACvB,oBAAoB,CAAA;AAExB,MAAM,WAAW,WAAW;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAED,oBAAY,YAAY,CACtB,CAAC,SAAS,eAAe,EACzB,CAAC,IACC,OAAO,SAAS,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAA"}

209
node_modules/slate/dist/interfaces/editor.d.ts generated vendored Normal file
View File

@@ -0,0 +1,209 @@
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 { LeafEdge, MaximizeMode, RangeDirection, SelectionMode, TextDirection, TextUnit, TextUnitAdjustment } from './types';
export declare type BaseSelection = Range | null;
export declare type Selection = ExtendedType<'Selection', BaseSelection>;
export declare type EditorMarks = Omit<Text, 'text'>;
/**
* The `Editor` interface stores all the state of a Slate editor. It is extended
* by plugins that wish to add their own helpers and implement new behaviors.
*/
export interface BaseEditor {
children: Descendant[];
selection: Selection;
operations: Operation[];
marks: EditorMarks | null;
isInline: (element: Element) => boolean;
isVoid: (element: Element) => boolean;
markableVoid: (element: Element) => boolean;
normalizeNode: (entry: NodeEntry, options?: {
operation?: Operation;
}) => void;
onChange: (options?: {
operation?: Operation;
}) => void;
addMark: (key: string, value: any) => void;
apply: (operation: Operation) => void;
deleteBackward: (unit: TextUnit) => void;
deleteForward: (unit: TextUnit) => void;
deleteFragment: (direction?: TextDirection) => void;
getFragment: () => Descendant[];
insertBreak: () => void;
insertSoftBreak: () => void;
insertFragment: (fragment: Node[]) => void;
insertNode: (node: Node) => void;
insertText: (text: string) => void;
removeMark: (key: string) => void;
getDirtyPaths: (operation: Operation) => Path[];
shouldNormalize: ({ iteration, dirtyPaths, operation, }: {
iteration: number;
initialDirtyPathsLength: number;
dirtyPaths: Path[];
operation?: Operation;
}) => boolean;
}
export declare type Editor = ExtendedType<'Editor', BaseEditor>;
export interface EditorAboveOptions<T extends Ancestor> {
at?: Location;
match?: NodeMatch<T>;
mode?: MaximizeMode;
voids?: boolean;
}
export interface EditorAfterOptions {
distance?: number;
unit?: TextUnitAdjustment;
voids?: boolean;
}
export interface EditorBeforeOptions {
distance?: number;
unit?: TextUnitAdjustment;
voids?: boolean;
}
export interface EditorDirectedDeletionOptions {
unit?: TextUnit;
}
export interface EditorFragmentDeletionOptions {
direction?: TextDirection;
}
export interface EditorLeafOptions {
depth?: number;
edge?: LeafEdge;
}
export interface EditorLevelsOptions<T extends Node> {
at?: Location;
match?: NodeMatch<T>;
reverse?: boolean;
voids?: boolean;
}
export interface EditorNextOptions<T extends Descendant> {
at?: Location;
match?: NodeMatch<T>;
mode?: SelectionMode;
voids?: boolean;
}
export interface EditorNodeOptions {
depth?: number;
edge?: LeafEdge;
}
export interface EditorNodesOptions<T extends Node> {
at?: Location | Span;
match?: NodeMatch<T>;
mode?: SelectionMode;
universal?: boolean;
reverse?: boolean;
voids?: boolean;
}
export interface EditorNormalizeOptions {
force?: boolean;
operation?: Operation;
}
export interface EditorParentOptions {
depth?: number;
edge?: LeafEdge;
}
export interface EditorPathOptions {
depth?: number;
edge?: LeafEdge;
}
export interface EditorPathRefOptions {
affinity?: TextDirection | null;
}
export interface EditorPointOptions {
edge?: LeafEdge;
}
export interface EditorPointRefOptions {
affinity?: TextDirection | null;
}
export interface EditorPositionsOptions {
at?: Location;
unit?: TextUnitAdjustment;
reverse?: boolean;
voids?: boolean;
}
export interface EditorPreviousOptions<T extends Node> {
at?: Location;
match?: NodeMatch<T>;
mode?: SelectionMode;
voids?: boolean;
}
export interface EditorRangeRefOptions {
affinity?: RangeDirection | null;
}
export interface EditorStringOptions {
voids?: boolean;
}
export interface EditorUnhangRangeOptions {
voids?: boolean;
}
export interface EditorVoidOptions {
at?: Location;
mode?: MaximizeMode;
voids?: boolean;
}
export interface EditorInterface {
above: <T extends Ancestor>(editor: Editor, options?: EditorAboveOptions<T>) => NodeEntry<T> | undefined;
addMark: (editor: Editor, key: string, value: any) => void;
after: (editor: Editor, at: Location, options?: EditorAfterOptions) => Point | undefined;
before: (editor: Editor, at: Location, options?: EditorBeforeOptions) => Point | undefined;
deleteBackward: (editor: Editor, options?: EditorDirectedDeletionOptions) => void;
deleteForward: (editor: Editor, options?: EditorDirectedDeletionOptions) => void;
deleteFragment: (editor: Editor, options?: EditorFragmentDeletionOptions) => void;
edges: (editor: Editor, at: Location) => [Point, Point];
end: (editor: Editor, at: Location) => Point;
first: (editor: Editor, at: Location) => NodeEntry;
fragment: (editor: Editor, at: Location) => Descendant[];
hasBlocks: (editor: Editor, element: Element) => boolean;
hasInlines: (editor: Editor, element: Element) => boolean;
hasPath: (editor: Editor, path: Path) => boolean;
hasTexts: (editor: Editor, element: Element) => boolean;
insertBreak: (editor: Editor) => void;
insertSoftBreak: (editor: Editor) => void;
insertFragment: (editor: Editor, fragment: Node[]) => void;
insertNode: (editor: Editor, node: Node) => void;
insertText: (editor: Editor, text: string) => void;
isBlock: (editor: Editor, value: Element) => boolean;
isEditor: (value: any) => value is Editor;
isEnd: (editor: Editor, point: Point, at: Location) => boolean;
isEdge: (editor: Editor, point: Point, at: Location) => boolean;
isEmpty: (editor: Editor, element: Element) => boolean;
isInline: (editor: Editor, value: Element) => boolean;
isNormalizing: (editor: Editor) => boolean;
isStart: (editor: Editor, point: Point, at: Location) => boolean;
isVoid: (editor: Editor, value: Element) => boolean;
last: (editor: Editor, at: Location) => NodeEntry;
leaf: (editor: Editor, at: Location, options?: EditorLeafOptions) => NodeEntry<Text>;
levels: <T extends Node>(editor: Editor, options?: EditorLevelsOptions<T>) => Generator<NodeEntry<T>, void, undefined>;
marks: (editor: Editor) => Omit<Text, 'text'> | null;
next: <T extends Descendant>(editor: Editor, options?: EditorNextOptions<T>) => NodeEntry<T> | undefined;
node: (editor: Editor, at: Location, options?: EditorNodeOptions) => NodeEntry;
nodes: <T extends Node>(editor: Editor, options?: EditorNodesOptions<T>) => Generator<NodeEntry<T>, void, undefined>;
normalize: (editor: Editor, options?: EditorNormalizeOptions) => void;
parent: (editor: Editor, at: Location, options?: EditorParentOptions) => NodeEntry<Ancestor>;
path: (editor: Editor, at: Location, options?: EditorPathOptions) => Path;
pathRef: (editor: Editor, path: Path, options?: EditorPathRefOptions) => PathRef;
pathRefs: (editor: Editor) => Set<PathRef>;
point: (editor: Editor, at: Location, options?: EditorPointOptions) => Point;
pointRef: (editor: Editor, point: Point, options?: EditorPointRefOptions) => PointRef;
pointRefs: (editor: Editor) => Set<PointRef>;
positions: (editor: Editor, options?: EditorPositionsOptions) => Generator<Point, void, undefined>;
previous: <T extends Node>(editor: Editor, options?: EditorPreviousOptions<T>) => NodeEntry<T> | undefined;
range: (editor: Editor, at: Location, to?: Location) => Range;
rangeRef: (editor: Editor, range: Range, options?: EditorRangeRefOptions) => RangeRef;
rangeRefs: (editor: Editor) => Set<RangeRef>;
removeMark: (editor: Editor, key: string) => void;
setNormalizing: (editor: Editor, isNormalizing: boolean) => void;
start: (editor: Editor, at: Location) => Point;
string: (editor: Editor, at: Location, options?: EditorStringOptions) => string;
unhangRange: (editor: Editor, range: Range, options?: EditorUnhangRangeOptions) => Range;
void: (editor: Editor, options?: EditorVoidOptions) => NodeEntry<Element> | undefined;
withoutNormalizing: (editor: Editor, fn: () => void) => void;
}
export declare const Editor: EditorInterface;
/**
* A helper type for narrowing matched nodes with a predicate.
*/
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;
//# sourceMappingURL=editor.d.ts.map

1
node_modules/slate/dist/interfaces/editor.d.ts.map generated vendored Normal file

File diff suppressed because one or more lines are too long

25
node_modules/slate/dist/interfaces/element.d.ts generated vendored Normal file
View File

@@ -0,0 +1,25 @@
import { Path, Descendant, ExtendedType, Ancestor } from '..';
/**
* `Element` objects are a type of node in a Slate document that contain other
* element nodes or text nodes. They can be either "blocks" or "inlines"
* depending on the Slate editor's configuration.
*/
export interface BaseElement {
children: Descendant[];
}
export declare type Element = ExtendedType<'Element', BaseElement>;
export interface ElementInterface {
isAncestor: (value: any) => value is Ancestor;
isElement: (value: any) => value is Element;
isElementList: (value: any) => value is Element[];
isElementProps: (props: any) => props is Partial<Element>;
isElementType: <T extends Element>(value: any, elementVal: string, elementKey?: string) => value is T;
matches: (element: Element, props: Partial<Element>) => boolean;
}
export declare const Element: ElementInterface;
/**
* `ElementEntry` objects refer to an `Element` and the `Path` where it can be
* found inside a root node.
*/
export declare type ElementEntry = [Element, Path];
//# sourceMappingURL=element.d.ts.map

1
node_modules/slate/dist/interfaces/element.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../packages/slate/src/interfaces/element.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAA;AAE3E;;;;GAIG;AAEH,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,UAAU,EAAE,CAAA;CACvB;AAED,oBAAY,OAAO,GAAG,YAAY,CAAC,SAAS,EAAE,WAAW,CAAC,CAAA;AAE1D,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,IAAI,QAAQ,CAAA;IAC7C,SAAS,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,IAAI,OAAO,CAAA;IAC3C,aAAa,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,IAAI,OAAO,EAAE,CAAA;IACjD,cAAc,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC,CAAA;IACzD,aAAa,EAAE,CAAC,CAAC,SAAS,OAAO,EAC/B,KAAK,EAAE,GAAG,EACV,UAAU,EAAE,MAAM,EAClB,UAAU,CAAC,EAAE,MAAM,KAChB,KAAK,IAAI,CAAC,CAAA;IACf,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,OAAO,CAAA;CAChE;AAcD,eAAO,MAAM,OAAO,EAAE,gBA+DrB,CAAA;AAED;;;GAGG;AAEH,oBAAY,YAAY,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA"}

24
node_modules/slate/dist/interfaces/location.d.ts generated vendored Normal file
View File

@@ -0,0 +1,24 @@
import { Path, Point, Range } from '..';
/**
* The `Location` interface is a union of the ways to refer to a specific
* location in a Slate document: paths, points or ranges.
*
* Methods will often accept a `Location` instead of requiring only a `Path`,
* `Point` or `Range`. This eliminates the need for developers to manage
* converting between the different interfaces in their own code base.
*/
export declare type Location = Path | Point | Range;
export interface LocationInterface {
isLocation: (value: any) => value is Location;
}
export declare const Location: LocationInterface;
/**
* The `Span` interface is a low-level way to refer to locations in nodes
* without using `Point` which requires leaf text nodes to be present.
*/
export declare type Span = [Path, Path];
export interface SpanInterface {
isSpan: (value: any) => value is Span;
}
export declare const Span: SpanInterface;
//# sourceMappingURL=location.d.ts.map

1
node_modules/slate/dist/interfaces/location.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../packages/slate/src/interfaces/location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,IAAI,CAAA;AAEvC;;;;;;;GAOG;AAEH,oBAAY,QAAQ,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,CAAA;AAE3C,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,IAAI,QAAQ,CAAA;CAC9C;AAGD,eAAO,MAAM,QAAQ,EAAE,iBAQtB,CAAA;AAED;;;GAGG;AAEH,oBAAY,IAAI,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;AAE/B,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,IAAI,IAAI,CAAA;CACtC;AAGD,eAAO,MAAM,IAAI,EAAE,aAUlB,CAAA"}

90
node_modules/slate/dist/interfaces/node.d.ts generated vendored Normal file
View File

@@ -0,0 +1,90 @@
import { Editor, Path, Range, Text } from '..';
import { Element, ElementEntry } from './element';
/**
* The `Node` union type represents all of the different types of nodes that
* occur in a Slate document tree.
*/
export declare type BaseNode = Editor | Element | Text;
export declare type Node = Editor | Element | Text;
export interface NodeAncestorsOptions {
reverse?: boolean;
}
export interface NodeChildrenOptions {
reverse?: boolean;
}
export interface NodeDescendantsOptions {
from?: Path;
to?: Path;
reverse?: boolean;
pass?: (node: NodeEntry) => boolean;
}
export interface NodeElementsOptions {
from?: Path;
to?: Path;
reverse?: boolean;
pass?: (node: NodeEntry) => boolean;
}
export interface NodeLevelsOptions {
reverse?: boolean;
}
export interface NodeNodesOptions {
from?: Path;
to?: Path;
reverse?: boolean;
pass?: (entry: NodeEntry) => boolean;
}
export interface NodeTextsOptions {
from?: Path;
to?: Path;
reverse?: boolean;
pass?: (node: NodeEntry) => boolean;
}
export interface NodeInterface {
ancestor: (root: Node, path: Path) => Ancestor;
ancestors: (root: Node, path: Path, options?: NodeAncestorsOptions) => Generator<NodeEntry<Ancestor>, void, undefined>;
child: (root: Node, index: number) => Descendant;
children: (root: Node, path: Path, options?: NodeChildrenOptions) => Generator<NodeEntry<Descendant>, void, undefined>;
common: (root: Node, path: Path, another: Path) => NodeEntry;
descendant: (root: Node, path: Path) => Descendant;
descendants: (root: Node, options?: NodeDescendantsOptions) => Generator<NodeEntry<Descendant>, void, undefined>;
elements: (root: Node, options?: NodeElementsOptions) => Generator<ElementEntry, void, undefined>;
extractProps: (node: Node) => NodeProps;
first: (root: Node, path: Path) => NodeEntry;
fragment: (root: Node, range: Range) => Descendant[];
get: (root: Node, path: Path) => Node;
has: (root: Node, path: Path) => boolean;
isNode: (value: any) => value is Node;
isNodeList: (value: any) => value is Node[];
last: (root: Node, path: Path) => NodeEntry;
leaf: (root: Node, path: Path) => Text;
levels: (root: Node, path: Path, options?: NodeLevelsOptions) => Generator<NodeEntry, void, undefined>;
matches: (node: Node, props: Partial<Node>) => boolean;
nodes: (root: Node, options?: NodeNodesOptions) => Generator<NodeEntry, void, undefined>;
parent: (root: Node, path: Path) => Ancestor;
string: (node: Node) => string;
texts: (root: Node, options?: NodeTextsOptions) => Generator<NodeEntry<Text>, void, undefined>;
}
export declare const Node: NodeInterface;
/**
* The `Descendant` union type represents nodes that are descendants in the
* tree. It is returned as a convenience in certain cases to narrow a value
* further than the more generic `Node` union.
*/
export declare type Descendant = Element | Text;
/**
* The `Ancestor` union type represents nodes that are ancestors in the tree.
* It is returned as a convenience in certain cases to narrow a value further
* than the more generic `Node` union.
*/
export declare type Ancestor = Editor | Element;
/**
* `NodeEntry` objects are returned when iterating over the nodes in a Slate
* document tree. They consist of the node and its `Path` relative to the root
* node in the document.
*/
export declare 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'>;
//# sourceMappingURL=node.d.ts.map

1
node_modules/slate/dist/interfaces/node.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../packages/slate/src/interfaces/node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAY,MAAM,IAAI,CAAA;AACxD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEjD;;;GAGG;AAEH,oBAAY,QAAQ,GAAG,MAAM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oBAAY,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;AAEvC;;;;GAIG;AAEH,oBAAY,SAAS,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAA;AAExD;;GAEG;AACH,oBAAY,SAAS,GACjB,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,GACxB,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,GACzB,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA"}

89
node_modules/slate/dist/interfaces/operation.d.ts generated vendored Normal file
View File

@@ -0,0 +1,89 @@
import { ExtendedType, Node, Path, Range } from '..';
export declare type BaseInsertNodeOperation = {
type: 'insert_node';
path: Path;
node: Node;
};
export declare type InsertNodeOperation = ExtendedType<'InsertNodeOperation', BaseInsertNodeOperation>;
export declare type BaseInsertTextOperation = {
type: 'insert_text';
path: Path;
offset: number;
text: string;
};
export declare type InsertTextOperation = ExtendedType<'InsertTextOperation', BaseInsertTextOperation>;
export declare type BaseMergeNodeOperation = {
type: 'merge_node';
path: Path;
position: number;
properties: Partial<Node>;
};
export declare type MergeNodeOperation = ExtendedType<'MergeNodeOperation', BaseMergeNodeOperation>;
export declare type BaseMoveNodeOperation = {
type: 'move_node';
path: Path;
newPath: Path;
};
export declare type MoveNodeOperation = ExtendedType<'MoveNodeOperation', BaseMoveNodeOperation>;
export declare type BaseRemoveNodeOperation = {
type: 'remove_node';
path: Path;
node: Node;
};
export declare type RemoveNodeOperation = ExtendedType<'RemoveNodeOperation', BaseRemoveNodeOperation>;
export declare type BaseRemoveTextOperation = {
type: 'remove_text';
path: Path;
offset: number;
text: string;
};
export declare type RemoveTextOperation = ExtendedType<'RemoveTextOperation', BaseRemoveTextOperation>;
export declare type BaseSetNodeOperation = {
type: 'set_node';
path: Path;
properties: Partial<Node>;
newProperties: Partial<Node>;
};
export declare type SetNodeOperation = ExtendedType<'SetNodeOperation', BaseSetNodeOperation>;
export declare type BaseSetSelectionOperation = {
type: 'set_selection';
properties: null;
newProperties: Range;
} | {
type: 'set_selection';
properties: Partial<Range>;
newProperties: Partial<Range>;
} | {
type: 'set_selection';
properties: Range;
newProperties: null;
};
export declare type SetSelectionOperation = ExtendedType<'SetSelectionOperation', BaseSetSelectionOperation>;
export declare type BaseSplitNodeOperation = {
type: 'split_node';
path: Path;
position: number;
properties: Partial<Node>;
};
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;
/**
* `Operation` objects define the low-level instructions that Slate editors use
* to apply changes to their internal state. Representing all changes as
* operations is what allows Slate editors to easily implement history,
* collaboration, and other features.
*/
export declare type BaseOperation = NodeOperation | SelectionOperation | TextOperation;
export declare type Operation = ExtendedType<'Operation', BaseOperation>;
export interface OperationInterface {
isNodeOperation: (value: any) => value is NodeOperation;
isOperation: (value: any) => value is Operation;
isOperationList: (value: any) => value is Operation[];
isSelectionOperation: (value: any) => value is SelectionOperation;
isTextOperation: (value: any) => value is TextOperation;
inverse: (op: Operation) => Operation;
}
export declare const Operation: OperationInterface;
//# sourceMappingURL=operation.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../packages/slate/src/interfaces/operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,IAAI,CAAA;AAGpD,oBAAY,uBAAuB,GAAG;IACpC,IAAI,EAAE,aAAa,CAAA;IACnB,IAAI,EAAE,IAAI,CAAA;IACV,IAAI,EAAE,IAAI,CAAA;CACX,CAAA;AAED,oBAAY,mBAAmB,GAAG,YAAY,CAC5C,qBAAqB,EACrB,uBAAuB,CACxB,CAAA;AAED,oBAA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e,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,IAAI,aAAa,CAAA;IACvD,WAAW,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,IAAI,SAAS,CAAA;IAC/C,eAAe,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,IAAI,SAAS,EAAE,CAAA;IACrD,oBAAoB,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,IAAI,kBAAkB,CAAA;IACjE,eAAe,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,IAAI,aAAa,CAAA;IACvD,OAAO,EAAE,CAAC,EAAE,EAAE,SAAS,KAAK,SAAS,CAAA;CACtC;AAGD,eAAO,MAAM,SAAS,EAAE,kBA+KvB,CAAA"}

16
node_modules/slate/dist/interfaces/path-ref.d.ts generated vendored Normal file
View File

@@ -0,0 +1,16 @@
import { Operation, Path } from '..';
/**
* `PathRef` objects keep a specific path in a document synced over time as new
* operations are applied to the editor. You can access their `current` property
* at any time for the up-to-date path value.
*/
export interface PathRef {
current: Path | null;
affinity: 'forward' | 'backward' | null;
unref(): Path | null;
}
export interface PathRefInterface {
transform: (ref: PathRef, op: Operation) => void;
}
export declare const PathRef: PathRefInterface;
//# sourceMappingURL=path-ref.d.ts.map

1
node_modules/slate/dist/interfaces/path-ref.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"path-ref.d.ts","sourceRoot":"","sources":["../packages/slate/src/interfaces/path-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,IAAI,CAAA;AAEpC;;;;GAIG;AAEH,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,IAAI,GAAG,IAAI,CAAA;IACpB,QAAQ,EAAE,SAAS,GAAG,UAAU,GAAG,IAAI,CAAA;IACvC,KAAK,IAAI,IAAI,GAAG,IAAI,CAAA;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE,SAAS,KAAK,IAAI,CAAA;CACjD;AAGD,eAAO,MAAM,OAAO,EAAE,gBAmBrB,CAAA"}

45
node_modules/slate/dist/interfaces/path.d.ts generated vendored Normal file
View File

@@ -0,0 +1,45 @@
import { Operation } from '..';
import { TextDirection } from './types';
/**
* `Path` arrays are a list of indexes that describe a node's exact position in
* a Slate node tree. Although they are usually relative to the root `Editor`
* object, they can be relative to any `Node` object.
*/
export declare type Path = number[];
export interface PathAncestorsOptions {
reverse?: boolean;
}
export interface PathLevelsOptions {
reverse?: boolean;
}
export interface PathTransformOptions {
affinity?: TextDirection | null;
}
export interface PathInterface {
ancestors: (path: Path, options?: PathAncestorsOptions) => Path[];
common: (path: Path, another: Path) => Path;
compare: (path: Path, another: Path) => -1 | 0 | 1;
endsAfter: (path: Path, another: Path) => boolean;
endsAt: (path: Path, another: Path) => boolean;
endsBefore: (path: Path, another: Path) => boolean;
equals: (path: Path, another: Path) => boolean;
hasPrevious: (path: Path) => boolean;
isAfter: (path: Path, another: Path) => boolean;
isAncestor: (path: Path, another: Path) => boolean;
isBefore: (path: Path, another: Path) => boolean;
isChild: (path: Path, another: Path) => boolean;
isCommon: (path: Path, another: Path) => boolean;
isDescendant: (path: Path, another: Path) => boolean;
isParent: (path: Path, another: Path) => boolean;
isPath: (value: any) => value is Path;
isSibling: (path: Path, another: Path) => boolean;
levels: (path: Path, options?: PathLevelsOptions) => Path[];
next: (path: Path) => Path;
operationCanTransformPath: (operation: Operation) => boolean;
parent: (path: Path) => Path;
previous: (path: Path) => Path;
relative: (path: Path, ancestor: Path) => Path;
transform: (path: Path, operation: Operation, options?: PathTransformOptions) => Path | null;
}
export declare const Path: PathInterface;
//# sourceMappingURL=path.d.ts.map

1
node_modules/slate/dist/interfaces/path.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../packages/slate/src/interfaces/path.ts"],"names":[],"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AAA"}

17
node_modules/slate/dist/interfaces/point-ref.d.ts generated vendored Normal file
View File

@@ -0,0 +1,17 @@
import { Operation, Point } from '..';
import { TextDirection } from './types';
/**
* `PointRef` objects keep a specific point in a document synced over time as new
* operations are applied to the editor. You can access their `current` property
* at any time for the up-to-date point value.
*/
export interface PointRef {
current: Point | null;
affinity: TextDirection | null;
unref(): Point | null;
}
export interface PointRefInterface {
transform: (ref: PointRef, op: Operation) => void;
}
export declare const PointRef: PointRefInterface;
//# sourceMappingURL=point-ref.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"point-ref.d.ts","sourceRoot":"","sources":["../packages/slate/src/interfaces/point-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,IAAI,CAAA;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC;;;;GAIG;AAEH,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,KAAK,GAAG,IAAI,CAAA;IACrB,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAA;IAC9B,KAAK,IAAI,KAAK,GAAG,IAAI,CAAA;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,KAAK,IAAI,CAAA;CAClD;AAGD,eAAO,MAAM,QAAQ,EAAE,iBAmBtB,CAAA"}

31
node_modules/slate/dist/interfaces/point.d.ts generated vendored Normal file
View File

@@ -0,0 +1,31 @@
import { ExtendedType, Operation, Path } from '..';
import { TextDirection } from './types';
/**
* `Point` objects refer to a specific location in a text node in a Slate
* document. Its path refers to the location of the node in the tree, and its
* offset refers to the distance into the node's string of text. Points can
* only refer to `Text` nodes.
*/
export interface BasePoint {
path: Path;
offset: number;
}
export declare type Point = ExtendedType<'Point', BasePoint>;
export interface PointTransformOptions {
affinity?: TextDirection | null;
}
export interface PointInterface {
compare: (point: Point, another: Point) => -1 | 0 | 1;
isAfter: (point: Point, another: Point) => boolean;
isBefore: (point: Point, another: Point) => boolean;
equals: (point: Point, another: Point) => boolean;
isPoint: (value: any) => value is Point;
transform: (point: Point, op: Operation, options?: PointTransformOptions) => Point | null;
}
export declare const Point: PointInterface;
/**
* `PointEntry` objects are returned when iterating over `Point` objects that
* belong to a range.
*/
export declare type PointEntry = [Point, 'anchor' | 'focus'];
//# sourceMappingURL=point.d.ts.map

1
node_modules/slate/dist/interfaces/point.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../packages/slate/src/interfaces/point.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,IAAI,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC;;;;;GAKG;AAEH,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,EAAE,MAAM,CAAA;CACf;AAED,oBAAY,KAAK,GAAG,YAAY,CAAC,OAAO,EAAE,SAAS,CAAC,CAAA;AAEpD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,aAAa,GAAG,IAAI,CAAA;CAChC;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,KAAK,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IACrD,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,KAAK,OAAO,CAAA;IAClD,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,KAAK,OAAO,CAAA;IACnD,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,KAAK,OAAO,CAAA;IACjD,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,IAAI,KAAK,CAAA;IACvC,SAAS,EAAE,CACT,KAAK,EAAE,KAAK,EACZ,EAAE,EAAE,SAAS,EACb,OAAO,CAAC,EAAE,qBAAqB,KAC5B,KAAK,GAAG,IAAI,CAAA;CAClB;AAGD,eAAO,MAAM,KAAK,EAAE,cA8InB,CAAA;AAED;;;GAGG;AAEH,oBAAY,UAAU,GAAG,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAAC,CAAA"}

16
node_modules/slate/dist/interfaces/range-ref.d.ts generated vendored Normal file
View File

@@ -0,0 +1,16 @@
import { Operation, Range } from '..';
/**
* `RangeRef` objects keep a specific range in a document synced over time as new
* operations are applied to the editor. You can access their `current` property
* at any time for the up-to-date range value.
*/
export interface RangeRef {
current: Range | null;
affinity: 'forward' | 'backward' | 'outward' | 'inward' | null;
unref(): Range | null;
}
export interface RangeRefInterface {
transform: (ref: RangeRef, op: Operation) => void;
}
export declare const RangeRef: RangeRefInterface;
//# sourceMappingURL=range-ref.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"range-ref.d.ts","sourceRoot":"","sources":["../packages/slate/src/interfaces/range-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,IAAI,CAAA;AAErC;;;;GAIG;AAEH,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,KAAK,GAAG,IAAI,CAAA;IACrB,QAAQ,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,IAAI,CAAA;IAC9D,KAAK,IAAI,KAAK,GAAG,IAAI,CAAA;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,KAAK,IAAI,CAAA;CAClD;AAGD,eAAO,MAAM,QAAQ,EAAE,iBAmBtB,CAAA"}

35
node_modules/slate/dist/interfaces/range.d.ts generated vendored Normal file
View File

@@ -0,0 +1,35 @@
import { ExtendedType, Operation, Path, Point, PointEntry } from '..';
import { RangeDirection } from './types';
/**
* `Range` objects are a set of points that refer to a specific span of a Slate
* document. They can define a span inside a single node or a can span across
* multiple nodes.
*/
export interface BaseRange {
anchor: Point;
focus: Point;
}
export declare type Range = ExtendedType<'Range', BaseRange>;
export interface RangeEdgesOptions {
reverse?: boolean;
}
export interface RangeTransformOptions {
affinity?: RangeDirection | null;
}
export interface RangeInterface {
edges: (range: Range, options?: RangeEdgesOptions) => [Point, Point];
end: (range: Range) => Point;
equals: (range: Range, another: Range) => boolean;
includes: (range: Range, target: Path | Point | Range) => boolean;
intersection: (range: Range, another: Range) => Range | null;
isBackward: (range: Range) => boolean;
isCollapsed: (range: Range) => boolean;
isExpanded: (range: Range) => boolean;
isForward: (range: Range) => boolean;
isRange: (value: any) => value is Range;
points: (range: Range) => Generator<PointEntry, void, undefined>;
start: (range: Range) => Point;
transform: (range: Range, op: Operation, options?: RangeTransformOptions) => Range | null;
}
export declare const Range: RangeInterface;
//# sourceMappingURL=range.d.ts.map

1
node_modules/slate/dist/interfaces/range.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../packages/slate/src/interfaces/range.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,IAAI,CAAA;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAExC;;;;GAIG;AAEH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,KAAK,CAAA;IACb,KAAK,EAAE,KAAK,CAAA;CACb;AAED,oBAAY,KAAK,GAAG,YAAY,CAAC,OAAO,EAAE,SAAS,CAAC,CAAA;AAEpD,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;CACjC;AA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, value: unknown) => unknown;
export interface ScrubberInterface {
setScrubber(scrubber: Scrubber | undefined): void;
stringify(value: any): string;
}
/**
* This interface implements a stringify() function, which is used by Slate
* internally when generating exceptions containing end user data. Developers
* using Slate may call Scrubber.setScrubber() to alter the behavior of this
* stringify() function.
*
* For example, to prevent the cleartext logging of 'text' fields within Nodes:
*
* import { Scrubber } from 'slate';
* Scrubber.setScrubber((key, val) => {
* if (key === 'text') return '...scrubbed...'
* return val
* });
*
*/
export declare const Scrubber: ScrubberInterface;
//# sourceMappingURL=scrubber.d.ts.map

1
node_modules/slate/dist/interfaces/scrubber.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"scrubber.d.ts","sourceRoot":"","sources":["../packages/slate/src/interfaces/scrubber.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,OAAO,CAAA;AAE/D,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS,GAAG,IAAI,CAAA;IACjD,SAAS,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,CAAA;CAC9B;AAID;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,QAAQ,EAAE,iBAQtB,CAAA"}

24
node_modules/slate/dist/interfaces/text.d.ts generated vendored Normal file
View File

@@ -0,0 +1,24 @@
import { Range } from '..';
import { ExtendedType } from './custom-types';
/**
* `Text` objects represent the nodes that contain the actual text content of a
* Slate document along with any formatting properties. They are always leaf
* nodes in the document tree as they cannot contain any children.
*/
export interface BaseText {
text: string;
}
export declare type Text = ExtendedType<'Text', BaseText>;
export interface TextEqualsOptions {
loose?: boolean;
}
export interface TextInterface {
equals: (text: Text, another: Text, options?: TextEqualsOptions) => boolean;
isText: (value: any) => value is Text;
isTextList: (value: any) => value is Text[];
isTextProps: (props: any) => props is Partial<Text>;
matches: (text: Text, props: Partial<Text>) => boolean;
decorations: (node: Text, decorations: Range[]) => Text[];
}
export declare const Text: TextInterface;
//# sourceMappingURL=text.d.ts.map

1
node_modules/slate/dist/interfaces/text.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../packages/slate/src/interfaces/text.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,IAAI,CAAA;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAG7C;;;;GAIG;AAEH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAA;CACb;AAED,oBAAY,IAAI,GAAG,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;AAEjD,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,iBAAiB,KAAK,OAAO,CAAA;IAC3E,MAAM,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,IAAI,IAAI,CAAA;IACrC,UAAU,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,IAAI,IAAI,EAAE,CAAA;IAC3C,WAAW,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IACnD,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,OAAO,CAAA;IACtD,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE,CAAA;CAC1D;AAGD,eAAO,MAAM,IAAI,EAAE,aA+IlB,CAAA"}

11
node_modules/slate/dist/interfaces/types.d.ts generated vendored Normal file
View File

@@ -0,0 +1,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';
//# sourceMappingURL=types.d.ts.map

1
node_modules/slate/dist/interfaces/types.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../packages/slate/src/interfaces/types.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAA;AAEtC,oBAAY,YAAY,GAAG,SAAS,GAAG,KAAK,CAAA;AAE5C,oBAAY,QAAQ,GAAG,QAAQ,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,CAAA;AAE/D,oBAAY,cAAc,GAAG,aAAa,GAAG,SAAS,GAAG,QAAQ,CAAA;AAEjE,oBAAY,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAA;AAE5C,oBAAY,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,CAAA;AAEhE,oBAAY,aAAa,GAAG,KAAK,GAAG,SAAS,GAAG,QAAQ,CAAA;AAExD,oBAAY,aAAa,GAAG,SAAS,GAAG,UAAU,CAAA;AAElD,oBAAY,QAAQ,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;AAE9D,oBAAY,kBAAkB,GAAG,QAAQ,GAAG,QAAQ,CAAA"}

8353
node_modules/slate/dist/slate.js generated vendored Normal file

File diff suppressed because one or more lines are too long

8
node_modules/slate/dist/slate.min.js generated vendored Normal file

File diff suppressed because one or more lines are too long

6
node_modules/slate/dist/transforms/general.d.ts generated vendored Normal file
View File

@@ -0,0 +1,6 @@
import { Editor, Operation } from '..';
export interface GeneralTransforms {
transform: (editor: Editor, op: Operation) => void;
}
export declare const GeneralTransforms: GeneralTransforms;
//# sourceMappingURL=general.d.ts.map

1
node_modules/slate/dist/transforms/general.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../packages/slate/src/transforms/general.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,MAAM,EAIN,SAAS,EAOV,MAAM,IAAI,CAAA;AAEX,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,KAAK,IAAI,CAAA;CACnD;AAySD,eAAO,MAAM,iBAAiB,EAAE,iBAuB/B,CAAA"}

6
node_modules/slate/dist/transforms/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,6 @@
import { GeneralTransforms } from './general';
import { NodeTransforms } from './node';
import { SelectionTransforms } from './selection';
import { TextTransforms } from './text';
export declare const Transforms: GeneralTransforms & NodeTransforms & SelectionTransforms & TextTransforms;
//# sourceMappingURL=index.d.ts.map

1
node_modules/slate/dist/transforms/index.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/slate/src/transforms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAA;AAEvC,eAAO,MAAM,UAAU,EAAE,iBAAiB,GACxC,cAAc,GACd,mBAAmB,GACnB,cAKD,CAAA"}

82
node_modules/slate/dist/transforms/node.d.ts generated vendored Normal file
View File

@@ -0,0 +1,82 @@
import { Editor, Element, Location, Node, Path } from '..';
import { NodeMatch, PropsCompare, PropsMerge } from '../interfaces/editor';
import { RangeMode, MaximizeMode } from '../interfaces/types';
export interface NodeTransforms {
insertNodes: <T extends Node>(editor: Editor, nodes: Node | Node[], options?: {
at?: Location;
match?: NodeMatch<T>;
mode?: RangeMode;
hanging?: boolean;
select?: boolean;
voids?: boolean;
}) => void;
liftNodes: <T extends Node>(editor: Editor, options?: {
at?: Location;
match?: NodeMatch<T>;
mode?: MaximizeMode;
voids?: boolean;
}) => void;
mergeNodes: <T extends Node>(editor: Editor, options?: {
at?: Location;
match?: NodeMatch<T>;
mode?: RangeMode;
hanging?: boolean;
voids?: boolean;
}) => void;
moveNodes: <T extends Node>(editor: Editor, options: {
at?: Location;
match?: NodeMatch<T>;
mode?: MaximizeMode;
to: Path;
voids?: boolean;
}) => void;
removeNodes: <T extends Node>(editor: Editor, options?: {
at?: Location;
match?: NodeMatch<T>;
mode?: RangeMode;
hanging?: boolean;
voids?: boolean;
}) => void;
setNodes: <T extends Node>(editor: Editor, props: Partial<T>, options?: {
at?: Location;
match?: NodeMatch<T>;
mode?: MaximizeMode;
hanging?: boolean;
split?: boolean;
voids?: boolean;
compare?: PropsCompare;
merge?: PropsMerge;
}) => void;
splitNodes: <T extends Node>(editor: Editor, options?: {
at?: Location;
match?: NodeMatch<T>;
mode?: RangeMode;
always?: boolean;
height?: number;
voids?: boolean;
}) => void;
unsetNodes: <T extends Node>(editor: Editor, props: string | string[], options?: {
at?: Location;
match?: NodeMatch<T>;
mode?: MaximizeMode;
hanging?: boolean;
split?: boolean;
voids?: boolean;
}) => void;
unwrapNodes: <T extends Node>(editor: Editor, options?: {
at?: Location;
match?: NodeMatch<T>;
mode?: MaximizeMode;
split?: boolean;
voids?: boolean;
}) => void;
wrapNodes: <T extends Node>(editor: Editor, element: Element, options?: {
at?: Location;
match?: NodeMatch<T>;
mode?: MaximizeMode;
split?: boolean;
voids?: boolean;
}) => void;
}
export declare const NodeTransforms: NodeTransforms;
//# sourceMappingURL=node.d.ts.map

1
node_modules/slate/dist/transforms/node.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../packages/slate/src/transforms/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EACN,OAAO,EACP,QAAQ,EACR,IAAI,EAEJ,IAAI,EAML,MAAM,IAAI,CAAA;AACX,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAE1E,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAE7D,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,CAAC,CAAC,SAAS,IAAI,EAC1B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,IAAI,GAAG,IAAI,EAAE,EACpB,OAAO,CAAC,EAAE;QACR,EAAE,CAAC,EAAE,QAAQ,CAAA;QACb,KAAK,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAA;QACpB,IAAI,CAAC,EAAE,SAAS,CAAA;QAChB,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,MAAM,CAAC,EAAE,OAAO,CAAA;QAChB,KAAK,CAAC,EAAE,OAAO,CAAA;KAChB,KACE,IAAI,CAAA;IACT,SAAS,EAAE,CAAC,CAAC,SAAS,IAAI,EACxB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE;QACR,EAAE,CAAC,EAAE,QAAQ,CAAA;QACb,KAAK,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAA;QACpB,IAAI,CAAC,EAAE,YAAY,CAAA;QACnB,KAAK,CAAC,EAAE,OAAO,CAAA;KAChB,KACE,IAAI,CAAA;IACT,UAAU,EAAE,CAAC,CAAC,SAAS,IAAI,EACzB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE;QACR,EAAE,CAAC,EAAE,QAAQ,CAAA;QACb,KAAK,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAA;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;QACnB,KAAK,CAAC,EAAE,OAAO,CAAA;QACf,KAAK,CAAC,EAAE,OAAO,CAAA;KAChB,KACE,IAAI,CAAA;CACV;AAGD,eAAO,MAAM,cAAc,EAAE,cAw3B5B,CAAA"}

24
node_modules/slate/dist/transforms/selection.d.ts generated vendored Normal file
View File

@@ -0,0 +1,24 @@
import { Editor, Location, Point, Range } from '..';
import { SelectionEdge, MoveUnit } from '../interfaces/types';
export interface SelectionCollapseOptions {
edge?: SelectionEdge;
}
export interface SelectionMoveOptions {
distance?: number;
unit?: MoveUnit;
reverse?: boolean;
edge?: SelectionEdge;
}
export interface SelectionSetPointOptions {
edge?: SelectionEdge;
}
export interface SelectionTransforms {
collapse: (editor: Editor, options?: SelectionCollapseOptions) => void;
deselect: (editor: Editor) => void;
move: (editor: Editor, options?: SelectionMoveOptions) => void;
select: (editor: Editor, target: Location) => void;
setPoint: (editor: Editor, props: Partial<Point>, options?: SelectionSetPointOptions) => void;
setSelection: (editor: Editor, props: Partial<Range>) => void;
}
export declare const SelectionTransforms: SelectionTransforms;
//# sourceMappingURL=selection.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../packages/slate/src/transforms/selection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAwB,MAAM,IAAI,CAAA;AACzE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAE7D,MAAM,WAAW,wBAAwB;IACvC,IAAI,CAAC,EAAE,aAAa,CAAA;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,aAAa,CAAA;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,CAAC,EAAE,aAAa,CAAA;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,wBAAwB,KAAK,IAAI,CAAA;IACtE,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAC9D,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,KAAK,IAAI,CAAA;IAClD,QAAQ,EAAE,CACR,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,EACrB,OAAO,CAAC,EAAE,wBAAwB,KAC/B,IAAI,CAAA;IACT,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,CAAA;CAC9D;AAGD,eAAO,MAAM,mBAAmB,EAAE,mBAwLjC,CAAA"}

26
node_modules/slate/dist/transforms/text.d.ts generated vendored Normal file
View File

@@ -0,0 +1,26 @@
import { Editor, Location, Node } from '..';
import { TextUnit } from '../interfaces/types';
export interface TextDeleteOptions {
at?: Location;
distance?: number;
unit?: TextUnit;
reverse?: boolean;
hanging?: boolean;
voids?: boolean;
}
export interface TextInsertFragmentOptions {
at?: Location;
hanging?: boolean;
voids?: boolean;
}
export interface TextInsertTextOptions {
at?: Location;
voids?: boolean;
}
export interface TextTransforms {
delete: (editor: Editor, options?: TextDeleteOptions) => void;
insertFragment: (editor: Editor, fragment: Node[], options?: TextInsertFragmentOptions) => void;
insertText: (editor: Editor, text: string, options?: TextInsertTextOptions) => void;
}
export declare const TextTransforms: TextTransforms;
//# sourceMappingURL=text.d.ts.map

1
node_modules/slate/dist/transforms/text.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../packages/slate/src/transforms/text.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EAEN,QAAQ,EACR,IAAI,EAOL,MAAM,IAAI,CAAA;AACX,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAE9C,MAAM,WAAW,iBAAiB;IAChC,EAAE,CAAC,EAAE,QAAQ,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,WAAW,yBAAyB;IACxC,EAAE,CAAC,EAAE,QAAQ,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,WAAW,qBAAqB;IACpC,EAAE,CAAC,EAAE,QAAQ,CAAA;IACb,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,iBAAiB,KAAK,IAAI,CAAA;IAC7D,cAAc,EAAE,CACd,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,IAAI,EAAE,EAChB,OAAO,CAAC,EAAE,yBAAyB,KAChC,IAAI,CAAA;IACT,UAAU,EAAE,CACV,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,qBAAqB,KAC5B,IAAI,CAAA;CACV;AAGD,eAAO,MAAM,cAAc,EAAE,cA8d5B,CAAA"}

2
node_modules/slate/dist/utils/deep-equal.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export declare const isDeepEqual: (node: Record<string, any>, another: Record<string, any>) => boolean;
//# sourceMappingURL=deep-equal.d.ts.map

1
node_modules/slate/dist/utils/deep-equal.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"deep-equal.d.ts","sourceRoot":"","sources":["../packages/slate/src/utils/deep-equal.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,WAAW,SAChB,OAAO,MAAM,EAAE,GAAG,CAAC,WAChB,OAAO,MAAM,EAAE,GAAG,CAAC,KAC3B,OA6BF,CAAA"}

18
node_modules/slate/dist/utils/string.d.ts generated vendored Normal file
View File

@@ -0,0 +1,18 @@
/**
* Get the distance to the end of the first character in a string of text.
*/
export declare const getCharacterDistance: (str: string, isRTL?: boolean) => number;
/**
* Get the distance to the end of the first word in a string of text.
*/
export declare const getWordDistance: (text: string, isRTL?: boolean) => number;
/**
* Split a string in two parts at a given distance starting from the end when
* `isRTL` is set to `true`.
*/
export declare const splitByCharacterDistance: (str: string, dist: number, isRTL?: boolean | undefined) => [string, string];
/**
* Iterate on codepoints from right to left.
*/
export declare const codepointsIteratorRTL: (str: string) => Generator<string, void, unknown>;
//# sourceMappingURL=string.d.ts.map

1
node_modules/slate/dist/utils/string.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../packages/slate/src/utils/string.ts"],"names":[],"mappings":"AAUA;;GAEG;AAEH,eAAO,MAAM,oBAAoB,QAAS,MAAM,sBAAkB,MA4DjE,CAAA;AAMD;;GAEG;AAEH,eAAO,MAAM,eAAe,SAAU,MAAM,sBAAkB,MAqB7D,CAAA;AAED;;;GAGG;AAEH,eAAO,MAAM,wBAAwB,QAC9B,MAAM,QACL,MAAM,kCAEX,CAAC,MAAM,EAAE,MAAM,CAOjB,CAAA;AAsCD;;GAEG;AAEH,eAAO,MAAM,qBAAqB,QAAkB,MAAM,qCAkBzD,CAAA"}

9
node_modules/slate/dist/utils/weak-maps.d.ts generated vendored Normal file
View File

@@ -0,0 +1,9 @@
import { Editor, Path, PathRef, PointRef, RangeRef } from '..';
export declare const DIRTY_PATHS: WeakMap<Editor, Path[]>;
export declare const DIRTY_PATH_KEYS: WeakMap<Editor, Set<string>>;
export declare const FLUSHING: WeakMap<Editor, boolean>;
export declare const NORMALIZING: WeakMap<Editor, boolean>;
export declare const PATH_REFS: WeakMap<Editor, Set<PathRef>>;
export declare const POINT_REFS: WeakMap<Editor, Set<PointRef>>;
export declare const RANGE_REFS: WeakMap<Editor, Set<RangeRef>>;
//# sourceMappingURL=weak-maps.d.ts.map

1
node_modules/slate/dist/utils/weak-maps.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"weak-maps.d.ts","sourceRoot":"","sources":["../packages/slate/src/utils/weak-maps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAA;AAE9D,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,MAAM,EAAE,IAAI,EAAE,CAAiB,CAAA;AACjE,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAiB,CAAA;AAC1E,eAAO,MAAM,QAAQ,EAAE,OAAO,CAAC,MAAM,EAAE,OAAO,CAAiB,CAAA;AAC/D,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,MAAM,EAAE,OAAO,CAAiB,CAAA;AAClE,eAAO,MAAM,SAAS,EAAE,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,CAAiB,CAAA;AACrE,eAAO,MAAM,UAAU,EAAE,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAiB,CAAA;AACvE,eAAO,MAAM,UAAU,EAAE,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAiB,CAAA"}

48
node_modules/slate/package.json generated vendored Normal file
View File

@@ -0,0 +1,48 @@
{
"name": "slate",
"description": "A completely customizable framework for building rich text editors.",
"version": "0.91.4",
"license": "MIT",
"repository": "git://github.com/ianstormtaylor/slate.git",
"main": "dist/index.js",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"umd": "dist/slate.js",
"umdMin": "dist/slate.min.js",
"sideEffects": false,
"files": [
"dist/"
],
"dependencies": {
"immer": "^9.0.6",
"is-plain-object": "^5.0.0",
"tiny-warning": "^1.0.3"
},
"devDependencies": {
"@babel/runtime": "^7.7.4",
"lodash": "^4.17.21",
"slate-hyperscript": "^0.81.3",
"source-map-loader": "^4.0.0"
},
"keywords": [
"canvas",
"contenteditable",
"custom",
"document",
"edit",
"editor",
"html",
"immutable",
"markdown",
"medium",
"paper",
"react",
"rich",
"richtext",
"richtext",
"slate",
"text",
"wysiwyg",
"wysiwym"
]
}