@react-stately/grid
Advanced tools
Comparing version 3.0.0-nightly-73414999f-240916 to 3.0.0-nightly-7aa6265a2-241112
@@ -33,7 +33,9 @@ | ||
let node = this.keyMap.get(key); | ||
return node ? node.prevKey : null; | ||
var _node_prevKey; | ||
return node ? (_node_prevKey = node.prevKey) !== null && _node_prevKey !== void 0 ? _node_prevKey : null : null; | ||
} | ||
getKeyAfter(key) { | ||
let node = this.keyMap.get(key); | ||
return node ? node.nextKey : null; | ||
var _node_nextKey; | ||
return node ? (_node_nextKey = node.nextKey) !== null && _node_nextKey !== void 0 ? _node_nextKey : null : null; | ||
} | ||
@@ -54,3 +56,4 @@ getFirstKey() { | ||
getItem(key) { | ||
return this.keyMap.get(key); | ||
var _this_keyMap_get; | ||
return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null; | ||
} | ||
@@ -57,0 +60,0 @@ at(idx) { |
@@ -27,7 +27,9 @@ /* | ||
let node = this.keyMap.get(key); | ||
return node ? node.prevKey : null; | ||
var _node_prevKey; | ||
return node ? (_node_prevKey = node.prevKey) !== null && _node_prevKey !== void 0 ? _node_prevKey : null : null; | ||
} | ||
getKeyAfter(key) { | ||
let node = this.keyMap.get(key); | ||
return node ? node.nextKey : null; | ||
var _node_nextKey; | ||
return node ? (_node_nextKey = node.nextKey) !== null && _node_nextKey !== void 0 ? _node_nextKey : null : null; | ||
} | ||
@@ -48,3 +50,4 @@ getFirstKey() { | ||
getItem(key) { | ||
return this.keyMap.get(key); | ||
var _this_keyMap_get; | ||
return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null; | ||
} | ||
@@ -51,0 +54,0 @@ at(idx) { |
{ | ||
"name": "@react-stately/grid", | ||
"version": "3.0.0-nightly-73414999f-240916", | ||
"version": "3.0.0-nightly-7aa6265a2-241112", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,6 +25,6 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-stately/collections": "^3.0.0-nightly-73414999f-240916", | ||
"@react-stately/selection": "^3.0.0-nightly-73414999f-240916", | ||
"@react-types/grid": "^3.0.0-nightly-73414999f-240916", | ||
"@react-types/shared": "^3.0.0-nightly-73414999f-240916", | ||
"@react-stately/collections": "^3.0.0-nightly-7aa6265a2-241112", | ||
"@react-stately/selection": "^3.0.0-nightly-7aa6265a2-241112", | ||
"@react-types/grid": "^3.0.0-nightly-7aa6265a2-241112", | ||
"@react-types/shared": "^3.0.0-nightly-7aa6265a2-241112", | ||
"@swc/helpers": "^0.5.0" | ||
@@ -38,3 +38,3 @@ }, | ||
}, | ||
"stableVersion": "3.9.2" | ||
"stableVersion": "3.9.3" | ||
} |
@@ -132,3 +132,3 @@ /* | ||
let node = this.keyMap.get(key); | ||
return node ? node.prevKey : null; | ||
return node ? node.prevKey ?? null : null; | ||
} | ||
@@ -138,3 +138,3 @@ | ||
let node = this.keyMap.get(key); | ||
return node ? node.nextKey : null; | ||
return node ? node.nextKey ?? null : null; | ||
} | ||
@@ -152,3 +152,3 @@ | ||
getItem(key: Key) { | ||
return this.keyMap.get(key); | ||
return this.keyMap.get(key) ?? null; | ||
} | ||
@@ -155,0 +155,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
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
74193
955