@react-aria/virtualizer
Advanced tools
Comparing version 3.0.0-nightly-5ae234603-240925 to 3.0.0-nightly-5ed06068e-241105
@@ -106,3 +106,2 @@ var $efdd61e59e023a1d$exports = require("./utils.main.js"); | ||
(0, $kvIfm$reactariautils.useEvent)(ref, 'scroll', onScroll); | ||
// eslint-disable-next-line arrow-body-style | ||
(0, $kvIfm$react.useEffect)(()=>{ | ||
@@ -109,0 +108,0 @@ return ()=>{ |
@@ -95,3 +95,2 @@ import {getScrollLeft as $ce415dc67314b753$export$1389d168952b34b5} from "./utils.module.js"; | ||
(0, $f9kpT$useEvent)(ref, 'scroll', onScroll); | ||
// eslint-disable-next-line arrow-body-style | ||
(0, $f9kpT$useEffect)(()=>{ | ||
@@ -98,0 +97,0 @@ return ()=>{ |
@@ -33,5 +33,3 @@ var $00ca8c0b29e3e07c$exports = require("./ScrollView.main.js"); | ||
function $e1fb6f3669e1c329$var$Virtualizer(props, ref) { | ||
let { children: renderView, renderWrapper: renderWrapper, layout: layout, collection: collection, scrollDirection: scrollDirection, isLoading: // eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
isLoading, onLoadMore: // eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
onLoadMore, persistedKeys: persistedKeys, layoutOptions: layoutOptions, ...otherProps } = props; | ||
let { children: renderView, renderWrapper: renderWrapper, layout: layout, collection: collection, scrollDirection: scrollDirection, isLoading: isLoading, onLoadMore: onLoadMore, persistedKeys: persistedKeys, layoutOptions: layoutOptions, ...otherProps } = props; | ||
let fallbackRef = (0, $knrtk$react.useRef)(undefined); | ||
@@ -38,0 +36,0 @@ ref = ref || fallbackRef; |
@@ -23,5 +23,3 @@ import {ScrollView as $44a6ee657928b002$export$5665e3d6be6adea} from "./ScrollView.module.js"; | ||
function $6d0a5c394373ae64$var$Virtualizer(props, ref) { | ||
let { children: renderView, renderWrapper: renderWrapper, layout: layout, collection: collection, scrollDirection: scrollDirection, isLoading: // eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
isLoading, onLoadMore: // eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
onLoadMore, persistedKeys: persistedKeys, layoutOptions: layoutOptions, ...otherProps } = props; | ||
let { children: renderView, renderWrapper: renderWrapper, layout: layout, collection: collection, scrollDirection: scrollDirection, isLoading: isLoading, onLoadMore: onLoadMore, persistedKeys: persistedKeys, layoutOptions: layoutOptions, ...otherProps } = props; | ||
let fallbackRef = (0, $9WwqA$useRef)(undefined); | ||
@@ -28,0 +26,0 @@ ref = ref || fallbackRef; |
@@ -60,4 +60,8 @@ var $7d70e069fceb2deb$exports = require("./useVirtualizerItem.main.js"); | ||
let rectStyles = { | ||
top: layoutInfo.rect.y - (parent ? parent.rect.y : 0), | ||
[xProperty]: layoutInfo.rect.x - (parent ? parent.rect.x : 0), | ||
// TODO: For layoutInfos that are sticky that have parents with overflow visible, their "top" will be relative to the to the nearest scrolling container | ||
// which WON'T be the parent since the parent has overflow visible. This means we shouldn't offset the height by the parent's position | ||
// Not 100% about this change here since it is quite ambigious what the scrolling container maybe and how its top is positioned with respect to the | ||
// calculated layoutInfo.y here | ||
top: layoutInfo.rect.y - (parent && !(parent.allowOverflow && layoutInfo.isSticky) ? parent.rect.y : 0), | ||
[xProperty]: layoutInfo.rect.x - (parent && !(parent.allowOverflow && layoutInfo.isSticky) ? parent.rect.x : 0), | ||
width: layoutInfo.rect.width, | ||
@@ -64,0 +68,0 @@ height: layoutInfo.rect.height |
@@ -49,4 +49,8 @@ import {useVirtualizerItem as $47736c1e63ba1c6d$export$1da781778207e0a2} from "./useVirtualizerItem.module.js"; | ||
let rectStyles = { | ||
top: layoutInfo.rect.y - (parent ? parent.rect.y : 0), | ||
[xProperty]: layoutInfo.rect.x - (parent ? parent.rect.x : 0), | ||
// TODO: For layoutInfos that are sticky that have parents with overflow visible, their "top" will be relative to the to the nearest scrolling container | ||
// which WON'T be the parent since the parent has overflow visible. This means we shouldn't offset the height by the parent's position | ||
// Not 100% about this change here since it is quite ambigious what the scrolling container maybe and how its top is positioned with respect to the | ||
// calculated layoutInfo.y here | ||
top: layoutInfo.rect.y - (parent && !(parent.allowOverflow && layoutInfo.isSticky) ? parent.rect.y : 0), | ||
[xProperty]: layoutInfo.rect.x - (parent && !(parent.allowOverflow && layoutInfo.isSticky) ? parent.rect.x : 0), | ||
width: layoutInfo.rect.width, | ||
@@ -53,0 +57,0 @@ height: layoutInfo.rect.height |
{ | ||
"name": "@react-aria/virtualizer", | ||
"version": "3.0.0-nightly-5ae234603-240925", | ||
"version": "3.0.0-nightly-5ed06068e-241105", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,7 +25,7 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/i18n": "^3.0.0-nightly-5ae234603-240925", | ||
"@react-aria/interactions": "^3.0.0-nightly-5ae234603-240925", | ||
"@react-aria/utils": "^3.0.0-nightly-5ae234603-240925", | ||
"@react-stately/virtualizer": "^3.0.0-nightly-5ae234603-240925", | ||
"@react-types/shared": "^3.0.0-nightly-5ae234603-240925", | ||
"@react-aria/i18n": "^3.0.0-nightly-5ed06068e-241105", | ||
"@react-aria/interactions": "^3.0.0-nightly-5ed06068e-241105", | ||
"@react-aria/utils": "^3.0.0-nightly-5ed06068e-241105", | ||
"@react-stately/virtualizer": "^3.0.0-nightly-5ed06068e-241105", | ||
"@react-types/shared": "^3.0.0-nightly-5ed06068e-241105", | ||
"@swc/helpers": "^0.5.0" | ||
@@ -40,3 +40,3 @@ }, | ||
}, | ||
"stableVersion": "4.0.2" | ||
"stableVersion": "4.0.4" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
191202
2344