@react-stately/collections
Advanced tools
Comparing version 3.3.0 to 3.3.1
@@ -241,3 +241,3 @@ var _babelRuntimeHelpersExtends = $parcel$interopDefault(require("@babel/runtime/helpers/extends")); | ||
if (_react.isValidElement(element)) { | ||
if ( /*#__PURE__*/_react.isValidElement(element)) { | ||
let type = element.type; | ||
@@ -257,4 +257,10 @@ | ||
partialNode.index = index; | ||
let nodeKey = childNode.key; | ||
if (!nodeKey) { | ||
nodeKey = childNode.element ? null : this.getKey(element, partialNode, state, parentKey); | ||
} | ||
let nodes = this.getFullNode(_babelRuntimeHelpersExtends({}, childNode, { | ||
key: childNode.element ? null : this.getKey(element, partialNode, state, parentKey), | ||
key: nodeKey, | ||
index, | ||
@@ -261,0 +267,0 @@ wrapper: $f9fc6bc72d334a59f09d47517f9a056a$var$compose(partialNode.wrapper, childNode.wrapper) |
@@ -227,3 +227,3 @@ import _babelRuntimeHelpersEsmExtends from "@babel/runtime/helpers/esm/extends"; | ||
if (_react.isValidElement(element)) { | ||
if ( /*#__PURE__*/_react.isValidElement(element)) { | ||
let type = element.type; | ||
@@ -243,4 +243,10 @@ | ||
partialNode.index = index; | ||
let nodeKey = childNode.key; | ||
if (!nodeKey) { | ||
nodeKey = childNode.element ? null : this.getKey(element, partialNode, state, parentKey); | ||
} | ||
let nodes = this.getFullNode(_babelRuntimeHelpersEsmExtends({}, childNode, { | ||
key: childNode.element ? null : this.getKey(element, partialNode, state, parentKey), | ||
key: nodeKey, | ||
index, | ||
@@ -247,0 +253,0 @@ wrapper: $f8429209754fda4b9142d514065f4$var$compose(partialNode.wrapper, childNode.wrapper) |
{ | ||
"name": "@react-stately/collections", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,3 +21,3 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-types/shared": "^3.2.1" | ||
"@react-types/shared": "^3.5.0" | ||
}, | ||
@@ -30,3 +30,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "f5b429ee8615248f2e3c76754bad2ece83f1c444" | ||
"gitHead": "9920ffaa2596a03c4498a15cb940bd2f4ba5cd6a" | ||
} |
@@ -123,5 +123,11 @@ /* | ||
partialNode.index = index; | ||
let nodeKey = childNode.key; | ||
if (!nodeKey) { | ||
nodeKey = childNode.element ? null : this.getKey(element as CollectionElement<T>, partialNode, state, parentKey); | ||
} | ||
let nodes = this.getFullNode({ | ||
...childNode, | ||
key: childNode.element ? null : this.getKey(element as CollectionElement<T>, partialNode, state, parentKey), | ||
key: nodeKey, | ||
index, | ||
@@ -128,0 +134,0 @@ wrapper: compose(partialNode.wrapper, childNode.wrapper) |
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
108856
1127
Updated@react-types/shared@^3.5.0