@react-aria/dnd 3.0.0-nightly.3479 → 3.0.0-nightly.3483

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 CHANGED
@@ -1,10 +1,10 @@
1
- var $4vY0V$react = require("react");
1
+ var $4vY0V$reactariainteractions = require("@react-aria/interactions");
2
2
  var $4vY0V$reactariautils = require("@react-aria/utils");
3
+ var $4vY0V$react = require("react");
3
4
  var $4vY0V$reactariai18n = require("@react-aria/i18n");
4
5
  var $4vY0V$reactarialiveannouncer = require("@react-aria/live-announcer");
5
6
  var $4vY0V$reactariaoverlays = require("@react-aria/overlays");
6
7
  var $4vY0V$reactdom = require("react-dom");
7
- var $4vY0V$reactariainteractions = require("@react-aria/interactions");
8
8
 
9
9
  function $parcel$export(e, n, v, s) {
10
10
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
@@ -13,6 +13,7 @@ function $parcel$interopDefault(a) {
13
13
  return a && a.__esModule ? a.default : a;
14
14
  }
15
15
 
16
+ $parcel$export(module.exports, "DIRECTORY_DRAG_TYPE", () => $4620ae0dc40f0031$export$990fced5dfac2637);
16
17
  $parcel$export(module.exports, "useDrag", () => $dc204e8ec58447a6$export$7941f8aafa4b6021);
17
18
  $parcel$export(module.exports, "useDrop", () => $1ca228bc9257ca16$export$ccdee5eaf73cf661);
18
19
  $parcel$export(module.exports, "useDroppableCollection", () => $7f93a158ac20b90a$export$f4e2f423c21f7b04);
@@ -24,10 +25,6 @@ $parcel$export(module.exports, "useClipboard", () => $74f3dedaa4d234b4$export$23
24
25
  $parcel$export(module.exports, "DragPreview", () => $2dccaca1f4baa446$export$905ab40ac2179daa);
25
26
  $parcel$export(module.exports, "ListDropTargetDelegate", () => $2268795bbb597ecb$export$fbd65d14c79e28cc);
26
27
  $parcel$export(module.exports, "isVirtualDragging", () => $28e10663603f5ea1$export$403bc76cbf68cf60);
27
-
28
-
29
-
30
-
31
28
  let $76b1e110a27b1ccd$export$60b7b4bcf3903d8e;
32
29
  (function($76b1e110a27b1ccd$export$60b7b4bcf3903d8e) {
33
30
  $76b1e110a27b1ccd$export$60b7b4bcf3903d8e[$76b1e110a27b1ccd$export$60b7b4bcf3903d8e["none"] = 0] = "none";
@@ -74,6 +71,7 @@ const $76b1e110a27b1ccd$export$f8fc6581787339b3 = 'application/octet-stream';
74
71
 
75
72
 
76
73
  const $4620ae0dc40f0031$var$droppableCollectionIds = new WeakMap();
74
+ const $4620ae0dc40f0031$export$990fced5dfac2637 = Symbol();
77
75
  function $4620ae0dc40f0031$export$b1601eb39394a581(state) {
78
76
  let id = $4vY0V$reactariautils.useId();
79
77
  $4620ae0dc40f0031$var$droppableCollectionIds.set(state, id);
@@ -148,8 +146,8 @@ function $4620ae0dc40f0031$export$f9c1490890ddd063(dataTransfer, items) {
148
146
  }
149
147
  class $4620ae0dc40f0031$export$7f04ce188c91447c {
150
148
  has(type) {
151
- if (this.includesUnknownTypes || type === 'directory' && this.types.has($76b1e110a27b1ccd$export$f8fc6581787339b3)) return true;
152
- return this.types.has(type);
149
+ if (this.includesUnknownTypes || type === $4620ae0dc40f0031$export$990fced5dfac2637 && this.types.has($76b1e110a27b1ccd$export$f8fc6581787339b3)) return true;
150
+ return typeof type === 'string' && this.types.has(type);
153
151
  }
154
152
  constructor(dataTransfer){
155
153
  this.types = new Set();
@@ -288,6 +286,10 @@ function $4620ae0dc40f0031$export$70936501603e6c57() {
288
286
  function $4620ae0dc40f0031$export$6c10d32b362bfa5f(state) {
289
287
  $4620ae0dc40f0031$export$6ca6700462636d0b = state;
290
288
  }
289
+ function $4620ae0dc40f0031$export$78bf638634500fa5(ref) {
290
+ let { draggingCollectionRef: draggingCollectionRef , dropCollectionRef: dropCollectionRef } = $4620ae0dc40f0031$export$6ca6700462636d0b;
291
+ return (draggingCollectionRef === null || draggingCollectionRef === void 0 ? void 0 : draggingCollectionRef.current) != null && draggingCollectionRef.current === ((ref === null || ref === void 0 ? void 0 : ref.current) || (dropCollectionRef === null || dropCollectionRef === void 0 ? void 0 : dropCollectionRef.current));
292
+ }
291
293
  let $4620ae0dc40f0031$export$8e6636520ac15722;
292
294
  function $4620ae0dc40f0031$export$64f52ed7349ddb84(dropEffect) {
293
295
  $4620ae0dc40f0031$export$8e6636520ac15722 = dropEffect;
@@ -300,6 +302,11 @@ function $4620ae0dc40f0031$export$6539bc8c3a0a2d67(o) {
300
302
 
301
303
 
302
304
 
305
+
306
+
307
+
308
+
309
+
303
310
  let $28e10663603f5ea1$var$dropTargets = new Map();
304
311
  let $28e10663603f5ea1$var$dropItems = new Map();
305
312
  let $28e10663603f5ea1$var$dragSession = null;
@@ -638,7 +645,6 @@ class $28e10663603f5ea1$var$DragSession {
638
645
  $28e10663603f5ea1$var$endDragging();
639
646
  }
640
647
  cancel() {
641
- $4620ae0dc40f0031$export$dac8db29d42db9a1(undefined);
642
648
  this.end();
643
649
  if (!this.dragTarget.element.closest('[aria-hidden="true"]')) this.dragTarget.element.focus();
644
650
  $4vY0V$reactarialiveannouncer.announce(this.stringFormatter.format('dropCanceled'));
@@ -3084,7 +3090,7 @@ function $1ca228bc9257ca16$export$ccdee5eaf73cf661(options) {
3084
3090
  // If there wasn't a collection being tracked as a dragged collection, then we are in a case where a non RSP drag is dropped on a
3085
3091
  // RSP collection and thus we don't need to preserve the global drop effect
3086
3092
  if (dndStateSnapshot.draggingCollectionRef == null) $4620ae0dc40f0031$export$64f52ed7349ddb84(undefined);
3087
- else // Otherwise we need to preserve the global dnd state for onDragEnd's isInternalDrop check.
3093
+ else // Otherwise we need to preserve the global dnd state for onDragEnd's isInternal check.
3088
3094
  // At the moment fireDropExit may clear dropCollectionRef (i.e. useDroppableCollection's provided onDropExit, required to clear dropCollectionRef when exiting a valid drop target)
3089
3095
  $4620ae0dc40f0031$export$6c10d32b362bfa5f(dndStateSnapshot);
3090
3096
  };
@@ -3243,15 +3249,15 @@ function $7f93a158ac20b90a$export$f4e2f423c21f7b04(props, state1, ref2) {
3243
3249
  localState.props = props;
3244
3250
  localState.state = state1;
3245
3251
  let defaultOnDrop = $4vY0V$react.useCallback(async (e)=>{
3246
- let { onInsert: onInsert , onRootDrop: onRootDrop , onItemDrop: onItemDrop , onReorder: onReorder , acceptedDragTypes: acceptedDragTypes , shouldAcceptItemDrop: shouldAcceptItemDrop } = localState.props;
3247
- let { draggingCollectionRef: draggingCollectionRef , draggingKeys: draggingKeys } = $4620ae0dc40f0031$export$6ca6700462636d0b;
3248
- let isInternalDrop = (draggingCollectionRef === null || draggingCollectionRef === void 0 ? void 0 : draggingCollectionRef.current) != null && (draggingCollectionRef === null || draggingCollectionRef === void 0 ? void 0 : draggingCollectionRef.current) === (ref2 === null || ref2 === void 0 ? void 0 : ref2.current);
3252
+ let { onInsert: onInsert , onRootDrop: onRootDrop , onItemDrop: onItemDrop , onReorder: onReorder , acceptedDragTypes: acceptedDragTypes = 'all' , shouldAcceptItemDrop: shouldAcceptItemDrop } = localState.props;
3253
+ let { draggingKeys: draggingKeys } = $4620ae0dc40f0031$export$6ca6700462636d0b;
3254
+ let isInternal = $4620ae0dc40f0031$export$78bf638634500fa5(ref2);
3249
3255
  let { target: target , dropOperation: dropOperation , items: items } = e;
3250
3256
  let filteredItems = items;
3251
- if (acceptedDragTypes) filteredItems = items.filter((item)=>{
3257
+ if (acceptedDragTypes !== 'all' || shouldAcceptItemDrop) filteredItems = items.filter((item)=>{
3252
3258
  let itemTypes;
3253
3259
  if (item.kind === 'directory') itemTypes = new Set([
3254
- 'directory'
3260
+ $4620ae0dc40f0031$export$990fced5dfac2637
3255
3261
  ]);
3256
3262
  else itemTypes = item.kind === 'file' ? new Set([
3257
3263
  item.type
@@ -3265,37 +3271,30 @@ function $7f93a158ac20b90a$export$f4e2f423c21f7b04(props, state1, ref2) {
3265
3271
  }
3266
3272
  return false;
3267
3273
  });
3268
- if (target.type === 'root' && onRootDrop) await onRootDrop({
3269
- items: filteredItems,
3270
- dropOperation: dropOperation
3271
- });
3272
- if (target.type === 'item') {
3273
- if (target.dropPosition === 'on' && onItemDrop) await onItemDrop({
3274
+ if (filteredItems.length > 0) {
3275
+ if (target.type === 'root' && onRootDrop) await onRootDrop({
3274
3276
  items: filteredItems,
3275
- dropOperation: dropOperation,
3276
- isInternalDrop: isInternalDrop,
3277
- target: {
3278
- key: target.key,
3279
- dropPosition: 'on'
3280
- }
3277
+ dropOperation: dropOperation
3281
3278
  });
3282
- if (target.dropPosition !== 'on') {
3283
- if (!isInternalDrop && onInsert) await onInsert({
3279
+ if (target.type === 'item') {
3280
+ if (target.dropPosition === 'on' && onItemDrop) await onItemDrop({
3284
3281
  items: filteredItems,
3285
3282
  dropOperation: dropOperation,
3286
- target: {
3287
- key: target.key,
3288
- dropPosition: target.dropPosition
3289
- }
3290
- });
3291
- if (isInternalDrop && onReorder) await onReorder({
3292
- keys: draggingKeys,
3293
- dropOperation: dropOperation,
3294
- target: {
3295
- key: target.key,
3296
- dropPosition: target.dropPosition
3297
- }
3283
+ isInternal: isInternal,
3284
+ target: target
3298
3285
  });
3286
+ if (target.dropPosition !== 'on') {
3287
+ if (!isInternal && onInsert) await onInsert({
3288
+ items: filteredItems,
3289
+ dropOperation: dropOperation,
3290
+ target: target
3291
+ });
3292
+ if (isInternal && onReorder) await onReorder({
3293
+ keys: draggingKeys,
3294
+ dropOperation: dropOperation,
3295
+ target: target
3296
+ });
3297
+ }
3299
3298
  }
3300
3299
  }
3301
3300
  }, [
@@ -3313,13 +3312,13 @@ function $7f93a158ac20b90a$export$f4e2f423c21f7b04(props, state1, ref2) {
3313
3312
  autoScroll.move(e.x, e.y);
3314
3313
  },
3315
3314
  getDropOperationForPoint (types, allowedOperations, x, y) {
3316
- let { draggingCollectionRef: draggingCollectionRef , draggingKeys: draggingKeys , dropCollectionRef: dropCollectionRef } = $4620ae0dc40f0031$export$6ca6700462636d0b;
3317
- let isInternalDrop = (draggingCollectionRef === null || draggingCollectionRef === void 0 ? void 0 : draggingCollectionRef.current) != null && (draggingCollectionRef === null || draggingCollectionRef === void 0 ? void 0 : draggingCollectionRef.current) === (ref2 === null || ref2 === void 0 ? void 0 : ref2.current);
3315
+ let { draggingKeys: draggingKeys , dropCollectionRef: dropCollectionRef } = $4620ae0dc40f0031$export$6ca6700462636d0b;
3316
+ let isInternal = $4620ae0dc40f0031$export$78bf638634500fa5(ref2);
3318
3317
  let isValidDropTarget = (target)=>state1.getDropOperation({
3319
3318
  target: target,
3320
3319
  types: types,
3321
3320
  allowedOperations: allowedOperations,
3322
- isInternalDrop: isInternalDrop,
3321
+ isInternal: isInternal,
3323
3322
  draggingKeys: draggingKeys
3324
3323
  }) !== 'cancel'
3325
3324
  ;
@@ -3333,7 +3332,7 @@ function $7f93a158ac20b90a$export$f4e2f423c21f7b04(props, state1, ref2) {
3333
3332
  target: target1,
3334
3333
  types: types,
3335
3334
  allowedOperations: allowedOperations,
3336
- isInternalDrop: isInternalDrop,
3335
+ isInternal: isInternal,
3337
3336
  draggingKeys: draggingKeys
3338
3337
  });
3339
3338
  // If the target doesn't accept the drop, see if the root accepts it instead.
@@ -3345,7 +3344,7 @@ function $7f93a158ac20b90a$export$f4e2f423c21f7b04(props, state1, ref2) {
3345
3344
  target: rootTarget,
3346
3345
  types: types,
3347
3346
  allowedOperations: allowedOperations,
3348
- isInternalDrop: isInternalDrop,
3347
+ isInternal: isInternal,
3349
3348
  draggingKeys: draggingKeys
3350
3349
  });
3351
3350
  if (dropOperation !== 'cancel') {
@@ -3514,8 +3513,8 @@ function $7f93a158ac20b90a$export$f4e2f423c21f7b04(props, state1, ref2) {
3514
3513
  let nextValidTarget = (target, types, allowedDropOperations, getNextTarget, wrap = true)=>{
3515
3514
  let seenRoot = 0;
3516
3515
  let operation;
3517
- let { draggingCollectionRef: draggingCollectionRef , draggingKeys: draggingKeys } = $4620ae0dc40f0031$export$6ca6700462636d0b;
3518
- let isInternalDrop = (draggingCollectionRef === null || draggingCollectionRef === void 0 ? void 0 : draggingCollectionRef.current) != null && (draggingCollectionRef === null || draggingCollectionRef === void 0 ? void 0 : draggingCollectionRef.current) === (ref2 === null || ref2 === void 0 ? void 0 : ref2.current);
3516
+ let { draggingKeys: draggingKeys } = $4620ae0dc40f0031$export$6ca6700462636d0b;
3517
+ let isInternal = $4620ae0dc40f0031$export$78bf638634500fa5(ref2);
3519
3518
  do {
3520
3519
  let nextTarget = getNextTarget(target, wrap);
3521
3520
  if (!nextTarget) return null;
@@ -3524,7 +3523,7 @@ function $7f93a158ac20b90a$export$f4e2f423c21f7b04(props, state1, ref2) {
3524
3523
  target: nextTarget,
3525
3524
  types: types,
3526
3525
  allowedOperations: allowedDropOperations,
3527
- isInternalDrop: isInternalDrop,
3526
+ isInternal: isInternal,
3528
3527
  draggingKeys: draggingKeys
3529
3528
  });
3530
3529
  if (target.type === 'root') seenRoot++;
@@ -3536,13 +3535,13 @@ function $7f93a158ac20b90a$export$f4e2f423c21f7b04(props, state1, ref2) {
3536
3535
  element: ref2.current,
3537
3536
  getDropOperation (types, allowedOperations) {
3538
3537
  if (localState.state.target) {
3539
- let { draggingCollectionRef: draggingCollectionRef , draggingKeys: draggingKeys } = $4620ae0dc40f0031$export$6ca6700462636d0b;
3540
- let isInternalDrop = (draggingCollectionRef === null || draggingCollectionRef === void 0 ? void 0 : draggingCollectionRef.current) != null && (draggingCollectionRef === null || draggingCollectionRef === void 0 ? void 0 : draggingCollectionRef.current) === (ref2 === null || ref2 === void 0 ? void 0 : ref2.current);
3538
+ let { draggingKeys: draggingKeys } = $4620ae0dc40f0031$export$6ca6700462636d0b;
3539
+ let isInternal = $4620ae0dc40f0031$export$78bf638634500fa5(ref2);
3541
3540
  return localState.state.getDropOperation({
3542
3541
  target: localState.state.target,
3543
3542
  types: types,
3544
3543
  allowedOperations: allowedOperations,
3545
- isInternalDrop: isInternalDrop,
3544
+ isInternal: isInternal,
3546
3545
  draggingKeys: draggingKeys
3547
3546
  });
3548
3547
  }
@@ -3555,7 +3554,7 @@ function $7f93a158ac20b90a$export$f4e2f423c21f7b04(props, state1, ref2) {
3555
3554
  let types = $4620ae0dc40f0031$export$e1d41611756c6326(drag.items);
3556
3555
  let selectionManager = localState.state.selectionManager;
3557
3556
  let target;
3558
- // Update the drop collection ref tracker for useDroppableItem's getDropOperation isInternalDrop check
3557
+ // Update the drop collection ref tracker for useDroppableItem's getDropOperation isInternal check
3559
3558
  $4620ae0dc40f0031$export$dac8db29d42db9a1(ref2);
3560
3559
  // When entering the droppable collection for the first time, the default drop target
3561
3560
  // is after the focused key.
@@ -3579,15 +3578,15 @@ function $7f93a158ac20b90a$export$f4e2f423c21f7b04(props, state1, ref2) {
3579
3578
  key: key,
3580
3579
  dropPosition: dropPosition
3581
3580
  };
3582
- let { draggingCollectionRef: draggingCollectionRef , draggingKeys: draggingKeys } = $4620ae0dc40f0031$export$6ca6700462636d0b;
3583
- let isInternalDrop = (draggingCollectionRef === null || draggingCollectionRef === void 0 ? void 0 : draggingCollectionRef.current) != null && (draggingCollectionRef === null || draggingCollectionRef === void 0 ? void 0 : draggingCollectionRef.current) === (ref2 === null || ref2 === void 0 ? void 0 : ref2.current);
3581
+ let { draggingKeys: draggingKeys } = $4620ae0dc40f0031$export$6ca6700462636d0b;
3582
+ let isInternal = $4620ae0dc40f0031$export$78bf638634500fa5(ref2);
3584
3583
  var ref;
3585
3584
  // If the default target is not valid, find the next one that is.
3586
3585
  if (localState.state.getDropOperation({
3587
3586
  target: target,
3588
3587
  types: types,
3589
3588
  allowedOperations: drag.allowedDropOperations,
3590
- isInternalDrop: isInternalDrop,
3589
+ isInternal: isInternal,
3591
3590
  draggingKeys: draggingKeys
3592
3591
  }) === 'cancel') target = (ref = nextValidTarget(target, types, drag.allowedDropOperations, getNextTarget1, false)) !== null && ref !== void 0 ? ref : nextValidTarget(target, types, drag.allowedDropOperations, getPreviousTarget, false);
3593
3592
  }
@@ -3664,12 +3663,12 @@ function $7f93a158ac20b90a$export$f4e2f423c21f7b04(props, state1, ref2) {
3664
3663
  // If the target does not accept the drop, find the next valid target.
3665
3664
  // If no next valid target, find the previous valid target.
3666
3665
  let { draggingCollectionRef: draggingCollectionRef , draggingKeys: draggingKeys } = $4620ae0dc40f0031$export$6ca6700462636d0b;
3667
- let isInternalDrop = (draggingCollectionRef === null || draggingCollectionRef === void 0 ? void 0 : draggingCollectionRef.current) === (ref2 === null || ref2 === void 0 ? void 0 : ref2.current);
3666
+ let isInternal = (draggingCollectionRef === null || draggingCollectionRef === void 0 ? void 0 : draggingCollectionRef.current) === (ref2 === null || ref2 === void 0 ? void 0 : ref2.current);
3668
3667
  let operation = localState.state.getDropOperation({
3669
3668
  target: target,
3670
3669
  types: types,
3671
3670
  allowedOperations: drag.allowedDropOperations,
3672
- isInternalDrop: isInternalDrop,
3671
+ isInternal: isInternal,
3673
3672
  draggingKeys: draggingKeys
3674
3673
  });
3675
3674
  var ref;
@@ -3703,13 +3702,13 @@ function $7f93a158ac20b90a$export$f4e2f423c21f7b04(props, state1, ref2) {
3703
3702
  }
3704
3703
  // If the target does not accept the drop, find the previous valid target.
3705
3704
  // If no next valid target, find the next valid target.
3706
- let { draggingCollectionRef: draggingCollectionRef , draggingKeys: draggingKeys } = $4620ae0dc40f0031$export$6ca6700462636d0b;
3707
- let isInternalDrop = (draggingCollectionRef === null || draggingCollectionRef === void 0 ? void 0 : draggingCollectionRef.current) != null && (draggingCollectionRef === null || draggingCollectionRef === void 0 ? void 0 : draggingCollectionRef.current) === (ref2 === null || ref2 === void 0 ? void 0 : ref2.current);
3705
+ let { draggingKeys: draggingKeys } = $4620ae0dc40f0031$export$6ca6700462636d0b;
3706
+ let isInternal = $4620ae0dc40f0031$export$78bf638634500fa5(ref2);
3708
3707
  let operation = localState.state.getDropOperation({
3709
3708
  target: target,
3710
3709
  types: types,
3711
3710
  allowedOperations: drag.allowedDropOperations,
3712
- isInternalDrop: isInternalDrop,
3711
+ isInternal: isInternal,
3713
3712
  draggingKeys: draggingKeys
3714
3713
  });
3715
3714
  var ref4;
@@ -3749,13 +3748,13 @@ function $fc1876157e07bcec$export$f7b0c5d28b66b6a5(options, state, ref) {
3749
3748
  element: ref.current,
3750
3749
  target: options.target,
3751
3750
  getDropOperation (types, allowedOperations) {
3752
- let { draggingCollectionRef: draggingCollectionRef , draggingKeys: draggingKeys , dropCollectionRef: dropCollectionRef } = $4620ae0dc40f0031$export$6ca6700462636d0b;
3753
- let isInternalDrop = (draggingCollectionRef === null || draggingCollectionRef === void 0 ? void 0 : draggingCollectionRef.current) != null && (draggingCollectionRef === null || draggingCollectionRef === void 0 ? void 0 : draggingCollectionRef.current) === (dropCollectionRef === null || dropCollectionRef === void 0 ? void 0 : dropCollectionRef.current);
3751
+ let { draggingKeys: draggingKeys } = $4620ae0dc40f0031$export$6ca6700462636d0b;
3752
+ let isInternal = $4620ae0dc40f0031$export$78bf638634500fa5();
3754
3753
  return state.getDropOperation({
3755
3754
  target: options.target,
3756
3755
  types: types,
3757
3756
  allowedOperations: allowedOperations,
3758
- isInternalDrop: isInternalDrop,
3757
+ isInternal: isInternal,
3759
3758
  draggingKeys: draggingKeys
3760
3759
  });
3761
3760
  }
@@ -3766,13 +3765,13 @@ function $fc1876157e07bcec$export$f7b0c5d28b66b6a5(options, state, ref) {
3766
3765
  state
3767
3766
  ]);
3768
3767
  let dragSession = $28e10663603f5ea1$export$418e185dd3f1b968();
3769
- let { draggingCollectionRef: draggingCollectionRef1 , draggingKeys: draggingKeys1 , dropCollectionRef: dropCollectionRef1 } = $4620ae0dc40f0031$export$6ca6700462636d0b;
3770
- let isInternalDrop1 = (draggingCollectionRef1 === null || draggingCollectionRef1 === void 0 ? void 0 : draggingCollectionRef1.current) != null && (draggingCollectionRef1 === null || draggingCollectionRef1 === void 0 ? void 0 : draggingCollectionRef1.current) === (dropCollectionRef1 === null || dropCollectionRef1 === void 0 ? void 0 : dropCollectionRef1.current);
3768
+ let { draggingKeys: draggingKeys1 } = $4620ae0dc40f0031$export$6ca6700462636d0b;
3769
+ let isInternal1 = $4620ae0dc40f0031$export$78bf638634500fa5();
3771
3770
  let isValidDropTarget = dragSession && state.getDropOperation({
3772
3771
  target: options.target,
3773
3772
  types: $4620ae0dc40f0031$export$e1d41611756c6326(dragSession.dragTarget.items),
3774
3773
  allowedOperations: dragSession.dragTarget.allowedDropOperations,
3775
- isInternalDrop: isInternalDrop1,
3774
+ isInternal: isInternal1,
3776
3775
  draggingKeys: draggingKeys1
3777
3776
  }) !== 'cancel';
3778
3777
  let isDropTarget = state.isDropTarget(options.target);
@@ -3892,12 +3891,12 @@ function $0cbbd00cda972c67$export$b35afafff42da2d9(props, state) {
3892
3891
  state.moveDrag(e);
3893
3892
  },
3894
3893
  onDragEnd (e) {
3895
- let { draggingCollectionRef: draggingCollectionRef , dropCollectionRef: dropCollectionRef } = $4620ae0dc40f0031$export$6ca6700462636d0b;
3896
- let isInternalDrop = (draggingCollectionRef === null || draggingCollectionRef === void 0 ? void 0 : draggingCollectionRef.current) != null && draggingCollectionRef.current === (dropCollectionRef === null || dropCollectionRef === void 0 ? void 0 : dropCollectionRef.current);
3894
+ let { dropOperation: dropOperation } = e;
3895
+ let isInternal = dropOperation === 'cancel' ? false : $4620ae0dc40f0031$export$78bf638634500fa5();
3897
3896
  state.endDrag({
3898
3897
  ...e,
3899
3898
  keys: state.draggingKeys,
3900
- isInternalDrop: isInternalDrop
3899
+ isInternal: isInternal
3901
3900
  });
3902
3901
  $4620ae0dc40f0031$export$70936501603e6c57();
3903
3902
  }