publ-echo-test 0.0.372 → 0.0.374

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.
@@ -22,6 +22,7 @@ export function GridBackgroundPlaceholder(_a) {
22
22
  ? !!(activeBlock === null || activeBlock === void 0 ? void 0 : activeBlock.isHeightVariableDesktop)
23
23
  : !!(activeBlock === null || activeBlock === void 0 ? void 0 : activeBlock.isHeightVariableMobile);
24
24
  var showActiveRows = !!activeDrag.heightFitContent || isHeightVariable;
25
+ console.log("activeBlock in placeholder", activeBlock);
25
26
  return (_jsx("div", { className: "grid-placeholder", style: {
26
27
  marginTop: margin[1] + "px",
27
28
  marginBottom: margin[1] + "px",
@@ -37,6 +38,6 @@ export function GridBackgroundPlaceholder(_a) {
37
38
  return (_jsxs("g", { children: [activeCols.map(function (col) {
38
39
  var x = col * (colWidth + margin[0]) + 0.5;
39
40
  return (_jsx("rect", { x: x, y: y_top, width: colWidth, height: rowHeight, className: "grid-active-cell-placeholder" }, "active-".concat(row, "-").concat(col)));
40
- }), _jsx("foreignObject", { x: gridContentWidth + textPadding, y: y_center, width: colWidth, height: rowHeight, children: _jsx("div", { className: "grid-indicator-text" }) })] }, "active-row-".concat(row)));
41
+ }), _jsx("foreignObject", { x: gridContentWidth + textPadding, y: y_top, width: colWidth, height: rowHeight, style: { overflow: "visible" }, children: _jsx("div", { className: "grid-indicator-text" }) })] }, "active-row-".concat(row)));
41
42
  })] }) }));
42
43
  }
@@ -771,6 +771,8 @@ var ReactGridLayout = function (_a) {
771
771
  var activeRowsFiltered = shouldShowAllHeightVariableRows
772
772
  ? heightVariableRows
773
773
  : activeRows;
774
+ console.log("activeBlock", activeBlock);
775
+ console.log("activeRowsFiltered", activeRowsFiltered);
774
776
  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, "data-grid-row-height": rowHeight, "data-grid-cols": cols, "data-section-id": sectionId, 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" }), activeDragItemOrSelectedItem && (_jsx(GridBackgroundPlaceholder, { device: device, backgroundWidth: getBackgroundWidth(), backgroundHeight: getBackgroundHeight(), margin: margin,
775
777
  // width={width}
776
778
  rowHeight: rowHeight, activeRows: activeRowsFiltered !== null && activeRowsFiltered !== void 0 ? activeRowsFiltered : [], colWidth: colWidth, activeDrag: activeDragItemOrSelectedItem, activeBlock: activeBlock, selectedBlockId: selectedBlockId, totalCols: cols }))] }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.372",
3
+ "version": "0.0.374",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",