UNPKG

@atlaskit/editor-plugin-type-ahead

Version:

Type-ahead plugin for @atlaskit/editor-core

18 lines (17 loc) 913 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>; }; export declare function createPlugin({ reactDispatch, popupMountRef, typeAheadHandlers, getIntl, nodeViewPortalProviderAPI, api, }: Props): SafePlugin; export {};