@veltdev/react 3.0.68 → 3.0.70

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,3 +1,3 @@
1
- export declare const VELT_SDK_VERSION = "3.0.68";
1
+ export declare const VELT_SDK_VERSION = "3.0.70";
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
 
@@ -3683,7 +3690,13 @@ declare function useUnreadCommentAnnotationCountByLocationId(locationId: string)
3683
3690
  count: number;
3684
3691
  } | null;
3685
3692
  declare function useCommentModeState(): boolean | undefined;
3693
+ /**
3694
+ * @deprecated Use `useAddCommentAnnotation` event hook instead.
3695
+ */
3686
3696
  declare function useCommentAddHandler(): CommentAddEventData | undefined;
3697
+ /**
3698
+ * @deprecated Use respective update events hooks instead.
3699
+ */
3687
3700
  declare function useCommentUpdateHandler(): CommentUpdateEventData | undefined;
3688
3701
  declare function useCommentDialogSidebarClickHandler(): any;
3689
3702
  declare function useCommentSelectionChangeHandler(): CommentSelectionChangeData | undefined;
@@ -3699,72 +3712,81 @@ declare function useCommentSidebarInit(): CommentSidebarCustomActionEventData |
3699
3712
  declare function useCommentSidebarData(): CommentSidebarCustomActionEventData | null;
3700
3713
 
3701
3714
  declare function useAddCommentAnnotation(): {
3702
- addCommentAnnotation: (config: AddCommentAnnotationConfig) => Promise<AddCommentAnnotationEvent | null>;
3715
+ addCommentAnnotation: (config: AddCommentAnnotationRequest) => Promise<AddCommentAnnotationEvent | null>;
3703
3716
  };
3704
3717
  declare function useApproveCommentAnnotation(): {
3705
- approveCommentAnnotation: (config: ApproveCommentAnnotationConfig) => Promise<ApproveCommentAnnotationEvent | null>;
3718
+ approveCommentAnnotation: (config: ApproveCommentAnnotationRequest) => Promise<ApproveCommentAnnotationEvent | null>;
3706
3719
  };
3707
3720
  declare function useRejectCommentAnnotation(): {
3708
- rejectCommentAnnotation: (config: RejectCommentAnnotationConfig) => Promise<RejectCommentAnnotationEvent | null>;
3721
+ rejectCommentAnnotation: (config: RejectCommentAnnotationRequest) => Promise<RejectCommentAnnotationEvent | null>;
3722
+ };
3723
+ declare function useSubscribeCommentAnnotation(): {
3724
+ subscribeCommentAnnotation: (config: SubscribeCommentAnnotationRequest) => Promise<SubscribeCommentAnnotationEvent | null>;
3725
+ };
3726
+ declare function useUnsubscribeCommentAnnotation(): {
3727
+ unsubscribeCommentAnnotation: (config: UnsubscribeCommentAnnotationRequest) => Promise<UnsubscribeCommentAnnotationEvent | null>;
3709
3728
  };
3710
3729
  declare function useDeleteCommentAnnotation(): {
3711
- deleteCommentAnnotation: (config: DeleteCommentAnnotationConfig) => Promise<DeleteCommentAnnotationEvent | null>;
3730
+ deleteCommentAnnotation: (config: DeleteCommentAnnotationRequest) => Promise<DeleteCommentAnnotationEvent | null>;
3731
+ };
3732
+ declare function useAssignUser(): {
3733
+ assignUser: (config: AssignUserRequest) => Promise<AssignUserEvent | null>;
3712
3734
  };
3713
3735
  declare function useUpdatePriority(): {
3714
- updatePriority: (config: UpdatePriorityConfig) => Promise<UpdatePriorityEvent | null>;
3736
+ updatePriority: (config: UpdatePriorityRequest) => Promise<UpdatePriorityEvent | null>;
3715
3737
  };
3716
3738
  declare function useUpdateStatus(): {
3717
- updateStatus: (config: UpdateStatusConfig) => Promise<UpdateStatusEvent | null>;
3739
+ updateStatus: (config: UpdateStatusRequest) => Promise<UpdateStatusEvent | null>;
3718
3740
  };
3719
3741
  declare function useUpdateAccess(): {
3720
- updateAccess: (config: UpdateAccessConfig) => Promise<UpdateAccessEvent | null>;
3742
+ updateAccess: (config: UpdateAccessRequest) => Promise<UpdateAccessEvent | null>;
3721
3743
  };
3722
3744
  declare function useResolveCommentAnnotation(): {
3723
- resolveCommentAnnotation: (config: ResolveCommentAnnotationConfig) => Promise<any>;
3745
+ resolveCommentAnnotation: (config: ResolveCommentAnnotationRequest) => Promise<ResolveCommentAnnotationRequest | null>;
3724
3746
  };
3725
3747
  declare function useGetLink(): {
3726
- getLink: (config: GetLinkConfig) => Promise<GetLinkEvent | null>;
3748
+ getLink: (config: GetLinkRequest) => Promise<GetLinkResponse | null>;
3727
3749
  };
3728
3750
  declare function useCopyLink(): {
3729
- copyLink: (config: CopyLinkConfig) => Promise<CopyLinkEvent | null>;
3751
+ copyLink: (config: CopyLinkRequest) => Promise<CopyLinkEvent | null>;
3730
3752
  };
3731
3753
  declare function useAddComment(): {
3732
- addComment: (config: AddCommentConfig) => Promise<AddCommentEvent | null>;
3754
+ addComment: (config: AddCommentRequest) => Promise<AddCommentEvent | null>;
3733
3755
  };
3734
3756
  declare function useUpdateComment(): {
3735
- updateComment: (config: UpdateCommentConfig) => Promise<UpdateCommentEvent | null>;
3757
+ updateComment: (config: UpdateCommentRequest) => Promise<UpdateCommentEvent | null>;
3736
3758
  };
3737
3759
  declare function useDeleteComment(): {
3738
- deleteComment: (config: DeleteCommentConfig) => Promise<DeleteCommentEvent | null>;
3760
+ deleteComment: (config: DeleteCommentRequest) => Promise<DeleteCommentEvent | null>;
3739
3761
  };
3740
3762
  declare function useGetComment(): {
3741
- getComment: (config: GetCommentConfig) => Promise<Comment[]>;
3763
+ getComment: (config: GetCommentRequest) => Promise<Comment[]>;
3742
3764
  };
3743
3765
  declare function useAddAttachment(): {
3744
- addAttachment: (config: AddAttachmentConfig) => Promise<AddAttachmentResponse[] | null>;
3766
+ addAttachment: (config: AddAttachmentRequest) => Promise<AddAttachmentResponse[] | null>;
3745
3767
  };
3746
3768
  declare function useDeleteAttachment(): {
3747
- deleteAttachment: (config: DeleteAttachmentConfig) => Promise<DeleteAttachmentEvent | null>;
3769
+ deleteAttachment: (config: DeleteAttachmentRequest) => Promise<DeleteAttachmentEvent | null>;
3748
3770
  };
3749
3771
  declare function useGetAttachment(): {
3750
- getAttachment: (config: GetAttachmentConfig) => Promise<Attachment[] | null>;
3772
+ getAttachment: (config: GetAttachmentRequest) => Promise<Attachment[] | null>;
3751
3773
  };
3752
3774
  declare function useDeleteRecording(): {
3753
- deleteRecording: (config: DeleteRecordingConfig) => Promise<DeleteRecordingEvent | null>;
3775
+ deleteRecording: (config: DeleteRecordingRequest) => Promise<DeleteRecordingEvent | null>;
3754
3776
  };
3755
3777
  declare function useGetRecording(): {
3756
- getRecording: (config: GetRecordingConfig) => Promise<RecordedData[] | null>;
3778
+ getRecording: (config: GetRecordingRequest) => Promise<RecordedData[] | null>;
3757
3779
  };
3758
3780
  declare function useAddReaction(): {
3759
- addReaction: (config: AddReactionConfig) => Promise<AddReactionEvent | null>;
3781
+ addReaction: (config: AddReactionRequest) => Promise<AddReactionEvent | null>;
3760
3782
  };
3761
3783
  declare function useDeleteReaction(): {
3762
- deleteReaction: (config: DeleteReactionConfig) => Promise<DeleteReactionEvent | null>;
3784
+ deleteReaction: (config: DeleteReactionRequest) => Promise<DeleteReactionEvent | null>;
3763
3785
  };
3764
3786
  declare function useToggleReaction(): {
3765
- toggleReaction: (config: ToggleReactionConfig) => Promise<ToggleReactionEvent | null>;
3787
+ toggleReaction: (config: ToggleReactionRequest) => Promise<ToggleReactionEvent | null>;
3766
3788
  };
3767
- declare function useCommentActionCallback(action: string): any;
3789
+ declare function useCommentActionCallback<T extends keyof CommentEventTypesMap>(action: T): CommentEventTypesMap[T];
3768
3790
 
3769
3791
  declare function useCursorUtils(): CursorElement | undefined;
3770
3792
  declare function useCursorUsers(): CursorUser[] | null;
@@ -3834,4 +3856,4 @@ declare const createLiveStateMiddleware: (config?: LiveStateMiddlewareConfig) =>
3834
3856
  updateLiveStateDataId: (newId?: string) => void;
3835
3857
  };
3836
3858
 
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 };
3859
+ 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.68",
3
+ "version": "3.0.70",
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": [