publ-echo-test 0.0.94 → 0.0.96

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.
@@ -629,6 +629,7 @@ var ReactGridLayout = function (_a) {
629
629
  onDoubleClickGroup && onDoubleClickGroup(e, block.blockId, type);
630
630
  };
631
631
  return (_jsx(OutsideClickHandler, { onOutsideClick: onDoubleClickOutsideGroup, children: _jsx(GroupItem, { className: classNames({
632
+ 'bulk-child-item': isInBulk,
632
633
  'grid-bulk-block': block.blockId === 'BULK',
633
634
  'editing': editingGroupBlock === block.blockId,
634
635
  'selected': selectedGroupBlock === block.blockId
@@ -644,7 +645,6 @@ var ReactGridLayout = function (_a) {
644
645
  isHiddenVisibility: isHiddenVisibility, customColWidth: colWidth, autoResize: false, children: _jsx("div", { onClick: handleClick, onDoubleClick: handleDoubleClick }) }, block.blockId) }));
645
646
  };
646
647
  var currentGroupBlocks = blockStructure ? findGroupBlocks(blockStructure, editingGroupBlock) : [];
647
- console.log('currentGroupBlocks: ', currentGroupBlocks);
648
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: {
649
649
  marginTop: margin[1] + "px",
650
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.94",
3
+ "version": "0.0.96",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",