@veltdev/react 4.0.0-beta.2 → 4.0.0-beta.4
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 +79 -61
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilter.d.ts +2 -0
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterStatus/VeltCommentsSidebarFilterStatus.d.ts +12 -0
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterStatus/index.d.ts +1 -0
- package/cjs/types/constants.d.ts +1 -1
- package/cjs/types/hooks/CommentActions.d.ts +28 -28
- package/esm/index.js +79 -61
- package/esm/index.js.map +1 -1
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilter.d.ts +2 -0
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterStatus/VeltCommentsSidebarFilterStatus.d.ts +12 -0
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterStatus/index.d.ts +1 -0
- package/esm/types/constants.d.ts +1 -1
- package/esm/types/hooks/CommentActions.d.ts +28 -28
- package/index.d.ts +37 -28
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ import { IVeltCommentsSidebarFilterPriority } from './VeltCommentsSidebarFilterP
|
|
|
10
10
|
import { IVeltCommentsSidebarFilterTitleProps } from './VeltCommentsSidebarFilterTitle/VeltCommentsSidebarFilterTitle';
|
|
11
11
|
import { IVeltCommentsSidebarFilterVersions } from './VeltCommentsSidebarFilterVersions/VeltCommentsSidebarFilterVersions';
|
|
12
12
|
import { IVeltCommentsSidebarFilterItem } from './VeltCommentsSidebarFilterItem/VeltCommentsSidebarFilterItem';
|
|
13
|
+
import { IVeltCommentsSidebarFilterStatus } from './VeltCommentsSidebarFilterStatus/VeltCommentsSidebarFilterStatus';
|
|
13
14
|
export interface IVeltCommentsSidebarFilterProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
14
15
|
variant?: string;
|
|
15
16
|
}
|
|
@@ -25,6 +26,7 @@ export interface IVeltCommentsSidebarFilter extends React.FC<IVeltCommentsSideba
|
|
|
25
26
|
GroupBy: IVeltCommentsSidebarFilterGroupBy;
|
|
26
27
|
DoneButton: React.FC<IVeltCommentsSidebarFilterDoneButtonProps>;
|
|
27
28
|
Item: IVeltCommentsSidebarFilterItem;
|
|
29
|
+
Status: IVeltCommentsSidebarFilterStatus;
|
|
28
30
|
}
|
|
29
31
|
declare const VeltCommentsSidebarFilter: IVeltCommentsSidebarFilter;
|
|
30
32
|
export default VeltCommentsSidebarFilter;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IVeltCommentsSidebarFilterItem } from '../VeltCommentsSidebarFilterItem/VeltCommentsSidebarFilterItem';
|
|
3
|
+
import { IVeltCommentsSidebarFilterNameProps } from '../VeltCommentsSidebarFilterName/VeltCommentsSidebarFilterName';
|
|
4
|
+
export interface IVeltCommentsSidebarFilterStatusProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
5
|
+
variant?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IVeltCommentsSidebarFilterStatus extends React.FC<IVeltCommentsSidebarFilterStatusProps> {
|
|
8
|
+
Name: React.FC<IVeltCommentsSidebarFilterNameProps>;
|
|
9
|
+
Item: IVeltCommentsSidebarFilterItem;
|
|
10
|
+
}
|
|
11
|
+
declare const VeltCommentsSidebarFilterStatus: IVeltCommentsSidebarFilterStatus;
|
|
12
|
+
export default VeltCommentsSidebarFilterStatus;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./VeltCommentsSidebarFilterStatus";
|
package/esm/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/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, Document, SetDocumentsRequestOptions, Location as Location$1, CommentElement, UnreadCommentsCount, CommentAddEventData, CommentUpdateEventData, CommentSelectionChangeData, CommentSidebarCustomActionEventData, AddCommentAnnotationRequest, AddCommentAnnotationEvent, ApproveCommentAnnotationRequest, ApproveCommentAnnotationEvent, RejectCommentAnnotationRequest, RejectCommentAnnotationEvent, SubscribeCommentAnnotationRequest, SubscribeCommentAnnotationEvent, UnsubscribeCommentAnnotationRequest, UnsubscribeCommentAnnotationEvent, DeleteCommentAnnotationRequest, DeleteCommentAnnotationEvent,
|
|
3
|
+
import { Config, Velt, ReactionMap, CommentAnnotation, AutocompleteItem, User, Options, DocumentMetadata, Document, SetDocumentsRequestOptions, Location as Location$1, 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, RecordedData, AddReactionRequest, AddReactionEvent, DeleteReactionRequest, DeleteReactionEvent, ToggleReactionRequest, ToggleReactionEvent, CommentEventTypesMap, CoreEventTypesMap, CursorElement, CursorUser, LiveStateSyncElement, UserEditorAccess, EditorAccessTimer, ServerConnectionState, PresenceElement, PresenceUser, RecorderElement, RewriterElement, SelectionElement, LiveSelectionData, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate, NotificationElement, Notification, AutocompleteElement, AutocompleteChipData, ContactElement, SelectedUserContact } from '@veltdev/types';
|
|
4
4
|
|
|
5
5
|
interface IVeltProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
6
6
|
apiKey: string;
|
|
@@ -1580,6 +1580,14 @@ interface IVeltCommentsSidebarFilterVersions extends React.FC<IVeltCommentsSideb
|
|
|
1580
1580
|
Item: IVeltCommentsSidebarFilterItem;
|
|
1581
1581
|
}
|
|
1582
1582
|
|
|
1583
|
+
interface IVeltCommentsSidebarFilterStatusProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
1584
|
+
variant?: string;
|
|
1585
|
+
}
|
|
1586
|
+
interface IVeltCommentsSidebarFilterStatus extends React.FC<IVeltCommentsSidebarFilterStatusProps> {
|
|
1587
|
+
Name: React.FC<IVeltCommentsSidebarFilterNameProps>;
|
|
1588
|
+
Item: IVeltCommentsSidebarFilterItem;
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1583
1591
|
interface IVeltCommentsSidebarFilterProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
1584
1592
|
variant?: string;
|
|
1585
1593
|
}
|
|
@@ -1595,6 +1603,7 @@ interface IVeltCommentsSidebarFilter extends React.FC<IVeltCommentsSidebarFilter
|
|
|
1595
1603
|
GroupBy: IVeltCommentsSidebarFilterGroupBy;
|
|
1596
1604
|
DoneButton: React.FC<IVeltCommentsSidebarFilterDoneButtonProps>;
|
|
1597
1605
|
Item: IVeltCommentsSidebarFilterItem;
|
|
1606
|
+
Status: IVeltCommentsSidebarFilterStatus;
|
|
1598
1607
|
}
|
|
1599
1608
|
|
|
1600
1609
|
interface IVeltCommentsSidebarFilterButtonProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
@@ -3741,81 +3750,81 @@ declare function useCommentSidebarInit(): CommentSidebarCustomActionEventData |
|
|
|
3741
3750
|
declare function useCommentSidebarData(): CommentSidebarCustomActionEventData | null;
|
|
3742
3751
|
|
|
3743
3752
|
declare function useAddCommentAnnotation(): {
|
|
3744
|
-
addCommentAnnotation: (
|
|
3753
|
+
addCommentAnnotation: (request: AddCommentAnnotationRequest) => Promise<AddCommentAnnotationEvent | null>;
|
|
3745
3754
|
};
|
|
3746
3755
|
declare function useApproveCommentAnnotation(): {
|
|
3747
|
-
approveCommentAnnotation: (
|
|
3756
|
+
approveCommentAnnotation: (request: ApproveCommentAnnotationRequest) => Promise<ApproveCommentAnnotationEvent | null>;
|
|
3748
3757
|
};
|
|
3749
3758
|
declare function useRejectCommentAnnotation(): {
|
|
3750
|
-
rejectCommentAnnotation: (
|
|
3759
|
+
rejectCommentAnnotation: (request: RejectCommentAnnotationRequest) => Promise<RejectCommentAnnotationEvent | null>;
|
|
3751
3760
|
};
|
|
3752
3761
|
declare function useSubscribeCommentAnnotation(): {
|
|
3753
|
-
subscribeCommentAnnotation: (
|
|
3762
|
+
subscribeCommentAnnotation: (request: SubscribeCommentAnnotationRequest) => Promise<SubscribeCommentAnnotationEvent | null>;
|
|
3754
3763
|
};
|
|
3755
3764
|
declare function useUnsubscribeCommentAnnotation(): {
|
|
3756
|
-
unsubscribeCommentAnnotation: (
|
|
3765
|
+
unsubscribeCommentAnnotation: (request: UnsubscribeCommentAnnotationRequest) => Promise<UnsubscribeCommentAnnotationEvent | null>;
|
|
3757
3766
|
};
|
|
3758
3767
|
declare function useDeleteCommentAnnotation(): {
|
|
3759
|
-
deleteCommentAnnotation: (
|
|
3768
|
+
deleteCommentAnnotation: (request: DeleteCommentAnnotationRequest) => Promise<DeleteCommentAnnotationEvent | null>;
|
|
3760
3769
|
};
|
|
3761
|
-
declare function useGetCommentAnnotations(
|
|
3762
|
-
declare function useCommentAnnotationsCount(
|
|
3770
|
+
declare function useGetCommentAnnotations(query?: CommentRequestQuery): GetCommentAnnotationsResponse;
|
|
3771
|
+
declare function useCommentAnnotationsCount(query?: CommentRequestQuery): GetCommentAnnotationsCountResponse;
|
|
3763
3772
|
declare function useAssignUser(): {
|
|
3764
|
-
assignUser: (
|
|
3773
|
+
assignUser: (request: AssignUserRequest) => Promise<AssignUserEvent | null>;
|
|
3765
3774
|
};
|
|
3766
3775
|
declare function useUpdatePriority(): {
|
|
3767
|
-
updatePriority: (
|
|
3776
|
+
updatePriority: (request: UpdatePriorityRequest) => Promise<UpdatePriorityEvent | null>;
|
|
3768
3777
|
};
|
|
3769
3778
|
declare function useUpdateStatus(): {
|
|
3770
|
-
updateStatus: (
|
|
3779
|
+
updateStatus: (request: UpdateStatusRequest) => Promise<UpdateStatusEvent | null>;
|
|
3771
3780
|
};
|
|
3772
3781
|
declare function useUpdateAccess(): {
|
|
3773
|
-
updateAccess: (
|
|
3782
|
+
updateAccess: (request: UpdateAccessRequest) => Promise<UpdateAccessEvent | null>;
|
|
3774
3783
|
};
|
|
3775
3784
|
declare function useResolveCommentAnnotation(): {
|
|
3776
|
-
resolveCommentAnnotation: (
|
|
3785
|
+
resolveCommentAnnotation: (request: ResolveCommentAnnotationRequest) => Promise<ResolveCommentAnnotationRequest | null>;
|
|
3777
3786
|
};
|
|
3778
3787
|
declare function useGetLink(): {
|
|
3779
|
-
getLink: (
|
|
3788
|
+
getLink: (request: GetLinkRequest) => Promise<GetLinkResponse | null>;
|
|
3780
3789
|
};
|
|
3781
3790
|
declare function useCopyLink(): {
|
|
3782
|
-
copyLink: (
|
|
3791
|
+
copyLink: (request: CopyLinkRequest) => Promise<CopyLinkEvent | null>;
|
|
3783
3792
|
};
|
|
3784
3793
|
declare function useAddComment(): {
|
|
3785
|
-
addComment: (
|
|
3794
|
+
addComment: (request: AddCommentRequest) => Promise<AddCommentEvent | null>;
|
|
3786
3795
|
};
|
|
3787
3796
|
declare function useUpdateComment(): {
|
|
3788
|
-
updateComment: (
|
|
3797
|
+
updateComment: (request: UpdateCommentRequest) => Promise<UpdateCommentEvent | null>;
|
|
3789
3798
|
};
|
|
3790
3799
|
declare function useDeleteComment(): {
|
|
3791
|
-
deleteComment: (
|
|
3800
|
+
deleteComment: (request: DeleteCommentRequest) => Promise<DeleteCommentEvent | null>;
|
|
3792
3801
|
};
|
|
3793
3802
|
declare function useGetComment(): {
|
|
3794
|
-
getComment: (
|
|
3803
|
+
getComment: (request: GetCommentRequest) => Promise<Comment[]>;
|
|
3795
3804
|
};
|
|
3796
3805
|
declare function useAddAttachment(): {
|
|
3797
|
-
addAttachment: (
|
|
3806
|
+
addAttachment: (request: AddAttachmentRequest) => Promise<AddAttachmentResponse[] | null>;
|
|
3798
3807
|
};
|
|
3799
3808
|
declare function useDeleteAttachment(): {
|
|
3800
|
-
deleteAttachment: (
|
|
3809
|
+
deleteAttachment: (request: DeleteAttachmentRequest) => Promise<DeleteAttachmentEvent | null>;
|
|
3801
3810
|
};
|
|
3802
3811
|
declare function useGetAttachment(): {
|
|
3803
|
-
getAttachment: (
|
|
3812
|
+
getAttachment: (request: GetAttachmentRequest) => Promise<Attachment[] | null>;
|
|
3804
3813
|
};
|
|
3805
3814
|
declare function useDeleteRecording(): {
|
|
3806
|
-
deleteRecording: (
|
|
3815
|
+
deleteRecording: (request: DeleteRecordingRequest) => Promise<DeleteRecordingEvent | null>;
|
|
3807
3816
|
};
|
|
3808
3817
|
declare function useGetRecording(): {
|
|
3809
|
-
getRecording: (
|
|
3818
|
+
getRecording: (request: GetRecordingRequest) => Promise<RecordedData[] | null>;
|
|
3810
3819
|
};
|
|
3811
3820
|
declare function useAddReaction(): {
|
|
3812
|
-
addReaction: (
|
|
3821
|
+
addReaction: (request: AddReactionRequest) => Promise<AddReactionEvent | null>;
|
|
3813
3822
|
};
|
|
3814
3823
|
declare function useDeleteReaction(): {
|
|
3815
|
-
deleteReaction: (
|
|
3824
|
+
deleteReaction: (request: DeleteReactionRequest) => Promise<DeleteReactionEvent | null>;
|
|
3816
3825
|
};
|
|
3817
3826
|
declare function useToggleReaction(): {
|
|
3818
|
-
toggleReaction: (
|
|
3827
|
+
toggleReaction: (request: ToggleReactionRequest) => Promise<ToggleReactionEvent | null>;
|
|
3819
3828
|
};
|
|
3820
3829
|
/**
|
|
3821
3830
|
* @deprecated Use useCommentEventCallback hook instead.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/react",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.4",
|
|
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": [
|