@elice/material-external 1.220803.0 → 1.220803.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.
@@ -12,7 +12,7 @@ const MaterialExternalIframe = ({
12
12
  }) => {
13
13
  return React__default["default"].createElement(MaterialExternal_styled.StyledExternalDisplay, {
14
14
  title: materialExternal.title,
15
- src: materialExternal.url
15
+ src: materialExternal.externalUrl
16
16
  });
17
17
  };
18
18
 
@@ -13,16 +13,23 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
13
13
  const MaterialExternalNewWindow = ({
14
14
  materialExternal
15
15
  }) => {
16
- const [isOpenedNewTab, setIsOpenedNewTab] = React.useState(false);
16
+ const [isOpenedNewTab, setIsOpenedNewTab] = React.useState(false); //
17
+ //
18
+ //
19
+
17
20
  React__default["default"].useEffect(() => {
18
21
  const timeoutId = window.setTimeout(() => {
19
- window.open(materialExternal.url);
22
+ window.open(materialExternal.externalUrl);
20
23
  setIsOpenedNewTab(true);
21
24
  }, 5000);
22
25
  return () => {
23
26
  window.clearTimeout(timeoutId);
24
27
  };
25
28
  }, [materialExternal]);
29
+ /**
30
+ *
31
+ */
32
+
26
33
  const newTabReOpenContentPage = React__default["default"].createElement(React__default["default"].Fragment, null, React__default["default"].createElement(blocks.SafeImage, {
27
34
  src: calendar,
28
35
  width: "8rem",
@@ -46,8 +53,8 @@ const MaterialExternalNewWindow = ({
46
53
  })), React__default["default"].createElement(blocks.Vspace, {
47
54
  height: 2
48
55
  }), React__default["default"].createElement(blocks.Button, {
49
- onClick: () => window.open(materialExternal === null || materialExternal === void 0 ? void 0 : materialExternal.url),
50
- size: "small"
56
+ size: "small",
57
+ onClick: () => window.open(materialExternal === null || materialExternal === void 0 ? void 0 : materialExternal.externalUrl)
51
58
  }, React__default["default"].createElement(blocks.Text, {
52
59
  size: "small",
53
60
  customStyles: {
@@ -16,7 +16,7 @@ const MaterialExternalRedirect = ({
16
16
  //
17
17
  React__default["default"].useEffect(() => {
18
18
  const timeoutId = window.setTimeout(() => {
19
- window.location.href = materialExternal.url;
19
+ window.location.href = materialExternal.externalUrl;
20
20
  }, 5000);
21
21
  return () => {
22
22
  window.clearTimeout(timeoutId);
@@ -6,7 +6,7 @@ const MaterialExternalIframe = ({
6
6
  }) => {
7
7
  return React.createElement(StyledExternalDisplay, {
8
8
  title: materialExternal.title,
9
- src: materialExternal.url
9
+ src: materialExternal.externalUrl
10
10
  });
11
11
  };
12
12
 
@@ -7,16 +7,23 @@ import calendarImage from '../../assets/calendar.png.js';
7
7
  const MaterialExternalNewWindow = ({
8
8
  materialExternal
9
9
  }) => {
10
- const [isOpenedNewTab, setIsOpenedNewTab] = useState(false);
10
+ const [isOpenedNewTab, setIsOpenedNewTab] = useState(false); //
11
+ //
12
+ //
13
+
11
14
  React.useEffect(() => {
12
15
  const timeoutId = window.setTimeout(() => {
13
- window.open(materialExternal.url);
16
+ window.open(materialExternal.externalUrl);
14
17
  setIsOpenedNewTab(true);
15
18
  }, 5000);
16
19
  return () => {
17
20
  window.clearTimeout(timeoutId);
18
21
  };
19
22
  }, [materialExternal]);
23
+ /**
24
+ *
25
+ */
26
+
20
27
  const newTabReOpenContentPage = React.createElement(React.Fragment, null, React.createElement(SafeImage, {
21
28
  src: calendarImage,
22
29
  width: "8rem",
@@ -40,8 +47,8 @@ const MaterialExternalNewWindow = ({
40
47
  })), React.createElement(Vspace, {
41
48
  height: 2
42
49
  }), React.createElement(Button, {
43
- onClick: () => window.open(materialExternal === null || materialExternal === void 0 ? void 0 : materialExternal.url),
44
- size: "small"
50
+ size: "small",
51
+ onClick: () => window.open(materialExternal === null || materialExternal === void 0 ? void 0 : materialExternal.externalUrl)
45
52
  }, React.createElement(Text, {
46
53
  size: "small",
47
54
  customStyles: {
@@ -10,7 +10,7 @@ const MaterialExternalRedirect = ({
10
10
  //
11
11
  React.useEffect(() => {
12
12
  const timeoutId = window.setTimeout(() => {
13
- window.location.href = materialExternal.url;
13
+ window.location.href = materialExternal.externalUrl;
14
14
  }, 5000);
15
15
  return () => {
16
16
  window.clearTimeout(timeoutId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-external",
3
- "version": "1.220803.0",
3
+ "version": "1.220803.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",
@@ -36,7 +36,7 @@
36
36
  "@elice/markdown": "^1.220803.0",
37
37
  "@elice/material-shared-types": "22.7.2-1",
38
38
  "@elice/material-shared-utils": "22.7.2-1",
39
- "@elice/types": "^1.220802.1",
39
+ "@elice/types": "^1.220803.0",
40
40
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
41
41
  "react-intl": "^5.0.0",
42
42
  "react-use": "^17.0.0",
@@ -53,9 +53,9 @@
53
53
  "@elice/icons": "^1.220803.0",
54
54
  "@elice/icons-legacy": "npm:@elice/icons@0.220803.1",
55
55
  "@elice/markdown": "^1.220803.0",
56
- "@elice/material-shared-types": "1.220803.0",
57
- "@elice/material-shared-utils": "1.220803.0",
58
- "@elice/types": "^1.220802.1",
56
+ "@elice/material-shared-types": "1.220803.1",
57
+ "@elice/material-shared-utils": "1.220803.1",
58
+ "@elice/types": "^1.220803.0",
59
59
  "@types/classnames": "^2.3.1",
60
60
  "@types/react": "~17.0.9",
61
61
  "@types/styled-components": "^5.1.21",
@@ -64,5 +64,5 @@
64
64
  "react-use": "^17.2.4",
65
65
  "styled-components": "^5.3.0"
66
66
  },
67
- "gitHead": "21c6b42ae6550e7899c57bf39fa78cea0f47e64c"
67
+ "gitHead": "1264f618125350c19b72033147fd51d95b027d3c"
68
68
  }