@emailmaker/filemanager 0.10.3 → 0.10.4
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/EmIcons/EmIcons.d.ts +10 -0
- package/components/FileContent/FileContent.d.ts +7 -1
- package/components/FileManagerApp/ActionsHeader.d.ts +1 -9
- package/components/FileModals/FileModals.d.ts +1 -0
- package/file-manager.css +356 -256
- package/file-manager.esm.js +10 -10
- package/file-manager.esm.js.map +1 -1
- package/file-manager.js +1 -1
- package/file-manager.js.LICENSE.txt +1 -3
- package/hooks/core/context.d.ts +1 -1
- package/hooks/core/types.d.ts +1 -1
- package/hooks/useCustomIcons.d.ts +2 -0
- package/package.json +1 -1
- package/types.d.ts +5 -2
- package/utils/jsonDataProvider.d.ts +1 -1
|
@@ -173,8 +173,6 @@ and limitations under the License.
|
|
|
173
173
|
|
|
174
174
|
/** */
|
|
175
175
|
|
|
176
|
-
/** */
|
|
177
|
-
|
|
178
176
|
/** */
|
|
179
177
|
|
|
180
178
|
/** */
|
|
@@ -203,7 +201,7 @@ and limitations under the License.
|
|
|
203
201
|
|
|
204
202
|
/** */
|
|
205
203
|
|
|
206
|
-
/** */
|
|
207
205
|
|
|
208
206
|
/** */
|
|
209
207
|
|
package/hooks/core/context.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { FileManagerOptions } from '../../types';
|
|
3
|
-
import {
|
|
3
|
+
import { FileManagerActions, FileManagerState } from './types';
|
|
4
4
|
export interface FileManagerContextValue {
|
|
5
5
|
state: FileManagerState;
|
|
6
6
|
actions: Partial<FileManagerActions>;
|
package/hooks/core/types.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export interface FileManagerActions {
|
|
|
46
46
|
setSortBy: (sortBy: SortByType) => void;
|
|
47
47
|
setSortOrder: (sortOrder: SortOrderType) => void;
|
|
48
48
|
setPathHistory: (history: PathItem[]) => void;
|
|
49
|
-
setSelectedFiles: (files
|
|
49
|
+
setSelectedFiles: (files?: Set<string>) => void;
|
|
50
50
|
setLoading: (isLoading: boolean) => void;
|
|
51
51
|
setPagination: (pagination: Partial<PaginationState>) => void;
|
|
52
52
|
setIsModalVisible: (visible: boolean) => void;
|
|
@@ -10,6 +10,8 @@ export declare const useCustomIcons: () => {
|
|
|
10
10
|
UploadByUrlIcon: (props?: IconProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
11
11
|
ExpandArrowIcon: (props?: IconProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
12
12
|
CollapseArrowIcon: (props?: IconProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
13
|
+
ExpandFolderIcon: (props?: IconProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
14
|
+
CollapseFolderIcon: (props?: IconProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
13
15
|
FolderPreviewIcon: (props?: IconProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
14
16
|
GridViewIcon: (props?: IconProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
15
17
|
ListViewIcon: (props?: IconProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface Folder {
|
|
|
7
7
|
id: string;
|
|
8
8
|
name: string;
|
|
9
9
|
parentId?: string | null;
|
|
10
|
+
childCount?: number;
|
|
10
11
|
}
|
|
11
12
|
export interface ThumbnailFile {
|
|
12
13
|
thumbnail: string;
|
|
@@ -16,7 +17,7 @@ export interface ThumbnailFile {
|
|
|
16
17
|
export interface File {
|
|
17
18
|
id: string;
|
|
18
19
|
name: string;
|
|
19
|
-
size?:
|
|
20
|
+
size?: number;
|
|
20
21
|
date?: string;
|
|
21
22
|
folderId: string;
|
|
22
23
|
type?: string;
|
|
@@ -29,6 +30,7 @@ export interface File {
|
|
|
29
30
|
selected?: boolean;
|
|
30
31
|
isFolder?: boolean;
|
|
31
32
|
lastEdited?: string;
|
|
33
|
+
childCount?: number;
|
|
32
34
|
}
|
|
33
35
|
export interface PathItem {
|
|
34
36
|
id: string;
|
|
@@ -130,6 +132,7 @@ export interface FileManagerDataProviders {
|
|
|
130
132
|
parentId?: string | null;
|
|
131
133
|
deep?: boolean;
|
|
132
134
|
}) => Promise<Folder[]>;
|
|
135
|
+
getChildrenCount?: (folderId?: string) => Promise<number>;
|
|
133
136
|
getFiles: (options: {
|
|
134
137
|
folderId?: string;
|
|
135
138
|
search?: string;
|
|
@@ -150,7 +153,7 @@ export interface FileManagerDataProviders {
|
|
|
150
153
|
deleteFolder?: (folderId: string) => Promise<boolean>;
|
|
151
154
|
uploadFile: (file: {
|
|
152
155
|
name: string;
|
|
153
|
-
size:
|
|
156
|
+
size: number;
|
|
154
157
|
type: string;
|
|
155
158
|
folderId?: string | null;
|
|
156
159
|
data: Blob | string;
|
|
@@ -33,7 +33,7 @@ export declare class JSONDataProvider implements FileManagerDataProviders {
|
|
|
33
33
|
deleteFolder: (folderId: string) => Promise<boolean>;
|
|
34
34
|
uploadFile: (file: {
|
|
35
35
|
name: string;
|
|
36
|
-
size:
|
|
36
|
+
size: number;
|
|
37
37
|
type: string;
|
|
38
38
|
folderId?: string | null;
|
|
39
39
|
data: Blob | string;
|