@emailmaker/filemanager 1.1.85-dev.7 → 1.1.85-dev.9
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/.build-meta.json +1 -1
- package/file-manager-FilerobotEditor.js +2 -2
- package/file-manager-IconsTab.js +2 -2
- package/file-manager-ImageCodeGenerator.js +1 -1
- package/{file-manager-hooks-sL2VIffX.js → file-manager-hooks-fhltHD9p.js} +447 -421
- package/{file-manager-imageEditorTranslations-ClA7N5OU.js → file-manager-imageEditorTranslations-rRWZAwnp.js} +2 -2
- package/{file-manager-urls-DVGJqxB5.js → file-manager-urls-BpPtVuK4.js} +2 -2
- package/file-manager.esm.js +1809 -1810
- package/file-manager.js +11 -11
- package/package.json +1 -1
- package/utils/imageCompression.d.ts +5 -0
- package/utils/imageCompression.editedImage.test.d.ts +1 -0
- package/utils/libraryTabRequest.d.ts +7 -0
- package/utils/libraryTabRequest.test.d.ts +1 -0
package/package.json
CHANGED
|
@@ -10,3 +10,8 @@ export interface PrepareImageForUploadOptions {
|
|
|
10
10
|
}
|
|
11
11
|
export declare function prepareImageForUpload(file: File, options?: PrepareImageForUploadOptions): Promise<File>;
|
|
12
12
|
export declare const compressImageWithLimits: typeof prepareImageForUpload;
|
|
13
|
+
/**
|
|
14
|
+
* Prepares an image editor result for upload: downscales only beyond maxWidthOrHeight and ignores the size limit,
|
|
15
|
+
* because re-running the upload compression on every save shrank the resolution and coarsened PNGs each time.
|
|
16
|
+
*/
|
|
17
|
+
export declare function prepareEditedImageForUpload(file: File, options?: PrepareImageForUploadOptions): Promise<File>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { LibraryMenuKey } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* resolveLibraryTabRequest returns the tab to switch to when the host's requested tab changes, or
|
|
4
|
+
* undefined when there is nothing to apply. The request is a command, not a state to hold: repeating
|
|
5
|
+
* it on every config rebuild would pull the user away from a tab they opened themselves.
|
|
6
|
+
*/
|
|
7
|
+
export declare function resolveLibraryTabRequest(appliedRequest: LibraryMenuKey | undefined, nextRequest: LibraryMenuKey | undefined, isOpenable: (tab: LibraryMenuKey) => boolean): LibraryMenuKey | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|