@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noya-app/noya-file-explorer",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
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.57",
23
+ "@noya-app/noya-designsystem": "0.1.58",
24
24
  "@noya-app/noya-icons": "0.1.10",
25
- "@noya-app/noya-multiplayer-react": "0.1.57",
25
+ "@noya-app/noya-multiplayer-react": "0.1.58",
26
26
  "@noya-app/noya-keymap": "0.1.3",
27
- "@noya-app/react-utils": "0.1.18",
27
+ "@noya-app/react-utils": "0.1.19",
28
28
  "@noya-app/noya-utils": "0.1.5",
29
29
  "@noya-app/noya-schemas": "0.1.5",
30
30
  "imfs": "^0.1.0",
@@ -846,13 +846,13 @@ export const MediaCollection = memo(
846
846
  );
847
847
  return parentIndex === -1 ? undefined : parentIndex;
848
848
  }}
849
- acceptsDrop={(
850
- sourceIndex: number,
851
- targetIndex: number,
852
- position: string,
853
- sourceListId: string,
854
- targetListId: string
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") {