UNPKG

@atlaskit/editor-plugin-type-ahead

Version:

Type-ahead plugin for @atlaskit/editor-core

9 lines (8 loc) • 786 B
import { ACTION } from '@atlaskit/editor-common/analytics/types/enums'; import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums'; import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin'; import type { TypeAheadPlugin } from '../typeAheadPluginType'; import type { TypeAheadInputMethod } from '../types'; export type CloseActionType = ACTION.INSERTED | ACTION.CANCELLED | ACTION.VIEW_MORE; export type InputMethodType = INPUT_METHOD.KEYBOARD | INPUT_METHOD.MOUSE; export declare const fireTypeAheadClosedAnalyticsEvent: (api: ExtractInjectionAPI<TypeAheadPlugin> | undefined, closeAction: CloseActionType | null, hasQuery: boolean, inputMethod: InputMethodType | null, invocationMethod?: TypeAheadInputMethod | null) => void;