@bigbinary/neeto-media-recorder 2.7.49 → 2.7.50

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-media-recorder",
3
- "version": "2.7.49",
3
+ "version": "2.7.50",
4
4
  "description": "A package to simplify the media capturing process",
5
5
  "repository": "git@github.com:bigbinary/neeto-media-recorder.git",
6
6
  "license": "MIT",
package/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["src/utils/index.js"],"sourcesContent":["export const sleep = delay =>\n new Promise(resolve => setTimeout(resolve, delay));\n\nexport const generatePublicUrl = (\n recordingId,\n baseURL = window.location.origin\n) => `${baseURL}/watch/${recordingId}`;\n"],"names":["sleep","delay","Promise","resolve","setTimeout","generatePublicUrl","recordingId","baseURL","arguments","length","undefined","window","location","origin","concat"],"mappings":"IAAaA,KAAK,GAAG,SAARA,KAAKA,CAAGC,KAAK,EAAA;AAAA,EAAA,OACxB,IAAIC,OAAO,CAAC,UAAAC,OAAO,EAAA;AAAA,IAAA,OAAIC,UAAU,CAACD,OAAO,EAAEF,KAAK,CAAC,CAAA;GAAC,CAAA,CAAA;AAAA,EAAA;IAEvCI,iBAAiB,GAAG,SAApBA,iBAAiBA,CAC5BC,WAAW,EAAA;AAAA,EAAA,IACXC,OAAO,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAGG,CAAAA,CAAAA,GAAAA,MAAM,CAACC,QAAQ,CAACC,MAAM,CAAA;AAAA,EAAA,OAAA,EAAA,CAAAC,MAAA,CAC1BP,OAAO,EAAAO,SAAAA,CAAAA,CAAAA,MAAA,CAAUR,WAAW,CAAA,CAAA;AAAA;;;;"}
1
+ {"version":3,"file":"utils.js","sources":["src/utils/index.js"],"sourcesContent":["export const sleep = delay =>\n new Promise(resolve => setTimeout(resolve, delay));\n\nexport const generatePublicUrl = (\n recordingId,\n baseURL = window.location.origin\n) => `${baseURL}/watch/${recordingId}`;\n"],"names":["sleep","delay","Promise","resolve","setTimeout","generatePublicUrl","recordingId","baseURL","arguments","length","undefined","window","location","origin","concat"],"mappings":"IAAaA,KAAK,GAAG,SAARA,KAAKA,CAAGC,KAAK,EAAA;AAAA,EAAA,OACxB,IAAIC,OAAO,CAAC,UAAAC,OAAO,EAAA;AAAA,IAAA,OAAIC,UAAU,CAACD,OAAO,EAAEF,KAAK,CAAC;EAAA,CAAA,CAAC;AAAA;IAEvCI,iBAAiB,GAAG,SAApBA,iBAAiBA,CAC5BC,WAAW,EAAA;AAAA,EAAA,IACXC,OAAO,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAGG,MAAM,CAACC,QAAQ,CAACC,MAAM;AAAA,EAAA,OAAA,EAAA,CAAAC,MAAA,CAC1BP,OAAO,EAAA,SAAA,CAAA,CAAAO,MAAA,CAAUR,WAAW,CAAA;AAAA;;;;"}
package/v2/index.js CHANGED
@@ -17,7 +17,7 @@ import classNames from 'classnames';
17
17
  import { AppWindow, Monitor, Trash2, Unlock, Pause, Copy, Download, RefreshCw, X } from 'lucide-react';
18
18
  import CopyToClipboardButton from '@bigbinary/neeto-molecules/v2/CopyToClipboardButton';
19
19
 
20
- var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
20
+ var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=true===r.prepend?"prepend":"append",d=true===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
21
21
 
22
22
  var css = ".nrec-done-button{background-color:var(--error);padding:8px 12px}.nrec-done-button:hover{box-shadow:0 0 0 3px color-mix(in oklab,var(--error-solid) 15%,transparent)}.nrec-media-upload-progress{margin:0 auto;max-width:480px}.nrec-media-upload-error{color:var(--error-foreground)}.nrec-grant-permission-callout{font-size:20px;left:50%;pointer-events:none;position:fixed;top:60vh;transform:translateX(-50%);width:min(640px,100vw - 32px);z-index:2147483000}.nrec-control-button__icon{height:1.5rem!important;width:1.5rem!important}.nrec-media-upload-progress [data-slot=progress]{height:.75rem}";
23
23
  n(css,{});
@@ -36,7 +36,7 @@ function toPrimitive(t, r) {
36
36
  if ("object" != _typeof$1(t) || !t) return t;
37
37
  var e = t[Symbol.toPrimitive];
38
38
  if (void 0 !== e) {
39
- var i = e.call(t, r || "default");
39
+ var i = e.call(t, r);
40
40
  if ("object" != _typeof$1(i)) return i;
41
41
  throw new TypeError("@@toPrimitive must return a primitive value.");
42
42
  }
@@ -51,9 +51,9 @@ function toPropertyKey(t) {
51
51
  function _defineProperty(e, r, t) {
52
52
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
53
53
  value: t,
54
- enumerable: !0,
55
- configurable: !0,
56
- writable: !0
54
+ enumerable: true,
55
+ configurable: true,
56
+ writable: true
57
57
  }) : e[r] = t, e;
58
58
  }
59
59
 
@@ -95,12 +95,12 @@ function _iterableToArrayLimit(r, l) {
95
95
  i,
96
96
  u,
97
97
  a = [],
98
- f = !0,
99
- o = !1;
98
+ f = true,
99
+ o = false;
100
100
  try {
101
101
  if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
102
102
  } catch (r) {
103
- o = !0, n = r;
103
+ o = true, n = r;
104
104
  } finally {
105
105
  try {
106
106
  if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
@@ -177,9 +177,9 @@ var _typeofExports = _typeof.exports;
177
177
  function define(t, e, r) {
178
178
  return Object.defineProperty(t, e, {
179
179
  value: r,
180
- enumerable: !0,
181
- configurable: !0,
182
- writable: !0
180
+ enumerable: true,
181
+ configurable: true,
182
+ writable: true
183
183
  }), t[e];
184
184
  }
185
185
  try {
@@ -272,7 +272,7 @@ var _typeofExports = _typeof.exports;
272
272
  if ("throw" === i) throw a;
273
273
  return {
274
274
  value: t,
275
- done: !0
275
+ done: true
276
276
  };
277
277
  }
278
278
  for (n.method = i, n.arg = a;;) {
@@ -323,7 +323,7 @@ var _typeofExports = _typeof.exports;
323
323
  function Context(t) {
324
324
  this.tryEntries = [{
325
325
  tryLoc: "root"
326
- }], t.forEach(pushTryEntry, this), this.reset(!0);
326
+ }], t.forEach(pushTryEntry, this), this.reset(true);
327
327
  }
328
328
  function values(e) {
329
329
  if (e || "" === e) {
@@ -333,8 +333,8 @@ var _typeofExports = _typeof.exports;
333
333
  if (!isNaN(e.length)) {
334
334
  var o = -1,
335
335
  i = function next() {
336
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
337
- return next.value = t, next.done = !0, next;
336
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = false, next;
337
+ return next.value = t, next.done = true, next;
338
338
  };
339
339
  return i.next = i;
340
340
  }
@@ -343,10 +343,10 @@ var _typeofExports = _typeof.exports;
343
343
  }
344
344
  return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
345
345
  value: GeneratorFunctionPrototype,
346
- configurable: !0
346
+ configurable: true
347
347
  }), o(GeneratorFunctionPrototype, "constructor", {
348
348
  value: GeneratorFunction,
349
- configurable: !0
349
+ configurable: true
350
350
  }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
351
351
  var e = "function" == typeof t && t.constructor;
352
352
  return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
@@ -375,17 +375,17 @@ var _typeofExports = _typeof.exports;
375
375
  return r.reverse(), function next() {
376
376
  for (; r.length;) {
377
377
  var t = r.pop();
378
- if (t in e) return next.value = t, next.done = !1, next;
378
+ if (t in e) return next.value = t, next.done = false, next;
379
379
  }
380
- return next.done = !0, next;
380
+ return next.done = true, next;
381
381
  };
382
382
  }, e.values = values, Context.prototype = {
383
383
  constructor: Context,
384
384
  reset: function reset(e) {
385
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
385
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
386
386
  },
387
387
  stop: function stop() {
388
- this.done = !0;
388
+ this.done = true;
389
389
  var t = this.tryEntries[0].completion;
390
390
  if ("throw" === t.type) throw t.arg;
391
391
  return this.rval;
@@ -404,10 +404,10 @@ var _typeofExports = _typeof.exports;
404
404
  var c = n.call(i, "catchLoc"),
405
405
  u = n.call(i, "finallyLoc");
406
406
  if (c && u) {
407
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
407
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
408
408
  if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
409
409
  } else if (c) {
410
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
410
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
411
411
  } else {
412
412
  if (!u) throw Error("try statement without catch or finally");
413
413
  if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
@@ -487,10 +487,6 @@ var ONE_SECOND_IN_MILLISECONDS = 1000;
487
487
  var ONE_MINUTE_IN_MILLISECONDS = 60 * ONE_SECOND_IN_MILLISECONDS;
488
488
  var ONE_HOUR_IN_MILLISECONDS = 60 * ONE_MINUTE_IN_MILLISECONDS;
489
489
  var UPLOAD_STATUS = {
490
- uploading: "uploading",
491
- completed: "completed",
492
- aborting: "aborting",
493
- insufficient_data: "insufficient_data",
494
490
  error: "error"
495
491
  };
496
492
  var TOTAL_RETRIES = 15;
@@ -498,9 +494,7 @@ var INITIAL_RETRY_DELAY = 4000;
498
494
  var MAX_RETRY_DELAY = 16000;
499
495
  var DEFAULT_RETRY_CONFIG = {
500
496
  retries: TOTAL_RETRIES,
501
- retryDelay: INITIAL_RETRY_DELAY,
502
- retryableStatuses: []
503
- };
497
+ retryDelay: INITIAL_RETRY_DELAY};
504
498
  var HAS_CHROME_NAMESPACE = (typeof chrome === "undefined" ? "undefined" : _typeof$1(chrome)) === "object";
505
499
  var IS_EXTENSION = HAS_CHROME_NAMESPACE && isNotNil(chrome.extension);
506
500
  var IS_SAFARI = platform.name === "Safari";
@@ -578,7 +572,7 @@ var createPrefixedLogger = function createPrefixedLogger(prefix) {
578
572
 
579
573
  function _createClass(e, r, t) {
580
574
  return Object.defineProperty(e, "prototype", {
581
- writable: !1
575
+ writable: false
582
576
  }), e;
583
577
  }
584
578
 
@@ -597,11 +591,11 @@ function _inherits(t, e) {
597
591
  t.prototype = Object.create(e && e.prototype, {
598
592
  constructor: {
599
593
  value: t,
600
- writable: !0,
601
- configurable: !0
594
+ writable: true,
595
+ configurable: true
602
596
  }
603
597
  }), Object.defineProperty(t, "prototype", {
604
- writable: !1
598
+ writable: false
605
599
  }), e && _setPrototypeOf(t, e);
606
600
  }
607
601
 
@@ -662,9 +656,9 @@ function _wrapNativeSuper(t) {
662
656
  return Wrapper.prototype = Object.create(t.prototype, {
663
657
  constructor: {
664
658
  value: Wrapper,
665
- enumerable: !1,
666
- writable: !0,
667
- configurable: !0
659
+ enumerable: false,
660
+ writable: true,
661
+ configurable: true
668
662
  }
669
663
  }), _setPrototypeOf(Wrapper, t);
670
664
  }, _wrapNativeSuper(t);
@@ -1038,7 +1032,7 @@ var copyRecordingLinkToClipboardOnStop = function copyRecordingLinkToClipboardOn
1038
1032
  };
1039
1033
 
1040
1034
  function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1041
- function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1035
+ function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1042
1036
  var baseUrl = "/api/v1/recordings";
1043
1037
  var create = function create() {
1044
1038
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
@@ -1056,7 +1050,7 @@ var recordingsApi = {
1056
1050
  };
1057
1051
 
1058
1052
  function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1059
- function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1053
+ function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1060
1054
  var useCreateRecording = function useCreateRecording(options) {
1061
1055
  return useMutation(_objectSpread$1({
1062
1056
  mutationFn: function mutationFn(payload) {
@@ -1313,7 +1307,7 @@ var _excluded = ["size"],
1313
1307
  _excluded2 = ["size"],
1314
1308
  _excluded3 = ["size"];
1315
1309
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1316
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1310
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1317
1311
  var PlayIcon = function PlayIcon(_ref) {
1318
1312
  var _ref$size = _ref.size,
1319
1313
  size = _ref$size === void 0 ? 24 : _ref$size,