@elice/material-runbox 1.240508.0-globalization.0 → 1.240508.0-globalization.1

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 (27) hide show
  1. package/cjs/components/material-runbox/MaterialRunbox.js +1 -5
  2. package/cjs/components/material-runbox/MaterialRunboxContent.js +1 -3
  3. package/cjs/components/material-runbox/MaterialRunboxHeader.js +1 -3
  4. package/cjs/components/material-runbox/actions/MaterialRunboxActionAutoShutdown.js +1 -3
  5. package/cjs/components/material-runbox/actions/MaterialRunboxActionGrade.js +1 -3
  6. package/cjs/components/material-runbox/actions/MaterialRunboxActionReset.js +1 -3
  7. package/cjs/components/material-runbox/actions/MaterialRunboxActionRestart.js +1 -3
  8. package/cjs/components/material-runbox/actions/MaterialRunboxActionShare.js +1 -3
  9. package/cjs/components/material-runbox/contexts/MaterialRunboxCommandContext.js +1 -3
  10. package/cjs/components/material-runbox/hooks/useRunboxControl.js +1 -3
  11. package/cjs/components/material-runbox/runtime/RuntimeOverlayAssigned.js +1 -3
  12. package/cjs/components/material-runbox/runtime/RuntimeOverlayQueued.js +1 -3
  13. package/cjs/components/material-runbox/runtime/RuntimeOverlayTerminated.js +1 -3
  14. package/es/components/material-runbox/MaterialRunbox.js +1 -5
  15. package/es/components/material-runbox/MaterialRunboxContent.js +1 -3
  16. package/es/components/material-runbox/MaterialRunboxHeader.js +1 -3
  17. package/es/components/material-runbox/actions/MaterialRunboxActionAutoShutdown.js +1 -3
  18. package/es/components/material-runbox/actions/MaterialRunboxActionGrade.js +1 -3
  19. package/es/components/material-runbox/actions/MaterialRunboxActionReset.js +1 -3
  20. package/es/components/material-runbox/actions/MaterialRunboxActionRestart.js +1 -3
  21. package/es/components/material-runbox/actions/MaterialRunboxActionShare.js +1 -3
  22. package/es/components/material-runbox/contexts/MaterialRunboxCommandContext.js +1 -3
  23. package/es/components/material-runbox/hooks/useRunboxControl.js +1 -3
  24. package/es/components/material-runbox/runtime/RuntimeOverlayAssigned.js +1 -3
  25. package/es/components/material-runbox/runtime/RuntimeOverlayQueued.js +1 -3
  26. package/es/components/material-runbox/runtime/RuntimeOverlayTerminated.js +1 -3
  27. package/package.json +5 -5
@@ -29,11 +29,7 @@ const MaterialRunbox = _a => {
29
29
  __intl
30
30
  } = _a,
31
31
  contentProps = tslib.__rest(_a, ["enableAutoShutdownToggle", "enableUrlShare", "locale", "showMessenger", "eliceMaterialRunboxApiConfiguration", "__intl"]);
32
- return React.createElement(intl.RawEliceIntlProvider, {
33
- value: {
34
- intl: __intl
35
- }
36
- }, React.createElement(MaterialRunboxContext.default, {
32
+ return React.createElement(intl.RawEliceIntlProvider, Object.assign({}, __intl), React.createElement(MaterialRunboxContext.default, {
37
33
  enableAutoShutdownToggle: enableAutoShutdownToggle,
38
34
  enableUrlShare: enableUrlShare,
39
35
  locale: locale,
@@ -42,9 +42,7 @@ const MaterialRunboxContent = ({
42
42
  runboxId,
43
43
  courseId
44
44
  }) => {
45
- const {
46
- intl: intl$1
47
- } = intl.useRawEliceIntl();
45
+ const intl$1 = intl.useRawEliceIntl();
48
46
  const {
49
47
  locale,
50
48
  showMessenger
@@ -34,9 +34,7 @@ const MaterialRunboxHeader = ({
34
34
  courseId,
35
35
  refetch
36
36
  }) => {
37
- const {
38
- intl: intl$1
39
- } = intl.useRawEliceIntl();
37
+ const intl$1 = intl.useRawEliceIntl();
40
38
  const {
41
39
  enableAutoShutdownToggle
42
40
  } = MaterialRunboxContext.useMaterialRunboxContext();
@@ -34,9 +34,7 @@ const MaterialRunboxActionAutoShutdown = ({
34
34
  refetch
35
35
  }) => {
36
36
  var _a;
37
- const {
38
- intl: intl$1
39
- } = intl.useRawEliceIntl();
37
+ const intl$1 = intl.useRawEliceIntl();
40
38
  const materialRunboxApi = MaterialRunboxApiContext.useMaterialRunboxApiContext();
41
39
  /**
42
40
  *
@@ -74,9 +74,7 @@ const MaterialRunboxActionGrade = ({
74
74
  courseId
75
75
  }) => {
76
76
  var _a;
77
- const {
78
- intl: intl$1
79
- } = intl.useRawEliceIntl();
77
+ const intl$1 = intl.useRawEliceIntl();
80
78
  const {
81
79
  enqueueSnackbar
82
80
  } = muiXSnackbar.useSnackbar();
@@ -22,9 +22,7 @@ const MaterialRunboxActionReset = ({
22
22
  courseId,
23
23
  handleMenuClose
24
24
  }) => {
25
- const {
26
- intl: intl$1
27
- } = intl.useRawEliceIntl();
25
+ const intl$1 = intl.useRawEliceIntl();
28
26
  const {
29
27
  enqueueSnackbar
30
28
  } = muiXSnackbar.useSnackbar();
@@ -19,9 +19,7 @@ const MaterialRunboxActionRestart = ({
19
19
  refetch,
20
20
  handleMenuClose
21
21
  }) => {
22
- const {
23
- intl: intl$1
24
- } = intl.useRawEliceIntl();
22
+ const intl$1 = intl.useRawEliceIntl();
25
23
  const [isLoading, setIsLoading] = React.useState(false);
26
24
  const [isDialogOpened, setDialogOpened] = React.useState(false);
27
25
  // restart
@@ -20,9 +20,7 @@ var MaterialRunboxContext = require('../contexts/MaterialRunboxContext.js');
20
20
  const MaterialRunboxActionShare = ({
21
21
  handleMenuClose
22
22
  }) => {
23
- const {
24
- intl: intl$1
25
- } = intl.useRawEliceIntl();
23
+ const intl$1 = intl.useRawEliceIntl();
26
24
  const {
27
25
  enqueueSnackbar
28
26
  } = muiXSnackbar.useSnackbar();
@@ -31,9 +31,7 @@ const MaterialRunboxCommandContextProvider = ({
31
31
  runtime,
32
32
  courseId
33
33
  }) => {
34
- const {
35
- intl: intl$1
36
- } = intl.useRawEliceIntl();
34
+ const intl$1 = intl.useRawEliceIntl();
37
35
  const {
38
36
  enqueueSnackbar
39
37
  } = muiXSnackbar.useSnackbar();
@@ -16,9 +16,7 @@ require('../contexts/MaterialRunboxContext.js');
16
16
  */
17
17
  const useRunboxControl = props => {
18
18
  const _return = React.useRef({});
19
- const {
20
- intl: intl$1
21
- } = intl.useRawEliceIntl();
19
+ const intl$1 = intl.useRawEliceIntl();
22
20
  const {
23
21
  enqueueSnackbar
24
22
  } = muiXSnackbar.useSnackbar();
@@ -16,9 +16,7 @@ const ASSIGNED_NORMAL_TIMEOUT = 30 * 1e3; // 30 sec
16
16
  //
17
17
  //
18
18
  const RuntimeOverlayAssigned = () => {
19
- const {
20
- intl: intl$1
21
- } = intl.useRawEliceIntl();
19
+ const intl$1 = intl.useRawEliceIntl();
22
20
  const [timeout] = reactUse.useTimeout(ASSIGNED_NORMAL_TIMEOUT);
23
21
  //
24
22
  //
@@ -17,9 +17,7 @@ var queue = require('../../../assets/queue.gif.js');
17
17
  const RuntimeOverlayQueued = ({
18
18
  numWaiters
19
19
  }) => {
20
- const {
21
- intl: intl$1
22
- } = intl.useRawEliceIntl();
20
+ const intl$1 = intl.useRawEliceIntl();
23
21
  const {
24
22
  showMessenger
25
23
  } = MaterialRunboxContext.useMaterialRunboxContext();
@@ -19,9 +19,7 @@ const RuntimeOverlayTerminated = ({
19
19
  reason,
20
20
  startRuntime
21
21
  }) => {
22
- const {
23
- intl: intl$1
24
- } = intl.useRawEliceIntl();
22
+ const intl$1 = intl.useRawEliceIntl();
25
23
  const {
26
24
  showMessenger
27
25
  } = MaterialRunboxContext.useMaterialRunboxContext();
@@ -25,11 +25,7 @@ const MaterialRunbox = _a => {
25
25
  __intl
26
26
  } = _a,
27
27
  contentProps = __rest(_a, ["enableAutoShutdownToggle", "enableUrlShare", "locale", "showMessenger", "eliceMaterialRunboxApiConfiguration", "__intl"]);
28
- return React.createElement(RawEliceIntlProvider, {
29
- value: {
30
- intl: __intl
31
- }
32
- }, React.createElement(MaterialRunboxContextProvider, {
28
+ return React.createElement(RawEliceIntlProvider, Object.assign({}, __intl), React.createElement(MaterialRunboxContextProvider, {
33
29
  enableAutoShutdownToggle: enableAutoShutdownToggle,
34
30
  enableUrlShare: enableUrlShare,
35
31
  locale: locale,
@@ -38,9 +38,7 @@ const MaterialRunboxContent = ({
38
38
  runboxId,
39
39
  courseId
40
40
  }) => {
41
- const {
42
- intl
43
- } = useRawEliceIntl();
41
+ const intl = useRawEliceIntl();
44
42
  const {
45
43
  locale,
46
44
  showMessenger
@@ -30,9 +30,7 @@ const MaterialRunboxHeader = ({
30
30
  courseId,
31
31
  refetch
32
32
  }) => {
33
- const {
34
- intl
35
- } = useRawEliceIntl();
33
+ const intl = useRawEliceIntl();
36
34
  const {
37
35
  enableAutoShutdownToggle
38
36
  } = useMaterialRunboxContext();
@@ -30,9 +30,7 @@ const MaterialRunboxActionAutoShutdown = ({
30
30
  refetch
31
31
  }) => {
32
32
  var _a;
33
- const {
34
- intl
35
- } = useRawEliceIntl();
33
+ const intl = useRawEliceIntl();
36
34
  const materialRunboxApi = useMaterialRunboxApiContext();
37
35
  /**
38
36
  *
@@ -70,9 +70,7 @@ const MaterialRunboxActionGrade = ({
70
70
  courseId
71
71
  }) => {
72
72
  var _a;
73
- const {
74
- intl
75
- } = useRawEliceIntl();
73
+ const intl = useRawEliceIntl();
76
74
  const {
77
75
  enqueueSnackbar
78
76
  } = useSnackbar();
@@ -18,9 +18,7 @@ const MaterialRunboxActionReset = ({
18
18
  courseId,
19
19
  handleMenuClose
20
20
  }) => {
21
- const {
22
- intl
23
- } = useRawEliceIntl();
21
+ const intl = useRawEliceIntl();
24
22
  const {
25
23
  enqueueSnackbar
26
24
  } = useSnackbar();
@@ -15,9 +15,7 @@ const MaterialRunboxActionRestart = ({
15
15
  refetch,
16
16
  handleMenuClose
17
17
  }) => {
18
- const {
19
- intl
20
- } = useRawEliceIntl();
18
+ const intl = useRawEliceIntl();
21
19
  const [isLoading, setIsLoading] = React.useState(false);
22
20
  const [isDialogOpened, setDialogOpened] = React.useState(false);
23
21
  // restart
@@ -16,9 +16,7 @@ import { useMaterialRunboxContext } from '../contexts/MaterialRunboxContext.js';
16
16
  const MaterialRunboxActionShare = ({
17
17
  handleMenuClose
18
18
  }) => {
19
- const {
20
- intl
21
- } = useRawEliceIntl();
19
+ const intl = useRawEliceIntl();
22
20
  const {
23
21
  enqueueSnackbar
24
22
  } = useSnackbar();
@@ -27,9 +27,7 @@ const MaterialRunboxCommandContextProvider = ({
27
27
  runtime,
28
28
  courseId
29
29
  }) => {
30
- const {
31
- intl
32
- } = useRawEliceIntl();
30
+ const intl = useRawEliceIntl();
33
31
  const {
34
32
  enqueueSnackbar
35
33
  } = useSnackbar();
@@ -14,9 +14,7 @@ import '../contexts/MaterialRunboxContext.js';
14
14
  */
15
15
  const useRunboxControl = props => {
16
16
  const _return = useRef({});
17
- const {
18
- intl
19
- } = useRawEliceIntl();
17
+ const intl = useRawEliceIntl();
20
18
  const {
21
19
  enqueueSnackbar
22
20
  } = useSnackbar();
@@ -12,9 +12,7 @@ const ASSIGNED_NORMAL_TIMEOUT = 30 * 1e3; // 30 sec
12
12
  //
13
13
  //
14
14
  const RuntimeOverlayAssigned = () => {
15
- const {
16
- intl
17
- } = useRawEliceIntl();
15
+ const intl = useRawEliceIntl();
18
16
  const [timeout] = useTimeout(ASSIGNED_NORMAL_TIMEOUT);
19
17
  //
20
18
  //
@@ -13,9 +13,7 @@ import queueAnimationImage from '../../../assets/queue.gif.js';
13
13
  const RuntimeOverlayQueued = ({
14
14
  numWaiters
15
15
  }) => {
16
- const {
17
- intl
18
- } = useRawEliceIntl();
16
+ const intl = useRawEliceIntl();
19
17
  const {
20
18
  showMessenger
21
19
  } = useMaterialRunboxContext();
@@ -15,9 +15,7 @@ const RuntimeOverlayTerminated = ({
15
15
  reason,
16
16
  startRuntime
17
17
  }) => {
18
- const {
19
- intl
20
- } = useRawEliceIntl();
18
+ const intl = useRawEliceIntl();
21
19
  const {
22
20
  showMessenger
23
21
  } = useMaterialRunboxContext();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-runbox",
3
- "version": "1.240508.0-globalization.0",
3
+ "version": "1.240508.0-globalization.1",
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",
@@ -51,9 +51,9 @@
51
51
  "tslib": "^2.6.1"
52
52
  },
53
53
  "devDependencies": {
54
- "@elice/intl": "0.240425.0-alpha.7",
55
- "@elice/material-shared-types": "1.240508.0-globalization.0",
56
- "@elice/material-shared-utils": "1.240508.0-globalization.0",
54
+ "@elice/intl": "0.240425.0-alpha.9",
55
+ "@elice/material-shared-types": "1.240508.0-globalization.1",
56
+ "@elice/material-shared-utils": "1.240508.0-globalization.1",
57
57
  "@elice/mui-elements": "^5.231130.0",
58
58
  "@elice/mui-system": "^5.230815.0",
59
59
  "@elice/mui-x-snackbar": "^5.231130.0",
@@ -74,5 +74,5 @@
74
74
  "react": "^17.0.2",
75
75
  "react-use": "^17.2.4"
76
76
  },
77
- "gitHead": "e64474c7cab0b6cb852ba08a2076c88e732eec03"
77
+ "gitHead": "359abc2f14610a96b1c4514aedb4a7d0ad02aed3"
78
78
  }