@alicloud/alfa-react 1.5.1-alpha.2 → 1.5.1-alpha.3
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/es/components/ErrorBoundary/ErrorPanel.js +1 -1
- package/es/createApplication.js +3 -0
- package/es/version.js +1 -1
- package/lib/components/ErrorBoundary/ErrorPanel.js +1 -1
- package/lib/createApplication.js +3 -0
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/types/version.d.ts +1 -1
|
@@ -2,11 +2,11 @@ import React from 'react';
|
|
|
2
2
|
var padding = 24;
|
|
3
3
|
var containerBackground = '#fcebea';
|
|
4
4
|
var containerStyle = {
|
|
5
|
+
display: 'none',
|
|
5
6
|
background: containerBackground,
|
|
6
7
|
padding: padding
|
|
7
8
|
};
|
|
8
9
|
var commonErrorStyle = {
|
|
9
|
-
display: 'none',
|
|
10
10
|
lineHeight: '22px',
|
|
11
11
|
color: '#d93026',
|
|
12
12
|
fontSize: 14
|
package/es/createApplication.js
CHANGED
|
@@ -192,6 +192,7 @@ export default function createApplication(loader) {
|
|
|
192
192
|
};
|
|
193
193
|
|
|
194
194
|
// 受控模式下,返回不会触发子应用内的路由更新,需要主动通知
|
|
195
|
+
// 这段逻辑不一定生效,因为我们已经劫持了沙箱内的 history.go 方法
|
|
195
196
|
if ($syncHistory.current) window.addEventListener('popstate', updateAppHistory);
|
|
196
197
|
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
197
198
|
var _app$context$updateBo, _app$context, _app$context$baseFram;
|
|
@@ -271,6 +272,8 @@ export default function createApplication(loader) {
|
|
|
271
272
|
// 劫持微应用的返回
|
|
272
273
|
frameWindow.history.go = function (n) {
|
|
273
274
|
window.history.go(n);
|
|
275
|
+
// 同步更新子应用的 state
|
|
276
|
+
originalReplaceState(history.state, '', peelPath(frameWindow.location));
|
|
274
277
|
};
|
|
275
278
|
}
|
|
276
279
|
}
|
package/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export var version = '1.5.1-alpha.
|
|
1
|
+
export var version = '1.5.1-alpha.3';
|
|
@@ -9,11 +9,11 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var padding = 24;
|
|
10
10
|
var containerBackground = '#fcebea';
|
|
11
11
|
var containerStyle = {
|
|
12
|
+
display: 'none',
|
|
12
13
|
background: containerBackground,
|
|
13
14
|
padding: padding
|
|
14
15
|
};
|
|
15
16
|
var commonErrorStyle = {
|
|
16
|
-
display: 'none',
|
|
17
17
|
lineHeight: '22px',
|
|
18
18
|
color: '#d93026',
|
|
19
19
|
fontSize: 14
|
package/lib/createApplication.js
CHANGED
|
@@ -202,6 +202,7 @@ function createApplication(loader) {
|
|
|
202
202
|
};
|
|
203
203
|
|
|
204
204
|
// 受控模式下,返回不会触发子应用内的路由更新,需要主动通知
|
|
205
|
+
// 这段逻辑不一定生效,因为我们已经劫持了沙箱内的 history.go 方法
|
|
205
206
|
if ($syncHistory.current) window.addEventListener('popstate', updateAppHistory);
|
|
206
207
|
(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
207
208
|
var _app$context$updateBo, _app$context, _app$context$baseFram;
|
|
@@ -281,6 +282,8 @@ function createApplication(loader) {
|
|
|
281
282
|
// 劫持微应用的返回
|
|
282
283
|
frameWindow.history.go = function (n) {
|
|
283
284
|
window.history.go(n);
|
|
285
|
+
// 同步更新子应用的 state
|
|
286
|
+
originalReplaceState(history.state, '', peelPath(frameWindow.location));
|
|
284
287
|
};
|
|
285
288
|
}
|
|
286
289
|
}
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/alfa-react",
|
|
3
|
-
"version": "1.5.1-alpha.
|
|
3
|
+
"version": "1.5.1-alpha.3",
|
|
4
4
|
"description": "Alfa Framework (React Version)",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"classnames": "^2.2.6",
|
|
37
37
|
"crypto-js": "^4.1.1",
|
|
38
38
|
"prop-types": "^15.8.1",
|
|
39
|
-
"@alicloud/
|
|
40
|
-
"@alicloud/
|
|
39
|
+
"@alicloud/alfa-core": "1.4.32",
|
|
40
|
+
"@alicloud/console-os-loader": "1.4.30-alpha.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": ">=16.0.0"
|
package/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.5.1-alpha.
|
|
1
|
+
export declare const version = "1.5.1-alpha.3";
|