@veltdev/react 4.7.2 → 4.7.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 +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
|
+
targetComposerElementId?: string;
|
|
14
|
+
placeholder?: string;
|
|
13
15
|
}
|
|
14
16
|
declare const VeltCommentComposer: React.FC<IVeltCommentComposerProps>;
|
|
15
17
|
export default VeltCommentComposer;
|
package/cjs/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.4";
|
|
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/esm/index.js
CHANGED
|
@@ -204,13 +204,13 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain, integ
|
|
|
204
204
|
};
|
|
205
205
|
};
|
|
206
206
|
|
|
207
|
-
var VELT_SDK_VERSION = '4.7.
|
|
207
|
+
var VELT_SDK_VERSION = '4.7.4';
|
|
208
208
|
var VELT_SDK_INIT_EVENT = 'onVeltInit';
|
|
209
209
|
var VELT_TAB_ID = 'veltTabId';
|
|
210
210
|
// integrity map for the Velt SDK
|
|
211
211
|
// Note: generate integrity hashes with: https://www.srihash.org/
|
|
212
212
|
var INTEGRITY_MAP = {
|
|
213
|
-
'4.7.
|
|
213
|
+
'4.7.4': 'sha384-mBqyf6bHlkYUIPLyA5FEWjPVXkqE7iRewpa32WpvsnKj67BITYnm/qn5dycfa8/g',
|
|
214
214
|
};
|
|
215
215
|
|
|
216
216
|
var validProps = ['veltIf', 'veltClass', 'className', 'variant'];
|
|
@@ -1768,8 +1768,8 @@ var VeltInlineReactionsSection = function (props) {
|
|
|
1768
1768
|
};
|
|
1769
1769
|
|
|
1770
1770
|
var VeltCommentComposer = function (props) {
|
|
1771
|
-
var darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom, dialogVariant = props.dialogVariant, context = props.context, locationId = props.locationId, documentId = props.documentId, folderId = props.folderId;
|
|
1772
|
-
return (React.createElement("velt-comment-composer", { variant: variant, "dialog-variant": dialogVariant, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, context: context ? JSON.stringify(context) : undefined, "location-id": locationId, "document-id": documentId, "folder-id": folderId }));
|
|
1771
|
+
var darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom, dialogVariant = props.dialogVariant, context = props.context, locationId = props.locationId, documentId = props.documentId, folderId = props.folderId, targetComposerElementId = props.targetComposerElementId, placeholder = props.placeholder;
|
|
1772
|
+
return (React.createElement("velt-comment-composer", { variant: variant, "dialog-variant": dialogVariant, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, context: context ? JSON.stringify(context) : undefined, "location-id": locationId, "document-id": documentId, "folder-id": folderId, "target-composer-element-id": targetComposerElementId, placeholder: placeholder }));
|
|
1773
1773
|
};
|
|
1774
1774
|
|
|
1775
1775
|
var VeltSingleEditorModePanel = function (props) {
|