@veltdev/tiptap-velt-comments
Version:
Tiptap Extension to add Google Docs-style overlay comments to your Tiptap editor. Works with the Velt Collaboration SDK.
22 lines (21 loc) • 1.14 kB
TypeScript
import type { Location } from '@veltdev/types';
import type { CommentAnnotationContext } from './types';
export declare class VeltService {
static selectedCommentsMap: Map<string, boolean>;
static subscribers: Map<string, (selectedCommentsMap: Map<string, boolean>) => void>;
static isSubscribed: boolean;
static getCommentElement: () => import("@veltdev/types").CommentElement | null;
static addManualComment: ({ context, location, }: {
context: CommentAnnotationContext;
location?: Location | undefined;
}) => Promise<any>;
static updateContext: ({ annotationId, context, }: {
annotationId: string;
context: CommentAnnotationContext;
}) => Promise<any> | undefined;
static subscribeToSelectedCommentsMap: (id: string, subscriber: (selectedCommentsMap: Map<string, boolean>) => void) => void;
static unsubscribeFromSelectedCommentsMap: (id: string) => void;
static catchError: (message: string, otherProperties?: any) => void;
static subscribeToSelectedAnnotationsMapSingleton: () => Map<any, any> | undefined;
private static updateSelectedCommentsMap;
}