@atlaskit/editor-plugin-type-ahead
Version:
Type-ahead plugin for @atlaskit/editor-core
15 lines (14 loc) • 795 B
TypeScript
import React from 'react';
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
import type { TypeAheadPlugin } from '../typeAheadPluginType';
import type { PopupMountPointReference, TypeAheadPluginSharedState } from '../types';
type TypeAheadMenuType = {
api: ExtractInjectionAPI<TypeAheadPlugin> | undefined;
editorView: EditorView;
popupMountRef: PopupMountPointReference;
selectedIndex: number;
typeAheadState: Omit<TypeAheadPluginSharedState, 'isOpen' | 'isAllowed' | 'selectedIndex'>;
};
export declare const TypeAheadMenu: React.MemoExoticComponent<({ editorView, popupMountRef, typeAheadState, selectedIndex, api, }: TypeAheadMenuType) => React.JSX.Element | null>;
export {};