@alicloud/alfa-react 1.4.16 → 1.4.17

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.
@@ -53,13 +53,26 @@ export default function createApplication(loader) {
53
53
  var appRef = useRef(undefined);
54
54
  var tagName = normalizeName(props.name);
55
55
  var sandbox = useMemo(function () {
56
+ var _UA_Opt, _RISK_INFO, _um;
57
+
58
+ var aliyunExternalsVars = [];
59
+
60
+ if ((_UA_Opt = window.UA_Opt) !== null && _UA_Opt !== void 0 && _UA_Opt.LogVal) {
61
+ var _UA_Opt2;
62
+
63
+ aliyunExternalsVars.push('UA_Opt');
64
+ aliyunExternalsVars.push((_UA_Opt2 = window.UA_Opt) === null || _UA_Opt2 === void 0 ? void 0 : _UA_Opt2.LogVal);
65
+ }
66
+
67
+ if ((_RISK_INFO = window.RISK_INFO) !== null && _RISK_INFO !== void 0 && _RISK_INFO.UMID) aliyunExternalsVars.push('RISK_INFO');
68
+ if ((_um = window.um) !== null && _um !== void 0 && _um.getToken) aliyunExternalsVars.push('um');
56
69
  return _objectSpread(_objectSpread({}, customSandbox), {}, {
57
70
  // allowResources: [
58
71
  // ...(customSandbox?.allowResources || []),
59
72
  // /^https?:\/\/at\.alicdn\.com\//,
60
73
  // ],
61
74
  externalsVars: [].concat(_toConsumableArray((customSandbox === null || customSandbox === void 0 ? void 0 : customSandbox.externalsVars) || []), [// global vars used in ConsoleBase.forApp
62
- '_console_base_ready_'])
75
+ '_console_base_ready_'], aliyunExternalsVars)
63
76
  });
64
77
  }, [customSandbox]);
65
78
  var memoOptions = useMemo(function () {
package/es/version.js CHANGED
@@ -1 +1 @@
1
- export var version = '1.4.16';
1
+ export var version = '1.4.17';
@@ -75,13 +75,26 @@ function createApplication(loader) {
75
75
  var appRef = (0, _react.useRef)(undefined);
76
76
  var tagName = (0, _utils.normalizeName)(props.name);
77
77
  var sandbox = (0, _react.useMemo)(function () {
78
+ var _UA_Opt, _RISK_INFO, _um;
79
+
80
+ var aliyunExternalsVars = [];
81
+
82
+ if ((_UA_Opt = window.UA_Opt) !== null && _UA_Opt !== void 0 && _UA_Opt.LogVal) {
83
+ var _UA_Opt2;
84
+
85
+ aliyunExternalsVars.push('UA_Opt');
86
+ aliyunExternalsVars.push((_UA_Opt2 = window.UA_Opt) === null || _UA_Opt2 === void 0 ? void 0 : _UA_Opt2.LogVal);
87
+ }
88
+
89
+ if ((_RISK_INFO = window.RISK_INFO) !== null && _RISK_INFO !== void 0 && _RISK_INFO.UMID) aliyunExternalsVars.push('RISK_INFO');
90
+ if ((_um = window.um) !== null && _um !== void 0 && _um.getToken) aliyunExternalsVars.push('um');
78
91
  return _objectSpread(_objectSpread({}, customSandbox), {}, {
79
92
  // allowResources: [
80
93
  // ...(customSandbox?.allowResources || []),
81
94
  // /^https?:\/\/at\.alicdn\.com\//,
82
95
  // ],
83
96
  externalsVars: [].concat((0, _toConsumableArray2.default)((customSandbox === null || customSandbox === void 0 ? void 0 : customSandbox.externalsVars) || []), [// global vars used in ConsoleBase.forApp
84
- '_console_base_ready_'])
97
+ '_console_base_ready_'], aliyunExternalsVars)
85
98
  });
86
99
  }, [customSandbox]);
87
100
  var memoOptions = (0, _react.useMemo)(function () {
package/lib/version.js CHANGED
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.version = void 0;
7
- var version = '1.4.16';
7
+ var version = '1.4.17';
8
8
  exports.version = version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/alfa-react",
3
- "version": "1.4.16",
3
+ "version": "1.4.17",
4
4
  "description": "Alfa Framework (React Version)",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -51,5 +51,5 @@
51
51
  "peerDependencies": {
52
52
  "react": "^16 | ^17"
53
53
  },
54
- "gitHead": "5b6df704caee49dd39086c022fe64779c5ed720d"
54
+ "gitHead": "58ccc6a6b1126f84da4a55cf78de8d30ce7d664a"
55
55
  }
@@ -1 +1 @@
1
- export declare const version = "1.4.16";
1
+ export declare const version = "1.4.17";