videomail-client 13.15.2 → 13.15.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/dist/esm/index.js CHANGED
@@ -215,10 +215,7 @@ __webpack_require__.add({
215
215
  `,
216
216
  ""
217
217
  ]);
218
- const __rspack_default_export = ___CSS_LOADER_EXPORT___;
219
- __webpack_require__.d(__webpack_exports__, {}, {
220
- A: __rspack_default_export
221
- });
218
+ __webpack_exports__.A = ___CSS_LOADER_EXPORT___;
222
219
  },
223
220
  7526 (__unused_rspack_module, exports) {
224
221
  exports.byteLength = byteLength;
@@ -3608,7 +3605,7 @@ const VideoType = {
3608
3605
  WebM: "webm",
3609
3606
  MP4: "mp4"
3610
3607
  };
3611
- const constants = {
3608
+ var constants = {
3612
3609
  WHITELIST_KEY_LABEL: "x-videomail-whitelist-key",
3613
3610
  VERSION_LABEL: "videomailClientVersion",
3614
3611
  public: {
@@ -3617,7 +3614,7 @@ const constants = {
3617
3614
  }
3618
3615
  };
3619
3616
  var package_namespaceObject = {
3620
- rE: "13.15.2"
3617
+ rE: "13.15.4"
3621
3618
  };
3622
3619
  function isAudioEnabled(options) {
3623
3620
  return Boolean(options.audio.enabled);
@@ -3647,13 +3644,13 @@ function pretty(anything) {
3647
3644
  }
3648
3645
  return inspect(anything);
3649
3646
  }
3650
- const util_pretty = pretty;
3647
+ var util_pretty = pretty;
3651
3648
  function canPlayType_canPlayType(video, type) {
3652
3649
  const canPlayType = video.canPlayType(`video/${type}`);
3653
3650
  if ("" === canPlayType) return false;
3654
3651
  return canPlayType;
3655
3652
  }
3656
- const media_canPlayType = canPlayType_canPlayType;
3653
+ var media_canPlayType = canPlayType_canPlayType;
3657
3654
  function _define_property(obj, key, value) {
3658
3655
  if (key in obj) Object.defineProperty(obj, key, {
3659
3656
  value: value,
@@ -3740,13 +3737,13 @@ class Browser {
3740
3737
  this.result = userAgentParser.getResult();
3741
3738
  }
3742
3739
  }
3743
- const util_Browser = Browser;
3740
+ var util_Browser = Browser;
3744
3741
  let getBrowser_browser;
3745
3742
  function getBrowser(localOptions) {
3746
3743
  if (!getBrowser_browser) getBrowser_browser = new util_Browser(localOptions);
3747
3744
  return getBrowser_browser;
3748
3745
  }
3749
- const util_getBrowser = getBrowser;
3746
+ var util_getBrowser = getBrowser;
3750
3747
  function HTTPVideomailError_define_property(obj, key, value) {
3751
3748
  if (key in obj) Object.defineProperty(obj, key, {
3752
3749
  value: value,
@@ -3762,7 +3759,7 @@ class HTTPVideomailError extends Error {
3762
3759
  super(...args), HTTPVideomailError_define_property(this, "name", "VideomailError"), HTTPVideomailError_define_property(this, "code", void 0), HTTPVideomailError_define_property(this, "status", void 0), HTTPVideomailError_define_property(this, "explanation", void 0);
3763
3760
  }
3764
3761
  }
3765
- const error_HTTPVideomailError = HTTPVideomailError;
3762
+ var error_HTTPVideomailError = HTTPVideomailError;
3766
3763
  function VideomailError_define_property(obj, key, value) {
3767
3764
  if (key in obj) Object.defineProperty(obj, key, {
3768
3765
  value: value,
@@ -3824,7 +3821,7 @@ VideomailError_define_property(VideomailError, "NOT_READABLE_ERROR", "NotReadabl
3824
3821
  VideomailError_define_property(VideomailError, "SECURITY_ERROR", "SecurityError");
3825
3822
  VideomailError_define_property(VideomailError, "TRACK_START_ERROR", "TrackStartError");
3826
3823
  VideomailError_define_property(VideomailError, "INVALID_STATE_ERROR", "InvalidStateError");
3827
- const error_VideomailError = VideomailError;
3824
+ var error_VideomailError = VideomailError;
3828
3825
  function createError(errorParams) {
3829
3826
  const { exc, options } = errorParams;
3830
3827
  let err = errorParams.err;
@@ -3957,7 +3954,7 @@ function createError(errorParams) {
3957
3954
  }
3958
3955
  return videomailError;
3959
3956
  }
3960
- const error_createError = createError;
3957
+ var error_createError = createError;
3961
3958
  function findOriginalExc(exc) {
3962
3959
  if (exc instanceof Error && "response" in exc) {
3963
3960
  const response = exc.response;
@@ -3978,7 +3975,7 @@ function findOriginalExc(exc) {
3978
3975
  }
3979
3976
  return exc;
3980
3977
  }
3981
- const error_findOriginalExc = findOriginalExc;
3978
+ var error_findOriginalExc = findOriginalExc;
3982
3979
  function Despot_define_property(obj, key, value) {
3983
3980
  if (key in obj) Object.defineProperty(obj, key, {
3984
3981
  value: value,
@@ -4034,26 +4031,26 @@ class Despot {
4034
4031
  }
4035
4032
  }
4036
4033
  Despot_define_property(Despot, "EMITTER", createNanoEvents());
4037
- const util_Despot = Despot;
4034
+ var util_Despot = Despot;
4038
4035
  function getValidity(element) {
4039
4036
  const validity = "validity" in element ? element.validity : void 0;
4040
4037
  return validity;
4041
4038
  }
4042
- const util_getValidity = getValidity;
4039
+ var util_getValidity = getValidity;
4043
4040
  function hideElement(element) {
4044
4041
  if (!element) return;
4045
4042
  element.style.setProperty("display", "none", "important");
4046
4043
  }
4047
- const html_hideElement = hideElement;
4044
+ var html_hideElement = hideElement;
4048
4045
  function isNotButton(element) {
4049
4046
  return "BUTTON" !== element.tagName && "submit" !== element.getAttribute("type");
4050
4047
  }
4051
- const html_isNotButton = isNotButton;
4048
+ var html_isNotButton = isNotButton;
4052
4049
  function showElement(element) {
4053
4050
  if (!element) return;
4054
4051
  element.style.removeProperty("display");
4055
4052
  }
4056
- const html_showElement = showElement;
4053
+ var html_showElement = showElement;
4057
4054
  const REGEX = /[ ,]+/u;
4058
4055
  function trimEmail(email) {
4059
4056
  return email.replace(REGEX, "");
@@ -4318,7 +4315,7 @@ class Form extends util_Despot {
4318
4315
  };
4319
4316
  }
4320
4317
  }
4321
- const wrappers_form = Form;
4318
+ var wrappers_form = Form;
4322
4319
  function resource_define_property(obj, key, value) {
4323
4320
  if (key in obj) Object.defineProperty(obj, key, {
4324
4321
  value: value,
@@ -4489,7 +4486,7 @@ class Resource {
4489
4486
  this.timezoneId = window.Intl.DateTimeFormat().resolvedOptions().timeZone;
4490
4487
  }
4491
4488
  }
4492
- const src_resource = Resource;
4489
+ var src_resource = Resource;
4493
4490
  const NodeEnvType = {
4494
4491
  DEVELOPMENT: "development",
4495
4492
  PRODUCTION: "production"
@@ -4499,11 +4496,11 @@ function getNodeEnv() {
4499
4496
  if (!process.env.NODE_ENV) return NodeEnvType.DEVELOPMENT;
4500
4497
  return process.env.NODE_ENV;
4501
4498
  }
4502
- const util_getNodeEnv = getNodeEnv;
4499
+ var util_getNodeEnv = getNodeEnv;
4503
4500
  function isProductionMode() {
4504
4501
  return util_getNodeEnv() === NodeEnvType.PRODUCTION;
4505
4502
  }
4506
- const util_isProductionMode = isProductionMode;
4503
+ var util_isProductionMode = isProductionMode;
4507
4504
  const PRODUCTION = util_isProductionMode();
4508
4505
  const options_options = {
4509
4506
  logger: console,
@@ -4623,7 +4620,7 @@ const options_options = {
4623
4620
  videomailNinjaFormPlugin: void 0
4624
4621
  }
4625
4622
  };
4626
- const src_options = options_options;
4623
+ var src_options = options_options;
4627
4624
  function CollectLogger_define_property(obj, key, value) {
4628
4625
  if (key in obj) Object.defineProperty(obj, key, {
4629
4626
  value: value,
@@ -4673,12 +4670,12 @@ class CollectLogger {
4673
4670
  this.logger = options.logger;
4674
4671
  }
4675
4672
  }
4676
- const util_CollectLogger = CollectLogger;
4673
+ var util_CollectLogger = CollectLogger;
4677
4674
  var isTest_process = __webpack_require__(5606);
4678
4675
  function isTest() {
4679
4676
  return "test" === isTest_process.env.ENVIRON;
4680
4677
  }
4681
- const util_isTest = isTest;
4678
+ var util_isTest = isTest;
4682
4679
  function mergeWithDefaultOptions(options = {}) {
4683
4680
  const newOptions = deepmerge(src_options, options, {
4684
4681
  arrayMerge (_destination, source) {
@@ -4690,7 +4687,7 @@ function mergeWithDefaultOptions(options = {}) {
4690
4687
  if (util_isTest()) newOptions.verbose = false;
4691
4688
  return newOptions;
4692
4689
  }
4693
- const options_mergeWithDefaultOptions = mergeWithDefaultOptions;
4690
+ var options_mergeWithDefaultOptions = mergeWithDefaultOptions;
4694
4691
  const injectStylesIntoStyleTag = __webpack_require__("4860");
4695
4692
  var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
4696
4693
  const styleDomAPI = __webpack_require__("7045");
@@ -4725,7 +4722,7 @@ function limitHeight(height, options, calledFrom) {
4725
4722
  dimension.value = limitedHeight;
4726
4723
  return dimension;
4727
4724
  }
4728
- const dimensions_limitHeight = limitHeight;
4725
+ var dimensions_limitHeight = limitHeight;
4729
4726
  function getOuterWidth(element) {
4730
4727
  let rect = element.getBoundingClientRect();
4731
4728
  let outerWidth = rect.right - rect.left;
@@ -4735,7 +4732,7 @@ function getOuterWidth(element) {
4735
4732
  }
4736
4733
  return outerWidth;
4737
4734
  }
4738
- const dimensions_getOuterWidth = getOuterWidth;
4735
+ var dimensions_getOuterWidth = getOuterWidth;
4739
4736
  function limitWidth(element, options, width) {
4740
4737
  const limitedDimension = {
4741
4738
  unit: "px"
@@ -4750,7 +4747,7 @@ function limitWidth(element, options, width) {
4750
4747
  limitedDimension.value = limitedWidth;
4751
4748
  return limitedDimension;
4752
4749
  }
4753
- const dimensions_limitWidth = limitWidth;
4750
+ var dimensions_limitWidth = limitWidth;
4754
4751
  function useFullWidth(mobileBreakPoint) {
4755
4752
  if (void 0 === mobileBreakPoint) return;
4756
4753
  const viewportWidth = window.innerWidth;
@@ -4762,32 +4759,32 @@ function useFullWidth(mobileBreakPoint) {
4762
4759
  return dimension;
4763
4760
  }
4764
4761
  }
4765
- const dimensions_useFullWidth = useFullWidth;
4762
+ var dimensions_useFullWidth = useFullWidth;
4766
4763
  function disableElement(element) {
4767
4764
  if (!element) return;
4768
4765
  if ("INPUT" === element.tagName || "BUTTON" === element.tagName) element.setAttribute("disabled", "true");
4769
4766
  else element.classList.add("disabled");
4770
4767
  }
4771
- const html_disableElement = disableElement;
4768
+ var html_disableElement = disableElement;
4772
4769
  function adjustButton(buttonElement, show, type, disabled) {
4773
4770
  if (disabled) html_disableElement(buttonElement);
4774
4771
  if (type) buttonElement.type = type;
4775
4772
  if (!show) html_hideElement(buttonElement);
4776
4773
  return buttonElement;
4777
4774
  }
4778
- const html_adjustButton = adjustButton;
4775
+ var html_adjustButton = adjustButton;
4779
4776
  function enableElement(element) {
4780
4777
  if (!element) return;
4781
4778
  if ("INPUT" === element.tagName || "BUTTON" === element.tagName) element.removeAttribute("disabled");
4782
4779
  else element.classList.remove("disabled");
4783
4780
  }
4784
- const html_enableElement = enableElement;
4781
+ var html_enableElement = enableElement;
4785
4782
  function isShown(element) {
4786
4783
  if (!element) return false;
4787
4784
  const display = element.style.getPropertyValue("display");
4788
4785
  return !display.includes("none");
4789
4786
  }
4790
- const html_isShown = isShown;
4787
+ var html_isShown = isShown;
4791
4788
  function buttons_define_property(obj, key, value) {
4792
4789
  if (key in obj) Object.defineProperty(obj, key, {
4793
4790
  value: value,
@@ -5183,13 +5180,13 @@ class Buttons extends util_Despot {
5183
5180
  this.container = container;
5184
5181
  }
5185
5182
  }
5186
- const buttons = Buttons;
5183
+ var buttons = Buttons;
5187
5184
  function isHidden(element) {
5188
5185
  if (!element) return true;
5189
5186
  const display = element.style.getPropertyValue("display");
5190
5187
  return display.includes("none");
5191
5188
  }
5192
- const html_isHidden = isHidden;
5189
+ var html_isHidden = isHidden;
5193
5190
  function countdown_define_property(obj, key, value) {
5194
5191
  if (key in obj) Object.defineProperty(obj, key, {
5195
5192
  value: value,
@@ -5268,7 +5265,7 @@ class Countdown {
5268
5265
  this.options = options;
5269
5266
  }
5270
5267
  }
5271
- const countdown = Countdown;
5268
+ var countdown = Countdown;
5272
5269
  function facingMode_define_property(obj, key, value) {
5273
5270
  if (key in obj) Object.defineProperty(obj, key, {
5274
5271
  value: value,
@@ -5318,7 +5315,7 @@ class FacingMode extends util_Despot {
5318
5315
  this.visuals = visuals;
5319
5316
  }
5320
5317
  }
5321
- const facingMode = FacingMode;
5318
+ var facingMode = FacingMode;
5322
5319
  function pausedNote_define_property(obj, key, value) {
5323
5320
  if (key in obj) Object.defineProperty(obj, key, {
5324
5321
  value: value,
@@ -5376,7 +5373,7 @@ class PausedNote {
5376
5373
  this.options = options;
5377
5374
  }
5378
5375
  }
5379
- const pausedNote = PausedNote;
5376
+ var pausedNote = PausedNote;
5380
5377
  function recordNote_define_property(obj, key, value) {
5381
5378
  if (key in obj) Object.defineProperty(obj, key, {
5382
5379
  value: value,
@@ -5421,13 +5418,13 @@ class RecordNote {
5421
5418
  this.visuals = visuals;
5422
5419
  }
5423
5420
  }
5424
- const recorder_recordNote = RecordNote;
5421
+ var recorder_recordNote = RecordNote;
5425
5422
  function pad(n) {
5426
5423
  const absNum = Math.abs(n);
5427
5424
  if (absNum < 10) return n < 0 ? `-0${absNum}` : `0${absNum}`;
5428
5425
  return String(n);
5429
5426
  }
5430
- const util_pad = pad;
5427
+ var util_pad = pad;
5431
5428
  function recordTimer_define_property(obj, key, value) {
5432
5429
  if (key in obj) Object.defineProperty(obj, key, {
5433
5430
  value: value,
@@ -5555,7 +5552,7 @@ class RecordTimer {
5555
5552
  this.options = options;
5556
5553
  }
5557
5554
  }
5558
- const recordTimer = RecordTimer;
5555
+ var recordTimer = RecordTimer;
5559
5556
  function recorderInsides_define_property(obj, key, value) {
5560
5557
  if (key in obj) Object.defineProperty(obj, key, {
5561
5558
  value: value,
@@ -5662,7 +5659,7 @@ class RecorderInsides extends util_Despot {
5662
5659
  if (options.enablePause) this.pausedNote = new pausedNote(visuals, options);
5663
5660
  }
5664
5661
  }
5665
- const recorderInsides = RecorderInsides;
5662
+ var recorderInsides = RecorderInsides;
5666
5663
  function notifier_define_property(obj, key, value) {
5667
5664
  if (key in obj) Object.defineProperty(obj, key, {
5668
5665
  value: value,
@@ -5904,7 +5901,7 @@ class Notifier extends util_Despot {
5904
5901
  this.visuals = visuals;
5905
5902
  }
5906
5903
  }
5907
- const notifier = Notifier;
5904
+ var notifier = Notifier;
5908
5905
  function getEdgeCodes(value, amount, fromEnd) {
5909
5906
  const chars = fromEnd ? value.slice(-amount) : value.slice(0, amount);
5910
5907
  const codes = Array.from(chars, (char)=>String(char.codePointAt(0))).join(".");
@@ -5983,7 +5980,7 @@ function getWebSocketDiagnostic(url2Connect) {
5983
5980
  looksAutomated: automationSignals.looksAutomated
5984
5981
  };
5985
5982
  }
5986
- const error_getWebSocketDiagnostic = getWebSocketDiagnostic;
5983
+ var error_getWebSocketDiagnostic = getWebSocketDiagnostic;
5987
5984
  function figureMinHeight(height, options) {
5988
5985
  let minHeight;
5989
5986
  if (options.video.height) {
@@ -5995,7 +5992,7 @@ function figureMinHeight(height, options) {
5995
5992
  } else minHeight = height;
5996
5993
  return minHeight;
5997
5994
  }
5998
- const dimensions_figureMinHeight = figureMinHeight;
5995
+ var dimensions_figureMinHeight = figureMinHeight;
5999
5996
  function getRatio(options, videoHeight, videoWidth) {
6000
5997
  let ratio = 1;
6001
5998
  const hasVideoDimensions = videoHeight && videoWidth;
@@ -6006,7 +6003,7 @@ function getRatio(options, videoHeight, videoWidth) {
6006
6003
  else if (hasVideoDimensions) ratio = videoHeight / videoWidth;
6007
6004
  return ratio;
6008
6005
  }
6009
- const dimensions_getRatio = getRatio;
6006
+ var dimensions_getRatio = getRatio;
6010
6007
  function calculateHeight(responsive, videoWidth, options, ratio, element) {
6011
6008
  const dimension = {
6012
6009
  unit: "px"
@@ -6026,7 +6023,7 @@ function calculateHeight(responsive, videoWidth, options, ratio, element) {
6026
6023
  dimension.value = minHeight;
6027
6024
  return dimension;
6028
6025
  }
6029
- const dimensions_calculateHeight = calculateHeight;
6026
+ var dimensions_calculateHeight = calculateHeight;
6030
6027
  function calculateWidth(responsive, options, videoHeight, ratio) {
6031
6028
  const dimension = {
6032
6029
  unit: "px"
@@ -6049,7 +6046,7 @@ function calculateWidth(responsive, options, videoHeight, ratio) {
6049
6046
  dimension.value = calculatedWidth;
6050
6047
  return dimension;
6051
6048
  }
6052
- const dimensions_calculateWidth = calculateWidth;
6049
+ var dimensions_calculateWidth = calculateWidth;
6053
6050
  function AudioRecorder_define_property(obj, key, value) {
6054
6051
  if (key in obj) Object.defineProperty(obj, key, {
6055
6052
  value: value,
@@ -6144,14 +6141,14 @@ class AudioRecorder {
6144
6141
  this.userMedia = userMedia;
6145
6142
  }
6146
6143
  }
6147
- const media_AudioRecorder = AudioRecorder;
6144
+ var media_AudioRecorder = AudioRecorder;
6148
6145
  function getFirstVideoTrack(localMediaStream) {
6149
6146
  const videoTracks = localMediaStream.getVideoTracks();
6150
6147
  let videoTrack;
6151
6148
  if (videoTracks[0]) videoTrack = videoTracks[0];
6152
6149
  return videoTrack;
6153
6150
  }
6154
- const media_getFirstVideoTrack = getFirstVideoTrack;
6151
+ var media_getFirstVideoTrack = getFirstVideoTrack;
6155
6152
  const MEDIA_EVENTS = [
6156
6153
  "loadstart",
6157
6154
  "suspend",
@@ -6172,7 +6169,7 @@ const MEDIA_EVENTS = [
6172
6169
  "durationchange",
6173
6170
  "volumechange"
6174
6171
  ];
6175
- const mediaEvents = MEDIA_EVENTS;
6172
+ var mediaEvents = MEDIA_EVENTS;
6176
6173
  const VIRTUAL_KEYWORDS = [
6177
6174
  "obs",
6178
6175
  "virtual",
@@ -6186,7 +6183,7 @@ function isVirtualCamera(videoTrack) {
6186
6183
  if (!capabilities.frameRate) return true;
6187
6184
  return VIRTUAL_KEYWORDS.some((keyword)=>videoTrack.label.toLowerCase().includes(keyword));
6188
6185
  }
6189
- const util_isVirtualCamera = isVirtualCamera;
6186
+ var util_isVirtualCamera = isVirtualCamera;
6190
6187
  function userMedia_define_property(obj, key, value) {
6191
6188
  if (key in obj) Object.defineProperty(obj, key, {
6192
6189
  value: value,
@@ -6488,7 +6485,7 @@ class UserMedia extends util_Despot {
6488
6485
  });
6489
6486
  }
6490
6487
  }
6491
- const visuals_userMedia = UserMedia;
6488
+ var visuals_userMedia = UserMedia;
6492
6489
  var Buffer = __webpack_require__(8287).hp;
6493
6490
  function recorder_define_property(obj, key, value) {
6494
6491
  if (key in obj) Object.defineProperty(obj, key, {
@@ -7488,7 +7485,7 @@ class Recorder extends util_Despot {
7488
7485
  this.facingMode = options.video.facingMode;
7489
7486
  }
7490
7487
  }
7491
- const visuals_recorder = Recorder;
7488
+ var visuals_recorder = Recorder;
7492
7489
  function replay_define_property(obj, key, value) {
7493
7490
  if (key in obj) Object.defineProperty(obj, key, {
7494
7491
  value: value,
@@ -7738,7 +7735,7 @@ class Replay extends util_Despot {
7738
7735
  this.visuals = visuals;
7739
7736
  }
7740
7737
  }
7741
- const visuals_replay = Replay;
7738
+ var visuals_replay = Replay;
7742
7739
  function visuals_define_property(obj, key, value) {
7743
7740
  if (key in obj) Object.defineProperty(obj, key, {
7744
7741
  value: value,
@@ -8036,7 +8033,7 @@ class Visuals extends util_Despot {
8036
8033
  this.notifier = new notifier(this, options);
8037
8034
  }
8038
8035
  }
8039
- const wrappers_visuals = Visuals;
8036
+ var wrappers_visuals = Visuals;
8040
8037
  function container_define_property(obj, key, value) {
8041
8038
  if (key in obj) Object.defineProperty(obj, key, {
8042
8039
  value: value,
@@ -8536,7 +8533,7 @@ class Container extends util_Despot {
8536
8533
  this.resource = new src_resource(options);
8537
8534
  }
8538
8535
  }
8539
- const wrappers_container = Container;
8536
+ var wrappers_container = Container;
8540
8537
  function client_define_property(obj, key, value) {
8541
8538
  if (key in obj) Object.defineProperty(obj, key, {
8542
8539
  value: value,
@@ -23,6 +23,8 @@ export interface VideomailErrorData {
23
23
  interface VideomailErrorVersions {
24
24
  videomailNinjaFormPlugin?: string | undefined;
25
25
  videomailClient: string;
26
+ videomailUI?: string | undefined;
27
+ videomailServer?: string | undefined;
26
28
  }
27
29
  export interface FullVideomailErrorData extends VideomailErrorData {
28
30
  browser: IBrowser;