@veltdev/sdk 1.0.62 → 1.0.64

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.
@@ -0,0 +1,29 @@
1
+ import { Location } from "./location.model";
2
+ declare class FilterTypeConfig {
3
+ name?: string;
4
+ enable?: boolean;
5
+ multiSelection?: boolean;
6
+ enableGrouping?: boolean;
7
+ }
8
+ export declare class CommentSidebarFilterConfig {
9
+ location?: FilterTypeConfig;
10
+ people?: FilterTypeConfig;
11
+ priority?: FilterTypeConfig;
12
+ category?: FilterTypeConfig;
13
+ commentType?: FilterTypeConfig;
14
+ }
15
+ export declare class CommentSidebarGroupConfig {
16
+ enable?: boolean;
17
+ name?: string;
18
+ }
19
+ export declare class CommentSidebarFilters {
20
+ location?: Location[];
21
+ people?: {
22
+ userId?: string;
23
+ email?: string;
24
+ }[];
25
+ priority?: string[];
26
+ status?: string[];
27
+ category?: string[];
28
+ }
29
+ export {};
@@ -1,4 +1,8 @@
1
1
  export declare class Location {
2
+ /**
3
+ * Unique identifier for the location.
4
+ */
5
+ id?: string;
2
6
  /**
3
7
  * Name of the location.
4
8
  */
@@ -31,18 +31,6 @@ export declare class CommentElement {
31
31
  */
32
32
  allowedElementIds: (elementIds: string[]) => any;
33
33
 
34
- /**
35
- * To enable floating comments
36
- * @deprecated Use enableFloatingCommentDialog instead
37
- */
38
- enableFloatingComments: () => any;
39
-
40
- /**
41
- * To disable floating comments
42
- * @deprecated Use disableFloatingCommentDialog instead
43
- */
44
- disableFloatingComments: () => any;
45
-
46
34
  /**
47
35
  * To enable floating comment dialog
48
36
  */
@@ -115,15 +103,6 @@ export declare class CommentElement {
115
103
  */
116
104
  disableUpgradeButton: () => any;
117
105
 
118
- /**
119
- * @deprecated Use onCommentModeChange instead
120
- *
121
- * Subscribe to add comment mode change.
122
- *
123
- * Returns Observable<boolean>.
124
- */
125
- addCommentModeChange: () => Observable<boolean>;
126
-
127
106
  /**
128
107
  * Subscribe to comment mode change.
129
108
  *
@@ -131,20 +110,6 @@ export declare class CommentElement {
131
110
  */
132
111
  onCommentModeChange: () => Observable<boolean>;
133
112
 
134
- /**
135
- * Enable attachments feature in comments
136
- *
137
- * @deprecated Use enableAttachments instead
138
- */
139
- enableAttachment: () => any;
140
-
141
- /**
142
- * Disable attachments feature in comments
143
- *
144
- * @deprecated Use disableAttachments instead
145
- */
146
- disableAttachment: () => any;
147
-
148
113
  /**
149
114
  * Enable attachments feature in comments
150
115
  */
@@ -160,15 +125,6 @@ export declare class CommentElement {
160
125
  */
161
126
  isUserGlobalContact: () => Observable<boolean>;
162
127
 
163
- /**
164
- * Enable this feature to show device info in comments
165
- *
166
- * @param showInfo pass `true` to show info, `false` to hide it.
167
- *
168
- * @deprecated Use enableDeviceInfo and disableDeviceInfo instead
169
- */
170
- showDeviceInfo: (showInfo: boolean) => any;
171
-
172
128
  /**
173
129
  * Enable device info in comments
174
130
  */
@@ -199,14 +155,6 @@ export declare class CommentElement {
199
155
  */
200
156
  public disablePersistentCommentMode: () => any;
201
157
 
202
- /**
203
- * To show/hide comment number
204
- * @param show pass `true` to show it, `false` to hide it.
205
- *
206
- * @deprecated Use enableCommentIndex and disableCommentIndex instead
207
- */
208
- public showCommentIndex: (show: boolean) => any;
209
-
210
158
  /**
211
159
  * To show comment number
212
160
  */
@@ -277,20 +225,6 @@ export declare class CommentElement {
277
225
  */
278
226
  public disableStatus: () => any;
279
227
 
280
- /**
281
- * To enable feature to resolve comments
282
- *
283
- * @deprecated Use enableResolveButton instead
284
- */
285
- public enableResolve: () => any;
286
-
287
- /**
288
- * To disable feature to resolve comments
289
- *
290
- * @deprecated Use disableResolveButton instead
291
- */
292
- public disableResolve: () => any;
293
-
294
228
  /**
295
229
  * To enable feature to show resolve button
296
230
  */
@@ -301,20 +235,6 @@ export declare class CommentElement {
301
235
  */
302
236
  public disableResolveButton: () => any;
303
237
 
304
- /**
305
- * To enable feature to show ghost comments
306
- *
307
- * @deprecated Use enableGhostComments instead
308
- */
309
- public enableGhostCommentsInDOM: () => any;
310
-
311
- /**
312
- * To disable feature to show ghost comments
313
- *
314
- * @deprecated Use disableGhostComments instead
315
- */
316
- public disableGhostCommentsInDOM: () => any;
317
-
318
238
  /**
319
239
  * To enable feature to show ghost comments
320
240
  */
@@ -325,20 +245,6 @@ export declare class CommentElement {
325
245
  */
326
246
  public disableGhostComments: () => any;
327
247
 
328
- /**
329
- * To enable feature to show ghost comments message in comment dialog and comment sidebar
330
- *
331
- * @deprecated Use enableGhostCommentsIndicator instead
332
- */
333
- public enableGhostCommentsMessage: () => any;
334
-
335
- /**
336
- * To disable feature to show ghost comments message in comment dialog and comment sidebar
337
- *
338
- * @deprecated Use disableGhostCommentsIndicator instead
339
- */
340
- public disableGhostCommentsMessage: () => any;
341
-
342
248
  /**
343
249
  * To enable feature to show ghost comments message in comment dialog and comment sidebar
344
250
  */
@@ -349,42 +255,18 @@ export declare class CommentElement {
349
255
  */
350
256
  public disableGhostCommentsIndicator: () => any;
351
257
 
352
- /**
353
- * @description Sets custom status filters
354
- * @param statuses
355
- *
356
- * @deprecated Use setCustomStatus instead
357
- */
358
- setCustomStatuses: (statuses: CustomStatus[]) => void;
359
-
360
258
  /**
361
259
  * @description Sets custom status filters
362
260
  * @param statuses
363
261
  */
364
262
  setCustomStatus: (statuses: CustomStatus[]) => void;
365
263
 
366
- /**
367
- * @description Sets custom priority filters
368
- * @param priorities
369
- *
370
- * @deprecated Use setCustomPriority instead
371
- */
372
- setCustomPriorities: (priorities: CustomPriority[]) => void;
373
-
374
264
  /**
375
265
  * @description Sets custom priority filters
376
266
  * @param priorities
377
267
  */
378
268
  setCustomPriority: (priorities: CustomPriority[]) => void;
379
269
 
380
- /**
381
- * @description Sets custom categories filters
382
- * @param categories
383
- *
384
- * @deprecated Use setCustomCategory instead
385
- */
386
- setCustomCategories: (categories: CustomCategory[]) => void;
387
-
388
270
  /**
389
271
  * @description Sets custom categories filters
390
272
  * @param categories
@@ -574,6 +456,22 @@ export declare class CommentElement {
574
456
  * To disable scroll to comment component.
575
457
  */
576
458
  public disableScrollToComponent: () => void;
459
+
460
+ /**
461
+ * To enable user mentions in comments
462
+ */
463
+ public enableUserMentions: () => void;
464
+
465
+ /**
466
+ * To disable user mentions in comments
467
+ */
468
+ public disableUserMentions: () => void;
469
+
470
+ /**
471
+ * To apply filters on comment sidebar.
472
+ * @param filters Filters to be applied on comment sidebar
473
+ */
474
+ public setCommentSidebarFilters: (filters: any) => void;
577
475
  constructor();
578
476
  /**
579
477
  * Subscribe to comments on the current document.
@@ -603,18 +501,6 @@ export declare class CommentElement {
603
501
  */
604
502
  private _allowedElementIds;
605
503
 
606
- /**
607
- * To enable floating comments
608
- * @deprecated Use enableFloatingCommentDialog instead
609
- */
610
- private _enableFloatingComments;
611
-
612
- /**
613
- * To disable floating comments
614
- * @deprecated Use disableFloatingCommentDialog instead
615
- */
616
- private _disableFloatingComments;
617
-
618
504
  /**
619
505
  * To enable floating comment dialog
620
506
  */
@@ -687,15 +573,6 @@ export declare class CommentElement {
687
573
  */
688
574
  private _disableUpgradeButton;
689
575
 
690
- /**
691
- * @deprecated Use onCommentModeChange instead
692
- *
693
- * Subscribe to add comment mode change.
694
- *
695
- * Returns Observable<boolean>.
696
- */
697
- private _addCommentModeChange;
698
-
699
576
  /**
700
577
  * Subscribe to comment mode change.
701
578
  *
@@ -703,20 +580,6 @@ export declare class CommentElement {
703
580
  */
704
581
  private _onCommentModeChange;
705
582
 
706
- /**
707
- * Enable attachments feature in comments
708
- *
709
- * @deprecated Use enableAttachments instead
710
- */
711
- private _enableAttachment;
712
-
713
- /**
714
- * Disable attachments feature in comments
715
- *
716
- * @deprecated Use disableAttachments instead
717
- */
718
- private _disableAttachment;
719
-
720
583
  /**
721
584
  * To enable attachments feature in comments
722
585
  */
@@ -727,15 +590,6 @@ export declare class CommentElement {
727
590
  */
728
591
  private _disableAttachments;
729
592
 
730
- /**
731
- * Enable this feature to show device info in comments
732
- *
733
- * @param showInfo pass `true` to show info, `false` to hide it.
734
- *
735
- * @deprecated Use enableDeviceInfo and disableDeviceInfo instead
736
- */
737
- private _showDeviceInfo;
738
-
739
593
  /**
740
594
  * Enable device info in comments
741
595
  */
@@ -766,14 +620,6 @@ export declare class CommentElement {
766
620
  */
767
621
  private _disablePersistentCommentMode;
768
622
 
769
- /**
770
- * To show/hide comment number
771
- * @param show pass `true` to show it, `false` to hide it.
772
- *
773
- * @deprecated Use enableCommentIndex and disableCommentIndex instead
774
- */
775
- private _showCommentIndex;
776
-
777
623
  /**
778
624
  * To enable comment number
779
625
  */
@@ -844,20 +690,6 @@ export declare class CommentElement {
844
690
  */
845
691
  private _disableStatus;
846
692
 
847
- /**
848
- * To enable feature to resolve comments
849
- *
850
- * @deprecated Use enableResolveButton instead
851
- */
852
- private _enableResolve;
853
-
854
- /**
855
- * To disable feature to resolve comments
856
- *
857
- * @deprecated Use disableResolveButton instead
858
- */
859
- private _disableResolve;
860
-
861
693
  /**
862
694
  * To enable feature to show resolve button
863
695
  */
@@ -868,20 +700,6 @@ export declare class CommentElement {
868
700
  */
869
701
  private _disableResolveButton;
870
702
 
871
- /**
872
- * To enable feature to show ghost comments
873
- *
874
- * @deprecated Use enableGhostComments instead
875
- */
876
- private _enableGhostCommentsInDOM;
877
-
878
- /**
879
- * To disable feature to show ghost comments
880
- *
881
- * @deprecated Use disableGhostComments instead
882
- */
883
- private _disableGhostCommentsInDOM;
884
-
885
703
  /**
886
704
  * To enable feature to show ghost comments
887
705
  */
@@ -892,20 +710,6 @@ export declare class CommentElement {
892
710
  */
893
711
  private _disableGhostComments;
894
712
 
895
- /**
896
- * To enable feature to show ghost comments message in comment dialog and comment sidebar
897
- *
898
- * @deprecated Use enableGhostCommentsIndicator instead
899
- */
900
- private _enableGhostCommentsMessage;
901
-
902
- /**
903
- * To disable feature to show ghost comments message in comment dialog and comment sidebar
904
- *
905
- * @deprecated Use disableGhostCommentsIndicator instead
906
- */
907
- private _disableGhostCommentsMessage;
908
-
909
713
  /**
910
714
  * To enable feature to show ghost comments message in comment dialog and comment sidebar
911
715
  */
@@ -916,42 +720,18 @@ export declare class CommentElement {
916
720
  */
917
721
  private _disableGhostCommentsIndicator;
918
722
 
919
- /**
920
- * @description Sets custom status filters
921
- * @param statuses
922
- *
923
- * @deprecated Use setCustomStatus instead
924
- */
925
- private _setCustomStatuses;
926
-
927
723
  /**
928
724
  * @description Sets custom status filters
929
725
  * @param statuses
930
726
  */
931
727
  private _setCustomStatus;
932
728
 
933
- /**
934
- * @description Sets custom priority filters
935
- * @param priorities
936
- *
937
- * @deprecated Use setCustomPriority instead
938
- */
939
- private _setCustomPriorities;
940
-
941
729
  /**
942
730
  * @description Sets custom priority filters
943
731
  * @param priorities
944
732
  */
945
733
  private _setCustomPriority;
946
734
 
947
- /**
948
- * @description Sets custom categories filters
949
- * @param categories
950
- *
951
- * @deprecated Use setCustomCategory instead
952
- */
953
- private _setCustomCategories;
954
-
955
735
  /**
956
736
  * @description Sets custom categories filters
957
737
  * @param categories
@@ -1141,4 +921,20 @@ export declare class CommentElement {
1141
921
  * To disable scroll to comment component.
1142
922
  */
1143
923
  private _disableScrollToComponent;
924
+
925
+ /**
926
+ * To enable user mentions in comments
927
+ */
928
+ private _enableUserMentions;
929
+
930
+ /**
931
+ * To disable user mentions in comments
932
+ */
933
+ private _disableUserMentions;
934
+
935
+ /**
936
+ * To apply filters on comment sidebar.
937
+ * @param filters Filters to be applied on comment sidebar
938
+ */
939
+ private _setCommentSidebarFilters;
1144
940
  }
package/models.d.ts CHANGED
@@ -44,3 +44,4 @@ export * from './app/models/data/user.data.model';
44
44
  export * from './app/models/data/workspace-iam.data.model';
45
45
  export * from './app/models/data/flock-options.model';
46
46
  export * from './app/models/data/customer-metadata.data.model';
47
+ export * from './app/models/data/comment-sidebar-config.model';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "1.0.62",
3
+ "version": "1.0.64",
4
4
  "description": "",
5
5
  "main": "velt.js",
6
6
  "scripts": {