import { mentionPluginPrefix } from '../editor/types';
/**
 * A configuration object for a Mention extension, to be used by the editor for loading mention plugins in tiptap.
 * This object maintains the necessary internal values for loading mention extension.
 */
export class MentionExtensionConfiguration {
    constructor(mentionInternals) {
        MentionExtensionConfiguration.instance += 1;
        const key = `${mentionPluginPrefix}${MentionExtensionConfiguration.instance}`;
        this.name = key;
        this.key = key;
        this.viewElement = mentionInternals.viewElement;
        this.character = mentionInternals.character;
        this.mappingConfigs = mentionInternals.mappingConfigs;
        this.iconTemplate = mentionInternals.iconTemplate;
        this.buttonLabel = mentionInternals.buttonLabel ?? '';
        this.mentionUpdateEmitter = mentionInternals.mentionUpdateEmitter;
    }
}
MentionExtensionConfiguration.instance = 0;
//# sourceMappingURL=mention-extension-configuration.js.map