@emailmaker/filemanager 0.10.45 → 0.10.46
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/FileManagerApp/ActionsHeader.d.ts +2 -0
- package/file-manager.css +9 -1
- package/file-manager.d.ts +2 -0
- package/file-manager.esm.js +9 -9
- package/file-manager.esm.js.map +1 -1
- package/file-manager.js +1 -1
- package/package.json +1 -1
- package/shared/config.d.ts +1 -0
- package/types.d.ts +4 -0
- package/utils/cacheClear.d.ts +8 -0
package/package.json
CHANGED
package/shared/config.d.ts
CHANGED
package/types.d.ts
CHANGED
|
@@ -83,6 +83,7 @@ export interface ApiEndpoints {
|
|
|
83
83
|
renameFile?: string;
|
|
84
84
|
moveFile?: string;
|
|
85
85
|
updateFile?: string;
|
|
86
|
+
clearCache?: string;
|
|
86
87
|
}
|
|
87
88
|
export interface IconProps {
|
|
88
89
|
style?: React.CSSProperties;
|
|
@@ -125,6 +126,7 @@ export interface FileManagerOptions {
|
|
|
125
126
|
renameFile?: string;
|
|
126
127
|
moveFile?: string;
|
|
127
128
|
updateFile?: string;
|
|
129
|
+
clearCache?: string;
|
|
128
130
|
};
|
|
129
131
|
dataProviders?: FileManagerDataProviders;
|
|
130
132
|
searchQuery?: string;
|
|
@@ -263,6 +265,7 @@ export interface FileManagerDataProviders {
|
|
|
263
265
|
aspectRatio?: string;
|
|
264
266
|
extension?: string;
|
|
265
267
|
}) => Promise<File>;
|
|
268
|
+
clearCache?: (pathFolder?: string | null) => Promise<void>;
|
|
266
269
|
}
|
|
267
270
|
export interface FileManagerHookReturn {
|
|
268
271
|
folders: Folder[];
|
|
@@ -537,6 +540,7 @@ export interface FileManagerProps {
|
|
|
537
540
|
renameFile?: string;
|
|
538
541
|
moveFile?: string;
|
|
539
542
|
updateFile?: string;
|
|
543
|
+
clearCache?: string;
|
|
540
544
|
};
|
|
541
545
|
customIcons?: CustomIcons;
|
|
542
546
|
dragDropIcon?: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FileManagerDataProviders, FileManagerOptions, PathItem } from '../types';
|
|
2
|
+
export declare const resolveCachePathForError: (error: unknown, pathHistory: PathItem[]) => string;
|
|
3
|
+
export declare const getPathFromHistory: (pathHistory: PathItem[]) => string;
|
|
4
|
+
export declare const clearFolderCache: (params: {
|
|
5
|
+
options: FileManagerOptions;
|
|
6
|
+
pathFolder: string;
|
|
7
|
+
dataProviders?: FileManagerDataProviders;
|
|
8
|
+
}) => Promise<void>;
|