@veltdev/sdk-staging 4.5.0-beta.10 → 4.5.0-beta.13
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/models/data/comment-sidebar-config.model.d.ts +5 -0
- package/app/models/data/presence-actions.data.model.d.ts +5 -0
- package/app/models/data/presence-events.data.model.d.ts +6 -10
- package/app/models/data/recorder-annotation.data.model.d.ts +2 -0
- package/app/models/element/presence-element.model.d.ts +15 -1
- package/app/models/element/recorder-element.model.d.ts +11 -0
- package/app/utils/enums.d.ts +2 -4
- package/models.d.ts +1 -0
- package/package.json +1 -1
- package/velt.js +70 -70
|
@@ -10,6 +10,7 @@ declare class FilterTypeConfig {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class CommentSidebarFilterConfig {
|
|
12
12
|
location?: FilterTypeConfig;
|
|
13
|
+
document?: FilterTypeConfig;
|
|
13
14
|
people?: FilterTypeConfig;
|
|
14
15
|
assigned?: FilterTypeConfig;
|
|
15
16
|
tagged?: FilterTypeConfig;
|
|
@@ -25,6 +26,10 @@ export declare class CommentSidebarGroupConfig {
|
|
|
25
26
|
}
|
|
26
27
|
export declare class CommentSidebarFilters {
|
|
27
28
|
location?: Location[];
|
|
29
|
+
document?: {
|
|
30
|
+
id?: string;
|
|
31
|
+
documentName?: string;
|
|
32
|
+
}[];
|
|
28
33
|
people?: {
|
|
29
34
|
userId?: string;
|
|
30
35
|
email?: string;
|
|
@@ -3,18 +3,14 @@ import { PresenceUser } from "./presence-user.data.model";
|
|
|
3
3
|
export interface PresenceMultipleUsersOnlineEvent {
|
|
4
4
|
users: PresenceUser[];
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
7
|
-
user: PresenceUser;
|
|
8
|
-
}
|
|
9
|
-
export interface PresenceUserOfflineEvent {
|
|
10
|
-
user: PresenceUser;
|
|
11
|
-
}
|
|
12
|
-
export interface PresenceUserAwayEvent {
|
|
6
|
+
export interface PresenceUserStateChangeEvent {
|
|
13
7
|
user: PresenceUser;
|
|
8
|
+
state: string;
|
|
14
9
|
}
|
|
15
10
|
export type PresenceEventTypesMap = {
|
|
16
11
|
[PresenceEventTypes.MULTIPLE_USERS_ONLINE]: PresenceMultipleUsersOnlineEvent;
|
|
17
|
-
[PresenceEventTypes.
|
|
18
|
-
[PresenceEventTypes.USER_OFFLINE]: PresenceUserOfflineEvent;
|
|
19
|
-
[PresenceEventTypes.USER_AWAY]: PresenceUserAwayEvent;
|
|
12
|
+
[PresenceEventTypes.USER_STATE_CHANGE]: PresenceUserStateChangeEvent;
|
|
20
13
|
};
|
|
14
|
+
export interface GetPresenceDataResponse {
|
|
15
|
+
data: PresenceUser[] | null;
|
|
16
|
+
}
|
|
@@ -180,6 +180,8 @@ export interface RecorderBoundedScaleRange {
|
|
|
180
180
|
centerY?: number;
|
|
181
181
|
topLeftX?: number;
|
|
182
182
|
topLeftY?: number;
|
|
183
|
+
topLeftXPixels?: number;
|
|
184
|
+
topLeftYPixels?: number;
|
|
183
185
|
}
|
|
184
186
|
export interface RecorderEditRange {
|
|
185
187
|
trimRanges: RecorderBoundedTrimRange[];
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { PresenceUser } from "../data/presence-user.data.model";
|
|
4
|
-
import { PresenceEventTypesMap } from "../data/presence-events.data.model";
|
|
4
|
+
import { GetPresenceDataResponse, PresenceEventTypesMap } from "../data/presence-events.data.model";
|
|
5
|
+
import { PresenceRequestQuery } from "../data/presence-actions.data.model";
|
|
6
|
+
|
|
5
7
|
export declare class PresenceElement {
|
|
6
8
|
|
|
7
9
|
/**
|
|
8
10
|
* Subscribe to a list of all online users who are either active or inactive on the current document.
|
|
9
11
|
*
|
|
10
12
|
* Returns Observable<PresenceUser[] | null>.
|
|
13
|
+
* @deprecated This method is deprecated. Use `getData` method instead.
|
|
11
14
|
*/
|
|
12
15
|
getOnlineUsersOnCurrentDocument: () => Observable<PresenceUser[] | null>;
|
|
13
16
|
|
|
@@ -38,6 +41,11 @@ export declare class PresenceElement {
|
|
|
38
41
|
*/
|
|
39
42
|
disableSelf: () => void;
|
|
40
43
|
|
|
44
|
+
/**
|
|
45
|
+
* To get the presence data
|
|
46
|
+
*/
|
|
47
|
+
getData: (query?: PresenceRequestQuery) => Observable<GetPresenceDataResponse>;
|
|
48
|
+
|
|
41
49
|
/**
|
|
42
50
|
* Subscribe to presence events
|
|
43
51
|
*/
|
|
@@ -47,6 +55,7 @@ export declare class PresenceElement {
|
|
|
47
55
|
* Subscribe to a list of all online users who are either active or inactive on the current document.
|
|
48
56
|
*
|
|
49
57
|
* Returns Observable<PresenceUser[] | null>.
|
|
58
|
+
* @deprecated This method is deprecated. Use `getData` method instead.
|
|
50
59
|
*/
|
|
51
60
|
private _getOnlineUsersOnCurrentDocument;
|
|
52
61
|
|
|
@@ -77,6 +86,11 @@ export declare class PresenceElement {
|
|
|
77
86
|
*/
|
|
78
87
|
private _disableSelf;
|
|
79
88
|
|
|
89
|
+
/**
|
|
90
|
+
* To get the presence data
|
|
91
|
+
*/
|
|
92
|
+
private _getData;
|
|
93
|
+
|
|
80
94
|
/**
|
|
81
95
|
* Subscribe to presence events
|
|
82
96
|
*/
|
|
@@ -83,6 +83,12 @@ export declare class RecorderElement {
|
|
|
83
83
|
* To set recording encoding options
|
|
84
84
|
*/
|
|
85
85
|
setRecordingEncodingOptions: (options: RecorderEncodingOptions) => void;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* To download latest video
|
|
89
|
+
*/
|
|
90
|
+
downloadLatestVideo: (recorderId: string) => Promise<boolean>;
|
|
91
|
+
|
|
86
92
|
constructor();
|
|
87
93
|
|
|
88
94
|
private _initRecording;
|
|
@@ -162,4 +168,9 @@ export declare class RecorderElement {
|
|
|
162
168
|
* To set recording encoding options
|
|
163
169
|
*/
|
|
164
170
|
private _setRecordingEncodingOptions;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* To download latest video
|
|
174
|
+
*/
|
|
175
|
+
private _downloadLatestVideo;
|
|
165
176
|
}
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -80,9 +80,7 @@ export declare const LiveStateSyncEventTypes: {
|
|
|
80
80
|
};
|
|
81
81
|
export declare const PresenceEventTypes: {
|
|
82
82
|
readonly MULTIPLE_USERS_ONLINE: "multipleUsersOnline";
|
|
83
|
-
readonly
|
|
84
|
-
readonly USER_OFFLINE: "userOffline";
|
|
85
|
-
readonly USER_AWAY: "userAway";
|
|
83
|
+
readonly USER_STATE_CHANGE: "userStateChange";
|
|
86
84
|
};
|
|
87
85
|
export type CommentEventType = typeof CommentEventTypes[keyof typeof CommentEventTypes];
|
|
88
86
|
export type RecorderEventType = typeof RecorderEventTypes[keyof typeof RecorderEventTypes];
|
|
@@ -258,7 +256,7 @@ export type ReactionPinType = 'timeline' | 'comment';
|
|
|
258
256
|
export type SidebarPosition = 'left' | 'right';
|
|
259
257
|
export type SidebarSortingCriteria = 'date' | 'unread' | null;
|
|
260
258
|
export type SidebarFilterCriteria = 'all' | 'read' | 'unread' | 'resolved';
|
|
261
|
-
export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'pages' | 'statuses' | 'priorities' | 'categories' | 'versions';
|
|
259
|
+
export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'pages' | 'documents' | 'statuses' | 'priorities' | 'categories' | 'versions';
|
|
262
260
|
export type InlineSortingCriteria = 'createdFirst' | 'createdLast' | 'updatedFirst' | 'updatedLast';
|
|
263
261
|
export type NotificationPanelMode = 'popover' | 'sidebar';
|
|
264
262
|
export type SidebarActionButtonType = 'default' | 'toggle';
|
package/models.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export * from './app/models/data/notification.model';
|
|
|
38
38
|
export * from './app/models/data/page-info.model';
|
|
39
39
|
export * from './app/models/data/permission.data.model';
|
|
40
40
|
export * from './app/models/data/presence-user.data.model';
|
|
41
|
+
export * from './app/models/data/presence-actions.data.model';
|
|
41
42
|
export * from './app/models/data/presence-events.data.model';
|
|
42
43
|
export * from './app/models/data/recorder.model';
|
|
43
44
|
export * from './app/models/data/recorder-annotation.data.model';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk-staging",
|
|
3
|
-
"version": "4.5.0-beta.
|
|
3
|
+
"version": "4.5.0-beta.13",
|
|
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": [
|