Socket
Socket
Sign inDemoInstall

@react-stately/grid

Package Overview
Dependencies
Maintainers
2
Versions
661
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-stately/grid - npm Package Compare versions

Comparing version 3.0.0-nightly.2878 to 3.0.0-nightly.2881

7

dist/main.js

@@ -23,3 +23,4 @@ var _babelRuntimeHelpersExtends = $parcel$interopDefault(require("@babel/runtime/helpers/extends"));

collection,
focusMode
focusMode,
allowsCellSelection = false
} = props;

@@ -62,3 +63,5 @@ let selectionState = useMultipleSelectionState(props);

disabledKeys,
selectionManager: new SelectionManager(collection, selectionState)
selectionManager: new SelectionManager(collection, selectionState, {
allowsCellSelection
})
};

@@ -65,0 +68,0 @@ }

@@ -11,3 +11,4 @@ import _babelRuntimeHelpersEsmExtends from "@babel/runtime/helpers/esm/extends";

collection,
focusMode
focusMode,
allowsCellSelection = false
} = props;

@@ -50,3 +51,5 @@ let selectionState = useMultipleSelectionState(props);

disabledKeys,
selectionManager: new SelectionManager(collection, selectionState)
selectionManager: new SelectionManager(collection, selectionState, {
allowsCellSelection
})
};

@@ -53,0 +56,0 @@ }

@@ -16,2 +16,3 @@ import { GridCollection as _GridCollection1, GridNode, GridRow } from "@react-types/grid";

focusMode?: 'row' | 'cell';
allowsCellSelection?: boolean;
}

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

{
"name": "@react-stately/grid",
"version": "3.0.0-nightly.2878+562b4006e",
"version": "3.0.0-nightly.2881+840ef4fc8",
"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.1193+562b4006e",
"@react-types/grid": "3.0.0-nightly.2878+562b4006e",
"@react-types/shared": "3.0.0-nightly.1193+562b4006e"
"@react-stately/selection": "3.0.0-nightly.1196+840ef4fc8",
"@react-types/grid": "3.0.0-nightly.2881+840ef4fc8",
"@react-types/shared": "3.0.0-nightly.1196+840ef4fc8"
},

@@ -32,3 +32,3 @@ "peerDependencies": {

},
"gitHead": "562b4006e27f2c479d3498df44c4ea689ff37c3a"
"gitHead": "840ef4fc8fd1dd896a37b581829e954dfa5d3392"
}

@@ -17,3 +17,4 @@ import {GridCollection} from '@react-types/grid';

disabledKeys?: Iterable<Key>,
focusMode?: 'row' | 'cell'
focusMode?: 'row' | 'cell',
allowsCellSelection?: boolean
}

@@ -25,3 +26,3 @@

export function useGridState<T extends object, C extends GridCollection<T>>(props: GridStateOptions<T, C>): GridState<T, C> {
let {collection, focusMode} = props;
let {collection, focusMode, allowsCellSelection = false} = props;
let selectionState = useMultipleSelectionState(props);

@@ -60,4 +61,4 @@ let disabledKeys = useMemo(() =>

disabledKeys,
selectionManager: new SelectionManager(collection, selectionState)
selectionManager: new SelectionManager(collection, selectionState, {allowsCellSelection})
};
}

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc