@veltdev/sdk 1.0.109 → 1.0.111

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.
@@ -13,6 +13,7 @@ import { LiveStateSyncElement } from "../models/element/live-state-sync-element.
13
13
  import { PresenceElement } from "../models/element/presence-element.model";
14
14
  import { RecorderElement } from "../models/element/recorder-element.model";
15
15
  import { RewriterElement } from "../models/element/rewriter-element.model";
16
+ import { HuddleElement } from "../models/element/huddle-element.model";
16
17
  import { SelectionElement } from "../models/element/selection-element.model";
17
18
  import { ViewsElement } from "../models/element/views-element.model";
18
19
  import { NotificationElement } from "../models/element/notification-element.model";
@@ -33,6 +34,10 @@ export declare class Snippyly {
33
34
  * @param id unique document ID
34
35
  */
35
36
  setDocumentId: (id: string) => void;
37
+ /**
38
+ * Get Document ID
39
+ */
40
+ getDocumentId: () => string;
36
41
  /**
37
42
  * Tell us the custom params of the current document/resource to identify sub document inside a document.
38
43
  * @param params Document Params
@@ -104,6 +109,10 @@ export declare class Snippyly {
104
109
  * Get the Rewriter Object.
105
110
  */
106
111
  getRewriterElement: () => RewriterElement;
112
+ /**
113
+ * Get the Huddle element.
114
+ */
115
+ getHuddleElement: () => HuddleElement;
107
116
  /**
108
117
  * Get the LiveStateSync Object.
109
118
  */
@@ -136,6 +145,11 @@ export declare class Snippyly {
136
145
  * @deprecated This method is deprecated and will be removed in next release. Use `setLocation` method with `appendLocation: true` instead.
137
146
  */
138
147
  addLocation: (location: any) => any;
148
+ /**
149
+ * To set the dark mode of Velt components.
150
+ * @param value {boolean} true/false
151
+ */
152
+ setDarkMode: (darkMode: boolean) => void;
139
153
 
140
154
  /**
141
155
  * To check if user allowed in provided document or not.
@@ -1,34 +1,46 @@
1
1
  // @ts-nocheck
2
2
 
3
+ import { Notification } from "../data/notification.model";
4
+
3
5
  export declare class NotificationElement {
4
6
  /**
5
- * To open notification history
7
+ * To open notification history panel
8
+ */
9
+ openHistoryPanel: () => void;
10
+
11
+ /**
12
+ * To close notification history panel
6
13
  */
7
- openNotificationHistory: () => void;
14
+ closeHistoryPanel: () => void;
8
15
 
9
16
  /**
10
- * To close notification history
17
+ * To toggle notification history panel
11
18
  */
12
- closeNotificationHistory: () => void;
19
+ toggleHistoryPanel: () => void;
13
20
 
14
21
  /**
15
- * To toggle notification history
22
+ * To get notifications data
16
23
  */
17
- toggleNotificationHistory: () => void;
24
+ getNotificationsData: () => Observable<Notification[]>;
18
25
  constructor();
19
26
 
20
27
  /**
21
- * To open notification history
28
+ * To open notification history panel
29
+ */
30
+ private _openHistoryPanel;
31
+
32
+ /**
33
+ * To close notification history panel
22
34
  */
23
- private _openNotificationHistory;
35
+ private _closeHistoryPanel;
24
36
 
25
37
  /**
26
- * To close notification history
38
+ * To toggle notification history panel
27
39
  */
28
- private _closeNotificationHistory;
40
+ private _toggleHistoryPanel;
29
41
 
30
42
  /**
31
- * To toggle notification history
43
+ * To get notifications data
32
44
  */
33
- private _toggleNotificationHistory;
45
+ private _getNotificationsData;
34
46
  }
@@ -202,7 +202,7 @@ export declare class Constants {
202
202
  VELT_VIEW_ANALYTICS: string;
203
203
  VELT_NOTIFICATIONS_TOOL: string;
204
204
  VELT_NOTIFICATIONS_PANEL: string;
205
- VELT_NOTIFICATIONS_HISTORY: string;
205
+ VELT_NOTIFICATIONS_HISTORY_PANEL: string;
206
206
  };
207
207
  static ATTRIBUTES: {
208
208
  VELT_ID: string;
@@ -53,9 +53,10 @@ export declare enum Features {
53
53
  PRESENCE = "presence",
54
54
  TAG = "tag",
55
55
  RECORDER = "recorder",
56
- REWRITER = "rewriter"
56
+ REWRITER = "rewriter",
57
+ LIVE_SELECTION = "liveSelection"
57
58
  }
58
- export type FeatureType = 'area' | 'arrow' | 'audioHuddle' | 'comment' | 'cursor' | 'huddle' | 'liveStateSync' | 'presence' | 'recorder' | 'rewriter' | 'tag';
59
+ export type FeatureType = 'area' | 'arrow' | 'audioHuddle' | 'comment' | 'cursor' | 'huddle' | 'liveStateSync' | 'presence' | 'recorder' | 'rewriter' | 'tag' | 'liveSelection';
59
60
  export declare enum DeviceType {
60
61
  DESKTOP = "Desktop",
61
62
  MOBILE = "Mobile",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "1.0.109",
3
+ "version": "1.0.111",
4
4
  "description": "",
5
5
  "main": "velt.js",
6
6
  "scripts": {
package/types.d.ts CHANGED
@@ -12,4 +12,5 @@ export * from './app/models/element/rewriter-element.model';
12
12
  export * from './app/models/element/selection-element.model';
13
13
  export * from './app/models/element/tag-element.model';
14
14
  export * from './app/models/element/views-element.model';
15
+ export * from './app/models/element/notification-element.model';
15
16
  export * from './models';