@veltdev/types 4.7.10 → 4.7.11
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.
|
@@ -85,6 +85,7 @@ export type CommentEventTypesMap = {
|
|
|
85
85
|
[CommentEventTypes.COMPOSER_TEXT_CHANGE]: ComposerTextChangeEvent;
|
|
86
86
|
[CommentEventTypes.COMMENT_TOOL_CLICK]: CommentToolClickEvent;
|
|
87
87
|
[CommentEventTypes.SIDEBAR_BUTTON_CLICK]: SidebarButtonClickEvent;
|
|
88
|
+
[CommentEventTypes.ATTACHMENT_DOWNLOAD_CLICKED]: AttachmentDownloadClickedEvent;
|
|
88
89
|
};
|
|
89
90
|
export interface AddAttachmentEvent {
|
|
90
91
|
annotationId: string;
|
|
@@ -289,6 +290,12 @@ export interface CommentToolClickEvent {
|
|
|
289
290
|
export interface SidebarButtonClickEvent {
|
|
290
291
|
metadata?: VeltEventMetadata;
|
|
291
292
|
}
|
|
293
|
+
export interface AttachmentDownloadClickedEvent {
|
|
294
|
+
annotationId: string;
|
|
295
|
+
commentAnnotation: CommentAnnotation;
|
|
296
|
+
attachment: Attachment;
|
|
297
|
+
metadata?: VeltEventMetadata;
|
|
298
|
+
}
|
|
292
299
|
export interface PageModeComposerConfig {
|
|
293
300
|
context?: {
|
|
294
301
|
[key: string]: any;
|
|
@@ -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
|
*/
|
|
@@ -1457,6 +1467,16 @@ export declare class CommentElement {
|
|
|
1457
1467
|
*/
|
|
1458
1468
|
private _disableAttachments;
|
|
1459
1469
|
|
|
1470
|
+
/**
|
|
1471
|
+
* To enable automatic file download on attachment download click
|
|
1472
|
+
*/
|
|
1473
|
+
private _enableAttachmentDownload;
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* To disable automatic file download on attachment download click
|
|
1477
|
+
*/
|
|
1478
|
+
private _disableAttachmentDownload;
|
|
1479
|
+
|
|
1460
1480
|
/**
|
|
1461
1481
|
* Enable device info in comments
|
|
1462
1482
|
*/
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ export declare const CommentEventTypes: {
|
|
|
60
60
|
readonly COMPOSER_TEXT_CHANGE: "composerTextChange";
|
|
61
61
|
readonly COMMENT_TOOL_CLICK: "commentToolClick";
|
|
62
62
|
readonly SIDEBAR_BUTTON_CLICK: "sidebarButtonClick";
|
|
63
|
+
readonly ATTACHMENT_DOWNLOAD_CLICKED: "attachmentDownloadClicked";
|
|
63
64
|
};
|
|
64
65
|
export declare const RecorderEventTypes: {
|
|
65
66
|
readonly TRANSCRIPTION_DONE: "transcriptionDone";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/types",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.11",
|
|
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": [
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
],
|
|
35
35
|
"scripts": {
|
|
36
36
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
37
|
-
"publish:types": "node ../update-npm-package.mjs && npm publish --access public --tag v4-7-
|
|
37
|
+
"publish:types": "node ../update-npm-package.mjs && npm publish --access public --tag v4-7-11"
|
|
38
38
|
},
|
|
39
39
|
"author": "",
|
|
40
40
|
"license": "ISC",
|