@atlaskit/editor-plugin-mentions
Version:
Mentions plugin for @atlaskit/editor-core
16 lines (15 loc) • 848 B
TypeScript
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
import type { MentionProvider } from '@atlaskit/mention/resource';
import type { MentionsPlugin } from '../mentionsPluginType';
interface Props {
api: ExtractInjectionAPI<MentionsPlugin> | undefined;
mentionProvider: Promise<MentionProvider> | undefined;
}
/**
* Container that renders the recaptcha component from the mention provider and manages handleSuccess.
* Does NOT pass email - the provider's component uses useInlineInviteRecaptcha hook internally
* and wires showRecaptcha to the provider. When user clicks invite item, type-ahead calls
* mentionProvider.showInlineInviteRecaptcha(email) which passes email to the component.
*/
export declare const InlineInviteRecaptchaContainer: ({ mentionProvider, api, }: Props) => JSX.Element | null;
export {};