Socket
Socket
Sign inDemoInstall

@react-aria/interactions

Package Overview
Dependencies
4
Maintainers
1
Versions
712
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0-nightly.738 to 3.0.0-nightly.741

5

dist/main.js

@@ -663,2 +663,4 @@ var _react2 = require("react");

const Pressable = _react.forwardRef((_ref, ref) => {
var _ref2;
let {

@@ -669,3 +671,4 @@ children

ref = ref || useRef();
let newRef = useRef();
ref = (_ref2 = ref) != null ? _ref2 : newRef;
let {

@@ -672,0 +675,0 @@ pressProps

@@ -638,2 +638,4 @@ import _react, { useContext, useEffect, useMemo, useRef, useState } from "react";

export const Pressable = _react.forwardRef((_ref, ref) => {
var _ref2;
let {

@@ -644,3 +646,4 @@ children

ref = ref || useRef();
let newRef = useRef();
ref = (_ref2 = ref) != null ? _ref2 : newRef;
let {

@@ -647,0 +650,0 @@ pressProps

8

package.json
{
"name": "@react-aria/interactions",
"version": "3.0.0-nightly.738+dc6d7873",
"version": "3.0.0-nightly.741+975957a3",
"description": "Spectrum UI components in React",

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

"@babel/runtime": "^7.6.2",
"@react-aria/utils": "3.0.0-nightly.738+dc6d7873",
"@react-types/shared": "3.0.0-nightly.738+dc6d7873"
"@react-aria/utils": "3.0.0-nightly.741+975957a3",
"@react-types/shared": "3.0.0-nightly.741+975957a3"
},

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

},
"gitHead": "dc6d78733fb26fa02afeb1a36e11de7d71c84467"
"gitHead": "975957a3c3fb4a9f3be358428e0980a4d4e51c1a"
}

@@ -16,3 +16,3 @@ /*

interface PressResponderContext extends PressProps {
interface IPressResponderContext extends PressProps {
register(): void,

@@ -22,3 +22,3 @@ ref?: MutableRefObject<HTMLElement>

export const PressResponderContext = React.createContext<PressResponderContext>(null);
export const PressResponderContext = React.createContext<IPressResponderContext>(null);
PressResponderContext.displayName = 'PressResponderContext';

@@ -20,3 +20,3 @@ /*

interface DOMPropsResponderContext extends HTMLAttributes<HTMLElement> {
interface IDOMPropsResponderContext extends HTMLAttributes<HTMLElement> {
register(): void,

@@ -26,3 +26,3 @@ ref?: MutableRefObject<HTMLElement>

export const DOMPropsResponderContext = React.createContext<DOMPropsResponderContext>(null);
export const DOMPropsResponderContext = React.createContext<IDOMPropsResponderContext>(null);

@@ -29,0 +29,0 @@ export function useDOMPropsResponderContext(props: DOMPropsResponderProps): DOMPropsResponderProps {

@@ -14,3 +14,3 @@ /*

import {disableTextSelection, restoreTextSelection} from './textSelection';
import {HTMLAttributes, useMemo, useRef} from 'react';
import React, {HTMLAttributes, useMemo, useRef} from 'react';
import {useGlobalListeners} from '@react-aria/utils';

@@ -17,0 +17,0 @@

@@ -102,3 +102,3 @@ /*

// eslint-disable-next-line @typescript-eslint/no-unused-vars
ref: _, // Removing `ref` from `domProps` because TypeScript is dumb
ref: _, // Removing `ref` from `domProps` because TypeScript is dumb,
...domProps

@@ -105,0 +105,0 @@ } = usePressResponderContext(props);

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc