@emailmaker/filemanager 0.0.6 → 0.0.8
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/app/themeProvider/ThemeProvider.d.ts +4 -2
- package/components/EmIcons/EmIcons.d.ts +2 -0
- package/components/FileManagerApp/FileManagerApp.d.ts +2 -2
- package/components/FileModals/FileModals.d.ts +3 -0
- package/components/PixieEditor/PixieEditor.d.ts +10 -0
- package/components/PixieEditor/index.d.ts +1 -1
- package/file-manager.css +647 -726
- package/file-manager.d.ts +35 -2
- package/file-manager.esm.js +85 -27104
- package/file-manager.esm.js.map +1 -1
- package/file-manager.js +1 -1
- package/file-manager.js.LICENSE.txt +87 -0
- package/hooks/core/files/useFilesModals.d.ts +3 -0
- package/hooks/core/types.d.ts +5 -0
- package/hooks/core/useFiles.d.ts +3 -0
- package/hooks/useFileActions.d.ts +2 -1
- package/hooks/useNotifications.d.ts +2 -2
- package/index.d.ts +10 -2
- package/mockServiceWorker.js +1 -1
- package/package.json +1 -1
- package/types.d.ts +14 -30
- package/utils/jsonDataProvider.d.ts +10 -0
- package/utils/themeUtils.d.ts +4 -13
- package/components/PixieEditor/PixieEditorIframe.d.ts +0 -10
- package/pixie-editor.html +0 -187
package/file-manager.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Config, CustomIcons, File, FileManagerDataProviders, ThumbnailFile } from './types';
|
|
2
3
|
import 'antd/dist/reset.css';
|
|
3
4
|
import './styles/index.scss';
|
|
4
5
|
export declare const FileManagerAppWithContext: (props: FileManagerAppProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,8 +9,10 @@ export interface Options {
|
|
|
8
9
|
currentPath?: string;
|
|
9
10
|
onPathChange?: (path: string[]) => void;
|
|
10
11
|
onEditorOk?: (file: File) => void;
|
|
12
|
+
onChangeSelection?: (files: File[]) => void;
|
|
11
13
|
searchQuery?: string;
|
|
12
14
|
sortBySize?: string;
|
|
15
|
+
dataProviders?: FileManagerDataProviders;
|
|
13
16
|
apiEndpoints?: {
|
|
14
17
|
getFolders?: string;
|
|
15
18
|
getFiles?: string;
|
|
@@ -19,9 +22,10 @@ export interface Options {
|
|
|
19
22
|
renameFile?: string;
|
|
20
23
|
moveFile?: string;
|
|
21
24
|
};
|
|
25
|
+
customIcons?: CustomIcons;
|
|
26
|
+
dragDropIcon?: string;
|
|
22
27
|
}
|
|
23
28
|
export interface FileManagerAppProps {
|
|
24
|
-
publicPath?: string;
|
|
25
29
|
config?: Config;
|
|
26
30
|
currentPath?: string;
|
|
27
31
|
onPathChange?: (path: string[]) => void;
|
|
@@ -46,3 +50,32 @@ export interface FileManagerAppProps {
|
|
|
46
50
|
}
|
|
47
51
|
export declare const init: (containerOrOptions: HTMLElement | Options, config?: Config) => void;
|
|
48
52
|
export declare const unmount: (container: HTMLElement) => void;
|
|
53
|
+
export interface InitPixieEditorOptions {
|
|
54
|
+
element: HTMLElement;
|
|
55
|
+
file?: File | ThumbnailFile | string;
|
|
56
|
+
imageDataUrl?: string;
|
|
57
|
+
name?: string;
|
|
58
|
+
type?: string;
|
|
59
|
+
extension?: string;
|
|
60
|
+
dataProviders?: FileManagerDataProviders;
|
|
61
|
+
onSave?: (updatedFile: File) => Promise<void> | void;
|
|
62
|
+
onClose?: () => void;
|
|
63
|
+
theme?: Config['theme'];
|
|
64
|
+
locale?: string;
|
|
65
|
+
}
|
|
66
|
+
export declare const PixieOnlyApp: React.FC<Omit<InitPixieEditorOptions, 'element'>>;
|
|
67
|
+
export declare const initPixieEditor: (options: InitPixieEditorOptions) => void;
|
|
68
|
+
export declare const unmountPixieEditor: (container: HTMLElement) => void;
|
|
69
|
+
export interface UniversalInitOptions {
|
|
70
|
+
mode: 'fileManager' | 'pixieEditor' | 'both';
|
|
71
|
+
element: HTMLElement;
|
|
72
|
+
fileManager?: Omit<Options, 'element'>;
|
|
73
|
+
pixieEditor?: Omit<InitPixieEditorOptions, 'element'>;
|
|
74
|
+
theme?: Config['theme'];
|
|
75
|
+
dataProviders?: FileManagerDataProviders;
|
|
76
|
+
}
|
|
77
|
+
export declare const initFileManager: (options: UniversalInitOptions) => {
|
|
78
|
+
unmount: () => void;
|
|
79
|
+
unmountFileManager?: () => void;
|
|
80
|
+
unmountPixieEditor?: () => void;
|
|
81
|
+
};
|