@elice/material-runbox 1.261123.0 → 1.261125.0-contentframesandbox.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.
- package/cjs/_virtual/_rollupPluginBabelHelpers.js +6 -6
- package/cjs/components/material-runbox/MaterialRunboxBody.js +1 -1
- package/cjs/components/material-runbox/MaterialRunboxContent.js +1 -2
- package/cjs/components/material-runbox/MaterialRunboxCreditAlert.js +15 -18
- package/cjs/components/material-runbox/MaterialRunboxHeader.js +1 -2
- package/cjs/components/material-runbox/actions/MaterialRunboxActionAutoShutdown.js +1 -1
- package/cjs/components/material-runbox/actions/MaterialRunboxActionGrade.js +1 -2
- package/cjs/components/material-runbox/hooks/useInfiniteRunboxRunboxIdGrade.js +0 -1
- package/cjs/components/material-runbox/hooks/useMaterialRunboxRunboxIdStarterGet.js +0 -1
- package/cjs/components/material-runbox/runtime/Runtime.js +1 -1
- package/cjs/components/material-runbox/runtime/RuntimeOverlayTerminated.js +16 -21
- package/cjs/components/material-runbox/timer/MaterialRunboxTimer.js +1 -1
- package/es/_virtual/_rollupPluginBabelHelpers.js +6 -6
- package/es/components/material-runbox/MaterialRunboxBody.js +1 -1
- package/es/components/material-runbox/MaterialRunboxContent.js +1 -2
- package/es/components/material-runbox/MaterialRunboxCreditAlert.js +15 -18
- package/es/components/material-runbox/MaterialRunboxHeader.js +1 -2
- package/es/components/material-runbox/actions/MaterialRunboxActionAutoShutdown.js +1 -1
- package/es/components/material-runbox/actions/MaterialRunboxActionGrade.js +1 -2
- package/es/components/material-runbox/hooks/useInfiniteRunboxRunboxIdGrade.js +0 -1
- package/es/components/material-runbox/hooks/useMaterialRunboxRunboxIdStarterGet.js +0 -1
- package/es/components/material-runbox/runtime/Runtime.js +1 -1
- package/es/components/material-runbox/runtime/RuntimeOverlayTerminated.js +16 -21
- package/es/components/material-runbox/timer/MaterialRunboxTimer.js +1 -1
- package/package.json +20 -19
|
@@ -121,7 +121,7 @@ function _regenerator() {
|
|
|
121
121
|
return function (o, p, l) {
|
|
122
122
|
if (f > 1) throw TypeError("Generator is already running");
|
|
123
123
|
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
124
|
-
i || (c ?
|
|
124
|
+
i || (c ? (c > 1 && (G.n = c < 3 ? -1 : u), d(c, u)) : G.v = u);
|
|
125
125
|
try {
|
|
126
126
|
if (f = 2, i) {
|
|
127
127
|
if (c || (o = "next"), t = i[o]) {
|
|
@@ -201,15 +201,15 @@ function _taggedTemplateLiteral(e, t) {
|
|
|
201
201
|
function _toConsumableArray(r) {
|
|
202
202
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
203
203
|
}
|
|
204
|
-
function _toPrimitive(t,
|
|
204
|
+
function _toPrimitive(t, e) {
|
|
205
205
|
if ("object" != typeof t || !t) return t;
|
|
206
|
-
var
|
|
207
|
-
if (void 0 !==
|
|
208
|
-
var i =
|
|
206
|
+
var r;
|
|
207
|
+
if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
|
|
208
|
+
var i = r.call(t, e);
|
|
209
209
|
if ("object" != typeof i) return i;
|
|
210
210
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
211
211
|
}
|
|
212
|
-
return ("string" ===
|
|
212
|
+
return ("string" === e ? String : Number)(t);
|
|
213
213
|
}
|
|
214
214
|
function _toPropertyKey(t) {
|
|
215
215
|
var i = _toPrimitive(t, "string");
|
|
@@ -17,7 +17,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
17
17
|
//
|
|
18
18
|
var StyledRunboxBody = /*#__PURE__*/_styled__default.default("div", {
|
|
19
19
|
target: "e9bwldp0"
|
|
20
|
-
})(
|
|
20
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
21
21
|
name: "1rwp6i9",
|
|
22
22
|
styles: "position:relative;flex:1;width:100%"
|
|
23
23
|
} : {
|
|
@@ -20,11 +20,11 @@ var MaterialRunboxHeader = require('./MaterialRunboxHeader.js');
|
|
|
20
20
|
var theme = require('./theme.js');
|
|
21
21
|
var MaterialRunboxContext = require('./contexts/MaterialRunboxContext.js');
|
|
22
22
|
var MaterialRunboxApiContext = require('./contexts/MaterialRunboxApiContext.js');
|
|
23
|
+
var useMaterialRunboxRunboxIdStarterGet = require('./hooks/useMaterialRunboxRunboxIdStarterGet.js');
|
|
23
24
|
var MaterialRunboxCommandContext = require('./contexts/MaterialRunboxCommandContext.js');
|
|
24
25
|
var MaterialRunboxControlContext = require('./contexts/MaterialRunboxControlContext.js');
|
|
25
26
|
var MaterialRunboxDiskUsageAlert = require('./disk/MaterialRunboxDiskUsageAlert.js');
|
|
26
27
|
var MaterialRunboxDiskUsageDialog = require('./disk/MaterialRunboxDiskUsageDialog.js');
|
|
27
|
-
var useMaterialRunboxRunboxIdStarterGet = require('./hooks/useMaterialRunboxRunboxIdStarterGet.js');
|
|
28
28
|
|
|
29
29
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
30
30
|
|
|
@@ -72,7 +72,6 @@ var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
|
|
|
72
72
|
//
|
|
73
73
|
var _useQuery = reactQuery.useQuery({
|
|
74
74
|
enabled: Boolean(runboxId),
|
|
75
|
-
// eslint-disable-next-line @tanstack/query/exhaustive-deps
|
|
76
75
|
queryKey: ['eliceMaterialRunboxRunboxApi.runboxRunboxIdGet', 'eliceMaterialRunboxRuntimeTemplateApi.runtimeTemplateRuntimeTemplateIdGet', runboxId, courseId, studentUserId],
|
|
77
76
|
queryFn: function queryFn(_ref2) {
|
|
78
77
|
var signal = _ref2.signal;
|
|
@@ -32,26 +32,23 @@ var MaterialRunboxCreditAlert = function MaterialRunboxCreditAlert(_ref) {
|
|
|
32
32
|
if (!isShown) {
|
|
33
33
|
return null;
|
|
34
34
|
}
|
|
35
|
-
return (
|
|
36
|
-
|
|
37
|
-
jsxRuntime.jsx(edsMaterial.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}) : intl$1.formatMessage({
|
|
50
|
-
id: 'runbox.alert.credit.low'
|
|
51
|
-
})
|
|
35
|
+
return jsxRuntime.jsx(edsMaterial.ThemeProvider, {
|
|
36
|
+
theme: theme.runboxLightTheme,
|
|
37
|
+
children: jsxRuntime.jsx(edsMaterial.Alert, {
|
|
38
|
+
variant: "banner",
|
|
39
|
+
severity: "warning",
|
|
40
|
+
sx: {
|
|
41
|
+
width: '100%'
|
|
42
|
+
},
|
|
43
|
+
children: creditStatus === openapiClientMaterialRunbox.LxpCreditStatusEnum.Exhausted ? intl$1.formatMessage({
|
|
44
|
+
id: 'runbox.alert.credit.exhausted'
|
|
45
|
+
}, {
|
|
46
|
+
minutes: EXHAUSTED_STOP_MINUTES
|
|
47
|
+
}) : intl$1.formatMessage({
|
|
48
|
+
id: 'runbox.alert.credit.low'
|
|
52
49
|
})
|
|
53
50
|
})
|
|
54
|
-
);
|
|
51
|
+
});
|
|
55
52
|
};
|
|
56
53
|
|
|
57
54
|
exports.default = MaterialRunboxCreditAlert;
|
|
@@ -19,10 +19,10 @@ var MaterialRunboxActionDisconnect = require('./actions/MaterialRunboxActionDisc
|
|
|
19
19
|
var MaterialRunboxActionGrade = require('./actions/MaterialRunboxActionGrade.js');
|
|
20
20
|
var MaterialRunboxActionMenu = require('./actions/MaterialRunboxActionMenu.js');
|
|
21
21
|
var MaterialRunboxContext = require('./contexts/MaterialRunboxContext.js');
|
|
22
|
+
var useBreakpoint = require('../shared/hooks/useBreakpoint.js');
|
|
22
23
|
var MaterialRunboxApiContext = require('./contexts/MaterialRunboxApiContext.js');
|
|
23
24
|
var MaterialRunboxTimer = require('./timer/MaterialRunboxTimer.js');
|
|
24
25
|
var MaterialRunboxStatusButton = require('./status/MaterialRunboxStatusButton.js');
|
|
25
|
-
var useBreakpoint = require('../shared/hooks/useBreakpoint.js');
|
|
26
26
|
|
|
27
27
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
28
28
|
|
|
@@ -92,7 +92,6 @@ var MaterialRunboxHeader = function MaterialRunboxHeader(_ref4) {
|
|
|
92
92
|
};
|
|
93
93
|
var materialRunboxApi = MaterialRunboxApiContext.useMaterialRunboxApiContext();
|
|
94
94
|
var _useQuery2 = reactQuery.useQuery({
|
|
95
|
-
// eslint-disable-next-line @tanstack/query/exhaustive-deps
|
|
96
95
|
queryKey: ['eliceMaterialRunboxRunboxApi.runboxRunboxIdSubmitInfoGet', {
|
|
97
96
|
courseId: courseId,
|
|
98
97
|
runtime: runtime
|
|
@@ -18,7 +18,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
18
18
|
//
|
|
19
19
|
var StyledFormControlLabel = /*#__PURE__*/_styled__default.default(edsMaterial.FormControlLabel, {
|
|
20
20
|
target: "e1ket70c0"
|
|
21
|
-
})(
|
|
21
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
22
22
|
name: "1ep9nyp",
|
|
23
23
|
styles: "margin:0!important"
|
|
24
24
|
} : {
|
|
@@ -49,7 +49,7 @@ var TRANSITION_STYLE_MAP = {
|
|
|
49
49
|
//
|
|
50
50
|
var StyledMainActionButton = /*#__PURE__*/_styled__default.default(edsMaterial.Button, {
|
|
51
51
|
target: "eae460y2"
|
|
52
|
-
})(
|
|
52
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
53
53
|
name: "tssn5p",
|
|
54
54
|
styles: "min-width:4rem!important"
|
|
55
55
|
} : {
|
|
@@ -93,7 +93,6 @@ var MaterialRunboxActionGrade = function MaterialRunboxActionGrade(_ref5) {
|
|
|
93
93
|
var _useEliceRunboxRunnin = runboxClient.useEliceRunboxRunning(),
|
|
94
94
|
status = _useEliceRunboxRunnin.status;
|
|
95
95
|
var leaderboardSubmitInfoQuery = reactQuery.useQuery({
|
|
96
|
-
// eslint-disable-next-line @tanstack/query/exhaustive-deps
|
|
97
96
|
queryKey: ['eliceMaterialRunboxRunboxApi.runboxRunboxIdSubmitInfoGet', {
|
|
98
97
|
courseId: courseId,
|
|
99
98
|
runtime: runtime
|
|
@@ -18,7 +18,6 @@ var useInfiniteRunboxRunboxIdGrade = function useInfiniteRunboxRunboxIdGrade(pro
|
|
|
18
18
|
var materialRunboxApi = MaterialRunboxApiContext.useMaterialRunboxApiContext();
|
|
19
19
|
//
|
|
20
20
|
var _useInfiniteQuery = reactQuery.useInfiniteQuery({
|
|
21
|
-
// eslint-disable-next-line @tanstack/query/exhaustive-deps
|
|
22
21
|
queryKey: ['runboxRunboxIdGrade', props],
|
|
23
22
|
queryFn: function queryFn(_ref) {
|
|
24
23
|
var _ref$pageParam = _ref.pageParam,
|
|
@@ -14,7 +14,6 @@ var useMaterialRunboxRunboxIdStarterGet = function useMaterialRunboxRunboxIdStar
|
|
|
14
14
|
var _return = React.useRef({});
|
|
15
15
|
//
|
|
16
16
|
var _useQuery = reactQuery.useQuery({
|
|
17
|
-
// eslint-disable-next-line @tanstack/query/exhaustive-deps
|
|
18
17
|
queryKey: ['materialRunboxApi.runbox.runboxRunboxIdStarterGet', runboxId, courseId, studentUserId],
|
|
19
18
|
queryFn: function queryFn() {
|
|
20
19
|
return materialRunboxApi.runbox.runboxRunboxIdStarterGet({
|
|
@@ -13,8 +13,8 @@ var RuntimeOverlayQueued = require('./RuntimeOverlayQueued.js');
|
|
|
13
13
|
var RuntimeOverlayTerminated = require('./RuntimeOverlayTerminated.js');
|
|
14
14
|
var MaterialRunboxCommandContext = require('../contexts/MaterialRunboxCommandContext.js');
|
|
15
15
|
var MaterialRunboxControlContext = require('../contexts/MaterialRunboxControlContext.js');
|
|
16
|
-
var useRunboxControl = require('../hooks/useRunboxControl.js');
|
|
17
16
|
var useMaterialRunboxRunboxIdStarterGet = require('../hooks/useMaterialRunboxRunboxIdStarterGet.js');
|
|
17
|
+
var useRunboxControl = require('../hooks/useRunboxControl.js');
|
|
18
18
|
|
|
19
19
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
20
20
|
|
|
@@ -126,29 +126,24 @@ var RuntimeOverlayTerminated = function RuntimeOverlayTerminated(_ref) {
|
|
|
126
126
|
*
|
|
127
127
|
*/
|
|
128
128
|
var renderOverlayContainer = function renderOverlayContainer(children) {
|
|
129
|
-
return (
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
backgroundColor: 'background.paper',
|
|
145
|
-
color: 'text.primary'
|
|
146
|
-
},
|
|
147
|
-
children: children
|
|
148
|
-
})
|
|
129
|
+
return jsxRuntime.jsx(intl.RawEliceIntlProvider, {
|
|
130
|
+
value: intl$1,
|
|
131
|
+
children: jsxRuntime.jsx(edsMaterial.ThemeProvider, {
|
|
132
|
+
theme: theme.runboxLightTheme,
|
|
133
|
+
children: jsxRuntime.jsx(edsMaterial.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
|
|
149
144
|
})
|
|
150
145
|
})
|
|
151
|
-
);
|
|
146
|
+
});
|
|
152
147
|
};
|
|
153
148
|
/**
|
|
154
149
|
*
|
|
@@ -16,8 +16,8 @@ var useRunboxSessionEndWarning = require('../hooks/useRunboxSessionEndWarning.js
|
|
|
16
16
|
var MaterialRunboxQuotaAlmostEndDialog = require('./MaterialRunboxQuotaAlmostEndDialog.js');
|
|
17
17
|
var MaterialRunboxQuotaPerSessionAlmostEndDialog = require('./MaterialRunboxQuotaPerSessionAlmostEndDialog.js');
|
|
18
18
|
var MaterialRunboxTimerDetailPopover = require('./MaterialRunboxTimerDetailPopover.js');
|
|
19
|
-
var MaterialRunboxControlContext = require('../contexts/MaterialRunboxControlContext.js');
|
|
20
19
|
var useBreakpoint = require('../../shared/hooks/useBreakpoint.js');
|
|
20
|
+
var MaterialRunboxControlContext = require('../contexts/MaterialRunboxControlContext.js');
|
|
21
21
|
var time = require('../../../utils/time.js');
|
|
22
22
|
|
|
23
23
|
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 ?
|
|
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,
|
|
202
|
+
function _toPrimitive(t, e) {
|
|
203
203
|
if ("object" != typeof t || !t) return t;
|
|
204
|
-
var
|
|
205
|
-
if (void 0 !==
|
|
206
|
-
var i =
|
|
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" ===
|
|
210
|
+
return ("string" === e ? String : Number)(t);
|
|
211
211
|
}
|
|
212
212
|
function _toPropertyKey(t) {
|
|
213
213
|
var i = _toPrimitive(t, "string");
|
|
@@ -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
|
-
})(
|
|
12
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
13
13
|
name: "1rwp6i9",
|
|
14
14
|
styles: "position:relative;flex:1;width:100%"
|
|
15
15
|
} : {
|
|
@@ -16,11 +16,11 @@ import MaterialRunboxHeader from './MaterialRunboxHeader.js';
|
|
|
16
16
|
import { runboxLightTheme } from './theme.js';
|
|
17
17
|
import { useMaterialRunboxContext } from './contexts/MaterialRunboxContext.js';
|
|
18
18
|
import { useMaterialRunboxApiContext } from './contexts/MaterialRunboxApiContext.js';
|
|
19
|
+
import { useMaterialRunboxRunboxIdStarterGet } from './hooks/useMaterialRunboxRunboxIdStarterGet.js';
|
|
19
20
|
import MaterialRunboxCommandContextProvider from './contexts/MaterialRunboxCommandContext.js';
|
|
20
21
|
import MaterialRunboxControlContextProvider from './contexts/MaterialRunboxControlContext.js';
|
|
21
22
|
import MaterialRunboxDiskUsageAlert from './disk/MaterialRunboxDiskUsageAlert.js';
|
|
22
23
|
import MaterialRunboxDiskUsageDialog from './disk/MaterialRunboxDiskUsageDialog.js';
|
|
23
|
-
import { useMaterialRunboxRunboxIdStarterGet } from './hooks/useMaterialRunboxRunboxIdStarterGet.js';
|
|
24
24
|
|
|
25
25
|
var _templateObject;
|
|
26
26
|
//
|
|
@@ -64,7 +64,6 @@ var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
|
|
|
64
64
|
//
|
|
65
65
|
var _useQuery = useQuery({
|
|
66
66
|
enabled: Boolean(runboxId),
|
|
67
|
-
// eslint-disable-next-line @tanstack/query/exhaustive-deps
|
|
68
67
|
queryKey: ['eliceMaterialRunboxRunboxApi.runboxRunboxIdGet', 'eliceMaterialRunboxRuntimeTemplateApi.runtimeTemplateRuntimeTemplateIdGet', runboxId, courseId, studentUserId],
|
|
69
68
|
queryFn: function queryFn(_ref2) {
|
|
70
69
|
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
|
-
|
|
33
|
-
jsx(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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 };
|
|
@@ -15,10 +15,10 @@ import MaterialRunboxActionDisconnect from './actions/MaterialRunboxActionDiscon
|
|
|
15
15
|
import MaterialRunboxActionGrade from './actions/MaterialRunboxActionGrade.js';
|
|
16
16
|
import MaterialRunboxActionMenu from './actions/MaterialRunboxActionMenu.js';
|
|
17
17
|
import { useMaterialRunboxContext } from './contexts/MaterialRunboxContext.js';
|
|
18
|
+
import { useBreakpoint } from '../shared/hooks/useBreakpoint.js';
|
|
18
19
|
import { useMaterialRunboxApiContext } from './contexts/MaterialRunboxApiContext.js';
|
|
19
20
|
import MaterialRunboxTimer from './timer/MaterialRunboxTimer.js';
|
|
20
21
|
import MaterialRunboxStatusButton from './status/MaterialRunboxStatusButton.js';
|
|
21
|
-
import { useBreakpoint } from '../shared/hooks/useBreakpoint.js';
|
|
22
22
|
|
|
23
23
|
var StyledHeader = /*#__PURE__*/_styled("div", {
|
|
24
24
|
target: "e110d0bp0"
|
|
@@ -83,7 +83,6 @@ var MaterialRunboxHeader = function MaterialRunboxHeader(_ref4) {
|
|
|
83
83
|
};
|
|
84
84
|
var materialRunboxApi = useMaterialRunboxApiContext();
|
|
85
85
|
var _useQuery2 = useQuery({
|
|
86
|
-
// eslint-disable-next-line @tanstack/query/exhaustive-deps
|
|
87
86
|
queryKey: ['eliceMaterialRunboxRunboxApi.runboxRunboxIdSubmitInfoGet', {
|
|
88
87
|
courseId: courseId,
|
|
89
88
|
runtime: runtime
|
|
@@ -10,7 +10,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
10
10
|
//
|
|
11
11
|
var StyledFormControlLabel = /*#__PURE__*/_styled(FormControlLabel, {
|
|
12
12
|
target: "e1ket70c0"
|
|
13
|
-
})(
|
|
13
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
14
14
|
name: "1ep9nyp",
|
|
15
15
|
styles: "margin:0!important"
|
|
16
16
|
} : {
|
|
@@ -40,7 +40,7 @@ var TRANSITION_STYLE_MAP = {
|
|
|
40
40
|
//
|
|
41
41
|
var StyledMainActionButton = /*#__PURE__*/_styled(Button, {
|
|
42
42
|
target: "eae460y2"
|
|
43
|
-
})(
|
|
43
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
44
44
|
name: "tssn5p",
|
|
45
45
|
styles: "min-width:4rem!important"
|
|
46
46
|
} : {
|
|
@@ -84,7 +84,6 @@ var MaterialRunboxActionGrade = function MaterialRunboxActionGrade(_ref5) {
|
|
|
84
84
|
var _useEliceRunboxRunnin = useEliceRunboxRunning(),
|
|
85
85
|
status = _useEliceRunboxRunnin.status;
|
|
86
86
|
var leaderboardSubmitInfoQuery = useQuery({
|
|
87
|
-
// eslint-disable-next-line @tanstack/query/exhaustive-deps
|
|
88
87
|
queryKey: ['eliceMaterialRunboxRunboxApi.runboxRunboxIdSubmitInfoGet', {
|
|
89
88
|
courseId: courseId,
|
|
90
89
|
runtime: runtime
|
|
@@ -16,7 +16,6 @@ var useInfiniteRunboxRunboxIdGrade = function useInfiniteRunboxRunboxIdGrade(pro
|
|
|
16
16
|
var materialRunboxApi = useMaterialRunboxApiContext();
|
|
17
17
|
//
|
|
18
18
|
var _useInfiniteQuery = useInfiniteQuery({
|
|
19
|
-
// eslint-disable-next-line @tanstack/query/exhaustive-deps
|
|
20
19
|
queryKey: ['runboxRunboxIdGrade', props],
|
|
21
20
|
queryFn: function queryFn(_ref) {
|
|
22
21
|
var _ref$pageParam = _ref.pageParam,
|
|
@@ -12,7 +12,6 @@ var useMaterialRunboxRunboxIdStarterGet = function useMaterialRunboxRunboxIdStar
|
|
|
12
12
|
var _return = useRef({});
|
|
13
13
|
//
|
|
14
14
|
var _useQuery = useQuery({
|
|
15
|
-
// eslint-disable-next-line @tanstack/query/exhaustive-deps
|
|
16
15
|
queryKey: ['materialRunboxApi.runbox.runboxRunboxIdStarterGet', runboxId, courseId, studentUserId],
|
|
17
16
|
queryFn: function queryFn() {
|
|
18
17
|
return materialRunboxApi.runbox.runboxRunboxIdStarterGet({
|
|
@@ -9,8 +9,8 @@ import RuntimeOverlayQueued from './RuntimeOverlayQueued.js';
|
|
|
9
9
|
import RuntimeOverlayTerminated from './RuntimeOverlayTerminated.js';
|
|
10
10
|
import { useMaterialRunboxCommandContext } from '../contexts/MaterialRunboxCommandContext.js';
|
|
11
11
|
import { useMaterialRunboxControlContext } from '../contexts/MaterialRunboxControlContext.js';
|
|
12
|
-
import { RunboxPreCheckResultType } from '../hooks/useRunboxControl.js';
|
|
13
12
|
import { useMaterialRunboxRunboxIdStarterGet } from '../hooks/useMaterialRunboxRunboxIdStarterGet.js';
|
|
13
|
+
import { RunboxPreCheckResultType } from '../hooks/useRunboxControl.js';
|
|
14
14
|
|
|
15
15
|
//
|
|
16
16
|
//
|
|
@@ -122,29 +122,24 @@ var RuntimeOverlayTerminated = function RuntimeOverlayTerminated(_ref) {
|
|
|
122
122
|
*
|
|
123
123
|
*/
|
|
124
124
|
var renderOverlayContainer = function renderOverlayContainer(children) {
|
|
125
|
-
return (
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
backgroundColor: 'background.paper',
|
|
141
|
-
color: 'text.primary'
|
|
142
|
-
},
|
|
143
|
-
children: children
|
|
144
|
-
})
|
|
125
|
+
return jsx(RawEliceIntlProvider, {
|
|
126
|
+
value: intl,
|
|
127
|
+
children: jsx(ThemeProvider, {
|
|
128
|
+
theme: runboxLightTheme,
|
|
129
|
+
children: jsx(Box, {
|
|
130
|
+
sx: {
|
|
131
|
+
display: 'flex',
|
|
132
|
+
justifyContent: 'center',
|
|
133
|
+
alignItems: 'center',
|
|
134
|
+
width: '100%',
|
|
135
|
+
height: '100%',
|
|
136
|
+
backgroundColor: 'background.paper',
|
|
137
|
+
color: 'text.primary'
|
|
138
|
+
},
|
|
139
|
+
children: children
|
|
145
140
|
})
|
|
146
141
|
})
|
|
147
|
-
);
|
|
142
|
+
});
|
|
148
143
|
};
|
|
149
144
|
/**
|
|
150
145
|
*
|
|
@@ -12,8 +12,8 @@ import { useRunboxSessionEndWarning, QUOTA_ALMOST_END_MINUTES } from '../hooks/u
|
|
|
12
12
|
import MaterialRunboxQuotaAlmostEndDialog from './MaterialRunboxQuotaAlmostEndDialog.js';
|
|
13
13
|
import MaterialRunboxQuotaPerSessionAlmostEndDialog from './MaterialRunboxQuotaPerSessionAlmostEndDialog.js';
|
|
14
14
|
import MaterialRunboxTimerDetailPopover, { QUOTA_POPOVER_NOT_SHOW_ON_START } from './MaterialRunboxTimerDetailPopover.js';
|
|
15
|
-
import { useMaterialRunboxControlContext } from '../contexts/MaterialRunboxControlContext.js';
|
|
16
15
|
import { useBreakpoint } from '../../shared/hooks/useBreakpoint.js';
|
|
16
|
+
import { useMaterialRunboxControlContext } from '../contexts/MaterialRunboxControlContext.js';
|
|
17
17
|
import { getTimeParts } from '../../../utils/time.js';
|
|
18
18
|
|
|
19
19
|
//
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elice/material-runbox",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.261125.0-contentframesandbox.0",
|
|
4
4
|
"description": "User view and editing components of Elice material runbox",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"react": "^18.0.0 || ^19.0.0",
|
|
36
36
|
"react-transition-group": "^4.4.0",
|
|
37
37
|
"react-use": "^17.0.0",
|
|
38
|
-
"@elice/material-shared-types": "1.
|
|
39
|
-
"@elice/material-shared-utils": "1.
|
|
38
|
+
"@elice/material-shared-types": "1.261125.0-contentframesandbox.0",
|
|
39
|
+
"@elice/material-shared-utils": "1.261125.0-contentframesandbox.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"classnames": "^2.2.0",
|
|
@@ -53,35 +53,36 @@
|
|
|
53
53
|
"@elice/eds-x-snackbar": "1.261030.1",
|
|
54
54
|
"@elice/intl": "0.260526.0",
|
|
55
55
|
"@elice/openapi-client-material-runbox": "1.261112.0",
|
|
56
|
-
"@elice/rollup-config": "
|
|
56
|
+
"@elice/rollup-config": "5.261117.1",
|
|
57
57
|
"@elice/runbox-client": "1.261005.0",
|
|
58
58
|
"@elice/types": "1.261112.1",
|
|
59
|
-
"@emotion/react": "
|
|
60
|
-
"@emotion/styled": "
|
|
61
|
-
"@fortawesome/pro-regular-svg-icons": "
|
|
62
|
-
"@fortawesome/pro-solid-svg-icons": "
|
|
63
|
-
"@mui/icons-material": "9.
|
|
59
|
+
"@emotion/react": "11.14.0",
|
|
60
|
+
"@emotion/styled": "11.14.1",
|
|
61
|
+
"@fortawesome/pro-regular-svg-icons": "6.5.2",
|
|
62
|
+
"@fortawesome/pro-solid-svg-icons": "6.5.2",
|
|
63
|
+
"@mui/icons-material": "9.5.0",
|
|
64
64
|
"@tanstack/react-query": "^4.29.3",
|
|
65
65
|
"@types/classnames": "^2.3.1",
|
|
66
|
-
"@types/
|
|
67
|
-
"@types/react
|
|
66
|
+
"@types/node": "24.13.3",
|
|
67
|
+
"@types/react": "18.3.31",
|
|
68
|
+
"@types/react-transition-group": "4.4.12",
|
|
68
69
|
"cross-env": "^7.0.3",
|
|
69
70
|
"del-cli": "^3.0.1",
|
|
70
|
-
"eslint": "
|
|
71
|
+
"eslint": "9.39.5",
|
|
71
72
|
"npm-run-all": "^4.1.5",
|
|
72
|
-
"react": "
|
|
73
|
-
"react-use": "
|
|
74
|
-
"rollup": "
|
|
75
|
-
"typescript": "
|
|
76
|
-
"@elice/material-shared-types": "1.
|
|
77
|
-
"@elice/material-shared-utils": "1.
|
|
73
|
+
"react": "18.3.1",
|
|
74
|
+
"react-use": "17.6.1",
|
|
75
|
+
"rollup": "4.62.4",
|
|
76
|
+
"typescript": "6.0.3",
|
|
77
|
+
"@elice/material-shared-types": "1.261125.0-contentframesandbox.0",
|
|
78
|
+
"@elice/material-shared-utils": "1.261125.0-contentframesandbox.0"
|
|
78
79
|
},
|
|
79
80
|
"scripts": {
|
|
80
81
|
"start": "run-s watch",
|
|
81
82
|
"prebuild": "run-s clean",
|
|
82
83
|
"build": "cross-env NODE_ENV=production rollup -c ../../rollup.config.ts --configPlugin typescript -f es -f cjs",
|
|
83
84
|
"watch": "rollup -c ../../rollup.config.ts --configPlugin typescript -f es -f cjs -w",
|
|
84
|
-
"lint": "eslint
|
|
85
|
+
"lint": "eslint ./src --max-warnings=0",
|
|
85
86
|
"clean": "del-cli \"es/*\" \"cjs/*\" \"dist/*\""
|
|
86
87
|
}
|
|
87
88
|
}
|