@alicloud/alfa-react 2.0.3-alpha.1 → 2.0.3-alpha.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/createAlfaWidget.js +4 -3
- package/es/createApplication.js +0 -1
- package/es/version.js +1 -1
- package/lib/createAlfaWidget.js +4 -3
- package/lib/createApplication.js +0 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
- package/types/version.d.ts +1 -1
package/es/createAlfaWidget.js
CHANGED
|
@@ -70,12 +70,13 @@ function createAlfaWidget(option) {
|
|
|
70
70
|
sandbox: _objectSpread(_objectSpread({}, sandbox), {}, {
|
|
71
71
|
sandBoxUrl: 'about:blank'
|
|
72
72
|
}),
|
|
73
|
-
// 必须设置 container,否则沙箱会创建插入一个新的 body
|
|
74
|
-
container: document.body,
|
|
75
73
|
dynamicConfig: typeof dynamicConfig === 'boolean' ? dynamicConfig : !manifest
|
|
76
74
|
});
|
|
77
75
|
var createRegister = function createRegister() {
|
|
78
|
-
var p = loader.register(passedInOption)
|
|
76
|
+
var p = loader.register(_objectSpread(_objectSpread({}, passedInOption), {}, {
|
|
77
|
+
// 临时设置 container,否则沙箱会创建插入一个新的 body
|
|
78
|
+
container: document.body
|
|
79
|
+
}));
|
|
79
80
|
return /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
80
81
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
81
82
|
while (1) switch (_context2.prev = _context2.next) {
|
package/es/createApplication.js
CHANGED
|
@@ -84,7 +84,6 @@ export default function createApplication(loader) {
|
|
|
84
84
|
preLoader: preLoader,
|
|
85
85
|
container: container
|
|
86
86
|
});
|
|
87
|
-
console.log('createApplication');
|
|
88
87
|
var onSyncHistory = useCallbackRef(props.onSyncHistory || function () {});
|
|
89
88
|
$syncHistory.current = syncHistory;
|
|
90
89
|
$basename.current = basename;
|
package/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export var version = '2.0.3-alpha.
|
|
1
|
+
export var version = '2.0.3-alpha.3';
|
package/lib/createAlfaWidget.js
CHANGED
|
@@ -82,12 +82,13 @@ function createAlfaWidget(option) {
|
|
|
82
82
|
sandbox: _objectSpread(_objectSpread({}, sandbox), {}, {
|
|
83
83
|
sandBoxUrl: 'about:blank'
|
|
84
84
|
}),
|
|
85
|
-
// 必须设置 container,否则沙箱会创建插入一个新的 body
|
|
86
|
-
container: document.body,
|
|
87
85
|
dynamicConfig: typeof dynamicConfig === 'boolean' ? dynamicConfig : !manifest
|
|
88
86
|
});
|
|
89
87
|
var createRegister = function createRegister() {
|
|
90
|
-
var p = loader.register(passedInOption)
|
|
88
|
+
var p = loader.register(_objectSpread(_objectSpread({}, passedInOption), {}, {
|
|
89
|
+
// 临时设置 container,否则沙箱会创建插入一个新的 body
|
|
90
|
+
container: document.body
|
|
91
|
+
}));
|
|
91
92
|
return /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
92
93
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
93
94
|
while (1) switch (_context2.prev = _context2.next) {
|
package/lib/createApplication.js
CHANGED
|
@@ -94,7 +94,6 @@ function createApplication(loader) {
|
|
|
94
94
|
preLoader: preLoader,
|
|
95
95
|
container: container
|
|
96
96
|
});
|
|
97
|
-
console.log('createApplication');
|
|
98
97
|
var onSyncHistory = (0, _hooks.useCallbackRef)(props.onSyncHistory || function () {});
|
|
99
98
|
$syncHistory.current = syncHistory;
|
|
100
99
|
$basename.current = basename;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/alfa-react",
|
|
3
|
-
"version": "2.0.3-alpha.
|
|
3
|
+
"version": "2.0.3-alpha.3",
|
|
4
4
|
"description": "Alfa Framework (React Version)",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"lodash-es": "^4.17.21",
|
|
53
53
|
"prop-types": "^15.8.1",
|
|
54
54
|
"react-lazyload": "^3.2.1",
|
|
55
|
-
"@alicloud/alfa-core": "^1.5.6-alpha.
|
|
55
|
+
"@alicloud/alfa-core": "^1.5.6-alpha.1",
|
|
56
56
|
"@alicloud/console-os-loader": "^1.4.45-alpha.1"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
package/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "2.0.3-alpha.
|
|
1
|
+
export declare const version = "2.0.3-alpha.3";
|