publ-echo 0.0.108 → 0.0.110

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.
@@ -410,6 +410,12 @@ var GridItem = function (_a) {
410
410
  cssTransforms: useCSSTransforms,
411
411
  }),
412
412
  style: __assign(__assign(__assign({}, props.style), child.props.style), createStyle(pos)),
413
+ onClick: function (event) {
414
+ var _a;
415
+ if ((_a = child.props.className) === null || _a === void 0 ? void 0 : _a.includes('not-editable-grid-item')) {
416
+ event.stopPropagation();
417
+ }
418
+ },
413
419
  });
414
420
  newChild = mixinResizable(newChild, pos, isResizable);
415
421
  newChild = mixinDraggable(newChild, isDraggable);
@@ -565,12 +565,13 @@ var ReactGridLayout = function (_a) {
565
565
  return _jsx(_Fragment, { children: "NO-BLOCK-FOUND" });
566
566
  }
567
567
  var zOrder = (_a = block[device === 'DESKTOP' ? 'zOrderDesktopInternal' : 'zOrderMobileInternal']) !== null && _a !== void 0 ? _a : 0;
568
+ var isInsideOfEditingGroup = editingGroupAllChildren.includes(l.i);
568
569
  var editorZIndex = (function () {
569
570
  if (isInBulk) {
570
571
  return zIndexMap.EDITING_GROUP_CHILD + z;
571
572
  }
572
- if (!isRoot && editable) {
573
- return zIndexMap.EDITING_GROUP_CHILD + zOrder;
573
+ if (!isRoot && isInsideOfEditingGroup) {
574
+ return zIndexMap.EDITING_GROUP_CHILD + z;
574
575
  }
575
576
  if (isRoot && editable) {
576
577
  return zIndexMap.ROOT + z;
@@ -583,13 +584,12 @@ var ReactGridLayout = function (_a) {
583
584
  }
584
585
  return z;
585
586
  })();
586
- var outsideOfEditingGroup = !editingGroupAllChildren.includes(l.i);
587
587
  var zIndex = editorMode === 'EDIT' ? editorZIndex : z;
588
588
  return (_jsx(GridItem, { className: classNames({
589
589
  'editable-grid-item': !isRoot && editable,
590
590
  'not-editable-grid-item': !isRoot && !editable,
591
591
  'bulk-child-item': isInBulk,
592
- 'outside-of-editing-group': outsideOfEditingGroup,
592
+ 'outside-of-editing-group': !isInsideOfEditingGroup,
593
593
  }), z: zIndex, zOrder: l.z, zOrderInternal: parent
594
594
  ? "".concat(parent[device === 'DESKTOP'
595
595
  ? 'zOrderDesktopInternal'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo",
3
- "version": "0.0.108",
3
+ "version": "0.0.110",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",