@veltdev/sdk 5.0.1-beta.1 → 5.0.1-beta.2
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;
|
|
@@ -304,3 +305,9 @@ export interface CommentToolClickEvent {
|
|
|
304
305
|
export interface SidebarButtonClickEvent {
|
|
305
306
|
metadata?: VeltEventMetadata;
|
|
306
307
|
}
|
|
308
|
+
export interface AttachmentDownloadClickedEvent {
|
|
309
|
+
annotationId: string;
|
|
310
|
+
commentAnnotation: CommentAnnotation;
|
|
311
|
+
attachment: Attachment;
|
|
312
|
+
metadata?: VeltEventMetadata;
|
|
313
|
+
}
|
|
@@ -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
|
*/
|
|
@@ -1483,6 +1493,16 @@ export declare class CommentElement {
|
|
|
1483
1493
|
*/
|
|
1484
1494
|
private _disableAttachments;
|
|
1485
1495
|
|
|
1496
|
+
/**
|
|
1497
|
+
* To enable automatic file download on attachment download click
|
|
1498
|
+
*/
|
|
1499
|
+
private _enableAttachmentDownload;
|
|
1500
|
+
|
|
1501
|
+
/**
|
|
1502
|
+
* To disable automatic file download on attachment download click
|
|
1503
|
+
*/
|
|
1504
|
+
private _disableAttachmentDownload;
|
|
1505
|
+
|
|
1486
1506
|
/**
|
|
1487
1507
|
* Enable device info in comments
|
|
1488
1508
|
*/
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ export declare const CommentEventTypes: {
|
|
|
61
61
|
readonly COMMENT_BUBBLE_CLICKED: "commentBubbleClicked";
|
|
62
62
|
readonly COMMENT_TOOL_CLICK: "commentToolClick";
|
|
63
63
|
readonly SIDEBAR_BUTTON_CLICK: "sidebarButtonClick";
|
|
64
|
+
readonly ATTACHMENT_DOWNLOAD_CLICKED: "attachmentDownloadClicked";
|
|
64
65
|
};
|
|
65
66
|
export declare const RecorderEventTypes: {
|
|
66
67
|
readonly TRANSCRIPTION_DONE: "transcriptionDone";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "5.0.1-beta.
|
|
3
|
+
"version": "5.0.1-beta.2",
|
|
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": [
|