UNPKG

@atlaskit/editor-plugin-mentions

Version:

Mentions plugin for @atlaskit/editor-core

14 lines (13 loc) • 506 B
import type { MentionNodeData } from '@atlaskit/mention/types'; export interface MentionAvatarController { destroy: () => void; render: (data: MentionNodeData) => void; } /** * Populates the fixed-size avatar slot owned by the vanilla ProseMirror NodeView. * No React root or editor portal is created for individual mention nodes. */ export declare const mentionAvatarRenderer: ({ container, onFailure, }: { container: HTMLElement; onFailure?: () => void; }) => MentionAvatarController;