@atlaskit/editor-plugin-emoji
Version:
Emoji plugin for @atlaskit/editor-core
16 lines (15 loc) • 979 B
TypeScript
import type { PublicPluginAPI } from '@atlaskit/editor-common/types';
import type { TypeAheadHandler, TypeAheadInputMethod } from '@atlaskit/editor-plugin-type-ahead';
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
import type { EmojiDescription, EmojiProvider } from '@atlaskit/emoji';
import type { EmojiPlugin } from '../emojiPluginType';
export declare const ACTIONS: {
SET_PROVIDER: string;
SET_RESULTS: string;
SET_ASCII_MAP: string;
SET_INLINE_POPUP: string;
};
export declare const setAsciiMap: (asciiMap: Map<string, EmojiDescription>) => (tr: Transaction) => Transaction;
export declare const openTypeAhead: (typeaheadHandler: TypeAheadHandler, api?: PublicPluginAPI<EmojiPlugin>) => (inputMethod: TypeAheadInputMethod) => boolean;
export declare const setProvider: (provider?: EmojiProvider) => (tr: Transaction) => Transaction;
export declare const setInlineEmojiPopupOpen: (open: boolean) => (tr: Transaction) => Transaction;