@etsoo/react 1.5.22 → 1.5.25
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.
|
@@ -15,7 +15,9 @@ export function BridgeCloseButton(props) {
|
|
|
15
15
|
: globalApp.get('close'), validate, ...rest } = props;
|
|
16
16
|
// Host
|
|
17
17
|
const host = BridgeUtils.host;
|
|
18
|
-
if (host == null ||
|
|
18
|
+
if (host == null ||
|
|
19
|
+
!host.closable() ||
|
|
20
|
+
(validate && validate(host) === false)) {
|
|
19
21
|
return React.createElement(React.Fragment, null);
|
|
20
22
|
}
|
|
21
23
|
// Click handler
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/react",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.25",
|
|
4
4
|
"description": "TypeScript ReactJs framework",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"@emotion/react": "^11.8.1",
|
|
51
51
|
"@emotion/style": "^0.8.0",
|
|
52
52
|
"@emotion/styled": "^11.8.1",
|
|
53
|
-
"@etsoo/appscript": "^1.2.
|
|
53
|
+
"@etsoo/appscript": "^1.2.55",
|
|
54
54
|
"@etsoo/notificationbase": "^1.1.1",
|
|
55
55
|
"@etsoo/shared": "^1.1.11",
|
|
56
56
|
"@mui/icons-material": "^5.4.2",
|
|
57
|
-
"@mui/material": "^5.4.
|
|
57
|
+
"@mui/material": "^5.4.3",
|
|
58
58
|
"@reach/router": "^1.3.4",
|
|
59
59
|
"@types/pica": "^9.0.0",
|
|
60
60
|
"@types/pulltorefreshjs": "^0.1.5",
|
|
@@ -76,19 +76,19 @@
|
|
|
76
76
|
"react-window": "^1.8.6"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@babel/cli": "^7.17.
|
|
79
|
+
"@babel/cli": "^7.17.6",
|
|
80
80
|
"@babel/core": "^7.17.5",
|
|
81
81
|
"@babel/plugin-transform-runtime": "^7.17.0",
|
|
82
82
|
"@babel/preset-env": "^7.16.11",
|
|
83
83
|
"@babel/runtime-corejs3": "^7.17.2",
|
|
84
|
-
"@types/jest": "^27.4.
|
|
84
|
+
"@types/jest": "^27.4.1",
|
|
85
85
|
"@types/react-test-renderer": "^17.0.1",
|
|
86
|
-
"@typescript-eslint/eslint-plugin": "^5.12.
|
|
87
|
-
"@typescript-eslint/parser": "^5.12.
|
|
88
|
-
"eslint": "^8.
|
|
86
|
+
"@typescript-eslint/eslint-plugin": "^5.12.1",
|
|
87
|
+
"@typescript-eslint/parser": "^5.12.1",
|
|
88
|
+
"eslint": "^8.10.0",
|
|
89
89
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
90
90
|
"eslint-plugin-import": "^2.25.4",
|
|
91
|
-
"eslint-plugin-react": "^7.
|
|
91
|
+
"eslint-plugin-react": "^7.29.1",
|
|
92
92
|
"jest": "^27.5.1",
|
|
93
93
|
"react-test-renderer": "^17.0.2",
|
|
94
94
|
"ts-jest": "^27.1.3",
|
|
@@ -40,7 +40,11 @@ export function BridgeCloseButton(props: BridgeCloseButtonProps) {
|
|
|
40
40
|
// Host
|
|
41
41
|
const host = BridgeUtils.host;
|
|
42
42
|
|
|
43
|
-
if (
|
|
43
|
+
if (
|
|
44
|
+
host == null ||
|
|
45
|
+
!host.closable() ||
|
|
46
|
+
(validate && validate(host) === false)
|
|
47
|
+
) {
|
|
44
48
|
return <React.Fragment />;
|
|
45
49
|
}
|
|
46
50
|
|