sanity 5.19.0 → 5.20.0-next.2
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.
- package/lib/_chunks-es/version.js +2 -2
- package/lib/index.js +2 -3
- package/lib/index.js.map +1 -1
- package/package.json +11 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var version = "5.
|
|
1
|
+
var version = "5.20.0-next.2+d7c56cd693";
|
|
2
2
|
let buildVersion;
|
|
3
3
|
try {
|
|
4
4
|
buildVersion = process.env.PKG_BUILD_VERSION;
|
|
@@ -7,7 +7,7 @@ try {
|
|
|
7
7
|
try {
|
|
8
8
|
buildVersion = buildVersion || // This is replaced by `@sanity/pkg-utils` at build time
|
|
9
9
|
// and must always be references by its full static name, e.g. no optional chaining, no `if (process && process.env)` etc.
|
|
10
|
-
"5.
|
|
10
|
+
"5.20.0-next.2+d7c56cd693";
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
13
|
const SANITY_VERSION = buildVersion || `${version}-dev`;
|
package/lib/index.js
CHANGED
|
@@ -27222,9 +27222,8 @@ function useVisibilityDetection(parentRef) {
|
|
|
27222
27222
|
if (!entry)
|
|
27223
27223
|
return;
|
|
27224
27224
|
const {
|
|
27225
|
-
width
|
|
27226
|
-
|
|
27227
|
-
} = entry.contentRect, isNowVisible = width > 0 && height > 0, wasVisible = prevVisible.current;
|
|
27225
|
+
width
|
|
27226
|
+
} = entry.contentRect, isNowVisible = width > 0, wasVisible = prevVisible.current;
|
|
27228
27227
|
if (wasVisible === isNowVisible)
|
|
27229
27228
|
return;
|
|
27230
27229
|
const becameVisible = !wasVisible && isNowVisible;
|