@veltdev/react 3.0.82 → 3.0.83

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.
@@ -1,3 +1,3 @@
1
- export declare const VELT_SDK_VERSION = "3.0.82";
1
+ export declare const VELT_SDK_VERSION = "3.0.83";
2
2
  export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
3
3
  export declare const VELT_TAB_ID = "veltTabId";
@@ -1,21 +1,11 @@
1
- import { CommentAnnotation, CommentElement, Location, CommentSelectionChangeData, CommentSidebarCustomActionEventData, CommentAddEventData, CommentUpdateEventData } from "@veltdev/types";
1
+ import { CommentAnnotation, CommentElement, Location, CommentSelectionChangeData, CommentSidebarCustomActionEventData, CommentAddEventData, CommentUpdateEventData, UnreadCommentsCount } from "@veltdev/types";
2
2
  export declare function useCommentUtils(): CommentElement | undefined;
3
3
  export declare function useCommentAnnotations(documentId?: string, location?: Location): CommentAnnotation[] | null | undefined;
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
+ export declare function useUnreadCommentCountByAnnotationId(annotationId: string): UnreadCommentsCount;
5
+ export declare function useUnreadCommentAnnotationCountOnCurrentDocument(): UnreadCommentsCount;
6
+ export declare function useUnreadCommentCountOnCurrentDocument(): UnreadCommentsCount;
7
+ export declare function useUnreadCommentCountByLocationId(locationId: string): UnreadCommentsCount;
8
+ export declare function useUnreadCommentAnnotationCountByLocationId(locationId: string): UnreadCommentsCount;
19
9
  export declare function useCommentModeState(): boolean | undefined;
20
10
  /**
21
11
  * @deprecated Use `useAddCommentAnnotation` event hook instead.
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { Config, Velt, ReactionMap, CommentAnnotation, AutocompleteItem, User, Options, DocumentMetadata, Location as Location$1, CommentElement, CommentAddEventData, CommentUpdateEventData, CommentSelectionChangeData, CommentSidebarCustomActionEventData, AddCommentAnnotationRequest, AddCommentAnnotationEvent, ApproveCommentAnnotationRequest, ApproveCommentAnnotationEvent, RejectCommentAnnotationRequest, RejectCommentAnnotationEvent, SubscribeCommentAnnotationRequest, SubscribeCommentAnnotationEvent, UnsubscribeCommentAnnotationRequest, UnsubscribeCommentAnnotationEvent, DeleteCommentAnnotationRequest, DeleteCommentAnnotationEvent, AssignUserRequest, AssignUserEvent, UpdatePriorityRequest, UpdatePriorityEvent, UpdateStatusRequest, UpdateStatusEvent, UpdateAccessRequest, UpdateAccessEvent, ResolveCommentAnnotationRequest, GetLinkRequest, GetLinkResponse, CopyLinkRequest, CopyLinkEvent, AddCommentRequest, AddCommentEvent, UpdateCommentRequest, UpdateCommentEvent, DeleteCommentRequest, DeleteCommentEvent, GetCommentRequest, AddAttachmentRequest, AddAttachmentResponse, DeleteAttachmentRequest, DeleteAttachmentEvent, GetAttachmentRequest, Attachment, DeleteRecordingRequest, DeleteRecordingEvent, GetRecordingRequest, RecordedData, AddReactionRequest, AddReactionEvent, DeleteReactionRequest, DeleteReactionEvent, ToggleReactionRequest, ToggleReactionEvent, CommentEventTypesMap, CoreEventTypesMap, CursorElement, CursorUser, LiveStateSyncElement, UserEditorAccess, EditorAccessTimer, ServerConnectionState, PresenceElement, PresenceUser, RecorderElement, RewriterElement, SelectionElement, LiveSelectionData, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate, NotificationElement, Notification, AutocompleteElement, AutocompleteChipData, ContactElement, SelectedUserContact } from '@veltdev/types';
3
+ import { Config, Velt, ReactionMap, CommentAnnotation, AutocompleteItem, User, Options, DocumentMetadata, Location as Location$1, CommentElement, UnreadCommentsCount, CommentAddEventData, CommentUpdateEventData, CommentSelectionChangeData, CommentSidebarCustomActionEventData, AddCommentAnnotationRequest, AddCommentAnnotationEvent, ApproveCommentAnnotationRequest, ApproveCommentAnnotationEvent, RejectCommentAnnotationRequest, RejectCommentAnnotationEvent, SubscribeCommentAnnotationRequest, SubscribeCommentAnnotationEvent, UnsubscribeCommentAnnotationRequest, UnsubscribeCommentAnnotationEvent, DeleteCommentAnnotationRequest, DeleteCommentAnnotationEvent, AssignUserRequest, AssignUserEvent, UpdatePriorityRequest, UpdatePriorityEvent, UpdateStatusRequest, UpdateStatusEvent, UpdateAccessRequest, UpdateAccessEvent, ResolveCommentAnnotationRequest, GetLinkRequest, GetLinkResponse, CopyLinkRequest, CopyLinkEvent, AddCommentRequest, AddCommentEvent, UpdateCommentRequest, UpdateCommentEvent, DeleteCommentRequest, DeleteCommentEvent, GetCommentRequest, AddAttachmentRequest, AddAttachmentResponse, DeleteAttachmentRequest, DeleteAttachmentEvent, GetAttachmentRequest, Attachment, DeleteRecordingRequest, DeleteRecordingEvent, GetRecordingRequest, RecordedData, AddReactionRequest, AddReactionEvent, DeleteReactionRequest, DeleteReactionEvent, ToggleReactionRequest, ToggleReactionEvent, CommentEventTypesMap, CoreEventTypesMap, CursorElement, CursorUser, LiveStateSyncElement, UserEditorAccess, EditorAccessTimer, ServerConnectionState, PresenceElement, PresenceUser, RecorderElement, RewriterElement, SelectionElement, LiveSelectionData, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate, NotificationElement, Notification, AutocompleteElement, AutocompleteChipData, ContactElement, SelectedUserContact } from '@veltdev/types';
4
4
 
5
5
  interface IVeltProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
6
6
  apiKey: string;
@@ -3709,21 +3709,11 @@ declare function useVeltInitState(): boolean | undefined;
3709
3709
 
3710
3710
  declare function useCommentUtils(): CommentElement | undefined;
3711
3711
  declare function useCommentAnnotations(documentId?: string, location?: Location$1): CommentAnnotation[] | null | undefined;
3712
- declare function useUnreadCommentCountByAnnotationId(annotationId: string): {
3713
- count: number;
3714
- } | null;
3715
- declare function useUnreadCommentAnnotationCountOnCurrentDocument(): {
3716
- count: number;
3717
- } | null;
3718
- declare function useUnreadCommentCountOnCurrentDocument(): {
3719
- count: number;
3720
- } | null;
3721
- declare function useUnreadCommentCountByLocationId(locationId: string): {
3722
- count: number;
3723
- } | null;
3724
- declare function useUnreadCommentAnnotationCountByLocationId(locationId: string): {
3725
- count: number;
3726
- } | null;
3712
+ declare function useUnreadCommentCountByAnnotationId(annotationId: string): UnreadCommentsCount;
3713
+ declare function useUnreadCommentAnnotationCountOnCurrentDocument(): UnreadCommentsCount;
3714
+ declare function useUnreadCommentCountOnCurrentDocument(): UnreadCommentsCount;
3715
+ declare function useUnreadCommentCountByLocationId(locationId: string): UnreadCommentsCount;
3716
+ declare function useUnreadCommentAnnotationCountByLocationId(locationId: string): UnreadCommentsCount;
3727
3717
  declare function useCommentModeState(): boolean | undefined;
3728
3718
  /**
3729
3719
  * @deprecated Use `useAddCommentAnnotation` event hook instead.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/react",
3
- "version": "3.0.82",
3
+ "version": "3.0.83",
4
4
  "description": "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.",
5
5
  "homepage": "https://velt.dev",
6
6
  "keywords": [