@veltdev/sdk 4.5.0-beta.60 → 4.5.0-beta.61
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.
|
@@ -4,6 +4,9 @@ export interface CrdtVersion {
|
|
|
4
4
|
state: Uint8Array | number[];
|
|
5
5
|
timestamp: number;
|
|
6
6
|
}
|
|
7
|
+
export interface CrdtVersionWithEncryptedState extends Omit<CrdtVersion, 'state'> {
|
|
8
|
+
encryptedState: string;
|
|
9
|
+
}
|
|
7
10
|
export interface CrdtUpdateDataQuery {
|
|
8
11
|
id: string;
|
|
9
12
|
state: Uint8Array | number[];
|
|
@@ -37,7 +40,7 @@ export interface CrdtOnPresenceChangeQuery {
|
|
|
37
40
|
id: string;
|
|
38
41
|
callback: (data: any) => void;
|
|
39
42
|
}
|
|
40
|
-
export interface
|
|
43
|
+
export interface CrdtSaveVersionQuery {
|
|
41
44
|
id: string;
|
|
42
45
|
versionId: string;
|
|
43
46
|
versionName?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import { CrdtGetDataQuery, CrdtGetVersionQuery, CrdtOnDataChangeQuery, CrdtOnPresenceChangeQuery, CrdtOnRegisteredUserChangeQuery, CrdtOnStateChangeQuery, CrdtRegisterSyncUserQuery, CrdtSetPresenceQuery,
|
|
2
|
+
import { CrdtGetDataQuery, CrdtGetVersionQuery, CrdtOnDataChangeQuery, CrdtOnPresenceChangeQuery, CrdtOnRegisteredUserChangeQuery, CrdtOnStateChangeQuery, CrdtRegisterSyncUserQuery, CrdtSetPresenceQuery, CrdtSaveVersionQuery, CrdtUpdateDataQuery, CrdtUpdateStateQuery } from "../data/crdt.data.model";
|
|
3
3
|
|
|
4
4
|
export declare class CrdtElement {
|
|
5
5
|
/**
|
|
@@ -70,7 +70,7 @@ export declare class CrdtElement {
|
|
|
70
70
|
* @param versionName Version name
|
|
71
71
|
* @param state State data as Uint8Array or number array
|
|
72
72
|
*/
|
|
73
|
-
|
|
73
|
+
saveVersion: (saveVersionQuery: CrdtSaveVersionQuery) => Promise<any>;
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* Get a version of a specific CRDT document
|
|
@@ -149,7 +149,7 @@ export declare class CrdtElement {
|
|
|
149
149
|
* @param versionName Version name
|
|
150
150
|
* @param state State data as Uint8Array or number array
|
|
151
151
|
*/
|
|
152
|
-
private
|
|
152
|
+
private _saveVersion;
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
155
|
* Get a version of a specific CRDT document
|
package/app/utils/constants.d.ts
CHANGED
|
@@ -197,6 +197,7 @@ export declare class Constants {
|
|
|
197
197
|
VELT_RECORDER_CONTROL_PANEL: string;
|
|
198
198
|
VELT_RECORDER_CONTROL_PANEL_INTERNAL: string;
|
|
199
199
|
VELT_RECORDER_PLAYER: string;
|
|
200
|
+
VELT_VIDEO_EDITOR: string;
|
|
200
201
|
VELT_TEXT_HIGHLIGHT: string;
|
|
201
202
|
VELT_COMMENT_TEXT_PORTAL: string;
|
|
202
203
|
VELT_COMMENTS_SIDEBAR: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "4.5.0-beta.
|
|
3
|
+
"version": "4.5.0-beta.61",
|
|
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": [
|