@veltdev/react 3.0.69 → 3.0.71

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.
@@ -69,8 +69,14 @@ export interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAt
69
69
  allowedElementQuerySelectors?: string[];
70
70
  commentPinHighlighter?: boolean;
71
71
  customReactions?: ReactionMap;
72
+ /**
73
+ * @deprecated Use `useAddCommentAnnotation` event hook instead.
74
+ */
72
75
  onCommentAdd?: Function;
73
76
  onCustomPinInject?: Function;
77
+ /**
78
+ * @deprecated Use respective update events hooks instead.
79
+ */
74
80
  onCommentUpdate?: Function;
75
81
  onCommentAccept?: Function;
76
82
  onCommentReject?: Function;
@@ -65,6 +65,7 @@ export interface IVeltCommentsSidebarProps {
65
65
  customActions?: boolean;
66
66
  focusedThreadDialogVariant?: string;
67
67
  focusedThreadMode?: boolean;
68
+ searchPlaceholder?: string;
68
69
  }
69
70
  declare const SnippylyCommentsSidebar: React.FC<IVeltCommentsSidebarProps>;
70
71
  export default SnippylyCommentsSidebar;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  export interface IVeltCommentsSidebarSearchProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
3
3
  variant?: string;
4
+ placeholder?: string;
4
5
  }
5
6
  declare const VeltCommentsSidebarSearch: React.FC<IVeltCommentsSidebarSearchProps>;
6
7
  export default VeltCommentsSidebarSearch;
@@ -1,3 +1,3 @@
1
- export declare const VELT_SDK_VERSION = "3.0.69";
1
+ export declare const VELT_SDK_VERSION = "3.0.71";
2
2
  export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
3
3
  export declare const VELT_TAB_ID = "veltTabId";
@@ -1,68 +1,77 @@
1
- import { AddAttachmentConfig, AddAttachmentResponse, AddCommentAnnotationConfig, AddCommentAnnotationEvent, AddCommentConfig, AddCommentEvent, AddReactionConfig, AddReactionEvent, ApproveCommentAnnotationConfig, ApproveCommentAnnotationEvent, Attachment, CopyLinkConfig, CopyLinkEvent, DeleteAttachmentConfig, DeleteAttachmentEvent, DeleteCommentAnnotationConfig, DeleteCommentAnnotationEvent, DeleteCommentConfig, DeleteCommentEvent, DeleteReactionConfig, DeleteReactionEvent, DeleteRecordingConfig, DeleteRecordingEvent, GetAttachmentConfig, GetCommentConfig, GetLinkConfig, GetLinkEvent, GetRecordingConfig, RecordedData, RejectCommentAnnotationConfig, RejectCommentAnnotationEvent, ResolveCommentAnnotationConfig, ToggleReactionConfig, ToggleReactionEvent, UpdateAccessConfig, UpdateAccessEvent, UpdateCommentConfig, UpdateCommentEvent, UpdatePriorityConfig, UpdatePriorityEvent, UpdateStatusConfig, UpdateStatusEvent } from "@veltdev/types";
1
+ import { AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationEvent, AddCommentAnnotationRequest, AddCommentEvent, AddCommentRequest, AddReactionEvent, AddReactionRequest, ApproveCommentAnnotationEvent, ApproveCommentAnnotationRequest, AssignUserEvent, AssignUserRequest, Attachment, CommentEventTypesMap, CopyLinkEvent, CopyLinkRequest, DeleteAttachmentEvent, DeleteAttachmentRequest, DeleteCommentAnnotationEvent, DeleteCommentAnnotationRequest, DeleteCommentEvent, DeleteCommentRequest, DeleteReactionEvent, DeleteReactionRequest, DeleteRecordingEvent, DeleteRecordingRequest, GetAttachmentRequest, GetCommentRequest, GetLinkRequest, GetLinkResponse, GetRecordingRequest, RecordedData, RejectCommentAnnotationEvent, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubscribeCommentAnnotationEvent, SubscribeCommentAnnotationRequest, ToggleReactionEvent, ToggleReactionRequest, UnsubscribeCommentAnnotationEvent, UnsubscribeCommentAnnotationRequest, UpdateAccessEvent, UpdateAccessRequest, UpdateCommentEvent, UpdateCommentRequest, UpdatePriorityEvent, UpdatePriorityRequest, UpdateStatusEvent, UpdateStatusRequest } from "@veltdev/types";
2
2
  export declare function useAddCommentAnnotation(): {
3
- addCommentAnnotation: (config: AddCommentAnnotationConfig) => Promise<AddCommentAnnotationEvent | null>;
3
+ addCommentAnnotation: (config: AddCommentAnnotationRequest) => Promise<AddCommentAnnotationEvent | null>;
4
4
  };
5
5
  export declare function useApproveCommentAnnotation(): {
6
- approveCommentAnnotation: (config: ApproveCommentAnnotationConfig) => Promise<ApproveCommentAnnotationEvent | null>;
6
+ approveCommentAnnotation: (config: ApproveCommentAnnotationRequest) => Promise<ApproveCommentAnnotationEvent | null>;
7
7
  };
8
8
  export declare function useRejectCommentAnnotation(): {
9
- rejectCommentAnnotation: (config: RejectCommentAnnotationConfig) => Promise<RejectCommentAnnotationEvent | null>;
9
+ rejectCommentAnnotation: (config: RejectCommentAnnotationRequest) => Promise<RejectCommentAnnotationEvent | null>;
10
+ };
11
+ export declare function useSubscribeCommentAnnotation(): {
12
+ subscribeCommentAnnotation: (config: SubscribeCommentAnnotationRequest) => Promise<SubscribeCommentAnnotationEvent | null>;
13
+ };
14
+ export declare function useUnsubscribeCommentAnnotation(): {
15
+ unsubscribeCommentAnnotation: (config: UnsubscribeCommentAnnotationRequest) => Promise<UnsubscribeCommentAnnotationEvent | null>;
10
16
  };
11
17
  export declare function useDeleteCommentAnnotation(): {
12
- deleteCommentAnnotation: (config: DeleteCommentAnnotationConfig) => Promise<DeleteCommentAnnotationEvent | null>;
18
+ deleteCommentAnnotation: (config: DeleteCommentAnnotationRequest) => Promise<DeleteCommentAnnotationEvent | null>;
19
+ };
20
+ export declare function useAssignUser(): {
21
+ assignUser: (config: AssignUserRequest) => Promise<AssignUserEvent | null>;
13
22
  };
14
23
  export declare function useUpdatePriority(): {
15
- updatePriority: (config: UpdatePriorityConfig) => Promise<UpdatePriorityEvent | null>;
24
+ updatePriority: (config: UpdatePriorityRequest) => Promise<UpdatePriorityEvent | null>;
16
25
  };
17
26
  export declare function useUpdateStatus(): {
18
- updateStatus: (config: UpdateStatusConfig) => Promise<UpdateStatusEvent | null>;
27
+ updateStatus: (config: UpdateStatusRequest) => Promise<UpdateStatusEvent | null>;
19
28
  };
20
29
  export declare function useUpdateAccess(): {
21
- updateAccess: (config: UpdateAccessConfig) => Promise<UpdateAccessEvent | null>;
30
+ updateAccess: (config: UpdateAccessRequest) => Promise<UpdateAccessEvent | null>;
22
31
  };
23
32
  export declare function useResolveCommentAnnotation(): {
24
- resolveCommentAnnotation: (config: ResolveCommentAnnotationConfig) => Promise<any>;
33
+ resolveCommentAnnotation: (config: ResolveCommentAnnotationRequest) => Promise<ResolveCommentAnnotationRequest | null>;
25
34
  };
26
35
  export declare function useGetLink(): {
27
- getLink: (config: GetLinkConfig) => Promise<GetLinkEvent | null>;
36
+ getLink: (config: GetLinkRequest) => Promise<GetLinkResponse | null>;
28
37
  };
29
38
  export declare function useCopyLink(): {
30
- copyLink: (config: CopyLinkConfig) => Promise<CopyLinkEvent | null>;
39
+ copyLink: (config: CopyLinkRequest) => Promise<CopyLinkEvent | null>;
31
40
  };
32
41
  export declare function useAddComment(): {
33
- addComment: (config: AddCommentConfig) => Promise<AddCommentEvent | null>;
42
+ addComment: (config: AddCommentRequest) => Promise<AddCommentEvent | null>;
34
43
  };
35
44
  export declare function useUpdateComment(): {
36
- updateComment: (config: UpdateCommentConfig) => Promise<UpdateCommentEvent | null>;
45
+ updateComment: (config: UpdateCommentRequest) => Promise<UpdateCommentEvent | null>;
37
46
  };
38
47
  export declare function useDeleteComment(): {
39
- deleteComment: (config: DeleteCommentConfig) => Promise<DeleteCommentEvent | null>;
48
+ deleteComment: (config: DeleteCommentRequest) => Promise<DeleteCommentEvent | null>;
40
49
  };
41
50
  export declare function useGetComment(): {
42
- getComment: (config: GetCommentConfig) => Promise<Comment[]>;
51
+ getComment: (config: GetCommentRequest) => Promise<Comment[]>;
43
52
  };
44
53
  export declare function useAddAttachment(): {
45
- addAttachment: (config: AddAttachmentConfig) => Promise<AddAttachmentResponse[] | null>;
54
+ addAttachment: (config: AddAttachmentRequest) => Promise<AddAttachmentResponse[] | null>;
46
55
  };
47
56
  export declare function useDeleteAttachment(): {
48
- deleteAttachment: (config: DeleteAttachmentConfig) => Promise<DeleteAttachmentEvent | null>;
57
+ deleteAttachment: (config: DeleteAttachmentRequest) => Promise<DeleteAttachmentEvent | null>;
49
58
  };
50
59
  export declare function useGetAttachment(): {
51
- getAttachment: (config: GetAttachmentConfig) => Promise<Attachment[] | null>;
60
+ getAttachment: (config: GetAttachmentRequest) => Promise<Attachment[] | null>;
52
61
  };
53
62
  export declare function useDeleteRecording(): {
54
- deleteRecording: (config: DeleteRecordingConfig) => Promise<DeleteRecordingEvent | null>;
63
+ deleteRecording: (config: DeleteRecordingRequest) => Promise<DeleteRecordingEvent | null>;
55
64
  };
56
65
  export declare function useGetRecording(): {
57
- getRecording: (config: GetRecordingConfig) => Promise<RecordedData[] | null>;
66
+ getRecording: (config: GetRecordingRequest) => Promise<RecordedData[] | null>;
58
67
  };
59
68
  export declare function useAddReaction(): {
60
- addReaction: (config: AddReactionConfig) => Promise<AddReactionEvent | null>;
69
+ addReaction: (config: AddReactionRequest) => Promise<AddReactionEvent | null>;
61
70
  };
62
71
  export declare function useDeleteReaction(): {
63
- deleteReaction: (config: DeleteReactionConfig) => Promise<DeleteReactionEvent | null>;
72
+ deleteReaction: (config: DeleteReactionRequest) => Promise<DeleteReactionEvent | null>;
64
73
  };
65
74
  export declare function useToggleReaction(): {
66
- toggleReaction: (config: ToggleReactionConfig) => Promise<ToggleReactionEvent | null>;
75
+ toggleReaction: (config: ToggleReactionRequest) => Promise<ToggleReactionEvent | null>;
67
76
  };
68
- export declare function useCommentActionCallback(action: string): any;
77
+ export declare function useCommentActionCallback<T extends keyof CommentEventTypesMap>(action: T): CommentEventTypesMap[T];
@@ -17,7 +17,13 @@ export declare function useUnreadCommentAnnotationCountByLocationId(locationId:
17
17
  count: number;
18
18
  } | null;
19
19
  export declare function useCommentModeState(): boolean | undefined;
20
+ /**
21
+ * @deprecated Use `useAddCommentAnnotation` event hook instead.
22
+ */
20
23
  export declare function useCommentAddHandler(): CommentAddEventData | undefined;
24
+ /**
25
+ * @deprecated Use respective update events hooks instead.
26
+ */
21
27
  export declare function useCommentUpdateHandler(): CommentUpdateEventData | undefined;
22
28
  export declare function useCommentDialogSidebarClickHandler(): any;
23
29
  export declare function useCommentSelectionChangeHandler(): CommentSelectionChangeData | undefined;
@@ -1,6 +1,6 @@
1
1
  export { useSetLocation, useSetDocument, useSetDocumentId, useUnsetDocumentId, useIdentify, useClient, useVeltInitState, } from './Client';
2
2
  export { useCommentUtils, useCommentAnnotations, useCommentAddHandler, useCommentModeState, useCommentUpdateHandler, useCommentDialogSidebarClickHandler, useCommentSelectionChangeHandler, useUnreadCommentCountByAnnotationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountOnCurrentDocument, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentCountByLocationId, useCommentCopyLinkHandler, useCommentAnnotationById, useCommentSidebarActionButtonClick, useCommentSidebarInit, useCommentSidebarData, } from './CommentElement';
3
- export { useAddAttachment, useDeleteAttachment, useGetAttachment, useDeleteRecording, useGetRecording, useAddReaction, useDeleteReaction, useToggleReaction, useAddComment, useUpdateComment, useDeleteComment, useAddCommentAnnotation, useDeleteCommentAnnotation, useApproveCommentAnnotation, useCopyLink, useGetComment, useGetLink, useRejectCommentAnnotation, useResolveCommentAnnotation, useUpdateAccess, useUpdatePriority, useUpdateStatus, useCommentActionCallback, } from './CommentActions';
3
+ export { useAddAttachment, useDeleteAttachment, useGetAttachment, useDeleteRecording, useGetRecording, useAddReaction, useDeleteReaction, useToggleReaction, useAddComment, useUpdateComment, useDeleteComment, useAddCommentAnnotation, useDeleteCommentAnnotation, useApproveCommentAnnotation, useSubscribeCommentAnnotation, useUnsubscribeCommentAnnotation, useAssignUser, useCopyLink, useGetComment, useGetLink, useRejectCommentAnnotation, useResolveCommentAnnotation, useUpdateAccess, useUpdatePriority, useUpdateStatus, useCommentActionCallback, } from './CommentActions';
4
4
  export { useCursorUtils, useCursorUsers, } from './CursorElement';
5
5
  export { useHuddleUtils, } from './HuddleElement';
6
6
  export { useLiveStateSyncUtils, useLiveStateData, useSetLiveStateData, useUserEditorState, useEditor, useEditorAccessTimer, useEditorAccessRequestHandler, useServerConnectionStateChangeHandler, useLiveState, } from './LiveStateSyncElement';
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, AddCommentAnnotationConfig, AddCommentAnnotationEvent, ApproveCommentAnnotationConfig, ApproveCommentAnnotationEvent, RejectCommentAnnotationConfig, RejectCommentAnnotationEvent, DeleteCommentAnnotationConfig, DeleteCommentAnnotationEvent, UpdatePriorityConfig, UpdatePriorityEvent, UpdateStatusConfig, UpdateStatusEvent, UpdateAccessConfig, UpdateAccessEvent, ResolveCommentAnnotationConfig, GetLinkConfig, GetLinkEvent, CopyLinkConfig, CopyLinkEvent, AddCommentConfig, AddCommentEvent, UpdateCommentConfig, UpdateCommentEvent, DeleteCommentConfig, DeleteCommentEvent, GetCommentConfig, AddAttachmentConfig, AddAttachmentResponse, DeleteAttachmentConfig, DeleteAttachmentEvent, GetAttachmentConfig, Attachment, DeleteRecordingConfig, DeleteRecordingEvent, GetRecordingConfig, RecordedData, AddReactionConfig, AddReactionEvent, DeleteReactionConfig, DeleteReactionEvent, ToggleReactionConfig, ToggleReactionEvent, 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, 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, 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;
@@ -109,8 +109,14 @@ interface IVeltCommentsProps extends React.DetailedHTMLProps<React.HTMLAttribute
109
109
  allowedElementQuerySelectors?: string[];
110
110
  commentPinHighlighter?: boolean;
111
111
  customReactions?: ReactionMap;
112
+ /**
113
+ * @deprecated Use `useAddCommentAnnotation` event hook instead.
114
+ */
112
115
  onCommentAdd?: Function;
113
116
  onCustomPinInject?: Function;
117
+ /**
118
+ * @deprecated Use respective update events hooks instead.
119
+ */
114
120
  onCommentUpdate?: Function;
115
121
  onCommentAccept?: Function;
116
122
  onCommentReject?: Function;
@@ -243,6 +249,7 @@ interface IVeltCommentsSidebarProps {
243
249
  customActions?: boolean;
244
250
  focusedThreadDialogVariant?: string;
245
251
  focusedThreadMode?: boolean;
252
+ searchPlaceholder?: string;
246
253
  }
247
254
  declare const SnippylyCommentsSidebar: React.FC<IVeltCommentsSidebarProps>;
248
255
 
@@ -1748,6 +1755,7 @@ interface IVeltCommentsSidebarPanelProps extends React.DetailedHTMLProps<React.H
1748
1755
 
1749
1756
  interface IVeltCommentsSidebarSearchProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
1750
1757
  variant?: string;
1758
+ placeholder?: string;
1751
1759
  }
1752
1760
 
1753
1761
  interface IVeltCommentsSidebarSkeletonProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
@@ -3683,7 +3691,13 @@ declare function useUnreadCommentAnnotationCountByLocationId(locationId: string)
3683
3691
  count: number;
3684
3692
  } | null;
3685
3693
  declare function useCommentModeState(): boolean | undefined;
3694
+ /**
3695
+ * @deprecated Use `useAddCommentAnnotation` event hook instead.
3696
+ */
3686
3697
  declare function useCommentAddHandler(): CommentAddEventData | undefined;
3698
+ /**
3699
+ * @deprecated Use respective update events hooks instead.
3700
+ */
3687
3701
  declare function useCommentUpdateHandler(): CommentUpdateEventData | undefined;
3688
3702
  declare function useCommentDialogSidebarClickHandler(): any;
3689
3703
  declare function useCommentSelectionChangeHandler(): CommentSelectionChangeData | undefined;
@@ -3699,72 +3713,81 @@ declare function useCommentSidebarInit(): CommentSidebarCustomActionEventData |
3699
3713
  declare function useCommentSidebarData(): CommentSidebarCustomActionEventData | null;
3700
3714
 
3701
3715
  declare function useAddCommentAnnotation(): {
3702
- addCommentAnnotation: (config: AddCommentAnnotationConfig) => Promise<AddCommentAnnotationEvent | null>;
3716
+ addCommentAnnotation: (config: AddCommentAnnotationRequest) => Promise<AddCommentAnnotationEvent | null>;
3703
3717
  };
3704
3718
  declare function useApproveCommentAnnotation(): {
3705
- approveCommentAnnotation: (config: ApproveCommentAnnotationConfig) => Promise<ApproveCommentAnnotationEvent | null>;
3719
+ approveCommentAnnotation: (config: ApproveCommentAnnotationRequest) => Promise<ApproveCommentAnnotationEvent | null>;
3706
3720
  };
3707
3721
  declare function useRejectCommentAnnotation(): {
3708
- rejectCommentAnnotation: (config: RejectCommentAnnotationConfig) => Promise<RejectCommentAnnotationEvent | null>;
3722
+ rejectCommentAnnotation: (config: RejectCommentAnnotationRequest) => Promise<RejectCommentAnnotationEvent | null>;
3723
+ };
3724
+ declare function useSubscribeCommentAnnotation(): {
3725
+ subscribeCommentAnnotation: (config: SubscribeCommentAnnotationRequest) => Promise<SubscribeCommentAnnotationEvent | null>;
3726
+ };
3727
+ declare function useUnsubscribeCommentAnnotation(): {
3728
+ unsubscribeCommentAnnotation: (config: UnsubscribeCommentAnnotationRequest) => Promise<UnsubscribeCommentAnnotationEvent | null>;
3709
3729
  };
3710
3730
  declare function useDeleteCommentAnnotation(): {
3711
- deleteCommentAnnotation: (config: DeleteCommentAnnotationConfig) => Promise<DeleteCommentAnnotationEvent | null>;
3731
+ deleteCommentAnnotation: (config: DeleteCommentAnnotationRequest) => Promise<DeleteCommentAnnotationEvent | null>;
3732
+ };
3733
+ declare function useAssignUser(): {
3734
+ assignUser: (config: AssignUserRequest) => Promise<AssignUserEvent | null>;
3712
3735
  };
3713
3736
  declare function useUpdatePriority(): {
3714
- updatePriority: (config: UpdatePriorityConfig) => Promise<UpdatePriorityEvent | null>;
3737
+ updatePriority: (config: UpdatePriorityRequest) => Promise<UpdatePriorityEvent | null>;
3715
3738
  };
3716
3739
  declare function useUpdateStatus(): {
3717
- updateStatus: (config: UpdateStatusConfig) => Promise<UpdateStatusEvent | null>;
3740
+ updateStatus: (config: UpdateStatusRequest) => Promise<UpdateStatusEvent | null>;
3718
3741
  };
3719
3742
  declare function useUpdateAccess(): {
3720
- updateAccess: (config: UpdateAccessConfig) => Promise<UpdateAccessEvent | null>;
3743
+ updateAccess: (config: UpdateAccessRequest) => Promise<UpdateAccessEvent | null>;
3721
3744
  };
3722
3745
  declare function useResolveCommentAnnotation(): {
3723
- resolveCommentAnnotation: (config: ResolveCommentAnnotationConfig) => Promise<any>;
3746
+ resolveCommentAnnotation: (config: ResolveCommentAnnotationRequest) => Promise<ResolveCommentAnnotationRequest | null>;
3724
3747
  };
3725
3748
  declare function useGetLink(): {
3726
- getLink: (config: GetLinkConfig) => Promise<GetLinkEvent | null>;
3749
+ getLink: (config: GetLinkRequest) => Promise<GetLinkResponse | null>;
3727
3750
  };
3728
3751
  declare function useCopyLink(): {
3729
- copyLink: (config: CopyLinkConfig) => Promise<CopyLinkEvent | null>;
3752
+ copyLink: (config: CopyLinkRequest) => Promise<CopyLinkEvent | null>;
3730
3753
  };
3731
3754
  declare function useAddComment(): {
3732
- addComment: (config: AddCommentConfig) => Promise<AddCommentEvent | null>;
3755
+ addComment: (config: AddCommentRequest) => Promise<AddCommentEvent | null>;
3733
3756
  };
3734
3757
  declare function useUpdateComment(): {
3735
- updateComment: (config: UpdateCommentConfig) => Promise<UpdateCommentEvent | null>;
3758
+ updateComment: (config: UpdateCommentRequest) => Promise<UpdateCommentEvent | null>;
3736
3759
  };
3737
3760
  declare function useDeleteComment(): {
3738
- deleteComment: (config: DeleteCommentConfig) => Promise<DeleteCommentEvent | null>;
3761
+ deleteComment: (config: DeleteCommentRequest) => Promise<DeleteCommentEvent | null>;
3739
3762
  };
3740
3763
  declare function useGetComment(): {
3741
- getComment: (config: GetCommentConfig) => Promise<Comment[]>;
3764
+ getComment: (config: GetCommentRequest) => Promise<Comment[]>;
3742
3765
  };
3743
3766
  declare function useAddAttachment(): {
3744
- addAttachment: (config: AddAttachmentConfig) => Promise<AddAttachmentResponse[] | null>;
3767
+ addAttachment: (config: AddAttachmentRequest) => Promise<AddAttachmentResponse[] | null>;
3745
3768
  };
3746
3769
  declare function useDeleteAttachment(): {
3747
- deleteAttachment: (config: DeleteAttachmentConfig) => Promise<DeleteAttachmentEvent | null>;
3770
+ deleteAttachment: (config: DeleteAttachmentRequest) => Promise<DeleteAttachmentEvent | null>;
3748
3771
  };
3749
3772
  declare function useGetAttachment(): {
3750
- getAttachment: (config: GetAttachmentConfig) => Promise<Attachment[] | null>;
3773
+ getAttachment: (config: GetAttachmentRequest) => Promise<Attachment[] | null>;
3751
3774
  };
3752
3775
  declare function useDeleteRecording(): {
3753
- deleteRecording: (config: DeleteRecordingConfig) => Promise<DeleteRecordingEvent | null>;
3776
+ deleteRecording: (config: DeleteRecordingRequest) => Promise<DeleteRecordingEvent | null>;
3754
3777
  };
3755
3778
  declare function useGetRecording(): {
3756
- getRecording: (config: GetRecordingConfig) => Promise<RecordedData[] | null>;
3779
+ getRecording: (config: GetRecordingRequest) => Promise<RecordedData[] | null>;
3757
3780
  };
3758
3781
  declare function useAddReaction(): {
3759
- addReaction: (config: AddReactionConfig) => Promise<AddReactionEvent | null>;
3782
+ addReaction: (config: AddReactionRequest) => Promise<AddReactionEvent | null>;
3760
3783
  };
3761
3784
  declare function useDeleteReaction(): {
3762
- deleteReaction: (config: DeleteReactionConfig) => Promise<DeleteReactionEvent | null>;
3785
+ deleteReaction: (config: DeleteReactionRequest) => Promise<DeleteReactionEvent | null>;
3763
3786
  };
3764
3787
  declare function useToggleReaction(): {
3765
- toggleReaction: (config: ToggleReactionConfig) => Promise<ToggleReactionEvent | null>;
3788
+ toggleReaction: (config: ToggleReactionRequest) => Promise<ToggleReactionEvent | null>;
3766
3789
  };
3767
- declare function useCommentActionCallback(action: string): any;
3790
+ declare function useCommentActionCallback<T extends keyof CommentEventTypesMap>(action: T): CommentEventTypesMap[T];
3768
3791
 
3769
3792
  declare function useCursorUtils(): CursorElement | undefined;
3770
3793
  declare function useCursorUsers(): CursorUser[] | null;
@@ -3834,4 +3857,4 @@ declare const createLiveStateMiddleware: (config?: LiveStateMiddlewareConfig) =>
3834
3857
  updateLiveStateDataId: (newId?: string) => void;
3835
3858
  };
3836
3859
 
3837
- export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, VeltAutocompleteOptionWireframe, VeltCanvasComment, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleWireframe, VeltCommentComposer, VeltCommentComposerWireframe, VeltCommentDialogOptionsDropdownContentWireframe, VeltCommentDialogOptionsDropdownTriggerWireframe, VeltCommentDialogPriorityDropdownContentWireframe, VeltCommentDialogPriorityDropdownTriggerWireframe, VeltCommentDialogStatusDropdownContentWireframe, VeltCommentDialogStatusDropdownTriggerWireframe, VeltCommentDialogWireframe, VeltCommentPin, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentText, VeltCommentThread, VeltCommentThreadWireframe, SnippylyCommentTool as VeltCommentTool, VeltCommentToolWireframe, SnippylyComments as VeltComments, VeltCommentsMinimap, SnippylyCommentsSidebar as VeltCommentsSidebar, VeltCommentsSidebarButton, VeltCommentsSidebarStatusDropdownWireframe, VeltCommentsSidebarWireframe, VeltConfirmDialogWireframe, SnippylyCursor as VeltCursor, VeltData, VeltHighChartComments, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltIf, VeltInlineCommentsSection, VeltInlineCommentsSectionWireframe, VeltInlineReactionsSection, VeltInlineReactionsSectionWireframe, VeltMediaSourceSettingsWireframe, VeltMultiThreadCommentDialogWireframe, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsPanelWireframe, VeltNotificationsTool, VeltNotificationsToolWireframe, VeltPersistentCommentModeWireframe, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, VeltReactionTool, VeltReactionToolWireframe, VeltReactionsPanelWireframe, VeltRecorderAllToolMenuWireframe, VeltRecorderAllToolWireframe, VeltRecorderAudioToolWireframe, SnippylyRecorderControlPanel as VeltRecorderControlPanel, VeltRecorderControlPanelWireframe, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, VeltRecorderPlayerWireframe, VeltRecorderScreenToolWireframe, SnippylyRecorderTool as VeltRecorderTool, VeltRecorderVideoToolWireframe, VeltRecordingPreviewStepsDialogWireframe, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, VeltSubtitlesButtonWireframe as VeltSubtitlesWireframe, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, VeltTextCommentToolWireframe, VeltTextCommentToolbar as VeltTextCommentToolbarWireframe, VeltTranscriptionWireframe, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltUserSelectorDropdown as VeltUserSelectorDropdownWireframe, VeltVideoPlayer, VeltVideoPlayerWireframe, VeltViewAnalytics, VeltWireframe, createLiveStateMiddleware, useAIRewriterUtils, useAddAttachment, useAddComment, useAddCommentAnnotation, useAddReaction, useApproveCommentAnnotation, useAutocompleteChipClick, useAutocompleteUtils, useClient, useCommentActionCallback, useCommentAddHandler, useCommentAnnotationById, useCommentAnnotations, useCommentCopyLinkHandler, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentSelectionChangeHandler, useCommentSidebarActionButtonClick, useCommentSidebarData, useCommentSidebarInit, useCommentUpdateHandler, useCommentUtils, useContactSelected, useContactUtils, useCopyLink, useCursorUsers, useCursorUtils, useDeleteAttachment, useDeleteComment, useDeleteCommentAnnotation, useDeleteReaction, useDeleteRecording, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useGetAttachment, useGetComment, useGetLink, useGetRecording, useHuddleUtils, useIdentify, useLiveSelectionDataHandler, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useRecordingDataByRecorderId, useRejectCommentAnnotation, useResolveCommentAnnotation, useServerConnectionStateChangeHandler, useSetDocument, useSetDocumentId, useSetLiveStateData, useSetLocation, useTagAnnotations, useTagUtils, useToggleReaction, useUniqueViewsByDate, useUniqueViewsByUser, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountByAnnotationId, useUnreadCommentCountByLocationId, useUnreadCommentCountOnCurrentDocument, useUnreadNotificationsCount, useUnsetDocumentId, useUpdateAccess, useUpdateComment, useUpdatePriority, useUpdateStatus, useUserEditorState, useVeltClient, useVeltInitState, useViewsUtils };
3860
+ export { SnippylyArrowTool as VeltArrowTool, SnippylyArrows as VeltArrows, VeltAutocomplete, VeltAutocompleteChipTooltipWireframe, VeltAutocompleteOptionWireframe, VeltCanvasComment, VeltChartComment, SnippylyCommentBubble as VeltCommentBubble, VeltCommentBubbleWireframe, VeltCommentComposer, VeltCommentComposerWireframe, VeltCommentDialogOptionsDropdownContentWireframe, VeltCommentDialogOptionsDropdownTriggerWireframe, VeltCommentDialogPriorityDropdownContentWireframe, VeltCommentDialogPriorityDropdownTriggerWireframe, VeltCommentDialogStatusDropdownContentWireframe, VeltCommentDialogStatusDropdownTriggerWireframe, VeltCommentDialogWireframe, VeltCommentPin, VeltCommentPinWireframe, VeltCommentPlayerTimeline, VeltCommentText, VeltCommentThread, VeltCommentThreadWireframe, SnippylyCommentTool as VeltCommentTool, VeltCommentToolWireframe, SnippylyComments as VeltComments, VeltCommentsMinimap, SnippylyCommentsSidebar as VeltCommentsSidebar, VeltCommentsSidebarButton, VeltCommentsSidebarStatusDropdownWireframe, VeltCommentsSidebarWireframe, VeltConfirmDialogWireframe, SnippylyCursor as VeltCursor, VeltData, VeltHighChartComments, SnippylyHuddle as VeltHuddle, SnippylyHuddleTool as VeltHuddleTool, VeltIf, VeltInlineCommentsSection, VeltInlineCommentsSectionWireframe, VeltInlineReactionsSection, VeltInlineReactionsSectionWireframe, VeltMediaSourceSettingsWireframe, VeltMultiThreadCommentDialogWireframe, VeltNivoChartComments, VeltNotificationsHistoryPanel, VeltNotificationsPanel, VeltNotificationsPanelWireframe, VeltNotificationsTool, VeltNotificationsToolWireframe, VeltPersistentCommentModeWireframe, SnippylyPresence as VeltPresence, SnippylyProvider as VeltProvider, VeltReactionPinTooltipWireframe, VeltReactionPinWireframe, VeltReactionTool, VeltReactionToolWireframe, VeltReactionsPanelWireframe, VeltRecorderAllToolMenuWireframe, VeltRecorderAllToolWireframe, VeltRecorderAudioToolWireframe, SnippylyRecorderControlPanel as VeltRecorderControlPanel, VeltRecorderControlPanelWireframe, SnippylyRecorderNotes as VeltRecorderNotes, SnippylyRecorderPlayer as VeltRecorderPlayer, VeltRecorderPlayerWireframe, VeltRecorderScreenToolWireframe, SnippylyRecorderTool as VeltRecorderTool, VeltRecorderVideoToolWireframe, VeltRecordingPreviewStepsDialogWireframe, SnippylySidebarButton as VeltSidebarButton, VeltSidebarButtonWireframe, VeltSubtitlesButtonWireframe as VeltSubtitlesWireframe, SnippylyTagTool as VeltTagTool, SnippylyTags as VeltTags, VeltTextCommentToolWireframe, VeltTextCommentToolbar as VeltTextCommentToolbarWireframe, VeltTranscriptionWireframe, SnippylyUserInviteTool as VeltUserInviteTool, SnippylyUserRequestTool as VeltUserRequestTool, VeltUserSelectorDropdown as VeltUserSelectorDropdownWireframe, VeltVideoPlayer, VeltVideoPlayerWireframe, VeltViewAnalytics, VeltWireframe, createLiveStateMiddleware, useAIRewriterUtils, useAddAttachment, useAddComment, useAddCommentAnnotation, useAddReaction, useApproveCommentAnnotation, useAssignUser, useAutocompleteChipClick, useAutocompleteUtils, useClient, useCommentActionCallback, useCommentAddHandler, useCommentAnnotationById, useCommentAnnotations, useCommentCopyLinkHandler, useCommentDialogSidebarClickHandler, useCommentModeState, useCommentSelectionChangeHandler, useCommentSidebarActionButtonClick, useCommentSidebarData, useCommentSidebarInit, useCommentUpdateHandler, useCommentUtils, useContactSelected, useContactUtils, useCopyLink, useCursorUsers, useCursorUtils, useDeleteAttachment, useDeleteComment, useDeleteCommentAnnotation, useDeleteReaction, useDeleteRecording, useEditor, useEditorAccessRequestHandler, useEditorAccessTimer, useGetAttachment, useGetComment, useGetLink, useGetRecording, useHuddleUtils, useIdentify, useLiveSelectionDataHandler, useLiveSelectionUtils, useLiveState, useLiveStateData, useLiveStateSyncUtils, useNotificationUtils, useNotificationsData, usePresenceUsers, usePresenceUtils, useRecorderAddHandler, useRecorderUtils, useRecordingDataByRecorderId, useRejectCommentAnnotation, useResolveCommentAnnotation, useServerConnectionStateChangeHandler, useSetDocument, useSetDocumentId, useSetLiveStateData, useSetLocation, useSubscribeCommentAnnotation, useTagAnnotations, useTagUtils, useToggleReaction, useUniqueViewsByDate, useUniqueViewsByUser, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountByAnnotationId, useUnreadCommentCountByLocationId, useUnreadCommentCountOnCurrentDocument, useUnreadNotificationsCount, useUnsetDocumentId, useUnsubscribeCommentAnnotation, useUpdateAccess, useUpdateComment, useUpdatePriority, useUpdateStatus, useUserEditorState, useVeltClient, useVeltInitState, useViewsUtils };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/react",
3
- "version": "3.0.69",
3
+ "version": "3.0.71",
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": [