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

@react-aria/interactions

Package Overview
Dependencies
Maintainers
2
Versions
829
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-aria/interactions - npm Package Compare versions

Comparing version 3.0.0-nightly-25f304dea-241008 to 3.0.0-nightly-3f67667d5-241110

2

dist/textSelection.main.js

@@ -29,3 +29,2 @@ var $20aJV$reactariautils = require("@react-aria/utils");

if ($f7e14e656343df57$var$state === 'default') {
// eslint-disable-next-line no-restricted-globals
const documentObject = (0, $20aJV$reactariautils.getOwnerDocument)(target);

@@ -57,3 +56,2 @@ $f7e14e656343df57$var$savedUserSelect = documentObject.documentElement.style.webkitUserSelect;

if ($f7e14e656343df57$var$state === 'restoring') {
// eslint-disable-next-line no-restricted-globals
const documentObject = (0, $20aJV$reactariautils.getOwnerDocument)(target);

@@ -60,0 +58,0 @@ if (documentObject.documentElement.style.webkitUserSelect === 'none') documentObject.documentElement.style.webkitUserSelect = $f7e14e656343df57$var$savedUserSelect || '';

@@ -22,3 +22,2 @@ import {isIOS as $7R18e$isIOS, getOwnerDocument as $7R18e$getOwnerDocument, runAfterTransition as $7R18e$runAfterTransition} from "@react-aria/utils";

if ($14c0b72509d70225$var$state === 'default') {
// eslint-disable-next-line no-restricted-globals
const documentObject = (0, $7R18e$getOwnerDocument)(target);

@@ -50,3 +49,2 @@ $14c0b72509d70225$var$savedUserSelect = documentObject.documentElement.style.webkitUserSelect;

if ($14c0b72509d70225$var$state === 'restoring') {
// eslint-disable-next-line no-restricted-globals
const documentObject = (0, $7R18e$getOwnerDocument)(target);

@@ -53,0 +51,0 @@ if (documentObject.documentElement.style.webkitUserSelect === 'none') documentObject.documentElement.style.webkitUserSelect = $14c0b72509d70225$var$savedUserSelect || '';

3

dist/usePress.main.js

@@ -347,3 +347,3 @@ var $f7e14e656343df57$exports = require("./textSelection.main.js");

// Don't preventDefault if we actually want the default (e.g. submit/link click).
if ($0294ea432cd92340$var$shouldPreventDefaultUp(e.target)) e.preventDefault();
if ($0294ea432cd92340$var$shouldPreventDefaultUp(e.currentTarget)) e.preventDefault();
};

@@ -505,3 +505,2 @@ let onPointerCancel = (e)=>{

// Remove user-select: none in case component unmounts immediately after pressStart
// eslint-disable-next-line arrow-body-style
(0, $bBqCQ$react.useEffect)(()=>{

@@ -508,0 +507,0 @@ return ()=>{

@@ -341,3 +341,3 @@ import {disableTextSelection as $14c0b72509d70225$export$16a4697467175487, restoreTextSelection as $14c0b72509d70225$export$b0d6fa1ab32e3295} from "./textSelection.module.js";

// Don't preventDefault if we actually want the default (e.g. submit/link click).
if ($f6c31cce2adf654f$var$shouldPreventDefaultUp(e.target)) e.preventDefault();
if ($f6c31cce2adf654f$var$shouldPreventDefaultUp(e.currentTarget)) e.preventDefault();
};

@@ -499,3 +499,2 @@ let onPointerCancel = (e)=>{

// Remove user-select: none in case component unmounts immediately after pressStart
// eslint-disable-next-line arrow-body-style
(0, $7mdmh$useEffect)(()=>{

@@ -502,0 +501,0 @@ return ()=>{

@@ -58,3 +58,2 @@ var $iJhOP$react = require("react");

// Clean up MutationObserver on unmount. See below.
// eslint-disable-next-line arrow-body-style
(0, $iJhOP$reactariautils.useLayoutEffect)(()=>{

@@ -61,0 +60,0 @@ const state = stateRef.current;

@@ -52,3 +52,2 @@ import {useRef as $6dfIe$useRef, useCallback as $6dfIe$useCallback} from "react";

// Clean up MutationObserver on unmount. See below.
// eslint-disable-next-line arrow-body-style
(0, $6dfIe$useLayoutEffect)(()=>{

@@ -55,0 +54,0 @@ const state = stateRef.current;

{
"name": "@react-aria/interactions",
"version": "3.0.0-nightly-25f304dea-241008",
"version": "3.0.0-nightly-3f67667d5-241110",
"description": "Spectrum UI components in React",

@@ -25,5 +25,5 @@ "license": "Apache-2.0",

"dependencies": {
"@react-aria/ssr": "^3.0.0-nightly-25f304dea-241008",
"@react-aria/utils": "^3.0.0-nightly-25f304dea-241008",
"@react-types/shared": "^3.0.0-nightly-25f304dea-241008",
"@react-aria/ssr": "^3.0.0-nightly-3f67667d5-241110",
"@react-aria/utils": "^3.0.0-nightly-3f67667d5-241110",
"@react-types/shared": "^3.0.0-nightly-3f67667d5-241110",
"@swc/helpers": "^0.5.0"

@@ -37,3 +37,3 @@ },

},
"stableVersion": "3.22.3"
"stableVersion": "3.22.4"
}

@@ -39,3 +39,3 @@ /*

if (state === 'default') {
// eslint-disable-next-line no-restricted-globals
const documentObject = getOwnerDocument(target);

@@ -73,3 +73,3 @@ savedUserSelect = documentObject.documentElement.style.webkitUserSelect;

if (state === 'restoring') {
// eslint-disable-next-line no-restricted-globals
const documentObject = getOwnerDocument(target);

@@ -76,0 +76,0 @@ if (documentObject.documentElement.style.webkitUserSelect === 'none') {

@@ -530,3 +530,3 @@ /*

// Don't preventDefault if we actually want the default (e.g. submit/link click).
if (shouldPreventDefaultUp(e.target as Element)) {
if (shouldPreventDefaultUp(e.currentTarget as Element)) {
e.preventDefault();

@@ -791,3 +791,3 @@ }

// Remove user-select: none in case component unmounts immediately after pressStart
// eslint-disable-next-line arrow-body-style
useEffect(() => {

@@ -947,3 +947,3 @@ return () => {

}
if (target instanceof HTMLButtonElement) {

@@ -950,0 +950,0 @@ return target.type !== 'submit' && target.type !== 'reset';

@@ -71,3 +71,3 @@ /*

// Clean up MutationObserver on unmount. See below.
// eslint-disable-next-line arrow-body-style
useLayoutEffect(() => {

@@ -74,0 +74,0 @@ const state = stateRef.current;

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

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