videomail-client 10.3.4 → 10.3.5

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.
@@ -14555,7 +14555,7 @@ var __webpack_exports__ = {};
14555
14555
  }
14556
14556
  const wrappers_form = Form;
14557
14557
  var package_namespaceObject = {
14558
- i8: "10.3.4"
14558
+ i8: "10.3.5"
14559
14559
  };
14560
14560
  function resource_define_property(obj, key, value) {
14561
14561
  if (key in obj) Object.defineProperty(obj, key, {
@@ -14744,25 +14744,25 @@ var __webpack_exports__ = {};
14744
14744
  else element.classList.remove("disabled");
14745
14745
  }
14746
14746
  const html_enableElement = enableElement;
14747
- function hideElement_hideElement(element) {
14747
+ function hideElement(element) {
14748
14748
  if (!element) return;
14749
14749
  hidden_default()(element, true);
14750
14750
  }
14751
- const hideElement = hideElement_hideElement;
14751
+ const html_hideElement = hideElement;
14752
14752
  function showElement(element) {
14753
14753
  if (!element) return;
14754
14754
  hidden_default()(element, false);
14755
14755
  }
14756
14756
  const html_showElement = showElement;
14757
- function isShown_isShown(element) {
14757
+ function isShown(element) {
14758
14758
  if (!element) return false;
14759
14759
  return !hidden_default()(element);
14760
14760
  }
14761
- const isShown = isShown_isShown;
14761
+ const html_isShown = isShown;
14762
14762
  function adjustButton(buttonElement, show, type, disabled) {
14763
14763
  if (disabled) html_disableElement(buttonElement);
14764
14764
  if (type) buttonElement.type = type;
14765
- if (!show) hideElement(buttonElement);
14765
+ if (!show) html_hideElement(buttonElement);
14766
14766
  return buttonElement;
14767
14767
  }
14768
14768
  const html_adjustButton = adjustButton;
@@ -14884,17 +14884,17 @@ var __webpack_exports__ = {};
14884
14884
  }
14885
14885
  }
14886
14886
  onFormReady(params) {
14887
- if (!isShown(this.recordAgainButton)) {
14887
+ if (!html_isShown(this.recordAgainButton)) {
14888
14888
  if (!(null == params ? void 0 : params.paused)) html_showElement(this.recordButton);
14889
14889
  }
14890
14890
  if (!(null == params ? void 0 : params.paused)) {
14891
14891
  html_disableElement(this.previewButton);
14892
- hideElement(this.previewButton);
14892
+ html_hideElement(this.previewButton);
14893
14893
  }
14894
14894
  if (!this.options.enableAutoValidation) html_enableElement(this.submitButton);
14895
14895
  }
14896
14896
  onGoingBack() {
14897
- hideElement(this.recordAgainButton);
14897
+ html_hideElement(this.recordAgainButton);
14898
14898
  html_showElement(this.recordButton);
14899
14899
  html_showElement(this.submitButton);
14900
14900
  }
@@ -14906,12 +14906,12 @@ var __webpack_exports__ = {};
14906
14906
  html_showElement(this.buttonsElement);
14907
14907
  html_showElement(this.audioOnRadioPair);
14908
14908
  html_showElement(this.audioOffRadioPair);
14909
- if (isShown(this.recordButton) && !params.recordWhenReady) html_enableElement(this.recordButton);
14910
- else if (isShown(this.recordAgainButton) && !params.recordWhenReady) html_enableElement(this.recordAgainButton);
14909
+ if (html_isShown(this.recordButton) && !params.recordWhenReady) html_enableElement(this.recordButton);
14910
+ else if (html_isShown(this.recordAgainButton) && !params.recordWhenReady) html_enableElement(this.recordAgainButton);
14911
14911
  if (this.options.enableAutoValidation) html_disableElement(this.submitButton);
14912
14912
  if (!params.recordWhenReady) {
14913
- if (isShown(this.audioOnRadioPair)) html_enableElement(this.audioOnRadioPair);
14914
- if (isShown(this.audioOffRadioPair)) html_enableElement(this.audioOffRadioPair);
14913
+ if (html_isShown(this.audioOnRadioPair)) html_enableElement(this.audioOnRadioPair);
14914
+ if (html_isShown(this.audioOffRadioPair)) html_enableElement(this.audioOffRadioPair);
14915
14915
  }
14916
14916
  }
14917
14917
  onResetting() {
@@ -14919,8 +14919,8 @@ var __webpack_exports__ = {};
14919
14919
  this.reset();
14920
14920
  }
14921
14921
  onPreview() {
14922
- hideElement(this.recordButton);
14923
- hideElement(this.previewButton);
14922
+ html_hideElement(this.recordButton);
14923
+ html_hideElement(this.previewButton);
14924
14924
  html_disableElement(this.audioOnRadioPair);
14925
14925
  html_disableElement(this.audioOffRadioPair);
14926
14926
  html_showElement(this.recordAgainButton);
@@ -14932,17 +14932,17 @@ var __webpack_exports__ = {};
14932
14932
  }
14933
14933
  adjustButtonsForPause() {
14934
14934
  if (!this.isCountingDown()) {
14935
- if (this.pauseButton) hideElement(this.pauseButton);
14935
+ if (this.pauseButton) html_hideElement(this.pauseButton);
14936
14936
  html_showElement(this.resumeButton);
14937
14937
  html_enableElement(this.resumeButton);
14938
- hideElement(this.recordButton);
14938
+ html_hideElement(this.recordButton);
14939
14939
  html_showElement(this.previewButton);
14940
14940
  html_enableElement(this.previewButton);
14941
14941
  }
14942
14942
  }
14943
14943
  onFirstFrameSent() {
14944
- hideElement(this.recordButton);
14945
- hideElement(this.recordAgainButton);
14944
+ html_hideElement(this.recordButton);
14945
+ html_hideElement(this.recordAgainButton);
14946
14946
  if (this.pauseButton) {
14947
14947
  html_showElement(this.pauseButton);
14948
14948
  html_enableElement(this.pauseButton);
@@ -14960,8 +14960,8 @@ var __webpack_exports__ = {};
14960
14960
  }
14961
14961
  }
14962
14962
  onResuming() {
14963
- hideElement(this.resumeButton);
14964
- hideElement(this.recordButton);
14963
+ html_hideElement(this.resumeButton);
14964
+ html_hideElement(this.recordButton);
14965
14965
  if (this.pauseButton) {
14966
14966
  html_enableElement(this.pauseButton);
14967
14967
  html_showElement(this.pauseButton);
@@ -14970,8 +14970,8 @@ var __webpack_exports__ = {};
14970
14970
  onStopping() {
14971
14971
  html_disableElement(this.previewButton);
14972
14972
  html_disableElement(this.recordButton);
14973
- hideElement(this.pauseButton);
14974
- hideElement(this.resumeButton);
14973
+ html_hideElement(this.pauseButton);
14974
+ html_hideElement(this.resumeButton);
14975
14975
  }
14976
14976
  onCountdown() {
14977
14977
  html_disableElement(this.recordButton);
@@ -14996,12 +14996,12 @@ var __webpack_exports__ = {};
14996
14996
  if (this.options.enableAutoValidation) html_enableElement(this.submitButton);
14997
14997
  }
14998
14998
  onHidden() {
14999
- hideElement(this.recordButton);
15000
- hideElement(this.previewButton);
15001
- hideElement(this.recordAgainButton);
15002
- hideElement(this.resumeButton);
15003
- hideElement(this.audioOnRadioPair);
15004
- hideElement(this.audioOffRadioPair);
14999
+ html_hideElement(this.recordButton);
15000
+ html_hideElement(this.previewButton);
15001
+ html_hideElement(this.recordAgainButton);
15002
+ html_hideElement(this.resumeButton);
15003
+ html_hideElement(this.audioOnRadioPair);
15004
+ html_hideElement(this.audioOffRadioPair);
15005
15005
  }
15006
15006
  onEnablingAudio() {
15007
15007
  this.options.logger.debug("Buttons: onEnablingAudio()");
@@ -15094,7 +15094,7 @@ var __webpack_exports__ = {};
15094
15094
  });
15095
15095
  this.on("CONNECTED", ()=>{
15096
15096
  if (this.options.loadUserMediaOnRecord) {
15097
- if (isShown(this.recordButton)) html_enableElement(this.recordButton);
15097
+ if (html_isShown(this.recordButton)) html_enableElement(this.recordButton);
15098
15098
  }
15099
15099
  });
15100
15100
  this.on("DISCONNECTED", ()=>{
@@ -15142,7 +15142,7 @@ var __webpack_exports__ = {};
15142
15142
  this.buttonsElement.classList.add(this.options.selectors.buttonsClass);
15143
15143
  this.container.appendChild(this.buttonsElement);
15144
15144
  }
15145
- hideElement(this.buttonsElement);
15145
+ html_hideElement(this.buttonsElement);
15146
15146
  this.buildButtons();
15147
15147
  if (!this.built) this.initEvents();
15148
15148
  this.built = true;
@@ -15158,16 +15158,16 @@ var __webpack_exports__ = {};
15158
15158
  }
15159
15159
  hide() {
15160
15160
  let deep = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false;
15161
- hideElement(this.buttonsElement);
15161
+ html_hideElement(this.buttonsElement);
15162
15162
  if (deep) {
15163
- hideElement(this.recordButton);
15164
- hideElement(this.pauseButton);
15165
- hideElement(this.resumeButton);
15166
- hideElement(this.previewButton);
15167
- hideElement(this.recordAgainButton);
15168
- hideElement(this.submitButton);
15169
- hideElement(this.audioOnRadioPair);
15170
- hideElement(this.audioOffRadioPair);
15163
+ html_hideElement(this.recordButton);
15164
+ html_hideElement(this.pauseButton);
15165
+ html_hideElement(this.resumeButton);
15166
+ html_hideElement(this.previewButton);
15167
+ html_hideElement(this.recordAgainButton);
15168
+ html_hideElement(this.submitButton);
15169
+ html_hideElement(this.audioOnRadioPair);
15170
+ html_hideElement(this.audioOffRadioPair);
15171
15171
  }
15172
15172
  }
15173
15173
  show() {
@@ -15973,10 +15973,10 @@ var __webpack_exports__ = {};
15973
15973
  canvas_to_buffer_modern_r.atob = void 0;
15974
15974
  var websocket_stream_stream = __webpack_require__("./node_modules/websocket-stream/stream.js");
15975
15975
  var stream_default = /*#__PURE__*/ __webpack_require__.n(websocket_stream_stream);
15976
- function isPromise(anything) {
15977
- return anything && "undefined" != typeof Promise && anything instanceof Promise;
15976
+ function isPromise_isPromise(anything) {
15977
+ return Boolean(anything && "undefined" != typeof Promise && "[object Promise]" === Object.prototype.toString.call(anything));
15978
15978
  }
15979
- const util_isPromise = isPromise;
15979
+ const isPromise = isPromise_isPromise;
15980
15980
  class audio_sample_modern_t {
15981
15981
  constructor(r){
15982
15982
  this.float32Array = void 0, this.float32Array = r;
@@ -16333,7 +16333,7 @@ var __webpack_exports__ = {};
16333
16333
  } catch (exc) {
16334
16334
  this.options.logger.warn(`Caught raw user media play exception: ${exc}`);
16335
16335
  }
16336
- if (util_isPromise(p)) p.then(()=>{
16336
+ if (isPromise(p)) p.then(()=>{
16337
16337
  if (!this.playingPromiseReached) {
16338
16338
  this.options.logger.debug("UserMedia: play promise successful. Playing now.");
16339
16339
  this.playingPromiseReached = true;
package/dist/esm/index.js CHANGED
@@ -4243,7 +4243,7 @@ class Form extends util_Despot {
4243
4243
  }
4244
4244
  const wrappers_form = Form;
4245
4245
  var package_namespaceObject = {
4246
- i8: "10.3.4"
4246
+ i8: "10.3.5"
4247
4247
  };
4248
4248
  function findOriginalExc(exc) {
4249
4249
  if (exc instanceof Error && "response" in exc) {
@@ -4417,25 +4417,25 @@ function enableElement(element) {
4417
4417
  else element.classList.remove("disabled");
4418
4418
  }
4419
4419
  const html_enableElement = enableElement;
4420
- function hideElement_hideElement(element) {
4420
+ function hideElement(element) {
4421
4421
  if (!element) return;
4422
4422
  hidden_0(element, true);
4423
4423
  }
4424
- const hideElement = hideElement_hideElement;
4424
+ const html_hideElement = hideElement;
4425
4425
  function showElement(element) {
4426
4426
  if (!element) return;
4427
4427
  hidden_0(element, false);
4428
4428
  }
4429
4429
  const html_showElement = showElement;
4430
- function isShown_isShown(element) {
4430
+ function isShown(element) {
4431
4431
  if (!element) return false;
4432
4432
  return !hidden_0(element);
4433
4433
  }
4434
- const isShown = isShown_isShown;
4434
+ const html_isShown = isShown;
4435
4435
  function adjustButton(buttonElement, show, type, disabled) {
4436
4436
  if (disabled) html_disableElement(buttonElement);
4437
4437
  if (type) buttonElement.type = type;
4438
- if (!show) hideElement(buttonElement);
4438
+ if (!show) html_hideElement(buttonElement);
4439
4439
  return buttonElement;
4440
4440
  }
4441
4441
  const html_adjustButton = adjustButton;
@@ -4546,17 +4546,17 @@ class Buttons extends util_Despot {
4546
4546
  }
4547
4547
  }
4548
4548
  onFormReady(params) {
4549
- if (!isShown(this.recordAgainButton)) {
4549
+ if (!html_isShown(this.recordAgainButton)) {
4550
4550
  if (!params?.paused) html_showElement(this.recordButton);
4551
4551
  }
4552
4552
  if (!params?.paused) {
4553
4553
  html_disableElement(this.previewButton);
4554
- hideElement(this.previewButton);
4554
+ html_hideElement(this.previewButton);
4555
4555
  }
4556
4556
  if (!this.options.enableAutoValidation) html_enableElement(this.submitButton);
4557
4557
  }
4558
4558
  onGoingBack() {
4559
- hideElement(this.recordAgainButton);
4559
+ html_hideElement(this.recordAgainButton);
4560
4560
  html_showElement(this.recordButton);
4561
4561
  html_showElement(this.submitButton);
4562
4562
  }
@@ -4568,12 +4568,12 @@ class Buttons extends util_Despot {
4568
4568
  html_showElement(this.buttonsElement);
4569
4569
  html_showElement(this.audioOnRadioPair);
4570
4570
  html_showElement(this.audioOffRadioPair);
4571
- if (isShown(this.recordButton) && !params.recordWhenReady) html_enableElement(this.recordButton);
4572
- else if (isShown(this.recordAgainButton) && !params.recordWhenReady) html_enableElement(this.recordAgainButton);
4571
+ if (html_isShown(this.recordButton) && !params.recordWhenReady) html_enableElement(this.recordButton);
4572
+ else if (html_isShown(this.recordAgainButton) && !params.recordWhenReady) html_enableElement(this.recordAgainButton);
4573
4573
  if (this.options.enableAutoValidation) html_disableElement(this.submitButton);
4574
4574
  if (!params.recordWhenReady) {
4575
- if (isShown(this.audioOnRadioPair)) html_enableElement(this.audioOnRadioPair);
4576
- if (isShown(this.audioOffRadioPair)) html_enableElement(this.audioOffRadioPair);
4575
+ if (html_isShown(this.audioOnRadioPair)) html_enableElement(this.audioOnRadioPair);
4576
+ if (html_isShown(this.audioOffRadioPair)) html_enableElement(this.audioOffRadioPair);
4577
4577
  }
4578
4578
  }
4579
4579
  onResetting() {
@@ -4581,8 +4581,8 @@ class Buttons extends util_Despot {
4581
4581
  this.reset();
4582
4582
  }
4583
4583
  onPreview() {
4584
- hideElement(this.recordButton);
4585
- hideElement(this.previewButton);
4584
+ html_hideElement(this.recordButton);
4585
+ html_hideElement(this.previewButton);
4586
4586
  html_disableElement(this.audioOnRadioPair);
4587
4587
  html_disableElement(this.audioOffRadioPair);
4588
4588
  html_showElement(this.recordAgainButton);
@@ -4594,17 +4594,17 @@ class Buttons extends util_Despot {
4594
4594
  }
4595
4595
  adjustButtonsForPause() {
4596
4596
  if (!this.isCountingDown()) {
4597
- if (this.pauseButton) hideElement(this.pauseButton);
4597
+ if (this.pauseButton) html_hideElement(this.pauseButton);
4598
4598
  html_showElement(this.resumeButton);
4599
4599
  html_enableElement(this.resumeButton);
4600
- hideElement(this.recordButton);
4600
+ html_hideElement(this.recordButton);
4601
4601
  html_showElement(this.previewButton);
4602
4602
  html_enableElement(this.previewButton);
4603
4603
  }
4604
4604
  }
4605
4605
  onFirstFrameSent() {
4606
- hideElement(this.recordButton);
4607
- hideElement(this.recordAgainButton);
4606
+ html_hideElement(this.recordButton);
4607
+ html_hideElement(this.recordAgainButton);
4608
4608
  if (this.pauseButton) {
4609
4609
  html_showElement(this.pauseButton);
4610
4610
  html_enableElement(this.pauseButton);
@@ -4622,8 +4622,8 @@ class Buttons extends util_Despot {
4622
4622
  }
4623
4623
  }
4624
4624
  onResuming() {
4625
- hideElement(this.resumeButton);
4626
- hideElement(this.recordButton);
4625
+ html_hideElement(this.resumeButton);
4626
+ html_hideElement(this.recordButton);
4627
4627
  if (this.pauseButton) {
4628
4628
  html_enableElement(this.pauseButton);
4629
4629
  html_showElement(this.pauseButton);
@@ -4632,8 +4632,8 @@ class Buttons extends util_Despot {
4632
4632
  onStopping() {
4633
4633
  html_disableElement(this.previewButton);
4634
4634
  html_disableElement(this.recordButton);
4635
- hideElement(this.pauseButton);
4636
- hideElement(this.resumeButton);
4635
+ html_hideElement(this.pauseButton);
4636
+ html_hideElement(this.resumeButton);
4637
4637
  }
4638
4638
  onCountdown() {
4639
4639
  html_disableElement(this.recordButton);
@@ -4658,12 +4658,12 @@ class Buttons extends util_Despot {
4658
4658
  if (this.options.enableAutoValidation) html_enableElement(this.submitButton);
4659
4659
  }
4660
4660
  onHidden() {
4661
- hideElement(this.recordButton);
4662
- hideElement(this.previewButton);
4663
- hideElement(this.recordAgainButton);
4664
- hideElement(this.resumeButton);
4665
- hideElement(this.audioOnRadioPair);
4666
- hideElement(this.audioOffRadioPair);
4661
+ html_hideElement(this.recordButton);
4662
+ html_hideElement(this.previewButton);
4663
+ html_hideElement(this.recordAgainButton);
4664
+ html_hideElement(this.resumeButton);
4665
+ html_hideElement(this.audioOnRadioPair);
4666
+ html_hideElement(this.audioOffRadioPair);
4667
4667
  }
4668
4668
  onEnablingAudio() {
4669
4669
  this.options.logger.debug("Buttons: onEnablingAudio()");
@@ -4756,7 +4756,7 @@ class Buttons extends util_Despot {
4756
4756
  });
4757
4757
  this.on("CONNECTED", ()=>{
4758
4758
  if (this.options.loadUserMediaOnRecord) {
4759
- if (isShown(this.recordButton)) html_enableElement(this.recordButton);
4759
+ if (html_isShown(this.recordButton)) html_enableElement(this.recordButton);
4760
4760
  }
4761
4761
  });
4762
4762
  this.on("DISCONNECTED", ()=>{
@@ -4801,7 +4801,7 @@ class Buttons extends util_Despot {
4801
4801
  this.buttonsElement.classList.add(this.options.selectors.buttonsClass);
4802
4802
  this.container.appendChild(this.buttonsElement);
4803
4803
  }
4804
- hideElement(this.buttonsElement);
4804
+ html_hideElement(this.buttonsElement);
4805
4805
  this.buildButtons();
4806
4806
  if (!this.built) this.initEvents();
4807
4807
  this.built = true;
@@ -4816,16 +4816,16 @@ class Buttons extends util_Despot {
4816
4816
  }
4817
4817
  }
4818
4818
  hide(deep = false) {
4819
- hideElement(this.buttonsElement);
4819
+ html_hideElement(this.buttonsElement);
4820
4820
  if (deep) {
4821
- hideElement(this.recordButton);
4822
- hideElement(this.pauseButton);
4823
- hideElement(this.resumeButton);
4824
- hideElement(this.previewButton);
4825
- hideElement(this.recordAgainButton);
4826
- hideElement(this.submitButton);
4827
- hideElement(this.audioOnRadioPair);
4828
- hideElement(this.audioOffRadioPair);
4821
+ html_hideElement(this.recordButton);
4822
+ html_hideElement(this.pauseButton);
4823
+ html_hideElement(this.resumeButton);
4824
+ html_hideElement(this.previewButton);
4825
+ html_hideElement(this.recordAgainButton);
4826
+ html_hideElement(this.submitButton);
4827
+ html_hideElement(this.audioOnRadioPair);
4828
+ html_hideElement(this.audioOffRadioPair);
4829
4829
  }
4830
4830
  }
4831
4831
  show() {
@@ -5475,10 +5475,10 @@ class Notifier extends util_Despot {
5475
5475
  }
5476
5476
  }
5477
5477
  const notifier = Notifier;
5478
- function isPromise(anything) {
5479
- return anything && "undefined" != typeof Promise && anything instanceof Promise;
5478
+ function isPromise_isPromise(anything) {
5479
+ return Boolean(anything && "undefined" != typeof Promise && "[object Promise]" === Object.prototype.toString.call(anything));
5480
5480
  }
5481
- const util_isPromise = isPromise;
5481
+ const isPromise = isPromise_isPromise;
5482
5482
  const NodeEnvType = {
5483
5483
  DEVELOPMENT: "development",
5484
5484
  PRODUCTION: "production"
@@ -5811,7 +5811,7 @@ class UserMedia extends util_Despot {
5811
5811
  } catch (exc) {
5812
5812
  this.options.logger.warn(`Caught raw user media play exception: ${exc}`);
5813
5813
  }
5814
- if (util_isPromise(p)) p.then(()=>{
5814
+ if (isPromise(p)) p.then(()=>{
5815
5815
  if (!this.playingPromiseReached) {
5816
5816
  this.options.logger.debug("UserMedia: play promise successful. Playing now.");
5817
5817
  this.playingPromiseReached = true;
@@ -1,2 +1,2 @@
1
- declare function isPromise(anything: any): any;
1
+ declare function isPromise(anything: any): boolean;
2
2
  export default isPromise;
package/dist/umd/index.js CHANGED
@@ -14522,7 +14522,7 @@
14522
14522
  }
14523
14523
  const wrappers_form = Form;
14524
14524
  var package_namespaceObject = {
14525
- i8: "10.3.4"
14525
+ i8: "10.3.5"
14526
14526
  };
14527
14527
  function findOriginalExc(exc) {
14528
14528
  if (exc instanceof Error && "response" in exc) {
@@ -14700,25 +14700,25 @@
14700
14700
  else element.classList.remove("disabled");
14701
14701
  }
14702
14702
  const html_enableElement = enableElement;
14703
- function hideElement_hideElement(element) {
14703
+ function hideElement(element) {
14704
14704
  if (!element) return;
14705
14705
  hidden_default()(element, true);
14706
14706
  }
14707
- const hideElement = hideElement_hideElement;
14707
+ const html_hideElement = hideElement;
14708
14708
  function showElement(element) {
14709
14709
  if (!element) return;
14710
14710
  hidden_default()(element, false);
14711
14711
  }
14712
14712
  const html_showElement = showElement;
14713
- function isShown_isShown(element) {
14713
+ function isShown(element) {
14714
14714
  if (!element) return false;
14715
14715
  return !hidden_default()(element);
14716
14716
  }
14717
- const isShown = isShown_isShown;
14717
+ const html_isShown = isShown;
14718
14718
  function adjustButton(buttonElement, show, type, disabled) {
14719
14719
  if (disabled) html_disableElement(buttonElement);
14720
14720
  if (type) buttonElement.type = type;
14721
- if (!show) hideElement(buttonElement);
14721
+ if (!show) html_hideElement(buttonElement);
14722
14722
  return buttonElement;
14723
14723
  }
14724
14724
  const html_adjustButton = adjustButton;
@@ -14829,17 +14829,17 @@
14829
14829
  }
14830
14830
  }
14831
14831
  onFormReady(params) {
14832
- if (!isShown(this.recordAgainButton)) {
14832
+ if (!html_isShown(this.recordAgainButton)) {
14833
14833
  if (!params?.paused) html_showElement(this.recordButton);
14834
14834
  }
14835
14835
  if (!params?.paused) {
14836
14836
  html_disableElement(this.previewButton);
14837
- hideElement(this.previewButton);
14837
+ html_hideElement(this.previewButton);
14838
14838
  }
14839
14839
  if (!this.options.enableAutoValidation) html_enableElement(this.submitButton);
14840
14840
  }
14841
14841
  onGoingBack() {
14842
- hideElement(this.recordAgainButton);
14842
+ html_hideElement(this.recordAgainButton);
14843
14843
  html_showElement(this.recordButton);
14844
14844
  html_showElement(this.submitButton);
14845
14845
  }
@@ -14851,12 +14851,12 @@
14851
14851
  html_showElement(this.buttonsElement);
14852
14852
  html_showElement(this.audioOnRadioPair);
14853
14853
  html_showElement(this.audioOffRadioPair);
14854
- if (isShown(this.recordButton) && !params.recordWhenReady) html_enableElement(this.recordButton);
14855
- else if (isShown(this.recordAgainButton) && !params.recordWhenReady) html_enableElement(this.recordAgainButton);
14854
+ if (html_isShown(this.recordButton) && !params.recordWhenReady) html_enableElement(this.recordButton);
14855
+ else if (html_isShown(this.recordAgainButton) && !params.recordWhenReady) html_enableElement(this.recordAgainButton);
14856
14856
  if (this.options.enableAutoValidation) html_disableElement(this.submitButton);
14857
14857
  if (!params.recordWhenReady) {
14858
- if (isShown(this.audioOnRadioPair)) html_enableElement(this.audioOnRadioPair);
14859
- if (isShown(this.audioOffRadioPair)) html_enableElement(this.audioOffRadioPair);
14858
+ if (html_isShown(this.audioOnRadioPair)) html_enableElement(this.audioOnRadioPair);
14859
+ if (html_isShown(this.audioOffRadioPair)) html_enableElement(this.audioOffRadioPair);
14860
14860
  }
14861
14861
  }
14862
14862
  onResetting() {
@@ -14864,8 +14864,8 @@
14864
14864
  this.reset();
14865
14865
  }
14866
14866
  onPreview() {
14867
- hideElement(this.recordButton);
14868
- hideElement(this.previewButton);
14867
+ html_hideElement(this.recordButton);
14868
+ html_hideElement(this.previewButton);
14869
14869
  html_disableElement(this.audioOnRadioPair);
14870
14870
  html_disableElement(this.audioOffRadioPair);
14871
14871
  html_showElement(this.recordAgainButton);
@@ -14877,17 +14877,17 @@
14877
14877
  }
14878
14878
  adjustButtonsForPause() {
14879
14879
  if (!this.isCountingDown()) {
14880
- if (this.pauseButton) hideElement(this.pauseButton);
14880
+ if (this.pauseButton) html_hideElement(this.pauseButton);
14881
14881
  html_showElement(this.resumeButton);
14882
14882
  html_enableElement(this.resumeButton);
14883
- hideElement(this.recordButton);
14883
+ html_hideElement(this.recordButton);
14884
14884
  html_showElement(this.previewButton);
14885
14885
  html_enableElement(this.previewButton);
14886
14886
  }
14887
14887
  }
14888
14888
  onFirstFrameSent() {
14889
- hideElement(this.recordButton);
14890
- hideElement(this.recordAgainButton);
14889
+ html_hideElement(this.recordButton);
14890
+ html_hideElement(this.recordAgainButton);
14891
14891
  if (this.pauseButton) {
14892
14892
  html_showElement(this.pauseButton);
14893
14893
  html_enableElement(this.pauseButton);
@@ -14905,8 +14905,8 @@
14905
14905
  }
14906
14906
  }
14907
14907
  onResuming() {
14908
- hideElement(this.resumeButton);
14909
- hideElement(this.recordButton);
14908
+ html_hideElement(this.resumeButton);
14909
+ html_hideElement(this.recordButton);
14910
14910
  if (this.pauseButton) {
14911
14911
  html_enableElement(this.pauseButton);
14912
14912
  html_showElement(this.pauseButton);
@@ -14915,8 +14915,8 @@
14915
14915
  onStopping() {
14916
14916
  html_disableElement(this.previewButton);
14917
14917
  html_disableElement(this.recordButton);
14918
- hideElement(this.pauseButton);
14919
- hideElement(this.resumeButton);
14918
+ html_hideElement(this.pauseButton);
14919
+ html_hideElement(this.resumeButton);
14920
14920
  }
14921
14921
  onCountdown() {
14922
14922
  html_disableElement(this.recordButton);
@@ -14941,12 +14941,12 @@
14941
14941
  if (this.options.enableAutoValidation) html_enableElement(this.submitButton);
14942
14942
  }
14943
14943
  onHidden() {
14944
- hideElement(this.recordButton);
14945
- hideElement(this.previewButton);
14946
- hideElement(this.recordAgainButton);
14947
- hideElement(this.resumeButton);
14948
- hideElement(this.audioOnRadioPair);
14949
- hideElement(this.audioOffRadioPair);
14944
+ html_hideElement(this.recordButton);
14945
+ html_hideElement(this.previewButton);
14946
+ html_hideElement(this.recordAgainButton);
14947
+ html_hideElement(this.resumeButton);
14948
+ html_hideElement(this.audioOnRadioPair);
14949
+ html_hideElement(this.audioOffRadioPair);
14950
14950
  }
14951
14951
  onEnablingAudio() {
14952
14952
  this.options.logger.debug("Buttons: onEnablingAudio()");
@@ -15039,7 +15039,7 @@
15039
15039
  });
15040
15040
  this.on("CONNECTED", ()=>{
15041
15041
  if (this.options.loadUserMediaOnRecord) {
15042
- if (isShown(this.recordButton)) html_enableElement(this.recordButton);
15042
+ if (html_isShown(this.recordButton)) html_enableElement(this.recordButton);
15043
15043
  }
15044
15044
  });
15045
15045
  this.on("DISCONNECTED", ()=>{
@@ -15084,7 +15084,7 @@
15084
15084
  this.buttonsElement.classList.add(this.options.selectors.buttonsClass);
15085
15085
  this.container.appendChild(this.buttonsElement);
15086
15086
  }
15087
- hideElement(this.buttonsElement);
15087
+ html_hideElement(this.buttonsElement);
15088
15088
  this.buildButtons();
15089
15089
  if (!this.built) this.initEvents();
15090
15090
  this.built = true;
@@ -15099,16 +15099,16 @@
15099
15099
  }
15100
15100
  }
15101
15101
  hide(deep = false) {
15102
- hideElement(this.buttonsElement);
15102
+ html_hideElement(this.buttonsElement);
15103
15103
  if (deep) {
15104
- hideElement(this.recordButton);
15105
- hideElement(this.pauseButton);
15106
- hideElement(this.resumeButton);
15107
- hideElement(this.previewButton);
15108
- hideElement(this.recordAgainButton);
15109
- hideElement(this.submitButton);
15110
- hideElement(this.audioOnRadioPair);
15111
- hideElement(this.audioOffRadioPair);
15104
+ html_hideElement(this.recordButton);
15105
+ html_hideElement(this.pauseButton);
15106
+ html_hideElement(this.resumeButton);
15107
+ html_hideElement(this.previewButton);
15108
+ html_hideElement(this.recordAgainButton);
15109
+ html_hideElement(this.submitButton);
15110
+ html_hideElement(this.audioOnRadioPair);
15111
+ html_hideElement(this.audioOffRadioPair);
15112
15112
  }
15113
15113
  }
15114
15114
  show() {
@@ -15821,10 +15821,10 @@
15821
15821
  canvas_to_buffer_modern_r.atob = void 0;
15822
15822
  var websocket_stream_stream = __webpack_require__("./node_modules/websocket-stream/stream.js");
15823
15823
  var stream_default = /*#__PURE__*/ __webpack_require__.n(websocket_stream_stream);
15824
- function isPromise(anything) {
15825
- return anything && "undefined" != typeof Promise && anything instanceof Promise;
15824
+ function isPromise_isPromise(anything) {
15825
+ return Boolean(anything && "undefined" != typeof Promise && "[object Promise]" === Object.prototype.toString.call(anything));
15826
15826
  }
15827
- const util_isPromise = isPromise;
15827
+ const isPromise = isPromise_isPromise;
15828
15828
  class audio_sample_modern_t {
15829
15829
  constructor(r){
15830
15830
  this.float32Array = void 0, this.float32Array = r;
@@ -16168,7 +16168,7 @@
16168
16168
  } catch (exc) {
16169
16169
  this.options.logger.warn(`Caught raw user media play exception: ${exc}`);
16170
16170
  }
16171
- if (util_isPromise(p)) p.then(()=>{
16171
+ if (isPromise(p)) p.then(()=>{
16172
16172
  if (!this.playingPromiseReached) {
16173
16173
  this.options.logger.debug("UserMedia: play promise successful. Playing now.");
16174
16174
  this.playingPromiseReached = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "10.3.4",
3
+ "version": "10.3.5",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -58,7 +58,7 @@
58
58
  "prettier": "./prettier.config.cjs",
59
59
  "dependencies": {
60
60
  "animitter": "3.0.0",
61
- "audio-sample": "4.1.0",
61
+ "audio-sample": "5.0.0",
62
62
  "canvas-to-buffer": "4.1.2",
63
63
  "contains": "0.1.1",
64
64
  "deepmerge": "4.3.1",
@@ -69,22 +69,22 @@
69
69
  "is-power-of-two": "1.0.0",
70
70
  "nanoevents": "9.1.0",
71
71
  "serialize-error": "12.0.0",
72
- "superagent": "10.2.2",
72
+ "superagent": "10.2.3",
73
73
  "ua-parser-js": "2.0.4",
74
74
  "websocket-stream": "5.5.2"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@chromatic-com/storybook": "4.0.1",
78
78
  "@eslint/config-inspector": "1.1.0",
79
- "@eslint/js": "9.31.0",
80
- "@rsbuild/plugin-node-polyfill": "1.3.1",
79
+ "@eslint/js": "9.32.0",
80
+ "@rsbuild/plugin-node-polyfill": "1.3.2",
81
81
  "@rsbuild/plugin-stylus": "1.1.2",
82
- "@rsdoctor/rspack-plugin": "1.1.8",
83
- "@rslib/core": "0.10.6",
84
- "@storybook/addon-a11y": "9.0.17",
85
- "@storybook/addon-docs": "9.0.17",
86
- "@storybook/addon-links": "9.0.17",
87
- "@storybook/html": "9.0.17",
82
+ "@rsdoctor/rspack-plugin": "1.1.10",
83
+ "@rslib/core": "0.11.0",
84
+ "@storybook/addon-a11y": "9.0.18",
85
+ "@storybook/addon-docs": "9.0.18",
86
+ "@storybook/addon-links": "9.0.18",
87
+ "@storybook/html": "9.0.18",
88
88
  "@tsconfig/node22": "22.0.2",
89
89
  "@tsconfig/strictest": "2.0.5",
90
90
  "@types/defined": "1.0.2",
@@ -95,7 +95,7 @@
95
95
  "audit-ci": "7.1.0",
96
96
  "chromatic": "13.1.2",
97
97
  "cross-env": "7.0.3",
98
- "eslint": "9.31.0",
98
+ "eslint": "9.32.0",
99
99
  "eslint-import-resolver-typescript": "4.4.4",
100
100
  "eslint-plugin-de-morgan": "1.3.0",
101
101
  "eslint-plugin-depend": "1.2.0",
@@ -104,21 +104,21 @@
104
104
  "eslint-plugin-promise": "7.2.1",
105
105
  "eslint-plugin-regexp": "2.9.0",
106
106
  "eslint-plugin-security": "3.0.1",
107
- "eslint-plugin-storybook": "9.0.17",
107
+ "eslint-plugin-storybook": "9.0.18",
108
108
  "globals": "16.3.0",
109
109
  "jsdom": "26.1.0",
110
110
  "msw": "2.10.4",
111
111
  "msw-storybook-addon": "2.0.5",
112
112
  "prettier": "3.6.2",
113
113
  "prettier-plugin-curly": "0.3.2",
114
- "prettier-plugin-packagejson": "2.5.18",
114
+ "prettier-plugin-packagejson": "2.5.19",
115
115
  "prettier-plugin-sh": "0.18.0",
116
116
  "release-it": "19.0.4",
117
- "storybook": "9.0.17",
117
+ "storybook": "9.0.18",
118
118
  "storybook-html-rsbuild": "2.0.2",
119
119
  "type-fest": "4.41.0",
120
120
  "typescript": "5.8.3",
121
- "typescript-eslint": "8.37.0",
121
+ "typescript-eslint": "8.38.0",
122
122
  "vitest": "3.2.4"
123
123
  },
124
124
  "engines": {