@alicloud/alfa-react 1.5.1 → 1.5.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/createApplication.js +4 -1
- package/es/version.js +1 -1
- package/lib/createApplication.js +2 -1
- package/lib/version.js +1 -1
- package/package.json +18 -18
- package/types/version.d.ts +1 -1
- package/LICENSE +0 -21
package/es/createApplication.js
CHANGED
|
@@ -55,6 +55,7 @@ var stripBasename = function stripBasename(path, basename) {
|
|
|
55
55
|
*/
|
|
56
56
|
export default function createApplication(loader) {
|
|
57
57
|
return function Application(props) {
|
|
58
|
+
var _window$history;
|
|
58
59
|
var name = props.name,
|
|
59
60
|
version = props.version,
|
|
60
61
|
manifest = props.manifest,
|
|
@@ -98,11 +99,13 @@ export default function createApplication(loader) {
|
|
|
98
99
|
setReleaseVersion = _useState6[1];
|
|
99
100
|
$syncHistory.current = syncHistory;
|
|
100
101
|
$basename.current = basename;
|
|
102
|
+
|
|
103
|
+
console.info(noCache, '===');
|
|
101
104
|
|
|
102
105
|
// if (customProps.__innerStamp) console.warn('Please do not use __innerStamp which used in internal.');
|
|
103
106
|
// 更新标记,保证每次更新都会更新
|
|
104
107
|
customProps.__innerStamp = (+new Date()).toString(36);
|
|
105
|
-
customProps.__historyState = history.state;
|
|
108
|
+
customProps.__historyState = (_window$history = window.history) === null || _window$history === void 0 ? void 0 : _window$history.state;
|
|
106
109
|
if (customProps.path) customProps.path = addLeftSlash(customProps.path);
|
|
107
110
|
|
|
108
111
|
// 受控模式锁定一些参数
|
package/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export var version = '1.5.
|
|
1
|
+
export var version = '1.5.2';
|
package/lib/createApplication.js
CHANGED
|
@@ -65,6 +65,7 @@ var stripBasename = function stripBasename(path, basename) {
|
|
|
65
65
|
*/
|
|
66
66
|
function createApplication(loader) {
|
|
67
67
|
return function Application(props) {
|
|
68
|
+
var _window$history;
|
|
68
69
|
var name = props.name,
|
|
69
70
|
version = props.version,
|
|
70
71
|
manifest = props.manifest,
|
|
@@ -112,7 +113,7 @@ function createApplication(loader) {
|
|
|
112
113
|
// if (customProps.__innerStamp) console.warn('Please do not use __innerStamp which used in internal.');
|
|
113
114
|
// 更新标记,保证每次更新都会更新
|
|
114
115
|
customProps.__innerStamp = (+new Date()).toString(36);
|
|
115
|
-
customProps.__historyState = history.state;
|
|
116
|
+
customProps.__historyState = (_window$history = window.history) === null || _window$history === void 0 ? void 0 : _window$history.state;
|
|
116
117
|
if (customProps.path) customProps.path = addLeftSlash(customProps.path);
|
|
117
118
|
|
|
118
119
|
// 受控模式锁定一些参数
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/alfa-react",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"description": "Alfa Framework (React Version)",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
7
7
|
"types": "types/index.d.ts",
|
|
8
8
|
"author": "pushiming",
|
|
9
9
|
"license": "MIT",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"prepublish": "npm run version && npm run build && npm run babel && npm run babel:esm && npm run types",
|
|
12
|
+
"build": "breezr build --engine webpack",
|
|
13
|
+
"babel": "breezr build --engine babel",
|
|
14
|
+
"babel:esm": "breezr build --engine babel --es-module",
|
|
15
|
+
"types": "tsc --emitDeclarationOnly -d --declarationDir ./types",
|
|
16
|
+
"storybook": "breezr start-storybook",
|
|
17
|
+
"clean": "rm -rf lib es dist types yarn.lock",
|
|
18
|
+
"start": "breezr start-storybook",
|
|
19
|
+
"precommit": "npm run version",
|
|
20
|
+
"version": "node -p \"'export const version = \\'' + require('./package.json').version + '\\';'\" > src/version.ts && git add src/version.ts"
|
|
21
|
+
},
|
|
10
22
|
"publishConfig": {
|
|
11
23
|
"access": "public"
|
|
12
24
|
},
|
|
@@ -31,28 +43,16 @@
|
|
|
31
43
|
"typescript": "^4.0.0"
|
|
32
44
|
},
|
|
33
45
|
"dependencies": {
|
|
46
|
+
"@alicloud/alfa-core": "workspace:*",
|
|
47
|
+
"@alicloud/console-os-loader": "workspace:*",
|
|
34
48
|
"@alicloud/widget-utils-console": "^0.1.6",
|
|
35
49
|
"axios": "^1.4.0",
|
|
36
50
|
"classnames": "^2.2.6",
|
|
37
51
|
"crypto-js": "^4.1.1",
|
|
38
|
-
"prop-types": "^15.8.1"
|
|
39
|
-
"@alicloud/alfa-core": "1.4.32",
|
|
40
|
-
"@alicloud/console-os-loader": "1.4.30-alpha.0"
|
|
52
|
+
"prop-types": "^15.8.1"
|
|
41
53
|
},
|
|
42
54
|
"peerDependencies": {
|
|
43
55
|
"react": ">=16.0.0"
|
|
44
56
|
},
|
|
45
|
-
"gitHead": "ff9294b1d5e08b14691c8aa2bef098da2857f3df"
|
|
46
|
-
|
|
47
|
-
"prepublish": "npm run version && npm run build && npm run babel && npm run babel:esm && npm run types",
|
|
48
|
-
"build": "breezr build --engine webpack",
|
|
49
|
-
"babel": "breezr build --engine babel",
|
|
50
|
-
"babel:esm": "breezr build --engine babel --es-module",
|
|
51
|
-
"types": "tsc --emitDeclarationOnly -d --declarationDir ./types",
|
|
52
|
-
"storybook": "breezr start-storybook",
|
|
53
|
-
"clean": "rm -rf lib es dist types yarn.lock",
|
|
54
|
-
"start": "breezr start-storybook",
|
|
55
|
-
"precommit": "npm run version",
|
|
56
|
-
"version": "node -p \"'export const version = \\'' + require('./package.json').version + '\\';'\" > src/version.ts && git add src/version.ts"
|
|
57
|
-
}
|
|
58
|
-
}
|
|
57
|
+
"gitHead": "ff9294b1d5e08b14691c8aa2bef098da2857f3df"
|
|
58
|
+
}
|
package/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.5.
|
|
1
|
+
export declare const version = "1.5.2";
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2019 Alibaba Cloud
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|