@veltdev/sdk 3.0.41 → 3.0.43

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.
@@ -20,3 +20,14 @@ export declare class Selection {
20
20
  targetTextRange?: TargetTextRange | null;
21
21
  pageInfo: PageInfo;
22
22
  }
23
+ export declare enum UserIndicatorPosition {
24
+ Start = "start",
25
+ End = "end"
26
+ }
27
+ export declare enum UserIndicatorType {
28
+ Avatar = "avatar",
29
+ Label = "label"
30
+ }
31
+ export declare class LiveSelectionData {
32
+ [userIdHash: string]: Selection;
33
+ }
@@ -863,6 +863,12 @@ export declare class CommentElement {
863
863
  */
864
864
  public disableSidebarCustomActions: () => void;
865
865
 
866
+ // /**
867
+ // * To get comment navigation button click
868
+ // * @returns comment navigation button click
869
+ // */
870
+ // public onCommentNavigationButtonClick: () => Observable<any>;
871
+
866
872
  constructor();
867
873
  /**
868
874
  * Subscribe to comments on the current document.
@@ -1712,4 +1718,10 @@ export declare class CommentElement {
1712
1718
  * To disable comment sidebar custom filter mode
1713
1719
  */
1714
1720
  private _disableSidebarCustomActions;
1715
- }
1721
+
1722
+ // /**
1723
+ // * To get comment navigation button click
1724
+ // * @returns comment navigation button click
1725
+ // */
1726
+ // private _onCommentNavigationButtonClick;
1727
+ }
@@ -1,4 +1,5 @@
1
1
  // @ts-nocheck
2
+ import { LiveSelectionData, UserIndicatorPosition, UserIndicatorType } from "../data/selection.model";
2
3
  export declare class SelectionElement {
3
4
  /**
4
5
  * To enable selections
@@ -8,7 +9,53 @@ export declare class SelectionElement {
8
9
  /**
9
10
  * To disable selections
10
11
  */
11
- disableLiveSelection: () => void;
12
+ disableLiveSelection: () => void;
13
+
14
+ /**
15
+ * To enable user indicator
16
+ */
17
+ enableUserIndicator: () => void;
18
+
19
+ /**
20
+ * To disable user indicator
21
+ */
22
+ disableUserIndicator: () => void;
23
+
24
+ /**
25
+ * To set user indicator position
26
+ */
27
+ setUserIndicatorPosition: (position: UserIndicatorPosition) => void;
28
+
29
+ /**
30
+ * To set user indicator type
31
+ */
32
+ setUserIndicatorType: (type: UserIndicatorType) => void;
33
+
34
+ /**
35
+ * To enable default elements tracking
36
+ */
37
+ enableDefaultElementsTracking: () => void;
38
+
39
+ /**
40
+ * To disable default elements tracking
41
+ */
42
+ disableDefaultElementsTracking: () => void;
43
+
44
+ /**
45
+ * To enable default styling
46
+ */
47
+ enableDefaultStyling: () => void;
48
+
49
+ /**
50
+ * To disable default styling
51
+ */
52
+ disableDefaultStyling: () => void;
53
+
54
+ /**
55
+ * To get live selection data
56
+ */
57
+ getLiveSelectionData: () => Observable<LiveSelectionData | null>;
58
+
12
59
  constructor();
13
60
 
14
61
  /**
@@ -20,4 +67,49 @@ export declare class SelectionElement {
20
67
  * To disable selections
21
68
  */
22
69
  private _disableLiveSelection;
23
- }
70
+
71
+ /**
72
+ * To enable user indicator
73
+ */
74
+ private _enableUserIndicator;
75
+
76
+ /**
77
+ * To disable user indicator
78
+ */
79
+ private _disableUserIndicator;
80
+
81
+ /**
82
+ * To set user indicator position
83
+ */
84
+ private _setUserIndicatorPosition;
85
+
86
+ /**
87
+ * To set user indicator type
88
+ */
89
+ private _setUserIndicatorType;
90
+
91
+ /**
92
+ * To enable default elements tracking
93
+ */
94
+ private _enableDefaultElementsTracking;
95
+
96
+ /**
97
+ * To disable default elements tracking
98
+ */
99
+ private _disableDefaultElementsTracking;
100
+
101
+ /**
102
+ * To enable default styling
103
+ */
104
+ private _enableDefaultStyling;
105
+
106
+ /**
107
+ * To disable default styling
108
+ */
109
+ private _disableDefaultStyling;
110
+
111
+ /**
112
+ * To get live selection data
113
+ */
114
+ private _getLiveSelectionData;
115
+ }
@@ -62,6 +62,10 @@ export declare class Constants {
62
62
  static SNIPPYLY_HIGHLIGHT_USER: string;
63
63
  static SNIPPYLY_HIGHLIGHT_USER_NAME: string;
64
64
  static SNIPPYLY_HIGHLIGHT_USER_TEXT: string;
65
+ static VELT_LIVE_SELECTION_ON_ELEMENT: string;
66
+ static VELT_LIVE_SELECTION_ON_ELEMENT_DEFAULT: string;
67
+ static VELT_LIVE_SELECTION_ON_TEXT: string;
68
+ static VELT_LIVE_SELECTION_ON_TEXT_DEFAULT: string;
65
69
  static VELT_IGNORE_CHANGE_DETECTION: string;
66
70
  static VELT_CUSTOM_CSS: string;
67
71
  static TAGS: {
@@ -260,6 +264,9 @@ export declare class Constants {
260
264
  DEFAULT_CURSOR: string;
261
265
  VELT_HUDDLE_ON_CURSOR_MODE: string;
262
266
  VELT_SELECTION_ENABLED: string;
267
+ VELT_LIVE_SELECTION_ENABLED: string;
268
+ VELT_LIVE_SELECTION_USER_INDICATOR_POSITION: string;
269
+ VELT_LIVE_SELECTION_USER_INDICATOR_TYPE: string;
263
270
  VELT_SELECTION_CONFIG: string;
264
271
  VELT_POPOVER_MODE: string;
265
272
  VELT_ELEMENT_CACHE_ID: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "3.0.41",
3
+ "version": "3.0.43",
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": [