publ-echo-test 0.0.74 → 0.0.76

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.
@@ -207,6 +207,12 @@ var GridItem = function (_a) {
207
207
  */
208
208
  var onDragStart = function (e, _a) {
209
209
  var node = _a.node, deltaX = _a.deltaX, deltaY = _a.deltaY;
210
+ if (className === null || className === void 0 ? void 0 : className.split(" ").includes("bulk-child-item")) {
211
+ if (elementRef.current) {
212
+ elementRef.current.style.pointerEvents = 'none';
213
+ }
214
+ return;
215
+ }
210
216
  var newPosition = { top: 0, left: 0 };
211
217
  var offsetParent = node.offsetParent;
212
218
  if (!offsetParent)
@@ -248,7 +254,6 @@ var GridItem = function (_a) {
248
254
  var rowHeightNumber = resolveRowHeight(rowHeight, colWidth);
249
255
  var bottomBoundary = offsetParent.clientHeight -
250
256
  calcGridItemWHPx(h, rowHeightNumber, margin[1]);
251
- console.log('bb', bottomBoundary);
252
257
  top = clamp(top, 0, bottomBoundary);
253
258
  var rightBoundary = containerWidth - calcGridItemWHPx(w, colWidth, margin[0]);
254
259
  left = clamp(left, 0, rightBoundary);
@@ -385,7 +390,6 @@ var GridItem = function (_a) {
385
390
  resizing: resizing,
386
391
  }, colWidth);
387
392
  var child = React.Children.only(children);
388
- // console.log(child.props.className, className)
389
393
  var newChild = React.cloneElement(child, {
390
394
  key: i,
391
395
  ref: elementRef,
@@ -516,9 +516,7 @@ var ReactGridLayout = function (_a) {
516
516
  'not-editable-grid-item': (!isRoot && !editable),
517
517
  'bulk-child-item': isInBulk,
518
518
  'outside-of-editing-group': outsideOfEditingGroup,
519
- }),
520
- // className={editable ? 'editable-grid-item' : isInBulk ? 'bulk-grid-item': 'not-editable-grid-item'}
521
- z: baseZ() + z, isDraggable: editable && !isInBulk, isResizable: editable && !isInBulk, containerWidth: width, cols: cols, margin: margin, containerPadding: containerPadding || margin, maxRows: maxRows, rowHeight: rowHeight, cancel: draggableCancel, handle: draggableHandle, onDragStop: onDragStopHandler, onDragStart: onDragStartHandler, onDrag: onDragHandler, onResizeStart: onResizeStartHandler, onResize: onResizeHandler, onResizeStop: onResizeStopHandler, onFitToContent: onFitToContentHandler, isBounded: bounded, useCSSTransforms: useCSSTransforms && isMounted, usePercentages: !isMounted, transformScale: transformScale, w: l.w, h: l.h, x: l.x, y: l.y, i: l.i, minH: l.minH, minW: l.minW, maxH: l.maxH, maxW: l.maxW, static: l.static, droppingPosition: isDroppingItem ? droppingPosition : undefined, resizeHandles: resizeHandlesOptions, resizeHandle: resizeHandle, isHiddenVisibility: isHiddenVisibility, customColWidth: colWidth, autoResize: !!l.autoResize, children: child }, l.i));
519
+ }), z: baseZ() + z, isDraggable: editable && !isInBulk, isResizable: editable && !isInBulk, containerWidth: width, cols: cols, margin: margin, containerPadding: containerPadding || margin, maxRows: maxRows, rowHeight: rowHeight, cancel: draggableCancel, handle: draggableHandle, onDragStop: onDragStopHandler, onDragStart: onDragStartHandler, onDrag: onDragHandler, onResizeStart: onResizeStartHandler, onResize: onResizeHandler, onResizeStop: onResizeStopHandler, onFitToContent: onFitToContentHandler, isBounded: bounded, useCSSTransforms: useCSSTransforms && isMounted, usePercentages: !isMounted, transformScale: transformScale, w: l.w, h: l.h, x: l.x, y: l.y, i: l.i, minH: l.minH, minW: l.minW, maxH: l.maxH, maxW: l.maxW, static: l.static, droppingPosition: isDroppingItem ? droppingPosition : undefined, resizeHandles: resizeHandlesOptions, resizeHandle: resizeHandle, isHiddenVisibility: isHiddenVisibility, customColWidth: colWidth, autoResize: !!l.autoResize, children: child }, l.i));
522
520
  };
523
521
  var onDragOverHandler = function (e) {
524
522
  var _a;
@@ -608,7 +606,11 @@ var ReactGridLayout = function (_a) {
608
606
  var isEditingGroup = block.blockId === editingGroupBlock;
609
607
  var type = getBlockSpecificType(block);
610
608
  var isRoot = editingGroupBlock === 'ROOT';
609
+ var isInBulk = bulkIds === null || bulkIds === void 0 ? void 0 : bulkIds.includes(block.blockId);
611
610
  var z = (function () {
611
+ if (isInBulk) {
612
+ return zIndexMap.BULK;
613
+ }
612
614
  if (!isRoot && type === 'GROUP_BLOCK') {
613
615
  return zIndexMap.EDITING_GROUP;
614
616
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.74",
3
+ "version": "0.0.76",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",