@veltdev/sdk 4.5.2-beta.5 → 4.5.2-beta.7

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.
@@ -8,6 +8,7 @@ export declare class AutocompleteData {
8
8
  description?: string;
9
9
  type: 'custom' | 'contact' | 'group';
10
10
  data: AutocompleteItem[];
11
+ groups?: AutocompleteGroup[];
11
12
  }
12
13
  export declare class AutocompleteItem {
13
14
  id: string;
@@ -18,6 +19,7 @@ export declare class AutocompleteItem {
18
19
  svg?: string;
19
20
  };
20
21
  link?: string;
22
+ groupId?: string;
21
23
  }
22
24
  export declare class AutocompleteReplaceData {
23
25
  text: string;
@@ -34,6 +36,10 @@ export declare class AutocompleteUserContactReplaceData {
34
36
  userId: string;
35
37
  contact?: UserContact;
36
38
  }
39
+ export declare class AutocompleteGroup {
40
+ id: string;
41
+ name: string;
42
+ }
37
43
  export declare class AutocompleteChipData extends AutocompleteItem {
38
44
  type: 'contact' | 'custom';
39
45
  }
@@ -79,6 +79,7 @@ export type CommentEventTypesMap = {
79
79
  [CommentEventTypes.COMMENT_SIDEBAR_DATA_UPDATE]: CommentSidebarDataUpdateEvent;
80
80
  [CommentEventTypes.AUTOCOMPLETE_SEARCH]: AutocompleteSearchEvent;
81
81
  [CommentEventTypes.COMPOSER_CLICKED]: ComposerClickedEvent;
82
+ [CommentEventTypes.LINK_CLICKED]: LinkClickedEvent;
82
83
  };
83
84
  export interface AddAttachmentEvent {
84
85
  annotationId: string;
@@ -250,3 +251,10 @@ export interface ComposerClickedEvent {
250
251
  commentAnnotation?: CommentAnnotation;
251
252
  metadata?: VeltEventMetadata;
252
253
  }
254
+ export interface LinkClickedEvent {
255
+ text: string;
256
+ link: string;
257
+ commentAnnotation: CommentAnnotation;
258
+ commentId: Number;
259
+ metadata?: VeltEventMetadata;
260
+ }
@@ -1203,6 +1203,16 @@ export declare class CommentElement {
1203
1203
  */
1204
1204
  public disableFilterGhostCommentsInSidebar: () => void;
1205
1205
 
1206
+ /**
1207
+ * To enable link callback
1208
+ */
1209
+ public enableLinkCallback: () => void;
1210
+
1211
+ /**
1212
+ * To disable link callback
1213
+ */
1214
+ public disableLinkCallback: () => void;
1215
+
1206
1216
  constructor();
1207
1217
  /**
1208
1218
  * Subscribe to comments on the current document.
@@ -2385,4 +2395,14 @@ export declare class CommentElement {
2385
2395
  * To disable filter ghost comments in sidebar
2386
2396
  */
2387
2397
  private _disableFilterGhostCommentsInSidebar;
2388
- }
2398
+
2399
+ /**
2400
+ * To enable link callback
2401
+ */
2402
+ private _enableLinkCallback;
2403
+
2404
+ /**
2405
+ * To disable link callback
2406
+ */
2407
+ private _disableLinkCallback;
2408
+ }
@@ -54,6 +54,7 @@ export declare const CommentEventTypes: {
54
54
  readonly COMMENT_SIDEBAR_DATA_UPDATE: "commentSidebarDataUpdate";
55
55
  readonly AUTOCOMPLETE_SEARCH: "autocompleteSearch";
56
56
  readonly COMPOSER_CLICKED: "composerClicked";
57
+ readonly LINK_CLICKED: "linkClicked";
57
58
  };
58
59
  export declare const RecorderEventTypes: {
59
60
  readonly TRANSCRIPTION_DONE: "transcriptionDone";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "4.5.2-beta.5",
3
+ "version": "4.5.2-beta.7",
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": [