UNPKG

@veltdev/types

Version:

Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.

34 lines (33 loc) 839 B
import { PageInfo } from "./page-info.model"; import { TargetTextRange } from "./target-text-range.data.model"; import { User } from "./user.data.model"; export declare class Selection { /** * User focused on specific element or text */ user?: User; /** * Type of event through highlight event is fired */ type?: 'focus' | 'click' | 'selection'; /** * XPath of highlighted element */ targetElement?: string | null; /** * Selected text to highlight */ targetTextRange?: TargetTextRange | null; pageInfo: PageInfo; } export declare enum UserIndicatorPosition { Start = "start", End = "end" } export declare enum UserIndicatorType { Avatar = "avatar", Label = "label" } export declare class LiveSelectionData { [userIdHash: string]: Selection; }