react-spectrum
Adding utility handlers to DnD hooks to simplify implementation experience
#3266
Merged

Adding utility handlers to DnD hooks to simplify implementation experience #3266

LFDanLu merged 92 commits into main from dnd_api_simplification
LFDanLu
LFDanLu initial brain storming
2df9a375
LFDanLu adding assumptions, updating stories, fixing bugs
5557133d
LFDanLu add useDraggable and useDroppable, document other bugs
1e349c65
LFDanLu compiling feedback and tentative implementation some meeting feedback
3c2fe80d
LFDanLu switching to single hook strategy
fa403e0d
LFDanLu cleaning up some testing code
28a4ffae
LFDanLu adding dropOperation to onInsert,onRootDrop, etc
d307c8ea
LFDanLu experiementation with tracking draggedCollection and droppedCollection
eb7a2d34
LFDanLu debugging and musings
3f632a57
LFDanLu Merge branch 'main' of github.com:adobe/react-spectrum into dnd_api_s…
ba3e1959
LFDanLu porting onReorder and other helper functions to the aria dnd hooks
652bbb38
LFDanLu fixing circular dep and adding another story with onDrop/getDropOpera…
90309cd8
LFDanLu debug tests, fixes, and some additional musings
2c22dc8c
adobe-bot
LFDanLu storing dom node as drop target if dropping on non-collection drop ta…
bee815a1
LFDanLu fixing lint
674b0777
adobe-bot
LFDanLu cleanup
6d43c5bc
LFDanLu fixing case where getDropOperation is provided but onDrop isnt
4785f911
LFDanLu fix case where onDrop is defined but getDropOperation isnt
f939a8fe
LFDanLu
LFDanLu commented on 2022-07-29
adobe-bot
LFDanLu
LFDanLu commented on 2022-07-29
LFDanLu
LFDanLu commented on 2022-07-29
LFDanLu
LFDanLu commented on 2022-07-29
LFDanLu updating ListView getDropTargetFromPoint so it uses dropState.getDrop…
0f8c96be
adobe-bot
LFDanLu tentative defaultGetDropTargetFromPoint outline
faae38bf
LFDanLu Revert "tentative defaultGetDropTargetFromPoint outline"
d70d5cf2
LFDanLu Revert "updating ListView getDropTargetFromPoint so it uses dropState…
711cd8ee
LFDanLu passing items directly to handlers
07997fef
adobe-bot
LFDanLu Merge branch 'main' of github.com:adobe/react-spectrum into dnd_api_s…
2e8d282c
LFDanLu tracking currently dragged keys in global state
0f5f6b23
adobe-bot
LFDanLu making util handlers more consistent with other drop handlers
0b0627e7
LFDanLu tracking dragging/dropping collection refs instead of collections
8d2d015f
adobe-bot
LFDanLu adding isInternalDrop info to onItemDrop
46095975
LFDanLu adding onRemove util function
db24257f
LFDanLu handle onInsert copy operation
cd820151
LFDanLu restoring delayed onDrop behavior in useDrop
283a15f7
LFDanLu fixing tests to match delayed onDrop
91c45af4
LFDanLu removing useDragHooks and useDropHooks
c25a2f18
LFDanLu fixing lint
1f22942c
LFDanLu
LFDanLu commented on 2022-08-05
LFDanLu
LFDanLu commented on 2022-08-05
adobe-bot
LFDanLu
LFDanLu commented on 2022-08-05
LFDanLu clean up types and provide more info to isValidDropTarget
ac5912ca
LFDanLu delaying onDragEnd handler so it always happens after onDrop
41971046
LFDanLu add workaround for Chrome Android bug
4b5a0a23
adobe-bot
LFDanLu Merge branch 'main' of github.com:adobe/react-spectrum into dnd_api_s…
c71decea
adobe-bot
LFDanLu progress on tests and fixing endDrag
fbbb5f85
LFDanLu adding tests for the global DnD state tracker
0f10c936
LFDanLu LFDanLu marked this pull request as ready for review 3 years ago
LFDanLu LFDanLu changed the title (WIP) Dnd api simplification Dnd api simplification 3 years ago
adobe-bot
LFDanLu allowing user to perform onInsert in the same list if it is a copy op…
900c2751
adobe-bot
LFDanLu fixing some review comments and bugs
c0807704
LFDanLu adjusting defaultDrop's dep array so it works with handler updates du…
66e6b87c
LFDanLu
LFDanLu commented on 2022-08-16
adobe-bot
LFDanLu
LFDanLu commented on 2022-08-16
LFDanLu Merge branch 'main' of github.com:adobe/react-spectrum into dnd_api_s…
6fc10d55
LFDanLu fix getDropTargetFromPoint so that it accounts for root drop cases
87d27855
LFDanLu clearing global DnD state in onDrop if drag item isnt a RSP dnd item
fa7d2947
LFDanLu revert getDropTargetFromPoint changes
db01fef3
LFDanLu fixing tests and adjusting type
227c559a
adobe-bot
LFDanLu adding filed bug
c0cbe420
adobe-bot
LFDanLu
LFDanLu commented on 2022-08-18
LFDanLu Merge branch 'main' of github.com:adobe/react-spectrum into dnd_api_s…
c7e4db43
adobe-bot
LFDanLu Merge branch 'main' into dnd_api_simplification
0a9262f6
adobe-bot
LFDanLu
LFDanLu commented on 2022-08-29
LFDanLu
LFDanLu commented on 2022-08-29
LFDanLu
LFDanLu commented on 2022-08-29
LFDanLu
LFDanLu commented on 2022-08-29
LFDanLu
LFDanLu commented on 2022-08-29
LFDanLu
LFDanLu commented on 2022-08-29
LFDanLu
LFDanLu commented on 2022-08-29
LFDanLu
LFDanLu commented on 2022-08-29
LFDanLu
LFDanLu commented on 2022-08-29
LFDanLu
LFDanLu commented on 2022-08-29
LFDanLu
LFDanLu commented on 2022-08-29
LFDanLu
LFDanLu commented on 2022-08-29
LFDanLu
LFDanLu commented on 2022-08-29
LFDanLu
LFDanLu commented on 2022-08-29
LFDanLu making internal copy drop insert operations a no op
c78af275
LFDanLu move global dnd state to aria/dnd and update getDropOperation
9cf11b94
LFDanLu removing droppedTarget tracking from global dnd state
b239afe5
LFDanLu unifying dropCollectionRef tracker in global DnD state
d2c61bec
LFDanLu clearing dropCollectionRef when drag is canceled via Escape and tests
2bc36791
LFDanLu allowing drops that have invalid and valid drag types
5d6f7aee
LFDanLu removing timeout from onDrop
500b6897
LFDanLu adding useDraggableCollection
a1241263
LFDanLu adding more storybook actions and fixing when they are fired
8eaeadbe
LFDanLu making useDnDHooks return a merged list of hooks
07d07ef3
LFDanLu forgot to include the story updates
6971b106
LFDanLu first stab at adding automatic item filtering onDrop
419e79d7
LFDanLu
LFDanLu commented on 2022-09-02
LFDanLu use acceptedDragTypes in default onDrop filtering if provided
c4b3c5f0
LFDanLu Merge branch 'main' of github.com:adobe/react-spectrum into dnd_api_s…
80051ec2
LFDanLu fixing tests from merge
8f6b7bcb
LFDanLu update prop names to shouldAcceptItemDrop and onItemRemove
d6319708
LFDanLu fix non draggable ListView
f601b18e
LFDanLu
LFDanLu LFDanLu changed the title Dnd api simplification (WIP) Dnd api simplification 3 years ago
devongovett
devongovett commented on 2022-09-07
LFDanLu fixing tests in 16 and 17
545cb66b
LFDanLu Merge branch 'main' of github.com:adobe/react-spectrum into dnd_api_s…
f8066799
LFDanLu fixing merge and tests
8903e369
LFDanLu allowing internal copy operation via onReorder, revert to old getDrop…
41de3def
LFDanLu fixing tests and adding useDraggableCollection to draggable listbox
7924c2d6
LFDanLu Merge branch 'main' of github.com:adobe/react-spectrum into dnd_api_s…
05cffed6
LFDanLu refactor global dnd state
3e7f92c2
LFDanLu fixing drag between list story
d5f37071
adobe-bot
LFDanLu adding tests for default onDrop filtering and directory/file dropping
616c8542
adobe-bot
LFDanLu Merge branch 'main' into dnd_api_simplification
c01363e4
adobe-bot
LFDanLu adding more stories
034a8485
LFDanLu use shouldAcceptItemDrop to further filter what items are provided to…
96f765a9
adobe-bot
LFDanLu adding tests for shouldAcceptItemDrop drop filtering
fdc0656b
LFDanLu fix skipped test
02089861
LFDanLu removing onItemRemove from util handlers
73c0c627
LFDanLu quick fix to detect android talkback click when setting modality
92edd2bf
LFDanLu
LFDanLu commented on 2022-09-15
LFDanLu
LFDanLu commented on 2022-09-15
LFDanLu clean up
225dd610
LFDanLu Merge branch 'main' into dnd_api_simplification
8f755663
LFDanLu LFDanLu changed the title (WIP) Dnd api simplification Dnd api simplification 3 years ago
LFDanLu LFDanLu changed the title Dnd api simplification Adding utility handlers to DnD hooks to simplify implementation experience 3 years ago
LFDanLu
LFDanLu commented on 2022-09-15
LFDanLu fixing test for 17
7debb090
adobe-bot
LFDanLu improving isVirtualClick detection of Android talkback clicks
c95ea692
LFDanLu fixing lint
f887501f
LFDanLu
LFDanLu commented on 2022-09-15
adobe-bot
devongovett
devongovett commented on 2022-09-16
LFDanLu removing pointer listener case from android isVirtualClick detection
796ec992
devongovett
devongovett commented on 2022-09-17
adobe-bot
devongovett
devongovett commented on 2022-09-19
LFDanLu Merge branch 'main' into dnd_api_simplification
ad58545b
adobe-bot
devongovett
devongovett approved these changes on 2022-09-20
reidbarber
reidbarber approved these changes on 2022-09-20
LFDanLu Merge branch 'main' into dnd_api_simplification
dafd2869
adobe-bot
LFDanLu LFDanLu merged 2851cbd1 into main 3 years ago
LFDanLu LFDanLu deleted the dnd_api_simplification branch 3 years ago
adobe adobe deleted a comment from ghost on 2022-09-20

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone