UNPKG

@atlaskit/editor-plugin-mentions

Version:

Mentions plugin for @atlaskit/editor-core

16 lines (15 loc) 755 B
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin'; import type { ExtractInjectionAPI, PMPluginFactoryParams } from '@atlaskit/editor-common/types'; import type { MentionsPlugin } from '../mentionsPluginType'; import type { FireElementsChannelEvent, MentionPluginOptions, MentionPluginState } from '../types'; export declare const ACTIONS: { SET_PROVIDER: string; }; interface CreateMentionPlugin { api?: ExtractInjectionAPI<MentionsPlugin>; fireEvent: FireElementsChannelEvent; options?: MentionPluginOptions; pmPluginFactoryParams: PMPluginFactoryParams; } export declare function createMentionPlugin({ pmPluginFactoryParams, fireEvent, options, api, }: CreateMentionPlugin): SafePlugin<MentionPluginState>; export {};