videomail-client 13.15.2 → 13.15.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/umd/index.js CHANGED
@@ -153,10 +153,7 @@
153
153
  `,
154
154
  ""
155
155
  ]);
156
- const __rspack_default_export = ___CSS_LOADER_EXPORT___;
157
- __webpack_require__.d(__webpack_exports__, {}, {
158
- A: __rspack_default_export
159
- });
156
+ __webpack_exports__.A = ___CSS_LOADER_EXPORT___;
160
157
  },
161
158
  8824 (module1, exports1, __webpack_require__) {
162
159
  var EventEmitter = __webpack_require__(7007).EventEmitter, inherits = __webpack_require__(6698), raf = __webpack_require__(3146), methods;
@@ -10632,7 +10629,7 @@
10632
10629
  WebM: "webm",
10633
10630
  MP4: "mp4"
10634
10631
  };
10635
- const constants = {
10632
+ var constants = {
10636
10633
  WHITELIST_KEY_LABEL: "x-videomail-whitelist-key",
10637
10634
  VERSION_LABEL: "videomailClientVersion",
10638
10635
  public: {
@@ -10882,7 +10879,7 @@
10882
10879
  var client = __webpack_require__(5734);
10883
10880
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10884
10881
  var package_namespaceObject = {
10885
- rE: "13.15.2"
10882
+ rE: "13.15.3"
10886
10883
  };
10887
10884
  function isAudioEnabled(options) {
10888
10885
  return Boolean(options.audio.enabled);
@@ -10912,7 +10909,7 @@
10912
10909
  }
10913
10910
  return inspect(anything);
10914
10911
  }
10915
- const util_pretty = pretty;
10912
+ var util_pretty = pretty;
10916
10913
  var defined = __webpack_require__(8766);
10917
10914
  var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
10918
10915
  var LIBVERSION = '2.0.10', UA_MAX_LENGTH = 500, USER_AGENT = 'user-agent', EMPTY = '', UNKNOWN = '?', TYPEOF = {
@@ -14179,7 +14176,7 @@
14179
14176
  if ("" === canPlayType) return false;
14180
14177
  return canPlayType;
14181
14178
  }
14182
- const media_canPlayType = canPlayType_canPlayType;
14179
+ var media_canPlayType = canPlayType_canPlayType;
14183
14180
  const FALLBACK_VIDEO_TYPE = VideoType.MP4;
14184
14181
  class Browser {
14185
14182
  options;
@@ -14256,20 +14253,20 @@
14256
14253
  return data;
14257
14254
  }
14258
14255
  }
14259
- const util_Browser = Browser;
14256
+ var util_Browser = Browser;
14260
14257
  let getBrowser_browser;
14261
14258
  function getBrowser(localOptions) {
14262
14259
  if (!getBrowser_browser) getBrowser_browser = new util_Browser(localOptions);
14263
14260
  return getBrowser_browser;
14264
14261
  }
14265
- const util_getBrowser = getBrowser;
14262
+ var util_getBrowser = getBrowser;
14266
14263
  class HTTPVideomailError extends Error {
14267
14264
  name = "VideomailError";
14268
14265
  code;
14269
14266
  status;
14270
14267
  explanation;
14271
14268
  }
14272
- const error_HTTPVideomailError = HTTPVideomailError;
14269
+ var error_HTTPVideomailError = HTTPVideomailError;
14273
14270
  class VideomailError extends error_HTTPVideomailError {
14274
14271
  title = "Error from videomail-client npm package";
14275
14272
  location = window.location.href;
@@ -14337,7 +14334,7 @@
14337
14334
  return this.classList;
14338
14335
  }
14339
14336
  }
14340
- const error_VideomailError = VideomailError;
14337
+ var error_VideomailError = VideomailError;
14341
14338
  function createError(errorParams) {
14342
14339
  const { exc, options } = errorParams;
14343
14340
  let err = errorParams.err;
@@ -14470,7 +14467,7 @@
14470
14467
  }
14471
14468
  return videomailError;
14472
14469
  }
14473
- const error_createError = createError;
14470
+ var error_createError = createError;
14474
14471
  function findOriginalExc(exc) {
14475
14472
  if (exc instanceof Error && "response" in exc) {
14476
14473
  const response = exc.response;
@@ -14491,7 +14488,7 @@
14491
14488
  }
14492
14489
  return exc;
14493
14490
  }
14494
- const error_findOriginalExc = findOriginalExc;
14491
+ var error_findOriginalExc = findOriginalExc;
14495
14492
  function _extends() {
14496
14493
  _extends = Object.assign || function(target) {
14497
14494
  for(var i = 1; i < arguments.length; i++){
@@ -14650,26 +14647,26 @@
14650
14647
  Despot.EMITTER.events = {};
14651
14648
  }
14652
14649
  }
14653
- const util_Despot = Despot;
14650
+ var util_Despot = Despot;
14654
14651
  function getValidity(element) {
14655
14652
  const validity = "validity" in element ? element.validity : void 0;
14656
14653
  return validity;
14657
14654
  }
14658
- const util_getValidity = getValidity;
14655
+ var util_getValidity = getValidity;
14659
14656
  function hideElement(element) {
14660
14657
  if (!element) return;
14661
14658
  element.style.setProperty("display", "none", "important");
14662
14659
  }
14663
- const html_hideElement = hideElement;
14660
+ var html_hideElement = hideElement;
14664
14661
  function isNotButton(element) {
14665
14662
  return "BUTTON" !== element.tagName && "submit" !== element.getAttribute("type");
14666
14663
  }
14667
- const html_isNotButton = isNotButton;
14664
+ var html_isNotButton = isNotButton;
14668
14665
  function showElement(element) {
14669
14666
  if (!element) return;
14670
14667
  element.style.removeProperty("display");
14671
14668
  }
14672
- const html_showElement = showElement;
14669
+ var html_showElement = showElement;
14673
14670
  const REGEX = /[ ,]+/u;
14674
14671
  function trimEmail(email) {
14675
14672
  return email.replace(REGEX, "");
@@ -14928,7 +14925,7 @@
14928
14925
  html_showElement(this.formElement);
14929
14926
  }
14930
14927
  }
14931
- const wrappers_form = Form;
14928
+ var wrappers_form = Form;
14932
14929
  class Resource {
14933
14930
  options;
14934
14931
  timezoneId;
@@ -15089,7 +15086,7 @@
15089
15086
  }
15090
15087
  }
15091
15088
  }
15092
- const src_resource = Resource;
15089
+ var src_resource = Resource;
15093
15090
  var cjs = __webpack_require__(4744);
15094
15091
  var cjs_default = /*#__PURE__*/ __webpack_require__.n(cjs);
15095
15092
  const NodeEnvType = {
@@ -15099,11 +15096,11 @@
15099
15096
  function getNodeEnv() {
15100
15097
  return "production";
15101
15098
  }
15102
- const util_getNodeEnv = getNodeEnv;
15099
+ var util_getNodeEnv = getNodeEnv;
15103
15100
  function isProductionMode() {
15104
15101
  return util_getNodeEnv() === NodeEnvType.PRODUCTION;
15105
15102
  }
15106
- const util_isProductionMode = isProductionMode;
15103
+ var util_isProductionMode = isProductionMode;
15107
15104
  const PRODUCTION = util_isProductionMode();
15108
15105
  const options_options = {
15109
15106
  logger: console,
@@ -15223,7 +15220,7 @@
15223
15220
  videomailNinjaFormPlugin: void 0
15224
15221
  }
15225
15222
  };
15226
- const src_options = options_options;
15223
+ var src_options = options_options;
15227
15224
  class CollectLogger {
15228
15225
  browser;
15229
15226
  logger;
@@ -15263,12 +15260,12 @@
15263
15260
  return this.stack;
15264
15261
  }
15265
15262
  }
15266
- const util_CollectLogger = CollectLogger;
15263
+ var util_CollectLogger = CollectLogger;
15267
15264
  var process = __webpack_require__(5606);
15268
15265
  function isTest() {
15269
15266
  return "test" === process.env.ENVIRON;
15270
15267
  }
15271
- const util_isTest = isTest;
15268
+ var util_isTest = isTest;
15272
15269
  function mergeWithDefaultOptions(options = {}) {
15273
15270
  const newOptions = cjs_default()(src_options, options, {
15274
15271
  arrayMerge (_destination, source) {
@@ -15280,7 +15277,7 @@
15280
15277
  if (util_isTest()) newOptions.verbose = false;
15281
15278
  return newOptions;
15282
15279
  }
15283
- const options_mergeWithDefaultOptions = mergeWithDefaultOptions;
15280
+ var options_mergeWithDefaultOptions = mergeWithDefaultOptions;
15284
15281
  var injectStylesIntoStyleTag = __webpack_require__(4860);
15285
15282
  var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
15286
15283
  var styleDomAPI = __webpack_require__(7045);
@@ -15317,7 +15314,7 @@
15317
15314
  dimension.value = limitedHeight;
15318
15315
  return dimension;
15319
15316
  }
15320
- const dimensions_limitHeight = limitHeight;
15317
+ var dimensions_limitHeight = limitHeight;
15321
15318
  function getOuterWidth(element) {
15322
15319
  let rect = element.getBoundingClientRect();
15323
15320
  let outerWidth = rect.right - rect.left;
@@ -15327,7 +15324,7 @@
15327
15324
  }
15328
15325
  return outerWidth;
15329
15326
  }
15330
- const dimensions_getOuterWidth = getOuterWidth;
15327
+ var dimensions_getOuterWidth = getOuterWidth;
15331
15328
  function limitWidth(element, options, width) {
15332
15329
  const limitedDimension = {
15333
15330
  unit: "px"
@@ -15342,7 +15339,7 @@
15342
15339
  limitedDimension.value = limitedWidth;
15343
15340
  return limitedDimension;
15344
15341
  }
15345
- const dimensions_limitWidth = limitWidth;
15342
+ var dimensions_limitWidth = limitWidth;
15346
15343
  function useFullWidth(mobileBreakPoint) {
15347
15344
  if (void 0 === mobileBreakPoint) return;
15348
15345
  const viewportWidth = window.innerWidth;
@@ -15354,7 +15351,7 @@
15354
15351
  return dimension;
15355
15352
  }
15356
15353
  }
15357
- const dimensions_useFullWidth = useFullWidth;
15354
+ var dimensions_useFullWidth = useFullWidth;
15358
15355
  var contains = __webpack_require__(808);
15359
15356
  var contains_default = /*#__PURE__*/ __webpack_require__.n(contains);
15360
15357
  function disableElement(element) {
@@ -15362,26 +15359,26 @@
15362
15359
  if ("INPUT" === element.tagName || "BUTTON" === element.tagName) element.setAttribute("disabled", "true");
15363
15360
  else element.classList.add("disabled");
15364
15361
  }
15365
- const html_disableElement = disableElement;
15362
+ var html_disableElement = disableElement;
15366
15363
  function adjustButton(buttonElement, show, type, disabled) {
15367
15364
  if (disabled) html_disableElement(buttonElement);
15368
15365
  if (type) buttonElement.type = type;
15369
15366
  if (!show) html_hideElement(buttonElement);
15370
15367
  return buttonElement;
15371
15368
  }
15372
- const html_adjustButton = adjustButton;
15369
+ var html_adjustButton = adjustButton;
15373
15370
  function enableElement(element) {
15374
15371
  if (!element) return;
15375
15372
  if ("INPUT" === element.tagName || "BUTTON" === element.tagName) element.removeAttribute("disabled");
15376
15373
  else element.classList.remove("disabled");
15377
15374
  }
15378
- const html_enableElement = enableElement;
15375
+ var html_enableElement = enableElement;
15379
15376
  function isShown(element) {
15380
15377
  if (!element) return false;
15381
15378
  const display = element.style.getPropertyValue("display");
15382
15379
  return !display.includes("none");
15383
15380
  }
15384
- const html_isShown = isShown;
15381
+ var html_isShown = isShown;
15385
15382
  class Buttons extends util_Despot {
15386
15383
  container;
15387
15384
  buttonsElement;
@@ -15778,13 +15775,13 @@
15778
15775
  return this.container.isCountingDown();
15779
15776
  }
15780
15777
  }
15781
- const buttons = Buttons;
15778
+ var buttons = Buttons;
15782
15779
  function isHidden(element) {
15783
15780
  if (!element) return true;
15784
15781
  const display = element.style.getPropertyValue("display");
15785
15782
  return display.includes("none");
15786
15783
  }
15787
- const html_isHidden = isHidden;
15784
+ var html_isHidden = isHidden;
15788
15785
  class Countdown {
15789
15786
  visuals;
15790
15787
  options;
@@ -15853,7 +15850,7 @@
15853
15850
  this.unload();
15854
15851
  }
15855
15852
  }
15856
- const countdown = Countdown;
15853
+ var countdown = Countdown;
15857
15854
  class FacingMode extends util_Despot {
15858
15855
  visuals;
15859
15856
  facingModeElement;
@@ -15895,7 +15892,7 @@
15895
15892
  html_showElement(this.facingModeElement);
15896
15893
  }
15897
15894
  }
15898
- const facingMode = FacingMode;
15895
+ var facingMode = FacingMode;
15899
15896
  class PausedNote {
15900
15897
  visuals;
15901
15898
  options;
@@ -15943,7 +15940,7 @@
15943
15940
  html_showElement(this.pausedBlockElement);
15944
15941
  }
15945
15942
  }
15946
- const pausedNote = PausedNote;
15943
+ var pausedNote = PausedNote;
15947
15944
  class RecordNote {
15948
15945
  visuals;
15949
15946
  recordNoteElement;
@@ -15978,13 +15975,13 @@
15978
15975
  html_showElement(this.recordNoteElement);
15979
15976
  }
15980
15977
  }
15981
- const recorder_recordNote = RecordNote;
15978
+ var recorder_recordNote = RecordNote;
15982
15979
  function pad(n) {
15983
15980
  const absNum = Math.abs(n);
15984
15981
  if (absNum < 10) return n < 0 ? `-0${absNum}` : `0${absNum}`;
15985
15982
  return String(n);
15986
15983
  }
15987
- const util_pad = pad;
15984
+ var util_pad = pad;
15988
15985
  class RecordTimer {
15989
15986
  visuals;
15990
15987
  recordNote;
@@ -16102,7 +16099,7 @@
16102
16099
  }
16103
16100
  }
16104
16101
  }
16105
- const recordTimer = RecordTimer;
16102
+ var recordTimer = RecordTimer;
16106
16103
  class RecorderInsides extends util_Despot {
16107
16104
  recordNote;
16108
16105
  recordTimer;
@@ -16205,7 +16202,7 @@
16205
16202
  this.recordTimer.setLimitSeconds(limitSeconds);
16206
16203
  }
16207
16204
  }
16208
- const recorderInsides = RecorderInsides;
16205
+ var recorderInsides = RecorderInsides;
16209
16206
  const NOTIFIER_MESSAGE_ID = "notifierMessage";
16210
16207
  class Notifier extends util_Despot {
16211
16208
  visuals;
@@ -16444,7 +16441,7 @@
16444
16441
  if (!stillWait) this.visuals.endWaiting();
16445
16442
  }
16446
16443
  }
16447
- const notifier = Notifier;
16444
+ var notifier = Notifier;
16448
16445
  var animitter = __webpack_require__(8824);
16449
16446
  var animitter_default = /*#__PURE__*/ __webpack_require__.n(animitter);
16450
16447
  var typedarray_to_buffer = __webpack_require__(4527);
@@ -16586,7 +16583,7 @@
16586
16583
  looksAutomated: automationSignals.looksAutomated
16587
16584
  };
16588
16585
  }
16589
- const error_getWebSocketDiagnostic = getWebSocketDiagnostic;
16586
+ var error_getWebSocketDiagnostic = getWebSocketDiagnostic;
16590
16587
  function figureMinHeight(height, options) {
16591
16588
  let minHeight;
16592
16589
  if (options.video.height) {
@@ -16598,7 +16595,7 @@
16598
16595
  } else minHeight = height;
16599
16596
  return minHeight;
16600
16597
  }
16601
- const dimensions_figureMinHeight = figureMinHeight;
16598
+ var dimensions_figureMinHeight = figureMinHeight;
16602
16599
  function getRatio(options, videoHeight, videoWidth) {
16603
16600
  let ratio = 1;
16604
16601
  const hasVideoDimensions = videoHeight && videoWidth;
@@ -16609,7 +16606,7 @@
16609
16606
  else if (hasVideoDimensions) ratio = videoHeight / videoWidth;
16610
16607
  return ratio;
16611
16608
  }
16612
- const dimensions_getRatio = getRatio;
16609
+ var dimensions_getRatio = getRatio;
16613
16610
  function calculateHeight(responsive, videoWidth, options, ratio, element) {
16614
16611
  const dimension = {
16615
16612
  unit: "px"
@@ -16629,7 +16626,7 @@
16629
16626
  dimension.value = minHeight;
16630
16627
  return dimension;
16631
16628
  }
16632
- const dimensions_calculateHeight = calculateHeight;
16629
+ var dimensions_calculateHeight = calculateHeight;
16633
16630
  function calculateWidth(responsive, options, videoHeight, ratio) {
16634
16631
  const dimension = {
16635
16632
  unit: "px"
@@ -16652,7 +16649,7 @@
16652
16649
  dimension.value = calculatedWidth;
16653
16650
  return dimension;
16654
16651
  }
16655
- const dimensions_calculateWidth = calculateWidth;
16652
+ var dimensions_calculateWidth = calculateWidth;
16656
16653
  class audio_sample_modern_t {
16657
16654
  constructor(r){
16658
16655
  this.float32Array = void 0, this.float32Array = r;
@@ -16750,14 +16747,14 @@
16750
16747
  return -1;
16751
16748
  }
16752
16749
  }
16753
- const media_AudioRecorder = AudioRecorder;
16750
+ var media_AudioRecorder = AudioRecorder;
16754
16751
  function getFirstVideoTrack(localMediaStream) {
16755
16752
  const videoTracks = localMediaStream.getVideoTracks();
16756
16753
  let videoTrack;
16757
16754
  if (videoTracks[0]) videoTrack = videoTracks[0];
16758
16755
  return videoTrack;
16759
16756
  }
16760
- const media_getFirstVideoTrack = getFirstVideoTrack;
16757
+ var media_getFirstVideoTrack = getFirstVideoTrack;
16761
16758
  const MEDIA_EVENTS = [
16762
16759
  "loadstart",
16763
16760
  "suspend",
@@ -16778,7 +16775,7 @@
16778
16775
  "durationchange",
16779
16776
  "volumechange"
16780
16777
  ];
16781
- const mediaEvents = MEDIA_EVENTS;
16778
+ var mediaEvents = MEDIA_EVENTS;
16782
16779
  const VIRTUAL_KEYWORDS = [
16783
16780
  "obs",
16784
16781
  "virtual",
@@ -16792,7 +16789,7 @@
16792
16789
  if (!capabilities.frameRate) return true;
16793
16790
  return VIRTUAL_KEYWORDS.some((keyword)=>videoTrack.label.toLowerCase().includes(keyword));
16794
16791
  }
16795
- const util_isVirtualCamera = isVirtualCamera;
16792
+ var util_isVirtualCamera = isVirtualCamera;
16796
16793
  const EVENT_ASCII = "|—O—|";
16797
16794
  class UserMedia extends util_Despot {
16798
16795
  recorder;
@@ -17094,7 +17091,7 @@
17094
17091
  };
17095
17092
  }
17096
17093
  }
17097
- const visuals_userMedia = UserMedia;
17094
+ var visuals_userMedia = UserMedia;
17098
17095
  var Buffer = __webpack_require__(8287).Buffer;
17099
17096
  const PIPE_SYMBOL = "°º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸ ";
17100
17097
  class Recorder extends util_Despot {
@@ -18117,7 +18114,7 @@
18117
18114
  return this.userMediaLoaded;
18118
18115
  }
18119
18116
  }
18120
- const visuals_recorder = Recorder;
18117
+ var visuals_recorder = Recorder;
18121
18118
  class Replay extends util_Despot {
18122
18119
  visuals;
18123
18120
  built = false;
@@ -18361,7 +18358,7 @@
18361
18358
  return this.replayElement;
18362
18359
  }
18363
18360
  }
18364
- const visuals_replay = Replay;
18361
+ var visuals_replay = Replay;
18365
18362
  class Visuals extends util_Despot {
18366
18363
  container;
18367
18364
  replay;
@@ -18656,7 +18653,7 @@
18656
18653
  return this.visualsElement;
18657
18654
  }
18658
18655
  }
18659
- const wrappers_visuals = Visuals;
18656
+ var wrappers_visuals = Visuals;
18660
18657
  class Container extends util_Despot {
18661
18658
  visibility = document_visibility_default()();
18662
18659
  htmlElement = document.querySelector("html");
@@ -19157,7 +19154,7 @@
19157
19154
  this.visuals.setLimitSeconds(limitSeconds);
19158
19155
  }
19159
19156
  }
19160
- const wrappers_container = Container;
19157
+ var wrappers_container = Container;
19161
19158
  class VideomailClient extends util_Despot {
19162
19159
  container;
19163
19160
  static ENC_TYPE_APP_JSON = constants["public"].ENC_TYPE_APP_JSON;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "13.15.2",
3
+ "version": "13.15.3",
4
4
  "description": "A wicked npm package to record videos directly in the browser, for Deaf and Sign Language!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -80,8 +80,8 @@
80
80
  "@eslint/js": "10.0.1",
81
81
  "@rsbuild/plugin-node-polyfill": "1.4.6",
82
82
  "@rsbuild/plugin-stylus": "2.0.1",
83
- "@rsdoctor/rspack-plugin": "1.5.16",
84
- "@rslib/core": "0.23.0",
83
+ "@rsdoctor/rspack-plugin": "1.5.17",
84
+ "@rslib/core": "0.23.1",
85
85
  "@storybook/addon-a11y": "10.4.6",
86
86
  "@storybook/addon-docs": "10.4.6",
87
87
  "@storybook/addon-links": "10.4.6",
@@ -94,13 +94,13 @@
94
94
  "@types/ua-parser-js": "0.7.39",
95
95
  "@vitest/eslint-plugin": "1.6.20",
96
96
  "audit-ci": "7.1.0",
97
- "chromatic": "17.7.2",
97
+ "chromatic": "17.8.0",
98
98
  "cross-env": "10.1.0",
99
99
  "eslint": "10.6.0",
100
100
  "eslint-import-resolver-typescript": "4.4.5",
101
101
  "eslint-plugin-de-morgan": "2.1.2",
102
102
  "eslint-plugin-depend": "1.5.0",
103
- "eslint-plugin-import-x": "4.17.0",
103
+ "eslint-plugin-import-x": "4.17.1",
104
104
  "eslint-plugin-package-json": "1.5.0",
105
105
  "eslint-plugin-regexp": "3.1.1",
106
106
  "eslint-plugin-simple-import-sort": "13.0.0",
@@ -108,7 +108,7 @@
108
108
  "jsdom": "29.1.1",
109
109
  "msw": "2.14.6",
110
110
  "msw-storybook-addon": "2.0.7",
111
- "prettier": "3.8.5",
111
+ "prettier": "3.9.4",
112
112
  "prettier-plugin-curly": "0.4.1",
113
113
  "prettier-plugin-jsdoc": "1.8.1",
114
114
  "prettier-plugin-packagejson": "3.0.2",
@@ -118,7 +118,7 @@
118
118
  "storybook-html-rsbuild": "3.3.4",
119
119
  "type-fest": "5.7.0",
120
120
  "typescript": "6.0.3",
121
- "typescript-eslint": "8.62.0",
121
+ "typescript-eslint": "8.62.1",
122
122
  "vitest": "4.1.9"
123
123
  },
124
124
  "engines": {