@react-aria/dnd 3.0.0-nightly.3527 → 3.0.0-nightly.3530
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +3 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +3 -1
- package/dist/module.js.map +1 -1
- package/package.json +12 -12
- package/src/utils.ts +3 -1
package/dist/main.js
CHANGED
|
@@ -89,7 +89,7 @@ function $4620ae0dc40f0031$export$e1d41611756c6326(items) {
|
|
|
89
89
|
function $4620ae0dc40f0031$var$mapModality(modality) {
|
|
90
90
|
if (!modality) modality = 'virtual';
|
|
91
91
|
if (modality === 'pointer') modality = 'virtual';
|
|
92
|
-
if (modality === 'virtual' && 'ontouchstart' in window) modality = 'touch';
|
|
92
|
+
if (modality === 'virtual' && typeof window !== 'undefined' && 'ontouchstart' in window) modality = 'touch';
|
|
93
93
|
return modality;
|
|
94
94
|
}
|
|
95
95
|
function $4620ae0dc40f0031$export$49bac5d6d4b352ea() {
|
|
@@ -198,7 +198,9 @@ function $4620ae0dc40f0031$export$d9e760437831f8b3(dataTransfer) {
|
|
|
198
198
|
// only implemented in Chrome.
|
|
199
199
|
if (typeof item.webkitGetAsEntry === 'function') {
|
|
200
200
|
let entry = item.webkitGetAsEntry();
|
|
201
|
+
// eslint-disable-next-line max-depth
|
|
201
202
|
if (!entry) continue;
|
|
203
|
+
// eslint-disable-next-line max-depth
|
|
202
204
|
if (entry.isFile) items.push($4620ae0dc40f0031$var$createFileItem(item.getAsFile()));
|
|
203
205
|
else if (entry.isDirectory) items.push($4620ae0dc40f0031$var$createDirectoryItem(entry));
|
|
204
206
|
} else // Assume it's a file.
|