@noya-app/noya-file-explorer 0.0.7 → 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.
@@ -8,17 +8,17 @@
8
8
  CLI Target: esnext
9
9
  CJS Build start
10
10
  ESM Build start
11
- CJS dist/index.js 78.11 KB
12
- CJS dist/index.css 44.07 KB
13
- CJS dist/index.js.map 132.53 KB
14
- CJS dist/index.css.map 68.44 KB
15
- CJS ⚡️ Build success in 260ms
11
+ ESM dist/index.mjs 75.40 KB
16
12
  ESM dist/index.css 44.07 KB
17
- ESM dist/index.mjs 75.20 KB
13
+ ESM dist/index.mjs.map 131.92 KB
18
14
  ESM dist/index.css.map 68.44 KB
19
- ESM dist/index.mjs.map 131.47 KB
20
- ESM ⚡️ Build success in 261ms
15
+ ESM ⚡️ Build success in 159ms
16
+ CJS dist/index.js 78.31 KB
17
+ CJS dist/index.css 44.07 KB
18
+ CJS dist/index.js.map 132.98 KB
19
+ CJS dist/index.css.map 68.44 KB
20
+ CJS ⚡️ Build success in 159ms
21
21
  DTS Build start
22
- DTS ⚡️ Build success in 10082ms
22
+ DTS ⚡️ Build success in 11668ms
23
23
  DTS dist/index.d.ts 1.65 MB
24
24
  DTS dist/index.d.mts 1.65 MB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @noya-app/noya-file-explorer
2
2
 
3
+ ## 0.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - 9e59d48: Drag improvements
8
+ - Updated dependencies [9e59d48]
9
+ - @noya-app/noya-designsystem@0.1.57
10
+
11
+ ## 0.0.8
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [7e35a6b]
16
+ - @noya-app/noya-designsystem@0.1.56
17
+ - @noya-app/noya-icons@0.1.10
18
+
3
19
  ## 0.0.7
4
20
 
5
21
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -35172,6 +35172,6 @@ declare const MediaCollection: React.MemoExoticComponent<React.ForwardRefExoticC
35172
35172
  id: string;
35173
35173
  kind: "file";
35174
35174
  encoding: "utf-8" | "base64";
35175
- }, MenuAction>, "size" | "scrollable" | "renderEmptyState" | "expandable" | "renamable"> & React.RefAttributes<MediaCollectionRef>>>;
35175
+ }, MenuAction>, "size" | "scrollable" | "renderEmptyState" | "sharedDragProps" | "expandable" | "sortableId" | "renamable"> & React.RefAttributes<MediaCollectionRef>>>;
35176
35176
 
35177
35177
  export { type ExpandedMap, type FileKindFilter, type GetVisibleItemsOptions, MediaCollection, type MediaCollectionRef, type MediaItemTree, PLACEHOLDER_ITEM_NAME, basenameValidator, createMediaAsset, createMediaFile, createMediaFolder, createMediaItem, createMediaItemTree, deleteMediaItems, getDepthMap, getParentDirectories, getVisibleItems, moveMediaInsideFolder, movePathsIntoTarget, moveUpAFolder, renameMediaItemAndDescendantPaths, rootMediaItem, rootMediaItemName, rootMediaItemPath, updateExpandedMap, validateMediaItemRename };
package/dist/index.d.ts CHANGED
@@ -35172,6 +35172,6 @@ declare const MediaCollection: React.MemoExoticComponent<React.ForwardRefExoticC
35172
35172
  id: string;
35173
35173
  kind: "file";
35174
35174
  encoding: "utf-8" | "base64";
35175
- }, MenuAction>, "size" | "scrollable" | "renderEmptyState" | "expandable" | "renamable"> & React.RefAttributes<MediaCollectionRef>>>;
35175
+ }, MenuAction>, "size" | "scrollable" | "renderEmptyState" | "sharedDragProps" | "expandable" | "sortableId" | "renamable"> & React.RefAttributes<MediaCollectionRef>>>;
35176
35176
 
35177
35177
  export { type ExpandedMap, type FileKindFilter, type GetVisibleItemsOptions, MediaCollection, type MediaCollectionRef, type MediaItemTree, PLACEHOLDER_ITEM_NAME, basenameValidator, createMediaAsset, createMediaFile, createMediaFolder, createMediaItem, createMediaItemTree, deleteMediaItems, getDepthMap, getParentDirectories, getVisibleItems, moveMediaInsideFolder, movePathsIntoTarget, moveUpAFolder, renameMediaItemAndDescendantPaths, rootMediaItem, rootMediaItemName, rootMediaItemPath, updateExpandedMap, validateMediaItemRename };
package/dist/index.js CHANGED
@@ -1505,6 +1505,7 @@ var MediaThumbnailInternal = (0, import_react_utils.memoGeneric)(
1505
1505
  );
1506
1506
  var MediaCollection = (0, import_react.memo)(
1507
1507
  (0, import_react.forwardRef)(function MediaCollection2({
1508
+ sortableId,
1508
1509
  onSelectionChange,
1509
1510
  selectedIds: selectedIdsProp,
1510
1511
  media,
@@ -1527,7 +1528,8 @@ var MediaCollection = (0, import_react.memo)(
1527
1528
  showAllDescendants = true,
1528
1529
  scrollable = false,
1529
1530
  sortable = false,
1530
- renderEmptyState
1531
+ renderEmptyState,
1532
+ sharedDragProps
1531
1533
  }, ref) {
1532
1534
  const setMedia = (0, import_react.useCallback)(
1533
1535
  (...args) => {
@@ -1989,7 +1991,9 @@ var MediaCollection = (0, import_react.memo)(
1989
1991
  import_noya_designsystem.FileExplorerCollection,
1990
1992
  {
1991
1993
  ref: collectionRef,
1994
+ sortableId,
1992
1995
  scrollable,
1996
+ sharedDragProps,
1993
1997
  items: visibleItems,
1994
1998
  viewType,
1995
1999
  size,
@@ -2048,7 +2052,10 @@ var MediaCollection = (0, import_react.memo)(
2048
2052
  );
2049
2053
  return parentIndex === -1 ? void 0 : parentIndex;
2050
2054
  },
2051
- acceptsDrop: (sourceIndex, targetIndex, position) => {
2055
+ acceptsDrop: (sourceIndex, targetIndex, position, sourceListId, targetListId) => {
2056
+ if (sourceListId !== targetListId) {
2057
+ return false;
2058
+ }
2052
2059
  const sourceItem = visibleItems[sourceIndex];
2053
2060
  const targetItem = visibleItems[targetIndex];
2054
2061
  if (position !== "inside" || targetItem.kind === "asset") {