videomail-client 13.8.19 → 13.8.21

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.
@@ -1554,8 +1554,8 @@ var __webpack_modules__ = {
1554
1554
  var applyBind = __webpack_require__("./node_modules/call-bind-apply-helpers/applyBind.js");
1555
1555
  module.exports = function(originalFunction) {
1556
1556
  var func = callBindBasic(arguments);
1557
- var adjustedLength = originalFunction.length - (arguments.length - 1);
1558
- return setFunctionLength(func, 1 + (adjustedLength > 0 ? adjustedLength : 0), true);
1557
+ var adjustedLength = 1 + originalFunction.length - (arguments.length - 1);
1558
+ return setFunctionLength(func, adjustedLength > 0 ? adjustedLength : 0, true);
1559
1559
  };
1560
1560
  if ($defineProperty) $defineProperty(module.exports, 'apply', {
1561
1561
  value: applyBind
@@ -6023,8 +6023,8 @@ var __webpack_modules__ = {
6023
6023
  var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
6024
6024
  cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');
6025
6025
  var limit = options.parameterLimit === 1 / 0 ? void 0 : options.parameterLimit;
6026
- var parts = cleanStr.split(options.delimiter, options.throwOnLimitExceeded ? limit + 1 : limit);
6027
- if (options.throwOnLimitExceeded && parts.length > limit) throw new RangeError('Parameter limit exceeded. Only ' + limit + ' parameter' + (1 === limit ? '' : 's') + ' allowed.');
6026
+ var parts = cleanStr.split(options.delimiter, options.throwOnLimitExceeded && void 0 !== limit ? limit + 1 : limit);
6027
+ if (options.throwOnLimitExceeded && void 0 !== limit && parts.length > limit) throw new RangeError('Parameter limit exceeded. Only ' + limit + ' parameter' + (1 === limit ? '' : 's') + ' allowed.');
6028
6028
  var skipIndex = -1;
6029
6029
  var i;
6030
6030
  var charset = options.charset;
@@ -6757,9 +6757,8 @@ var __webpack_modules__ = {
6757
6757
  if (!channel.has(key)) throw new $TypeError('Side channel does not contain ' + inspect(key));
6758
6758
  },
6759
6759
  delete: function(key) {
6760
- var root = $o && $o.next;
6761
6760
  var deletedNode = listDelete($o, key);
6762
- if (deletedNode && root && root === deletedNode) $o = void 0;
6761
+ if (deletedNode && $o && !$o.next) $o = void 0;
6763
6762
  return !!deletedNode;
6764
6763
  },
6765
6764
  get: function(key) {
@@ -10853,7 +10852,7 @@ var __webpack_exports__ = {};
10853
10852
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10854
10853
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10855
10854
  var package_namespaceObject = {
10856
- rE: "13.8.19"
10855
+ rE: "13.8.21"
10857
10856
  };
10858
10857
  function isAudioEnabled(options) {
10859
10858
  return Boolean(options.audio.enabled);
@@ -18163,23 +18162,28 @@ var __webpack_exports__ = {};
18163
18162
  }
18164
18163
  correctDimensions(responsive, videoWidth, videoHeight) {
18165
18164
  if (!this.replayElement) throw new Error("There is no replay element to correct dimensions for.");
18166
- let height;
18167
- let width;
18165
+ let heightValue;
18166
+ let widthValue;
18168
18167
  let ratio;
18169
18168
  if (this.videomail) {
18170
- width = this.videomail.width;
18171
- height = this.videomail.height;
18172
- if (width) ratio = height / width;
18169
+ widthValue = this.videomail.width;
18170
+ heightValue = this.videomail.height;
18171
+ if (widthValue && heightValue) ratio = heightValue / widthValue;
18173
18172
  }
18174
- if (!width) width = dimensions_calculateWidth(responsive, this.options, videoHeight, ratio);
18175
- if (!height) {
18173
+ if (!widthValue) {
18174
+ const newWidthDimensions = dimensions_calculateWidth(responsive, this.options, videoHeight, ratio);
18175
+ const newWidth = newWidthDimensions.value;
18176
+ widthValue = newWidth;
18177
+ }
18178
+ if (!heightValue) {
18176
18179
  let element = this.visuals.getElement();
18177
18180
  if (!element) element = document.body;
18178
- height = dimensions_calculateHeight(responsive, videoWidth, this.options, ratio, element);
18181
+ const newDimensions = dimensions_calculateHeight(responsive, videoWidth, this.options, ratio, element);
18182
+ heightValue = newDimensions.value;
18179
18183
  }
18180
- if (width > 0) this.replayElement.style.width = `${width}px`;
18184
+ if (widthValue) this.replayElement.style.width = `${widthValue}px`;
18181
18185
  else this.replayElement.style.width = "auto";
18182
- if (height > 0) this.replayElement.style.height = `${height}px`;
18186
+ if (heightValue) this.replayElement.style.height = `${heightValue}px`;
18183
18187
  else this.replayElement.style.height = "auto";
18184
18188
  }
18185
18189
  setVideomail(newVideomail, playerOnly = false) {
@@ -19380,17 +19384,13 @@ var __webpack_exports__ = {};
19380
19384
  key: "applause",
19381
19385
  label: "Applause"
19382
19386
  },
19383
- FOLDED_HANDS: {
19384
- key: "foldedHands",
19385
- label: "Pray / Beg"
19386
- },
19387
19387
  GRINNING_SWEAT: {
19388
19388
  key: "grinningSweat",
19389
19389
  label: "Whew!"
19390
19390
  },
19391
- ANGER: {
19392
- key: "anger",
19393
- label: "Angry"
19391
+ FIRE: {
19392
+ key: "fire",
19393
+ label: "Fire"
19394
19394
  }
19395
19395
  };
19396
19396
  })();
package/dist/esm/index.js CHANGED
@@ -1422,8 +1422,8 @@ __webpack_require__.add({
1422
1422
  var applyBind = __webpack_require__("./node_modules/call-bind-apply-helpers/applyBind.js");
1423
1423
  module.exports = function(originalFunction) {
1424
1424
  var func = callBindBasic(arguments);
1425
- var adjustedLength = originalFunction.length - (arguments.length - 1);
1426
- return setFunctionLength(func, 1 + (adjustedLength > 0 ? adjustedLength : 0), true);
1425
+ var adjustedLength = 1 + originalFunction.length - (arguments.length - 1);
1426
+ return setFunctionLength(func, adjustedLength > 0 ? adjustedLength : 0, true);
1427
1427
  };
1428
1428
  if ($defineProperty) $defineProperty(module.exports, 'apply', {
1429
1429
  value: applyBind
@@ -3613,7 +3613,7 @@ const constants = {
3613
3613
  }
3614
3614
  };
3615
3615
  var package_namespaceObject = {
3616
- rE: "13.8.19"
3616
+ rE: "13.8.21"
3617
3617
  };
3618
3618
  function isAudioEnabled(options) {
3619
3619
  return Boolean(options.audio.enabled);
@@ -7366,23 +7366,28 @@ class Replay extends util_Despot {
7366
7366
  }
7367
7367
  correctDimensions(responsive, videoWidth, videoHeight) {
7368
7368
  if (!this.replayElement) throw new Error("There is no replay element to correct dimensions for.");
7369
- let height;
7370
- let width;
7369
+ let heightValue;
7370
+ let widthValue;
7371
7371
  let ratio;
7372
7372
  if (this.videomail) {
7373
- width = this.videomail.width;
7374
- height = this.videomail.height;
7375
- if (width) ratio = height / width;
7373
+ widthValue = this.videomail.width;
7374
+ heightValue = this.videomail.height;
7375
+ if (widthValue && heightValue) ratio = heightValue / widthValue;
7376
7376
  }
7377
- if (!width) width = dimensions_calculateWidth(responsive, this.options, videoHeight, ratio);
7378
- if (!height) {
7377
+ if (!widthValue) {
7378
+ const newWidthDimensions = dimensions_calculateWidth(responsive, this.options, videoHeight, ratio);
7379
+ const newWidth = newWidthDimensions.value;
7380
+ widthValue = newWidth;
7381
+ }
7382
+ if (!heightValue) {
7379
7383
  let element = this.visuals.getElement();
7380
7384
  if (!element) element = document.body;
7381
- height = dimensions_calculateHeight(responsive, videoWidth, this.options, ratio, element);
7385
+ const newDimensions = dimensions_calculateHeight(responsive, videoWidth, this.options, ratio, element);
7386
+ heightValue = newDimensions.value;
7382
7387
  }
7383
- if (width > 0) this.replayElement.style.width = `${width}px`;
7388
+ if (widthValue) this.replayElement.style.width = `${widthValue}px`;
7384
7389
  else this.replayElement.style.width = "auto";
7385
- if (height > 0) this.replayElement.style.height = `${height}px`;
7390
+ if (heightValue) this.replayElement.style.height = `${heightValue}px`;
7386
7391
  else this.replayElement.style.height = "auto";
7387
7392
  }
7388
7393
  setVideomail(newVideomail, playerOnly = false) {
@@ -8485,17 +8490,13 @@ const Reactions = {
8485
8490
  key: "applause",
8486
8491
  label: "Applause"
8487
8492
  },
8488
- FOLDED_HANDS: {
8489
- key: "foldedHands",
8490
- label: "Pray / Beg"
8491
- },
8492
8493
  GRINNING_SWEAT: {
8493
8494
  key: "grinningSweat",
8494
8495
  label: "Whew!"
8495
8496
  },
8496
- ANGER: {
8497
- key: "anger",
8498
- label: "Angry"
8497
+ FIRE: {
8498
+ key: "fire",
8499
+ label: "Fire"
8499
8500
  }
8500
8501
  };
8501
8502
  export { Reactions, VideoType, VideomailClient };
@@ -7,17 +7,13 @@ export declare const Reactions: {
7
7
  readonly key: "applause";
8
8
  readonly label: "Applause";
9
9
  };
10
- readonly FOLDED_HANDS: {
11
- readonly key: "foldedHands";
12
- readonly label: "Pray / Beg";
13
- };
14
10
  readonly GRINNING_SWEAT: {
15
11
  readonly key: "grinningSweat";
16
12
  readonly label: "Whew!";
17
13
  };
18
- readonly ANGER: {
19
- readonly key: "anger";
20
- readonly label: "Angry";
14
+ readonly FIRE: {
15
+ readonly key: "fire";
16
+ readonly label: "Fire";
21
17
  };
22
18
  };
23
19
  export type ReactionType = (typeof Reactions)[keyof typeof Reactions];
@@ -109,9 +109,8 @@ declare class Form extends Despot {
109
109
  reactions?: {
110
110
  love?: readonly string[];
111
111
  applause?: readonly string[];
112
- foldedHands?: readonly string[];
113
112
  grinningSweat?: readonly string[];
114
- anger?: readonly string[];
113
+ fire?: readonly string[];
115
114
  } | undefined;
116
115
  reactionsPretty?: {
117
116
  love?: {
@@ -126,19 +125,13 @@ declare class Form extends Despot {
126
125
  maskedEmailAddress?: string | undefined | undefined;
127
126
  } | undefined;
128
127
  };
129
- foldedHands?: {
130
- [x: string]: {
131
- nickName?: string | undefined | undefined;
132
- maskedEmailAddress?: string | undefined | undefined;
133
- } | undefined;
134
- };
135
128
  grinningSweat?: {
136
129
  [x: string]: {
137
130
  nickName?: string | undefined | undefined;
138
131
  maskedEmailAddress?: string | undefined | undefined;
139
132
  } | undefined;
140
133
  };
141
- anger?: {
134
+ fire?: {
142
135
  [x: string]: {
143
136
  nickName?: string | undefined | undefined;
144
137
  maskedEmailAddress?: string | undefined | undefined;
@@ -291,9 +284,8 @@ declare class Form extends Despot {
291
284
  reactions?: {
292
285
  love?: readonly string[];
293
286
  applause?: readonly string[];
294
- foldedHands?: readonly string[];
295
287
  grinningSweat?: readonly string[];
296
- anger?: readonly string[];
288
+ fire?: readonly string[];
297
289
  } | undefined;
298
290
  reactionsPretty?: {
299
291
  love?: {
@@ -308,19 +300,13 @@ declare class Form extends Despot {
308
300
  maskedEmailAddress?: string | undefined | undefined;
309
301
  } | undefined;
310
302
  };
311
- foldedHands?: {
312
- [x: string]: {
313
- nickName?: string | undefined | undefined;
314
- maskedEmailAddress?: string | undefined | undefined;
315
- } | undefined;
316
- };
317
303
  grinningSweat?: {
318
304
  [x: string]: {
319
305
  nickName?: string | undefined | undefined;
320
306
  maskedEmailAddress?: string | undefined | undefined;
321
307
  } | undefined;
322
308
  };
323
- anger?: {
309
+ fire?: {
324
310
  [x: string]: {
325
311
  nickName?: string | undefined | undefined;
326
312
  maskedEmailAddress?: string | undefined | undefined;
package/dist/umd/index.js CHANGED
@@ -1560,8 +1560,8 @@
1560
1560
  var applyBind = __webpack_require__("./node_modules/call-bind-apply-helpers/applyBind.js");
1561
1561
  module1.exports = function(originalFunction) {
1562
1562
  var func = callBindBasic(arguments);
1563
- var adjustedLength = originalFunction.length - (arguments.length - 1);
1564
- return setFunctionLength(func, 1 + (adjustedLength > 0 ? adjustedLength : 0), true);
1563
+ var adjustedLength = 1 + originalFunction.length - (arguments.length - 1);
1564
+ return setFunctionLength(func, adjustedLength > 0 ? adjustedLength : 0, true);
1565
1565
  };
1566
1566
  if ($defineProperty) $defineProperty(module1.exports, 'apply', {
1567
1567
  value: applyBind
@@ -6029,8 +6029,8 @@
6029
6029
  var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
6030
6030
  cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');
6031
6031
  var limit = options.parameterLimit === 1 / 0 ? void 0 : options.parameterLimit;
6032
- var parts = cleanStr.split(options.delimiter, options.throwOnLimitExceeded ? limit + 1 : limit);
6033
- if (options.throwOnLimitExceeded && parts.length > limit) throw new RangeError('Parameter limit exceeded. Only ' + limit + ' parameter' + (1 === limit ? '' : 's') + ' allowed.');
6032
+ var parts = cleanStr.split(options.delimiter, options.throwOnLimitExceeded && void 0 !== limit ? limit + 1 : limit);
6033
+ if (options.throwOnLimitExceeded && void 0 !== limit && parts.length > limit) throw new RangeError('Parameter limit exceeded. Only ' + limit + ' parameter' + (1 === limit ? '' : 's') + ' allowed.');
6034
6034
  var skipIndex = -1;
6035
6035
  var i;
6036
6036
  var charset = options.charset;
@@ -6763,9 +6763,8 @@
6763
6763
  if (!channel.has(key)) throw new $TypeError('Side channel does not contain ' + inspect(key));
6764
6764
  },
6765
6765
  delete: function(key) {
6766
- var root = $o && $o.next;
6767
6766
  var deletedNode = listDelete($o, key);
6768
- if (deletedNode && root && root === deletedNode) $o = void 0;
6767
+ if (deletedNode && $o && !$o.next) $o = void 0;
6769
6768
  return !!deletedNode;
6770
6769
  },
6771
6770
  get: function(key) {
@@ -10859,7 +10858,7 @@
10859
10858
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10860
10859
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10861
10860
  var package_namespaceObject = {
10862
- rE: "13.8.19"
10861
+ rE: "13.8.21"
10863
10862
  };
10864
10863
  function isAudioEnabled(options) {
10865
10864
  return Boolean(options.audio.enabled);
@@ -17905,23 +17904,28 @@
17905
17904
  }
17906
17905
  correctDimensions(responsive, videoWidth, videoHeight) {
17907
17906
  if (!this.replayElement) throw new Error("There is no replay element to correct dimensions for.");
17908
- let height;
17909
- let width;
17907
+ let heightValue;
17908
+ let widthValue;
17910
17909
  let ratio;
17911
17910
  if (this.videomail) {
17912
- width = this.videomail.width;
17913
- height = this.videomail.height;
17914
- if (width) ratio = height / width;
17911
+ widthValue = this.videomail.width;
17912
+ heightValue = this.videomail.height;
17913
+ if (widthValue && heightValue) ratio = heightValue / widthValue;
17915
17914
  }
17916
- if (!width) width = dimensions_calculateWidth(responsive, this.options, videoHeight, ratio);
17917
- if (!height) {
17915
+ if (!widthValue) {
17916
+ const newWidthDimensions = dimensions_calculateWidth(responsive, this.options, videoHeight, ratio);
17917
+ const newWidth = newWidthDimensions.value;
17918
+ widthValue = newWidth;
17919
+ }
17920
+ if (!heightValue) {
17918
17921
  let element = this.visuals.getElement();
17919
17922
  if (!element) element = document.body;
17920
- height = dimensions_calculateHeight(responsive, videoWidth, this.options, ratio, element);
17923
+ const newDimensions = dimensions_calculateHeight(responsive, videoWidth, this.options, ratio, element);
17924
+ heightValue = newDimensions.value;
17921
17925
  }
17922
- if (width > 0) this.replayElement.style.width = `${width}px`;
17926
+ if (widthValue) this.replayElement.style.width = `${widthValue}px`;
17923
17927
  else this.replayElement.style.width = "auto";
17924
- if (height > 0) this.replayElement.style.height = `${height}px`;
17928
+ if (heightValue) this.replayElement.style.height = `${heightValue}px`;
17925
17929
  else this.replayElement.style.height = "auto";
17926
17930
  }
17927
17931
  setVideomail(newVideomail, playerOnly = false) {
@@ -19009,17 +19013,13 @@
19009
19013
  key: "applause",
19010
19014
  label: "Applause"
19011
19015
  },
19012
- FOLDED_HANDS: {
19013
- key: "foldedHands",
19014
- label: "Pray / Beg"
19015
- },
19016
19016
  GRINNING_SWEAT: {
19017
19017
  key: "grinningSweat",
19018
19018
  label: "Whew!"
19019
19019
  },
19020
- ANGER: {
19021
- key: "anger",
19022
- label: "Angry"
19020
+ FIRE: {
19021
+ key: "fire",
19022
+ label: "Fire"
19023
19023
  }
19024
19024
  };
19025
19025
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "13.8.19",
3
+ "version": "13.8.21",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -80,7 +80,7 @@
80
80
  "@eslint/js": "9.39.2",
81
81
  "@rsbuild/plugin-node-polyfill": "1.4.4",
82
82
  "@rsbuild/plugin-stylus": "1.3.1",
83
- "@rsdoctor/rspack-plugin": "1.5.8",
83
+ "@rsdoctor/rspack-plugin": "1.5.9",
84
84
  "@rslib/core": "0.21.2",
85
85
  "@storybook/addon-a11y": "10.3.5",
86
86
  "@storybook/addon-docs": "10.3.5",