@veltdev/types-dev 4.5.2-beta.19 → 4.5.2-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.
- package/app/client/snippyly.model.d.ts +3 -8
- package/app/models/data/autocomplete.data.model.d.ts +0 -6
- package/app/models/data/comment-events.data.model.d.ts +0 -8
- package/app/models/data/live-state-data.data.model.d.ts +0 -18
- package/app/models/data/user-iam.data.model.d.ts +0 -3
- package/app/models/data/user-resolver.data.model.d.ts +0 -28
- package/app/models/element/comment-element.model.d.ts +1 -21
- package/app/models/element/live-state-sync-element.model.d.ts +3 -13
- package/app/utils/constants.d.ts +0 -1
- package/app/utils/enums.d.ts +0 -1
- package/package.json +1 -1
|
@@ -29,7 +29,7 @@ import { VeltEventMetadata } from "../models/data/event-metadata.data.model";
|
|
|
29
29
|
import { CoreEventTypesMap } from "../models/data/core-events.data.model";
|
|
30
30
|
import { Document, SetDocumentsRequestOptions, FetchDocumentsRequest, FetchFoldersRequest, UpdateDocumentsRequest, UpdateLocationsRequest } from "../models/data/document.data.model";
|
|
31
31
|
import { FetchDocumentsResponse, FetchFoldersResponse } from "../models/data/document-events.data.model";
|
|
32
|
-
import { UserDataProvider
|
|
32
|
+
import { UserDataProvider } from "../models/data/user-resolver.data.model";
|
|
33
33
|
import { VeltDataProvider } from "../models/data/provider.data.model";
|
|
34
34
|
import { VeltEncryptionProvider } from "../models/data/encryption-provider.data.model";
|
|
35
35
|
import { VeltResetButtonStateConfig } from "../models/data/button.data.model";
|
|
@@ -277,11 +277,6 @@ export declare class Snippyly {
|
|
|
277
277
|
*/
|
|
278
278
|
getUserRole$: () => Observable<string | null>;
|
|
279
279
|
|
|
280
|
-
/**
|
|
281
|
-
* To get user permissions.
|
|
282
|
-
*/
|
|
283
|
-
getUserPermissions: (request?: GetUserPermissionsRequest) => Promise<GetUserPermissionsResponse>;
|
|
284
|
-
|
|
285
280
|
/**
|
|
286
281
|
* To check if plan is expired or not.
|
|
287
282
|
*/
|
|
@@ -362,8 +357,8 @@ export declare class Snippyly {
|
|
|
362
357
|
disableLogs: (config?: DisableLogsConfig) => void;
|
|
363
358
|
|
|
364
359
|
/**
|
|
365
|
-
|
|
366
|
-
|
|
360
|
+
* To enable safe eval.
|
|
361
|
+
*/
|
|
367
362
|
enableSafeEval: () => void;
|
|
368
363
|
|
|
369
364
|
/**
|
|
@@ -8,7 +8,6 @@ export declare class AutocompleteData {
|
|
|
8
8
|
description?: string;
|
|
9
9
|
type: 'custom' | 'contact' | 'group';
|
|
10
10
|
data: AutocompleteItem[];
|
|
11
|
-
groups?: AutocompleteGroup[];
|
|
12
11
|
}
|
|
13
12
|
export declare class AutocompleteItem {
|
|
14
13
|
id: string;
|
|
@@ -19,7 +18,6 @@ export declare class AutocompleteItem {
|
|
|
19
18
|
svg?: string;
|
|
20
19
|
};
|
|
21
20
|
link?: string;
|
|
22
|
-
groupId?: string;
|
|
23
21
|
}
|
|
24
22
|
export declare class AutocompleteReplaceData {
|
|
25
23
|
text: string;
|
|
@@ -36,10 +34,6 @@ export declare class AutocompleteUserContactReplaceData {
|
|
|
36
34
|
userId: string;
|
|
37
35
|
contact?: UserContact;
|
|
38
36
|
}
|
|
39
|
-
export declare class AutocompleteGroup {
|
|
40
|
-
id: string;
|
|
41
|
-
name: string;
|
|
42
|
-
}
|
|
43
37
|
export declare class AutocompleteChipData extends AutocompleteItem {
|
|
44
38
|
type: 'contact' | 'custom';
|
|
45
39
|
}
|
|
@@ -79,7 +79,6 @@ export type CommentEventTypesMap = {
|
|
|
79
79
|
[CommentEventTypes.COMMENT_SIDEBAR_DATA_UPDATE]: CommentSidebarDataUpdateEvent;
|
|
80
80
|
[CommentEventTypes.AUTOCOMPLETE_SEARCH]: AutocompleteSearchEvent;
|
|
81
81
|
[CommentEventTypes.COMPOSER_CLICKED]: ComposerClickedEvent;
|
|
82
|
-
[CommentEventTypes.LINK_CLICKED]: LinkClickedEvent;
|
|
83
82
|
};
|
|
84
83
|
export interface AddAttachmentEvent {
|
|
85
84
|
annotationId: string;
|
|
@@ -256,10 +255,3 @@ export interface ComposerClickedEvent {
|
|
|
256
255
|
commentAnnotation?: CommentAnnotation;
|
|
257
256
|
metadata?: VeltEventMetadata;
|
|
258
257
|
}
|
|
259
|
-
export interface LinkClickedEvent {
|
|
260
|
-
text: string;
|
|
261
|
-
link: string;
|
|
262
|
-
commentAnnotation: CommentAnnotation;
|
|
263
|
-
commentId: Number;
|
|
264
|
-
metadata?: VeltEventMetadata;
|
|
265
|
-
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SingleEditorState, SingleEditorStatus } from "../../utils/enums";
|
|
2
|
-
import { ErrorEvent } from "./core-events.data.model";
|
|
3
2
|
import { User } from "./user.data.model";
|
|
4
3
|
export declare class LiveStateData {
|
|
5
4
|
/**
|
|
@@ -73,20 +72,3 @@ export declare class EditorAccessTimer {
|
|
|
73
72
|
export declare class LiveStateDataConfig {
|
|
74
73
|
listenToNewChangesOnly?: boolean;
|
|
75
74
|
}
|
|
76
|
-
export interface SetUserAsEditorResponse {
|
|
77
|
-
error?: ErrorEvent;
|
|
78
|
-
}
|
|
79
|
-
export interface LiveStateSingleEditorExternalUserPresence {
|
|
80
|
-
/**
|
|
81
|
-
* True if the same user is present on different tab.
|
|
82
|
-
*/
|
|
83
|
-
sameUserPresentOnTab?: boolean;
|
|
84
|
-
/**
|
|
85
|
-
* True if the different user is present on different tab.
|
|
86
|
-
*/
|
|
87
|
-
differentUserPresentOnTab?: boolean;
|
|
88
|
-
/**
|
|
89
|
-
* User ids of the users present on different tab.
|
|
90
|
-
*/
|
|
91
|
-
userIds?: string[];
|
|
92
|
-
}
|
|
@@ -12,11 +12,8 @@ export declare class UserIAM {
|
|
|
12
12
|
*/
|
|
13
13
|
user: UserContact;
|
|
14
14
|
documentIds?: string[];
|
|
15
|
-
viewerDocumentIds?: string[];
|
|
16
15
|
folderIds?: string[];
|
|
17
|
-
viewerFolderIds?: string[];
|
|
18
16
|
organizationIds?: string[];
|
|
19
|
-
viewerOrganizationIds?: string[];
|
|
20
17
|
documentIdsCount?: number;
|
|
21
18
|
folderIdsCount?: number;
|
|
22
19
|
organizationIdsCount?: number;
|
|
@@ -5,31 +5,3 @@ export interface UserDataProvider {
|
|
|
5
5
|
config?: ResolverConfig;
|
|
6
6
|
resolveTimeout?: number;
|
|
7
7
|
}
|
|
8
|
-
export interface GetUserPermissionsRequest {
|
|
9
|
-
organizationId?: string;
|
|
10
|
-
folderIds?: string[];
|
|
11
|
-
documentIds?: string[];
|
|
12
|
-
userIds?: string[];
|
|
13
|
-
}
|
|
14
|
-
export interface GetUserPermissionsResponse {
|
|
15
|
-
[userId: string]: {
|
|
16
|
-
folders?: {
|
|
17
|
-
[folderId: string]: {
|
|
18
|
-
accessRole: 'editor' | 'viewer';
|
|
19
|
-
expiresAt?: number;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
organization?: {
|
|
23
|
-
[organizationId: string]: {
|
|
24
|
-
accessRole: 'editor' | 'viewer';
|
|
25
|
-
expiresAt?: number;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
documents?: {
|
|
29
|
-
[documentId: string]: {
|
|
30
|
-
accessRole: 'editor' | 'viewer';
|
|
31
|
-
expiresAt?: number;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
}
|
|
@@ -1208,16 +1208,6 @@ export declare class CommentElement {
|
|
|
1208
1208
|
*/
|
|
1209
1209
|
public disableFilterGhostCommentsInSidebar: () => void;
|
|
1210
1210
|
|
|
1211
|
-
/**
|
|
1212
|
-
* To enable link callback
|
|
1213
|
-
*/
|
|
1214
|
-
public enableLinkCallback: () => void;
|
|
1215
|
-
|
|
1216
|
-
/**
|
|
1217
|
-
* To disable link callback
|
|
1218
|
-
*/
|
|
1219
|
-
public disableLinkCallback: () => void;
|
|
1220
|
-
|
|
1221
1211
|
constructor();
|
|
1222
1212
|
/**
|
|
1223
1213
|
* Subscribe to comments on the current document.
|
|
@@ -2405,14 +2395,4 @@ export declare class CommentElement {
|
|
|
2405
2395
|
* To disable filter ghost comments in sidebar
|
|
2406
2396
|
*/
|
|
2407
2397
|
private _disableFilterGhostCommentsInSidebar;
|
|
2408
|
-
|
|
2409
|
-
/**
|
|
2410
|
-
* To enable link callback
|
|
2411
|
-
*/
|
|
2412
|
-
private _enableLinkCallback;
|
|
2413
|
-
|
|
2414
|
-
/**
|
|
2415
|
-
* To disable link callback
|
|
2416
|
-
*/
|
|
2417
|
-
private _disableLinkCallback;
|
|
2418
|
-
}
|
|
2398
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
+
import { SingleEditorConfig, UserEditorAccess, EditorAccessTimer, LiveStateDataConfig, SetLiveStateDataConfig } from '../data/live-state-data.data.model';
|
|
3
|
+
import { User } from '../data/user.data.model';
|
|
2
4
|
import { ServerConnectionState } from '../../utils/enums';
|
|
3
|
-
import { EditorAccessTimer, LiveStateDataConfig, LiveStateSingleEditorExternalUserPresence, SetLiveStateDataConfig, SetUserAsEditorResponse, SingleEditorConfig, UserEditorAccess } from '../data/live-state-data.data.model';
|
|
4
5
|
import { LiveStateEventTypesMap } from '../data/live-state-events.data.model';
|
|
5
|
-
import { User } from '../data/user.data.model';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Represents the synchronization element for live state.
|
|
@@ -54,7 +54,7 @@ export declare class LiveStateSyncElement {
|
|
|
54
54
|
/**
|
|
55
55
|
* Sets the current user as an editor.
|
|
56
56
|
*/
|
|
57
|
-
setUserAsEditor: () =>
|
|
57
|
+
setUserAsEditor: () => void;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* Resets the user access.
|
|
@@ -142,11 +142,6 @@ export declare class LiveStateSyncElement {
|
|
|
142
142
|
*/
|
|
143
143
|
onServerConnectionStateChange: () => Observable<ServerConnectionState>;
|
|
144
144
|
|
|
145
|
-
/**
|
|
146
|
-
* To update user presence for single editor mode
|
|
147
|
-
*/
|
|
148
|
-
updateUserPresence: (userPresence: LiveStateSingleEditorExternalUserPresence) => void;
|
|
149
|
-
|
|
150
145
|
/**
|
|
151
146
|
* Subscribe to live state events
|
|
152
147
|
*/
|
|
@@ -290,11 +285,6 @@ export declare class LiveStateSyncElement {
|
|
|
290
285
|
*/
|
|
291
286
|
private _onServerConnectionStateChange;
|
|
292
287
|
|
|
293
|
-
/**
|
|
294
|
-
* To update user presence for single editor mode
|
|
295
|
-
*/
|
|
296
|
-
private _updateUserPresence;
|
|
297
|
-
|
|
298
288
|
/**
|
|
299
289
|
* Subscribe to live state events
|
|
300
290
|
*/
|
package/app/utils/constants.d.ts
CHANGED
package/app/utils/enums.d.ts
CHANGED
|
@@ -56,7 +56,6 @@ export declare const CommentEventTypes: {
|
|
|
56
56
|
readonly COMMENT_SIDEBAR_DATA_UPDATE: "commentSidebarDataUpdate";
|
|
57
57
|
readonly AUTOCOMPLETE_SEARCH: "autocompleteSearch";
|
|
58
58
|
readonly COMPOSER_CLICKED: "composerClicked";
|
|
59
|
-
readonly LINK_CLICKED: "linkClicked";
|
|
60
59
|
};
|
|
61
60
|
export declare const RecorderEventTypes: {
|
|
62
61
|
readonly TRANSCRIPTION_DONE: "transcriptionDone";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/types-dev",
|
|
3
|
-
"version": "4.5.2-beta.
|
|
3
|
+
"version": "4.5.2-beta.2",
|
|
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": [
|