publ-echo-test 0.0.178 → 0.0.179

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,5 +1,6 @@
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';
3
4
  var OutsideClickHandler = function (_a) {
4
5
  var children = _a.children, onOutsideClick = _a.onOutsideClick;
5
6
  var wrapperRef = useRef(null);
@@ -29,6 +30,9 @@ var OutsideClickHandler = function (_a) {
29
30
  var childElement = wrapperRef.current.children[0];
30
31
  // Get computed style of the child element
31
32
  var computedStyle = window.getComputedStyle(childElement);
33
+ if (childElement.id !== 'BULK') {
34
+ return;
35
+ }
32
36
  setChildDimensions({
33
37
  transform: computedStyle.transform,
34
38
  width: computedStyle.width,
@@ -50,7 +54,7 @@ var OutsideClickHandler = function (_a) {
50
54
  marginLeft: "-".concat(shadowOffset, "px"),
51
55
  marginTop: "-".concat(shadowOffset, "px"),
52
56
  pointerEvents: 'none',
53
- zIndex: 999
57
+ zIndex: zIndexMap.BULK
54
58
  } }), _jsx("div", { className: "border-right", style: {
55
59
  position: 'absolute',
56
60
  transform: childDimensions.transform,
@@ -60,7 +64,7 @@ var OutsideClickHandler = function (_a) {
60
64
  marginLeft: "".concat(width + shadowOffset - borderThickness, "px"),
61
65
  marginTop: "-".concat(shadowOffset, "px"),
62
66
  pointerEvents: 'none',
63
- zIndex: 999
67
+ zIndex: zIndexMap.BULK
64
68
  } }), _jsx("div", { className: "border-bottom", style: {
65
69
  position: 'absolute',
66
70
  transform: childDimensions.transform,
@@ -70,7 +74,7 @@ var OutsideClickHandler = function (_a) {
70
74
  marginLeft: "-".concat(shadowOffset, "px"),
71
75
  marginTop: "".concat(height + shadowOffset - borderThickness, "px"),
72
76
  pointerEvents: 'none',
73
- zIndex: 99999
77
+ zIndex: zIndexMap.BULK
74
78
  } }), _jsx("div", { className: "border-left", style: {
75
79
  position: 'absolute',
76
80
  transform: childDimensions.transform,
@@ -80,7 +84,7 @@ var OutsideClickHandler = function (_a) {
80
84
  marginLeft: "-".concat(shadowOffset, "px"),
81
85
  marginTop: "-".concat(shadowOffset, "px"),
82
86
  pointerEvents: 'none',
83
- zIndex: 99999
87
+ zIndex: zIndexMap.BULK
84
88
  } })] }))] }));
85
89
  };
86
90
  export default OutsideClickHandler;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.178",
3
+ "version": "0.0.179",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",