@react-stately/grid
Advanced tools
Comparing version 3.0.0-nightly.2892 to 3.0.0-nightly.2895
@@ -23,4 +23,3 @@ var _babelRuntimeHelpersExtends = $parcel$interopDefault(require("@babel/runtime/helpers/extends")); | ||
collection, | ||
focusMode, | ||
allowsCellSelection = false | ||
focusMode | ||
} = props; | ||
@@ -63,5 +62,3 @@ let selectionState = useMultipleSelectionState(props); | ||
disabledKeys, | ||
selectionManager: new SelectionManager(collection, selectionState, { | ||
allowsCellSelection | ||
}) | ||
selectionManager: new SelectionManager(collection, selectionState) | ||
}; | ||
@@ -68,0 +65,0 @@ } |
@@ -11,4 +11,3 @@ import _babelRuntimeHelpersEsmExtends from "@babel/runtime/helpers/esm/extends"; | ||
collection, | ||
focusMode, | ||
allowsCellSelection = false | ||
focusMode | ||
} = props; | ||
@@ -51,5 +50,3 @@ let selectionState = useMultipleSelectionState(props); | ||
disabledKeys, | ||
selectionManager: new SelectionManager(collection, selectionState, { | ||
allowsCellSelection | ||
}) | ||
selectionManager: new SelectionManager(collection, selectionState) | ||
}; | ||
@@ -56,0 +53,0 @@ } |
@@ -16,3 +16,2 @@ import { GridCollection as _GridCollection1, GridNode, GridRow } from "@react-types/grid"; | ||
focusMode?: 'row' | 'cell'; | ||
allowsCellSelection?: boolean; | ||
} | ||
@@ -19,0 +18,0 @@ /** |
{ | ||
"name": "@react-stately/grid", | ||
"version": "3.0.0-nightly.2892+66d8eb4f4", | ||
"version": "3.0.0-nightly.2895+07f8cb4ec", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,5 +21,5 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-stately/selection": "3.0.0-nightly.1207+66d8eb4f4", | ||
"@react-types/grid": "3.0.0-nightly.2892+66d8eb4f4", | ||
"@react-types/shared": "3.0.0-nightly.1207+66d8eb4f4" | ||
"@react-stately/selection": "3.0.0-nightly.1210+07f8cb4ec", | ||
"@react-types/grid": "3.0.0-nightly.2895+07f8cb4ec", | ||
"@react-types/shared": "3.0.0-nightly.1210+07f8cb4ec" | ||
}, | ||
@@ -32,3 +32,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "66d8eb4f4da3c073f4184f70ff6fcad47a1e8238" | ||
"gitHead": "07f8cb4ecc7cee38d9574524388865e5ce3da57d" | ||
} |
@@ -17,4 +17,3 @@ import {GridCollection} from '@react-types/grid'; | ||
disabledKeys?: Iterable<Key>, | ||
focusMode?: 'row' | 'cell', | ||
allowsCellSelection?: boolean | ||
focusMode?: 'row' | 'cell' | ||
} | ||
@@ -26,3 +25,3 @@ | ||
export function useGridState<T extends object, C extends GridCollection<T>>(props: GridStateOptions<T, C>): GridState<T, C> { | ||
let {collection, focusMode, allowsCellSelection = false} = props; | ||
let {collection, focusMode} = props; | ||
let selectionState = useMultipleSelectionState(props); | ||
@@ -61,4 +60,4 @@ let disabledKeys = useMemo(() => | ||
disabledKeys, | ||
selectionManager: new SelectionManager(collection, selectionState, {allowsCellSelection}) | ||
selectionManager: new SelectionManager(collection, selectionState) | ||
}; | ||
} |
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
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
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
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
59265
592