@veltdev/types-dev 3.0.118 → 3.0.120

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.
@@ -34,23 +34,24 @@ export declare class CommentSidebarFilters {
34
34
  name?: string;
35
35
  }[];
36
36
  }
37
- export interface CommentSidebarActionsConfig {
37
+ export interface CommentSidebarCustomActionsState {
38
38
  [key: string]: boolean;
39
39
  }
40
- export interface CommentSidebarDataConfig {
41
- actions: CommentSidebarActionsConfig;
40
+ export interface CommentSidebarCustomActionEventData {
41
+ actions: CommentSidebarCustomActionsState;
42
42
  data: CommentAnnotation[];
43
43
  unreadDataMap: {
44
44
  [commentAnnotationId: string]: number;
45
45
  };
46
46
  systemFilteredData: CommentAnnotation[];
47
47
  }
48
- export interface CommentSidebarData {
49
- type: 'group';
50
- data: {
51
- displayName: string;
52
- isExpanded: boolean;
53
- annotations: CommentAnnotation[];
54
- };
48
+ export declare class CommentSidebarData {
49
+ groupId?: string;
50
+ groupName?: string;
51
+ isExpanded?: boolean;
52
+ annotations: CommentAnnotation[];
53
+ }
54
+ export declare class CommentSidebarDataOptions {
55
+ grouping?: boolean;
55
56
  }
56
57
  export {};
@@ -54,6 +54,7 @@ export declare class Comment {
54
54
  * Auto generated.
55
55
  */
56
56
  lastUpdated?: Date;
57
+ createdAt?: any;
57
58
  status: 'added' | 'updated';
58
59
  /**
59
60
  * List of attachments.
@@ -4,7 +4,7 @@ import { CommentAnnotation, CommentOnElementConfig, CommentSelectionChangeData,
4
4
  import { CustomCategory, CustomPriority, CustomStatus } from "../data/custom-filter.data.model";
5
5
  import { CustomAnnotationDropdownData } from "../data/custom-chip-dropdown.data.model";
6
6
  import { AutocompleteData } from "../data/autocomplete.data.model";
7
-
7
+ import { CommentSidebarCustomActionEventData, CommentSidebarData, CommentSidebarDataOptions } from "../data/comment-sidebar-config.model";
8
8
  export { ReactionMap } from '../data/reaction-annotation.data.model';
9
9
  export declare class CommentElement {
10
10
  /**
@@ -827,41 +827,41 @@ export declare class CommentElement {
827
827
  * Subscribe to comment sidebar action button click
828
828
  * @returns comment sidebar data
829
829
  */
830
- public onCommentSidebarActionButtonClick: () => Observable<CommentSidebarDataConfig | null>;
830
+ public onCommentSidebarActionButtonClick: () => Observable<CommentSidebarCustomActionEventData | null>;
831
831
 
832
832
  /**
833
833
  * To set comment sidebar data
834
834
  * @param data comment sidebar data
835
835
  */
836
- public setCommentSidebarData: (data: CommentSidebarData[]) => void;
836
+ public setCommentSidebarData: (data: CommentSidebarData[], options?: CommentSidebarDataOptions) => void;
837
837
 
838
838
  /**
839
839
  * Subscribe to comment sidebar init
840
840
  * @returns comment sidebar data
841
841
  */
842
- public onCommentSidebarInit: () => Observable<CommentSidebarDataConfig | null>;
842
+ public onCommentSidebarInit: () => Observable<CommentSidebarCustomActionEventData | null>;
843
843
 
844
844
  /**
845
845
  * Subscribe to comment sidebar data
846
846
  * @returns comment sidebar data
847
847
  */
848
- public onCommentSidebarData: () => Observable<CommentSidebarDataConfig | null>;
848
+ public onCommentSidebarData: () => Observable<CommentSidebarCustomActionEventData | null>;
849
849
 
850
850
  /**
851
851
  * To set comment sidebar default actions config
852
852
  * @param data comment sidebar default actions config
853
853
  */
854
- public setCommentSidebarDefaultActionsConfig: (data: CommentSidebarActionsConfig) => void;
854
+ public setCommentSidebarDefaultCustomActions: (data: CommentSidebarCustomActionsState) => void;
855
855
 
856
856
  /**
857
857
  * To enable comment sidebar custom filter mode
858
858
  */
859
- public enableCommentSidebarCustomFilterMode: () => void;
859
+ public enableSidebarCustomActions: () => void;
860
860
 
861
861
  /**
862
862
  * To disable comment sidebar custom filter mode
863
863
  */
864
- public disableCommentSidebarCustomFilterMode: () => void;
864
+ public disableSidebarCustomActions: () => void;
865
865
 
866
866
  constructor();
867
867
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types-dev",
3
- "version": "3.0.118",
3
+ "version": "3.0.120",
4
4
  "description": "Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.",
5
5
  "homepage": "https://velt.dev",
6
6
  "keywords": [