@alicloud/alfa-react 1.4.30-alpha.5 → 1.4.30-alpha.7
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 +6 -5
- package/es/createApplication.js +2 -4
- package/es/version.js +1 -1
- package/lib/createApplication.js +2 -4
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/types/createApplication.d.ts +2 -2
- package/types/version.d.ts +1 -1
package/es/createApplication.js
CHANGED
|
@@ -52,7 +52,7 @@ var stripBasename = function stripBasename(path, basename) {
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
export default function createApplication(loader) {
|
|
55
|
-
function Application(props) {
|
|
55
|
+
return function Application(props) {
|
|
56
56
|
var name = props.name,
|
|
57
57
|
version = props.version,
|
|
58
58
|
manifest = props.manifest,
|
|
@@ -345,7 +345,5 @@ export default function createApplication(loader) {
|
|
|
345
345
|
style: style,
|
|
346
346
|
className: className
|
|
347
347
|
})));
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
return /*#__PURE__*/React.memo(Application);
|
|
348
|
+
};
|
|
351
349
|
}
|
package/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export var version = '1.4.30-alpha.
|
|
1
|
+
export var version = '1.4.30-alpha.7';
|
package/lib/createApplication.js
CHANGED
|
@@ -74,7 +74,7 @@ var stripBasename = function stripBasename(path, basename) {
|
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
function createApplication(loader) {
|
|
77
|
-
function Application(props) {
|
|
77
|
+
return function Application(props) {
|
|
78
78
|
var name = props.name,
|
|
79
79
|
version = props.version,
|
|
80
80
|
manifest = props.manifest,
|
|
@@ -365,7 +365,5 @@ function createApplication(loader) {
|
|
|
365
365
|
style: style,
|
|
366
366
|
className: className
|
|
367
367
|
})));
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
return /*#__PURE__*/_react.default.memo(Application);
|
|
368
|
+
};
|
|
371
369
|
}
|
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.30-alpha.
|
|
3
|
+
"version": "1.4.30-alpha.7",
|
|
4
4
|
"description": "Alfa Framework (React Version)",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"typescript": "^3.0.3"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@alicloud/alfa-core": "1.4.30-alpha.0",
|
|
46
|
-
"@alicloud/console-os-loader": "1.4.30-alpha.0",
|
|
45
|
+
"@alicloud/alfa-core": "^1.4.30-alpha.0",
|
|
46
|
+
"@alicloud/console-os-loader": "^1.4.30-alpha.0",
|
|
47
47
|
"@alicloud/widget-utils-console": "^0.1.6",
|
|
48
48
|
"classnames": "^2.2.6",
|
|
49
49
|
"crypto-js": "^4.1.1"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { BaseLoader } from '@alicloud/alfa-core';
|
|
3
3
|
import { AlfaFactoryOption } from './types';
|
|
4
4
|
interface IProps<C = any> extends AlfaFactoryOption {
|
|
@@ -12,5 +12,5 @@ interface IProps<C = any> extends AlfaFactoryOption {
|
|
|
12
12
|
* @param loader alfa-core loader
|
|
13
13
|
* @returns
|
|
14
14
|
*/
|
|
15
|
-
export default function createApplication(loader: BaseLoader):
|
|
15
|
+
export default function createApplication(loader: BaseLoader): <C = any>(props: IProps<C>) => JSX.Element;
|
|
16
16
|
export {};
|
package/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.4.30-alpha.
|
|
1
|
+
export declare const version = "1.4.30-alpha.7";
|