@react-aria/focus
Advanced tools
Comparing version 3.0.0-nightly-25f304dea-241008 to 3.0.0-nightly-262cc758b-241114
@@ -325,3 +325,2 @@ var $1c7f9157d722357d$exports = require("./focusSafely.main.js"); | ||
// This is a useLayoutEffect so it is guaranteed to run before our async synthetic blur | ||
// eslint-disable-next-line arrow-body-style | ||
(0, $euGna$reactariautils.useLayoutEffect)(()=>{ | ||
@@ -368,3 +367,3 @@ return ()=>{ | ||
(0, $1c7f9157d722357d$exports.focusSafely)(element); | ||
} catch (err) { | ||
} catch { | ||
// ignore | ||
@@ -374,3 +373,3 @@ } | ||
element.focus(); | ||
} catch (err) { | ||
} catch { | ||
// ignore | ||
@@ -377,0 +376,0 @@ } |
@@ -310,3 +310,2 @@ import {focusSafely as $6a99195332edec8b$export$80f3e147d781571c} from "./focusSafely.module.js"; | ||
// This is a useLayoutEffect so it is guaranteed to run before our async synthetic blur | ||
// eslint-disable-next-line arrow-body-style | ||
(0, $cgawC$useLayoutEffect)(()=>{ | ||
@@ -353,3 +352,3 @@ return ()=>{ | ||
(0, $6a99195332edec8b$export$80f3e147d781571c)(element); | ||
} catch (err) { | ||
} catch { | ||
// ignore | ||
@@ -359,3 +358,3 @@ } | ||
element.focus(); | ||
} catch (err) { | ||
} catch { | ||
// ignore | ||
@@ -362,0 +361,0 @@ } |
@@ -122,3 +122,3 @@ import { FocusableElement, RefObject, DOMAttributes, FocusableDOMProps, FocusableProps } from "@react-types/shared"; | ||
export function FocusRing(props: FocusRingProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>; | ||
export interface FocusableOptions extends FocusableProps, FocusableDOMProps { | ||
export interface FocusableOptions<T = FocusableElement> extends FocusableProps<T>, FocusableDOMProps { | ||
/** Whether focus should be disabled. */ | ||
@@ -139,3 +139,3 @@ isDisabled?: boolean; | ||
*/ | ||
export function useFocusable(props: FocusableOptions, domRef: RefObject<FocusableElement | null>): FocusableAria; | ||
export function useFocusable<T extends FocusableElement = FocusableElement>(props: FocusableOptions<T>, domRef: RefObject<FocusableElement | null>): FocusableAria; | ||
interface AriaHasTabbableChildOptions { | ||
@@ -142,0 +142,0 @@ isDisabled?: boolean; |
{ | ||
"name": "@react-aria/focus", | ||
"version": "3.0.0-nightly-25f304dea-241008", | ||
"version": "3.0.0-nightly-262cc758b-241114", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,5 +25,5 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/interactions": "^3.0.0-nightly-25f304dea-241008", | ||
"@react-aria/utils": "^3.0.0-nightly-25f304dea-241008", | ||
"@react-types/shared": "^3.0.0-nightly-25f304dea-241008", | ||
"@react-aria/interactions": "^3.0.0-nightly-262cc758b-241114", | ||
"@react-aria/utils": "^3.0.0-nightly-262cc758b-241114", | ||
"@react-types/shared": "^3.0.0-nightly-262cc758b-241114", | ||
"@swc/helpers": "^0.5.0", | ||
@@ -38,3 +38,3 @@ "clsx": "^2.0.0" | ||
}, | ||
"stableVersion": "3.18.3" | ||
"stableVersion": "3.18.4" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
383650
4431
+ Added@react-aria/interactions@3.22.5(transitive)
+ Added@react-aria/ssr@3.9.7(transitive)
+ Added@react-aria/utils@3.26.0(transitive)
+ Added@react-stately/utils@3.10.5(transitive)
+ Added@react-types/shared@3.26.0(transitive)
- Removed@react-aria/interactions@3.22.4(transitive)
- Removed@react-aria/ssr@3.9.6(transitive)
- Removed@react-aria/utils@3.25.3(transitive)
- Removed@react-stately/utils@3.10.4(transitive)
- Removed@react-types/shared@3.25.0(transitive)
Updated@react-aria/interactions@^3.0.0-nightly-262cc758b-241114