@bigbinary/neeto-media-recorder 2.6.11 → 2.6.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 +19 -31
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -18,9 +18,9 @@ import withT from '@bigbinary/neeto-commons-frontend/react-utils/withT';
|
|
|
18
18
|
import Spinner from '@bigbinary/neetoui/Spinner';
|
|
19
19
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
20
20
|
import Computer from '@bigbinary/neeto-icons/Computer';
|
|
21
|
-
import Delete from '@bigbinary/neeto-icons/Delete';
|
|
22
21
|
import Pause from '@bigbinary/neeto-icons/Pause';
|
|
23
22
|
import Unlock from '@bigbinary/neeto-icons/Unlock';
|
|
23
|
+
import Delete from '@bigbinary/neeto-icons/Delete';
|
|
24
24
|
import { copyToClipboard } from '@bigbinary/neeto-commons-frontend/utils/general';
|
|
25
25
|
import Close from '@bigbinary/neeto-icons/Close';
|
|
26
26
|
import Download from '@bigbinary/neeto-icons/Download';
|
|
@@ -880,45 +880,33 @@ var Controls = function Controls(_ref) {
|
|
|
880
880
|
}), isStatus(SCREEN_RECORDER_STATUS.recording) && /*#__PURE__*/jsx(Button, {
|
|
881
881
|
className: "flex-shrink-0",
|
|
882
882
|
"data-cy": "media-recorder-pause-button",
|
|
883
|
-
size: "large",
|
|
884
883
|
style: "text",
|
|
885
|
-
icon: function icon() {
|
|
886
|
-
return /*#__PURE__*/jsx(Pause, {
|
|
887
|
-
className: "nr-control-button__icon--neeto",
|
|
888
|
-
size: 28
|
|
889
|
-
});
|
|
890
|
-
},
|
|
891
884
|
tooltipProps: {
|
|
892
885
|
content: t("neetoMediaRecorder.record.pause"),
|
|
893
886
|
position: "top"
|
|
894
887
|
},
|
|
895
|
-
onClick: pauseRecording
|
|
888
|
+
onClick: pauseRecording,
|
|
889
|
+
children: /*#__PURE__*/jsx(Pause, {
|
|
890
|
+
className: "nr-control-button__icon--neeto",
|
|
891
|
+
size: 28
|
|
892
|
+
})
|
|
896
893
|
}), isStatus(SCREEN_RECORDER_STATUS.paused) && /*#__PURE__*/jsx(Button, {
|
|
897
894
|
className: "flex-shrink-0",
|
|
898
895
|
"data-cy": "media-recorder-play-button",
|
|
899
|
-
icon: function icon() {
|
|
900
|
-
return /*#__PURE__*/jsx(PlayIcon, {
|
|
901
|
-
size: 28
|
|
902
|
-
});
|
|
903
|
-
},
|
|
904
|
-
size: "large",
|
|
905
896
|
style: "text",
|
|
906
897
|
tooltipProps: {
|
|
907
898
|
content: t("neetoMediaRecorder.record.resume"),
|
|
908
899
|
position: "top"
|
|
909
900
|
},
|
|
910
|
-
onClick: resumeRecording
|
|
901
|
+
onClick: resumeRecording,
|
|
902
|
+
children: /*#__PURE__*/jsx(PlayIcon, {
|
|
903
|
+
size: 28
|
|
904
|
+
})
|
|
911
905
|
}), hasRecordingStarted && /*#__PURE__*/jsxs("div", {
|
|
912
906
|
className: "flex items-center gap-3",
|
|
913
907
|
children: [/*#__PURE__*/jsx(Button, {
|
|
914
908
|
className: "flex-shrink-0",
|
|
915
909
|
"data-cy": "media-recorder-restart-button",
|
|
916
|
-
icon: function icon() {
|
|
917
|
-
return /*#__PURE__*/jsx(RestartIcon, {
|
|
918
|
-
size: 28
|
|
919
|
-
});
|
|
920
|
-
},
|
|
921
|
-
size: "large",
|
|
922
910
|
style: "text",
|
|
923
911
|
tooltipProps: {
|
|
924
912
|
content: t("neetoMediaRecorder.record.restart"),
|
|
@@ -926,25 +914,25 @@ var Controls = function Controls(_ref) {
|
|
|
926
914
|
},
|
|
927
915
|
onClick: function onClick() {
|
|
928
916
|
return setIsRestartAlertOpen(true);
|
|
929
|
-
}
|
|
917
|
+
},
|
|
918
|
+
children: /*#__PURE__*/jsx(RestartIcon, {
|
|
919
|
+
size: 28
|
|
920
|
+
})
|
|
930
921
|
}), /*#__PURE__*/jsx(Button, {
|
|
931
922
|
className: "flex-shrink-0",
|
|
932
923
|
"data-cy": "media-recorder-discard-button",
|
|
933
|
-
size: "large",
|
|
934
924
|
style: "text",
|
|
935
|
-
icon: function icon() {
|
|
936
|
-
return /*#__PURE__*/jsx(Delete, {
|
|
937
|
-
className: "nr-control-button__icon--neeto",
|
|
938
|
-
size: 28
|
|
939
|
-
});
|
|
940
|
-
},
|
|
941
925
|
tooltipProps: {
|
|
942
926
|
content: t("neetoMediaRecorder.record.discard"),
|
|
943
927
|
position: "top"
|
|
944
928
|
},
|
|
945
929
|
onClick: function onClick() {
|
|
946
930
|
return setIsDiscardAlertOpen(true);
|
|
947
|
-
}
|
|
931
|
+
},
|
|
932
|
+
children: /*#__PURE__*/jsx(Delete, {
|
|
933
|
+
className: "nr-control-button__icon--neeto",
|
|
934
|
+
size: 28
|
|
935
|
+
})
|
|
948
936
|
})]
|
|
949
937
|
})]
|
|
950
938
|
});
|