publ-echo-test 0.0.123 → 0.0.125

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
  }
@@ -56,6 +56,9 @@ export var findBlockByBlockId = function (block, blockId) {
56
56
  if (block.type !== 'GROUP_BLOCK' || block.children.length === 0) {
57
57
  return null;
58
58
  }
59
+ if (block.blockId === 'ROOT' && blockId === 'ROOT') {
60
+ return block;
61
+ }
59
62
  for (var _i = 0, _a = block.children; _i < _a.length; _i++) {
60
63
  var child = _a[_i];
61
64
  if (child.blockId === blockId) {
@@ -98,6 +101,7 @@ export var findDirectChildrenBlockIds = function (block, targetId) {
98
101
  }
99
102
  return collectChildrenBlockIds(targetBlock, 'current');
100
103
  };
104
+ // NOTE: 타겟과 하위 모두.
101
105
  export var findGroupBlocks = function (block, targetId) {
102
106
  var targetBlock = findBlockByBlockId(block, targetId);
103
107
  // const groupBlocks: Set<GroupBlock> = new Set();
@@ -117,7 +121,7 @@ export var findGroupBlocks = function (block, targetId) {
117
121
  return [];
118
122
  }
119
123
  var groupBlocks = targetBlock.children.filter(function (child) { return child.type === 'GROUP_BLOCK'; });
120
- return groupBlocks;
124
+ return [targetBlock].concat(groupBlocks);
121
125
  // if (targetBlock.blockId === 'ROOT') {
122
126
  // addGroupBlocks(targetBlock as RootBlock);
123
127
  // }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.123",
3
+ "version": "0.0.125",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",