@elice/material-external 1.240508.0-globalization.0 → 1.240514.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.
- package/cjs/components/material-external/MaterialExternal.js +1 -5
- package/cjs/components/material-external/MaterialExternalAdminContent.js +1 -3
- package/cjs/components/material-external/MaterialExternalContent.js +1 -3
- package/cjs/components/material-external/MaterialExternalNewWindow.js +1 -3
- package/cjs/components/material-external/MaterialExternalRedirect.js +1 -3
- package/cjs/components/material-external/locales/th.json.js +1 -1
- package/es/components/material-external/MaterialExternal.js +1 -5
- package/es/components/material-external/MaterialExternalAdminContent.js +1 -3
- package/es/components/material-external/MaterialExternalContent.js +1 -3
- package/es/components/material-external/MaterialExternalNewWindow.js +1 -3
- package/es/components/material-external/MaterialExternalRedirect.js +1 -3
- package/es/components/material-external/locales/th.json.js +1 -1
- package/package.json +6 -6
|
@@ -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(() => {
|
|
@@ -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
|
//
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var messageTh = {"external.status.rejected":"
|
|
5
|
+
var messageTh = {"external.status.rejected":"มันเป็น {_termLibraryCourse} ที่ไม่มีอยู่จริง","external.loader.redirect.description":"กำลังเปลี่ยนเส้นทางไปยังบรรยาย {_termLibraryLecturePage} ใน 5 วินาที","external.loader.newWindow.description":"แท็บใหม่จะเปิดหลังจาก 5 วินาที","external.newWindow.title":"{_termLibraryLecturePage} เปิดในแท็บใหม่แล้ว","external.newWindow.description":"หากหน้าต่างป๊อปอัพถูกบล็อก กรุณาคลิกที่ปุ่มด้านล่างเพื่อเปิดใหม่","external.newWindow.button.label":"เปิด {_termLibraryLecturePage}"};
|
|
6
6
|
|
|
7
7
|
exports.default = messageTh;
|
|
@@ -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(() => {
|
|
@@ -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
|
//
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var messageTh = {"external.status.rejected":"
|
|
1
|
+
var messageTh = {"external.status.rejected":"มันเป็น {_termLibraryCourse} ที่ไม่มีอยู่จริง","external.loader.redirect.description":"กำลังเปลี่ยนเส้นทางไปยังบรรยาย {_termLibraryLecturePage} ใน 5 วินาที","external.loader.newWindow.description":"แท็บใหม่จะเปิดหลังจาก 5 วินาที","external.newWindow.title":"{_termLibraryLecturePage} เปิดในแท็บใหม่แล้ว","external.newWindow.description":"หากหน้าต่างป๊อปอัพถูกบล็อก กรุณาคลิกที่ปุ่มด้านล่างเพื่อเปิดใหม่","external.newWindow.button.label":"เปิด {_termLibraryLecturePage}"};
|
|
2
2
|
|
|
3
3
|
export { messageTh as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elice/material-external",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.240514.0",
|
|
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",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@elice/api-client": "^1.230926.0",
|
|
47
|
-
"@elice/blocks": "^1.
|
|
47
|
+
"@elice/blocks": "^1.240514.0",
|
|
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-
|
|
51
|
+
"@elice/intl": "0.240425.0-rc.0",
|
|
52
52
|
"@elice/markdown": "^1.220815.0",
|
|
53
|
-
"@elice/material-shared-types": "1.
|
|
54
|
-
"@elice/material-shared-utils": "1.
|
|
53
|
+
"@elice/material-shared-types": "1.240514.0",
|
|
54
|
+
"@elice/material-shared-utils": "1.240514.0",
|
|
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": "
|
|
63
|
+
"gitHead": "04c7bc30a433e053218d63dedf81d76aa0fe251f"
|
|
64
64
|
}
|