@elice/material-assignment 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.
@@ -28,11 +28,7 @@ const MaterialAssignment = ({
28
28
  __intl
29
29
  }) => {
30
30
  const prefixCls = 'em-material-assignment';
31
- return React.createElement(intl.RawEliceIntlProvider, {
32
- value: {
33
- intl: __intl
34
- }
35
- }, React.createElement(StyledMaterialAssignmentWrapper, {
31
+ return React.createElement(intl.RawEliceIntlProvider, Object.assign({}, __intl), React.createElement(StyledMaterialAssignmentWrapper, {
36
32
  className: classnames(prefixCls, className)
37
33
  }, React.createElement(MaterialAssignmentContent.default, {
38
34
  materialAssignmentId: materialAssignmentId,
@@ -17,9 +17,7 @@ const MaterialAssignmentContent = ({
17
17
  userId
18
18
  }) => {
19
19
  const isReady = materialSharedUtils.useMaterialConfigApiClientUpdate(apiClient.config.init);
20
- const {
21
- intl: intl$1
22
- } = intl.useRawEliceIntl();
20
+ const intl$1 = intl.useRawEliceIntl();
23
21
  const {
24
22
  materialAssignment,
25
23
  materialLecturePage,
@@ -19,9 +19,7 @@ const MaterialAssignmentUploadModal = ({
19
19
  onClose,
20
20
  onSubmitCallback
21
21
  }) => {
22
- const {
23
- intl: intl$1
24
- } = intl.useRawEliceIntl();
22
+ const intl$1 = intl.useRawEliceIntl();
25
23
  const abortCtrl = React.useRef(new AbortController());
26
24
  /** Select submission method */
27
25
  const [assignmentMode, setAssignmentMode] = React.useState('attachment');
@@ -24,11 +24,7 @@ const MaterialAssignment = ({
24
24
  __intl
25
25
  }) => {
26
26
  const prefixCls = 'em-material-assignment';
27
- return React.createElement(RawEliceIntlProvider, {
28
- value: {
29
- intl: __intl
30
- }
31
- }, React.createElement(StyledMaterialAssignmentWrapper, {
27
+ return React.createElement(RawEliceIntlProvider, Object.assign({}, __intl), React.createElement(StyledMaterialAssignmentWrapper, {
32
28
  className: classnames(prefixCls, className)
33
29
  }, React.createElement(MaterialAssignmentContent, {
34
30
  materialAssignmentId: materialAssignmentId,
@@ -13,9 +13,7 @@ const MaterialAssignmentContent = ({
13
13
  userId
14
14
  }) => {
15
15
  const isReady = useMaterialConfigApiClientUpdate(config.init);
16
- const {
17
- intl
18
- } = useRawEliceIntl();
16
+ const intl = useRawEliceIntl();
19
17
  const {
20
18
  materialAssignment,
21
19
  materialLecturePage,
@@ -15,9 +15,7 @@ const MaterialAssignmentUploadModal = ({
15
15
  onClose,
16
16
  onSubmitCallback
17
17
  }) => {
18
- const {
19
- intl
20
- } = useRawEliceIntl();
18
+ const intl = useRawEliceIntl();
21
19
  const abortCtrl = React.useRef(new AbortController());
22
20
  /** Select submission method */
23
21
  const [assignmentMode, setAssignmentMode] = React.useState('attachment');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-assignment",
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 assignment",
5
5
  "repository": "https://git.elicer.io/elice/frontend/library/elice-material",
6
6
  "license": "UNLICENSED",
@@ -50,10 +50,10 @@
50
50
  "@elice/design-tokens": "^1.220803.0",
51
51
  "@elice/icons": "^1.230814.0",
52
52
  "@elice/icons-legacy": "npm:@elice/icons@0.230814.0",
53
- "@elice/intl": "0.240425.0-alpha.7",
53
+ "@elice/intl": "0.240425.0-alpha.9",
54
54
  "@elice/markdown": "^1.220815.0",
55
- "@elice/material-shared-types": "1.240508.0-globalization.0",
56
- "@elice/material-shared-utils": "1.240508.0-globalization.0",
55
+ "@elice/material-shared-types": "1.240508.0-globalization.1",
56
+ "@elice/material-shared-utils": "1.240508.0-globalization.1",
57
57
  "@elice/types": "^1.240208.0",
58
58
  "@types/classnames": "^2.3.1",
59
59
  "@types/react": "~17.0.9",
@@ -62,5 +62,5 @@
62
62
  "react-use": "^17.2.4",
63
63
  "styled-components": "^5.3.0"
64
64
  },
65
- "gitHead": "e64474c7cab0b6cb852ba08a2076c88e732eec03"
65
+ "gitHead": "359abc2f14610a96b1c4514aedb4a7d0ad02aed3"
66
66
  }