@alicloud/alfa-react 1.4.23 → 1.4.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.
- package/dist/index.js +1 -1
- package/es/createApplication.js +3 -3
- package/es/version.js +1 -1
- package/lib/createApplication.js +3 -3
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/types/version.d.ts +1 -1
package/es/createApplication.js
CHANGED
|
@@ -40,8 +40,7 @@ export default function createApplication(loader) {
|
|
|
40
40
|
beforeUpdate = props.beforeUpdate,
|
|
41
41
|
customSandbox = props.sandbox,
|
|
42
42
|
locale = props.locale,
|
|
43
|
-
|
|
44
|
-
dynamicConfig = _props$dynamicConfig === void 0 ? true : _props$dynamicConfig;
|
|
43
|
+
dynamicConfig = props.dynamicConfig;
|
|
45
44
|
|
|
46
45
|
var _useState = useState(null),
|
|
47
46
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -99,7 +98,8 @@ export default function createApplication(loader) {
|
|
|
99
98
|
afterUnmount: afterUnmount,
|
|
100
99
|
beforeUpdate: beforeUpdate,
|
|
101
100
|
locale: locale,
|
|
102
|
-
dynamicConfig
|
|
101
|
+
// 用户自定义 manifest 且未传入 dynamicConfig 时,默认值为 false,否则为 true
|
|
102
|
+
dynamicConfig: dynamicConfig || !manifest
|
|
103
103
|
};
|
|
104
104
|
}, []);
|
|
105
105
|
useEffect(function () {
|
package/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export var version = '1.4.
|
|
1
|
+
export var version = '1.4.25';
|
package/lib/createApplication.js
CHANGED
|
@@ -62,8 +62,7 @@ function createApplication(loader) {
|
|
|
62
62
|
beforeUpdate = props.beforeUpdate,
|
|
63
63
|
customSandbox = props.sandbox,
|
|
64
64
|
locale = props.locale,
|
|
65
|
-
|
|
66
|
-
dynamicConfig = _props$dynamicConfig === void 0 ? true : _props$dynamicConfig;
|
|
65
|
+
dynamicConfig = props.dynamicConfig;
|
|
67
66
|
|
|
68
67
|
var _useState = (0, _react.useState)(null),
|
|
69
68
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -121,7 +120,8 @@ function createApplication(loader) {
|
|
|
121
120
|
afterUnmount: afterUnmount,
|
|
122
121
|
beforeUpdate: beforeUpdate,
|
|
123
122
|
locale: locale,
|
|
124
|
-
dynamicConfig
|
|
123
|
+
// 用户自定义 manifest 且未传入 dynamicConfig 时,默认值为 false,否则为 true
|
|
124
|
+
dynamicConfig: dynamicConfig || !manifest
|
|
125
125
|
};
|
|
126
126
|
}, []);
|
|
127
127
|
(0, _react.useEffect)(function () {
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/alfa-react",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.25",
|
|
4
4
|
"description": "Alfa Framework (React Version)",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"typescript": "^3.0.3"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@alicloud/alfa-core": "^1.4.
|
|
45
|
+
"@alicloud/alfa-core": "^1.4.25",
|
|
46
46
|
"@alicloud/console-os-loader": "^1.4.14-alpha.1",
|
|
47
47
|
"@alicloud/widget-utils-console": "^0.1.6",
|
|
48
48
|
"classnames": "^2.2.6",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": ">=16.0.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "81f36e9f576bf1e3c7851d4121bf4f9b3e96fc3a"
|
|
55
55
|
}
|
package/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.4.
|
|
1
|
+
export declare const version = "1.4.25";
|