This commit is contained in:
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"}
|
||||
Reference in New Issue
Block a user