@react-aria/utils
Advanced tools
Comparing version 3.0.0-nightly-a98da553e-241116 to 3.0.0-nightly-b3a4d6c11-241119
@@ -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-a98da553e-241116", | ||
"version": "3.0.0-nightly-b3a4d6c11-241119", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,5 +25,5 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/ssr": "^3.0.0-nightly-a98da553e-241116", | ||
"@react-stately/utils": "^3.0.0-nightly-a98da553e-241116", | ||
"@react-types/shared": "^3.0.0-nightly-a98da553e-241116", | ||
"@react-aria/ssr": "^3.0.0-nightly-b3a4d6c11-241119", | ||
"@react-stately/utils": "^3.0.0-nightly-b3a4d6c11-241119", | ||
"@react-types/shared": "^3.0.0-nightly-b3a4d6c11-241119", | ||
"@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" | ||
}, | ||
@@ -36,0 +36,0 @@ "publishConfig": { |
@@ -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
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
559446
6593
+ Addedreact@19.0.0-rc-fb9a90fa48-20240614(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedreact@18.3.1(transitive)