@veltdev/sdk-staging 1.0.522 → 1.0.524

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.
@@ -62,3 +62,6 @@ export declare class EditorAccessTimer {
62
62
  */
63
63
  durationLeft?: number;
64
64
  }
65
+ export declare class LiveStateDataConfig {
66
+ listenToNewChangesOnly?: boolean;
67
+ }
@@ -1,5 +1,5 @@
1
1
  // @ts-nocheck
2
- import { SingleEditorConfig, UserEditorAccess, EditorAccessTimer } from '../data/live-state-data.data.model';
2
+ import { SingleEditorConfig, UserEditorAccess, EditorAccessTimer, LiveStateDataConfig, LiveStateDataConfig } from '../data/live-state-data.data.model';
3
3
  import { User } from '../data/user.data.model';
4
4
  import { ServerConnectionState } from '../../utils/enums';
5
5
 
@@ -11,13 +11,13 @@ export declare class LiveStateSyncElement {
11
11
  /**
12
12
  * Gets live state data based on the provided ID.
13
13
  */
14
- getLiveStateData: (liveStateDataId?: string, listenToNewChangesOnly?: boolean) => Observable<any>;
14
+ getLiveStateData: (liveStateDataId?: string, liveStateDataConfig?: LiveStateDataConfig) => Observable<any>;
15
15
 
16
16
  /**
17
17
  * Gets live state data as an observable based on the provided ID.
18
18
  * @deprecated Use `getLiveStateData` instead
19
19
  */
20
- getLiveStateData$: (liveStateDataId?: string, listenToNewChangesOnly?: boolean) => Observable<any>;
20
+ getLiveStateData$: (liveStateDataId?: string, liveStateDataConfig?: LiveStateDataConfig) => Observable<any>;
21
21
 
22
22
  /**
23
23
  * Sets live state data for the provided ID and data.
@@ -215,6 +215,7 @@ export declare class Constants {
215
215
  VELT_SHADOW_DOM_INTERNAL: string;
216
216
  };
217
217
  static ATTRIBUTES: {
218
+ DATA_ID: string;
218
219
  VELT_ID: string;
219
220
  VELT_ELEMENT: string;
220
221
  VELT_ANNOTATION_ID: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk-staging",
3
- "version": "1.0.522",
3
+ "version": "1.0.524",
4
4
  "description": "",
5
5
  "main": "velt.js",
6
6
  "scripts": {