@emailmaker/filemanager 0.0.5 → 0.0.6
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/FileManagerApp.d.ts +1 -1
- package/components/PixieEditor/PixieEditorIframe.d.ts +1 -1
- package/file-manager.d.ts +2 -0
- package/file-manager.esm.js +16 -12
- package/file-manager.esm.js.map +1 -1
- package/file-manager.js +1 -1
- package/hooks/usePixieEditor.d.ts +1 -1
- package/package.json +1 -1
- package/types.d.ts +2 -0
|
@@ -9,7 +9,7 @@ export declare const usePixieEditor: ({ files, selectedFiles, fetchFiles, select
|
|
|
9
9
|
isPixieEditorVisible: boolean;
|
|
10
10
|
editingFile: ThumbnailFile | AppFile | null;
|
|
11
11
|
handleEdit: (fileForEdit?: ThumbnailFile | AppFile) => void;
|
|
12
|
-
handlePixieEditorSave: (updatedFile: AppFile) => Promise<
|
|
12
|
+
handlePixieEditorSave: (updatedFile: AppFile) => Promise<AppFile | undefined>;
|
|
13
13
|
handlePixieEditorClose: () => void;
|
|
14
14
|
};
|
|
15
15
|
export {};
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -117,6 +117,7 @@ export interface FileManagerOptions {
|
|
|
117
117
|
sortBySize?: string;
|
|
118
118
|
onPathChange?: (path: string[]) => void;
|
|
119
119
|
onChangeSelection?: (files: File[]) => void;
|
|
120
|
+
onEditorOk?: (file: File) => void;
|
|
120
121
|
config?: Config;
|
|
121
122
|
publicPath?: string;
|
|
122
123
|
customIcons?: CustomIcons;
|
|
@@ -411,6 +412,7 @@ export interface FileManagerProps {
|
|
|
411
412
|
currentPath?: string;
|
|
412
413
|
onPathChange?: (path: string[]) => void;
|
|
413
414
|
onChangeSelection?: (files: File[]) => void;
|
|
415
|
+
onEditorOk?: (files: File) => void;
|
|
414
416
|
searchQuery?: string;
|
|
415
417
|
sortBySize?: string;
|
|
416
418
|
dataProviders?: FileManagerDataProviders;
|