videomail-client 11.4.6 → 11.4.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.
package/dist/cjs/index.cjs
CHANGED
|
@@ -10642,7 +10642,7 @@ var __webpack_exports__ = {};
|
|
|
10642
10642
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10643
10643
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10644
10644
|
var package_namespaceObject = {
|
|
10645
|
-
rE: "11.4.
|
|
10645
|
+
rE: "11.4.8"
|
|
10646
10646
|
};
|
|
10647
10647
|
var defined = __webpack_require__("./node_modules/defined/index.js");
|
|
10648
10648
|
var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
|
|
@@ -15743,7 +15743,7 @@ var __webpack_exports__ = {};
|
|
|
15743
15743
|
if (newCountdown !== this.countdown) {
|
|
15744
15744
|
this.countdown = newCountdown;
|
|
15745
15745
|
this.update();
|
|
15746
|
-
if (this.countdown < 1) this.visuals.stop(
|
|
15746
|
+
if (this.countdown < 1) this.visuals.stop();
|
|
15747
15747
|
}
|
|
15748
15748
|
}
|
|
15749
15749
|
update() {
|
|
@@ -18532,7 +18532,7 @@ var __webpack_exports__ = {};
|
|
|
18532
18532
|
let force = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : false;
|
|
18533
18533
|
let runValidation = true;
|
|
18534
18534
|
let valid = true;
|
|
18535
|
-
if (this.options.enableAutoValidation) {
|
|
18535
|
+
if (this.built) if (this.options.enableAutoValidation) {
|
|
18536
18536
|
if (force) runValidation = force;
|
|
18537
18537
|
else if (this.isNotifying()) runValidation = false;
|
|
18538
18538
|
else if (this.visuals.isConnected()) {
|
|
@@ -18543,6 +18543,7 @@ var __webpack_exports__ = {};
|
|
|
18543
18543
|
runValidation = false;
|
|
18544
18544
|
this.lastValidation = true;
|
|
18545
18545
|
}
|
|
18546
|
+
else runValidation = false;
|
|
18546
18547
|
if (runValidation) {
|
|
18547
18548
|
var _event_target;
|
|
18548
18549
|
const targetName = null == event ? void 0 : null == (_event_target = event.target) ? void 0 : _event_target.name;
|
|
@@ -18693,10 +18694,9 @@ var __webpack_exports__ = {};
|
|
|
18693
18694
|
return element.parentNode !== this.containerElement && element !== this.containerElement;
|
|
18694
18695
|
}
|
|
18695
18696
|
loadForm(videomail) {
|
|
18696
|
-
if (this.form)
|
|
18697
|
-
|
|
18698
|
-
|
|
18699
|
-
}
|
|
18697
|
+
if (!this.form) return;
|
|
18698
|
+
this.form.loadVideomail(videomail);
|
|
18699
|
+
this.validate();
|
|
18700
18700
|
}
|
|
18701
18701
|
enableAudio() {
|
|
18702
18702
|
this.options = setAudioEnabled(true, this.options);
|
|
@@ -18790,9 +18790,9 @@ var __webpack_exports__ = {};
|
|
|
18790
18790
|
replayParentElementId
|
|
18791
18791
|
});
|
|
18792
18792
|
this.container.buildForm();
|
|
18793
|
-
this.container.loadForm(videomail);
|
|
18794
18793
|
this.once("REPLAY_SHOWN", ()=>{
|
|
18795
18794
|
this.container.showReplayOnly();
|
|
18795
|
+
this.container.loadForm(videomail);
|
|
18796
18796
|
});
|
|
18797
18797
|
const replay = this.container.getReplay();
|
|
18798
18798
|
replay.setVideomail(videomail, true);
|
package/dist/esm/index.js
CHANGED
|
@@ -3607,7 +3607,7 @@ const constants = {
|
|
|
3607
3607
|
}
|
|
3608
3608
|
};
|
|
3609
3609
|
var package_namespaceObject = {
|
|
3610
|
-
rE: "11.4.
|
|
3610
|
+
rE: "11.4.8"
|
|
3611
3611
|
};
|
|
3612
3612
|
const VideoType = {
|
|
3613
3613
|
WebM: "webm",
|
|
@@ -5326,7 +5326,7 @@ class RecordTimer {
|
|
|
5326
5326
|
if (newCountdown !== this.countdown) {
|
|
5327
5327
|
this.countdown = newCountdown;
|
|
5328
5328
|
this.update();
|
|
5329
|
-
if (this.countdown < 1) this.visuals.stop(
|
|
5329
|
+
if (this.countdown < 1) this.visuals.stop();
|
|
5330
5330
|
}
|
|
5331
5331
|
}
|
|
5332
5332
|
update() {
|
|
@@ -7934,7 +7934,7 @@ class Container extends util_Despot {
|
|
|
7934
7934
|
validate(event, force = false) {
|
|
7935
7935
|
let runValidation = true;
|
|
7936
7936
|
let valid = true;
|
|
7937
|
-
if (this.options.enableAutoValidation) {
|
|
7937
|
+
if (this.built) if (this.options.enableAutoValidation) {
|
|
7938
7938
|
if (force) runValidation = force;
|
|
7939
7939
|
else if (this.isNotifying()) runValidation = false;
|
|
7940
7940
|
else if (this.visuals.isConnected()) runValidation = this.visuals.isUserMediaLoaded() ?? this.visuals.isReplayShown();
|
|
@@ -7943,6 +7943,7 @@ class Container extends util_Despot {
|
|
|
7943
7943
|
runValidation = false;
|
|
7944
7944
|
this.lastValidation = true;
|
|
7945
7945
|
}
|
|
7946
|
+
else runValidation = false;
|
|
7946
7947
|
if (runValidation) {
|
|
7947
7948
|
const targetName = event?.target?.name;
|
|
7948
7949
|
if (targetName) this.emit("VALIDATING", {
|
|
@@ -8090,10 +8091,9 @@ class Container extends util_Despot {
|
|
|
8090
8091
|
return element.parentNode !== this.containerElement && element !== this.containerElement;
|
|
8091
8092
|
}
|
|
8092
8093
|
loadForm(videomail) {
|
|
8093
|
-
if (this.form)
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
}
|
|
8094
|
+
if (!this.form) return;
|
|
8095
|
+
this.form.loadVideomail(videomail);
|
|
8096
|
+
this.validate();
|
|
8097
8097
|
}
|
|
8098
8098
|
enableAudio() {
|
|
8099
8099
|
this.options = setAudioEnabled(true, this.options);
|
|
@@ -8176,9 +8176,9 @@ class VideomailClient extends util_Despot {
|
|
|
8176
8176
|
replayParentElementId
|
|
8177
8177
|
});
|
|
8178
8178
|
this.container.buildForm();
|
|
8179
|
-
this.container.loadForm(videomail);
|
|
8180
8179
|
this.once("REPLAY_SHOWN", ()=>{
|
|
8181
8180
|
this.container.showReplayOnly();
|
|
8181
|
+
this.container.loadForm(videomail);
|
|
8182
8182
|
});
|
|
8183
8183
|
const replay = this.container.getReplay();
|
|
8184
8184
|
replay.setVideomail(videomail, true);
|
|
@@ -4,7 +4,7 @@ import Despot from "../../util/Despot";
|
|
|
4
4
|
import { UnloadParams } from "../container";
|
|
5
5
|
import Visuals from "../visuals";
|
|
6
6
|
import Replay from "./replay";
|
|
7
|
-
interface StopParams {
|
|
7
|
+
export interface StopParams {
|
|
8
8
|
limitReached?: boolean;
|
|
9
9
|
}
|
|
10
10
|
interface PauseParams {
|
|
@@ -2,8 +2,8 @@ import { ShowParams } from "../client";
|
|
|
2
2
|
import { VideomailClientOptions } from "../types/options";
|
|
3
3
|
import Despot from "../util/Despot";
|
|
4
4
|
import VideomailError from "../util/error/VideomailError";
|
|
5
|
-
import { UnloadParams } from "./container";
|
|
6
|
-
import Recorder from "./visuals/recorder";
|
|
5
|
+
import Container, { UnloadParams } from "./container";
|
|
6
|
+
import Recorder, { StopParams } from "./visuals/recorder";
|
|
7
7
|
import Replay from "./visuals/replay";
|
|
8
8
|
declare class Visuals extends Despot {
|
|
9
9
|
private readonly container;
|
|
@@ -13,7 +13,7 @@ declare class Visuals extends Despot {
|
|
|
13
13
|
private readonly notifier;
|
|
14
14
|
private visualsElement?;
|
|
15
15
|
private built;
|
|
16
|
-
constructor(container:
|
|
16
|
+
constructor(container: Container, options: VideomailClientOptions);
|
|
17
17
|
private buildNoScriptTag;
|
|
18
18
|
private buildChildren;
|
|
19
19
|
private initEvents;
|
|
@@ -28,7 +28,7 @@ declare class Visuals extends Despot {
|
|
|
28
28
|
reset(): void;
|
|
29
29
|
beginWaiting(): void;
|
|
30
30
|
endWaiting(): void;
|
|
31
|
-
stop(params?:
|
|
31
|
+
stop(params?: StopParams): void;
|
|
32
32
|
back(keepHidden?: boolean, cb?: any): void;
|
|
33
33
|
recordAgain(): void;
|
|
34
34
|
unload(params?: UnloadParams): void;
|
package/dist/umd/index.js
CHANGED
|
@@ -10648,7 +10648,7 @@
|
|
|
10648
10648
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10649
10649
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10650
10650
|
var package_namespaceObject = {
|
|
10651
|
-
rE: "11.4.
|
|
10651
|
+
rE: "11.4.8"
|
|
10652
10652
|
};
|
|
10653
10653
|
var defined = __webpack_require__("./node_modules/defined/index.js");
|
|
10654
10654
|
var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
|
|
@@ -15618,7 +15618,7 @@
|
|
|
15618
15618
|
if (newCountdown !== this.countdown) {
|
|
15619
15619
|
this.countdown = newCountdown;
|
|
15620
15620
|
this.update();
|
|
15621
|
-
if (this.countdown < 1) this.visuals.stop(
|
|
15621
|
+
if (this.countdown < 1) this.visuals.stop();
|
|
15622
15622
|
}
|
|
15623
15623
|
}
|
|
15624
15624
|
update() {
|
|
@@ -18302,7 +18302,7 @@
|
|
|
18302
18302
|
validate(event, force = false) {
|
|
18303
18303
|
let runValidation = true;
|
|
18304
18304
|
let valid = true;
|
|
18305
|
-
if (this.options.enableAutoValidation) {
|
|
18305
|
+
if (this.built) if (this.options.enableAutoValidation) {
|
|
18306
18306
|
if (force) runValidation = force;
|
|
18307
18307
|
else if (this.isNotifying()) runValidation = false;
|
|
18308
18308
|
else if (this.visuals.isConnected()) runValidation = this.visuals.isUserMediaLoaded() ?? this.visuals.isReplayShown();
|
|
@@ -18311,6 +18311,7 @@
|
|
|
18311
18311
|
runValidation = false;
|
|
18312
18312
|
this.lastValidation = true;
|
|
18313
18313
|
}
|
|
18314
|
+
else runValidation = false;
|
|
18314
18315
|
if (runValidation) {
|
|
18315
18316
|
const targetName = event?.target?.name;
|
|
18316
18317
|
if (targetName) this.emit("VALIDATING", {
|
|
@@ -18458,10 +18459,9 @@
|
|
|
18458
18459
|
return element.parentNode !== this.containerElement && element !== this.containerElement;
|
|
18459
18460
|
}
|
|
18460
18461
|
loadForm(videomail) {
|
|
18461
|
-
if (this.form)
|
|
18462
|
-
|
|
18463
|
-
|
|
18464
|
-
}
|
|
18462
|
+
if (!this.form) return;
|
|
18463
|
+
this.form.loadVideomail(videomail);
|
|
18464
|
+
this.validate();
|
|
18465
18465
|
}
|
|
18466
18466
|
enableAudio() {
|
|
18467
18467
|
this.options = setAudioEnabled(true, this.options);
|
|
@@ -18544,9 +18544,9 @@
|
|
|
18544
18544
|
replayParentElementId
|
|
18545
18545
|
});
|
|
18546
18546
|
this.container.buildForm();
|
|
18547
|
-
this.container.loadForm(videomail);
|
|
18548
18547
|
this.once("REPLAY_SHOWN", ()=>{
|
|
18549
18548
|
this.container.showReplayOnly();
|
|
18549
|
+
this.container.loadForm(videomail);
|
|
18550
18550
|
});
|
|
18551
18551
|
const replay = this.container.getReplay();
|
|
18552
18552
|
replay.setVideomail(videomail, true);
|