@elice/material-runbox 1.230726.0 → 1.230817.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 (31) hide show
  1. package/cjs/_virtual/_rollupPluginBabelHelpers.js +6 -11
  2. package/cjs/components/material-runbox/MaterialRunbox.d.ts +1 -1
  3. package/cjs/components/material-runbox/MaterialRunboxHeader.js +3 -2
  4. package/cjs/components/material-runbox/actions/MaterialRunboxActionAutoShutdown.d.ts +1 -1
  5. package/cjs/components/material-runbox/actions/MaterialRunboxActionGrade.d.ts +1 -1
  6. package/cjs/components/material-runbox/actions/MaterialRunboxActionReset.d.ts +1 -1
  7. package/cjs/components/material-runbox/actions/MaterialRunboxActionRestart.d.ts +1 -1
  8. package/cjs/components/material-runbox/contexts/MaterialRunboxCommandContext.d.ts +1 -1
  9. package/cjs/components/material-runbox/hooks/useRunboxControl.d.ts +1 -1
  10. package/cjs/components/material-runbox/runtime/RuntimeOverlayAssigned.js +3 -2
  11. package/cjs/components/material-runbox/runtime/RuntimeOverlayQueued.js +3 -2
  12. package/cjs/components/material-runbox/runtime/RuntimeOverlayTerminated.js +3 -2
  13. package/es/_virtual/_rollupPluginBabelHelpers.js +6 -11
  14. package/es/components/material-runbox/MaterialRunbox.d.ts +1 -1
  15. package/es/components/material-runbox/MaterialRunboxHeader.js +1 -1
  16. package/es/components/material-runbox/actions/MaterialRunboxActionAutoShutdown.d.ts +1 -1
  17. package/es/components/material-runbox/actions/MaterialRunboxActionGrade.d.ts +1 -1
  18. package/es/components/material-runbox/actions/MaterialRunboxActionReset.d.ts +1 -1
  19. package/es/components/material-runbox/actions/MaterialRunboxActionRestart.d.ts +1 -1
  20. package/es/components/material-runbox/contexts/MaterialRunboxCommandContext.d.ts +1 -1
  21. package/es/components/material-runbox/hooks/useRunboxControl.d.ts +1 -1
  22. package/es/components/material-runbox/runtime/RuntimeOverlayAssigned.js +1 -1
  23. package/es/components/material-runbox/runtime/RuntimeOverlayQueued.js +1 -1
  24. package/es/components/material-runbox/runtime/RuntimeOverlayTerminated.js +1 -1
  25. package/package.json +8 -12
  26. package/cjs/assets/queue.gif.js +0 -8
  27. package/cjs/assets/runbox_logo.png.js +0 -8
  28. package/cjs/assets/terminated.png.js +0 -8
  29. package/es/assets/queue.gif.js +0 -4
  30. package/es/assets/runbox_logo.png.js +0 -4
  31. package/es/assets/terminated.png.js +0 -4
@@ -135,7 +135,10 @@ function _regeneratorRuntime() {
135
135
  if ("executing" === state) throw new Error("Generator is already running");
136
136
  if ("completed" === state) {
137
137
  if ("throw" === method) throw arg;
138
- return doneResult();
138
+ return {
139
+ value: void 0,
140
+ done: !0
141
+ };
139
142
  }
140
143
  for (context.method = method, context.arg = arg;;) {
141
144
  var delegate = context.delegate;
@@ -188,7 +191,7 @@ function _regeneratorRuntime() {
188
191
  }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
189
192
  }
190
193
  function values(iterable) {
191
- if (iterable) {
194
+ if (iterable || "" === iterable) {
192
195
  var iteratorMethod = iterable[iteratorSymbol];
193
196
  if (iteratorMethod) return iteratorMethod.call(iterable);
194
197
  if ("function" == typeof iterable.next) return iterable;
@@ -201,15 +204,7 @@ function _regeneratorRuntime() {
201
204
  return next.next = next;
202
205
  }
203
206
  }
204
- return {
205
- next: doneResult
206
- };
207
- }
208
- function doneResult() {
209
- return {
210
- value: undefined,
211
- done: !0
212
- };
207
+ throw new TypeError(typeof iterable + " is not iterable");
213
208
  }
214
209
  return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
215
210
  value: GeneratorFunctionPrototype,
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { MaterialRunboxApiContextProps, MaterialRunboxContextProps } from './contexts';
3
3
  import type { MaterialRunboxContentProps } from './MaterialRunboxContent';
4
- export declare type MaterialRunboxProps = MaterialRunboxContentProps & Omit<MaterialRunboxApiContextProps, 'children'> & Omit<MaterialRunboxContextProps, 'children'>;
4
+ export type MaterialRunboxProps = MaterialRunboxContentProps & Omit<MaterialRunboxApiContextProps, 'children'> & Omit<MaterialRunboxContextProps, 'children'>;
5
5
  declare const MaterialRunbox: React.FC<MaterialRunboxProps>;
6
6
  export default MaterialRunbox;
@@ -14,12 +14,13 @@ var MaterialRunboxActionShare = require('./actions/MaterialRunboxActionShare.js'
14
14
  require('./contexts/MaterialRunboxApiContext.js');
15
15
  require('./contexts/MaterialRunboxCommandContext.js');
16
16
  var MaterialRunboxContext = require('./contexts/MaterialRunboxContext.js');
17
- var runbox_logo = require('../../assets/runbox_logo.png.js');
17
+ var runboxLogoImage = require('src/assets/runbox_logo.png');
18
18
 
19
19
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
20
20
 
21
21
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
22
22
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
23
+ var runboxLogoImage__default = /*#__PURE__*/_interopDefaultLegacy(runboxLogoImage);
23
24
 
24
25
  var _templateObject;
25
26
  //
@@ -106,7 +107,7 @@ var MaterialRunboxHeader = function MaterialRunboxHeader(_ref2) {
106
107
  }
107
108
  }, React__default["default"].createElement(material.Box, {
108
109
  component: "img",
109
- src: runbox_logo["default"],
110
+ src: runboxLogoImage__default["default"],
110
111
  alt: "elice runbox",
111
112
  sx: {
112
113
  width: 'auto',
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { RuntimeProps } from '../runtime/Runtime';
3
- declare type MaterialRunboxActionAutoShutdownProps = Pick<RuntimeProps, 'runtime' | 'runtimeTemplate' | 'courseId' | 'refetch'>;
3
+ type MaterialRunboxActionAutoShutdownProps = Pick<RuntimeProps, 'runtime' | 'runtimeTemplate' | 'courseId' | 'refetch'>;
4
4
  declare const MaterialRunboxActionAutoShutdown: React.FC<MaterialRunboxActionAutoShutdownProps>;
5
5
  export default MaterialRunboxActionAutoShutdown;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { RuntimeProps } from '../runtime/Runtime';
3
- declare type MaterialRunboxActionGradeProps = Pick<RuntimeProps, 'runtime' | 'courseId'>;
3
+ type MaterialRunboxActionGradeProps = Pick<RuntimeProps, 'runtime' | 'courseId'>;
4
4
  declare const MaterialRunboxActionGrade: React.FC<MaterialRunboxActionGradeProps>;
5
5
  export default MaterialRunboxActionGrade;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { RuntimeProps } from '../runtime/Runtime';
3
- declare type MaterialRunboxActionResetProps = Pick<RuntimeProps, 'runtime' | 'courseId'>;
3
+ type MaterialRunboxActionResetProps = Pick<RuntimeProps, 'runtime' | 'courseId'>;
4
4
  declare const MaterialRunboxActionReset: React.FC<MaterialRunboxActionResetProps>;
5
5
  export default MaterialRunboxActionReset;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { RuntimeProps } from '../runtime/Runtime';
3
- declare type MaterialRunboxActionRestartProps = Pick<RuntimeProps, 'runbox' | 'courseId' | 'refetch'>;
3
+ type MaterialRunboxActionRestartProps = Pick<RuntimeProps, 'runbox' | 'courseId' | 'refetch'>;
4
4
  declare const MaterialRunboxActionRestart: React.FC<MaterialRunboxActionRestartProps>;
5
5
  export default MaterialRunboxActionRestart;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { RunboxCommandGetResponse } from '@elice/openapi-client-material-runbox';
3
3
  import type { RuntimeProps } from '../runtime/Runtime';
4
- declare type PickedRuntimeProps = Pick<RuntimeProps, 'runtime' | 'courseId'>;
4
+ type PickedRuntimeProps = Pick<RuntimeProps, 'runtime' | 'courseId'>;
5
5
  export interface MaterialRunboxCommandContextValue {
6
6
  /** Last command result. */
7
7
  lastCommand: RunboxCommandGetResponse | null;
@@ -1,5 +1,5 @@
1
1
  import type { RuntimeProps } from '../runtime/Runtime';
2
- declare type UseRunboxControlProps = Pick<RuntimeProps, 'runbox' | 'courseId' | 'refetch'>;
2
+ type UseRunboxControlProps = Pick<RuntimeProps, 'runbox' | 'courseId' | 'refetch'>;
3
3
  interface UseRunboxControlReturn {
4
4
  start: (force?: boolean) => Promise<void>;
5
5
  stop: () => Promise<void>;
@@ -5,11 +5,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var React = require('react');
6
6
  var reactIntl = require('react-intl');
7
7
  var material = require('@mui/material');
8
- var queue = require('../../../assets/queue.gif.js');
8
+ var queueAnimationImage = require('src/assets/queue.gif');
9
9
 
10
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
11
 
12
12
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
13
+ var queueAnimationImage__default = /*#__PURE__*/_interopDefaultLegacy(queueAnimationImage);
13
14
 
14
15
  //
15
16
  //
@@ -26,7 +27,7 @@ var RuntimeOverlayAssigned = function RuntimeOverlayAssigned() {
26
27
  }
27
28
  }, React__default["default"].createElement(material.Box, {
28
29
  component: "img",
29
- src: queue["default"],
30
+ src: queueAnimationImage__default["default"],
30
31
  alt: "queue",
31
32
  sx: {
32
33
  width: '100%',
@@ -9,11 +9,12 @@ var material = require('@mui/material');
9
9
  require('../contexts/MaterialRunboxApiContext.js');
10
10
  require('../contexts/MaterialRunboxCommandContext.js');
11
11
  var MaterialRunboxContext = require('../contexts/MaterialRunboxContext.js');
12
- var queue = require('../../../assets/queue.gif.js');
12
+ var queueAnimationImage = require('src/assets/queue.gif');
13
13
 
14
14
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
15
15
 
16
16
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
17
+ var queueAnimationImage__default = /*#__PURE__*/_interopDefaultLegacy(queueAnimationImage);
17
18
 
18
19
  //
19
20
  //
@@ -36,7 +37,7 @@ var RuntimeOverlayQueued = function RuntimeOverlayQueued(_ref) {
36
37
  }
37
38
  }, React__default["default"].createElement(material.Box, {
38
39
  component: "img",
39
- src: queue["default"],
40
+ src: queueAnimationImage__default["default"],
40
41
  alt: "queue",
41
42
  sx: {
42
43
  width: '100%',
@@ -11,11 +11,12 @@ var material = require('@mui/material');
11
11
  require('../contexts/MaterialRunboxApiContext.js');
12
12
  require('../contexts/MaterialRunboxCommandContext.js');
13
13
  var MaterialRunboxContext = require('../contexts/MaterialRunboxContext.js');
14
- var terminated = require('../../../assets/terminated.png.js');
14
+ var runboxTerminatedImage = require('src/assets/terminated.png');
15
15
 
16
16
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
17
17
 
18
18
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
19
+ var runboxTerminatedImage__default = /*#__PURE__*/_interopDefaultLegacy(runboxTerminatedImage);
19
20
 
20
21
  //
21
22
  //
@@ -103,7 +104,7 @@ var RuntimeOverlayTerminated = function RuntimeOverlayTerminated(_ref) {
103
104
  alignItems: "center"
104
105
  }, React__default["default"].createElement(material.Box, {
105
106
  component: "img",
106
- src: terminated["default"],
107
+ src: runboxTerminatedImage__default["default"],
107
108
  alt: "terminated",
108
109
  sx: {
109
110
  maxWidth: '10rem',
@@ -131,7 +131,10 @@ function _regeneratorRuntime() {
131
131
  if ("executing" === state) throw new Error("Generator is already running");
132
132
  if ("completed" === state) {
133
133
  if ("throw" === method) throw arg;
134
- return doneResult();
134
+ return {
135
+ value: void 0,
136
+ done: !0
137
+ };
135
138
  }
136
139
  for (context.method = method, context.arg = arg;;) {
137
140
  var delegate = context.delegate;
@@ -184,7 +187,7 @@ function _regeneratorRuntime() {
184
187
  }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
185
188
  }
186
189
  function values(iterable) {
187
- if (iterable) {
190
+ if (iterable || "" === iterable) {
188
191
  var iteratorMethod = iterable[iteratorSymbol];
189
192
  if (iteratorMethod) return iteratorMethod.call(iterable);
190
193
  if ("function" == typeof iterable.next) return iterable;
@@ -197,15 +200,7 @@ function _regeneratorRuntime() {
197
200
  return next.next = next;
198
201
  }
199
202
  }
200
- return {
201
- next: doneResult
202
- };
203
- }
204
- function doneResult() {
205
- return {
206
- value: undefined,
207
- done: !0
208
- };
203
+ throw new TypeError(typeof iterable + " is not iterable");
209
204
  }
210
205
  return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
211
206
  value: GeneratorFunctionPrototype,
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { MaterialRunboxApiContextProps, MaterialRunboxContextProps } from './contexts';
3
3
  import type { MaterialRunboxContentProps } from './MaterialRunboxContent';
4
- export declare type MaterialRunboxProps = MaterialRunboxContentProps & Omit<MaterialRunboxApiContextProps, 'children'> & Omit<MaterialRunboxContextProps, 'children'>;
4
+ export type MaterialRunboxProps = MaterialRunboxContentProps & Omit<MaterialRunboxApiContextProps, 'children'> & Omit<MaterialRunboxContextProps, 'children'>;
5
5
  declare const MaterialRunbox: React.FC<MaterialRunboxProps>;
6
6
  export default MaterialRunbox;
@@ -10,7 +10,7 @@ import MaterialRunboxActionShare from './actions/MaterialRunboxActionShare.js';
10
10
  import './contexts/MaterialRunboxApiContext.js';
11
11
  import './contexts/MaterialRunboxCommandContext.js';
12
12
  import { useMaterialRunboxContext } from './contexts/MaterialRunboxContext.js';
13
- import runboxLogoImage from '../../assets/runbox_logo.png.js';
13
+ import runboxLogoImage from 'src/assets/runbox_logo.png';
14
14
 
15
15
  var _templateObject;
16
16
  //
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { RuntimeProps } from '../runtime/Runtime';
3
- declare type MaterialRunboxActionAutoShutdownProps = Pick<RuntimeProps, 'runtime' | 'runtimeTemplate' | 'courseId' | 'refetch'>;
3
+ type MaterialRunboxActionAutoShutdownProps = Pick<RuntimeProps, 'runtime' | 'runtimeTemplate' | 'courseId' | 'refetch'>;
4
4
  declare const MaterialRunboxActionAutoShutdown: React.FC<MaterialRunboxActionAutoShutdownProps>;
5
5
  export default MaterialRunboxActionAutoShutdown;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { RuntimeProps } from '../runtime/Runtime';
3
- declare type MaterialRunboxActionGradeProps = Pick<RuntimeProps, 'runtime' | 'courseId'>;
3
+ type MaterialRunboxActionGradeProps = Pick<RuntimeProps, 'runtime' | 'courseId'>;
4
4
  declare const MaterialRunboxActionGrade: React.FC<MaterialRunboxActionGradeProps>;
5
5
  export default MaterialRunboxActionGrade;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { RuntimeProps } from '../runtime/Runtime';
3
- declare type MaterialRunboxActionResetProps = Pick<RuntimeProps, 'runtime' | 'courseId'>;
3
+ type MaterialRunboxActionResetProps = Pick<RuntimeProps, 'runtime' | 'courseId'>;
4
4
  declare const MaterialRunboxActionReset: React.FC<MaterialRunboxActionResetProps>;
5
5
  export default MaterialRunboxActionReset;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { RuntimeProps } from '../runtime/Runtime';
3
- declare type MaterialRunboxActionRestartProps = Pick<RuntimeProps, 'runbox' | 'courseId' | 'refetch'>;
3
+ type MaterialRunboxActionRestartProps = Pick<RuntimeProps, 'runbox' | 'courseId' | 'refetch'>;
4
4
  declare const MaterialRunboxActionRestart: React.FC<MaterialRunboxActionRestartProps>;
5
5
  export default MaterialRunboxActionRestart;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { RunboxCommandGetResponse } from '@elice/openapi-client-material-runbox';
3
3
  import type { RuntimeProps } from '../runtime/Runtime';
4
- declare type PickedRuntimeProps = Pick<RuntimeProps, 'runtime' | 'courseId'>;
4
+ type PickedRuntimeProps = Pick<RuntimeProps, 'runtime' | 'courseId'>;
5
5
  export interface MaterialRunboxCommandContextValue {
6
6
  /** Last command result. */
7
7
  lastCommand: RunboxCommandGetResponse | null;
@@ -1,5 +1,5 @@
1
1
  import type { RuntimeProps } from '../runtime/Runtime';
2
- declare type UseRunboxControlProps = Pick<RuntimeProps, 'runbox' | 'courseId' | 'refetch'>;
2
+ type UseRunboxControlProps = Pick<RuntimeProps, 'runbox' | 'courseId' | 'refetch'>;
3
3
  interface UseRunboxControlReturn {
4
4
  start: (force?: boolean) => Promise<void>;
5
5
  stop: () => Promise<void>;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { FormattedMessage } from 'react-intl';
3
3
  import { Stack, Box, Typography } from '@mui/material';
4
- import queueAnimationImage from '../../../assets/queue.gif.js';
4
+ import queueAnimationImage from 'src/assets/queue.gif';
5
5
 
6
6
  //
7
7
  //
@@ -5,7 +5,7 @@ import { Stack, Box, Typography, Button } from '@mui/material';
5
5
  import '../contexts/MaterialRunboxApiContext.js';
6
6
  import '../contexts/MaterialRunboxCommandContext.js';
7
7
  import { useMaterialRunboxContext } from '../contexts/MaterialRunboxContext.js';
8
- import queueAnimationImage from '../../../assets/queue.gif.js';
8
+ import queueAnimationImage from 'src/assets/queue.gif';
9
9
 
10
10
  //
11
11
  //
@@ -7,7 +7,7 @@ import { Box, Stack, Typography, Button } from '@mui/material';
7
7
  import '../contexts/MaterialRunboxApiContext.js';
8
8
  import '../contexts/MaterialRunboxCommandContext.js';
9
9
  import { useMaterialRunboxContext } from '../contexts/MaterialRunboxContext.js';
10
- import runboxTerminatedImage from '../../../assets/terminated.png.js';
10
+ import runboxTerminatedImage from 'src/assets/terminated.png';
11
11
 
12
12
  //
13
13
  //
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-runbox",
3
- "version": "1.230726.0",
3
+ "version": "1.230817.0",
4
4
  "description": "User view and editing components of Elice material runbox",
5
5
  "repository": "https://git.elicer.io/elice/frontend/library/elice-material",
6
6
  "license": "UNLICENSED",
@@ -14,10 +14,6 @@
14
14
  "README.md"
15
15
  ],
16
16
  "sideEffects": false,
17
- "engines": {
18
- "node": "~16.14",
19
- "yarn": ">=1.20 <2"
20
- },
21
17
  "scripts": {
22
18
  "start": "run-s watch",
23
19
  "prebuild": "run-s clean",
@@ -49,14 +45,14 @@
49
45
  "dependencies": {
50
46
  "classnames": "^2.2.0",
51
47
  "rxjs": "^7.5.6",
52
- "tslib": "^2.3.1"
48
+ "tslib": "^2.6.1"
53
49
  },
54
50
  "devDependencies": {
55
- "@elice/material-shared-types": "1.230726.0",
56
- "@elice/material-shared-utils": "1.230726.0",
57
- "@elice/mui-system": "^5.230621.0",
58
- "@elice/openapi-client-material-runbox": "^1.230516.0",
59
- "@elice/runbox-client": "^1.230412.0",
51
+ "@elice/material-shared-types": "1.230817.0",
52
+ "@elice/material-shared-utils": "1.230817.0",
53
+ "@elice/mui-system": "^5.230815.0",
54
+ "@elice/openapi-client-material-runbox": "^1.230814.0",
55
+ "@elice/runbox-client": "^1.230816.0",
60
56
  "@emotion/react": "^11.10.5",
61
57
  "@emotion/styled": "^11.10.5",
62
58
  "@mui/icons-material": "^5.10.16",
@@ -71,5 +67,5 @@
71
67
  "react-intl": "^5.20.10",
72
68
  "react-use": "^17.2.4"
73
69
  },
74
- "gitHead": "7a5377d83939215c5dfc543c867ffd59300710fe"
70
+ "gitHead": "94d876ab4c04c24349c1c00650758751e53d2785"
75
71
  }