@veltdev/sdk-dev 6.0.0-beta.18 → 6.0.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.
- package/app/client/snippyly.model.d.ts +3 -2
- package/app/models/data/comment-events.data.model.d.ts +0 -29
- package/app/models/data/reaction-resolver.data.model.d.ts +0 -1
- package/app/models/data/selection.model.d.ts +8 -10
- package/app/models/data/user-resolver.data.model.d.ts +9 -11
- package/app/models/data/user.data.model.d.ts +18 -21
- package/app/models/element/activity-element.model.d.ts +1 -0
- package/app/models/element/area-element.model.d.ts +1 -0
- package/app/models/element/arrow-element.model.d.ts +2 -1
- package/app/models/element/autocomplete-element.model.d.ts +1 -0
- package/app/models/element/comment-element.model.d.ts +77 -103
- package/app/models/element/contact-element.model.d.ts +2 -1
- package/app/models/element/crdt-element.model.d.ts +1 -1
- package/app/models/element/cursor-element.model.d.ts +2 -1
- package/app/models/element/huddle-element.model.d.ts +2 -1
- package/app/models/element/live-state-sync-element.model.d.ts +1 -1
- package/app/models/element/notification-element.model.d.ts +2 -33
- package/app/models/element/presence-element.model.d.ts +11 -32
- package/app/models/element/reaction-element.model.d.ts +1 -1
- package/app/models/element/recorder-element.model.d.ts +2 -21
- package/app/models/element/rewriter-element.model.d.ts +1 -43
- package/app/models/element/selection-element.model.d.ts +1 -1
- package/app/models/element/suggestion-element.model.d.ts +1 -0
- package/app/models/element/tag-element.model.d.ts +8 -7
- package/app/models/element/views-element.model.d.ts +1 -1
- package/app/utils/enums.d.ts +82 -95
- package/{chunk-PRVNVPMV.js → chunk-25GEE4UD.js} +1 -1
- package/{chunk-ZMO3MMN3.js → chunk-2HGBJS2C.js} +1 -1
- package/{chunk-HUBK3P3B.js → chunk-2KJNXU43.js} +1 -1
- package/{chunk-SXJORH53.js → chunk-447SWJD2.js} +1 -1
- package/{chunk-CR55B3BL.js → chunk-5B5CQEDX.js} +1 -1
- package/{chunk-NW4FJLNA.js → chunk-5FKOPJVO.js} +7 -7
- package/{chunk-CP4KMRG3.js → chunk-6SOP2T3L.js} +1 -1
- package/{chunk-WV6TZ6ZA.js → chunk-7W553TUZ.js} +1 -1
- package/{chunk-RGP2XXJF.js → chunk-7ZOGXD6Z.js} +1 -1
- package/{chunk-A6I5J2N4.js → chunk-AOHSD4YE.js} +1 -1
- package/{chunk-SQUHH2JX.js → chunk-APIRNTKO.js} +1 -1
- package/{chunk-NGDGJUUI.js → chunk-AVMLJMVU.js} +1 -1
- package/{chunk-XNMJJJRI.js → chunk-BG6MNCDK.js} +1 -1
- package/{chunk-2CQTKYCO.js → chunk-BLIJMW4Z.js} +1 -1
- package/{chunk-EMJBJXH6.js → chunk-BY627CV6.js} +1 -1
- package/{chunk-QHZMUGU5.js → chunk-D3B2IHCD.js} +1 -1
- package/{chunk-S5GDEY2K.js → chunk-DX4SZFHQ.js} +1 -1
- package/{chunk-N4JJS2HM.js → chunk-IXZIBE27.js} +1 -1
- package/{chunk-G3BNRB7R.js → chunk-J6J7I3SW.js} +1 -1
- package/chunk-J7HMAXBH.js +193 -0
- package/{chunk-LCEYWVFK.js → chunk-JFRM6MNS.js} +1 -1
- package/chunk-JWLHBAMV.js +167 -0
- package/{chunk-PB4ALOQE.js → chunk-N4SGYLNB.js} +1 -1
- package/{chunk-X7LR472K.js → chunk-Q7BPHHBS.js} +1 -1
- package/{chunk-IOU2B2OU.js → chunk-QE2MK6NF.js} +1 -1
- package/{chunk-5IHISLEM.js → chunk-SALUJBOS.js} +1 -1
- package/{chunk-WKIVFT2P.js → chunk-TXOYHDVN.js} +1 -1
- package/{chunk-Y346MJJR.js → chunk-UJMFCXYS.js} +1 -1
- package/{chunk-7NW5DBIX.js → chunk-USRSVPHC.js} +1 -1
- package/{chunk-7JE6EGDW.js → chunk-XMYVEF74.js} +1 -1
- package/{chunk-CGYAGTFW.js → chunk-Y6QKEGWK.js} +1 -1
- package/{chunk-YV7SDT6E.js → chunk-YBQBSGLX.js} +1 -1
- package/{chunk-ZHTTBUVQ.js → chunk-ZVY2YW2G.js} +1 -1
- package/package.json +1 -1
- package/types.d.ts +22 -22
- package/velt-activity-log.js +1 -1
- package/velt-area.js +1 -1
- package/velt-arrow.js +1 -1
- package/velt-comment.js +8 -8
- package/velt-crdt.js +1 -1
- package/velt-cursor.js +1 -1
- package/velt-huddle.js +1 -1
- package/velt-live-state-sync.js +1 -1
- package/velt-notification.js +1 -1
- package/velt-presence.js +1 -1
- package/velt-reaction.js +1 -1
- package/velt-recorder.js +1 -1
- package/velt-rewriter.js +1 -1
- package/velt-selection.js +1 -1
- package/velt-tag.js +1 -1
- package/velt-user-invite.js +1 -1
- package/velt-user-request.js +1 -1
- package/velt-video-player.js +1 -1
- package/velt-views.js +1 -1
- package/velt.d.ts +3 -2
- package/velt.js +11 -9
- package/chunk-A5F7PTHM.js +0 -167
- package/chunk-D5PWD4RY.js +0 -193
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
1
2
|
import { Observable } from "rxjs";
|
|
2
3
|
import { Config, DisableLogsConfig } from "../models/data/config.data.model";
|
|
3
4
|
import { DocumentUser } from "../models/data/document-user.data.model";
|
|
4
5
|
import { Location } from "../models/data/location.model";
|
|
5
|
-
import { User,
|
|
6
|
+
import { User, UserOptions, VeltAuthProvider, VeltPermissionProvider } from "../models/data/user.data.model";
|
|
6
7
|
import { CustomCss } from "../models/data/custom-css.data.model";
|
|
7
8
|
import { ActivityElement } from "../models/element/activity-element.model";
|
|
8
9
|
import { AreaElement } from "../models/element/area-element.model";
|
|
@@ -39,7 +40,7 @@ import { HeartbeatConfig, Heartbeat, GetHeartbeatResponse } from "../models/data
|
|
|
39
40
|
export declare class Snippyly {
|
|
40
41
|
constructor();
|
|
41
42
|
initConfig: (apiKey: string, config?: Config) => void;
|
|
42
|
-
identify: (user: User, userOptions?:
|
|
43
|
+
identify: (user: User, userOptions?: UserOptions) => Promise<unknown>;
|
|
43
44
|
setVeltAuthProvider: (veltAuthProvider: VeltAuthProvider) => Promise<User | null>;
|
|
44
45
|
/**
|
|
45
46
|
* Tell us who the currently logged in user is.
|
|
@@ -89,10 +89,6 @@ export type CommentEventTypesMap = {
|
|
|
89
89
|
[CommentEventTypes.COMMENT_TOOL_CLICKED]: CommentToolClickedEvent;
|
|
90
90
|
[CommentEventTypes.SIDEBAR_BUTTON_CLICK]: SidebarButtonClickEvent;
|
|
91
91
|
[CommentEventTypes.SIDEBAR_BUTTON_CLICKED]: SidebarButtonClickedEvent;
|
|
92
|
-
[CommentEventTypes.SIDEBAR_OPEN]: SidebarOpenEvent;
|
|
93
|
-
[CommentEventTypes.SIDEBAR_CLOSE]: SidebarCloseEvent;
|
|
94
|
-
[CommentEventTypes.COMMENT_CLICK]: CommentClickEvent;
|
|
95
|
-
[CommentEventTypes.COMMENT_NAVIGATION_BUTTON_CLICK]: CommentNavigationButtonClickEvent;
|
|
96
92
|
[CommentEventTypes.ATTACHMENT_DOWNLOAD_CLICKED]: AttachmentDownloadClickedEvent;
|
|
97
93
|
[CommentEventTypes.COMMENT_SAVED]: CommentSavedEvent;
|
|
98
94
|
[CommentEventTypes.COMMENT_SAVE_TRIGGERED]: CommentSaveTriggeredEvent;
|
|
@@ -351,31 +347,6 @@ export interface SidebarButtonClickEvent {
|
|
|
351
347
|
}
|
|
352
348
|
export interface SidebarButtonClickedEvent extends SidebarButtonClickEvent {
|
|
353
349
|
}
|
|
354
|
-
/** Fired when the comment sidebar opens. Subscribe via `commentElement.on('sidebarOpen')`. */
|
|
355
|
-
export interface SidebarOpenEvent {
|
|
356
|
-
metadata?: VeltEventMetadata;
|
|
357
|
-
}
|
|
358
|
-
/** Fired when the comment sidebar closes. Subscribe via `commentElement.on('sidebarClose')`. */
|
|
359
|
-
export interface SidebarCloseEvent {
|
|
360
|
-
metadata?: VeltEventMetadata;
|
|
361
|
-
}
|
|
362
|
-
/** Fired when a comment is clicked in the sidebar list. Subscribe via `commentElement.on('commentClick')`. */
|
|
363
|
-
export interface CommentClickEvent {
|
|
364
|
-
documentId?: string | null;
|
|
365
|
-
location?: Location | null;
|
|
366
|
-
targetElementId?: string | null;
|
|
367
|
-
context?: {
|
|
368
|
-
[key: string]: any;
|
|
369
|
-
};
|
|
370
|
-
annotation?: CommentAnnotation;
|
|
371
|
-
metadata?: VeltEventMetadata;
|
|
372
|
-
}
|
|
373
|
-
/**
|
|
374
|
-
* Fired when the navigation ("go to") button on a sidebar comment is clicked.
|
|
375
|
-
* Subscribe via `commentElement.on('commentNavigationButtonClick')`.
|
|
376
|
-
*/
|
|
377
|
-
export interface CommentNavigationButtonClickEvent extends CommentClickEvent {
|
|
378
|
-
}
|
|
379
350
|
export interface AttachmentDownloadClickedEvent {
|
|
380
351
|
annotationId: string;
|
|
381
352
|
commentAnnotation: CommentAnnotation;
|
|
@@ -21,16 +21,14 @@ export declare class Selection {
|
|
|
21
21
|
pageInfo: PageInfo;
|
|
22
22
|
timestamp: number;
|
|
23
23
|
}
|
|
24
|
-
export declare
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
33
|
-
export type UserIndicatorType = (typeof UserIndicatorType)[keyof typeof UserIndicatorType];
|
|
24
|
+
export declare enum UserIndicatorPosition {
|
|
25
|
+
Start = "start",
|
|
26
|
+
End = "end"
|
|
27
|
+
}
|
|
28
|
+
export declare enum UserIndicatorType {
|
|
29
|
+
Avatar = "avatar",
|
|
30
|
+
Label = "label"
|
|
31
|
+
}
|
|
34
32
|
export declare class LiveSelectionData {
|
|
35
33
|
[userIdHash: string]: Selection;
|
|
36
34
|
}
|
|
@@ -61,14 +61,12 @@ export interface GetUserPermissionsResponse {
|
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
export declare
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
export
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
};
|
|
74
|
-
export type UserPermissionAccessRoleResult = (typeof UserPermissionAccessRoleResult)[keyof typeof UserPermissionAccessRoleResult];
|
|
64
|
+
export declare enum UserPermissionAccessRole {
|
|
65
|
+
EDITOR = "editor",
|
|
66
|
+
VIEWER = "viewer"
|
|
67
|
+
}
|
|
68
|
+
export declare enum UserPermissionAccessRoleResult {
|
|
69
|
+
DOES_NOT_EXIST = "does_not_exist",
|
|
70
|
+
PERMISSION_DENIED = "permission_denied",
|
|
71
|
+
SOMETHING_WENT_WRONG = "something_went_wrong"
|
|
72
|
+
}
|
|
@@ -125,20 +125,18 @@ export interface VeltAuthProvider {
|
|
|
125
125
|
generateToken?: () => Promise<string>;
|
|
126
126
|
onError?: (err: unknown) => void;
|
|
127
127
|
}
|
|
128
|
-
export declare
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
export
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
};
|
|
141
|
-
export type PermissionSource = (typeof PermissionSource)[keyof typeof PermissionSource];
|
|
128
|
+
export declare enum RevokeAccessOnType {
|
|
129
|
+
DOCUMENT_UNSET = "document_unset",
|
|
130
|
+
USER_LOGOUT = "user_logout"
|
|
131
|
+
}
|
|
132
|
+
export declare enum PermissionSource {
|
|
133
|
+
SET_DOCUMENTS = "setDocuments",
|
|
134
|
+
IDENTIFY = "identify",
|
|
135
|
+
GET_NOTIFICATIONS = "getNotifications",
|
|
136
|
+
SET_NOTIFICATIONS = "setNotifications",
|
|
137
|
+
REVOKE_ACCESS_ON_USER_LOGOUT = "revokeAccessOnUserLogout",
|
|
138
|
+
REVOKE_ACCESS_ON_DOCUMENT_UNSET = "revokeAccessOnDocumentUnset"
|
|
139
|
+
}
|
|
142
140
|
export interface RevokeAccessOn {
|
|
143
141
|
type: RevokeAccessOnType;
|
|
144
142
|
revokeOrganizationAccess?: boolean;
|
|
@@ -194,13 +192,12 @@ export interface PermissionResolverRequest {
|
|
|
194
192
|
requests: PermissionQuery[];
|
|
195
193
|
};
|
|
196
194
|
}
|
|
197
|
-
export declare
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
}
|
|
203
|
-
export type PermissionResourceType = (typeof PermissionResourceType)[keyof typeof PermissionResourceType];
|
|
195
|
+
export declare enum PermissionResourceType {
|
|
196
|
+
FOLDER = "folder",
|
|
197
|
+
DOCUMENT = "document",
|
|
198
|
+
ORGANIZATION = "organization",
|
|
199
|
+
CONTEXT = "context"
|
|
200
|
+
}
|
|
204
201
|
export interface PermissionQuery {
|
|
205
202
|
userId: string;
|
|
206
203
|
resource: {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
1
2
|
export declare class ArrowElement {
|
|
2
3
|
/**
|
|
3
4
|
* To allow arrow in specific elements only
|
|
4
5
|
* @param elementIds Element ids to be allowed for arrow
|
|
5
6
|
*/
|
|
6
|
-
public allowedElementIds: (elementIds: string[]) =>
|
|
7
|
+
public allowedElementIds: (elementIds: string[]) => any;
|
|
7
8
|
|
|
8
9
|
constructor();
|
|
9
10
|
|