@veltdev/react 1.0.149 → 1.0.151

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;
@@ -94,6 +94,7 @@ export interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAt
94
94
  textCommentToolbarDarkMode?: boolean;
95
95
  textCommentToolShadowDom?: boolean;
96
96
  textCommentToolbarShadowDom?: boolean;
97
+ composerMode?: 'default' | 'expanded';
97
98
  }
98
99
  declare const SnippylyComments: React.FC<IVeltCommentsProps>;
99
100
  export default SnippylyComments;
@@ -1,3 +1,3 @@
1
- export declare const VELT_SDK_VERSION = "1.0.166";
1
+ export declare const VELT_SDK_VERSION = "1.0.168";
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
 
@@ -129,6 +130,7 @@ interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAttribute
129
130
  textCommentToolbarDarkMode?: boolean;
130
131
  textCommentToolShadowDom?: boolean;
131
132
  textCommentToolbarShadowDom?: boolean;
133
+ composerMode?: 'default' | 'expanded';
132
134
  }
133
135
  declare const SnippylyComments: React.FC<IVeltCommentsProps>;
134
136
 
@@ -1587,6 +1589,21 @@ declare function useVeltInitState(): boolean | undefined;
1587
1589
 
1588
1590
  declare function useCommentUtils(): CommentElement | undefined;
1589
1591
  declare function useCommentAnnotations(documentId?: string, location?: Location$1): CommentAnnotation[] | null;
1592
+ declare function useUnreadCommentCountByAnnotationId(annotationId: string): {
1593
+ count: number;
1594
+ } | null;
1595
+ declare function useUnreadCommentAnnotationCountOnCurrentDocument(): {
1596
+ count: number;
1597
+ } | null;
1598
+ declare function useUnreadCommentCountOnCurrentDocument(): {
1599
+ count: number;
1600
+ } | null;
1601
+ declare function useUnreadCommentCountByLocationId(locationId: string): {
1602
+ count: number;
1603
+ } | null;
1604
+ declare function useUnreadCommentAnnotationCountByLocationId(locationId: string): {
1605
+ count: number;
1606
+ } | null;
1590
1607
  declare function useCommentModeState(): boolean | undefined;
1591
1608
  declare function useCommentAddHandler(): any;
1592
1609
  declare function useCommentUpdateHandler(): any;
@@ -1652,4 +1669,4 @@ declare const createLiveStateMiddleware: (config?: LiveStateMiddlewareConfig) =>
1652
1669
  updateLiveStateDataId: (newId?: string) => void;
1653
1670
  };
1654
1671
 
1655
- 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 };
1672
+ 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.149",
3
+ "version": "1.0.151",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",