@react-stately/selection
Advanced tools
Comparing version 3.19.0 to 3.20.0
@@ -306,2 +306,8 @@ var $21c847070f1f9569$exports = require("./Selection.main.js"); | ||
} | ||
withCollection(collection) { | ||
return new $8112da6fa5bbc322$export$6c8a5aaad13c9852(collection, this.state, { | ||
allowsCellSelection: this.allowsCellSelection, | ||
layoutDelegate: this.layoutDelegate || undefined | ||
}); | ||
} | ||
constructor(collection, state, options){ | ||
@@ -308,0 +314,0 @@ this.collection = collection; |
@@ -300,2 +300,8 @@ import {Selection as $e40ea825a81a3709$export$52baac22726c72bf} from "./Selection.module.js"; | ||
} | ||
withCollection(collection) { | ||
return new $d496c0a20b6e58ec$export$6c8a5aaad13c9852(collection, this.state, { | ||
allowsCellSelection: this.allowsCellSelection, | ||
layoutDelegate: this.layoutDelegate || undefined | ||
}); | ||
} | ||
constructor(collection, state, options){ | ||
@@ -302,0 +308,0 @@ this.collection = collection; |
@@ -215,4 +215,5 @@ import { Collection, DisabledBehavior, FocusStrategy, Key, LongPressEvent, Node, PressEvent, Selection, SelectionBehavior, SelectionMode, MultipleSelection, LayoutDelegate } from "@react-types/shared"; | ||
getItemProps(key: Key): any; | ||
withCollection(collection: Collection<Node<unknown>>): SelectionManager; | ||
} | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@react-stately/selection", | ||
"version": "3.19.0", | ||
"version": "3.20.0", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,5 +25,5 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-stately/collections": "^3.12.1", | ||
"@react-stately/collections": "^3.12.2", | ||
"@react-stately/utils": "^3.10.5", | ||
"@react-types/shared": "^3.27.0", | ||
"@react-types/shared": "^3.28.0", | ||
"@swc/helpers": "^0.5.0" | ||
@@ -37,3 +37,3 @@ }, | ||
}, | ||
"gitHead": "09e7f44bebdc9d89122926b2b439a0a38a2814ea" | ||
"gitHead": "4d3c72c94eea2d72eb3a0e7d56000c6ef7e39726" | ||
} |
@@ -515,2 +515,9 @@ /* | ||
} | ||
withCollection(collection: Collection<Node<unknown>>) { | ||
return new SelectionManager(collection, this.state, { | ||
allowsCellSelection: this.allowsCellSelection, | ||
layoutDelegate: this.layoutDelegate || undefined | ||
}); | ||
} | ||
} |
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
185272
2281
29
61
8
284