publ-echo 0.0.49 → 0.0.51

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.
@@ -62,12 +62,13 @@ export function useResizeObserver(options, deps) {
62
62
  console.log('no-placeholder');
63
63
  return;
64
64
  }
65
+ console.dir(placeholder);
65
66
  if (typeof window === 'undefined' || !('ResizeObserver' in window)) {
66
67
  console.log('no-observer');
67
68
  return;
68
69
  }
69
70
  var observer = new ResizeObserver(function (_a) {
70
- var _b, _c, _d;
71
+ var _b, _c, _d, _e;
71
72
  var entry = _a[0];
72
73
  var boxProp = box === 'border-box'
73
74
  ? 'borderBoxSize'
@@ -79,6 +80,7 @@ export function useResizeObserver(options, deps) {
79
80
  var newScrollHeight = entry.target.scrollHeight;
80
81
  var newClientHeight = entry.target.clientHeight;
81
82
  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;
83
+ console.log((_e = entry.target.children[0]) === null || _e === void 0 ? void 0 : _e.children[0]);
82
84
  console.log(newTextContentHeight);
83
85
  var hasChanged = previousSize.current.width !== newWidth ||
84
86
  previousSize.current.height !== newHeight ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",