@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.
@@ -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<void>;
12
+ handlePixieEditorSave: (updatedFile: AppFile) => Promise<AppFile | undefined>;
13
13
  handlePixieEditorClose: () => void;
14
14
  };
15
15
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emailmaker/filemanager",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "main": "./file-manager.js",
5
5
  "module": "./file-manager.esm.js",
6
6
  "types": "./index.d.ts",
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;