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

148
node_modules/slate-react/dist/plugin/react-editor.d.ts generated vendored Normal file
View File

@@ -0,0 +1,148 @@
import { BaseEditor, Editor, Node, Path, Point, Range } from 'slate';
import { Key } from '../utils/key';
import { DOMNode, DOMPoint, DOMRange, DOMSelection, DOMStaticRange } from '../utils/dom';
/**
* A React and DOM-specific version of the `Editor` interface.
*/
export interface ReactEditor extends BaseEditor {
insertData: (data: DataTransfer) => void;
insertFragmentData: (data: DataTransfer) => boolean;
insertTextData: (data: DataTransfer) => boolean;
setFragmentData: (data: DataTransfer, originEvent?: 'drag' | 'copy' | 'cut') => void;
hasRange: (editor: ReactEditor, range: Range) => boolean;
hasTarget: (editor: ReactEditor, target: EventTarget | null) => target is DOMNode;
hasEditableTarget: (editor: ReactEditor, target: EventTarget | null) => target is DOMNode;
hasSelectableTarget: (editor: ReactEditor, target: EventTarget | null) => boolean;
isTargetInsideNonReadonlyVoid: (editor: ReactEditor, target: EventTarget | null) => boolean;
}
export declare const ReactEditor: {
/**
* Check if the user is currently composing inside the editor.
*/
isComposing(editor: ReactEditor): boolean;
/**
* Return the host window of the current editor.
*/
getWindow(editor: ReactEditor): Window;
/**
* Find a key for a Slate node.
*/
findKey(editor: ReactEditor, node: Node): Key;
/**
* Find the path of Slate node.
*/
findPath(editor: ReactEditor, node: Node): Path;
/**
* Find the DOM node that implements DocumentOrShadowRoot for the editor.
*/
findDocumentOrShadowRoot(editor: ReactEditor): Document | ShadowRoot;
/**
* Check if the editor is focused.
*/
isFocused(editor: ReactEditor): boolean;
/**
* Check if the editor is in read-only mode.
*/
isReadOnly(editor: ReactEditor): boolean;
/**
* Blur the editor.
*/
blur(editor: ReactEditor): void;
/**
* Focus the editor.
*/
focus(editor: ReactEditor): void;
/**
* Deselect the editor.
*/
deselect(editor: ReactEditor): void;
/**
* Check if a DOM node is within the editor.
*/
hasDOMNode(editor: ReactEditor, target: DOMNode, options?: {
editable?: boolean;
}): boolean;
/**
* Insert data from a `DataTransfer` into the editor.
*/
insertData(editor: ReactEditor, data: DataTransfer): void;
/**
* Insert fragment data from a `DataTransfer` into the editor.
*/
insertFragmentData(editor: ReactEditor, data: DataTransfer): boolean;
/**
* Insert text data from a `DataTransfer` into the editor.
*/
insertTextData(editor: ReactEditor, data: DataTransfer): boolean;
/**
* Sets data from the currently selected fragment on a `DataTransfer`.
*/
setFragmentData(editor: ReactEditor, data: DataTransfer, originEvent?: "drag" | "copy" | "cut" | undefined): void;
/**
* Find the native DOM element from a Slate node.
*/
toDOMNode(editor: ReactEditor, node: Node): HTMLElement;
/**
* Find a native DOM selection point from a Slate point.
*/
toDOMPoint(editor: ReactEditor, point: Point): DOMPoint;
/**
* Find a native DOM range from a Slate `range`.
*
* Notice: the returned range will always be ordinal regardless of the direction of Slate `range` due to DOM API limit.
*
* there is no way to create a reverse DOM Range using Range.setStart/setEnd
* according to https://dom.spec.whatwg.org/#concept-range-bp-set.
*/
toDOMRange(editor: ReactEditor, range: Range): DOMRange;
/**
* Find a Slate node from a native DOM `element`.
*/
toSlateNode(editor: ReactEditor, domNode: DOMNode): Node;
/**
* Get the target range from a DOM `event`.
*/
findEventRange(editor: ReactEditor, event: any): Range;
/**
* Find a Slate point from a DOM selection's `domNode` and `domOffset`.
*/
toSlatePoint<T extends boolean>(editor: ReactEditor, domPoint: DOMPoint, options: {
exactMatch: boolean;
suppressThrow: T;
}): T extends true ? import("slate").BasePoint | null : import("slate").BasePoint;
/**
* Find a Slate range from a DOM range or selection.
*/
toSlateRange<T_1 extends boolean>(editor: ReactEditor, domRange: DOMRange | DOMStaticRange | DOMSelection, options: {
exactMatch: boolean;
suppressThrow: T_1;
}): T_1 extends true ? import("slate").BaseSelection : import("slate").BaseRange & {
placeholder?: string | undefined;
};
hasRange(editor: ReactEditor, range: Range): boolean;
/**
* Check if the target is in the editor.
*/
hasTarget(editor: ReactEditor, target: EventTarget | null): target is DOMNode;
/**
* Check if the target is editable and in the editor.
*/
hasEditableTarget(editor: ReactEditor, target: EventTarget | null): target is DOMNode;
/**
* Check if the target can be selectable
*/
hasSelectableTarget(editor: ReactEditor, target: EventTarget | null): boolean;
/**
* Check if the target is inside void and in an non-readonly editor.
*/
isTargetInsideNonReadonlyVoid(editor: ReactEditor, target: EventTarget | null): boolean;
/**
* Experimental and android specific: Flush all pending diffs and cancel composition at the next possible time.
*/
androidScheduleFlush(editor: Editor): void;
/**
* Experimental and android specific: Get pending diffs
*/
androidPendingDiffs(editor: Editor): import("../utils/diff-text").TextDiff[] | undefined;
};
//# sourceMappingURL=react-editor.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"react-editor.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/plugin/react-editor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,KAAK,EAIN,MAAM,OAAO,CAAA;AAEd,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAelC,OAAO,EAEL,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,cAAc,EAOf,MAAM,cAAc,CAAA;AAGrB;;GAEG;AAEH,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC7C,UAAU,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAA;IACxC,kBAAkB,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,OAAO,CAAA;IACnD,cAAc,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,OAAO,CAAA;IAC/C,eAAe,EAAE,CACf,IAAI,EAAE,YAAY,EAClB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,KAClC,IAAI,CAAA;IACT,QAAQ,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,KAAK,OAAO,CAAA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AG,WAAW;IAevD;;OAEG;uBAEgB,WAAW,SAAS,KAAK;IAwE5C;;;;;;;OAOG;uBAEgB,WAAW,SAAS,KAAK,GAAG,QAAQ;IA8BvD;;OAEG;wBAEiB,WAAW,WAAW,OAAO,GAAG,IAAI;IAgBxD;;OAEG;2BAEoB,WAAW,SAAS,GAAG,GAAG,KAAK;IAiEtD;;OAEG;4CAGO,WAAW;oBAGL,OAAO;;;IAiKvB;;OAEG;8CAGO,WAAW,YACT,QAAQ,GAAG,cAAc,GAAG,YAAY;oBAEpC,OAAO;;;;;qBAyIN,WAAW,SAAS,KAAK,GAAG,OAAO;IAOpD;;OAEG;sBAEO,WAAW,UACX,WAAW,GAAG,IAAI;IAK5B;;OAEG;8BAEO,WAAW,UACX,WAAW,GAAG,IAAI;IAQ5B;;OAEG;gCAEO,WAAW,UACX,WAAW,GAAG,IAAI,GACzB,OAAO;IAOV;;OAEG;0CAEO,WAAW,UACX,WAAW,GAAG,IAAI,GACzB,OAAO;IASV;;OAEG;iCAC0B,MAAM;IAInC;;OAEG;gCACyB,MAAM;CAGnC,CAAA"}

12
node_modules/slate-react/dist/plugin/with-react.d.ts generated vendored Normal file
View File

@@ -0,0 +1,12 @@
import { BaseEditor } from 'slate';
import { ReactEditor } from './react-editor';
/**
* `withReact` adds React and DOM specific behaviors to the editor.
*
* If you are using TypeScript, you must extend Slate's CustomTypes to use
* this plugin.
*
* See https://docs.slatejs.org/concepts/11-typescript to learn how.
*/
export declare const withReact: <T extends BaseEditor>(editor: T, clipboardFormatKey?: string) => T & ReactEditor;
//# sourceMappingURL=with-react.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"with-react.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/plugin/with-react.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EASX,MAAM,OAAO,CAAA;AA0Bd,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAE5C;;;;;;;GAOG;AAEH,eAAO,MAAM,SAAS,mFAsSrB,CAAA"}