@react-aria/utils
Advanced tools
Comparing version 3.0.0-nightly.981 to 3.0.0-nightly.985
@@ -412,2 +412,3 @@ var { | ||
function useDrag1D(props) { | ||
console.warn('useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html'); | ||
let { | ||
@@ -414,0 +415,0 @@ containerRef, |
@@ -365,2 +365,3 @@ import { clamp, snapValueToStep } from "@react-stately/utils"; | ||
export function useDrag1D(props) { | ||
console.warn('useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html'); | ||
let { | ||
@@ -367,0 +368,0 @@ containerRef, |
{ | ||
"name": "@react-aria/utils", | ||
"version": "3.0.0-nightly.981+e066b675", | ||
"version": "3.0.0-nightly.985+887fff79", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,5 +21,5 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-aria/ssr": "3.0.2-nightly.2661+e066b675", | ||
"@react-stately/utils": "3.0.0-nightly.981+e066b675", | ||
"@react-types/shared": "3.0.0-nightly.981+e066b675", | ||
"@react-aria/ssr": "3.0.2-nightly.2665+887fff79", | ||
"@react-stately/utils": "3.0.0-nightly.985+887fff79", | ||
"@react-types/shared": "3.0.0-nightly.985+887fff79", | ||
"clsx": "^1.1.1" | ||
@@ -33,3 +33,3 @@ }, | ||
}, | ||
"gitHead": "e066b675c123776d4cac96595143b6d3a96f8fc6" | ||
"gitHead": "887fff79e8f33c0f8953dc38955419feddd56b6a" | ||
} |
@@ -42,2 +42,3 @@ /* | ||
export function useDrag1D(props: UseDrag1DProps): HTMLAttributes<HTMLElement> { | ||
console.warn('useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html'); | ||
let {containerRef, reverse, orientation, onHover, onDrag, onPositionChange, onIncrement, onDecrement, onIncrementToMax, onDecrementToMin, onCollapseToggle} = props; | ||
@@ -44,0 +45,0 @@ let getPosition = (e) => orientation === 'horizontal' ? e.clientX : e.clientY; |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
230352
2445