@elice/material-runbox 1.231227.0 → 1.231228.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 (60) hide show
  1. package/cjs/assets/queue.gif.js +1 -1
  2. package/cjs/assets/runbox_logo.png.js +1 -1
  3. package/cjs/assets/terminated.png.js +1 -1
  4. package/cjs/components/material-runbox/MaterialRunbox.js +17 -19
  5. package/cjs/components/material-runbox/MaterialRunboxBody.js +15 -12
  6. package/cjs/components/material-runbox/MaterialRunboxContent.js +94 -101
  7. package/cjs/components/material-runbox/MaterialRunboxFooter.js +17 -22
  8. package/cjs/components/material-runbox/MaterialRunboxHeader.d.ts +3 -0
  9. package/cjs/components/material-runbox/MaterialRunboxHeader.js +77 -81
  10. package/cjs/components/material-runbox/actions/MaterialRunboxActionAutoShutdown.js +26 -22
  11. package/cjs/components/material-runbox/actions/MaterialRunboxActionGrade.js +140 -180
  12. package/cjs/components/material-runbox/actions/MaterialRunboxActionMenu.d.ts +8 -0
  13. package/cjs/components/material-runbox/actions/MaterialRunboxActionMenu.js +65 -0
  14. package/cjs/components/material-runbox/actions/MaterialRunboxActionReset.d.ts +3 -1
  15. package/cjs/components/material-runbox/actions/MaterialRunboxActionReset.js +73 -110
  16. package/cjs/components/material-runbox/actions/MaterialRunboxActionRestart.d.ts +3 -1
  17. package/cjs/components/material-runbox/actions/MaterialRunboxActionRestart.js +54 -70
  18. package/cjs/components/material-runbox/actions/MaterialRunboxActionShare.d.ts +4 -1
  19. package/cjs/components/material-runbox/actions/MaterialRunboxActionShare.js +67 -41
  20. package/cjs/components/material-runbox/contexts/MaterialRunboxApiContext.js +16 -27
  21. package/cjs/components/material-runbox/contexts/MaterialRunboxCommandContext.js +38 -53
  22. package/cjs/components/material-runbox/contexts/MaterialRunboxContext.js +9 -11
  23. package/cjs/components/material-runbox/hooks/useRunboxControl.js +39 -65
  24. package/cjs/components/material-runbox/locales/en.json.js +2 -2
  25. package/cjs/components/material-runbox/locales/index.js +2 -4
  26. package/cjs/components/material-runbox/locales/ko.json.js +2 -2
  27. package/cjs/components/material-runbox/runtime/Runtime.js +18 -26
  28. package/cjs/components/material-runbox/runtime/RuntimeOverlayAssigned.js +10 -17
  29. package/cjs/components/material-runbox/runtime/RuntimeOverlayQueued.js +16 -18
  30. package/cjs/components/material-runbox/runtime/RuntimeOverlayTerminated.js +27 -33
  31. package/cjs/index.js +1 -3
  32. package/es/components/material-runbox/MaterialRunbox.js +11 -9
  33. package/es/components/material-runbox/MaterialRunboxBody.js +13 -5
  34. package/es/components/material-runbox/MaterialRunboxContent.js +80 -82
  35. package/es/components/material-runbox/MaterialRunboxFooter.js +11 -11
  36. package/es/components/material-runbox/MaterialRunboxHeader.d.ts +3 -0
  37. package/es/components/material-runbox/MaterialRunboxHeader.js +72 -71
  38. package/es/components/material-runbox/actions/MaterialRunboxActionAutoShutdown.js +22 -13
  39. package/es/components/material-runbox/actions/MaterialRunboxActionGrade.js +120 -155
  40. package/es/components/material-runbox/actions/MaterialRunboxActionMenu.d.ts +8 -0
  41. package/es/components/material-runbox/actions/MaterialRunboxActionMenu.js +61 -0
  42. package/es/components/material-runbox/actions/MaterialRunboxActionReset.d.ts +3 -1
  43. package/es/components/material-runbox/actions/MaterialRunboxActionReset.js +65 -98
  44. package/es/components/material-runbox/actions/MaterialRunboxActionRestart.d.ts +3 -1
  45. package/es/components/material-runbox/actions/MaterialRunboxActionRestart.js +47 -59
  46. package/es/components/material-runbox/actions/MaterialRunboxActionShare.d.ts +4 -1
  47. package/es/components/material-runbox/actions/MaterialRunboxActionShare.js +68 -38
  48. package/es/components/material-runbox/contexts/MaterialRunboxApiContext.js +13 -20
  49. package/es/components/material-runbox/contexts/MaterialRunboxCommandContext.js +35 -46
  50. package/es/components/material-runbox/contexts/MaterialRunboxContext.js +6 -4
  51. package/es/components/material-runbox/hooks/useRunboxControl.js +39 -63
  52. package/es/components/material-runbox/locales/en.json.js +1 -1
  53. package/es/components/material-runbox/locales/ko.json.js +1 -1
  54. package/es/components/material-runbox/runtime/Runtime.js +14 -18
  55. package/es/components/material-runbox/runtime/RuntimeOverlayAssigned.js +3 -6
  56. package/es/components/material-runbox/runtime/RuntimeOverlayQueued.js +6 -4
  57. package/es/components/material-runbox/runtime/RuntimeOverlayTerminated.js +12 -14
  58. package/package.json +13 -9
  59. package/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -399
  60. package/es/_virtual/_rollupPluginBabelHelpers.js +0 -387
@@ -2,7 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
6
5
  var React = require('react');
7
6
  var reactIntl = require('react-intl');
8
7
  var iconsMaterial = require('@mui/icons-material');
@@ -13,36 +12,31 @@ require('../contexts/MaterialRunboxCommandContext.js');
13
12
  var MaterialRunboxContext = require('../contexts/MaterialRunboxContext.js');
14
13
  var terminated = require('../../../assets/terminated.png.js');
15
14
 
16
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
17
-
18
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
19
-
20
15
  //
21
16
  //
22
17
  //
23
- var RuntimeOverlayTerminated = function RuntimeOverlayTerminated(_ref) {
24
- var reason = _ref.reason,
25
- startRuntime = _ref.startRuntime;
26
- var intl = reactIntl.useIntl();
27
- var _useMaterialRunboxCon = MaterialRunboxContext.useMaterialRunboxContext(),
28
- showMessenger = _useMaterialRunboxCon.showMessenger;
29
- var _React$useState = React__default["default"].useState(false),
30
- _React$useState2 = _rollupPluginBabelHelpers.slicedToArray(_React$useState, 2),
31
- isRestarting = _React$useState2[0],
32
- setRestarting = _React$useState2[1];
18
+ const RuntimeOverlayTerminated = ({
19
+ reason,
20
+ startRuntime
21
+ }) => {
22
+ const intl = reactIntl.useIntl();
23
+ const {
24
+ showMessenger
25
+ } = MaterialRunboxContext.useMaterialRunboxContext();
26
+ const [isRestarting, setRestarting] = React.useState(false);
33
27
  /**
34
28
  * Restart the project.
35
29
  */
36
- var handleRestart = function handleRestart() {
30
+ const handleRestart = () => {
37
31
  setRestarting(true);
38
- startRuntime().finally(function () {
32
+ startRuntime().finally(() => {
39
33
  setRestarting(false);
40
34
  });
41
35
  };
42
36
  /**
43
37
  * Terminated description and action.
44
38
  */
45
- var runtimeTerminatedAction = React__default["default"].useMemo(function () {
39
+ const runtimeTerminatedAction = React.useMemo(() => {
46
40
  switch (reason) {
47
41
  // general shutdown
48
42
  case 'stopped_by_user':
@@ -90,7 +84,7 @@ var RuntimeOverlayTerminated = function RuntimeOverlayTerminated(_ref) {
90
84
  //
91
85
  //
92
86
  //
93
- return React__default["default"].createElement(material.Box, {
87
+ return React.createElement(material.Box, {
94
88
  sx: {
95
89
  display: 'flex',
96
90
  justifyContent: 'center',
@@ -98,49 +92,49 @@ var RuntimeOverlayTerminated = function RuntimeOverlayTerminated(_ref) {
98
92
  width: '100%',
99
93
  height: '100%'
100
94
  }
101
- }, React__default["default"].createElement(material.Stack, {
95
+ }, React.createElement(material.Stack, {
102
96
  gap: "1.5rem",
103
97
  alignItems: "center"
104
- }, React__default["default"].createElement(material.Box, {
98
+ }, React.createElement(material.Box, {
105
99
  component: "img",
106
- src: terminated["default"],
100
+ src: terminated.default,
107
101
  alt: "terminated",
108
102
  sx: {
109
103
  maxWidth: '10rem',
110
104
  height: 'auto'
111
105
  }
112
- }), React__default["default"].createElement(material.Stack, {
106
+ }), React.createElement(material.Stack, {
113
107
  gap: "0.5rem"
114
- }, React__default["default"].createElement(material.Typography, {
108
+ }, React.createElement(material.Typography, {
115
109
  variant: "h6",
116
110
  textAlign: "center"
117
- }, React__default["default"].createElement(reactIntl.FormattedMessage, {
111
+ }, React.createElement(reactIntl.FormattedMessage, {
118
112
  id: "runbox.runtime.overlay.terminated.title"
119
- })), React__default["default"].createElement(material.Typography, {
113
+ })), React.createElement(material.Typography, {
120
114
  variant: "body2",
121
115
  textAlign: "center",
122
116
  whiteSpace: "pre-line"
123
117
  }, runtimeTerminatedAction.unexpected ? runtimeTerminatedAction.description.concat('\n', intl.formatMessage({
124
118
  id: 'runbox.runtime.overlay.terminated.description.unexpected'
125
- })) : runtimeTerminatedAction.description)), React__default["default"].createElement(material.Stack, {
119
+ })) : runtimeTerminatedAction.description)), React.createElement(material.Stack, {
126
120
  gap: "0.5rem",
127
121
  sx: {
128
122
  width: '100%',
129
123
  maxWidth: '17rem'
130
124
  }
131
- }, React__default["default"].createElement(lab.LoadingButton, {
125
+ }, React.createElement(lab.LoadingButton, {
132
126
  variant: "contained",
133
127
  loading: isRestarting,
134
- startIcon: React__default["default"].createElement(iconsMaterial.PlayArrow, null),
128
+ startIcon: React.createElement(iconsMaterial.PlayArrow, null),
135
129
  onClick: handleRestart
136
- }, React__default["default"].createElement(reactIntl.FormattedMessage, {
130
+ }, React.createElement(reactIntl.FormattedMessage, {
137
131
  id: "runbox.runtime.overlay.terminated.restart"
138
- })), runtimeTerminatedAction.unexpected && typeof showMessenger === 'function' ? React__default["default"].createElement(material.Button, {
132
+ })), runtimeTerminatedAction.unexpected && typeof showMessenger === 'function' ? React.createElement(material.Button, {
139
133
  variant: "text",
140
134
  onClick: showMessenger
141
- }, React__default["default"].createElement(reactIntl.FormattedMessage, {
135
+ }, React.createElement(reactIntl.FormattedMessage, {
142
136
  id: "runbox.common.support"
143
137
  })) : null)));
144
138
  };
145
139
 
146
- exports["default"] = RuntimeOverlayTerminated;
140
+ exports.default = RuntimeOverlayTerminated;
package/cjs/index.js CHANGED
@@ -1,9 +1,7 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var MaterialRunbox = require('./components/material-runbox/MaterialRunbox.js');
6
4
 
7
5
 
8
6
 
9
- exports.MaterialRunbox = MaterialRunbox["default"];
7
+ exports.MaterialRunbox = MaterialRunbox.default;
@@ -11,15 +11,17 @@ import en from './locales/en.json.js';
11
11
  //
12
12
  //
13
13
  //
14
- var MaterialRunbox = function MaterialRunbox(_a) {
15
- var _a$enableAutoShutdown = _a.enableAutoShutdownToggle,
16
- enableAutoShutdownToggle = _a$enableAutoShutdown === void 0 ? false : _a$enableAutoShutdown,
17
- _a$enableUrlShare = _a.enableUrlShare,
18
- enableUrlShare = _a$enableUrlShare === void 0 ? false : _a$enableUrlShare,
19
- _a$locale = _a.locale,
20
- locale = _a$locale === void 0 ? 'ko' : _a$locale,
21
- showMessenger = _a.showMessenger,
22
- eliceMaterialRunboxApiConfiguration = _a.eliceMaterialRunboxApiConfiguration,
14
+ const MaterialRunbox = _a => {
15
+ //
16
+ //
17
+ //
18
+ var {
19
+ enableAutoShutdownToggle = false,
20
+ enableUrlShare = false,
21
+ locale = 'ko',
22
+ showMessenger,
23
+ eliceMaterialRunboxApiConfiguration
24
+ } = _a,
23
25
  contentProps = __rest(_a, ["enableAutoShutdownToggle", "enableUrlShare", "locale", "showMessenger", "eliceMaterialRunboxApiConfiguration"]);
24
26
  return React.createElement(MaterialRunboxContextProvider, {
25
27
  enableAutoShutdownToggle: enableAutoShutdownToggle,
@@ -1,17 +1,25 @@
1
- import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../_virtual/_rollupPluginBabelHelpers.js';
1
+ import _styled from '@emotion/styled/base';
2
2
  import React from 'react';
3
- import styled from '@emotion/styled';
4
3
  import Runtime from './runtime/Runtime.js';
5
4
 
6
- var _templateObject;
5
+ 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)."; }
7
6
  //
8
7
  //
9
8
  //
10
- var StyledRunboxBody = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex: 1;\n width: 100%;\n"])));
9
+ const StyledRunboxBody = /*#__PURE__*/_styled("div", {
10
+ target: "e9bwldp0"
11
+ })("production" === "production" ? {
12
+ name: "277wu0",
13
+ styles: "flex:1;width:100%"
14
+ } : {
15
+ name: "277wu0",
16
+ styles: "flex:1;width:100%",
17
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
18
+ });
11
19
  //
12
20
  //
13
21
  //
14
- var MaterialRunboxBody = function MaterialRunboxBody(props) {
22
+ const MaterialRunboxBody = props => {
15
23
  return React.createElement(StyledRunboxBody, null, React.createElement(Runtime, Object.assign({}, props)));
16
24
  };
17
25
 
@@ -1,9 +1,8 @@
1
- import { taggedTemplateLiteral as _taggedTemplateLiteral, slicedToArray as _slicedToArray } from '../../_virtual/_rollupPluginBabelHelpers.js';
1
+ import _styled from '@emotion/styled/base';
2
2
  import React from 'react';
3
3
  import { FormattedMessage } from 'react-intl';
4
4
  import { Spinner } from '@elice/blocks';
5
5
  import { EliceRunboxProvider } from '@elice/runbox-client';
6
- import styled from '@emotion/styled';
7
6
  import { Refresh } from '@mui/icons-material';
8
7
  import { Stack, Typography, Button } from '@mui/material';
9
8
  import { useQuery } from '@tanstack/react-query';
@@ -14,77 +13,81 @@ import MaterialRunboxBody from './MaterialRunboxBody.js';
14
13
  import MaterialRunboxFooter from './MaterialRunboxFooter.js';
15
14
  import MaterialRunboxHeader from './MaterialRunboxHeader.js';
16
15
 
17
- var _templateObject;
16
+ 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)."; }
18
17
  //
19
18
  //
20
19
  //
21
- var DEFAULT_DATA = [null, null, null];
20
+ const DEFAULT_DATA = [null, null, null];
22
21
  //
23
22
  //
24
23
  //
25
- var StyledRunboxContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n"])));
24
+ const StyledRunboxContainer = /*#__PURE__*/_styled("div", {
25
+ target: "eeh98mq0"
26
+ })("production" === "production" ? {
27
+ name: "t5t5sq",
28
+ styles: "display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%"
29
+ } : {
30
+ name: "t5t5sq",
31
+ styles: "display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%",
32
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
33
+ });
26
34
  //
27
35
  //
28
36
  //
29
- var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
30
- var runboxId = _ref.runboxId,
31
- courseId = _ref.courseId;
32
- var _useMaterialRunboxCon = useMaterialRunboxContext(),
33
- locale = _useMaterialRunboxCon.locale,
34
- showMessenger = _useMaterialRunboxCon.showMessenger;
35
- var materialRunboxApi = useMaterialRunboxApiContext();
37
+ const MaterialRunboxContent = ({
38
+ runboxId,
39
+ courseId
40
+ }) => {
41
+ const {
42
+ locale,
43
+ showMessenger
44
+ } = useMaterialRunboxContext();
45
+ const materialRunboxApi = useMaterialRunboxApiContext();
36
46
  //
37
47
  //
38
48
  //
39
- var _useQuery = useQuery({
40
- enabled: Boolean(runboxId),
41
- queryKey: ['eliceMaterialRunboxRunboxApi.runboxRunboxIdGet', 'eliceMaterialRunboxRuntimeTemplateApi.runtimeTemplateRuntimeTemplateIdGet', runboxId, courseId],
42
- queryFn: function queryFn(_ref2) {
43
- var signal = _ref2.signal;
44
- return materialRunboxApi.runbox.runboxRunboxIdGet({
45
- runboxId: runboxId,
46
- eliceCourseId: courseId
47
- }, {
48
- signal: signal
49
- }).then(function (runbox) {
50
- return Promise.all([
51
- // runbox
52
- runbox,
53
- // runtime
54
- materialRunboxApi.runtime.runtimeGet({
55
- filterImageId: runbox.imageId,
56
- filterRuntimeTemplateId: runbox.runtimeTemplateId,
57
- skip: 0,
58
- count: 1,
59
- eliceCourseId: courseId
60
- }, {
61
- signal: signal
62
- }).then(function (runtimes) {
63
- var _a;
64
- return (_a = runtimes[0]) !== null && _a !== void 0 ? _a : null;
65
- }),
66
- // runtimeTemplate
67
- materialRunboxApi.runtimeTemplate.runtimeTemplateRuntimeTemplateIdGet({
68
- runtimeTemplateId: runbox.runtimeTemplateId,
69
- eliceCourseId: courseId
70
- }, {
71
- signal: signal
72
- })]);
73
- });
74
- },
75
- cacheTime: 0,
76
- keepPreviousData: true,
77
- refetchOnWindowFocus: false
49
+ const {
50
+ data: [runbox, runtime, runtimeTemplate] = DEFAULT_DATA,
51
+ isInitialLoading,
52
+ isError,
53
+ refetch
54
+ } = useQuery({
55
+ enabled: Boolean(runboxId),
56
+ queryKey: ['eliceMaterialRunboxRunboxApi.runboxRunboxIdGet', 'eliceMaterialRunboxRuntimeTemplateApi.runtimeTemplateRuntimeTemplateIdGet', runboxId, courseId],
57
+ queryFn: ({
58
+ signal
59
+ }) => materialRunboxApi.runbox.runboxRunboxIdGet({
60
+ runboxId: runboxId,
61
+ eliceCourseId: courseId
62
+ }, {
63
+ signal
64
+ }).then(runbox => Promise.all([
65
+ // runbox
66
+ runbox,
67
+ // runtime
68
+ materialRunboxApi.runtime.runtimeGet({
69
+ filterImageId: runbox.imageId,
70
+ filterRuntimeTemplateId: runbox.runtimeTemplateId,
71
+ skip: 0,
72
+ count: 1,
73
+ eliceCourseId: courseId
74
+ }, {
75
+ signal
76
+ }).then(runtimes => {
77
+ var _a;
78
+ return (_a = runtimes[0]) !== null && _a !== void 0 ? _a : null;
78
79
  }),
79
- _useQuery$data = _useQuery.data,
80
- _useQuery$data2 = _useQuery$data === void 0 ? DEFAULT_DATA : _useQuery$data,
81
- _useQuery$data3 = _slicedToArray(_useQuery$data2, 3),
82
- runbox = _useQuery$data3[0],
83
- runtime = _useQuery$data3[1],
84
- runtimeTemplate = _useQuery$data3[2],
85
- isInitialLoading = _useQuery.isInitialLoading,
86
- isError = _useQuery.isError,
87
- refetch = _useQuery.refetch;
80
+ // runtimeTemplate
81
+ materialRunboxApi.runtimeTemplate.runtimeTemplateRuntimeTemplateIdGet({
82
+ runtimeTemplateId: runbox.runtimeTemplateId,
83
+ eliceCourseId: courseId
84
+ }, {
85
+ signal
86
+ })])),
87
+ cacheTime: 0,
88
+ keepPreviousData: true,
89
+ refetchOnWindowFocus: false
90
+ });
88
91
  //
89
92
  //
90
93
  //
@@ -102,16 +105,12 @@ var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
102
105
  gap: "0.5rem"
103
106
  }, React.createElement(Button, {
104
107
  startIcon: React.createElement(Refresh, null),
105
- onClick: function onClick() {
106
- return refetch();
107
- }
108
+ onClick: () => refetch()
108
109
  }, React.createElement(FormattedMessage, {
109
110
  id: "runbox.common.retry"
110
111
  })), typeof showMessenger === 'function' ? React.createElement(Button, {
111
112
  variant: "outlined",
112
- onClick: function onClick() {
113
- return showMessenger();
114
- }
113
+ onClick: () => showMessenger()
115
114
  }, React.createElement(FormattedMessage, {
116
115
  id: "runbox.common.support"
117
116
  })) : null)));
@@ -119,28 +118,27 @@ var MaterialRunboxContent = function MaterialRunboxContent(_ref) {
119
118
  if (!runbox || !runtimeTemplate) {
120
119
  return null;
121
120
  }
122
- var props = {
123
- runbox: runbox,
124
- runtime: runtime,
125
- runtimeTemplate: runtimeTemplate,
126
- courseId: courseId,
127
- refetch: refetch
121
+ const props = {
122
+ runbox,
123
+ runtime,
124
+ runtimeTemplate,
125
+ courseId,
126
+ refetch
128
127
  };
129
128
  return React.createElement(MaterialRunboxCommandContextProvider, {
130
129
  runtime: runtime,
131
130
  courseId: courseId
132
131
  }, React.createElement(EliceRunboxProvider, {
133
132
  runboxId: runbox.id,
134
- runboxApiHeartbeat: function runboxApiHeartbeat(_ref3) {
135
- var id = _ref3.id,
136
- signal = _ref3.signal;
137
- return materialRunboxApi.runbox.runboxRunboxIdHeartbeatPost({
138
- runboxId: id,
139
- eliceCourseId: courseId
140
- }, {
141
- signal: signal
142
- });
143
- },
133
+ runboxApiHeartbeat: ({
134
+ id,
135
+ signal
136
+ }) => materialRunboxApi.runbox.runboxRunboxIdHeartbeatPost({
137
+ runboxId: id,
138
+ eliceCourseId: courseId
139
+ }, {
140
+ signal
141
+ }),
144
142
  locale: locale,
145
143
  onRunboxRefetchRequest: refetch
146
144
  }, React.createElement(StyledRunboxContainer, null, React.createElement(MaterialRunboxHeader, Object.assign({}, props)), React.createElement(MaterialRunboxBody, Object.assign({}, props)), React.createElement(MaterialRunboxFooter, Object.assign({}, props)))));
@@ -1,26 +1,26 @@
1
- import { taggedTemplateLiteral as _taggedTemplateLiteral } from '../../_virtual/_rollupPluginBabelHelpers.js';
1
+ import _styled from '@emotion/styled/base';
2
2
  import React from 'react';
3
3
  import { EliceRunboxResourceStat, EliceRunboxRemainingTimer, EliceRunboxNetworkStat, EliceRunboxRunningStatus } from '@elice/runbox-client';
4
- import styled from '@emotion/styled';
5
4
  import { Box, Stack, Divider } from '@mui/material';
6
5
 
7
- var _templateObject;
8
6
  //
9
7
  //
10
8
  //
11
- var StyledFooter = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n flex: 0 0 2rem;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0 1rem;\n width: 100%;\n border-top: 1px solid ", ";\n"])), function (_ref) {
12
- var theme = _ref.theme;
13
- return theme.palette.divider;
14
- });
9
+ const StyledFooter = /*#__PURE__*/_styled("div", {
10
+ target: "e9lbhtr0"
11
+ })("position:relative;flex:0 0 2rem;display:flex;justify-content:space-between;align-items:center;padding:0 1rem;width:100%;border-top:1px solid ", ({
12
+ theme
13
+ }) => theme.palette.divider, ";");
15
14
  //
16
15
  //
17
16
  //
18
- var MaterialRunboxFooter = function MaterialRunboxFooter(_ref2) {
19
- var runtimeTemplate = _ref2.runtimeTemplate;
17
+ const MaterialRunboxFooter = ({
18
+ runtimeTemplate
19
+ }) => {
20
20
  /**
21
21
  * Resource stats
22
22
  */
23
- var renderFooterResourceStats = function renderFooterResourceStats() {
23
+ const renderFooterResourceStats = () => {
24
24
  var _a, _b;
25
25
  return React.createElement(Box, null, React.createElement(EliceRunboxResourceStat, {
26
26
  gpu: ((_b = (_a = runtimeTemplate.gpus) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) > 0
@@ -29,7 +29,7 @@ var MaterialRunboxFooter = function MaterialRunboxFooter(_ref2) {
29
29
  /**
30
30
  * Status
31
31
  */
32
- var renderFooterStatus = function renderFooterStatus() {
32
+ const renderFooterStatus = () => {
33
33
  return React.createElement(Stack, {
34
34
  direction: "row",
35
35
  gap: "0.5rem",
@@ -1,4 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { RuntimeProps } from './runtime/Runtime';
3
+ export type RunboxHeaderOptionProps = {
4
+ onMenuClose: () => void;
5
+ };
3
6
  declare const MaterialRunboxHeader: React.FC<RuntimeProps>;
4
7
  export default MaterialRunboxHeader;