@veltdev/react 4.7.2 → 4.7.3
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.
- package/cjs/index.js +4 -4
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/VeltCommentComposer/VeltCommentComposer.d.ts +2 -0
- package/cjs/types/constants.d.ts +1 -1
- package/cjs/types/hooks/Client.d.ts +2 -2
- package/cjs/types/hooks/CommentActions.d.ts +22 -22
- package/esm/index.js +4 -4
- package/esm/index.js.map +1 -1
- package/esm/types/components/VeltCommentComposer/VeltCommentComposer.d.ts +2 -0
- package/esm/types/constants.d.ts +1 -1
- package/esm/types/hooks/Client.d.ts +2 -2
- package/esm/types/hooks/CommentActions.d.ts +22 -22
- package/index.d.ts +25 -23
- package/package.json +2 -2
|
@@ -10,6 +10,8 @@ export interface IVeltCommentComposerProps extends React.DetailedHTMLProps<React
|
|
|
10
10
|
locationId?: string;
|
|
11
11
|
documentId?: string;
|
|
12
12
|
folderId?: string;
|
|
13
|
+
targetElementId?: string;
|
|
14
|
+
placeholder?: string;
|
|
13
15
|
}
|
|
14
16
|
declare const VeltCommentComposer: React.FC<IVeltCommentComposerProps>;
|
|
15
17
|
export default VeltCommentComposer;
|
package/esm/types/constants.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const VELT_SDK_VERSION = "4.7.
|
|
2
|
+
export declare const VELT_SDK_VERSION = "4.7.3";
|
|
3
3
|
export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
|
|
4
4
|
export declare const VELT_TAB_ID = "veltTabId";
|
|
5
5
|
export declare const INTEGRITY_MAP: Record<string, string>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Location, User, Options, DocumentMetadata, Document, SetLocationsRequestOptions, HeartbeatConfig, GetHeartbeatResponse, GetUserPermissionsResponse } from "@veltdev/types";
|
|
1
|
+
import { Location, User, Options, DocumentMetadata, Document, SetDocumentsRequestOptions, SetLocationsRequestOptions, HeartbeatConfig, GetHeartbeatResponse, GetUserPermissionsResponse } from "@veltdev/types";
|
|
2
2
|
export declare function useClient(): any;
|
|
3
3
|
export declare function useIdentify(user: User, userOptions?: Options): void;
|
|
4
4
|
export declare function useSetDocument(documentId: string, documentMetadata?: DocumentMetadata): void;
|
|
5
5
|
export declare function useSetDocumentId(documentId: string): void;
|
|
6
6
|
export declare function useSetDocuments(): {
|
|
7
|
-
setDocuments: (documents: Document[], options?:
|
|
7
|
+
setDocuments: (documents: Document[], options?: SetDocumentsRequestOptions) => void;
|
|
8
8
|
};
|
|
9
9
|
export declare function useSetRootDocument(): {
|
|
10
10
|
setRootDocument: (document: Document) => void;
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { Attachment, CommentEventTypesMap, CommentRequestQuery, GetCommentAnnotationsCountResponse, GetCommentAnnotationsResponse, RecordedData } from "@veltdev/types";
|
|
1
|
+
import { AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationEvent, AddCommentAnnotationRequest, AddCommentEvent, AddCommentRequest, AddReactionEvent, AddReactionRequest, ApproveCommentAnnotationEvent, ApproveCommentAnnotationRequest, AssignUserEvent, AssignUserRequest, Attachment, CommentEventTypesMap, CommentRequestQuery, CopyLinkEvent, CopyLinkRequest, DeleteAttachmentEvent, DeleteAttachmentRequest, DeleteCommentAnnotationEvent, DeleteCommentAnnotationRequest, DeleteCommentEvent, DeleteCommentRequest, DeleteReactionEvent, DeleteReactionRequest, DeleteRecordingEvent, DeleteRecordingRequest, GetAttachmentRequest, GetCommentAnnotationsCountResponse, GetCommentAnnotationsResponse, 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: (request: AddCommentAnnotationRequest) => Promise<
|
|
3
|
+
addCommentAnnotation: (request: AddCommentAnnotationRequest) => Promise<AddCommentAnnotationEvent | null>;
|
|
4
4
|
};
|
|
5
5
|
export declare function useApproveCommentAnnotation(): {
|
|
6
|
-
approveCommentAnnotation: (request: ApproveCommentAnnotationRequest) => Promise<
|
|
6
|
+
approveCommentAnnotation: (request: ApproveCommentAnnotationRequest) => Promise<ApproveCommentAnnotationEvent | null>;
|
|
7
7
|
};
|
|
8
8
|
export declare function useRejectCommentAnnotation(): {
|
|
9
|
-
rejectCommentAnnotation: (request: RejectCommentAnnotationRequest) => Promise<
|
|
9
|
+
rejectCommentAnnotation: (request: RejectCommentAnnotationRequest) => Promise<RejectCommentAnnotationEvent | null>;
|
|
10
10
|
};
|
|
11
11
|
export declare function useSubscribeCommentAnnotation(): {
|
|
12
|
-
subscribeCommentAnnotation: (request: SubscribeCommentAnnotationRequest) => Promise<
|
|
12
|
+
subscribeCommentAnnotation: (request: SubscribeCommentAnnotationRequest) => Promise<SubscribeCommentAnnotationEvent | null>;
|
|
13
13
|
};
|
|
14
14
|
export declare function useUnsubscribeCommentAnnotation(): {
|
|
15
|
-
unsubscribeCommentAnnotation: (request: UnsubscribeCommentAnnotationRequest) => Promise<
|
|
15
|
+
unsubscribeCommentAnnotation: (request: UnsubscribeCommentAnnotationRequest) => Promise<UnsubscribeCommentAnnotationEvent | null>;
|
|
16
16
|
};
|
|
17
17
|
export declare function useDeleteCommentAnnotation(): {
|
|
18
|
-
deleteCommentAnnotation: (request: DeleteCommentAnnotationRequest) => Promise<
|
|
18
|
+
deleteCommentAnnotation: (request: DeleteCommentAnnotationRequest) => Promise<DeleteCommentAnnotationEvent | null>;
|
|
19
19
|
};
|
|
20
20
|
export declare function useGetCommentAnnotations(query?: CommentRequestQuery): GetCommentAnnotationsResponse;
|
|
21
21
|
export declare function useCommentAnnotationsCount(query?: CommentRequestQuery): GetCommentAnnotationsCountResponse;
|
|
22
22
|
export declare function useAssignUser(): {
|
|
23
|
-
assignUser: (request: AssignUserRequest) => Promise<
|
|
23
|
+
assignUser: (request: AssignUserRequest) => Promise<AssignUserEvent | null>;
|
|
24
24
|
};
|
|
25
25
|
export declare function useUpdatePriority(): {
|
|
26
|
-
updatePriority: (request: UpdatePriorityRequest) => Promise<
|
|
26
|
+
updatePriority: (request: UpdatePriorityRequest) => Promise<UpdatePriorityEvent | null>;
|
|
27
27
|
};
|
|
28
28
|
export declare function useUpdateStatus(): {
|
|
29
|
-
updateStatus: (request: UpdateStatusRequest) => Promise<
|
|
29
|
+
updateStatus: (request: UpdateStatusRequest) => Promise<UpdateStatusEvent | null>;
|
|
30
30
|
};
|
|
31
31
|
export declare function useUpdateAccess(): {
|
|
32
|
-
updateAccess: (request: UpdateAccessRequest) => Promise<
|
|
32
|
+
updateAccess: (request: UpdateAccessRequest) => Promise<UpdateAccessEvent | null>;
|
|
33
33
|
};
|
|
34
34
|
export declare function useResolveCommentAnnotation(): {
|
|
35
|
-
resolveCommentAnnotation: (request: ResolveCommentAnnotationRequest) => Promise<
|
|
35
|
+
resolveCommentAnnotation: (request: ResolveCommentAnnotationRequest) => Promise<ResolveCommentAnnotationRequest | null>;
|
|
36
36
|
};
|
|
37
37
|
export declare function useGetLink(): {
|
|
38
|
-
getLink: (request: GetLinkRequest) => Promise<
|
|
38
|
+
getLink: (request: GetLinkRequest) => Promise<GetLinkResponse | null>;
|
|
39
39
|
};
|
|
40
40
|
export declare function useCopyLink(): {
|
|
41
|
-
copyLink: (request: CopyLinkRequest) => Promise<
|
|
41
|
+
copyLink: (request: CopyLinkRequest) => Promise<CopyLinkEvent | null>;
|
|
42
42
|
};
|
|
43
43
|
export declare function useAddComment(): {
|
|
44
|
-
addComment: (request: AddCommentRequest) => Promise<
|
|
44
|
+
addComment: (request: AddCommentRequest) => Promise<AddCommentEvent | null>;
|
|
45
45
|
};
|
|
46
46
|
export declare function useUpdateComment(): {
|
|
47
|
-
updateComment: (request: UpdateCommentRequest) => Promise<
|
|
47
|
+
updateComment: (request: UpdateCommentRequest) => Promise<UpdateCommentEvent | null>;
|
|
48
48
|
};
|
|
49
49
|
export declare function useDeleteComment(): {
|
|
50
|
-
deleteComment: (request: DeleteCommentRequest) => Promise<
|
|
50
|
+
deleteComment: (request: DeleteCommentRequest) => Promise<DeleteCommentEvent | null>;
|
|
51
51
|
};
|
|
52
52
|
export declare function useGetComment(): {
|
|
53
53
|
getComment: (request: GetCommentRequest) => Promise<Comment[]>;
|
|
@@ -56,25 +56,25 @@ export declare function useAddAttachment(): {
|
|
|
56
56
|
addAttachment: (request: AddAttachmentRequest) => Promise<AddAttachmentResponse[] | null>;
|
|
57
57
|
};
|
|
58
58
|
export declare function useDeleteAttachment(): {
|
|
59
|
-
deleteAttachment: (request: DeleteAttachmentRequest) => Promise<
|
|
59
|
+
deleteAttachment: (request: DeleteAttachmentRequest) => Promise<DeleteAttachmentEvent | null>;
|
|
60
60
|
};
|
|
61
61
|
export declare function useGetAttachment(): {
|
|
62
62
|
getAttachment: (request: GetAttachmentRequest) => Promise<Attachment[] | null>;
|
|
63
63
|
};
|
|
64
64
|
export declare function useDeleteRecording(): {
|
|
65
|
-
deleteRecording: (request: DeleteRecordingRequest) => Promise<
|
|
65
|
+
deleteRecording: (request: DeleteRecordingRequest) => Promise<DeleteRecordingEvent | null>;
|
|
66
66
|
};
|
|
67
67
|
export declare function useGetRecording(): {
|
|
68
68
|
getRecording: (request: GetRecordingRequest) => Promise<RecordedData[] | null>;
|
|
69
69
|
};
|
|
70
70
|
export declare function useAddReaction(): {
|
|
71
|
-
addReaction: (request: AddReactionRequest) => Promise<
|
|
71
|
+
addReaction: (request: AddReactionRequest) => Promise<AddReactionEvent | null>;
|
|
72
72
|
};
|
|
73
73
|
export declare function useDeleteReaction(): {
|
|
74
|
-
deleteReaction: (request: DeleteReactionRequest) => Promise<
|
|
74
|
+
deleteReaction: (request: DeleteReactionRequest) => Promise<DeleteReactionEvent | null>;
|
|
75
75
|
};
|
|
76
76
|
export declare function useToggleReaction(): {
|
|
77
|
-
toggleReaction: (request: ToggleReactionRequest) => Promise<
|
|
77
|
+
toggleReaction: (request: ToggleReactionRequest) => Promise<ToggleReactionEvent | null>;
|
|
78
78
|
};
|
|
79
79
|
/**
|
|
80
80
|
* @deprecated Use useCommentEventCallback hook instead.
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React$1 from 'react';
|
|
3
|
-
import { Config, UserDataProvider, VeltDataProvider, VeltEncryptionProvider, VeltAuthProvider, VeltPermissionProvider, Velt, ContextOptions, ReactionMap, CustomAnnotationDropdownData, AutocompleteData, AutoCompleteScrollConfig, CommentSidebarFilterConfig as CommentSidebarFilterConfig$2, CommentSidebarGroupConfig as CommentSidebarGroupConfig$2, CommentSidebarFilters as CommentSidebarFilters$2, SidebarFilterCriteria, SortOrder, SortBy, RecorderLayoutMode, RecordedData, RecorderMode, CommentAnnotation, NotificationSettingsLayout, NotificationPanelMode, AutocompleteItem, User, Options, DocumentMetadata, Document, Location as Location$1, SetLocationsRequestOptions, HeartbeatConfig, GetHeartbeatResponse, GetUserPermissionsResponse, CommentElement, UnreadCommentsCount, CommentAddEventData, CommentUpdateEventData, CommentSelectionChangeData, CommentSidebarCustomActionEventData, CommentRequestQuery, GetCommentAnnotationsResponse, GetCommentAnnotationsCountResponse, Attachment, CommentEventTypesMap, CoreEventTypesMap, CursorElement, CursorUser, LiveStateSyncElement, SetLiveStateDataConfig, UserEditorAccess, EditorAccessTimer, ServerConnectionState, LiveStateEventTypesMap, PresenceElement, PresenceUser, PresenceRequestQuery, GetPresenceDataResponse, PresenceEventTypesMap, RecorderElement, RecorderRequestQuery, GetRecordingsResponse, RecorderEventTypesMap, RewriterElement, SelectionElement, LiveSelectionData, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate, NotificationElement, GetNotificationsDataQuery, Notification, NotificationSettingsConfig, NotificationInitialSettingsConfig, NotificationEventTypesMap, AutocompleteElement, AutocompleteChipData, ContactElement, SelectedUserContact, GetContactListResponse, CrdtElement, CrdtEventTypesMap } from '@veltdev/types';
|
|
3
|
+
import { Config, UserDataProvider, VeltDataProvider, VeltEncryptionProvider, VeltAuthProvider, VeltPermissionProvider, Velt, ContextOptions, ReactionMap, CustomAnnotationDropdownData, AutocompleteData, AutoCompleteScrollConfig, CommentSidebarFilterConfig as CommentSidebarFilterConfig$2, CommentSidebarGroupConfig as CommentSidebarGroupConfig$2, CommentSidebarFilters as CommentSidebarFilters$2, SidebarFilterCriteria, SortOrder, SortBy, RecorderLayoutMode, RecordedData, RecorderMode, CommentAnnotation, NotificationSettingsLayout, NotificationPanelMode, AutocompleteItem, User, Options, DocumentMetadata, Document, SetDocumentsRequestOptions, Location as Location$1, SetLocationsRequestOptions, HeartbeatConfig, GetHeartbeatResponse, GetUserPermissionsResponse, CommentElement, UnreadCommentsCount, CommentAddEventData, CommentUpdateEventData, CommentSelectionChangeData, CommentSidebarCustomActionEventData, AddCommentAnnotationRequest, AddCommentAnnotationEvent, ApproveCommentAnnotationRequest, ApproveCommentAnnotationEvent, RejectCommentAnnotationRequest, RejectCommentAnnotationEvent, SubscribeCommentAnnotationRequest, SubscribeCommentAnnotationEvent, UnsubscribeCommentAnnotationRequest, UnsubscribeCommentAnnotationEvent, DeleteCommentAnnotationRequest, DeleteCommentAnnotationEvent, CommentRequestQuery, GetCommentAnnotationsResponse, GetCommentAnnotationsCountResponse, 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, AddReactionRequest, AddReactionEvent, DeleteReactionRequest, DeleteReactionEvent, ToggleReactionRequest, ToggleReactionEvent, CommentEventTypesMap, CoreEventTypesMap, CursorElement, CursorUser, LiveStateSyncElement, SetLiveStateDataConfig, UserEditorAccess, EditorAccessTimer, ServerConnectionState, LiveStateEventTypesMap, PresenceElement, PresenceUser, PresenceRequestQuery, GetPresenceDataResponse, PresenceEventTypesMap, RecorderElement, RecorderRequestQuery, GetRecordingsResponse, RecorderEventTypesMap, RewriterElement, SelectionElement, LiveSelectionData, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate, NotificationElement, GetNotificationsDataQuery, Notification, NotificationSettingsConfig, NotificationInitialSettingsConfig, NotificationEventTypesMap, AutocompleteElement, AutocompleteChipData, ContactElement, SelectedUserContact, GetContactListResponse, CrdtElement, CrdtEventTypesMap } from '@veltdev/types';
|
|
4
4
|
|
|
5
5
|
interface IVeltProps extends React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
6
6
|
apiKey: string;
|
|
@@ -795,6 +795,8 @@ interface IVeltCommentComposerProps extends React$1.DetailedHTMLProps<React$1.HT
|
|
|
795
795
|
locationId?: string;
|
|
796
796
|
documentId?: string;
|
|
797
797
|
folderId?: string;
|
|
798
|
+
targetElementId?: string;
|
|
799
|
+
placeholder?: string;
|
|
798
800
|
}
|
|
799
801
|
declare const VeltCommentComposer: React$1.FC<IVeltCommentComposerProps>;
|
|
800
802
|
|
|
@@ -4363,7 +4365,7 @@ declare function useIdentify(user: User, userOptions?: Options): void;
|
|
|
4363
4365
|
declare function useSetDocument(documentId: string, documentMetadata?: DocumentMetadata): void;
|
|
4364
4366
|
declare function useSetDocumentId(documentId: string): void;
|
|
4365
4367
|
declare function useSetDocuments(): {
|
|
4366
|
-
setDocuments: (documents: Document[], options?:
|
|
4368
|
+
setDocuments: (documents: Document[], options?: SetDocumentsRequestOptions) => void;
|
|
4367
4369
|
};
|
|
4368
4370
|
declare function useSetRootDocument(): {
|
|
4369
4371
|
setRootDocument: (document: Document) => void;
|
|
@@ -4416,54 +4418,54 @@ declare function useCommentSidebarInit(): CommentSidebarCustomActionEventData |
|
|
|
4416
4418
|
declare function useCommentSidebarData(): CommentSidebarCustomActionEventData | null;
|
|
4417
4419
|
|
|
4418
4420
|
declare function useAddCommentAnnotation(): {
|
|
4419
|
-
addCommentAnnotation: (request: AddCommentAnnotationRequest) => Promise<
|
|
4421
|
+
addCommentAnnotation: (request: AddCommentAnnotationRequest) => Promise<AddCommentAnnotationEvent | null>;
|
|
4420
4422
|
};
|
|
4421
4423
|
declare function useApproveCommentAnnotation(): {
|
|
4422
|
-
approveCommentAnnotation: (request: ApproveCommentAnnotationRequest) => Promise<
|
|
4424
|
+
approveCommentAnnotation: (request: ApproveCommentAnnotationRequest) => Promise<ApproveCommentAnnotationEvent | null>;
|
|
4423
4425
|
};
|
|
4424
4426
|
declare function useRejectCommentAnnotation(): {
|
|
4425
|
-
rejectCommentAnnotation: (request: RejectCommentAnnotationRequest) => Promise<
|
|
4427
|
+
rejectCommentAnnotation: (request: RejectCommentAnnotationRequest) => Promise<RejectCommentAnnotationEvent | null>;
|
|
4426
4428
|
};
|
|
4427
4429
|
declare function useSubscribeCommentAnnotation(): {
|
|
4428
|
-
subscribeCommentAnnotation: (request: SubscribeCommentAnnotationRequest) => Promise<
|
|
4430
|
+
subscribeCommentAnnotation: (request: SubscribeCommentAnnotationRequest) => Promise<SubscribeCommentAnnotationEvent | null>;
|
|
4429
4431
|
};
|
|
4430
4432
|
declare function useUnsubscribeCommentAnnotation(): {
|
|
4431
|
-
unsubscribeCommentAnnotation: (request: UnsubscribeCommentAnnotationRequest) => Promise<
|
|
4433
|
+
unsubscribeCommentAnnotation: (request: UnsubscribeCommentAnnotationRequest) => Promise<UnsubscribeCommentAnnotationEvent | null>;
|
|
4432
4434
|
};
|
|
4433
4435
|
declare function useDeleteCommentAnnotation(): {
|
|
4434
|
-
deleteCommentAnnotation: (request: DeleteCommentAnnotationRequest) => Promise<
|
|
4436
|
+
deleteCommentAnnotation: (request: DeleteCommentAnnotationRequest) => Promise<DeleteCommentAnnotationEvent | null>;
|
|
4435
4437
|
};
|
|
4436
4438
|
declare function useGetCommentAnnotations(query?: CommentRequestQuery): GetCommentAnnotationsResponse;
|
|
4437
4439
|
declare function useCommentAnnotationsCount(query?: CommentRequestQuery): GetCommentAnnotationsCountResponse;
|
|
4438
4440
|
declare function useAssignUser(): {
|
|
4439
|
-
assignUser: (request: AssignUserRequest) => Promise<
|
|
4441
|
+
assignUser: (request: AssignUserRequest) => Promise<AssignUserEvent | null>;
|
|
4440
4442
|
};
|
|
4441
4443
|
declare function useUpdatePriority(): {
|
|
4442
|
-
updatePriority: (request: UpdatePriorityRequest) => Promise<
|
|
4444
|
+
updatePriority: (request: UpdatePriorityRequest) => Promise<UpdatePriorityEvent | null>;
|
|
4443
4445
|
};
|
|
4444
4446
|
declare function useUpdateStatus(): {
|
|
4445
|
-
updateStatus: (request: UpdateStatusRequest) => Promise<
|
|
4447
|
+
updateStatus: (request: UpdateStatusRequest) => Promise<UpdateStatusEvent | null>;
|
|
4446
4448
|
};
|
|
4447
4449
|
declare function useUpdateAccess(): {
|
|
4448
|
-
updateAccess: (request: UpdateAccessRequest) => Promise<
|
|
4450
|
+
updateAccess: (request: UpdateAccessRequest) => Promise<UpdateAccessEvent | null>;
|
|
4449
4451
|
};
|
|
4450
4452
|
declare function useResolveCommentAnnotation(): {
|
|
4451
|
-
resolveCommentAnnotation: (request: ResolveCommentAnnotationRequest) => Promise<
|
|
4453
|
+
resolveCommentAnnotation: (request: ResolveCommentAnnotationRequest) => Promise<ResolveCommentAnnotationRequest | null>;
|
|
4452
4454
|
};
|
|
4453
4455
|
declare function useGetLink(): {
|
|
4454
|
-
getLink: (request: GetLinkRequest) => Promise<
|
|
4456
|
+
getLink: (request: GetLinkRequest) => Promise<GetLinkResponse | null>;
|
|
4455
4457
|
};
|
|
4456
4458
|
declare function useCopyLink(): {
|
|
4457
|
-
copyLink: (request: CopyLinkRequest) => Promise<
|
|
4459
|
+
copyLink: (request: CopyLinkRequest) => Promise<CopyLinkEvent | null>;
|
|
4458
4460
|
};
|
|
4459
4461
|
declare function useAddComment(): {
|
|
4460
|
-
addComment: (request: AddCommentRequest) => Promise<
|
|
4462
|
+
addComment: (request: AddCommentRequest) => Promise<AddCommentEvent | null>;
|
|
4461
4463
|
};
|
|
4462
4464
|
declare function useUpdateComment(): {
|
|
4463
|
-
updateComment: (request: UpdateCommentRequest) => Promise<
|
|
4465
|
+
updateComment: (request: UpdateCommentRequest) => Promise<UpdateCommentEvent | null>;
|
|
4464
4466
|
};
|
|
4465
4467
|
declare function useDeleteComment(): {
|
|
4466
|
-
deleteComment: (request: DeleteCommentRequest) => Promise<
|
|
4468
|
+
deleteComment: (request: DeleteCommentRequest) => Promise<DeleteCommentEvent | null>;
|
|
4467
4469
|
};
|
|
4468
4470
|
declare function useGetComment(): {
|
|
4469
4471
|
getComment: (request: GetCommentRequest) => Promise<Comment[]>;
|
|
@@ -4472,25 +4474,25 @@ declare function useAddAttachment(): {
|
|
|
4472
4474
|
addAttachment: (request: AddAttachmentRequest) => Promise<AddAttachmentResponse[] | null>;
|
|
4473
4475
|
};
|
|
4474
4476
|
declare function useDeleteAttachment(): {
|
|
4475
|
-
deleteAttachment: (request: DeleteAttachmentRequest) => Promise<
|
|
4477
|
+
deleteAttachment: (request: DeleteAttachmentRequest) => Promise<DeleteAttachmentEvent | null>;
|
|
4476
4478
|
};
|
|
4477
4479
|
declare function useGetAttachment(): {
|
|
4478
4480
|
getAttachment: (request: GetAttachmentRequest) => Promise<Attachment[] | null>;
|
|
4479
4481
|
};
|
|
4480
4482
|
declare function useDeleteRecording(): {
|
|
4481
|
-
deleteRecording: (request: DeleteRecordingRequest) => Promise<
|
|
4483
|
+
deleteRecording: (request: DeleteRecordingRequest) => Promise<DeleteRecordingEvent | null>;
|
|
4482
4484
|
};
|
|
4483
4485
|
declare function useGetRecording(): {
|
|
4484
4486
|
getRecording: (request: GetRecordingRequest) => Promise<RecordedData[] | null>;
|
|
4485
4487
|
};
|
|
4486
4488
|
declare function useAddReaction(): {
|
|
4487
|
-
addReaction: (request: AddReactionRequest) => Promise<
|
|
4489
|
+
addReaction: (request: AddReactionRequest) => Promise<AddReactionEvent | null>;
|
|
4488
4490
|
};
|
|
4489
4491
|
declare function useDeleteReaction(): {
|
|
4490
|
-
deleteReaction: (request: DeleteReactionRequest) => Promise<
|
|
4492
|
+
deleteReaction: (request: DeleteReactionRequest) => Promise<DeleteReactionEvent | null>;
|
|
4491
4493
|
};
|
|
4492
4494
|
declare function useToggleReaction(): {
|
|
4493
|
-
toggleReaction: (request: ToggleReactionRequest) => Promise<
|
|
4495
|
+
toggleReaction: (request: ToggleReactionRequest) => Promise<ToggleReactionEvent | null>;
|
|
4494
4496
|
};
|
|
4495
4497
|
/**
|
|
4496
4498
|
* @deprecated Use useCommentEventCallback hook instead.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/react",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.3",
|
|
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": [
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"scripts": {
|
|
36
36
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
37
37
|
"version:update": "node ../update-npm-package.mjs",
|
|
38
|
-
"publish:sdk": "npm publish --access public --tag v4-7-
|
|
38
|
+
"publish:sdk": "npm publish --access public --tag v4-7-3"
|
|
39
39
|
},
|
|
40
40
|
"author": "",
|
|
41
41
|
"license": "ISC",
|