publ-echo-test 0.0.181 → 0.0.183

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.
@@ -40,6 +40,13 @@ var OutsideClickHandler = function (_a) {
40
40
  height: computedStyle.height
41
41
  });
42
42
  }
43
+ return function () {
44
+ setChildDimensions({
45
+ transform: '',
46
+ width: '0',
47
+ height: '0'
48
+ });
49
+ };
43
50
  }, [children, wrapperRef.current]);
44
51
  // Parse dimensions to numbers for calculations
45
52
  var width = parseFloat(childDimensions.width) || 0;
@@ -55,7 +62,7 @@ var OutsideClickHandler = function (_a) {
55
62
  marginLeft: "-".concat(shadowOffset, "px"),
56
63
  marginTop: "-".concat(shadowOffset, "px"),
57
64
  pointerEvents: 'none',
58
- zIndex: zIndexMap.BULK
65
+ zIndex: zIndexMap.EDITING_GROUP
59
66
  } }), _jsx("div", { className: "border-right", style: {
60
67
  position: 'absolute',
61
68
  transform: childDimensions.transform,
@@ -65,7 +72,7 @@ var OutsideClickHandler = function (_a) {
65
72
  marginLeft: "".concat(width + shadowOffset - borderThickness, "px"),
66
73
  marginTop: "-".concat(shadowOffset, "px"),
67
74
  pointerEvents: 'none',
68
- zIndex: zIndexMap.BULK
75
+ zIndex: zIndexMap.EDITING_GROUP
69
76
  } }), _jsx("div", { className: "border-bottom", style: {
70
77
  position: 'absolute',
71
78
  transform: childDimensions.transform,
@@ -75,7 +82,7 @@ var OutsideClickHandler = function (_a) {
75
82
  marginLeft: "-".concat(shadowOffset, "px"),
76
83
  marginTop: "".concat(height + shadowOffset - borderThickness, "px"),
77
84
  pointerEvents: 'none',
78
- zIndex: zIndexMap.BULK
85
+ zIndex: zIndexMap.EDITING_GROUP
79
86
  } }), _jsx("div", { className: "border-left", style: {
80
87
  position: 'absolute',
81
88
  transform: childDimensions.transform,
@@ -85,7 +92,7 @@ var OutsideClickHandler = function (_a) {
85
92
  marginLeft: "-".concat(shadowOffset, "px"),
86
93
  marginTop: "-".concat(shadowOffset, "px"),
87
94
  pointerEvents: 'none',
88
- zIndex: zIndexMap.BULK
95
+ zIndex: zIndexMap.EDITING_GROUP
89
96
  } })] }))] }));
90
97
  };
91
98
  export default OutsideClickHandler;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.181",
3
+ "version": "0.0.183",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",