@veltdev/sdk 4.5.4 → 4.5.6-beta.1
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.
- package/app/models/data/document-paths.data.model.d.ts +8 -0
- package/app/models/data/heartbeat.data.model.d.ts +10 -0
- package/app/models/data/live-state-data-map.data.model.d.ts +7 -6
- package/app/models/element/live-state-sync-element.model.d.ts +20 -0
- package/app/utils/constants.d.ts +2 -0
- package/models.d.ts +1 -0
- package/package.json +1 -1
- package/velt.js +108 -96
|
@@ -41,6 +41,14 @@ export declare class DocumentPaths {
|
|
|
41
41
|
* Huddle path.
|
|
42
42
|
*/
|
|
43
43
|
audioHuddle?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Heartbeat path.
|
|
46
|
+
*/
|
|
47
|
+
heartbeat?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Heartbeat by document path.
|
|
50
|
+
*/
|
|
51
|
+
heartbeatByDocument?: string;
|
|
44
52
|
/**
|
|
45
53
|
* Document Id provided by the user.
|
|
46
54
|
*/
|
|
@@ -11,11 +11,12 @@ export declare class LiveStateDataMap {
|
|
|
11
11
|
*/
|
|
12
12
|
default?: {
|
|
13
13
|
singleEditor?: SingleEditorLiveStateData;
|
|
14
|
-
autoSyncState?:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
autoSyncState?: LiveStateAutoSyncState;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export declare class LiveStateAutoSyncState {
|
|
18
|
+
current?: LiveStateData;
|
|
19
|
+
history?: {
|
|
20
|
+
[liveStateDataId: string]: LiveStateData;
|
|
20
21
|
};
|
|
21
22
|
}
|
|
@@ -147,6 +147,16 @@ export declare class LiveStateSyncElement {
|
|
|
147
147
|
*/
|
|
148
148
|
updateUserPresence: (userPresence: LiveStateSingleEditorExternalUserPresence) => void;
|
|
149
149
|
|
|
150
|
+
/**
|
|
151
|
+
* To enable heartbeat
|
|
152
|
+
*/
|
|
153
|
+
enableHeartbeat: () => void;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* To disable heartbeat
|
|
157
|
+
*/
|
|
158
|
+
disableHeartbeat: () => void;
|
|
159
|
+
|
|
150
160
|
/**
|
|
151
161
|
* Subscribe to live state events
|
|
152
162
|
*/
|
|
@@ -295,6 +305,16 @@ export declare class LiveStateSyncElement {
|
|
|
295
305
|
*/
|
|
296
306
|
private _updateUserPresence;
|
|
297
307
|
|
|
308
|
+
/**
|
|
309
|
+
* To enable heartbeat
|
|
310
|
+
*/
|
|
311
|
+
private _enableHeartbeat;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* To disable heartbeat
|
|
315
|
+
*/
|
|
316
|
+
private _disableHeartbeat;
|
|
317
|
+
|
|
298
318
|
/**
|
|
299
319
|
* Subscribe to live state events
|
|
300
320
|
*/
|
package/app/utils/constants.d.ts
CHANGED
|
@@ -54,6 +54,8 @@ export declare class Constants {
|
|
|
54
54
|
static FIREBASE_PARTIAL_PATH_NOTIFICATIONS: string;
|
|
55
55
|
static FIREBASE_PARTIAL_PATH_ORGANIZATION_NOTIFICATIONS: string;
|
|
56
56
|
static FIREBASE_PARTIAL_PATH_LAST_NOTIFICATION_TIMESTAMP: string;
|
|
57
|
+
static FIREBASE_PARTIAL_PATH_HEARTBEAT: string;
|
|
58
|
+
static FIREBASE_PARTIAL_PATH_HEARTBEAT_BY_DOCUMENT: string;
|
|
57
59
|
static FIREBASE_PARTIAL_PATH_USERS: string;
|
|
58
60
|
static FIREBASE_PARTIAL_PATH_PERMISSIONS_USERS: string;
|
|
59
61
|
static FIREBASE_PARTIAL_PATH_USER_REQUESTS: string;
|
package/models.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export * from './app/models/data/document-iam.data.model';
|
|
|
25
25
|
export * from './app/models/data/document-metadata.model';
|
|
26
26
|
export * from './app/models/data/document-paths.data.model';
|
|
27
27
|
export * from './app/models/data/document-user.data.model';
|
|
28
|
+
export * from './app/models/data/heartbeat.data.model';
|
|
28
29
|
export * from './app/models/data/huddle.model';
|
|
29
30
|
export * from './app/models/data/live-state-data-map.data.model';
|
|
30
31
|
export * from './app/models/data/live-state-data.data.model';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.6-beta.1",
|
|
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": [
|