@veltdev/react 1.0.150 → 1.0.152

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,6 +10,7 @@ export interface IVeltCommentBubbleProps extends React.DetailedHTMLProps<React.H
10
10
  shadowDom?: boolean;
11
11
  variant?: string;
12
12
  darkMode?: boolean;
13
+ commentCountType?: 'total' | 'unread';
13
14
  }
14
15
  declare const SnippylyCommentBubble: React.FC<IVeltCommentBubbleProps>;
15
16
  export default SnippylyCommentBubble;
@@ -4,6 +4,7 @@ export interface IVeltInlineCommentsSectionProps extends React.DetailedHTMLProps
4
4
  id: string;
5
5
  name?: string;
6
6
  };
7
+ targetInlineCommentElementId?: string;
7
8
  darkMode?: boolean;
8
9
  variant?: string;
9
10
  dialogVariant?: string;
@@ -1,3 +1,3 @@
1
- export declare const VELT_SDK_VERSION = "1.0.167";
1
+ export declare const VELT_SDK_VERSION = "1.0.169";
2
2
  export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
3
3
  export declare const VELT_TAB_ID = "veltTabId";
@@ -1,6 +1,21 @@
1
1
  import { CommentAnnotation, CommentElement, Location, CommentSelectionChangeData } from "@veltdev/types";
2
2
  export declare function useCommentUtils(): CommentElement | undefined;
3
3
  export declare function useCommentAnnotations(documentId?: string, location?: Location): CommentAnnotation[] | null;
4
+ export declare function useUnreadCommentCountByAnnotationId(annotationId: string): {
5
+ count: number;
6
+ } | null;
7
+ export declare function useUnreadCommentAnnotationCountOnCurrentDocument(): {
8
+ count: number;
9
+ } | null;
10
+ export declare function useUnreadCommentCountOnCurrentDocument(): {
11
+ count: number;
12
+ } | null;
13
+ export declare function useUnreadCommentCountByLocationId(locationId: string): {
14
+ count: number;
15
+ } | null;
16
+ export declare function useUnreadCommentAnnotationCountByLocationId(locationId: string): {
17
+ count: number;
18
+ } | null;
4
19
  export declare function useCommentModeState(): boolean | undefined;
5
20
  export declare function useCommentAddHandler(): any;
6
21
  export declare function useCommentUpdateHandler(): any;
@@ -1,5 +1,5 @@
1
1
  export { useSetLocation, useSetDocumentId, useUnsetDocumentId, useIdentify, useClient, useVeltInitState, } from './Client';
2
- export { useCommentUtils, useCommentAnnotations, useCommentAddHandler, useCommentModeState, useCommentUpdateHandler, useCommentDialogSidebarClickHandler, useCommentSelectionChangeHandler, } from './CommentElement';
2
+ export { useCommentUtils, useCommentAnnotations, useCommentAddHandler, useCommentModeState, useCommentUpdateHandler, useCommentDialogSidebarClickHandler, useCommentSelectionChangeHandler, useUnreadCommentCountByAnnotationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountOnCurrentDocument, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentCountByLocationId, } from './CommentElement';
3
3
  export { useCursorUtils, useCursorUsers, } from './CursorElement';
4
4
  export { useHuddleUtils, } from './HuddleElement';
5
5
  export { useLiveStateSyncUtils, useLiveStateData, useSetLiveStateData, useUserEditorState, useEditor, useEditorAccessTimer, useEditorAccessRequestHandler, useServerConnectionStateChangeHandler, useLiveState, } from './LiveStateSyncElement';
package/index.d.ts CHANGED
@@ -32,6 +32,7 @@ interface IVeltCommentBubbleProps extends React.DetailedHTMLProps<React.HTMLAttr
32
32
  shadowDom?: boolean;
33
33
  variant?: string;
34
34
  darkMode?: boolean;
35
+ commentCountType?: 'total' | 'unread';
35
36
  }
36
37
  declare const SnippylyCommentBubble: React.FC<IVeltCommentBubbleProps>;
37
38
 
@@ -406,6 +407,7 @@ interface IVeltInlineCommentsSectionProps extends React.DetailedHTMLProps<React.
406
407
  id: string;
407
408
  name?: string;
408
409
  };
410
+ targetInlineCommentElementId?: string;
409
411
  darkMode?: boolean;
410
412
  variant?: string;
411
413
  dialogVariant?: string;
@@ -1588,6 +1590,21 @@ declare function useVeltInitState(): boolean | undefined;
1588
1590
 
1589
1591
  declare function useCommentUtils(): CommentElement | undefined;
1590
1592
  declare function useCommentAnnotations(documentId?: string, location?: Location$1): CommentAnnotation[] | null;
1593
+ declare function useUnreadCommentCountByAnnotationId(annotationId: string): {
1594
+ count: number;
1595
+ } | null;
1596
+ declare function useUnreadCommentAnnotationCountOnCurrentDocument(): {
1597
+ count: number;
1598
+ } | null;
1599
+ declare function useUnreadCommentCountOnCurrentDocument(): {
1600
+ count: number;
1601
+ } | null;
1602
+ declare function useUnreadCommentCountByLocationId(locationId: string): {
1603
+ count: number;
1604
+ } | null;
1605
+ declare function useUnreadCommentAnnotationCountByLocationId(locationId: string): {
1606
+ count: number;
1607
+ } | null;
1591
1608
  declare function useCommentModeState(): boolean | undefined;
1592
1609
  declare function useCommentAddHandler(): any;
1593
1610
  declare function useCommentUpdateHandler(): any;
@@ -1653,4 +1670,4 @@ declare const createLiveStateMiddleware: (config?: LiveStateMiddlewareConfig) =>
1653
1670
  updateLiveStateDataId: (newId?: string) => void;
1654
1671
  };
1655
1672
 
1656
- export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, VeltAutocompleteOptionWireframe, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleWireframe, VeltCommentDialogOptionsDropdownContentWireframe, VeltCommentDialogOptionsDropdownTriggerWireframe, VeltCommentDialogPriorityDropdownContentWireframe, VeltCommentDialogPriorityDropdownTriggerWireframe, VeltCommentDialogStatusDropdownContentWireframe, VeltCommentDialogStatusDropdownTriggerWireframe, VeltCommentDialogWireframe, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentThread, SnippylyCommentTool as VeltCommentTool, VeltCommentToolWireframe, SnippylyComments as VeltComments, SnippylyCommentsSidebar as VeltCommentsSidebar, VeltCommentsSidebarStatusDropdownWireframe, VeltCommentsSidebarWireframe, SnippylyCursor as VeltCursor, VeltHighChartComments, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltInlineCommentsSection, VeltInlineCommentsSectionWireframe, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsTool, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, VeltReactionToolWireframe, VeltReactionsPanelWireframe, SnippylyRecorderControlPanel as VeltRecorderControlPanel, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, SnippylyRecorderTool as VeltRecorderTool, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, VeltTextCommentToolWireframe, VeltTextCommentToolbar as VeltTextCommentToolbarWireframe, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltUserSelectorDropdown as VeltUserSelectorDropdownWireframe, VeltVideoPlayer, VeltViewAnalytics, VeltWireframe, createLiveStateMiddleware, useAIRewriterUtils, useAutocompleteChipClick, useAutocompleteUtils, useClient, useCommentAddHandler, useCommentAnnotations, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentSelectionChangeHandler, useCommentUpdateHandler, useCommentUtils, useCursorUsers, useCursorUtils, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useServerConnectionStateChangeHandler, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUniqueViewsByDate, useUniqueViewsByUser, useUnsetDocumentId, useUserEditorState, useVeltClient, useVeltInitState, useViewsUtils };
1673
+ export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, VeltAutocompleteOptionWireframe, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleWireframe, VeltCommentDialogOptionsDropdownContentWireframe, VeltCommentDialogOptionsDropdownTriggerWireframe, VeltCommentDialogPriorityDropdownContentWireframe, VeltCommentDialogPriorityDropdownTriggerWireframe, VeltCommentDialogStatusDropdownContentWireframe, VeltCommentDialogStatusDropdownTriggerWireframe, VeltCommentDialogWireframe, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentThread, SnippylyCommentTool as VeltCommentTool, VeltCommentToolWireframe, SnippylyComments as VeltComments, SnippylyCommentsSidebar as VeltCommentsSidebar, VeltCommentsSidebarStatusDropdownWireframe, VeltCommentsSidebarWireframe, SnippylyCursor as VeltCursor, VeltHighChartComments, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltInlineCommentsSection, VeltInlineCommentsSectionWireframe, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsTool, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, VeltReactionToolWireframe, VeltReactionsPanelWireframe, SnippylyRecorderControlPanel as VeltRecorderControlPanel, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, SnippylyRecorderTool as VeltRecorderTool, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, VeltTextCommentToolWireframe, VeltTextCommentToolbar as VeltTextCommentToolbarWireframe, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltUserSelectorDropdown as VeltUserSelectorDropdownWireframe, VeltVideoPlayer, VeltViewAnalytics, VeltWireframe, createLiveStateMiddleware, useAIRewriterUtils, useAutocompleteChipClick, useAutocompleteUtils, useClient, useCommentAddHandler, useCommentAnnotations, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentSelectionChangeHandler, useCommentUpdateHandler, useCommentUtils, useCursorUsers, useCursorUtils, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useHuddleUtils, useIdentify, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useServerConnectionStateChangeHandler, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useUniqueViewsByDate, useUniqueViewsByUser, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountByAnnotationId, useUnreadCommentCountByLocationId, useUnreadCommentCountOnCurrentDocument, useUnsetDocumentId, useUserEditorState, useVeltClient, useVeltInitState, useViewsUtils };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/react",
3
- "version": "1.0.150",
3
+ "version": "1.0.152",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",