UNPKG

claritykit-svelte

Version:

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

42 lines 1.23 kB
import { Node } from '@tiptap/core'; export interface ThreadReferenceOptions { HTMLAttributes: Record<string, any>; renderLabel: (props: { options: ThreadReferenceOptions; node: any; }) => string; onThreadClick: (threadId: string, messageId?: string) => void; getThreadPreview: (threadId: string, messageId?: string) => Promise<ThreadPreview | null>; } export interface ThreadPreview { threadId: string; messageId?: string; title: string; preview: string; author: { id: string; name: string; avatar?: string; }; timestamp: string; messageCount?: number; } export interface ThreadReferenceAttrs { threadId: string; messageId?: string; label: string; preview?: string; } declare module '@tiptap/core' { interface Commands<ReturnType> { threadReference: { /** * Insert a thread reference */ insertThreadReference: (attributes: ThreadReferenceAttrs) => ReturnType; }; } } export declare const ThreadReferenceExtension: Node<ThreadReferenceOptions, any>; export default ThreadReferenceExtension; //# sourceMappingURL=ThreadReferenceExtension.d.ts.map