UNPKG

claritykit-svelte

Version:

A comprehensive Svelte component library focused on accessibility, ADHD-optimized design, developer experience, and full SSR compatibility

39 lines 1.02 kB
import { Node } from '@tiptap/core'; export interface MentionOptions { HTMLAttributes: Record<string, any>; renderLabel: (props: { options: MentionOptions; node: any; }) => string; suggestion: Omit<any, 'editor'>; deleteTriggerWithBackspace: boolean; } export interface MentionUser { id: string; name: string; avatar?: string; email?: string; role?: string; status?: 'online' | 'away' | 'busy' | 'offline'; } export interface MentionNodeAttrs { id: string; label: string; userId: string; userName: string; userAvatar?: string; userRole?: string; } declare module '@tiptap/core' { interface Commands<ReturnType> { mention: { /** * Insert a mention */ insertMention: (attributes: MentionNodeAttrs) => ReturnType; }; } } export declare const MentionExtension: Node<MentionOptions, any>; export default MentionExtension; //# sourceMappingURL=MentionExtension.d.ts.map