videomail-client 13.5.2 → 13.6.0
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/dist/cjs/index.cjs +153 -147
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +80 -74
- package/dist/esm/types/Videomail.d.ts +1 -0
- package/dist/esm/types/events/index.d.ts +11 -55
- package/dist/esm/types/events/params.d.ts +45 -0
- package/dist/esm/util/Despot.d.ts +10 -10
- package/dist/esm/wrappers/form.d.ts +2 -0
- package/dist/umd/index.js +151 -145
- package/package.json +15 -15
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import Response from "superagent/lib/node/response";
|
|
2
|
+
import VideomailError from "../../util/error/VideomailError";
|
|
3
|
+
import { RecordingStats } from "../RecordingStats";
|
|
4
|
+
import { Videomail } from "../Videomail";
|
|
5
|
+
export interface VideomailUserMediaReadyParams {
|
|
6
|
+
switchingFacingMode?: ConstrainDOMString | undefined;
|
|
7
|
+
recordWhenReady?: boolean | undefined;
|
|
8
|
+
paused?: boolean | undefined;
|
|
9
|
+
}
|
|
10
|
+
export interface VideomailErrorParams {
|
|
11
|
+
exc?: unknown;
|
|
12
|
+
err?: VideomailError;
|
|
13
|
+
}
|
|
14
|
+
export interface VideomailRecordingParams {
|
|
15
|
+
framesCount: number;
|
|
16
|
+
}
|
|
17
|
+
export interface VideomailStoppingParams {
|
|
18
|
+
limitReached?: boolean | undefined;
|
|
19
|
+
}
|
|
20
|
+
export interface VideomailProgressParams {
|
|
21
|
+
frameProgress: string;
|
|
22
|
+
sampleProgress?: string | undefined;
|
|
23
|
+
}
|
|
24
|
+
export interface VideomailPreviewParams {
|
|
25
|
+
key?: string | undefined;
|
|
26
|
+
width?: number | undefined;
|
|
27
|
+
height?: number | undefined;
|
|
28
|
+
hasAudio: boolean;
|
|
29
|
+
duration: number;
|
|
30
|
+
}
|
|
31
|
+
export interface VideomailStoppedParams {
|
|
32
|
+
recordingStats?: RecordingStats | undefined;
|
|
33
|
+
}
|
|
34
|
+
export interface VideomailSubmittedParams {
|
|
35
|
+
videomail: Videomail;
|
|
36
|
+
response: Response;
|
|
37
|
+
}
|
|
38
|
+
export interface VideomailValidatingParams {
|
|
39
|
+
targetName?: any;
|
|
40
|
+
event?: any;
|
|
41
|
+
}
|
|
42
|
+
export interface VideomailInvalidParams {
|
|
43
|
+
whyInvalid?: string | undefined;
|
|
44
|
+
invalidData?: Record<string, string>;
|
|
45
|
+
}
|
|
@@ -20,13 +20,13 @@ declare class Despot {
|
|
|
20
20
|
DISABLING_AUDIO: (() => void)[];
|
|
21
21
|
DISCONNECTED: (() => void)[];
|
|
22
22
|
ENABLING_AUDIO: (() => void)[];
|
|
23
|
-
ERROR: ((params: import("
|
|
23
|
+
ERROR: ((params: import("..").VideomailErrorParams) => void)[];
|
|
24
24
|
EVENT_EMITTED: (() => void)[];
|
|
25
25
|
FIRST_FRAME_SENT: (() => void)[];
|
|
26
26
|
FORM_READY: ((params: import("../wrappers/container").FormReadyParams) => void)[];
|
|
27
27
|
GOING_BACK: (() => void)[];
|
|
28
28
|
HIDE: (() => void)[];
|
|
29
|
-
INVALID: ((params: import("
|
|
29
|
+
INVALID: ((params: import("..").VideomailInvalidParams) => void)[];
|
|
30
30
|
INVISIBLE: (() => void)[];
|
|
31
31
|
LOADED_META_DATA: (() => void)[];
|
|
32
32
|
LOADING_USER_MEDIA: (() => void)[];
|
|
@@ -34,25 +34,25 @@ declare class Despot {
|
|
|
34
34
|
PAUSED: (() => void)[];
|
|
35
35
|
PREVIEW: ((params?: import("..").VideomailPreviewParams) => void)[];
|
|
36
36
|
PREVIEW_SHOWN: (() => void)[];
|
|
37
|
-
PROGRESS: ((params: import("
|
|
38
|
-
RECORDING: ((params: import("
|
|
37
|
+
PROGRESS: ((params: import("..").VideomailProgressParams) => void)[];
|
|
38
|
+
RECORDING: ((params: import("..").VideomailRecordingParams) => void)[];
|
|
39
39
|
REPLAY_SHOWN: (() => void)[];
|
|
40
40
|
RESETTING: (() => void)[];
|
|
41
41
|
RESUMING: (() => void)[];
|
|
42
42
|
SENDING_FIRST_FRAME: (() => void)[];
|
|
43
43
|
SERVER_READY: (() => void)[];
|
|
44
44
|
STARTING_OVER: (() => void)[];
|
|
45
|
-
STOPPED: ((params: import("
|
|
46
|
-
STOPPING: ((params: import("
|
|
47
|
-
SUBMITTED: ((params: import("
|
|
45
|
+
STOPPED: ((params: import("..").VideomailStoppedParams) => void)[];
|
|
46
|
+
STOPPING: ((params: import("..").VideomailStoppingParams) => void)[];
|
|
47
|
+
SUBMITTED: ((params: import("..").VideomailSubmittedParams) => void)[];
|
|
48
48
|
SUBMITTING: (() => void)[];
|
|
49
49
|
SWITCH_FACING_MODE: (() => void)[];
|
|
50
50
|
UNLOADING: (() => void)[];
|
|
51
|
-
USER_MEDIA_READY: ((params: import("
|
|
51
|
+
USER_MEDIA_READY: ((params: import("..").VideomailUserMediaReadyParams) => void)[];
|
|
52
52
|
VALID: (() => void)[];
|
|
53
|
-
VALIDATING: ((params?: import("
|
|
53
|
+
VALIDATING: ((params?: import("..").VideomailValidatingParams) => void)[];
|
|
54
54
|
VISIBLE: (() => void)[];
|
|
55
|
-
WINDOW_RESIZE: (() => void)[];
|
|
55
|
+
WINDOW_RESIZE: ((source: string) => void)[];
|
|
56
56
|
}>[E];
|
|
57
57
|
protected static removeListener(eventName: keyof VideomailEvents): void;
|
|
58
58
|
protected static removeAllListeners(): void;
|
|
@@ -67,6 +67,7 @@ declare class Form extends Despot {
|
|
|
67
67
|
sentDate?: number;
|
|
68
68
|
sentDateIso?: string;
|
|
69
69
|
sentDateServerPretty?: string;
|
|
70
|
+
serverTimePretty?: string;
|
|
70
71
|
siteName?: string;
|
|
71
72
|
siteTitle?: string;
|
|
72
73
|
url?: string;
|
|
@@ -159,6 +160,7 @@ declare class Form extends Despot {
|
|
|
159
160
|
sentDate?: number;
|
|
160
161
|
sentDateIso?: string;
|
|
161
162
|
sentDateServerPretty?: string;
|
|
163
|
+
serverTimePretty?: string;
|
|
162
164
|
siteName?: string;
|
|
163
165
|
siteTitle?: string;
|
|
164
166
|
url?: string;
|