@veltdev/sdk 1.0.81 → 1.0.83

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.
@@ -40,13 +40,13 @@ export declare class SingleEditorConfig {
40
40
  */
41
41
  singleTabEditor: boolean;
42
42
  }
43
- export declare class UserEditor {
43
+ export declare class UserEditorAccess {
44
44
  /**
45
45
  * True if the user is editor.
46
46
  */
47
- editor?: boolean;
47
+ isEditor?: boolean;
48
48
  /**
49
49
  * True if the user is editor on current tab.
50
50
  */
51
- editorOnCurrentTab?: boolean;
51
+ isEditorOnCurrentTab?: boolean;
52
52
  }
@@ -1,5 +1,5 @@
1
1
  // @ts-nocheck
2
- import { SingleEditorConfig, UserEditor } from '../data/live-state-data.data.model';
2
+ import { SingleEditorConfig, UserEditorAccess } from '../data/live-state-data.data.model';
3
3
 
4
4
  /**
5
5
  * Represents the synchronization element for live state.
@@ -36,12 +36,12 @@ export declare class LiveStateSyncElement {
36
36
  * Checks if the current user is an editor. Returns an observable.
37
37
  * @deprecated Use `isUserEditor` instead
38
38
  */
39
- isUserEditor$: () => Observable<UserEditor | null>;
39
+ isUserEditor$: () => Observable<UserEditorAccess | null>;
40
40
 
41
41
  /**
42
42
  * Checks if the current user is an editor. Returns an observable.
43
43
  */
44
- isUserEditor: () => Observable<UserEditor | null>;
44
+ isUserEditor: () => Observable<UserEditorAccess | null>;
45
45
 
46
46
  /**
47
47
  * To get editor
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "1.0.81",
3
+ "version": "1.0.83",
4
4
  "description": "",
5
5
  "main": "velt.js",
6
6
  "scripts": {