@elice/material-external 1.260129.0 → 1.260305.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.
@@ -5,6 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _styled = require('@emotion/styled/base');
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
7
  var intl = require('@elice/intl');
8
+ var muiSystem = require('@elice/mui-system');
9
+ var material = require('@mui/material');
8
10
  var classnames = require('classnames');
9
11
  var MaterialExternalAdminContent = require('./MaterialExternalAdminContent.js');
10
12
  var MaterialExternalContent = require('./MaterialExternalContent.js');
@@ -30,6 +32,10 @@ var ExternalContainer = /*#__PURE__*/_styled__default.default("div", {
30
32
  styles: "display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;background-color:#fff",
31
33
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
32
34
  });
35
+ var eliceTheme = muiSystem.createEliceTheme({
36
+ paletteMode: 'light',
37
+ paletteName: 'purple'
38
+ });
33
39
  //
34
40
  //
35
41
  //
@@ -46,19 +52,22 @@ var MaterialExternal = function MaterialExternal(_ref) {
46
52
  var prefixCls = 'em-material-external';
47
53
  return jsxRuntime.jsx(intl.RawEliceIntlProvider, {
48
54
  value: __intl,
49
- children: jsxRuntime.jsx(ExternalContainer, {
50
- className: classnames__default.default(prefixCls, className),
51
- children: userId ? jsxRuntime.jsx(MaterialExternalAdminContent.default, {
52
- materialExternalId: materialExternalId,
53
- courseId: courseId,
54
- userId: userId
55
- }) : jsxRuntime.jsx(MaterialExternalContent.default, {
56
- materialExternalId: materialExternalId,
57
- courseId: courseId,
58
- hasNextLecturePage: hasNextLecturePage,
59
- hasPreviousLecturePage: hasPreviousLecturePage,
60
- onNavigateNextLecturePage: onNavigateNextLecturePage,
61
- onNavigatePreviousLecturePage: onNavigatePreviousLecturePage
55
+ children: jsxRuntime.jsx(material.ThemeProvider, {
56
+ theme: eliceTheme,
57
+ children: jsxRuntime.jsx(ExternalContainer, {
58
+ className: classnames__default.default(prefixCls, className),
59
+ children: userId ? jsxRuntime.jsx(MaterialExternalAdminContent.default, {
60
+ materialExternalId: materialExternalId,
61
+ courseId: courseId,
62
+ userId: userId
63
+ }) : jsxRuntime.jsx(MaterialExternalContent.default, {
64
+ materialExternalId: materialExternalId,
65
+ courseId: courseId,
66
+ hasNextLecturePage: hasNextLecturePage,
67
+ hasPreviousLecturePage: hasPreviousLecturePage,
68
+ onNavigateNextLecturePage: onNavigateNextLecturePage,
69
+ onNavigatePreviousLecturePage: onNavigatePreviousLecturePage
70
+ })
62
71
  })
63
72
  })
64
73
  });
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var messageEn = {"external.status.rejected":"It's a {_termLibraryCourse} that doesn't exist.","external.loader.redirect.description":"Redirecting to lecture {_termLibraryLecturePage} in 5 seconds.","external.loader.newWindow.description":"A new tab will open after 5 seconds.","external.newWindow.title":"{_termLibraryLecturePage} has opened in a new tab.","external.newWindow.description":"If pop-ups are blocked, Please click the button below to reopen it.","external.newWindow.button.label":"Open {_termLibraryLecturePage}","external.notSupported":"The {_termLibraryLecturePage} is no longer available for learning or support."};
5
+ var messageEn = {"external.status.rejected":"It's a {_termLibraryCourse} that doesn't exist.","external.loader.redirect.description":"Redirecting to lecture {_termLibraryLecturePage} in 5 seconds.","external.loader.newWindow.description":"A new tab will open after 5 seconds.","external.newWindow.title":"Check {_termLibraryLecturePage} in a new tab.","external.newWindow.description":"If the new tab doesn't open automatically, please click the button below to open it.","external.newWindow.button.label":"Open {_termLibraryLecturePage}","external.notSupported":"The {_termLibraryLecturePage} is no longer available for learning or support."};
6
6
 
7
7
  exports.default = messageEn;
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var ja = {"external.status.rejected":"存在しない {_termLibraryCourse} です。","external.loader.redirect.description":"5秒で{_termLibraryLecturePage}の講義ページにリダイレクトします。","external.loader.newWindow.description":"5秒後に新しいタブが開きます。","external.newWindow.title":"{_termLibraryLecturePage} が新しいタブで開きました。","external.newWindow.description":"ポップアップがブロックされている場合は、再度開くために以下のボタンをクリックしてください。","external.newWindow.button.label":"{_termLibraryLecturePage}を開いてください。","external.notSupported":"この{_termLibraryLecturePage}は、学習およびサポートが終了しています。"};
5
+ var ja = {"external.status.rejected":"存在しない {_termLibraryCourse} です。","external.loader.redirect.description":"5秒で{_termLibraryLecturePage}の講義ページにリダイレクトします。","external.loader.newWindow.description":"5秒後に新しいタブが開きます。","external.newWindow.title":"{_termLibraryLecturePage}を新しいタブで確認してください。","external.newWindow.description":"新しいタブが自動的に開かない場合は、下のボタンをクリックしてください。","external.newWindow.button.label":"{_termLibraryLecturePage}を開く","external.notSupported":"この{_termLibraryLecturePage}は、学習およびサポートが終了しています。"};
6
6
 
7
7
  exports.default = ja;
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var messageKo = {"external.status.rejected":"존재하지 않는 {_termLibraryCourse}입니다.","external.loader.redirect.description":"5초 뒤에 학습{_termLibraryLecturePage}로 이동합니다.","external.loader.newWindow.description":"5초 뒤에 새 탭이 열립니다.","external.newWindow.title":"새 탭에서 학습 {_termLibraryLecturePage}가 열렸습니다.","external.newWindow.description":"팝업이 차단되어 있으면 열리지 않을 수 있습니다. 아래 버튼을 클릭해 다시 열어주세요.","external.newWindow.button.label":"학습 {_termLibraryLecturePage} 열기","external.notSupported":"해당 {_termLibraryLecturePage}는 더 이상 학습 및 지원되지 않습니다."};
5
+ var messageKo = {"external.status.rejected":"존재하지 않는 {_termLibraryCourse}입니다.","external.loader.redirect.description":"5초 뒤에 학습{_termLibraryLecturePage}로 이동합니다.","external.loader.newWindow.description":"5초 뒤에 새 탭이 열립니다.","external.newWindow.title":"{_termLibraryLecturePage}를 새 탭에서 확인하세요.","external.newWindow.description":"새 탭이 자동으로 열리지 않았다면, 아래 버튼을 클릭해 주세요.","external.newWindow.button.label":"{_termLibraryLecturePage} 열기","external.notSupported":"해당 {_termLibraryLecturePage}는 더 이상 학습 및 지원되지 않습니다."};
6
6
 
7
7
  exports.default = messageKo;
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var th = {"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}","external.notSupported":"{_termLibraryLecturePage} นี้ไม่รองรับการเรียนรู้หรือการสนับสนุนอีกต่อไป"};
5
+ var th = {"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} เปิด","external.notSupported":"{_termLibraryLecturePage} นี้ไม่รองรับการเรียนรู้หรือการสนับสนุนอีกต่อไป"};
6
6
 
7
7
  exports.default = th;
@@ -1,6 +1,8 @@
1
1
  import _styled from '@emotion/styled/base';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { IntlComponentBuilder, RawEliceIntlProvider } from '@elice/intl';
4
+ import { createEliceTheme } from '@elice/mui-system';
5
+ import { ThemeProvider } from '@mui/material';
4
6
  import classnames from 'classnames';
5
7
  import MaterialExternalAdminContent from './MaterialExternalAdminContent.js';
6
8
  import MaterialExternalContent from './MaterialExternalContent.js';
@@ -21,6 +23,10 @@ var ExternalContainer = /*#__PURE__*/_styled("div", {
21
23
  styles: "display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;background-color:#fff",
22
24
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
23
25
  });
26
+ var eliceTheme = createEliceTheme({
27
+ paletteMode: 'light',
28
+ paletteName: 'purple'
29
+ });
24
30
  //
25
31
  //
26
32
  //
@@ -37,19 +43,22 @@ var MaterialExternal = function MaterialExternal(_ref) {
37
43
  var prefixCls = 'em-material-external';
38
44
  return jsx(RawEliceIntlProvider, {
39
45
  value: __intl,
40
- children: jsx(ExternalContainer, {
41
- className: classnames(prefixCls, className),
42
- children: userId ? jsx(MaterialExternalAdminContent, {
43
- materialExternalId: materialExternalId,
44
- courseId: courseId,
45
- userId: userId
46
- }) : jsx(MaterialExternalContent, {
47
- materialExternalId: materialExternalId,
48
- courseId: courseId,
49
- hasNextLecturePage: hasNextLecturePage,
50
- hasPreviousLecturePage: hasPreviousLecturePage,
51
- onNavigateNextLecturePage: onNavigateNextLecturePage,
52
- onNavigatePreviousLecturePage: onNavigatePreviousLecturePage
46
+ children: jsx(ThemeProvider, {
47
+ theme: eliceTheme,
48
+ children: jsx(ExternalContainer, {
49
+ className: classnames(prefixCls, className),
50
+ children: userId ? jsx(MaterialExternalAdminContent, {
51
+ materialExternalId: materialExternalId,
52
+ courseId: courseId,
53
+ userId: userId
54
+ }) : jsx(MaterialExternalContent, {
55
+ materialExternalId: materialExternalId,
56
+ courseId: courseId,
57
+ hasNextLecturePage: hasNextLecturePage,
58
+ hasPreviousLecturePage: hasPreviousLecturePage,
59
+ onNavigateNextLecturePage: onNavigateNextLecturePage,
60
+ onNavigatePreviousLecturePage: onNavigatePreviousLecturePage
61
+ })
53
62
  })
54
63
  })
55
64
  });
@@ -1,3 +1,3 @@
1
- var messageEn = {"external.status.rejected":"It's a {_termLibraryCourse} that doesn't exist.","external.loader.redirect.description":"Redirecting to lecture {_termLibraryLecturePage} in 5 seconds.","external.loader.newWindow.description":"A new tab will open after 5 seconds.","external.newWindow.title":"{_termLibraryLecturePage} has opened in a new tab.","external.newWindow.description":"If pop-ups are blocked, Please click the button below to reopen it.","external.newWindow.button.label":"Open {_termLibraryLecturePage}","external.notSupported":"The {_termLibraryLecturePage} is no longer available for learning or support."};
1
+ var messageEn = {"external.status.rejected":"It's a {_termLibraryCourse} that doesn't exist.","external.loader.redirect.description":"Redirecting to lecture {_termLibraryLecturePage} in 5 seconds.","external.loader.newWindow.description":"A new tab will open after 5 seconds.","external.newWindow.title":"Check {_termLibraryLecturePage} in a new tab.","external.newWindow.description":"If the new tab doesn't open automatically, please click the button below to open it.","external.newWindow.button.label":"Open {_termLibraryLecturePage}","external.notSupported":"The {_termLibraryLecturePage} is no longer available for learning or support."};
2
2
 
3
3
  export { messageEn as default };
@@ -1,3 +1,3 @@
1
- var ja = {"external.status.rejected":"存在しない {_termLibraryCourse} です。","external.loader.redirect.description":"5秒で{_termLibraryLecturePage}の講義ページにリダイレクトします。","external.loader.newWindow.description":"5秒後に新しいタブが開きます。","external.newWindow.title":"{_termLibraryLecturePage} が新しいタブで開きました。","external.newWindow.description":"ポップアップがブロックされている場合は、再度開くために以下のボタンをクリックしてください。","external.newWindow.button.label":"{_termLibraryLecturePage}を開いてください。","external.notSupported":"この{_termLibraryLecturePage}は、学習およびサポートが終了しています。"};
1
+ var ja = {"external.status.rejected":"存在しない {_termLibraryCourse} です。","external.loader.redirect.description":"5秒で{_termLibraryLecturePage}の講義ページにリダイレクトします。","external.loader.newWindow.description":"5秒後に新しいタブが開きます。","external.newWindow.title":"{_termLibraryLecturePage}を新しいタブで確認してください。","external.newWindow.description":"新しいタブが自動的に開かない場合は、下のボタンをクリックしてください。","external.newWindow.button.label":"{_termLibraryLecturePage}を開く","external.notSupported":"この{_termLibraryLecturePage}は、学習およびサポートが終了しています。"};
2
2
 
3
3
  export { ja as default };
@@ -1,3 +1,3 @@
1
- var messageKo = {"external.status.rejected":"존재하지 않는 {_termLibraryCourse}입니다.","external.loader.redirect.description":"5초 뒤에 학습{_termLibraryLecturePage}로 이동합니다.","external.loader.newWindow.description":"5초 뒤에 새 탭이 열립니다.","external.newWindow.title":"새 탭에서 학습 {_termLibraryLecturePage}가 열렸습니다.","external.newWindow.description":"팝업이 차단되어 있으면 열리지 않을 수 있습니다. 아래 버튼을 클릭해 다시 열어주세요.","external.newWindow.button.label":"학습 {_termLibraryLecturePage} 열기","external.notSupported":"해당 {_termLibraryLecturePage}는 더 이상 학습 및 지원되지 않습니다."};
1
+ var messageKo = {"external.status.rejected":"존재하지 않는 {_termLibraryCourse}입니다.","external.loader.redirect.description":"5초 뒤에 학습{_termLibraryLecturePage}로 이동합니다.","external.loader.newWindow.description":"5초 뒤에 새 탭이 열립니다.","external.newWindow.title":"{_termLibraryLecturePage}를 새 탭에서 확인하세요.","external.newWindow.description":"새 탭이 자동으로 열리지 않았다면, 아래 버튼을 클릭해 주세요.","external.newWindow.button.label":"{_termLibraryLecturePage} 열기","external.notSupported":"해당 {_termLibraryLecturePage}는 더 이상 학습 및 지원되지 않습니다."};
2
2
 
3
3
  export { messageKo as default };
@@ -1,3 +1,3 @@
1
- var th = {"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}","external.notSupported":"{_termLibraryLecturePage} นี้ไม่รองรับการเรียนรู้หรือการสนับสนุนอีกต่อไป"};
1
+ var th = {"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} เปิด","external.notSupported":"{_termLibraryLecturePage} นี้ไม่รองรับการเรียนรู้หรือการสนับสนุนอีกต่อไป"};
2
2
 
3
3
  export { th as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-external",
3
- "version": "1.260129.0",
3
+ "version": "1.260305.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",
@@ -25,8 +25,8 @@
25
25
  "peerDependencies": {
26
26
  "@elice/api-client": "^1",
27
27
  "@elice/intl": "^0",
28
- "@elice/material-shared-types": "1.260129.0",
29
- "@elice/material-shared-utils": "1.260129.0",
28
+ "@elice/material-shared-types": "1.260305.0",
29
+ "@elice/material-shared-utils": "1.260305.0",
30
30
  "@elice/mui-elements": "^5",
31
31
  "@elice/mui-system": "^5",
32
32
  "@elice/types": "^1",
@@ -47,10 +47,10 @@
47
47
  "tslib": "^2.6.1"
48
48
  },
49
49
  "devDependencies": {
50
- "@elice/api-client": "^1.250702.0",
50
+ "@elice/api-client": "^1.260212.0",
51
51
  "@elice/intl": "0.241127.0",
52
- "@elice/material-shared-types": "1.260129.0",
53
- "@elice/material-shared-utils": "1.260129.0",
52
+ "@elice/material-shared-types": "1.260305.0",
53
+ "@elice/material-shared-utils": "1.260305.0",
54
54
  "@elice/mui-elements": "5.251204.0",
55
55
  "@elice/mui-system": "5.251204.0",
56
56
  "@elice/types": "^1.251229.0",