videomail-client 10.1.2 → 10.1.4

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/README.md CHANGED
@@ -319,18 +319,19 @@ Bear with me, there are lots of problems to crack, especially with the performan
319
319
 
320
320
  ### Credits
321
321
 
322
- These guys helped and/or inspired me for this mad project:
323
-
324
- - Heath Sadler
325
- - Zack Best
326
- - Sonia Pivac
327
- - Isaac Johnston
328
- - Dominic Tarr
329
- - Daniel Ly
330
- - Nicholas Buchanan
331
- - Kelvin Wong
332
-
333
- They all deserve lots of beer and love. That order is irrelevant.
322
+ These guys helped inspired me for this awesome project. Thank you so much:
323
+
324
+ - Heath Sadler (Designer)
325
+ - Stefan Weber (Designer)
326
+ - Zack Best (Jurist)
327
+ - Sonia Pivac (Designer)
328
+ - Dominic Tarr (Boat Builder)
329
+ - Daniel Ly (Developer)
330
+ - Nicholas Buchanan (No idea)
331
+ - Kelvin Wong (Gamer)
332
+ - Isaac Johnston (Consultant)
333
+
334
+ They all deserve lots of love in return. Thank you so much.
334
335
 
335
336
  ### Code quality
336
337
 
@@ -9815,18 +9815,16 @@ var __webpack_modules__ = {
9815
9815
  }
9816
9816
  }
9817
9817
  },
9818
- "../../node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[9].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[9].use[2]!../../node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[9].use[3]!./src/styles/main.styl": function(module, __webpack_exports__, __webpack_require__) {
9818
+ "../../node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[9].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[9].use[2]!../../node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[9].use[3]!./src/styles/main.styl": function(module, __webpack_exports__, __webpack_require__) {
9819
9819
  "use strict";
9820
9820
  __webpack_require__.d(__webpack_exports__, {
9821
- Z: function() {
9822
- return __WEBPACK_DEFAULT_EXPORT__;
9823
- }
9821
+ Z: ()=>__WEBPACK_DEFAULT_EXPORT__
9824
9822
  });
9825
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
9826
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
9827
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/api.js");
9828
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
9829
- var ___CSS_LOADER_EXPORT___ = _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
9823
+ var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
9824
+ var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
9825
+ var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/api.js");
9826
+ var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
9827
+ var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
9830
9828
  ___CSS_LOADER_EXPORT___.push([
9831
9829
  module.id,
9832
9830
  '@keyframes blink{0%{opacity:.9}35%{opacity:.9}50%{opacity:.1}85%{opacity:.1}to{opacity:.9}}.videomail .visuals{position:relative}.videomail .visuals video.replay{width:100%;height:100%}.videomail .countdown,.videomail .recordTimer,.videomail .recordNote,.videomail .pausedHeader,.videomail .pausedHint{height:auto;margin:0}.videomail .countdown,.videomail .recordTimer,.videomail .recordNote,.videomail .paused,.videomail .facingMode,.videomail noscript{z-index:100;position:absolute}.videomail .countdown,.videomail .recordTimer,.videomail .recordNote,.videomail .pausedHeader,.videomail .pausedHint,.videomail noscript{font-weight:700}.videomail .countdown,.videomail .paused,.videomail noscript{width:100%;top:50%;transform:translateY(-50%)}.videomail .pausedHeader,.videomail .pausedHint,.videomail .countdown{text-align:center;letter-spacing:4px;text-shadow:-2px 0 #fff,0 2px #fff,2px 0 #fff,0 -2px #fff}.videomail .pausedHeader,.videomail .countdown{opacity:.9;font-size:460%}.videomail .pausedHint{font-size:150%}.videomail .facingMode{color:rgba(245,245,245,.9);z-index:10;background:rgba(30,30,30,.5);border:none;outline:none;padding:.1em .3em;font-family:monospace;font-size:1.2em;transition:all .2s;bottom:.6em;right:.7em}.videomail .facingMode:hover{cursor:pointer;background:rgba(50,50,50,.7)}.videomail .recordTimer,.videomail .recordNote{color:#00d814;opacity:.9;background:rgba(10,10,10,.8);padding:.3em .4em;font-family:monospace;transition:all 1s;right:.7em}.videomail .recordTimer.near,.videomail .recordNote.near{color:#eb9369}.videomail .recordTimer.nigh,.videomail .recordNote.nigh{color:#ea4b2a}.videomail .recordTimer{top:.7em}.videomail .recordNote{top:3.6em}.videomail .recordNote:before{content:"REC";animation:1s infinite blink}.videomail .notifier{box-sizing:border-box;overflow:hidden}.videomail .radioGroup{display:block}.videomail .radioGroup label{cursor:pointer}.videomail video{margin-bottom:0}.videomail video.userMedia{background-color:rgba(50,50,50,.1)}',
@@ -9840,7 +9838,7 @@ var __webpack_modules__ = {
9840
9838
  "?72a8": function() {},
9841
9839
  "?ea64": function() {},
9842
9840
  "?e97d": function() {},
9843
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module) {
9841
+ "./node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module) {
9844
9842
  "use strict";
9845
9843
  module.exports = function(cssWithMappingToString) {
9846
9844
  var list = [];
@@ -9900,13 +9898,13 @@ var __webpack_modules__ = {
9900
9898
  return list;
9901
9899
  };
9902
9900
  },
9903
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module) {
9901
+ "./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module) {
9904
9902
  "use strict";
9905
9903
  module.exports = function(i) {
9906
9904
  return i[1];
9907
9905
  };
9908
9906
  },
9909
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module) {
9907
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module) {
9910
9908
  "use strict";
9911
9909
  var stylesInDOM = [];
9912
9910
  function getIndexByIdentifier(identifier) {
@@ -9985,7 +9983,7 @@ var __webpack_modules__ = {
9985
9983
  };
9986
9984
  };
9987
9985
  },
9988
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module) {
9986
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module) {
9989
9987
  "use strict";
9990
9988
  var memo = {};
9991
9989
  function getTarget(target) {
@@ -10007,7 +10005,7 @@ var __webpack_modules__ = {
10007
10005
  }
10008
10006
  module.exports = insertBySelector;
10009
10007
  },
10010
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module) {
10008
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module) {
10011
10009
  "use strict";
10012
10010
  function insertStyleElement(options) {
10013
10011
  var element = document.createElement("style");
@@ -10017,7 +10015,7 @@ var __webpack_modules__ = {
10017
10015
  }
10018
10016
  module.exports = insertStyleElement;
10019
10017
  },
10020
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module, __unused_webpack_exports, __webpack_require__) {
10018
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module, __unused_webpack_exports, __webpack_require__) {
10021
10019
  "use strict";
10022
10020
  function setAttributesWithoutAttributes(styleElement) {
10023
10021
  var nonce = __webpack_require__.nc;
@@ -10025,7 +10023,7 @@ var __webpack_modules__ = {
10025
10023
  }
10026
10024
  module.exports = setAttributesWithoutAttributes;
10027
10025
  },
10028
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module) {
10026
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module) {
10029
10027
  "use strict";
10030
10028
  function apply(styleElement, options, obj) {
10031
10029
  var css = "";
@@ -10062,7 +10060,7 @@ var __webpack_modules__ = {
10062
10060
  }
10063
10061
  module.exports = domAPI;
10064
10062
  },
10065
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module) {
10063
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module) {
10066
10064
  "use strict";
10067
10065
  function styleTagTransform(css, styleElement) {
10068
10066
  if (styleElement.styleSheet) styleElement.styleSheet.cssText = css;
@@ -13121,7 +13119,11 @@ var __webpack_exports__ = {};
13121
13119
  break;
13122
13120
  case error_VideomailError.OVERCONSTRAINED:
13123
13121
  message = "Invalid webcam constraints";
13124
- explanation = err && "constraint" in err ? "width" === err.constraint ? "Your webcam does not meet the width requirement." : `Unmet constraint: ${err.constraint}` : null == err ? void 0 : err.message;
13122
+ if (err && "constraint" in err) {
13123
+ const overconstrainedError = err;
13124
+ const constraint = overconstrainedError.constraint;
13125
+ explanation = "width" === constraint ? "Your webcam does not meet the width requirement." : constraint ? `Unmet constraint: ${constraint}` : err.message;
13126
+ } else explanation = null == err ? void 0 : err.message;
13125
13127
  break;
13126
13128
  case "MediaDeviceFailedDueToShutdown":
13127
13129
  message = "Webcam is shutting down";
@@ -13679,7 +13681,7 @@ var __webpack_exports__ = {};
13679
13681
  }
13680
13682
  const wrappers_form = Form;
13681
13683
  var package_namespaceObject = {
13682
- i8: "10.1.2"
13684
+ i8: "10.1.4"
13683
13685
  };
13684
13686
  function resource_define_property(obj, key, value) {
13685
13687
  if (key in obj) Object.defineProperty(obj, key, {
@@ -14987,11 +14989,16 @@ var __webpack_exports__ = {};
14987
14989
  explanation
14988
14990
  ].filter(Boolean);
14989
14991
  this.options.logger.debug(`Notifier: notify(${params.join(", ")})`);
14990
- const stillWait = !!notifyOptions.stillWait && notifyOptions.stillWait;
14991
- const entertain = !!notifyOptions.entertain && notifyOptions.entertain;
14992
- const blocking = !!notifyOptions.blocking && notifyOptions.blocking;
14993
- const classList = !!notifyOptions.classList && notifyOptions.classList;
14994
- const removeDimensions = !!notifyOptions.removeDimensions && notifyOptions.removeDimensions;
14992
+ var _notifyOptions_stillWait;
14993
+ const stillWait = null !== (_notifyOptions_stillWait = notifyOptions.stillWait) && void 0 !== _notifyOptions_stillWait && _notifyOptions_stillWait;
14994
+ var _notifyOptions_entertain;
14995
+ const entertain = null !== (_notifyOptions_entertain = notifyOptions.entertain) && void 0 !== _notifyOptions_entertain && _notifyOptions_entertain;
14996
+ var _notifyOptions_blocking;
14997
+ const blocking = null !== (_notifyOptions_blocking = notifyOptions.blocking) && void 0 !== _notifyOptions_blocking && _notifyOptions_blocking;
14998
+ var _notifyOptions_classList;
14999
+ const classList = null !== (_notifyOptions_classList = notifyOptions.classList) && void 0 !== _notifyOptions_classList && _notifyOptions_classList;
15000
+ var _notifyOptions_removeDimensions;
15001
+ const removeDimensions = null !== (_notifyOptions_removeDimensions = notifyOptions.removeDimensions) && void 0 !== _notifyOptions_removeDimensions && _notifyOptions_removeDimensions;
14995
15002
  if (this.notifyElement) {
14996
15003
  if (!entertain) this.notifyElement.className = "notifier";
14997
15004
  if (classList) classList.forEach((className)=>{
@@ -15690,9 +15697,13 @@ var __webpack_exports__ = {};
15690
15697
  return ratio;
15691
15698
  }
15692
15699
  const dimensions_getRatio = getRatio;
15693
- function limitHeight_limitHeight(height, options) {
15694
- if (!height || height < 1) throw error_createError({
15695
- message: `Passed limit-height argument ${height} cannot be less than 1!`,
15700
+ function limitHeight_limitHeight(height, options, calledFrom) {
15701
+ if (void 0 === height) throw error_createError({
15702
+ message: `Passed limit-height argument height cannot be undefined (Called from ${calledFrom})`,
15703
+ options
15704
+ });
15705
+ if (height < 1) throw error_createError({
15706
+ message: `Passed limit-height argument ${height} cannot be less than 1! (Called from ${calledFrom})`,
15696
15707
  options
15697
15708
  });
15698
15709
  const limitedHeight = Math.min(height, document.documentElement.clientHeight);
@@ -15705,7 +15716,7 @@ var __webpack_exports__ = {};
15705
15716
  const limitHeight = limitHeight_limitHeight;
15706
15717
  function calculateWidth_calculateWidth(responsive, videoHeight, options, ratio) {
15707
15718
  let height = figureMinHeight(videoHeight, options);
15708
- if (responsive) height = limitHeight(height, options);
15719
+ if (responsive) height = limitHeight(height, options, "calculateWidth");
15709
15720
  if (!height || height < 1) throw error_createError({
15710
15721
  message: "Height cannot be smaller than 1 when calculating width.",
15711
15722
  options
@@ -16756,7 +16767,7 @@ var __webpack_exports__ = {};
16756
16767
  if (this.isShown()) return;
16757
16768
  this.options.logger.debug(`Replay: show(playerOnly=${playerOnly})`);
16758
16769
  const hasMedia = Boolean(null === (_this_videomail = this.videomail) || void 0 === _this_videomail ? void 0 : _this_videomail.webm) || Boolean(null === (_this_videomail1 = this.videomail) || void 0 === _this_videomail1 ? void 0 : _this_videomail1.mp4) || Boolean(null === (_this_videomail2 = this.videomail) || void 0 === _this_videomail2 ? void 0 : _this_videomail2.poster);
16759
- if (hasMedia) this.correctDimensions(true, videomailWidth ? videomailWidth : this.replayElement.videoWidth, videomailHeight ? videomailHeight : this.replayElement.videoHeight);
16770
+ if (hasMedia) this.correctDimensions(true, null != videomailWidth ? videomailWidth : this.replayElement.videoWidth, null != videomailHeight ? videomailHeight : this.replayElement.videoHeight);
16760
16771
  if (playerOnly) {
16761
16772
  if (hasMedia) hidden_default()(this.replayElement, false);
16762
16773
  } else hidden_default()(this.replayElement, false);
@@ -17227,19 +17238,19 @@ var __webpack_exports__ = {};
17227
17238
  }
17228
17239
  }
17229
17240
  const wrappers_visuals = Visuals;
17230
- var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
17241
+ var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
17231
17242
  var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
17232
- var styleDomAPI = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
17243
+ var styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
17233
17244
  var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
17234
- var insertBySelector = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
17245
+ var insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
17235
17246
  var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
17236
- var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
17247
+ var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
17237
17248
  var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
17238
- var insertStyleElement = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
17249
+ var insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
17239
17250
  var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
17240
- var styleTagTransform = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
17251
+ var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
17241
17252
  var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
17242
- var main = __webpack_require__("../../node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[9].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[9].use[2]!../../node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[9].use[3]!./src/styles/main.styl");
17253
+ var main = __webpack_require__("../../node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[9].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[9].use[2]!../../node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[9].use[3]!./src/styles/main.styl");
17243
17254
  var main_options = {};
17244
17255
  main_options.styleTagTransform = styleTagTransform_default();
17245
17256
  main_options.setAttributes = setAttributesWithoutAttributes_default();
@@ -17426,7 +17437,7 @@ var __webpack_exports__ = {};
17426
17437
  return limitWidth(this.containerElement, this.options, width);
17427
17438
  }
17428
17439
  limitHeight(height) {
17429
- return limitHeight(height, this.options);
17440
+ return limitHeight(height, this.options, "containers limitHeight fn");
17430
17441
  }
17431
17442
  areVisualsHidden() {
17432
17443
  return this.visuals.isHidden();
package/dist/esm/index.js CHANGED
@@ -3019,17 +3019,15 @@ var __webpack_modules__ = {
3019
3019
  return tryTypedArrays(value);
3020
3020
  };
3021
3021
  },
3022
- "../../node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[9].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[9].use[2]!../../node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[9].use[3]!./src/styles/main.styl": function(module, __webpack_exports__, __webpack_require__) {
3022
+ "../../node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[9].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[9].use[2]!../../node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[9].use[3]!./src/styles/main.styl": function(module, __webpack_exports__, __webpack_require__) {
3023
3023
  __webpack_require__.d(__webpack_exports__, {
3024
- Z: function() {
3025
- return __WEBPACK_DEFAULT_EXPORT__;
3026
- }
3024
+ Z: ()=>__WEBPACK_DEFAULT_EXPORT__
3027
3025
  });
3028
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
3029
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
3030
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/api.js");
3031
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
3032
- var ___CSS_LOADER_EXPORT___ = _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
3026
+ var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
3027
+ var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
3028
+ var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/api.js");
3029
+ var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
3030
+ var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
3033
3031
  ___CSS_LOADER_EXPORT___.push([
3034
3032
  module.id,
3035
3033
  '@keyframes blink{0%{opacity:.9}35%{opacity:.9}50%{opacity:.1}85%{opacity:.1}to{opacity:.9}}.videomail .visuals{position:relative}.videomail .visuals video.replay{width:100%;height:100%}.videomail .countdown,.videomail .recordTimer,.videomail .recordNote,.videomail .pausedHeader,.videomail .pausedHint{height:auto;margin:0}.videomail .countdown,.videomail .recordTimer,.videomail .recordNote,.videomail .paused,.videomail .facingMode,.videomail noscript{z-index:100;position:absolute}.videomail .countdown,.videomail .recordTimer,.videomail .recordNote,.videomail .pausedHeader,.videomail .pausedHint,.videomail noscript{font-weight:700}.videomail .countdown,.videomail .paused,.videomail noscript{width:100%;top:50%;transform:translateY(-50%)}.videomail .pausedHeader,.videomail .pausedHint,.videomail .countdown{text-align:center;letter-spacing:4px;text-shadow:-2px 0 #fff,0 2px #fff,2px 0 #fff,0 -2px #fff}.videomail .pausedHeader,.videomail .countdown{opacity:.9;font-size:460%}.videomail .pausedHint{font-size:150%}.videomail .facingMode{color:#f5f5f5e6;z-index:10;background:#1e1e1e80;border:none;outline:none;padding:.1em .3em;font-family:monospace;font-size:1.2em;transition:all .2s;bottom:.6em;right:.7em}.videomail .facingMode:hover{cursor:pointer;background:#323232b3}.videomail .recordTimer,.videomail .recordNote{color:#00d814;opacity:.9;background:#0a0a0acc;padding:.3em .4em;font-family:monospace;transition:all 1s;right:.7em}.videomail .recordTimer.near,.videomail .recordNote.near{color:#eb9369}.videomail .recordTimer.nigh,.videomail .recordNote.nigh{color:#ea4b2a}.videomail .recordTimer{top:.7em}.videomail .recordNote{top:3.6em}.videomail .recordNote:before{content:"REC";animation:1s infinite blink}.videomail .notifier{box-sizing:border-box;overflow:hidden}.videomail .radioGroup{display:block}.videomail .radioGroup label{cursor:pointer}.videomail video{margin-bottom:0}.videomail video.userMedia{background-color:#3232321a}',
@@ -3037,7 +3035,7 @@ var __webpack_modules__ = {
3037
3035
  ]);
3038
3036
  const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
3039
3037
  },
3040
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module) {
3038
+ "./node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module) {
3041
3039
  module.exports = function(cssWithMappingToString) {
3042
3040
  var list = [];
3043
3041
  list.toString = function() {
@@ -3096,12 +3094,12 @@ var __webpack_modules__ = {
3096
3094
  return list;
3097
3095
  };
3098
3096
  },
3099
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module) {
3097
+ "./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module) {
3100
3098
  module.exports = function(i) {
3101
3099
  return i[1];
3102
3100
  };
3103
3101
  },
3104
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module) {
3102
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module) {
3105
3103
  var stylesInDOM = [];
3106
3104
  function getIndexByIdentifier(identifier) {
3107
3105
  var result = -1;
@@ -3179,7 +3177,7 @@ var __webpack_modules__ = {
3179
3177
  };
3180
3178
  };
3181
3179
  },
3182
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module) {
3180
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module) {
3183
3181
  var memo = {};
3184
3182
  function getTarget(target) {
3185
3183
  if (void 0 === memo[target]) {
@@ -3200,7 +3198,7 @@ var __webpack_modules__ = {
3200
3198
  }
3201
3199
  module.exports = insertBySelector;
3202
3200
  },
3203
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module) {
3201
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module) {
3204
3202
  function insertStyleElement(options) {
3205
3203
  var element = document.createElement("style");
3206
3204
  options.setAttributes(element, options.attributes);
@@ -3209,14 +3207,14 @@ var __webpack_modules__ = {
3209
3207
  }
3210
3208
  module.exports = insertStyleElement;
3211
3209
  },
3212
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module, __unused_webpack_exports, __webpack_require__) {
3210
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module, __unused_webpack_exports, __webpack_require__) {
3213
3211
  function setAttributesWithoutAttributes(styleElement) {
3214
3212
  var nonce = __webpack_require__.nc;
3215
3213
  if (nonce) styleElement.setAttribute("nonce", nonce);
3216
3214
  }
3217
3215
  module.exports = setAttributesWithoutAttributes;
3218
3216
  },
3219
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module) {
3217
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module) {
3220
3218
  function apply(styleElement, options, obj) {
3221
3219
  var css = "";
3222
3220
  if (obj.supports) css += "@supports (".concat(obj.supports, ") {");
@@ -3252,7 +3250,7 @@ var __webpack_modules__ = {
3252
3250
  }
3253
3251
  module.exports = domAPI;
3254
3252
  },
3255
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module) {
3253
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module) {
3256
3254
  function styleTagTransform(css, styleElement) {
3257
3255
  if (styleElement.styleSheet) styleElement.styleSheet.cssText = css;
3258
3256
  else {
@@ -3542,7 +3540,11 @@ function createError(errorParams) {
3542
3540
  break;
3543
3541
  case error_VideomailError.OVERCONSTRAINED:
3544
3542
  message = "Invalid webcam constraints";
3545
- explanation = err && "constraint" in err ? "width" === err.constraint ? "Your webcam does not meet the width requirement." : `Unmet constraint: ${err.constraint}` : err?.message;
3543
+ if (err && "constraint" in err) {
3544
+ const overconstrainedError = err;
3545
+ const constraint = overconstrainedError.constraint;
3546
+ explanation = "width" === constraint ? "Your webcam does not meet the width requirement." : constraint ? `Unmet constraint: ${constraint}` : err.message;
3547
+ } else explanation = err?.message;
3546
3548
  break;
3547
3549
  case "MediaDeviceFailedDueToShutdown":
3548
3550
  message = "Webcam is shutting down";
@@ -3964,7 +3966,7 @@ class Form extends Despot {
3964
3966
  }
3965
3967
  const wrappers_form = Form;
3966
3968
  var package_namespaceObject = {
3967
- i8: "10.1.2"
3969
+ i8: "10.1.4"
3968
3970
  };
3969
3971
  function findOriginalExc(exc) {
3970
3972
  if (exc instanceof Error && "response" in exc) {
@@ -5160,11 +5162,11 @@ class Notifier extends Despot {
5160
5162
  explanation
5161
5163
  ].filter(Boolean);
5162
5164
  this.options.logger.debug(`Notifier: notify(${params.join(", ")})`);
5163
- const stillWait = !!notifyOptions.stillWait && notifyOptions.stillWait;
5164
- const entertain = !!notifyOptions.entertain && notifyOptions.entertain;
5165
- const blocking = !!notifyOptions.blocking && notifyOptions.blocking;
5166
- const classList = !!notifyOptions.classList && notifyOptions.classList;
5167
- const removeDimensions = !!notifyOptions.removeDimensions && notifyOptions.removeDimensions;
5165
+ const stillWait = notifyOptions.stillWait ?? false;
5166
+ const entertain = notifyOptions.entertain ?? false;
5167
+ const blocking = notifyOptions.blocking ?? false;
5168
+ const classList = notifyOptions.classList ?? false;
5169
+ const removeDimensions = notifyOptions.removeDimensions ?? false;
5168
5170
  if (this.notifyElement) {
5169
5171
  if (!entertain) this.notifyElement.className = "notifier";
5170
5172
  if (classList) classList.forEach((className)=>{
@@ -5751,9 +5753,13 @@ function getRatio(options, videoHeight, videoWidth) {
5751
5753
  return ratio;
5752
5754
  }
5753
5755
  const dimensions_getRatio = getRatio;
5754
- function limitHeight_limitHeight(height, options) {
5755
- if (!height || height < 1) throw error_createError({
5756
- message: `Passed limit-height argument ${height} cannot be less than 1!`,
5756
+ function limitHeight_limitHeight(height, options, calledFrom) {
5757
+ if (void 0 === height) throw error_createError({
5758
+ message: `Passed limit-height argument height cannot be undefined (Called from ${calledFrom})`,
5759
+ options
5760
+ });
5761
+ if (height < 1) throw error_createError({
5762
+ message: `Passed limit-height argument ${height} cannot be less than 1! (Called from ${calledFrom})`,
5757
5763
  options
5758
5764
  });
5759
5765
  const limitedHeight = Math.min(height, document.documentElement.clientHeight);
@@ -5766,7 +5772,7 @@ function limitHeight_limitHeight(height, options) {
5766
5772
  const limitHeight = limitHeight_limitHeight;
5767
5773
  function calculateWidth(responsive, videoHeight, options, ratio) {
5768
5774
  let height = figureMinHeight(videoHeight, options);
5769
- if (responsive) height = limitHeight(height, options);
5775
+ if (responsive) height = limitHeight(height, options, "calculateWidth");
5770
5776
  if (!height || height < 1) throw error_createError({
5771
5777
  message: "Height cannot be smaller than 1 when calculating width.",
5772
5778
  options
@@ -6815,7 +6821,7 @@ class Replay extends Despot {
6815
6821
  if (this.isShown()) return;
6816
6822
  this.options.logger.debug(`Replay: show(playerOnly=${playerOnly})`);
6817
6823
  const hasMedia = Boolean(this.videomail?.webm) || Boolean(this.videomail?.mp4) || Boolean(this.videomail?.poster);
6818
- if (hasMedia) this.correctDimensions(true, videomailWidth ? videomailWidth : this.replayElement.videoWidth, videomailHeight ? videomailHeight : this.replayElement.videoHeight);
6824
+ if (hasMedia) this.correctDimensions(true, videomailWidth ?? this.replayElement.videoWidth, videomailHeight ?? this.replayElement.videoHeight);
6819
6825
  if (playerOnly) {
6820
6826
  if (hasMedia) (0, __WEBPACK_EXTERNAL_MODULE_hidden__["default"])(this.replayElement, false);
6821
6827
  } else (0, __WEBPACK_EXTERNAL_MODULE_hidden__["default"])(this.replayElement, false);
@@ -7256,19 +7262,19 @@ class Visuals extends Despot {
7256
7262
  }
7257
7263
  }
7258
7264
  const wrappers_visuals = Visuals;
7259
- var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
7265
+ var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
7260
7266
  var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
7261
- var styleDomAPI = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
7267
+ var styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
7262
7268
  var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
7263
- var insertBySelector = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
7269
+ var insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
7264
7270
  var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
7265
- var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
7271
+ var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
7266
7272
  var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
7267
- var insertStyleElement = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
7273
+ var insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
7268
7274
  var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
7269
- var styleTagTransform = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
7275
+ var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
7270
7276
  var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
7271
- var main = __webpack_require__("../../node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[9].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[9].use[2]!../../node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[9].use[3]!./src/styles/main.styl");
7277
+ var main = __webpack_require__("../../node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[9].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[9].use[2]!../../node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[9].use[3]!./src/styles/main.styl");
7272
7278
  var main_options = {};
7273
7279
  main_options.styleTagTransform = styleTagTransform_default();
7274
7280
  main_options.setAttributes = setAttributesWithoutAttributes_default();
@@ -7457,7 +7463,7 @@ class Container extends Despot {
7457
7463
  return limitWidth(this.containerElement, this.options, width);
7458
7464
  }
7459
7465
  limitHeight(height) {
7460
- return limitHeight(height, this.options);
7466
+ return limitHeight(height, this.options, "containers limitHeight fn");
7461
7467
  }
7462
7468
  areVisualsHidden() {
7463
7469
  return this.visuals.isHidden();
@@ -1,3 +1,3 @@
1
1
  import { VideomailClientOptions } from "../../../types/options";
2
- declare function limitHeight(height: number | undefined, options: VideomailClientOptions): number;
2
+ declare function limitHeight(height: number | undefined, options: VideomailClientOptions, calledFrom: string): number;
3
3
  export default limitHeight;
package/dist/umd/index.js CHANGED
@@ -9821,18 +9821,16 @@
9821
9821
  }
9822
9822
  }
9823
9823
  },
9824
- "../../node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[9].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[9].use[2]!../../node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[9].use[3]!./src/styles/main.styl": function(module1, __webpack_exports__, __webpack_require__) {
9824
+ "../../node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[9].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[9].use[2]!../../node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[9].use[3]!./src/styles/main.styl": function(module1, __webpack_exports__, __webpack_require__) {
9825
9825
  "use strict";
9826
9826
  __webpack_require__.d(__webpack_exports__, {
9827
- Z: function() {
9828
- return __WEBPACK_DEFAULT_EXPORT__;
9829
- }
9827
+ Z: ()=>__WEBPACK_DEFAULT_EXPORT__
9830
9828
  });
9831
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
9832
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
9833
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/api.js");
9834
- var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
9835
- var ___CSS_LOADER_EXPORT___ = _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
9829
+ var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
9830
+ var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
9831
+ var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/api.js");
9832
+ var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
9833
+ var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
9836
9834
  ___CSS_LOADER_EXPORT___.push([
9837
9835
  module1.id,
9838
9836
  '@keyframes blink{0%{opacity:.9}35%{opacity:.9}50%{opacity:.1}85%{opacity:.1}to{opacity:.9}}.videomail .visuals{position:relative}.videomail .visuals video.replay{width:100%;height:100%}.videomail .countdown,.videomail .recordTimer,.videomail .recordNote,.videomail .pausedHeader,.videomail .pausedHint{height:auto;margin:0}.videomail .countdown,.videomail .recordTimer,.videomail .recordNote,.videomail .paused,.videomail .facingMode,.videomail noscript{z-index:100;position:absolute}.videomail .countdown,.videomail .recordTimer,.videomail .recordNote,.videomail .pausedHeader,.videomail .pausedHint,.videomail noscript{font-weight:700}.videomail .countdown,.videomail .paused,.videomail noscript{width:100%;top:50%;transform:translateY(-50%)}.videomail .pausedHeader,.videomail .pausedHint,.videomail .countdown{text-align:center;letter-spacing:4px;text-shadow:-2px 0 #fff,0 2px #fff,2px 0 #fff,0 -2px #fff}.videomail .pausedHeader,.videomail .countdown{opacity:.9;font-size:460%}.videomail .pausedHint{font-size:150%}.videomail .facingMode{color:#f5f5f5e6;z-index:10;background:#1e1e1e80;border:none;outline:none;padding:.1em .3em;font-family:monospace;font-size:1.2em;transition:all .2s;bottom:.6em;right:.7em}.videomail .facingMode:hover{cursor:pointer;background:#323232b3}.videomail .recordTimer,.videomail .recordNote{color:#00d814;opacity:.9;background:#0a0a0acc;padding:.3em .4em;font-family:monospace;transition:all 1s;right:.7em}.videomail .recordTimer.near,.videomail .recordNote.near{color:#eb9369}.videomail .recordTimer.nigh,.videomail .recordNote.nigh{color:#ea4b2a}.videomail .recordTimer{top:.7em}.videomail .recordNote{top:3.6em}.videomail .recordNote:before{content:"REC";animation:1s infinite blink}.videomail .notifier{box-sizing:border-box;overflow:hidden}.videomail .radioGroup{display:block}.videomail .radioGroup label{cursor:pointer}.videomail video{margin-bottom:0}.videomail video.userMedia{background-color:#3232321a}',
@@ -9846,7 +9844,7 @@
9846
9844
  "?72a8": function() {},
9847
9845
  "?ea64": function() {},
9848
9846
  "?e97d": function() {},
9849
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module1) {
9847
+ "./node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module1) {
9850
9848
  "use strict";
9851
9849
  module1.exports = function(cssWithMappingToString) {
9852
9850
  var list = [];
@@ -9906,13 +9904,13 @@
9906
9904
  return list;
9907
9905
  };
9908
9906
  },
9909
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module1) {
9907
+ "./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module1) {
9910
9908
  "use strict";
9911
9909
  module1.exports = function(i) {
9912
9910
  return i[1];
9913
9911
  };
9914
9912
  },
9915
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module1) {
9913
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module1) {
9916
9914
  "use strict";
9917
9915
  var stylesInDOM = [];
9918
9916
  function getIndexByIdentifier(identifier) {
@@ -9991,7 +9989,7 @@
9991
9989
  };
9992
9990
  };
9993
9991
  },
9994
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module1) {
9992
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module1) {
9995
9993
  "use strict";
9996
9994
  var memo = {};
9997
9995
  function getTarget(target) {
@@ -10013,7 +10011,7 @@
10013
10011
  }
10014
10012
  module1.exports = insertBySelector;
10015
10013
  },
10016
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module1) {
10014
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module1) {
10017
10015
  "use strict";
10018
10016
  function insertStyleElement(options) {
10019
10017
  var element = document.createElement("style");
@@ -10023,7 +10021,7 @@
10023
10021
  }
10024
10022
  module1.exports = insertStyleElement;
10025
10023
  },
10026
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module1, __unused_webpack_exports, __webpack_require__) {
10024
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module1, __unused_webpack_exports, __webpack_require__) {
10027
10025
  "use strict";
10028
10026
  function setAttributesWithoutAttributes(styleElement) {
10029
10027
  var nonce = __webpack_require__.nc;
@@ -10031,7 +10029,7 @@
10031
10029
  }
10032
10030
  module1.exports = setAttributesWithoutAttributes;
10033
10031
  },
10034
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module1) {
10032
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module1) {
10035
10033
  "use strict";
10036
10034
  function apply(styleElement, options, obj) {
10037
10035
  var css = "";
@@ -10068,7 +10066,7 @@
10068
10066
  }
10069
10067
  module1.exports = domAPI;
10070
10068
  },
10071
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module1) {
10069
+ "./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module1) {
10072
10070
  "use strict";
10073
10071
  function styleTagTransform(css, styleElement) {
10074
10072
  if (styleElement.styleSheet) styleElement.styleSheet.cssText = css;
@@ -13110,7 +13108,11 @@
13110
13108
  break;
13111
13109
  case error_VideomailError.OVERCONSTRAINED:
13112
13110
  message = "Invalid webcam constraints";
13113
- explanation = err && "constraint" in err ? "width" === err.constraint ? "Your webcam does not meet the width requirement." : `Unmet constraint: ${err.constraint}` : err?.message;
13111
+ if (err && "constraint" in err) {
13112
+ const overconstrainedError = err;
13113
+ const constraint = overconstrainedError.constraint;
13114
+ explanation = "width" === constraint ? "Your webcam does not meet the width requirement." : constraint ? `Unmet constraint: ${constraint}` : err.message;
13115
+ } else explanation = err?.message;
13114
13116
  break;
13115
13117
  case "MediaDeviceFailedDueToShutdown":
13116
13118
  message = "Webcam is shutting down";
@@ -13647,7 +13649,7 @@
13647
13649
  }
13648
13650
  const wrappers_form = Form;
13649
13651
  var package_namespaceObject = {
13650
- i8: "10.1.2"
13652
+ i8: "10.1.4"
13651
13653
  };
13652
13654
  function findOriginalExc(exc) {
13653
13655
  if (exc instanceof Error && "response" in exc) {
@@ -14847,11 +14849,11 @@
14847
14849
  explanation
14848
14850
  ].filter(Boolean);
14849
14851
  this.options.logger.debug(`Notifier: notify(${params.join(", ")})`);
14850
- const stillWait = !!notifyOptions.stillWait && notifyOptions.stillWait;
14851
- const entertain = !!notifyOptions.entertain && notifyOptions.entertain;
14852
- const blocking = !!notifyOptions.blocking && notifyOptions.blocking;
14853
- const classList = !!notifyOptions.classList && notifyOptions.classList;
14854
- const removeDimensions = !!notifyOptions.removeDimensions && notifyOptions.removeDimensions;
14852
+ const stillWait = notifyOptions.stillWait ?? false;
14853
+ const entertain = notifyOptions.entertain ?? false;
14854
+ const blocking = notifyOptions.blocking ?? false;
14855
+ const classList = notifyOptions.classList ?? false;
14856
+ const removeDimensions = notifyOptions.removeDimensions ?? false;
14855
14857
  if (this.notifyElement) {
14856
14858
  if (!entertain) this.notifyElement.className = "notifier";
14857
14859
  if (classList) classList.forEach((className)=>{
@@ -15512,9 +15514,13 @@
15512
15514
  return ratio;
15513
15515
  }
15514
15516
  const dimensions_getRatio = getRatio;
15515
- function limitHeight_limitHeight(height, options) {
15516
- if (!height || height < 1) throw error_createError({
15517
- message: `Passed limit-height argument ${height} cannot be less than 1!`,
15517
+ function limitHeight_limitHeight(height, options, calledFrom) {
15518
+ if (void 0 === height) throw error_createError({
15519
+ message: `Passed limit-height argument height cannot be undefined (Called from ${calledFrom})`,
15520
+ options
15521
+ });
15522
+ if (height < 1) throw error_createError({
15523
+ message: `Passed limit-height argument ${height} cannot be less than 1! (Called from ${calledFrom})`,
15518
15524
  options
15519
15525
  });
15520
15526
  const limitedHeight = Math.min(height, document.documentElement.clientHeight);
@@ -15527,7 +15533,7 @@
15527
15533
  const limitHeight = limitHeight_limitHeight;
15528
15534
  function calculateWidth_calculateWidth(responsive, videoHeight, options, ratio) {
15529
15535
  let height = figureMinHeight(videoHeight, options);
15530
- if (responsive) height = limitHeight(height, options);
15536
+ if (responsive) height = limitHeight(height, options, "calculateWidth");
15531
15537
  if (!height || height < 1) throw error_createError({
15532
15538
  message: "Height cannot be smaller than 1 when calculating width.",
15533
15539
  options
@@ -16576,7 +16582,7 @@
16576
16582
  if (this.isShown()) return;
16577
16583
  this.options.logger.debug(`Replay: show(playerOnly=${playerOnly})`);
16578
16584
  const hasMedia = Boolean(this.videomail?.webm) || Boolean(this.videomail?.mp4) || Boolean(this.videomail?.poster);
16579
- if (hasMedia) this.correctDimensions(true, videomailWidth ? videomailWidth : this.replayElement.videoWidth, videomailHeight ? videomailHeight : this.replayElement.videoHeight);
16585
+ if (hasMedia) this.correctDimensions(true, videomailWidth ?? this.replayElement.videoWidth, videomailHeight ?? this.replayElement.videoHeight);
16580
16586
  if (playerOnly) {
16581
16587
  if (hasMedia) hidden_default()(this.replayElement, false);
16582
16588
  } else hidden_default()(this.replayElement, false);
@@ -17017,19 +17023,19 @@
17017
17023
  }
17018
17024
  }
17019
17025
  const wrappers_visuals = Visuals;
17020
- var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
17026
+ var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
17021
17027
  var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
17022
- var styleDomAPI = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
17028
+ var styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
17023
17029
  var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
17024
- var insertBySelector = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
17030
+ var insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
17025
17031
  var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
17026
- var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
17032
+ var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
17027
17033
  var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
17028
- var insertStyleElement = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
17034
+ var insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
17029
17035
  var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
17030
- var styleTagTransform = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
17036
+ var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
17031
17037
  var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
17032
- var main = __webpack_require__("../../node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[9].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[9].use[2]!../../node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[9].use[3]!./src/styles/main.styl");
17038
+ var main = __webpack_require__("../../node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[9].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[9].use[2]!../../node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[9].use[3]!./src/styles/main.styl");
17033
17039
  var main_options = {};
17034
17040
  main_options.styleTagTransform = styleTagTransform_default();
17035
17041
  main_options.setAttributes = setAttributesWithoutAttributes_default();
@@ -17218,7 +17224,7 @@
17218
17224
  return limitWidth(this.containerElement, this.options, width);
17219
17225
  }
17220
17226
  limitHeight(height) {
17221
- return limitHeight(height, this.options);
17227
+ return limitHeight(height, this.options, "containers limitHeight fn");
17222
17228
  }
17223
17229
  areVisualsHidden() {
17224
17230
  return this.visuals.isHidden();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "10.1.2",
3
+ "version": "10.1.4",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -73,30 +73,30 @@
73
73
  },
74
74
  "devDependencies": {
75
75
  "@chromatic-com/storybook": "3.2.4",
76
- "@eslint/js": "9.18.0",
77
- "@rsbuild/plugin-node-polyfill": "1.2.0",
76
+ "@eslint/js": "9.19.0",
77
+ "@rsbuild/plugin-node-polyfill": "1.3.0",
78
78
  "@rsbuild/plugin-stylus": "1.0.7",
79
79
  "@rsdoctor/rspack-plugin": "0.4.13",
80
- "@rslib/core": "0.3.2",
81
- "@storybook/addon-a11y": "8.5.0",
80
+ "@rslib/core": "0.4.0",
81
+ "@storybook/addon-a11y": "8.5.2",
82
82
  "@storybook/addon-console": "3.0.0",
83
- "@storybook/addon-essentials": "8.5.0",
84
- "@storybook/addon-interactions": "8.5.0",
85
- "@storybook/addon-links": "8.5.0",
86
- "@storybook/html": "8.5.0",
87
- "@storybook/manager-api": "8.5.0",
88
- "@storybook/theming": "8.5.0",
83
+ "@storybook/addon-essentials": "8.5.2",
84
+ "@storybook/addon-interactions": "8.5.2",
85
+ "@storybook/addon-links": "8.5.2",
86
+ "@storybook/html": "8.5.2",
87
+ "@storybook/manager-api": "8.5.2",
88
+ "@storybook/theming": "8.5.2",
89
89
  "@tsconfig/node22": "22.0.0",
90
90
  "@tsconfig/strictest": "2.0.5",
91
91
  "@types/defined": "1.0.2",
92
- "@types/node": "22.10.7",
92
+ "@types/node": "22.13.0",
93
93
  "@types/superagent": "8.1.9",
94
94
  "@types/ua-parser-js": "0.7.39",
95
95
  "@vitest/eslint-plugin": "1.1.25",
96
96
  "audit-ci": "7.1.0",
97
- "chromatic": "11.25.0",
97
+ "chromatic": "11.25.2",
98
98
  "cross-env": "7.0.3",
99
- "eslint": "9.18.0",
99
+ "eslint": "9.19.0",
100
100
  "eslint-import-resolver-typescript": "3.7.0",
101
101
  "eslint-plugin-depend": "0.12.0",
102
102
  "eslint-plugin-import-x": "4.6.1",
@@ -112,11 +112,11 @@
112
112
  "prettier-plugin-curly": "0.3.1",
113
113
  "prettier-plugin-packagejson": "2.5.8",
114
114
  "prettier-plugin-sh": "0.14.0",
115
- "release-it": "18.1.1",
116
- "storybook": "8.5.0",
115
+ "release-it": "18.1.2",
116
+ "storybook": "8.5.2",
117
117
  "storybook-html-rsbuild": "0.1.8",
118
118
  "typescript": "5.7.3",
119
- "typescript-eslint": "8.20.0",
119
+ "typescript-eslint": "8.22.0",
120
120
  "vitest": "2.1.8"
121
121
  },
122
122
  "engines": {