@react-stately/grid
Advanced tools
Comparing version 3.0.0-nightly.2655 to 3.0.0-nightly.2659
@@ -1,6 +0,6 @@ | ||
import { GridCollection, GridNode, GridRow } from "@react-types/grid"; | ||
import { GridCollection as _GridCollection1, GridNode, GridRow } from "@react-types/grid"; | ||
import { Key } from "react"; | ||
import { MultipleSelection } from "@react-types/shared"; | ||
import { SelectionManager } from "@react-stately/selection"; | ||
export interface GridState<T, C extends GridCollection<T>> { | ||
export interface GridState<T, C extends _GridCollection1<T>> { | ||
collection: C; | ||
@@ -10,7 +10,7 @@ disabledKeys: Set<Key>; | ||
} | ||
interface GridStateOptions<T, C extends GridCollection<T>> extends MultipleSelection { | ||
interface GridStateOptions<T, C extends _GridCollection1<T>> extends MultipleSelection { | ||
collection: C; | ||
disabledKeys?: Iterable<Key>; | ||
} | ||
export function useGridState<T extends object, C extends GridCollection<T>>(props: GridStateOptions<T, C>): GridState<T, C>; | ||
export function useGridState<T extends object, C extends _GridCollection1<T>>(props: GridStateOptions<T, C>): GridState<T, C>; | ||
interface GridCollectionOptions<T> { | ||
@@ -21,3 +21,3 @@ columnCount: number; | ||
} | ||
export class GridCollection<T> implements GridCollection<T> { | ||
export class GridCollection<T> implements _GridCollection1<T> { | ||
keyMap: Map<Key, GridNode<T>>; | ||
@@ -24,0 +24,0 @@ columnCount: number; |
{ | ||
"name": "@react-stately/grid", | ||
"version": "3.0.0-nightly.2655+f0afbae7", | ||
"version": "3.0.0-nightly.2659+6521a98b", | ||
"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.975+f0afbae7", | ||
"@react-types/grid": "3.0.0-nightly.2655+f0afbae7", | ||
"@react-types/shared": "3.0.0-nightly.975+f0afbae7" | ||
"@react-stately/selection": "3.0.0-nightly.979+6521a98b", | ||
"@react-types/grid": "3.0.0-nightly.2659+6521a98b", | ||
"@react-types/shared": "3.0.0-nightly.979+6521a98b" | ||
}, | ||
@@ -32,3 +32,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "f0afbae764727b3062170852006ea38689a34f97" | ||
"gitHead": "6521a98b5cc56ac0d93109e31ffcf0a9b75cee62" | ||
} |
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
52228