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
826
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-nightly.738 to 3.0.0-nightly.741

15

dist/main.js

@@ -125,3 +125,4 @@ var {

selectOnFocus = false,
disallowTypeAhead = false
disallowTypeAhead = false,
shouldUseVirtualFocus
} = options;

@@ -422,3 +423,3 @@

if (focusedKey == null) {
if (focusedKey == null && !shouldUseVirtualFocus) {
focusSafely(ref.current);

@@ -458,3 +459,3 @@ }

// This will be marshalled to either the first or last item depending on where focus came from.
tabIndex: manager.focusedKey == null ? 0 : -1
tabIndex: manager.focusedKey == null && !shouldUseVirtualFocus ? 0 : -1
})

@@ -510,3 +511,3 @@ };

let itemProps = {
tabIndex: isFocused ? 0 : -1,
tabIndex: isFocused && !shouldUseVirtualFocus ? 0 : -1,

@@ -725,3 +726,4 @@ onFocus(e) {

selectOnFocus = false,
disallowTypeAhead
disallowTypeAhead,
shouldUseVirtualFocus
} = props; // By default, a KeyboardDelegate is provided which uses the DOM to query layout information (e.g. for page up/page down).

@@ -756,3 +758,4 @@ // When virtualized, the layout object will be passed in as a prop and override this.

selectOnFocus,
disallowTypeAhead
disallowTypeAhead,
shouldUseVirtualFocus
});

@@ -759,0 +762,0 @@ return {

@@ -104,3 +104,4 @@ import { useCollator } from "@react-aria/i18n";

selectOnFocus = false,
disallowTypeAhead = false
disallowTypeAhead = false,
shouldUseVirtualFocus
} = options;

@@ -401,3 +402,3 @@

if (focusedKey == null) {
if (focusedKey == null && !shouldUseVirtualFocus) {
focusSafely(ref.current);

@@ -437,3 +438,3 @@ }

// This will be marshalled to either the first or last item depending on where focus came from.
tabIndex: manager.focusedKey == null ? 0 : -1
tabIndex: manager.focusedKey == null && !shouldUseVirtualFocus ? 0 : -1
})

@@ -487,3 +488,3 @@ };

let itemProps = {
tabIndex: isFocused ? 0 : -1,
tabIndex: isFocused && !shouldUseVirtualFocus ? 0 : -1,

@@ -698,3 +699,4 @@ onFocus(e) {

selectOnFocus = false,
disallowTypeAhead
disallowTypeAhead,
shouldUseVirtualFocus
} = props; // By default, a KeyboardDelegate is provided which uses the DOM to query layout information (e.g. for page up/page down).

@@ -729,3 +731,4 @@ // When virtualized, the layout object will be passed in as a prop and override this.

selectOnFocus,
disallowTypeAhead
disallowTypeAhead,
shouldUseVirtualFocus
});

@@ -732,0 +735,0 @@ return {

@@ -72,2 +72,6 @@ import { HTMLAttributes, Key, RefObject } from "react";

disallowTypeAhead?: boolean;
/**
* Whether the collection items should use virtual focus instead of being focused directly.
*/
shouldUseVirtualFocus?: boolean;
}

@@ -183,2 +187,6 @@ interface SelectableCollectionAria {

disallowTypeAhead?: boolean;
/**
* Whether the collection items should use virtual focus instead of being focused directly.
*/
shouldUseVirtualFocus?: boolean;
}

@@ -185,0 +193,0 @@ interface SelectableListAria {

18

package.json
{
"name": "@react-aria/selection",
"version": "3.0.0-nightly.738+dc6d7873",
"version": "3.0.0-nightly.741+975957a3",
"description": "Spectrum UI components in React",

@@ -21,9 +21,9 @@ "license": "Apache-2.0",

"@babel/runtime": "^7.6.2",
"@react-aria/focus": "3.0.0-nightly.738+dc6d7873",
"@react-aria/i18n": "3.0.0-nightly.738+dc6d7873",
"@react-aria/interactions": "3.0.0-nightly.738+dc6d7873",
"@react-aria/utils": "3.0.0-nightly.738+dc6d7873",
"@react-stately/collections": "3.0.0-nightly.738+dc6d7873",
"@react-stately/selection": "3.0.0-nightly.738+dc6d7873",
"@react-types/shared": "3.0.0-nightly.738+dc6d7873"
"@react-aria/focus": "3.0.0-nightly.741+975957a3",
"@react-aria/i18n": "3.0.0-nightly.741+975957a3",
"@react-aria/interactions": "3.0.0-nightly.741+975957a3",
"@react-aria/utils": "3.0.0-nightly.741+975957a3",
"@react-stately/collections": "3.0.0-nightly.741+975957a3",
"@react-stately/selection": "3.0.0-nightly.741+975957a3",
"@react-types/shared": "3.0.0-nightly.741+975957a3"
},

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

},
"gitHead": "dc6d78733fb26fa02afeb1a36e11de7d71c84467"
"gitHead": "975957a3c3fb4a9f3be358428e0980a4d4e51c1a"
}

@@ -75,3 +75,7 @@ /*

*/
disallowTypeAhead?: boolean
disallowTypeAhead?: boolean,
/**
* Whether the collection items should use virtual focus instead of being focused directly.
*/
shouldUseVirtualFocus?: boolean
}

@@ -97,3 +101,4 @@

selectOnFocus = false,
disallowTypeAhead = false
disallowTypeAhead = false,
shouldUseVirtualFocus
} = options;

@@ -343,3 +348,3 @@

// If no default focus key is selected, focus the collection itself.
if (focusedKey == null) {
if (focusedKey == null && !shouldUseVirtualFocus) {
focusSafely(ref.current);

@@ -378,5 +383,5 @@ }

// This will be marshalled to either the first or last item depending on where focus came from.
tabIndex: manager.focusedKey == null ? 0 : -1
tabIndex: manager.focusedKey == null && !shouldUseVirtualFocus ? 0 : -1
}
};
}

@@ -103,3 +103,3 @@ /*

let itemProps: SelectableItemAria['itemProps'] = {
tabIndex: isFocused ? 0 : -1,
tabIndex: isFocused && !shouldUseVirtualFocus ? 0 : -1,
onFocus(e) {

@@ -106,0 +106,0 @@ if (e.target === ref.current) {

@@ -69,3 +69,7 @@ /*

*/
disallowTypeAhead?: boolean
disallowTypeAhead?: boolean,
/**
* Whether the collection items should use virtual focus instead of being focused directly.
*/
shouldUseVirtualFocus?: boolean
}

@@ -95,3 +99,4 @@

selectOnFocus = false,
disallowTypeAhead
disallowTypeAhead,
shouldUseVirtualFocus
} = props;

@@ -123,3 +128,4 @@

selectOnFocus,
disallowTypeAhead
disallowTypeAhead,
shouldUseVirtualFocus
});

@@ -126,0 +132,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