@veltdev/sdk 2.0.13 → 2.0.15

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.
@@ -21,6 +21,7 @@ import { NotificationElement } from "../models/element/notification-element.mode
21
21
  import { AutocompleteElement } from "../models/element/autocomplete-element.model";
22
22
  import { TagElement } from "../models/element/tag-element.model";
23
23
  import { FeatureType } from "../utils/enums";
24
+ import { UserContact } from "../models/data/user-contact.data.model";
24
25
  export declare class Snippyly {
25
26
  constructor();
26
27
  initConfig: (apiKey: string, config?: Config) => void;
@@ -235,4 +236,9 @@ export declare class Snippyly {
235
236
  * To disable auto translation.
236
237
  */
237
238
  disableAutoTranslation: () => void;
239
+
240
+ /**
241
+ * To update user contact list.
242
+ */
243
+ updateContactList: (userContacts: UserContact[], config?: {merge: boolean}) => void;
238
244
  }
@@ -201,3 +201,6 @@ export declare class InlineCommentSectionConfig {
201
201
  id: string;
202
202
  name?: string;
203
203
  }
204
+ export declare class ManualCommentAnnotationConfig {
205
+ context?: any;
206
+ }
@@ -26,6 +26,8 @@ export declare class UserContact {
26
26
  groupId?: string;
27
27
  source?: string;
28
28
  visibility: 'group' | 'private';
29
+ color?: string;
30
+ textColor?: string;
29
31
  }
30
32
  export declare class SelectedUserContact {
31
33
  /**
@@ -1,6 +1,6 @@
1
1
  // @ts-nocheck
2
2
  import { Observable } from "rxjs";
3
- import { CommentAnnotation, CommentOnElementConfig, CommentSelectionChangeData } from "../data/comment-annotation.data.model";
3
+ import { CommentAnnotation, CommentOnElementConfig, CommentSelectionChangeData, ManualCommentAnnotationConfig } from "../data/comment-annotation.data.model";
4
4
  import { CustomCategory, CustomPriority, CustomStatus } from "../data/custom-filter.data.model";
5
5
  export { ReactionMap } from '../data/reaction-annotation.data.model';
6
6
  export declare class CommentElement {
@@ -694,6 +694,12 @@ export declare class CommentElement {
694
694
  * @param image image base64 string
695
695
  */
696
696
  public setPinCursorImage: (image: string) => void;
697
+
698
+ /**
699
+ * To add manual comment annotation.
700
+ * @param config manual comment annotation config
701
+ */
702
+ public addManualComment: (config: ManualCommentAnnotationConfig) => void;
697
703
  constructor();
698
704
  /**
699
705
  * Subscribe to comments on the current document.
@@ -1379,4 +1385,10 @@ export declare class CommentElement {
1379
1385
  * @param image image base64 string
1380
1386
  */
1381
1387
  private _setPinCursorImage;
1388
+
1389
+ /**
1390
+ * To add manual comment annotation.
1391
+ * @param config manual comment annotation config
1392
+ */
1393
+ private _addManualComment;
1382
1394
  }
@@ -229,6 +229,7 @@ export declare class Constants {
229
229
  VELT_COMMENT_PIN_HOST: string;
230
230
  VELT_COMMENT_PIN_HOST_STATIC: string;
231
231
  VELT_COMMENT_DISABLED: string;
232
+ VELT_MANUAL_COMMENT_CONTAINER: string;
232
233
  VELT_COMMENT_PIN_ACTIVE: string;
233
234
  VELT_INLINE_COMMENT_SECTION_CONFIG: string;
234
235
  VELT_TARGET_INLINE_COMMENT_ELEMENT_ID: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "2.0.13",
3
+ "version": "2.0.15",
4
4
  "description": "",
5
5
  "main": "velt.js",
6
6
  "scripts": {