videomail-client 11.4.6 → 11.4.7

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.
@@ -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.6"
10645
+ rE: "11.4.7"
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(true);
15746
+ if (this.countdown < 1) this.visuals.stop();
15747
15747
  }
15748
15748
  }
15749
15749
  update() {
@@ -18693,10 +18693,9 @@ var __webpack_exports__ = {};
18693
18693
  return element.parentNode !== this.containerElement && element !== this.containerElement;
18694
18694
  }
18695
18695
  loadForm(videomail) {
18696
- if (this.form) {
18697
- this.form.loadVideomail(videomail);
18698
- this.validate();
18699
- }
18696
+ if (!this.form) return;
18697
+ this.form.loadVideomail(videomail);
18698
+ this.validate();
18700
18699
  }
18701
18700
  enableAudio() {
18702
18701
  this.options = setAudioEnabled(true, this.options);
@@ -18790,9 +18789,9 @@ var __webpack_exports__ = {};
18790
18789
  replayParentElementId
18791
18790
  });
18792
18791
  this.container.buildForm();
18793
- this.container.loadForm(videomail);
18794
18792
  this.once("REPLAY_SHOWN", ()=>{
18795
18793
  this.container.showReplayOnly();
18794
+ this.container.loadForm(videomail);
18796
18795
  });
18797
18796
  const replay = this.container.getReplay();
18798
18797
  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.6"
3610
+ rE: "11.4.7"
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(true);
5329
+ if (this.countdown < 1) this.visuals.stop();
5330
5330
  }
5331
5331
  }
5332
5332
  update() {
@@ -8090,10 +8090,9 @@ class Container extends util_Despot {
8090
8090
  return element.parentNode !== this.containerElement && element !== this.containerElement;
8091
8091
  }
8092
8092
  loadForm(videomail) {
8093
- if (this.form) {
8094
- this.form.loadVideomail(videomail);
8095
- this.validate();
8096
- }
8093
+ if (!this.form) return;
8094
+ this.form.loadVideomail(videomail);
8095
+ this.validate();
8097
8096
  }
8098
8097
  enableAudio() {
8099
8098
  this.options = setAudioEnabled(true, this.options);
@@ -8176,9 +8175,9 @@ class VideomailClient extends util_Despot {
8176
8175
  replayParentElementId
8177
8176
  });
8178
8177
  this.container.buildForm();
8179
- this.container.loadForm(videomail);
8180
8178
  this.once("REPLAY_SHOWN", ()=>{
8181
8179
  this.container.showReplayOnly();
8180
+ this.container.loadForm(videomail);
8182
8181
  });
8183
8182
  const replay = this.container.getReplay();
8184
8183
  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: any, options: VideomailClientOptions);
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?: any): void;
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.6"
10651
+ rE: "11.4.7"
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(true);
15621
+ if (this.countdown < 1) this.visuals.stop();
15622
15622
  }
15623
15623
  }
15624
15624
  update() {
@@ -18458,10 +18458,9 @@
18458
18458
  return element.parentNode !== this.containerElement && element !== this.containerElement;
18459
18459
  }
18460
18460
  loadForm(videomail) {
18461
- if (this.form) {
18462
- this.form.loadVideomail(videomail);
18463
- this.validate();
18464
- }
18461
+ if (!this.form) return;
18462
+ this.form.loadVideomail(videomail);
18463
+ this.validate();
18465
18464
  }
18466
18465
  enableAudio() {
18467
18466
  this.options = setAudioEnabled(true, this.options);
@@ -18544,9 +18543,9 @@
18544
18543
  replayParentElementId
18545
18544
  });
18546
18545
  this.container.buildForm();
18547
- this.container.loadForm(videomail);
18548
18546
  this.once("REPLAY_SHOWN", ()=>{
18549
18547
  this.container.showReplayOnly();
18548
+ this.container.loadForm(videomail);
18550
18549
  });
18551
18550
  const replay = this.container.getReplay();
18552
18551
  replay.setVideomail(videomail, true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "11.4.6",
3
+ "version": "11.4.7",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",