@veltdev/sdk 4.5.0-beta.6 → 4.5.0-beta.8

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.
@@ -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,6 +3,18 @@ import { PresenceUser } from "./presence-user.data.model";
3
3
  export interface PresenceMultipleUsersOnlineEvent {
4
4
  users: PresenceUser[];
5
5
  }
6
+ export interface PresenceUserOnlineEvent {
7
+ user: PresenceUser;
8
+ }
9
+ export interface PresenceUserOfflineEvent {
10
+ user: PresenceUser;
11
+ }
12
+ export interface PresenceUserAwayEvent {
13
+ user: PresenceUser;
14
+ }
6
15
  export type PresenceEventTypesMap = {
7
16
  [PresenceEventTypes.MULTIPLE_USERS_ONLINE]: PresenceMultipleUsersOnlineEvent;
17
+ [PresenceEventTypes.USER_ONLINE]: PresenceUserOnlineEvent;
18
+ [PresenceEventTypes.USER_OFFLINE]: PresenceUserOfflineEvent;
19
+ [PresenceEventTypes.USER_AWAY]: PresenceUserAwayEvent;
8
20
  };
@@ -8,6 +8,16 @@ export interface RecordingDeleteEvent extends RecorderData {
8
8
  }
9
9
  export interface RecordingEditDoneEvent extends RecorderData {
10
10
  }
11
+ export interface RecordingErrorEvent {
12
+ type: string;
13
+ message: string;
14
+ recorderId?: string;
15
+ }
16
+ export interface RecordingSaveInitiatedEvent {
17
+ annotationId?: string;
18
+ message: string;
19
+ type: 'edit' | 'record';
20
+ }
11
21
  export type RecorderEventTypesMap = {
12
22
  [RecorderEventTypes.TRANSCRIPTION_DONE]: TranscriptionDoneEvent;
13
23
  [RecorderEventTypes.RECORDING_DONE]: RecordingDoneEvent;
@@ -93,15 +93,13 @@ export declare class RecordedData {
93
93
  };
94
94
  getThumbnailTag: (url?: string) => string;
95
95
  }
96
+ export declare class RecorderQualityConstraintsOptions {
97
+ video?: MediaTrackConstraints;
98
+ audio?: MediaTrackConstraints;
99
+ }
96
100
  export declare class RecorderQualityConstraints {
97
- safari?: {
98
- video?: MediaTrackConstraints;
99
- audio?: MediaTrackConstraints;
100
- };
101
- other?: {
102
- video?: MediaTrackConstraints;
103
- audio?: MediaTrackConstraints;
104
- };
101
+ safari?: RecorderQualityConstraintsOptions;
102
+ other?: RecorderQualityConstraintsOptions;
105
103
  }
106
104
  export declare class RecorderEncodingOptions {
107
105
  safari?: MediaRecorderOptions;
@@ -60,6 +60,8 @@ export declare const RecorderEventTypes: {
60
60
  readonly RECORDING_DONE: "recordingDone";
61
61
  readonly RECORDING_EDIT_DONE: "recordingEditDone";
62
62
  readonly DELETE_RECORDING: "deleteRecording";
63
+ readonly ERROR: "error";
64
+ readonly RECORDING_SAVE_INITIATED: "recordingSaveInitiated";
63
65
  };
64
66
  export declare const CoreEventTypes: {
65
67
  readonly VELT_BUTTON_CLICK: "veltButtonClick";
@@ -78,6 +80,9 @@ export declare const LiveStateSyncEventTypes: {
78
80
  };
79
81
  export declare const PresenceEventTypes: {
80
82
  readonly MULTIPLE_USERS_ONLINE: "multipleUsersOnline";
83
+ readonly USER_ONLINE: "userOnline";
84
+ readonly USER_OFFLINE: "userOffline";
85
+ readonly USER_AWAY: "userAway";
81
86
  };
82
87
  export type CommentEventType = typeof CommentEventTypes[keyof typeof CommentEventTypes];
83
88
  export type RecorderEventType = typeof RecorderEventTypes[keyof typeof RecorderEventTypes];
@@ -253,7 +258,7 @@ export type ReactionPinType = 'timeline' | 'comment';
253
258
  export type SidebarPosition = 'left' | 'right';
254
259
  export type SidebarSortingCriteria = 'date' | 'unread' | null;
255
260
  export type SidebarFilterCriteria = 'all' | 'read' | 'unread' | 'resolved';
256
- export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'pages' | 'statuses' | 'priorities' | 'categories' | 'versions';
261
+ export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'pages' | 'documents' | 'statuses' | 'priorities' | 'categories' | 'versions';
257
262
  export type InlineSortingCriteria = 'createdFirst' | 'createdLast' | 'updatedFirst' | 'updatedLast';
258
263
  export type NotificationPanelMode = 'popover' | 'sidebar';
259
264
  export type SidebarActionButtonType = 'default' | 'toggle';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "4.5.0-beta.6",
3
+ "version": "4.5.0-beta.8",
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": [