@alicloud/alfa-react 1.3.0 → 1.3.1-alpha.4
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 +5 -5
- package/es/createAlfaApp.js +7 -2
- package/es/createAlfaWidget.js +3 -3
- package/es/createApplication.js +13 -18
- package/es/hooks/beforeLoadHook.js +69 -0
- package/es/version.js +1 -1
- package/lib/createAlfaApp.js +7 -2
- package/lib/createAlfaWidget.js +3 -3
- package/lib/createApplication.js +12 -17
- package/lib/hooks/beforeLoadHook.d.ts +3 -0
- package/lib/hooks/beforeLoadHook.js +84 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/LICENSE +0 -21
package/es/createAlfaApp.js
CHANGED
|
@@ -4,10 +4,10 @@ import { BaseLoader } from '@alicloud/alfa-core';
|
|
|
4
4
|
import ErrorBoundary from './components/ErrorBoundary';
|
|
5
5
|
import createApplication from './createApplication';
|
|
6
6
|
import beforeResolveHook from './hooks/beforeResolveHook';
|
|
7
|
-
import
|
|
7
|
+
import beforeLoadHook from './hooks/beforeLoadHook';
|
|
8
8
|
var loader = BaseLoader.create();
|
|
9
9
|
loader.beforeResolve.use(beforeResolveHook);
|
|
10
|
-
loader.
|
|
10
|
+
loader.beforeLoad.use(beforeLoadHook);
|
|
11
11
|
var Application = createApplication(loader);
|
|
12
12
|
|
|
13
13
|
function createAlfaApp(option) {
|
|
@@ -21,7 +21,12 @@ function createAlfaApp(option) {
|
|
|
21
21
|
};
|
|
22
22
|
var passedInOption = option;
|
|
23
23
|
return /*#__PURE__*/React.memo(function (props) {
|
|
24
|
+
if ('sandbox' in props) {
|
|
25
|
+
console.warn('');
|
|
26
|
+
}
|
|
27
|
+
|
|
24
28
|
return /*#__PURE__*/React.createElement(ErrorBoundary, props, /*#__PURE__*/React.createElement(Application, _extends({}, passedInOption, {
|
|
29
|
+
sandbox: option.sandbox || props.sandbox,
|
|
25
30
|
deps: dependencies || {},
|
|
26
31
|
customProps: props
|
|
27
32
|
})));
|
package/es/createAlfaWidget.js
CHANGED
|
@@ -7,11 +7,11 @@ import ErrorBoundary from './components/ErrorBoundary';
|
|
|
7
7
|
import { createCWSWidget } from './widget';
|
|
8
8
|
import createApplication from './createApplication';
|
|
9
9
|
import beforeResolveHook from './hooks/beforeResolveHook';
|
|
10
|
-
import
|
|
10
|
+
import beforeLoadHook from './hooks/beforeLoadHook';
|
|
11
11
|
var loader = BaseLoader.create();
|
|
12
12
|
loader.beforeResolve.use(beforeResolveHook);
|
|
13
|
-
loader.
|
|
14
|
-
loader.
|
|
13
|
+
loader.beforeLoad.use(beforeLoadHook);
|
|
14
|
+
loader.beforeLoad.use( /*#__PURE__*/function () {
|
|
15
15
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(appConfig) {
|
|
16
16
|
var app;
|
|
17
17
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
package/es/createApplication.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
|
-
import React, {
|
|
4
|
+
import React, { useRef, useEffect, useState } from 'react';
|
|
5
5
|
import Loading from './components/Loading';
|
|
6
6
|
import { normalizeName } from './utils';
|
|
7
7
|
|
|
@@ -72,9 +72,10 @@ export default function createApplication(loader) {
|
|
|
72
72
|
_yield$loader$registe = _context.sent;
|
|
73
73
|
App = _yield$loader$registe.app;
|
|
74
74
|
logger = _yield$loader$registe.logger;
|
|
75
|
+
console.log(App, '===');
|
|
75
76
|
|
|
76
77
|
if (App) {
|
|
77
|
-
_context.next =
|
|
78
|
+
_context.next = 8;
|
|
78
79
|
break;
|
|
79
80
|
}
|
|
80
81
|
|
|
@@ -82,13 +83,9 @@ export default function createApplication(loader) {
|
|
|
82
83
|
E_MSG: 'load app failed.'
|
|
83
84
|
}));
|
|
84
85
|
|
|
85
|
-
case
|
|
86
|
-
_context.next = 9;
|
|
87
|
-
return App.load();
|
|
88
|
-
|
|
89
|
-
case 9:
|
|
86
|
+
case 8:
|
|
90
87
|
if (appRef.current) {
|
|
91
|
-
_context.next =
|
|
88
|
+
_context.next = 10;
|
|
92
89
|
break;
|
|
93
90
|
}
|
|
94
91
|
|
|
@@ -96,19 +93,19 @@ export default function createApplication(loader) {
|
|
|
96
93
|
E_MSG: 'cannot find container.'
|
|
97
94
|
}));
|
|
98
95
|
|
|
99
|
-
case
|
|
100
|
-
_context.next =
|
|
96
|
+
case 10:
|
|
97
|
+
_context.next = 12;
|
|
101
98
|
return App.mount(appRef.current, {
|
|
102
99
|
customProps: customProps
|
|
103
100
|
});
|
|
104
101
|
|
|
105
|
-
case
|
|
102
|
+
case 12:
|
|
106
103
|
setApp(App);
|
|
107
104
|
return _context.abrupt("return", function () {
|
|
108
105
|
App && App.unmount();
|
|
109
106
|
});
|
|
110
107
|
|
|
111
|
-
case
|
|
108
|
+
case 14:
|
|
112
109
|
case "end":
|
|
113
110
|
return _context.stop();
|
|
114
111
|
}
|
|
@@ -123,17 +120,15 @@ export default function createApplication(loader) {
|
|
|
123
120
|
app.update(customProps);
|
|
124
121
|
}
|
|
125
122
|
|
|
126
|
-
return /*#__PURE__*/React.createElement(
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
})
|
|
130
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, null, sandbox && sandbox !== true && sandbox.disableFakeBody ? /*#__PURE__*/React.createElement(tagName, {
|
|
123
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, !app ? /*#__PURE__*/React.createElement(Loading, {
|
|
124
|
+
loading: loading
|
|
125
|
+
}) : null, sandbox && sandbox !== true && sandbox.disableFakeBody ? /*#__PURE__*/React.createElement(tagName, {
|
|
131
126
|
style: style,
|
|
132
127
|
className: className,
|
|
133
128
|
ref: appRef,
|
|
134
129
|
dataId: name
|
|
135
130
|
}) : /*#__PURE__*/React.createElement(tagName, {}, /*#__PURE__*/React.createElement('div', {
|
|
136
131
|
ref: appRef
|
|
137
|
-
})))
|
|
132
|
+
})));
|
|
138
133
|
};
|
|
139
134
|
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
4
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
|
+
|
|
6
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7
|
+
|
|
8
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
9
|
+
|
|
10
|
+
import { getLocale } from '@alicloud/alfa-core';
|
|
11
|
+
import { getConsoleConfig } from '../utils/getConsoleConfig'; // inject consoleConfig & locales after load
|
|
12
|
+
|
|
13
|
+
function afterLoadHook(_x) {
|
|
14
|
+
return _afterLoadHook.apply(this, arguments);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function _afterLoadHook() {
|
|
18
|
+
_afterLoadHook = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(appConfig) {
|
|
19
|
+
var app, logger, defaultConsoleConfig, CONFIG_START_TIME, _yield$Promise$all$ca, _yield$Promise$all$ca2, consoleConfig, messages, CONFIG_END_TIME, i18nMessages, END_TIME;
|
|
20
|
+
|
|
21
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
22
|
+
while (1) {
|
|
23
|
+
switch (_context.prev = _context.next) {
|
|
24
|
+
case 0:
|
|
25
|
+
app = appConfig.app, logger = appConfig.logger;
|
|
26
|
+
defaultConsoleConfig = window.ALIYUN_CONSOLE_CONFIG || {};
|
|
27
|
+
CONFIG_START_TIME = Date.now();
|
|
28
|
+
_context.next = 5;
|
|
29
|
+
return Promise.all([getConsoleConfig(appConfig, defaultConsoleConfig), getLocale(appConfig)]).catch(function (e) {
|
|
30
|
+
logger === null || logger === void 0 ? void 0 : logger.error({
|
|
31
|
+
E_MSG: 'fetch config & locale error.',
|
|
32
|
+
E_STACK: e
|
|
33
|
+
});
|
|
34
|
+
return [{}, {}];
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
case 5:
|
|
38
|
+
_yield$Promise$all$ca = _context.sent;
|
|
39
|
+
_yield$Promise$all$ca2 = _slicedToArray(_yield$Promise$all$ca, 2);
|
|
40
|
+
consoleConfig = _yield$Promise$all$ca2[0];
|
|
41
|
+
messages = _yield$Promise$all$ca2[1];
|
|
42
|
+
CONFIG_END_TIME = Date.now();
|
|
43
|
+
i18nMessages = _objectSpread(_objectSpread({}, window.ALIYUN_CONSOLE_I18N_MESSAGE), messages);
|
|
44
|
+
|
|
45
|
+
if (app && app.context) {
|
|
46
|
+
app.context.window.ALIYUN_CONSOLE_CONFIG = consoleConfig;
|
|
47
|
+
app.context.window.ALIYUN_CONSOLE_I18N_MESSAGE = i18nMessages; // (app.context.history as any) = {};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
END_TIME = Date.now();
|
|
51
|
+
logger === null || logger === void 0 ? void 0 : logger.record({
|
|
52
|
+
CONFIG_START_TIME: CONFIG_START_TIME,
|
|
53
|
+
CONFIG_END_TIME: CONFIG_END_TIME,
|
|
54
|
+
END_TIME: END_TIME
|
|
55
|
+
});
|
|
56
|
+
logger === null || logger === void 0 ? void 0 : logger.send();
|
|
57
|
+
return _context.abrupt("return", appConfig);
|
|
58
|
+
|
|
59
|
+
case 16:
|
|
60
|
+
case "end":
|
|
61
|
+
return _context.stop();
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}, _callee);
|
|
65
|
+
}));
|
|
66
|
+
return _afterLoadHook.apply(this, arguments);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export default afterLoadHook;
|
package/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export var version = '1.3.
|
|
1
|
+
export var version = '1.3.1-alpha.4';
|
package/lib/createAlfaApp.js
CHANGED
|
@@ -19,12 +19,12 @@ var _createApplication = _interopRequireDefault(require("./createApplication"));
|
|
|
19
19
|
|
|
20
20
|
var _beforeResolveHook = _interopRequireDefault(require("./hooks/beforeResolveHook"));
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _beforeLoadHook = _interopRequireDefault(require("./hooks/beforeLoadHook"));
|
|
23
23
|
|
|
24
24
|
var loader = _alfaCore.BaseLoader.create();
|
|
25
25
|
|
|
26
26
|
loader.beforeResolve.use(_beforeResolveHook.default);
|
|
27
|
-
loader.
|
|
27
|
+
loader.beforeLoad.use(_beforeLoadHook.default);
|
|
28
28
|
var Application = (0, _createApplication.default)(loader);
|
|
29
29
|
|
|
30
30
|
function createAlfaApp(option) {
|
|
@@ -38,7 +38,12 @@ function createAlfaApp(option) {
|
|
|
38
38
|
};
|
|
39
39
|
var passedInOption = option;
|
|
40
40
|
return /*#__PURE__*/_react.default.memo(function (props) {
|
|
41
|
+
if ('sandbox' in props) {
|
|
42
|
+
console.warn('');
|
|
43
|
+
}
|
|
44
|
+
|
|
41
45
|
return /*#__PURE__*/_react.default.createElement(_ErrorBoundary.default, props, /*#__PURE__*/_react.default.createElement(Application, (0, _extends2.default)({}, passedInOption, {
|
|
46
|
+
sandbox: option.sandbox || props.sandbox,
|
|
42
47
|
deps: dependencies || {},
|
|
43
48
|
customProps: props
|
|
44
49
|
})));
|
package/lib/createAlfaWidget.js
CHANGED
|
@@ -25,13 +25,13 @@ var _createApplication = _interopRequireDefault(require("./createApplication"));
|
|
|
25
25
|
|
|
26
26
|
var _beforeResolveHook = _interopRequireDefault(require("./hooks/beforeResolveHook"));
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _beforeLoadHook = _interopRequireDefault(require("./hooks/beforeLoadHook"));
|
|
29
29
|
|
|
30
30
|
var loader = _alfaCore.BaseLoader.create();
|
|
31
31
|
|
|
32
32
|
loader.beforeResolve.use(_beforeResolveHook.default);
|
|
33
|
-
loader.
|
|
34
|
-
loader.
|
|
33
|
+
loader.beforeLoad.use(_beforeLoadHook.default);
|
|
34
|
+
loader.beforeLoad.use( /*#__PURE__*/function () {
|
|
35
35
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(appConfig) {
|
|
36
36
|
var app;
|
|
37
37
|
return _regenerator.default.wrap(function _callee$(_context) {
|
package/lib/createApplication.js
CHANGED
|
@@ -92,9 +92,10 @@ function createApplication(loader) {
|
|
|
92
92
|
_yield$loader$registe = _context.sent;
|
|
93
93
|
App = _yield$loader$registe.app;
|
|
94
94
|
logger = _yield$loader$registe.logger;
|
|
95
|
+
console.log(App, '===');
|
|
95
96
|
|
|
96
97
|
if (App) {
|
|
97
|
-
_context.next =
|
|
98
|
+
_context.next = 8;
|
|
98
99
|
break;
|
|
99
100
|
}
|
|
100
101
|
|
|
@@ -102,13 +103,9 @@ function createApplication(loader) {
|
|
|
102
103
|
E_MSG: 'load app failed.'
|
|
103
104
|
}));
|
|
104
105
|
|
|
105
|
-
case
|
|
106
|
-
_context.next = 9;
|
|
107
|
-
return App.load();
|
|
108
|
-
|
|
109
|
-
case 9:
|
|
106
|
+
case 8:
|
|
110
107
|
if (appRef.current) {
|
|
111
|
-
_context.next =
|
|
108
|
+
_context.next = 10;
|
|
112
109
|
break;
|
|
113
110
|
}
|
|
114
111
|
|
|
@@ -116,19 +113,19 @@ function createApplication(loader) {
|
|
|
116
113
|
E_MSG: 'cannot find container.'
|
|
117
114
|
}));
|
|
118
115
|
|
|
119
|
-
case
|
|
120
|
-
_context.next =
|
|
116
|
+
case 10:
|
|
117
|
+
_context.next = 12;
|
|
121
118
|
return App.mount(appRef.current, {
|
|
122
119
|
customProps: customProps
|
|
123
120
|
});
|
|
124
121
|
|
|
125
|
-
case
|
|
122
|
+
case 12:
|
|
126
123
|
setApp(App);
|
|
127
124
|
return _context.abrupt("return", function () {
|
|
128
125
|
App && App.unmount();
|
|
129
126
|
});
|
|
130
127
|
|
|
131
|
-
case
|
|
128
|
+
case 14:
|
|
132
129
|
case "end":
|
|
133
130
|
return _context.stop();
|
|
134
131
|
}
|
|
@@ -143,17 +140,15 @@ function createApplication(loader) {
|
|
|
143
140
|
app.update(customProps);
|
|
144
141
|
}
|
|
145
142
|
|
|
146
|
-
return /*#__PURE__*/_react.default.createElement(_react.
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
})
|
|
150
|
-
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, sandbox && sandbox !== true && sandbox.disableFakeBody ? /*#__PURE__*/_react.default.createElement(tagName, {
|
|
143
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !app ? /*#__PURE__*/_react.default.createElement(_Loading.default, {
|
|
144
|
+
loading: loading
|
|
145
|
+
}) : null, sandbox && sandbox !== true && sandbox.disableFakeBody ? /*#__PURE__*/_react.default.createElement(tagName, {
|
|
151
146
|
style: style,
|
|
152
147
|
className: className,
|
|
153
148
|
ref: appRef,
|
|
154
149
|
dataId: name
|
|
155
150
|
}) : /*#__PURE__*/_react.default.createElement(tagName, {}, /*#__PURE__*/_react.default.createElement('div', {
|
|
156
151
|
ref: appRef
|
|
157
|
-
})))
|
|
152
|
+
})));
|
|
158
153
|
};
|
|
159
154
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
+
|
|
12
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
+
|
|
14
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
15
|
+
|
|
16
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
17
|
+
|
|
18
|
+
var _alfaCore = require("@alicloud/alfa-core");
|
|
19
|
+
|
|
20
|
+
var _getConsoleConfig = require("../utils/getConsoleConfig");
|
|
21
|
+
|
|
22
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
23
|
+
|
|
24
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
25
|
+
|
|
26
|
+
// inject consoleConfig & locales after load
|
|
27
|
+
function afterLoadHook(_x) {
|
|
28
|
+
return _afterLoadHook.apply(this, arguments);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function _afterLoadHook() {
|
|
32
|
+
_afterLoadHook = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(appConfig) {
|
|
33
|
+
var app, logger, defaultConsoleConfig, CONFIG_START_TIME, _yield$Promise$all$ca, _yield$Promise$all$ca2, consoleConfig, messages, CONFIG_END_TIME, i18nMessages, END_TIME;
|
|
34
|
+
|
|
35
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
36
|
+
while (1) {
|
|
37
|
+
switch (_context.prev = _context.next) {
|
|
38
|
+
case 0:
|
|
39
|
+
app = appConfig.app, logger = appConfig.logger;
|
|
40
|
+
defaultConsoleConfig = window.ALIYUN_CONSOLE_CONFIG || {};
|
|
41
|
+
CONFIG_START_TIME = Date.now();
|
|
42
|
+
_context.next = 5;
|
|
43
|
+
return Promise.all([(0, _getConsoleConfig.getConsoleConfig)(appConfig, defaultConsoleConfig), (0, _alfaCore.getLocale)(appConfig)]).catch(function (e) {
|
|
44
|
+
logger === null || logger === void 0 ? void 0 : logger.error({
|
|
45
|
+
E_MSG: 'fetch config & locale error.',
|
|
46
|
+
E_STACK: e
|
|
47
|
+
});
|
|
48
|
+
return [{}, {}];
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
case 5:
|
|
52
|
+
_yield$Promise$all$ca = _context.sent;
|
|
53
|
+
_yield$Promise$all$ca2 = (0, _slicedToArray2.default)(_yield$Promise$all$ca, 2);
|
|
54
|
+
consoleConfig = _yield$Promise$all$ca2[0];
|
|
55
|
+
messages = _yield$Promise$all$ca2[1];
|
|
56
|
+
CONFIG_END_TIME = Date.now();
|
|
57
|
+
i18nMessages = _objectSpread(_objectSpread({}, window.ALIYUN_CONSOLE_I18N_MESSAGE), messages);
|
|
58
|
+
|
|
59
|
+
if (app && app.context) {
|
|
60
|
+
app.context.window.ALIYUN_CONSOLE_CONFIG = consoleConfig;
|
|
61
|
+
app.context.window.ALIYUN_CONSOLE_I18N_MESSAGE = i18nMessages; // (app.context.history as any) = {};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
END_TIME = Date.now();
|
|
65
|
+
logger === null || logger === void 0 ? void 0 : logger.record({
|
|
66
|
+
CONFIG_START_TIME: CONFIG_START_TIME,
|
|
67
|
+
CONFIG_END_TIME: CONFIG_END_TIME,
|
|
68
|
+
END_TIME: END_TIME
|
|
69
|
+
});
|
|
70
|
+
logger === null || logger === void 0 ? void 0 : logger.send();
|
|
71
|
+
return _context.abrupt("return", appConfig);
|
|
72
|
+
|
|
73
|
+
case 16:
|
|
74
|
+
case "end":
|
|
75
|
+
return _context.stop();
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}, _callee);
|
|
79
|
+
}));
|
|
80
|
+
return _afterLoadHook.apply(this, arguments);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
var _default = afterLoadHook;
|
|
84
|
+
exports.default = _default;
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.3.
|
|
1
|
+
export declare const version = "1.3.1-alpha.4";
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/alfa-react",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1-alpha.4",
|
|
4
4
|
"description": "Alfa Framework (React Version)",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"typescript": "^3.0.3"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@alicloud/alfa-core": "^1.3.
|
|
42
|
+
"@alicloud/alfa-core": "^1.3.1-alpha.1",
|
|
43
43
|
"@alicloud/console-os-loader": "^1.2.3",
|
|
44
44
|
"@alicloud/widget-utils-console": "^0.1.6",
|
|
45
45
|
"classnames": "^2.2.6",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"react": "^16 | ^17"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "43925181e0a3e489559b7ab1bb6c68e59e00d58e"
|
|
52
52
|
}
|
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.
|