@react-stately/grid
Advanced tools
Comparing version 3.0.0-nightly.2585 to 3.0.0-nightly.2655
@@ -75,2 +75,7 @@ var _babelRuntimeHelpersExtends = $parcel$interopDefault(require("@babel/runtime/helpers/extends")); | ||
for (let child of node.childNodes) { | ||
if (child.type === 'cell' && child.parentKey == null) { | ||
// if child is a cell parent key isn't already established by the collection, match child node to parent row | ||
child.parentKey = node.key; | ||
} | ||
childKeys.add(child.key); | ||
@@ -77,0 +82,0 @@ |
@@ -60,2 +60,7 @@ import _babelRuntimeHelpersEsmExtends from "@babel/runtime/helpers/esm/extends"; | ||
for (let child of node.childNodes) { | ||
if (child.type === 'cell' && child.parentKey == null) { | ||
// if child is a cell parent key isn't already established by the collection, match child node to parent row | ||
child.parentKey = node.key; | ||
} | ||
childKeys.add(child.key); | ||
@@ -62,0 +67,0 @@ |
@@ -1,4 +0,4 @@ | ||
import { CollectionBase, MultipleSelection } from "@react-types/shared"; | ||
import { GridCollection, GridNode, GridRow } from "@react-types/grid"; | ||
import { Key } from "react"; | ||
import { MultipleSelection } from "@react-types/shared"; | ||
import { SelectionManager } from "@react-stately/selection"; | ||
@@ -10,4 +10,5 @@ export interface GridState<T, C extends GridCollection<T>> { | ||
} | ||
interface GridStateOptions<T, C extends GridCollection<T>> extends CollectionBase<T>, MultipleSelection { | ||
interface GridStateOptions<T, C extends GridCollection<T>> extends MultipleSelection { | ||
collection: C; | ||
disabledKeys?: Iterable<Key>; | ||
} | ||
@@ -14,0 +15,0 @@ export function useGridState<T extends object, C extends GridCollection<T>>(props: GridStateOptions<T, C>): GridState<T, C>; |
{ | ||
"name": "@react-stately/grid", | ||
"version": "3.0.0-nightly.2585+e213843e", | ||
"version": "3.0.0-nightly.2655+f0afbae7", | ||
"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.907+e213843e", | ||
"@react-types/grid": "3.0.0-nightly.2585+e213843e", | ||
"@react-types/shared": "3.0.0-nightly.907+e213843e" | ||
"@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" | ||
}, | ||
@@ -32,3 +32,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "e213843ee295bda8ba7f80336a1e179f6e287d9e" | ||
"gitHead": "f0afbae764727b3062170852006ea38689a34f97" | ||
} |
@@ -46,2 +46,6 @@ /* | ||
for (let child of node.childNodes) { | ||
if (child.type === 'cell' && child.parentKey == null) { | ||
// if child is a cell parent key isn't already established by the collection, match child node to parent row | ||
child.parentKey = node.key; | ||
} | ||
childKeys.add(child.key); | ||
@@ -48,0 +52,0 @@ |
@@ -1,7 +0,4 @@ | ||
import { | ||
CollectionBase, | ||
MultipleSelection | ||
} from '@react-types/shared'; | ||
import {GridCollection} from '@react-types/grid'; | ||
import {Key, useEffect, useMemo} from 'react'; | ||
import {MultipleSelection} from '@react-types/shared'; | ||
import {SelectionManager, useMultipleSelectionState} from '@react-stately/selection'; | ||
@@ -15,4 +12,5 @@ | ||
interface GridStateOptions<T, C extends GridCollection<T>> extends CollectionBase<T>, MultipleSelection { | ||
collection: C | ||
interface GridStateOptions<T, C extends GridCollection<T>> extends MultipleSelection { | ||
collection: C, | ||
disabledKeys?: Iterable<Key> | ||
} | ||
@@ -19,0 +17,0 @@ |
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
52196
507