@react-stately/selection
Advanced tools
Comparing version 3.0.0-nightly-f90799b33-241206 to 3.0.0-nightly-f90f4899f-250227
@@ -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; |
@@ -1,2 +0,2 @@ | ||
import { DisabledBehavior, FocusStrategy, Key, LongPressEvent, PressEvent, Selection, SelectionBehavior, SelectionMode, MultipleSelection, Collection, LayoutDelegate, Node } from "@react-types/shared"; | ||
import { Collection, DisabledBehavior, FocusStrategy, Key, LongPressEvent, Node, PressEvent, Selection, SelectionBehavior, SelectionMode, MultipleSelection, LayoutDelegate } from "@react-types/shared"; | ||
export interface FocusState { | ||
@@ -94,2 +94,4 @@ /** Whether the collection is currently focused. */ | ||
getItemProps(key: Key): any; | ||
/** The collection of nodes that the selection manager handles. */ | ||
collection: Collection<Node<unknown>>; | ||
} | ||
@@ -214,4 +216,5 @@ export interface MultipleSelectionStateProps extends MultipleSelection { | ||
getItemProps(key: Key): any; | ||
withCollection(collection: Collection<Node<unknown>>): SelectionManager; | ||
} | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@react-stately/selection", | ||
"version": "3.0.0-nightly-f90799b33-241206", | ||
"version": "3.0.0-nightly-f90f4899f-250227", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,5 +25,5 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-stately/collections": "^3.0.0-nightly-f90799b33-241206", | ||
"@react-stately/utils": "^3.0.0-nightly-f90799b33-241206", | ||
"@react-types/shared": "^3.0.0-nightly-f90799b33-241206", | ||
"@react-stately/collections": "3.0.0-nightly-f90f4899f-250227", | ||
"@react-stately/utils": "3.0.0-nightly-f90f4899f-250227", | ||
"@react-types/shared": "3.0.0-nightly-f90f4899f-250227", | ||
"@swc/helpers": "^0.5.0" | ||
@@ -36,4 +36,3 @@ }, | ||
"access": "public" | ||
}, | ||
"stableVersion": "3.18.0" | ||
} | ||
} |
@@ -515,2 +515,9 @@ /* | ||
} | ||
withCollection(collection: Collection<Node<unknown>>) { | ||
return new SelectionManager(collection, this.state, { | ||
allowsCellSelection: this.allowsCellSelection, | ||
layoutDelegate: this.layoutDelegate || undefined | ||
}); | ||
} | ||
} |
@@ -13,3 +13,3 @@ /* | ||
import {DisabledBehavior, FocusStrategy, Key, LongPressEvent, PressEvent, Selection, SelectionBehavior, SelectionMode} from '@react-types/shared'; | ||
import {Collection, DisabledBehavior, FocusStrategy, Key, LongPressEvent, Node, PressEvent, Selection, SelectionBehavior, SelectionMode} from '@react-types/shared'; | ||
@@ -111,3 +111,5 @@ | ||
/** Returns the props for the given item. */ | ||
getItemProps(key: Key): any | ||
getItemProps(key: Key): any, | ||
/** The collection of nodes that the selection manager handles. */ | ||
collection: Collection<Node<unknown>> | ||
} |
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
173972
2281
+ Added@react-stately/collections@3.0.0-nightly-f90f4899f-250227(transitive)
+ Added@react-stately/utils@3.0.0-nightly-f90f4899f-250227(transitive)
+ Added@react-types/shared@3.0.0-nightly-f90f4899f-250227(transitive)
- Removed@react-stately/collections@3.12.1(transitive)
- Removed@react-stately/utils@3.10.5(transitive)
- Removed@react-types/shared@3.27.0(transitive)
Updated@react-stately/collections@3.0.0-nightly-f90f4899f-250227