@veltdev/react
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.
55 lines (54 loc) • 1.45 kB
TypeScript
import React from 'react';
declare class FilterTypeConfig {
name?: string;
enable?: boolean;
multiSelection?: boolean;
enableGrouping?: boolean;
order?: string[];
}
declare class CommentSidebarFilterConfig {
location?: FilterTypeConfig;
people?: FilterTypeConfig;
priority?: FilterTypeConfig;
category?: FilterTypeConfig;
commentType?: FilterTypeConfig;
}
declare class CommentSidebarGroupConfig {
enable?: boolean;
name?: string;
}
declare class CommentSidebarFilters {
location?: Location[];
people?: {
userId?: string;
email?: string;
}[];
priority?: string[];
status?: string[];
category?: string[];
}
export interface IVeltCommentsSidebarProps {
embedMode?: boolean;
/**
* @deprecated Use `urlNavigation` instead
*/
enableUrlNavigation?: boolean;
urlNavigation?: boolean;
pageMode?: boolean;
currentLocationSuffix?: boolean;
filterConfig?: CommentSidebarFilterConfig;
groupConfig?: CommentSidebarGroupConfig;
filters?: CommentSidebarFilters;
/**
* @deprecated Use `onSidebarOpen` instead
*/
openSidebar?: Function;
onSidebarOpen?: Function;
/**
* @deprecated Use `onCommentClick` instead
*/
onSidebarCommentClick?: Function;
onCommentClick?: Function;
}
declare const SnippylyCommentsSidebar: React.FC<IVeltCommentsSidebarProps>;
export default SnippylyCommentsSidebar;