@solostylist/ui-kit 2.0.3 → 2.0.5

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.
@@ -187,18 +187,18 @@ function k(n, r) {
187
187
  let e = R.current;
188
188
  if (!e) return;
189
189
  let t = () => {
190
- let t = P === void 0 ? void 0 : z.current.get(P);
191
- if (!t) {
190
+ let e = P === void 0 ? void 0 : z.current.get(P);
191
+ if (!e) {
192
192
  V((e) => e === null ? e : null);
193
193
  return;
194
194
  }
195
- let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = {
196
- height: r.height,
197
- left: r.left - n.left,
198
- top: r.top - n.top,
199
- width: r.width
195
+ let t = {
196
+ height: e.offsetHeight,
197
+ left: e.offsetLeft,
198
+ top: e.offsetTop,
199
+ width: e.offsetWidth
200
200
  };
201
- V((e) => e && e.height === i.height && e.left === i.left && e.top === i.top && e.width === i.width ? e : i);
201
+ V((e) => e && e.height === t.height && e.left === t.left && e.top === t.top && e.width === t.width ? e : t);
202
202
  };
203
203
  if (t(), window.addEventListener("resize", t), typeof ResizeObserver > "u") return () => window.removeEventListener("resize", t);
204
204
  let n = new ResizeObserver(t);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org"
5
5
  },
6
- "version": "2.0.3",
6
+ "version": "2.0.5",
7
7
  "description": "advanced ui kit for solostylist",
8
8
  "type": "module",
9
9
  "main": "dist/main.js",
@@ -63,7 +63,7 @@
63
63
  "sync:peers": "node scripts/sync-peer-deps.mjs",
64
64
  "upgrade": "yarn upgrade-interactive && yarn sync:peers",
65
65
  "prepare": "husky",
66
- "app:publish": "yarn workspace @solostylist/core build && yarn sync:peers && yarn build && yarn npm publish --access public"
66
+ "app:publish": "yarn workspace @solostylist/core build && yarn sync:peers && yarn build && node ../../scripts/check-core-contract.mjs && yarn npm publish --access public"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "@emotion/cache": "^11.14.0",
@@ -245,6 +245,6 @@
245
245
  "author": "Lê Đặng Trường Đạt",
246
246
  "license": "ISC",
247
247
  "dependencies": {
248
- "@solostylist/core": "^1.0.3"
248
+ "@solostylist/core": "^1.0.4"
249
249
  }
250
250
  }