@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.
- package/app/models/data/cursor-user.data.model.d.ts +4 -0
- package/app/models/data/presence-user.data.model.d.ts +4 -0
- package/app/models/data/user.data.model.d.ts +4 -0
- package/app/models/element/comment-element.model.d.ts +61 -0
- package/app/utils/enums.d.ts +4 -0
- package/package.json +1 -1
- package/velt.js +2 -2
|
@@ -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
|
*
|
|
@@ -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
|
}
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -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",
|