@veltdev/sdk-staging 4.4.0-beta.20 → 4.4.0-beta.21
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.
|
@@ -1122,6 +1122,16 @@ export declare class CommentElement {
|
|
|
1122
1122
|
* To disable comment to nearest allowed element
|
|
1123
1123
|
*/
|
|
1124
1124
|
public disableCommentToNearestAllowedElement: () => void;
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* To enable draft mode
|
|
1128
|
+
*/
|
|
1129
|
+
public enableDraftMode: () => void;
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* To disable draft mode
|
|
1133
|
+
*/
|
|
1134
|
+
public disableDraftMode: () => void;
|
|
1125
1135
|
constructor();
|
|
1126
1136
|
/**
|
|
1127
1137
|
* Subscribe to comments on the current document.
|
|
@@ -2226,4 +2236,14 @@ export declare class CommentElement {
|
|
|
2226
2236
|
* To disable comment to nearest allowed element
|
|
2227
2237
|
*/
|
|
2228
2238
|
private _disableCommentToNearestAllowedElement;
|
|
2239
|
+
|
|
2240
|
+
/**
|
|
2241
|
+
* To enable draft mode
|
|
2242
|
+
*/
|
|
2243
|
+
private _enableDraftMode;
|
|
2244
|
+
|
|
2245
|
+
/**
|
|
2246
|
+
* To disable draft mode
|
|
2247
|
+
*/
|
|
2248
|
+
private _disableDraftMode;
|
|
2229
2249
|
}
|
|
@@ -11,18 +11,18 @@ export declare class LiveStateSyncElement {
|
|
|
11
11
|
/**
|
|
12
12
|
* Gets live state data based on the provided ID.
|
|
13
13
|
*/
|
|
14
|
-
getLiveStateData: (liveStateDataId?: string, liveStateDataConfig?: LiveStateDataConfig) => Observable<
|
|
14
|
+
getLiveStateData: <T = unknown>(liveStateDataId?: string, liveStateDataConfig?: LiveStateDataConfig) => Observable<T>;
|
|
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, liveStateDataConfig?: LiveStateDataConfig) => Observable<
|
|
20
|
+
getLiveStateData$: <T = unknown>(liveStateDataId?: string, liveStateDataConfig?: LiveStateDataConfig) => Observable<T>;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Sets live state data for the provided ID and data.
|
|
24
24
|
*/
|
|
25
|
-
setLiveStateData: (liveStateDataId: string, liveStateData:
|
|
25
|
+
setLiveStateData: <T = unknown>(liveStateDataId: string, liveStateData: T, config?: SetLiveStateDataConfig) => Promise<void>;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Enables the single editor mode.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk-staging",
|
|
3
|
-
"version": "4.4.0-beta.
|
|
3
|
+
"version": "4.4.0-beta.21",
|
|
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": [
|