@pushwoosh/single-spa 0.2.4 → 0.2.6
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/createApplicationFunction.js +23 -1
- package/package.json +2 -2
|
@@ -20,7 +20,29 @@ export function createApplicationFunction(Comp) {
|
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
22
|
if (this.state.hasError) {
|
|
23
|
-
return React.createElement("div",
|
|
23
|
+
return React.createElement("div", {
|
|
24
|
+
style: {
|
|
25
|
+
display: 'flex',
|
|
26
|
+
flexDirection: 'column',
|
|
27
|
+
alignItems: 'center',
|
|
28
|
+
justifyContent: 'center',
|
|
29
|
+
maxWidth: 520,
|
|
30
|
+
margin: '64px auto',
|
|
31
|
+
padding: 24,
|
|
32
|
+
textAlign: 'center'
|
|
33
|
+
}
|
|
34
|
+
}, React.createElement("h2", {
|
|
35
|
+
style: {
|
|
36
|
+
margin: '0 0 8px',
|
|
37
|
+
fontSize: 20,
|
|
38
|
+
fontWeight: 500
|
|
39
|
+
}
|
|
40
|
+
}, "Something went wrong"), React.createElement("p", {
|
|
41
|
+
style: {
|
|
42
|
+
margin: 0,
|
|
43
|
+
color: '#7C8595'
|
|
44
|
+
}
|
|
45
|
+
}, "Please refresh the page or try again later."));
|
|
24
46
|
}
|
|
25
47
|
return React.createElement(SPAContextProvider, {
|
|
26
48
|
value: this.props.spaContext
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pushwoosh/single-spa",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "React component for build Pushwoosh products",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"node": ">= 18"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@pushwoosh/spa-context": "^1.
|
|
34
|
+
"@pushwoosh/spa-context": "^1.5.0",
|
|
35
35
|
"single-spa": "^5.9.5",
|
|
36
36
|
"single-spa-react": "^6.0.2"
|
|
37
37
|
}
|