publ-echo-test 0.0.360 → 0.0.361

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.
@@ -64,9 +64,6 @@ var ReactGridLayout = function (_a) {
64
64
  var editableBlockIds = blockStructure
65
65
  ? findDirectChildrenCbIds(blockStructure, editingGroupBlock)
66
66
  : [];
67
- var selectedBlock = blockStructure && selectedBlockId
68
- ? findBlockByBlockId(blockStructure, selectedBlockId)
69
- : null;
70
67
  var editingGroupAllChildren = blockStructure && editingGroupBlock
71
68
  ? findAllChildrenCbIds(blockStructure, editingGroupBlock).map(function (i) {
72
69
  return i.toString();
@@ -231,6 +228,7 @@ var ReactGridLayout = function (_a) {
231
228
  placeholder: true,
232
229
  i: i,
233
230
  heightFitContent: l.heightFitContent,
231
+ isHeightVariable: l.isHeightVariable,
234
232
  };
235
233
  var isUserAction = true;
236
234
  var newLayout = isGroup
@@ -442,6 +440,7 @@ var ReactGridLayout = function (_a) {
442
440
  static: true,
443
441
  i: i,
444
442
  heightFitContent: l.heightFitContent,
443
+ isHeightVariable: l.isHeightVariable,
445
444
  };
446
445
  props.onResize &&
447
446
  props.onResize({
@@ -778,10 +777,17 @@ var ReactGridLayout = function (_a) {
778
777
  ? getLayoutItem(layout, selectedBlockId)
779
778
  : null;
780
779
  var activeDragItemOrSelectedItem = activeDrag || selectedLayoutItem;
780
+ var activeBlock = activeDragItemOrSelectedItem
781
+ ? blockStructure
782
+ ? findBlockByBlockId(blockStructure, formatCbIdToBlockId(Number(activeDragItemOrSelectedItem.i)))
783
+ : null
784
+ : null;
781
785
  var activeRows = activeDragItemOrSelectedItem &&
782
786
  Array.from({ length: activeDragItemOrSelectedItem.h }, function (_, i) { return activeDragItemOrSelectedItem.y + i; });
783
787
  var heightVariableRows = getRowsForHeightFitContentItems(layout);
784
- var shouldShowAllHeightVariableRows = activeDragItemOrSelectedItem === null || activeDragItemOrSelectedItem === void 0 ? void 0 : activeDragItemOrSelectedItem.isHeightVariable;
788
+ var shouldShowAllHeightVariableRows = device === "DESKTOP"
789
+ ? activeBlock === null || activeBlock === void 0 ? void 0 : activeBlock.isHeightVariableDesktop
790
+ : activeBlock === null || activeBlock === void 0 ? void 0 : activeBlock.isHeightVariableMobile;
785
791
  var activeRowsFiltered = shouldShowAllHeightVariableRows
786
792
  ? heightVariableRows
787
793
  : activeRows;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.360",
3
+ "version": "0.0.361",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",