@react-aria/dnd 3.11.6 → 3.12.0
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 +8 -18
- package/dist/main.js +22 -32
- package/dist/main.js.map +1 -1
- package/dist/module.js +8 -18
- package/dist/module.js.map +1 -1
- package/dist/types/src/index.d.ts +13 -0
- package/package.json +16 -21
- package/src/index.ts +13 -56
- package/dist/DragManager.main.js +0 -522
- package/dist/DragManager.main.js.map +0 -1
- package/dist/DragManager.mjs +0 -513
- package/dist/DragManager.module.js +0 -513
- package/dist/DragManager.module.js.map +0 -1
- package/dist/DragPreview.main.js +0 -73
- package/dist/DragPreview.main.js.map +0 -1
- package/dist/DragPreview.mjs +0 -64
- package/dist/DragPreview.module.js +0 -64
- package/dist/DragPreview.module.js.map +0 -1
- package/dist/DropTargetKeyboardNavigation.main.js +0 -215
- package/dist/DropTargetKeyboardNavigation.main.js.map +0 -1
- package/dist/DropTargetKeyboardNavigation.mjs +0 -210
- package/dist/DropTargetKeyboardNavigation.module.js +0 -210
- package/dist/DropTargetKeyboardNavigation.module.js.map +0 -1
- package/dist/ListDropTargetDelegate.main.js +0 -129
- package/dist/ListDropTargetDelegate.main.js.map +0 -1
- package/dist/ListDropTargetDelegate.mjs +0 -124
- package/dist/ListDropTargetDelegate.module.js +0 -124
- package/dist/ListDropTargetDelegate.module.js.map +0 -1
- package/dist/ar-AE.main.js +0 -44
- package/dist/ar-AE.main.js.map +0 -1
- package/dist/ar-AE.mjs +0 -46
- package/dist/ar-AE.module.js +0 -46
- package/dist/ar-AE.module.js.map +0 -1
- package/dist/bg-BG.main.js +0 -44
- package/dist/bg-BG.main.js.map +0 -1
- package/dist/bg-BG.mjs +0 -46
- package/dist/bg-BG.module.js +0 -46
- package/dist/bg-BG.module.js.map +0 -1
- package/dist/constants.main.js +0 -64
- package/dist/constants.main.js.map +0 -1
- package/dist/constants.mjs +0 -52
- package/dist/constants.module.js +0 -52
- package/dist/constants.module.js.map +0 -1
- package/dist/cs-CZ.main.js +0 -45
- package/dist/cs-CZ.main.js.map +0 -1
- package/dist/cs-CZ.mjs +0 -47
- package/dist/cs-CZ.module.js +0 -47
- package/dist/cs-CZ.module.js.map +0 -1
- package/dist/da-DK.main.js +0 -44
- package/dist/da-DK.main.js.map +0 -1
- package/dist/da-DK.mjs +0 -46
- package/dist/da-DK.module.js +0 -46
- package/dist/da-DK.module.js.map +0 -1
- package/dist/de-DE.main.js +0 -44
- package/dist/de-DE.main.js.map +0 -1
- package/dist/de-DE.mjs +0 -46
- package/dist/de-DE.module.js +0 -46
- package/dist/de-DE.module.js.map +0 -1
- package/dist/el-GR.main.js +0 -44
- package/dist/el-GR.main.js.map +0 -1
- package/dist/el-GR.mjs +0 -46
- package/dist/el-GR.module.js +0 -46
- package/dist/el-GR.module.js.map +0 -1
- package/dist/en-US.main.js +0 -44
- package/dist/en-US.main.js.map +0 -1
- package/dist/en-US.mjs +0 -46
- package/dist/en-US.module.js +0 -46
- package/dist/en-US.module.js.map +0 -1
- package/dist/es-ES.main.js +0 -44
- package/dist/es-ES.main.js.map +0 -1
- package/dist/es-ES.mjs +0 -46
- package/dist/es-ES.module.js +0 -46
- package/dist/es-ES.module.js.map +0 -1
- package/dist/et-EE.main.js +0 -44
- package/dist/et-EE.main.js.map +0 -1
- package/dist/et-EE.mjs +0 -46
- package/dist/et-EE.module.js +0 -46
- package/dist/et-EE.module.js.map +0 -1
- package/dist/fi-FI.main.js +0 -44
- package/dist/fi-FI.main.js.map +0 -1
- package/dist/fi-FI.mjs +0 -46
- package/dist/fi-FI.module.js +0 -46
- package/dist/fi-FI.module.js.map +0 -1
- package/dist/fr-FR.main.js +0 -44
- package/dist/fr-FR.main.js.map +0 -1
- package/dist/fr-FR.mjs +0 -46
- package/dist/fr-FR.module.js +0 -46
- package/dist/fr-FR.module.js.map +0 -1
- package/dist/he-IL.main.js +0 -44
- package/dist/he-IL.main.js.map +0 -1
- package/dist/he-IL.mjs +0 -46
- package/dist/he-IL.module.js +0 -46
- package/dist/he-IL.module.js.map +0 -1
- package/dist/hr-HR.main.js +0 -44
- package/dist/hr-HR.main.js.map +0 -1
- package/dist/hr-HR.mjs +0 -46
- package/dist/hr-HR.module.js +0 -46
- package/dist/hr-HR.module.js.map +0 -1
- package/dist/hu-HU.main.js +0 -44
- package/dist/hu-HU.main.js.map +0 -1
- package/dist/hu-HU.mjs +0 -46
- package/dist/hu-HU.module.js +0 -46
- package/dist/hu-HU.module.js.map +0 -1
- package/dist/intlStrings.main.js +0 -108
- package/dist/intlStrings.main.js.map +0 -1
- package/dist/intlStrings.mjs +0 -110
- package/dist/intlStrings.module.js +0 -110
- package/dist/intlStrings.module.js.map +0 -1
- package/dist/it-IT.main.js +0 -44
- package/dist/it-IT.main.js.map +0 -1
- package/dist/it-IT.mjs +0 -46
- package/dist/it-IT.module.js +0 -46
- package/dist/it-IT.module.js.map +0 -1
- package/dist/ja-JP.main.js +0 -44
- package/dist/ja-JP.main.js.map +0 -1
- package/dist/ja-JP.mjs +0 -46
- package/dist/ja-JP.module.js +0 -46
- package/dist/ja-JP.module.js.map +0 -1
- package/dist/ko-KR.main.js +0 -44
- package/dist/ko-KR.main.js.map +0 -1
- package/dist/ko-KR.mjs +0 -46
- package/dist/ko-KR.module.js +0 -46
- package/dist/ko-KR.module.js.map +0 -1
- package/dist/lt-LT.main.js +0 -44
- package/dist/lt-LT.main.js.map +0 -1
- package/dist/lt-LT.mjs +0 -46
- package/dist/lt-LT.module.js +0 -46
- package/dist/lt-LT.module.js.map +0 -1
- package/dist/lv-LV.main.js +0 -44
- package/dist/lv-LV.main.js.map +0 -1
- package/dist/lv-LV.mjs +0 -46
- package/dist/lv-LV.module.js +0 -46
- package/dist/lv-LV.module.js.map +0 -1
- package/dist/nb-NO.main.js +0 -44
- package/dist/nb-NO.main.js.map +0 -1
- package/dist/nb-NO.mjs +0 -46
- package/dist/nb-NO.module.js +0 -46
- package/dist/nb-NO.module.js.map +0 -1
- package/dist/nl-NL.main.js +0 -44
- package/dist/nl-NL.main.js.map +0 -1
- package/dist/nl-NL.mjs +0 -46
- package/dist/nl-NL.module.js +0 -46
- package/dist/nl-NL.module.js.map +0 -1
- package/dist/pl-PL.main.js +0 -44
- package/dist/pl-PL.main.js.map +0 -1
- package/dist/pl-PL.mjs +0 -46
- package/dist/pl-PL.module.js +0 -46
- package/dist/pl-PL.module.js.map +0 -1
- package/dist/pt-BR.main.js +0 -44
- package/dist/pt-BR.main.js.map +0 -1
- package/dist/pt-BR.mjs +0 -46
- package/dist/pt-BR.module.js +0 -46
- package/dist/pt-BR.module.js.map +0 -1
- package/dist/pt-PT.main.js +0 -44
- package/dist/pt-PT.main.js.map +0 -1
- package/dist/pt-PT.mjs +0 -46
- package/dist/pt-PT.module.js +0 -46
- package/dist/pt-PT.module.js.map +0 -1
- package/dist/ro-RO.main.js +0 -44
- package/dist/ro-RO.main.js.map +0 -1
- package/dist/ro-RO.mjs +0 -46
- package/dist/ro-RO.module.js +0 -46
- package/dist/ro-RO.module.js.map +0 -1
- package/dist/ru-RU.main.js +0 -44
- package/dist/ru-RU.main.js.map +0 -1
- package/dist/ru-RU.mjs +0 -46
- package/dist/ru-RU.module.js +0 -46
- package/dist/ru-RU.module.js.map +0 -1
- package/dist/sk-SK.main.js +0 -44
- package/dist/sk-SK.main.js.map +0 -1
- package/dist/sk-SK.mjs +0 -46
- package/dist/sk-SK.module.js +0 -46
- package/dist/sk-SK.module.js.map +0 -1
- package/dist/sl-SI.main.js +0 -44
- package/dist/sl-SI.main.js.map +0 -1
- package/dist/sl-SI.mjs +0 -46
- package/dist/sl-SI.module.js +0 -46
- package/dist/sl-SI.module.js.map +0 -1
- package/dist/sr-SP.main.js +0 -44
- package/dist/sr-SP.main.js.map +0 -1
- package/dist/sr-SP.mjs +0 -46
- package/dist/sr-SP.module.js +0 -46
- package/dist/sr-SP.module.js.map +0 -1
- package/dist/sv-SE.main.js +0 -44
- package/dist/sv-SE.main.js.map +0 -1
- package/dist/sv-SE.mjs +0 -46
- package/dist/sv-SE.module.js +0 -46
- package/dist/sv-SE.module.js.map +0 -1
- package/dist/tr-TR.main.js +0 -44
- package/dist/tr-TR.main.js.map +0 -1
- package/dist/tr-TR.mjs +0 -46
- package/dist/tr-TR.module.js +0 -46
- package/dist/tr-TR.module.js.map +0 -1
- package/dist/types.d.ts +0 -244
- package/dist/types.d.ts.map +0 -1
- package/dist/uk-UA.main.js +0 -44
- package/dist/uk-UA.main.js.map +0 -1
- package/dist/uk-UA.mjs +0 -46
- package/dist/uk-UA.module.js +0 -46
- package/dist/uk-UA.module.js.map +0 -1
- package/dist/useAutoScroll.main.js +0 -89
- package/dist/useAutoScroll.main.js.map +0 -1
- package/dist/useAutoScroll.mjs +0 -84
- package/dist/useAutoScroll.module.js +0 -84
- package/dist/useAutoScroll.module.js.map +0 -1
- package/dist/useClipboard.main.js +0 -111
- package/dist/useClipboard.main.js.map +0 -1
- package/dist/useClipboard.mjs +0 -106
- package/dist/useClipboard.module.js +0 -106
- package/dist/useClipboard.module.js.map +0 -1
- package/dist/useDrag.main.js +0 -307
- package/dist/useDrag.main.js.map +0 -1
- package/dist/useDrag.mjs +0 -302
- package/dist/useDrag.module.js +0 -302
- package/dist/useDrag.module.js.map +0 -1
- package/dist/useDraggableCollection.main.js +0 -27
- package/dist/useDraggableCollection.main.js.map +0 -1
- package/dist/useDraggableCollection.mjs +0 -22
- package/dist/useDraggableCollection.module.js +0 -22
- package/dist/useDraggableCollection.module.js.map +0 -1
- package/dist/useDraggableItem.main.js +0 -128
- package/dist/useDraggableItem.main.js.map +0 -1
- package/dist/useDraggableItem.mjs +0 -123
- package/dist/useDraggableItem.module.js +0 -123
- package/dist/useDraggableItem.module.js.map +0 -1
- package/dist/useDrop.main.js +0 -295
- package/dist/useDrop.main.js.map +0 -1
- package/dist/useDrop.mjs +0 -290
- package/dist/useDrop.module.js +0 -290
- package/dist/useDrop.module.js.map +0 -1
- package/dist/useDropIndicator.main.js +0 -102
- package/dist/useDropIndicator.main.js.map +0 -1
- package/dist/useDropIndicator.mjs +0 -97
- package/dist/useDropIndicator.module.js +0 -97
- package/dist/useDropIndicator.module.js.map +0 -1
- package/dist/useDroppableCollection.main.js +0 -536
- package/dist/useDroppableCollection.main.js.map +0 -1
- package/dist/useDroppableCollection.mjs +0 -531
- package/dist/useDroppableCollection.module.js +0 -531
- package/dist/useDroppableCollection.module.js.map +0 -1
- package/dist/useDroppableItem.main.js +0 -81
- package/dist/useDroppableItem.main.js.map +0 -1
- package/dist/useDroppableItem.mjs +0 -76
- package/dist/useDroppableItem.module.js +0 -76
- package/dist/useDroppableItem.module.js.map +0 -1
- package/dist/useVirtualDrop.main.js +0 -56
- package/dist/useVirtualDrop.main.js.map +0 -1
- package/dist/useVirtualDrop.mjs +0 -51
- package/dist/useVirtualDrop.module.js +0 -51
- package/dist/useVirtualDrop.module.js.map +0 -1
- package/dist/utils.main.js +0 -285
- package/dist/utils.main.js.map +0 -1
- package/dist/utils.mjs +0 -257
- package/dist/utils.module.js +0 -257
- package/dist/utils.module.js.map +0 -1
- package/dist/zh-CN.main.js +0 -44
- package/dist/zh-CN.main.js.map +0 -1
- package/dist/zh-CN.mjs +0 -46
- package/dist/zh-CN.module.js +0 -46
- package/dist/zh-CN.module.js.map +0 -1
- package/dist/zh-TW.main.js +0 -44
- package/dist/zh-TW.main.js.map +0 -1
- package/dist/zh-TW.mjs +0 -46
- package/dist/zh-TW.module.js +0 -46
- package/dist/zh-TW.module.js.map +0 -1
- package/src/DragManager.ts +0 -659
- package/src/DragPreview.tsx +0 -81
- package/src/DropTargetKeyboardNavigation.ts +0 -293
- package/src/ListDropTargetDelegate.ts +0 -182
- package/src/constants.ts +0 -85
- package/src/useAutoScroll.ts +0 -105
- package/src/useClipboard.ts +0 -151
- package/src/useDrag.ts +0 -390
- package/src/useDraggableCollection.ts +0 -29
- package/src/useDraggableItem.ts +0 -158
- package/src/useDrop.ts +0 -444
- package/src/useDropIndicator.ts +0 -124
- package/src/useDroppableCollection.ts +0 -665
- package/src/useDroppableItem.ts +0 -86
- package/src/useVirtualDrop.ts +0 -49
- package/src/utils.ts +0 -385
package/dist/import.mjs
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {useDraggableCollection as $4ac1fdc3a0fcd564$export$2962a7984b2f0a80} from "./useDraggableCollection.mjs";
|
|
9
|
-
import {useClipboard as $9fcc7f0d70d084ee$export$2314ca2a3e892862} from "./useClipboard.mjs";
|
|
10
|
-
import {DragPreview as $ad0e3f3d9c50e4ba$export$905ab40ac2179daa} from "./DragPreview.mjs";
|
|
11
|
-
import {ListDropTargetDelegate as $3ca85212bf8898e4$export$fbd65d14c79e28cc} from "./ListDropTargetDelegate.mjs";
|
|
12
|
-
import {isVirtualDragging as $67560de7c78cb232$export$403bc76cbf68cf60} from "./DragManager.mjs";
|
|
1
|
+
import {useDrag as $27aff87adc647d06$re_export$useDrag, DragPreview as $27aff87adc647d06$re_export$DragPreview} from "react-aria/useDrag";
|
|
2
|
+
import {useDrop as $27aff87adc647d06$re_export$useDrop, DIRECTORY_DRAG_TYPE as $27aff87adc647d06$re_export$DIRECTORY_DRAG_TYPE, isDirectoryDropItem as $27aff87adc647d06$re_export$isDirectoryDropItem, isFileDropItem as $27aff87adc647d06$re_export$isFileDropItem, isTextDropItem as $27aff87adc647d06$re_export$isTextDropItem} from "react-aria/useDrop";
|
|
3
|
+
import {useDroppableCollection as $27aff87adc647d06$re_export$useDroppableCollection, useDroppableItem as $27aff87adc647d06$re_export$useDroppableItem, useDropIndicator as $27aff87adc647d06$re_export$useDropIndicator} from "react-aria/useDroppableCollection";
|
|
4
|
+
import {useDraggableItem as $27aff87adc647d06$re_export$useDraggableItem, useDraggableCollection as $27aff87adc647d06$re_export$useDraggableCollection} from "react-aria/useDraggableCollection";
|
|
5
|
+
import {useClipboard as $27aff87adc647d06$re_export$useClipboard} from "react-aria/useClipboard";
|
|
6
|
+
import {ListDropTargetDelegate as $27aff87adc647d06$re_export$ListDropTargetDelegate} from "react-aria/ListDropTargetDelegate";
|
|
7
|
+
import {isVirtualDragging as $27aff87adc647d06$re_export$isVirtualDragging} from "react-aria/private/dnd/DragManager";
|
|
13
8
|
|
|
14
9
|
/*
|
|
15
10
|
* Copyright 2020 Adobe. All rights reserved.
|
|
@@ -30,10 +25,5 @@ import {isVirtualDragging as $67560de7c78cb232$export$403bc76cbf68cf60} from "./
|
|
|
30
25
|
|
|
31
26
|
|
|
32
27
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
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};
|
|
28
|
+
export {$27aff87adc647d06$re_export$useDrag as useDrag, $27aff87adc647d06$re_export$DragPreview as DragPreview, $27aff87adc647d06$re_export$useDrop as useDrop, $27aff87adc647d06$re_export$DIRECTORY_DRAG_TYPE as DIRECTORY_DRAG_TYPE, $27aff87adc647d06$re_export$isDirectoryDropItem as isDirectoryDropItem, $27aff87adc647d06$re_export$isFileDropItem as isFileDropItem, $27aff87adc647d06$re_export$isTextDropItem as isTextDropItem, $27aff87adc647d06$re_export$useDroppableCollection as useDroppableCollection, $27aff87adc647d06$re_export$useDroppableItem as useDroppableItem, $27aff87adc647d06$re_export$useDropIndicator as useDropIndicator, $27aff87adc647d06$re_export$useDraggableItem as useDraggableItem, $27aff87adc647d06$re_export$useDraggableCollection as useDraggableCollection, $27aff87adc647d06$re_export$useClipboard as useClipboard, $27aff87adc647d06$re_export$ListDropTargetDelegate as ListDropTargetDelegate, $27aff87adc647d06$re_export$isVirtualDragging as isVirtualDragging};
|
|
39
29
|
//# sourceMappingURL=module.js.map
|
package/dist/main.js
CHANGED
|
@@ -1,36 +1,31 @@
|
|
|
1
|
-
var $
|
|
2
|
-
var $
|
|
3
|
-
var $
|
|
4
|
-
var $
|
|
5
|
-
var $
|
|
6
|
-
var $
|
|
7
|
-
var $
|
|
8
|
-
var $c3e901bab7fcc6ff$exports = require("./useDraggableCollection.main.js");
|
|
9
|
-
var $74f3dedaa4d234b4$exports = require("./useClipboard.main.js");
|
|
10
|
-
var $2dccaca1f4baa446$exports = require("./DragPreview.main.js");
|
|
11
|
-
var $2268795bbb597ecb$exports = require("./ListDropTargetDelegate.main.js");
|
|
12
|
-
var $28e10663603f5ea1$exports = require("./DragManager.main.js");
|
|
1
|
+
var $be1Jc$reactariauseDrag = require("react-aria/useDrag");
|
|
2
|
+
var $be1Jc$reactariauseDrop = require("react-aria/useDrop");
|
|
3
|
+
var $be1Jc$reactariauseDroppableCollection = require("react-aria/useDroppableCollection");
|
|
4
|
+
var $be1Jc$reactariauseDraggableCollection = require("react-aria/useDraggableCollection");
|
|
5
|
+
var $be1Jc$reactariauseClipboard = require("react-aria/useClipboard");
|
|
6
|
+
var $be1Jc$reactariaListDropTargetDelegate = require("react-aria/ListDropTargetDelegate");
|
|
7
|
+
var $be1Jc$reactariaprivatedndDragManager = require("react-aria/private/dnd/DragManager");
|
|
13
8
|
|
|
14
9
|
|
|
15
10
|
function $parcel$export(e, n, v, s) {
|
|
16
11
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
17
12
|
}
|
|
18
13
|
|
|
19
|
-
$parcel$export(module.exports, "
|
|
20
|
-
$parcel$export(module.exports, "
|
|
21
|
-
$parcel$export(module.exports, "useDrop", ()
|
|
22
|
-
$parcel$export(module.exports, "
|
|
23
|
-
$parcel$export(module.exports, "
|
|
24
|
-
$parcel$export(module.exports, "
|
|
25
|
-
$parcel$export(module.exports, "
|
|
26
|
-
$parcel$export(module.exports, "
|
|
27
|
-
$parcel$export(module.exports, "
|
|
28
|
-
$parcel$export(module.exports, "
|
|
29
|
-
$parcel$export(module.exports, "
|
|
30
|
-
$parcel$export(module.exports, "
|
|
31
|
-
$parcel$export(module.exports, "
|
|
32
|
-
$parcel$export(module.exports, "
|
|
33
|
-
$parcel$export(module.exports, "
|
|
14
|
+
$parcel$export(module.exports, "useDrag", function () { return $be1Jc$reactariauseDrag.useDrag; });
|
|
15
|
+
$parcel$export(module.exports, "DragPreview", function () { return $be1Jc$reactariauseDrag.DragPreview; });
|
|
16
|
+
$parcel$export(module.exports, "useDrop", function () { return $be1Jc$reactariauseDrop.useDrop; });
|
|
17
|
+
$parcel$export(module.exports, "DIRECTORY_DRAG_TYPE", function () { return $be1Jc$reactariauseDrop.DIRECTORY_DRAG_TYPE; });
|
|
18
|
+
$parcel$export(module.exports, "isDirectoryDropItem", function () { return $be1Jc$reactariauseDrop.isDirectoryDropItem; });
|
|
19
|
+
$parcel$export(module.exports, "isFileDropItem", function () { return $be1Jc$reactariauseDrop.isFileDropItem; });
|
|
20
|
+
$parcel$export(module.exports, "isTextDropItem", function () { return $be1Jc$reactariauseDrop.isTextDropItem; });
|
|
21
|
+
$parcel$export(module.exports, "useDroppableCollection", function () { return $be1Jc$reactariauseDroppableCollection.useDroppableCollection; });
|
|
22
|
+
$parcel$export(module.exports, "useDroppableItem", function () { return $be1Jc$reactariauseDroppableCollection.useDroppableItem; });
|
|
23
|
+
$parcel$export(module.exports, "useDropIndicator", function () { return $be1Jc$reactariauseDroppableCollection.useDropIndicator; });
|
|
24
|
+
$parcel$export(module.exports, "useDraggableItem", function () { return $be1Jc$reactariauseDraggableCollection.useDraggableItem; });
|
|
25
|
+
$parcel$export(module.exports, "useDraggableCollection", function () { return $be1Jc$reactariauseDraggableCollection.useDraggableCollection; });
|
|
26
|
+
$parcel$export(module.exports, "useClipboard", function () { return $be1Jc$reactariauseClipboard.useClipboard; });
|
|
27
|
+
$parcel$export(module.exports, "ListDropTargetDelegate", function () { return $be1Jc$reactariaListDropTargetDelegate.ListDropTargetDelegate; });
|
|
28
|
+
$parcel$export(module.exports, "isVirtualDragging", function () { return $be1Jc$reactariaprivatedndDragManager.isVirtualDragging; });
|
|
34
29
|
/*
|
|
35
30
|
* Copyright 2020 Adobe. All rights reserved.
|
|
36
31
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -50,9 +45,4 @@ $parcel$export(module.exports, "isTextDropItem", () => $4620ae0dc40f0031$exports
|
|
|
50
45
|
|
|
51
46
|
|
|
52
47
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
48
|
//# sourceMappingURL=main.js.map
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-aria/dnd/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {useDrag, DragPreview} from 'react-aria/useDrag';\nexport {useDrop, DIRECTORY_DRAG_TYPE, isDirectoryDropItem, isFileDropItem, isTextDropItem} from 'react-aria/useDrop';\nexport {useDroppableCollection, useDroppableItem, useDropIndicator} from 'react-aria/useDroppableCollection';\nexport {useDraggableItem, useDraggableCollection} from 'react-aria/useDraggableCollection';\nexport {useClipboard} from 'react-aria/useClipboard';\nexport {ListDropTargetDelegate} from 'react-aria/ListDropTargetDelegate';\nexport {isVirtualDragging} from 'react-aria/private/dnd/DragManager';\nexport type {DroppableCollectionOptions, DroppableCollectionResult, DroppableItemOptions, DroppableItemResult, DropIndicatorProps, DropIndicatorAria} from 'react-aria/useDroppableCollection';\nexport type {DraggableItemProps, DraggableItemResult, DraggableCollectionOptions} from 'react-aria/useDraggableCollection';\nexport type {DragOptions, DragResult, DragPreviewProps} from 'react-aria/useDrag';\nexport type {DropOptions, DropResult} from 'react-aria/useDrop';\nexport type {ClipboardProps, ClipboardResult} from 'react-aria/useClipboard';\nexport type {DirectoryDropItem, DragEndEvent, DraggableCollectionEndEvent, DraggableCollectionMoveEvent, DraggableCollectionStartEvent, DragItem, DragMoveEvent, DragPreviewRenderer, DragStartEvent, DragTypes, DropEnterEvent, DropEvent, DropExitEvent, DropItem, DropMoveEvent, DropOperation, DroppableCollectionDropEvent, DroppableCollectionEnterEvent, DroppableCollectionExitEvent, DroppableCollectionInsertDropEvent, DroppableCollectionMoveEvent, DroppableCollectionOnItemDropEvent, DroppableCollectionReorderEvent, DroppableCollectionRootDropEvent, DropPosition, DropTarget, DropTargetDelegate, FileDropItem, ItemDropTarget, RootDropTarget, TextDropItem} from '@react-types/shared';\n"],"names":[],"version":3,"file":"main.js.map"}
|
package/dist/module.js
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {useDraggableCollection as $4ac1fdc3a0fcd564$export$2962a7984b2f0a80} from "./useDraggableCollection.module.js";
|
|
9
|
-
import {useClipboard as $9fcc7f0d70d084ee$export$2314ca2a3e892862} from "./useClipboard.module.js";
|
|
10
|
-
import {DragPreview as $ad0e3f3d9c50e4ba$export$905ab40ac2179daa} from "./DragPreview.module.js";
|
|
11
|
-
import {ListDropTargetDelegate as $3ca85212bf8898e4$export$fbd65d14c79e28cc} from "./ListDropTargetDelegate.module.js";
|
|
12
|
-
import {isVirtualDragging as $67560de7c78cb232$export$403bc76cbf68cf60} from "./DragManager.module.js";
|
|
1
|
+
import {useDrag as $27aff87adc647d06$re_export$useDrag, DragPreview as $27aff87adc647d06$re_export$DragPreview} from "react-aria/useDrag";
|
|
2
|
+
import {useDrop as $27aff87adc647d06$re_export$useDrop, DIRECTORY_DRAG_TYPE as $27aff87adc647d06$re_export$DIRECTORY_DRAG_TYPE, isDirectoryDropItem as $27aff87adc647d06$re_export$isDirectoryDropItem, isFileDropItem as $27aff87adc647d06$re_export$isFileDropItem, isTextDropItem as $27aff87adc647d06$re_export$isTextDropItem} from "react-aria/useDrop";
|
|
3
|
+
import {useDroppableCollection as $27aff87adc647d06$re_export$useDroppableCollection, useDroppableItem as $27aff87adc647d06$re_export$useDroppableItem, useDropIndicator as $27aff87adc647d06$re_export$useDropIndicator} from "react-aria/useDroppableCollection";
|
|
4
|
+
import {useDraggableItem as $27aff87adc647d06$re_export$useDraggableItem, useDraggableCollection as $27aff87adc647d06$re_export$useDraggableCollection} from "react-aria/useDraggableCollection";
|
|
5
|
+
import {useClipboard as $27aff87adc647d06$re_export$useClipboard} from "react-aria/useClipboard";
|
|
6
|
+
import {ListDropTargetDelegate as $27aff87adc647d06$re_export$ListDropTargetDelegate} from "react-aria/ListDropTargetDelegate";
|
|
7
|
+
import {isVirtualDragging as $27aff87adc647d06$re_export$isVirtualDragging} from "react-aria/private/dnd/DragManager";
|
|
13
8
|
|
|
14
9
|
/*
|
|
15
10
|
* Copyright 2020 Adobe. All rights reserved.
|
|
@@ -30,10 +25,5 @@ import {isVirtualDragging as $67560de7c78cb232$export$403bc76cbf68cf60} from "./
|
|
|
30
25
|
|
|
31
26
|
|
|
32
27
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
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};
|
|
28
|
+
export {$27aff87adc647d06$re_export$useDrag as useDrag, $27aff87adc647d06$re_export$DragPreview as DragPreview, $27aff87adc647d06$re_export$useDrop as useDrop, $27aff87adc647d06$re_export$DIRECTORY_DRAG_TYPE as DIRECTORY_DRAG_TYPE, $27aff87adc647d06$re_export$isDirectoryDropItem as isDirectoryDropItem, $27aff87adc647d06$re_export$isFileDropItem as isFileDropItem, $27aff87adc647d06$re_export$isTextDropItem as isTextDropItem, $27aff87adc647d06$re_export$useDroppableCollection as useDroppableCollection, $27aff87adc647d06$re_export$useDroppableItem as useDroppableItem, $27aff87adc647d06$re_export$useDropIndicator as useDropIndicator, $27aff87adc647d06$re_export$useDraggableItem as useDraggableItem, $27aff87adc647d06$re_export$useDraggableCollection as useDraggableCollection, $27aff87adc647d06$re_export$useClipboard as useClipboard, $27aff87adc647d06$re_export$ListDropTargetDelegate as ListDropTargetDelegate, $27aff87adc647d06$re_export$isVirtualDragging as isVirtualDragging};
|
|
39
29
|
//# sourceMappingURL=module.js.map
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC","sources":["packages/@react-aria/dnd/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {useDrag, DragPreview} from 'react-aria/useDrag';\nexport {useDrop, DIRECTORY_DRAG_TYPE, isDirectoryDropItem, isFileDropItem, isTextDropItem} from 'react-aria/useDrop';\nexport {useDroppableCollection, useDroppableItem, useDropIndicator} from 'react-aria/useDroppableCollection';\nexport {useDraggableItem, useDraggableCollection} from 'react-aria/useDraggableCollection';\nexport {useClipboard} from 'react-aria/useClipboard';\nexport {ListDropTargetDelegate} from 'react-aria/ListDropTargetDelegate';\nexport {isVirtualDragging} from 'react-aria/private/dnd/DragManager';\nexport type {DroppableCollectionOptions, DroppableCollectionResult, DroppableItemOptions, DroppableItemResult, DropIndicatorProps, DropIndicatorAria} from 'react-aria/useDroppableCollection';\nexport type {DraggableItemProps, DraggableItemResult, DraggableCollectionOptions} from 'react-aria/useDraggableCollection';\nexport type {DragOptions, DragResult, DragPreviewProps} from 'react-aria/useDrag';\nexport type {DropOptions, DropResult} from 'react-aria/useDrop';\nexport type {ClipboardProps, ClipboardResult} from 'react-aria/useClipboard';\nexport type {DirectoryDropItem, DragEndEvent, DraggableCollectionEndEvent, DraggableCollectionMoveEvent, DraggableCollectionStartEvent, DragItem, DragMoveEvent, DragPreviewRenderer, DragStartEvent, DragTypes, DropEnterEvent, DropEvent, DropExitEvent, DropItem, DropMoveEvent, DropOperation, DroppableCollectionDropEvent, DroppableCollectionEnterEvent, DroppableCollectionExitEvent, DroppableCollectionInsertDropEvent, DroppableCollectionMoveEvent, DroppableCollectionOnItemDropEvent, DroppableCollectionReorderEvent, DroppableCollectionRootDropEvent, DropPosition, DropTarget, DropTargetDelegate, FileDropItem, ItemDropTarget, RootDropTarget, TextDropItem} from '@react-types/shared';\n"],"names":[],"version":3,"file":"module.js.map"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { useDrag, DragPreview } from 'react-aria/useDrag';
|
|
2
|
+
export { useDrop, DIRECTORY_DRAG_TYPE, isDirectoryDropItem, isFileDropItem, isTextDropItem } from 'react-aria/useDrop';
|
|
3
|
+
export { useDroppableCollection, useDroppableItem, useDropIndicator } from 'react-aria/useDroppableCollection';
|
|
4
|
+
export { useDraggableItem, useDraggableCollection } from 'react-aria/useDraggableCollection';
|
|
5
|
+
export { useClipboard } from 'react-aria/useClipboard';
|
|
6
|
+
export { ListDropTargetDelegate } from 'react-aria/ListDropTargetDelegate';
|
|
7
|
+
export { isVirtualDragging } from 'react-aria/private/dnd/DragManager';
|
|
8
|
+
export type { DroppableCollectionOptions, DroppableCollectionResult, DroppableItemOptions, DroppableItemResult, DropIndicatorProps, DropIndicatorAria } from 'react-aria/useDroppableCollection';
|
|
9
|
+
export type { DraggableItemProps, DraggableItemResult, DraggableCollectionOptions } from 'react-aria/useDraggableCollection';
|
|
10
|
+
export type { DragOptions, DragResult, DragPreviewProps } from 'react-aria/useDrag';
|
|
11
|
+
export type { DropOptions, DropResult } from 'react-aria/useDrop';
|
|
12
|
+
export type { ClipboardProps, ClipboardResult } from 'react-aria/useClipboard';
|
|
13
|
+
export type { DirectoryDropItem, DragEndEvent, DraggableCollectionEndEvent, DraggableCollectionMoveEvent, DraggableCollectionStartEvent, DragItem, DragMoveEvent, DragPreviewRenderer, DragStartEvent, DragTypes, DropEnterEvent, DropEvent, DropExitEvent, DropItem, DropMoveEvent, DropOperation, DroppableCollectionDropEvent, DroppableCollectionEnterEvent, DroppableCollectionExitEvent, DroppableCollectionInsertDropEvent, DroppableCollectionMoveEvent, DroppableCollectionOnItemDropEvent, DroppableCollectionReorderEvent, DroppableCollectionRootDropEvent, DropPosition, DropTarget, DropTargetDelegate, FileDropItem, ItemDropTarget, RootDropTarget, TextDropItem } from '@react-types/shared';
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-aria/dnd",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"module": "dist/module.js",
|
|
8
8
|
"exports": {
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
"./dist/types.d.ts",
|
|
12
|
-
"./
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
9
|
+
".": {
|
|
10
|
+
"source": "./src/index.ts",
|
|
11
|
+
"types": "./dist/types/src/index.d.ts",
|
|
12
|
+
"import": "./dist/import.mjs",
|
|
13
|
+
"require": "./dist/main.js"
|
|
14
|
+
},
|
|
15
|
+
"./package.json": "./package.json"
|
|
16
16
|
},
|
|
17
|
-
"types": "dist/types.d.ts",
|
|
17
|
+
"types": "dist/types/src/index.d.ts",
|
|
18
18
|
"source": "src/index.ts",
|
|
19
19
|
"files": [
|
|
20
20
|
"dist",
|
|
@@ -26,17 +26,9 @@
|
|
|
26
26
|
"url": "https://github.com/adobe/react-spectrum"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@
|
|
30
|
-
"@
|
|
31
|
-
"
|
|
32
|
-
"@react-aria/live-announcer": "^3.4.4",
|
|
33
|
-
"@react-aria/overlays": "^3.31.2",
|
|
34
|
-
"@react-aria/utils": "^3.33.1",
|
|
35
|
-
"@react-stately/collections": "^3.12.10",
|
|
36
|
-
"@react-stately/dnd": "^3.7.4",
|
|
37
|
-
"@react-types/button": "^3.15.1",
|
|
38
|
-
"@react-types/shared": "^3.33.1",
|
|
39
|
-
"@swc/helpers": "^0.5.0"
|
|
29
|
+
"@react-types/shared": "^3.34.0",
|
|
30
|
+
"@swc/helpers": "^0.5.0",
|
|
31
|
+
"react-aria": "3.48.0"
|
|
40
32
|
},
|
|
41
33
|
"peerDependencies": {
|
|
42
34
|
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
|
|
@@ -45,5 +37,8 @@
|
|
|
45
37
|
"publishConfig": {
|
|
46
38
|
"access": "public"
|
|
47
39
|
},
|
|
48
|
-
"
|
|
40
|
+
"targets": {
|
|
41
|
+
"types": false
|
|
42
|
+
},
|
|
43
|
+
"gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
|
|
49
44
|
}
|
package/src/index.ts
CHANGED
|
@@ -10,59 +10,16 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export type {
|
|
21
|
-
export type {
|
|
22
|
-
export type {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
DraggableCollectionMoveEvent,
|
|
27
|
-
DraggableCollectionStartEvent,
|
|
28
|
-
DragItem,
|
|
29
|
-
DragMoveEvent,
|
|
30
|
-
DragPreviewRenderer,
|
|
31
|
-
DragStartEvent,
|
|
32
|
-
DragTypes,
|
|
33
|
-
DropEnterEvent,
|
|
34
|
-
DropEvent,
|
|
35
|
-
DropExitEvent,
|
|
36
|
-
DropItem,
|
|
37
|
-
DropMoveEvent,
|
|
38
|
-
DropOperation,
|
|
39
|
-
DroppableCollectionDropEvent,
|
|
40
|
-
DroppableCollectionEnterEvent,
|
|
41
|
-
DroppableCollectionExitEvent,
|
|
42
|
-
DroppableCollectionInsertDropEvent,
|
|
43
|
-
DroppableCollectionMoveEvent,
|
|
44
|
-
DroppableCollectionOnItemDropEvent,
|
|
45
|
-
DroppableCollectionReorderEvent,
|
|
46
|
-
DroppableCollectionRootDropEvent,
|
|
47
|
-
DropPosition,
|
|
48
|
-
DropTarget,
|
|
49
|
-
DropTargetDelegate,
|
|
50
|
-
FileDropItem,
|
|
51
|
-
ItemDropTarget,
|
|
52
|
-
RootDropTarget,
|
|
53
|
-
TextDropItem
|
|
54
|
-
} from '@react-types/shared';
|
|
55
|
-
|
|
56
|
-
export {DIRECTORY_DRAG_TYPE} from './utils';
|
|
57
|
-
export {useDrag} from './useDrag';
|
|
58
|
-
export {useDrop} from './useDrop';
|
|
59
|
-
export {useDroppableCollection} from './useDroppableCollection';
|
|
60
|
-
export {useDroppableItem} from './useDroppableItem';
|
|
61
|
-
export {useDropIndicator} from './useDropIndicator';
|
|
62
|
-
export {useDraggableItem} from './useDraggableItem';
|
|
63
|
-
export {useDraggableCollection} from './useDraggableCollection';
|
|
64
|
-
export {useClipboard} from './useClipboard';
|
|
65
|
-
export {DragPreview} from './DragPreview';
|
|
66
|
-
export {ListDropTargetDelegate} from './ListDropTargetDelegate';
|
|
67
|
-
export {isVirtualDragging} from './DragManager';
|
|
68
|
-
export {isDirectoryDropItem, isFileDropItem, isTextDropItem} from './utils';
|
|
13
|
+
export {useDrag, DragPreview} from 'react-aria/useDrag';
|
|
14
|
+
export {useDrop, DIRECTORY_DRAG_TYPE, isDirectoryDropItem, isFileDropItem, isTextDropItem} from 'react-aria/useDrop';
|
|
15
|
+
export {useDroppableCollection, useDroppableItem, useDropIndicator} from 'react-aria/useDroppableCollection';
|
|
16
|
+
export {useDraggableItem, useDraggableCollection} from 'react-aria/useDraggableCollection';
|
|
17
|
+
export {useClipboard} from 'react-aria/useClipboard';
|
|
18
|
+
export {ListDropTargetDelegate} from 'react-aria/ListDropTargetDelegate';
|
|
19
|
+
export {isVirtualDragging} from 'react-aria/private/dnd/DragManager';
|
|
20
|
+
export type {DroppableCollectionOptions, DroppableCollectionResult, DroppableItemOptions, DroppableItemResult, DropIndicatorProps, DropIndicatorAria} from 'react-aria/useDroppableCollection';
|
|
21
|
+
export type {DraggableItemProps, DraggableItemResult, DraggableCollectionOptions} from 'react-aria/useDraggableCollection';
|
|
22
|
+
export type {DragOptions, DragResult, DragPreviewProps} from 'react-aria/useDrag';
|
|
23
|
+
export type {DropOptions, DropResult} from 'react-aria/useDrop';
|
|
24
|
+
export type {ClipboardProps, ClipboardResult} from 'react-aria/useClipboard';
|
|
25
|
+
export type {DirectoryDropItem, DragEndEvent, DraggableCollectionEndEvent, DraggableCollectionMoveEvent, DraggableCollectionStartEvent, DragItem, DragMoveEvent, DragPreviewRenderer, DragStartEvent, DragTypes, DropEnterEvent, DropEvent, DropExitEvent, DropItem, DropMoveEvent, DropOperation, DroppableCollectionDropEvent, DroppableCollectionEnterEvent, DroppableCollectionExitEvent, DroppableCollectionInsertDropEvent, DroppableCollectionMoveEvent, DroppableCollectionOnItemDropEvent, DroppableCollectionReorderEvent, DroppableCollectionRootDropEvent, DropPosition, DropTarget, DropTargetDelegate, FileDropItem, ItemDropTarget, RootDropTarget, TextDropItem} from '@react-types/shared';
|