publ-echo-test 0.0.124 → 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.
@@ -641,16 +641,6 @@ var ReactGridLayout = function (_a) {
641
641
  }
642
642
  var childrenIds = findAllChildrenCbIds(blockStructure, block.blockId).map(function (i) { return i.toString(); });
643
643
  var groupItem = getBoundingArea(layout, childrenIds);
644
- // const draggable =
645
- // typeof l.isDraggable === "boolean"
646
- // ? l.isDraggable
647
- // : !l.static && isDraggable;
648
- // const resizable =
649
- // typeof l.isResizable === "boolean"
650
- // ? l.isResizable
651
- // : !l.static && isResizable;
652
- // const resizeHandlesOptions = l.resizeHandles || resizeHandles;
653
- // const bounded = draggable && isBounded && l.isBounded !== false;
654
644
  if (!groupItem) {
655
645
  return _jsx(_Fragment, {});
656
646
  }
@@ -699,6 +689,7 @@ var ReactGridLayout = function (_a) {
699
689
  isHiddenVisibility: isHiddenVisibility, customColWidth: colWidth, autoResize: false, onContextGroup: handleClickContextGroup, children: _jsx("div", { onClick: handleClick, onDoubleClick: handleDoubleClick }) }, block.blockId) }));
700
690
  };
701
691
  var currentGroupBlocks = blockStructure ? findGroupBlocks(blockStructure, editingGroupBlock) : [];
692
+ console.log('currentGroupBlocks', currentGroupBlocks);
702
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: {
703
694
  marginTop: margin[1] + "px",
704
695
  marginBottom: margin[1] + "px",
@@ -101,6 +101,7 @@ export var findDirectChildrenBlockIds = function (block, targetId) {
101
101
  }
102
102
  return collectChildrenBlockIds(targetBlock, 'current');
103
103
  };
104
+ // NOTE: 타겟과 하위 모두.
104
105
  export var findGroupBlocks = function (block, targetId) {
105
106
  var targetBlock = findBlockByBlockId(block, targetId);
106
107
  // const groupBlocks: Set<GroupBlock> = new Set();
@@ -120,7 +121,10 @@ export var findGroupBlocks = function (block, targetId) {
120
121
  return [];
121
122
  }
122
123
  var groupBlocks = targetBlock.children.filter(function (child) { return child.type === 'GROUP_BLOCK'; });
123
- return groupBlocks;
124
+ if (targetBlock.blockId === 'ROOT') {
125
+ return groupBlocks;
126
+ }
127
+ return [targetBlock].concat(groupBlocks);
124
128
  // if (targetBlock.blockId === 'ROOT') {
125
129
  // addGroupBlocks(targetBlock as RootBlock);
126
130
  // }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.124",
3
+ "version": "0.0.126",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",