@react-stately/virtualizer
Advanced tools
Comparing version 3.0.0-nightly-086ad3115-240912 to 3.0.0-nightly-44fa2a512-241001
@@ -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": "3.0.0-nightly-086ad3115-240912", | ||
"version": "3.0.0-nightly-44fa2a512-241001", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,4 +25,4 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/utils": "^3.0.0-nightly-086ad3115-240912", | ||
"@react-types/shared": "^3.0.0-nightly-086ad3115-240912", | ||
"@react-aria/utils": "^3.0.0-nightly-44fa2a512-241001", | ||
"@react-types/shared": "^3.0.0-nightly-44fa2a512-241001", | ||
"@swc/helpers": "^0.5.0" | ||
@@ -36,3 +36,3 @@ }, | ||
}, | ||
"stableVersion": "4.0.2" | ||
"stableVersion": "4.1.0" | ||
} |
@@ -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
268013
3535