@veltdev/types-dev 1.0.69 → 1.0.71

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.
@@ -0,0 +1,92 @@
1
+ // @ts-nocheck
2
+
3
+ /**
4
+ * Represents the synchronization element for live state.
5
+ */
6
+ export declare class LiveStateSyncElement {
7
+
8
+ /**
9
+ * Gets live state data based on the provided ID.
10
+ */
11
+ getLiveStateData: (liveStateDataId: string) => any;
12
+
13
+ /**
14
+ * Gets live state data as an observable based on the provided ID.
15
+ */
16
+ getLiveStateData$: (liveStateDataId: string) => Observable<any>;
17
+
18
+ /**
19
+ * Sets live state data for the provided ID and data.
20
+ */
21
+ setLiveStateData: (liveStateDataId: string, liveStateData: any) => any;
22
+
23
+ /**
24
+ * Enables the single editor mode.
25
+ */
26
+ enableSingleEditorMode: () => void;
27
+
28
+ /**
29
+ * Disables the single editor mode.
30
+ */
31
+ disableSingleEditorMode: () => void;
32
+
33
+ /**
34
+ * Checks if the current user is an editor. Returns an observable.
35
+ */
36
+ isUserEditor$: () => Observable<boolean | null>;
37
+
38
+ /**
39
+ * Sets the current user as an editor.
40
+ */
41
+ setUserAsEditor: () => void;
42
+
43
+ /**
44
+ * Resets the user access.
45
+ */
46
+ resetUserAccess: () => void;
47
+
48
+ /**
49
+ * Constructor for LiveStateSyncElement.
50
+ */
51
+ constructor();
52
+
53
+ /**
54
+ * Private method for getting live state data.
55
+ */
56
+ private _getLiveStateData;
57
+
58
+ /**
59
+ * Private method for getting live state data as an observable.
60
+ */
61
+ private _getLiveStateData$;
62
+
63
+ /**
64
+ * Private method for setting live state data.
65
+ */
66
+ private _setLiveStateData;
67
+
68
+ /**
69
+ * Private method to enable single editor mode.
70
+ */
71
+ private _enableSingleEditorMode;
72
+
73
+ /**
74
+ * Private method to disable single editor mode.
75
+ */
76
+ private _disableSingleEditorMode;
77
+
78
+ /**
79
+ * Private method to check if the user is an editor.
80
+ */
81
+ private _isUserEditor$;
82
+
83
+ /**
84
+ * Private method to set user as an editor.
85
+ */
86
+ private _setUserAsEditor;
87
+
88
+ /**
89
+ * Private method to reset user access.
90
+ */
91
+ private _resetUserAccess;
92
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types-dev",
3
- "version": "1.0.69",
3
+ "version": "1.0.71",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",