@veltdev/types-dev 5.0.0-beta.10 → 5.0.0-beta.12
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.
|
@@ -54,6 +54,7 @@ export interface CommentSuggestionEventData {
|
|
|
54
54
|
}
|
|
55
55
|
export type CommentEventTypesMap = {
|
|
56
56
|
[CommentEventTypes.ADD_COMMENT_ANNOTATION]: AddCommentAnnotationEvent;
|
|
57
|
+
[CommentEventTypes.ADD_COMMENT_ANNOTATION_DRAFT]: AddCommentAnnotationDraftEvent;
|
|
57
58
|
[CommentEventTypes.APPROVE_COMMENT_ANNOTATION]: ApproveCommentAnnotationEvent;
|
|
58
59
|
[CommentEventTypes.ACCEPT_COMMENT_ANNOTATION]: AcceptCommentAnnotationEvent;
|
|
59
60
|
[CommentEventTypes.REJECT_COMMENT_ANNOTATION]: RejectCommentAnnotationEvent;
|
|
@@ -97,6 +98,10 @@ export interface DeleteAttachmentEvent {
|
|
|
97
98
|
attachment: Attachment;
|
|
98
99
|
metadata: VeltEventMetadata;
|
|
99
100
|
}
|
|
101
|
+
export interface AddCommentAnnotationDraftEvent {
|
|
102
|
+
metadata: VeltEventMetadata;
|
|
103
|
+
addContext: (context: Record<string, unknown>) => void;
|
|
104
|
+
}
|
|
100
105
|
export interface AddCommentAnnotationEvent {
|
|
101
106
|
annotationId: string;
|
|
102
107
|
commentAnnotation: CommentAnnotation;
|
|
@@ -329,7 +329,7 @@ export declare class CommentElement {
|
|
|
329
329
|
* @description Sets the comment context provider
|
|
330
330
|
* @param provider
|
|
331
331
|
*/
|
|
332
|
-
public setContextProvider: (provider: (documentId: string, location?: any) => any) => void;
|
|
332
|
+
public setContextProvider: (provider: (documentId: string, location?: any) => any | Promise<any>) => void;
|
|
333
333
|
|
|
334
334
|
/**
|
|
335
335
|
* To enable suggestion mode
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export declare enum ResolverActions {
|
|
|
30
30
|
}
|
|
31
31
|
export declare const CommentEventTypes: {
|
|
32
32
|
readonly ADD_COMMENT_ANNOTATION: "addCommentAnnotation";
|
|
33
|
+
readonly ADD_COMMENT_ANNOTATION_DRAFT: "addCommentAnnotationDraft";
|
|
33
34
|
readonly PUBLISH_COMMENT_ANNOTATION: "publishCommentAnnotation";
|
|
34
35
|
readonly DELETE_COMMENT_ANNOTATION: "deleteCommentAnnotation";
|
|
35
36
|
readonly APPROVE_COMMENT_ANNOTATION: "approveCommentAnnotation";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/types-dev",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.12",
|
|
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": [
|