@veltdev/sdk-dev 4.0.0-beta.15 → 4.0.0-beta.151

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.
@@ -164,4 +164,10 @@ export declare class RecorderData {
164
164
  assets: RecorderDataAsset[];
165
165
  transcription: RecorderDataTranscription;
166
166
  }
167
+ export interface RecorderRequestQuery {
168
+ recorderIds: string[];
169
+ }
170
+ export interface GetRecordingDataResponse {
171
+ data: Record<string, RecorderData> | null;
172
+ }
167
173
  export {};
@@ -0,0 +1,8 @@
1
+ import { RecorderEventTypes } from "../../utils/enums";
2
+ import { RecorderData } from "./recorder-annotation.data.model";
3
+ export interface TranscriptionDoneEvent {
4
+ data: Record<string, RecorderData> | null;
5
+ }
6
+ export type RecorderEventTypesMap = {
7
+ [RecorderEventTypes.TRANSCRIPTION_DONE]: TranscriptionDoneEvent;
8
+ };
@@ -0,0 +1,5 @@
1
+ import { User } from "./user.data.model";
2
+ export interface UserDataProvider {
3
+ getUsers(userIds: string[]): Promise<Record<string, User>>;
4
+ resolveTimeout?: number;
5
+ }
@@ -1073,6 +1073,16 @@ export declare class CommentElement {
1073
1073
  */
1074
1074
  public disableReadOnly: () => void;
1075
1075
 
1076
+ /**
1077
+ * To enable custom autocomplete search
1078
+ */
1079
+ public enableCustomAutocompleteSearch: () => void;
1080
+
1081
+ /**
1082
+ * To disable custom autocomplete search
1083
+ */
1084
+ public disableCustomAutocompleteSearch: () => void;
1085
+
1076
1086
  constructor();
1077
1087
  /**
1078
1088
  * Subscribe to comments on the current document.
@@ -2127,4 +2137,14 @@ export declare class CommentElement {
2127
2137
  * To disable read only
2128
2138
  */
2129
2139
  private _disableReadOnly;
2140
+
2141
+ /**
2142
+ * To enable custom autocomplete search
2143
+ */
2144
+ private _enableCustomAutocompleteSearch;
2145
+
2146
+ /**
2147
+ * To disable custom autocomplete search
2148
+ */
2149
+ private _disableCustomAutocompleteSearch;
2130
2150
  }
@@ -1,6 +1,7 @@
1
1
  // @ts-nocheck
2
2
  import { Observable } from "rxjs";
3
- import { RecorderData } from "../data/recorder-annotation.data.model";
3
+ import { RecorderData, RecorderRequestQuery, GetRecordingDataResponse } from "../data/recorder-annotation.data.model";
4
+ import { RecorderEventTypesMap } from "../data/recorder-events.data.model";
4
5
 
5
6
  export declare class RecorderElement {
6
7
 
@@ -20,6 +21,7 @@ export declare class RecorderElement {
20
21
 
21
22
  /**
22
23
  * To get recording data by recorder id
24
+ * @deprecated Use getRecordingData() method instead
23
25
  */
24
26
  getRecordingDataByRecorderId: (recorderId: string) => Observable<RecorderData | null>;
25
27
 
@@ -33,6 +35,16 @@ export declare class RecorderElement {
33
35
  */
34
36
  disableRecordingTranscription: () => void;
35
37
 
38
+ /**
39
+ * Subscribe to recorder actions
40
+ */
41
+ public on: <T extends keyof RecorderEventTypesMap>(action: T) => Observable<RecorderEventTypesMap[T]>;
42
+
43
+ /**
44
+ * To get recording data by recorder ids
45
+ */
46
+ getRecordingData: (query: RecorderRequestQuery) => Promise<GetRecordingDataResponse>;
47
+
36
48
  constructor();
37
49
 
38
50
  private _initRecording;
@@ -51,6 +63,7 @@ export declare class RecorderElement {
51
63
 
52
64
  /**
53
65
  * To get recording data by recorder id
66
+ * @deprecated Use getRecordingData() method instead
54
67
  */
55
68
  private _getRecordingDataByRecorderId;
56
69
 
@@ -63,4 +76,14 @@ export declare class RecorderElement {
63
76
  * To disable recording transcription
64
77
  */
65
78
  private _disableRecordingTranscription;
79
+
80
+ /**
81
+ * Subscribe to recorder actions
82
+ */
83
+ private _on;
84
+
85
+ /**
86
+ * To get recording data by recorder ids
87
+ */
88
+ private _getRecordingData;
66
89
  }
@@ -8,7 +8,9 @@ export declare class Constants {
8
8
  static LOCALSTORAGE_DATA_ID: string;
9
9
  static NO_ORGANIZATION_ID: string;
10
10
  static DEFAULT_QUERY_HASH: string;
11
+ static LISTENER_BATCH_SIZE: number;
11
12
  static FIREBASE_PARTIAL_PATH_ORGANIZATIONS: string;
13
+ static FIREBASE_PARTIAL_PATH_FOLDERS: string;
12
14
  static FIREBASE_PARTIAL_PATH_DOCS: string;
13
15
  static FIREBASE_PARTIAL_PATH_PRESENCE: string;
14
16
  static FIREBASE_PARTIAL_PATH_ORGANIZATION_USERS: string;
@@ -242,8 +244,8 @@ export declare class Constants {
242
244
  VELT_COMMENT_DIALOG_BODY_THREAD_CARD: string;
243
245
  VELT_COMMENT_DIALOG_PRIVATE_BANNER: string;
244
246
  VELT_COMMENT_COMPOSER: string;
247
+ VELT_SKELETON_LOADER: string;
245
248
  VELT_SHADOW_DOM_INTERNAL: string;
246
- VELT_OVERLAY: string;
247
249
  };
248
250
  static ATTRIBUTES: {
249
251
  VELT_TARGET_COMMENT_ELEMENT_ID: string;
@@ -253,6 +255,7 @@ export declare class Constants {
253
255
  TARGET_ELEMENT_ID: string;
254
256
  VELT_ID: string;
255
257
  VELT_ELEMENT: string;
258
+ VELT_SCREEN_RECORDER_PANEL: string;
256
259
  VELT_SOURCE_ID: string;
257
260
  VELT_ANNOTATION_ID: string;
258
261
  VELT_ANNOTATION_IDS: string;
@@ -347,6 +350,7 @@ export declare class Constants {
347
350
  VELT_CUSTOM_PRIORITY_MAP: string;
348
351
  VELT_CUSTOM_STATUS_MAP: string;
349
352
  VELT_CUSTOM_CATEGORY_MAP: string;
353
+ VELT_ALLOWED_DOCUMENTS: string;
350
354
  };
351
355
  static LOCAL_STORAGE: {
352
356
  SNIPPYLY_DEFAULT_MEDIA_SOURCE_OPTIONS: string;
@@ -41,11 +41,17 @@ export declare const CommentEventTypes: {
41
41
  readonly TOGGLE_REACTION: "toggleReaction";
42
42
  readonly COMMENT_SIDEBAR_DATA_INIT: "commentSidebarDataInit";
43
43
  readonly COMMENT_SIDEBAR_DATA_UPDATE: "commentSidebarDataUpdate";
44
+ readonly AUTOCOMPLETE_SEARCH: "autocompleteSearch";
45
+ readonly COMPOSER_CLICKED: "composerClicked";
46
+ };
47
+ export declare const RecorderEventTypes: {
48
+ readonly TRANSCRIPTION_DONE: "transcriptionDone";
44
49
  };
45
50
  export declare const CoreEventTypes: {
46
51
  readonly VELT_BUTTON_CLICK: "veltButtonClick";
47
52
  };
48
53
  export type CommentEventType = typeof CommentEventTypes[keyof typeof CommentEventTypes];
54
+ export type RecorderEventType = typeof RecorderEventTypes[keyof typeof RecorderEventTypes];
49
55
  export type CoreEventType = typeof CoreEventTypes[keyof typeof CoreEventTypes];
50
56
  export declare enum TagStatus {
51
57
  ADDED = "added",
package/models.d.ts CHANGED
@@ -18,6 +18,7 @@ export * from './app/models/data/custom-css.data.model';
18
18
  export * from './app/models/data/custom-chip-dropdown.data.model';
19
19
  export * from './app/models/data/device-info.model';
20
20
  export * from './app/models/data/document.data.model';
21
+ export * from './app/models/data/document-events.data.model';
21
22
  export * from './app/models/data/document-iam.data.model';
22
23
  export * from './app/models/data/document-metadata.model';
23
24
  export * from './app/models/data/document-paths.data.model';
@@ -36,6 +37,7 @@ export * from './app/models/data/permission.data.model';
36
37
  export * from './app/models/data/presence-user.data.model';
37
38
  export * from './app/models/data/recorder.model';
38
39
  export * from './app/models/data/recorder-annotation.data.model';
40
+ export * from './app/models/data/recorder-events.data.model';
39
41
  export * from './app/models/data/rewriter-annotation.data.model';
40
42
  export * from './app/models/data/screen-size.data.model';
41
43
  export * from './app/models/data/selection.model';
@@ -64,3 +66,4 @@ export * from './app/models/data/organization-groups.data.model';
64
66
  export * from './app/models/data/organization-metadata.model';
65
67
  export * from './app/models/data/user-organization.data.model';
66
68
  export * from './app/models/data/event-metadata.data.model';
69
+ export * from './app/models/data/user-resolver.data.model';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk-dev",
3
- "version": "4.0.0-beta.15",
3
+ "version": "4.0.0-beta.151",
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": [