@bigbinary/neeto-media-recorder 1.3.10 → 1.3.12

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/index.js CHANGED
@@ -4,7 +4,7 @@ import classNames from 'classnames';
4
4
  import { isNotEmpty, noop } from '@bigbinary/neeto-cist';
5
5
  import { SCREEN_RECORDER_STATUS, SCREEN_RECORDER_ERROR, IS_SAFARI_EXTENSION, UPLOAD_STATUS, ONE_MINUTE_IN_MILLISECONDS, ONE_SECOND_IN_MILLISECONDS, IS_EXTENSION, SCREEN_RECORDER_EVENT, UPLOAD_EVENT } from '@bigbinary/neeto-media-recorder/constants';
6
6
  import { screenRecorder, multipartS3Uploader } from '@bigbinary/neeto-media-recorder/core';
7
- import { Typography, Button, Callout, Alert } from '@bigbinary/neetoui';
7
+ import { Typography, Spinner, Button, Callout, Alert } from '@bigbinary/neetoui';
8
8
  import { useTranslation, Trans } from 'react-i18next';
9
9
  import { useMutation } from 'react-query';
10
10
  import axios from 'axios';
@@ -17,7 +17,7 @@ import { generatePublicUrl } from '@bigbinary/neeto-media-recorder/utils';
17
17
 
18
18
  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}}
19
19
 
20
- var css = ".nrec-done-button{background-color:rgb(var(--neeto-ui-error-100));padding:8px 12px}.nrec-done-button:hover{box-shadow:0 0 0 3px rgba(var(--neeto-ui-error-500),15%)}.nrec-ellipsis-anim{margin-left:2px}.nrec-ellipsis-anim span{-webkit-animation:nrec-ellipsis-dot 2s infinite;animation:nrec-ellipsis-dot 2s infinite;font-size:32px}.nrec-ellipsis-anim span:first-child{-webkit-animation-delay:0s;animation-delay:0s}.nrec-ellipsis-anim span:nth-child(2){-webkit-animation-delay:.3s;animation-delay:.3s}.nrec-ellipsis-anim span:nth-child(3){-webkit-animation-delay:.6s;animation-delay:.6s}@-webkit-keyframes nrec-ellipsis-dot{0%{opacity:0}50%{opacity:1}to{opacity:0}}@keyframes nrec-ellipsis-dot{0%{opacity:0}50%{opacity:1}to{opacity:0}}";
20
+ var css = ".nrec-done-button{background-color:rgb(var(--neeto-ui-error-100));padding:8px 12px}.nrec-done-button:hover{box-shadow:0 0 0 3px rgba(var(--neeto-ui-error-500),15%)}";
21
21
  n(css,{});
22
22
 
23
23
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
@@ -509,15 +509,17 @@ var AbortUpload = withT(function (_ref) {
509
509
  return /*#__PURE__*/React.createElement("div", {
510
510
  className: "flex h-screen w-full flex-col items-center justify-center"
511
511
  }, /*#__PURE__*/React.createElement("div", {
512
- className: "flex h-full w-full flex-col items-center justify-start py-10 2xl:py-20"
512
+ className: "flex h-full w-full flex-col items-center justify-start py-10 xl:py-14 2xl:py-20"
513
513
  }, /*#__PURE__*/React.createElement("div", {
514
514
  className: "w-full space-y-2 text-center"
515
515
  }, /*#__PURE__*/React.createElement(Typography, {
516
+ className: "select-none",
516
517
  "data-cy": "recorder-discarding-recording-message",
517
518
  style: "h2"
518
- }, t("neetoMediaRecorder.record.discardingVideo"), /*#__PURE__*/React.createElement("span", {
519
- className: "nrec-ellipsis-anim"
520
- }, /*#__PURE__*/React.createElement("span", null, "."), /*#__PURE__*/React.createElement("span", null, "."), /*#__PURE__*/React.createElement("span", null, "."))), /*#__PURE__*/React.createElement(Typography, {
519
+ }, t("neetoMediaRecorder.record.discardingVideo"), /*#__PURE__*/React.createElement(Spinner, {
520
+ className: "ml-3"
521
+ })), /*#__PURE__*/React.createElement(Typography, {
522
+ className: "select-none",
521
523
  "data-cy": "recorder-do-not-leave-page-message"
522
524
  }, t("neetoMediaRecorder.record.doNotLeaveThePage")))));
523
525
  });
@@ -920,15 +922,17 @@ var UploadingInProgress = function UploadingInProgress(_ref) {
920
922
  return /*#__PURE__*/React.createElement("div", {
921
923
  className: "flex h-screen w-full flex-col items-center justify-center"
922
924
  }, /*#__PURE__*/React.createElement("div", {
923
- className: "flex h-full w-full flex-col items-center justify-start py-10 2xl:py-20"
925
+ className: "flex h-full w-full flex-col items-center justify-start py-10 xl:py-14 2xl:py-20"
924
926
  }, /*#__PURE__*/React.createElement("div", {
925
927
  className: "w-full space-y-2 pb-6 text-center"
926
928
  }, /*#__PURE__*/React.createElement(Typography, {
929
+ className: "select-none",
927
930
  "data-cy": "recorder-uploading-recording-message",
928
931
  style: "h2"
929
- }, t("neetoMediaRecorder.record.uploadingRecording"), /*#__PURE__*/React.createElement("span", {
930
- className: "nrec-ellipsis-anim"
931
- }, /*#__PURE__*/React.createElement("span", null, "."), /*#__PURE__*/React.createElement("span", null, "."), /*#__PURE__*/React.createElement("span", null, "."))), /*#__PURE__*/React.createElement(Typography, {
932
+ }, t("neetoMediaRecorder.record.uploadingRecording"), /*#__PURE__*/React.createElement(Spinner, {
933
+ className: "ml-3 select-none"
934
+ })), /*#__PURE__*/React.createElement(Typography, {
935
+ className: "select-none",
932
936
  "data-cy": "recorder-do-not-leave-page-message"
933
937
  }, t("neetoMediaRecorder.record.doNotLeaveThePage"))), /*#__PURE__*/React.createElement("div", {
934
938
  className: "flex flex-wrap items-center justify-center gap-4"
@@ -1142,7 +1146,7 @@ var MediaRecorder = function MediaRecorder(_ref, ref) {
1142
1146
  return /*#__PURE__*/React.createElement(AbortUpload, null);
1143
1147
  }
1144
1148
  return /*#__PURE__*/React.createElement("div", {
1145
- className: "flex h-screen w-full flex-col items-center justify-start py-10 2xl:py-20"
1149
+ className: "flex h-screen w-full flex-col items-center justify-start py-10 xl:py-14 2xl:py-20"
1146
1150
  }, /*#__PURE__*/React.createElement("div", {
1147
1151
  className: classNames("w-full max-w-3xl")
1148
1152
  }, error === SCREEN_RECORDER_ERROR.NotAllowedError && /*#__PURE__*/React.createElement(Callout, {