@emailmaker/filemanager 0.10.30 → 0.10.32
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/FileModals/FileModals.d.ts +1 -1
- package/file-manager.css +20 -9
- package/file-manager.esm.js +9 -9
- package/file-manager.esm.js.map +1 -1
- package/file-manager.js +1 -1
- package/hooks/core/files/actions/useFilesCopy.d.ts +22 -0
- package/hooks/core/files/actions/useFilesDelete.d.ts +18 -0
- package/hooks/core/files/actions/useFilesMove.d.ts +22 -0
- package/hooks/core/files/actions/useFilesRename.d.ts +19 -0
- package/hooks/core/files/modals/helpers.d.ts +12 -0
- package/hooks/core/files/{useFilesCopyModal.d.ts → modals/useFilesCopyModal.d.ts} +1 -1
- package/hooks/core/files/{useFilesDeleteModal.d.ts → modals/useFilesDeleteModal.d.ts} +1 -1
- package/hooks/core/files/{useFilesMoveModal.d.ts → modals/useFilesMoveModal.d.ts} +1 -1
- package/hooks/core/files/{useFilesRenameModal.d.ts → modals/useFilesRenameModal.d.ts} +1 -1
- package/hooks/core/files/modals/useRefreshData.d.ts +16 -0
- package/hooks/notifications/index.d.ts +2 -0
- package/hooks/notifications/types.d.ts +40 -0
- package/hooks/notifications/useNotificationsBase.d.ts +2 -0
- package/hooks/useNotifications.d.ts +1 -22
- package/index.d.ts +1 -0
- package/notification.d.ts +295 -59
- package/package.json +1 -1
- package/shared/fileManagerApiError.d.ts +3 -3
- package/shared/mapHttpStatusToErrorCode.d.ts +5 -0
- package/types.d.ts +3 -9
- package/utils/errorMessages.d.ts +2 -2
- package/utils/fileValidation.d.ts +1 -0
- package/constants/errors.d.ts +0 -47
|
@@ -10,7 +10,7 @@ interface FileModalsProps {
|
|
|
10
10
|
folders: Folder[];
|
|
11
11
|
isUrlModalVisible: boolean;
|
|
12
12
|
setIsUrlModalVisible: (visible: boolean) => void;
|
|
13
|
-
handleAddFileByUrl: (url?: string | null) => void
|
|
13
|
+
handleAddFileByUrl: (url?: string | null) => Promise<File | void>;
|
|
14
14
|
urlForm: FormInstance;
|
|
15
15
|
isRenameModalVisible: boolean;
|
|
16
16
|
handleRenameOk: () => void;
|
package/file-manager.css
CHANGED
|
@@ -914,16 +914,30 @@
|
|
|
914
914
|
|
|
915
915
|
.uploadProgress__body {
|
|
916
916
|
padding: 12px;
|
|
917
|
-
|
|
917
|
+
display: flex;
|
|
918
|
+
flex-direction: column;
|
|
919
|
+
}
|
|
920
|
+
.uploadProgress__body .ant-list-item-meta {
|
|
921
|
+
display: flex;
|
|
922
|
+
flex: 1 1 auto;
|
|
923
|
+
min-width: 0;
|
|
918
924
|
}
|
|
919
925
|
.uploadProgress__body .ant-list-item-meta-content {
|
|
920
|
-
width:
|
|
926
|
+
width: auto;
|
|
927
|
+
min-width: 0;
|
|
921
928
|
}
|
|
922
929
|
.uploadProgress__body .ant-list-item-meta-title {
|
|
923
930
|
margin: 0;
|
|
924
931
|
}
|
|
925
932
|
.uploadProgress__body .ant-list-item-action {
|
|
926
|
-
margin-inline-start:
|
|
933
|
+
margin-inline-start: 16px;
|
|
934
|
+
flex-shrink: 0;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
.em-filemanager .uploadProgress__list-wrapper {
|
|
938
|
+
max-height: 300px;
|
|
939
|
+
overflow-y: auto;
|
|
940
|
+
overflow-x: hidden;
|
|
927
941
|
}
|
|
928
942
|
|
|
929
943
|
.em-filemanager .uploadProgress__status-icon {
|
|
@@ -939,10 +953,6 @@
|
|
|
939
953
|
color: #52c41a;
|
|
940
954
|
}
|
|
941
955
|
|
|
942
|
-
.em-filemanager .uploadProgress__file-list {
|
|
943
|
-
max-height: 300px;
|
|
944
|
-
}
|
|
945
|
-
|
|
946
956
|
.em-filemanager .uploadProgress__file-item {
|
|
947
957
|
padding: 8px 0 !important;
|
|
948
958
|
border-bottom: 1px solid var(--colorBorderSecondary);
|
|
@@ -969,6 +979,7 @@
|
|
|
969
979
|
.em-filemanager .uploadProgress__file-name {
|
|
970
980
|
font-size: 13px;
|
|
971
981
|
line-height: 1.2;
|
|
982
|
+
max-width: 100%;
|
|
972
983
|
}
|
|
973
984
|
|
|
974
985
|
.em-filemanager .uploadProgress__file-size {
|
|
@@ -2328,9 +2339,9 @@
|
|
|
2328
2339
|
margin-bottom: 0;
|
|
2329
2340
|
display: none;
|
|
2330
2341
|
position: absolute;
|
|
2331
|
-
top:
|
|
2342
|
+
top: 2px;
|
|
2332
2343
|
left: 0;
|
|
2333
|
-
right:
|
|
2344
|
+
right: 4px;
|
|
2334
2345
|
bottom: 0;
|
|
2335
2346
|
z-index: 100;
|
|
2336
2347
|
height: 44px;
|