Socket
Socket
Sign inDemoInstall

@react-aria/utils

Package Overview
Dependencies
Maintainers
2
Versions
793
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-aria/utils - npm Package Compare versions

Comparing version 3.0.0-nightly.869 to 3.0.0-nightly.870

src/platform.ts

39

dist/main.js

@@ -784,2 +784,41 @@ var {

}
function $ffc9ede5fda79bf280c1bec834e32f$var$testUserAgent(re) {
return typeof window !== 'undefined' && window.navigator != null ? re.test(window.navigator.userAgent) : false;
}
function $ffc9ede5fda79bf280c1bec834e32f$var$testPlatform(re) {
return typeof window !== 'undefined' && window.navigator != null ? re.test(window.navigator.platform) : false;
}
function isMac() {
return $ffc9ede5fda79bf280c1bec834e32f$var$testPlatform(/^Mac/);
}
exports.isMac = isMac;
function isIOS() {
return $ffc9ede5fda79bf280c1bec834e32f$var$testPlatform(/^(iPhone|iPad)/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
isMac() && navigator.maxTouchPoints > 1;
}
exports.isIOS = isIOS;
function isAppleDevice() {
return isMac() || isIOS();
}
exports.isAppleDevice = isAppleDevice;
function isWebKit() {
return $ffc9ede5fda79bf280c1bec834e32f$var$testUserAgent(/AppleWebKit/) && !isChrome();
}
exports.isWebKit = isWebKit;
function isChrome() {
return $ffc9ede5fda79bf280c1bec834e32f$var$testUserAgent(/Chrome/);
}
exports.isChrome = isChrome;
//# sourceMappingURL=main.js.map

@@ -718,2 +718,27 @@ import { clamp, roundToStep, snapValueToStep } from "@react-stately/utils";

}
function $b0986c1243f71db8e992f67117a1ed9$var$testUserAgent(re) {
return typeof window !== 'undefined' && window.navigator != null ? re.test(window.navigator.userAgent) : false;
}
function $b0986c1243f71db8e992f67117a1ed9$var$testPlatform(re) {
return typeof window !== 'undefined' && window.navigator != null ? re.test(window.navigator.platform) : false;
}
export function isMac() {
return $b0986c1243f71db8e992f67117a1ed9$var$testPlatform(/^Mac/);
}
export function isIOS() {
return $b0986c1243f71db8e992f67117a1ed9$var$testPlatform(/^(iPhone|iPad)/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
isMac() && navigator.maxTouchPoints > 1;
}
export function isAppleDevice() {
return isMac() || isIOS();
}
export function isWebKit() {
return $b0986c1243f71db8e992f67117a1ed9$var$testUserAgent(/AppleWebKit/) && !isChrome();
}
export function isChrome() {
return $b0986c1243f71db8e992f67117a1ed9$var$testUserAgent(/Chrome/);
}
//# sourceMappingURL=module.js.map

@@ -97,3 +97,8 @@ import React, { HTMLAttributes, MutableRefObject, EffectCallback, RefObject } from "react";

export function useViewportSize(): ViewportSize;
export function isMac(): boolean;
export function isIOS(): boolean;
export function isAppleDevice(): boolean;
export function isWebKit(): boolean;
export function isChrome(): boolean;
//# sourceMappingURL=types.d.ts.map

10

package.json
{
"name": "@react-aria/utils",
"version": "3.0.0-nightly.869+309a8a23",
"version": "3.0.0-nightly.870+3706c6a5",
"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.2547+309a8a23",
"@react-stately/utils": "3.0.0-nightly.869+309a8a23",
"@react-types/shared": "3.0.0-nightly.869+309a8a23",
"@react-aria/ssr": "3.0.2-nightly.2548+3706c6a5",
"@react-stately/utils": "3.0.0-nightly.870+3706c6a5",
"@react-types/shared": "3.0.0-nightly.870+3706c6a5",
"clsx": "^1.1.1"

@@ -33,3 +33,3 @@ },

},
"gitHead": "309a8a236d27c8766da70c1b416d63172c145c0f"
"gitHead": "3706c6a504192bf7cb547467671e3c760b0dd14e"
}

@@ -29,1 +29,2 @@ /*

export * from './useViewportSize';
export * from './platform';

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