@elice/material-runbox 1.261123.0 → 1.261125.0-descriptionupload.0

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.
Files changed (59) hide show
  1. package/cjs/_virtual/_rollupPluginBabelHelpers.js +6 -6
  2. package/cjs/components/material-runbox/MaterialRunbox.js +6 -4
  3. package/cjs/components/material-runbox/MaterialRunboxAlert.js +11 -0
  4. package/cjs/components/material-runbox/MaterialRunboxBody.js +1 -1
  5. package/cjs/components/material-runbox/MaterialRunboxContent.js +14 -8
  6. package/cjs/components/material-runbox/MaterialRunboxCreditAlert.js +15 -18
  7. package/cjs/components/material-runbox/MaterialRunboxHeader.js +6 -4
  8. package/cjs/components/material-runbox/actions/MaterialRunboxActionAutoShutdown.js +4 -1
  9. package/cjs/components/material-runbox/actions/MaterialRunboxActionDisconnect.js +4 -1
  10. package/cjs/components/material-runbox/actions/MaterialRunboxActionDisconnectMenuItem.js +4 -1
  11. package/cjs/components/material-runbox/actions/MaterialRunboxActionGrade.js +3 -2
  12. package/cjs/components/material-runbox/actions/MaterialRunboxActionMenu.js +1 -1
  13. package/cjs/components/material-runbox/actions/MaterialRunboxActionReset.js +2 -0
  14. package/cjs/components/material-runbox/actions/MaterialRunboxActionRestart.js +3 -0
  15. package/cjs/components/material-runbox/actions/MaterialRunboxActionShare.js +3 -0
  16. package/cjs/components/material-runbox/actions/MaterialRunboxActionSubmitLogDialog.js +4 -1
  17. package/cjs/components/material-runbox/disk/MaterialRunboxDiskUsageAlert.js +12 -1
  18. package/cjs/components/material-runbox/disk/MaterialRunboxDiskUsageDialog.js +10 -0
  19. package/cjs/components/material-runbox/disk/MaterialRunboxEnvResetButton.js +4 -2
  20. package/cjs/components/material-runbox/hooks/useInfiniteRunboxRunboxIdGrade.js +3 -1
  21. package/cjs/components/material-runbox/hooks/useMaterialRunboxRunboxIdStarterGet.js +3 -1
  22. package/cjs/components/material-runbox/runtime/Runtime.js +9 -3
  23. package/cjs/components/material-runbox/runtime/RuntimeChangeMaterialDialog.js +3 -0
  24. package/cjs/components/material-runbox/runtime/RuntimeOverlayConflicted.js +6 -3
  25. package/cjs/components/material-runbox/runtime/RuntimeOverlayLoading.js +2 -2
  26. package/cjs/components/material-runbox/runtime/RuntimeOverlayTerminated.js +29 -26
  27. package/cjs/components/material-runbox/status/MaterialRunboxStatusButton.js +10 -1
  28. package/cjs/components/material-runbox/status/MaterialRunboxStatusPopover.js +11 -2
  29. package/cjs/components/material-runbox/timer/MaterialRunboxTimer.js +5 -2
  30. package/es/_virtual/_rollupPluginBabelHelpers.js +6 -6
  31. package/es/components/material-runbox/MaterialRunbox.js +6 -4
  32. package/es/components/material-runbox/MaterialRunboxAlert.js +11 -0
  33. package/es/components/material-runbox/MaterialRunboxBody.js +1 -1
  34. package/es/components/material-runbox/MaterialRunboxContent.js +14 -8
  35. package/es/components/material-runbox/MaterialRunboxCreditAlert.js +15 -18
  36. package/es/components/material-runbox/MaterialRunboxHeader.js +6 -4
  37. package/es/components/material-runbox/actions/MaterialRunboxActionAutoShutdown.js +4 -1
  38. package/es/components/material-runbox/actions/MaterialRunboxActionDisconnect.js +4 -1
  39. package/es/components/material-runbox/actions/MaterialRunboxActionDisconnectMenuItem.js +4 -1
  40. package/es/components/material-runbox/actions/MaterialRunboxActionGrade.js +3 -2
  41. package/es/components/material-runbox/actions/MaterialRunboxActionMenu.js +1 -1
  42. package/es/components/material-runbox/actions/MaterialRunboxActionReset.js +2 -0
  43. package/es/components/material-runbox/actions/MaterialRunboxActionRestart.js +3 -0
  44. package/es/components/material-runbox/actions/MaterialRunboxActionShare.js +3 -0
  45. package/es/components/material-runbox/actions/MaterialRunboxActionSubmitLogDialog.js +4 -1
  46. package/es/components/material-runbox/disk/MaterialRunboxDiskUsageAlert.js +12 -1
  47. package/es/components/material-runbox/disk/MaterialRunboxDiskUsageDialog.js +10 -0
  48. package/es/components/material-runbox/disk/MaterialRunboxEnvResetButton.js +4 -2
  49. package/es/components/material-runbox/hooks/useInfiniteRunboxRunboxIdGrade.js +3 -1
  50. package/es/components/material-runbox/hooks/useMaterialRunboxRunboxIdStarterGet.js +3 -1
  51. package/es/components/material-runbox/runtime/Runtime.js +9 -3
  52. package/es/components/material-runbox/runtime/RuntimeChangeMaterialDialog.js +3 -0
  53. package/es/components/material-runbox/runtime/RuntimeOverlayConflicted.js +6 -3
  54. package/es/components/material-runbox/runtime/RuntimeOverlayLoading.js +2 -2
  55. package/es/components/material-runbox/runtime/RuntimeOverlayTerminated.js +29 -26
  56. package/es/components/material-runbox/status/MaterialRunboxStatusButton.js +10 -1
  57. package/es/components/material-runbox/status/MaterialRunboxStatusPopover.js +11 -2
  58. package/es/components/material-runbox/timer/MaterialRunboxTimer.js +5 -2
  59. package/package.json +22 -21
@@ -12,12 +12,15 @@ var edsMaterial = require('@elice/eds-material');
12
12
  var intl = require('@elice/intl');
13
13
  var runboxClient = require('@elice/runbox-client');
14
14
  var proSolidSvgIcons = require('@fortawesome/pro-solid-svg-icons');
15
+ var useBreakpoint = require('../../shared/hooks/useBreakpoint.js');
16
+ require('../contexts/MaterialRunboxApiContext.js');
17
+ require('../contexts/MaterialRunboxCommandContext.js');
18
+ var MaterialRunboxControlContext = require('../contexts/MaterialRunboxControlContext.js');
19
+ require('../contexts/MaterialRunboxContext.js');
15
20
  var useRunboxSessionEndWarning = require('../hooks/useRunboxSessionEndWarning.js');
16
21
  var MaterialRunboxQuotaAlmostEndDialog = require('./MaterialRunboxQuotaAlmostEndDialog.js');
17
22
  var MaterialRunboxQuotaPerSessionAlmostEndDialog = require('./MaterialRunboxQuotaPerSessionAlmostEndDialog.js');
18
23
  var MaterialRunboxTimerDetailPopover = require('./MaterialRunboxTimerDetailPopover.js');
19
- var MaterialRunboxControlContext = require('../contexts/MaterialRunboxControlContext.js');
20
- var useBreakpoint = require('../../shared/hooks/useBreakpoint.js');
21
24
  var time = require('../../../utils/time.js');
22
25
 
23
26
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -119,7 +119,7 @@ function _regenerator() {
119
119
  return function (o, p, l) {
120
120
  if (f > 1) throw TypeError("Generator is already running");
121
121
  for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
122
- i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
122
+ i || (c ? (c > 1 && (G.n = c < 3 ? -1 : u), d(c, u)) : G.v = u);
123
123
  try {
124
124
  if (f = 2, i) {
125
125
  if (c || (o = "next"), t = i[o]) {
@@ -199,15 +199,15 @@ function _taggedTemplateLiteral(e, t) {
199
199
  function _toConsumableArray(r) {
200
200
  return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
201
201
  }
202
- function _toPrimitive(t, r) {
202
+ function _toPrimitive(t, e) {
203
203
  if ("object" != typeof t || !t) return t;
204
- var e = t[Symbol.toPrimitive];
205
- if (void 0 !== e) {
206
- var i = e.call(t, r);
204
+ var r;
205
+ if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
206
+ var i = r.call(t, e);
207
207
  if ("object" != typeof i) return i;
208
208
  throw new TypeError("@@toPrimitive must return a primitive value.");
209
209
  }
210
- return ("string" === r ? String : Number)(t);
210
+ return ("string" === e ? String : Number)(t);
211
211
  }
212
212
  function _toPropertyKey(t) {
213
213
  var i = _toPrimitive(t, "string");
@@ -2,12 +2,14 @@ import { __rest } from 'tslib';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { ThemeProvider } from '@elice/eds-material';
4
4
  import { IntlComponentBuilder, RawEliceIntlProvider } from '@elice/intl';
5
- import MaterialRunboxContent from './MaterialRunboxContent.js';
6
- import { runboxDarkTheme } from './theme.js';
5
+ import MaterialRunboxApiContextProvider from './contexts/MaterialRunboxApiContext.js';
6
+ import './contexts/MaterialRunboxCommandContext.js';
7
+ import './contexts/MaterialRunboxControlContext.js';
8
+ import MaterialRunboxContextProvider from './contexts/MaterialRunboxContext.js';
7
9
  import messageEn from './locales/en.json.js';
8
10
  import messageKo from './locales/ko.json.js';
9
- import MaterialRunboxContextProvider from './contexts/MaterialRunboxContext.js';
10
- import MaterialRunboxApiContextProvider from './contexts/MaterialRunboxApiContext.js';
11
+ import MaterialRunboxContent from './MaterialRunboxContent.js';
12
+ import { runboxDarkTheme } from './theme.js';
11
13
 
12
14
  //
13
15
  //
@@ -1,7 +1,18 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { Alert, AlertTitle } from '@elice/eds-material';
3
3
  import { useRawEliceIntl } from '@elice/intl';
4
+ import './hooks/useRunboxControl.js';
5
+ import 'react-use';
6
+ import '@elice/runbox-client';
7
+ import 'react';
8
+ import 'worker-timers';
9
+ import '@tanstack/react-query';
10
+ import './contexts/MaterialRunboxApiContext.js';
11
+ import './contexts/MaterialRunboxCommandContext.js';
12
+ import './contexts/MaterialRunboxControlContext.js';
13
+ import './contexts/MaterialRunboxContext.js';
4
14
  import { useMaterialRunboxRunboxIdStarterGet } from './hooks/useMaterialRunboxRunboxIdStarterGet.js';
15
+ import './hooks/useRunboxNetworkStatus.js';
5
16
 
6
17
  var MaterialRunboxAlert = function MaterialRunboxAlert(_ref) {
7
18
  var runbox = _ref.runbox,
@@ -9,7 +9,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
9
9
  //
10
10
  var StyledRunboxBody = /*#__PURE__*/_styled("div", {
11
11
  target: "e9bwldp0"
12
- })("production" === "production" ? {
12
+ })(process.env.NODE_ENV === "production" ? {
13
13
  name: "1rwp6i9",
14
14
  styles: "position:relative;flex:1;width:100%"
15
15
  } : {
@@ -8,19 +8,26 @@ import { RunboxStarterGetResponseStatusEnum } from '@elice/openapi-client-materi
8
8
  import { EliceRunboxProvider } from '@elice/runbox-client';
9
9
  import { Refresh } from '@mui/icons-material';
10
10
  import { useQuery } from '@tanstack/react-query';
11
- import MaterialAdminRunboxConfirmDialog from './MaterialAdminRunboxConfirmDialog.js';
12
- import MaterialRunboxAlert from './MaterialRunboxAlert.js';
13
- import MaterialRunboxBody from './MaterialRunboxBody.js';
14
- import MaterialRunboxCreditAlert from './MaterialRunboxCreditAlert.js';
15
- import MaterialRunboxHeader from './MaterialRunboxHeader.js';
16
- import { runboxLightTheme } from './theme.js';
17
- import { useMaterialRunboxContext } from './contexts/MaterialRunboxContext.js';
18
11
  import { useMaterialRunboxApiContext } from './contexts/MaterialRunboxApiContext.js';
19
12
  import MaterialRunboxCommandContextProvider from './contexts/MaterialRunboxCommandContext.js';
20
13
  import MaterialRunboxControlContextProvider from './contexts/MaterialRunboxControlContext.js';
14
+ import { useMaterialRunboxContext } from './contexts/MaterialRunboxContext.js';
21
15
  import MaterialRunboxDiskUsageAlert from './disk/MaterialRunboxDiskUsageAlert.js';
22
16
  import MaterialRunboxDiskUsageDialog from './disk/MaterialRunboxDiskUsageDialog.js';
17
+ import 'tslib';
18
+ import { runboxLightTheme } from './theme.js';
19
+ import '@elice/eds-kit';
20
+ import '@fortawesome/pro-solid-svg-icons';
21
+ import './hooks/useRunboxControl.js';
22
+ import 'react-use';
23
+ import 'worker-timers';
23
24
  import { useMaterialRunboxRunboxIdStarterGet } from './hooks/useMaterialRunboxRunboxIdStarterGet.js';
25
+ import './hooks/useRunboxNetworkStatus.js';
26
+ import MaterialAdminRunboxConfirmDialog from './MaterialAdminRunboxConfirmDialog.js';
27
+ import MaterialRunboxAlert from './MaterialRunboxAlert.js';
28
+ import MaterialRunboxBody from './MaterialRunboxBody.js';
29
+ import MaterialRunboxCreditAlert from './MaterialRunboxCreditAlert.js';
30
+ import MaterialRunboxHeader from './MaterialRunboxHeader.js';
24
31
 
25
32
  var _templateObject;
26
33
  //
@@ -64,7 +71,6 @@ var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
64
71
  //
65
72
  var _useQuery = useQuery({
66
73
  enabled: Boolean(runboxId),
67
- // eslint-disable-next-line @tanstack/query/exhaustive-deps
68
74
  queryKey: ['eliceMaterialRunboxRunboxApi.runboxRunboxIdGet', 'eliceMaterialRunboxRuntimeTemplateApi.runtimeTemplateRuntimeTemplateIdGet', runboxId, courseId, studentUserId],
69
75
  queryFn: function queryFn(_ref2) {
70
76
  var signal = _ref2.signal;
@@ -28,26 +28,23 @@ var MaterialRunboxCreditAlert = function MaterialRunboxCreditAlert(_ref) {
28
28
  if (!isShown) {
29
29
  return null;
30
30
  }
31
- return (
32
- // The design keeps this alert light under the dark runbox header.
33
- jsx(ThemeProvider, {
34
- theme: runboxLightTheme,
35
- children: jsx(Alert, {
36
- variant: "banner",
37
- severity: "warning",
38
- sx: {
39
- width: '100%'
40
- },
41
- children: creditStatus === LxpCreditStatusEnum.Exhausted ? intl.formatMessage({
42
- id: 'runbox.alert.credit.exhausted'
43
- }, {
44
- minutes: EXHAUSTED_STOP_MINUTES
45
- }) : intl.formatMessage({
46
- id: 'runbox.alert.credit.low'
47
- })
31
+ return jsx(ThemeProvider, {
32
+ theme: runboxLightTheme,
33
+ children: jsx(Alert, {
34
+ variant: "banner",
35
+ severity: "warning",
36
+ sx: {
37
+ width: '100%'
38
+ },
39
+ children: creditStatus === LxpCreditStatusEnum.Exhausted ? intl.formatMessage({
40
+ id: 'runbox.alert.credit.exhausted'
41
+ }, {
42
+ minutes: EXHAUSTED_STOP_MINUTES
43
+ }) : intl.formatMessage({
44
+ id: 'runbox.alert.credit.low'
48
45
  })
49
46
  })
50
- );
47
+ });
51
48
  };
52
49
 
53
50
  export { MaterialRunboxCreditAlert as default };
@@ -11,14 +11,17 @@ import { useEliceRunboxRunning } from '@elice/runbox-client';
11
11
  import { enums } from '@elice/types';
12
12
  import { faEllipsisVertical } from '@fortawesome/pro-solid-svg-icons';
13
13
  import { useQuery } from '@tanstack/react-query';
14
+ import { useBreakpoint } from '../shared/hooks/useBreakpoint.js';
14
15
  import MaterialRunboxActionDisconnect from './actions/MaterialRunboxActionDisconnect.js';
15
16
  import MaterialRunboxActionGrade from './actions/MaterialRunboxActionGrade.js';
16
17
  import MaterialRunboxActionMenu from './actions/MaterialRunboxActionMenu.js';
17
- import { useMaterialRunboxContext } from './contexts/MaterialRunboxContext.js';
18
18
  import { useMaterialRunboxApiContext } from './contexts/MaterialRunboxApiContext.js';
19
- import MaterialRunboxTimer from './timer/MaterialRunboxTimer.js';
19
+ import './contexts/MaterialRunboxCommandContext.js';
20
+ import './contexts/MaterialRunboxControlContext.js';
21
+ import { useMaterialRunboxContext } from './contexts/MaterialRunboxContext.js';
20
22
  import MaterialRunboxStatusButton from './status/MaterialRunboxStatusButton.js';
21
- import { useBreakpoint } from '../shared/hooks/useBreakpoint.js';
23
+ import './status/MaterialRunboxStatusPopover.js';
24
+ import MaterialRunboxTimer from './timer/MaterialRunboxTimer.js';
22
25
 
23
26
  var StyledHeader = /*#__PURE__*/_styled("div", {
24
27
  target: "e110d0bp0"
@@ -83,7 +86,6 @@ var MaterialRunboxHeader = function MaterialRunboxHeader(_ref4) {
83
86
  };
84
87
  var materialRunboxApi = useMaterialRunboxApiContext();
85
88
  var _useQuery2 = useQuery({
86
- // eslint-disable-next-line @tanstack/query/exhaustive-deps
87
89
  queryKey: ['eliceMaterialRunboxRunboxApi.runboxRunboxIdSubmitInfoGet', {
88
90
  courseId: courseId,
89
91
  runtime: runtime
@@ -3,6 +3,9 @@ import { jsx } from 'react/jsx-runtime';
3
3
  import { FormControlLabel, Tooltip, Switch } from '@elice/eds-material';
4
4
  import { useRawEliceIntl } from '@elice/intl';
5
5
  import { useMaterialRunboxApiContext } from '../contexts/MaterialRunboxApiContext.js';
6
+ import '../contexts/MaterialRunboxCommandContext.js';
7
+ import '../contexts/MaterialRunboxControlContext.js';
8
+ import '../contexts/MaterialRunboxContext.js';
6
9
 
7
10
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
8
11
  //
@@ -10,7 +13,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
10
13
  //
11
14
  var StyledFormControlLabel = /*#__PURE__*/_styled(FormControlLabel, {
12
15
  target: "e1ket70c0"
13
- })("production" === "production" ? {
16
+ })(process.env.NODE_ENV === "production" ? {
14
17
  name: "1ep9nyp",
15
18
  styles: "margin:0!important"
16
19
  } : {
@@ -6,9 +6,12 @@ import { Tooltip, IconButton, Button } from '@elice/eds-material';
6
6
  import { useRawEliceIntl } from '@elice/intl';
7
7
  import { useEliceRunboxRunning } from '@elice/runbox-client';
8
8
  import { faLinkSlash } from '@fortawesome/pro-solid-svg-icons';
9
- import MaterialRunboxActionDisconnectDialog from './MaterialRunboxActionDisconnectDialog.js';
10
9
  import { useBreakpoint } from '../../shared/hooks/useBreakpoint.js';
10
+ import '../contexts/MaterialRunboxApiContext.js';
11
+ import '../contexts/MaterialRunboxCommandContext.js';
11
12
  import { useMaterialRunboxControlContext } from '../contexts/MaterialRunboxControlContext.js';
13
+ import '../contexts/MaterialRunboxContext.js';
14
+ import MaterialRunboxActionDisconnectDialog from './MaterialRunboxActionDisconnectDialog.js';
12
15
 
13
16
  //
14
17
  //
@@ -6,8 +6,11 @@ import { MenuItem, Button, ListItemIcon, ListItemText } from '@elice/eds-materia
6
6
  import { useRawEliceIntl } from '@elice/intl';
7
7
  import { useEliceRunboxRunning } from '@elice/runbox-client';
8
8
  import { faLinkSlash } from '@fortawesome/pro-solid-svg-icons';
9
- import MaterialRunboxActionDisconnectDialog from './MaterialRunboxActionDisconnectDialog.js';
9
+ import '../contexts/MaterialRunboxApiContext.js';
10
+ import '../contexts/MaterialRunboxCommandContext.js';
10
11
  import { useMaterialRunboxControlContext } from '../contexts/MaterialRunboxControlContext.js';
12
+ import '../contexts/MaterialRunboxContext.js';
13
+ import MaterialRunboxActionDisconnectDialog from './MaterialRunboxActionDisconnectDialog.js';
11
14
 
12
15
  //
13
16
  //
@@ -12,6 +12,8 @@ import { Terminal } from '@mui/icons-material';
12
12
  import { useQuery } from '@tanstack/react-query';
13
13
  import { useMaterialRunboxApiContext } from '../contexts/MaterialRunboxApiContext.js';
14
14
  import { useMaterialRunboxCommandContext } from '../contexts/MaterialRunboxCommandContext.js';
15
+ import '../contexts/MaterialRunboxControlContext.js';
16
+ import '../contexts/MaterialRunboxContext.js';
15
17
 
16
18
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
17
19
  //
@@ -40,7 +42,7 @@ var TRANSITION_STYLE_MAP = {
40
42
  //
41
43
  var StyledMainActionButton = /*#__PURE__*/_styled(Button, {
42
44
  target: "eae460y2"
43
- })("production" === "production" ? {
45
+ })(process.env.NODE_ENV === "production" ? {
44
46
  name: "tssn5p",
45
47
  styles: "min-width:4rem!important"
46
48
  } : {
@@ -84,7 +86,6 @@ var MaterialRunboxActionGrade = function MaterialRunboxActionGrade(_ref5) {
84
86
  var _useEliceRunboxRunnin = useEliceRunboxRunning(),
85
87
  status = _useEliceRunboxRunnin.status;
86
88
  var leaderboardSubmitInfoQuery = useQuery({
87
- // eslint-disable-next-line @tanstack/query/exhaustive-deps
88
89
  queryKey: ['eliceMaterialRunboxRunboxApi.runboxRunboxIdSubmitInfoGet', {
89
90
  courseId: courseId,
90
91
  runtime: runtime
@@ -6,13 +6,13 @@ import { Menu, Fade, Stack, Divider } from '@elice/eds-material';
6
6
  import { useEliceRunboxRunning } from '@elice/runbox-client';
7
7
  import { enums } from '@elice/types';
8
8
  import { useQuery } from '@tanstack/react-query';
9
+ import { useBreakpoint } from '../../shared/hooks/useBreakpoint.js';
9
10
  import MaterialRunboxActionAutoShutdown from './MaterialRunboxActionAutoShutdown.js';
10
11
  import MaterialRunboxActionDisconnectMenuItem from './MaterialRunboxActionDisconnectMenuItem.js';
11
12
  import MaterialRunboxActionReset from './MaterialRunboxActionReset.js';
12
13
  import MaterialRunboxActionRestart from './MaterialRunboxActionRestart.js';
13
14
  import MaterialRunboxActionShare from './MaterialRunboxActionShare.js';
14
15
  import MaterialRunboxActionSubmitLog from './MaterialRunboxActionSubmitLog.js';
15
- import { useBreakpoint } from '../../shared/hooks/useBreakpoint.js';
16
16
 
17
17
  //
18
18
  //
@@ -10,6 +10,8 @@ import { enums } from '@elice/types';
10
10
  import { faRefresh } from '@fortawesome/pro-solid-svg-icons';
11
11
  import { useMaterialRunboxApiContext } from '../contexts/MaterialRunboxApiContext.js';
12
12
  import { useMaterialRunboxCommandContext } from '../contexts/MaterialRunboxCommandContext.js';
13
+ import '../contexts/MaterialRunboxControlContext.js';
14
+ import '../contexts/MaterialRunboxContext.js';
13
15
 
14
16
  //
15
17
  //
@@ -6,7 +6,10 @@ import { MenuItem, ListItemIcon, ListItemText, Dialog, DialogTitle, DialogConten
6
6
  import { useRawEliceIntl } from '@elice/intl';
7
7
  import { enums } from '@elice/types';
8
8
  import { faRotateRight } from '@fortawesome/pro-solid-svg-icons';
9
+ import '../contexts/MaterialRunboxApiContext.js';
10
+ import '../contexts/MaterialRunboxCommandContext.js';
9
11
  import { useMaterialRunboxControlContext } from '../contexts/MaterialRunboxControlContext.js';
12
+ import '../contexts/MaterialRunboxContext.js';
10
13
 
11
14
  //
12
15
  //
@@ -8,6 +8,9 @@ import { useSnackbar } from '@elice/eds-x-snackbar';
8
8
  import { useRawEliceIntl } from '@elice/intl';
9
9
  import { useEliceRunboxRunning } from '@elice/runbox-client';
10
10
  import { faLinkSimple } from '@fortawesome/pro-solid-svg-icons';
11
+ import '../contexts/MaterialRunboxApiContext.js';
12
+ import '../contexts/MaterialRunboxCommandContext.js';
13
+ import '../contexts/MaterialRunboxControlContext.js';
11
14
  import { useMaterialRunboxContext } from '../contexts/MaterialRunboxContext.js';
12
15
 
13
16
  //
@@ -9,8 +9,11 @@ import { useRawEliceIntl } from '@elice/intl';
9
9
  import { useTheme } from '@emotion/react';
10
10
  import { faArrowDownToLine } from '@fortawesome/pro-regular-svg-icons';
11
11
  import dayjs from 'dayjs';
12
- import { useInfiniteRunboxRunboxIdGrade } from '../hooks/useInfiniteRunboxRunboxIdGrade.js';
12
+ import '../contexts/MaterialRunboxApiContext.js';
13
+ import '../contexts/MaterialRunboxCommandContext.js';
14
+ import '../contexts/MaterialRunboxControlContext.js';
13
15
  import { useMaterialRunboxContext } from '../contexts/MaterialRunboxContext.js';
16
+ import { useInfiniteRunboxRunboxIdGrade } from '../hooks/useInfiniteRunboxRunboxIdGrade.js';
14
17
 
15
18
  //
16
19
  //
@@ -3,8 +3,19 @@ import { FaIcon } from '@elice/eds-kit';
3
3
  import { Alert, Typography } from '@elice/eds-material';
4
4
  import { useRawEliceIntl } from '@elice/intl';
5
5
  import { faArrowsRotate } from '@fortawesome/pro-solid-svg-icons';
6
- import MaterialRunboxEnvResetButton from './MaterialRunboxEnvResetButton.js';
6
+ import '../hooks/useRunboxControl.js';
7
+ import 'react-use';
8
+ import '@elice/runbox-client';
9
+ import 'react';
10
+ import 'worker-timers';
11
+ import '@tanstack/react-query';
12
+ import '../contexts/MaterialRunboxApiContext.js';
13
+ import '../contexts/MaterialRunboxCommandContext.js';
14
+ import '../contexts/MaterialRunboxControlContext.js';
15
+ import '../contexts/MaterialRunboxContext.js';
16
+ import '../hooks/useRunboxNetworkStatus.js';
7
17
  import { useRunboxDiskUsage } from '../hooks/useRunboxDiskUsage.js';
18
+ import MaterialRunboxEnvResetButton from './MaterialRunboxEnvResetButton.js';
8
19
 
9
20
  //
10
21
  //
@@ -5,6 +5,16 @@ import { FaIcon } from '@elice/eds-kit';
5
5
  import { Dialog, DialogTitle, Stack, DialogContent, DialogContentText, DialogActions, Button } from '@elice/eds-material';
6
6
  import { useRawEliceIntl } from '@elice/intl';
7
7
  import { faCircleExclamation, faTriangleExclamation } from '@fortawesome/pro-solid-svg-icons';
8
+ import '../hooks/useRunboxControl.js';
9
+ import '@elice/runbox-client';
10
+ import 'react';
11
+ import 'worker-timers';
12
+ import '@tanstack/react-query';
13
+ import '../contexts/MaterialRunboxApiContext.js';
14
+ import '../contexts/MaterialRunboxCommandContext.js';
15
+ import '../contexts/MaterialRunboxControlContext.js';
16
+ import '../contexts/MaterialRunboxContext.js';
17
+ import '../hooks/useRunboxNetworkStatus.js';
8
18
  import { useRunboxDiskUsage } from '../hooks/useRunboxDiskUsage.js';
9
19
 
10
20
  //
@@ -5,10 +5,12 @@ import React from 'react';
5
5
  import { Button, ThemeProvider } from '@elice/eds-material';
6
6
  import { useSnackbar } from '@elice/eds-x-snackbar';
7
7
  import { useRawEliceIntl } from '@elice/intl';
8
- import { runboxDarkTheme } from '../theme.js';
9
- import MaterialRunboxEnvResetDialog from './MaterialRunboxEnvResetDialog.js';
10
8
  import { useMaterialRunboxApiContext } from '../contexts/MaterialRunboxApiContext.js';
9
+ import '../contexts/MaterialRunboxCommandContext.js';
11
10
  import { useMaterialRunboxControlContext } from '../contexts/MaterialRunboxControlContext.js';
11
+ import '../contexts/MaterialRunboxContext.js';
12
+ import { runboxDarkTheme } from '../theme.js';
13
+ import MaterialRunboxEnvResetDialog from './MaterialRunboxEnvResetDialog.js';
12
14
 
13
15
  //
14
16
  //
@@ -1,6 +1,9 @@
1
1
  import { useRef, useCallback } from 'react';
2
2
  import { useInfiniteQuery } from '@tanstack/react-query';
3
3
  import { useMaterialRunboxApiContext } from '../contexts/MaterialRunboxApiContext.js';
4
+ import '../contexts/MaterialRunboxCommandContext.js';
5
+ import '../contexts/MaterialRunboxControlContext.js';
6
+ import '../contexts/MaterialRunboxContext.js';
4
7
 
5
8
  //
6
9
  //
@@ -16,7 +19,6 @@ var useInfiniteRunboxRunboxIdGrade = function useInfiniteRunboxRunboxIdGrade(pro
16
19
  var materialRunboxApi = useMaterialRunboxApiContext();
17
20
  //
18
21
  var _useInfiniteQuery = useInfiniteQuery({
19
- // eslint-disable-next-line @tanstack/query/exhaustive-deps
20
22
  queryKey: ['runboxRunboxIdGrade', props],
21
23
  queryFn: function queryFn(_ref) {
22
24
  var _ref$pageParam = _ref.pageParam,
@@ -1,6 +1,9 @@
1
1
  import { useRef } from 'react';
2
2
  import { useQuery } from '@tanstack/react-query';
3
3
  import { useMaterialRunboxApiContext } from '../contexts/MaterialRunboxApiContext.js';
4
+ import '../contexts/MaterialRunboxCommandContext.js';
5
+ import '../contexts/MaterialRunboxControlContext.js';
6
+ import '../contexts/MaterialRunboxContext.js';
4
7
 
5
8
  var useMaterialRunboxRunboxIdStarterGet = function useMaterialRunboxRunboxIdStarterGet(_ref) {
6
9
  var runboxId = _ref.runboxId,
@@ -12,7 +15,6 @@ var useMaterialRunboxRunboxIdStarterGet = function useMaterialRunboxRunboxIdStar
12
15
  var _return = useRef({});
13
16
  //
14
17
  var _useQuery = useQuery({
15
- // eslint-disable-next-line @tanstack/query/exhaustive-deps
16
18
  queryKey: ['materialRunboxApi.runbox.runboxRunboxIdStarterGet', runboxId, courseId, studentUserId],
17
19
  queryFn: function queryFn() {
18
20
  return materialRunboxApi.runbox.runboxRunboxIdStarterGet({
@@ -4,13 +4,19 @@ import React from 'react';
4
4
  import { CommandType } from '@elice/openapi-client-material-runbox';
5
5
  import { EliceRunboxView } from '@elice/runbox-client';
6
6
  import RuntimeOverlayConflicted from './RuntimeOverlayConflicted.js';
7
- import RuntimeOverlayAssigned from './RuntimeOverlayAssigned.js';
8
- import RuntimeOverlayQueued from './RuntimeOverlayQueued.js';
9
- import RuntimeOverlayTerminated from './RuntimeOverlayTerminated.js';
7
+ import '../contexts/MaterialRunboxApiContext.js';
10
8
  import { useMaterialRunboxCommandContext } from '../contexts/MaterialRunboxCommandContext.js';
11
9
  import { useMaterialRunboxControlContext } from '../contexts/MaterialRunboxControlContext.js';
10
+ import '../contexts/MaterialRunboxContext.js';
12
11
  import { RunboxPreCheckResultType } from '../hooks/useRunboxControl.js';
12
+ import 'react-use';
13
+ import 'worker-timers';
14
+ import '@tanstack/react-query';
13
15
  import { useMaterialRunboxRunboxIdStarterGet } from '../hooks/useMaterialRunboxRunboxIdStarterGet.js';
16
+ import '../hooks/useRunboxNetworkStatus.js';
17
+ import RuntimeOverlayAssigned from './RuntimeOverlayAssigned.js';
18
+ import RuntimeOverlayQueued from './RuntimeOverlayQueued.js';
19
+ import RuntimeOverlayTerminated from './RuntimeOverlayTerminated.js';
14
20
 
15
21
  //
16
22
  //
@@ -1,6 +1,9 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { Dialog, DialogTitle, DialogContent, DialogActions, Button } from '@elice/eds-material';
3
+ import '../contexts/MaterialRunboxApiContext.js';
4
+ import '../contexts/MaterialRunboxCommandContext.js';
3
5
  import { useMaterialRunboxControlContext } from '../contexts/MaterialRunboxControlContext.js';
6
+ import '../contexts/MaterialRunboxContext.js';
4
7
 
5
8
  var RuntimeChangeMaterialDialog = function RuntimeChangeMaterialDialog(_ref) {
6
9
  var intl = _ref.intl,
@@ -7,12 +7,15 @@ import { ThemeProvider, Box, Stack, Typography, Button } from '@elice/eds-materi
7
7
  import { IntlComponentBuilder } from '@elice/intl';
8
8
  import { faLinkSimple, faArrowUpRightFromSquare } from '@fortawesome/pro-solid-svg-icons';
9
9
  import { useQuery } from '@tanstack/react-query';
10
+ import '../contexts/MaterialRunboxApiContext.js';
11
+ import '../contexts/MaterialRunboxCommandContext.js';
12
+ import '../contexts/MaterialRunboxControlContext.js';
13
+ import { useMaterialRunboxContext } from '../contexts/MaterialRunboxContext.js';
14
+ import messageEn from '../locales/en.json.js';
15
+ import messageKo from '../locales/ko.json.js';
10
16
  import { runboxLightTheme, runboxDarkTheme } from '../theme.js';
11
17
  import RuntimeChangeMaterialDialog from './RuntimeChangeMaterialDialog.js';
12
18
  import img from '../../../assets/terminated.png.js';
13
- import messageEn from '../locales/en.json.js';
14
- import messageKo from '../locales/ko.json.js';
15
- import { useMaterialRunboxContext } from '../contexts/MaterialRunboxContext.js';
16
19
 
17
20
  //
18
21
  //
@@ -6,11 +6,11 @@ import { FaIcon } from '@elice/eds-kit';
6
6
  import { ThemeProvider, Stack, Typography, Box, CircularProgress, colors, alpha, LinearProgress, Fade } from '@elice/eds-material';
7
7
  import { IntlComponentBuilder } from '@elice/intl';
8
8
  import { faCheck } from '@fortawesome/pro-solid-svg-icons';
9
+ import messageEn from '../locales/en.json.js';
10
+ import messageKo from '../locales/ko.json.js';
9
11
  import { runboxLightTheme } from '../theme.js';
10
12
  import { getRuntimeLoadingTips } from './runtime-loading-tips.js';
11
13
  import img from '../../../assets/runbox-loading.svg.js';
12
- import messageEn from '../locales/en.json.js';
13
- import messageKo from '../locales/ko.json.js';
14
14
 
15
15
  //
16
16
  //
@@ -5,14 +5,22 @@ import { IntlComponentBuilder, RawEliceIntlProvider } from '@elice/intl';
5
5
  import { LxpCreditStatusEnum } from '@elice/openapi-client-material-runbox';
6
6
  import { useEliceRunboxQuota } from '@elice/runbox-client';
7
7
  import { faArrowsRotate, faLinkSimple } from '@fortawesome/pro-solid-svg-icons';
8
- import { runboxLightTheme } from '../theme.js';
9
- import img from '../../../assets/credit-exhausted.svg.js';
10
- import img$1 from '../../../assets/terminated.png.js';
11
- import messageEn from '../locales/en.json.js';
12
- import messageKo from '../locales/ko.json.js';
8
+ import '../contexts/MaterialRunboxApiContext.js';
9
+ import '../contexts/MaterialRunboxCommandContext.js';
13
10
  import { useMaterialRunboxControlContext } from '../contexts/MaterialRunboxControlContext.js';
14
11
  import { useMaterialRunboxContext } from '../contexts/MaterialRunboxContext.js';
12
+ import '../hooks/useRunboxControl.js';
13
+ import 'react-use';
14
+ import 'react';
15
+ import 'worker-timers';
16
+ import '@tanstack/react-query';
17
+ import '../hooks/useRunboxNetworkStatus.js';
15
18
  import MaterialRunboxEnvResetButton from '../disk/MaterialRunboxEnvResetButton.js';
19
+ import messageEn from '../locales/en.json.js';
20
+ import messageKo from '../locales/ko.json.js';
21
+ import { runboxLightTheme } from '../theme.js';
22
+ import img from '../../../assets/credit-exhausted.svg.js';
23
+ import img$1 from '../../../assets/terminated.png.js';
16
24
 
17
25
  //
18
26
  //
@@ -122,29 +130,24 @@ var RuntimeOverlayTerminated = function RuntimeOverlayTerminated(_ref) {
122
130
  *
123
131
  */
124
132
  var renderOverlayContainer = function renderOverlayContainer(children) {
125
- return (
126
- // EliceRunboxView shadows the consumer intl context with the runbox-client
127
- // bundle, so re-provide this package's messages for descendants that call
128
- // useRawEliceIntl (e.g. MaterialRunboxEnvResetButton and its dialog).
129
- jsx(RawEliceIntlProvider, {
130
- value: intl,
131
- children: jsx(ThemeProvider, {
132
- theme: runboxLightTheme,
133
- children: jsx(Box, {
134
- sx: {
135
- display: 'flex',
136
- justifyContent: 'center',
137
- alignItems: 'center',
138
- width: '100%',
139
- height: '100%',
140
- backgroundColor: 'background.paper',
141
- color: 'text.primary'
142
- },
143
- children: children
144
- })
133
+ return jsx(RawEliceIntlProvider, {
134
+ value: intl,
135
+ children: jsx(ThemeProvider, {
136
+ theme: runboxLightTheme,
137
+ children: jsx(Box, {
138
+ sx: {
139
+ display: 'flex',
140
+ justifyContent: 'center',
141
+ alignItems: 'center',
142
+ width: '100%',
143
+ height: '100%',
144
+ backgroundColor: 'background.paper',
145
+ color: 'text.primary'
146
+ },
147
+ children: children
145
148
  })
146
149
  })
147
- );
150
+ });
148
151
  };
149
152
  /**
150
153
  *
@@ -6,9 +6,18 @@ import { buttonClasses, Button } from '@elice/eds-material';
6
6
  import { useRawEliceIntl } from '@elice/intl';
7
7
  import { useEliceRunboxRunning } from '@elice/runbox-client';
8
8
  import { faDiscDrive, faWifi, faAngleDown } from '@fortawesome/pro-solid-svg-icons';
9
- import MaterialRunboxStatusPopover from './MaterialRunboxStatusPopover.js';
10
9
  import { useBreakpoint } from '../../shared/hooks/useBreakpoint.js';
10
+ import '../hooks/useRunboxControl.js';
11
+ import 'react-use';
12
+ import 'worker-timers';
13
+ import '@tanstack/react-query';
14
+ import '../contexts/MaterialRunboxApiContext.js';
15
+ import '../contexts/MaterialRunboxCommandContext.js';
16
+ import '../contexts/MaterialRunboxControlContext.js';
17
+ import '../contexts/MaterialRunboxContext.js';
18
+ import '../hooks/useRunboxNetworkStatus.js';
11
19
  import { useRunboxDiskUsage } from '../hooks/useRunboxDiskUsage.js';
20
+ import MaterialRunboxStatusPopover from './MaterialRunboxStatusPopover.js';
12
21
 
13
22
  //
14
23
  //