@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.
57 lines (56 loc) • 1.72 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;
status?: 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 IVeltSidebarButtonProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
tooltipText?: string;
darkMode?: boolean;
shadowDom?: boolean;
floatingMode?: boolean;
pageMode?: boolean;
sortData?: 'asc' | 'desc' | 'none';
urlNavigation?: boolean;
currentLocationSuffix?: boolean;
filterConfig?: CommentSidebarFilterConfig;
groupConfig?: CommentSidebarGroupConfig;
filters?: CommentSidebarFilters;
excludeLocationIds?: string[];
dialogVariant?: string;
pageModeComposerVariant?: string;
sidebarShadowDom?: boolean;
sidebarVariant?: string;
position?: "right" | "left";
filterPanelLayout?: 'menu' | 'bottomSheet';
sidebarButtonCountType?: 'default' | 'filter';
filterGhostCommentsInSidebar?: boolean;
onCommentClick?: Function;
onSidebarOpen?: Function;
}
declare const SnippylySidebarButton: React.FC<IVeltSidebarButtonProps>;
export default SnippylySidebarButton;