@react-aria/dnd 3.1.1-nightly.3760 → 3.1.1-nightly.3764
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/import.mjs +11 -1
- package/dist/main.js +13 -0
- package/dist/main.js.map +1 -1
- package/dist/module.js +11 -1
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +7 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/index.ts +1 -0
- package/src/utils.ts +16 -1
package/dist/import.mjs
CHANGED
|
@@ -276,6 +276,15 @@ async function* $7252cd45fc48c07c$var$getEntries(item) {
|
|
|
276
276
|
function $7252cd45fc48c07c$var$getEntryFile(entry) {
|
|
277
277
|
return new Promise((resolve, reject)=>entry.file(resolve, reject));
|
|
278
278
|
}
|
|
279
|
+
function $7252cd45fc48c07c$export$97fd558bdc44bea1(dropItem) {
|
|
280
|
+
return dropItem.kind === "text";
|
|
281
|
+
}
|
|
282
|
+
function $7252cd45fc48c07c$export$a144e1752ebe0aa(dropItem) {
|
|
283
|
+
return dropItem.kind === "file";
|
|
284
|
+
}
|
|
285
|
+
function $7252cd45fc48c07c$export$2b40a62bdbe6b2b0(dropItem) {
|
|
286
|
+
return dropItem.kind === "directory";
|
|
287
|
+
}
|
|
279
288
|
let $7252cd45fc48c07c$export$6ca6700462636d0b = {
|
|
280
289
|
draggingKeys: new Set()
|
|
281
290
|
};
|
|
@@ -3878,5 +3887,6 @@ class $3ca85212bf8898e4$export$fbd65d14c79e28cc {
|
|
|
3878
3887
|
|
|
3879
3888
|
|
|
3880
3889
|
|
|
3881
|
-
|
|
3890
|
+
|
|
3891
|
+
export {$7252cd45fc48c07c$export$990fced5dfac2637 as DIRECTORY_DRAG_TYPE, $8253ed7ece74b463$export$7941f8aafa4b6021 as useDrag, $5c06e4929e123553$export$ccdee5eaf73cf661 as useDrop, $4b52e4eff84e5217$export$f4e2f423c21f7b04 as useDroppableCollection, $bfaab576ce1c580e$export$f7b0c5d28b66b6a5 as useDroppableItem, $ddf25448c71fc93a$export$8d0e41d2815afac5 as useDropIndicator, $fd98cf7cbf233429$export$b35afafff42da2d9 as useDraggableItem, $4ac1fdc3a0fcd564$export$2962a7984b2f0a80 as useDraggableCollection, $9fcc7f0d70d084ee$export$2314ca2a3e892862 as useClipboard, $ad0e3f3d9c50e4ba$export$905ab40ac2179daa as DragPreview, $3ca85212bf8898e4$export$fbd65d14c79e28cc as ListDropTargetDelegate, $67560de7c78cb232$export$403bc76cbf68cf60 as isVirtualDragging, $7252cd45fc48c07c$export$2b40a62bdbe6b2b0 as isDirectoryDropItem, $7252cd45fc48c07c$export$a144e1752ebe0aa as isFileDropItem, $7252cd45fc48c07c$export$97fd558bdc44bea1 as isTextDropItem};
|
|
3882
3892
|
//# sourceMappingURL=module.js.map
|
package/dist/main.js
CHANGED
|
@@ -25,6 +25,9 @@ $parcel$export(module.exports, "useClipboard", () => $74f3dedaa4d234b4$export$23
|
|
|
25
25
|
$parcel$export(module.exports, "DragPreview", () => $2dccaca1f4baa446$export$905ab40ac2179daa);
|
|
26
26
|
$parcel$export(module.exports, "ListDropTargetDelegate", () => $2268795bbb597ecb$export$fbd65d14c79e28cc);
|
|
27
27
|
$parcel$export(module.exports, "isVirtualDragging", () => $28e10663603f5ea1$export$403bc76cbf68cf60);
|
|
28
|
+
$parcel$export(module.exports, "isDirectoryDropItem", () => $4620ae0dc40f0031$export$2b40a62bdbe6b2b0);
|
|
29
|
+
$parcel$export(module.exports, "isFileDropItem", () => $4620ae0dc40f0031$export$a144e1752ebe0aa);
|
|
30
|
+
$parcel$export(module.exports, "isTextDropItem", () => $4620ae0dc40f0031$export$97fd558bdc44bea1);
|
|
28
31
|
/*
|
|
29
32
|
* Copyright 2020 Adobe. All rights reserved.
|
|
30
33
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -292,6 +295,15 @@ async function* $4620ae0dc40f0031$var$getEntries(item) {
|
|
|
292
295
|
function $4620ae0dc40f0031$var$getEntryFile(entry) {
|
|
293
296
|
return new Promise((resolve, reject)=>entry.file(resolve, reject));
|
|
294
297
|
}
|
|
298
|
+
function $4620ae0dc40f0031$export$97fd558bdc44bea1(dropItem) {
|
|
299
|
+
return dropItem.kind === "text";
|
|
300
|
+
}
|
|
301
|
+
function $4620ae0dc40f0031$export$a144e1752ebe0aa(dropItem) {
|
|
302
|
+
return dropItem.kind === "file";
|
|
303
|
+
}
|
|
304
|
+
function $4620ae0dc40f0031$export$2b40a62bdbe6b2b0(dropItem) {
|
|
305
|
+
return dropItem.kind === "directory";
|
|
306
|
+
}
|
|
295
307
|
let $4620ae0dc40f0031$export$6ca6700462636d0b = {
|
|
296
308
|
draggingKeys: new Set()
|
|
297
309
|
};
|
|
@@ -3894,4 +3906,5 @@ class $2268795bbb597ecb$export$fbd65d14c79e28cc {
|
|
|
3894
3906
|
|
|
3895
3907
|
|
|
3896
3908
|
|
|
3909
|
+
|
|
3897
3910
|
//# sourceMappingURL=main.js.map
|