@elice/material-external 1.241217.0-ai.4 → 1.241220.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.
@@ -28,6 +28,7 @@ var MaterialExternal = function MaterialExternal(_ref) {
28
28
  className: classnames__default.default(prefixCls, className),
29
29
  children: userId ? jsxRuntime.jsx(MaterialExternalAdminContent.default, {
30
30
  materialExternalId: materialExternalId,
31
+ courseId: courseId,
31
32
  userId: userId
32
33
  }) : jsxRuntime.jsx(MaterialExternalContent.default, {
33
34
  materialExternalId: materialExternalId,
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  export interface MaterialExternalContentProps {
3
3
  materialExternalId: number;
4
4
  userId: number;
5
+ courseId?: number;
5
6
  }
6
7
  declare const MaterialExternalContent: React.FC<MaterialExternalContentProps>;
7
8
  export default MaterialExternalContent;
@@ -16,7 +16,8 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
16
16
 
17
17
  var MaterialExternalContent = function MaterialExternalContent(_ref) {
18
18
  var materialExternalId = _ref.materialExternalId,
19
- userId = _ref.userId;
19
+ userId = _ref.userId,
20
+ courseId = _ref.courseId;
20
21
  var intl$1 = intl.useRawEliceIntl();
21
22
  var _React$useState = React__default.default.useState(''),
22
23
  _React$useState2 = _rollupPluginBabelHelpers.slicedToArray(_React$useState, 2),
@@ -56,7 +57,8 @@ var MaterialExternalContent = function MaterialExternalContent(_ref) {
56
57
  id: materialExternalId,
57
58
  title: 'External Admin',
58
59
  externalUrl: externalUrl
59
- }
60
+ },
61
+ courseId: courseId
60
62
  });
61
63
  };
62
64
 
@@ -20,6 +20,7 @@ var MaterialExternal = function MaterialExternal(_ref) {
20
20
  className: classnames(prefixCls, className),
21
21
  children: userId ? jsx(MaterialExternalContent, {
22
22
  materialExternalId: materialExternalId,
23
+ courseId: courseId,
23
24
  userId: userId
24
25
  }) : jsx(MaterialExternalContent$1, {
25
26
  materialExternalId: materialExternalId,
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  export interface MaterialExternalContentProps {
3
3
  materialExternalId: number;
4
4
  userId: number;
5
+ courseId?: number;
5
6
  }
6
7
  declare const MaterialExternalContent: React.FC<MaterialExternalContentProps>;
7
8
  export default MaterialExternalContent;
@@ -8,7 +8,8 @@ import MaterialExternalIframe from './MaterialExternalIframe.js';
8
8
 
9
9
  var MaterialExternalContent = function MaterialExternalContent(_ref) {
10
10
  var materialExternalId = _ref.materialExternalId,
11
- userId = _ref.userId;
11
+ userId = _ref.userId,
12
+ courseId = _ref.courseId;
12
13
  var intl = useRawEliceIntl();
13
14
  var _React$useState = React.useState(''),
14
15
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -48,7 +49,8 @@ var MaterialExternalContent = function MaterialExternalContent(_ref) {
48
49
  id: materialExternalId,
49
50
  title: 'External Admin',
50
51
  externalUrl: externalUrl
51
- }
52
+ },
53
+ courseId: courseId
52
54
  });
53
55
  };
54
56
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-external",
3
- "version": "1.241217.0-ai.4",
3
+ "version": "1.241220.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",
@@ -41,16 +41,16 @@
41
41
  "tslib": "^2.6.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@elice/api-client": "^1.241216.0-ai.0",
44
+ "@elice/api-client": "^1.241220.0",
45
45
  "@elice/blocks": "1.241007.0",
46
46
  "@elice/design-tokens": "^1.220803.0",
47
47
  "@elice/icons": "^1.230814.0",
48
48
  "@elice/icons-legacy": "npm:@elice/icons@0.230814.0",
49
49
  "@elice/intl": "0.241127.0",
50
50
  "@elice/markdown": "1.241015.0",
51
- "@elice/material-shared-types": "1.241217.0-ai.4",
52
- "@elice/material-shared-utils": "1.241217.0-ai.4",
53
- "@elice/types": "1.241217.0-ai.0",
51
+ "@elice/material-shared-types": "1.241220.0",
52
+ "@elice/material-shared-utils": "1.241220.0",
53
+ "@elice/types": "1.241220.0",
54
54
  "@types/classnames": "^2.3.1",
55
55
  "@types/react": "~17.0.9",
56
56
  "@types/styled-components": "^5.1.21",