@veltdev/react 4.0.0-beta.3 → 4.0.0-beta.5
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 +57 -57
- package/cjs/index.js.map +1 -1
- package/cjs/types/constants.d.ts +1 -1
- package/cjs/types/hooks/CommentActions.d.ts +28 -28
- package/esm/index.js +57 -57
- package/esm/index.js.map +1 -1
- package/esm/types/constants.d.ts +1 -1
- package/esm/types/hooks/CommentActions.d.ts +28 -28
- package/index.d.ts +28 -28
- package/package.json +1 -1
package/cjs/types/constants.d.ts
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
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,
|
|
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: (
|
|
3
|
+
addCommentAnnotation: (request: AddCommentAnnotationRequest) => Promise<AddCommentAnnotationEvent | null>;
|
|
4
4
|
};
|
|
5
5
|
export declare function useApproveCommentAnnotation(): {
|
|
6
|
-
approveCommentAnnotation: (
|
|
6
|
+
approveCommentAnnotation: (request: ApproveCommentAnnotationRequest) => Promise<ApproveCommentAnnotationEvent | null>;
|
|
7
7
|
};
|
|
8
8
|
export declare function useRejectCommentAnnotation(): {
|
|
9
|
-
rejectCommentAnnotation: (
|
|
9
|
+
rejectCommentAnnotation: (request: RejectCommentAnnotationRequest) => Promise<RejectCommentAnnotationEvent | null>;
|
|
10
10
|
};
|
|
11
11
|
export declare function useSubscribeCommentAnnotation(): {
|
|
12
|
-
subscribeCommentAnnotation: (
|
|
12
|
+
subscribeCommentAnnotation: (request: SubscribeCommentAnnotationRequest) => Promise<SubscribeCommentAnnotationEvent | null>;
|
|
13
13
|
};
|
|
14
14
|
export declare function useUnsubscribeCommentAnnotation(): {
|
|
15
|
-
unsubscribeCommentAnnotation: (
|
|
15
|
+
unsubscribeCommentAnnotation: (request: UnsubscribeCommentAnnotationRequest) => Promise<UnsubscribeCommentAnnotationEvent | null>;
|
|
16
16
|
};
|
|
17
17
|
export declare function useDeleteCommentAnnotation(): {
|
|
18
|
-
deleteCommentAnnotation: (
|
|
18
|
+
deleteCommentAnnotation: (request: DeleteCommentAnnotationRequest) => Promise<DeleteCommentAnnotationEvent | null>;
|
|
19
19
|
};
|
|
20
|
-
export declare function useGetCommentAnnotations(
|
|
21
|
-
export declare function useCommentAnnotationsCount(
|
|
20
|
+
export declare function useGetCommentAnnotations(query?: CommentRequestQuery): GetCommentAnnotationsResponse;
|
|
21
|
+
export declare function useCommentAnnotationsCount(query?: CommentRequestQuery): GetCommentAnnotationsCountResponse;
|
|
22
22
|
export declare function useAssignUser(): {
|
|
23
|
-
assignUser: (
|
|
23
|
+
assignUser: (request: AssignUserRequest) => Promise<AssignUserEvent | null>;
|
|
24
24
|
};
|
|
25
25
|
export declare function useUpdatePriority(): {
|
|
26
|
-
updatePriority: (
|
|
26
|
+
updatePriority: (request: UpdatePriorityRequest) => Promise<UpdatePriorityEvent | null>;
|
|
27
27
|
};
|
|
28
28
|
export declare function useUpdateStatus(): {
|
|
29
|
-
updateStatus: (
|
|
29
|
+
updateStatus: (request: UpdateStatusRequest) => Promise<UpdateStatusEvent | null>;
|
|
30
30
|
};
|
|
31
31
|
export declare function useUpdateAccess(): {
|
|
32
|
-
updateAccess: (
|
|
32
|
+
updateAccess: (request: UpdateAccessRequest) => Promise<UpdateAccessEvent | null>;
|
|
33
33
|
};
|
|
34
34
|
export declare function useResolveCommentAnnotation(): {
|
|
35
|
-
resolveCommentAnnotation: (
|
|
35
|
+
resolveCommentAnnotation: (request: ResolveCommentAnnotationRequest) => Promise<ResolveCommentAnnotationRequest | null>;
|
|
36
36
|
};
|
|
37
37
|
export declare function useGetLink(): {
|
|
38
|
-
getLink: (
|
|
38
|
+
getLink: (request: GetLinkRequest) => Promise<GetLinkResponse | null>;
|
|
39
39
|
};
|
|
40
40
|
export declare function useCopyLink(): {
|
|
41
|
-
copyLink: (
|
|
41
|
+
copyLink: (request: CopyLinkRequest) => Promise<CopyLinkEvent | null>;
|
|
42
42
|
};
|
|
43
43
|
export declare function useAddComment(): {
|
|
44
|
-
addComment: (
|
|
44
|
+
addComment: (request: AddCommentRequest) => Promise<AddCommentEvent | null>;
|
|
45
45
|
};
|
|
46
46
|
export declare function useUpdateComment(): {
|
|
47
|
-
updateComment: (
|
|
47
|
+
updateComment: (request: UpdateCommentRequest) => Promise<UpdateCommentEvent | null>;
|
|
48
48
|
};
|
|
49
49
|
export declare function useDeleteComment(): {
|
|
50
|
-
deleteComment: (
|
|
50
|
+
deleteComment: (request: DeleteCommentRequest) => Promise<DeleteCommentEvent | null>;
|
|
51
51
|
};
|
|
52
52
|
export declare function useGetComment(): {
|
|
53
|
-
getComment: (
|
|
53
|
+
getComment: (request: GetCommentRequest) => Promise<Comment[]>;
|
|
54
54
|
};
|
|
55
55
|
export declare function useAddAttachment(): {
|
|
56
|
-
addAttachment: (
|
|
56
|
+
addAttachment: (request: AddAttachmentRequest) => Promise<AddAttachmentResponse[] | null>;
|
|
57
57
|
};
|
|
58
58
|
export declare function useDeleteAttachment(): {
|
|
59
|
-
deleteAttachment: (
|
|
59
|
+
deleteAttachment: (request: DeleteAttachmentRequest) => Promise<DeleteAttachmentEvent | null>;
|
|
60
60
|
};
|
|
61
61
|
export declare function useGetAttachment(): {
|
|
62
|
-
getAttachment: (
|
|
62
|
+
getAttachment: (request: GetAttachmentRequest) => Promise<Attachment[] | null>;
|
|
63
63
|
};
|
|
64
64
|
export declare function useDeleteRecording(): {
|
|
65
|
-
deleteRecording: (
|
|
65
|
+
deleteRecording: (request: DeleteRecordingRequest) => Promise<DeleteRecordingEvent | null>;
|
|
66
66
|
};
|
|
67
67
|
export declare function useGetRecording(): {
|
|
68
|
-
getRecording: (
|
|
68
|
+
getRecording: (request: GetRecordingRequest) => Promise<RecordedData[] | null>;
|
|
69
69
|
};
|
|
70
70
|
export declare function useAddReaction(): {
|
|
71
|
-
addReaction: (
|
|
71
|
+
addReaction: (request: AddReactionRequest) => Promise<AddReactionEvent | null>;
|
|
72
72
|
};
|
|
73
73
|
export declare function useDeleteReaction(): {
|
|
74
|
-
deleteReaction: (
|
|
74
|
+
deleteReaction: (request: DeleteReactionRequest) => Promise<DeleteReactionEvent | null>;
|
|
75
75
|
};
|
|
76
76
|
export declare function useToggleReaction(): {
|
|
77
|
-
toggleReaction: (
|
|
77
|
+
toggleReaction: (request: ToggleReactionRequest) => Promise<ToggleReactionEvent | null>;
|
|
78
78
|
};
|
|
79
79
|
/**
|
|
80
80
|
* @deprecated Use useCommentEventCallback hook instead.
|
package/esm/index.js
CHANGED
|
@@ -132,7 +132,7 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain) {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
|
|
135
|
-
var VELT_SDK_VERSION = '4.0.0-beta.
|
|
135
|
+
var VELT_SDK_VERSION = '4.0.0-beta.5';
|
|
136
136
|
var VELT_SDK_INIT_EVENT = 'onVeltInit';
|
|
137
137
|
var VELT_TAB_ID = 'veltTabId';
|
|
138
138
|
|
|
@@ -4767,11 +4767,11 @@ function useCommentSidebarData() {
|
|
|
4767
4767
|
function useAddCommentAnnotation() {
|
|
4768
4768
|
var commentElement = useCommentUtils();
|
|
4769
4769
|
return {
|
|
4770
|
-
addCommentAnnotation: function (
|
|
4770
|
+
addCommentAnnotation: function (request) {
|
|
4771
4771
|
return new Promise(function (resolve, reject) {
|
|
4772
4772
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.addCommentAnnotation))
|
|
4773
4773
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4774
|
-
commentElement.addCommentAnnotation(
|
|
4774
|
+
commentElement.addCommentAnnotation(request).then(resolve).catch(reject);
|
|
4775
4775
|
});
|
|
4776
4776
|
}
|
|
4777
4777
|
};
|
|
@@ -4779,11 +4779,11 @@ function useAddCommentAnnotation() {
|
|
|
4779
4779
|
function useApproveCommentAnnotation() {
|
|
4780
4780
|
var commentElement = useCommentUtils();
|
|
4781
4781
|
return {
|
|
4782
|
-
approveCommentAnnotation: function (
|
|
4782
|
+
approveCommentAnnotation: function (request) {
|
|
4783
4783
|
return new Promise(function (resolve, reject) {
|
|
4784
4784
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.approveCommentAnnotation))
|
|
4785
4785
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4786
|
-
commentElement.approveCommentAnnotation(
|
|
4786
|
+
commentElement.approveCommentAnnotation(request).then(resolve).catch(reject);
|
|
4787
4787
|
});
|
|
4788
4788
|
}
|
|
4789
4789
|
};
|
|
@@ -4791,11 +4791,11 @@ function useApproveCommentAnnotation() {
|
|
|
4791
4791
|
function useRejectCommentAnnotation() {
|
|
4792
4792
|
var commentElement = useCommentUtils();
|
|
4793
4793
|
return {
|
|
4794
|
-
rejectCommentAnnotation: function (
|
|
4794
|
+
rejectCommentAnnotation: function (request) {
|
|
4795
4795
|
return new Promise(function (resolve, reject) {
|
|
4796
4796
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.rejectCommentAnnotation))
|
|
4797
4797
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4798
|
-
commentElement.rejectCommentAnnotation(
|
|
4798
|
+
commentElement.rejectCommentAnnotation(request).then(resolve).catch(reject);
|
|
4799
4799
|
});
|
|
4800
4800
|
}
|
|
4801
4801
|
};
|
|
@@ -4803,11 +4803,11 @@ function useRejectCommentAnnotation() {
|
|
|
4803
4803
|
function useSubscribeCommentAnnotation() {
|
|
4804
4804
|
var commentElement = useCommentUtils();
|
|
4805
4805
|
return {
|
|
4806
|
-
subscribeCommentAnnotation: function (
|
|
4806
|
+
subscribeCommentAnnotation: function (request) {
|
|
4807
4807
|
return new Promise(function (resolve, reject) {
|
|
4808
4808
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.subscribeCommentAnnotation))
|
|
4809
4809
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4810
|
-
commentElement.subscribeCommentAnnotation(
|
|
4810
|
+
commentElement.subscribeCommentAnnotation(request).then(resolve).catch(reject);
|
|
4811
4811
|
});
|
|
4812
4812
|
}
|
|
4813
4813
|
};
|
|
@@ -4815,11 +4815,11 @@ function useSubscribeCommentAnnotation() {
|
|
|
4815
4815
|
function useUnsubscribeCommentAnnotation() {
|
|
4816
4816
|
var commentElement = useCommentUtils();
|
|
4817
4817
|
return {
|
|
4818
|
-
unsubscribeCommentAnnotation: function (
|
|
4818
|
+
unsubscribeCommentAnnotation: function (request) {
|
|
4819
4819
|
return new Promise(function (resolve, reject) {
|
|
4820
4820
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.unsubscribeCommentAnnotation))
|
|
4821
4821
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4822
|
-
commentElement.unsubscribeCommentAnnotation(
|
|
4822
|
+
commentElement.unsubscribeCommentAnnotation(request).then(resolve).catch(reject);
|
|
4823
4823
|
});
|
|
4824
4824
|
}
|
|
4825
4825
|
};
|
|
@@ -4827,23 +4827,23 @@ function useUnsubscribeCommentAnnotation() {
|
|
|
4827
4827
|
function useDeleteCommentAnnotation() {
|
|
4828
4828
|
var commentElement = useCommentUtils();
|
|
4829
4829
|
return {
|
|
4830
|
-
deleteCommentAnnotation: function (
|
|
4830
|
+
deleteCommentAnnotation: function (request) {
|
|
4831
4831
|
return new Promise(function (resolve, reject) {
|
|
4832
4832
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteCommentAnnotation))
|
|
4833
4833
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4834
|
-
commentElement.deleteCommentAnnotation(
|
|
4834
|
+
commentElement.deleteCommentAnnotation(request).then(resolve).catch(reject);
|
|
4835
4835
|
});
|
|
4836
4836
|
}
|
|
4837
4837
|
};
|
|
4838
4838
|
}
|
|
4839
|
-
function useGetCommentAnnotations(
|
|
4839
|
+
function useGetCommentAnnotations(query) {
|
|
4840
4840
|
var commentElement = useCommentUtils();
|
|
4841
4841
|
var _a = useState({ data: null }), data = _a[0], setData = _a[1];
|
|
4842
4842
|
var subscriptionRef = useRef();
|
|
4843
4843
|
// Memoize the inputs
|
|
4844
4844
|
var memoizedData = useMemo(function () {
|
|
4845
|
-
return
|
|
4846
|
-
}, [JSON.stringify(
|
|
4845
|
+
return query;
|
|
4846
|
+
}, [JSON.stringify(query)]);
|
|
4847
4847
|
useEffect(function () {
|
|
4848
4848
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getCommentAnnotations))
|
|
4849
4849
|
return;
|
|
@@ -4871,14 +4871,14 @@ function useGetCommentAnnotations(getCommentAnnotationsRequest) {
|
|
|
4871
4871
|
}, [commentElement === null || commentElement === void 0 ? void 0 : commentElement.getCommentAnnotations, memoizedData]);
|
|
4872
4872
|
return data;
|
|
4873
4873
|
}
|
|
4874
|
-
function useCommentAnnotationsCount(
|
|
4874
|
+
function useCommentAnnotationsCount(query) {
|
|
4875
4875
|
var commentElement = useCommentUtils();
|
|
4876
4876
|
var _a = useState({ data: null }), data = _a[0], setData = _a[1];
|
|
4877
4877
|
var subscriptionRef = useRef();
|
|
4878
4878
|
// Memoize the inputs
|
|
4879
4879
|
var memoizedData = useMemo(function () {
|
|
4880
|
-
return
|
|
4881
|
-
}, [JSON.stringify(
|
|
4880
|
+
return query;
|
|
4881
|
+
}, [JSON.stringify(query)]);
|
|
4882
4882
|
useEffect(function () {
|
|
4883
4883
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getCommentAnnotationsCount))
|
|
4884
4884
|
return;
|
|
@@ -4909,11 +4909,11 @@ function useCommentAnnotationsCount(getCommentAnnotationsCountRequest) {
|
|
|
4909
4909
|
function useAssignUser() {
|
|
4910
4910
|
var commentElement = useCommentUtils();
|
|
4911
4911
|
return {
|
|
4912
|
-
assignUser: function (
|
|
4912
|
+
assignUser: function (request) {
|
|
4913
4913
|
return new Promise(function (resolve, reject) {
|
|
4914
4914
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.assignUser))
|
|
4915
4915
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4916
|
-
commentElement.assignUser(
|
|
4916
|
+
commentElement.assignUser(request).then(resolve).catch(reject);
|
|
4917
4917
|
});
|
|
4918
4918
|
}
|
|
4919
4919
|
};
|
|
@@ -4921,11 +4921,11 @@ function useAssignUser() {
|
|
|
4921
4921
|
function useUpdatePriority() {
|
|
4922
4922
|
var commentElement = useCommentUtils();
|
|
4923
4923
|
return {
|
|
4924
|
-
updatePriority: function (
|
|
4924
|
+
updatePriority: function (request) {
|
|
4925
4925
|
return new Promise(function (resolve, reject) {
|
|
4926
4926
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.updatePriority))
|
|
4927
4927
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4928
|
-
commentElement.updatePriority(
|
|
4928
|
+
commentElement.updatePriority(request).then(resolve).catch(reject);
|
|
4929
4929
|
});
|
|
4930
4930
|
}
|
|
4931
4931
|
};
|
|
@@ -4933,11 +4933,11 @@ function useUpdatePriority() {
|
|
|
4933
4933
|
function useUpdateStatus() {
|
|
4934
4934
|
var commentElement = useCommentUtils();
|
|
4935
4935
|
return {
|
|
4936
|
-
updateStatus: function (
|
|
4936
|
+
updateStatus: function (request) {
|
|
4937
4937
|
return new Promise(function (resolve, reject) {
|
|
4938
4938
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.updateStatus))
|
|
4939
4939
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4940
|
-
commentElement.updateStatus(
|
|
4940
|
+
commentElement.updateStatus(request).then(resolve).catch(reject);
|
|
4941
4941
|
});
|
|
4942
4942
|
}
|
|
4943
4943
|
};
|
|
@@ -4945,11 +4945,11 @@ function useUpdateStatus() {
|
|
|
4945
4945
|
function useUpdateAccess() {
|
|
4946
4946
|
var commentElement = useCommentUtils();
|
|
4947
4947
|
return {
|
|
4948
|
-
updateAccess: function (
|
|
4948
|
+
updateAccess: function (request) {
|
|
4949
4949
|
return new Promise(function (resolve, reject) {
|
|
4950
4950
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.updateAccess))
|
|
4951
4951
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4952
|
-
commentElement.updateAccess(
|
|
4952
|
+
commentElement.updateAccess(request).then(resolve).catch(reject);
|
|
4953
4953
|
});
|
|
4954
4954
|
}
|
|
4955
4955
|
};
|
|
@@ -4957,11 +4957,11 @@ function useUpdateAccess() {
|
|
|
4957
4957
|
function useResolveCommentAnnotation() {
|
|
4958
4958
|
var commentElement = useCommentUtils();
|
|
4959
4959
|
return {
|
|
4960
|
-
resolveCommentAnnotation: function (
|
|
4960
|
+
resolveCommentAnnotation: function (request) {
|
|
4961
4961
|
return new Promise(function (resolve, reject) {
|
|
4962
4962
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.resolveCommentAnnotation))
|
|
4963
4963
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4964
|
-
commentElement.resolveCommentAnnotation(
|
|
4964
|
+
commentElement.resolveCommentAnnotation(request).then(resolve).catch(reject);
|
|
4965
4965
|
});
|
|
4966
4966
|
}
|
|
4967
4967
|
};
|
|
@@ -4969,11 +4969,11 @@ function useResolveCommentAnnotation() {
|
|
|
4969
4969
|
function useGetLink() {
|
|
4970
4970
|
var commentElement = useCommentUtils();
|
|
4971
4971
|
return {
|
|
4972
|
-
getLink: function (
|
|
4972
|
+
getLink: function (request) {
|
|
4973
4973
|
return new Promise(function (resolve, reject) {
|
|
4974
4974
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getLink))
|
|
4975
4975
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4976
|
-
commentElement.getLink(
|
|
4976
|
+
commentElement.getLink(request).then(resolve).catch(reject);
|
|
4977
4977
|
});
|
|
4978
4978
|
}
|
|
4979
4979
|
};
|
|
@@ -4981,11 +4981,11 @@ function useGetLink() {
|
|
|
4981
4981
|
function useCopyLink() {
|
|
4982
4982
|
var commentElement = useCommentUtils();
|
|
4983
4983
|
return {
|
|
4984
|
-
copyLink: function (
|
|
4984
|
+
copyLink: function (request) {
|
|
4985
4985
|
return new Promise(function (resolve, reject) {
|
|
4986
4986
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.copyLink))
|
|
4987
4987
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
4988
|
-
commentElement.copyLink(
|
|
4988
|
+
commentElement.copyLink(request).then(resolve).catch(reject);
|
|
4989
4989
|
});
|
|
4990
4990
|
}
|
|
4991
4991
|
};
|
|
@@ -4993,11 +4993,11 @@ function useCopyLink() {
|
|
|
4993
4993
|
function useAddComment() {
|
|
4994
4994
|
var commentElement = useCommentUtils();
|
|
4995
4995
|
return {
|
|
4996
|
-
addComment: function (
|
|
4996
|
+
addComment: function (request) {
|
|
4997
4997
|
return new Promise(function (resolve, reject) {
|
|
4998
4998
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.addComment))
|
|
4999
4999
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5000
|
-
commentElement.addComment(
|
|
5000
|
+
commentElement.addComment(request).then(resolve).catch(reject);
|
|
5001
5001
|
});
|
|
5002
5002
|
}
|
|
5003
5003
|
};
|
|
@@ -5005,11 +5005,11 @@ function useAddComment() {
|
|
|
5005
5005
|
function useUpdateComment() {
|
|
5006
5006
|
var commentElement = useCommentUtils();
|
|
5007
5007
|
return {
|
|
5008
|
-
updateComment: function (
|
|
5008
|
+
updateComment: function (request) {
|
|
5009
5009
|
return new Promise(function (resolve, reject) {
|
|
5010
5010
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.updateComment))
|
|
5011
5011
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5012
|
-
commentElement.updateComment(
|
|
5012
|
+
commentElement.updateComment(request).then(resolve).catch(reject);
|
|
5013
5013
|
});
|
|
5014
5014
|
}
|
|
5015
5015
|
};
|
|
@@ -5017,11 +5017,11 @@ function useUpdateComment() {
|
|
|
5017
5017
|
function useDeleteComment() {
|
|
5018
5018
|
var commentElement = useCommentUtils();
|
|
5019
5019
|
return {
|
|
5020
|
-
deleteComment: function (
|
|
5020
|
+
deleteComment: function (request) {
|
|
5021
5021
|
return new Promise(function (resolve, reject) {
|
|
5022
5022
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteComment))
|
|
5023
5023
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5024
|
-
commentElement.deleteComment(
|
|
5024
|
+
commentElement.deleteComment(request).then(resolve).catch(reject);
|
|
5025
5025
|
});
|
|
5026
5026
|
}
|
|
5027
5027
|
};
|
|
@@ -5029,11 +5029,11 @@ function useDeleteComment() {
|
|
|
5029
5029
|
function useGetComment() {
|
|
5030
5030
|
var commentElement = useCommentUtils();
|
|
5031
5031
|
return {
|
|
5032
|
-
getComment: function (
|
|
5032
|
+
getComment: function (request) {
|
|
5033
5033
|
return new Promise(function (resolve, reject) {
|
|
5034
5034
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getComment))
|
|
5035
5035
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5036
|
-
commentElement.getComment(
|
|
5036
|
+
commentElement.getComment(request).then(resolve).catch(reject);
|
|
5037
5037
|
});
|
|
5038
5038
|
}
|
|
5039
5039
|
};
|
|
@@ -5041,11 +5041,11 @@ function useGetComment() {
|
|
|
5041
5041
|
function useAddAttachment() {
|
|
5042
5042
|
var commentElement = useCommentUtils();
|
|
5043
5043
|
return {
|
|
5044
|
-
addAttachment: function (
|
|
5044
|
+
addAttachment: function (request) {
|
|
5045
5045
|
return new Promise(function (resolve, reject) {
|
|
5046
5046
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.addAttachment))
|
|
5047
5047
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5048
|
-
commentElement.addAttachment(
|
|
5048
|
+
commentElement.addAttachment(request).then(resolve).catch(reject);
|
|
5049
5049
|
});
|
|
5050
5050
|
}
|
|
5051
5051
|
};
|
|
@@ -5053,11 +5053,11 @@ function useAddAttachment() {
|
|
|
5053
5053
|
function useDeleteAttachment() {
|
|
5054
5054
|
var commentElement = useCommentUtils();
|
|
5055
5055
|
return {
|
|
5056
|
-
deleteAttachment: function (
|
|
5056
|
+
deleteAttachment: function (request) {
|
|
5057
5057
|
return new Promise(function (resolve, reject) {
|
|
5058
5058
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteAttachment))
|
|
5059
5059
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5060
|
-
commentElement.deleteAttachment(
|
|
5060
|
+
commentElement.deleteAttachment(request).then(resolve).catch(reject);
|
|
5061
5061
|
});
|
|
5062
5062
|
}
|
|
5063
5063
|
};
|
|
@@ -5065,11 +5065,11 @@ function useDeleteAttachment() {
|
|
|
5065
5065
|
function useGetAttachment() {
|
|
5066
5066
|
var commentElement = useCommentUtils();
|
|
5067
5067
|
return {
|
|
5068
|
-
getAttachment: function (
|
|
5068
|
+
getAttachment: function (request) {
|
|
5069
5069
|
return new Promise(function (resolve, reject) {
|
|
5070
5070
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getAttachment))
|
|
5071
5071
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5072
|
-
commentElement.getAttachment(
|
|
5072
|
+
commentElement.getAttachment(request).then(resolve).catch(reject);
|
|
5073
5073
|
});
|
|
5074
5074
|
}
|
|
5075
5075
|
};
|
|
@@ -5077,11 +5077,11 @@ function useGetAttachment() {
|
|
|
5077
5077
|
function useDeleteRecording() {
|
|
5078
5078
|
var commentElement = useCommentUtils();
|
|
5079
5079
|
return {
|
|
5080
|
-
deleteRecording: function (
|
|
5080
|
+
deleteRecording: function (request) {
|
|
5081
5081
|
return new Promise(function (resolve, reject) {
|
|
5082
5082
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteRecording))
|
|
5083
5083
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5084
|
-
commentElement.deleteRecording(
|
|
5084
|
+
commentElement.deleteRecording(request).then(resolve).catch(reject);
|
|
5085
5085
|
});
|
|
5086
5086
|
}
|
|
5087
5087
|
};
|
|
@@ -5089,11 +5089,11 @@ function useDeleteRecording() {
|
|
|
5089
5089
|
function useGetRecording() {
|
|
5090
5090
|
var commentElement = useCommentUtils();
|
|
5091
5091
|
return {
|
|
5092
|
-
getRecording: function (
|
|
5092
|
+
getRecording: function (request) {
|
|
5093
5093
|
return new Promise(function (resolve, reject) {
|
|
5094
5094
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.getRecording))
|
|
5095
5095
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5096
|
-
commentElement.getRecording(
|
|
5096
|
+
commentElement.getRecording(request).then(resolve).catch(reject);
|
|
5097
5097
|
});
|
|
5098
5098
|
}
|
|
5099
5099
|
};
|
|
@@ -5101,11 +5101,11 @@ function useGetRecording() {
|
|
|
5101
5101
|
function useAddReaction() {
|
|
5102
5102
|
var commentElement = useCommentUtils();
|
|
5103
5103
|
return {
|
|
5104
|
-
addReaction: function (
|
|
5104
|
+
addReaction: function (request) {
|
|
5105
5105
|
return new Promise(function (resolve, reject) {
|
|
5106
5106
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.addReaction))
|
|
5107
5107
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5108
|
-
commentElement.addReaction(
|
|
5108
|
+
commentElement.addReaction(request).then(resolve).catch(reject);
|
|
5109
5109
|
});
|
|
5110
5110
|
}
|
|
5111
5111
|
};
|
|
@@ -5113,11 +5113,11 @@ function useAddReaction() {
|
|
|
5113
5113
|
function useDeleteReaction() {
|
|
5114
5114
|
var commentElement = useCommentUtils();
|
|
5115
5115
|
return {
|
|
5116
|
-
deleteReaction: function (
|
|
5116
|
+
deleteReaction: function (request) {
|
|
5117
5117
|
return new Promise(function (resolve, reject) {
|
|
5118
5118
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.deleteReaction))
|
|
5119
5119
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5120
|
-
commentElement.deleteReaction(
|
|
5120
|
+
commentElement.deleteReaction(request).then(resolve).catch(reject);
|
|
5121
5121
|
});
|
|
5122
5122
|
}
|
|
5123
5123
|
};
|
|
@@ -5125,11 +5125,11 @@ function useDeleteReaction() {
|
|
|
5125
5125
|
function useToggleReaction() {
|
|
5126
5126
|
var commentElement = useCommentUtils();
|
|
5127
5127
|
return {
|
|
5128
|
-
toggleReaction: function (
|
|
5128
|
+
toggleReaction: function (request) {
|
|
5129
5129
|
return new Promise(function (resolve, reject) {
|
|
5130
5130
|
if (!(commentElement === null || commentElement === void 0 ? void 0 : commentElement.toggleReaction))
|
|
5131
5131
|
return reject(new Error('Velt SDK is not initialized.'));
|
|
5132
|
-
commentElement.toggleReaction(
|
|
5132
|
+
commentElement.toggleReaction(request).then(resolve).catch(reject);
|
|
5133
5133
|
});
|
|
5134
5134
|
}
|
|
5135
5135
|
};
|