@elice/material-runbox 1.240710.0-runboxclientversion.1 → 1.240711.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.
@@ -44,6 +44,7 @@ const MaterialRunboxContent = ({
44
44
  }) => {
45
45
  const intl$1 = intl.useRawEliceIntl();
46
46
  const {
47
+ locale,
47
48
  showMessenger
48
49
  } = MaterialRunboxContext.useMaterialRunboxContext();
49
50
  const materialRunboxApi = MaterialRunboxApiContext.useMaterialRunboxApiContext();
@@ -152,6 +153,7 @@ const MaterialRunboxContent = ({
152
153
  }, {
153
154
  signal
154
155
  }),
156
+ locale: locale,
155
157
  onRunboxRefetchRequest: refetch
156
158
  }, React.createElement(StyledRunboxContainer, null, React.createElement(MaterialRunboxHeader.default, Object.assign({}, props)), React.createElement(MaterialRunboxBody.default, Object.assign({}, props)), React.createElement(MaterialRunboxFooter.default, Object.assign({}, props)))));
157
159
  };
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import type { WithIntlComponentBuilderProps } from '@elice/intl';
3
2
  import type { EliceRunboxViewerOverlayAssignedComponentProps as AssignedComponentProps } from '@elice/runbox-client';
4
- declare const _default: React.ForwardRefExoticComponent<import("@elice/intl").IntlComponentExtraProps & Omit<WithIntlComponentBuilderProps<AssignedComponentProps>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & React.RefAttributes<any>>;
5
- export default _default;
3
+ declare const RuntimeOverlayAssigned: React.FC<AssignedComponentProps>;
4
+ export default RuntimeOverlayAssigned;
@@ -6,8 +6,6 @@ var React = require('react');
6
6
  var reactUse = require('react-use');
7
7
  var intl = require('@elice/intl');
8
8
  var material = require('@mui/material');
9
- var en = require('../locales/en.json.js');
10
- var ko = require('../locales/ko.json.js');
11
9
  var queue = require('../../../assets/queue.gif.js');
12
10
 
13
11
  //
@@ -17,9 +15,8 @@ const ASSIGNED_NORMAL_TIMEOUT = 30 * 1e3; // 30 sec
17
15
  //
18
16
  //
19
17
  //
20
- const RuntimeOverlayAssigned = ({
21
- __intl: intl
22
- }) => {
18
+ const RuntimeOverlayAssigned = () => {
19
+ const intl$1 = intl.useRawEliceIntl();
23
20
  const [timeout] = reactUse.useTimeout(ASSIGNED_NORMAL_TIMEOUT);
24
21
  //
25
22
  //
@@ -49,12 +46,11 @@ const RuntimeOverlayAssigned = ({
49
46
  whiteSpace: 'pre-wrap',
50
47
  textAlign: 'center'
51
48
  }
52
- }, timeout() ? intl.formatMessage({
49
+ }, timeout() ? intl$1.formatMessage({
53
50
  id: 'runbox.runtime.overlay.assigned.description_timeout'
54
- }) : intl.formatMessage({
51
+ }) : intl$1.formatMessage({
55
52
  id: 'runbox.runtime.overlay.assigned.description'
56
53
  })));
57
54
  };
58
- var RuntimeOverlayAssigned$1 = new intl.IntlComponentBuilder(RuntimeOverlayAssigned).add('en', en.default).add('ko', ko.default).addAsync('th', Promise.resolve().then(function () { return require('../locales/th.json.js'); })).addAsync('ja', Promise.resolve().then(function () { return require('../locales/ja.json.js'); })).build();
59
55
 
60
- exports.default = RuntimeOverlayAssigned$1;
56
+ exports.default = RuntimeOverlayAssigned;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import type { WithIntlComponentBuilderProps } from '@elice/intl';
3
2
  import type { EliceRunboxViewerOverlayQueuedComponentProps as QueuedComponentProps } from '@elice/runbox-client';
4
- declare const _default: React.ForwardRefExoticComponent<import("@elice/intl").IntlComponentExtraProps & Omit<WithIntlComponentBuilderProps<QueuedComponentProps>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & React.RefAttributes<any>>;
5
- export default _default;
3
+ declare const RuntimeOverlayQueued: React.FC<QueuedComponentProps>;
4
+ export default RuntimeOverlayQueued;
@@ -9,17 +9,15 @@ 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 en = require('../locales/en.json.js');
13
- var ko = require('../locales/ko.json.js');
14
12
  var queue = require('../../../assets/queue.gif.js');
15
13
 
16
14
  //
17
15
  //
18
16
  //
19
17
  const RuntimeOverlayQueued = ({
20
- __intl: intl,
21
18
  numWaiters
22
19
  }) => {
20
+ const intl$1 = intl.useRawEliceIntl();
23
21
  const {
24
22
  showMessenger
25
23
  } = MaterialRunboxContext.useMaterialRunboxContext();
@@ -51,20 +49,19 @@ const RuntimeOverlayQueued = ({
51
49
  whiteSpace: 'pre-wrap',
52
50
  textAlign: 'center'
53
51
  }
54
- }, numWaiters > 0 ? intl.formatMessage({
52
+ }, numWaiters > 0 ? intl$1.formatMessage({
55
53
  id: 'runbox.runtime.overlay.queued.description'
56
54
  }, {
57
55
  waiters: numWaiters
58
- }) : intl.formatMessage({
56
+ }) : intl$1.formatMessage({
59
57
  id: 'runbox.runtime.overlay.queued.description_zero'
60
58
  })), typeof showMessenger === 'function' ? React.createElement(material.Button, {
61
59
  variant: "outlined",
62
60
  startIcon: React.createElement(iconsMaterial.QuestionAnswer, null),
63
61
  onClick: showMessenger
64
- }, intl.formatMessage({
62
+ }, intl$1.formatMessage({
65
63
  id: 'runbox.common.support'
66
64
  })) : null);
67
65
  };
68
- var RuntimeOverlayQueued$1 = new intl.IntlComponentBuilder(RuntimeOverlayQueued).add('en', en.default).add('ko', ko.default).addAsync('th', Promise.resolve().then(function () { return require('../locales/th.json.js'); })).addAsync('ja', Promise.resolve().then(function () { return require('../locales/ja.json.js'); })).build();
69
66
 
70
- exports.default = RuntimeOverlayQueued$1;
67
+ exports.default = RuntimeOverlayQueued;
@@ -1,8 +1,7 @@
1
1
  import React from 'react';
2
- import type { WithIntlComponentBuilderProps } from '@elice/intl';
3
2
  import type { EliceRunboxViewerOverlayTerminatedComponentProps as TerminatedComponentProps } from '@elice/runbox-client';
4
3
  interface RuntimeOverlayTerminatedProps extends TerminatedComponentProps {
5
4
  startRuntime: () => Promise<void>;
6
5
  }
7
- declare const _default: React.ForwardRefExoticComponent<import("@elice/intl").IntlComponentExtraProps & Omit<WithIntlComponentBuilderProps<RuntimeOverlayTerminatedProps>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & React.RefAttributes<any>>;
8
- export default _default;
6
+ declare const RuntimeOverlayTerminated: React.FC<RuntimeOverlayTerminatedProps>;
7
+ export default RuntimeOverlayTerminated;
@@ -10,18 +10,16 @@ var material = require('@mui/material');
10
10
  require('../contexts/MaterialRunboxApiContext.js');
11
11
  require('../contexts/MaterialRunboxCommandContext.js');
12
12
  var MaterialRunboxContext = require('../contexts/MaterialRunboxContext.js');
13
- var en = require('../locales/en.json.js');
14
- var ko = require('../locales/ko.json.js');
15
13
  var terminated = require('../../../assets/terminated.png.js');
16
14
 
17
15
  //
18
16
  //
19
17
  //
20
18
  const RuntimeOverlayTerminated = ({
21
- __intl: intl,
22
19
  reason,
23
20
  startRuntime
24
21
  }) => {
22
+ const intl$1 = intl.useRawEliceIntl();
25
23
  const {
26
24
  showMessenger
27
25
  } = MaterialRunboxContext.useMaterialRunboxContext();
@@ -44,14 +42,14 @@ const RuntimeOverlayTerminated = ({
44
42
  case 'stopped_by_user':
45
43
  case 'auto_shutdown':
46
44
  return {
47
- description: intl.formatMessage({
45
+ description: intl$1.formatMessage({
48
46
  id: 'runbox.runtime.overlay.terminated.description.general'
49
47
  }),
50
48
  unexpected: false
51
49
  };
52
50
  case 'quota_exceeded':
53
51
  return {
54
- description: intl.formatMessage({
52
+ description: intl$1.formatMessage({
55
53
  id: 'runbox.runtime.overlay.terminated.description.quota_exceeded'
56
54
  }),
57
55
  unexpected: false
@@ -59,7 +57,7 @@ const RuntimeOverlayTerminated = ({
59
57
  // quota exceeded
60
58
  case 'quota_per_session_exceeded':
61
59
  return {
62
- description: intl.formatMessage({
60
+ description: intl$1.formatMessage({
63
61
  id: 'runbox.runtime.overlay.terminated.description.quota_per_session_exceeded'
64
62
  }),
65
63
  unexpected: false
@@ -67,14 +65,14 @@ const RuntimeOverlayTerminated = ({
67
65
  // disk full
68
66
  case 'os_disk_is_full':
69
67
  return {
70
- description: intl.formatMessage({
68
+ description: intl$1.formatMessage({
71
69
  id: 'runbox.runtime.overlay.terminated.description.os_disk_is_full'
72
70
  }),
73
71
  unexpected: true
74
72
  };
75
73
  default:
76
74
  return {
77
- description: intl.formatMessage({
75
+ description: intl$1.formatMessage({
78
76
  id: 'runbox.runtime.overlay.terminated.description.default'
79
77
  }),
80
78
  unexpected: true
@@ -82,7 +80,7 @@ const RuntimeOverlayTerminated = ({
82
80
  }
83
81
  },
84
82
  // eslint-disable-next-line react-hooks/exhaustive-deps
85
- [reason, intl]);
83
+ [reason, intl$1]);
86
84
  //
87
85
  //
88
86
  //
@@ -110,13 +108,13 @@ const RuntimeOverlayTerminated = ({
110
108
  }, React.createElement(material.Typography, {
111
109
  variant: "h6",
112
110
  textAlign: "center"
113
- }, intl.formatMessage({
111
+ }, intl$1.formatMessage({
114
112
  id: 'runbox.runtime.overlay.terminated.title'
115
113
  })), React.createElement(material.Typography, {
116
114
  variant: "body2",
117
115
  textAlign: "center",
118
116
  whiteSpace: "pre-line"
119
- }, runtimeTerminatedAction.unexpected ? runtimeTerminatedAction.description.concat('\n', intl.formatMessage({
117
+ }, runtimeTerminatedAction.unexpected ? runtimeTerminatedAction.description.concat('\n', intl$1.formatMessage({
120
118
  id: 'runbox.runtime.overlay.terminated.description.unexpected'
121
119
  })) : runtimeTerminatedAction.description)), React.createElement(material.Stack, {
122
120
  gap: "0.5rem",
@@ -129,15 +127,14 @@ const RuntimeOverlayTerminated = ({
129
127
  loading: isRestarting,
130
128
  startIcon: React.createElement(iconsMaterial.PlayArrow, null),
131
129
  onClick: handleRestart
132
- }, intl.formatMessage({
130
+ }, intl$1.formatMessage({
133
131
  id: 'runbox.runtime.overlay.terminated.restart'
134
132
  })), runtimeTerminatedAction.unexpected && typeof showMessenger === 'function' ? React.createElement(material.Button, {
135
133
  variant: "text",
136
134
  onClick: showMessenger
137
- }, intl.formatMessage({
135
+ }, intl$1.formatMessage({
138
136
  id: 'runbox.common.support'
139
137
  })) : null)));
140
138
  };
141
- var RuntimeOverlayTerminated$1 = new intl.IntlComponentBuilder(RuntimeOverlayTerminated).add('en', en.default).add('ko', ko.default).addAsync('th', Promise.resolve().then(function () { return require('../locales/th.json.js'); })).addAsync('ja', Promise.resolve().then(function () { return require('../locales/ja.json.js'); })).build();
142
139
 
143
- exports.default = RuntimeOverlayTerminated$1;
140
+ exports.default = RuntimeOverlayTerminated;
@@ -40,6 +40,7 @@ const MaterialRunboxContent = ({
40
40
  }) => {
41
41
  const intl = useRawEliceIntl();
42
42
  const {
43
+ locale,
43
44
  showMessenger
44
45
  } = useMaterialRunboxContext();
45
46
  const materialRunboxApi = useMaterialRunboxApiContext();
@@ -148,6 +149,7 @@ const MaterialRunboxContent = ({
148
149
  }, {
149
150
  signal
150
151
  }),
152
+ locale: locale,
151
153
  onRunboxRefetchRequest: refetch
152
154
  }, React.createElement(StyledRunboxContainer, null, React.createElement(MaterialRunboxHeader, Object.assign({}, props)), React.createElement(MaterialRunboxBody, Object.assign({}, props)), React.createElement(MaterialRunboxFooter, Object.assign({}, props)))));
153
155
  };
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import type { WithIntlComponentBuilderProps } from '@elice/intl';
3
2
  import type { EliceRunboxViewerOverlayAssignedComponentProps as AssignedComponentProps } from '@elice/runbox-client';
4
- declare const _default: React.ForwardRefExoticComponent<import("@elice/intl").IntlComponentExtraProps & Omit<WithIntlComponentBuilderProps<AssignedComponentProps>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & React.RefAttributes<any>>;
5
- export default _default;
3
+ declare const RuntimeOverlayAssigned: React.FC<AssignedComponentProps>;
4
+ export default RuntimeOverlayAssigned;
@@ -1,9 +1,7 @@
1
1
  import React from 'react';
2
2
  import { useTimeout } from 'react-use';
3
- import { IntlComponentBuilder } from '@elice/intl';
3
+ import { useRawEliceIntl } from '@elice/intl';
4
4
  import { Stack, Box, Typography } from '@mui/material';
5
- import messageEn from '../locales/en.json.js';
6
- import messageKo from '../locales/ko.json.js';
7
5
  import queueAnimationImage from '../../../assets/queue.gif.js';
8
6
 
9
7
  //
@@ -13,9 +11,8 @@ const ASSIGNED_NORMAL_TIMEOUT = 30 * 1e3; // 30 sec
13
11
  //
14
12
  //
15
13
  //
16
- const RuntimeOverlayAssigned = ({
17
- __intl: intl
18
- }) => {
14
+ const RuntimeOverlayAssigned = () => {
15
+ const intl = useRawEliceIntl();
19
16
  const [timeout] = useTimeout(ASSIGNED_NORMAL_TIMEOUT);
20
17
  //
21
18
  //
@@ -51,6 +48,5 @@ const RuntimeOverlayAssigned = ({
51
48
  id: 'runbox.runtime.overlay.assigned.description'
52
49
  })));
53
50
  };
54
- var RuntimeOverlayAssigned$1 = new IntlComponentBuilder(RuntimeOverlayAssigned).add('en', messageEn).add('ko', messageKo).addAsync('th', import('../locales/th.json.js')).addAsync('ja', import('../locales/ja.json.js')).build();
55
51
 
56
- export { RuntimeOverlayAssigned$1 as default };
52
+ export { RuntimeOverlayAssigned as default };
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import type { WithIntlComponentBuilderProps } from '@elice/intl';
3
2
  import type { EliceRunboxViewerOverlayQueuedComponentProps as QueuedComponentProps } from '@elice/runbox-client';
4
- declare const _default: React.ForwardRefExoticComponent<import("@elice/intl").IntlComponentExtraProps & Omit<WithIntlComponentBuilderProps<QueuedComponentProps>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & React.RefAttributes<any>>;
5
- export default _default;
3
+ declare const RuntimeOverlayQueued: React.FC<QueuedComponentProps>;
4
+ export default RuntimeOverlayQueued;
@@ -1,21 +1,19 @@
1
1
  import React from 'react';
2
- import { IntlComponentBuilder } from '@elice/intl';
2
+ import { useRawEliceIntl } from '@elice/intl';
3
3
  import { QuestionAnswer } from '@mui/icons-material';
4
4
  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 messageEn from '../locales/en.json.js';
9
- import messageKo from '../locales/ko.json.js';
10
8
  import queueAnimationImage from '../../../assets/queue.gif.js';
11
9
 
12
10
  //
13
11
  //
14
12
  //
15
13
  const RuntimeOverlayQueued = ({
16
- __intl: intl,
17
14
  numWaiters
18
15
  }) => {
16
+ const intl = useRawEliceIntl();
19
17
  const {
20
18
  showMessenger
21
19
  } = useMaterialRunboxContext();
@@ -61,6 +59,5 @@ const RuntimeOverlayQueued = ({
61
59
  id: 'runbox.common.support'
62
60
  })) : null);
63
61
  };
64
- var RuntimeOverlayQueued$1 = new IntlComponentBuilder(RuntimeOverlayQueued).add('en', messageEn).add('ko', messageKo).addAsync('th', import('../locales/th.json.js')).addAsync('ja', import('../locales/ja.json.js')).build();
65
62
 
66
- export { RuntimeOverlayQueued$1 as default };
63
+ export { RuntimeOverlayQueued as default };
@@ -1,8 +1,7 @@
1
1
  import React from 'react';
2
- import type { WithIntlComponentBuilderProps } from '@elice/intl';
3
2
  import type { EliceRunboxViewerOverlayTerminatedComponentProps as TerminatedComponentProps } from '@elice/runbox-client';
4
3
  interface RuntimeOverlayTerminatedProps extends TerminatedComponentProps {
5
4
  startRuntime: () => Promise<void>;
6
5
  }
7
- declare const _default: React.ForwardRefExoticComponent<import("@elice/intl").IntlComponentExtraProps & Omit<WithIntlComponentBuilderProps<RuntimeOverlayTerminatedProps>, keyof import("@elice/intl").IntlComponentExtraProps | "__intl"> & React.RefAttributes<any>>;
8
- export default _default;
6
+ declare const RuntimeOverlayTerminated: React.FC<RuntimeOverlayTerminatedProps>;
7
+ export default RuntimeOverlayTerminated;
@@ -1,23 +1,21 @@
1
1
  import React from 'react';
2
- import { IntlComponentBuilder } from '@elice/intl';
2
+ import { useRawEliceIntl } from '@elice/intl';
3
3
  import { PlayArrow } from '@mui/icons-material';
4
4
  import { LoadingButton } from '@mui/lab';
5
5
  import { Box, Stack, Typography, Button } from '@mui/material';
6
6
  import '../contexts/MaterialRunboxApiContext.js';
7
7
  import '../contexts/MaterialRunboxCommandContext.js';
8
8
  import { useMaterialRunboxContext } from '../contexts/MaterialRunboxContext.js';
9
- import messageEn from '../locales/en.json.js';
10
- import messageKo from '../locales/ko.json.js';
11
9
  import runboxTerminatedImage from '../../../assets/terminated.png.js';
12
10
 
13
11
  //
14
12
  //
15
13
  //
16
14
  const RuntimeOverlayTerminated = ({
17
- __intl: intl,
18
15
  reason,
19
16
  startRuntime
20
17
  }) => {
18
+ const intl = useRawEliceIntl();
21
19
  const {
22
20
  showMessenger
23
21
  } = useMaterialRunboxContext();
@@ -134,6 +132,5 @@ const RuntimeOverlayTerminated = ({
134
132
  id: 'runbox.common.support'
135
133
  })) : null)));
136
134
  };
137
- var RuntimeOverlayTerminated$1 = new IntlComponentBuilder(RuntimeOverlayTerminated).add('en', messageEn).add('ko', messageKo).addAsync('th', import('../locales/th.json.js')).addAsync('ja', import('../locales/ja.json.js')).build();
138
135
 
139
- export { RuntimeOverlayTerminated$1 as default };
136
+ export { RuntimeOverlayTerminated as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-runbox",
3
- "version": "1.240710.0-runboxclientversion.1",
3
+ "version": "1.240711.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",
@@ -58,7 +58,7 @@
58
58
  "@elice/mui-system": "^5.230815.0",
59
59
  "@elice/mui-x-snackbar": "^5.231130.0",
60
60
  "@elice/openapi-client-material-runbox": "1.240328.0",
61
- "@elice/runbox-client": "1.240710.0",
61
+ "@elice/runbox-client": "1.240521.0",
62
62
  "@elice/types": "^1.240619.0",
63
63
  "@emotion/react": "^11.10.5",
64
64
  "@emotion/styled": "^11.10.5",
@@ -74,5 +74,5 @@
74
74
  "react": "^17.0.2",
75
75
  "react-use": "^17.2.4"
76
76
  },
77
- "gitHead": "3bc79a39012393661e4e1ae0f663d74cdf320f8c"
77
+ "gitHead": "2493480ef7ce41c93d86e66b0e8a38d5956453ad"
78
78
  }