@next-core/brick-kit 2.193.0 → 2.193.1
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.bundle.js +22 -13
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +21 -14
- package/dist/index.esm.js.map +1 -1
- package/dist/types/core/CollectContracts.d.ts +2 -0
- package/dist/types/core/CollectContracts.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.bundle.js
CHANGED
|
@@ -3666,19 +3666,19 @@
|
|
|
3666
3666
|
var runtimeContext = _objectSpread__default["default"](_objectSpread__default["default"]({}, _internalApiGetCurrentContext()), {}, {
|
|
3667
3667
|
tplContextId
|
|
3668
3668
|
});
|
|
3669
|
-
if (debugData.
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
cache: "reload"
|
|
3678
|
-
});
|
|
3669
|
+
if (debugData.resolve) {
|
|
3670
|
+
var hasTransform = debugData.resolve.transform;
|
|
3671
|
+
var result = {};
|
|
3672
|
+
yield _internalApiGetResolver().resolveOne("reference", hasTransform ? debugData.resolve : _objectSpread__default["default"](_objectSpread__default["default"]({}, debugData.resolve), {}, {
|
|
3673
|
+
transform: "value"
|
|
3674
|
+
}), result, null, runtimeContext, {
|
|
3675
|
+
cache: "reload"
|
|
3676
|
+
});
|
|
3679
3677
|
|
|
3680
|
-
|
|
3681
|
-
|
|
3678
|
+
// 跟 v3 的数据结构保持一致,有 transform 时返回完整定义,无 transform 时直接返回数据
|
|
3679
|
+
return hasTransform ? result : result.value;
|
|
3680
|
+
}
|
|
3681
|
+
return computeRealValue(debugData.value, runtimeContext, true);
|
|
3682
3682
|
});
|
|
3683
3683
|
return _dev_only_debugDataValue2.apply(this, arguments);
|
|
3684
3684
|
}
|
|
@@ -6020,6 +6020,7 @@
|
|
|
6020
6020
|
|
|
6021
6021
|
var contractsMap = new Map();
|
|
6022
6022
|
var widgetContractMap = new Map();
|
|
6023
|
+
var debugContractMap = new Map();
|
|
6023
6024
|
var addContract = (contracts, map) => {
|
|
6024
6025
|
contracts === null || contracts === void 0 ? void 0 : contracts.forEach(contract => {
|
|
6025
6026
|
map.set("".concat(contract.namespaceId, ".").concat(contract.name), contract);
|
|
@@ -6034,8 +6035,14 @@
|
|
|
6034
6035
|
function clearCollectWidgetContract() {
|
|
6035
6036
|
widgetContractMap.clear();
|
|
6036
6037
|
}
|
|
6038
|
+
function collectDebugContract(contracts) {
|
|
6039
|
+
addContract(contracts, debugContractMap);
|
|
6040
|
+
}
|
|
6041
|
+
function clearDebugContract() {
|
|
6042
|
+
debugContractMap.clear();
|
|
6043
|
+
}
|
|
6037
6044
|
function getContract(name) {
|
|
6038
|
-
return contractsMap.get(name) || widgetContractMap.get(name);
|
|
6045
|
+
return contractsMap.get(name) || widgetContractMap.get(name) || debugContractMap.get(name);
|
|
6039
6046
|
}
|
|
6040
6047
|
|
|
6041
6048
|
var remoteContractCache = new Map();
|
|
@@ -16731,6 +16738,8 @@
|
|
|
16731
16738
|
exports.batchSetAppsLocalTheme = batchSetAppsLocalTheme;
|
|
16732
16739
|
exports.checkIf = checkIf;
|
|
16733
16740
|
exports.checkIfByTransform = checkIfByTransform;
|
|
16741
|
+
exports.clearDebugContract = clearDebugContract;
|
|
16742
|
+
exports.collectDebugContract = collectDebugContract;
|
|
16734
16743
|
exports.constructEventListener = constructEventListener;
|
|
16735
16744
|
exports.createHistory = createHistory;
|
|
16736
16745
|
exports.createRuntime = createRuntime;
|