@react-aria/selection
Advanced tools
Comparing version 3.0.0-nightly.869 to 3.0.0-nightly.870
@@ -6,2 +6,3 @@ var { | ||
var { | ||
isMac, | ||
mergeProps | ||
@@ -103,6 +104,4 @@ } = require("@react-aria/utils"); | ||
const $f791fefd7189e0e4d903034fb2925$var$isMac = typeof window !== 'undefined' && window.navigator != null ? /^Mac/.test(window.navigator.platform) : false; | ||
function $f791fefd7189e0e4d903034fb2925$var$isCtrlKeyPressed(e) { | ||
if ($f791fefd7189e0e4d903034fb2925$var$isMac) { | ||
if (isMac()) { | ||
return e.metaKey; | ||
@@ -109,0 +108,0 @@ } |
import { useCollator } from "@react-aria/i18n"; | ||
import { mergeProps } from "@react-aria/utils"; | ||
import { isMac, mergeProps } from "@react-aria/utils"; | ||
import { focusSafely, getFocusableTreeWalker } from "@react-aria/focus"; | ||
@@ -81,6 +81,4 @@ import { useEffect, useRef, useMemo } from "react"; | ||
const $a9b9aa71af07c56ab1d89ca45381f4b$var$isMac = typeof window !== 'undefined' && window.navigator != null ? /^Mac/.test(window.navigator.platform) : false; | ||
function $a9b9aa71af07c56ab1d89ca45381f4b$var$isCtrlKeyPressed(e) { | ||
if ($a9b9aa71af07c56ab1d89ca45381f4b$var$isMac) { | ||
if (isMac()) { | ||
return e.metaKey; | ||
@@ -87,0 +85,0 @@ } |
{ | ||
"name": "@react-aria/selection", | ||
"version": "3.0.0-nightly.869+309a8a23", | ||
"version": "3.0.0-nightly.870+3706c6a5", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,9 +21,9 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-aria/focus": "3.0.0-nightly.869+309a8a23", | ||
"@react-aria/i18n": "3.0.0-nightly.869+309a8a23", | ||
"@react-aria/interactions": "3.0.0-nightly.869+309a8a23", | ||
"@react-aria/utils": "3.0.0-nightly.869+309a8a23", | ||
"@react-stately/collections": "3.0.0-nightly.869+309a8a23", | ||
"@react-stately/selection": "3.0.0-nightly.869+309a8a23", | ||
"@react-types/shared": "3.0.0-nightly.869+309a8a23" | ||
"@react-aria/focus": "3.0.0-nightly.870+3706c6a5", | ||
"@react-aria/i18n": "3.0.0-nightly.870+3706c6a5", | ||
"@react-aria/interactions": "3.0.0-nightly.870+3706c6a5", | ||
"@react-aria/utils": "3.0.0-nightly.870+3706c6a5", | ||
"@react-stately/collections": "3.0.0-nightly.870+3706c6a5", | ||
"@react-stately/selection": "3.0.0-nightly.870+3706c6a5", | ||
"@react-types/shared": "3.0.0-nightly.870+3706c6a5" | ||
}, | ||
@@ -36,3 +36,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "309a8a236d27c8766da70c1b416d63172c145c0f" | ||
"gitHead": "3706c6a504192bf7cb547467671e3c760b0dd14e" | ||
} |
@@ -16,13 +16,8 @@ /* | ||
import {FocusStrategy, KeyboardDelegate} from '@react-types/shared'; | ||
import {mergeProps} from '@react-aria/utils'; | ||
import {isMac, mergeProps} from '@react-aria/utils'; | ||
import {MultipleSelectionManager} from '@react-stately/selection'; | ||
import {useTypeSelect} from './useTypeSelect'; | ||
const isMac = | ||
typeof window !== 'undefined' && window.navigator != null | ||
? /^Mac/.test(window.navigator.platform) | ||
: false; | ||
function isCtrlKeyPressed(e: KeyboardEvent) { | ||
if (isMac) { | ||
if (isMac()) { | ||
return e.metaKey; | ||
@@ -29,0 +24,0 @@ } |
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
198374
2304