@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.
- package/components/ControlledImage/ControlledImage.d.ts +10 -0
- package/components/FolderTree/FolderTree.d.ts +1 -1
- package/components/ImageIcons/IconsGrid.d.ts +3 -3
- package/file-manager.css +21 -0
- package/file-manager.esm.js +8 -23
- package/file-manager.js +1 -1
- package/file-manager.js.LICENSE.txt +0 -15
- package/hooks/index.d.ts +2 -0
- package/hooks/notifications/notificationDedupe.d.ts +6 -0
- package/hooks/useControlledImageLoader.d.ts +18 -0
- package/hooks/useViewportMetricsSync.d.ts +2 -0
- package/index.d.ts +1 -1
- package/notification.d.ts +9 -0
- package/package.json +1 -1
- package/presentation/file-list/FileListAdapter.d.ts +2 -1
- package/presentation/file-list/types.d.ts +1 -0
- package/presentation/file-list/useFileListEngine.d.ts +1 -1
- package/presentation/list-core/types.d.ts +22 -1
- package/presentation/media-list/MediaListAdapter.d.ts +9 -0
- package/presentation/media-list/types.d.ts +8 -0
- package/presentation/media-list/useMediaListEngine.d.ts +34 -0
- package/types.d.ts +35 -1
- package/utils/jsonDataProvider.d.ts +2 -1
- package/utils/nameNormalization.d.ts +2 -1
- package/utils/resolveItemMeta.d.ts +9 -0
|
@@ -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
|
-
|
|
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;
|