@veltdev/sdk-staging 4.6.13 → 4.7.0-beta.2
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.
|
@@ -399,16 +399,6 @@ export declare class Snippyly {
|
|
|
399
399
|
*/
|
|
400
400
|
disableSafeEval: () => void;
|
|
401
401
|
|
|
402
|
-
/**
|
|
403
|
-
* Enable Firestore persistent cache for offline support.
|
|
404
|
-
*/
|
|
405
|
-
enableFirestorePersistentCache: (config?: { ha?: boolean }) => void;
|
|
406
|
-
|
|
407
|
-
/**
|
|
408
|
-
* Disable Firestore persistent cache.
|
|
409
|
-
*/
|
|
410
|
-
disableFirestorePersistentCache: (config?: { ha?: boolean }) => void;
|
|
411
|
-
|
|
412
402
|
/**
|
|
413
403
|
* To reset the button toggle map.
|
|
414
404
|
*/
|
|
@@ -25,6 +25,13 @@ export declare enum UserResolverSource {
|
|
|
25
25
|
GET_SINGLE_EDITOR_MODE_DATA = "getSingleEditorModeData",
|
|
26
26
|
RESOLVE_USERS_FROM_HUDDLE_MESSAGES = "resolveUsersFromHuddleMessages"
|
|
27
27
|
}
|
|
28
|
+
export declare enum UserResolverModuleName {
|
|
29
|
+
IDENTIFY = "identify/authProvider",
|
|
30
|
+
GET_TEMPORARY_USERS = "getTemporaryUsers",
|
|
31
|
+
GET_USERS = "getUsers",
|
|
32
|
+
GET_HUDDLE_USERS = "getHuddleUsers",
|
|
33
|
+
GET_SINGLE_EDITOR_USERS = "getSingleEditorUsers"
|
|
34
|
+
}
|
|
28
35
|
export declare enum CommentResolverSource {
|
|
29
36
|
RESOLVE_COMMENT_ANNOTATIONS = "resolveCommentAnnotations",
|
|
30
37
|
SAVE_COMMENT_ANNOTATION = "saveCommentAnnotation",
|
|
@@ -50,15 +57,18 @@ export declare enum ReactionResolverSource {
|
|
|
50
57
|
UPDATE_DATA = "updateData",
|
|
51
58
|
DELETE_DATA = "deleteData"
|
|
52
59
|
}
|
|
53
|
-
export type BaseResolverEvent<TEventType, TMethodName> = {
|
|
60
|
+
export type BaseResolverEvent<TEventType, TMethodName, TModuleName> = {
|
|
54
61
|
event: TEventType;
|
|
55
62
|
methodName?: TMethodName;
|
|
63
|
+
moduleName?: TModuleName;
|
|
56
64
|
source?: 'internal' | 'external';
|
|
57
65
|
timestamp?: number;
|
|
58
66
|
uniqueId?: string;
|
|
59
67
|
payload?: any;
|
|
60
68
|
};
|
|
61
|
-
export type PermissionProviderEvent = BaseResolverEvent<PermissionProviderEventType, PermissionSource>;
|
|
69
|
+
export type PermissionProviderEvent = BaseResolverEvent<PermissionProviderEventType, PermissionSource, PermissionProviderModuleName>;
|
|
70
|
+
export declare enum PermissionProviderModuleName {
|
|
71
|
+
}
|
|
62
72
|
export type PermissionProviderEventType = {
|
|
63
73
|
RESOURCE_ACCESS_REQUEST_FORMED: 'resourceAccessRequestFormed';
|
|
64
74
|
RESOURCE_ACCESS_REQUEST_TRIGGERED: 'resourceAccessRequestTriggered';
|
|
@@ -74,7 +84,7 @@ export type PermissionProviderEventType = {
|
|
|
74
84
|
REVOKE_ACCESS_ON_DOCUMENT_UNSET_ERROR: 'revokeAccessOnDocumentUnsetError';
|
|
75
85
|
REVOKE_ACCESS_ON_USER_LOGOUT_ERROR: 'revokeAccessOnUserLogoutError';
|
|
76
86
|
};
|
|
77
|
-
export type UserResolverEvent = BaseResolverEvent<UserResolverEventType, UserResolverSource>;
|
|
87
|
+
export type UserResolverEvent = BaseResolverEvent<UserResolverEventType, UserResolverSource, UserResolverModuleName>;
|
|
78
88
|
export type UserResolverEventType = {
|
|
79
89
|
USER_RESOLUTION_REQUEST_FORMED: 'userResolutionRequestFormed';
|
|
80
90
|
USER_RESOLUTION_REQUEST_TRIGGERED: 'userResolutionRequestTriggered';
|
|
@@ -82,7 +92,12 @@ export type UserResolverEventType = {
|
|
|
82
92
|
USER_RESOLUTION_ERROR: 'userResolutionError';
|
|
83
93
|
USER_RESOLUTION_RESULT_FROM_CACHE: 'userResolutionResultFromCache';
|
|
84
94
|
};
|
|
85
|
-
export type CommentResolverEvent = BaseResolverEvent<CommentResolverEventType, CommentResolverSource>;
|
|
95
|
+
export type CommentResolverEvent = BaseResolverEvent<CommentResolverEventType, CommentResolverSource, CommentResolverModuleName>;
|
|
96
|
+
export declare enum CommentResolverModuleName {
|
|
97
|
+
SET_DOCUMENTS = "setDocuments",
|
|
98
|
+
GET_COMMENT_ANNOTATIONS = "getCommentAnnotations",
|
|
99
|
+
GET_NOTIFICATIONS = "getNotifications"
|
|
100
|
+
}
|
|
86
101
|
export type CommentResolverEventType = {
|
|
87
102
|
COMMENT_RESOLUTION_REQUEST_FORMED: 'commentResolutionRequestFormed';
|
|
88
103
|
COMMENT_RESOLUTION_REQUEST_TRIGGERED: 'commentResolutionRequestTriggered';
|
|
@@ -98,7 +113,9 @@ export type CommentResolverEventType = {
|
|
|
98
113
|
COMMENT_DELETE_RESULT: 'commentDeleteResult';
|
|
99
114
|
COMMENT_DELETE_ERROR: 'commentDeleteError';
|
|
100
115
|
};
|
|
101
|
-
export type AttachmentResolverEvent = BaseResolverEvent<AttachmentResolverEventType, AttachmentResolverSource>;
|
|
116
|
+
export type AttachmentResolverEvent = BaseResolverEvent<AttachmentResolverEventType, AttachmentResolverSource, AttachmentResolverModuleName>;
|
|
117
|
+
export declare enum AttachmentResolverModuleName {
|
|
118
|
+
}
|
|
102
119
|
export type AttachmentResolverEventType = {
|
|
103
120
|
ATTACHMENT_SAVE_REQUEST_FORMED: 'attachmentSaveRequestFormed';
|
|
104
121
|
ATTACHMENT_SAVE_REQUEST_TRIGGERED: 'attachmentSaveRequestTriggered';
|
|
@@ -109,7 +126,11 @@ export type AttachmentResolverEventType = {
|
|
|
109
126
|
ATTACHMENT_DELETE_RESULT: 'attachmentDeleteResult';
|
|
110
127
|
ATTACHMENT_DELETE_ERROR: 'attachmentDeleteError';
|
|
111
128
|
};
|
|
112
|
-
export type ReactionResolverEvent = BaseResolverEvent<ReactionResolverEventType, ReactionResolverSource>;
|
|
129
|
+
export type ReactionResolverEvent = BaseResolverEvent<ReactionResolverEventType, ReactionResolverSource, ReactionResolverModuleName>;
|
|
130
|
+
export declare enum ReactionResolverModuleName {
|
|
131
|
+
SET_DOCUMENTS = "setDocuments",
|
|
132
|
+
GET_REACTION_ANNOTATIONS = "getReactionAnnotations"
|
|
133
|
+
}
|
|
113
134
|
export type ReactionResolverEventType = {
|
|
114
135
|
REACTION_RESOLUTION_REQUEST_FORMED: 'reactionResolutionRequestFormed';
|
|
115
136
|
REACTION_RESOLUTION_REQUEST_TRIGGERED: 'reactionResolutionRequestTriggered';
|
|
@@ -16,8 +16,6 @@ export interface SetDocumentsRequestOptions {
|
|
|
16
16
|
locationId?: string;
|
|
17
17
|
rootDocumentId?: string;
|
|
18
18
|
context?: SetDocumentsContext;
|
|
19
|
-
debounceTime?: number;
|
|
20
|
-
optimisticPermissions?: boolean;
|
|
21
19
|
}
|
|
22
20
|
export interface UpdateDocumentsRequest<T = unknown> {
|
|
23
21
|
organizationId?: string;
|
package/package.json
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
2
|
+
"name": "@veltdev/sdk-staging",
|
|
3
|
+
"version": "4.7.0-beta.2",
|
|
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
|
+
"homepage": "https://velt.dev",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"react",
|
|
8
|
+
"velt",
|
|
9
|
+
"real-time",
|
|
10
|
+
"realtime",
|
|
11
|
+
"toolkit",
|
|
12
|
+
"multiplayer",
|
|
13
|
+
"websockets",
|
|
14
|
+
"collaboration",
|
|
15
|
+
"collaborative",
|
|
16
|
+
"presence",
|
|
17
|
+
"synchronize",
|
|
18
|
+
"rooms",
|
|
19
|
+
"documents",
|
|
20
|
+
"conflict resolution",
|
|
21
|
+
"huddle",
|
|
22
|
+
"crdts",
|
|
23
|
+
"comment",
|
|
24
|
+
"comments",
|
|
25
|
+
"recording",
|
|
26
|
+
"video call",
|
|
27
|
+
"audio call",
|
|
28
|
+
"screen recording",
|
|
29
|
+
"webrtc",
|
|
30
|
+
"cursors",
|
|
31
|
+
"notifications",
|
|
32
|
+
"cord",
|
|
33
|
+
"liveblocks"
|
|
34
|
+
],
|
|
35
|
+
"main": "velt.js",
|
|
36
|
+
"scripts": {
|
|
37
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
38
|
+
"version:update": "node ../update-npm-package.mjs",
|
|
39
|
+
"publish:sdk": "npm publish"
|
|
40
|
+
},
|
|
41
|
+
"author": "",
|
|
42
|
+
"license": "ISC",
|
|
43
|
+
"typings": "./velt.d.ts"
|
|
44
44
|
}
|