@veltdev/sdk 1.0.167 → 1.0.169

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.
@@ -158,6 +158,7 @@ export declare class CommentAnnotation {
158
158
  context?: any;
159
159
  iam: CommentIAMConfig;
160
160
  isPageAnnotation?: boolean;
161
+ targetInlineCommentElementId?: string;
161
162
  inlineCommentSectionConfig?: InlineCommentSectionConfig;
162
163
  }
163
164
  export declare class GhostComment {
@@ -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
  *
@@ -1,4 +1,5 @@
1
1
  import { AreaStatus, ArrowStatus, CommentStatus, HuddleActionTypes, TagStatus, UserActionTypes } from "../../utils/enums";
2
+ import { CommentAnnotation } from "./comment-annotation.data.model";
2
3
  import { DocumentMetadata } from "./document-metadata.model";
3
4
  import { DocumentUser } from "./document-user.data.model";
4
5
  import { Location } from "./location.model";
@@ -126,4 +127,12 @@ export declare class Notification {
126
127
  * Is notification for you
127
128
  */
128
129
  forYou?: boolean;
130
+ /**
131
+ * Notification annotation target
132
+ */
133
+ targetAnnotationId?: string;
134
+ /**
135
+ * Notification annotation data
136
+ */
137
+ annotation?: CommentAnnotation;
129
138
  }
@@ -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
  }
@@ -226,6 +226,7 @@ export declare class Constants {
226
226
  VELT_COMMENT_DISABLED: string;
227
227
  VELT_COMMENT_PIN_ACTIVE: string;
228
228
  VELT_INLINE_COMMENT_SECTION_CONFIG: string;
229
+ VELT_TARGET_INLINE_COMMENT_ELEMENT_ID: string;
229
230
  VELT_TAG_PIN_HOST: string;
230
231
  VELT_TAG_PIN_HOST_STATIC: string;
231
232
  VELT_TAG_DISABLED: string;
@@ -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.167",
3
+ "version": "1.0.169",
4
4
  "description": "",
5
5
  "main": "velt.js",
6
6
  "scripts": {