@veltdev/sdk 4.5.6-beta.6 → 4.5.6-beta.8
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { ServerConnectionState } from '../../utils/enums';
|
|
3
|
-
import { EditorAccessTimer, LiveStateDataConfig, LiveStateSingleEditorExternalUserPresence, SetLiveStateDataConfig, SetUserAsEditorResponse, SingleEditorConfig, UserEditorAccess } from '../data/live-state-data.data.model';
|
|
3
|
+
import { EditorAccessTimer, FetchLiveStateDataRequest, LiveStateDataConfig, LiveStateSingleEditorExternalUserPresence, SetLiveStateDataConfig, SetUserAsEditorResponse, SingleEditorConfig, UserEditorAccess } from '../data/live-state-data.data.model';
|
|
4
4
|
import { LiveStateEventTypesMap } from '../data/live-state-events.data.model';
|
|
5
5
|
import { User } from '../data/user.data.model';
|
|
6
6
|
|
|
@@ -20,6 +20,11 @@ export declare class LiveStateSyncElement {
|
|
|
20
20
|
*/
|
|
21
21
|
getLiveStateData$: <T = unknown>(liveStateDataId?: string, liveStateDataConfig?: LiveStateDataConfig) => Observable<T>;
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Fetches live state data.
|
|
25
|
+
*/
|
|
26
|
+
fetchLiveStateData: <T = unknown>(request?: FetchLiveStateDataRequest) => Promise<T>;
|
|
27
|
+
|
|
23
28
|
/**
|
|
24
29
|
* Sets live state data for the provided ID and data.
|
|
25
30
|
*/
|
|
@@ -178,6 +183,11 @@ export declare class LiveStateSyncElement {
|
|
|
178
183
|
*/
|
|
179
184
|
private _getLiveStateData$;
|
|
180
185
|
|
|
186
|
+
/**
|
|
187
|
+
* Private method for fetching live state data.
|
|
188
|
+
*/
|
|
189
|
+
private _fetchLiveStateData;
|
|
190
|
+
|
|
181
191
|
/**
|
|
182
192
|
* Private method for setting live state data.
|
|
183
193
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "4.5.6-beta.
|
|
3
|
+
"version": "4.5.6-beta.8",
|
|
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": [
|