publ-echo-test 0.0.125 → 0.0.126

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.
@@ -689,6 +689,7 @@ var ReactGridLayout = function (_a) {
689
689
  isHiddenVisibility: isHiddenVisibility, customColWidth: colWidth, autoResize: false, onContextGroup: handleClickContextGroup, children: _jsx("div", { onClick: handleClick, onDoubleClick: handleDoubleClick }) }, block.blockId) }));
690
690
  };
691
691
  var currentGroupBlocks = blockStructure ? findGroupBlocks(blockStructure, editingGroupBlock) : [];
692
+ console.log('currentGroupBlocks', currentGroupBlocks);
692
693
  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: {
693
694
  marginTop: margin[1] + "px",
694
695
  marginBottom: margin[1] + "px",
@@ -121,6 +121,9 @@ export var findGroupBlocks = function (block, targetId) {
121
121
  return [];
122
122
  }
123
123
  var groupBlocks = targetBlock.children.filter(function (child) { return child.type === 'GROUP_BLOCK'; });
124
+ if (targetBlock.blockId === 'ROOT') {
125
+ return groupBlocks;
126
+ }
124
127
  return [targetBlock].concat(groupBlocks);
125
128
  // if (targetBlock.blockId === 'ROOT') {
126
129
  // addGroupBlocks(targetBlock as RootBlock);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.125",
3
+ "version": "0.0.126",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",