@veltdev/sdk-dev 5.0.1-beta.2 → 5.0.1-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.
|
@@ -86,6 +86,7 @@ export type CommentEventTypesMap = {
|
|
|
86
86
|
[CommentEventTypes.COMMENT_BUBBLE_CLICKED]: CommentBubbleClickedEvent;
|
|
87
87
|
[CommentEventTypes.COMMENT_TOOL_CLICK]: CommentToolClickEvent;
|
|
88
88
|
[CommentEventTypes.SIDEBAR_BUTTON_CLICK]: SidebarButtonClickEvent;
|
|
89
|
+
[CommentEventTypes.ATTACHMENT_DOWNLOAD_CLICKED]: AttachmentDownloadClickedEvent;
|
|
89
90
|
};
|
|
90
91
|
export interface AddAttachmentEvent {
|
|
91
92
|
annotationId: string;
|
|
@@ -309,3 +310,9 @@ export interface CommentToolClickEvent {
|
|
|
309
310
|
export interface SidebarButtonClickEvent {
|
|
310
311
|
metadata?: VeltEventMetadata;
|
|
311
312
|
}
|
|
313
|
+
export interface AttachmentDownloadClickedEvent {
|
|
314
|
+
annotationId: string;
|
|
315
|
+
commentAnnotation: CommentAnnotation;
|
|
316
|
+
attachment: Attachment;
|
|
317
|
+
metadata?: VeltEventMetadata;
|
|
318
|
+
}
|
|
@@ -175,6 +175,16 @@ export declare class CommentElement {
|
|
|
175
175
|
*/
|
|
176
176
|
disableAttachments: () => any;
|
|
177
177
|
|
|
178
|
+
/**
|
|
179
|
+
* Enable automatic file download when attachment download button is clicked
|
|
180
|
+
*/
|
|
181
|
+
enableAttachmentDownload: () => any;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Disable automatic file download when attachment download button is clicked. The attachmentDownloadClicked event will still be triggered.
|
|
185
|
+
*/
|
|
186
|
+
disableAttachmentDownload: () => any;
|
|
187
|
+
|
|
178
188
|
/**
|
|
179
189
|
* Get if user is part of global contact or not.
|
|
180
190
|
*/
|
|
@@ -1488,6 +1498,16 @@ export declare class CommentElement {
|
|
|
1488
1498
|
*/
|
|
1489
1499
|
private _disableAttachments;
|
|
1490
1500
|
|
|
1501
|
+
/**
|
|
1502
|
+
* To enable automatic file download on attachment download click
|
|
1503
|
+
*/
|
|
1504
|
+
private _enableAttachmentDownload;
|
|
1505
|
+
|
|
1506
|
+
/**
|
|
1507
|
+
* To disable automatic file download on attachment download click
|
|
1508
|
+
*/
|
|
1509
|
+
private _disableAttachmentDownload;
|
|
1510
|
+
|
|
1491
1511
|
/**
|
|
1492
1512
|
* Enable device info in comments
|
|
1493
1513
|
*/
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -63,6 +63,7 @@ export declare const CommentEventTypes: {
|
|
|
63
63
|
readonly COMMENT_BUBBLE_CLICKED: "commentBubbleClicked";
|
|
64
64
|
readonly COMMENT_TOOL_CLICK: "commentToolClick";
|
|
65
65
|
readonly SIDEBAR_BUTTON_CLICK: "sidebarButtonClick";
|
|
66
|
+
readonly ATTACHMENT_DOWNLOAD_CLICKED: "attachmentDownloadClicked";
|
|
66
67
|
};
|
|
67
68
|
export declare const RecorderEventTypes: {
|
|
68
69
|
readonly TRANSCRIPTION_DONE: "transcriptionDone";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk-dev",
|
|
3
|
-
"version": "5.0.1-beta.
|
|
3
|
+
"version": "5.0.1-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": [
|