@elice/material-external 1.220803.0 → 1.220803.2
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.styled.js +1 -1
- package/cjs/components/material-external/MaterialExternalIframe.js +1 -1
- package/cjs/components/material-external/MaterialExternalNewWindow.js +11 -4
- package/cjs/components/material-external/MaterialExternalRedirect.js +1 -1
- package/es/components/material-external/MaterialExternal.styled.js +1 -1
- package/es/components/material-external/MaterialExternalIframe.js +1 -1
- package/es/components/material-external/MaterialExternalNewWindow.js +11 -4
- package/es/components/material-external/MaterialExternalRedirect.js +1 -1
- package/package.json +6 -6
|
@@ -11,7 +11,7 @@ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
|
11
11
|
|
|
12
12
|
const StyledExternalWrap = styled__default["default"].div.withConfig({
|
|
13
13
|
componentId: "sc-k32tl5-0"
|
|
14
|
-
})(["display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;background-color:", ";"], designTokens.base.color.
|
|
14
|
+
})(["display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;background-color:", ";"], designTokens.base.color.white);
|
|
15
15
|
const StyledExternalDisplay = styled__default["default"].iframe.withConfig({
|
|
16
16
|
componentId: "sc-k32tl5-1"
|
|
17
17
|
})(["width:100%;height:100%;border:0;"]);
|
|
@@ -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.
|
|
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
|
-
|
|
50
|
-
|
|
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.
|
|
19
|
+
window.location.href = materialExternal.externalUrl;
|
|
20
20
|
}, 5000);
|
|
21
21
|
return () => {
|
|
22
22
|
window.clearTimeout(timeoutId);
|
|
@@ -3,7 +3,7 @@ import styled from 'styled-components';
|
|
|
3
3
|
|
|
4
4
|
const StyledExternalWrap = styled.div.withConfig({
|
|
5
5
|
componentId: "sc-k32tl5-0"
|
|
6
|
-
})(["display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;background-color:", ";"], base.color.
|
|
6
|
+
})(["display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;background-color:", ";"], base.color.white);
|
|
7
7
|
const StyledExternalDisplay = styled.iframe.withConfig({
|
|
8
8
|
componentId: "sc-k32tl5-1"
|
|
9
9
|
})(["width:100%;height:100%;border:0;"]);
|
|
@@ -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.
|
|
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
|
-
|
|
44
|
-
|
|
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.
|
|
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.
|
|
3
|
+
"version": "1.220803.2",
|
|
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.
|
|
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.
|
|
57
|
-
"@elice/material-shared-utils": "1.220803.
|
|
58
|
-
"@elice/types": "^1.
|
|
56
|
+
"@elice/material-shared-types": "1.220803.2",
|
|
57
|
+
"@elice/material-shared-utils": "1.220803.2",
|
|
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": "
|
|
67
|
+
"gitHead": "89701c3f2b7ce26d5e3141d5fe5bba343c7a6396"
|
|
68
68
|
}
|