@veltdev/sdk 4.0.0-beta.6 → 4.0.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.
@@ -52,6 +52,7 @@ export declare class Config {
52
52
  }
53
53
  export interface ExtendedFirebaseOptions extends FirebaseOptions {
54
54
  storeDbId: string;
55
+ region?: string;
55
56
  }
56
57
  export interface AdvancedQueries {
57
58
  advancedQueriesEnabled: boolean;
@@ -0,0 +1,16 @@
1
+ import { RecorderEventTypes } from "../../utils/enums";
2
+ export interface TranscriptionDoneEvent {
3
+ transcription: string;
4
+ id?: string;
5
+ tag?: string;
6
+ type?: string;
7
+ thumbnailUrl?: string;
8
+ thumbnailWithPlayIconUrl?: string;
9
+ videoUrl?: string;
10
+ audioUrl?: string;
11
+ videoPlayerUrl?: string;
12
+ getThumbnailTag?: (url?: string) => string;
13
+ }
14
+ export type RecorderEventTypesMap = {
15
+ [RecorderEventTypes.TRANSCRIPTION_DONE]: TranscriptionDoneEvent;
16
+ };
@@ -1,6 +1,7 @@
1
1
  // @ts-nocheck
2
2
  import { Observable } from "rxjs";
3
3
  import { RecorderData } 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
 
@@ -33,6 +34,11 @@ export declare class RecorderElement {
33
34
  */
34
35
  disableRecordingTranscription: () => void;
35
36
 
37
+ /**
38
+ * Subscribe to recorder actions
39
+ */
40
+ public on: <T extends keyof RecorderEventTypesMap>(action: T) => Observable<RecorderEventTypesMap[T]>;
41
+
36
42
  constructor();
37
43
 
38
44
  private _initRecording;
@@ -63,4 +69,9 @@ export declare class RecorderElement {
63
69
  * To disable recording transcription
64
70
  */
65
71
  private _disableRecordingTranscription;
72
+
73
+ /**
74
+ * Subscribe to recorder actions
75
+ */
76
+ private _on;
66
77
  }
@@ -42,10 +42,14 @@ export declare const CommentEventTypes: {
42
42
  readonly COMMENT_SIDEBAR_DATA_INIT: "commentSidebarDataInit";
43
43
  readonly COMMENT_SIDEBAR_DATA_UPDATE: "commentSidebarDataUpdate";
44
44
  };
45
+ export declare const RecorderEventTypes: {
46
+ readonly TRANSCRIPTION_DONE: "transcriptionDone";
47
+ };
45
48
  export declare const CoreEventTypes: {
46
49
  readonly VELT_BUTTON_CLICK: "veltButtonClick";
47
50
  };
48
51
  export type CommentEventType = typeof CommentEventTypes[keyof typeof CommentEventTypes];
52
+ export type RecorderEventType = typeof RecorderEventTypes[keyof typeof RecorderEventTypes];
49
53
  export type CoreEventType = typeof CoreEventTypes[keyof typeof CoreEventTypes];
50
54
  export declare enum TagStatus {
51
55
  ADDED = "added",
package/models.d.ts CHANGED
@@ -34,6 +34,7 @@ export * from './app/models/data/permission.data.model';
34
34
  export * from './app/models/data/presence-user.data.model';
35
35
  export * from './app/models/data/recorder.model';
36
36
  export * from './app/models/data/recorder-annotation.data.model';
37
+ export * from './app/models/data/recorder-events.data.model';
37
38
  export * from './app/models/data/rewriter-annotation.data.model';
38
39
  export * from './app/models/data/screen-size.data.model';
39
40
  export * from './app/models/data/selection.model';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "4.0.0-beta.6",
3
+ "version": "4.0.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": [