publ-echo-test 0.0.94 → 0.0.95
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.
@@ -134,6 +134,13 @@ export var findGroupBlocks = function (blockStructure, targetId) {
|
|
134
134
|
if (targetBlock && targetBlock.blockId === 'ROOT') {
|
135
135
|
if ('children' in targetBlock) {
|
136
136
|
groupBlocks.push.apply(groupBlocks, targetBlock.children.filter(function (child) { return child.type === 'GROUP_BLOCK'; }));
|
137
|
+
// Include BULK children if present
|
138
|
+
var bulkBlocks = targetBlock.children.filter(function (child) { return child.blockId === 'BULK'; });
|
139
|
+
bulkBlocks.forEach(function (bulk) {
|
140
|
+
if ('children' in bulk && bulk.children) {
|
141
|
+
groupBlocks.push.apply(groupBlocks, bulk.children.filter(function (child) { return child.type === 'GROUP_BLOCK'; }));
|
142
|
+
}
|
143
|
+
});
|
137
144
|
return groupBlocks;
|
138
145
|
}
|
139
146
|
}
|
@@ -141,6 +148,13 @@ export var findGroupBlocks = function (blockStructure, targetId) {
|
|
141
148
|
groupBlocks.push(targetBlock);
|
142
149
|
if (targetBlock.children) {
|
143
150
|
groupBlocks.push.apply(groupBlocks, targetBlock.children.filter(function (child) { return child.type === 'GROUP_BLOCK'; }));
|
151
|
+
// Include BULK children if present
|
152
|
+
var bulkBlocks = targetBlock.children.filter(function (child) { return child.blockId === 'BULK'; });
|
153
|
+
bulkBlocks.forEach(function (bulk) {
|
154
|
+
if ('children' in bulk && bulk.children) {
|
155
|
+
groupBlocks.push.apply(groupBlocks, bulk.children.filter(function (child) { return child.type === 'GROUP_BLOCK'; }));
|
156
|
+
}
|
157
|
+
});
|
144
158
|
}
|
145
159
|
}
|
146
160
|
return groupBlocks;
|