Socket
Socket
Sign inDemoInstall

@react-aria/focus

Package Overview
Dependencies
6
Maintainers
2
Versions
704
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0-nightly.2962 to 3.0.0-nightly.2969

4

dist/FocusScope.main.js

@@ -249,4 +249,4 @@ var $1c7f9157d722357d$exports = require("./focusSafely.main.js");

function $a7a032acae3ddda9$var$useFocusContainment(scopeRef, contain) {
let focusedNode = (0, $euGna$react.useRef)();
let raf = (0, $euGna$react.useRef)();
let focusedNode = (0, $euGna$react.useRef)(undefined);
let raf = (0, $euGna$react.useRef)(undefined);
(0, $euGna$reactariautils.useLayoutEffect)(()=>{

@@ -253,0 +253,0 @@ let scope = scopeRef.current;

@@ -234,4 +234,4 @@ import {focusSafely as $6a99195332edec8b$export$80f3e147d781571c} from "./focusSafely.module.js";

function $9bf71ea28793e738$var$useFocusContainment(scopeRef, contain) {
let focusedNode = (0, $cgawC$useRef)();
let raf = (0, $cgawC$useRef)();
let focusedNode = (0, $cgawC$useRef)(undefined);
let raf = (0, $cgawC$useRef)(undefined);
(0, $cgawC$useLayoutEffect)(()=>{

@@ -238,0 +238,0 @@ let scope = scopeRef.current;

@@ -69,3 +69,3 @@ import { FocusableElement, DOMAttributes, FocusableDOMProps, FocusableProps } from "@react-types/shared";

*/
export function createFocusManager(ref: RefObject<Element>, defaultOptions?: FocusManagerOptions): FocusManager;
export function createFocusManager(ref: RefObject<Element | null>, defaultOptions?: FocusManagerOptions): FocusManager;
export interface AriaFocusRingProps {

@@ -122,3 +122,3 @@ /**

*/
export function FocusRing(props: FocusRingProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
export function FocusRing(props: FocusRingProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
export interface FocusableOptions extends FocusableProps, FocusableDOMProps {

@@ -140,3 +140,3 @@ /** Whether focus should be disabled. */

*/
export function useFocusable(props: FocusableOptions, domRef: RefObject<FocusableElement>): FocusableAria;
export function useFocusable(props: FocusableOptions, domRef: RefObject<FocusableElement | null>): FocusableAria;
interface AriaHasTabbableChildOptions {

@@ -149,4 +149,4 @@ isDisabled?: boolean;

*/
export function useHasTabbableChild(ref: RefObject<Element>, options?: AriaHasTabbableChildOptions): boolean;
export function useHasTabbableChild(ref: RefObject<Element | null>, options?: AriaHasTabbableChildOptions): boolean;
//# sourceMappingURL=types.d.ts.map
{
"name": "@react-aria/focus",
"version": "3.0.0-nightly.2962+59136f78e",
"version": "3.0.0-nightly.2969+2fd87d9f1",
"description": "Spectrum UI components in React",

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

"dependencies": {
"@react-aria/interactions": "3.0.0-nightly.2962+59136f78e",
"@react-aria/utils": "3.0.0-nightly.2962+59136f78e",
"@react-types/shared": "3.0.0-nightly.2962+59136f78e",
"@react-aria/interactions": "3.0.0-nightly.2969+2fd87d9f1",
"@react-aria/utils": "3.0.0-nightly.2969+2fd87d9f1",
"@react-types/shared": "3.0.0-nightly.2969+2fd87d9f1",
"@swc/helpers": "^0.5.0",

@@ -33,3 +33,3 @@ "clsx": "^2.0.0"

"peerDependencies": {
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
},

@@ -39,3 +39,3 @@ "publishConfig": {

},
"gitHead": "59136f78e853e97bb4067a1268750c9f85900bf6"
"gitHead": "2fd87d9f1d894e6b00a595cce73c6e8828029132"
}

@@ -30,3 +30,3 @@ /*

*/
export function useHasTabbableChild(ref: RefObject<Element>, options?: AriaHasTabbableChildOptions): boolean {
export function useHasTabbableChild(ref: RefObject<Element | null>, options?: AriaHasTabbableChildOptions): boolean {
let isDisabled = options?.isDisabled;

@@ -33,0 +33,0 @@ let [hasTabbableChild, setHasTabbableChild] = useState(false);

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

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

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

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