UNPKG

@atlaskit/editor-plugin-type-ahead

Version:

Type-ahead plugin for @atlaskit/editor-core

19 lines (18 loc) 963 B
import type { IntlShape } from 'react-intl'; import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher'; import type { PortalProviderAPI } from '@atlaskit/editor-common/portal'; import { SafePlugin } from '@atlaskit/editor-common/safe-plugin'; import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types'; import type { TypeAheadPlugin } from '../typeAheadPluginType'; import type { PopupMountPointReference, TypeAheadHandler } from '../types'; type Props = { api: ExtractInjectionAPI<TypeAheadPlugin> | undefined; getIntl: () => IntlShape; nodeViewPortalProviderAPI: PortalProviderAPI; popupMountRef: PopupMountPointReference; reactDispatch: Dispatch; typeAheadHandlers: Array<TypeAheadHandler>; }; /** Creates the type-ahead ProseMirror plugin. */ export declare function createPlugin({ reactDispatch, popupMountRef, typeAheadHandlers, getIntl, nodeViewPortalProviderAPI, api, }: Props): SafePlugin; export {};