@veltdev/sdk 1.0.110 → 1.0.112
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.
|
|
@@ -28,6 +28,7 @@ export declare class SingleEditorLiveStateData {
|
|
|
28
28
|
tabId?: string | null;
|
|
29
29
|
} | null;
|
|
30
30
|
tabId?: string | null;
|
|
31
|
+
editorAt?: any;
|
|
31
32
|
}
|
|
32
33
|
export declare class SingleEditorConfig {
|
|
33
34
|
/**
|
|
@@ -50,3 +51,13 @@ export declare class UserEditorAccess {
|
|
|
50
51
|
*/
|
|
51
52
|
isEditorOnCurrentTab?: boolean;
|
|
52
53
|
}
|
|
54
|
+
export declare class EditorAccessTimer {
|
|
55
|
+
/**
|
|
56
|
+
* The time when the editor access was requested.
|
|
57
|
+
*/
|
|
58
|
+
state: 'idle' | 'inProgress' | 'completed';
|
|
59
|
+
/**
|
|
60
|
+
* Duration left for the editor access timer to be completed.
|
|
61
|
+
*/
|
|
62
|
+
durationLeft?: number;
|
|
63
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import { SingleEditorConfig, UserEditorAccess } from '../data/live-state-data.data.model';
|
|
2
|
+
import { SingleEditorConfig, UserEditorAccess, EditorAccessTimer } from '../data/live-state-data.data.model';
|
|
3
3
|
import { User } from '../data/user.data.model';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -129,6 +129,11 @@ export declare class LiveStateSyncElement {
|
|
|
129
129
|
*/
|
|
130
130
|
disableDefaultSingleEditorUI: () => void;
|
|
131
131
|
|
|
132
|
+
/**
|
|
133
|
+
* To get editor access timer
|
|
134
|
+
*/
|
|
135
|
+
getEditorAccessTimer: () => Observable<EditorAccessTimer>;
|
|
136
|
+
|
|
132
137
|
/**
|
|
133
138
|
* Constructor for LiveStateSyncElement.
|
|
134
139
|
*/
|
|
@@ -256,4 +261,9 @@ export declare class LiveStateSyncElement {
|
|
|
256
261
|
* To disable default single editor UI
|
|
257
262
|
*/
|
|
258
263
|
private _disableDefaultSingleEditorUI;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* To get editor access timer
|
|
267
|
+
*/
|
|
268
|
+
private _getEditorAccessTimer;
|
|
259
269
|
}
|