@veltdev/sdk 1.0.111 → 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.
|
@@ -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
|
}
|