UNPKG

@veltdev/tiptap-velt-comments

Version:

Tiptap Extension to add Google Docs-style overlay comments to your Tiptap editor. Works with the Velt Collaboration SDK.

41 lines (40 loc) 861 B
export type CommentAnnotationContext = { textEditorConfig?: { text: string; occurrence: number; editorId?: string; targetTextNodeId?: string; }; } & Record<string, unknown>; export interface TiptapVeltCommentConfig { context?: any; } /** * Interface for annotation data */ export interface AnnotationData { annotationId?: string; multiThreadAnnotationId?: string; text?: string; context?: AnnotationContext; } /** * Interface for annotation context */ export interface AnnotationContext { textEditorConfig?: { text?: string; occurrence?: number; targetTextNodeId?: string; }; } /** * Interface for plugin reference in annotation store */ export interface PluginReference { node: HTMLElement; position: { from: number; to: number; }; }