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