publ-echo-test 0.0.93 → 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.
@@ -644,6 +644,7 @@ var ReactGridLayout = function (_a) {
|
|
644
644
|
isHiddenVisibility: isHiddenVisibility, customColWidth: colWidth, autoResize: false, children: _jsx("div", { onClick: handleClick, onDoubleClick: handleDoubleClick }) }, block.blockId) }));
|
645
645
|
};
|
646
646
|
var currentGroupBlocks = blockStructure ? findGroupBlocks(blockStructure, editingGroupBlock) : [];
|
647
|
+
console.log('currentGroupBlocks: ', currentGroupBlocks);
|
647
648
|
return (_jsxs("div", { ref: innerRef, className: mergedClassName, style: mergedStyle, onDrop: isDroppable ? onDropHandler : noop, onDragLeave: isDroppable ? onDragLeaveHandler : noop, onDragEnter: isDroppable ? onDragEnterHandler : noop, onDragOver: isDroppable ? onDragOverHandler : noop, children: [currentGroupBlocks.map(function (each) { return processGroup(each); }), React.Children.map(children, function (child) { return processGridItem(child); }), placeholder(), activeDrag && _jsx("div", { className: "grid-guide-line-center" }), activeDrag && (_jsx("div", { className: "grid-placeholder", style: {
|
648
649
|
marginTop: margin[1] + "px",
|
649
650
|
marginBottom: margin[1] + "px",
|
@@ -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;
|