@next-core/editor-bricks-helper 0.48.0 → 0.48.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 +17 -1
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +17 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -942,7 +942,23 @@ class BuilderDataManager {
|
|
|
942
942
|
var updateNode = nodes.find(item => item.instanceId === instanceId);
|
|
943
943
|
var newNodes = nodes.map(item => {
|
|
944
944
|
if (item.instanceId === instanceId) {
|
|
945
|
-
|
|
945
|
+
var unreachable = false;
|
|
946
|
+
var normalized = detail.$$normalized;
|
|
947
|
+
|
|
948
|
+
if ((normalized === null || normalized === void 0 ? void 0 : normalized.if) !== undefined && (isBrickNode(item) || isRouteNode(item))) {
|
|
949
|
+
var check = {
|
|
950
|
+
if: normalized.if
|
|
951
|
+
};
|
|
952
|
+
computeConstantCondition(check);
|
|
953
|
+
|
|
954
|
+
if (check.if === false) {
|
|
955
|
+
unreachable = true;
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
return _objectSpread(_objectSpread(_objectSpread({}, item), detail), {}, {
|
|
960
|
+
$$unreachable: unreachable
|
|
961
|
+
});
|
|
946
962
|
}
|
|
947
963
|
|
|
948
964
|
return item;
|