@noya-app/noya-file-explorer 0.0.9 → 0.0.11
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 +7 -7
- package/CHANGELOG.md +20 -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noya-app/noya-file-explorer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"dev": "npm run build:main -- --watch"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@noya-app/noya-designsystem": "0.1.
|
|
23
|
+
"@noya-app/noya-designsystem": "0.1.59",
|
|
24
24
|
"@noya-app/noya-icons": "0.1.10",
|
|
25
|
-
"@noya-app/noya-multiplayer-react": "0.1.
|
|
25
|
+
"@noya-app/noya-multiplayer-react": "0.1.59",
|
|
26
26
|
"@noya-app/noya-keymap": "0.1.3",
|
|
27
|
-
"@noya-app/react-utils": "0.1.
|
|
27
|
+
"@noya-app/react-utils": "0.1.20",
|
|
28
28
|
"@noya-app/noya-utils": "0.1.5",
|
|
29
29
|
"@noya-app/noya-schemas": "0.1.5",
|
|
30
30
|
"imfs": "^0.1.0",
|
package/src/MediaCollection.tsx
CHANGED
|
@@ -846,13 +846,13 @@ export const MediaCollection = memo(
|
|
|
846
846
|
);
|
|
847
847
|
return parentIndex === -1 ? undefined : parentIndex;
|
|
848
848
|
}}
|
|
849
|
-
acceptsDrop={(
|
|
850
|
-
sourceIndex
|
|
851
|
-
targetIndex
|
|
852
|
-
position
|
|
853
|
-
sourceListId
|
|
854
|
-
targetListId
|
|
855
|
-
) => {
|
|
849
|
+
acceptsDrop={({
|
|
850
|
+
sourceIndex,
|
|
851
|
+
targetIndex,
|
|
852
|
+
position,
|
|
853
|
+
sourceListId,
|
|
854
|
+
targetListId,
|
|
855
|
+
}) => {
|
|
856
856
|
if (sourceListId !== targetListId) {
|
|
857
857
|
return false;
|
|
858
858
|
}
|
|
@@ -882,11 +882,7 @@ export const MediaCollection = memo(
|
|
|
882
882
|
|
|
883
883
|
return true;
|
|
884
884
|
}}
|
|
885
|
-
onMoveItem={(
|
|
886
|
-
sourceIndex: number,
|
|
887
|
-
targetIndex: number,
|
|
888
|
-
position: string
|
|
889
|
-
) => {
|
|
885
|
+
onMoveItem={({ sourceIndex, targetIndex, position }) => {
|
|
890
886
|
const sourceItem = visibleItems[sourceIndex];
|
|
891
887
|
const targetItem = visibleItems[targetIndex];
|
|
892
888
|
if (position === "inside") {
|