publ-echo-test 0.0.255 → 0.0.257

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.
@@ -632,10 +632,10 @@ var ReactGridLayout = function (_a) {
632
632
  };
633
633
  var removeDroppingPlaceholder = function () {
634
634
  var newLayout = compact(layout.filter(function (l) { return l.i !== droppingItem.i; }), compactType, cols, allowOverlap);
635
- // setLayout(newLayout);
636
- // setDroppingDOMNode(undefined);
637
- // setActiveDrag(undefined);
638
- // setDroppingPosition(undefined);
635
+ setLayout(newLayout);
636
+ setDroppingDOMNode(undefined);
637
+ setActiveDrag(undefined);
638
+ setDroppingPosition(undefined);
639
639
  };
640
640
  var onDragLeaveHandler = function (e) {
641
641
  e.preventDefault();
@@ -58,7 +58,7 @@ var Resizable = function (_a) {
58
58
  var minWidth = useRef(0);
59
59
  var minHeight = useRef(0);
60
60
  useEffect(function () {
61
- var _a;
61
+ var _a, _b, _c;
62
62
  if (!autoResize) {
63
63
  return;
64
64
  }
@@ -101,21 +101,18 @@ var Resizable = function (_a) {
101
101
  // let oneCompositionMinHeight =
102
102
  // minColHeight * compositionRows + 20; /* 20px padding */
103
103
  var contentsWrapper = placeholder.querySelector(".cb-contentslist-wrapper");
104
- if (contentsWrapper) {
104
+ var widthOrHeightChanged = width !== ((_b = startSize.current) === null || _b === void 0 ? void 0 : _b.width) ||
105
+ height !== ((_c = startSize.current) === null || _c === void 0 ? void 0 : _c.height);
106
+ if (contentsWrapper && widthOrHeightChanged) {
105
107
  var wrapperH = contentsWrapper.clientHeight;
106
108
  var tempCompositionH = oneComposition.clientHeight;
109
+ console.log("tempCompositionH", tempCompositionH);
107
110
  var CompositionBGwrapperPaddingT = Number(oneComposition.getAttribute("data-wrapper-paddingT"));
108
111
  var CompositionBGwrapperPaddingB = Number(oneComposition.getAttribute("data-wrapper-paddingB"));
109
112
  if (tempCompositionH > wrapperH) {
110
113
  var oneCompositionMinHeight = tempCompositionH +
111
114
  CompositionBGwrapperPaddingT +
112
115
  CompositionBGwrapperPaddingB;
113
- console.log("---------------");
114
- console.log("oneCompositionMinHeight", oneCompositionMinHeight);
115
- console.log("tempCompositionH", tempCompositionH);
116
- console.log("wrapperH", wrapperH);
117
- console.log("paddings", CompositionBGwrapperPaddingT + CompositionBGwrapperPaddingB);
118
- console.log("---------------");
119
116
  var styles = getComputedStyle(target);
120
117
  var paddingL = parseFloat(styles.paddingLeft);
121
118
  var paddingR = parseFloat(styles.paddingRight);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo-test",
3
- "version": "0.0.255",
3
+ "version": "0.0.257",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",