@bigbinary/neeto-media-recorder 2.7.16 → 2.7.17

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
@@ -2,6 +2,7 @@ import { shallow } from 'zustand/shallow';
2
2
  import { useState, useRef, useCallback, useEffect, forwardRef, useImperativeHandle } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import { isNotEmpty, noop } from '@bigbinary/neeto-cist';
5
+ import Browser from '@bigbinary/neeto-icons/Browser';
5
6
  import { SCREEN_RECORDER_STATUS, UPLOAD_STATUS as UPLOAD_STATUS$1, ONE_SECOND_IN_MILLISECONDS as ONE_SECOND_IN_MILLISECONDS$1, MIME_TYPE as MIME_TYPE$1, ONE_MINUTE_IN_MILLISECONDS as ONE_MINUTE_IN_MILLISECONDS$1, IS_EXTENSION as IS_EXTENSION$1, SCREEN_RECORDER_ERROR, IS_SAFARI_EXTENSION, MIC_NOT_WORKING_SILENCE_TIMEOUT, SCREEN_RECORDER_EVENT, COUNTDOWN_TIME, UPLOAD_EVENT } from '@bigbinary/neeto-media-recorder/constants';
6
7
  import { screenRecorder, useMultipartS3UploadStatus, getMultipartS3Uploader } from '@bigbinary/neeto-media-recorder/core';
7
8
  import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
@@ -803,15 +804,16 @@ var Controls = function Controls(_ref) {
803
804
  "neeto-ui-rounded-lg neeto-ui-border-gray-200 border-2": hasRecordingStarted
804
805
  }, className, isNotEmpty(classNames))),
805
806
  children: [shouldShowSelectScreenButton && /*#__PURE__*/jsxs("div", {
806
- className: "mt-4 flex gap-4",
807
+ className: "flex gap-4",
807
808
  children: [/*#__PURE__*/jsx(Button, {
808
809
  className: "flex-shrink-0",
809
810
  "data-cy": "media-recorder-record-button",
810
811
  icon: function icon() {
811
812
  return /*#__PURE__*/jsx(Computer, {
812
- size: 28
813
+ size: 20
813
814
  });
814
815
  },
816
+ iconPosition: "left",
815
817
  label: t("neetoMediaRecorder.record.selectScreen"),
816
818
  loading: isStatus(SCREEN_RECORDER_STATUS.acquiring_media),
817
819
  size: "large",
@@ -821,16 +823,17 @@ var Controls = function Controls(_ref) {
821
823
  "data-cy": "media-recorder-discard-button",
822
824
  icon: function icon() {
823
825
  return /*#__PURE__*/jsx(Delete, {
824
- size: 28
826
+ size: 20
825
827
  });
826
828
  },
829
+ iconPosition: "left",
827
830
  label: t("neetoMediaRecorder.record.discard"),
828
831
  size: "large",
829
832
  style: "danger",
830
833
  onClick: onDiscard
831
834
  })]
832
835
  }), shouldShowGrantMicPermissionButton && /*#__PURE__*/jsxs("div", {
833
- className: "mt-4 flex gap-4",
836
+ className: "flex gap-4",
834
837
  children: [/*#__PURE__*/jsx(Button, {
835
838
  className: "flex-shrink-0",
836
839
  "data-cy": "media-recorder-no-audio-button",
@@ -847,7 +850,8 @@ var Controls = function Controls(_ref) {
847
850
  className: "flex-shrink-0",
848
851
  "data-cy": "media-recorder-grant-microphone-permission-button",
849
852
  icon: Unlock,
850
- iconSize: 28,
853
+ iconPosition: "left",
854
+ iconSize: 20,
851
855
  label: t("neetoMediaRecorder.record.grantMicPermission"),
852
856
  size: "large",
853
857
  onClick: startRecording
@@ -1802,14 +1806,24 @@ var MediaRecorder = function MediaRecorder(_ref, ref) {
1802
1806
  style: "danger",
1803
1807
  children: t("neetoMediaRecorder.insufficientDataError")
1804
1808
  }), error === SCREEN_RECORDER_ERROR.NotAllowedError && /*#__PURE__*/jsxs("div", {
1805
- className: "flex flex-col items-center",
1806
- children: [/*#__PURE__*/jsx(Typography, {
1807
- className: "mb-2",
1809
+ className: "flex flex-col items-center pt-10",
1810
+ children: [/*#__PURE__*/jsx("div", {
1811
+ className: "mb-6 flex justify-center",
1812
+ children: /*#__PURE__*/jsx("div", {
1813
+ className: "neeto-ui-bg-gray-100 neeto-ui-rounded-full flex h-16 w-16 items-center justify-center",
1814
+ children: /*#__PURE__*/jsx(Browser, {
1815
+ className: "neeto-ui-text-gray-600",
1816
+ size: 40
1817
+ })
1818
+ })
1819
+ }), /*#__PURE__*/jsx(Typography, {
1820
+ className: "mb-3 text-center",
1808
1821
  style: "h3",
1809
1822
  children: t("neetoMediaRecorder.record.screenSharePermissionDeniedTitle", {
1810
1823
  appName: appName
1811
1824
  })
1812
1825
  }), /*#__PURE__*/jsx(Typography, {
1826
+ className: "neeto-ui-text-gray-600 text-center leading-normal",
1813
1827
  children: /*#__PURE__*/jsx(Trans, {
1814
1828
  i18nKey: "neetoMediaRecorder.record.screenSharePermissionDenied",
1815
1829
  components: {