@veltdev/sdk 1.0.43 → 1.0.45

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.
@@ -1,3 +1,4 @@
1
+ import { CommentAccessMode } from "../../utils/enums";
1
2
  import { Comment } from "./comment.data.model";
2
3
  import { CursorPosition } from "./cursor-position.data.model";
3
4
  import { CustomCategory, CustomPriority, CustomStatus } from "./custom-filter.data.model";
@@ -153,6 +154,7 @@ export declare class CommentAnnotation {
153
154
  * Custom context data provided by the user
154
155
  */
155
156
  context?: any;
157
+ iam: CommentIAMConfig;
156
158
  }
157
159
  export declare class GhostComment {
158
160
  targetElement?: TargetElement | null;
@@ -180,3 +182,6 @@ export declare class CommentOnElementConfig {
180
182
  }[];
181
183
  status?: string;
182
184
  }
185
+ export declare class CommentIAMConfig {
186
+ accessMode?: CommentAccessMode;
187
+ }
@@ -553,6 +553,17 @@ export declare class CommentElement {
553
553
  * @param data comment data
554
554
  */
555
555
  public addCommentOnElement: (data: CommentOnElementConfig) => void;
556
+
557
+ /**
558
+ * To enable private comment mode to add private comments.
559
+ * This mode can be enabled for admin users only.
560
+ */
561
+ public enablePrivateCommentMode: () => void;
562
+
563
+ /**
564
+ * To disable private comment mode.
565
+ */
566
+ public disablePrivateCommentMode: () => void;
556
567
  constructor();
557
568
  /**
558
569
  * Subscribe to comments on the current document.
@@ -1099,4 +1110,15 @@ export declare class CommentElement {
1099
1110
  * @param data comment data
1100
1111
  */
1101
1112
  private _addCommentOnElement;
1113
+
1114
+ /**
1115
+ * To enable private comment mode to add private comments.
1116
+ * This mode can be enabled for admin users only.
1117
+ */
1118
+ private _enablePrivateCommentMode;
1119
+
1120
+ /**
1121
+ * To disable private comment mode.
1122
+ */
1123
+ private _disablePrivateCommentMode;
1102
1124
  }
@@ -240,6 +240,7 @@ export declare class Constants {
240
240
  VELT_SYNC_ACCESS_AUTO: string;
241
241
  VELT_SYNC_ACCESS_DISABLED: string;
242
242
  VELT_SINGLE_EDITOR_MODE_CONTAINER: string;
243
+ VELT_IFRAME_CONTAINER: string;
243
244
  };
244
245
  static INJECTION_STYLE_PROPS: {
245
246
  /**
@@ -9,6 +9,7 @@ export declare enum CommentStatus {
9
9
  IN_PROGRESS = "inProgress",
10
10
  STATUS_CHANGED = "statusChanged",
11
11
  PRIORITY_CHANGED = "priorityChanged",
12
+ ACCESS_MODE_CHANGED = "accessModeChanged",
12
13
  ACCEPTED = "accepted",
13
14
  REJECTED = "rejected"
14
15
  }
@@ -23,6 +24,7 @@ export declare enum CommentAction {
23
24
  IN_PROGRESS = "inProgress",
24
25
  CHANGE_STATUS = "changeStatus",
25
26
  CHANGE_PRIORITY = "changePriority",
27
+ CHANGE_ACCESS_MODE = "changeAccessMode",
26
28
  ACCEPT = "accept",
27
29
  REJECT = "reject"
28
30
  }
@@ -97,3 +99,7 @@ export declare enum DetectionStrategy {
97
99
  DEFAULT = "default",
98
100
  DYNAMIC_ID = "dynamicId"
99
101
  }
102
+ export declare enum CommentAccessMode {
103
+ PUBLIC = "public",
104
+ PRIVATE = "private"
105
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "1.0.43",
3
+ "version": "1.0.45",
4
4
  "description": "",
5
5
  "main": "velt.js",
6
6
  "scripts": {