@solostylist/ui-kit 2.0.4 → 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
|
|
191
|
-
if (!
|
|
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
|
|
196
|
-
height:
|
|
197
|
-
left:
|
|
198
|
-
top:
|
|
199
|
-
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 ===
|
|
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.
|
|
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",
|