Socket
Socket
Sign inDemoInstall

@react-stately/grid

Package Overview
Dependencies
5
Maintainers
0
Versions
619
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.8.8-nightly.4685 to 3.8.8-nightly.4691

4

dist/types.d.ts
import { GridCollection as _GridCollection1, GridNode, GridRow } from "@react-types/grid";
import { Key } from "@react-types/shared";
import { MultipleSelectionStateProps, SelectionManager } from "@react-stately/selection";
import { MultipleSelectionState, MultipleSelectionStateProps, SelectionManager } from "@react-stately/selection";
export interface GridState<T, C extends _GridCollection1<T>> {

@@ -17,2 +17,4 @@ collection: C;

focusMode?: 'row' | 'cell';
/** @private - do not use unless you know what you're doing. */
UNSAFE_selectionState?: MultipleSelectionState;
}

@@ -19,0 +21,0 @@ /**

@@ -16,3 +16,4 @@ var $5Cus8$reactstatelycollections = require("@react-stately/collections");

let { collection: collection, focusMode: focusMode } = props;
let selectionState = (0, $5Cus8$reactstatelyselection.useMultipleSelectionState)(props);
// eslint-disable-next-line react-hooks/rules-of-hooks
let selectionState = props.UNSAFE_selectionState || (0, $5Cus8$reactstatelyselection.useMultipleSelectionState)(props);
let disabledKeys = (0, $5Cus8$react.useMemo)(()=>props.disabledKeys ? new Set(props.disabledKeys) : new Set(), [

@@ -19,0 +20,0 @@ props.disabledKeys

@@ -10,3 +10,4 @@ import {getChildNodes as $7nPCv$getChildNodes, getLastItem as $7nPCv$getLastItem, getFirstItem as $7nPCv$getFirstItem} from "@react-stately/collections";

let { collection: collection, focusMode: focusMode } = props;
let selectionState = (0, $7nPCv$useMultipleSelectionState)(props);
// eslint-disable-next-line react-hooks/rules-of-hooks
let selectionState = props.UNSAFE_selectionState || (0, $7nPCv$useMultipleSelectionState)(props);
let disabledKeys = (0, $7nPCv$useMemo)(()=>props.disabledKeys ? new Set(props.disabledKeys) : new Set(), [

@@ -13,0 +14,0 @@ props.disabledKeys

{
"name": "@react-stately/grid",
"version": "3.8.8-nightly.4685+a48d1673f",
"version": "3.8.8-nightly.4691+fabca84b9",
"description": "Spectrum UI components in React",

@@ -25,6 +25,6 @@ "license": "Apache-2.0",

"dependencies": {
"@react-stately/collections": "3.0.0-nightly.2973+a48d1673f",
"@react-stately/selection": "3.0.0-nightly.2973+a48d1673f",
"@react-types/grid": "3.2.7-nightly.4685+a48d1673f",
"@react-types/shared": "3.0.0-nightly.2973+a48d1673f",
"@react-stately/collections": "3.0.0-nightly.2979+fabca84b9",
"@react-stately/selection": "3.0.0-nightly.2979+fabca84b9",
"@react-types/grid": "3.2.7-nightly.4691+fabca84b9",
"@react-types/shared": "3.0.0-nightly.2979+fabca84b9",
"@swc/helpers": "^0.5.0"

@@ -38,3 +38,3 @@ },

},
"gitHead": "a48d1673f2144714e31712e38310a8801edab550"
"gitHead": "fabca84b95c9c61f9062d5f1e66ebe2c920a2a5d"
}
import {getChildNodes, getFirstItem, getLastItem} from '@react-stately/collections';
import {GridCollection, GridNode} from '@react-types/grid';
import {Key} from '@react-types/shared';
import {MultipleSelectionStateProps, SelectionManager, useMultipleSelectionState} from '@react-stately/selection';
import {MultipleSelectionState, MultipleSelectionStateProps, SelectionManager, useMultipleSelectionState} from '@react-stately/selection';
import {useEffect, useMemo, useRef} from 'react';

@@ -20,3 +20,5 @@

disabledKeys?: Iterable<Key>,
focusMode?: 'row' | 'cell'
focusMode?: 'row' | 'cell',
/** @private - do not use unless you know what you're doing. */
UNSAFE_selectionState?: MultipleSelectionState
}

@@ -29,3 +31,4 @@

let {collection, focusMode} = props;
let selectionState = useMultipleSelectionState(props);
// eslint-disable-next-line react-hooks/rules-of-hooks
let selectionState = props.UNSAFE_selectionState || useMultipleSelectionState(props);
let disabledKeys = useMemo(() =>

@@ -32,0 +35,0 @@ props.disabledKeys ? new Set(props.disabledKeys) : new Set<Key>()

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc