@react-aria/utils
Advanced tools
Comparing version 3.0.0-nightly-7aa6265a2-241113 to 3.0.0-nightly-7eae25e12-241205
@@ -103,25 +103,25 @@ import React, { ForwardedRef, MutableRefObject, ReactNode, HTMLAttributes, EffectCallback, Dispatch, RefObject as _RefObject1 } from "react"; | ||
export function useSyntheticLinkProps(props: LinkDOMProps): { | ||
'data-href': string; | ||
'data-target': React.HTMLAttributeAnchorTarget; | ||
'data-rel': string; | ||
'data-download': string | boolean; | ||
'data-ping': string; | ||
'data-referrer-policy': React.HTMLAttributeReferrerPolicy; | ||
'data-href': string | undefined; | ||
'data-target': React.HTMLAttributeAnchorTarget | undefined; | ||
'data-rel': string | undefined; | ||
'data-download': string | boolean | undefined; | ||
'data-ping': string | undefined; | ||
'data-referrer-policy': React.HTMLAttributeReferrerPolicy | undefined; | ||
}; | ||
/** @deprecated - For backward compatibility. */ | ||
export function getSyntheticLinkProps(props: LinkDOMProps): { | ||
'data-href': string; | ||
'data-target': React.HTMLAttributeAnchorTarget; | ||
'data-rel': string; | ||
'data-download': string | boolean; | ||
'data-ping': string; | ||
'data-referrer-policy': React.HTMLAttributeReferrerPolicy; | ||
'data-href': string | undefined; | ||
'data-target': React.HTMLAttributeAnchorTarget | undefined; | ||
'data-rel': string | undefined; | ||
'data-download': string | boolean | undefined; | ||
'data-ping': string | undefined; | ||
'data-referrer-policy': React.HTMLAttributeReferrerPolicy | undefined; | ||
}; | ||
export function useLinkProps(props: LinkDOMProps): { | ||
href: string; | ||
target: React.HTMLAttributeAnchorTarget; | ||
rel: string; | ||
download: string | boolean; | ||
ping: string; | ||
referrerPolicy: React.HTMLAttributeReferrerPolicy; | ||
export function useLinkProps(props?: LinkDOMProps): { | ||
href: string | undefined; | ||
target: React.HTMLAttributeAnchorTarget | undefined; | ||
rel: string | undefined; | ||
download: string | boolean | undefined; | ||
ping: string | undefined; | ||
referrerPolicy: React.HTMLAttributeReferrerPolicy | undefined; | ||
}; | ||
@@ -193,3 +193,3 @@ export function runAfterTransition(fn: () => void): void; | ||
/** The optional containing element of the target to be centered in the viewport. */ | ||
containingElement?: Element; | ||
containingElement?: Element | null; | ||
} | ||
@@ -196,0 +196,0 @@ /** |
@@ -22,3 +22,2 @@ var $4gIVO$react = require("react"); | ||
// @ts-ignore | ||
let $8b24bab62f5c65ad$var$visualViewport = typeof document !== 'undefined' && window.visualViewport; | ||
@@ -25,0 +24,0 @@ function $8b24bab62f5c65ad$export$d699905dd57c73ca() { |
@@ -16,3 +16,2 @@ import {useState as $fuDHA$useState, useEffect as $fuDHA$useEffect} from "react"; | ||
// @ts-ignore | ||
let $5df64b3807dc15ee$var$visualViewport = typeof document !== 'undefined' && window.visualViewport; | ||
@@ -19,0 +18,0 @@ function $5df64b3807dc15ee$export$d699905dd57c73ca() { |
{ | ||
"name": "@react-aria/utils", | ||
"version": "3.0.0-nightly-7aa6265a2-241113", | ||
"version": "3.0.0-nightly-7eae25e12-241205", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,5 +25,5 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/ssr": "^3.0.0-nightly-7aa6265a2-241113", | ||
"@react-stately/utils": "^3.0.0-nightly-7aa6265a2-241113", | ||
"@react-types/shared": "^3.0.0-nightly-7aa6265a2-241113", | ||
"@react-aria/ssr": "^3.0.0-nightly-7eae25e12-241205", | ||
"@react-stately/utils": "^3.0.0-nightly-7eae25e12-241205", | ||
"@react-types/shared": "^3.0.0-nightly-7eae25e12-241205", | ||
"@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 || ^19.0.0" | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" | ||
}, | ||
@@ -39,3 +39,3 @@ "publishConfig": { | ||
}, | ||
"stableVersion": "3.25.3" | ||
"stableVersion": "3.26.0" | ||
} |
@@ -17,3 +17,3 @@ /* | ||
/** The optional containing element of the target to be centered in the viewport. */ | ||
containingElement?: Element | ||
containingElement?: Element | null | ||
} | ||
@@ -20,0 +20,0 @@ |
@@ -21,3 +21,2 @@ /* | ||
// @ts-ignore | ||
let visualViewport = typeof document !== 'undefined' && window.visualViewport; | ||
@@ -24,0 +23,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
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
559446
6593