@bigbinary/neeto-media-recorder 2.7.44 → 2.7.46
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/core.js +5 -8
- package/core.js.map +1 -1
- package/index.js.map +1 -1
- package/package.json +3 -1
- package/v2/index.js +63 -59
- package/v2/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-media-recorder",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.46",
|
|
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",
|
|
@@ -115,6 +115,7 @@
|
|
|
115
115
|
"i18next-browser-languagedetector": "^7.1.0",
|
|
116
116
|
"js-logger": "^1.6.1",
|
|
117
117
|
"lint-staged": "^12.3.7",
|
|
118
|
+
"lucide-react": "^1.8.0",
|
|
118
119
|
"platform": "^1.3.6",
|
|
119
120
|
"prettier": "2.6.2",
|
|
120
121
|
"prettier-plugin-tailwindcss": "0.1.10",
|
|
@@ -146,6 +147,7 @@
|
|
|
146
147
|
"axios": "0.27.2",
|
|
147
148
|
"classnames": "^2.3.2",
|
|
148
149
|
"js-logger": "^1.6.1",
|
|
150
|
+
"lucide-react": "^1.8.0",
|
|
149
151
|
"platform": "^1.3.6",
|
|
150
152
|
"ramda": "^0.29.0",
|
|
151
153
|
"react": "^17.0.2",
|
package/v2/index.js
CHANGED
|
@@ -14,20 +14,12 @@ import { copyToClipboard } from '@bigbinary/neeto-commons-frontend/v2/utils/gene
|
|
|
14
14
|
import withT from '@bigbinary/neeto-commons-frontend/v2/react-utils/withT';
|
|
15
15
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
16
16
|
import classNames from 'classnames';
|
|
17
|
-
import
|
|
18
|
-
import Pause from '@bigbinary/neeto-icons/Pause';
|
|
19
|
-
import Unlock from '@bigbinary/neeto-icons/Unlock';
|
|
20
|
-
import Delete from '@bigbinary/neeto-icons/Delete';
|
|
21
|
-
import Browser from '@bigbinary/neeto-icons/Browser';
|
|
22
|
-
import Close from '@bigbinary/neeto-icons/Close';
|
|
23
|
-
import Download from '@bigbinary/neeto-icons/Download';
|
|
24
|
-
import Copy from '@bigbinary/neeto-icons/Copy';
|
|
25
|
-
import Refresh from '@bigbinary/neeto-icons/Refresh';
|
|
17
|
+
import { AppWindow, Monitor, Trash2, Unlock, Pause, Copy, Download, RefreshCw, X } from 'lucide-react';
|
|
26
18
|
import CopyToClipboardButton from '@bigbinary/neeto-molecules/v2/CopyToClipboardButton';
|
|
27
19
|
|
|
28
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}}
|
|
29
21
|
|
|
30
|
-
var css = ".nrec-done-button{background-color:
|
|
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}";
|
|
31
23
|
n(css,{});
|
|
32
24
|
|
|
33
25
|
function _typeof$1(o) {
|
|
@@ -1076,12 +1068,13 @@ var AbortUpload = withT(function (_ref) {
|
|
|
1076
1068
|
children: [/*#__PURE__*/jsxs(Typography, {
|
|
1077
1069
|
className: "select-none",
|
|
1078
1070
|
"data-testid": "recorder-discarding-recording-message",
|
|
1079
|
-
variant: "
|
|
1071
|
+
variant: "h4",
|
|
1080
1072
|
children: [t("neetoMediaRecorder.record.discardingVideo"), /*#__PURE__*/jsx(Spinner, {
|
|
1081
|
-
className: "
|
|
1073
|
+
className: "ms-3"
|
|
1082
1074
|
})]
|
|
1083
1075
|
}), /*#__PURE__*/jsx(Typography, {
|
|
1084
1076
|
className: "select-none",
|
|
1077
|
+
color: "muted",
|
|
1085
1078
|
"data-testid": "recorder-do-not-leave-page-message",
|
|
1086
1079
|
children: t("neetoMediaRecorder.record.doNotLeaveThePage")
|
|
1087
1080
|
})]
|
|
@@ -1199,11 +1192,11 @@ var AllowMicAccess = function AllowMicAccess() {
|
|
|
1199
1192
|
|
|
1200
1193
|
var DesktopAppCallout = function DesktopAppCallout() {
|
|
1201
1194
|
return /*#__PURE__*/jsx(Callout, {
|
|
1202
|
-
className: "mb-
|
|
1195
|
+
className: "mb-6",
|
|
1203
1196
|
variant: "info",
|
|
1204
1197
|
children: /*#__PURE__*/jsx(Typography, {
|
|
1205
1198
|
as: "span",
|
|
1206
|
-
variant: "
|
|
1199
|
+
variant: "h6",
|
|
1207
1200
|
children: /*#__PURE__*/jsx(Trans, {
|
|
1208
1201
|
i18nKey: "neetoMediaRecorder.useDesktopAppCallOut",
|
|
1209
1202
|
values: {
|
|
@@ -1211,6 +1204,7 @@ var DesktopAppCallout = function DesktopAppCallout() {
|
|
|
1211
1204
|
},
|
|
1212
1205
|
components: {
|
|
1213
1206
|
Download: /*#__PURE__*/jsx(Button, {
|
|
1207
|
+
className: "text-base font-semibold",
|
|
1214
1208
|
href: "https://neeto.com/neetorecord/download",
|
|
1215
1209
|
size: "lg",
|
|
1216
1210
|
variant: "link"
|
|
@@ -1225,11 +1219,11 @@ var RequestRecordingCallout = function RequestRecordingCallout(_ref) {
|
|
|
1225
1219
|
var _ref$requestedUser = _ref.requestedUser,
|
|
1226
1220
|
requestedUser = _ref$requestedUser === void 0 ? "" : _ref$requestedUser;
|
|
1227
1221
|
return /*#__PURE__*/jsx(Callout, {
|
|
1228
|
-
className: "mb-
|
|
1222
|
+
className: "mb-6 text-center",
|
|
1229
1223
|
variant: "info",
|
|
1230
1224
|
children: /*#__PURE__*/jsxs(Typography, {
|
|
1231
1225
|
as: "span",
|
|
1232
|
-
variant: "
|
|
1226
|
+
variant: "h6",
|
|
1233
1227
|
children: [requestedUser, " is asking you to send a screen recording."]
|
|
1234
1228
|
})
|
|
1235
1229
|
});
|
|
@@ -1257,11 +1251,12 @@ var Callouts = withT(function (_ref) {
|
|
|
1257
1251
|
className: "flex flex-col items-center",
|
|
1258
1252
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
1259
1253
|
className: "mb-2",
|
|
1260
|
-
variant: "
|
|
1254
|
+
variant: "h5",
|
|
1261
1255
|
children: t("neetoMediaRecorder.record.micPermissionDeniedTitle", {
|
|
1262
1256
|
appName: appName
|
|
1263
1257
|
})
|
|
1264
1258
|
}), /*#__PURE__*/jsx(Typography, {
|
|
1259
|
+
color: "muted",
|
|
1265
1260
|
children: t("neetoMediaRecorder.record.micPermissionDeniedMessage")
|
|
1266
1261
|
}), /*#__PURE__*/jsx(AllowMicAccess, {})]
|
|
1267
1262
|
}), isRecorderStatus(SCREEN_RECORDER_STATUS.acquiring_media) && /*#__PURE__*/jsx(Callout, {
|
|
@@ -1354,7 +1349,7 @@ var StopIcon = function StopIcon(_ref2) {
|
|
|
1354
1349
|
}, other), {}, {
|
|
1355
1350
|
children: /*#__PURE__*/jsx("path", {
|
|
1356
1351
|
d: "M10.667 16A5.333 5.333 0 0116 10.667h32A5.333 5.333 0 0153.333 16v32A5.333 5.333 0 0148 53.333H16A5.333 5.333 0 0110.667 48V16z",
|
|
1357
|
-
fill: "
|
|
1352
|
+
fill: "var(--error-solid)"
|
|
1358
1353
|
})
|
|
1359
1354
|
}));
|
|
1360
1355
|
};
|
|
@@ -1385,28 +1380,30 @@ var GrantAccessMessage = withT(function (_ref) {
|
|
|
1385
1380
|
children: [/*#__PURE__*/jsx("div", {
|
|
1386
1381
|
className: "mb-6 flex justify-center",
|
|
1387
1382
|
children: /*#__PURE__*/jsx("div", {
|
|
1388
|
-
className: "
|
|
1389
|
-
children: /*#__PURE__*/jsx(
|
|
1390
|
-
className: "
|
|
1383
|
+
className: "bg-muted flex h-16 w-16 items-center justify-center rounded-full",
|
|
1384
|
+
children: /*#__PURE__*/jsx(AppWindow, {
|
|
1385
|
+
className: "text-muted-foreground",
|
|
1391
1386
|
size: 40
|
|
1392
1387
|
})
|
|
1393
1388
|
})
|
|
1394
1389
|
}), /*#__PURE__*/jsx(Typography, {
|
|
1395
1390
|
className: "mb-3 text-center",
|
|
1396
|
-
variant: "
|
|
1391
|
+
variant: "h5",
|
|
1397
1392
|
children: t("neetoMediaRecorder.record.screenSharePermissionDeniedTitle", {
|
|
1398
1393
|
appName: appName
|
|
1399
1394
|
})
|
|
1400
1395
|
}), /*#__PURE__*/jsx(Typography, {
|
|
1401
|
-
className: "
|
|
1396
|
+
className: "text-center leading-normal",
|
|
1397
|
+
color: "muted",
|
|
1402
1398
|
children: /*#__PURE__*/jsx(Trans, {
|
|
1399
|
+
i18nKey: "neetoMediaRecorder.record.screenSharePermissionDenied",
|
|
1403
1400
|
components: {
|
|
1404
1401
|
Bold: /*#__PURE__*/jsx(Typography, {
|
|
1405
1402
|
as: "span",
|
|
1403
|
+
color: "inherit",
|
|
1406
1404
|
weight: "bold"
|
|
1407
1405
|
})
|
|
1408
|
-
}
|
|
1409
|
-
i18nKey: "neetoMediaRecorder.record.screenSharePermissionDenied"
|
|
1406
|
+
}
|
|
1410
1407
|
})
|
|
1411
1408
|
})]
|
|
1412
1409
|
});
|
|
@@ -1458,11 +1455,11 @@ var Controls = function Controls(_ref) {
|
|
|
1458
1455
|
var shouldShowSelectScreenButton = isStatus(SCREEN_RECORDER_STATUS.idle) && (requested || IS_SAFARI_EXTENSION || error === SCREEN_RECORDER_ERROR.NotAllowedError);
|
|
1459
1456
|
var shouldShowGrantMicPermissionButton = error === SCREEN_RECORDER_ERROR.MicPermissionDenied;
|
|
1460
1457
|
return /*#__PURE__*/jsxs("div", {
|
|
1461
|
-
className: classNames("mt-
|
|
1462
|
-
"
|
|
1458
|
+
className: classNames("mt-10 flex flex-row items-center gap-3 p-2", {
|
|
1459
|
+
"border-border rounded-lg border-2": hasRecordingStarted
|
|
1463
1460
|
}),
|
|
1464
1461
|
children: [shouldShowSelectScreenButton && /*#__PURE__*/jsxs("div", {
|
|
1465
|
-
className: "
|
|
1462
|
+
className: "w-full max-w-3xl rounded-md border p-5 pb-10",
|
|
1466
1463
|
children: [/*#__PURE__*/jsx(GrantAccessMessage, {
|
|
1467
1464
|
appName: appName
|
|
1468
1465
|
}), /*#__PURE__*/jsxs("div", {
|
|
@@ -1471,7 +1468,7 @@ var Controls = function Controls(_ref) {
|
|
|
1471
1468
|
className: "flex-shrink-0",
|
|
1472
1469
|
"data-testid": "media-recorder-record-button",
|
|
1473
1470
|
icon: function icon() {
|
|
1474
|
-
return /*#__PURE__*/jsx(
|
|
1471
|
+
return /*#__PURE__*/jsx(Monitor, {
|
|
1475
1472
|
size: 20
|
|
1476
1473
|
});
|
|
1477
1474
|
},
|
|
@@ -1484,7 +1481,7 @@ var Controls = function Controls(_ref) {
|
|
|
1484
1481
|
className: "flex-shrink-0",
|
|
1485
1482
|
"data-testid": "media-recorder-discard-button",
|
|
1486
1483
|
icon: function icon() {
|
|
1487
|
-
return /*#__PURE__*/jsx(
|
|
1484
|
+
return /*#__PURE__*/jsx(Trash2, {
|
|
1488
1485
|
size: 20
|
|
1489
1486
|
});
|
|
1490
1487
|
},
|
|
@@ -1525,11 +1522,11 @@ var Controls = function Controls(_ref) {
|
|
|
1525
1522
|
}), hasRecordingStarted && /*#__PURE__*/jsxs("div", {
|
|
1526
1523
|
className: "flex items-center gap-3",
|
|
1527
1524
|
children: [/*#__PURE__*/jsx(Button, {
|
|
1528
|
-
className: "nrec-done-button flex-shrink-0",
|
|
1525
|
+
className: "nrec-done-button h-12 flex-shrink-0",
|
|
1529
1526
|
"data-testid": "media-recorder-stop-button",
|
|
1530
1527
|
icon: function icon() {
|
|
1531
1528
|
return /*#__PURE__*/jsx(StopIcon, {
|
|
1532
|
-
|
|
1529
|
+
className: "nrec-control-button__icon"
|
|
1533
1530
|
});
|
|
1534
1531
|
},
|
|
1535
1532
|
label: t("neetoMediaRecorder.record.done"),
|
|
@@ -1537,11 +1534,12 @@ var Controls = function Controls(_ref) {
|
|
|
1537
1534
|
variant: "ghost",
|
|
1538
1535
|
onClick: onStopRecording
|
|
1539
1536
|
}), /*#__PURE__*/jsx("div", {
|
|
1540
|
-
className: "
|
|
1537
|
+
className: "bg-border h-10 w-0.5"
|
|
1541
1538
|
})]
|
|
1542
1539
|
}), isStatus(SCREEN_RECORDER_STATUS.recording) && /*#__PURE__*/jsx(Button, {
|
|
1543
|
-
className: "flex-shrink-0",
|
|
1540
|
+
className: "h-12 w-12 flex-shrink-0",
|
|
1544
1541
|
"data-testid": "media-recorder-pause-button",
|
|
1542
|
+
size: "lg",
|
|
1545
1543
|
variant: "ghost",
|
|
1546
1544
|
tooltipProps: {
|
|
1547
1545
|
content: t("neetoMediaRecorder.record.pause"),
|
|
@@ -1549,12 +1547,12 @@ var Controls = function Controls(_ref) {
|
|
|
1549
1547
|
},
|
|
1550
1548
|
onClick: pauseRecording,
|
|
1551
1549
|
children: /*#__PURE__*/jsx(Pause, {
|
|
1552
|
-
className: "
|
|
1553
|
-
size: 28
|
|
1550
|
+
className: "nrec-control-button__icon"
|
|
1554
1551
|
})
|
|
1555
1552
|
}), isStatus(SCREEN_RECORDER_STATUS.paused) && /*#__PURE__*/jsx(Button, {
|
|
1556
|
-
className: "flex-shrink-0",
|
|
1553
|
+
className: "h-12 w-12 flex-shrink-0",
|
|
1557
1554
|
"data-testid": "media-recorder-play-button",
|
|
1555
|
+
size: "lg",
|
|
1558
1556
|
variant: "ghost",
|
|
1559
1557
|
tooltipProps: {
|
|
1560
1558
|
content: t("neetoMediaRecorder.record.resume"),
|
|
@@ -1562,13 +1560,14 @@ var Controls = function Controls(_ref) {
|
|
|
1562
1560
|
},
|
|
1563
1561
|
onClick: resumeRecording,
|
|
1564
1562
|
children: /*#__PURE__*/jsx(PlayIcon, {
|
|
1565
|
-
|
|
1563
|
+
className: "nrec-control-button__icon"
|
|
1566
1564
|
})
|
|
1567
1565
|
}), hasRecordingStarted && /*#__PURE__*/jsxs("div", {
|
|
1568
1566
|
className: "flex items-center gap-3",
|
|
1569
1567
|
children: [/*#__PURE__*/jsx(Button, {
|
|
1570
|
-
className: "flex-shrink-0",
|
|
1568
|
+
className: "h-12 w-12 flex-shrink-0",
|
|
1571
1569
|
"data-testid": "media-recorder-restart-button",
|
|
1570
|
+
size: "lg",
|
|
1572
1571
|
variant: "ghost",
|
|
1573
1572
|
tooltipProps: {
|
|
1574
1573
|
content: t("neetoMediaRecorder.record.restart"),
|
|
@@ -1578,11 +1577,12 @@ var Controls = function Controls(_ref) {
|
|
|
1578
1577
|
return setIsRestartAlertOpen(true);
|
|
1579
1578
|
},
|
|
1580
1579
|
children: /*#__PURE__*/jsx(RestartIcon, {
|
|
1581
|
-
|
|
1580
|
+
className: "nrec-control-button__icon"
|
|
1582
1581
|
})
|
|
1583
1582
|
}), /*#__PURE__*/jsx(Button, {
|
|
1584
|
-
className: "flex-shrink-0",
|
|
1583
|
+
className: "h-12 w-12 flex-shrink-0",
|
|
1585
1584
|
"data-testid": "media-recorder-discard-button",
|
|
1585
|
+
size: "lg",
|
|
1586
1586
|
variant: "ghost",
|
|
1587
1587
|
tooltipProps: {
|
|
1588
1588
|
content: t("neetoMediaRecorder.record.discard"),
|
|
@@ -1591,9 +1591,8 @@ var Controls = function Controls(_ref) {
|
|
|
1591
1591
|
onClick: function onClick() {
|
|
1592
1592
|
return setIsDiscardAlertOpen(true);
|
|
1593
1593
|
},
|
|
1594
|
-
children: /*#__PURE__*/jsx(
|
|
1595
|
-
className: "
|
|
1596
|
-
size: 28
|
|
1594
|
+
children: /*#__PURE__*/jsx(Trash2, {
|
|
1595
|
+
className: "nrec-control-button__icon"
|
|
1597
1596
|
})
|
|
1598
1597
|
})]
|
|
1599
1598
|
})]
|
|
@@ -1604,7 +1603,7 @@ var Countdown = withT(function (_ref) {
|
|
|
1604
1603
|
var t = _ref.t,
|
|
1605
1604
|
countdownTimeLeft = _ref.countdownTimeLeft;
|
|
1606
1605
|
return /*#__PURE__*/jsxs("div", {
|
|
1607
|
-
className: "
|
|
1606
|
+
className: "mx-auto mb-8 flex w-full max-w-4xl flex-col items-center justify-center rounded-lg p-12",
|
|
1608
1607
|
"data-testid": "recorder-countdown-wrapper",
|
|
1609
1608
|
children: [/*#__PURE__*/jsx("div", {
|
|
1610
1609
|
className: "relative mb-8",
|
|
@@ -1618,7 +1617,7 @@ var Countdown = withT(function (_ref) {
|
|
|
1618
1617
|
cy: "60",
|
|
1619
1618
|
fill: "transparent",
|
|
1620
1619
|
r: "50",
|
|
1621
|
-
stroke: "
|
|
1620
|
+
stroke: "color-mix(in oklab, var(--primary) 20%, transparent)",
|
|
1622
1621
|
strokeWidth: "4"
|
|
1623
1622
|
}), /*#__PURE__*/jsx("circle", {
|
|
1624
1623
|
className: "transition-all duration-1000 ease-linear",
|
|
@@ -1626,7 +1625,7 @@ var Countdown = withT(function (_ref) {
|
|
|
1626
1625
|
cy: "60",
|
|
1627
1626
|
fill: "transparent",
|
|
1628
1627
|
r: "50",
|
|
1629
|
-
stroke: "
|
|
1628
|
+
stroke: "var(--primary)",
|
|
1630
1629
|
strokeDasharray: 2 * Math.PI * 50,
|
|
1631
1630
|
strokeLinecap: "round",
|
|
1632
1631
|
strokeWidth: "4",
|
|
@@ -1640,7 +1639,7 @@ var Countdown = withT(function (_ref) {
|
|
|
1640
1639
|
})
|
|
1641
1640
|
}), /*#__PURE__*/jsx(Typography, {
|
|
1642
1641
|
className: "mb-4",
|
|
1643
|
-
variant: "
|
|
1642
|
+
variant: "h5",
|
|
1644
1643
|
children: t("neetoMediaRecorder.record.startsIn")
|
|
1645
1644
|
})]
|
|
1646
1645
|
});
|
|
@@ -1894,16 +1893,17 @@ var Timer = function Timer() {
|
|
|
1894
1893
|
className: "mb-4 flex flex-col items-center justify-center",
|
|
1895
1894
|
"data-testid": "recorder-timer-wrapper",
|
|
1896
1895
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
1897
|
-
className: "
|
|
1896
|
+
className: "mb-3 flex justify-center",
|
|
1898
1897
|
"data-testid": "recorder-timer-elapsed-time",
|
|
1899
|
-
|
|
1898
|
+
variant: "h1",
|
|
1900
1899
|
children: getTimeString(elapsedTime)
|
|
1901
1900
|
}), /*#__PURE__*/jsx(Typography, {
|
|
1902
1901
|
className: "mb-2",
|
|
1903
1902
|
"data-testid": "recorder-recording-in-progress-message",
|
|
1904
|
-
variant: "
|
|
1903
|
+
variant: "h5",
|
|
1905
1904
|
children: t("neetoMediaRecorder.record.inProgress")
|
|
1906
1905
|
}), /*#__PURE__*/jsx(Typography, {
|
|
1906
|
+
color: "muted",
|
|
1907
1907
|
"data-testid": "recorder-do-not-leave-page-message",
|
|
1908
1908
|
variant: "body2",
|
|
1909
1909
|
children: t("neetoMediaRecorder.record.doNotLeaveThePage")
|
|
@@ -1946,18 +1946,18 @@ var UploadingInProgress = function UploadingInProgress(_ref) {
|
|
|
1946
1946
|
return /*#__PURE__*/jsxs("div", {
|
|
1947
1947
|
className: "flex h-screen w-full flex-col items-center justify-center",
|
|
1948
1948
|
children: [/*#__PURE__*/jsxs("div", {
|
|
1949
|
-
className: "flex h-full w-full flex-col items-center justify-start py-
|
|
1950
|
-
children: [/*#__PURE__*/
|
|
1949
|
+
className: "flex h-full w-full flex-col items-center justify-start py-10 xl:py-14 2xl:py-20",
|
|
1950
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
1951
1951
|
className: "w-full pb-6 text-center",
|
|
1952
1952
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
1953
1953
|
className: "select-none pb-6",
|
|
1954
1954
|
"data-testid": "please-dont-close-this-tab",
|
|
1955
|
-
variant: "
|
|
1955
|
+
variant: "h2",
|
|
1956
1956
|
children: t("neetoMediaRecorder.record.pleaseDontCloseThisTab")
|
|
1957
1957
|
}), /*#__PURE__*/jsx(Typography, {
|
|
1958
1958
|
className: "select-none pb-3",
|
|
1959
1959
|
"data-testid": "recorder-uploading-recording-message",
|
|
1960
|
-
variant: "
|
|
1960
|
+
variant: "h4",
|
|
1961
1961
|
weight: "normal",
|
|
1962
1962
|
children: t("neetoMediaRecorder.record.uploadingRecording")
|
|
1963
1963
|
}), /*#__PURE__*/jsx("div", {
|
|
@@ -1970,6 +1970,7 @@ var UploadingInProgress = function UploadingInProgress(_ref) {
|
|
|
1970
1970
|
})
|
|
1971
1971
|
}), /*#__PURE__*/jsx(Typography, {
|
|
1972
1972
|
className: "select-none",
|
|
1973
|
+
color: "muted",
|
|
1973
1974
|
"data-testid": "recorder-do-not-leave-page-message",
|
|
1974
1975
|
variant: "body2",
|
|
1975
1976
|
children: t("neetoMediaRecorder.record.copyLinkDescription")
|
|
@@ -1985,19 +1986,22 @@ var UploadingInProgress = function UploadingInProgress(_ref) {
|
|
|
1985
1986
|
}), /*#__PURE__*/jsx(Button, {
|
|
1986
1987
|
"data-testid": "recorder-download-webm-button",
|
|
1987
1988
|
icon: Download,
|
|
1989
|
+
iconPosition: "left",
|
|
1988
1990
|
variant: "secondary",
|
|
1989
1991
|
label: isMp4Supported() ? t("neetoMediaRecorder.record.downloadMp4") : t("neetoMediaRecorder.record.downloadWebm"),
|
|
1990
1992
|
onClick: handleRecordingBlobDownload
|
|
1991
1993
|
}), /*#__PURE__*/jsx(Button, {
|
|
1992
1994
|
"data-testid": "recorder-retry-upload-button",
|
|
1993
1995
|
disabled: isRetryUpload,
|
|
1994
|
-
icon:
|
|
1996
|
+
icon: RefreshCw,
|
|
1997
|
+
iconPosition: "left",
|
|
1995
1998
|
label: t("neetoMediaRecorder.record.retry"),
|
|
1996
1999
|
variant: "secondary",
|
|
1997
2000
|
onClick: onRetryUpload
|
|
1998
2001
|
}), /*#__PURE__*/jsx(Button, {
|
|
1999
2002
|
"data-testid": "recorder-discard-recording-button",
|
|
2000
|
-
icon:
|
|
2003
|
+
icon: X,
|
|
2004
|
+
iconPosition: "left",
|
|
2001
2005
|
label: t("neetoMediaRecorder.record.discardRecording"),
|
|
2002
2006
|
variant: "secondary",
|
|
2003
2007
|
onClick: function onClick() {
|
|
@@ -2485,9 +2489,9 @@ var MediaRecorder$1 = function MediaRecorder(_ref, ref) {
|
|
|
2485
2489
|
});
|
|
2486
2490
|
}
|
|
2487
2491
|
if (isRecorderStatus(SCREEN_RECORDER_STATUS.stopped) && upload && isUploadStatus(UPLOAD_STATUS$1.completed)) {
|
|
2488
|
-
return /*#__PURE__*/
|
|
2492
|
+
return /*#__PURE__*/jsx("div", {
|
|
2489
2493
|
className: "h-screen w-full",
|
|
2490
|
-
children:
|
|
2494
|
+
children: /*#__PURE__*/jsx(PageLoader, {})
|
|
2491
2495
|
});
|
|
2492
2496
|
}
|
|
2493
2497
|
return /*#__PURE__*/jsxs("div", {
|