@veltdev/sdk 1.0.40 → 1.0.42

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.
@@ -163,3 +163,20 @@ export declare class GhostComment {
163
163
  */
164
164
  isSameGroup?: boolean;
165
165
  }
166
+ export declare class CommentOnElementConfig {
167
+ targetElement?: {
168
+ targetText: string;
169
+ occurrence: number;
170
+ elementId: string;
171
+ selectAllContent: boolean;
172
+ };
173
+ commentData?: {
174
+ commentText: string;
175
+ commentHtml?: string;
176
+ status: string;
177
+ from: any;
178
+ replaceContentHtml?: string;
179
+ replaceContentText?: string;
180
+ }[];
181
+ status?: string;
182
+ }
@@ -1,6 +1,6 @@
1
1
  // @ts-nocheck
2
2
  import { Observable } from "rxjs";
3
- import { CommentPinAnnotation } from "../data/comment-pin-annotation.data.model";
3
+ import { CommentAnnotation, CommentOnElementConfig } from "../data/comment-annotation.data.model";
4
4
  import { CustomCategory, CustomPriority, CustomStatus } from "../data/custom-filter.data.model";
5
5
  export declare class CommentElement {
6
6
  /**
@@ -8,7 +8,7 @@ export declare class CommentElement {
8
8
  *
9
9
  * Returns Observable<CommentPinAnnotation[] | null>.
10
10
  */
11
- getAllCommentAnnotations: (documentId?: string, documentParams?: object) => Observable<CommentPinAnnotation[] | null>;
11
+ getAllCommentAnnotations: (documentId?: string, documentParams?: object) => Observable<CommentAnnotation[] | null>;
12
12
 
13
13
  /**
14
14
  * To delete selected comments
@@ -516,6 +516,43 @@ export declare class CommentElement {
516
516
  * To disable navigation when comment is clicked in sidebar.
517
517
  */
518
518
  public disableSidebarUrlNavigation: () => void;
519
+
520
+ /**
521
+ * To enable sidebar button on comment dialog.
522
+ */
523
+ public enableSidebarButtonOnCommentDialog: () => void;
524
+
525
+ /**
526
+ * To disable sidebar button on comment dialog.
527
+ */
528
+ public disableSidebarButtonOnCommentDialog: () => void;
529
+
530
+ /**
531
+ * To detect click on sidebar button on comment dialog.
532
+ */
533
+ public onSidebarButtonOnCommentDialogClick: () => Observable<any>;
534
+
535
+ /**
536
+ * To enable reactions in comments
537
+ */
538
+ public enableReactions: () => void;
539
+
540
+ /**
541
+ * To disable reactions in comments
542
+ */
543
+ public disableReactions: () => void;
544
+
545
+ /**
546
+ * To set allowed recordings in comments
547
+ * @param allowedRecordings "all", "none" or "audio", "video", "screen"
548
+ */
549
+ public setRecordings: (allowedRecordings: string | string[]) => void;
550
+
551
+ /**
552
+ * To manually add comment on element.
553
+ * @param data comment data
554
+ */
555
+ public addCommentOnElement: (data: CommentOnElementConfig) => void;
519
556
  constructor();
520
557
  /**
521
558
  * Subscribe to comments on the current document.
@@ -1025,4 +1062,41 @@ export declare class CommentElement {
1025
1062
  * To disable navigation when comment is clicked in sidebar.
1026
1063
  */
1027
1064
  private _disableSidebarUrlNavigation;
1065
+
1066
+ /**
1067
+ * To enable sidebar button on comment dialog.
1068
+ */
1069
+ private _enableSidebarButtonOnCommentDialog;
1070
+
1071
+ /**
1072
+ * To disable sidebar button on comment dialog.
1073
+ */
1074
+ private _disableSidebarButtonOnCommentDialog;
1075
+
1076
+ /**
1077
+ * To detect click on sidebar button on comment dialog.
1078
+ */
1079
+ private _onSidebarButtonOnCommentDialogClick;
1080
+
1081
+ /**
1082
+ * To enable reactions in comments
1083
+ */
1084
+ private _enableReactions;
1085
+
1086
+ /**
1087
+ * To disable reactions in comments
1088
+ */
1089
+ private _disableReactions;
1090
+
1091
+ /**
1092
+ * To set allowed recordings in comments
1093
+ * @param allowedRecordings "all", "none" or "audio", "video", "screen"
1094
+ */
1095
+ private _setRecordings;
1096
+
1097
+ /**
1098
+ * To manually add comment on element.
1099
+ * @param data comment data
1100
+ */
1101
+ private _addCommentOnElement;
1028
1102
  }
@@ -269,6 +269,7 @@ export declare class Constants {
269
269
  SNIPPYLY_COMMENT_DIALOG_AUTO_POPULATE_TEXT: string;
270
270
  SNIPPYLY_HUDDLE_DATA: string;
271
271
  VELT_TAB_ID: string;
272
+ VELT_COMMENT_SIDEBAR_FILTERS_RESET: string;
272
273
  };
273
274
  static LOCAL_STORAGE: {
274
275
  SNIPPYLY_DEFAULT_MEDIA_SOURCE_OPTIONS: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "1.0.40",
3
+ "version": "1.0.42",
4
4
  "description": "",
5
5
  "main": "velt.js",
6
6
  "scripts": {