UNPKG

@atlaskit/editor-plugin-selection

Version:

Selection plugin for @atlaskit/editor-core

11 lines (10 loc) 878 B
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics'; import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher'; import { SafePlugin } from '@atlaskit/editor-common/safe-plugin'; import type { SelectionPluginState } from '@atlaskit/editor-common/selection'; import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types'; import type { EditorState } from '@atlaskit/editor-prosemirror/state'; import type { SelectionPlugin } from '../selectionPluginType'; import type { SelectionPluginOptions } from '../types'; export declare const getInitialState: (state: EditorState) => SelectionPluginState; export declare const createPlugin: (api: ExtractInjectionAPI<SelectionPlugin> | undefined, dispatch: Dispatch, dispatchAnalyticsEvent: DispatchAnalyticsEvent, options?: SelectionPluginOptions) => SafePlugin<SelectionPluginState>;