Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-aria/selection

Package Overview
Dependencies
Maintainers
1
Versions
792
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-aria/selection - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

26

dist/types.d.ts

@@ -15,11 +15,37 @@ import { HTMLAttributes, Key, RefObject } from "react";

interface SelectableCollectionOptions {
/**
* An interface for reading and updating multiple selection state.
*/
selectionManager: MultipleSelectionManager;
/**
* A delegate object that implements behavior for keyboard focus movement.
*/
keyboardDelegate: KeyboardDelegate;
/**
* The ref attached to the element representing the collection.
*/
ref: RefObject<HTMLElement>;
/**
* Whether the collection or one of its items should be automatically focused upon render.
* @default false
*/
autoFocus?: boolean | FocusStrategy;
/**
* Whether focus should wrap around when the end/start is reached.
* @default false
*/
shouldFocusWrap?: boolean;
/**
* Whether the collection allows empty selection.
* @default false
*/
disallowEmptySelection?: boolean;
/**
* Whether the collection allows the user to select all items via keyboard shortcut.
* @default false
*/
disallowSelectAll?: boolean;
}
interface SelectableCollectionAria {
/** Props for the collection element. */
collectionProps: HTMLAttributes<HTMLElement>;

@@ -26,0 +52,0 @@ }

20

package.json
{
"name": "@react-aria/selection",
"version": "3.0.0",
"version": "3.0.1",
"description": "Spectrum UI components in React",

@@ -17,13 +17,13 @@ "license": "Apache-2.0",

"type": "git",
"url": "https://github.com/adobe-private/react-spectrum-v3"
"url": "https://github.com/adobe/react-spectrum"
},
"dependencies": {
"@babel/runtime": "^7.6.2",
"@react-aria/focus": "^3.0.0",
"@react-aria/i18n": "^3.0.0",
"@react-aria/interactions": "^3.0.0",
"@react-aria/utils": "^3.0.0",
"@react-stately/collections": "^3.0.0",
"@react-stately/selection": "^3.0.0",
"@react-types/shared": "^3.0.0"
"@react-aria/focus": "^3.0.1",
"@react-aria/i18n": "^3.0.1",
"@react-aria/interactions": "^3.0.1",
"@react-aria/utils": "^3.0.1",
"@react-stately/collections": "^3.0.1",
"@react-stately/selection": "^3.0.1",
"@react-types/shared": "^3.0.1"
},

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

},
"gitHead": "a32224fdf009d69cf594f32ad18ac86d7ebb8a52"
"gitHead": "ac0b7a7ba0edccd1c9ab4f849022ad6d2ccd19ed"
}
# @react-aria/selection
This package is part of [react-spectrum](https://github.com/adobe-private/react-spectrum-v3). See the repo for more details.
This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details.

@@ -35,8 +35,33 @@ /*

interface SelectableCollectionOptions {
/**
* An interface for reading and updating multiple selection state.
*/
selectionManager: MultipleSelectionManager,
/**
* A delegate object that implements behavior for keyboard focus movement.
*/
keyboardDelegate: KeyboardDelegate,
/**
* The ref attached to the element representing the collection.
*/
ref: RefObject<HTMLElement>,
/**
* Whether the collection or one of its items should be automatically focused upon render.
* @default false
*/
autoFocus?: boolean | FocusStrategy,
/**
* Whether focus should wrap around when the end/start is reached.
* @default false
*/
shouldFocusWrap?: boolean,
/**
* Whether the collection allows empty selection.
* @default false
*/
disallowEmptySelection?: boolean,
/**
* Whether the collection allows the user to select all items via keyboard shortcut.
* @default false
*/
disallowSelectAll?: boolean

@@ -46,2 +71,3 @@ }

interface SelectableCollectionAria {
/** Props for the collection element. */
collectionProps: HTMLAttributes<HTMLElement>

@@ -48,0 +74,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

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