@noya-app/noya-file-explorer 0.0.9 → 0.0.10
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/.turbo/turbo-build.log +9 -9
- package/CHANGELOG.md +11 -0
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/MediaCollection.tsx +8 -12
package/dist/index.mjs
CHANGED
|
@@ -2055,7 +2055,13 @@ var MediaCollection = memo(
|
|
|
2055
2055
|
);
|
|
2056
2056
|
return parentIndex === -1 ? void 0 : parentIndex;
|
|
2057
2057
|
},
|
|
2058
|
-
acceptsDrop: (
|
|
2058
|
+
acceptsDrop: ({
|
|
2059
|
+
sourceIndex,
|
|
2060
|
+
targetIndex,
|
|
2061
|
+
position,
|
|
2062
|
+
sourceListId,
|
|
2063
|
+
targetListId
|
|
2064
|
+
}) => {
|
|
2059
2065
|
if (sourceListId !== targetListId) {
|
|
2060
2066
|
return false;
|
|
2061
2067
|
}
|
|
@@ -2078,7 +2084,7 @@ var MediaCollection = memo(
|
|
|
2078
2084
|
}
|
|
2079
2085
|
return true;
|
|
2080
2086
|
},
|
|
2081
|
-
onMoveItem: (sourceIndex, targetIndex, position) => {
|
|
2087
|
+
onMoveItem: ({ sourceIndex, targetIndex, position }) => {
|
|
2082
2088
|
const sourceItem = visibleItems[sourceIndex];
|
|
2083
2089
|
const targetItem = visibleItems[targetIndex];
|
|
2084
2090
|
if (position === "inside") {
|