@veltdev/sdk 3.0.35 → 3.0.37

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 { CommentAnnotation } from "./comment-annotation.data.model";
1
2
  import { Location } from "./location.model";
2
3
  declare class FilterTypeConfig {
3
4
  name?: string;
@@ -33,4 +34,23 @@ export declare class CommentSidebarFilters {
33
34
  name?: string;
34
35
  }[];
35
36
  }
37
+ export interface CommentSidebarActionsConfig {
38
+ [key: string]: boolean;
39
+ }
40
+ export interface CommentSidebarDataConfig {
41
+ actions: CommentSidebarActionsConfig;
42
+ data: CommentAnnotation[];
43
+ unreadDataMap: {
44
+ [commentAnnotationId: string]: number;
45
+ };
46
+ systemFilteredData: CommentAnnotation[];
47
+ }
48
+ export interface CommentSidebarData {
49
+ type: 'group';
50
+ data: {
51
+ displayName: string;
52
+ isExpanded: boolean;
53
+ annotations: CommentAnnotation[];
54
+ };
55
+ }
36
56
  export {};
@@ -8,6 +8,10 @@ export declare class PageInfo {
8
8
  * Path of the webpage excluding base url
9
9
  */
10
10
  path?: string;
11
+ /**
12
+ * Query parameters of the webpage
13
+ */
14
+ queryParams?: string;
11
15
  /**
12
16
  * Base URL (domain) of a webpage
13
17
  */
@@ -813,6 +813,55 @@ export declare class CommentElement {
813
813
  */
814
814
  public disableCollapsedComments: () => void;
815
815
 
816
+ /**
817
+ * To enable query params comments
818
+ */
819
+ public enableQueryParamsComments: () => void;
820
+
821
+ /**
822
+ * To disable query params comments
823
+ */
824
+ public disableQueryParamsComments: () => void;
825
+
826
+ /**
827
+ * Subscribe to comment sidebar action button click
828
+ * @returns comment sidebar data
829
+ */
830
+ public onCommentSidebarActionButtonClick: () => Observable<CommentSidebarDataConfig | null>;
831
+
832
+ /**
833
+ * To set comment sidebar data
834
+ * @param data comment sidebar data
835
+ */
836
+ public setCommentSidebarData: (data: CommentSidebarData[]) => void;
837
+
838
+ /**
839
+ * Subscribe to comment sidebar init
840
+ * @returns comment sidebar data
841
+ */
842
+ public onCommentSidebarInit: () => Observable<CommentSidebarDataConfig | null>;
843
+
844
+ /**
845
+ * Subscribe to comment sidebar data
846
+ * @returns comment sidebar data
847
+ */
848
+ public onCommentSidebarData: () => Observable<CommentSidebarDataConfig | null>;
849
+
850
+ /**
851
+ * To set comment sidebar default actions config
852
+ * @param data comment sidebar default actions config
853
+ */
854
+ public setCommentSidebarDefaultActionsConfig: (data: CommentSidebarActionsConfig) => void;
855
+
856
+ /**
857
+ * To enable comment sidebar custom filter mode
858
+ */
859
+ public enableCommentSidebarCustomFilterMode: () => void;
860
+
861
+ /**
862
+ * To disable comment sidebar custom filter mode
863
+ */
864
+ public disableCommentSidebarCustomFilterMode: () => void;
816
865
 
817
866
  constructor();
818
867
  /**
@@ -1613,4 +1662,53 @@ export declare class CommentElement {
1613
1662
  * To disable collapsed comment
1614
1663
  */
1615
1664
  private _disableCollapsedComments;
1616
- }
1665
+
1666
+ /**
1667
+ * To enable query params comments
1668
+ */
1669
+ private _enableQueryParamsComments;
1670
+
1671
+ /**
1672
+ * To disable query params comments
1673
+ */
1674
+ private _disableQueryParamsComments;
1675
+
1676
+ /**
1677
+ * To enable comment sidebar action button click
1678
+ */
1679
+ private _onCommentSidebarActionButtonClick;
1680
+
1681
+ /**
1682
+ * To set comment sidebar data
1683
+ * @param data comment sidebar data
1684
+ */
1685
+ private _setCommentSidebarData;
1686
+
1687
+ /**
1688
+ * To subscribe to comment sidebar init
1689
+ * @returns comment sidebar data
1690
+ */
1691
+ private _onCommentSidebarInit;
1692
+
1693
+ /**
1694
+ * To subscribe to comment sidebar data
1695
+ * @returns comment sidebar data
1696
+ */
1697
+ private _onCommentSidebarData;
1698
+
1699
+ /**
1700
+ * To set comment sidebar default actions config
1701
+ * @param data comment sidebar default actions config
1702
+ */
1703
+ private _setCommentSidebarDefaultActionsConfig;
1704
+
1705
+ /**
1706
+ * To enable comment sidebar custom filter mode
1707
+ */
1708
+ private _enableCommentSidebarCustomFilterMode;
1709
+
1710
+ /**
1711
+ * To disable comment sidebar custom filter mode
1712
+ */
1713
+ private _disableCommentSidebarCustomFilterMode;
1714
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "3.0.35",
3
+ "version": "3.0.37",
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": [