@react-stately/virtualizer
Advanced tools
Comparing version 4.0.3-nightly.5042 to 4.1.0
@@ -26,2 +26,3 @@ | ||
res.parentKey = this.parentKey; | ||
res.content = this.content; | ||
res.isSticky = this.isSticky; | ||
@@ -41,2 +42,3 @@ res.zIndex = this.zIndex; | ||
this.parentKey = null; | ||
this.content = null; | ||
this.rect = rect; | ||
@@ -43,0 +45,0 @@ this.estimatedSize = false; |
@@ -20,2 +20,3 @@ /* | ||
res.parentKey = this.parentKey; | ||
res.content = this.content; | ||
res.isSticky = this.isSticky; | ||
@@ -35,2 +36,3 @@ res.zIndex = this.zIndex; | ||
this.parentKey = null; | ||
this.content = null; | ||
this.rect = rect; | ||
@@ -37,0 +39,0 @@ this.estimatedSize = false; |
@@ -139,2 +139,6 @@ import { Key, Collection, ItemDropTarget, LayoutDelegate } from "@react-types/shared"; | ||
/** | ||
* Content for this view if it was generated by the layout rather than coming from the Collection. | ||
*/ | ||
content: any | null; | ||
/** | ||
* The rectangle describing the size and position of this view. | ||
@@ -141,0 +145,0 @@ */ |
@@ -52,4 +52,4 @@ var $abed55ea619a7a17$exports = require("./utils.main.js"); | ||
_renderView(reusableView) { | ||
let { type: type, key: key } = reusableView.layoutInfo; | ||
reusableView.content = this.collection.getItem(key); | ||
let { type: type, key: key, content: content } = reusableView.layoutInfo; | ||
reusableView.content = content || this.collection.getItem(key); | ||
reusableView.rendered = this._renderContent(type, reusableView.content); | ||
@@ -56,0 +56,0 @@ } |
@@ -46,4 +46,4 @@ import {isSetEqual as $fc36f9a046a9ce79$export$a8d0d0c8d1c5df64} from "./utils.module.js"; | ||
_renderView(reusableView) { | ||
let { type: type, key: key } = reusableView.layoutInfo; | ||
reusableView.content = this.collection.getItem(key); | ||
let { type: type, key: key, content: content } = reusableView.layoutInfo; | ||
reusableView.content = content || this.collection.getItem(key); | ||
reusableView.rendered = this._renderContent(type, reusableView.content); | ||
@@ -50,0 +50,0 @@ } |
{ | ||
"name": "@react-stately/virtualizer", | ||
"version": "4.0.3-nightly.5042+68403fe55", | ||
"version": "4.1.0", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,4 +25,4 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/utils": "3.0.0-nightly.3114+68403fe55", | ||
"@react-types/shared": "3.0.0-nightly.3114+68403fe55", | ||
"@react-aria/utils": "^3.25.3", | ||
"@react-types/shared": "^3.25.0", | ||
"@swc/helpers": "^0.5.0" | ||
@@ -35,4 +35,3 @@ }, | ||
"access": "public" | ||
}, | ||
"gitHead": "68403fe55489dce3de1b3094c957d598ad719861" | ||
} | ||
} | ||
} |
@@ -39,2 +39,7 @@ /* | ||
/** | ||
* Content for this view if it was generated by the layout rather than coming from the Collection. | ||
*/ | ||
content: any | null; | ||
/** | ||
@@ -86,2 +91,3 @@ * The rectangle describing the size and position of this view. | ||
this.parentKey = null; | ||
this.content = null; | ||
this.rect = rect; | ||
@@ -105,2 +111,3 @@ this.estimatedSize = false; | ||
res.parentKey = this.parentKey; | ||
res.content = this.content; | ||
res.isSticky = this.isSticky; | ||
@@ -107,0 +114,0 @@ res.zIndex = this.zIndex; |
@@ -117,4 +117,4 @@ /* | ||
private _renderView(reusableView: ReusableView<T, V>) { | ||
let {type, key} = reusableView.layoutInfo; | ||
reusableView.content = this.collection.getItem(key); | ||
let {type, key, content} = reusableView.layoutInfo; | ||
reusableView.content = content || this.collection.getItem(key); | ||
reusableView.rendered = this._renderContent(type, reusableView.content); | ||
@@ -121,0 +121,0 @@ } |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3535
1
0
267912
71
+ Added@react-aria/ssr@3.9.6(transitive)
+ Added@react-aria/utils@3.25.3(transitive)
+ Added@react-stately/utils@3.10.4(transitive)
+ Added@react-types/shared@3.25.0(transitive)
+ Addedclsx@2.1.1(transitive)
Updated@react-aria/utils@^3.25.3
Updated@react-types/shared@^3.25.0