This commit is contained in:
80
node_modules/slate-react/dist/components/editable.d.ts
generated
vendored
Normal file
80
node_modules/slate-react/dist/components/editable.d.ts
generated
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
import React from 'react';
|
||||
import { Element, NodeEntry, Range, Text } from 'slate';
|
||||
import { ReactEditor } from '../plugin/react-editor';
|
||||
import { DOMRange } from '../utils/dom';
|
||||
/**
|
||||
* `RenderElementProps` are passed to the `renderElement` handler.
|
||||
*/
|
||||
export interface RenderElementProps {
|
||||
children: any;
|
||||
element: Element;
|
||||
attributes: {
|
||||
'data-slate-node': 'element';
|
||||
'data-slate-inline'?: true;
|
||||
'data-slate-void'?: true;
|
||||
dir?: 'rtl';
|
||||
ref: any;
|
||||
};
|
||||
}
|
||||
/**
|
||||
* `RenderLeafProps` are passed to the `renderLeaf` handler.
|
||||
*/
|
||||
export interface RenderLeafProps {
|
||||
children: any;
|
||||
leaf: Text;
|
||||
text: Text;
|
||||
attributes: {
|
||||
'data-slate-leaf': true;
|
||||
};
|
||||
}
|
||||
/**
|
||||
* `EditableProps` are passed to the `<Editable>` component.
|
||||
*/
|
||||
export declare type EditableProps = {
|
||||
decorate?: (entry: NodeEntry) => Range[];
|
||||
onDOMBeforeInput?: (event: InputEvent) => void;
|
||||
placeholder?: string;
|
||||
readOnly?: boolean;
|
||||
role?: string;
|
||||
style?: React.CSSProperties;
|
||||
renderElement?: (props: RenderElementProps) => JSX.Element;
|
||||
renderLeaf?: (props: RenderLeafProps) => JSX.Element;
|
||||
renderPlaceholder?: (props: RenderPlaceholderProps) => JSX.Element;
|
||||
scrollSelectionIntoView?: (editor: ReactEditor, domRange: DOMRange) => void;
|
||||
as?: React.ElementType;
|
||||
disableDefaultStyles?: boolean;
|
||||
} & React.TextareaHTMLAttributes<HTMLDivElement>;
|
||||
/**
|
||||
* Editable.
|
||||
*/
|
||||
export declare const Editable: (props: EditableProps) => JSX.Element;
|
||||
/**
|
||||
* The props that get passed to renderPlaceholder
|
||||
*/
|
||||
export declare type RenderPlaceholderProps = {
|
||||
children: any;
|
||||
attributes: {
|
||||
'data-slate-placeholder': boolean;
|
||||
dir?: 'rtl';
|
||||
contentEditable: boolean;
|
||||
ref: React.RefObject<any>;
|
||||
style: React.CSSProperties;
|
||||
};
|
||||
};
|
||||
/**
|
||||
* The default placeholder element
|
||||
*/
|
||||
export declare const DefaultPlaceholder: ({ attributes, children, }: RenderPlaceholderProps) => JSX.Element;
|
||||
/**
|
||||
* A default memoized decorate function.
|
||||
*/
|
||||
export declare const defaultDecorate: (entry: NodeEntry) => Range[];
|
||||
/**
|
||||
* Check if an event is overrided by a handler.
|
||||
*/
|
||||
export declare const isEventHandled: <EventType extends React.SyntheticEvent<unknown, unknown>>(event: EventType, handler?: ((event: EventType) => void | boolean) | undefined) => boolean;
|
||||
/**
|
||||
* Check if a DOM event is overrided by a handler.
|
||||
*/
|
||||
export declare const isDOMEventHandled: <E extends Event>(event: E, handler?: ((event: E) => void | boolean) | undefined) => boolean;
|
||||
//# sourceMappingURL=editable.d.ts.map
|
||||
1
node_modules/slate-react/dist/components/editable.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/components/editable.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"editable.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/components/editable.tsx"],"names":[],"mappings":"AAGA,OAAO,KAON,MAAM,OAAO,CAAA;AAEd,OAAO,EAEL,OAAO,EAEP,SAAS,EAET,KAAK,EACL,IAAI,EAEL,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAOpD,OAAO,EAGL,QAAQ,EAMT,MAAM,cAAc,CAAA;AAwCrB;;GAEG;AAEH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,GAAG,CAAA;IACb,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE;QACV,iBAAiB,EAAE,SAAS,CAAA;QAC5B,mBAAmB,CAAC,EAAE,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oBAAY,sBAAsB,GAAG;IACnC,QAAQ,EAAE,GAAG,CAAA;IACb,UAAU,EAAE;QACV,wBAAwB,EAAE,OAAO,CAAA;QACjC,GAAG,CAAC,EAAE,KAAK,CAAA;QACX,eAAe,EAAE,OAAO,CAAA;QACxB,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;QACzB,KAAK,EAAE,KAAK,CAAC,aAAa,CAAA;KAC3B,CAAA;CACF,CAAA;AAED;;GAEG;AAEH,eAAO,MAAM,kBAAkB,8BAG5B,sBAAsB,gBAOxB,CAAA;AAED;;GAEG;AAEH,eAAO,MAAM,eAAe,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,KAAK,EAAa,CAAA;AA4BtE;;GAEG;AAEH,eAAO,MAAM,cAAc,gHAIO,IAAI,GAAG,OAAO,yBAc/C,CAAA;AAED;;GAEG;AAEH,eAAO,MAAM,iBAAiB,uDAEJ,IAAI,GAAG,OAAO,yBAevC,CAAA"}
|
||||
28
node_modules/slate-react/dist/components/element.d.ts
generated
vendored
Normal file
28
node_modules/slate-react/dist/components/element.d.ts
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
import React from 'react';
|
||||
import { Range, Element as SlateElement } from 'slate';
|
||||
import { RenderElementProps, RenderLeafProps, RenderPlaceholderProps } from './editable';
|
||||
/**
|
||||
* Element.
|
||||
*/
|
||||
declare const Element: (props: {
|
||||
decorations: Range[];
|
||||
element: SlateElement;
|
||||
renderElement?: ((props: RenderElementProps) => JSX.Element) | undefined;
|
||||
renderPlaceholder: (props: RenderPlaceholderProps) => JSX.Element;
|
||||
renderLeaf?: ((props: RenderLeafProps) => JSX.Element) | undefined;
|
||||
selection: Range | null;
|
||||
}) => JSX.Element;
|
||||
declare const MemoizedElement: React.MemoExoticComponent<(props: {
|
||||
decorations: Range[];
|
||||
element: SlateElement;
|
||||
renderElement?: ((props: RenderElementProps) => JSX.Element) | undefined;
|
||||
renderPlaceholder: (props: RenderPlaceholderProps) => JSX.Element;
|
||||
renderLeaf?: ((props: RenderLeafProps) => JSX.Element) | undefined;
|
||||
selection: Range | null;
|
||||
}) => JSX.Element>;
|
||||
/**
|
||||
* The default element renderer.
|
||||
*/
|
||||
export declare const DefaultElement: (props: RenderElementProps) => JSX.Element;
|
||||
export default MemoizedElement;
|
||||
//# sourceMappingURL=element.d.ts.map
|
||||
1
node_modules/slate-react/dist/components/element.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/components/element.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/components/element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAA;AAE1C,OAAO,EAAgB,KAAK,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,OAAO,CAAA;AAapE,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACvB,MAAM,YAAY,CAAA;AAEnB;;GAEG;AAEH,QAAA,MAAM,OAAO;iBACE,KAAK,EAAE;aACX,YAAY;6BACG,kBAAkB,KAAK,WAAW;+BAC/B,sBAAsB,KAAK,WAAW;0BAC5C,eAAe,KAAK,WAAW;eACzC,KAAK,GAAG,IAAI;iBAuGxB,CAAA;AAED,QAAA,MAAM,eAAe;iBA9GN,KAAK,EAAE;aACX,YAAY;6BACG,kBAAkB,KAAK,WAAW;+BAC/B,sBAAsB,KAAK,WAAW;0BAC5C,eAAe,KAAK,WAAW;eACzC,KAAK,GAAG,IAAI;kBAqHvB,CAAA;AAEF;;GAEG;AAEH,eAAO,MAAM,cAAc,UAAW,kBAAkB,gBASvD,CAAA;AAED,eAAe,eAAe,CAAA"}
|
||||
14
node_modules/slate-react/dist/components/leaf.d.ts
generated
vendored
Normal file
14
node_modules/slate-react/dist/components/leaf.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import React from 'react';
|
||||
import { Element, Text } from 'slate';
|
||||
import { RenderLeafProps, RenderPlaceholderProps } from './editable';
|
||||
declare const MemoizedLeaf: React.MemoExoticComponent<(props: {
|
||||
isLast: boolean;
|
||||
leaf: Text;
|
||||
parent: Element;
|
||||
renderPlaceholder: (props: RenderPlaceholderProps) => JSX.Element;
|
||||
renderLeaf?: ((props: RenderLeafProps) => JSX.Element) | undefined;
|
||||
text: Text;
|
||||
}) => JSX.Element>;
|
||||
export declare const DefaultLeaf: (props: RenderLeafProps) => JSX.Element;
|
||||
export default MemoizedLeaf;
|
||||
//# sourceMappingURL=leaf.d.ts.map
|
||||
1
node_modules/slate-react/dist/components/leaf.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/components/leaf.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"leaf.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/components/leaf.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAA;AAChD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAQrC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AA0HpE,QAAA,MAAM,YAAY;YAlHR,OAAO;UACT,IAAI;YACF,OAAO;+BACY,sBAAsB,KAAK,WAAW;0BAC5C,eAAe,KAAK,WAAW;UAC9C,IAAI;kBAuHV,CAAA;AAEF,eAAO,MAAM,WAAW,UAAW,eAAe,gBAGjD,CAAA;AAED,eAAe,YAAY,CAAA"}
|
||||
9
node_modules/slate-react/dist/components/restore-dom/restore-dom-manager.d.ts
generated
vendored
Normal file
9
node_modules/slate-react/dist/components/restore-dom/restore-dom-manager.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { RefObject } from 'react';
|
||||
import { ReactEditor } from '../../plugin/react-editor';
|
||||
export declare type RestoreDOMManager = {
|
||||
registerMutations: (mutations: MutationRecord[]) => void;
|
||||
restoreDOM: () => void;
|
||||
clear: () => void;
|
||||
};
|
||||
export declare const createRestoreDomManager: (editor: ReactEditor, receivedUserInput: RefObject<boolean>) => RestoreDOMManager;
|
||||
//# sourceMappingURL=restore-dom-manager.d.ts.map
|
||||
1
node_modules/slate-react/dist/components/restore-dom/restore-dom-manager.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/components/restore-dom/restore-dom-manager.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"restore-dom-manager.d.ts","sourceRoot":"","sources":["../../packages/slate-react/src/components/restore-dom/restore-dom-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAGvD,oBAAY,iBAAiB,GAAG;IAC9B,iBAAiB,EAAE,CAAC,SAAS,EAAE,cAAc,EAAE,KAAK,IAAI,CAAA;IACxD,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB,CAAA;AAED,eAAO,MAAM,uBAAuB,WAC1B,WAAW,qBACA,UAAU,OAAO,CAAC,KACpC,iBA+CF,CAAA"}
|
||||
8
node_modules/slate-react/dist/components/restore-dom/restore-dom.d.ts
generated
vendored
Normal file
8
node_modules/slate-react/dist/components/restore-dom/restore-dom.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { ComponentType, RefObject } from 'react';
|
||||
declare type RestoreDOMProps = {
|
||||
receivedUserInput: RefObject<boolean>;
|
||||
node: RefObject<HTMLDivElement>;
|
||||
};
|
||||
export declare const RestoreDOM: ComponentType<RestoreDOMProps>;
|
||||
export {};
|
||||
//# sourceMappingURL=restore-dom.d.ts.map
|
||||
1
node_modules/slate-react/dist/components/restore-dom/restore-dom.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/components/restore-dom/restore-dom.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"restore-dom.d.ts","sourceRoot":"","sources":["../../packages/slate-react/src/components/restore-dom/restore-dom.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAa,aAAa,EAAe,SAAS,EAAE,MAAM,OAAO,CAAA;AAe/E,aAAK,eAAe,GAAG;IACrB,iBAAiB,EAAE,SAAS,CAAC,OAAO,CAAC,CAAA;IACrC,IAAI,EAAE,SAAS,CAAC,cAAc,CAAC,CAAA;CAChC,CAAA;AAwDD,eAAO,MAAM,UAAU,EAAE,aAAa,CAAC,eAAe,CAEjB,CAAA"}
|
||||
14
node_modules/slate-react/dist/components/slate.d.ts
generated
vendored
Normal file
14
node_modules/slate-react/dist/components/slate.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import React from 'react';
|
||||
import { Descendant } from 'slate';
|
||||
import { ReactEditor } from '../plugin/react-editor';
|
||||
/**
|
||||
* A wrapper around the provider to handle `onChange` events, because the editor
|
||||
* is a mutable singleton so it won't ever register as "changed" otherwise.
|
||||
*/
|
||||
export declare const Slate: (props: {
|
||||
editor: ReactEditor;
|
||||
value: Descendant[];
|
||||
children: React.ReactNode;
|
||||
onChange?: ((value: Descendant[]) => void) | undefined;
|
||||
}) => JSX.Element;
|
||||
//# sourceMappingURL=slate.d.ts.map
|
||||
1
node_modules/slate-react/dist/components/slate.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/components/slate.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"slate.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/components/slate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAA;AACvE,OAAO,EAAgB,UAAU,EAAY,MAAM,OAAO,CAAA;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAYpD;;;GAGG;AAEH,eAAO,MAAM,KAAK;YACR,WAAW;WACZ,UAAU,EAAE;cACT,MAAM,SAAS;wBACN,UAAU,EAAE,KAAK,IAAI;iBAwFzC,CAAA"}
|
||||
21
node_modules/slate-react/dist/components/string.d.ts
generated
vendored
Normal file
21
node_modules/slate-react/dist/components/string.d.ts
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
/// <reference types="react" />
|
||||
import { Text, Element } from 'slate';
|
||||
/**
|
||||
* Leaf content strings.
|
||||
*/
|
||||
declare const String: (props: {
|
||||
isLast: boolean;
|
||||
leaf: Text;
|
||||
parent: Element;
|
||||
text: Text;
|
||||
}) => JSX.Element;
|
||||
/**
|
||||
* Leaf strings without text, render as zero-width strings.
|
||||
*/
|
||||
export declare const ZeroWidthString: (props: {
|
||||
length?: number;
|
||||
isLineBreak?: boolean;
|
||||
isMarkPlaceholder?: boolean;
|
||||
}) => JSX.Element;
|
||||
export default String;
|
||||
//# sourceMappingURL=string.d.ts.map
|
||||
1
node_modules/slate-react/dist/components/string.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/components/string.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/components/string.tsx"],"names":[],"mappings":";AACA,OAAO,EAAU,IAAI,EAAQ,OAAO,EAAQ,MAAM,OAAO,CAAA;AAOzD;;GAEG;AAEH,QAAA,MAAM,MAAM,UAAW;IACrB,MAAM,EAAE,OAAO,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,OAAO,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;CACX,gBAuCA,CAAA;AAiDD;;GAEG;AAEH,eAAO,MAAM,eAAe,UAAW;IACrC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B,gBAkBA,CAAA;AAED,eAAe,MAAM,CAAA"}
|
||||
13
node_modules/slate-react/dist/components/text.d.ts
generated
vendored
Normal file
13
node_modules/slate-react/dist/components/text.d.ts
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import React from 'react';
|
||||
import { Element, Range, Text as SlateText } from 'slate';
|
||||
import { RenderLeafProps, RenderPlaceholderProps } from './editable';
|
||||
declare const MemoizedText: React.MemoExoticComponent<(props: {
|
||||
decorations: Range[];
|
||||
isLast: boolean;
|
||||
parent: Element;
|
||||
renderPlaceholder: (props: RenderPlaceholderProps) => JSX.Element;
|
||||
renderLeaf?: ((props: RenderLeafProps) => JSX.Element) | undefined;
|
||||
text: SlateText;
|
||||
}) => JSX.Element>;
|
||||
export default MemoizedText;
|
||||
//# sourceMappingURL=text.d.ts.map
|
||||
1
node_modules/slate-react/dist/components/text.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/components/text.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/components/text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,OAAO,CAAA;AASzD,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AAuEpE,QAAA,MAAM,YAAY;iBA/DH,KAAK,EAAE;YACZ,OAAO;YACP,OAAO;+BACY,sBAAsB,KAAK,WAAW;0BAC5C,eAAe,KAAK,WAAW;UAC9C,SAAS;kBAmEf,CAAA;AAEF,eAAe,YAAY,CAAA"}
|
||||
14
node_modules/slate-react/dist/custom-types.d.ts
generated
vendored
Normal file
14
node_modules/slate-react/dist/custom-types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import { BaseRange, BaseText } from 'slate';
|
||||
import { ReactEditor } from './plugin/react-editor';
|
||||
declare module 'slate' {
|
||||
interface CustomTypes {
|
||||
Editor: ReactEditor;
|
||||
Text: BaseText & {
|
||||
placeholder?: string;
|
||||
};
|
||||
Range: BaseRange & {
|
||||
placeholder?: string;
|
||||
};
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=custom-types.d.ts.map
|
||||
1
node_modules/slate-react/dist/custom-types.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/custom-types.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"custom-types.d.ts","sourceRoot":"","sources":["packages/slate-react/src/custom-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,QAAQ,OAAO,CAAC;IACrB,UAAU,WAAW;QACnB,MAAM,EAAE,WAAW,CAAA;QACnB,IAAI,EAAE,QAAQ,GAAG;YACf,WAAW,CAAC,EAAE,MAAM,CAAA;SACrB,CAAA;QACD,KAAK,EAAE,SAAS,GAAG;YACjB,WAAW,CAAC,EAAE,MAAM,CAAA;SACrB,CAAA;KACF;CACF"}
|
||||
30
node_modules/slate-react/dist/hooks/android-input-manager/android-input-manager.d.ts
generated
vendored
Normal file
30
node_modules/slate-react/dist/hooks/android-input-manager/android-input-manager.d.ts
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
/// <reference types="react" />
|
||||
import { DebouncedFunc } from 'lodash';
|
||||
import { Point, Range } from 'slate';
|
||||
import { ReactEditor } from '../../plugin/react-editor';
|
||||
export declare type Action = {
|
||||
at?: Point | Range;
|
||||
run: () => void;
|
||||
};
|
||||
export declare type CreateAndroidInputManagerOptions = {
|
||||
editor: ReactEditor;
|
||||
scheduleOnDOMSelectionChange: DebouncedFunc<() => void>;
|
||||
onDOMSelectionChange: DebouncedFunc<() => void>;
|
||||
};
|
||||
export declare type AndroidInputManager = {
|
||||
flush: () => void;
|
||||
scheduleFlush: () => void;
|
||||
hasPendingDiffs: () => boolean;
|
||||
hasPendingAction: () => boolean;
|
||||
hasPendingChanges: () => boolean;
|
||||
isFlushing: () => boolean | 'action';
|
||||
handleUserSelect: (range: Range | null) => void;
|
||||
handleCompositionEnd: (event: React.CompositionEvent<HTMLDivElement>) => void;
|
||||
handleCompositionStart: (event: React.CompositionEvent<HTMLDivElement>) => void;
|
||||
handleDOMBeforeInput: (event: InputEvent) => void;
|
||||
handleKeyDown: (event: React.KeyboardEvent<HTMLDivElement>) => void;
|
||||
handleDomMutations: (mutations: MutationRecord[]) => void;
|
||||
handleInput: () => void;
|
||||
};
|
||||
export declare function createAndroidInputManager({ editor, scheduleOnDOMSelectionChange, onDOMSelectionChange, }: CreateAndroidInputManagerOptions): AndroidInputManager;
|
||||
//# sourceMappingURL=android-input-manager.d.ts.map
|
||||
1
node_modules/slate-react/dist/hooks/android-input-manager/android-input-manager.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/hooks/android-input-manager/android-input-manager.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"android-input-manager.d.ts","sourceRoot":"","sources":["../../packages/slate-react/src/hooks/android-input-manager/android-input-manager.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AACtC,OAAO,EAAsB,KAAK,EAAE,KAAK,EAAoB,MAAM,OAAO,CAAA;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAwBvD,oBAAY,MAAM,GAAG;IAAE,EAAE,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAAC,GAAG,EAAE,MAAM,IAAI,CAAA;CAAE,CAAA;AAgB5D,oBAAY,gCAAgC,GAAG;IAC7C,MAAM,EAAE,WAAW,CAAA;IAEnB,4BAA4B,EAAE,aAAa,CAAC,MAAM,IAAI,CAAC,CAAA;IACvD,oBAAoB,EAAE,aAAa,CAAC,MAAM,IAAI,CAAC,CAAA;CAChD,CAAA;AAED,oBAAY,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,aAAa,EAAE,MAAM,IAAI,CAAA;IAEzB,eAAe,EAAE,MAAM,OAAO,CAAA;IAC9B,gBAAgB,EAAE,MAAM,OAAO,CAAA;IAC/B,iBAAiB,EAAE,MAAM,OAAO,CAAA;IAChC,UAAU,EAAE,MAAM,OAAO,GAAG,QAAQ,CAAA;IAEpC,gBAAgB,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,CAAA;IAC/C,oBAAoB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,KAAK,IAAI,CAAA;IAC7E,sBAAsB,EAAE,CACtB,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,KAC1C,IAAI,CAAA;IACT,oBAAoB,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IACjD,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,KAAK,IAAI,CAAA;IAEnE,kBAAkB,EAAE,CAAC,SAAS,EAAE,cAAc,EAAE,KAAK,IAAI,CAAA;IACzD,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,CAAA;AAED,wBAAgB,yBAAyB,CAAC,EACxC,MAAM,EACN,4BAA4B,EAC5B,oBAAoB,GACrB,EAAE,gCAAgC,GAAG,mBAAmB,CAktBxD"}
|
||||
8
node_modules/slate-react/dist/hooks/android-input-manager/use-android-input-manager.d.ts
generated
vendored
Normal file
8
node_modules/slate-react/dist/hooks/android-input-manager/use-android-input-manager.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { RefObject } from 'react';
|
||||
import { CreateAndroidInputManagerOptions } from './android-input-manager';
|
||||
declare type UseAndroidInputManagerOptions = {
|
||||
node: RefObject<HTMLElement>;
|
||||
} & Omit<CreateAndroidInputManagerOptions, 'editor' | 'onUserInput' | 'receivedUserInput'>;
|
||||
export declare function useAndroidInputManager({ node, ...options }: UseAndroidInputManagerOptions): import("./android-input-manager").AndroidInputManager | null;
|
||||
export {};
|
||||
//# sourceMappingURL=use-android-input-manager.d.ts.map
|
||||
1
node_modules/slate-react/dist/hooks/android-input-manager/use-android-input-manager.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/hooks/android-input-manager/use-android-input-manager.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"use-android-input-manager.d.ts","sourceRoot":"","sources":["../../packages/slate-react/src/hooks/android-input-manager/use-android-input-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAI3C,OAAO,EAEL,gCAAgC,EACjC,MAAM,yBAAyB,CAAA;AAIhC,aAAK,6BAA6B,GAAG;IACnC,IAAI,EAAE,SAAS,CAAC,WAAW,CAAC,CAAA;CAC7B,GAAG,IAAI,CACN,gCAAgC,EAChC,QAAQ,GAAG,aAAa,GAAG,mBAAmB,CAC/C,CAAA;AAQD,wBAAgB,sBAAsB,CAAC,EACrC,IAAI,EACJ,GAAG,OAAO,EACX,EAAE,6BAA6B,gEA2B/B"}
|
||||
16
node_modules/slate-react/dist/hooks/use-children.d.ts
generated
vendored
Normal file
16
node_modules/slate-react/dist/hooks/use-children.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/// <reference types="react" />
|
||||
import { Range, Element, Ancestor } from 'slate';
|
||||
import { RenderElementProps, RenderLeafProps, RenderPlaceholderProps } from '../components/editable';
|
||||
/**
|
||||
* Children.
|
||||
*/
|
||||
declare const useChildren: (props: {
|
||||
decorations: Range[];
|
||||
node: Ancestor;
|
||||
renderElement?: ((props: RenderElementProps) => JSX.Element) | undefined;
|
||||
renderPlaceholder: (props: RenderPlaceholderProps) => JSX.Element;
|
||||
renderLeaf?: ((props: RenderLeafProps) => JSX.Element) | undefined;
|
||||
selection: Range | null;
|
||||
}) => JSX.Element[];
|
||||
export default useChildren;
|
||||
//# sourceMappingURL=use-children.d.ts.map
|
||||
1
node_modules/slate-react/dist/hooks/use-children.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/hooks/use-children.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"use-children.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/hooks/use-children.tsx"],"names":[],"mappings":";AACA,OAAO,EAAU,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAc,MAAM,OAAO,CAAA;AAQpE,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACvB,MAAM,wBAAwB,CAAA;AAG/B;;GAEG;AAEH,QAAA,MAAM,WAAW;iBACF,KAAK,EAAE;UACd,QAAQ;6BACU,kBAAkB,KAAK,WAAW;+BAC/B,sBAAsB,KAAK,WAAW;0BAC5C,eAAe,KAAK,WAAW;eACzC,KAAK,GAAG,IAAI;mBAoExB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
||||
11
node_modules/slate-react/dist/hooks/use-decorate.d.ts
generated
vendored
Normal file
11
node_modules/slate-react/dist/hooks/use-decorate.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
/// <reference types="react" />
|
||||
import { Range, NodeEntry } from 'slate';
|
||||
/**
|
||||
* A React context for sharing the `decorate` prop of the editable.
|
||||
*/
|
||||
export declare const DecorateContext: import("react").Context<(entry: NodeEntry<import("slate").Node>) => Range[]>;
|
||||
/**
|
||||
* Get the current `decorate` prop of the editable.
|
||||
*/
|
||||
export declare const useDecorate: () => (entry: NodeEntry<import("slate").Node>) => Range[];
|
||||
//# sourceMappingURL=use-decorate.d.ts.map
|
||||
1
node_modules/slate-react/dist/hooks/use-decorate.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/hooks/use-decorate.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"use-decorate.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/hooks/use-decorate.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC;;GAEG;AAEH,eAAO,MAAM,eAAe,sEAAuC,KAAK,EAAE,CAEzE,CAAA;AAED;;GAEG;AAEH,eAAO,MAAM,WAAW,oDAA8B,KAAK,EAE1D,CAAA"}
|
||||
6
node_modules/slate-react/dist/hooks/use-editor.d.ts
generated
vendored
Normal file
6
node_modules/slate-react/dist/hooks/use-editor.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* Get the current editor object from the React context.
|
||||
* @deprecated Use useSlateStatic instead.
|
||||
*/
|
||||
export declare const useEditor: () => import("..").ReactEditor;
|
||||
//# sourceMappingURL=use-editor.d.ts.map
|
||||
1
node_modules/slate-react/dist/hooks/use-editor.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/hooks/use-editor.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"use-editor.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/hooks/use-editor.tsx"],"names":[],"mappings":"AAIA;;;GAGG;AAEH,eAAO,MAAM,SAAS,gCAUrB,CAAA"}
|
||||
10
node_modules/slate-react/dist/hooks/use-focused.d.ts
generated
vendored
Normal file
10
node_modules/slate-react/dist/hooks/use-focused.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/// <reference types="react" />
|
||||
/**
|
||||
* A React context for sharing the `focused` state of the editor.
|
||||
*/
|
||||
export declare const FocusedContext: import("react").Context<boolean>;
|
||||
/**
|
||||
* Get the current `focused` state of the editor.
|
||||
*/
|
||||
export declare const useFocused: () => boolean;
|
||||
//# sourceMappingURL=use-focused.d.ts.map
|
||||
1
node_modules/slate-react/dist/hooks/use-focused.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/hooks/use-focused.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"use-focused.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/hooks/use-focused.ts"],"names":[],"mappings":";AAEA;;GAEG;AAEH,eAAO,MAAM,cAAc,kCAAuB,CAAA;AAElD;;GAEG;AAEH,eAAO,MAAM,UAAU,QAAO,OAE7B,CAAA"}
|
||||
2
node_modules/slate-react/dist/hooks/use-is-mounted.d.ts
generated
vendored
Normal file
2
node_modules/slate-react/dist/hooks/use-is-mounted.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare function useIsMounted(): boolean;
|
||||
//# sourceMappingURL=use-is-mounted.d.ts.map
|
||||
1
node_modules/slate-react/dist/hooks/use-is-mounted.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/hooks/use-is-mounted.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"use-is-mounted.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/hooks/use-is-mounted.tsx"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,YAW3B"}
|
||||
6
node_modules/slate-react/dist/hooks/use-isomorphic-layout-effect.d.ts
generated
vendored
Normal file
6
node_modules/slate-react/dist/hooks/use-isomorphic-layout-effect.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import { useLayoutEffect } from 'react';
|
||||
/**
|
||||
* Prevent warning on SSR by falling back to useEffect when DOM isn't available
|
||||
*/
|
||||
export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
|
||||
//# sourceMappingURL=use-isomorphic-layout-effect.d.ts.map
|
||||
1
node_modules/slate-react/dist/hooks/use-isomorphic-layout-effect.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/hooks/use-isomorphic-layout-effect.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"use-isomorphic-layout-effect.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/hooks/use-isomorphic-layout-effect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAa,MAAM,OAAO,CAAA;AAGlD;;GAEG;AAEH,eAAO,MAAM,yBAAyB,wBAEzB,CAAA"}
|
||||
3
node_modules/slate-react/dist/hooks/use-mutation-observer.d.ts
generated
vendored
Normal file
3
node_modules/slate-react/dist/hooks/use-mutation-observer.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { RefObject } from 'react';
|
||||
export declare function useMutationObserver(node: RefObject<HTMLElement>, callback: MutationCallback, options: MutationObserverInit): void;
|
||||
//# sourceMappingURL=use-mutation-observer.d.ts.map
|
||||
1
node_modules/slate-react/dist/hooks/use-mutation-observer.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/hooks/use-mutation-observer.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"use-mutation-observer.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/hooks/use-mutation-observer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAA;AAKtD,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,SAAS,CAAC,WAAW,CAAC,EAC5B,QAAQ,EAAE,gBAAgB,EAC1B,OAAO,EAAE,oBAAoB,QAkB9B"}
|
||||
10
node_modules/slate-react/dist/hooks/use-read-only.d.ts
generated
vendored
Normal file
10
node_modules/slate-react/dist/hooks/use-read-only.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/// <reference types="react" />
|
||||
/**
|
||||
* A React context for sharing the `readOnly` state of the editor.
|
||||
*/
|
||||
export declare const ReadOnlyContext: import("react").Context<boolean>;
|
||||
/**
|
||||
* Get the current `readOnly` state of the editor.
|
||||
*/
|
||||
export declare const useReadOnly: () => boolean;
|
||||
//# sourceMappingURL=use-read-only.d.ts.map
|
||||
1
node_modules/slate-react/dist/hooks/use-read-only.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/hooks/use-read-only.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"use-read-only.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/hooks/use-read-only.ts"],"names":[],"mappings":";AAEA;;GAEG;AAEH,eAAO,MAAM,eAAe,kCAAuB,CAAA;AAEnD;;GAEG;AAEH,eAAO,MAAM,WAAW,QAAO,OAE9B,CAAA"}
|
||||
10
node_modules/slate-react/dist/hooks/use-selected.d.ts
generated
vendored
Normal file
10
node_modules/slate-react/dist/hooks/use-selected.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/// <reference types="react" />
|
||||
/**
|
||||
* A React context for sharing the `selected` state of an element.
|
||||
*/
|
||||
export declare const SelectedContext: import("react").Context<boolean>;
|
||||
/**
|
||||
* Get the current `selected` state of an element.
|
||||
*/
|
||||
export declare const useSelected: () => boolean;
|
||||
//# sourceMappingURL=use-selected.d.ts.map
|
||||
1
node_modules/slate-react/dist/hooks/use-selected.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/hooks/use-selected.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"use-selected.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/hooks/use-selected.ts"],"names":[],"mappings":";AAEA;;GAEG;AAEH,eAAO,MAAM,eAAe,kCAAuB,CAAA;AAEnD;;GAEG;AAEH,eAAO,MAAM,WAAW,QAAO,OAE9B,CAAA"}
|
||||
7
node_modules/slate-react/dist/hooks/use-slate-selection.d.ts
generated
vendored
Normal file
7
node_modules/slate-react/dist/hooks/use-slate-selection.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { BaseSelection } from 'slate';
|
||||
/**
|
||||
* Get the current slate selection.
|
||||
* Only triggers a rerender when the selection actually changes
|
||||
*/
|
||||
export declare const useSlateSelection: () => BaseSelection;
|
||||
//# sourceMappingURL=use-slate-selection.d.ts.map
|
||||
1
node_modules/slate-react/dist/hooks/use-slate-selection.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/hooks/use-slate-selection.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"use-slate-selection.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/hooks/use-slate-selection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAS,MAAM,OAAO,CAAA;AAI5C;;;GAGG;AACH,eAAO,MAAM,iBAAiB,qBAE7B,CAAA"}
|
||||
32
node_modules/slate-react/dist/hooks/use-slate-selector.d.ts
generated
vendored
Normal file
32
node_modules/slate-react/dist/hooks/use-slate-selector.d.ts
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
/// <reference types="react" />
|
||||
import { Editor } from 'slate';
|
||||
declare type EditorChangeHandler = (editor: Editor) => void;
|
||||
/**
|
||||
* A React context for sharing the editor selector context in a way to control rerenders
|
||||
*/
|
||||
export declare const SlateSelectorContext: import("react").Context<{
|
||||
getSlate: () => Editor;
|
||||
addEventListener: (callback: EditorChangeHandler) => () => void;
|
||||
}>;
|
||||
/**
|
||||
* use redux style selectors to prevent rerendering on every keystroke.
|
||||
* Bear in mind rerendering can only prevented if the returned value is a value type or for reference types (e.g. objects and arrays) add a custom equality function.
|
||||
*
|
||||
* Example:
|
||||
* ```
|
||||
* const isSelectionActive = useSlateSelector(editor => Boolean(editor.selection));
|
||||
* ```
|
||||
*/
|
||||
export declare function useSlateSelector<T>(selector: (editor: Editor) => T, equalityFn?: (a: T, b: T) => boolean): T;
|
||||
/**
|
||||
* Create selector context with editor updating on every editor change
|
||||
*/
|
||||
export declare function getSelectorContext(editor: Editor): {
|
||||
selectorContext: {
|
||||
getSlate: () => import("..").ReactEditor;
|
||||
addEventListener: (callback: EditorChangeHandler) => () => void;
|
||||
};
|
||||
onChange: (editor: Editor) => void;
|
||||
};
|
||||
export {};
|
||||
//# sourceMappingURL=use-slate-selector.d.ts.map
|
||||
1
node_modules/slate-react/dist/hooks/use-slate-selector.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/hooks/use-slate-selector.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"use-slate-selector.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/hooks/use-slate-selector.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAO9B,aAAK,mBAAmB,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;AACnD;;GAEG;AAEH,eAAO,MAAM,oBAAoB;cACrB,MAAM,MAAM;iCACO,mBAAmB,KAAK,MAAM,IAAI;EACpD,CAAA;AAIb;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAChC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,CAAC,EAC/B,UAAU,GAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAAqB,KAuElD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM;;;qCAed,mBAAmB;;uBARd,MAAM;EAiB7C"}
|
||||
12
node_modules/slate-react/dist/hooks/use-slate-static.d.ts
generated
vendored
Normal file
12
node_modules/slate-react/dist/hooks/use-slate-static.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/// <reference types="react" />
|
||||
import { ReactEditor } from '../plugin/react-editor';
|
||||
import { Editor } from 'slate';
|
||||
/**
|
||||
* A React context for sharing the editor object.
|
||||
*/
|
||||
export declare const EditorContext: import("react").Context<ReactEditor | null>;
|
||||
/**
|
||||
* Get the current editor object from the React context.
|
||||
*/
|
||||
export declare const useSlateStatic: () => Editor;
|
||||
//# sourceMappingURL=use-slate-static.d.ts.map
|
||||
1
node_modules/slate-react/dist/hooks/use-slate-static.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/hooks/use-slate-static.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"use-slate-static.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/hooks/use-slate-static.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAE9B;;GAEG;AAEH,eAAO,MAAM,aAAa,6CAA0C,CAAA;AAEpE;;GAEG;AAEH,eAAO,MAAM,cAAc,QAAO,MAUjC,CAAA"}
|
||||
24
node_modules/slate-react/dist/hooks/use-slate.d.ts
generated
vendored
Normal file
24
node_modules/slate-react/dist/hooks/use-slate.d.ts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
/// <reference types="react" />
|
||||
import { Editor } from 'slate';
|
||||
import { ReactEditor } from '../plugin/react-editor';
|
||||
/**
|
||||
* A React context for sharing the editor object, in a way that re-renders the
|
||||
* context whenever changes occur.
|
||||
*/
|
||||
export interface SlateContextValue {
|
||||
v: number;
|
||||
editor: ReactEditor;
|
||||
}
|
||||
export declare const SlateContext: import("react").Context<{
|
||||
v: number;
|
||||
editor: ReactEditor;
|
||||
} | null>;
|
||||
/**
|
||||
* Get the current editor object from the React context.
|
||||
*/
|
||||
export declare const useSlate: () => Editor;
|
||||
export declare const useSlateWithV: () => {
|
||||
v: number;
|
||||
editor: ReactEditor;
|
||||
};
|
||||
//# sourceMappingURL=use-slate.d.ts.map
|
||||
1
node_modules/slate-react/dist/hooks/use-slate.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/hooks/use-slate.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"use-slate.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/hooks/use-slate.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAEpD;;;GAGG;AAEH,MAAM,WAAW,iBAAiB;IAChC,CAAC,EAAE,MAAM,CAAA;IACT,MAAM,EAAE,WAAW,CAAA;CACpB;AAED,eAAO,MAAM,YAAY;OACpB,MAAM;YACD,WAAW;SACN,CAAA;AAEf;;GAEG;AAEH,eAAO,MAAM,QAAQ,QAAO,MAW3B,CAAA;AAED,eAAO,MAAM,aAAa;OArBrB,MAAM;YACD,WAAW;CA8BpB,CAAA"}
|
||||
6
node_modules/slate-react/dist/hooks/use-track-user-input.d.ts
generated
vendored
Normal file
6
node_modules/slate-react/dist/hooks/use-track-user-input.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
/// <reference types="react" />
|
||||
export declare function useTrackUserInput(): {
|
||||
receivedUserInput: import("react").MutableRefObject<boolean>;
|
||||
onUserInput: () => void;
|
||||
};
|
||||
//# sourceMappingURL=use-track-user-input.d.ts.map
|
||||
1
node_modules/slate-react/dist/hooks/use-track-user-input.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/hooks/use-track-user-input.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"use-track-user-input.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/hooks/use-track-user-input.ts"],"names":[],"mappings":";AAIA,wBAAgB,iBAAiB;;;EA2BhC"}
|
||||
15
node_modules/slate-react/dist/index.d.ts
generated
vendored
Normal file
15
node_modules/slate-react/dist/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
export { Editable, RenderElementProps, RenderLeafProps, RenderPlaceholderProps, DefaultPlaceholder, } from './components/editable';
|
||||
export { DefaultElement } from './components/element';
|
||||
export { DefaultLeaf } from './components/leaf';
|
||||
export { Slate } from './components/slate';
|
||||
export { useEditor } from './hooks/use-editor';
|
||||
export { useSlateStatic } from './hooks/use-slate-static';
|
||||
export { useFocused } from './hooks/use-focused';
|
||||
export { useReadOnly } from './hooks/use-read-only';
|
||||
export { useSelected } from './hooks/use-selected';
|
||||
export { useSlate, useSlateWithV } from './hooks/use-slate';
|
||||
export { useSlateSelector } from './hooks/use-slate-selector';
|
||||
export { useSlateSelection } from './hooks/use-slate-selection';
|
||||
export { ReactEditor } from './plugin/react-editor';
|
||||
export { withReact } from './plugin/with-react';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/slate-react/dist/index.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["packages/slate-react/src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAG1C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAG/D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA"}
|
||||
5275
node_modules/slate-react/dist/index.es.js
generated
vendored
Normal file
5275
node_modules/slate-react/dist/index.es.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
node_modules/slate-react/dist/index.es.js.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/index.es.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
5852
node_modules/slate-react/dist/index.js
generated
vendored
Normal file
5852
node_modules/slate-react/dist/index.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
node_modules/slate-react/dist/index.js.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/index.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
148
node_modules/slate-react/dist/plugin/react-editor.d.ts
generated
vendored
Normal file
148
node_modules/slate-react/dist/plugin/react-editor.d.ts
generated
vendored
Normal 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
|
||||
1
node_modules/slate-react/dist/plugin/react-editor.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/plugin/react-editor.d.ts.map
generated
vendored
Normal 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;IACxD,SAAS,EAAE,CACT,MAAM,EAAE,WAAW,EACnB,MAAM,EAAE,WAAW,GAAG,IAAI,KACvB,MAAM,IAAI,OAAO,CAAA;I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;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
12
node_modules/slate-react/dist/plugin/with-react.d.ts
generated
vendored
Normal 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
|
||||
1
node_modules/slate-react/dist/plugin/with-react.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/plugin/with-react.d.ts.map
generated
vendored
Normal 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"}
|
||||
34687
node_modules/slate-react/dist/slate-react.js
generated
vendored
Normal file
34687
node_modules/slate-react/dist/slate-react.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
node_modules/slate-react/dist/slate-react.min.js
generated
vendored
Normal file
1
node_modules/slate-react/dist/slate-react.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
node_modules/slate-react/dist/utils/constants.d.ts
generated
vendored
Normal file
2
node_modules/slate-react/dist/utils/constants.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare const TRIPLE_CLICK = 3;
|
||||
//# sourceMappingURL=constants.d.ts.map
|
||||
1
node_modules/slate-react/dist/utils/constants.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/utils/constants.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/utils/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,IAAI,CAAA"}
|
||||
45
node_modules/slate-react/dist/utils/diff-text.d.ts
generated
vendored
Normal file
45
node_modules/slate-react/dist/utils/diff-text.d.ts
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
import { Editor, Operation, Path, Point, Range } from 'slate';
|
||||
export declare type StringDiff = {
|
||||
start: number;
|
||||
end: number;
|
||||
text: string;
|
||||
};
|
||||
export declare type TextDiff = {
|
||||
id: number;
|
||||
path: Path;
|
||||
diff: StringDiff;
|
||||
};
|
||||
/**
|
||||
* Check whether a text diff was applied in a way we can perform the pending action on /
|
||||
* recover the pending selection.
|
||||
*/
|
||||
export declare function verifyDiffState(editor: Editor, textDiff: TextDiff): boolean;
|
||||
export declare function applyStringDiff(text: string, ...diffs: StringDiff[]): string;
|
||||
/**
|
||||
* Remove redundant changes from the diff so that it spans the minimal possible range
|
||||
*/
|
||||
export declare function normalizeStringDiff(targetText: string, diff: StringDiff): StringDiff | null;
|
||||
/**
|
||||
* Return a string diff that is equivalent to applying b after a spanning the range of
|
||||
* both changes
|
||||
*/
|
||||
export declare function mergeStringDiffs(targetText: string, a: StringDiff, b: StringDiff): StringDiff | null;
|
||||
/**
|
||||
* Get the slate range the text diff spans.
|
||||
*/
|
||||
export declare function targetRange(textDiff: TextDiff): Range;
|
||||
/**
|
||||
* Normalize a 'pending point' a.k.a a point based on the dom state before applying
|
||||
* the pending diffs. Since the pending diffs might have been inserted with different
|
||||
* marks we have to 'walk' the offset from the starting position to ensure we still
|
||||
* have a valid point inside the document
|
||||
*/
|
||||
export declare function normalizePoint(editor: Editor, point: Point): Point | null;
|
||||
/**
|
||||
* Normalize a 'pending selection' to ensure it's valid in the current document state.
|
||||
*/
|
||||
export declare function normalizeRange(editor: Editor, range: Range): Range | null;
|
||||
export declare function transformPendingPoint(editor: Editor, point: Point, op: Operation): Point | null;
|
||||
export declare function transformPendingRange(editor: Editor, range: Range, op: Operation): Range | null;
|
||||
export declare function transformTextDiff(textDiff: TextDiff, op: Operation): TextDiff | null;
|
||||
//# sourceMappingURL=diff-text.d.ts.map
|
||||
1
node_modules/slate-react/dist/utils/diff-text.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/utils/diff-text.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"diff-text.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/utils/diff-text.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EAEN,SAAS,EACT,IAAI,EACJ,KAAK,EACL,KAAK,EAGN,MAAM,OAAO,CAAA;AAGd,oBAAY,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;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ist/utils/dom.d.ts
generated
vendored
Normal file
84
node_modules/slate-react/dist/utils/dom.d.ts
generated
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
/**
|
||||
* Types.
|
||||
*/
|
||||
import DOMNode = globalThis.Node;
|
||||
import DOMComment = globalThis.Comment;
|
||||
import DOMElement = globalThis.Element;
|
||||
import DOMText = globalThis.Text;
|
||||
import DOMRange = globalThis.Range;
|
||||
import DOMSelection = globalThis.Selection;
|
||||
import DOMStaticRange = globalThis.StaticRange;
|
||||
import { ReactEditor } from '../plugin/react-editor';
|
||||
export { DOMNode, DOMComment, DOMElement, DOMText, DOMRange, DOMSelection, DOMStaticRange, };
|
||||
declare global {
|
||||
interface Window {
|
||||
Selection: typeof Selection['constructor'];
|
||||
DataTransfer: typeof DataTransfer['constructor'];
|
||||
Node: typeof Node['constructor'];
|
||||
}
|
||||
}
|
||||
export declare type DOMPoint = [Node, number];
|
||||
/**
|
||||
* Returns the host window of a DOM node
|
||||
*/
|
||||
export declare const getDefaultView: (value: any) => Window | null;
|
||||
/**
|
||||
* Check if a DOM node is a comment node.
|
||||
*/
|
||||
export declare const isDOMComment: (value: any) => value is DOMComment;
|
||||
/**
|
||||
* Check if a DOM node is an element node.
|
||||
*/
|
||||
export declare const isDOMElement: (value: any) => value is DOMElement;
|
||||
/**
|
||||
* Check if a value is a DOM node.
|
||||
*/
|
||||
export declare const isDOMNode: (value: any) => value is DOMNode;
|
||||
/**
|
||||
* Check if a value is a DOM selection.
|
||||
*/
|
||||
export declare const isDOMSelection: (value: any) => value is DOMSelection;
|
||||
/**
|
||||
* Check if a DOM node is an element node.
|
||||
*/
|
||||
export declare const isDOMText: (value: any) => value is DOMText;
|
||||
/**
|
||||
* Checks whether a paste event is a plaintext-only event.
|
||||
*/
|
||||
export declare const isPlainTextOnlyPaste: (event: ClipboardEvent) => boolean | null;
|
||||
/**
|
||||
* Normalize a DOM point so that it always refers to a text node.
|
||||
*/
|
||||
export declare const normalizeDOMPoint: (domPoint: DOMPoint) => DOMPoint;
|
||||
/**
|
||||
* Determines wether the active element is nested within a shadowRoot
|
||||
*/
|
||||
export declare const hasShadowRoot: (node: Node | null) => boolean;
|
||||
/**
|
||||
* Get the nearest editable child and index at `index` in a `parent`, preferring
|
||||
* `direction`.
|
||||
*/
|
||||
export declare const getEditableChildAndIndex: (parent: DOMElement, index: number, direction: 'forward' | 'backward') => [DOMNode, number];
|
||||
/**
|
||||
* Get the nearest editable child at `index` in a `parent`, preferring
|
||||
* `direction`.
|
||||
*/
|
||||
export declare const getEditableChild: (parent: DOMElement, index: number, direction: 'forward' | 'backward') => DOMNode;
|
||||
/**
|
||||
* Get a plaintext representation of the content of a node, accounting for block
|
||||
* elements which get a newline appended.
|
||||
*
|
||||
* The domNode must be attached to the DOM.
|
||||
*/
|
||||
export declare const getPlainText: (domNode: DOMNode) => string;
|
||||
export declare const getSlateFragmentAttribute: (dataTransfer: DataTransfer) => string | void;
|
||||
/**
|
||||
* Get the x-slate-fragment attribute that exist in text/html data
|
||||
* and append it to the DataTransfer object
|
||||
*/
|
||||
export declare const getClipboardData: (dataTransfer: DataTransfer, clipboardFormatKey?: string) => DataTransfer;
|
||||
/**
|
||||
* Check whether a mutation originates from a editable element inside the editor.
|
||||
*/
|
||||
export declare const isTrackedMutation: (editor: ReactEditor, mutation: MutationRecord, batch: MutationRecord[]) => boolean;
|
||||
//# sourceMappingURL=dom.d.ts.map
|
||||
1
node_modules/slate-react/dist/utils/dom.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/utils/dom.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/utils/dom.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,OAAO,GAAG,UAAU,CAAC,IAAI,CAAA;AAChC,OAAO,UAAU,GAAG,UAAU,CAAC,OAAO,CAAA;AACtC,OAAO,UAAU,GAAG,UAAU,CAAC,OAAO,CAAA;AAC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eAAO,MAAM,wBAAwB,WAC3B,UAAU,SACX,MAAM,aACF,SAAS,GAAG,UAAU,KAChC,CAAC,OAAO,EAAE,MAAM,CAsClB,CAAA;AAED;;;GAGG;AAEH,eAAO,MAAM,gBAAgB,WACnB,UAAU,SACX,MAAM,aACF,SAAS,GAAG,UAAU,KAChC,OAGF,CAAA;AAED;;;;;GAKG;AAEH,eAAO,MAAM,YAAY,YAAa,OAAO,WAoB5C,CAAA;AAMD,eAAO,MAAM,yBAAyB,iBACtB,YAAY,KACzB,MAAM,GAAG,IAIX,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,iBACb,YAAY,kCAEzB,YAaF,CAAA;AAED;;GAEG;AAEH,eAAO,MAAM,iBAAiB,WACpB,WAAW,YACT,cAAc,SACjB,cAAc,EAAE,KACtB,OA+BF,CAAA"}
|
||||
16
node_modules/slate-react/dist/utils/environment.d.ts
generated
vendored
Normal file
16
node_modules/slate-react/dist/utils/environment.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
export declare const IS_REACT_VERSION_17_OR_ABOVE: boolean;
|
||||
export declare const IS_IOS: false;
|
||||
export declare const IS_APPLE: boolean;
|
||||
export declare const IS_ANDROID: boolean;
|
||||
export declare const IS_FIREFOX: boolean;
|
||||
export declare const IS_SAFARI: boolean;
|
||||
export declare const IS_EDGE_LEGACY: boolean;
|
||||
export declare const IS_CHROME: boolean;
|
||||
export declare const IS_CHROME_LEGACY: boolean;
|
||||
export declare const IS_ANDROID_CHROME_LEGACY: boolean;
|
||||
export declare const IS_FIREFOX_LEGACY: boolean;
|
||||
export declare const IS_UC_MOBILE: boolean;
|
||||
export declare const IS_WECHATBROWSER: boolean;
|
||||
export declare const CAN_USE_DOM: boolean;
|
||||
export declare const HAS_BEFORE_INPUT_SUPPORT: boolean;
|
||||
//# sourceMappingURL=environment.d.ts.map
|
||||
1
node_modules/slate-react/dist/utils/environment.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/utils/environment.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/utils/environment.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,4BAA4B,SACQ,CAAA;AAEjD,eAAO,MAAM,MAAM,OAID,CAAA;AAElB,eAAO,MAAM,QAAQ,SACqD,CAAA;AAE1E,eAAO,MAAM,UAAU,SACkD,CAAA;AAEzE,eAAO,MAAM,UAAU,SAEuC,CAAA;AAE9D,eAAO,MAAM,SAAS,SAEgC,CAAA;AAGtD,eAAO,MAAM,cAAc,SAE0C,CAAA;AAErE,eAAO,MAAM,SAAS,SACmD,CAAA;AAIzE,eAAO,MAAM,gBAAgB,SAE0C,CAAA;AAEvE,eAAO,MAAM,wBAAwB,SAGqB,CAAA;AAG1D,eAAO,MAAM,iBAAiB,SAI3B,CAAA;AAGH,eAAO,MAAM,YAAY,SACoD,CAAA;AAG7E,eAAO,MAAM,gBAAgB,SAC6C,CAAA;AAI1E,eAAO,MAAM,WAAW,SAIvB,CAAA;AAID,eAAO,MAAM,wBAAwB,SAOkC,CAAA"}
|
||||
31
node_modules/slate-react/dist/utils/hotkeys.d.ts
generated
vendored
Normal file
31
node_modules/slate-react/dist/utils/hotkeys.d.ts
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
declare const _default: {
|
||||
isBold: (event: KeyboardEvent) => boolean;
|
||||
isCompose: (event: KeyboardEvent) => boolean;
|
||||
isMoveBackward: (event: KeyboardEvent) => boolean;
|
||||
isMoveForward: (event: KeyboardEvent) => boolean;
|
||||
isDeleteBackward: (event: KeyboardEvent) => boolean;
|
||||
isDeleteForward: (event: KeyboardEvent) => boolean;
|
||||
isDeleteLineBackward: (event: KeyboardEvent) => boolean;
|
||||
isDeleteLineForward: (event: KeyboardEvent) => boolean;
|
||||
isDeleteWordBackward: (event: KeyboardEvent) => boolean;
|
||||
isDeleteWordForward: (event: KeyboardEvent) => boolean;
|
||||
isExtendBackward: (event: KeyboardEvent) => boolean;
|
||||
isExtendForward: (event: KeyboardEvent) => boolean;
|
||||
isExtendLineBackward: (event: KeyboardEvent) => boolean;
|
||||
isExtendLineForward: (event: KeyboardEvent) => boolean;
|
||||
isItalic: (event: KeyboardEvent) => boolean;
|
||||
isMoveLineBackward: (event: KeyboardEvent) => boolean;
|
||||
isMoveLineForward: (event: KeyboardEvent) => boolean;
|
||||
isMoveWordBackward: (event: KeyboardEvent) => boolean;
|
||||
isMoveWordForward: (event: KeyboardEvent) => boolean;
|
||||
isRedo: (event: KeyboardEvent) => boolean;
|
||||
isSoftBreak: (event: KeyboardEvent) => boolean;
|
||||
isSplitBlock: (event: KeyboardEvent) => boolean;
|
||||
isTransposeCharacter: (event: KeyboardEvent) => boolean;
|
||||
isUndo: (event: KeyboardEvent) => boolean;
|
||||
};
|
||||
/**
|
||||
* Hotkeys.
|
||||
*/
|
||||
export default _default;
|
||||
//# sourceMappingURL=hotkeys.d.ts.map
|
||||
1
node_modules/slate-react/dist/utils/hotkeys.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/utils/hotkeys.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"hotkeys.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/utils/hotkeys.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAmEA;;GAEG;AAEH,wBAyBC"}
|
||||
12
node_modules/slate-react/dist/utils/key.d.ts
generated
vendored
Normal file
12
node_modules/slate-react/dist/utils/key.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* An auto-incrementing identifier for keys.
|
||||
*/
|
||||
/**
|
||||
* A class that keeps track of a key string. We use a full class here because we
|
||||
* want to be able to use them as keys in `WeakMap` objects.
|
||||
*/
|
||||
export declare class Key {
|
||||
id: string;
|
||||
constructor();
|
||||
}
|
||||
//# sourceMappingURL=key.d.ts.map
|
||||
1
node_modules/slate-react/dist/utils/key.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/utils/key.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"key.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/utils/key.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH;;;GAGG;AAEH,qBAAa,GAAG;IACd,EAAE,EAAE,MAAM,CAAA;;CAKX"}
|
||||
15
node_modules/slate-react/dist/utils/lines.d.ts
generated
vendored
Normal file
15
node_modules/slate-react/dist/utils/lines.d.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Utilities for single-line deletion
|
||||
*/
|
||||
import { Range } from 'slate';
|
||||
import { ReactEditor } from '../plugin/react-editor';
|
||||
/**
|
||||
* A helper utility that returns the end portion of a `Range`
|
||||
* which is located on a single line.
|
||||
*
|
||||
* @param {Editor} editor The editor object to compare against
|
||||
* @param {Range} parentRange The parent range to compare against
|
||||
* @returns {Range} A valid portion of the parentRange which is one a single line
|
||||
*/
|
||||
export declare const findCurrentLineRange: (editor: ReactEditor, parentRange: Range) => Range;
|
||||
//# sourceMappingURL=lines.d.ts.map
|
||||
1
node_modules/slate-react/dist/utils/lines.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/utils/lines.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"lines.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/utils/lines.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,KAAK,EAAU,MAAM,OAAO,CAAA;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAmBpD;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,WACvB,WAAW,eACN,KAAK,KACjB,KA2CF,CAAA"}
|
||||
19
node_modules/slate-react/dist/utils/range-list.d.ts
generated
vendored
Normal file
19
node_modules/slate-react/dist/utils/range-list.d.ts
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Range } from 'slate';
|
||||
export declare const shallowCompare: (obj1: {}, obj2: {}) => boolean;
|
||||
/**
|
||||
* Check if a list of decorator ranges are equal to another.
|
||||
*
|
||||
* PERF: this requires the two lists to also have the ranges inside them in the
|
||||
* same order, but this is an okay constraint for us since decorations are
|
||||
* kept in order, and the odd case where they aren't is okay to re-render for.
|
||||
*/
|
||||
export declare const isElementDecorationsEqual: (list: Range[], another: Range[]) => boolean;
|
||||
/**
|
||||
* Check if a list of decorator ranges are equal to another.
|
||||
*
|
||||
* PERF: this requires the two lists to also have the ranges inside them in the
|
||||
* same order, but this is an okay constraint for us since decorations are
|
||||
* kept in order, and the odd case where they aren't is okay to re-render for.
|
||||
*/
|
||||
export declare const isTextDecorationsEqual: (list: Range[], another: Range[]) => boolean;
|
||||
//# sourceMappingURL=range-list.d.ts.map
|
||||
1
node_modules/slate-react/dist/utils/range-list.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/utils/range-list.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"range-list.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/utils/range-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAG7B,eAAO,MAAM,cAAc,SAAU,EAAE,QAAQ,EAAE,YAI9C,CAAA;AAYH;;;;;;GAMG;AAEH,eAAO,MAAM,yBAAyB,SAC9B,KAAK,EAAE,WACJ,KAAK,EAAE,KACf,OAeF,CAAA;AAED;;;;;;GAMG;AAEH,eAAO,MAAM,sBAAsB,SAC3B,KAAK,EAAE,WACJ,KAAK,EAAE,KACf,OAoBF,CAAA"}
|
||||
52
node_modules/slate-react/dist/utils/weak-maps.d.ts
generated
vendored
Normal file
52
node_modules/slate-react/dist/utils/weak-maps.d.ts
generated
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
import { Ancestor, Editor, Node, Range, RangeRef, Text } from 'slate';
|
||||
import { Action } from '../hooks/android-input-manager/android-input-manager';
|
||||
import { TextDiff } from './diff-text';
|
||||
import { Key } from './key';
|
||||
/**
|
||||
* Two weak maps that allow us rebuild a path given a node. They are populated
|
||||
* at render time such that after a render occurs we can always backtrack.
|
||||
*/
|
||||
export declare const NODE_TO_INDEX: WeakMap<Node, number>;
|
||||
export declare const NODE_TO_PARENT: WeakMap<Node, Ancestor>;
|
||||
/**
|
||||
* Weak maps that allow us to go between Slate nodes and DOM nodes. These
|
||||
* are used to resolve DOM event-related logic into Slate actions.
|
||||
*/
|
||||
export declare const EDITOR_TO_WINDOW: WeakMap<Editor, Window>;
|
||||
export declare const EDITOR_TO_ELEMENT: WeakMap<Editor, HTMLElement>;
|
||||
export declare const EDITOR_TO_PLACEHOLDER: WeakMap<Editor, string>;
|
||||
export declare const EDITOR_TO_PLACEHOLDER_ELEMENT: WeakMap<Editor, HTMLElement>;
|
||||
export declare const ELEMENT_TO_NODE: WeakMap<HTMLElement, Node>;
|
||||
export declare const NODE_TO_ELEMENT: WeakMap<Node, HTMLElement>;
|
||||
export declare const NODE_TO_KEY: WeakMap<Node, Key>;
|
||||
export declare const EDITOR_TO_KEY_TO_ELEMENT: WeakMap<Editor, WeakMap<Key, HTMLElement>>;
|
||||
/**
|
||||
* Weak maps for storing editor-related state.
|
||||
*/
|
||||
export declare const IS_READ_ONLY: WeakMap<Editor, boolean>;
|
||||
export declare const IS_FOCUSED: WeakMap<Editor, boolean>;
|
||||
export declare const IS_COMPOSING: WeakMap<Editor, boolean>;
|
||||
export declare const EDITOR_TO_USER_SELECTION: WeakMap<Editor, RangeRef | null>;
|
||||
/**
|
||||
* Weak map for associating the context `onChange` context with the plugin.
|
||||
*/
|
||||
export declare const EDITOR_TO_ON_CHANGE: WeakMap<import("..").ReactEditor, () => void>;
|
||||
/**
|
||||
* Weak maps for saving pending state on composition stage.
|
||||
*/
|
||||
export declare const EDITOR_TO_SCHEDULE_FLUSH: WeakMap<Editor, () => void>;
|
||||
export declare const EDITOR_TO_PENDING_INSERTION_MARKS: WeakMap<Editor, Partial<Text> | null>;
|
||||
export declare const EDITOR_TO_USER_MARKS: WeakMap<Editor, Partial<Text> | null>;
|
||||
/**
|
||||
* Android input handling specific weak-maps
|
||||
*/
|
||||
export declare const EDITOR_TO_PENDING_DIFFS: WeakMap<Editor, TextDiff[]>;
|
||||
export declare const EDITOR_TO_PENDING_ACTION: WeakMap<Editor, Action | null>;
|
||||
export declare const EDITOR_TO_PENDING_SELECTION: WeakMap<Editor, Range | null>;
|
||||
export declare const EDITOR_TO_FORCE_RENDER: WeakMap<Editor, () => void>;
|
||||
/**
|
||||
* Symbols.
|
||||
*/
|
||||
export declare const PLACEHOLDER_SYMBOL: string;
|
||||
export declare const MARK_PLACEHOLDER_SYMBOL: string;
|
||||
//# sourceMappingURL=weak-maps.d.ts.map
|
||||
1
node_modules/slate-react/dist/utils/weak-maps.d.ts.map
generated
vendored
Normal file
1
node_modules/slate-react/dist/utils/weak-maps.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"weak-maps.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/utils/weak-maps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,sDAAsD,CAAA;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAE3B;;;GAGG;AAEH,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,IAAI,EAAE,MAAM,CAAiB,CAAA;AACjE,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAiB,CAAA;AAEpE;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,MAAM,EAAE,MAAM,C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