Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-aria/link

Package Overview
Dependencies
Maintainers
2
Versions
836
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-aria/link - npm Package Compare versions

Comparing version 3.1.2 to 3.1.3

5

dist/main.js

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

let {
pressProps
pressProps,
isPressed
} = usePress({

@@ -58,2 +59,4 @@ onPress,

return {
isPressed,
// Used to indicate press state for visual
linkProps: mergeProps(domProps, _babelRuntimeHelpersExtends({}, pressProps, linkProps, {

@@ -60,0 +63,0 @@ 'aria-disabled': isDisabled || undefined,

@@ -33,3 +33,4 @@ import { usePress } from "@react-aria/interactions";

let {
pressProps
pressProps,
isPressed
} = usePress({

@@ -46,2 +47,4 @@ onPress,

return {
isPressed,
// Used to indicate press state for visual
linkProps: mergeProps(domProps, _babelRuntimeHelpersEsmExtends({}, pressProps, linkProps, {

@@ -48,0 +51,0 @@ 'aria-disabled': isDisabled || undefined,

2

dist/types.d.ts

@@ -15,2 +15,4 @@ import { AriaLinkProps } from "@react-types/link";

linkProps: HTMLAttributes<HTMLElement>;
/** Whether the link is currently pressed. */
isPressed: boolean;
}

@@ -17,0 +19,0 @@ /**

{
"name": "@react-aria/link",
"version": "3.1.2",
"version": "3.1.3",
"description": "Spectrum UI components in React",

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

"@babel/runtime": "^7.6.2",
"@react-aria/interactions": "^3.2.1",
"@react-aria/utils": "^3.3.0",
"@react-types/link": "^3.1.1",
"@react-types/shared": "^3.2.1"
"@react-aria/interactions": "^3.4.0",
"@react-aria/utils": "^3.8.0",
"@react-types/link": "^3.1.2",
"@react-types/shared": "^3.6.0"
},

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

},
"gitHead": "0778f71a3c13e1e24388a23b6d525e3b9f5b98f1"
"gitHead": "3aae08e7d8a75382bedcddac7c86107e40db9296"
}

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

/** Props for the link element. */
linkProps: HTMLAttributes<HTMLElement>
linkProps: HTMLAttributes<HTMLElement>,
/** Whether the link is currently pressed. */
isPressed: boolean
}

@@ -59,6 +61,7 @@

let {pressProps} = usePress({onPress, onPressStart, onPressEnd, isDisabled, ref});
let {pressProps, isPressed} = usePress({onPress, onPressStart, onPressEnd, isDisabled, ref});
let domProps = filterDOMProps(otherProps, {labelable: true});
return {
isPressed, // Used to indicate press state for visual
linkProps: mergeProps(domProps, {

@@ -65,0 +68,0 @@ ...pressProps,

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