@veltdev/sdk 1.0.166 → 1.0.168

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.
@@ -75,6 +75,10 @@ export declare class CursorUser {
75
75
  * This is the color on the avatar border and live cursor, if these features are enabled.
76
76
  */
77
77
  color?: string;
78
+ /**
79
+ * This is the color on the avatar text.
80
+ */
81
+ textColor?: string;
78
82
  /**
79
83
  * Server Timestamp.
80
84
  *
@@ -38,6 +38,10 @@ export declare class PresenceUser {
38
38
  * This is the color on the avatar border and live cursor, if these features are enabled.
39
39
  */
40
40
  color?: string;
41
+ /**
42
+ * This is the color on the avatar text.
43
+ */
44
+ textColor?: string;
41
45
  /**
42
46
  * Server Timestamp.
43
47
  *
@@ -47,6 +47,10 @@ export declare class User {
47
47
  * This is the color on the avatar border and live cursor, if these features are enabled.
48
48
  */
49
49
  color?: string;
50
+ /**
51
+ * This is the color on the avatar text.
52
+ */
53
+ textColor?: string;
50
54
  /**
51
55
  * User type.
52
56
  *
@@ -636,6 +636,37 @@ export declare class CommentElement {
636
636
  * @returns Observable<CommentSelectionChangeData | null>
637
637
  */
638
638
  public onCommentSelectionChange: () => Observable<CommentSelectionChangeData | null>;
639
+
640
+ /**
641
+ * Subscribe to unread comments count by annotation id
642
+ *
643
+ * Returns Observable<{count: string} | null>.
644
+ */
645
+ public getUnreadCommentCountByAnnotationId: (commentAnnotationId: string) => Observable<{ count: number } | null>;
646
+ /**
647
+ * Subscribe to unread comments annotation count on current document
648
+ *
649
+ * Returns Observable<{count: string} | null>.
650
+ */
651
+ public getUnreadCommentAnnotationCountOnCurrentDocument: () => Observable<{ count: number } | null>;
652
+ /**
653
+ * Subscribe to unread comments count on current document
654
+ *
655
+ * Returns Observable<{count: string} | null>.
656
+ */
657
+ public getUnreadCommentCountOnCurrentDocument: () => Observable<{ count: number } | null>;
658
+ /**
659
+ * Subscribe to unread comments annotation count by location id
660
+ *
661
+ * Returns Observable<{count: string} | null>.
662
+ */
663
+ public getUnreadCommentAnnotationCountByLocationId: (locationId: string) => Observable<{ count: number } | null>;
664
+ /**
665
+ * Subscribe to unread comments count by location id
666
+ *
667
+ * Returns Observable<{count: string} | null>.
668
+ */
669
+ public getUnreadCommentCountByLocationId: (locationId: string) => Observable<{ count: number } | null>;
639
670
  constructor();
640
671
  /**
641
672
  * Subscribe to comments on the current document.
@@ -1264,4 +1295,34 @@ export declare class CommentElement {
1264
1295
  * @returns Observable<CommentSelectionChangeData | null>
1265
1296
  */
1266
1297
  private _onCommentSelectionChange;
1298
+
1299
+ /**
1300
+ * To get unread comments count by annotation id
1301
+ * @returns Observable<{count: string} | null>.
1302
+ */
1303
+ private _getUnreadCommentCountByAnnotationId;
1304
+
1305
+ /**
1306
+ * To get unread comments annotation count on current document
1307
+ * @returns Observable<{count: string} | null>.
1308
+ */
1309
+ private _getUnreadCommentAnnotationCountOnCurrentDocument;
1310
+
1311
+ /**
1312
+ * To get unread comments count on current document
1313
+ * @returns Observable<{count: string} | null>.
1314
+ */
1315
+ private _getUnreadCommentCountOnCurrentDocument;
1316
+
1317
+ /**
1318
+ * To get unread comments annotation count by location id
1319
+ * @returns Observable<{count: string} | null>.
1320
+ */
1321
+ private _getUnreadCommentAnnotationCountByLocationId;
1322
+
1323
+ /**
1324
+ * To get unread comments count by location id
1325
+ * @returns Observable<{count: string} | null>.
1326
+ */
1327
+ private _getUnreadCommentCountByLocationId;
1267
1328
  }
@@ -106,6 +106,10 @@ export declare enum ComposerMode {
106
106
  DEFAULT = "default",
107
107
  EXPANDED = "expanded"
108
108
  }
109
+ export declare enum CommentCountType {
110
+ TOTAL = "total",
111
+ UNREAD = "unread"
112
+ }
109
113
  export declare enum ServerConnectionState {
110
114
  ONLINE = "online",
111
115
  OFFLINE = "offline",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "1.0.166",
3
+ "version": "1.0.168",
4
4
  "description": "",
5
5
  "main": "velt.js",
6
6
  "scripts": {