@elice/material-external 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.
@@ -20,11 +20,7 @@ const MaterialExternal = ({
20
20
  __intl
21
21
  }) => {
22
22
  const prefixCls = 'em-material-external';
23
- return React.createElement(intl.RawEliceIntlProvider, {
24
- value: {
25
- intl: __intl
26
- }
27
- }, React.createElement(MaterialExternal_styled.StyledExternalWrap, {
23
+ return React.createElement(intl.RawEliceIntlProvider, Object.assign({}, __intl), React.createElement(MaterialExternal_styled.StyledExternalWrap, {
28
24
  className: classnames(prefixCls, className)
29
25
  }, userId ? React.createElement(MaterialExternalAdminContent.default, {
30
26
  materialExternalId: materialExternalId,
@@ -12,9 +12,7 @@ const MaterialExternalContent = ({
12
12
  materialExternalId,
13
13
  userId
14
14
  }) => {
15
- const {
16
- intl: intl$1
17
- } = intl.useRawEliceIntl();
15
+ const intl$1 = intl.useRawEliceIntl();
18
16
  const [externalUrl, setExternalUrl] = React.useState('');
19
17
  const [externalGetStatus, setExternalGetStatus] = React.useState('idle');
20
18
  React.useEffect(() => {
@@ -16,9 +16,7 @@ const MaterialExternalContent = ({
16
16
  materialExternalId,
17
17
  courseId
18
18
  }) => {
19
- const {
20
- intl: intl$1
21
- } = intl.useRawEliceIntl();
19
+ const intl$1 = intl.useRawEliceIntl();
22
20
  const {
23
21
  materialExternal,
24
22
  status: externalGetStatus
@@ -11,9 +11,7 @@ var calendar = require('../../assets/calendar.png.js');
11
11
  const MaterialExternalNewWindow = ({
12
12
  materialExternal
13
13
  }) => {
14
- const {
15
- intl: intl$1
16
- } = intl.useRawEliceIntl();
14
+ const intl$1 = intl.useRawEliceIntl();
17
15
  const [isOpenedNewTab, setIsOpenedNewTab] = React.useState(false);
18
16
  //
19
17
  //
@@ -9,9 +9,7 @@ var intl = require('@elice/intl');
9
9
  const MaterialExternalRedirect = ({
10
10
  materialExternal
11
11
  }) => {
12
- const {
13
- intl: intl$1
14
- } = intl.useRawEliceIntl();
12
+ const intl$1 = intl.useRawEliceIntl();
15
13
  //
16
14
  // When displayType is `Redirect`, redirect page after 5 sec.
17
15
  //
@@ -16,11 +16,7 @@ const MaterialExternal = ({
16
16
  __intl
17
17
  }) => {
18
18
  const prefixCls = 'em-material-external';
19
- return React.createElement(RawEliceIntlProvider, {
20
- value: {
21
- intl: __intl
22
- }
23
- }, React.createElement(StyledExternalWrap, {
19
+ return React.createElement(RawEliceIntlProvider, Object.assign({}, __intl), React.createElement(StyledExternalWrap, {
24
20
  className: classnames(prefixCls, className)
25
21
  }, userId ? React.createElement(MaterialExternalContent, {
26
22
  materialExternalId: materialExternalId,
@@ -8,9 +8,7 @@ const MaterialExternalContent = ({
8
8
  materialExternalId,
9
9
  userId
10
10
  }) => {
11
- const {
12
- intl
13
- } = useRawEliceIntl();
11
+ const intl = useRawEliceIntl();
14
12
  const [externalUrl, setExternalUrl] = React.useState('');
15
13
  const [externalGetStatus, setExternalGetStatus] = React.useState('idle');
16
14
  React.useEffect(() => {
@@ -12,9 +12,7 @@ const MaterialExternalContent = ({
12
12
  materialExternalId,
13
13
  courseId
14
14
  }) => {
15
- const {
16
- intl
17
- } = useRawEliceIntl();
15
+ const intl = useRawEliceIntl();
18
16
  const {
19
17
  materialExternal,
20
18
  status: externalGetStatus
@@ -7,9 +7,7 @@ import calendarImage from '../../assets/calendar.png.js';
7
7
  const MaterialExternalNewWindow = ({
8
8
  materialExternal
9
9
  }) => {
10
- const {
11
- intl
12
- } = useRawEliceIntl();
10
+ const intl = useRawEliceIntl();
13
11
  const [isOpenedNewTab, setIsOpenedNewTab] = useState(false);
14
12
  //
15
13
  //
@@ -5,9 +5,7 @@ import { useRawEliceIntl } from '@elice/intl';
5
5
  const MaterialExternalRedirect = ({
6
6
  materialExternal
7
7
  }) => {
8
- const {
9
- intl
10
- } = useRawEliceIntl();
8
+ const intl = useRawEliceIntl();
11
9
  //
12
10
  // When displayType is `Redirect`, redirect page after 5 sec.
13
11
  //
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-external",
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 external",
5
5
  "repository": "https://git.elicer.io/elice/frontend/library/elice-material",
6
6
  "license": "UNLICENSED",
@@ -48,10 +48,10 @@
48
48
  "@elice/design-tokens": "^1.220803.0",
49
49
  "@elice/icons": "^1.230814.0",
50
50
  "@elice/icons-legacy": "npm:@elice/icons@0.230814.0",
51
- "@elice/intl": "0.240425.0-alpha.7",
51
+ "@elice/intl": "0.240425.0-alpha.9",
52
52
  "@elice/markdown": "^1.220815.0",
53
- "@elice/material-shared-types": "1.240508.0-globalization.0",
54
- "@elice/material-shared-utils": "1.240508.0-globalization.0",
53
+ "@elice/material-shared-types": "1.240508.0-globalization.1",
54
+ "@elice/material-shared-utils": "1.240508.0-globalization.1",
55
55
  "@elice/types": "^1.240208.0",
56
56
  "@types/classnames": "^2.3.1",
57
57
  "@types/react": "~17.0.9",
@@ -60,5 +60,5 @@
60
60
  "react-use": "^17.2.4",
61
61
  "styled-components": "^5.3.0"
62
62
  },
63
- "gitHead": "e64474c7cab0b6cb852ba08a2076c88e732eec03"
63
+ "gitHead": "359abc2f14610a96b1c4514aedb4a7d0ad02aed3"
64
64
  }