UNPKG

@atlaskit/editor-plugin-mentions

Version:

Mentions plugin for @atlaskit/editor-core

18 lines (17 loc) 848 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: { COMMIT_PENDING_TYPED_AGENT_MENTION: string; SET_PENDING_TYPED_AGENT_MENTION: string; 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 {};