@alicloud/alfa-react 2.0.3-alpha.2 → 2.0.3-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.
@@ -67,15 +67,17 @@ function createAlfaWidget(option) {
67
67
  var initialized = false;
68
68
  var passedInOption = _objectSpread(_objectSpread({}, option), {}, {
69
69
  noCache: true,
70
+ deps: dependencies || {},
70
71
  sandbox: _objectSpread(_objectSpread({}, sandbox), {}, {
71
72
  sandBoxUrl: 'about:blank'
72
73
  }),
73
- // 必须设置 container,否则沙箱会创建插入一个新的 body
74
- container: document.body,
75
74
  dynamicConfig: typeof dynamicConfig === 'boolean' ? dynamicConfig : !manifest
76
75
  });
77
76
  var createRegister = function createRegister() {
78
- var p = loader.register(passedInOption);
77
+ var p = loader.register(_objectSpread(_objectSpread({}, passedInOption), {}, {
78
+ // 临时设置 container,否则沙箱会创建插入一个新的 body
79
+ container: document.body
80
+ }));
79
81
  return /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
80
82
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
81
83
  while (1) switch (_context2.prev = _context2.next) {
package/es/version.js CHANGED
@@ -1 +1 @@
1
- export var version = '2.0.3-alpha.2';
1
+ export var version = '2.0.3-alpha.4';
@@ -79,15 +79,17 @@ function createAlfaWidget(option) {
79
79
  var initialized = false;
80
80
  var passedInOption = _objectSpread(_objectSpread({}, option), {}, {
81
81
  noCache: true,
82
+ deps: dependencies || {},
82
83
  sandbox: _objectSpread(_objectSpread({}, sandbox), {}, {
83
84
  sandBoxUrl: 'about:blank'
84
85
  }),
85
- // 必须设置 container,否则沙箱会创建插入一个新的 body
86
- container: document.body,
87
86
  dynamicConfig: typeof dynamicConfig === 'boolean' ? dynamicConfig : !manifest
88
87
  });
89
88
  var createRegister = function createRegister() {
90
- var p = loader.register(passedInOption);
89
+ var p = loader.register(_objectSpread(_objectSpread({}, passedInOption), {}, {
90
+ // 临时设置 container,否则沙箱会创建插入一个新的 body
91
+ container: document.body
92
+ }));
91
93
  return /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
92
94
  return _regenerator.default.wrap(function _callee2$(_context2) {
93
95
  while (1) switch (_context2.prev = _context2.next) {
package/lib/version.js CHANGED
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.version = void 0;
7
- var version = exports.version = '2.0.3-alpha.2';
7
+ var version = exports.version = '2.0.3-alpha.4';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/alfa-react",
3
- "version": "2.0.3-alpha.2",
3
+ "version": "2.0.3-alpha.4",
4
4
  "description": "Alfa Framework (React Version)",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -1 +1 @@
1
- export declare const version = "2.0.3-alpha.2";
1
+ export declare const version = "2.0.3-alpha.4";