@veltdev/sdk 3.0.78 → 3.0.79
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.
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CommentAnnotation } from "./comment-annotation.data.model";
|
|
2
|
+
import { Comment } from "./comment.data.model";
|
|
3
|
+
import { VeltEventMetadata } from "./event-metadata.data.model";
|
|
4
|
+
import { Notification } from "./notification.model";
|
|
5
|
+
export interface VeltButtonClickEvent extends VeltButtonData {
|
|
6
|
+
buttonContext: VeltButtonContext;
|
|
7
|
+
metadata: VeltEventMetadata;
|
|
8
|
+
}
|
|
9
|
+
export interface VeltButtonContext {
|
|
10
|
+
type?: string;
|
|
11
|
+
groupId?: string;
|
|
12
|
+
selections?: VeltButtonSelectionMap;
|
|
13
|
+
clickedButtonId?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface VeltButtonData {
|
|
16
|
+
commentAnnotation?: CommentAnnotation;
|
|
17
|
+
comment?: Comment;
|
|
18
|
+
index?: number;
|
|
19
|
+
commentAnnotations?: CommentAnnotation[];
|
|
20
|
+
systemFilteredAnnotations?: CommentAnnotation[];
|
|
21
|
+
unreadCommentAnnotationsMap?: {
|
|
22
|
+
[commentAnnotationId: string]: number;
|
|
23
|
+
};
|
|
24
|
+
notification?: Notification;
|
|
25
|
+
notifications?: Notification[];
|
|
26
|
+
}
|
|
27
|
+
export interface VeltButtonSelectionMap {
|
|
28
|
+
[groupId: string]: {
|
|
29
|
+
[buttonId: string]: boolean;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CommentAccessMode, CommentEventTypes, CommentStatus } from "../../utils/enums";
|
|
2
2
|
import { Attachment } from "./attachment.model";
|
|
3
|
+
import { VeltButtonClickEvent } from "./button.data.model";
|
|
3
4
|
import { AddAttachmentResponse } from "./comment-actions.data.model";
|
|
4
5
|
import { CommentAnnotation, UpdateContextConfig } from "./comment-annotation.data.model";
|
|
5
|
-
import { CommentSidebarCustomActionEventData } from "./comment-sidebar-config.model";
|
|
6
6
|
import { Comment } from "./comment.data.model";
|
|
7
7
|
import { CustomPriority, CustomStatus } from "./custom-filter.data.model";
|
|
8
8
|
import { VeltEventMetadata } from "./event-metadata.data.model";
|
|
@@ -75,8 +75,8 @@ export type CommentEventTypesMap = {
|
|
|
75
75
|
[CommentEventTypes.ADD_REACTION]: AddReactionEvent;
|
|
76
76
|
[CommentEventTypes.DELETE_REACTION]: DeleteReactionEvent;
|
|
77
77
|
[CommentEventTypes.TOGGLE_REACTION]: ToggleReactionEvent;
|
|
78
|
-
[CommentEventTypes.COMMENT_SIDEBAR_DATA_INIT]:
|
|
79
|
-
[CommentEventTypes.COMMENT_SIDEBAR_DATA_UPDATE]:
|
|
78
|
+
[CommentEventTypes.COMMENT_SIDEBAR_DATA_INIT]: CommentSidebarDataInitEvent;
|
|
79
|
+
[CommentEventTypes.COMMENT_SIDEBAR_DATA_UPDATE]: CommentSidebarDataUpdateEvent;
|
|
80
80
|
};
|
|
81
81
|
export interface AddAttachmentEvent {
|
|
82
82
|
annotationId: string;
|
|
@@ -225,3 +225,7 @@ export interface CopyLinkEvent {
|
|
|
225
225
|
link: string;
|
|
226
226
|
metadata: VeltEventMetadata;
|
|
227
227
|
}
|
|
228
|
+
export interface CommentSidebarDataInitEvent extends VeltButtonClickEvent {
|
|
229
|
+
}
|
|
230
|
+
export interface CommentSidebarDataUpdateEvent extends VeltButtonClickEvent {
|
|
231
|
+
}
|
package/models.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './app/utils/enums';
|
|
|
2
2
|
export * from './app/models/data/attachment.model';
|
|
3
3
|
export * from './app/models/data/area-annotation.data.model';
|
|
4
4
|
export * from './app/models/data/base-metadata.data.model';
|
|
5
|
+
export * from './app/models/data/button.data.model';
|
|
5
6
|
export * from './app/models/data/chatgpt.data.model';
|
|
6
7
|
export * from './app/models/data/comment-annotation.data.model';
|
|
7
8
|
export * from './app/models/data/comment-events.data.model';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.79",
|
|
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": [
|