@webiny/app-file-manager 6.3.0-beta.4 → 6.4.0-beta.0
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.js +48 -14
- package/app.js.map +1 -1
- package/domain/constants.js +7 -0
- package/domain/constants.js.map +1 -0
- package/domain/permissionsSchema.js +28 -17
- package/domain/permissionsSchema.js.map +1 -1
- package/domain/tagsHelpers.js +25 -0
- package/domain/tagsHelpers.js.map +1 -0
- package/domain/types.d.ts +34 -0
- package/domain/types.js +0 -0
- package/features/deleteFile/DeleteFile.test.js +150 -0
- package/features/deleteFile/DeleteFile.test.js.map +1 -0
- package/features/deleteFile/DeleteFileGateway.d.ts +11 -0
- package/features/deleteFile/DeleteFileGateway.js +23 -0
- package/features/deleteFile/DeleteFileGateway.js.map +1 -0
- package/features/deleteFile/DeleteFileRepository.d.ts +12 -0
- package/features/deleteFile/DeleteFileRepository.js +26 -0
- package/features/deleteFile/DeleteFileRepository.js.map +1 -0
- package/features/deleteFile/DeleteFileUseCase.d.ts +10 -0
- package/features/deleteFile/DeleteFileUseCase.js +34 -0
- package/features/deleteFile/DeleteFileUseCase.js.map +1 -0
- package/features/deleteFile/abstractions.d.ts +36 -0
- package/features/deleteFile/abstractions.js +7 -0
- package/features/deleteFile/abstractions.js.map +1 -0
- package/features/deleteFile/feature.d.ts +3 -0
- package/features/deleteFile/feature.js +21 -0
- package/features/deleteFile/feature.js.map +1 -0
- package/features/deleteFile/index.d.ts +3 -0
- package/features/deleteFile/index.js +2 -0
- package/features/fileModel/FileModelProvider.d.ts +12 -0
- package/features/fileModel/FileModelProvider.js +21 -0
- package/features/fileModel/FileModelProvider.js.map +1 -0
- package/features/fileModel/GetFileModelGqlGateway.d.ts +12 -0
- package/features/fileModel/GetFileModelGqlGateway.js +38 -0
- package/features/fileModel/GetFileModelGqlGateway.js.map +1 -0
- package/features/fileModel/GetFileModelRepository.d.ts +14 -0
- package/features/fileModel/GetFileModelRepository.js +32 -0
- package/features/fileModel/GetFileModelRepository.js.map +1 -0
- package/features/fileModel/abstractions.d.ts +24 -0
- package/features/fileModel/abstractions.js +7 -0
- package/features/fileModel/abstractions.js.map +1 -0
- package/features/fileModel/feature.d.ts +1 -0
- package/features/fileModel/feature.js +15 -0
- package/features/fileModel/feature.js.map +1 -0
- package/features/fileModel/index.d.ts +2 -0
- package/features/fileModel/index.js +2 -0
- package/features/fileUploader/FileUploader.d.ts +22 -0
- package/features/fileUploader/FileUploader.js +239 -0
- package/features/fileUploader/FileUploader.js.map +1 -0
- package/features/fileUploader/FileUploader.test.js +425 -0
- package/features/fileUploader/FileUploader.test.js.map +1 -0
- package/features/fileUploader/abstractions.d.ts +51 -0
- package/features/fileUploader/abstractions.js +5 -0
- package/features/fileUploader/abstractions.js.map +1 -0
- package/features/fileUploader/feature.d.ts +3 -0
- package/features/fileUploader/feature.js +17 -0
- package/features/fileUploader/feature.js.map +1 -0
- package/features/fileUploader/index.d.ts +3 -0
- package/features/fileUploader/index.js +2 -0
- package/features/getFile/GetFileGateway.js +17 -16
- package/features/getFile/GetFileGateway.js.map +1 -1
- package/features/getFile/GetFileRepository.js +13 -10
- package/features/getFile/GetFileRepository.js.map +1 -1
- package/features/getFile/GetFileUseCase.js +28 -25
- package/features/getFile/GetFileUseCase.js.map +1 -1
- package/features/getFile/abstractions.js +4 -12
- package/features/getFile/abstractions.js.map +1 -1
- package/features/getFile/feature.js +15 -14
- package/features/getFile/feature.js.map +1 -1
- package/features/getFile/index.js +1 -3
- package/features/listFiles/ListFiles.test.js +192 -0
- package/features/listFiles/ListFiles.test.js.map +1 -0
- package/features/listFiles/ListFilesGateway.d.ts +11 -0
- package/features/listFiles/ListFilesGateway.js +32 -0
- package/features/listFiles/ListFilesGateway.js.map +1 -0
- package/features/listFiles/ListFilesRepository.d.ts +12 -0
- package/features/listFiles/ListFilesRepository.js +26 -0
- package/features/listFiles/ListFilesRepository.js.map +1 -0
- package/features/listFiles/ListFilesUseCase.d.ts +10 -0
- package/features/listFiles/ListFilesUseCase.js +28 -0
- package/features/listFiles/ListFilesUseCase.js.map +1 -0
- package/features/listFiles/abstractions.d.ts +45 -0
- package/features/listFiles/abstractions.js +7 -0
- package/features/listFiles/abstractions.js.map +1 -0
- package/features/listFiles/feature.d.ts +3 -0
- package/features/listFiles/feature.js +21 -0
- package/features/listFiles/feature.js.map +1 -0
- package/features/listFiles/index.d.ts +3 -0
- package/features/listFiles/index.js +2 -0
- package/features/permissions/abstractions.d.ts +2 -2
- package/features/permissions/abstractions.js +2 -1
- package/features/permissions/abstractions.js.map +1 -1
- package/features/permissions/feature.d.ts +2 -2
- package/features/permissions/feature.js +2 -1
- package/features/permissions/feature.js.map +1 -1
- package/features/resolveImageTool/ResolveImageTool.js +49 -0
- package/features/resolveImageTool/ResolveImageTool.js.map +1 -0
- package/features/resolveImageTool/feature.js +11 -0
- package/features/resolveImageTool/feature.js.map +1 -0
- package/features/settings/GetSettings.test.d.ts +1 -0
- package/features/settings/GetSettings.test.js +92 -0
- package/features/settings/GetSettings.test.js.map +1 -0
- package/features/settings/GetSettingsGateway.d.ts +12 -0
- package/features/settings/GetSettingsGateway.js +43 -0
- package/features/settings/GetSettingsGateway.js.map +1 -0
- package/features/settings/GetSettingsRepository.d.ts +14 -0
- package/features/settings/GetSettingsRepository.js +34 -0
- package/features/settings/GetSettingsRepository.js.map +1 -0
- package/features/settings/GetSettingsUseCase.d.ts +11 -0
- package/features/settings/GetSettingsUseCase.js +18 -0
- package/features/settings/GetSettingsUseCase.js.map +1 -0
- package/features/settings/SaveSettingsGateway.d.ts +12 -0
- package/features/settings/SaveSettingsGateway.js +50 -0
- package/features/settings/SaveSettingsGateway.js.map +1 -0
- package/features/settings/abstractions.d.ts +31 -0
- package/features/settings/abstractions.js +8 -0
- package/features/settings/abstractions.js.map +1 -0
- package/features/settings/feature.d.ts +3 -0
- package/features/settings/feature.js +23 -0
- package/features/settings/feature.js.map +1 -0
- package/features/settings/index.d.ts +3 -0
- package/features/settings/index.js +2 -0
- package/features/shared/FILE_FIELDS.js +30 -1
- package/features/shared/FILE_FIELDS.js.map +1 -1
- package/features/shared/FilesListCache.d.ts +1 -0
- package/features/shared/FilesListCache.js +1 -0
- package/features/shared/abstractions.d.ts +6 -0
- package/features/shared/abstractions.js +5 -0
- package/features/shared/abstractions.js.map +1 -0
- package/features/shared/feature.d.ts +4 -0
- package/features/shared/feature.js +17 -0
- package/features/shared/feature.js.map +1 -0
- package/features/shared/index.d.ts +4 -0
- package/features/shared/index.js +3 -0
- package/features/shared/types.js +0 -3
- package/features/tags/ListTags.test.d.ts +1 -0
- package/features/tags/ListTags.test.js +126 -0
- package/features/tags/ListTags.test.js.map +1 -0
- package/features/tags/ListTagsGateway.d.ts +11 -0
- package/features/tags/ListTagsGateway.js +23 -0
- package/features/tags/ListTagsGateway.js.map +1 -0
- package/features/tags/ListTagsRepository.d.ts +12 -0
- package/features/tags/ListTagsRepository.js +25 -0
- package/features/tags/ListTagsRepository.js.map +1 -0
- package/features/tags/ListTagsUseCase.d.ts +10 -0
- package/features/tags/ListTagsUseCase.js +20 -0
- package/features/tags/ListTagsUseCase.js.map +1 -0
- package/features/tags/abstractions.d.ts +32 -0
- package/features/tags/abstractions.js +7 -0
- package/features/tags/abstractions.js.map +1 -0
- package/features/tags/feature.d.ts +3 -0
- package/features/tags/feature.js +21 -0
- package/features/tags/feature.js.map +1 -0
- package/features/tags/index.d.ts +3 -0
- package/features/tags/index.js +2 -0
- package/features/updateFile/UpdateFile.test.d.ts +1 -0
- package/features/updateFile/UpdateFile.test.js +258 -0
- package/features/updateFile/UpdateFile.test.js.map +1 -0
- package/features/updateFile/UpdateFileGateway.d.ts +12 -0
- package/features/updateFile/UpdateFileGateway.js +25 -0
- package/features/updateFile/UpdateFileGateway.js.map +1 -0
- package/features/updateFile/UpdateFileRepository.d.ts +13 -0
- package/features/updateFile/UpdateFileRepository.js +30 -0
- package/features/updateFile/UpdateFileRepository.js.map +1 -0
- package/features/updateFile/UpdateFileUseCase.d.ts +10 -0
- package/features/updateFile/UpdateFileUseCase.js +38 -0
- package/features/updateFile/UpdateFileUseCase.js.map +1 -0
- package/features/updateFile/abstractions.d.ts +53 -0
- package/features/updateFile/abstractions.js +7 -0
- package/features/updateFile/abstractions.js.map +1 -0
- package/features/updateFile/feature.d.ts +3 -0
- package/features/updateFile/feature.js +21 -0
- package/features/updateFile/feature.js.map +1 -0
- package/features/updateFile/index.d.ts +3 -0
- package/features/updateFile/index.js +2 -0
- package/index.d.ts +3 -8
- package/index.js +3 -10
- package/modules/Enterprise/HandleWebsocketMessages.js +46 -50
- package/modules/Enterprise/HandleWebsocketMessages.js.map +1 -1
- package/modules/Enterprise/components/ThreatScanInProgressFileBody.js +19 -20
- package/modules/Enterprise/components/ThreatScanInProgressFileBody.js.map +1 -1
- package/modules/Enterprise/components/ThreatScanInProgressTableCell.js +15 -27
- package/modules/Enterprise/components/ThreatScanInProgressTableCell.js.map +1 -1
- package/modules/Enterprise/constants.js +3 -2
- package/modules/Enterprise/constants.js.map +1 -1
- package/modules/Enterprise/index.js +21 -31
- package/modules/Enterprise/index.js.map +1 -1
- package/modules/FileManagerRoutes.d.ts +2 -0
- package/modules/FileManagerRoutes.js +31 -0
- package/modules/FileManagerRoutes.js.map +1 -0
- package/modules/FileModelModule.d.ts +2 -0
- package/modules/FileModelModule.js +18 -0
- package/modules/FileModelModule.js.map +1 -0
- package/modules/HeadlessCms/fileField.js +38 -34
- package/modules/HeadlessCms/fileField.js.map +1 -1
- package/modules/HeadlessCms/fileRenderer/fileField.js +43 -61
- package/modules/HeadlessCms/fileRenderer/fileField.js.map +1 -1
- package/modules/HeadlessCms/fileRenderer/fileFields.js +60 -92
- package/modules/HeadlessCms/fileRenderer/fileFields.js.map +1 -1
- package/modules/HeadlessCms/fileRenderer/utils.js +13 -4
- package/modules/HeadlessCms/fileRenderer/utils.js.map +1 -1
- package/modules/HeadlessCms/index.js +6 -5
- package/modules/HeadlessCms/index.js.map +1 -1
- package/modules/SecurityPermissions.js +11 -14
- package/modules/SecurityPermissions.js.map +1 -1
- package/modules/Settings/assets/icons/folder-open.js +19 -0
- package/modules/Settings/assets/icons/folder-open.js.map +1 -0
- package/modules/Settings/graphql.js +6 -5
- package/modules/Settings/graphql.js.map +1 -1
- package/modules/Settings/index.js +23 -28
- package/modules/Settings/index.js.map +1 -1
- package/modules/Settings/views/FileManagerSettings.js +121 -139
- package/modules/Settings/views/FileManagerSettings.js.map +1 -1
- package/package.json +23 -25
- package/presentation/FileActions/FileDetails/CopyUrl.js +19 -0
- package/presentation/FileActions/FileDetails/CopyUrl.js.map +1 -0
- package/presentation/FileActions/FileDetails/DeleteImage.js +24 -0
- package/presentation/FileActions/FileDetails/DeleteImage.js.map +1 -0
- package/presentation/FileActions/FileDetails/Download.js +19 -0
- package/presentation/FileActions/FileDetails/Download.js.map +1 -0
- package/presentation/FileActions/FileDetails/MoveToFolder.js +16 -0
- package/presentation/FileActions/FileDetails/MoveToFolder.js.map +1 -0
- package/presentation/FileActions/Grid/Delete.js +23 -0
- package/presentation/FileActions/Grid/Delete.js.map +1 -0
- package/presentation/FileActions/Grid/Download.js +19 -0
- package/presentation/FileActions/Grid/Download.js.map +1 -0
- package/presentation/FileActions/Grid/MoveToFolder.js +16 -0
- package/presentation/FileActions/Grid/MoveToFolder.js.map +1 -0
- package/presentation/FileActions/Grid/Settings.js +23 -0
- package/presentation/FileActions/Grid/Settings.js.map +1 -0
- package/presentation/FileActions/index.js +39 -0
- package/presentation/FileActions/index.js.map +1 -0
- package/presentation/FileDetails/FileDetailsPresenter.d.ts +28 -0
- package/presentation/FileDetails/FileDetailsPresenter.js +138 -0
- package/presentation/FileDetails/FileDetailsPresenter.js.map +1 -0
- package/presentation/FileDetails/FileDetailsPresenter.test.d.ts +1 -0
- package/presentation/FileDetails/FileDetailsPresenter.test.js +280 -0
- package/presentation/FileDetails/FileDetailsPresenter.test.js.map +1 -0
- package/presentation/FileDetails/abstractions.d.ts +22 -0
- package/presentation/FileDetails/abstractions.js +5 -0
- package/presentation/FileDetails/abstractions.js.map +1 -0
- package/presentation/FileDetails/components/ActionButton.js +15 -0
- package/presentation/FileDetails/components/ActionButton.js.map +1 -0
- package/presentation/FileDetails/components/Actions.js +13 -0
- package/presentation/FileDetails/components/Actions.js.map +1 -0
- package/presentation/FileDetails/components/Content.js +20 -0
- package/presentation/FileDetails/components/Content.js.map +1 -0
- package/presentation/FileDetails/components/CreatedOn.js +21 -0
- package/presentation/FileDetails/components/CreatedOn.js.map +1 -0
- package/presentation/FileDetails/components/Description.js +16 -0
- package/presentation/FileDetails/components/Description.js.map +1 -0
- package/presentation/FileDetails/components/FileDetailsDrawer.d.ts +4 -0
- package/presentation/FileDetails/components/FileDetailsDrawer.js +73 -0
- package/presentation/FileDetails/components/FileDetailsDrawer.js.map +1 -0
- package/presentation/FileDetails/components/Preview.js +15 -0
- package/presentation/FileDetails/components/Preview.js.map +1 -0
- package/presentation/FileDetails/components/Thumbnail.js +12 -0
- package/presentation/FileDetails/components/Thumbnail.js.map +1 -0
- package/presentation/FileDetails/feature.d.ts +3 -0
- package/presentation/FileDetails/feature.js +17 -0
- package/presentation/FileDetails/feature.js.map +1 -0
- package/presentation/FileDetails/index.d.ts +3 -0
- package/presentation/FileDetails/index.js +2 -0
- package/presentation/FileList/FileListDataSource.d.ts +20 -0
- package/presentation/FileList/FileListDataSource.js +122 -0
- package/presentation/FileList/FileListDataSource.js.map +1 -0
- package/presentation/FileList/FileListPresenter.test.d.ts +1 -0
- package/presentation/FileList/FileListPresenter.test.js +406 -0
- package/presentation/FileList/FileListPresenter.test.js.map +1 -0
- package/presentation/FileList/FileManagerPresenter.d.ts +43 -0
- package/presentation/FileList/FileManagerPresenter.js +213 -0
- package/presentation/FileList/FileManagerPresenter.js.map +1 -0
- package/presentation/FileList/FileManagerPresenterProvider.d.ts +9 -0
- package/presentation/FileList/FileManagerPresenterProvider.js +13 -0
- package/presentation/FileList/FileManagerPresenterProvider.js.map +1 -0
- package/presentation/FileList/abstractions.d.ts +75 -0
- package/presentation/FileList/abstractions.js +5 -0
- package/presentation/FileList/abstractions.js.map +1 -0
- package/presentation/FileList/components/BottomInfoBar/BottomInfoBar.js +12 -0
- package/presentation/FileList/components/BottomInfoBar/BottomInfoBar.js.map +1 -0
- package/presentation/FileList/components/BottomInfoBar/ListStatus.js +20 -0
- package/presentation/FileList/components/BottomInfoBar/ListStatus.js.map +1 -0
- package/presentation/FileList/components/BottomInfoBar/SupportedFileTypes.js +56 -0
- package/presentation/FileList/components/BottomInfoBar/SupportedFileTypes.js.map +1 -0
- package/presentation/FileList/components/BottomInfoBar/index.js +1 -0
- package/presentation/FileList/components/BulkActions/ActionEdit.types.d.ts +2 -0
- package/presentation/FileList/components/BulkActions/ActionEdit.types.js +0 -0
- package/presentation/FileList/components/BulkActions/ActionEditPresenter.d.ts +35 -0
- package/presentation/FileList/components/BulkActions/ActionEditPresenter.js +55 -0
- package/presentation/FileList/components/BulkActions/ActionEditPresenter.js.map +1 -0
- package/presentation/FileList/components/BulkActions/ActionEditPresenter.test.d.ts +1 -0
- package/presentation/FileList/components/BulkActions/ActionEditPresenter.test.js +170 -0
- package/presentation/FileList/components/BulkActions/ActionEditPresenter.test.js.map +1 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/AddOperation.js +15 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/AddOperation.js.map +1 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditor.d.ts +15 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditor.js +44 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditor.js.map +1 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialog.d.ts +15 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialog.js +52 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialog.js.map +1 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialogPresenter.d.ts +61 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialogPresenter.js +111 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialogPresenter.js.map +1 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialogPresenter.test.d.ts +1 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialogPresenter.test.js +372 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialogPresenter.test.js.map +1 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/FieldRenderer.d.ts +8 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/FieldRenderer.js +31 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/FieldRenderer.js.map +1 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/Operation.d.ts +11 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/Operation.js +33 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/Operation.js.map +1 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/index.js +1 -0
- package/presentation/FileList/components/BulkActions/BulkActionBar.d.ts +5 -0
- package/presentation/FileList/components/BulkActions/BulkActionBar.js +42 -0
- package/presentation/FileList/components/BulkActions/BulkActionBar.js.map +1 -0
- package/presentation/FileList/components/BulkActions/BulkActionDelete.d.ts +4 -0
- package/presentation/FileList/components/BulkActions/BulkActionDelete.js +65 -0
- package/presentation/FileList/components/BulkActions/BulkActionDelete.js.map +1 -0
- package/presentation/FileList/components/BulkActions/BulkActionEdit.d.ts +4 -0
- package/presentation/FileList/components/BulkActions/BulkActionEdit.js +105 -0
- package/presentation/FileList/components/BulkActions/BulkActionEdit.js.map +1 -0
- package/presentation/FileList/components/BulkActions/BulkActionMove.d.ts +4 -0
- package/presentation/FileList/components/BulkActions/BulkActionMove.js +87 -0
- package/presentation/FileList/components/BulkActions/BulkActionMove.js.map +1 -0
- package/presentation/FileList/components/BulkActions/GraphQLInputMapper.d.ts +23 -0
- package/presentation/FileList/components/BulkActions/GraphQLInputMapper.js +40 -0
- package/presentation/FileList/components/BulkActions/GraphQLInputMapper.js.map +1 -0
- package/presentation/FileList/components/BulkActions/GraphQLInputMapper.test.d.ts +1 -0
- package/presentation/FileList/components/BulkActions/GraphQLInputMapper.test.js +319 -0
- package/presentation/FileList/components/BulkActions/GraphQLInputMapper.test.js.map +1 -0
- package/presentation/FileList/components/BulkActions/domain/Batch.js +32 -0
- package/presentation/FileList/components/BulkActions/domain/Batch.js.map +1 -0
- package/presentation/FileList/components/BulkActions/domain/BatchMapper.js +14 -0
- package/presentation/FileList/components/BulkActions/domain/BatchMapper.js.map +1 -0
- package/presentation/FileList/components/BulkActions/domain/Field.js +49 -0
- package/presentation/FileList/components/BulkActions/domain/Field.js.map +1 -0
- package/presentation/FileList/components/BulkActions/domain/FieldMapper.js +21 -0
- package/presentation/FileList/components/BulkActions/domain/FieldMapper.js.map +1 -0
- package/presentation/FileList/components/BulkActions/domain/index.js +4 -0
- package/presentation/FileList/components/BulkActions/index.d.ts +5 -0
- package/presentation/FileList/components/BulkActions/index.js +5 -0
- package/presentation/FileList/components/BulkActions/useBulkActionWorker.d.ts +16 -0
- package/presentation/FileList/components/BulkActions/useBulkActionWorker.js +43 -0
- package/presentation/FileList/components/BulkActions/useBulkActionWorker.js.map +1 -0
- package/presentation/FileList/components/Empty/Empty.js +20 -0
- package/presentation/FileList/components/Empty/Empty.js.map +1 -0
- package/presentation/FileList/components/Empty/index.js +1 -0
- package/presentation/FileList/components/FileDropArea/FileDropArea.js +63 -0
- package/presentation/FileList/components/FileDropArea/FileDropArea.js.map +1 -0
- package/presentation/FileList/components/FileDropArea/index.js +1 -0
- package/presentation/FileList/components/FileDropPlaceholder/FileDropPlaceholder.js +11 -0
- package/presentation/FileList/components/FileDropPlaceholder/FileDropPlaceholder.js.map +1 -0
- package/presentation/FileList/components/FileDropPlaceholder/index.js +1 -0
- package/presentation/FileList/components/FilePicker/FilePicker.d.ts +11 -0
- package/presentation/FileList/components/FilePicker/FilePicker.js +28 -0
- package/presentation/FileList/components/FilePicker/FilePicker.js.map +1 -0
- package/presentation/FileList/components/Filters/FilterByType.js +39 -0
- package/presentation/FileList/components/Filters/FilterByType.js.map +1 -0
- package/presentation/FileList/components/Filters/SubFoldersToggle.d.ts +9 -0
- package/presentation/FileList/components/Filters/SubFoldersToggle.js +25 -0
- package/presentation/FileList/components/Filters/SubFoldersToggle.js.map +1 -0
- package/presentation/FileList/components/Filters/TagsFilter.d.ts +9 -0
- package/presentation/FileList/components/Filters/TagsFilter.js +86 -0
- package/presentation/FileList/components/Filters/TagsFilter.js.map +1 -0
- package/presentation/FileList/components/Filters/TypeFilter.d.ts +8 -0
- package/presentation/FileList/components/Filters/TypeFilter.js +46 -0
- package/presentation/FileList/components/Filters/TypeFilter.js.map +1 -0
- package/presentation/FileList/components/Filters/index.d.ts +3 -0
- package/presentation/FileList/components/Filters/index.js +3 -0
- package/presentation/FileList/components/Grid/ActionButton.d.ts +9 -0
- package/presentation/FileList/components/Grid/ActionButton.js +24 -0
- package/presentation/FileList/components/Grid/ActionButton.js.map +1 -0
- package/presentation/FileList/components/Grid/File.d.ts +32 -0
- package/presentation/FileList/components/Grid/File.js +84 -0
- package/presentation/FileList/components/Grid/File.js.map +1 -0
- package/presentation/FileList/components/Grid/FileGrid.d.ts +9 -0
- package/presentation/FileList/components/Grid/FileGrid.js +168 -0
- package/presentation/FileList/components/Grid/FileGrid.js.map +1 -0
- package/presentation/FileList/components/Grid/FileGrid.test.d.ts +1 -0
- package/presentation/FileList/components/Grid/FileGrid.test.js +387 -0
- package/presentation/FileList/components/Grid/FileGrid.test.js.map +1 -0
- package/presentation/FileList/components/Grid/index.d.ts +1 -0
- package/presentation/FileList/components/Grid/index.js +1 -0
- package/presentation/FileList/components/Header/FileManagerHeader.d.ts +7 -0
- package/presentation/FileList/components/Header/FileManagerHeader.js +114 -0
- package/presentation/FileList/components/Header/FileManagerHeader.js.map +1 -0
- package/presentation/FileList/components/LayoutSwitch/LayoutSwitch.js +24 -0
- package/presentation/FileList/components/LayoutSwitch/LayoutSwitch.js.map +1 -0
- package/presentation/FileList/components/LayoutSwitch/index.js +1 -0
- package/presentation/FileList/components/NoPermissions/NoPermissions.js +27 -0
- package/presentation/FileList/components/NoPermissions/NoPermissions.js.map +1 -0
- package/presentation/FileList/components/NoPermissions/index.js +1 -0
- package/presentation/FileList/components/NoResults/NoResults.js +21 -0
- package/presentation/FileList/components/NoResults/NoResults.js.map +1 -0
- package/presentation/FileList/components/NoResults/index.js +1 -0
- package/presentation/FileList/components/Search/SearchBar.d.ts +9 -0
- package/presentation/FileList/components/Search/SearchBar.js +33 -0
- package/presentation/FileList/components/Search/SearchBar.js.map +1 -0
- package/presentation/FileList/components/Search/index.d.ts +1 -0
- package/presentation/FileList/components/Search/index.js +1 -0
- package/presentation/FileList/components/Table/Actions/CopyFile.js +21 -0
- package/presentation/FileList/components/Table/Actions/CopyFile.js.map +1 -0
- package/presentation/FileList/components/Table/Actions/DeleteFile.js +24 -0
- package/presentation/FileList/components/Table/Actions/DeleteFile.js.map +1 -0
- package/presentation/FileList/components/Table/Actions/EditFile.js +19 -0
- package/presentation/FileList/components/Table/Actions/EditFile.js.map +1 -0
- package/presentation/FileList/components/Table/Actions/MoveFile.js +19 -0
- package/presentation/FileList/components/Table/Actions/MoveFile.js.map +1 -0
- package/presentation/FileList/components/Table/Actions/index.js +4 -0
- package/presentation/FileList/components/Table/Cells/CellActions.js +28 -0
- package/presentation/FileList/components/Table/Cells/CellActions.js.map +1 -0
- package/presentation/FileList/components/Table/Cells/CellAuthor.js +10 -0
- package/presentation/FileList/components/Table/Cells/CellAuthor.js.map +1 -0
- package/presentation/FileList/components/Table/Cells/CellCreated.js +13 -0
- package/presentation/FileList/components/Table/Cells/CellCreated.js.map +1 -0
- package/presentation/FileList/components/Table/Cells/CellModified.js +13 -0
- package/presentation/FileList/components/Table/Cells/CellModified.js.map +1 -0
- package/presentation/FileList/components/Table/Cells/CellName.d.ts +16 -0
- package/presentation/FileList/components/Table/Cells/CellName.js +59 -0
- package/presentation/FileList/components/Table/Cells/CellName.js.map +1 -0
- package/presentation/FileList/components/Table/Cells/CellSize.js +14 -0
- package/presentation/FileList/components/Table/Cells/CellSize.js.map +1 -0
- package/presentation/FileList/components/Table/Cells/CellThumbnail.js +12 -0
- package/presentation/FileList/components/Table/Cells/CellThumbnail.js.map +1 -0
- package/presentation/FileList/components/Table/Cells/CellType.js +11 -0
- package/presentation/FileList/components/Table/Cells/CellType.js.map +1 -0
- package/presentation/FileList/components/Table/Cells/index.js +7 -0
- package/presentation/FileList/components/Table/FileTable.d.ts +12 -0
- package/presentation/FileList/components/Table/FileTable.js +79 -0
- package/presentation/FileList/components/Table/FileTable.js.map +1 -0
- package/presentation/FileList/components/Table/FileTable.test.d.ts +1 -0
- package/presentation/FileList/components/Table/FileTable.test.js +365 -0
- package/presentation/FileList/components/Table/FileTable.test.js.map +1 -0
- package/presentation/FileList/components/Table/index.d.ts +4 -0
- package/presentation/FileList/components/Table/index.js +3 -0
- package/presentation/FileList/components/TagsList/Empty.js +8 -0
- package/presentation/FileList/components/TagsList/Empty.js.map +1 -0
- package/presentation/FileList/components/TagsList/FilterSelect.js +38 -0
- package/presentation/FileList/components/TagsList/FilterSelect.js.map +1 -0
- package/presentation/FileList/components/TagsList/FilterStatus.js +25 -0
- package/presentation/FileList/components/TagsList/FilterStatus.js.map +1 -0
- package/presentation/FileList/components/TagsList/Tag.js +11 -0
- package/presentation/FileList/components/TagsList/Tag.js.map +1 -0
- package/presentation/FileList/components/TagsList/Tags.js +30 -0
- package/presentation/FileList/components/TagsList/Tags.js.map +1 -0
- package/presentation/FileList/components/TagsList/TagsList.js +24 -0
- package/presentation/FileList/components/TagsList/TagsList.js.map +1 -0
- package/presentation/FileList/components/TagsList/index.js +1 -0
- package/presentation/FileList/components/Thumbnail/Thumbnail.js +12 -0
- package/presentation/FileList/components/Thumbnail/Thumbnail.js.map +1 -0
- package/presentation/FileList/components/Thumbnail/index.js +1 -0
- package/presentation/FileList/components/Upload/DropZone.d.ts +19 -0
- package/presentation/FileList/components/Upload/DropZone.js +96 -0
- package/presentation/FileList/components/Upload/DropZone.js.map +1 -0
- package/presentation/FileList/components/Upload/UploadProgress.d.ts +9 -0
- package/presentation/FileList/components/Upload/UploadProgress.js +45 -0
- package/presentation/FileList/components/Upload/UploadProgress.js.map +1 -0
- package/presentation/FileList/components/Upload/index.d.ts +2 -0
- package/presentation/FileList/components/Upload/index.js +2 -0
- package/presentation/FileList/feature.d.ts +3 -0
- package/presentation/FileList/feature.js +17 -0
- package/presentation/FileList/feature.js.map +1 -0
- package/presentation/FileList/index.d.ts +5 -0
- package/presentation/FileList/index.js +3 -0
- package/presentation/FileManager/FileManagerRenderer.d.ts +2 -0
- package/presentation/FileManager/FileManagerRenderer.js +33 -0
- package/presentation/FileManager/FileManagerRenderer.js.map +1 -0
- package/presentation/FileManager/FileManagerView.d.ts +12 -0
- package/presentation/FileManager/FileManagerView.js +242 -0
- package/presentation/FileManager/FileManagerView.js.map +1 -0
- package/presentation/FileManager/OverlayContext.d.ts +14 -0
- package/presentation/FileManager/OverlayContext.js +11 -0
- package/presentation/FileManager/OverlayContext.js.map +1 -0
- package/presentation/Settings/SettingsPresenter.d.ts +14 -0
- package/presentation/Settings/SettingsPresenter.js +78 -0
- package/presentation/Settings/SettingsPresenter.js.map +1 -0
- package/presentation/Settings/components/SettingsView.d.ts +4 -0
- package/presentation/Settings/components/SettingsView.js +45 -0
- package/presentation/Settings/components/SettingsView.js.map +1 -0
- package/presentation/adapters/toFolderDto.d.ts +3 -0
- package/presentation/adapters/toFolderDto.js +30 -0
- package/presentation/adapters/toFolderDto.js.map +1 -0
- package/presentation/config/DefaultFileManagerConfig.d.ts +2 -0
- package/presentation/config/DefaultFileManagerConfig.js +118 -0
- package/presentation/config/DefaultFileManagerConfig.js.map +1 -0
- package/presentation/config/FileManagerViewConfig.d.ts +248 -0
- package/presentation/config/FileManagerViewConfig.js +74 -0
- package/presentation/config/FileManagerViewConfig.js.map +1 -0
- package/presentation/config/configComponents/Browser/BulkAction.d.ts +26 -0
- package/presentation/config/configComponents/Browser/BulkAction.js +57 -0
- package/presentation/config/configComponents/Browser/BulkAction.js.map +1 -0
- package/presentation/config/configComponents/Browser/BulkEditField.js +24 -0
- package/presentation/config/configComponents/Browser/BulkEditField.js.map +1 -0
- package/presentation/config/configComponents/Browser/FileAction.js +11 -0
- package/presentation/config/configComponents/Browser/FileAction.js.map +1 -0
- package/presentation/config/configComponents/Browser/Filter.js +37 -0
- package/presentation/config/configComponents/Browser/Filter.js.map +1 -0
- package/presentation/config/configComponents/Browser/FilterByTags.js +14 -0
- package/presentation/config/configComponents/Browser/FilterByTags.js.map +1 -0
- package/presentation/config/configComponents/Browser/FiltersToWhere.js +13 -0
- package/presentation/config/configComponents/Browser/FiltersToWhere.js.map +1 -0
- package/presentation/config/configComponents/Browser/FolderAction.js +10 -0
- package/presentation/config/configComponents/Browser/FolderAction.js.map +1 -0
- package/presentation/config/configComponents/Browser/FolderDropConfirmation.js +7 -0
- package/presentation/config/configComponents/Browser/FolderDropConfirmation.js.map +1 -0
- package/presentation/config/configComponents/Browser/FolderFieldDecorator.js +11 -0
- package/presentation/config/configComponents/Browser/FolderFieldDecorator.js.map +1 -0
- package/presentation/config/configComponents/Browser/Grid/Action.js +33 -0
- package/presentation/config/configComponents/Browser/Grid/Action.js.map +1 -0
- package/presentation/config/configComponents/Browser/Grid/Thumbnail.js +28 -0
- package/presentation/config/configComponents/Browser/Grid/Thumbnail.js.map +1 -0
- package/presentation/config/configComponents/Browser/Grid/index.js +0 -0
- package/presentation/config/configComponents/Browser/Table/Column.d.ts +32 -0
- package/presentation/config/configComponents/Browser/Table/Column.js +13 -0
- package/presentation/config/configComponents/Browser/Table/Column.js.map +1 -0
- package/presentation/config/configComponents/Browser/Table/Thumbnail.js +28 -0
- package/presentation/config/configComponents/Browser/Table/Thumbnail.js.map +1 -0
- package/presentation/config/configComponents/Browser/Table/index.d.ts +56 -0
- package/presentation/config/configComponents/Browser/Table/index.js +11 -0
- package/presentation/config/configComponents/Browser/Table/index.js.map +1 -0
- package/presentation/config/configComponents/Browser/index.d.ts +189 -0
- package/presentation/config/configComponents/Browser/index.js +47 -0
- package/presentation/config/configComponents/Browser/index.js.map +1 -0
- package/presentation/config/configComponents/FileDetails/Action.js +30 -0
- package/presentation/config/configComponents/FileDetails/Action.js.map +1 -0
- package/presentation/config/configComponents/FileDetails/Thumbnail.js +25 -0
- package/presentation/config/configComponents/FileDetails/Thumbnail.js.map +1 -0
- package/presentation/config/configComponents/FileDetails/Width.js +13 -0
- package/presentation/config/configComponents/FileDetails/Width.js.map +1 -0
- package/presentation/config/configComponents/FileDetails/index.d.ts +52 -0
- package/presentation/config/configComponents/FileDetails/index.js +16 -0
- package/presentation/config/configComponents/FileDetails/index.js.map +1 -0
- package/presentation/config/fields/AccessControl.js +38 -0
- package/presentation/config/fields/AccessControl.js.map +1 -0
- package/presentation/config/fields/Tags.js +32 -0
- package/presentation/config/fields/Tags.js.map +1 -0
- package/presentation/config/fields/index.d.ts +2 -0
- package/presentation/config/fields/index.js +2 -0
- package/presentation/config/fields/useAccessControlField.js +21 -0
- package/presentation/config/fields/useAccessControlField.js.map +1 -0
- package/presentation/config/fields/useFileOrUndefined.js +13 -0
- package/presentation/config/fields/useFileOrUndefined.js.map +1 -0
- package/presentation/config/getThumbnailRenderer.d.ts +4 -0
- package/presentation/config/getThumbnailRenderer.js +16 -0
- package/presentation/config/getThumbnailRenderer.js.map +1 -0
- package/presentation/config/outputFileSelectionError.js +27 -0
- package/presentation/config/outputFileSelectionError.js.map +1 -0
- package/presentation/config/thumbnailRenderers/FilePreviewDefaultRenderer.js +11 -0
- package/presentation/config/thumbnailRenderers/FilePreviewDefaultRenderer.js.map +1 -0
- package/presentation/config/thumbnailRenderers/FilePreviewImageRenderer.js +18 -0
- package/presentation/config/thumbnailRenderers/FilePreviewImageRenderer.js.map +1 -0
- package/presentation/config/thumbnailRenderers/GridItemDefaultRenderer.js +11 -0
- package/presentation/config/thumbnailRenderers/GridItemDefaultRenderer.js.map +1 -0
- package/presentation/config/thumbnailRenderers/GridItemImageRenderer.js +18 -0
- package/presentation/config/thumbnailRenderers/GridItemImageRenderer.js.map +1 -0
- package/presentation/config/thumbnailRenderers/TableItemDefaultRenderer.js +18 -0
- package/presentation/config/thumbnailRenderers/TableItemDefaultRenderer.js.map +1 -0
- package/presentation/config/thumbnailRenderers/TableItemImageRenderer.js +18 -0
- package/presentation/config/thumbnailRenderers/TableItemImageRenderer.js.map +1 -0
- package/presentation/contexts/FileProvider.d.ts +12 -0
- package/presentation/contexts/FileProvider.js +13 -0
- package/presentation/contexts/FileProvider.js.map +1 -0
- package/presentation/hooks/useCopyFile.d.ts +11 -0
- package/presentation/hooks/useCopyFile.js +24 -0
- package/presentation/hooks/useCopyFile.js.map +1 -0
- package/presentation/hooks/useDeleteFile.d.ts +9 -0
- package/presentation/hooks/useDeleteFile.js +35 -0
- package/presentation/hooks/useDeleteFile.js.map +1 -0
- package/presentation/hooks/useFile.d.ts +2 -0
- package/presentation/hooks/useFile.js +10 -0
- package/presentation/hooks/useFile.js.map +1 -0
- package/presentation/hooks/useMoveFileToFolder.d.ts +2 -0
- package/presentation/hooks/useMoveFileToFolder.js +36 -0
- package/presentation/hooks/useMoveFileToFolder.js.map +1 -0
- package/routes.d.ts +3 -0
- package/routes.js +13 -5
- package/routes.js.map +1 -1
- package/static/svg/folder-open.ae8d0fac.svg +1 -0
- package/BatchFileUploader.d.ts +0 -34
- package/BatchFileUploader.js +0 -87
- package/BatchFileUploader.js.map +0 -1
- package/components/BottomInfoBar/BottomInfoBar.js +0 -13
- package/components/BottomInfoBar/BottomInfoBar.js.map +0 -1
- package/components/BottomInfoBar/ListStatus.js +0 -23
- package/components/BottomInfoBar/ListStatus.js.map +0 -1
- package/components/BottomInfoBar/SupportedFileTypes.js +0 -62
- package/components/BottomInfoBar/SupportedFileTypes.js.map +0 -1
- package/components/BottomInfoBar/index.js +0 -3
- package/components/BottomInfoBar/index.js.map +0 -1
- package/components/BulkActions/ActionDelete.d.ts +0 -4
- package/components/BulkActions/ActionDelete.js +0 -80
- package/components/BulkActions/ActionDelete.js.map +0 -1
- package/components/BulkActions/ActionEdit/ActionEdit.d.ts +0 -4
- package/components/BulkActions/ActionEdit/ActionEdit.js +0 -62
- package/components/BulkActions/ActionEdit/ActionEdit.js.map +0 -1
- package/components/BulkActions/ActionEdit/ActionEdit.types.d.ts +0 -2
- package/components/BulkActions/ActionEdit/ActionEdit.types.js +0 -3
- package/components/BulkActions/ActionEdit/ActionEdit.types.js.map +0 -1
- package/components/BulkActions/ActionEdit/ActionEditPresenter.d.ts +0 -35
- package/components/BulkActions/ActionEdit/ActionEditPresenter.js +0 -55
- package/components/BulkActions/ActionEdit/ActionEditPresenter.js.map +0 -1
- package/components/BulkActions/ActionEdit/ActionEditPresenter.test.js +0 -159
- package/components/BulkActions/ActionEdit/ActionEditPresenter.test.js.map +0 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/AddOperation.js +0 -19
- package/components/BulkActions/ActionEdit/BatchEditorDialog/AddOperation.js.map +0 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.d.ts +0 -15
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.js +0 -44
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.js.map +0 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.d.ts +0 -15
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.js +0 -54
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.js.map +0 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.d.ts +0 -61
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.js +0 -140
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.js.map +0 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.test.js +0 -337
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.test.js.map +0 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.d.ts +0 -8
- package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.js +0 -33
- package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.js.map +0 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.d.ts +0 -11
- package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.js +0 -41
- package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.js.map +0 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/index.js +0 -3
- package/components/BulkActions/ActionEdit/BatchEditorDialog/index.js.map +0 -1
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.d.ts +0 -46
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.js +0 -44
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.js.map +0 -1
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.test.js +0 -270
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.test.js.map +0 -1
- package/components/BulkActions/ActionEdit/domain/Batch.js +0 -29
- package/components/BulkActions/ActionEdit/domain/Batch.js.map +0 -1
- package/components/BulkActions/ActionEdit/domain/BatchMapper.js +0 -13
- package/components/BulkActions/ActionEdit/domain/BatchMapper.js.map +0 -1
- package/components/BulkActions/ActionEdit/domain/Field.js +0 -47
- package/components/BulkActions/ActionEdit/domain/Field.js.map +0 -1
- package/components/BulkActions/ActionEdit/domain/FieldMapper.js +0 -22
- package/components/BulkActions/ActionEdit/domain/FieldMapper.js.map +0 -1
- package/components/BulkActions/ActionEdit/domain/index.js +0 -6
- package/components/BulkActions/ActionEdit/domain/index.js.map +0 -1
- package/components/BulkActions/ActionEdit/index.d.ts +0 -1
- package/components/BulkActions/ActionEdit/index.js +0 -3
- package/components/BulkActions/ActionEdit/index.js.map +0 -1
- package/components/BulkActions/ActionEdit/useActionEditWorker.d.ts +0 -7
- package/components/BulkActions/ActionEdit/useActionEditWorker.js +0 -73
- package/components/BulkActions/ActionEdit/useActionEditWorker.js.map +0 -1
- package/components/BulkActions/ActionMove.d.ts +0 -4
- package/components/BulkActions/ActionMove.js +0 -91
- package/components/BulkActions/ActionMove.js.map +0 -1
- package/components/BulkActions/BulkActions.d.ts +0 -3
- package/components/BulkActions/BulkActions.js +0 -46
- package/components/BulkActions/BulkActions.js.map +0 -1
- package/components/BulkActions/index.d.ts +0 -4
- package/components/BulkActions/index.js +0 -6
- package/components/BulkActions/index.js.map +0 -1
- package/components/EditFileUsingUrl/EditFileUsingUrl.d.ts +0 -14
- package/components/EditFileUsingUrl/EditFileUsingUrl.js +0 -53
- package/components/EditFileUsingUrl/EditFileUsingUrl.js.map +0 -1
- package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.d.ts +0 -18
- package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.js +0 -43
- package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.js.map +0 -1
- package/components/EditFileUsingUrl/EditFileUsingUrlRepository.d.ts +0 -17
- package/components/EditFileUsingUrl/EditFileUsingUrlRepository.js +0 -39
- package/components/EditFileUsingUrl/EditFileUsingUrlRepository.js.map +0 -1
- package/components/EditFileUsingUrl/GetFileByUrl.d.ts +0 -10
- package/components/EditFileUsingUrl/GetFileByUrl.js +0 -27
- package/components/EditFileUsingUrl/GetFileByUrl.js.map +0 -1
- package/components/EditFileUsingUrl/Loading.d.ts +0 -18
- package/components/EditFileUsingUrl/Loading.js +0 -42
- package/components/EditFileUsingUrl/Loading.js.map +0 -1
- package/components/EditFileUsingUrl/UpdateFile.d.ts +0 -10
- package/components/EditFileUsingUrl/UpdateFile.js +0 -10
- package/components/EditFileUsingUrl/UpdateFile.js.map +0 -1
- package/components/EditFileUsingUrl/getFileByUrl.graphql.d.ts +0 -2
- package/components/EditFileUsingUrl/getFileByUrl.graphql.js +0 -19
- package/components/EditFileUsingUrl/getFileByUrl.graphql.js.map +0 -1
- package/components/EditFileUsingUrl/index.d.ts +0 -1
- package/components/EditFileUsingUrl/index.js +0 -3
- package/components/EditFileUsingUrl/index.js.map +0 -1
- package/components/Empty/Empty.js +0 -27
- package/components/Empty/Empty.js.map +0 -1
- package/components/Empty/index.js +0 -3
- package/components/Empty/index.js.map +0 -1
- package/components/FileDetails/FileDetails.d.ts +0 -11
- package/components/FileDetails/FileDetails.js +0 -141
- package/components/FileDetails/FileDetails.js.map +0 -1
- package/components/FileDetails/FileDetailsProvider.d.ts +0 -16
- package/components/FileDetails/FileDetailsProvider.js +0 -21
- package/components/FileDetails/FileDetailsProvider.js.map +0 -1
- package/components/FileDetails/components/ActionButton.js +0 -23
- package/components/FileDetails/components/ActionButton.js.map +0 -1
- package/components/FileDetails/components/Actions.js +0 -14
- package/components/FileDetails/components/Actions.js.map +0 -1
- package/components/FileDetails/components/BaseFields.d.ts +0 -7
- package/components/FileDetails/components/BaseFields.js +0 -29
- package/components/FileDetails/components/BaseFields.js.map +0 -1
- package/components/FileDetails/components/Content.js +0 -35
- package/components/FileDetails/components/Content.js.map +0 -1
- package/components/FileDetails/components/CreatedOn.js +0 -22
- package/components/FileDetails/components/CreatedOn.js.map +0 -1
- package/components/FileDetails/components/Description.js +0 -23
- package/components/FileDetails/components/Description.js.map +0 -1
- package/components/FileDetails/components/Extensions.d.ts +0 -7
- package/components/FileDetails/components/Extensions.js +0 -36
- package/components/FileDetails/components/Extensions.js.map +0 -1
- package/components/FileDetails/components/Preview.js +0 -12
- package/components/FileDetails/components/Preview.js.map +0 -1
- package/components/FileDetails/components/Thumbnail.js +0 -16
- package/components/FileDetails/components/Thumbnail.js.map +0 -1
- package/components/FileDetails/index.d.ts +0 -1
- package/components/FileDetails/index.js +0 -3
- package/components/FileDetails/index.js.map +0 -1
- package/components/FileDropArea/FileDropArea.js +0 -69
- package/components/FileDropArea/FileDropArea.js.map +0 -1
- package/components/FileDropArea/index.js +0 -3
- package/components/FileDropArea/index.js.map +0 -1
- package/components/FileDropPlaceholder/FileDropPlaceholder.js +0 -12
- package/components/FileDropPlaceholder/FileDropPlaceholder.js.map +0 -1
- package/components/FileDropPlaceholder/index.js +0 -3
- package/components/FileDropPlaceholder/index.js.map +0 -1
- package/components/Filters/Filters.d.ts +0 -2
- package/components/Filters/Filters.js +0 -26
- package/components/Filters/Filters.js.map +0 -1
- package/components/Filters/index.d.ts +0 -1
- package/components/Filters/index.js +0 -3
- package/components/Filters/index.js.map +0 -1
- package/components/Grid/ActionButton.d.ts +0 -9
- package/components/Grid/ActionButton.js +0 -28
- package/components/Grid/ActionButton.js.map +0 -1
- package/components/Grid/File.d.ts +0 -32
- package/components/Grid/File.js +0 -85
- package/components/Grid/File.js.map +0 -1
- package/components/Grid/Grid.d.ts +0 -21
- package/components/Grid/Grid.js +0 -71
- package/components/Grid/Grid.js.map +0 -1
- package/components/Grid/Thumbnail.js +0 -16
- package/components/Grid/Thumbnail.js.map +0 -1
- package/components/Grid/index.d.ts +0 -1
- package/components/Grid/index.js +0 -3
- package/components/Grid/index.js.map +0 -1
- package/components/Header/Actions.d.ts +0 -5
- package/components/Header/Actions.js +0 -99
- package/components/Header/Actions.js.map +0 -1
- package/components/Header/Header.d.ts +0 -9
- package/components/Header/Header.js +0 -21
- package/components/Header/Header.js.map +0 -1
- package/components/Header/Title.d.ts +0 -2
- package/components/Header/Title.js +0 -55
- package/components/Header/Title.js.map +0 -1
- package/components/Header/index.d.ts +0 -1
- package/components/Header/index.js +0 -3
- package/components/Header/index.js.map +0 -1
- package/components/LayoutSwitch/LayoutSwitch.js +0 -22
- package/components/LayoutSwitch/LayoutSwitch.js.map +0 -1
- package/components/LayoutSwitch/index.js +0 -3
- package/components/LayoutSwitch/index.js.map +0 -1
- package/components/NoPermissions/NoPermissions.js +0 -28
- package/components/NoPermissions/NoPermissions.js.map +0 -1
- package/components/NoPermissions/index.js +0 -3
- package/components/NoPermissions/index.js.map +0 -1
- package/components/NoResults/NoResults.js +0 -22
- package/components/NoResults/NoResults.js.map +0 -1
- package/components/NoResults/index.js +0 -3
- package/components/NoResults/index.js.map +0 -1
- package/components/SearchWidget/SearchWidget.d.ts +0 -2
- package/components/SearchWidget/SearchWidget.js +0 -30
- package/components/SearchWidget/SearchWidget.js.map +0 -1
- package/components/SearchWidget/index.d.ts +0 -1
- package/components/SearchWidget/index.js +0 -3
- package/components/SearchWidget/index.js.map +0 -1
- package/components/Table/Actions/CopyFile.js +0 -26
- package/components/Table/Actions/CopyFile.js.map +0 -1
- package/components/Table/Actions/DeleteFile.js +0 -33
- package/components/Table/Actions/DeleteFile.js.map +0 -1
- package/components/Table/Actions/EditFile.js +0 -24
- package/components/Table/Actions/EditFile.js.map +0 -1
- package/components/Table/Actions/MoveFile.js +0 -22
- package/components/Table/Actions/MoveFile.js.map +0 -1
- package/components/Table/Actions/index.js +0 -6
- package/components/Table/Actions/index.js.map +0 -1
- package/components/Table/Cells/CellActions.js +0 -37
- package/components/Table/Cells/CellActions.js.map +0 -1
- package/components/Table/Cells/CellAuthor.js +0 -16
- package/components/Table/Cells/CellAuthor.js.map +0 -1
- package/components/Table/Cells/CellCreated.js +0 -19
- package/components/Table/Cells/CellCreated.js.map +0 -1
- package/components/Table/Cells/CellModified.js +0 -19
- package/components/Table/Cells/CellModified.js.map +0 -1
- package/components/Table/Cells/CellName.d.ts +0 -16
- package/components/Table/Cells/CellName.js +0 -70
- package/components/Table/Cells/CellName.js.map +0 -1
- package/components/Table/Cells/CellSize.js +0 -20
- package/components/Table/Cells/CellSize.js.map +0 -1
- package/components/Table/Cells/CellThumbnail.js +0 -16
- package/components/Table/Cells/CellThumbnail.js.map +0 -1
- package/components/Table/Cells/CellType.js +0 -17
- package/components/Table/Cells/CellType.js.map +0 -1
- package/components/Table/Cells/index.js +0 -9
- package/components/Table/Cells/index.js.map +0 -1
- package/components/Table/Table.d.ts +0 -10
- package/components/Table/Table.js +0 -35
- package/components/Table/Table.js.map +0 -1
- package/components/Table/index.d.ts +0 -3
- package/components/Table/index.js +0 -5
- package/components/Table/index.js.map +0 -1
- package/components/TagsList/Empty.js +0 -11
- package/components/TagsList/Empty.js.map +0 -1
- package/components/TagsList/FilterSelect.js +0 -28
- package/components/TagsList/FilterSelect.js.map +0 -1
- package/components/TagsList/FilterStatus.js +0 -27
- package/components/TagsList/FilterStatus.js.map +0 -1
- package/components/TagsList/Tag.js +0 -16
- package/components/TagsList/Tag.js.map +0 -1
- package/components/TagsList/Tags.js +0 -32
- package/components/TagsList/Tags.js.map +0 -1
- package/components/TagsList/TagsList.js +0 -31
- package/components/TagsList/TagsList.js.map +0 -1
- package/components/TagsList/index.js +0 -3
- package/components/TagsList/index.js.map +0 -1
- package/components/Thumbnail/Thumbnail.d.ts +0 -2
- package/components/Thumbnail/Thumbnail.js +0 -16
- package/components/Thumbnail/Thumbnail.js.map +0 -1
- package/components/Thumbnail/index.js +0 -3
- package/components/Thumbnail/index.js.map +0 -1
- package/components/UploadStatus/UploadStatus.d.ts +0 -8
- package/components/UploadStatus/UploadStatus.js +0 -38
- package/components/UploadStatus/UploadStatus.js.map +0 -1
- package/components/UploadStatus/index.d.ts +0 -1
- package/components/UploadStatus/index.js +0 -3
- package/components/UploadStatus/index.js.map +0 -1
- package/components/fields/AccessControl.js +0 -49
- package/components/fields/AccessControl.js.map +0 -1
- package/components/fields/Description.d.ts +0 -2
- package/components/fields/Description.js +0 -25
- package/components/fields/Description.js.map +0 -1
- package/components/fields/Name.d.ts +0 -2
- package/components/fields/Name.js +0 -29
- package/components/fields/Name.js.map +0 -1
- package/components/fields/Tags.js +0 -39
- package/components/fields/Tags.js.map +0 -1
- package/components/fields/index.d.ts +0 -4
- package/components/fields/index.js +0 -6
- package/components/fields/index.js.map +0 -1
- package/components/fields/useAccessControlField.js +0 -26
- package/components/fields/useAccessControlField.js.map +0 -1
- package/components/fields/useFileOrUndefined.js +0 -12
- package/components/fields/useFileOrUndefined.js.map +0 -1
- package/constants.js +0 -6
- package/constants.js.map +0 -1
- package/contexts/FileProvider.d.ts +0 -13
- package/contexts/FileProvider.js +0 -22
- package/contexts/FileProvider.js.map +0 -1
- package/features/getFile/index.js.map +0 -1
- package/features/shared/types.js.map +0 -1
- package/hooks/useCopyFile.d.ts +0 -11
- package/hooks/useCopyFile.js +0 -25
- package/hooks/useCopyFile.js.map +0 -1
- package/hooks/useDeleteFile.d.ts +0 -9
- package/hooks/useDeleteFile.js +0 -41
- package/hooks/useDeleteFile.js.map +0 -1
- package/hooks/useFile.d.ts +0 -2
- package/hooks/useFile.js +0 -11
- package/hooks/useFile.js.map +0 -1
- package/hooks/useFileDetails.d.ts +0 -2
- package/hooks/useFileDetails.js +0 -11
- package/hooks/useFileDetails.js.map +0 -1
- package/hooks/useFileModel.d.ts +0 -1
- package/hooks/useFileModel.js +0 -11
- package/hooks/useFileModel.js.map +0 -1
- package/hooks/useMoveFileToFolder.d.ts +0 -2
- package/hooks/useMoveFileToFolder.js +0 -32
- package/hooks/useMoveFileToFolder.js.map +0 -1
- package/index.js.map +0 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.d.ts +0 -43
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.js +0 -227
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.js.map +0 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.d.ts +0 -6
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.js +0 -25
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.js.map +0 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.d.ts +0 -2
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.js +0 -33
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.js.map +0 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.d.ts +0 -2
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.js +0 -10
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.js.map +0 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/index.d.ts +0 -3
- package/modules/FileManagerApiProvider/FileManagerApiContext/index.js +0 -5
- package/modules/FileManagerApiProvider/FileManagerApiContext/index.js.map +0 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.d.ts +0 -3
- package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.js +0 -11
- package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.js.map +0 -1
- package/modules/FileManagerApiProvider/graphql.d.ts +0 -124
- package/modules/FileManagerApiProvider/graphql.js +0 -118
- package/modules/FileManagerApiProvider/graphql.js.map +0 -1
- package/modules/FileManagerApiProvider/index.d.ts +0 -2
- package/modules/FileManagerApiProvider/index.js +0 -18
- package/modules/FileManagerApiProvider/index.js.map +0 -1
- package/modules/FileManagerRenderer/FileActions/FileDetails/CopyUrl.js +0 -24
- package/modules/FileManagerRenderer/FileActions/FileDetails/CopyUrl.js.map +0 -1
- package/modules/FileManagerRenderer/FileActions/FileDetails/DeleteImage.js +0 -35
- package/modules/FileManagerRenderer/FileActions/FileDetails/DeleteImage.js.map +0 -1
- package/modules/FileManagerRenderer/FileActions/FileDetails/Download.js +0 -24
- package/modules/FileManagerRenderer/FileActions/FileDetails/Download.js.map +0 -1
- package/modules/FileManagerRenderer/FileActions/FileDetails/MoveToFolder.js +0 -19
- package/modules/FileManagerRenderer/FileActions/FileDetails/MoveToFolder.js.map +0 -1
- package/modules/FileManagerRenderer/FileActions/Grid/Delete.js +0 -29
- package/modules/FileManagerRenderer/FileActions/Grid/Delete.js.map +0 -1
- package/modules/FileManagerRenderer/FileActions/Grid/Download.js +0 -24
- package/modules/FileManagerRenderer/FileActions/Grid/Download.js.map +0 -1
- package/modules/FileManagerRenderer/FileActions/Grid/MoveToFolder.js +0 -19
- package/modules/FileManagerRenderer/FileActions/Grid/MoveToFolder.js.map +0 -1
- package/modules/FileManagerRenderer/FileActions/Grid/Settings.js +0 -23
- package/modules/FileManagerRenderer/FileActions/Grid/Settings.js.map +0 -1
- package/modules/FileManagerRenderer/FileActions/index.js +0 -43
- package/modules/FileManagerRenderer/FileActions/index.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/FileManagerView.d.ts +0 -5
- package/modules/FileManagerRenderer/FileManagerView/FileManagerView.js +0 -280
- package/modules/FileManagerRenderer/FileManagerView/FileManagerView.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.d.ts +0 -281
- package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.js +0 -59
- package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.d.ts +0 -8
- package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.js +0 -47
- package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.d.ts +0 -26
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.js +0 -66
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkEditField.js +0 -26
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkEditField.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.js +0 -14
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.js +0 -44
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FilterByTags.js +0 -17
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FilterByTags.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FiltersToWhere.js +0 -16
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FiltersToWhere.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.js +0 -13
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderDropConfirmation.js +0 -10
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderDropConfirmation.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderFieldDecorator.js +0 -16
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderFieldDecorator.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.js +0 -38
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.js +0 -30
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.js +0 -3
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.d.ts +0 -32
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.js +0 -16
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Thumbnail.js +0 -30
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Thumbnail.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.d.ts +0 -56
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.js +0 -10
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.d.ts +0 -189
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.js +0 -46
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.js +0 -35
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.d.ts +0 -39
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.js +0 -44
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.d.ts +0 -8
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.js +0 -25
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.d.ts +0 -5
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.js +0 -16
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.js +0 -27
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Width.js +0 -16
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Width.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.d.ts +0 -86
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.js +0 -23
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/formatFileItem.d.ts +0 -6
- package/modules/FileManagerRenderer/FileManagerView/formatFileItem.js +0 -19
- package/modules/FileManagerRenderer/FileManagerView/formatFileItem.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.d.ts +0 -4
- package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.js +0 -21
- package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/index.d.ts +0 -13
- package/modules/FileManagerRenderer/FileManagerView/index.js +0 -77
- package/modules/FileManagerRenderer/FileManagerView/index.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.js +0 -30
- package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.d.ts +0 -89
- package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.js +0 -459
- package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/index.d.ts +0 -2
- package/modules/FileManagerRenderer/FileManagerViewProvider/index.js +0 -4
- package/modules/FileManagerRenderer/FileManagerViewProvider/index.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.d.ts +0 -31
- package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.js +0 -100
- package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/state.d.ts +0 -33
- package/modules/FileManagerRenderer/FileManagerViewProvider/state.js +0 -34
- package/modules/FileManagerRenderer/FileManagerViewProvider/state.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.d.ts +0 -3
- package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.js +0 -11
- package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.d.ts +0 -24
- package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.js +0 -153
- package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.d.ts +0 -11
- package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.js +0 -89
- package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.js.map +0 -1
- package/modules/FileManagerRenderer/filters/FilterByType.js +0 -32
- package/modules/FileManagerRenderer/filters/FilterByType.js.map +0 -1
- package/modules/FileManagerRenderer/index.d.ts +0 -2
- package/modules/FileManagerRenderer/index.js +0 -140
- package/modules/FileManagerRenderer/index.js.map +0 -1
- package/modules/ThumbnailRenderers/FilePreviewDefaultRenderer.js +0 -12
- package/modules/ThumbnailRenderers/FilePreviewDefaultRenderer.js.map +0 -1
- package/modules/ThumbnailRenderers/FilePreviewImageRenderer.js +0 -19
- package/modules/ThumbnailRenderers/FilePreviewImageRenderer.js.map +0 -1
- package/modules/ThumbnailRenderers/GridItemDefaultRenderer.js +0 -12
- package/modules/ThumbnailRenderers/GridItemDefaultRenderer.js.map +0 -1
- package/modules/ThumbnailRenderers/GridItemImageRenderer.js +0 -19
- package/modules/ThumbnailRenderers/GridItemImageRenderer.js.map +0 -1
- package/modules/ThumbnailRenderers/TableItemDefaultRenderer.js +0 -19
- package/modules/ThumbnailRenderers/TableItemDefaultRenderer.js.map +0 -1
- package/modules/ThumbnailRenderers/TableItemImageRenderer.js +0 -19
- package/modules/ThumbnailRenderers/TableItemImageRenderer.js.map +0 -1
- package/presentation/resolveImageTool/ResolveImageTool.js +0 -48
- package/presentation/resolveImageTool/ResolveImageTool.js.map +0 -1
- package/presentation/resolveImageTool/feature.js +0 -10
- package/presentation/resolveImageTool/feature.js.map +0 -1
- package/tagsHelpers.js +0 -35
- package/tagsHelpers.js.map +0 -1
- package/types.d.ts +0 -78
- package/types.js +0 -3
- package/types.js.map +0 -1
- /package/{constants.d.ts → domain/constants.d.ts} +0 -0
- /package/{tagsHelpers.d.ts → domain/tagsHelpers.d.ts} +0 -0
- /package/{components/BulkActions/ActionEdit/ActionEditPresenter.test.d.ts → features/deleteFile/DeleteFile.test.d.ts} +0 -0
- /package/{components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.test.d.ts → features/fileUploader/FileUploader.test.d.ts} +0 -0
- /package/{components/BulkActions/ActionEdit/GraphQLInputMapper.test.d.ts → features/listFiles/ListFiles.test.d.ts} +0 -0
- /package/{presentation → features}/resolveImageTool/ResolveImageTool.d.ts +0 -0
- /package/{presentation → features}/resolveImageTool/feature.d.ts +0 -0
- /package/{modules/FileManagerRenderer → presentation}/FileActions/FileDetails/CopyUrl.d.ts +0 -0
- /package/{modules/FileManagerRenderer → presentation}/FileActions/FileDetails/DeleteImage.d.ts +0 -0
- /package/{modules/FileManagerRenderer → presentation}/FileActions/FileDetails/Download.d.ts +0 -0
- /package/{modules/FileManagerRenderer → presentation}/FileActions/FileDetails/MoveToFolder.d.ts +0 -0
- /package/{modules/FileManagerRenderer → presentation}/FileActions/Grid/Delete.d.ts +0 -0
- /package/{modules/FileManagerRenderer → presentation}/FileActions/Grid/Download.d.ts +0 -0
- /package/{modules/FileManagerRenderer → presentation}/FileActions/Grid/MoveToFolder.d.ts +0 -0
- /package/{modules/FileManagerRenderer → presentation}/FileActions/Grid/Settings.d.ts +0 -0
- /package/{modules/FileManagerRenderer → presentation}/FileActions/index.d.ts +0 -0
- /package/{components → presentation}/FileDetails/components/ActionButton.d.ts +0 -0
- /package/{components → presentation}/FileDetails/components/Actions.d.ts +0 -0
- /package/{components → presentation}/FileDetails/components/Content.d.ts +0 -0
- /package/{components → presentation}/FileDetails/components/CreatedOn.d.ts +0 -0
- /package/{components → presentation}/FileDetails/components/Description.d.ts +0 -0
- /package/{components → presentation}/FileDetails/components/Preview.d.ts +0 -0
- /package/{components → presentation}/FileDetails/components/Thumbnail.d.ts +0 -0
- /package/{components → presentation/FileList/components}/BottomInfoBar/BottomInfoBar.d.ts +0 -0
- /package/{components → presentation/FileList/components}/BottomInfoBar/ListStatus.d.ts +0 -0
- /package/{components → presentation/FileList/components}/BottomInfoBar/SupportedFileTypes.d.ts +0 -0
- /package/{components → presentation/FileList/components}/BottomInfoBar/index.d.ts +0 -0
- /package/{components/BulkActions/ActionEdit → presentation/FileList/components/BulkActions}/BatchEditorDialog/AddOperation.d.ts +0 -0
- /package/{components/BulkActions/ActionEdit → presentation/FileList/components/BulkActions}/BatchEditorDialog/index.d.ts +0 -0
- /package/{components/BulkActions/ActionEdit → presentation/FileList/components/BulkActions}/domain/Batch.d.ts +0 -0
- /package/{components/BulkActions/ActionEdit → presentation/FileList/components/BulkActions}/domain/BatchMapper.d.ts +0 -0
- /package/{components/BulkActions/ActionEdit → presentation/FileList/components/BulkActions}/domain/Field.d.ts +0 -0
- /package/{components/BulkActions/ActionEdit → presentation/FileList/components/BulkActions}/domain/FieldMapper.d.ts +0 -0
- /package/{components/BulkActions/ActionEdit → presentation/FileList/components/BulkActions}/domain/index.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Empty/Empty.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Empty/index.d.ts +0 -0
- /package/{components → presentation/FileList/components}/FileDropArea/FileDropArea.d.ts +0 -0
- /package/{components → presentation/FileList/components}/FileDropArea/index.d.ts +0 -0
- /package/{components → presentation/FileList/components}/FileDropPlaceholder/FileDropPlaceholder.d.ts +0 -0
- /package/{components → presentation/FileList/components}/FileDropPlaceholder/index.d.ts +0 -0
- /package/{modules/FileManagerRenderer/filters → presentation/FileList/components/Filters}/FilterByType.d.ts +0 -0
- /package/{components → presentation/FileList/components}/LayoutSwitch/LayoutSwitch.d.ts +0 -0
- /package/{components → presentation/FileList/components}/LayoutSwitch/index.d.ts +0 -0
- /package/{components → presentation/FileList/components}/NoPermissions/NoPermissions.d.ts +0 -0
- /package/{components → presentation/FileList/components}/NoPermissions/index.d.ts +0 -0
- /package/{components → presentation/FileList/components}/NoResults/NoResults.d.ts +0 -0
- /package/{components → presentation/FileList/components}/NoResults/index.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Actions/CopyFile.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Actions/DeleteFile.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Actions/EditFile.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Actions/MoveFile.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Actions/index.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Cells/CellActions.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Cells/CellAuthor.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Cells/CellCreated.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Cells/CellModified.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Cells/CellSize.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Cells/CellThumbnail.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Cells/CellType.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Cells/index.d.ts +0 -0
- /package/{components → presentation/FileList/components}/TagsList/Empty.d.ts +0 -0
- /package/{components → presentation/FileList/components}/TagsList/FilterSelect.d.ts +0 -0
- /package/{components → presentation/FileList/components}/TagsList/FilterStatus.d.ts +0 -0
- /package/{components → presentation/FileList/components}/TagsList/Tag.d.ts +0 -0
- /package/{components → presentation/FileList/components}/TagsList/Tags.d.ts +0 -0
- /package/{components → presentation/FileList/components}/TagsList/TagsList.d.ts +0 -0
- /package/{components → presentation/FileList/components}/TagsList/index.d.ts +0 -0
- /package/{components/Grid → presentation/FileList/components/Thumbnail}/Thumbnail.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Thumbnail/index.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/BulkEditField.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/FileAction.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/Filter.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/FilterByTags.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/FiltersToWhere.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/FolderAction.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/FolderDropConfirmation.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/FolderFieldDecorator.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/Grid/Action.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/Grid/Thumbnail.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/Grid/index.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/Table/Thumbnail.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/FileDetails/Action.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/FileDetails/Thumbnail.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/FileDetails/Width.d.ts +0 -0
- /package/{components → presentation/config}/fields/AccessControl.d.ts +0 -0
- /package/{components → presentation/config}/fields/Tags.d.ts +0 -0
- /package/{components → presentation/config}/fields/useAccessControlField.d.ts +0 -0
- /package/{components → presentation/config}/fields/useFileOrUndefined.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/outputFileSelectionError.d.ts +0 -0
- /package/{modules/ThumbnailRenderers → presentation/config/thumbnailRenderers}/FilePreviewDefaultRenderer.d.ts +0 -0
- /package/{modules/ThumbnailRenderers → presentation/config/thumbnailRenderers}/FilePreviewImageRenderer.d.ts +0 -0
- /package/{modules/ThumbnailRenderers → presentation/config/thumbnailRenderers}/GridItemDefaultRenderer.d.ts +0 -0
- /package/{modules/ThumbnailRenderers → presentation/config/thumbnailRenderers}/GridItemImageRenderer.d.ts +0 -0
- /package/{modules/ThumbnailRenderers → presentation/config/thumbnailRenderers}/TableItemDefaultRenderer.d.ts +0 -0
- /package/{modules/ThumbnailRenderers → presentation/config/thumbnailRenderers}/TableItemImageRenderer.d.ts +0 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import react, { useCallback, useRef } from "react";
|
|
2
|
+
import { observer } from "mobx-react-lite";
|
|
3
|
+
import { Text, cn } from "@webiny/admin-ui";
|
|
4
|
+
import { i18n } from "@webiny/app/i18n/index.js";
|
|
5
|
+
import { useFileManagerPresenter } from "../../FileManagerPresenterProvider.js";
|
|
6
|
+
const t = i18n.ns("app-file-manager/presentation/drop-zone");
|
|
7
|
+
function parseSizeToBytes(size) {
|
|
8
|
+
const num = parseFloat(size);
|
|
9
|
+
if (isNaN(num)) return 0;
|
|
10
|
+
const lower = size.toLowerCase();
|
|
11
|
+
if (lower.endsWith("gb")) return 1024 * num * 1048576;
|
|
12
|
+
if (lower.endsWith("mb")) return 1024 * num * 1024;
|
|
13
|
+
if (lower.endsWith("kb")) return 1024 * num;
|
|
14
|
+
return num;
|
|
15
|
+
}
|
|
16
|
+
const DropZone_DropZone = observer(function({ accept, maxFileSize, minFileSize, children }) {
|
|
17
|
+
const presenter = useFileManagerPresenter();
|
|
18
|
+
const { vm, actions } = presenter;
|
|
19
|
+
const dragCounterRef = useRef(0);
|
|
20
|
+
const filterFiles = useCallback((files)=>files.filter((file)=>{
|
|
21
|
+
if (accept && accept.length > 0) {
|
|
22
|
+
const accepted = accept.some((pattern)=>{
|
|
23
|
+
if (pattern.endsWith("/*")) {
|
|
24
|
+
const prefix = pattern.slice(0, -1);
|
|
25
|
+
return file.type.startsWith(prefix);
|
|
26
|
+
}
|
|
27
|
+
return file.type === pattern;
|
|
28
|
+
});
|
|
29
|
+
if (!accepted) return false;
|
|
30
|
+
}
|
|
31
|
+
if (maxFileSize) {
|
|
32
|
+
const max = parseSizeToBytes(maxFileSize);
|
|
33
|
+
if (max > 0 && file.size > max) return false;
|
|
34
|
+
}
|
|
35
|
+
if (minFileSize) {
|
|
36
|
+
const min = parseSizeToBytes(minFileSize);
|
|
37
|
+
if (min > 0 && file.size < min) return false;
|
|
38
|
+
}
|
|
39
|
+
return true;
|
|
40
|
+
}), [
|
|
41
|
+
accept,
|
|
42
|
+
maxFileSize,
|
|
43
|
+
minFileSize
|
|
44
|
+
]);
|
|
45
|
+
const handleDragEnter = useCallback((e)=>{
|
|
46
|
+
e.preventDefault();
|
|
47
|
+
e.stopPropagation();
|
|
48
|
+
dragCounterRef.current += 1;
|
|
49
|
+
}, []);
|
|
50
|
+
const handleDragOver = useCallback((e)=>{
|
|
51
|
+
e.preventDefault();
|
|
52
|
+
e.stopPropagation();
|
|
53
|
+
}, []);
|
|
54
|
+
const handleDragLeave = useCallback((e)=>{
|
|
55
|
+
e.preventDefault();
|
|
56
|
+
e.stopPropagation();
|
|
57
|
+
dragCounterRef.current -= 1;
|
|
58
|
+
}, []);
|
|
59
|
+
const handleDrop = useCallback((e)=>{
|
|
60
|
+
e.preventDefault();
|
|
61
|
+
e.stopPropagation();
|
|
62
|
+
dragCounterRef.current = 0;
|
|
63
|
+
const droppedFiles = Array.from(e.dataTransfer.files);
|
|
64
|
+
if (0 === droppedFiles.length) return;
|
|
65
|
+
const validFiles = filterFiles(droppedFiles);
|
|
66
|
+
if (validFiles.length > 0) actions.upload(validFiles);
|
|
67
|
+
}, [
|
|
68
|
+
filterFiles,
|
|
69
|
+
actions
|
|
70
|
+
]);
|
|
71
|
+
if (!vm.permissions.canCreate) return /*#__PURE__*/ react.createElement(react.Fragment, null, children);
|
|
72
|
+
return /*#__PURE__*/ react.createElement("div", {
|
|
73
|
+
className: "relative size-full",
|
|
74
|
+
onDragEnter: handleDragEnter,
|
|
75
|
+
onDragOver: handleDragOver,
|
|
76
|
+
onDragLeave: handleDragLeave,
|
|
77
|
+
onDrop: handleDrop,
|
|
78
|
+
"data-testid": "fm-drop-zone"
|
|
79
|
+
}, children, vm.dragging && /*#__PURE__*/ react.createElement("div", {
|
|
80
|
+
className: cn([
|
|
81
|
+
"absolute inset-0 z-50",
|
|
82
|
+
"flex items-center justify-center",
|
|
83
|
+
"bg-primary-default/10",
|
|
84
|
+
"border-lg border-dashed border-primary-default",
|
|
85
|
+
"rounded-lg",
|
|
86
|
+
"pointer-events-none"
|
|
87
|
+
]),
|
|
88
|
+
"data-testid": "fm-drop-zone-overlay"
|
|
89
|
+
}, /*#__PURE__*/ react.createElement(Text, {
|
|
90
|
+
size: "lg",
|
|
91
|
+
className: "text-primary-default font-semibold"
|
|
92
|
+
}, t`Drop files here to upload`)));
|
|
93
|
+
});
|
|
94
|
+
export { DropZone_DropZone as DropZone };
|
|
95
|
+
|
|
96
|
+
//# sourceMappingURL=DropZone.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/Upload/DropZone.js","sources":["../../../../../src/presentation/FileList/components/Upload/DropZone.tsx"],"sourcesContent":["import React, { useCallback, useRef } from \"react\";\nimport { observer } from \"mobx-react-lite\";\nimport { cn, Text } from \"@webiny/admin-ui\";\nimport { i18n } from \"@webiny/app/i18n/index.js\";\nimport { useFileManagerPresenter } from \"../../FileManagerPresenterProvider.js\";\n\nconst t = i18n.ns(\"app-file-manager/presentation/drop-zone\");\n\n/**\n * Parse a size string like \"26214400\" (bytes) or \"25MB\" into bytes.\n */\nfunction parseSizeToBytes(size: string): number {\n const num = parseFloat(size);\n if (isNaN(num)) {\n return 0;\n }\n const lower = size.toLowerCase();\n if (lower.endsWith(\"gb\")) {\n return num * 1024 * 1024 * 1024;\n }\n if (lower.endsWith(\"mb\")) {\n return num * 1024 * 1024;\n }\n if (lower.endsWith(\"kb\")) {\n return num * 1024;\n }\n // Assume raw bytes.\n return num;\n}\n\ninterface DropZoneProps {\n /** Accepted MIME types (e.g. [\"image/*\", \"application/pdf\"]). */\n accept?: string[];\n /** Maximum file size in bytes or human-readable string from Settings. */\n maxFileSize?: string;\n /** Minimum file size in bytes or human-readable string from Settings. */\n minFileSize?: string;\n children: React.ReactNode;\n}\n\n/**\n * Drag-and-drop upload zone that wraps the file list area.\n * Reads `vm.dragging` for overlay visibility and passes dropped files\n * to `presenter.actions.upload()`.\n */\nexport const DropZone = observer(function DropZone({\n accept,\n maxFileSize,\n minFileSize,\n children\n}: DropZoneProps) {\n const presenter = useFileManagerPresenter();\n const { vm, actions } = presenter;\n const dragCounterRef = useRef(0);\n\n // Filter files by accept list and size limits.\n const filterFiles = useCallback(\n (files: File[]): File[] => {\n return files.filter(file => {\n // Check accept filter.\n if (accept && accept.length > 0) {\n const accepted = accept.some(pattern => {\n if (pattern.endsWith(\"/*\")) {\n // Wildcard match (e.g. \"image/*\").\n const prefix = pattern.slice(0, -1);\n return file.type.startsWith(prefix);\n }\n return file.type === pattern;\n });\n if (!accepted) {\n return false;\n }\n }\n\n // Check max file size.\n if (maxFileSize) {\n const max = parseSizeToBytes(maxFileSize);\n if (max > 0 && file.size > max) {\n return false;\n }\n }\n\n // Check min file size.\n if (minFileSize) {\n const min = parseSizeToBytes(minFileSize);\n if (min > 0 && file.size < min) {\n return false;\n }\n }\n\n return true;\n });\n },\n [accept, maxFileSize, minFileSize]\n );\n\n const handleDragEnter = useCallback((e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n dragCounterRef.current += 1;\n }, []);\n\n const handleDragOver = useCallback((e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n }, []);\n\n const handleDragLeave = useCallback((e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n dragCounterRef.current -= 1;\n }, []);\n\n const handleDrop = useCallback(\n (e: React.DragEvent) => {\n e.preventDefault();\n e.stopPropagation();\n dragCounterRef.current = 0;\n\n const droppedFiles = Array.from(e.dataTransfer.files);\n if (droppedFiles.length === 0) {\n return;\n }\n\n const validFiles = filterFiles(droppedFiles);\n if (validFiles.length > 0) {\n void actions.upload(validFiles);\n }\n },\n [filterFiles, actions]\n );\n\n // Only show the drop zone when the user has create permission.\n if (!vm.permissions.canCreate) {\n return <>{children}</>;\n }\n\n return (\n <div\n className={\"relative size-full\"}\n onDragEnter={handleDragEnter}\n onDragOver={handleDragOver}\n onDragLeave={handleDragLeave}\n onDrop={handleDrop}\n data-testid={\"fm-drop-zone\"}\n >\n {children}\n {/* Drop overlay. */}\n {vm.dragging && (\n <div\n className={cn([\n \"absolute inset-0 z-50\",\n \"flex items-center justify-center\",\n \"bg-primary-default/10\",\n \"border-lg border-dashed border-primary-default\",\n \"rounded-lg\",\n \"pointer-events-none\"\n ])}\n data-testid={\"fm-drop-zone-overlay\"}\n >\n <Text size={\"lg\"} className={\"text-primary-default font-semibold\"}>\n {t`Drop files here to upload`}\n </Text>\n </div>\n )}\n </div>\n );\n});\n"],"names":["t","i18n","parseSizeToBytes","size","num","parseFloat","isNaN","lower","DropZone","observer","accept","maxFileSize","minFileSize","children","presenter","useFileManagerPresenter","vm","actions","dragCounterRef","useRef","filterFiles","useCallback","files","file","accepted","pattern","prefix","max","min","handleDragEnter","e","handleDragOver","handleDragLeave","handleDrop","droppedFiles","Array","validFiles","cn","Text"],"mappings":";;;;;AAMA,MAAMA,IAAIC,KAAK,EAAE,CAAC;AAKlB,SAASC,iBAAiBC,IAAY;IAClC,MAAMC,MAAMC,WAAWF;IACvB,IAAIG,MAAMF,MACN,OAAO;IAEX,MAAMG,QAAQJ,KAAK,WAAW;IAC9B,IAAII,MAAM,QAAQ,CAAC,OACf,OAAOH,AAAM,OAANA,MAAAA;IAEX,IAAIG,MAAM,QAAQ,CAAC,OACf,OAAOH,AAAM,OAANA,MAAa;IAExB,IAAIG,MAAM,QAAQ,CAAC,OACf,OAAOH,AAAM,OAANA;IAGX,OAAOA;AACX;AAiBO,MAAMI,oBAAWC,SAAS,SAAkB,EAC/CC,MAAM,EACNC,WAAW,EACXC,WAAW,EACXC,QAAQ,EACI;IACZ,MAAMC,YAAYC;IAClB,MAAM,EAAEC,EAAE,EAAEC,OAAO,EAAE,GAAGH;IACxB,MAAMI,iBAAiBC,OAAO;IAG9B,MAAMC,cAAcC,YAChB,CAACC,QACUA,MAAM,MAAM,CAACC,CAAAA;YAEhB,IAAIb,UAAUA,OAAO,MAAM,GAAG,GAAG;gBAC7B,MAAMc,WAAWd,OAAO,IAAI,CAACe,CAAAA;oBACzB,IAAIA,QAAQ,QAAQ,CAAC,OAAO;wBAExB,MAAMC,SAASD,QAAQ,KAAK,CAAC,GAAG;wBAChC,OAAOF,KAAK,IAAI,CAAC,UAAU,CAACG;oBAChC;oBACA,OAAOH,KAAK,IAAI,KAAKE;gBACzB;gBACA,IAAI,CAACD,UACD,OAAO;YAEf;YAGA,IAAIb,aAAa;gBACb,MAAMgB,MAAMzB,iBAAiBS;gBAC7B,IAAIgB,MAAM,KAAKJ,KAAK,IAAI,GAAGI,KACvB,OAAO;YAEf;YAGA,IAAIf,aAAa;gBACb,MAAMgB,MAAM1B,iBAAiBU;gBAC7B,IAAIgB,MAAM,KAAKL,KAAK,IAAI,GAAGK,KACvB,OAAO;YAEf;YAEA,OAAO;QACX,IAEJ;QAAClB;QAAQC;QAAaC;KAAY;IAGtC,MAAMiB,kBAAkBR,YAAY,CAACS;QACjCA,EAAE,cAAc;QAChBA,EAAE,eAAe;QACjBZ,eAAe,OAAO,IAAI;IAC9B,GAAG,EAAE;IAEL,MAAMa,iBAAiBV,YAAY,CAACS;QAChCA,EAAE,cAAc;QAChBA,EAAE,eAAe;IACrB,GAAG,EAAE;IAEL,MAAME,kBAAkBX,YAAY,CAACS;QACjCA,EAAE,cAAc;QAChBA,EAAE,eAAe;QACjBZ,eAAe,OAAO,IAAI;IAC9B,GAAG,EAAE;IAEL,MAAMe,aAAaZ,YACf,CAACS;QACGA,EAAE,cAAc;QAChBA,EAAE,eAAe;QACjBZ,eAAe,OAAO,GAAG;QAEzB,MAAMgB,eAAeC,MAAM,IAAI,CAACL,EAAE,YAAY,CAAC,KAAK;QACpD,IAAII,AAAwB,MAAxBA,aAAa,MAAM,EACnB;QAGJ,MAAME,aAAahB,YAAYc;QAC/B,IAAIE,WAAW,MAAM,GAAG,GACfnB,QAAQ,MAAM,CAACmB;IAE5B,GACA;QAAChB;QAAaH;KAAQ;IAI1B,IAAI,CAACD,GAAG,WAAW,CAAC,SAAS,EACzB,OAAO,WAAP,GAAO,0CAAGH;IAGd,OAAO,WAAP,GACI,oBAAC;QACG,WAAW;QACX,aAAagB;QACb,YAAYE;QACZ,aAAaC;QACb,QAAQC;QACR,eAAa;OAEZpB,UAEAG,GAAG,QAAQ,IAAI,WAAJ,GACR,oBAAC;QACG,WAAWqB,GAAG;YACV;YACA;YACA;YACA;YACA;YACA;SACH;QACD,eAAa;qBAEb,oBAACC,MAAIA;QAAC,MAAM;QAAM,WAAW;OACxBtC,CAAC,CAAC,yBAAyB,CAAC;AAMrD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Upload progress indicator that reads `vm.upload` from the FileListPresenter.
|
|
4
|
+
* Reuses the original UploadStatus markup — a bottom-center bar with progress
|
|
5
|
+
* and a close button.
|
|
6
|
+
*/
|
|
7
|
+
export declare const UploadProgress: (() => React.JSX.Element | null) & {
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import react, { useState } from "react";
|
|
2
|
+
import { observer } from "mobx-react-lite";
|
|
3
|
+
import { IconButton, ProgressBar, Text, cn } from "@webiny/admin-ui";
|
|
4
|
+
import { ReactComponent } from "@webiny/icons/close.svg";
|
|
5
|
+
import { i18n } from "@webiny/app/i18n/index.js";
|
|
6
|
+
import { useFileManagerPresenter } from "../../FileManagerPresenterProvider.js";
|
|
7
|
+
const t = i18n.ns("app-file-manager/presentation/upload-progress");
|
|
8
|
+
const UploadProgress_UploadProgress = observer(function() {
|
|
9
|
+
const { vm } = useFileManagerPresenter();
|
|
10
|
+
const { upload } = vm;
|
|
11
|
+
const [isVisible, setIsVisible] = useState(true);
|
|
12
|
+
if (0 === upload.jobs.length || !isVisible) return null;
|
|
13
|
+
const numberOfFiles = upload.jobs.length;
|
|
14
|
+
return /*#__PURE__*/ react.createElement("div", {
|
|
15
|
+
className: cn([
|
|
16
|
+
"p-md rounded-lg",
|
|
17
|
+
"bg-neutral-dark shadow-lg",
|
|
18
|
+
"absolute bottom-xxl left-2/4 -translate-x-1/2 z-10",
|
|
19
|
+
"flex items-center gap-sm-extra",
|
|
20
|
+
"animate-in slide-in-from-top-4 slide-in-from-left-1/2 duration-500"
|
|
21
|
+
]),
|
|
22
|
+
"data-testid": "fm-upload-progress"
|
|
23
|
+
}, /*#__PURE__*/ react.createElement(Text, {
|
|
24
|
+
as: "div",
|
|
25
|
+
size: "sm",
|
|
26
|
+
className: "text-neutral-disabled shrink-0"
|
|
27
|
+
}, t`Uploading {numberOfFiles} {label}`({
|
|
28
|
+
numberOfFiles: `${numberOfFiles}`,
|
|
29
|
+
label: 1 === numberOfFiles ? t`file` : t`files`
|
|
30
|
+
})), /*#__PURE__*/ react.createElement("div", {
|
|
31
|
+
className: "w-64"
|
|
32
|
+
}, /*#__PURE__*/ react.createElement(ProgressBar, {
|
|
33
|
+
value: upload.overallProgress.percentage,
|
|
34
|
+
valuePosition: "end",
|
|
35
|
+
className: "text-neutral-light"
|
|
36
|
+
})), /*#__PURE__*/ react.createElement(IconButton, {
|
|
37
|
+
onClick: ()=>setIsVisible(false),
|
|
38
|
+
icon: /*#__PURE__*/ react.createElement(ReactComponent, null),
|
|
39
|
+
variant: "ghost-negative",
|
|
40
|
+
size: "sm"
|
|
41
|
+
}));
|
|
42
|
+
});
|
|
43
|
+
export { UploadProgress_UploadProgress as UploadProgress };
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=UploadProgress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/Upload/UploadProgress.js","sources":["../../../../../src/presentation/FileList/components/Upload/UploadProgress.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport { observer } from \"mobx-react-lite\";\nimport { cn, IconButton, ProgressBar, Text } from \"@webiny/admin-ui\";\nimport { ReactComponent as CloseIcon } from \"@webiny/icons/close.svg\";\nimport { i18n } from \"@webiny/app/i18n/index.js\";\nimport { useFileManagerPresenter } from \"../../FileManagerPresenterProvider.js\";\n\nconst t = i18n.ns(\"app-file-manager/presentation/upload-progress\");\n\n/**\n * Upload progress indicator that reads `vm.upload` from the FileListPresenter.\n * Reuses the original UploadStatus markup — a bottom-center bar with progress\n * and a close button.\n */\nexport const UploadProgress = observer(function UploadProgress() {\n const { vm } = useFileManagerPresenter();\n const { upload } = vm;\n const [isVisible, setIsVisible] = useState(true);\n\n // Don't render when there are no jobs or the user dismissed it.\n if (upload.jobs.length === 0 || !isVisible) {\n return null;\n }\n\n const numberOfFiles = upload.jobs.length;\n\n return (\n <div\n className={cn([\n \"p-md rounded-lg\",\n \"bg-neutral-dark shadow-lg\",\n \"absolute bottom-xxl left-2/4 -translate-x-1/2 z-10\",\n \"flex items-center gap-sm-extra\",\n \"animate-in slide-in-from-top-4 slide-in-from-left-1/2 duration-500\"\n ])}\n data-testid={\"fm-upload-progress\"}\n >\n <Text as={\"div\"} size={\"sm\"} className={\"text-neutral-disabled shrink-0\"}>\n {t`Uploading {numberOfFiles} {label}`({\n numberOfFiles: `${numberOfFiles}`,\n label: numberOfFiles === 1 ? t`file` : t`files`\n })}\n </Text>\n <div className={\"w-64\"}>\n <ProgressBar\n value={upload.overallProgress.percentage}\n valuePosition={\"end\"}\n className={\"text-neutral-light\"}\n />\n </div>\n <IconButton\n onClick={() => setIsVisible(false)}\n icon={<CloseIcon />}\n variant={\"ghost-negative\"}\n size={\"sm\"}\n />\n </div>\n );\n});\n"],"names":["t","i18n","UploadProgress","observer","vm","useFileManagerPresenter","upload","isVisible","setIsVisible","useState","numberOfFiles","cn","Text","ProgressBar","IconButton","CloseIcon"],"mappings":";;;;;;AAOA,MAAMA,IAAIC,KAAK,EAAE,CAAC;AAOX,MAAMC,gCAAiBC,SAAS;IACnC,MAAM,EAAEC,EAAE,EAAE,GAAGC;IACf,MAAM,EAAEC,MAAM,EAAE,GAAGF;IACnB,MAAM,CAACG,WAAWC,aAAa,GAAGC,SAAS;IAG3C,IAAIH,AAAuB,MAAvBA,OAAO,IAAI,CAAC,MAAM,IAAU,CAACC,WAC7B,OAAO;IAGX,MAAMG,gBAAgBJ,OAAO,IAAI,CAAC,MAAM;IAExC,OAAO,WAAP,GACI,oBAAC;QACG,WAAWK,GAAG;YACV;YACA;YACA;YACA;YACA;SACH;QACD,eAAa;qBAEb,oBAACC,MAAIA;QAAC,IAAI;QAAO,MAAM;QAAM,WAAW;OACnCZ,CAAC,CAAC,iCAAiC,CAAC,CAAC;QAClC,eAAe,GAAGU,eAAe;QACjC,OAAOA,AAAkB,MAAlBA,gBAAsBV,CAAC,CAAC,IAAI,CAAC,GAAGA,CAAC,CAAC,KAAK,CAAC;IACnD,mBAEJ,oBAAC;QAAI,WAAW;qBACZ,oBAACa,aAAWA;QACR,OAAOP,OAAO,eAAe,CAAC,UAAU;QACxC,eAAe;QACf,WAAW;uBAGnB,oBAACQ,YAAUA;QACP,SAAS,IAAMN,aAAa;QAC5B,oBAAM,oBAACO,gBAASA;QAChB,SAAS;QACT,MAAM;;AAItB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createFeature } from "@webiny/feature/admin";
|
|
2
|
+
import { FileManagerPresenter } from "./abstractions.js";
|
|
3
|
+
import { FileManagerPresenter as external_FileManagerPresenter_js_FileManagerPresenter } from "./FileManagerPresenter.js";
|
|
4
|
+
const FileManagerPresenterFeature = createFeature({
|
|
5
|
+
name: "FileManager/FileManagerPresenter",
|
|
6
|
+
register (container) {
|
|
7
|
+
container.register(external_FileManagerPresenter_js_FileManagerPresenter).inSingletonScope();
|
|
8
|
+
},
|
|
9
|
+
resolve (container) {
|
|
10
|
+
return {
|
|
11
|
+
presenter: container.resolve(FileManagerPresenter)
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export { FileManagerPresenterFeature };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/feature.js","sources":["../../../src/presentation/FileList/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/admin\";\nimport { FileManagerPresenter as Abstraction } from \"./abstractions.js\";\nimport { FileManagerPresenter } from \"./FileManagerPresenter.js\";\n\nexport const FileManagerPresenterFeature = createFeature({\n name: \"FileManager/FileManagerPresenter\",\n register(container) {\n container.register(FileManagerPresenter).inSingletonScope();\n },\n resolve(container) {\n return {\n presenter: container.resolve(Abstraction)\n };\n }\n});\n"],"names":["FileManagerPresenterFeature","createFeature","container","FileManagerPresenter","Abstraction"],"mappings":";;;AAIO,MAAMA,8BAA8BC,cAAc;IACrD,MAAM;IACN,UAASC,SAAS;QACdA,UAAU,QAAQ,CAACC,uDAAsB,gBAAgB;IAC7D;IACA,SAAQD,SAAS;QACb,OAAO;YACH,WAAWA,UAAU,OAAO,CAACE;QACjC;IACJ;AACJ"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { FileManagerPresenterFeature } from "./feature.js";
|
|
2
|
+
export { FileManagerPresenter } from "./abstractions.js";
|
|
3
|
+
export type { IFileManagerPresenter, IFileManagerViewModel, IFileManagerActions, IFolderActions, IFileManagerInitConfig } from "./abstractions.js";
|
|
4
|
+
export { FileManagerPresenterProvider } from "./FileManagerPresenterProvider.js";
|
|
5
|
+
export { useFileManagerPresenter } from "./FileManagerPresenterProvider.js";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { FileManagerRenderer } from "@webiny/app-admin";
|
|
3
|
+
import { FileManagerView } from "./FileManagerView.js";
|
|
4
|
+
const formatFileItem = (file)=>({
|
|
5
|
+
id: file.id,
|
|
6
|
+
src: file.src,
|
|
7
|
+
name: file.name,
|
|
8
|
+
type: file.type,
|
|
9
|
+
size: file.size,
|
|
10
|
+
width: file.metadata?.image?.width,
|
|
11
|
+
height: file.metadata?.image?.height,
|
|
12
|
+
extensions: file.extensions,
|
|
13
|
+
metadata: file.metadata
|
|
14
|
+
});
|
|
15
|
+
const FileManagerRendererDecorator = FileManagerRenderer.createDecorator(()=>function(props) {
|
|
16
|
+
const { onChange, onClose, multiple, accept, scope, overlay = true } = props;
|
|
17
|
+
const handleChange = (files)=>{
|
|
18
|
+
if (!onChange || !files.length) return;
|
|
19
|
+
multiple ? onChange(files.map(formatFileItem)) : onChange(formatFileItem(files[0]));
|
|
20
|
+
if (onClose) onClose();
|
|
21
|
+
};
|
|
22
|
+
return /*#__PURE__*/ react.createElement(FileManagerView, {
|
|
23
|
+
overlay: overlay,
|
|
24
|
+
onChange: handleChange,
|
|
25
|
+
onClose: onClose,
|
|
26
|
+
multiple: multiple,
|
|
27
|
+
accept: accept,
|
|
28
|
+
scope: scope
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
export { FileManagerRendererDecorator };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=FileManagerRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileManager/FileManagerRenderer.js","sources":["../../../src/presentation/FileManager/FileManagerRenderer.tsx"],"sourcesContent":["import React from \"react\";\nimport type { FileManagerFileItem, FileManagerOnChange } from \"@webiny/app-admin\";\nimport { FileManagerRenderer as BaseFileManagerRenderer } from \"@webiny/app-admin\";\nimport type { FmFile } from \"~/features/shared/types.js\";\nimport { FileManagerView } from \"./FileManagerView.js\";\n\nconst formatFileItem = (file: FmFile): FileManagerFileItem => {\n return {\n id: file.id,\n src: file.src,\n name: file.name,\n type: file.type,\n size: file.size,\n width: file.metadata?.image?.width,\n height: file.metadata?.image?.height,\n extensions: file.extensions,\n metadata: file.metadata\n };\n};\n\nexport const FileManagerRendererDecorator = BaseFileManagerRenderer.createDecorator(() => {\n return function FileManagerRendererImpl(props) {\n const { onChange, onClose, multiple, accept, scope, overlay = true } = props;\n\n const handleChange = (files: FmFile[]) => {\n if (!onChange || !files.length) {\n return;\n }\n\n if (multiple) {\n (onChange as FileManagerOnChange<FileManagerFileItem[]>)(files.map(formatFileItem));\n } else {\n (onChange as FileManagerOnChange<FileManagerFileItem>)(formatFileItem(files[0]));\n }\n\n if (onClose) {\n onClose();\n }\n };\n\n return (\n <FileManagerView\n overlay={overlay}\n onChange={handleChange}\n onClose={onClose}\n multiple={multiple}\n accept={accept}\n scope={scope}\n />\n );\n };\n});\n"],"names":["formatFileItem","file","FileManagerRendererDecorator","BaseFileManagerRenderer","props","onChange","onClose","multiple","accept","scope","overlay","handleChange","files","FileManagerView"],"mappings":";;;AAMA,MAAMA,iBAAiB,CAACC,OACb;QACH,IAAIA,KAAK,EAAE;QACX,KAAKA,KAAK,GAAG;QACb,MAAMA,KAAK,IAAI;QACf,MAAMA,KAAK,IAAI;QACf,MAAMA,KAAK,IAAI;QACf,OAAOA,KAAK,QAAQ,EAAE,OAAO;QAC7B,QAAQA,KAAK,QAAQ,EAAE,OAAO;QAC9B,YAAYA,KAAK,UAAU;QAC3B,UAAUA,KAAK,QAAQ;IAC3B;AAGG,MAAMC,+BAA+BC,oBAAAA,eAAuC,CAAC,IACzE,SAAiCC,KAAK;QACzC,MAAM,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,QAAQ,EAAEC,MAAM,EAAEC,KAAK,EAAEC,UAAU,IAAI,EAAE,GAAGN;QAEvE,MAAMO,eAAe,CAACC;YAClB,IAAI,CAACP,YAAY,CAACO,MAAM,MAAM,EAC1B;YAGAL,WACCF,SAAwDO,MAAM,GAAG,CAACZ,mBAElEK,SAAsDL,eAAeY,KAAK,CAAC,EAAE;YAGlF,IAAIN,SACAA;QAER;QAEA,OAAO,WAAP,GACI,oBAACO,iBAAeA;YACZ,SAASH;YACT,UAAUC;YACV,SAASL;YACT,UAAUC;YACV,QAAQC;YACR,OAAOC;;IAGnB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { FmFile } from "../../features/shared/types.js";
|
|
3
|
+
export interface FileManagerViewProps {
|
|
4
|
+
overlay?: boolean;
|
|
5
|
+
onChange?: (files: FmFile[]) => void;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
multiple?: boolean;
|
|
8
|
+
accept?: string[];
|
|
9
|
+
scope?: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const FileManagerView: (props: FileManagerViewProps) => React.JSX.Element;
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import react, { useCallback, useEffect, useMemo } from "react";
|
|
2
|
+
import { DiContainerProvider, useContainer, useFeature } from "@webiny/app";
|
|
3
|
+
import { observer } from "mobx-react-lite";
|
|
4
|
+
import react_butterfiles from "react-butterfiles";
|
|
5
|
+
import debounce from "lodash/debounce.js";
|
|
6
|
+
import { Heading, OverlayLoader, Scrollbar, Separator, useToast } from "@webiny/admin-ui";
|
|
7
|
+
import { i18n } from "@webiny/app/i18n/index.js";
|
|
8
|
+
import { DialogsProvider, LeftPanel, OverlayLayout, RightPanel, SplitView, useHotkeys } from "@webiny/app-admin";
|
|
9
|
+
import { FoldersFeature } from "@webiny/app-aco/features/folders/feature.js";
|
|
10
|
+
import { FolderTreePresenterFeature } from "@webiny/app-aco/presentation/folderTree/feature.js";
|
|
11
|
+
import { FileManagerPresenterFeature } from "../FileList/feature.js";
|
|
12
|
+
import { FileManagerPresenterProvider, useFileManagerPresenter } from "../FileList/FileManagerPresenterProvider.js";
|
|
13
|
+
import { FileDetailsPresenterFeature } from "../FileDetails/feature.js";
|
|
14
|
+
import { SharedCacheFeature } from "../../features/shared/feature.js";
|
|
15
|
+
import { ListFilesFeature } from "../../features/listFiles/feature.js";
|
|
16
|
+
import { GetFileFeature } from "../../features/getFile/feature.js";
|
|
17
|
+
import { DeleteFileFeature } from "../../features/deleteFile/feature.js";
|
|
18
|
+
import { UpdateFileFeature } from "../../features/updateFile/feature.js";
|
|
19
|
+
import { FileUploaderFeature } from "../../features/fileUploader/feature.js";
|
|
20
|
+
import { ListTagsFeature } from "../../features/tags/feature.js";
|
|
21
|
+
import { GetSettingsFeature } from "../../features/settings/feature.js";
|
|
22
|
+
import { FileManagerViewWithConfig, useFileManagerConfig } from "../config/FileManagerViewConfig.js";
|
|
23
|
+
import { outputFileSelectionError } from "../config/outputFileSelectionError.js";
|
|
24
|
+
import { FolderTree } from "@webiny/app-aco/presentation/folderTree/FolderTree.js";
|
|
25
|
+
import { BottomInfoBar } from "../FileList/components/BottomInfoBar/index.js";
|
|
26
|
+
import { BulkActionBar } from "../FileList/components/BulkActions/index.js";
|
|
27
|
+
import { FileDropPlaceholder } from "../FileList/components/FileDropPlaceholder/index.js";
|
|
28
|
+
import { Empty } from "../FileList/components/Empty/index.js";
|
|
29
|
+
import { FileDetailsDrawer } from "../FileDetails/components/FileDetailsDrawer.js";
|
|
30
|
+
import { FileGrid } from "../FileList/components/Grid/index.js";
|
|
31
|
+
import { FileManagerHeader } from "../FileList/components/Header/FileManagerHeader.js";
|
|
32
|
+
import { FileTable } from "../FileList/components/Table/index.js";
|
|
33
|
+
import { TagsList } from "../FileList/components/TagsList/index.js";
|
|
34
|
+
import { UploadProgress } from "../FileList/components/Upload/index.js";
|
|
35
|
+
import { GetSettingsRepository } from "../../features/settings/abstractions.js";
|
|
36
|
+
import { OverlayProvider, useOverlay } from "./OverlayContext.js";
|
|
37
|
+
const t = i18n.ns("app-admin/file-manager/file-manager-view");
|
|
38
|
+
const FileManagerView_FileManagerViewLayout = observer(function() {
|
|
39
|
+
const { vm, actions } = useFileManagerPresenter();
|
|
40
|
+
const { browser } = useFileManagerConfig();
|
|
41
|
+
const overlay = useOverlay();
|
|
42
|
+
const toast = useToast();
|
|
43
|
+
useHotkeys({
|
|
44
|
+
zIndex: 20,
|
|
45
|
+
keys: {
|
|
46
|
+
esc: ()=>overlay && overlay.onClose()
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
const container = useContainer();
|
|
50
|
+
const settingsRepository = useMemo(()=>container.resolve(GetSettingsRepository), [
|
|
51
|
+
container
|
|
52
|
+
]);
|
|
53
|
+
const settings = settingsRepository.settings;
|
|
54
|
+
const uploadFiles = async (files)=>{
|
|
55
|
+
await actions.upload(files);
|
|
56
|
+
toast.showSuccessToast({
|
|
57
|
+
title: "File upload complete."
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
const loadMoreOnScroll = useCallback(debounce(async ({ scrollFrame })=>{
|
|
61
|
+
if (scrollFrame.top > 0.8) actions.loadMore();
|
|
62
|
+
}, 200), [
|
|
63
|
+
vm.list.pagination,
|
|
64
|
+
actions
|
|
65
|
+
]);
|
|
66
|
+
if (!vm.fileModel) return /*#__PURE__*/ react.createElement(OverlayLoader, {
|
|
67
|
+
text: t`Preparing File Manager...`
|
|
68
|
+
});
|
|
69
|
+
const renderList = (browseFiles)=>{
|
|
70
|
+
if (!vm.list.pagination.loading && 0 === vm.list.rows.length) return /*#__PURE__*/ react.createElement(Empty, {
|
|
71
|
+
isSearchResult: !vm.showFolders,
|
|
72
|
+
browseFiles: browseFiles
|
|
73
|
+
});
|
|
74
|
+
if ("table" === vm.viewMode) return /*#__PURE__*/ react.createElement(FileTable, null);
|
|
75
|
+
return /*#__PURE__*/ react.createElement(FileGrid, null);
|
|
76
|
+
};
|
|
77
|
+
const content = /*#__PURE__*/ react.createElement(react_butterfiles, {
|
|
78
|
+
multiple: true,
|
|
79
|
+
maxSize: settings ? settings.uploadMaxFileSize + "b" : "1TB",
|
|
80
|
+
multipleMaxSize: "1TB",
|
|
81
|
+
accept: overlay?.accept ?? [],
|
|
82
|
+
onSuccess: (files)=>{
|
|
83
|
+
const filesToUpload = files.map((file)=>file.src.file).filter(Boolean);
|
|
84
|
+
uploadFiles(filesToUpload);
|
|
85
|
+
},
|
|
86
|
+
onError: (errors)=>{
|
|
87
|
+
const message = outputFileSelectionError(errors);
|
|
88
|
+
if (message) toast.showWarningToast({
|
|
89
|
+
title: message
|
|
90
|
+
});
|
|
91
|
+
else {
|
|
92
|
+
toast.showWarningToast({
|
|
93
|
+
title: "Couldn't process selected files."
|
|
94
|
+
});
|
|
95
|
+
console.error(errors);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}, ({ getDropZoneProps, browseFiles })=>/*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(FileDetailsDrawer, null), /*#__PURE__*/ react.createElement(SplitView, {
|
|
99
|
+
namespace: "fm/file/list"
|
|
100
|
+
}, /*#__PURE__*/ react.createElement(LeftPanel, {
|
|
101
|
+
span: 2
|
|
102
|
+
}, /*#__PURE__*/ react.createElement("div", {
|
|
103
|
+
className: "flex flex-col h-main-content"
|
|
104
|
+
}, /*#__PURE__*/ react.createElement("div", {
|
|
105
|
+
className: "py-sm px-md"
|
|
106
|
+
}, /*#__PURE__*/ react.createElement(Heading, {
|
|
107
|
+
level: 5
|
|
108
|
+
}, t`File Manager`)), /*#__PURE__*/ react.createElement(Separator, null), /*#__PURE__*/ react.createElement("div", {
|
|
109
|
+
className: "shrink-0 overflow-y-auto max-h-[66vh]"
|
|
110
|
+
}, /*#__PURE__*/ react.createElement(FolderTree, {
|
|
111
|
+
vm: vm.folders,
|
|
112
|
+
actions: actions.folders,
|
|
113
|
+
folderActions: browser.folder.actions,
|
|
114
|
+
dropConfirmation: browser.folder.dropConfirmation,
|
|
115
|
+
enableActions: true,
|
|
116
|
+
enableCreate: true
|
|
117
|
+
})), browser.filterByTags ? /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(Separator, null), /*#__PURE__*/ react.createElement("div", {
|
|
118
|
+
className: "flex-1 overflow-y-auto min-h-0"
|
|
119
|
+
}, /*#__PURE__*/ react.createElement(TagsList, {
|
|
120
|
+
loading: false,
|
|
121
|
+
activeTags: vm.list.filters["tags"] ?? [],
|
|
122
|
+
tags: vm.tags.map((tag)=>({
|
|
123
|
+
tag: tag.tag,
|
|
124
|
+
count: tag.count
|
|
125
|
+
})),
|
|
126
|
+
onActivatedTagsChange: (tags)=>{
|
|
127
|
+
if (tags.length > 0) actions.filter.set("tags", tags);
|
|
128
|
+
else {
|
|
129
|
+
actions.filter.clear("tags");
|
|
130
|
+
actions.filter.clear("tags_rule");
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}))) : null)), /*#__PURE__*/ react.createElement(RightPanel, {
|
|
134
|
+
span: 10
|
|
135
|
+
}, /*#__PURE__*/ react.createElement("div", {
|
|
136
|
+
className: "flex flex-col relative",
|
|
137
|
+
style: {
|
|
138
|
+
height: "calc(100vh - 45px"
|
|
139
|
+
}
|
|
140
|
+
}, /*#__PURE__*/ react.createElement(FileManagerHeader, {
|
|
141
|
+
browseFiles: browseFiles
|
|
142
|
+
}), /*#__PURE__*/ react.createElement("div", {
|
|
143
|
+
className: "flex-1",
|
|
144
|
+
...getDropZoneProps({
|
|
145
|
+
onDragEnter: ()=>actions.setDragging(true),
|
|
146
|
+
onDrop: ()=>actions.setDragging(false),
|
|
147
|
+
onDragLeave: (e)=>{
|
|
148
|
+
if (!e.relatedTarget || !e.currentTarget.contains(e.relatedTarget)) actions.setDragging(false);
|
|
149
|
+
}
|
|
150
|
+
}),
|
|
151
|
+
"data-testid": "fm-list-wrapper"
|
|
152
|
+
}, !overlay && /*#__PURE__*/ react.createElement(BulkActionBar, null), /*#__PURE__*/ react.createElement(Scrollbar, {
|
|
153
|
+
onScrollFrame: (scrollFrame)=>loadMoreOnScroll({
|
|
154
|
+
scrollFrame
|
|
155
|
+
})
|
|
156
|
+
}, renderList(browseFiles)), vm.dragging && /*#__PURE__*/ react.createElement(FileDropPlaceholder, null), /*#__PURE__*/ react.createElement(UploadProgress, null)), /*#__PURE__*/ react.createElement(BottomInfoBar, {
|
|
157
|
+
accept: overlay?.accept ?? [],
|
|
158
|
+
listing: vm.list.pagination.loadingMore,
|
|
159
|
+
loading: vm.list.pagination.loading,
|
|
160
|
+
totalCount: vm.list.pagination.totalCount,
|
|
161
|
+
currentCount: vm.list.pagination.currentCount
|
|
162
|
+
}))))));
|
|
163
|
+
if (overlay) return /*#__PURE__*/ react.createElement(OverlayLayout, {
|
|
164
|
+
variant: "strong",
|
|
165
|
+
onExited: ()=>overlay.onClose()
|
|
166
|
+
}, content);
|
|
167
|
+
return content;
|
|
168
|
+
});
|
|
169
|
+
const FileManagerViewInner = observer(({ overlay = false, onChange, onClose, multiple, accept, scope, children })=>{
|
|
170
|
+
const { presenter } = useFeature(FileManagerPresenterFeature);
|
|
171
|
+
const overlayConfig = useMemo(()=>{
|
|
172
|
+
if (!overlay || !onChange || !onClose) return null;
|
|
173
|
+
const handleFileClick = (file)=>{
|
|
174
|
+
if (multiple) presenter.actions.selection.toggle(file.id);
|
|
175
|
+
else onChange([
|
|
176
|
+
file
|
|
177
|
+
]);
|
|
178
|
+
};
|
|
179
|
+
const confirmSelection = ()=>{
|
|
180
|
+
const selectedIds = presenter.vm.list.selection.selectedIds;
|
|
181
|
+
const selectedFiles = presenter.vm.list.rows.filter((f)=>selectedIds.has(f.id));
|
|
182
|
+
if (selectedFiles.length > 0) onChange(selectedFiles);
|
|
183
|
+
};
|
|
184
|
+
return {
|
|
185
|
+
onFileClick: handleFileClick,
|
|
186
|
+
confirmSelection,
|
|
187
|
+
onClose,
|
|
188
|
+
accept: accept ?? [],
|
|
189
|
+
multiple: multiple ?? false
|
|
190
|
+
};
|
|
191
|
+
}, [
|
|
192
|
+
overlay,
|
|
193
|
+
onChange,
|
|
194
|
+
onClose,
|
|
195
|
+
multiple,
|
|
196
|
+
accept
|
|
197
|
+
]);
|
|
198
|
+
useEffect(()=>{
|
|
199
|
+
presenter.init({
|
|
200
|
+
scope
|
|
201
|
+
});
|
|
202
|
+
return ()=>presenter.dispose();
|
|
203
|
+
}, [
|
|
204
|
+
presenter,
|
|
205
|
+
overlay,
|
|
206
|
+
scope
|
|
207
|
+
]);
|
|
208
|
+
const inner = /*#__PURE__*/ react.createElement(DialogsProvider, null, /*#__PURE__*/ react.createElement(FileManagerViewWithConfig, null, /*#__PURE__*/ react.createElement(FileManagerPresenterProvider, {
|
|
209
|
+
presenter: presenter
|
|
210
|
+
}, /*#__PURE__*/ react.createElement(FileManagerView_FileManagerViewLayout, null), children)));
|
|
211
|
+
if (overlayConfig) return /*#__PURE__*/ react.createElement(OverlayProvider, {
|
|
212
|
+
config: overlayConfig
|
|
213
|
+
}, inner);
|
|
214
|
+
return inner;
|
|
215
|
+
});
|
|
216
|
+
const FileManagerView = (props)=>{
|
|
217
|
+
const container = useContainer();
|
|
218
|
+
const scopedContainer = useMemo(()=>{
|
|
219
|
+
const child = container.createChildContainer();
|
|
220
|
+
SharedCacheFeature.register(child);
|
|
221
|
+
FoldersFeature.register(child, {
|
|
222
|
+
type: "FmFile"
|
|
223
|
+
});
|
|
224
|
+
FolderTreePresenterFeature.register(child);
|
|
225
|
+
ListFilesFeature.register(child);
|
|
226
|
+
GetFileFeature.register(child);
|
|
227
|
+
DeleteFileFeature.register(child);
|
|
228
|
+
UpdateFileFeature.register(child);
|
|
229
|
+
FileUploaderFeature.register(child);
|
|
230
|
+
ListTagsFeature.register(child);
|
|
231
|
+
GetSettingsFeature.register(child);
|
|
232
|
+
FileDetailsPresenterFeature.register(child);
|
|
233
|
+
FileManagerPresenterFeature.register(child);
|
|
234
|
+
return child;
|
|
235
|
+
}, []);
|
|
236
|
+
return /*#__PURE__*/ react.createElement(DiContainerProvider, {
|
|
237
|
+
container: scopedContainer
|
|
238
|
+
}, /*#__PURE__*/ react.createElement(FileManagerViewInner, props));
|
|
239
|
+
};
|
|
240
|
+
export { FileManagerView };
|
|
241
|
+
|
|
242
|
+
//# sourceMappingURL=FileManagerView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileManager/FileManagerView.js","sources":["../../../src/presentation/FileManager/FileManagerView.tsx"],"sourcesContent":["import React, { useMemo, useEffect, useCallback } from \"react\";\nimport { DiContainerProvider, useContainer, useFeature } from \"@webiny/app\";\nimport { observer } from \"mobx-react-lite\";\nimport type { FilesRenderChildren } from \"react-butterfiles\";\nimport Files from \"react-butterfiles\";\nimport debounce from \"lodash/debounce.js\";\nimport type { positionValues } from \"react-custom-scrollbars\";\nimport { Heading, OverlayLoader, Scrollbar, Separator, useToast } from \"@webiny/admin-ui\";\nimport { i18n } from \"@webiny/app/i18n/index.js\";\nimport {\n LeftPanel,\n OverlayLayout,\n RightPanel,\n SplitView,\n DialogsProvider,\n useHotkeys\n} from \"@webiny/app-admin\";\nimport { FoldersFeature } from \"@webiny/app-aco/features/folders/feature.js\";\nimport { FolderTreePresenterFeature } from \"@webiny/app-aco/presentation/folderTree/feature.js\";\nimport { FileManagerPresenterFeature } from \"~/presentation/FileList/feature.js\";\nimport {\n FileManagerPresenterProvider,\n useFileManagerPresenter\n} from \"~/presentation/FileList/FileManagerPresenterProvider.js\";\nimport { FileDetailsPresenterFeature } from \"~/presentation/FileDetails/feature.js\";\nimport { SharedCacheFeature } from \"~/features/shared/feature.js\";\nimport { ListFilesFeature } from \"~/features/listFiles/feature.js\";\nimport { GetFileFeature } from \"~/features/getFile/feature.js\";\nimport { DeleteFileFeature } from \"~/features/deleteFile/feature.js\";\nimport { UpdateFileFeature } from \"~/features/updateFile/feature.js\";\nimport { FileUploaderFeature } from \"~/features/fileUploader/feature.js\";\nimport { ListTagsFeature } from \"~/features/tags/feature.js\";\nimport { GetSettingsFeature } from \"~/features/settings/feature.js\";\nimport {\n FileManagerViewWithConfig,\n useFileManagerConfig\n} from \"~/presentation/config/FileManagerViewConfig.js\";\nimport { outputFileSelectionError } from \"~/presentation/config/outputFileSelectionError.js\";\nimport { FolderTree } from \"@webiny/app-aco/presentation/folderTree/FolderTree.js\";\nimport { BottomInfoBar } from \"~/presentation/FileList/components/BottomInfoBar/index.js\";\nimport { BulkActionBar } from \"~/presentation/FileList/components/BulkActions/index.js\";\nimport { FileDropPlaceholder } from \"~/presentation/FileList/components/FileDropPlaceholder/index.js\";\nimport { Empty } from \"~/presentation/FileList/components/Empty/index.js\";\nimport { FileDetailsDrawer } from \"~/presentation/FileDetails/components/FileDetailsDrawer.js\";\nimport { FileGrid } from \"~/presentation/FileList/components/Grid/index.js\";\nimport { FileManagerHeader } from \"~/presentation/FileList/components/Header/FileManagerHeader.js\";\nimport { FileTable } from \"~/presentation/FileList/components/Table/index.js\";\nimport { TagsList } from \"~/presentation/FileList/components/TagsList/index.js\";\nimport { UploadProgress } from \"~/presentation/FileList/components/Upload/index.js\";\nimport { GetSettingsRepository } from \"~/features/settings/abstractions.js\";\nimport { OverlayProvider, useOverlay } from \"./OverlayContext.js\";\n\nimport type { FmFile } from \"~/features/shared/types.js\";\n\nexport interface FileManagerViewProps {\n overlay?: boolean;\n onChange?: (files: FmFile[]) => void;\n onClose?: () => void;\n multiple?: boolean;\n accept?: string[];\n scope?: string;\n children?: React.ReactNode;\n}\n\nconst t = i18n.ns(\"app-admin/file-manager/file-manager-view\");\n\n// ---------------------------------------------------------------------------\n// Layout — uses original UI components, wired to the presenter.\n// ---------------------------------------------------------------------------\n\nconst FileManagerViewLayout = observer(function FileManagerViewLayout() {\n const { vm, actions } = useFileManagerPresenter();\n const { browser } = useFileManagerConfig();\n const overlay = useOverlay();\n const toast = useToast();\n\n useHotkeys({\n zIndex: 20,\n keys: {\n esc: () => overlay && overlay.onClose()\n }\n });\n\n const container = useContainer();\n const settingsRepository = useMemo(() => container.resolve(GetSettingsRepository), [container]);\n const settings = settingsRepository.settings;\n\n const uploadFiles = async (files: File[]) => {\n await actions.upload(files);\n toast.showSuccessToast({ title: \"File upload complete.\" });\n };\n\n const loadMoreOnScroll = useCallback(\n debounce(async ({ scrollFrame }: { scrollFrame: positionValues }) => {\n if (scrollFrame.top > 0.8) {\n void actions.loadMore();\n }\n }, 200),\n [vm.list.pagination, actions]\n );\n\n if (!vm.fileModel) {\n return <OverlayLoader text={t`Preparing File Manager...`} />;\n }\n\n const renderList = (browseFiles: FilesRenderChildren[\"browseFiles\"]) => {\n if (!vm.list.pagination.loading && vm.list.rows.length === 0) {\n return <Empty isSearchResult={!vm.showFolders} browseFiles={browseFiles} />;\n }\n\n if (vm.viewMode === \"table\") {\n return <FileTable />;\n }\n\n return <FileGrid />;\n };\n\n const content = (\n <Files\n multiple\n maxSize={settings ? settings.uploadMaxFileSize + \"b\" : \"1TB\"}\n multipleMaxSize={\"1TB\"}\n accept={overlay?.accept ?? []}\n onSuccess={files => {\n const filesToUpload = files.map(file => file.src.file).filter(Boolean) as File[];\n void uploadFiles(filesToUpload);\n }}\n onError={errors => {\n const message = outputFileSelectionError(errors);\n if (message) {\n toast.showWarningToast({ title: message });\n } else {\n toast.showWarningToast({ title: \"Couldn't process selected files.\" });\n console.error(errors);\n }\n }}\n >\n {({ getDropZoneProps, browseFiles }) => (\n <>\n <FileDetailsDrawer />\n <SplitView namespace={\"fm/file/list\"}>\n <LeftPanel span={2}>\n <div className={\"flex flex-col h-main-content\"}>\n <div className={\"py-sm px-md\"}>\n <Heading level={5}>{t`File Manager`}</Heading>\n </div>\n <Separator />\n <div className={\"shrink-0 overflow-y-auto max-h-[66vh]\"}>\n <FolderTree\n vm={vm.folders}\n actions={actions.folders}\n folderActions={browser.folder.actions}\n dropConfirmation={browser.folder.dropConfirmation}\n enableActions={true}\n enableCreate={true}\n />\n </div>\n {browser.filterByTags ? (\n <>\n <Separator />\n <div className={\"flex-1 overflow-y-auto min-h-0\"}>\n <TagsList\n loading={false}\n activeTags={\n (vm.list.filters[\"tags\"] as string[]) ?? []\n }\n tags={vm.tags.map(tag => ({\n tag: tag.tag,\n count: tag.count\n }))}\n onActivatedTagsChange={tags => {\n if (tags.length > 0) {\n actions.filter.set(\"tags\", tags);\n } else {\n actions.filter.clear(\"tags\");\n actions.filter.clear(\"tags_rule\");\n }\n }}\n />\n </div>\n </>\n ) : null}\n </div>\n </LeftPanel>\n <RightPanel span={10}>\n <div\n className={\"flex flex-col relative\"}\n style={{ height: \"calc(100vh - 45px\" }}\n >\n <FileManagerHeader browseFiles={browseFiles} />\n <div\n className={\"flex-1\"}\n {...getDropZoneProps({\n onDragEnter: () => actions.setDragging(true),\n onDrop: () => actions.setDragging(false),\n onDragLeave: (e: React.DragEvent) => {\n if (\n !e.relatedTarget ||\n !e.currentTarget.contains(e.relatedTarget as Node)\n ) {\n actions.setDragging(false);\n }\n }\n })}\n data-testid={\"fm-list-wrapper\"}\n >\n {!overlay && <BulkActionBar />}\n <Scrollbar\n onScrollFrame={scrollFrame =>\n loadMoreOnScroll({ scrollFrame })\n }\n >\n {renderList(browseFiles)}\n </Scrollbar>\n {vm.dragging && <FileDropPlaceholder />}\n <UploadProgress />\n </div>\n <BottomInfoBar\n accept={overlay?.accept ?? []}\n listing={vm.list.pagination.loadingMore}\n loading={vm.list.pagination.loading}\n totalCount={vm.list.pagination.totalCount}\n currentCount={vm.list.pagination.currentCount}\n />\n </div>\n </RightPanel>\n </SplitView>\n </>\n )}\n </Files>\n );\n\n if (overlay) {\n return (\n <OverlayLayout variant={\"strong\"} onExited={() => overlay.onClose()}>\n {content}\n </OverlayLayout>\n );\n }\n\n return content;\n});\n\n// ---------------------------------------------------------------------------\n// Inner component that resolves the presenter from the scoped container.\n// ---------------------------------------------------------------------------\n\nconst FileManagerViewInner = observer(\n ({\n overlay = false,\n onChange,\n onClose,\n multiple,\n accept,\n scope,\n children\n }: FileManagerViewProps) => {\n const { presenter } = useFeature(FileManagerPresenterFeature);\n\n const overlayConfig = useMemo(() => {\n if (!overlay || !onChange || !onClose) {\n return null;\n }\n\n const handleFileClick = (file: FmFile) => {\n if (multiple) {\n presenter.actions.selection.toggle(file.id);\n } else {\n onChange([file]);\n }\n };\n\n const confirmSelection = () => {\n const selectedIds = presenter.vm.list.selection.selectedIds;\n const selectedFiles = presenter.vm.list.rows.filter(f => selectedIds.has(f.id));\n if (selectedFiles.length > 0) {\n onChange(selectedFiles);\n }\n };\n\n return {\n onFileClick: handleFileClick,\n confirmSelection,\n onClose,\n accept: accept ?? [],\n multiple: multiple ?? false\n };\n }, [overlay, onChange, onClose, multiple, accept]);\n\n useEffect(() => {\n presenter.init({ scope });\n return () => presenter.dispose();\n }, [presenter, overlay, scope]);\n\n const inner = (\n <DialogsProvider>\n <FileManagerViewWithConfig>\n <FileManagerPresenterProvider presenter={presenter}>\n <FileManagerViewLayout />\n {children}\n </FileManagerPresenterProvider>\n </FileManagerViewWithConfig>\n </DialogsProvider>\n );\n\n if (overlayConfig) {\n return <OverlayProvider config={overlayConfig}>{inner}</OverlayProvider>;\n }\n\n return inner;\n }\n);\n\n// ---------------------------------------------------------------------------\n// FileManagerView — sets up DI container and renders the inner component.\n// ---------------------------------------------------------------------------\n\nexport const FileManagerView = (props: FileManagerViewProps) => {\n const container = useContainer();\n\n const scopedContainer = useMemo(() => {\n const child = container.createChildContainer();\n\n SharedCacheFeature.register(child);\n FoldersFeature.register(child, { type: \"FmFile\" });\n FolderTreePresenterFeature.register(child);\n ListFilesFeature.register(child);\n GetFileFeature.register(child);\n DeleteFileFeature.register(child);\n UpdateFileFeature.register(child);\n FileUploaderFeature.register(child);\n ListTagsFeature.register(child);\n GetSettingsFeature.register(child);\n FileDetailsPresenterFeature.register(child);\n FileManagerPresenterFeature.register(child);\n\n return child;\n }, []);\n\n return (\n <DiContainerProvider container={scopedContainer}>\n <FileManagerViewInner {...props} />\n </DiContainerProvider>\n );\n};\n"],"names":["t","i18n","FileManagerViewLayout","observer","vm","actions","useFileManagerPresenter","browser","useFileManagerConfig","overlay","useOverlay","toast","useToast","useHotkeys","container","useContainer","settingsRepository","useMemo","GetSettingsRepository","settings","uploadFiles","files","loadMoreOnScroll","useCallback","debounce","scrollFrame","OverlayLoader","renderList","browseFiles","Empty","FileTable","FileGrid","content","Files","filesToUpload","file","Boolean","errors","message","outputFileSelectionError","console","getDropZoneProps","FileDetailsDrawer","SplitView","LeftPanel","Heading","Separator","FolderTree","TagsList","tag","tags","RightPanel","FileManagerHeader","e","BulkActionBar","Scrollbar","FileDropPlaceholder","UploadProgress","BottomInfoBar","OverlayLayout","FileManagerViewInner","onChange","onClose","multiple","accept","scope","children","presenter","useFeature","FileManagerPresenterFeature","overlayConfig","handleFileClick","confirmSelection","selectedIds","selectedFiles","f","useEffect","inner","DialogsProvider","FileManagerViewWithConfig","FileManagerPresenterProvider","OverlayProvider","FileManagerView","props","scopedContainer","child","SharedCacheFeature","FoldersFeature","FolderTreePresenterFeature","ListFilesFeature","GetFileFeature","DeleteFileFeature","UpdateFileFeature","FileUploaderFeature","ListTagsFeature","GetSettingsFeature","FileDetailsPresenterFeature","DiContainerProvider"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgEA,MAAMA,IAAIC,KAAK,EAAE,CAAC;AAMlB,MAAMC,wCAAwBC,SAAS;IACnC,MAAM,EAAEC,EAAE,EAAEC,OAAO,EAAE,GAAGC;IACxB,MAAM,EAAEC,OAAO,EAAE,GAAGC;IACpB,MAAMC,UAAUC;IAChB,MAAMC,QAAQC;IAEdC,WAAW;QACP,QAAQ;QACR,MAAM;YACF,KAAK,IAAMJ,WAAWA,QAAQ,OAAO;QACzC;IACJ;IAEA,MAAMK,YAAYC;IAClB,MAAMC,qBAAqBC,QAAQ,IAAMH,UAAU,OAAO,CAACI,wBAAwB;QAACJ;KAAU;IAC9F,MAAMK,WAAWH,mBAAmB,QAAQ;IAE5C,MAAMI,cAAc,OAAOC;QACvB,MAAMhB,QAAQ,MAAM,CAACgB;QACrBV,MAAM,gBAAgB,CAAC;YAAE,OAAO;QAAwB;IAC5D;IAEA,MAAMW,mBAAmBC,YACrBC,SAAS,OAAO,EAAEC,WAAW,EAAmC;QAC5D,IAAIA,YAAY,GAAG,GAAG,KACbpB,QAAQ,QAAQ;IAE7B,GAAG,MACH;QAACD,GAAG,IAAI,CAAC,UAAU;QAAEC;KAAQ;IAGjC,IAAI,CAACD,GAAG,SAAS,EACb,OAAO,WAAP,GAAO,oBAACsB,eAAaA;QAAC,MAAM1B,CAAC,CAAC,yBAAyB,CAAC;;IAG5D,MAAM2B,aAAa,CAACC;QAChB,IAAI,CAACxB,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,IAAIA,AAAwB,MAAxBA,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAClD,OAAO,WAAP,GAAO,oBAACyB,OAAKA;YAAC,gBAAgB,CAACzB,GAAG,WAAW;YAAE,aAAawB;;QAGhE,IAAIxB,AAAgB,YAAhBA,GAAG,QAAQ,EACX,OAAO,WAAP,GAAO,oBAAC0B,WAASA;QAGrB,OAAO,WAAP,GAAO,oBAACC,UAAQA;IACpB;IAEA,MAAMC,UAAU,WAAVA,GACF,oBAACC,mBAAKA;QACF;QACA,SAASd,WAAWA,SAAS,iBAAiB,GAAG,MAAM;QACvD,iBAAiB;QACjB,QAAQV,SAAS,UAAU,EAAE;QAC7B,WAAWY,CAAAA;YACP,MAAMa,gBAAgBb,MAAM,GAAG,CAACc,CAAAA,OAAQA,KAAK,GAAG,CAAC,IAAI,EAAE,MAAM,CAACC;YACzDhB,YAAYc;QACrB;QACA,SAASG,CAAAA;YACL,MAAMC,UAAUC,yBAAyBF;YACzC,IAAIC,SACA3B,MAAM,gBAAgB,CAAC;gBAAE,OAAO2B;YAAQ;iBACrC;gBACH3B,MAAM,gBAAgB,CAAC;oBAAE,OAAO;gBAAmC;gBACnE6B,QAAQ,KAAK,CAACH;YAClB;QACJ;OAEC,CAAC,EAAEI,gBAAgB,EAAEb,WAAW,EAAE,iBAC/B,wDACI,oBAACc,mBAAiBA,OAAAA,WAAAA,GAClB,oBAACC,WAASA;YAAC,WAAW;yBAClB,oBAACC,WAASA;YAAC,MAAM;yBACb,oBAAC;YAAI,WAAW;yBACZ,oBAAC;YAAI,WAAW;yBACZ,oBAACC,SAAOA;YAAC,OAAO;WAAI7C,CAAC,CAAC,YAAY,CAAC,kBAEvC,oBAAC8C,WAASA,OAAAA,WAAAA,GACV,oBAAC;YAAI,WAAW;yBACZ,oBAACC,YAAUA;YACP,IAAI3C,GAAG,OAAO;YACd,SAASC,QAAQ,OAAO;YACxB,eAAeE,QAAQ,MAAM,CAAC,OAAO;YACrC,kBAAkBA,QAAQ,MAAM,CAAC,gBAAgB;YACjD,eAAe;YACf,cAAc;aAGrBA,QAAQ,YAAY,GAAG,WAAH,GACjB,wDACI,oBAACuC,WAASA,OAAAA,WAAAA,GACV,oBAAC;YAAI,WAAW;yBACZ,oBAACE,UAAQA;YACL,SAAS;YACT,YACK5C,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,IAAiB,EAAE;YAE/C,MAAMA,GAAG,IAAI,CAAC,GAAG,CAAC6C,CAAAA,MAAQ;oBACtB,KAAKA,IAAI,GAAG;oBACZ,OAAOA,IAAI,KAAK;gBACpB;YACA,uBAAuBC,CAAAA;gBACnB,IAAIA,KAAK,MAAM,GAAG,GACd7C,QAAQ,MAAM,CAAC,GAAG,CAAC,QAAQ6C;qBACxB;oBACH7C,QAAQ,MAAM,CAAC,KAAK,CAAC;oBACrBA,QAAQ,MAAM,CAAC,KAAK,CAAC;gBACzB;YACJ;eAIZ,sBAGZ,oBAAC8C,YAAUA;YAAC,MAAM;yBACd,oBAAC;YACG,WAAW;YACX,OAAO;gBAAE,QAAQ;YAAoB;yBAErC,oBAACC,mBAAiBA;YAAC,aAAaxB;0BAChC,oBAAC;YACG,WAAW;YACV,GAAGa,iBAAiB;gBACjB,aAAa,IAAMpC,QAAQ,WAAW,CAAC;gBACvC,QAAQ,IAAMA,QAAQ,WAAW,CAAC;gBAClC,aAAa,CAACgD;oBACV,IACI,CAACA,EAAE,aAAa,IAChB,CAACA,EAAE,aAAa,CAAC,QAAQ,CAACA,EAAE,aAAa,GAEzChD,QAAQ,WAAW,CAAC;gBAE5B;YACJ,EAAE;YACF,eAAa;WAEZ,CAACI,WAAW,WAAXA,GAAW,oBAAC6C,eAAaA,OAAAA,WAAAA,GAC3B,oBAACC,WAASA;YACN,eAAe9B,CAAAA,cACXH,iBAAiB;oBAAEG;gBAAY;WAGlCE,WAAWC,eAEfxB,GAAG,QAAQ,IAAI,WAAJ,GAAI,oBAACoD,qBAAmBA,OAAAA,WAAAA,GACpC,oBAACC,gBAAcA,QAAAA,WAAAA,GAEnB,oBAACC,eAAaA;YACV,QAAQjD,SAAS,UAAU,EAAE;YAC7B,SAASL,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW;YACvC,SAASA,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO;YACnC,YAAYA,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU;YACzC,cAAcA,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY;;IAU7E,IAAIK,SACA,OAAO,WAAP,GACI,oBAACkD,eAAaA;QAAC,SAAS;QAAU,UAAU,IAAMlD,QAAQ,OAAO;OAC5DuB;IAKb,OAAOA;AACX;AAMA,MAAM4B,uBAAuBzD,SACzB,CAAC,EACGM,UAAU,KAAK,EACfoD,QAAQ,EACRC,OAAO,EACPC,QAAQ,EACRC,MAAM,EACNC,KAAK,EACLC,QAAQ,EACW;IACnB,MAAM,EAAEC,SAAS,EAAE,GAAGC,WAAWC;IAEjC,MAAMC,gBAAgBrD,QAAQ;QAC1B,IAAI,CAACR,WAAW,CAACoD,YAAY,CAACC,SAC1B,OAAO;QAGX,MAAMS,kBAAkB,CAACpC;YACrB,IAAI4B,UACAI,UAAU,OAAO,CAAC,SAAS,CAAC,MAAM,CAAChC,KAAK,EAAE;iBAE1C0B,SAAS;gBAAC1B;aAAK;QAEvB;QAEA,MAAMqC,mBAAmB;YACrB,MAAMC,cAAcN,UAAU,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW;YAC3D,MAAMO,gBAAgBP,UAAU,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAACQ,CAAAA,IAAKF,YAAY,GAAG,CAACE,EAAE,EAAE;YAC7E,IAAID,cAAc,MAAM,GAAG,GACvBb,SAASa;QAEjB;QAEA,OAAO;YACH,aAAaH;YACbC;YACAV;YACA,QAAQE,UAAU,EAAE;YACpB,UAAUD,YAAY;QAC1B;IACJ,GAAG;QAACtD;QAASoD;QAAUC;QAASC;QAAUC;KAAO;IAEjDY,UAAU;QACNT,UAAU,IAAI,CAAC;YAAEF;QAAM;QACvB,OAAO,IAAME,UAAU,OAAO;IAClC,GAAG;QAACA;QAAW1D;QAASwD;KAAM;IAE9B,MAAMY,QAAQ,WAARA,GACF,oBAACC,iBAAeA,MAAAA,WAAAA,GACZ,oBAACC,2BAAyBA,MAAAA,WAAAA,GACtB,oBAACC,8BAA4BA;QAAC,WAAWb;qBACrC,oBAACjE,uCAAqBA,OACrBgE;IAMjB,IAAII,eACA,OAAO,WAAP,GAAO,oBAACW,iBAAeA;QAAC,QAAQX;OAAgBO;IAGpD,OAAOA;AACX;AAOG,MAAMK,kBAAkB,CAACC;IAC5B,MAAMrE,YAAYC;IAElB,MAAMqE,kBAAkBnE,QAAQ;QAC5B,MAAMoE,QAAQvE,UAAU,oBAAoB;QAE5CwE,mBAAmB,QAAQ,CAACD;QAC5BE,eAAe,QAAQ,CAACF,OAAO;YAAE,MAAM;QAAS;QAChDG,2BAA2B,QAAQ,CAACH;QACpCI,iBAAiB,QAAQ,CAACJ;QAC1BK,eAAe,QAAQ,CAACL;QACxBM,kBAAkB,QAAQ,CAACN;QAC3BO,kBAAkB,QAAQ,CAACP;QAC3BQ,oBAAoB,QAAQ,CAACR;QAC7BS,gBAAgB,QAAQ,CAACT;QACzBU,mBAAmB,QAAQ,CAACV;QAC5BW,4BAA4B,QAAQ,CAACX;QACrChB,4BAA4B,QAAQ,CAACgB;QAErC,OAAOA;IACX,GAAG,EAAE;IAEL,OAAO,WAAP,GACI,oBAACY,qBAAmBA;QAAC,WAAWb;qBAC5B,oBAACxB,sBAAyBuB;AAGtC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { FmFile } from "../../features/shared/types.js";
|
|
3
|
+
export interface OverlayConfig {
|
|
4
|
+
onFileClick: (file: FmFile) => void;
|
|
5
|
+
confirmSelection: () => void;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
accept: string[];
|
|
8
|
+
multiple: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const OverlayProvider: ({ config, children }: {
|
|
11
|
+
config: OverlayConfig;
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}) => React.JSX.Element;
|
|
14
|
+
export declare function useOverlay(): OverlayConfig | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import react, { createContext, useContext } from "react";
|
|
2
|
+
const OverlayCtx = /*#__PURE__*/ createContext(null);
|
|
3
|
+
const OverlayProvider = ({ config, children })=>/*#__PURE__*/ react.createElement(OverlayCtx.Provider, {
|
|
4
|
+
value: config
|
|
5
|
+
}, children);
|
|
6
|
+
function useOverlay() {
|
|
7
|
+
return useContext(OverlayCtx);
|
|
8
|
+
}
|
|
9
|
+
export { OverlayProvider, useOverlay };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=OverlayContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileManager/OverlayContext.js","sources":["../../../src/presentation/FileManager/OverlayContext.tsx"],"sourcesContent":["import React, { createContext, useContext } from \"react\";\nimport type { FmFile } from \"~/features/shared/types.js\";\n\nexport interface OverlayConfig {\n onFileClick: (file: FmFile) => void;\n confirmSelection: () => void;\n onClose: () => void;\n accept: string[];\n multiple: boolean;\n}\n\nconst OverlayCtx = createContext<OverlayConfig | null>(null);\n\nexport const OverlayProvider = ({\n config,\n children\n}: {\n config: OverlayConfig;\n children: React.ReactNode;\n}) => {\n return <OverlayCtx.Provider value={config}>{children}</OverlayCtx.Provider>;\n};\n\nexport function useOverlay(): OverlayConfig | null {\n return useContext(OverlayCtx);\n}\n"],"names":["OverlayCtx","createContext","OverlayProvider","config","children","useOverlay","useContext"],"mappings":";AAWA,MAAMA,aAAa,WAAHA,GAAGC,cAAoC;AAEhD,MAAMC,kBAAkB,CAAC,EAC5BC,MAAM,EACNC,QAAQ,EAIX,GACU,WAAP,GAAO,oBAACJ,WAAW,QAAQ;QAAC,OAAOG;OAASC;AAGzC,SAASC;IACZ,OAAOC,WAAWN;AACtB"}
|