publ-echo 0.0.47 → 0.0.48

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.
@@ -301,6 +301,7 @@ var GridItem = function (_a) {
301
301
  shouldAutoShrink: shouldAutoShrink.current.shouldAutoShrink,
302
302
  initialHeight: shouldAutoShrink.current.initialHeight
303
303
  });
304
+ console.log(shouldResize);
304
305
  if (shouldResize !== 'EXPAND' && shouldBlock === 'BLOCK') {
305
306
  callbackData.size.height = textContentHeight;
306
307
  }
@@ -59,10 +59,13 @@ export function useResizeObserver(options, deps) {
59
59
  return;
60
60
  var placeholder = document.querySelector('.placeholder');
61
61
  if (!placeholder) {
62
+ console.log('no-placeholder');
62
63
  return;
63
64
  }
64
- if (typeof window === 'undefined' || !('ResizeObserver' in window))
65
+ if (typeof window === 'undefined' || !('ResizeObserver' in window)) {
66
+ console.log('no-observer');
65
67
  return;
68
+ }
66
69
  var observer = new ResizeObserver(function (_a) {
67
70
  var _b, _c, _d;
68
71
  var entry = _a[0];
@@ -76,6 +79,7 @@ export function useResizeObserver(options, deps) {
76
79
  var newScrollHeight = entry.target.scrollHeight;
77
80
  var newClientHeight = entry.target.clientHeight;
78
81
  var newTextContentHeight = (_d = (_c = (_b = entry.target.children[0]) === null || _b === void 0 ? void 0 : _b.children[0]) === null || _c === void 0 ? void 0 : _c.clientHeight) !== null && _d !== void 0 ? _d : 0;
82
+ console.log(newTextContentHeight);
79
83
  var hasChanged = previousSize.current.width !== newWidth ||
80
84
  previousSize.current.height !== newHeight ||
81
85
  previousSize.current.scrollHeight !== newScrollHeight ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",