@emailmaker/filemanager 0.10.69 → 0.10.70

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.
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { ControlledImageLoader } from '../../hooks/useControlledImageLoader';
3
+ export interface ControlledImageProps extends Omit<React.ImgHTMLAttributes<HTMLImageElement>, 'src'> {
4
+ imageId: string;
5
+ sourceUrl: string;
6
+ shouldLoad?: boolean;
7
+ loader: ControlledImageLoader;
8
+ }
9
+ export declare const ControlledImage: React.FC<ControlledImageProps>;
10
+ export default ControlledImage;
@@ -13,7 +13,7 @@ interface FolderTreeProps {
13
13
  fetchChildFolders?: (parentId: string | null) => Promise<Folder[]>;
14
14
  disabledFolders?: string[];
15
15
  showFileCounts?: boolean;
16
- folderFileCounts?: Record<string, number>;
16
+ folderFileCounts?: Record<string, number | null>;
17
17
  className?: string;
18
18
  expandedKeys?: Key[];
19
19
  setExpandedKeys?: (keys: Key[]) => void;
@@ -2,15 +2,15 @@ import React from 'react';
2
2
  import type { StreamlineSearchItem } from '../../types';
3
3
  export interface IconsGridProps {
4
4
  items: StreamlineSearchItem[];
5
- hasMore: boolean;
6
5
  loading: boolean;
6
+ isCollectingResults?: boolean;
7
+ hasMore?: boolean;
7
8
  hasQuery: boolean;
8
9
  mode: 'global' | 'family';
9
10
  selectedHash: string | null;
10
- onLoadMore: () => void;
11
11
  onItemClick: (item: StreamlineSearchItem) => void;
12
12
  onInsert: (item: StreamlineSearchItem) => void;
13
- scrollContainerRef: React.RefObject<HTMLDivElement>;
13
+ onLoadMore?: () => void;
14
14
  colorVars?: {
15
15
  colorHex: string;
16
16
  colorHex2: string;
package/file-manager.css CHANGED
@@ -1271,6 +1271,11 @@
1271
1271
  width: 100%;
1272
1272
  }
1273
1273
 
1274
+ .em-filemanager .virtualCanvas {
1275
+ position: relative;
1276
+ width: 100%;
1277
+ }
1278
+
1274
1279
  .em-filemanager .myMasonryGrid {
1275
1280
  display: flex;
1276
1281
  width: auto;
@@ -1442,6 +1447,11 @@
1442
1447
  line-height: calc(var(--formControlHeight) * 1px);
1443
1448
  }
1444
1449
 
1450
+ .em-filemanager .virtualCanvas {
1451
+ position: relative;
1452
+ width: 100%;
1453
+ }
1454
+
1445
1455
  .em-filemanager .blocksSearchDividerWrapper {
1446
1456
  margin: 0;
1447
1457
  }
@@ -2109,12 +2119,23 @@
2109
2119
  overflow: hidden !important;
2110
2120
  }
2111
2121
 
2122
+ .em-filemanager .iconsGridLoadingMore {
2123
+ display: flex;
2124
+ justify-content: center;
2125
+ padding: 16px 0;
2126
+ }
2127
+
2112
2128
  .em-filemanager .iconsGridGrid {
2113
2129
  display: grid;
2114
2130
  grid-template-columns: repeat(auto-fill, minmax(var(--icons-grid-min-col, 148px), 1fr));
2115
2131
  gap: 16px;
2116
2132
  }
2117
2133
 
2134
+ .em-filemanager .iconsGridVirtualCanvas {
2135
+ position: relative;
2136
+ width: 100%;
2137
+ }
2138
+
2118
2139
  .em-filemanager .iconsGridItem {
2119
2140
  position: relative;
2120
2141
  border-radius: 8px;