@noya-app/noya-file-explorer 0.0.8 → 0.0.9

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/index.mjs CHANGED
@@ -1508,6 +1508,7 @@ var MediaThumbnailInternal = memoGeneric(
1508
1508
  );
1509
1509
  var MediaCollection = memo(
1510
1510
  forwardRef(function MediaCollection2({
1511
+ sortableId,
1511
1512
  onSelectionChange,
1512
1513
  selectedIds: selectedIdsProp,
1513
1514
  media,
@@ -1530,7 +1531,8 @@ var MediaCollection = memo(
1530
1531
  showAllDescendants = true,
1531
1532
  scrollable = false,
1532
1533
  sortable = false,
1533
- renderEmptyState
1534
+ renderEmptyState,
1535
+ sharedDragProps
1534
1536
  }, ref) {
1535
1537
  const setMedia = useCallback(
1536
1538
  (...args) => {
@@ -1992,7 +1994,9 @@ var MediaCollection = memo(
1992
1994
  FileExplorerCollection,
1993
1995
  {
1994
1996
  ref: collectionRef,
1997
+ sortableId,
1995
1998
  scrollable,
1999
+ sharedDragProps,
1996
2000
  items: visibleItems,
1997
2001
  viewType,
1998
2002
  size,
@@ -2051,7 +2055,10 @@ var MediaCollection = memo(
2051
2055
  );
2052
2056
  return parentIndex === -1 ? void 0 : parentIndex;
2053
2057
  },
2054
- acceptsDrop: (sourceIndex, targetIndex, position) => {
2058
+ acceptsDrop: (sourceIndex, targetIndex, position, sourceListId, targetListId) => {
2059
+ if (sourceListId !== targetListId) {
2060
+ return false;
2061
+ }
2055
2062
  const sourceItem = visibleItems[sourceIndex];
2056
2063
  const targetItem = visibleItems[targetIndex];
2057
2064
  if (position !== "inside" || targetItem.kind === "asset") {