@react-stately/layout
Advanced tools
Comparing version 3.13.10-nightly.4723 to 3.13.10-nightly.4730
@@ -49,5 +49,8 @@ var $7Tzdl$reactstatelyvirtualizer = require("@react-stately/virtualizer"); | ||
let result = this.layoutInfos.slice(firstVisibleItem, lastVisibleItem + 1); | ||
let persistedIndices = [ | ||
...this.virtualizer.persistedKeys | ||
].map((key)=>this.virtualizer.collection.getItem(key).index).sort((a, b)=>a - b); | ||
let persistedIndices = []; | ||
for (let key of this.virtualizer.persistedKeys){ | ||
let item = this.virtualizer.collection.getItem(key); | ||
if ((item === null || item === void 0 ? void 0 : item.index) != null) persistedIndices.push(item.index); | ||
} | ||
persistedIndices.sort((a, b)=>a - b); | ||
let persistedBefore = []; | ||
@@ -54,0 +57,0 @@ for (let index of persistedIndices){ |
@@ -43,5 +43,8 @@ import {Size as $ipgKF$Size, Rect as $ipgKF$Rect, LayoutInfo as $ipgKF$LayoutInfo, Layout as $ipgKF$Layout} from "@react-stately/virtualizer"; | ||
let result = this.layoutInfos.slice(firstVisibleItem, lastVisibleItem + 1); | ||
let persistedIndices = [ | ||
...this.virtualizer.persistedKeys | ||
].map((key)=>this.virtualizer.collection.getItem(key).index).sort((a, b)=>a - b); | ||
let persistedIndices = []; | ||
for (let key of this.virtualizer.persistedKeys){ | ||
let item = this.virtualizer.collection.getItem(key); | ||
if ((item === null || item === void 0 ? void 0 : item.index) != null) persistedIndices.push(item.index); | ||
} | ||
persistedIndices.sort((a, b)=>a - b); | ||
let persistedBefore = []; | ||
@@ -48,0 +51,0 @@ for (let index of persistedIndices){ |
{ | ||
"name": "@react-stately/layout", | ||
"version": "3.13.10-nightly.4723+9b48ec5d5", | ||
"version": "3.13.10-nightly.4730+927758756", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,8 +25,8 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-stately/collections": "3.0.0-nightly.3011+9b48ec5d5", | ||
"@react-stately/table": "3.11.9-nightly.4723+9b48ec5d5", | ||
"@react-stately/virtualizer": "3.7.2-nightly.4723+9b48ec5d5", | ||
"@react-types/grid": "3.2.7-nightly.4723+9b48ec5d5", | ||
"@react-types/shared": "3.0.0-nightly.3011+9b48ec5d5", | ||
"@react-types/table": "3.9.6-nightly.4723+9b48ec5d5", | ||
"@react-stately/collections": "3.0.0-nightly.3018+927758756", | ||
"@react-stately/table": "3.11.9-nightly.4730+927758756", | ||
"@react-stately/virtualizer": "3.7.2-nightly.4730+927758756", | ||
"@react-types/grid": "3.2.7-nightly.4730+927758756", | ||
"@react-types/shared": "3.0.0-nightly.3018+927758756", | ||
"@react-types/table": "3.9.6-nightly.4730+927758756", | ||
"@swc/helpers": "^0.5.0" | ||
@@ -40,3 +40,3 @@ }, | ||
}, | ||
"gitHead": "9b48ec5d528adeba1a96592945459726def7ba56" | ||
"gitHead": "92775875627ef8a038a4708b1a7addf11809bf35" | ||
} |
@@ -104,4 +104,12 @@ /* | ||
let result = this.layoutInfos.slice(firstVisibleItem, lastVisibleItem + 1); | ||
let persistedIndices = [...this.virtualizer.persistedKeys].map(key => this.virtualizer.collection.getItem(key).index).sort((a, b) => a - b); | ||
let persistedBefore = []; | ||
let persistedIndices: number[] = []; | ||
for (let key of this.virtualizer.persistedKeys) { | ||
let item = this.virtualizer.collection.getItem(key); | ||
if (item?.index != null) { | ||
persistedIndices.push(item.index); | ||
} | ||
} | ||
persistedIndices.sort((a, b) => a - b); | ||
let persistedBefore: LayoutInfo[] = []; | ||
for (let index of persistedIndices) { | ||
@@ -108,0 +116,0 @@ if (index < firstVisibleItem) { |
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
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
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
383362
4166