@atlaskit/editor-plugin-type-ahead
Version:
Type-ahead plugin for @atlaskit/editor-core
22 lines (21 loc) • 1.18 kB
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 { TypeAheadHandler, TypeAheadInputMethod } from '../types';
type WrapperProps = {
anchorElement: HTMLElement;
api: ExtractInjectionAPI<TypeAheadPlugin> | undefined;
editorView: EditorView;
getDecorationPosition: () => number | undefined;
inputMethod?: TypeAheadInputMethod;
onUndoRedo?: (inputType: 'historyUndo' | 'historyRedo') => boolean;
popupsBoundariesElement?: HTMLElement;
popupsMountPoint?: HTMLElement;
popupsScrollableElement?: HTMLElement;
reopenQuery?: string;
shouldFocusCursorInsideQuery: boolean;
triggerHandler: TypeAheadHandler;
};
export declare const WrapperTypeAhead: React.MemoExoticComponent<({ triggerHandler, editorView, anchorElement, shouldFocusCursorInsideQuery, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, inputMethod, getDecorationPosition, reopenQuery, onUndoRedo, api, }: WrapperProps) => React.JSX.Element | null>;
export {};