publ-echo 0.0.126 → 0.0.128

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.
@@ -1,6 +1,5 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useEffect, useRef, useState } from "react";
3
- import { zIndexMap } from "../GridLayoutEditor/group";
4
3
  var OutsideClickHandler = function (_a) {
5
4
  var children = _a.children, onOutsideClick = _a.onOutsideClick, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave;
6
5
  var wrapperRef = useRef(null);
@@ -76,7 +75,8 @@ var OutsideClickHandler = function (_a) {
76
75
  marginLeft: "-".concat(shadowOffset, "px"),
77
76
  marginTop: "-".concat(shadowOffset, "px"),
78
77
  pointerEvents: "none",
79
- zIndex: zIndexMap.EDITING_GROUP + zIndex,
78
+ // zIndex: zIndexMap.EDITING_GROUP + zIndex,
79
+ zIndex: 0,
80
80
  } }), _jsx("div", { className: "border-right", style: {
81
81
  position: "absolute",
82
82
  transform: childDimensions.transform,
@@ -86,7 +86,7 @@ var OutsideClickHandler = function (_a) {
86
86
  marginLeft: "".concat(width + shadowOffset - borderThickness, "px"),
87
87
  marginTop: "-".concat(shadowOffset, "px"),
88
88
  pointerEvents: "none",
89
- zIndex: zIndexMap.EDITING_GROUP + zIndex,
89
+ zIndex: 0,
90
90
  } }), _jsx("div", { className: "border-bottom", style: {
91
91
  position: "absolute",
92
92
  transform: childDimensions.transform,
@@ -96,7 +96,7 @@ var OutsideClickHandler = function (_a) {
96
96
  marginLeft: "-".concat(shadowOffset, "px"),
97
97
  marginTop: "".concat(height + shadowOffset - borderThickness, "px"),
98
98
  pointerEvents: "none",
99
- zIndex: zIndexMap.EDITING_GROUP + zIndex,
99
+ zIndex: 0,
100
100
  } }), _jsx("div", { className: "border-left", style: {
101
101
  position: "absolute",
102
102
  transform: childDimensions.transform,
@@ -106,7 +106,7 @@ var OutsideClickHandler = function (_a) {
106
106
  marginLeft: "-".concat(shadowOffset, "px"),
107
107
  marginTop: "-".concat(shadowOffset, "px"),
108
108
  pointerEvents: "none",
109
- zIndex: zIndexMap.EDITING_GROUP + zIndex,
109
+ zIndex: 0,
110
110
  } })] }))] }));
111
111
  };
112
112
  export default OutsideClickHandler;
@@ -555,29 +555,22 @@ var ReactGridLayout = function (_a) {
555
555
  }
556
556
  var zOrder = (_a = block[device === "DESKTOP" ? "zOrderDesktopInternal" : "zOrderMobileInternal"]) !== null && _a !== void 0 ? _a : 0;
557
557
  var isInsideOfEditingGroup = editingGroupAllChildren.includes(l.i);
558
- console.log("id", block.blockId, "isRoot", isRoot, "isBulk", isInBulk, "isInGroup", isInGroup, "isInsideOfEditingGroup", isInsideOfEditingGroup, "editable", editable);
559
558
  var editorZIndex = (function () {
560
559
  if (isRoot && isInBulk) {
561
- console.log("1 : ", block.blockId);
562
560
  return zIndexMap.ROOT + z;
563
561
  }
564
562
  if (!isRoot && isInsideOfEditingGroup) {
565
- console.log("2 : ", block.blockId);
566
563
  return zIndexMap.CB_IN_EDITING_GROUP + z;
567
564
  }
568
565
  if (isRoot && editable) {
569
- console.log("3 : ", block.blockId);
570
566
  return zIndexMap.ROOT + z;
571
567
  }
572
568
  if (isRoot && !editable) {
573
- console.log("4 : ", block.blockId);
574
569
  return zIndexMap.ROOT + z;
575
570
  }
576
571
  if (!editable) {
577
- console.log("5 : ", block.blockId);
578
572
  return z;
579
573
  }
580
- console.log("6 : ", block.blockId);
581
574
  return z;
582
575
  })();
583
576
  var zIndex = editorMode === "EDIT" ? editorZIndex : z;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo",
3
- "version": "0.0.126",
3
+ "version": "0.0.128",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",