@next-core/brick-utils 2.52.4 → 2.52.6
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 +8 -2
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +8 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +5 -5
package/dist/index.bundle.js
CHANGED
|
@@ -20412,6 +20412,9 @@
|
|
|
20412
20412
|
case "MetaMenuItem":
|
|
20413
20413
|
shakeConditionalNodes(node.children, node.raw, "children");
|
|
20414
20414
|
break;
|
|
20415
|
+
case "Context":
|
|
20416
|
+
shakeConditionalNodes(node.onChange, node.raw, "onChange");
|
|
20417
|
+
break;
|
|
20415
20418
|
}
|
|
20416
20419
|
|
|
20417
20420
|
// Remove unreachable context/state.
|
|
@@ -20431,8 +20434,8 @@
|
|
|
20431
20434
|
var removedNodes = [];
|
|
20432
20435
|
if (Array.isArray(conditionalNodes)) {
|
|
20433
20436
|
for (var node of conditionalNodes) {
|
|
20434
|
-
var
|
|
20435
|
-
if ((
|
|
20437
|
+
var _node$else;
|
|
20438
|
+
if (isStoryboardNodeEventHandler(node) && (_node$else = node.else) !== null && _node$else !== void 0 && _node$else.length) {
|
|
20436
20439
|
switch (node.raw.if) {
|
|
20437
20440
|
case false:
|
|
20438
20441
|
node.then = node.else;
|
|
@@ -20469,6 +20472,9 @@
|
|
|
20469
20472
|
}
|
|
20470
20473
|
}
|
|
20471
20474
|
}
|
|
20475
|
+
function isStoryboardNodeEventHandler(node) {
|
|
20476
|
+
return node.type === "EventHandler";
|
|
20477
|
+
}
|
|
20472
20478
|
|
|
20473
20479
|
/**
|
|
20474
20480
|
* Like `removeDeadConditions` but applied to a custom template.
|