@veltdev/sdk 5.0.1 → 5.0.2-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.
|
@@ -232,6 +232,10 @@ export declare class CommentSelectionChangeData {
|
|
|
232
232
|
selected: boolean;
|
|
233
233
|
annotation: CommentAnnotation;
|
|
234
234
|
}
|
|
235
|
+
export declare class VisibilityOptionClickedData {
|
|
236
|
+
annotationId: string;
|
|
237
|
+
visibility: 'public' | 'private';
|
|
238
|
+
}
|
|
235
239
|
export declare class InlineCommentSectionConfig {
|
|
236
240
|
id: string;
|
|
237
241
|
name?: string;
|
|
@@ -85,9 +85,13 @@ export type CommentEventTypesMap = {
|
|
|
85
85
|
[CommentEventTypes.COMMENT_PIN_CLICKED]: CommentPinClickedEvent;
|
|
86
86
|
[CommentEventTypes.COMMENT_BUBBLE_CLICKED]: CommentBubbleClickedEvent;
|
|
87
87
|
[CommentEventTypes.COMMENT_TOOL_CLICK]: CommentToolClickEvent;
|
|
88
|
+
[CommentEventTypes.COMMENT_TOOL_CLICKED]: CommentToolClickedEvent;
|
|
88
89
|
[CommentEventTypes.SIDEBAR_BUTTON_CLICK]: SidebarButtonClickEvent;
|
|
90
|
+
[CommentEventTypes.SIDEBAR_BUTTON_CLICKED]: SidebarButtonClickedEvent;
|
|
89
91
|
[CommentEventTypes.ATTACHMENT_DOWNLOAD_CLICKED]: AttachmentDownloadClickedEvent;
|
|
90
92
|
[CommentEventTypes.COMMENT_SAVED]: CommentSavedEvent;
|
|
93
|
+
[CommentEventTypes.COMMENT_SAVE_TRIGGERED]: CommentSaveTriggeredEvent;
|
|
94
|
+
[CommentEventTypes.VISIBILITY_OPTION_CLICKED]: VisibilityOptionClickedEvent;
|
|
91
95
|
};
|
|
92
96
|
export interface AddAttachmentEvent {
|
|
93
97
|
annotationId: string;
|
|
@@ -182,6 +186,10 @@ export interface CommentSavedEvent {
|
|
|
182
186
|
commentAnnotation: CommentAnnotation;
|
|
183
187
|
metadata: VeltEventMetadata;
|
|
184
188
|
}
|
|
189
|
+
export interface CommentSaveTriggeredEvent {
|
|
190
|
+
annotationId: string;
|
|
191
|
+
metadata: VeltEventMetadata;
|
|
192
|
+
}
|
|
185
193
|
export interface UpdateCommentEvent {
|
|
186
194
|
annotationId: string;
|
|
187
195
|
commentAnnotation: CommentAnnotation;
|
|
@@ -308,12 +316,22 @@ export interface CommentToolClickEvent {
|
|
|
308
316
|
targetElementId?: string | null;
|
|
309
317
|
metadata?: VeltEventMetadata;
|
|
310
318
|
}
|
|
319
|
+
export interface CommentToolClickedEvent extends CommentToolClickEvent {
|
|
320
|
+
}
|
|
311
321
|
export interface SidebarButtonClickEvent {
|
|
312
322
|
metadata?: VeltEventMetadata;
|
|
313
323
|
}
|
|
324
|
+
export interface SidebarButtonClickedEvent extends SidebarButtonClickEvent {
|
|
325
|
+
}
|
|
314
326
|
export interface AttachmentDownloadClickedEvent {
|
|
315
327
|
annotationId: string;
|
|
316
328
|
commentAnnotation: CommentAnnotation;
|
|
317
329
|
attachment: Attachment;
|
|
318
330
|
metadata?: VeltEventMetadata;
|
|
319
331
|
}
|
|
332
|
+
export interface VisibilityOptionClickedEvent {
|
|
333
|
+
annotationId: string;
|
|
334
|
+
commentAnnotation: CommentAnnotation;
|
|
335
|
+
visibility: 'public' | 'private';
|
|
336
|
+
metadata?: VeltEventMetadata;
|
|
337
|
+
}
|
|
@@ -290,6 +290,16 @@ export declare class CommentElement {
|
|
|
290
290
|
*/
|
|
291
291
|
public disableStatus: () => any;
|
|
292
292
|
|
|
293
|
+
/**
|
|
294
|
+
* To enable visibility option dropdown on comments
|
|
295
|
+
*/
|
|
296
|
+
public enableVisibilityOptionDropdown: () => any;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* To disable visibility option dropdown on comments
|
|
300
|
+
*/
|
|
301
|
+
public disableVisibilityOptionDropdown: () => any;
|
|
302
|
+
|
|
293
303
|
/**
|
|
294
304
|
* To enable feature to show resolve button
|
|
295
305
|
*/
|
|
@@ -1615,6 +1625,16 @@ export declare class CommentElement {
|
|
|
1615
1625
|
*/
|
|
1616
1626
|
private _disableStatus;
|
|
1617
1627
|
|
|
1628
|
+
/**
|
|
1629
|
+
* To enable visibility option dropdown on comments
|
|
1630
|
+
*/
|
|
1631
|
+
private _enableVisibilityOptionDropdown;
|
|
1632
|
+
|
|
1633
|
+
/**
|
|
1634
|
+
* To disable visibility option dropdown on comments
|
|
1635
|
+
*/
|
|
1636
|
+
private _disableVisibilityOptionDropdown;
|
|
1637
|
+
|
|
1618
1638
|
/**
|
|
1619
1639
|
* To enable feature to show resolve button
|
|
1620
1640
|
*/
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -60,9 +60,13 @@ export declare const CommentEventTypes: {
|
|
|
60
60
|
readonly COMMENT_PIN_CLICKED: "commentPinClicked";
|
|
61
61
|
readonly COMMENT_BUBBLE_CLICKED: "commentBubbleClicked";
|
|
62
62
|
readonly COMMENT_TOOL_CLICK: "commentToolClick";
|
|
63
|
+
readonly COMMENT_TOOL_CLICKED: "commentToolClicked";
|
|
63
64
|
readonly SIDEBAR_BUTTON_CLICK: "sidebarButtonClick";
|
|
65
|
+
readonly SIDEBAR_BUTTON_CLICKED: "sidebarButtonClicked";
|
|
64
66
|
readonly ATTACHMENT_DOWNLOAD_CLICKED: "attachmentDownloadClicked";
|
|
65
67
|
readonly COMMENT_SAVED: "commentSaved";
|
|
68
|
+
readonly COMMENT_SAVE_TRIGGERED: "commentSaveTriggered";
|
|
69
|
+
readonly VISIBILITY_OPTION_CLICKED: "visibilityOptionClicked";
|
|
66
70
|
};
|
|
67
71
|
export declare const RecorderEventTypes: {
|
|
68
72
|
readonly TRANSCRIPTION_DONE: "transcriptionDone";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2-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": [
|