@react-stately/selection
Advanced tools
Comparing version 3.0.0-nightly.2816 to 3.0.0-nightly.2821
@@ -417,2 +417,6 @@ var $83d9f$reactstatelyutils = require("@react-stately/utils"); | ||
} | ||
getItemProps(key) { | ||
var _this_collection_getItem; | ||
return (_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : _this_collection_getItem.props; | ||
} | ||
constructor(collection, state, options){ | ||
@@ -419,0 +423,0 @@ this.collection = collection; |
@@ -410,2 +410,6 @@ import {useControlledState as $Qsto2$useControlledState} from "@react-stately/utils"; | ||
} | ||
getItemProps(key) { | ||
var _this_collection_getItem; | ||
return (_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : _this_collection_getItem.props; | ||
} | ||
constructor(collection, state, options){ | ||
@@ -412,0 +416,0 @@ this.collection = collection; |
@@ -92,2 +92,4 @@ import { DisabledBehavior, FocusStrategy, Key, LongPressEvent, PressEvent, Selection, SelectionBehavior, SelectionMode, MultipleSelection, Collection, Node } from "@react-types/shared"; | ||
isLink(key: Key): boolean; | ||
/** Returns the props for the given item. */ | ||
getItemProps(key: Key): any; | ||
} | ||
@@ -209,4 +211,5 @@ export interface MultipleSelectionStateProps extends MultipleSelection { | ||
isLink(key: Key): boolean; | ||
getItemProps(key: Key): any; | ||
} | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@react-stately/selection", | ||
"version": "3.0.0-nightly.2816+3ebcc660d", | ||
"version": "3.0.0-nightly.2821+23182926f", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,5 +25,5 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-stately/collections": "3.0.0-nightly.2816+3ebcc660d", | ||
"@react-stately/utils": "3.0.0-nightly.2816+3ebcc660d", | ||
"@react-types/shared": "3.0.0-nightly.2816+3ebcc660d", | ||
"@react-stately/collections": "3.0.0-nightly.2821+23182926f", | ||
"@react-stately/utils": "3.0.0-nightly.2821+23182926f", | ||
"@react-types/shared": "3.0.0-nightly.2821+23182926f", | ||
"@swc/helpers": "^0.5.0" | ||
@@ -37,3 +37,3 @@ }, | ||
}, | ||
"gitHead": "3ebcc660dd5abfae62ec9002a938916828ce05aa" | ||
"gitHead": "23182926f918b70199e01d735a09d73438c944be" | ||
} |
@@ -497,2 +497,6 @@ /* | ||
} | ||
getItemProps(key: Key) { | ||
return this.collection.getItem(key)?.props; | ||
} | ||
} |
@@ -108,3 +108,5 @@ /* | ||
/** Returns whether the given key is a hyperlink. */ | ||
isLink(key: Key): boolean | ||
isLink(key: Key): boolean, | ||
/** Returns the props for the given item. */ | ||
getItemProps(key: Key): any | ||
} |
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
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
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
171047
2156