UNPKG

@atlaskit/editor-plugin-selection-extension

Version:

editor-plugin-selection-extension plugin for @atlaskit/editor-core

16 lines (15 loc) 837 B
import { type Provider } from 'react'; import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types'; import type { EditorView } from '@atlaskit/editor-prosemirror/view'; import type { SelectionExtensionPlugin } from '../selectionExtensionPluginType'; import type { ExtensionSource, SelectionExtensionLocation } from '../types'; type SelectionExtensionComponentContextValue = { api: ExtractInjectionAPI<SelectionExtensionPlugin>; editorView: EditorView; extensionKey: string; extensionLocation: SelectionExtensionLocation; extensionSource: ExtensionSource; }; export declare const SelectionExtensionComponentContextProvider: Provider<SelectionExtensionComponentContextValue | undefined>; export declare const useSelectionExtensionComponentContext: () => SelectionExtensionComponentContextValue; export {};