@webiny/app-file-manager 6.3.0 → 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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["gql","ERROR_FIELDS","LIST_FILES","FILE_FIELDS","GET_FILE","LIST_TAGS","CREATE_FILE","UPDATE_FILE","DELETE_FILE","GET_FILE_SETTINGS","GET_FILE_MODEL"],"sources":["graphql.ts"],"sourcesContent":["import gql from \"graphql-tag\";\nimport type { FileItem } from \"~/types.js\";\nimport type { Settings } from \"~/types.js\";\nimport type { ListTagsResponseItem } from \"~/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.js\";\n\nexport interface FmError {\n code: string;\n message: string;\n data?: Record<string, any> | null;\n}\n\nconst ERROR_FIELDS = /* GraphQL */ `\n {\n code\n message\n data\n }\n`;\n\nexport interface GetFileManagerSettingsQueryResponse {\n fileManager: {\n getSettings: {\n data: Settings;\n error?: FmError | null;\n };\n };\n}\n\nexport interface ListFilesListFilesResponse {\n data: FileItem[];\n error: FmError | null;\n meta: {\n hasMoreItems: boolean;\n totalCount: number;\n cursor: string | null;\n };\n}\n\nexport interface ListFilesQueryResponse {\n fileManager: {\n listFiles: ListFilesListFilesResponse;\n };\n}\n\nexport type ListFilesWhereLocation = { folderId: string } | { folderId_in: string[] };\n\nexport type ListFilesSort = ListFilesSortItem[];\nexport type ListFilesSortItem = `${string}_ASC` | `${string}_DESC`;\n\nexport interface ListFilesWhereQueryVariables {\n location?: ListFilesWhereLocation;\n tags?: string;\n tags_in?: string[];\n tags_startsWith?: string;\n tags_not_startsWith?: string;\n createdBy?: string;\n AND?: ListFilesWhereQueryVariables[];\n [key: string]: any;\n}\n\nexport interface ListFilesQueryVariables {\n limit?: number;\n after?: string | null;\n sort?: ListFilesSort;\n search?: string;\n where?: ListFilesWhereQueryVariables;\n}\n\nexport const LIST_FILES = (FILE_FIELDS: string) => gql`\n query ListFiles(\n $search: String,\n $limit: Int,\n $after: String,\n $sort: [FmFileListSorter!],\n $where: FmFileListWhereInput\n ) {\n fileManager {\n listFiles(\n search: $search,\n limit: $limit,\n after: $after,\n where: $where,\n sort: $sort\n ) {\n data ${FILE_FIELDS}\n meta {\n cursor\n totalCount\n hasMoreItems\n }\n error {\n code\n data\n message\n }\n }\n }\n }\n`;\n\nexport const GET_FILE = (FILE_FIELDS: string) => gql`\n query GetFile($id: ID!) {\n fileManager {\n getFile(id: $id) {\n data ${FILE_FIELDS}\n error ${ERROR_FIELDS}\n }\n }\n }\n`;\n\nexport interface ListFileTagsQueryResponse {\n fileManager: {\n listTags: {\n data: ListTagsResponseItem[];\n error: FmError | null;\n };\n };\n}\n\ninterface ListFileTagsWhereQueryVariables {\n tags_in?: string[];\n tags_startsWith?: string;\n tags_not_startsWith?: string;\n AND?: ListFileTagsWhereQueryVariables[];\n OR?: ListFileTagsWhereQueryVariables[];\n}\n\nexport interface ListFileTagsQueryVariables {\n where?: ListFileTagsWhereQueryVariables;\n}\n\nexport const LIST_TAGS = gql`\n query ListTags($where: FmTagsListWhereInput) {\n fileManager {\n listTags(where: $where) {\n data {\n tag\n count\n }\n error ${ERROR_FIELDS}\n }\n }\n }\n`;\n\nexport interface CreateFileMutationResponse {\n fileManager: {\n createFile: {\n data: FileItem;\n error?: FmError | null;\n };\n };\n}\n\nexport interface FileInput {\n key: string;\n name: string;\n size: number;\n type: string;\n tags: string[];\n metadata?: Record<string, any>;\n}\n\nexport interface CreateFileMutationVariables {\n data: FileInput;\n meta?: Record<string, any>;\n}\n\nexport const CREATE_FILE = (FILE_FIELDS: string) => gql`\n mutation CreateFile($data: FmFileCreateInput!) {\n fileManager {\n createFile(data: $data) {\n error ${ERROR_FIELDS}\n data ${FILE_FIELDS}\n }\n }\n }\n`;\n\nexport interface UpdateFileMutationResponse {\n fileManager: {\n updateFile: {\n data: FileItem;\n error?: FmError | null;\n };\n };\n}\n\nexport interface UpdateFileMutationVariables {\n id: string;\n data: Partial<FileInput>;\n}\n\nexport const UPDATE_FILE = (FILE_FIELDS: string) => gql`\n mutation UpdateFile($id: ID!, $data: FmFileUpdateInput!) {\n fileManager {\n updateFile(id: $id, data: $data) {\n data ${FILE_FIELDS}\n error ${ERROR_FIELDS}\n }\n }\n }\n`;\n\nexport interface DeleteFileMutationResponse {\n fileManager: {\n updateFile: {\n data: boolean;\n error?: FmError | null;\n };\n };\n}\n\nexport interface DeleteFileMutationVariables {\n id: string;\n}\n\nexport const DELETE_FILE = gql`\n mutation DeleteFile($id: ID!) {\n fileManager {\n deleteFile(id: $id) {\n data\n error ${ERROR_FIELDS}\n }\n }\n }\n`;\n\nexport const GET_FILE_SETTINGS = gql`\n query GetSettings {\n fileManager {\n getSettings {\n data {\n srcPrefix\n uploadMinFileSize\n uploadMaxFileSize\n }\n error ${ERROR_FIELDS}\n }\n }\n }\n`;\n\nexport const GET_FILE_MODEL = gql`\n query GetFileModel {\n fileManager {\n getFileModel {\n data\n error ${ERROR_FIELDS}\n }\n }\n }\n`;\n"],"mappings":"AAAA,OAAOA,GAAG,MAAM,aAAa;AAW7B,MAAMC,YAAY,GAAG,aAAc;AACnC;AACA;AACA;AACA;AACA;AACA,CAAC;AAmDD,OAAO,MAAMC,UAAU,GAAIC,WAAmB,IAAKH,GAAG;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuBG,WAAW;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMC,QAAQ,GAAID,WAAmB,IAAKH,GAAG;AACpD;AACA;AACA;AACA,uBAAuBG,WAAW;AAClC,wBAAwBF,YAAY;AACpC;AACA;AACA;AACA,CAAC;AAuBD,OAAO,MAAMI,SAAS,GAAGL,GAAG;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwBC,YAAY;AACpC;AACA;AACA;AACA,CAAC;AAyBD,OAAO,MAAMK,WAAW,GAAIH,WAAmB,IAAKH,GAAG;AACvD;AACA;AACA;AACA,wBAAwBC,YAAY;AACpC,uBAAuBE,WAAW;AAClC;AACA;AACA;AACA,CAAC;AAgBD,OAAO,MAAMI,WAAW,GAAIJ,WAAmB,IAAKH,GAAG;AACvD;AACA;AACA;AACA,uBAAuBG,WAAW;AAClC,wBAAwBF,YAAY;AACpC;AACA;AACA;AACA,CAAC;AAeD,OAAO,MAAMO,WAAW,GAAGR,GAAG;AAC9B;AACA;AACA;AACA;AACA,wBAAwBC,YAAY;AACpC;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMQ,iBAAiB,GAAGT,GAAG;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwBC,YAAY;AACpC;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMS,cAAc,GAAGV,GAAG;AACjC;AACA;AACA;AACA;AACA,wBAAwBC,YAAY;AACpC;AACA;AACA;AACA,CAAC","ignoreList":[]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Plugin } from "@webiny/app-admin";
|
|
3
|
-
import { FileManagerApiProvider } from "./FileManagerApiContext/index.js";
|
|
4
|
-
import { FileModelProvider } from "./FileManagerApiContext/FileModelContext.js";
|
|
5
|
-
const fileManagerApiProvider = Original => {
|
|
6
|
-
return function FileManager({
|
|
7
|
-
children
|
|
8
|
-
}) {
|
|
9
|
-
return /*#__PURE__*/React.createElement(FileModelProvider, null, /*#__PURE__*/React.createElement(FileManagerApiProvider, null, /*#__PURE__*/React.createElement(Original, null, children)));
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export const FileManagerApiProviderModule = () => {
|
|
13
|
-
return /*#__PURE__*/React.createElement(Plugin, {
|
|
14
|
-
providers: [fileManagerApiProvider]
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","Plugin","FileManagerApiProvider","FileModelProvider","fileManagerApiProvider","Original","FileManager","children","createElement","FileManagerApiProviderModule","providers"],"sources":["index.tsx"],"sourcesContent":["import React from \"react\";\nimport type { Decorator, GenericComponent } from \"@webiny/app-admin\";\nimport { Plugin } from \"@webiny/app-admin\";\nimport { FileManagerApiProvider } from \"./FileManagerApiContext/index.js\";\nimport { FileModelProvider } from \"~/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.js\";\n\nconst fileManagerApiProvider: Decorator<\n GenericComponent<{ children: React.ReactNode }>\n> = Original => {\n return function FileManager({ children }) {\n return (\n <FileModelProvider>\n <FileManagerApiProvider>\n <Original>{children}</Original>\n </FileManagerApiProvider>\n </FileModelProvider>\n );\n };\n};\n\nexport const FileManagerApiProviderModule = () => {\n return <Plugin providers={[fileManagerApiProvider]} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,sBAAsB;AAC/B,SAASC,iBAAiB;AAE1B,MAAMC,sBAEL,GAAGC,QAAQ,IAAI;EACZ,OAAO,SAASC,WAAWA,CAAC;IAAEC;EAAS,CAAC,EAAE;IACtC,oBACIP,KAAA,CAAAQ,aAAA,CAACL,iBAAiB,qBACdH,KAAA,CAAAQ,aAAA,CAACN,sBAAsB,qBACnBF,KAAA,CAAAQ,aAAA,CAACH,QAAQ,QAAEE,QAAmB,CACV,CACT,CAAC;EAE5B,CAAC;AACL,CAAC;AAED,OAAO,MAAME,4BAA4B,GAAGA,CAAA,KAAM;EAC9C,oBAAOT,KAAA,CAAAQ,aAAA,CAACP,MAAM;IAACS,SAAS,EAAE,CAACN,sBAAsB;EAAE,CAAE,CAAC;AAC1D,CAAC","ignoreList":[]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ReactComponent as CopyContentIcon } from "@webiny/icons/content_copy.svg";
|
|
3
|
-
import { useCopyFile } from "../../../../hooks/useCopyFile.js";
|
|
4
|
-
import { FileManagerViewConfig, useFile } from "../../../../index.js";
|
|
5
|
-
const {
|
|
6
|
-
FileDetails
|
|
7
|
-
} = FileManagerViewConfig;
|
|
8
|
-
export const CopyUrl = () => {
|
|
9
|
-
const {
|
|
10
|
-
file
|
|
11
|
-
} = useFile();
|
|
12
|
-
const {
|
|
13
|
-
copyFileUrl
|
|
14
|
-
} = useCopyFile({
|
|
15
|
-
file
|
|
16
|
-
});
|
|
17
|
-
return /*#__PURE__*/React.createElement(FileDetails.Action.Button, {
|
|
18
|
-
label: "Copy URL",
|
|
19
|
-
onAction: copyFileUrl,
|
|
20
|
-
icon: /*#__PURE__*/React.createElement(CopyContentIcon, null)
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
//# sourceMappingURL=CopyUrl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","ReactComponent","CopyContentIcon","useCopyFile","FileManagerViewConfig","useFile","FileDetails","CopyUrl","file","copyFileUrl","createElement","Action","Button","label","onAction","icon"],"sources":["CopyUrl.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as CopyContentIcon } from \"@webiny/icons/content_copy.svg\";\nimport { useCopyFile } from \"~/hooks/useCopyFile.js\";\nimport { FileManagerViewConfig, useFile } from \"~/index.js\";\n\nconst { FileDetails } = FileManagerViewConfig;\n\nexport const CopyUrl = () => {\n const { file } = useFile();\n const { copyFileUrl } = useCopyFile({ file });\n\n return (\n <FileDetails.Action.Button\n label={\"Copy URL\"}\n onAction={copyFileUrl}\n icon={<CopyContentIcon />}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,IAAIC,eAAe,QAAQ,gCAAgC;AAClF,SAASC,WAAW;AACpB,SAASC,qBAAqB,EAAEC,OAAO;AAEvC,MAAM;EAAEC;AAAY,CAAC,GAAGF,qBAAqB;AAE7C,OAAO,MAAMG,OAAO,GAAGA,CAAA,KAAM;EACzB,MAAM;IAAEC;EAAK,CAAC,GAAGH,OAAO,CAAC,CAAC;EAC1B,MAAM;IAAEI;EAAY,CAAC,GAAGN,WAAW,CAAC;IAAEK;EAAK,CAAC,CAAC;EAE7C,oBACIR,KAAA,CAAAU,aAAA,CAACJ,WAAW,CAACK,MAAM,CAACC,MAAM;IACtBC,KAAK,EAAE,UAAW;IAClBC,QAAQ,EAAEL,WAAY;IACtBM,IAAI,eAAEf,KAAA,CAAAU,aAAA,CAACR,eAAe,MAAE;EAAE,CAC7B,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ReactComponent as DeleteIcon } from "@webiny/icons/delete.svg";
|
|
3
|
-
import { FileManagerViewConfig, useFile, useFileDetails, useFileManagerApi } from "../../../../index.js";
|
|
4
|
-
import { useDeleteFile } from "../../../../hooks/useDeleteFile.js";
|
|
5
|
-
const {
|
|
6
|
-
FileDetails
|
|
7
|
-
} = FileManagerViewConfig;
|
|
8
|
-
export const DeleteImage = () => {
|
|
9
|
-
const {
|
|
10
|
-
file
|
|
11
|
-
} = useFile();
|
|
12
|
-
const {
|
|
13
|
-
canEdit
|
|
14
|
-
} = useFileManagerApi();
|
|
15
|
-
const {
|
|
16
|
-
close
|
|
17
|
-
} = useFileDetails();
|
|
18
|
-
const {
|
|
19
|
-
openDialogDeleteFile
|
|
20
|
-
} = useDeleteFile({
|
|
21
|
-
file,
|
|
22
|
-
onDelete: close
|
|
23
|
-
});
|
|
24
|
-
if (!canEdit(file)) {
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
27
|
-
return /*#__PURE__*/React.createElement(FileDetails.Action.Button, {
|
|
28
|
-
label: "Delete",
|
|
29
|
-
onAction: openDialogDeleteFile,
|
|
30
|
-
icon: /*#__PURE__*/React.createElement(DeleteIcon, null),
|
|
31
|
-
"data-testid": "fm-delete-file-button"
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
//# sourceMappingURL=DeleteImage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","ReactComponent","DeleteIcon","FileManagerViewConfig","useFile","useFileDetails","useFileManagerApi","useDeleteFile","FileDetails","DeleteImage","file","canEdit","close","openDialogDeleteFile","onDelete","createElement","Action","Button","label","onAction","icon"],"sources":["DeleteImage.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as DeleteIcon } from \"@webiny/icons/delete.svg\";\nimport { FileManagerViewConfig, useFile, useFileDetails, useFileManagerApi } from \"~/index.js\";\nimport { useDeleteFile } from \"~/hooks/useDeleteFile.js\";\n\nconst { FileDetails } = FileManagerViewConfig;\n\nexport const DeleteImage = () => {\n const { file } = useFile();\n const { canEdit } = useFileManagerApi();\n const { close } = useFileDetails();\n const { openDialogDeleteFile } = useDeleteFile({\n file,\n onDelete: close\n });\n\n if (!canEdit(file)) {\n return null;\n }\n\n return (\n <FileDetails.Action.Button\n label={\"Delete\"}\n onAction={openDialogDeleteFile}\n icon={<DeleteIcon />}\n data-testid={\"fm-delete-file-button\"}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,IAAIC,UAAU,QAAQ,0BAA0B;AACvE,SAASC,qBAAqB,EAAEC,OAAO,EAAEC,cAAc,EAAEC,iBAAiB;AAC1E,SAASC,aAAa;AAEtB,MAAM;EAAEC;AAAY,CAAC,GAAGL,qBAAqB;AAE7C,OAAO,MAAMM,WAAW,GAAGA,CAAA,KAAM;EAC7B,MAAM;IAAEC;EAAK,CAAC,GAAGN,OAAO,CAAC,CAAC;EAC1B,MAAM;IAAEO;EAAQ,CAAC,GAAGL,iBAAiB,CAAC,CAAC;EACvC,MAAM;IAAEM;EAAM,CAAC,GAAGP,cAAc,CAAC,CAAC;EAClC,MAAM;IAAEQ;EAAqB,CAAC,GAAGN,aAAa,CAAC;IAC3CG,IAAI;IACJI,QAAQ,EAAEF;EACd,CAAC,CAAC;EAEF,IAAI,CAACD,OAAO,CAACD,IAAI,CAAC,EAAE;IAChB,OAAO,IAAI;EACf;EAEA,oBACIV,KAAA,CAAAe,aAAA,CAACP,WAAW,CAACQ,MAAM,CAACC,MAAM;IACtBC,KAAK,EAAE,QAAS;IAChBC,QAAQ,EAAEN,oBAAqB;IAC/BO,IAAI,eAAEpB,KAAA,CAAAe,aAAA,CAACb,UAAU,MAAE,CAAE;IACrB,eAAa;EAAwB,CACxC,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ReactComponent as DownloadIcon } from "@webiny/icons/file_download.svg";
|
|
3
|
-
import { FileManagerViewConfig, useFile } from "../../../../index.js";
|
|
4
|
-
const {
|
|
5
|
-
FileDetails
|
|
6
|
-
} = FileManagerViewConfig;
|
|
7
|
-
export const Download = () => {
|
|
8
|
-
const {
|
|
9
|
-
file
|
|
10
|
-
} = useFile();
|
|
11
|
-
return /*#__PURE__*/React.createElement("a", {
|
|
12
|
-
rel: "noreferrer",
|
|
13
|
-
target: "_blank",
|
|
14
|
-
href: `${file.src}?original`
|
|
15
|
-
}, /*#__PURE__*/React.createElement(FileDetails.Action.Button, {
|
|
16
|
-
label: "Download",
|
|
17
|
-
icon: /*#__PURE__*/React.createElement(DownloadIcon, null),
|
|
18
|
-
onAction: () => {
|
|
19
|
-
/* Do nothing. */
|
|
20
|
-
}
|
|
21
|
-
}));
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
//# sourceMappingURL=Download.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","ReactComponent","DownloadIcon","FileManagerViewConfig","useFile","FileDetails","Download","file","createElement","rel","target","href","src","Action","Button","label","icon","onAction"],"sources":["Download.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as DownloadIcon } from \"@webiny/icons/file_download.svg\";\nimport { FileManagerViewConfig, useFile } from \"~/index.js\";\n\nconst { FileDetails } = FileManagerViewConfig;\n\nexport const Download = () => {\n const { file } = useFile();\n\n return (\n <a rel=\"noreferrer\" target={\"_blank\"} href={`${file.src}?original`}>\n <FileDetails.Action.Button\n label={\"Download\"}\n icon={<DownloadIcon />}\n onAction={() => {\n /* Do nothing. */\n }}\n />\n </a>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,IAAIC,YAAY,QAAQ,iCAAiC;AAChF,SAASC,qBAAqB,EAAEC,OAAO;AAEvC,MAAM;EAAEC;AAAY,CAAC,GAAGF,qBAAqB;AAE7C,OAAO,MAAMG,QAAQ,GAAGA,CAAA,KAAM;EAC1B,MAAM;IAAEC;EAAK,CAAC,GAAGH,OAAO,CAAC,CAAC;EAE1B,oBACIJ,KAAA,CAAAQ,aAAA;IAAGC,GAAG,EAAC,YAAY;IAACC,MAAM,EAAE,QAAS;IAACC,IAAI,EAAE,GAAGJ,IAAI,CAACK,GAAG;EAAY,gBAC/DZ,KAAA,CAAAQ,aAAA,CAACH,WAAW,CAACQ,MAAM,CAACC,MAAM;IACtBC,KAAK,EAAE,UAAW;IAClBC,IAAI,eAAEhB,KAAA,CAAAQ,aAAA,CAACN,YAAY,MAAE,CAAE;IACvBe,QAAQ,EAAEA,CAAA,KAAM;MACZ;IAAA;EACF,CACL,CACF,CAAC;AAEZ,CAAC","ignoreList":[]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ReactComponent as MoveIcon } from "@webiny/icons/exit_to_app.svg";
|
|
3
|
-
import { FileManagerViewConfig, useFile, useMoveFileToFolder } from "../../../../index.js";
|
|
4
|
-
const {
|
|
5
|
-
FileDetails
|
|
6
|
-
} = FileManagerViewConfig;
|
|
7
|
-
export const MoveToFolder = () => {
|
|
8
|
-
const {
|
|
9
|
-
file
|
|
10
|
-
} = useFile();
|
|
11
|
-
const moveToFolder = useMoveFileToFolder(file);
|
|
12
|
-
return /*#__PURE__*/React.createElement(FileDetails.Action.Button, {
|
|
13
|
-
label: "Move",
|
|
14
|
-
icon: /*#__PURE__*/React.createElement(MoveIcon, null),
|
|
15
|
-
onAction: moveToFolder
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
//# sourceMappingURL=MoveToFolder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","ReactComponent","MoveIcon","FileManagerViewConfig","useFile","useMoveFileToFolder","FileDetails","MoveToFolder","file","moveToFolder","createElement","Action","Button","label","icon","onAction"],"sources":["MoveToFolder.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as MoveIcon } from \"@webiny/icons/exit_to_app.svg\";\nimport { FileManagerViewConfig, useFile, useMoveFileToFolder } from \"~/index.js\";\n\nconst { FileDetails } = FileManagerViewConfig;\n\nexport const MoveToFolder = () => {\n const { file } = useFile();\n const moveToFolder = useMoveFileToFolder(file);\n\n return <FileDetails.Action.Button label={\"Move\"} icon={<MoveIcon />} onAction={moveToFolder} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,IAAIC,QAAQ,QAAQ,+BAA+B;AAC1E,SAASC,qBAAqB,EAAEC,OAAO,EAAEC,mBAAmB;AAE5D,MAAM;EAAEC;AAAY,CAAC,GAAGH,qBAAqB;AAE7C,OAAO,MAAMI,YAAY,GAAGA,CAAA,KAAM;EAC9B,MAAM;IAAEC;EAAK,CAAC,GAAGJ,OAAO,CAAC,CAAC;EAC1B,MAAMK,YAAY,GAAGJ,mBAAmB,CAACG,IAAI,CAAC;EAE9C,oBAAOR,KAAA,CAAAU,aAAA,CAACJ,WAAW,CAACK,MAAM,CAACC,MAAM;IAACC,KAAK,EAAE,MAAO;IAACC,IAAI,eAAEd,KAAA,CAAAU,aAAA,CAACR,QAAQ,MAAE,CAAE;IAACa,QAAQ,EAAEN;EAAa,CAAE,CAAC;AACnG,CAAC","ignoreList":[]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ReactComponent as DeleteIcon } from "@webiny/icons/delete.svg";
|
|
3
|
-
import { FileManagerViewConfig, useFile, useFileManagerApi } from "../../../../index.js";
|
|
4
|
-
import { useDeleteFile } from "../../../../hooks/useDeleteFile.js";
|
|
5
|
-
const {
|
|
6
|
-
Browser
|
|
7
|
-
} = FileManagerViewConfig;
|
|
8
|
-
export const Delete = () => {
|
|
9
|
-
const {
|
|
10
|
-
file
|
|
11
|
-
} = useFile();
|
|
12
|
-
const {
|
|
13
|
-
canEdit
|
|
14
|
-
} = useFileManagerApi();
|
|
15
|
-
const {
|
|
16
|
-
openDialogDeleteFile
|
|
17
|
-
} = useDeleteFile({
|
|
18
|
-
file,
|
|
19
|
-
onDelete: close
|
|
20
|
-
});
|
|
21
|
-
return /*#__PURE__*/React.createElement(Browser.Grid.Item.Action.IconButton, {
|
|
22
|
-
label: "Delete file",
|
|
23
|
-
icon: /*#__PURE__*/React.createElement(DeleteIcon, null),
|
|
24
|
-
onAction: openDialogDeleteFile,
|
|
25
|
-
disabled: !canEdit(file)
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
//# sourceMappingURL=Delete.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","ReactComponent","DeleteIcon","FileManagerViewConfig","useFile","useFileManagerApi","useDeleteFile","Browser","Delete","file","canEdit","openDialogDeleteFile","onDelete","close","createElement","Grid","Item","Action","IconButton","label","icon","onAction","disabled"],"sources":["Delete.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as DeleteIcon } from \"@webiny/icons/delete.svg\";\nimport { FileManagerViewConfig, useFile, useFileManagerApi } from \"~/index.js\";\nimport { useDeleteFile } from \"~/hooks/useDeleteFile.js\";\n\nconst { Browser } = FileManagerViewConfig;\n\nexport const Delete = () => {\n const { file } = useFile();\n const { canEdit } = useFileManagerApi();\n\n const { openDialogDeleteFile } = useDeleteFile({\n file,\n onDelete: close\n });\n\n return (\n <Browser.Grid.Item.Action.IconButton\n label={\"Delete file\"}\n icon={<DeleteIcon />}\n onAction={openDialogDeleteFile}\n disabled={!canEdit(file)}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,IAAIC,UAAU,QAAQ,0BAA0B;AACvE,SAASC,qBAAqB,EAAEC,OAAO,EAAEC,iBAAiB;AAC1D,SAASC,aAAa;AAEtB,MAAM;EAAEC;AAAQ,CAAC,GAAGJ,qBAAqB;AAEzC,OAAO,MAAMK,MAAM,GAAGA,CAAA,KAAM;EACxB,MAAM;IAAEC;EAAK,CAAC,GAAGL,OAAO,CAAC,CAAC;EAC1B,MAAM;IAAEM;EAAQ,CAAC,GAAGL,iBAAiB,CAAC,CAAC;EAEvC,MAAM;IAAEM;EAAqB,CAAC,GAAGL,aAAa,CAAC;IAC3CG,IAAI;IACJG,QAAQ,EAAEC;EACd,CAAC,CAAC;EAEF,oBACIb,KAAA,CAAAc,aAAA,CAACP,OAAO,CAACQ,IAAI,CAACC,IAAI,CAACC,MAAM,CAACC,UAAU;IAChCC,KAAK,EAAE,aAAc;IACrBC,IAAI,eAAEpB,KAAA,CAAAc,aAAA,CAACZ,UAAU,MAAE,CAAE;IACrBmB,QAAQ,EAAEV,oBAAqB;IAC/BW,QAAQ,EAAE,CAACZ,OAAO,CAACD,IAAI;EAAE,CAC5B,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ReactComponent as DownloadIcon } from "@webiny/icons/file_download.svg";
|
|
3
|
-
import { FileManagerViewConfig, useFile } from "../../../../index.js";
|
|
4
|
-
const {
|
|
5
|
-
Browser
|
|
6
|
-
} = FileManagerViewConfig;
|
|
7
|
-
export const Download = () => {
|
|
8
|
-
const {
|
|
9
|
-
file
|
|
10
|
-
} = useFile();
|
|
11
|
-
return /*#__PURE__*/React.createElement("a", {
|
|
12
|
-
rel: "noreferrer",
|
|
13
|
-
target: "_blank",
|
|
14
|
-
href: `${file.src}?original`
|
|
15
|
-
}, /*#__PURE__*/React.createElement(Browser.Grid.Item.Action.IconButton, {
|
|
16
|
-
icon: /*#__PURE__*/React.createElement(DownloadIcon, null),
|
|
17
|
-
label: "Download file",
|
|
18
|
-
onAction: () => {
|
|
19
|
-
/* Do nothing. */
|
|
20
|
-
}
|
|
21
|
-
}));
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
//# sourceMappingURL=Download.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","ReactComponent","DownloadIcon","FileManagerViewConfig","useFile","Browser","Download","file","createElement","rel","target","href","src","Grid","Item","Action","IconButton","icon","label","onAction"],"sources":["Download.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as DownloadIcon } from \"@webiny/icons/file_download.svg\";\nimport { FileManagerViewConfig, useFile } from \"~/index.js\";\n\nconst { Browser } = FileManagerViewConfig;\n\nexport const Download = () => {\n const { file } = useFile();\n\n return (\n <a rel=\"noreferrer\" target={\"_blank\"} href={`${file.src}?original`}>\n <Browser.Grid.Item.Action.IconButton\n icon={<DownloadIcon />}\n label={\"Download file\"}\n onAction={() => {\n /* Do nothing. */\n }}\n />\n </a>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,IAAIC,YAAY,QAAQ,iCAAiC;AAChF,SAASC,qBAAqB,EAAEC,OAAO;AAEvC,MAAM;EAAEC;AAAQ,CAAC,GAAGF,qBAAqB;AAEzC,OAAO,MAAMG,QAAQ,GAAGA,CAAA,KAAM;EAC1B,MAAM;IAAEC;EAAK,CAAC,GAAGH,OAAO,CAAC,CAAC;EAE1B,oBACIJ,KAAA,CAAAQ,aAAA;IAAGC,GAAG,EAAC,YAAY;IAACC,MAAM,EAAE,QAAS;IAACC,IAAI,EAAE,GAAGJ,IAAI,CAACK,GAAG;EAAY,gBAC/DZ,KAAA,CAAAQ,aAAA,CAACH,OAAO,CAACQ,IAAI,CAACC,IAAI,CAACC,MAAM,CAACC,UAAU;IAChCC,IAAI,eAAEjB,KAAA,CAAAQ,aAAA,CAACN,YAAY,MAAE,CAAE;IACvBgB,KAAK,EAAE,eAAgB;IACvBC,QAAQ,EAAEA,CAAA,KAAM;MACZ;IAAA;EACF,CACL,CACF,CAAC;AAEZ,CAAC","ignoreList":[]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ReactComponent as MoveIcon } from "@webiny/icons/exit_to_app.svg";
|
|
3
|
-
import { FileManagerViewConfig, useFile, useMoveFileToFolder } from "../../../../index.js";
|
|
4
|
-
const {
|
|
5
|
-
Browser
|
|
6
|
-
} = FileManagerViewConfig;
|
|
7
|
-
export const MoveToFolder = () => {
|
|
8
|
-
const {
|
|
9
|
-
file
|
|
10
|
-
} = useFile();
|
|
11
|
-
const moveToFolder = useMoveFileToFolder(file);
|
|
12
|
-
return /*#__PURE__*/React.createElement(Browser.Grid.Item.Action.IconButton, {
|
|
13
|
-
label: "Move file",
|
|
14
|
-
icon: /*#__PURE__*/React.createElement(MoveIcon, null),
|
|
15
|
-
onAction: moveToFolder
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
//# sourceMappingURL=MoveToFolder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","ReactComponent","MoveIcon","FileManagerViewConfig","useFile","useMoveFileToFolder","Browser","MoveToFolder","file","moveToFolder","createElement","Grid","Item","Action","IconButton","label","icon","onAction"],"sources":["MoveToFolder.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as MoveIcon } from \"@webiny/icons/exit_to_app.svg\";\nimport { FileManagerViewConfig, useFile, useMoveFileToFolder } from \"~/index.js\";\n\nconst { Browser } = FileManagerViewConfig;\n\nexport const MoveToFolder = () => {\n const { file } = useFile();\n const moveToFolder = useMoveFileToFolder(file);\n\n return (\n <Browser.Grid.Item.Action.IconButton\n label={\"Move file\"}\n icon={<MoveIcon />}\n onAction={moveToFolder}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,IAAIC,QAAQ,QAAQ,+BAA+B;AAC1E,SAASC,qBAAqB,EAAEC,OAAO,EAAEC,mBAAmB;AAE5D,MAAM;EAAEC;AAAQ,CAAC,GAAGH,qBAAqB;AAEzC,OAAO,MAAMI,YAAY,GAAGA,CAAA,KAAM;EAC9B,MAAM;IAAEC;EAAK,CAAC,GAAGJ,OAAO,CAAC,CAAC;EAC1B,MAAMK,YAAY,GAAGJ,mBAAmB,CAACG,IAAI,CAAC;EAE9C,oBACIR,KAAA,CAAAU,aAAA,CAACJ,OAAO,CAACK,IAAI,CAACC,IAAI,CAACC,MAAM,CAACC,UAAU;IAChCC,KAAK,EAAE,WAAY;IACnBC,IAAI,eAAEhB,KAAA,CAAAU,aAAA,CAACR,QAAQ,MAAE,CAAE;IACnBe,QAAQ,EAAER;EAAa,CAC1B,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React, { useCallback } from "react";
|
|
2
|
-
import { ReactComponent as EditIcon } from "@webiny/icons/edit.svg";
|
|
3
|
-
import { FileManagerViewConfig, useFile, useFileManagerView } from "../../../../index.js";
|
|
4
|
-
const {
|
|
5
|
-
Browser
|
|
6
|
-
} = FileManagerViewConfig;
|
|
7
|
-
export const Settings = () => {
|
|
8
|
-
const {
|
|
9
|
-
file
|
|
10
|
-
} = useFile();
|
|
11
|
-
const view = useFileManagerView();
|
|
12
|
-
const showDetails = useCallback(() => {
|
|
13
|
-
view.showFileDetails(file.id);
|
|
14
|
-
}, [file.id]);
|
|
15
|
-
return /*#__PURE__*/React.createElement(Browser.Grid.Item.Action.IconButton, {
|
|
16
|
-
icon: /*#__PURE__*/React.createElement(EditIcon, null),
|
|
17
|
-
label: "Edit file details",
|
|
18
|
-
onAction: showDetails,
|
|
19
|
-
"data-testid": "fm-file-wrapper-file-info-icon"
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
//# sourceMappingURL=Settings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","ReactComponent","EditIcon","FileManagerViewConfig","useFile","useFileManagerView","Browser","Settings","file","view","showDetails","showFileDetails","id","createElement","Grid","Item","Action","IconButton","icon","label","onAction"],"sources":["Settings.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { ReactComponent as EditIcon } from \"@webiny/icons/edit.svg\";\nimport { FileManagerViewConfig, useFile, useFileManagerView } from \"~/index.js\";\n\nconst { Browser } = FileManagerViewConfig;\n\nexport const Settings = () => {\n const { file } = useFile();\n const view = useFileManagerView();\n\n const showDetails = useCallback(() => {\n view.showFileDetails(file.id);\n }, [file.id]);\n\n return (\n <Browser.Grid.Item.Action.IconButton\n icon={<EditIcon />}\n label={\"Edit file details\"}\n onAction={showDetails}\n data-testid={\"fm-file-wrapper-file-info-icon\"}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAC1C,SAASC,cAAc,IAAIC,QAAQ,QAAQ,wBAAwB;AACnE,SAASC,qBAAqB,EAAEC,OAAO,EAAEC,kBAAkB;AAE3D,MAAM;EAAEC;AAAQ,CAAC,GAAGH,qBAAqB;AAEzC,OAAO,MAAMI,QAAQ,GAAGA,CAAA,KAAM;EAC1B,MAAM;IAAEC;EAAK,CAAC,GAAGJ,OAAO,CAAC,CAAC;EAC1B,MAAMK,IAAI,GAAGJ,kBAAkB,CAAC,CAAC;EAEjC,MAAMK,WAAW,GAAGV,WAAW,CAAC,MAAM;IAClCS,IAAI,CAACE,eAAe,CAACH,IAAI,CAACI,EAAE,CAAC;EACjC,CAAC,EAAE,CAACJ,IAAI,CAACI,EAAE,CAAC,CAAC;EAEb,oBACIb,KAAA,CAAAc,aAAA,CAACP,OAAO,CAACQ,IAAI,CAACC,IAAI,CAACC,MAAM,CAACC,UAAU;IAChCC,IAAI,eAAEnB,KAAA,CAAAc,aAAA,CAACX,QAAQ,MAAE,CAAE;IACnBiB,KAAK,EAAE,mBAAoB;IAC3BC,QAAQ,EAAEV,WAAY;IACtB,eAAa;EAAiC,CACjD,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { FileManagerViewConfig } from "../../../index.js";
|
|
3
|
-
import { Delete as GridDelete } from "./Grid/Delete.js";
|
|
4
|
-
import { Download as GridDownload } from "./Grid/Download.js";
|
|
5
|
-
import { MoveToFolder as GridMoveToFolder } from "./Grid/MoveToFolder.js";
|
|
6
|
-
import { Settings as GridSettings } from "./Grid/Settings.js";
|
|
7
|
-
import { Download as FileDetailsDownload } from "./FileDetails/Download.js";
|
|
8
|
-
import { MoveToFolder as FileDetailsMoveToFolder } from "./FileDetails/MoveToFolder.js";
|
|
9
|
-
import { CopyUrl as FileDetailsCopyUrl } from "./FileDetails/CopyUrl.js";
|
|
10
|
-
import { DeleteImage as FileDetailsDeleteImage } from "./FileDetails/DeleteImage.js";
|
|
11
|
-
const {
|
|
12
|
-
Browser,
|
|
13
|
-
FileDetails
|
|
14
|
-
} = FileManagerViewConfig;
|
|
15
|
-
export const FileActions = () => {
|
|
16
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Browser.Grid.Item.Action, {
|
|
17
|
-
name: "settings",
|
|
18
|
-
element: /*#__PURE__*/React.createElement(GridSettings, null)
|
|
19
|
-
}), /*#__PURE__*/React.createElement(Browser.Grid.Item.Action, {
|
|
20
|
-
name: "download",
|
|
21
|
-
element: /*#__PURE__*/React.createElement(GridDownload, null)
|
|
22
|
-
}), /*#__PURE__*/React.createElement(Browser.Grid.Item.Action, {
|
|
23
|
-
name: "move",
|
|
24
|
-
element: /*#__PURE__*/React.createElement(GridMoveToFolder, null)
|
|
25
|
-
}), /*#__PURE__*/React.createElement(Browser.Grid.Item.Action, {
|
|
26
|
-
name: "delete",
|
|
27
|
-
element: /*#__PURE__*/React.createElement(GridDelete, null)
|
|
28
|
-
}), /*#__PURE__*/React.createElement(FileDetails.Action, {
|
|
29
|
-
name: "download",
|
|
30
|
-
element: /*#__PURE__*/React.createElement(FileDetailsDownload, null)
|
|
31
|
-
}), /*#__PURE__*/React.createElement(FileDetails.Action, {
|
|
32
|
-
name: "moveToFolder",
|
|
33
|
-
element: /*#__PURE__*/React.createElement(FileDetailsMoveToFolder, null)
|
|
34
|
-
}), /*#__PURE__*/React.createElement(FileDetails.Action, {
|
|
35
|
-
name: "copyUrl",
|
|
36
|
-
element: /*#__PURE__*/React.createElement(FileDetailsCopyUrl, null)
|
|
37
|
-
}), /*#__PURE__*/React.createElement(FileDetails.Action, {
|
|
38
|
-
name: "delete",
|
|
39
|
-
element: /*#__PURE__*/React.createElement(FileDetailsDeleteImage, null)
|
|
40
|
-
}));
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","FileManagerViewConfig","Delete","GridDelete","Download","GridDownload","MoveToFolder","GridMoveToFolder","Settings","GridSettings","FileDetailsDownload","FileDetailsMoveToFolder","CopyUrl","FileDetailsCopyUrl","DeleteImage","FileDetailsDeleteImage","Browser","FileDetails","FileActions","createElement","Fragment","Grid","Item","Action","name","element"],"sources":["index.tsx"],"sourcesContent":["import React from \"react\";\nimport { FileManagerViewConfig } from \"~/index.js\";\nimport { Delete as GridDelete } from \"./Grid/Delete.js\";\nimport { Download as GridDownload } from \"./Grid/Download.js\";\nimport { MoveToFolder as GridMoveToFolder } from \"./Grid/MoveToFolder.js\";\nimport { Settings as GridSettings } from \"./Grid/Settings.js\";\nimport { Download as FileDetailsDownload } from \"./FileDetails/Download.js\";\nimport { MoveToFolder as FileDetailsMoveToFolder } from \"./FileDetails/MoveToFolder.js\";\nimport { CopyUrl as FileDetailsCopyUrl } from \"./FileDetails/CopyUrl.js\";\nimport { DeleteImage as FileDetailsDeleteImage } from \"./FileDetails/DeleteImage.js\";\n\nconst { Browser, FileDetails } = FileManagerViewConfig;\n\nexport const FileActions = () => {\n return (\n <>\n {/* Grid actions. */}\n <Browser.Grid.Item.Action name={\"settings\"} element={<GridSettings />} />\n <Browser.Grid.Item.Action name={\"download\"} element={<GridDownload />} />\n <Browser.Grid.Item.Action name={\"move\"} element={<GridMoveToFolder />} />\n <Browser.Grid.Item.Action name={\"delete\"} element={<GridDelete />} />\n {/* File details actions. */}\n <FileDetails.Action name={\"download\"} element={<FileDetailsDownload />} />\n <FileDetails.Action name={\"moveToFolder\"} element={<FileDetailsMoveToFolder />} />\n <FileDetails.Action name={\"copyUrl\"} element={<FileDetailsCopyUrl />} />\n <FileDetails.Action name={\"delete\"} element={<FileDetailsDeleteImage />} />\n </>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,qBAAqB;AAC9B,SAASC,MAAM,IAAIC,UAAU;AAC7B,SAASC,QAAQ,IAAIC,YAAY;AACjC,SAASC,YAAY,IAAIC,gBAAgB;AACzC,SAASC,QAAQ,IAAIC,YAAY;AACjC,SAASL,QAAQ,IAAIM,mBAAmB;AACxC,SAASJ,YAAY,IAAIK,uBAAuB;AAChD,SAASC,OAAO,IAAIC,kBAAkB;AACtC,SAASC,WAAW,IAAIC,sBAAsB;AAE9C,MAAM;EAAEC,OAAO;EAAEC;AAAY,CAAC,GAAGhB,qBAAqB;AAEtD,OAAO,MAAMiB,WAAW,GAAGA,CAAA,KAAM;EAC7B,oBACIlB,KAAA,CAAAmB,aAAA,CAAAnB,KAAA,CAAAoB,QAAA,qBAEIpB,KAAA,CAAAmB,aAAA,CAACH,OAAO,CAACK,IAAI,CAACC,IAAI,CAACC,MAAM;IAACC,IAAI,EAAE,UAAW;IAACC,OAAO,eAAEzB,KAAA,CAAAmB,aAAA,CAACV,YAAY,MAAE;EAAE,CAAE,CAAC,eACzET,KAAA,CAAAmB,aAAA,CAACH,OAAO,CAACK,IAAI,CAACC,IAAI,CAACC,MAAM;IAACC,IAAI,EAAE,UAAW;IAACC,OAAO,eAAEzB,KAAA,CAAAmB,aAAA,CAACd,YAAY,MAAE;EAAE,CAAE,CAAC,eACzEL,KAAA,CAAAmB,aAAA,CAACH,OAAO,CAACK,IAAI,CAACC,IAAI,CAACC,MAAM;IAACC,IAAI,EAAE,MAAO;IAACC,OAAO,eAAEzB,KAAA,CAAAmB,aAAA,CAACZ,gBAAgB,MAAE;EAAE,CAAE,CAAC,eACzEP,KAAA,CAAAmB,aAAA,CAACH,OAAO,CAACK,IAAI,CAACC,IAAI,CAACC,MAAM;IAACC,IAAI,EAAE,QAAS;IAACC,OAAO,eAAEzB,KAAA,CAAAmB,aAAA,CAAChB,UAAU,MAAE;EAAE,CAAE,CAAC,eAErEH,KAAA,CAAAmB,aAAA,CAACF,WAAW,CAACM,MAAM;IAACC,IAAI,EAAE,UAAW;IAACC,OAAO,eAAEzB,KAAA,CAAAmB,aAAA,CAACT,mBAAmB,MAAE;EAAE,CAAE,CAAC,eAC1EV,KAAA,CAAAmB,aAAA,CAACF,WAAW,CAACM,MAAM;IAACC,IAAI,EAAE,cAAe;IAACC,OAAO,eAAEzB,KAAA,CAAAmB,aAAA,CAACR,uBAAuB,MAAE;EAAE,CAAE,CAAC,eAClFX,KAAA,CAAAmB,aAAA,CAACF,WAAW,CAACM,MAAM;IAACC,IAAI,EAAE,SAAU;IAACC,OAAO,eAAEzB,KAAA,CAAAmB,aAAA,CAACN,kBAAkB,MAAE;EAAE,CAAE,CAAC,eACxEb,KAAA,CAAAmB,aAAA,CAACF,WAAW,CAACM,MAAM;IAACC,IAAI,EAAE,QAAS;IAACC,OAAO,eAAEzB,KAAA,CAAAmB,aAAA,CAACJ,sBAAsB,MAAE;EAAE,CAAE,CAC5E,CAAC;AAEX,CAAC","ignoreList":[]}
|
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
|
2
|
-
import Files from "react-butterfiles";
|
|
3
|
-
import debounce from "lodash/debounce.js";
|
|
4
|
-
import { useHotkeys } from "@webiny/app-admin";
|
|
5
|
-
import { observer } from "mobx-react-lite";
|
|
6
|
-
import { Scrollbar } from "@webiny/admin-ui";
|
|
7
|
-
import { i18n } from "@webiny/app/i18n/index.js";
|
|
8
|
-
import { LeftPanel, OverlayLayout, RightPanel, SplitView, useSnackbar } from "@webiny/app-admin";
|
|
9
|
-
import { useFileManagerView } from "../FileManagerViewProvider/index.js";
|
|
10
|
-
import { outputFileSelectionError } from "./outputFileSelectionError.js";
|
|
11
|
-
import { LeftSidebar } from "./LeftSidebar.js";
|
|
12
|
-
import { useFileManagerViewConfig } from "../../../index.js";
|
|
13
|
-
import { BatchFileUploader } from "../../../BatchFileUploader.js";
|
|
14
|
-
import { BottomInfoBar } from "../../../components/BottomInfoBar/index.js";
|
|
15
|
-
import { BulkActions } from "../../../components/BulkActions/index.js";
|
|
16
|
-
import { FileDropPlaceholder } from "../../../components/FileDropPlaceholder/index.js";
|
|
17
|
-
import { Empty } from "../../../components/Empty/index.js";
|
|
18
|
-
import { FileDetails } from "../../../components/FileDetails/index.js";
|
|
19
|
-
import { Filters } from "../../../components/Filters/index.js";
|
|
20
|
-
import { Grid } from "../../../components/Grid/index.js";
|
|
21
|
-
import { Header } from "../../../components/Header/index.js";
|
|
22
|
-
import { Table } from "../../../components/Table/index.js";
|
|
23
|
-
import { TagsList } from "../../../components/TagsList/index.js";
|
|
24
|
-
import { UploadStatus } from "../../../components/UploadStatus/index.js";
|
|
25
|
-
const t = i18n.ns("app-admin/file-manager/file-manager-view");
|
|
26
|
-
const createSort = sorting => {
|
|
27
|
-
if (!sorting?.length) {
|
|
28
|
-
return undefined;
|
|
29
|
-
}
|
|
30
|
-
return sorting.reduce((items, item) => {
|
|
31
|
-
const sort = `${item.id}_${item.desc ? "DESC" : "ASC"}`;
|
|
32
|
-
if (items.includes(sort)) {
|
|
33
|
-
return items;
|
|
34
|
-
}
|
|
35
|
-
items.push(sort);
|
|
36
|
-
return items;
|
|
37
|
-
}, []);
|
|
38
|
-
};
|
|
39
|
-
const FileManagerView = () => {
|
|
40
|
-
const view = useFileManagerView();
|
|
41
|
-
const {
|
|
42
|
-
browser
|
|
43
|
-
} = useFileManagerViewConfig();
|
|
44
|
-
const {
|
|
45
|
-
showSnackbar
|
|
46
|
-
} = useSnackbar();
|
|
47
|
-
const [drawerLoading, setDrawerLoading] = useState(null);
|
|
48
|
-
const uploader = useMemo(() => new BatchFileUploader(view.uploadFile), [view.folderId]);
|
|
49
|
-
const [tableSorting, setTableSorting] = useState([]);
|
|
50
|
-
const [currentFile, setCurrentFile] = useState();
|
|
51
|
-
useEffect(() => {
|
|
52
|
-
const fetchFileDetails = async () => {
|
|
53
|
-
if (view.showingFileDetails) {
|
|
54
|
-
setDrawerLoading("Loading file details...");
|
|
55
|
-
const file = await view.getFile(view.showingFileDetails);
|
|
56
|
-
setCurrentFile(file);
|
|
57
|
-
} else {
|
|
58
|
-
setCurrentFile(undefined);
|
|
59
|
-
}
|
|
60
|
-
setDrawerLoading(null);
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
// call the function
|
|
64
|
-
fetchFileDetails();
|
|
65
|
-
}, [view.showingFileDetails]);
|
|
66
|
-
useEffect(() => {
|
|
67
|
-
if (!tableSorting?.length) {
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
const sort = createSort(tableSorting);
|
|
71
|
-
if (!sort) {
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
view.setListSort(sort);
|
|
75
|
-
}, [tableSorting]);
|
|
76
|
-
const getFileUploadErrorMessage = useCallback(e => {
|
|
77
|
-
if (typeof e === "string") {
|
|
78
|
-
const match = e.match(/Message>(.*?)<\/Message/);
|
|
79
|
-
if (match) {
|
|
80
|
-
const [, message] = match;
|
|
81
|
-
return message;
|
|
82
|
-
}
|
|
83
|
-
return e;
|
|
84
|
-
}
|
|
85
|
-
return e.message;
|
|
86
|
-
}, []);
|
|
87
|
-
useHotkeys({
|
|
88
|
-
zIndex: 20,
|
|
89
|
-
keys: {
|
|
90
|
-
esc: () => {
|
|
91
|
-
if (view.overlay) {
|
|
92
|
-
view.onClose();
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
const uploadFiles = async files => {
|
|
98
|
-
uploader.addFiles(files);
|
|
99
|
-
view.setIsUploadProgressIndicatorVisible(true);
|
|
100
|
-
uploader.onUploadFinished(({
|
|
101
|
-
uploaded,
|
|
102
|
-
errors
|
|
103
|
-
}) => {
|
|
104
|
-
uploader.reset();
|
|
105
|
-
view.setIsUploadProgressIndicatorVisible(true);
|
|
106
|
-
if (errors.length > 0) {
|
|
107
|
-
showSnackbar(/*#__PURE__*/React.createElement(React.Fragment, null, t`One or more files were not uploaded successfully:`, /*#__PURE__*/React.createElement("ol", null, errors.map(({
|
|
108
|
-
file,
|
|
109
|
-
e
|
|
110
|
-
}) => /*#__PURE__*/React.createElement("li", {
|
|
111
|
-
key: file.name
|
|
112
|
-
}, /*#__PURE__*/React.createElement("strong", null, file.name), ": ", getFileUploadErrorMessage(e))))));
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
showSnackbar(t`File upload complete.`, {
|
|
116
|
-
timeout: 3000
|
|
117
|
-
});
|
|
118
|
-
view.onUploadCompletion(uploaded);
|
|
119
|
-
});
|
|
120
|
-
};
|
|
121
|
-
const filesBeingUploaded = uploader.getJobs().length;
|
|
122
|
-
const progress = uploader.progress;
|
|
123
|
-
const renderList = browseFiles => {
|
|
124
|
-
if (!view.isListLoading && view.isSearch && view.files.length === 0) {
|
|
125
|
-
return /*#__PURE__*/React.createElement(Empty, {
|
|
126
|
-
isSearchResult: true,
|
|
127
|
-
browseFiles: browseFiles
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
if (!view.isListLoading && view.files.length === 0 && view.folders.length === 0) {
|
|
131
|
-
return /*#__PURE__*/React.createElement(Empty, {
|
|
132
|
-
isSearchResult: false,
|
|
133
|
-
browseFiles: browseFiles
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
if (view.listTable) {
|
|
137
|
-
const getSelectableRow = rows => rows.filter(row => row.$type === "RECORD").map(row => row.data);
|
|
138
|
-
const onSelectRow = view.hasOnSelectCallback ? rows => {
|
|
139
|
-
const files = getSelectableRow(rows);
|
|
140
|
-
if (view.multiple) {
|
|
141
|
-
view.setSelected(files);
|
|
142
|
-
} else {
|
|
143
|
-
view.onChange(files[0]);
|
|
144
|
-
}
|
|
145
|
-
} : rows => {
|
|
146
|
-
const files = getSelectableRow(rows);
|
|
147
|
-
view.setSelected(files);
|
|
148
|
-
};
|
|
149
|
-
const onToggleRow = view.hasOnSelectCallback ? row => {
|
|
150
|
-
const files = getSelectableRow([row]);
|
|
151
|
-
if (view.multiple) {
|
|
152
|
-
view.toggleSelected(files[0]);
|
|
153
|
-
} else {
|
|
154
|
-
view.onChange(files[0]);
|
|
155
|
-
}
|
|
156
|
-
} : row => {
|
|
157
|
-
const files = getSelectableRow([row]);
|
|
158
|
-
view.toggleSelected(files[0]);
|
|
159
|
-
};
|
|
160
|
-
return /*#__PURE__*/React.createElement(Table, {
|
|
161
|
-
onSelectRow: onSelectRow,
|
|
162
|
-
onToggleRow: onToggleRow,
|
|
163
|
-
sorting: tableSorting,
|
|
164
|
-
onSortingChange: setTableSorting
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
return /*#__PURE__*/React.createElement(Grid, {
|
|
168
|
-
folderActions: browser.folder.actions,
|
|
169
|
-
folders: view.folders,
|
|
170
|
-
records: view.files,
|
|
171
|
-
loading: view.isListLoading,
|
|
172
|
-
onFolderClick: view.setFolderId,
|
|
173
|
-
selected: view.selected,
|
|
174
|
-
multiple: view.multiple,
|
|
175
|
-
toggleSelected: view.toggleSelected,
|
|
176
|
-
deselectAll: view.deselectAll,
|
|
177
|
-
onChange: view.onChange,
|
|
178
|
-
onClose: view.onClose,
|
|
179
|
-
hasOnSelectCallback: view.hasOnSelectCallback,
|
|
180
|
-
displaySubFolders: view.displaySubFolders
|
|
181
|
-
});
|
|
182
|
-
};
|
|
183
|
-
const loadMoreOnScroll = useCallback(debounce(async ({
|
|
184
|
-
scrollFrame
|
|
185
|
-
}) => {
|
|
186
|
-
if (scrollFrame.top > 0.8) {
|
|
187
|
-
view.loadMoreFiles();
|
|
188
|
-
}
|
|
189
|
-
}, 200), [view.meta, view.loadMoreFiles]);
|
|
190
|
-
const updateFile = useCallback(async data => {
|
|
191
|
-
const {
|
|
192
|
-
id,
|
|
193
|
-
...fileData
|
|
194
|
-
} = data;
|
|
195
|
-
setDrawerLoading("Saving file changes...");
|
|
196
|
-
await view.updateFile(id, fileData);
|
|
197
|
-
setDrawerLoading(null);
|
|
198
|
-
showSnackbar("File updated successfully!");
|
|
199
|
-
view.hideFileDetails();
|
|
200
|
-
}, [view.updateFile]);
|
|
201
|
-
const withOverlay = element => {
|
|
202
|
-
if (view.overlay) {
|
|
203
|
-
return /*#__PURE__*/React.createElement(OverlayLayout, {
|
|
204
|
-
variant: "strong",
|
|
205
|
-
onExited: view.onClose
|
|
206
|
-
}, element);
|
|
207
|
-
}
|
|
208
|
-
return element;
|
|
209
|
-
};
|
|
210
|
-
return /*#__PURE__*/React.createElement(Files, {
|
|
211
|
-
multiple: true,
|
|
212
|
-
maxSize: view.settings ? view.settings.uploadMaxFileSize + "b" : "1TB",
|
|
213
|
-
multipleMaxSize: "1TB",
|
|
214
|
-
accept: view.accept,
|
|
215
|
-
onSuccess: files => {
|
|
216
|
-
const filesToUpload = files.map(file => file.src.file).filter(Boolean);
|
|
217
|
-
uploadFiles(filesToUpload);
|
|
218
|
-
},
|
|
219
|
-
onError: errors => {
|
|
220
|
-
const message = outputFileSelectionError(errors);
|
|
221
|
-
showSnackbar(message);
|
|
222
|
-
}
|
|
223
|
-
}, ({
|
|
224
|
-
getDropZoneProps,
|
|
225
|
-
browseFiles
|
|
226
|
-
}) => withOverlay(/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FileDetails, {
|
|
227
|
-
loading: drawerLoading,
|
|
228
|
-
file: currentFile,
|
|
229
|
-
open: Boolean(view.showingFileDetails),
|
|
230
|
-
onClose: view.hideFileDetails,
|
|
231
|
-
onSave: updateFile
|
|
232
|
-
}), /*#__PURE__*/React.createElement(SplitView, {
|
|
233
|
-
namespace: "fm/file/list"
|
|
234
|
-
}, /*#__PURE__*/React.createElement(LeftPanel, {
|
|
235
|
-
span: 2
|
|
236
|
-
}, /*#__PURE__*/React.createElement(LeftSidebar, {
|
|
237
|
-
currentFolder: view.folderId,
|
|
238
|
-
onFolderClick: view.setFolderId
|
|
239
|
-
}, browser.filterByTags ? /*#__PURE__*/React.createElement(TagsList, {
|
|
240
|
-
loading: view.tags.loading,
|
|
241
|
-
activeTags: view.tags.activeTags,
|
|
242
|
-
tags: view.tags.allTags,
|
|
243
|
-
onActivatedTagsChange: view.tags.setActiveTags
|
|
244
|
-
}) : null)), /*#__PURE__*/React.createElement(RightPanel, {
|
|
245
|
-
span: 10
|
|
246
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
247
|
-
className: "flex flex-col relative",
|
|
248
|
-
style: {
|
|
249
|
-
height: "calc(100vh - 45px"
|
|
250
|
-
}
|
|
251
|
-
}, /*#__PURE__*/React.createElement(Header, {
|
|
252
|
-
browseFiles: browseFiles
|
|
253
|
-
}), /*#__PURE__*/React.createElement("div", Object.assign({
|
|
254
|
-
className: "flex-1"
|
|
255
|
-
}, getDropZoneProps({
|
|
256
|
-
onDragOver: () => view.setDragging(true),
|
|
257
|
-
onDragLeave: () => view.setDragging(false),
|
|
258
|
-
onDrop: () => view.setDragging(false)
|
|
259
|
-
}), {
|
|
260
|
-
"data-testid": "fm-list-wrapper"
|
|
261
|
-
}), /*#__PURE__*/React.createElement(BulkActions, null), /*#__PURE__*/React.createElement(Filters, null), /*#__PURE__*/React.createElement(Scrollbar, {
|
|
262
|
-
onScrollFrame: scrollFrame => loadMoreOnScroll({
|
|
263
|
-
scrollFrame
|
|
264
|
-
})
|
|
265
|
-
}, renderList(browseFiles)), view.dragging && /*#__PURE__*/React.createElement(FileDropPlaceholder, null), /*#__PURE__*/React.createElement(UploadStatus, {
|
|
266
|
-
numberOfFiles: filesBeingUploaded,
|
|
267
|
-
progress: progress,
|
|
268
|
-
isVisible: view.isUploadProgressIndicatorVisible,
|
|
269
|
-
setIsVisible: view.setIsUploadProgressIndicatorVisible
|
|
270
|
-
})), /*#__PURE__*/React.createElement(BottomInfoBar, {
|
|
271
|
-
accept: view.accept,
|
|
272
|
-
listing: view.isListLoadingMore,
|
|
273
|
-
loading: view.isListLoading,
|
|
274
|
-
totalCount: view.meta?.totalCount ?? 0,
|
|
275
|
-
currentCount: view.files.length
|
|
276
|
-
})))))));
|
|
277
|
-
};
|
|
278
|
-
export default observer(FileManagerView);
|
|
279
|
-
|
|
280
|
-
//# sourceMappingURL=FileManagerView.js.map
|