@veltdev/types-dev 4.4.1-beta.8 → 4.4.1-beta.9
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.
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { SingleEditorConfig, UserEditorAccess, EditorAccessTimer, LiveStateDataConfig, SetLiveStateDataConfig } from '../data/live-state-data.data.model';
|
|
3
3
|
import { User } from '../data/user.data.model';
|
|
4
4
|
import { ServerConnectionState } from '../../utils/enums';
|
|
5
|
+
import { LiveStateEventTypesMap } from '../data/live-state-events.data.model';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Represents the synchronization element for live state.
|
|
@@ -141,6 +142,11 @@ export declare class LiveStateSyncElement {
|
|
|
141
142
|
*/
|
|
142
143
|
onServerConnectionStateChange: () => Observable<ServerConnectionState>;
|
|
143
144
|
|
|
145
|
+
/**
|
|
146
|
+
* Subscribe to live state events
|
|
147
|
+
*/
|
|
148
|
+
on: <T extends keyof LiveStateEventTypesMap>(action: T) => Observable<LiveStateEventTypesMap[T]>;
|
|
149
|
+
|
|
144
150
|
/**
|
|
145
151
|
* Constructor for LiveStateSyncElement.
|
|
146
152
|
*/
|
|
@@ -278,4 +284,9 @@ export declare class LiveStateSyncElement {
|
|
|
278
284
|
* To get server connection state
|
|
279
285
|
*/
|
|
280
286
|
private _onServerConnectionStateChange;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Subscribe to live state events
|
|
290
|
+
*/
|
|
291
|
+
private _on;
|
|
281
292
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { PresenceUser } from "../data/presence-user.data.model";
|
|
4
|
+
import { PresenceEventTypesMap } from "../data/presence-events.data.model";
|
|
4
5
|
export declare class PresenceElement {
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -36,6 +37,11 @@ export declare class PresenceElement {
|
|
|
36
37
|
* To disable adding self to the presence list
|
|
37
38
|
*/
|
|
38
39
|
disableSelf: () => void;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Subscribe to presence events
|
|
43
|
+
*/
|
|
44
|
+
on: <T extends keyof PresenceEventTypesMap>(action: T) => Observable<PresenceEventTypesMap[T]>;
|
|
39
45
|
constructor();
|
|
40
46
|
/**
|
|
41
47
|
* Subscribe to a list of all online users who are either active or inactive on the current document.
|
|
@@ -70,4 +76,9 @@ export declare class PresenceElement {
|
|
|
70
76
|
* To disable adding self to the presence list
|
|
71
77
|
*/
|
|
72
78
|
private _disableSelf;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Subscribe to presence events
|
|
82
|
+
*/
|
|
83
|
+
private _on;
|
|
73
84
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/types-dev",
|
|
3
|
-
"version": "4.4.1-beta.
|
|
3
|
+
"version": "4.4.1-beta.9",
|
|
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": [
|