@alicloud/alfa-react 1.7.1-alpha.2 → 2.0.0-alpha.0
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/.storybook/main.ts +49 -0
- package/.storybook/preview.ts +14 -0
- package/es/components/ErrorBoundary/index.js +7 -9
- package/es/components/Loading/Paragraph.js +6 -8
- package/es/components/Loading/Skeleton.js +8 -10
- package/es/components/Loading/Title.js +2 -2
- package/es/createAlfaApp.js +3 -3
- package/es/createAlfaWidget.js +5 -5
- package/es/createApplication.js +3 -3
- package/es/loaders/beforeLoadHook.js +25 -19
- package/es/loaders/beforeResolveHook.js +1 -1
- package/es/schedule.js +1 -2
- package/es/types/base.js +5 -6
- package/es/utils/getConsoleConfig.js +5 -20
- package/es/utils/getConsoleGlobal.js +5 -20
- package/es/version.js +1 -1
- package/es/widget/emitter.js +6 -8
- package/es/widget/getWidgetConfigById.js +2 -2
- package/es/widget/getWidgetDeps.js +5 -6
- package/es/widget/getWidgetVersionById.js +2 -2
- package/es/widget.js +3 -3
- package/lib/components/ErrorBoundary/ErrorPanel.js +1 -2
- package/lib/components/ErrorBoundary/index.js +9 -12
- package/lib/components/Loading/Paragraph.js +9 -12
- package/lib/components/Loading/Skeleton.js +11 -14
- package/lib/components/Loading/Title.js +5 -6
- package/lib/components/Loading/style.js +1 -2
- package/lib/createAlfaApp.js +6 -7
- package/lib/createAlfaWidget.js +8 -9
- package/lib/createApplication.js +5 -5
- package/lib/index.js +2 -2
- package/lib/loaders/beforeLoadHook.js +25 -20
- package/lib/loaders/beforeResolveHook.js +2 -3
- package/lib/schedule.js +3 -5
- package/lib/types/base.js +7 -9
- package/lib/utils/counter.js +2 -3
- package/lib/utils/getConsoleConfig.js +5 -21
- package/lib/utils/getConsoleGlobal.js +5 -21
- package/lib/utils/index.js +11 -21
- package/lib/version.js +1 -2
- package/lib/widget/emitter.js +7 -10
- package/lib/widget/env.js +4 -7
- package/lib/widget/getWidgetConfigById.js +5 -6
- package/lib/widget/getWidgetDeps.js +10 -12
- package/lib/widget/getWidgetVersionById.js +7 -9
- package/lib/widget.js +5 -5
- package/package.json +23 -11
- package/types/components/ErrorBoundary/index.d.ts +4 -3
- package/types/components/Loading/Paragraph.d.ts +1 -1
- package/types/components/Loading/Skeleton.d.ts +2 -2
- package/types/components/Loading/Title.d.ts +2 -1
- package/types/components/Loading/index.d.ts +1 -1
- package/types/createAlfaApp.d.ts +3 -5
- package/types/createApplication.d.ts +2 -1
- package/types/types/index.d.ts +1 -1
- package/types/utils/getConsoleConfig.d.ts +3 -2
- package/types/utils/getConsoleGlobal.d.ts +2 -2
- package/types/version.d.ts +1 -1
- package/types/widget.d.ts +3 -2
- package/es/hooks/beforeLoadHook.js +0 -82
- package/es/hooks/beforeResolveHook.js +0 -41
- package/lib/hooks/beforeLoadHook.js +0 -90
- package/lib/hooks/beforeResolveHook.js +0 -48
- package/types/hooks/beforeLoadHook.d.ts +0 -7
- package/types/hooks/beforeResolveHook.d.ts +0 -3
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { NodePackageImporter } from 'sass';
|
|
2
|
+
import { mergeConfig } from 'vite';
|
|
3
|
+
import type { StorybookConfig } from '@storybook/react-vite';
|
|
4
|
+
import { nodePolyfills } from 'vite-plugin-node-polyfills'
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
const config: StorybookConfig = {
|
|
8
|
+
stories: ['../stories/*.@(js|jsx|mjs|ts|tsx)'],
|
|
9
|
+
addons: [
|
|
10
|
+
'@storybook/addon-onboarding',
|
|
11
|
+
'@storybook/addon-links',
|
|
12
|
+
'@storybook/addon-essentials',
|
|
13
|
+
'@chromatic-com/storybook',
|
|
14
|
+
'@storybook/addon-interactions',
|
|
15
|
+
],
|
|
16
|
+
framework: {
|
|
17
|
+
name: '@storybook/react-vite',
|
|
18
|
+
options: {
|
|
19
|
+
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
typescript: {
|
|
23
|
+
// Enables the `react-docgen-typescript` parser.
|
|
24
|
+
// See https://storybook.js.org/docs/api/main-config/main-config-typescript for more information about this option.
|
|
25
|
+
reactDocgen: 'react-docgen-typescript',
|
|
26
|
+
},
|
|
27
|
+
async viteFinal(config) {
|
|
28
|
+
return mergeConfig(config, {
|
|
29
|
+
// Add dependencies to pre-optimization
|
|
30
|
+
resolve: {
|
|
31
|
+
alias: {}
|
|
32
|
+
},
|
|
33
|
+
define: {
|
|
34
|
+
'process.env': JSON.stringify({}),
|
|
35
|
+
},
|
|
36
|
+
plugins: [nodePolyfills()],
|
|
37
|
+
css: {
|
|
38
|
+
preprocessorOptions: {
|
|
39
|
+
scss: {
|
|
40
|
+
api: "modern-compiler",
|
|
41
|
+
importers: [new NodePackageImporter()],
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export default config;
|
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
-
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
5
4
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
6
|
-
|
|
7
|
-
function
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import isFunction from 'lodash
|
|
9
|
+
import { isFunction } from 'lodash-es';
|
|
10
10
|
import ErrorPanel from './ErrorPanel';
|
|
11
11
|
var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
12
|
-
_inherits(ErrorBoundary, _React$Component);
|
|
13
|
-
var _super = _createSuper(ErrorBoundary);
|
|
14
12
|
function ErrorBoundary(props) {
|
|
15
13
|
var _this;
|
|
16
14
|
_classCallCheck(this, ErrorBoundary);
|
|
17
|
-
_this =
|
|
15
|
+
_this = _callSuper(this, ErrorBoundary, [props]);
|
|
18
16
|
_this.state = {
|
|
19
17
|
hasError: false,
|
|
20
18
|
error: undefined
|
|
21
19
|
};
|
|
22
20
|
return _this;
|
|
23
21
|
}
|
|
24
|
-
|
|
22
|
+
_inherits(ErrorBoundary, _React$Component);
|
|
23
|
+
return _createClass(ErrorBoundary, [{
|
|
25
24
|
key: "componentDidCatch",
|
|
26
25
|
value: function componentDidCatch(error, errorInfo) {
|
|
27
26
|
var _window, _window$__bl, _window2, _window2$__bl;
|
|
@@ -59,6 +58,5 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
59
58
|
return this.props.children;
|
|
60
59
|
}
|
|
61
60
|
}]);
|
|
62
|
-
return ErrorBoundary;
|
|
63
61
|
}(React.Component);
|
|
64
62
|
export default ErrorBoundary;
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
6
5
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
7
|
-
|
|
8
|
-
function
|
|
6
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
import classNames from 'classnames';
|
|
11
11
|
var Paragraph = /*#__PURE__*/function (_React$Component) {
|
|
12
|
-
_inherits(Paragraph, _React$Component);
|
|
13
|
-
var _super = _createSuper(Paragraph);
|
|
14
12
|
function Paragraph() {
|
|
15
13
|
_classCallCheck(this, Paragraph);
|
|
16
|
-
return
|
|
14
|
+
return _callSuper(this, Paragraph, arguments);
|
|
17
15
|
}
|
|
18
|
-
|
|
16
|
+
_inherits(Paragraph, _React$Component);
|
|
17
|
+
return _createClass(Paragraph, [{
|
|
19
18
|
key: "getWidth",
|
|
20
19
|
value: function getWidth(index) {
|
|
21
20
|
var _this$props = this.props,
|
|
@@ -58,6 +57,5 @@ var Paragraph = /*#__PURE__*/function (_React$Component) {
|
|
|
58
57
|
}, rowList);
|
|
59
58
|
}
|
|
60
59
|
}]);
|
|
61
|
-
return Paragraph;
|
|
62
60
|
}(React.Component);
|
|
63
61
|
export default Paragraph;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
6
5
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
6
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
7
|
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
8
|
-
function ownKeys(
|
|
9
|
-
function _objectSpread(
|
|
10
|
-
function
|
|
11
|
-
function _isNativeReflectConstruct() {
|
|
8
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import * as React from 'react';
|
|
13
13
|
import classNames from 'classnames';
|
|
14
14
|
import Title from './Title';
|
|
@@ -45,15 +45,13 @@ function getParagraphBasicProps(hasTitle) {
|
|
|
45
45
|
return basicProps;
|
|
46
46
|
}
|
|
47
47
|
var Skeleton = /*#__PURE__*/function (_React$Component) {
|
|
48
|
-
_inherits(Skeleton, _React$Component);
|
|
49
|
-
var _super = _createSuper(Skeleton);
|
|
50
48
|
function Skeleton() {
|
|
51
49
|
var _this;
|
|
52
50
|
_classCallCheck(this, Skeleton);
|
|
53
51
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
54
52
|
args[_key] = arguments[_key];
|
|
55
53
|
}
|
|
56
|
-
_this =
|
|
54
|
+
_this = _callSuper(this, Skeleton, [].concat(args));
|
|
57
55
|
_this.renderSkeleton = function () {
|
|
58
56
|
var _this$props = _this.props,
|
|
59
57
|
_this$props$prefixCls = _this$props.prefixCls,
|
|
@@ -99,7 +97,8 @@ var Skeleton = /*#__PURE__*/function (_React$Component) {
|
|
|
99
97
|
};
|
|
100
98
|
return _this;
|
|
101
99
|
}
|
|
102
|
-
|
|
100
|
+
_inherits(Skeleton, _React$Component);
|
|
101
|
+
return _createClass(Skeleton, [{
|
|
103
102
|
key: "componentDidMount",
|
|
104
103
|
value: function componentDidMount() {
|
|
105
104
|
var id = '-os-skeleton-style';
|
|
@@ -117,7 +116,6 @@ var Skeleton = /*#__PURE__*/function (_React$Component) {
|
|
|
117
116
|
return this.renderSkeleton();
|
|
118
117
|
}
|
|
119
118
|
}]);
|
|
120
|
-
return Skeleton;
|
|
121
119
|
}(React.Component);
|
|
122
120
|
Skeleton.defaultProps = {
|
|
123
121
|
title: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
var Title = function Title(_ref) {
|
package/es/createAlfaApp.js
CHANGED
|
@@ -2,8 +2,8 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
4
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
|
-
function ownKeys(
|
|
6
|
-
function _objectSpread(
|
|
5
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
import React, { useMemo } from 'react';
|
|
8
8
|
import { BaseLoader } from '@alicloud/alfa-core';
|
|
9
9
|
import ErrorBoundary from './components/ErrorBoundary';
|
|
@@ -35,7 +35,7 @@ function createAlfaApp(option) {
|
|
|
35
35
|
dynamicConfig: typeof dynamicConfig === 'boolean' ? dynamicConfig : !manifest
|
|
36
36
|
}));
|
|
37
37
|
preLoader = /*#__PURE__*/function () {
|
|
38
|
-
var _ref2 = _asyncToGenerator(
|
|
38
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
39
39
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
40
40
|
while (1) switch (_context.prev = _context.next) {
|
|
41
41
|
case 0:
|
package/es/createAlfaWidget.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
3
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
4
|
-
function ownKeys(
|
|
5
|
-
function _objectSpread(
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
7
|
import React, { useMemo } from 'react';
|
|
8
8
|
import LazyLoad from 'react-lazyload';
|
|
@@ -18,8 +18,8 @@ import { IS_SSR } from './utils';
|
|
|
18
18
|
var loader = BaseLoader.create();
|
|
19
19
|
loader.beforeResolve.use(beforeResolveHook);
|
|
20
20
|
loader.beforeLoad.use(beforeLoadHook);
|
|
21
|
-
loader.beforeLoad.use(
|
|
22
|
-
var _ref = _asyncToGenerator(
|
|
21
|
+
loader.beforeLoad.use(/*#__PURE__*/function () {
|
|
22
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(appConfig) {
|
|
23
23
|
var app;
|
|
24
24
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
25
25
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -68,7 +68,7 @@ function createAlfaWidget(option) {
|
|
|
68
68
|
dynamicConfig: typeof dynamicConfig === 'boolean' ? dynamicConfig : !manifest
|
|
69
69
|
}));
|
|
70
70
|
preLoader = /*#__PURE__*/function () {
|
|
71
|
-
var _ref3 = _asyncToGenerator(
|
|
71
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
72
72
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
73
73
|
while (1) switch (_context2.prev = _context2.next) {
|
|
74
74
|
case 0:
|
package/es/createApplication.js
CHANGED
|
@@ -3,8 +3,8 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
5
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
6
|
-
function ownKeys(
|
|
7
|
-
function _objectSpread(
|
|
6
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
8
|
import React, { useRef, useEffect, useState, useMemo, useContext, useCallback } from 'react';
|
|
9
9
|
import { createEventBus } from '@alicloud/alfa-core';
|
|
10
10
|
import { ConsoleRegion, ConsoleResourceGroup, ConsoleContext } from '@alicloud/xconsole-context';
|
|
@@ -224,7 +224,7 @@ export default function createApplication(loader) {
|
|
|
224
224
|
|
|
225
225
|
// 受控模式下,返回不会触发子应用内的路由更新,需要主动通知
|
|
226
226
|
if ($syncHistory.current) window.addEventListener('popstate', updateAppHistory);
|
|
227
|
-
_asyncToGenerator(
|
|
227
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
228
228
|
var _app$context$updateBo, _app$context, _app$context$baseFram;
|
|
229
229
|
var fakeBody, _ref2, app, logger, realVersion, _ref3, path, frameWindow;
|
|
230
230
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -2,9 +2,9 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
3
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
4
4
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
|
-
function ownKeys(
|
|
6
|
-
function _objectSpread(
|
|
7
|
-
import { getConfig, getI18nMessages } from '@alicloud/alfa-core';
|
|
5
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
|
+
import { getConfig, getConfigV2, getI18nMessages } from '@alicloud/alfa-core';
|
|
8
8
|
import { getConsoleConfig } from '../utils/getConsoleConfig';
|
|
9
9
|
import { getConsoleGlobal } from '../utils/getConsoleGlobal';
|
|
10
10
|
// inject consoleConfig & locales after load
|
|
@@ -12,8 +12,8 @@ function afterLoadHook(_x) {
|
|
|
12
12
|
return _afterLoadHook.apply(this, arguments);
|
|
13
13
|
}
|
|
14
14
|
function _afterLoadHook() {
|
|
15
|
-
_afterLoadHook = _asyncToGenerator(
|
|
16
|
-
var app, logger, sandbox, dynamicConfig, channel, defaultConsoleConfig, defaultConsoleGlobal, CONFIG_START_TIME, CONFIG_END_TIME,
|
|
15
|
+
_afterLoadHook = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(appConfig) {
|
|
16
|
+
var app, logger, sandbox, dynamicConfig, channel, defaultConsoleConfig, defaultConsoleGlobal, CONFIG_START_TIME, CONFIG_END_TIME, _yield$Promise$all, _yield$Promise$all2, _yield$Promise$all2$, consoleConfig, consoleGlobal, messages, i18nMessages, overrides;
|
|
17
17
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
18
18
|
while (1) switch (_context.prev = _context.next) {
|
|
19
19
|
case 0:
|
|
@@ -23,21 +23,27 @@ function _afterLoadHook() {
|
|
|
23
23
|
CONFIG_START_TIME = Date.now();
|
|
24
24
|
CONFIG_END_TIME = Date.now();
|
|
25
25
|
if (!dynamicConfig) {
|
|
26
|
-
_context.next =
|
|
26
|
+
_context.next = 19;
|
|
27
27
|
break;
|
|
28
28
|
}
|
|
29
29
|
_context.next = 8;
|
|
30
|
-
return
|
|
30
|
+
return Promise.all([getConfigV2(appConfig).then(function (data) {
|
|
31
|
+
if (!data) {
|
|
32
|
+
throw new Error('getConfigV2 returned null or undefined');
|
|
33
|
+
}
|
|
34
|
+
return [data.ALIYUN_CONSOLE_CONFIG, data.ALIYUN_CONSOLE_GLOBAL];
|
|
35
|
+
}).catch(function () {
|
|
36
|
+
return getConfig(appConfig).then(function (data) {
|
|
37
|
+
return [getConsoleConfig(data, defaultConsoleConfig, channel), getConsoleGlobal(data, defaultConsoleGlobal)];
|
|
38
|
+
});
|
|
39
|
+
}), getI18nMessages(appConfig)]);
|
|
31
40
|
case 8:
|
|
32
|
-
configData = _context.sent;
|
|
33
|
-
_context.next = 11;
|
|
34
|
-
return Promise.all([getConsoleConfig(configData, defaultConsoleConfig, channel), getConsoleGlobal(configData, defaultConsoleGlobal), getI18nMessages(appConfig)]);
|
|
35
|
-
case 11:
|
|
36
41
|
_yield$Promise$all = _context.sent;
|
|
37
|
-
_yield$Promise$all2 = _slicedToArray(_yield$Promise$all,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
_yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 2);
|
|
43
|
+
_yield$Promise$all2$ = _slicedToArray(_yield$Promise$all2[0], 2);
|
|
44
|
+
consoleConfig = _yield$Promise$all2$[0];
|
|
45
|
+
consoleGlobal = _yield$Promise$all2$[1];
|
|
46
|
+
messages = _yield$Promise$all2[1];
|
|
41
47
|
CONFIG_END_TIME = Date.now();
|
|
42
48
|
i18nMessages = _objectSpread(_objectSpread({}, window.ALIYUN_CONSOLE_I18N_MESSAGE), messages); // inject global variables when sandbox is valid
|
|
43
49
|
if (app !== null && app !== void 0 && app.context && !(sandbox !== null && sandbox !== void 0 && sandbox.disable)) {
|
|
@@ -46,16 +52,16 @@ function _afterLoadHook() {
|
|
|
46
52
|
app.context.window.ALIYUN_CONSOLE_I18N_MESSAGE = i18nMessages;
|
|
47
53
|
app.context.window.ALIYUN_WIND_MESSAGE = window.ALIYUN_WIND_MESSAGE;
|
|
48
54
|
}
|
|
49
|
-
_context.next =
|
|
55
|
+
_context.next = 20;
|
|
50
56
|
break;
|
|
51
|
-
case
|
|
57
|
+
case 19:
|
|
52
58
|
if (app !== null && app !== void 0 && app.context && !(sandbox !== null && sandbox !== void 0 && sandbox.disable)) {
|
|
53
59
|
app.context.window.ALIYUN_CONSOLE_CONFIG = defaultConsoleConfig;
|
|
54
60
|
app.context.window.ALIYUN_CONSOLE_GLOBAL = defaultConsoleGlobal;
|
|
55
61
|
app.context.window.ALIYUN_CONSOLE_I18N_MESSAGE = window.ALIYUN_CONSOLE_I18N_MESSAGE;
|
|
56
62
|
app.context.window.ALIYUN_WIND_MESSAGE = window.ALIYUN_WIND_MESSAGE;
|
|
57
63
|
}
|
|
58
|
-
case
|
|
64
|
+
case 20:
|
|
59
65
|
overrides = sandbox === null || sandbox === void 0 ? void 0 : sandbox.overrideGlobalVars;
|
|
60
66
|
if (overrides && app) {
|
|
61
67
|
Object.entries(overrides).forEach(function (_ref) {
|
|
@@ -71,7 +77,7 @@ function _afterLoadHook() {
|
|
|
71
77
|
COST: CONFIG_END_TIME - CONFIG_START_TIME
|
|
72
78
|
});
|
|
73
79
|
return _context.abrupt("return", appConfig);
|
|
74
|
-
case
|
|
80
|
+
case 24:
|
|
75
81
|
case "end":
|
|
76
82
|
return _context.stop();
|
|
77
83
|
}
|
|
@@ -9,7 +9,7 @@ function beforeResolveHook(_x) {
|
|
|
9
9
|
return _beforeResolveHook.apply(this, arguments);
|
|
10
10
|
}
|
|
11
11
|
function _beforeResolveHook() {
|
|
12
|
-
_beforeResolveHook = _asyncToGenerator(
|
|
12
|
+
_beforeResolveHook = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(appConfig) {
|
|
13
13
|
var logger, START_TIME, MANIFEST_START_TIME, resolvedManifest, MANIFEST_END_TIME;
|
|
14
14
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
15
15
|
while (1) switch (_context.prev = _context.next) {
|
package/es/schedule.js
CHANGED
|
@@ -7,7 +7,7 @@ export var Schedule = /*#__PURE__*/function () {
|
|
|
7
7
|
this.running = [];
|
|
8
8
|
this.delaying = [];
|
|
9
9
|
}
|
|
10
|
-
_createClass(Schedule, [{
|
|
10
|
+
return _createClass(Schedule, [{
|
|
11
11
|
key: "push",
|
|
12
12
|
value: function push(priority, task) {
|
|
13
13
|
var _this = this;
|
|
@@ -37,5 +37,4 @@ export var Schedule = /*#__PURE__*/function () {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}]);
|
|
40
|
-
return Schedule;
|
|
41
40
|
}();
|
package/es/types/base.js
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
-
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
5
4
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
6
|
-
|
|
7
|
-
function
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React from 'react';
|
|
9
9
|
var MicroAppBase = /*#__PURE__*/function (_React$Component) {
|
|
10
|
-
_inherits(MicroAppBase, _React$Component);
|
|
11
|
-
var _super = _createSuper(MicroAppBase);
|
|
12
10
|
function MicroAppBase() {
|
|
13
11
|
_classCallCheck(this, MicroAppBase);
|
|
14
|
-
return
|
|
12
|
+
return _callSuper(this, MicroAppBase, arguments);
|
|
15
13
|
}
|
|
14
|
+
_inherits(MicroAppBase, _React$Component);
|
|
16
15
|
return _createClass(MicroAppBase);
|
|
17
16
|
}(React.Component);
|
|
18
17
|
export { MicroAppBase as default };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
2
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
-
|
|
4
|
-
function
|
|
5
|
-
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; }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
4
|
import { getMainUid, getMD5MainUid } from '@alicloud/alfa-core';
|
|
7
5
|
|
|
8
6
|
/**
|
|
@@ -76,19 +74,6 @@ var mergeConfigDataWithConsoleConfig = function mergeConfigDataWithConsoleConfig
|
|
|
76
74
|
FEATURE_STATUS: _objectSpread(_objectSpread({}, consoleConfig === null || consoleConfig === void 0 ? void 0 : consoleConfig.FEATURE_STATUS), processFeatures(features))
|
|
77
75
|
});
|
|
78
76
|
};
|
|
79
|
-
export var getConsoleConfig =
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
while (1) switch (_context.prev = _context.next) {
|
|
83
|
-
case 0:
|
|
84
|
-
return _context.abrupt("return", mergeConfigDataWithConsoleConfig(configData, consoleConfig, channel));
|
|
85
|
-
case 1:
|
|
86
|
-
case "end":
|
|
87
|
-
return _context.stop();
|
|
88
|
-
}
|
|
89
|
-
}, _callee);
|
|
90
|
-
}));
|
|
91
|
-
return function getConsoleConfig(_x, _x2, _x3) {
|
|
92
|
-
return _ref.apply(this, arguments);
|
|
93
|
-
};
|
|
94
|
-
}();
|
|
77
|
+
export var getConsoleConfig = function getConsoleConfig(configData, consoleConfig, channel) {
|
|
78
|
+
return mergeConfigDataWithConsoleConfig(configData, consoleConfig, channel);
|
|
79
|
+
};
|
|
@@ -1,21 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(configData, global) {
|
|
8
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
9
|
-
while (1) switch (_context.prev = _context.next) {
|
|
10
|
-
case 0:
|
|
11
|
-
return _context.abrupt("return", _objectSpread(_objectSpread({}, global), configData === null || configData === void 0 ? void 0 : configData.GLOBAL_DATA));
|
|
12
|
-
case 1:
|
|
13
|
-
case "end":
|
|
14
|
-
return _context.stop();
|
|
15
|
-
}
|
|
16
|
-
}, _callee);
|
|
17
|
-
}));
|
|
18
|
-
return function getConsoleGlobal(_x, _x2) {
|
|
19
|
-
return _ref.apply(this, arguments);
|
|
20
|
-
};
|
|
21
|
-
}();
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
export var getConsoleGlobal = function getConsoleGlobal(configData, global) {
|
|
5
|
+
return _objectSpread(_objectSpread({}, global), configData === null || configData === void 0 ? void 0 : configData.GLOBAL_DATA);
|
|
6
|
+
};
|
package/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export var version = '
|
|
1
|
+
export var version = '2.0.0-alpha.0';
|
package/es/widget/emitter.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
-
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
5
4
|
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
6
|
-
|
|
7
|
-
function
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import { EventEmitter } from 'events';
|
|
9
9
|
var WidgetEventEmitter = /*#__PURE__*/function (_EventEmitter) {
|
|
10
|
-
_inherits(WidgetEventEmitter, _EventEmitter);
|
|
11
|
-
var _super = _createSuper(WidgetEventEmitter);
|
|
12
10
|
function WidgetEventEmitter() {
|
|
13
11
|
_classCallCheck(this, WidgetEventEmitter);
|
|
14
|
-
return
|
|
12
|
+
return _callSuper(this, WidgetEventEmitter, arguments);
|
|
15
13
|
}
|
|
16
|
-
|
|
14
|
+
_inherits(WidgetEventEmitter, _EventEmitter);
|
|
15
|
+
return _createClass(WidgetEventEmitter, [{
|
|
17
16
|
key: "refersh",
|
|
18
17
|
value:
|
|
19
18
|
// Compatible with the old api, this may get removed at sometime later.
|
|
@@ -26,6 +25,5 @@ var WidgetEventEmitter = /*#__PURE__*/function (_EventEmitter) {
|
|
|
26
25
|
return this.emit("".concat(widgetId, ":REFRESH"));
|
|
27
26
|
}
|
|
28
27
|
}]);
|
|
29
|
-
return WidgetEventEmitter;
|
|
30
28
|
}(EventEmitter);
|
|
31
29
|
export default new WidgetEventEmitter();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
-
import template from 'lodash
|
|
3
|
+
import { template } from 'lodash-es';
|
|
4
4
|
import { request } from '@alicloud/alfa-core';
|
|
5
5
|
import { ENV, getConsoleEnv } from './env';
|
|
6
6
|
var cachedConfig = {};
|
|
7
7
|
export var getWidgetConfigById = /*#__PURE__*/function () {
|
|
8
|
-
var _ref = _asyncToGenerator(
|
|
8
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(option) {
|
|
9
9
|
var env, resp;
|
|
10
10
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
11
11
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
|
-
function ownKeys(
|
|
5
|
-
function _objectSpread(
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
import react from 'react';
|
|
7
7
|
import reactDom from 'react-dom';
|
|
8
8
|
import axios from 'axios';
|
|
9
|
-
import kebabCase from 'lodash
|
|
9
|
+
import { kebabCase } from 'lodash-es';
|
|
10
10
|
import * as propTypes from 'prop-types';
|
|
11
11
|
import { loadBundle } from '@alicloud/console-os-loader';
|
|
12
12
|
import { createCWSWidget } from '../widget';
|
|
@@ -35,8 +35,7 @@ var createWidget = function createWidget(option) {
|
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
export var getWidgetDeps = /*#__PURE__*/function () {
|
|
38
|
-
var _ref2 = _asyncToGenerator(
|
|
39
|
-
var _objectSpread2;
|
|
38
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(config, option) {
|
|
40
39
|
var _yield$getWidgetVersi, _yield$getWidgetVersi2, entryUrl, version, _yield$getWidgetVersi3, _yield$getWidgetVersi4, messageVersion, resp, _yield$getWidgetVersi5, oldVersion, components, injectedWidgetUtils;
|
|
41
40
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
42
41
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -140,7 +139,7 @@ export var getWidgetDeps = /*#__PURE__*/function () {
|
|
|
140
139
|
'react-dom': reactDom,
|
|
141
140
|
'prop-types': propTypes,
|
|
142
141
|
axios: axios
|
|
143
|
-
}, cachedRuntime[version].default), {}, (
|
|
142
|
+
}, cachedRuntime[version].default), {}, _defineProperty(_defineProperty(_defineProperty({}, WIDGET_UTILS_PKG_NAME, injectedWidgetUtils), '@ali/widget-utils-config', injectedWidgetUtils), '@ali/widget-loader', createWidget)));
|
|
144
143
|
case 33:
|
|
145
144
|
case "end":
|
|
146
145
|
return _context.stop();
|