@webiny/app-file-manager 6.3.0 → 6.4.0-beta.1
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 +31 -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 -27
- 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 +424 -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 +76 -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.d.ts +8 -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/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 +1 -0
- package/presentation/FileList/components/Upload/index.js +1 -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 +238 -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/FileManager/outputFileSelectionError.d.ts +2 -0
- package/presentation/FileManager/outputFileSelectionError.js +27 -0
- package/presentation/FileManager/outputFileSelectionError.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/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/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.d.ts +0 -8
- 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.d.ts +0 -2
- 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/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/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":["getFileIndex","files","file","undefined","index","findIndex","f","id","isAnchorSet","anchor","normalizeSelection","start","end","Math","min","max","setSelection","state","toggledFile","shiftKeyPressed","existingIndex","selected","toggledFileIndex","Map","map","item","selection","set","focus","delete","prevSelectedFile","Array","from","values","pop","prevFocus","newAnchor","newFocus","oldAnchor","oldFocus","selectedRange","filter","_","forEach","selectionAnchor","mustNotBeUndefined","includes"],"sources":["setSelection.ts"],"sourcesContent":["import type { FileItem } from \"~/types.js\";\nimport type { State } from \"./state.js\";\n\ninterface GetSelectionParams {\n state: State;\n files: FileItem[];\n toggledFile: FileItem;\n shiftKeyPressed: boolean;\n}\n\nconst getFileIndex = (files: FileItem[], file: FileItem | undefined) => {\n if (!file) {\n return undefined;\n }\n\n const index = files.findIndex(f => f.id === file.id);\n return index > -1 ? index : undefined;\n};\n\nconst isAnchorSet = (anchor: number | undefined): anchor is number => {\n return anchor !== undefined;\n};\n\nconst normalizeSelection = (\n start: number,\n end: number | undefined\n): [number, number | undefined] => {\n if (end === undefined) {\n return [start, undefined];\n }\n\n return [Math.min(start, end), Math.max(start, end)];\n};\n\nexport const setSelection = ({\n state,\n files,\n toggledFile,\n shiftKeyPressed\n}: GetSelectionParams) => {\n // Check if the `toggledFile` is already in the `selected` files.\n const existingIndex = getFileIndex(state.selected, toggledFile);\n const toggledFileIndex = getFileIndex(files, toggledFile) as number;\n const selected = new Map(state.selected.map(item => [item.id, item]));\n const selection = { ...state.selection };\n\n // Add a single file to selection.\n if (existingIndex === undefined && !shiftKeyPressed) {\n selected.set(toggledFile.id, toggledFile);\n selection.anchor = toggledFileIndex;\n selection.focus = undefined;\n }\n\n // Remove a single file from selection.\n if (existingIndex !== undefined && !shiftKeyPressed) {\n selected.delete(toggledFile.id);\n const prevSelectedFile = Array.from(selected.values()).pop();\n selection.anchor = getFileIndex(files, prevSelectedFile);\n selection.focus = undefined;\n }\n\n // Handle range selection (\"shift\" key is pressed).\n if (isAnchorSet(selection.anchor) && shiftKeyPressed) {\n const prevFocus = selection.focus;\n selection.focus = toggledFileIndex;\n\n const [newAnchor, newFocus] = normalizeSelection(selection.anchor, toggledFileIndex);\n const [oldAnchor, oldFocus] = normalizeSelection(selection.anchor, prevFocus);\n\n const selectedRange = files.filter((_, index) => {\n if (index < newAnchor) {\n return false;\n }\n\n if (newFocus && index > newFocus) {\n return false;\n }\n\n return true;\n });\n\n selected.forEach(file => {\n const index = getFileIndex(files, file);\n const selectionAnchor = selection.anchor;\n\n const mustNotBeUndefined = [index, oldFocus, newFocus, selectionAnchor];\n if (mustNotBeUndefined.includes(undefined)) {\n return;\n }\n\n /**\n * If the new selection is smaller than the previous selection, we need to deselect items\n * that are now outside the new, smaller, selection.\n */\n // @ts-expect-error We already checked for `undefined` above.\n if (newFocus < oldFocus && index > newFocus && index <= oldFocus) {\n selected.delete(file.id);\n }\n\n /**\n * If the previous selection was made backwards (`oldAnchor` is essentially pointing to the shift-clicked item\n * of the previous selection, which is the `focus` of the selection, but it's normalized, so it becomes an anchor),\n * and the current selection is made forward (selectionAnchor > oldAnchor), we need to deselect items between the\n * old selection anchor and the old selection focus (which is also the new selection anchor).\n */\n // @ts-expect-error We already checked for `undefined` above.\n if (selectionAnchor > oldAnchor && index >= oldAnchor && index < oldFocus) {\n selected.delete(file.id);\n }\n });\n\n selectedRange.forEach(file => {\n selected.set(file.id, file);\n });\n }\n\n return {\n ...state,\n selection,\n selected: Array.from(selected.values())\n };\n};\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { FileItem } from "../../../types.js";
|
|
2
|
-
import type { ListFilesSort } from "../../../modules/FileManagerApiProvider/graphql.js";
|
|
3
|
-
import type { Settings } from "../../../types.js";
|
|
4
|
-
export interface State {
|
|
5
|
-
activeTags: string[];
|
|
6
|
-
displaySubFolders: boolean;
|
|
7
|
-
dragging: boolean;
|
|
8
|
-
filters: Record<string, any> | undefined;
|
|
9
|
-
isSearch: boolean;
|
|
10
|
-
isUploadProgressIndicatorVisible: boolean;
|
|
11
|
-
limit: number;
|
|
12
|
-
listSort?: ListFilesSort;
|
|
13
|
-
listTable: boolean;
|
|
14
|
-
searchLabel: string;
|
|
15
|
-
searchQuery: string;
|
|
16
|
-
selected: FileItem[];
|
|
17
|
-
selection: {
|
|
18
|
-
anchor?: number | undefined;
|
|
19
|
-
focus?: number | undefined;
|
|
20
|
-
};
|
|
21
|
-
settings: Settings | undefined;
|
|
22
|
-
showingFileDetails: string | null;
|
|
23
|
-
showingFilters: boolean;
|
|
24
|
-
tagsFilterMode: "AND" | "OR";
|
|
25
|
-
}
|
|
26
|
-
export declare const getScopeWhereParams: (scope: string | undefined) => {
|
|
27
|
-
tags_not_startsWith: string;
|
|
28
|
-
tags_startsWith?: undefined;
|
|
29
|
-
} | {
|
|
30
|
-
tags_startsWith: string;
|
|
31
|
-
tags_not_startsWith?: undefined;
|
|
32
|
-
};
|
|
33
|
-
export declare const initializeState: () => State;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
const DEFAULT_SCOPE = "scope:";
|
|
2
|
-
export const getScopeWhereParams = scope => {
|
|
3
|
-
if (!scope) {
|
|
4
|
-
return {
|
|
5
|
-
tags_not_startsWith: DEFAULT_SCOPE
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
return {
|
|
9
|
-
tags_startsWith: scope
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export const initializeState = () => {
|
|
13
|
-
return {
|
|
14
|
-
activeTags: [],
|
|
15
|
-
displaySubFolders: true,
|
|
16
|
-
dragging: false,
|
|
17
|
-
isUploadProgressIndicatorVisible: true,
|
|
18
|
-
isSearch: false,
|
|
19
|
-
filters: undefined,
|
|
20
|
-
limit: 50,
|
|
21
|
-
listSort: [],
|
|
22
|
-
listTable: false,
|
|
23
|
-
searchLabel: "",
|
|
24
|
-
searchQuery: "",
|
|
25
|
-
selected: [],
|
|
26
|
-
selection: {},
|
|
27
|
-
settings: undefined,
|
|
28
|
-
showingFileDetails: null,
|
|
29
|
-
showingFilters: false,
|
|
30
|
-
tagsFilterMode: "OR"
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
//# sourceMappingURL=state.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["DEFAULT_SCOPE","getScopeWhereParams","scope","tags_not_startsWith","tags_startsWith","initializeState","activeTags","displaySubFolders","dragging","isUploadProgressIndicatorVisible","isSearch","filters","undefined","limit","listSort","listTable","searchLabel","searchQuery","selected","selection","settings","showingFileDetails","showingFilters","tagsFilterMode"],"sources":["state.ts"],"sourcesContent":["import type { FileItem } from \"~/types.js\";\nimport type { ListFilesSort } from \"~/modules/FileManagerApiProvider/graphql.js\";\nimport type { Settings } from \"~/types.js\";\n\nexport interface State {\n activeTags: string[];\n displaySubFolders: boolean;\n dragging: boolean;\n filters: Record<string, any> | undefined;\n isSearch: boolean;\n isUploadProgressIndicatorVisible: boolean;\n limit: number;\n listSort?: ListFilesSort;\n listTable: boolean;\n searchLabel: string;\n searchQuery: string;\n selected: FileItem[];\n selection: {\n anchor?: number | undefined;\n focus?: number | undefined;\n };\n settings: Settings | undefined;\n showingFileDetails: string | null;\n showingFilters: boolean;\n tagsFilterMode: \"AND\" | \"OR\";\n}\nconst DEFAULT_SCOPE = \"scope:\";\n\nexport const getScopeWhereParams = (scope: string | undefined) => {\n if (!scope) {\n return {\n tags_not_startsWith: DEFAULT_SCOPE\n };\n }\n return {\n tags_startsWith: scope\n };\n};\n\nexport const initializeState = (): State => {\n return {\n activeTags: [],\n displaySubFolders: true,\n dragging: false,\n isUploadProgressIndicatorVisible: true,\n isSearch: false,\n filters: undefined,\n limit: 50,\n listSort: [],\n listTable: false,\n searchLabel: \"\",\n searchQuery: \"\",\n selected: [],\n selection: {},\n settings: undefined,\n showingFileDetails: null,\n showingFilters: false,\n tagsFilterMode: \"OR\"\n };\n};\n"],"mappings":"AA0BA,MAAMA,aAAa,GAAG,QAAQ;AAE9B,OAAO,MAAMC,mBAAmB,GAAIC,KAAyB,IAAK;EAC9D,IAAI,CAACA,KAAK,EAAE;IACR,OAAO;MACHC,mBAAmB,EAAEH;IACzB,CAAC;EACL;EACA,OAAO;IACHI,eAAe,EAAEF;EACrB,CAAC;AACL,CAAC;AAED,OAAO,MAAMG,eAAe,GAAGA,CAAA,KAAa;EACxC,OAAO;IACHC,UAAU,EAAE,EAAE;IACdC,iBAAiB,EAAE,IAAI;IACvBC,QAAQ,EAAE,KAAK;IACfC,gCAAgC,EAAE,IAAI;IACtCC,QAAQ,EAAE,KAAK;IACfC,OAAO,EAAEC,SAAS;IAClBC,KAAK,EAAE,EAAE;IACTC,QAAQ,EAAE,EAAE;IACZC,SAAS,EAAE,KAAK;IAChBC,WAAW,EAAE,EAAE;IACfC,WAAW,EAAE,EAAE;IACfC,QAAQ,EAAE,EAAE;IACZC,SAAS,EAAE,CAAC,CAAC;IACbC,QAAQ,EAAER,SAAS;IACnBS,kBAAkB,EAAE,IAAI;IACxBC,cAAc,EAAE,KAAK;IACrBC,cAAc,EAAE;EACpB,CAAC;AACL,CAAC","ignoreList":[]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { useContext } from "react";
|
|
2
|
-
import { FileManagerViewContext } from "./FileManagerViewContext.js";
|
|
3
|
-
export function useFileManagerView() {
|
|
4
|
-
const context = useContext(FileManagerViewContext);
|
|
5
|
-
if (!context) {
|
|
6
|
-
throw new Error("useFileManagerView() must be used within a FileManagerViewProvider");
|
|
7
|
-
}
|
|
8
|
-
return context;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
//# sourceMappingURL=useFileManagerView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useContext","FileManagerViewContext","useFileManagerView","context","Error"],"sources":["useFileManagerView.ts"],"sourcesContent":["import { useContext } from \"react\";\nimport { FileManagerViewContext } from \"./FileManagerViewContext.js\";\nimport type { FileItem } from \"~/types.js\";\n\nexport function useFileManagerView<TFileItem extends FileItem = FileItem>() {\n const context = useContext<FileManagerViewContext<TFileItem>>(\n FileManagerViewContext as unknown as React.Context<FileManagerViewContext<TFileItem>>\n );\n if (!context) {\n throw new Error(\"useFileManagerView() must be used within a FileManagerViewProvider\");\n }\n\n return context;\n}\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,sBAAsB;AAG/B,OAAO,SAASC,kBAAkBA,CAAA,EAA0C;EACxE,MAAMC,OAAO,GAAGH,UAAU,CACtBC,sBACJ,CAAC;EACD,IAAI,CAACE,OAAO,EAAE;IACV,MAAM,IAAIC,KAAK,CAAC,oEAAoE,CAAC;EACzF;EAEA,OAAOD,OAAO;AAClB","ignoreList":[]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { ListMeta } from "@webiny/app-aco/types.js";
|
|
2
|
-
import type { FileItem } from "../../../types.js";
|
|
3
|
-
import type { Loading, LoadingActions } from "../../../modules/FileManagerRenderer/FileManagerViewProvider/index.js";
|
|
4
|
-
import type { ListFilesQueryVariables } from "../../../modules/FileManagerApiProvider/graphql.js";
|
|
5
|
-
import type { State } from "./state.js";
|
|
6
|
-
interface UseListFilesParams {
|
|
7
|
-
modifiers: {
|
|
8
|
-
scope?: string;
|
|
9
|
-
own?: boolean;
|
|
10
|
-
accept: string[];
|
|
11
|
-
};
|
|
12
|
-
folderId: string;
|
|
13
|
-
state: State;
|
|
14
|
-
}
|
|
15
|
-
export declare function useListFiles({ modifiers, folderId, state }: UseListFilesParams): {
|
|
16
|
-
files: FileItem[];
|
|
17
|
-
loading: Loading<LoadingActions>;
|
|
18
|
-
meta: ListMeta;
|
|
19
|
-
setFiles: import("react").Dispatch<import("react").SetStateAction<FileItem[]>>;
|
|
20
|
-
setMeta: import("react").Dispatch<import("react").SetStateAction<ListMeta>>;
|
|
21
|
-
listFiles: (params: ListFilesQueryVariables) => Promise<void>;
|
|
22
|
-
getListVariables: () => ListFilesQueryVariables;
|
|
23
|
-
};
|
|
24
|
-
export {};
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import isEqual from "lodash/isEqual.js";
|
|
2
|
-
import { validateOrGetDefaultDbSort } from "@webiny/app-aco/sorting.js";
|
|
3
|
-
import { useGetDescendantFolders } from "@webiny/app-aco";
|
|
4
|
-
import { useSecurity } from "@webiny/app-admin";
|
|
5
|
-
import { useStateIfMounted } from "@webiny/app-admin";
|
|
6
|
-
import { useFileManagerApi } from "../../FileManagerApiProvider/FileManagerApiContext/index.js";
|
|
7
|
-
import { getScopeWhereParams } from "./state.js";
|
|
8
|
-
import { ROOT_FOLDER } from "../../../constants.js";
|
|
9
|
-
const toTypeInput = value => {
|
|
10
|
-
return value.replace("*", "");
|
|
11
|
-
};
|
|
12
|
-
function nonEmptyArray(value, fallback = undefined) {
|
|
13
|
-
if (Array.isArray(value)) {
|
|
14
|
-
return value.length ? value.map(toTypeInput) : undefined;
|
|
15
|
-
}
|
|
16
|
-
return fallback;
|
|
17
|
-
}
|
|
18
|
-
const defaultMeta = {
|
|
19
|
-
totalCount: 0,
|
|
20
|
-
hasMoreItems: false,
|
|
21
|
-
cursor: null
|
|
22
|
-
};
|
|
23
|
-
export function useListFiles({
|
|
24
|
-
modifiers,
|
|
25
|
-
folderId,
|
|
26
|
-
state
|
|
27
|
-
}) {
|
|
28
|
-
const {
|
|
29
|
-
identity
|
|
30
|
-
} = useSecurity();
|
|
31
|
-
const fileManager = useFileManagerApi();
|
|
32
|
-
const {
|
|
33
|
-
getDescendantFolders
|
|
34
|
-
} = useGetDescendantFolders();
|
|
35
|
-
const [meta, setMeta] = useStateIfMounted(defaultMeta);
|
|
36
|
-
const [files, setFiles] = useStateIfMounted([]);
|
|
37
|
-
const [loading, setLoading] = useStateIfMounted({});
|
|
38
|
-
const [lastSort, setLastSort] = useStateIfMounted(undefined);
|
|
39
|
-
const listFiles = async params => {
|
|
40
|
-
const {
|
|
41
|
-
after,
|
|
42
|
-
limit,
|
|
43
|
-
sort: sorting,
|
|
44
|
-
search,
|
|
45
|
-
where
|
|
46
|
-
} = params;
|
|
47
|
-
|
|
48
|
-
/*
|
|
49
|
-
* We're avoiding to fetch records in case they have already been fetched.
|
|
50
|
-
* This happens when visiting a list with all records loaded and receives "after" param.
|
|
51
|
-
*/
|
|
52
|
-
const hasMoreItems = meta?.hasMoreItems || true;
|
|
53
|
-
if (after && !hasMoreItems) {
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
const action = after ? "LIST_MORE" : "LIST";
|
|
57
|
-
const sort = validateOrGetDefaultDbSort(sorting);
|
|
58
|
-
setLoading({
|
|
59
|
-
[action]: true
|
|
60
|
-
});
|
|
61
|
-
const fmResponse = await fileManager.listFiles({
|
|
62
|
-
where,
|
|
63
|
-
sort,
|
|
64
|
-
search,
|
|
65
|
-
limit,
|
|
66
|
-
after
|
|
67
|
-
});
|
|
68
|
-
setFiles(prev => {
|
|
69
|
-
// If there's no cursor, or sorting changed, it means we're receiving a new list of files from scratch.
|
|
70
|
-
if (!after || !isEqual(sorting, lastSort)) {
|
|
71
|
-
return fmResponse.files;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// Otherwise, we're merging results with the previous state.
|
|
75
|
-
return [...prev, ...fmResponse.files];
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
// We need to keep track of the last used sorting. If sorting is changed, it means we're loading
|
|
79
|
-
// a completely new list of files (starting from "page 1").
|
|
80
|
-
setLastSort(sorting);
|
|
81
|
-
setMeta(fmResponse.meta);
|
|
82
|
-
setLoading(prev => {
|
|
83
|
-
return {
|
|
84
|
-
...prev,
|
|
85
|
-
INIT: false,
|
|
86
|
-
[action]: false
|
|
87
|
-
};
|
|
88
|
-
});
|
|
89
|
-
};
|
|
90
|
-
const getListVariables = () => {
|
|
91
|
-
const isSearch = state.searchQuery || state.filters || state.activeTags.length;
|
|
92
|
-
const AND = [];
|
|
93
|
-
if (modifiers.accept.length) {
|
|
94
|
-
const types = nonEmptyArray(modifiers.accept);
|
|
95
|
-
if (types) {
|
|
96
|
-
AND.push({
|
|
97
|
-
OR: types.map(type => ({
|
|
98
|
-
type_startsWith: type
|
|
99
|
-
}))
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
if (state.filters) {
|
|
104
|
-
AND.push(state.filters);
|
|
105
|
-
}
|
|
106
|
-
if (state.activeTags.length) {
|
|
107
|
-
if (state.tagsFilterMode == "OR") {
|
|
108
|
-
AND.push({
|
|
109
|
-
tags_in: state.activeTags
|
|
110
|
-
});
|
|
111
|
-
} else {
|
|
112
|
-
AND.push(...state.activeTags.map(tag => ({
|
|
113
|
-
tags_in: [tag]
|
|
114
|
-
})));
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
let locationWhere = {
|
|
118
|
-
folderId
|
|
119
|
-
};
|
|
120
|
-
if (isSearch) {
|
|
121
|
-
if (folderId === ROOT_FOLDER) {
|
|
122
|
-
locationWhere = undefined;
|
|
123
|
-
} else {
|
|
124
|
-
locationWhere = {
|
|
125
|
-
folderId_in: getDescendantFolders(folderId).map(folder => folder.id)
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
const queryParams = {
|
|
130
|
-
limit: 50,
|
|
131
|
-
sort: state.listSort,
|
|
132
|
-
search: state.searchQuery || undefined,
|
|
133
|
-
where: {
|
|
134
|
-
...getScopeWhereParams(modifiers.scope),
|
|
135
|
-
location: locationWhere,
|
|
136
|
-
createdBy: modifiers.own ? identity.id : undefined,
|
|
137
|
-
AND: AND.length > 0 ? AND : undefined
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
return queryParams;
|
|
141
|
-
};
|
|
142
|
-
return {
|
|
143
|
-
files: files || [],
|
|
144
|
-
loading,
|
|
145
|
-
meta,
|
|
146
|
-
setFiles,
|
|
147
|
-
setMeta,
|
|
148
|
-
listFiles,
|
|
149
|
-
getListVariables
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
//# sourceMappingURL=useListFiles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["isEqual","validateOrGetDefaultDbSort","useGetDescendantFolders","useSecurity","useStateIfMounted","useFileManagerApi","getScopeWhereParams","ROOT_FOLDER","toTypeInput","value","replace","nonEmptyArray","fallback","undefined","Array","isArray","length","map","defaultMeta","totalCount","hasMoreItems","cursor","useListFiles","modifiers","folderId","state","identity","fileManager","getDescendantFolders","meta","setMeta","files","setFiles","loading","setLoading","lastSort","setLastSort","listFiles","params","after","limit","sort","sorting","search","where","action","fmResponse","prev","INIT","getListVariables","isSearch","searchQuery","filters","activeTags","AND","accept","types","push","OR","type","type_startsWith","tagsFilterMode","tags_in","tag","locationWhere","folderId_in","folder","id","queryParams","listSort","scope","location","createdBy","own"],"sources":["useListFiles.ts"],"sourcesContent":["import isEqual from \"lodash/isEqual.js\";\nimport { validateOrGetDefaultDbSort } from \"@webiny/app-aco/sorting.js\";\nimport { useGetDescendantFolders } from \"@webiny/app-aco\";\nimport type { ListMeta } from \"@webiny/app-aco/types.js\";\nimport { useSecurity } from \"@webiny/app-admin\";\nimport type { FileItem } from \"~/types.js\";\nimport { useStateIfMounted } from \"@webiny/app-admin\";\nimport type {\n Loading,\n LoadingActions\n} from \"~/modules/FileManagerRenderer/FileManagerViewProvider/index.js\";\nimport type {\n ListFilesQueryVariables,\n ListFilesSort,\n ListFilesWhereLocation,\n ListFilesWhereQueryVariables\n} from \"~/modules/FileManagerApiProvider/graphql.js\";\nimport { useFileManagerApi } from \"~/modules/FileManagerApiProvider/FileManagerApiContext/index.js\";\nimport type { State } from \"./state.js\";\nimport { getScopeWhereParams } from \"./state.js\";\nimport { ROOT_FOLDER } from \"~/constants.js\";\n\nconst toTypeInput = (value: string) => {\n return value.replace(\"*\", \"\");\n};\n\nfunction nonEmptyArray(value: string[] | undefined, fallback: string[] | undefined = undefined) {\n if (Array.isArray(value)) {\n return value.length ? value.map(toTypeInput) : undefined;\n }\n\n return fallback;\n}\n\ninterface UseListFilesParams {\n modifiers: {\n scope?: string;\n own?: boolean;\n accept: string[];\n };\n folderId: string;\n state: State;\n}\n\nconst defaultMeta: ListMeta = {\n totalCount: 0,\n hasMoreItems: false,\n cursor: null\n};\n\nexport function useListFiles({ modifiers, folderId, state }: UseListFilesParams) {\n const { identity } = useSecurity();\n const fileManager = useFileManagerApi();\n const { getDescendantFolders } = useGetDescendantFolders();\n const [meta, setMeta] = useStateIfMounted<ListMeta>(defaultMeta);\n const [files, setFiles] = useStateIfMounted<FileItem[]>([]);\n const [loading, setLoading] = useStateIfMounted<Loading<LoadingActions>>({});\n const [lastSort, setLastSort] = useStateIfMounted<ListFilesSort | undefined>(undefined);\n\n const listFiles = async (params: ListFilesQueryVariables) => {\n const { after, limit, sort: sorting, search, where } = params;\n\n /*\n * We're avoiding to fetch records in case they have already been fetched.\n * This happens when visiting a list with all records loaded and receives \"after\" param.\n */\n const hasMoreItems = meta?.hasMoreItems || true;\n if (after && !hasMoreItems) {\n return;\n }\n\n const action = after ? \"LIST_MORE\" : \"LIST\";\n const sort = validateOrGetDefaultDbSort(sorting);\n\n setLoading({ [action]: true });\n\n const fmResponse = await fileManager.listFiles({\n where,\n sort,\n search,\n limit,\n after\n });\n\n setFiles(prev => {\n // If there's no cursor, or sorting changed, it means we're receiving a new list of files from scratch.\n if (!after || !isEqual(sorting, lastSort)) {\n return fmResponse.files;\n }\n\n // Otherwise, we're merging results with the previous state.\n return [...prev, ...fmResponse.files];\n });\n\n // We need to keep track of the last used sorting. If sorting is changed, it means we're loading\n // a completely new list of files (starting from \"page 1\").\n setLastSort(sorting);\n\n setMeta(fmResponse.meta);\n\n setLoading(prev => {\n return {\n ...prev,\n INIT: false,\n [action]: false\n };\n });\n };\n\n const getListVariables = () => {\n const isSearch = state.searchQuery || state.filters || state.activeTags.length;\n\n const AND: ListFilesWhereQueryVariables[] = [];\n\n if (modifiers.accept.length) {\n const types = nonEmptyArray(modifiers.accept);\n if (types) {\n AND.push({\n OR: types.map(type => ({ type_startsWith: type }))\n });\n }\n }\n\n if (state.filters) {\n AND.push(state.filters);\n }\n\n if (state.activeTags.length) {\n if (state.tagsFilterMode == \"OR\") {\n AND.push({ tags_in: state.activeTags });\n } else {\n AND.push(...state.activeTags.map(tag => ({ tags_in: [tag] })));\n }\n }\n\n let locationWhere: ListFilesWhereLocation | undefined = { folderId };\n\n if (isSearch) {\n if (folderId === ROOT_FOLDER) {\n locationWhere = undefined;\n } else {\n locationWhere = {\n folderId_in: getDescendantFolders(folderId).map(folder => folder.id)\n };\n }\n }\n\n const queryParams: ListFilesQueryVariables = {\n limit: 50,\n sort: state.listSort,\n search: state.searchQuery || undefined,\n where: {\n ...getScopeWhereParams(modifiers.scope),\n location: locationWhere,\n createdBy: modifiers.own ? identity!.id : undefined,\n AND: AND.length > 0 ? AND : undefined\n }\n };\n\n return queryParams;\n };\n\n return {\n files: files || [],\n loading,\n meta,\n setFiles,\n setMeta,\n listFiles,\n getListVariables\n };\n}\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { FileTag } from "../../../types.js";
|
|
2
|
-
interface UseTagsParams {
|
|
3
|
-
scope?: string;
|
|
4
|
-
own?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare const useTags: ({ scope, own }: UseTagsParams) => {
|
|
7
|
-
loading: boolean;
|
|
8
|
-
tags: FileTag[];
|
|
9
|
-
addTags: (tags: string[]) => void;
|
|
10
|
-
};
|
|
11
|
-
export {};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
2
|
-
import { useSecurity } from "@webiny/app-admin";
|
|
3
|
-
import { useFileManagerApi } from "../../FileManagerApiProvider/FileManagerApiContext/index.js";
|
|
4
|
-
import { DEFAULT_SCOPE } from "../../../constants.js";
|
|
5
|
-
import { THREAT_SCAN } from "../../Enterprise/constants.js";
|
|
6
|
-
const sortTags = tags => {
|
|
7
|
-
return tags.sort((a, b) => a.tag.localeCompare(b.tag));
|
|
8
|
-
};
|
|
9
|
-
export const useTags = ({
|
|
10
|
-
scope,
|
|
11
|
-
own
|
|
12
|
-
}) => {
|
|
13
|
-
const {
|
|
14
|
-
identity
|
|
15
|
-
} = useSecurity();
|
|
16
|
-
const fileManager = useFileManagerApi();
|
|
17
|
-
const [tags, setSortedTags] = useState([]);
|
|
18
|
-
const [loading, setLoading] = useState(false);
|
|
19
|
-
const getTagsInitialParams = useCallback(({
|
|
20
|
-
scope,
|
|
21
|
-
own
|
|
22
|
-
}) => {
|
|
23
|
-
return {
|
|
24
|
-
...(own && {
|
|
25
|
-
createdBy: identity?.id
|
|
26
|
-
}),
|
|
27
|
-
...(scope ? {
|
|
28
|
-
tags_startsWith: scope
|
|
29
|
-
} : {
|
|
30
|
-
tags_not_startsWith: DEFAULT_SCOPE
|
|
31
|
-
})
|
|
32
|
-
};
|
|
33
|
-
}, [scope, own, identity]);
|
|
34
|
-
const setTags = useCallback(tags => {
|
|
35
|
-
setSortedTags(state => {
|
|
36
|
-
const uniqueTags = tags.filter(tag => !state.some(t => t.tag === tag.tag));
|
|
37
|
-
return sortTags([...state, ...uniqueTags]);
|
|
38
|
-
});
|
|
39
|
-
}, []);
|
|
40
|
-
const where = useMemo(() => getTagsInitialParams({
|
|
41
|
-
scope,
|
|
42
|
-
own
|
|
43
|
-
}), [getTagsInitialParams]);
|
|
44
|
-
useEffect(() => {
|
|
45
|
-
setLoading(true);
|
|
46
|
-
fileManager.listTags({
|
|
47
|
-
where
|
|
48
|
-
}).then(tags => {
|
|
49
|
-
setLoading(false);
|
|
50
|
-
setTags(tagsModifier(tags));
|
|
51
|
-
});
|
|
52
|
-
}, []);
|
|
53
|
-
const addTags = tags => {
|
|
54
|
-
if (!tags.length) {
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
const newTags = tagsModifier(tags.map(tag => ({
|
|
58
|
-
tag,
|
|
59
|
-
count: 1
|
|
60
|
-
})));
|
|
61
|
-
setTags(newTags);
|
|
62
|
-
fileManager.listTags({
|
|
63
|
-
where,
|
|
64
|
-
refetch: true
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
const tagsModifier = useCallback(tags => {
|
|
68
|
-
return tags.filter(({
|
|
69
|
-
tag
|
|
70
|
-
}) => tag !== scope).filter(({
|
|
71
|
-
tag
|
|
72
|
-
}) => !tag.startsWith("mime:")).filter(({
|
|
73
|
-
tag
|
|
74
|
-
}) => tag !== THREAT_SCAN.IN_PROGRESS).map(item => {
|
|
75
|
-
const tagName = scope ? item.tag.replace(`${scope}:`, "") : item.tag;
|
|
76
|
-
return {
|
|
77
|
-
...item,
|
|
78
|
-
tag: tagName
|
|
79
|
-
};
|
|
80
|
-
});
|
|
81
|
-
}, [scope]);
|
|
82
|
-
return {
|
|
83
|
-
loading,
|
|
84
|
-
tags,
|
|
85
|
-
addTags
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
//# sourceMappingURL=useTags.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useCallback","useEffect","useMemo","useState","useSecurity","useFileManagerApi","DEFAULT_SCOPE","THREAT_SCAN","sortTags","tags","sort","a","b","tag","localeCompare","useTags","scope","own","identity","fileManager","setSortedTags","loading","setLoading","getTagsInitialParams","createdBy","id","tags_startsWith","tags_not_startsWith","setTags","state","uniqueTags","filter","some","t","where","listTags","then","tagsModifier","addTags","length","newTags","map","count","refetch","startsWith","IN_PROGRESS","item","tagName","replace"],"sources":["useTags.ts"],"sourcesContent":["import { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { useSecurity } from \"@webiny/app-admin\";\nimport { useFileManagerApi } from \"~/modules/FileManagerApiProvider/FileManagerApiContext/index.js\";\nimport { DEFAULT_SCOPE } from \"~/constants.js\";\nimport type { FileTag } from \"~/types.js\";\nimport { THREAT_SCAN } from \"~/modules/Enterprise/constants.js\";\n\nconst sortTags = (tags: FileTag[]) => {\n return tags.sort((a, b) => a.tag.localeCompare(b.tag));\n};\n\ninterface UseTagsParams {\n scope?: string;\n own?: boolean;\n}\n\nexport const useTags = ({ scope, own }: UseTagsParams) => {\n const { identity } = useSecurity();\n const fileManager = useFileManagerApi();\n const [tags, setSortedTags] = useState<FileTag[]>([]);\n const [loading, setLoading] = useState(false);\n\n const getTagsInitialParams = useCallback(\n ({ scope, own }: UseTagsParams) => {\n return {\n ...(own && { createdBy: identity?.id }),\n ...(scope ? { tags_startsWith: scope } : { tags_not_startsWith: DEFAULT_SCOPE })\n };\n },\n [scope, own, identity]\n );\n\n const setTags = useCallback((tags: FileTag[]) => {\n setSortedTags(state => {\n const uniqueTags = tags.filter(tag => !state.some(t => t.tag === tag.tag));\n\n return sortTags([...state, ...uniqueTags]);\n });\n }, []);\n\n const where = useMemo(() => getTagsInitialParams({ scope, own }), [getTagsInitialParams]);\n\n useEffect(() => {\n setLoading(true);\n fileManager.listTags({ where }).then(tags => {\n setLoading(false);\n setTags(tagsModifier(tags));\n });\n }, []);\n\n const addTags = (tags: string[]) => {\n if (!tags.length) {\n return;\n }\n\n const newTags = tagsModifier(tags.map(tag => ({ tag, count: 1 })));\n\n setTags(newTags);\n\n fileManager.listTags({ where, refetch: true });\n };\n\n const tagsModifier = useCallback(\n (tags: FileTag[]) => {\n return tags\n .filter(({ tag }) => tag !== scope)\n .filter(({ tag }) => !tag.startsWith(\"mime:\"))\n .filter(({ tag }) => tag !== THREAT_SCAN.IN_PROGRESS)\n .map(item => {\n const tagName = scope ? item.tag.replace(`${scope}:`, \"\") : item.tag;\n return {\n ...item,\n tag: tagName\n };\n });\n },\n [scope]\n );\n\n return {\n loading,\n tags,\n addTags\n };\n};\n"],"mappings":"AAAA,SAASA,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACjE,SAASC,WAAW,QAAQ,mBAAmB;AAC/C,SAASC,iBAAiB;AAC1B,SAASC,aAAa;AAEtB,SAASC,WAAW;AAEpB,MAAMC,QAAQ,GAAIC,IAAe,IAAK;EAClC,OAAOA,IAAI,CAACC,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKD,CAAC,CAACE,GAAG,CAACC,aAAa,CAACF,CAAC,CAACC,GAAG,CAAC,CAAC;AAC1D,CAAC;AAOD,OAAO,MAAME,OAAO,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAAmB,CAAC,KAAK;EACtD,MAAM;IAAEC;EAAS,CAAC,GAAGd,WAAW,CAAC,CAAC;EAClC,MAAMe,WAAW,GAAGd,iBAAiB,CAAC,CAAC;EACvC,MAAM,CAACI,IAAI,EAAEW,aAAa,CAAC,GAAGjB,QAAQ,CAAY,EAAE,CAAC;EACrD,MAAM,CAACkB,OAAO,EAAEC,UAAU,CAAC,GAAGnB,QAAQ,CAAC,KAAK,CAAC;EAE7C,MAAMoB,oBAAoB,GAAGvB,WAAW,CACpC,CAAC;IAAEgB,KAAK;IAAEC;EAAmB,CAAC,KAAK;IAC/B,OAAO;MACH,IAAIA,GAAG,IAAI;QAAEO,SAAS,EAAEN,QAAQ,EAAEO;MAAG,CAAC,CAAC;MACvC,IAAIT,KAAK,GAAG;QAAEU,eAAe,EAAEV;MAAM,CAAC,GAAG;QAAEW,mBAAmB,EAAErB;MAAc,CAAC;IACnF,CAAC;EACL,CAAC,EACD,CAACU,KAAK,EAAEC,GAAG,EAAEC,QAAQ,CACzB,CAAC;EAED,MAAMU,OAAO,GAAG5B,WAAW,CAAES,IAAe,IAAK;IAC7CW,aAAa,CAACS,KAAK,IAAI;MACnB,MAAMC,UAAU,GAAGrB,IAAI,CAACsB,MAAM,CAAClB,GAAG,IAAI,CAACgB,KAAK,CAACG,IAAI,CAACC,CAAC,IAAIA,CAAC,CAACpB,GAAG,KAAKA,GAAG,CAACA,GAAG,CAAC,CAAC;MAE1E,OAAOL,QAAQ,CAAC,CAAC,GAAGqB,KAAK,EAAE,GAAGC,UAAU,CAAC,CAAC;IAC9C,CAAC,CAAC;EACN,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMI,KAAK,GAAGhC,OAAO,CAAC,MAAMqB,oBAAoB,CAAC;IAAEP,KAAK;IAAEC;EAAI,CAAC,CAAC,EAAE,CAACM,oBAAoB,CAAC,CAAC;EAEzFtB,SAAS,CAAC,MAAM;IACZqB,UAAU,CAAC,IAAI,CAAC;IAChBH,WAAW,CAACgB,QAAQ,CAAC;MAAED;IAAM,CAAC,CAAC,CAACE,IAAI,CAAC3B,IAAI,IAAI;MACzCa,UAAU,CAAC,KAAK,CAAC;MACjBM,OAAO,CAACS,YAAY,CAAC5B,IAAI,CAAC,CAAC;IAC/B,CAAC,CAAC;EACN,CAAC,EAAE,EAAE,CAAC;EAEN,MAAM6B,OAAO,GAAI7B,IAAc,IAAK;IAChC,IAAI,CAACA,IAAI,CAAC8B,MAAM,EAAE;MACd;IACJ;IAEA,MAAMC,OAAO,GAAGH,YAAY,CAAC5B,IAAI,CAACgC,GAAG,CAAC5B,GAAG,KAAK;MAAEA,GAAG;MAAE6B,KAAK,EAAE;IAAE,CAAC,CAAC,CAAC,CAAC;IAElEd,OAAO,CAACY,OAAO,CAAC;IAEhBrB,WAAW,CAACgB,QAAQ,CAAC;MAAED,KAAK;MAAES,OAAO,EAAE;IAAK,CAAC,CAAC;EAClD,CAAC;EAED,MAAMN,YAAY,GAAGrC,WAAW,CAC3BS,IAAe,IAAK;IACjB,OAAOA,IAAI,CACNsB,MAAM,CAAC,CAAC;MAAElB;IAAI,CAAC,KAAKA,GAAG,KAAKG,KAAK,CAAC,CAClCe,MAAM,CAAC,CAAC;MAAElB;IAAI,CAAC,KAAK,CAACA,GAAG,CAAC+B,UAAU,CAAC,OAAO,CAAC,CAAC,CAC7Cb,MAAM,CAAC,CAAC;MAAElB;IAAI,CAAC,KAAKA,GAAG,KAAKN,WAAW,CAACsC,WAAW,CAAC,CACpDJ,GAAG,CAACK,IAAI,IAAI;MACT,MAAMC,OAAO,GAAG/B,KAAK,GAAG8B,IAAI,CAACjC,GAAG,CAACmC,OAAO,CAAC,GAAGhC,KAAK,GAAG,EAAE,EAAE,CAAC,GAAG8B,IAAI,CAACjC,GAAG;MACpE,OAAO;QACH,GAAGiC,IAAI;QACPjC,GAAG,EAAEkC;MACT,CAAC;IACL,CAAC,CAAC;EACV,CAAC,EACD,CAAC/B,KAAK,CACV,CAAC;EAED,OAAO;IACHK,OAAO;IACPZ,IAAI;IACJ6B;EACJ,CAAC;AACL,CAAC","ignoreList":[]}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Select } from "@webiny/admin-ui";
|
|
3
|
-
import { useBind } from "@webiny/form";
|
|
4
|
-
export const FilterByType = () => {
|
|
5
|
-
const bind = useBind({
|
|
6
|
-
name: "type_startsWith",
|
|
7
|
-
defaultValue: "",
|
|
8
|
-
beforeChange(value, cb) {
|
|
9
|
-
cb(value === "all" ? undefined : value);
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
const options = [{
|
|
13
|
-
label: "All",
|
|
14
|
-
value: "all"
|
|
15
|
-
}, {
|
|
16
|
-
label: "Images",
|
|
17
|
-
value: "image/"
|
|
18
|
-
}, {
|
|
19
|
-
label: "Videos",
|
|
20
|
-
value: "video/"
|
|
21
|
-
}, {
|
|
22
|
-
label: "Documents",
|
|
23
|
-
value: "application/"
|
|
24
|
-
}];
|
|
25
|
-
return /*#__PURE__*/React.createElement(Select, Object.assign({}, bind, {
|
|
26
|
-
placeholder: "Filter by type",
|
|
27
|
-
options: options,
|
|
28
|
-
size: "md"
|
|
29
|
-
}));
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
//# sourceMappingURL=FilterByType.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","Select","useBind","FilterByType","bind","name","defaultValue","beforeChange","value","cb","undefined","options","label","createElement","Object","assign","placeholder","size"],"sources":["FilterByType.tsx"],"sourcesContent":["import React from \"react\";\nimport { Select } from \"@webiny/admin-ui\";\nimport { useBind } from \"@webiny/form\";\n\nexport const FilterByType = () => {\n const bind = useBind({\n name: \"type_startsWith\",\n defaultValue: \"\",\n beforeChange(value, cb) {\n cb(value === \"all\" ? undefined : value);\n }\n });\n\n const options = [\n { label: \"All\", value: \"all\" },\n { label: \"Images\", value: \"image/\" },\n { label: \"Videos\", value: \"video/\" },\n { label: \"Documents\", value: \"application/\" }\n ];\n\n return <Select {...bind} placeholder={\"Filter by type\"} options={options} size={\"md\"} />;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,kBAAkB;AACzC,SAASC,OAAO,QAAQ,cAAc;AAEtC,OAAO,MAAMC,YAAY,GAAGA,CAAA,KAAM;EAC9B,MAAMC,IAAI,GAAGF,OAAO,CAAC;IACjBG,IAAI,EAAE,iBAAiB;IACvBC,YAAY,EAAE,EAAE;IAChBC,YAAYA,CAACC,KAAK,EAAEC,EAAE,EAAE;MACpBA,EAAE,CAACD,KAAK,KAAK,KAAK,GAAGE,SAAS,GAAGF,KAAK,CAAC;IAC3C;EACJ,CAAC,CAAC;EAEF,MAAMG,OAAO,GAAG,CACZ;IAAEC,KAAK,EAAE,KAAK;IAAEJ,KAAK,EAAE;EAAM,CAAC,EAC9B;IAAEI,KAAK,EAAE,QAAQ;IAAEJ,KAAK,EAAE;EAAS,CAAC,EACpC;IAAEI,KAAK,EAAE,QAAQ;IAAEJ,KAAK,EAAE;EAAS,CAAC,EACpC;IAAEI,KAAK,EAAE,WAAW;IAAEJ,KAAK,EAAE;EAAe,CAAC,CAChD;EAED,oBAAOR,KAAA,CAAAa,aAAA,CAACZ,MAAM,EAAAa,MAAA,CAAAC,MAAA,KAAKX,IAAI;IAAEY,WAAW,EAAE,gBAAiB;IAACL,OAAO,EAAEA,OAAQ;IAACM,IAAI,EAAE;EAAK,EAAE,CAAC;AAC5F,CAAC","ignoreList":[]}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Wcp } from "@webiny/app-admin";
|
|
3
|
-
import { DeleteFolder, EditFolder, SetFolderPermissions } from "@webiny/app-aco";
|
|
4
|
-
import { FileManagerViewConfig as FileManagerConfig } from "../../index.js";
|
|
5
|
-
import { FileManagerRenderer } from "./FileManagerView/index.js";
|
|
6
|
-
import { FilterByType } from "./filters/FilterByType.js";
|
|
7
|
-
import { ActionDelete, ActionEdit, ActionMove } from "../../components/BulkActions/index.js";
|
|
8
|
-
import { Name, Description, Tags, AccessControl } from "../../components/fields/index.js";
|
|
9
|
-
import { CellActions, CellAuthor, CellCreated, CellModified, CellName, CellSize, CellType, CopyFile, DeleteFile, EditFile, MoveFile } from "../../components/Table/index.js";
|
|
10
|
-
import { GridItemDefaultRenderer } from "../ThumbnailRenderers/GridItemDefaultRenderer.js";
|
|
11
|
-
import { GridItemImageRenderer } from "../ThumbnailRenderers/GridItemImageRenderer.js";
|
|
12
|
-
import { FileActions } from "./FileActions/index.js";
|
|
13
|
-
import { FilePreviewImageRenderer } from "../ThumbnailRenderers/FilePreviewImageRenderer.js";
|
|
14
|
-
import { TableItemDefaultRenderer } from "../ThumbnailRenderers/TableItemDefaultRenderer.js";
|
|
15
|
-
import { TableItemImageRenderer } from "../ThumbnailRenderers/TableItemImageRenderer.js";
|
|
16
|
-
import { FilePreviewDefaultRenderer } from "../ThumbnailRenderers/FilePreviewDefaultRenderer.js";
|
|
17
|
-
const {
|
|
18
|
-
Browser,
|
|
19
|
-
FileDetails
|
|
20
|
-
} = FileManagerConfig;
|
|
21
|
-
export const FileManagerRendererModule = () => {
|
|
22
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FileManagerRenderer, null), /*#__PURE__*/React.createElement(FileManagerConfig, null, /*#__PURE__*/React.createElement(Browser.FilterByTags, null), /*#__PURE__*/React.createElement(Browser.Filter, {
|
|
23
|
-
name: "type",
|
|
24
|
-
element: /*#__PURE__*/React.createElement(FilterByType, null)
|
|
25
|
-
}), /*#__PURE__*/React.createElement(Browser.BulkAction, {
|
|
26
|
-
name: "edit",
|
|
27
|
-
element: /*#__PURE__*/React.createElement(ActionEdit, null)
|
|
28
|
-
}), /*#__PURE__*/React.createElement(Browser.BulkAction, {
|
|
29
|
-
name: "move",
|
|
30
|
-
element: /*#__PURE__*/React.createElement(ActionMove, null)
|
|
31
|
-
}), /*#__PURE__*/React.createElement(Browser.BulkAction, {
|
|
32
|
-
name: "delete",
|
|
33
|
-
element: /*#__PURE__*/React.createElement(ActionDelete, null)
|
|
34
|
-
}), /*#__PURE__*/React.createElement(Browser.Folder.Action, {
|
|
35
|
-
name: "edit",
|
|
36
|
-
element: /*#__PURE__*/React.createElement(EditFolder, null)
|
|
37
|
-
}), /*#__PURE__*/React.createElement(Browser.Folder.Action, {
|
|
38
|
-
name: "permissions",
|
|
39
|
-
element: /*#__PURE__*/React.createElement(SetFolderPermissions, null)
|
|
40
|
-
}), /*#__PURE__*/React.createElement(Browser.Folder.Action, {
|
|
41
|
-
name: "delete",
|
|
42
|
-
element: /*#__PURE__*/React.createElement(DeleteFolder, null)
|
|
43
|
-
}), /*#__PURE__*/React.createElement(Browser.File.Action, {
|
|
44
|
-
name: "copy",
|
|
45
|
-
element: /*#__PURE__*/React.createElement(CopyFile, null)
|
|
46
|
-
}), /*#__PURE__*/React.createElement(Browser.File.Action, {
|
|
47
|
-
name: "edit",
|
|
48
|
-
element: /*#__PURE__*/React.createElement(EditFile, null)
|
|
49
|
-
}), /*#__PURE__*/React.createElement(Browser.File.Action, {
|
|
50
|
-
name: "move",
|
|
51
|
-
element: /*#__PURE__*/React.createElement(MoveFile, null)
|
|
52
|
-
}), /*#__PURE__*/React.createElement(Browser.File.Action, {
|
|
53
|
-
name: "delete",
|
|
54
|
-
element: /*#__PURE__*/React.createElement(DeleteFile, null)
|
|
55
|
-
}), /*#__PURE__*/React.createElement(Browser.Table.Column, {
|
|
56
|
-
name: "name",
|
|
57
|
-
header: "Name",
|
|
58
|
-
cell: /*#__PURE__*/React.createElement(CellName, null),
|
|
59
|
-
sortable: true,
|
|
60
|
-
hideable: false,
|
|
61
|
-
size: 200
|
|
62
|
-
}), /*#__PURE__*/React.createElement(Browser.Table.Column, {
|
|
63
|
-
name: "type",
|
|
64
|
-
header: "Type",
|
|
65
|
-
cell: /*#__PURE__*/React.createElement(CellType, null)
|
|
66
|
-
}), /*#__PURE__*/React.createElement(Browser.Table.Column, {
|
|
67
|
-
name: "size",
|
|
68
|
-
header: "Size",
|
|
69
|
-
cell: /*#__PURE__*/React.createElement(CellSize, null),
|
|
70
|
-
sortable: true
|
|
71
|
-
}), /*#__PURE__*/React.createElement(Browser.Table.Column, {
|
|
72
|
-
name: "createdBy",
|
|
73
|
-
header: "Author",
|
|
74
|
-
cell: /*#__PURE__*/React.createElement(CellAuthor, null)
|
|
75
|
-
}), /*#__PURE__*/React.createElement(Browser.Table.Column, {
|
|
76
|
-
name: "createdOn",
|
|
77
|
-
header: "Created",
|
|
78
|
-
cell: /*#__PURE__*/React.createElement(CellCreated, null),
|
|
79
|
-
sortable: true
|
|
80
|
-
}), /*#__PURE__*/React.createElement(Browser.Table.Column, {
|
|
81
|
-
name: "savedOn",
|
|
82
|
-
header: "Modified",
|
|
83
|
-
cell: /*#__PURE__*/React.createElement(CellModified, null),
|
|
84
|
-
sortable: true
|
|
85
|
-
}), /*#__PURE__*/React.createElement(Browser.Table.Column, {
|
|
86
|
-
name: "actions",
|
|
87
|
-
header: " ",
|
|
88
|
-
cell: /*#__PURE__*/React.createElement(CellActions, null),
|
|
89
|
-
size: 56,
|
|
90
|
-
truncate: false,
|
|
91
|
-
className: "flex justify-center",
|
|
92
|
-
hideable: false,
|
|
93
|
-
resizable: false
|
|
94
|
-
}), /*#__PURE__*/React.createElement(FileDetails.Field, {
|
|
95
|
-
name: "name",
|
|
96
|
-
element: /*#__PURE__*/React.createElement(Name, null)
|
|
97
|
-
}), /*#__PURE__*/React.createElement(FileDetails.Field, {
|
|
98
|
-
name: "tags",
|
|
99
|
-
element: /*#__PURE__*/React.createElement(Tags, null)
|
|
100
|
-
}), /*#__PURE__*/React.createElement(FileDetails.Field, {
|
|
101
|
-
name: "description",
|
|
102
|
-
element: /*#__PURE__*/React.createElement(Description, null)
|
|
103
|
-
}), /*#__PURE__*/React.createElement(Browser.BulkEditField, {
|
|
104
|
-
name: "tags",
|
|
105
|
-
element: /*#__PURE__*/React.createElement(Tags, null)
|
|
106
|
-
}), /*#__PURE__*/React.createElement(FileDetails.GroupFields, {
|
|
107
|
-
value: false
|
|
108
|
-
}), /*#__PURE__*/React.createElement(FileActions, null), /*#__PURE__*/React.createElement(Wcp.CanUsePrivateFiles, null, /*#__PURE__*/React.createElement(FileDetails.Field, {
|
|
109
|
-
name: "accessControl",
|
|
110
|
-
element: /*#__PURE__*/React.createElement(AccessControl, {
|
|
111
|
-
defaultValue: "public"
|
|
112
|
-
}),
|
|
113
|
-
after: "tags"
|
|
114
|
-
}), /*#__PURE__*/React.createElement(Browser.BulkEditField, {
|
|
115
|
-
name: "accessControl",
|
|
116
|
-
element: /*#__PURE__*/React.createElement(AccessControl, {
|
|
117
|
-
placeholder: "Select privacy settings"
|
|
118
|
-
})
|
|
119
|
-
})), /*#__PURE__*/React.createElement(Browser.Grid.Item.Thumbnail, {
|
|
120
|
-
type: "*/*",
|
|
121
|
-
element: /*#__PURE__*/React.createElement(GridItemDefaultRenderer, null)
|
|
122
|
-
}), /*#__PURE__*/React.createElement(Browser.Grid.Item.Thumbnail, {
|
|
123
|
-
type: "image/*",
|
|
124
|
-
element: /*#__PURE__*/React.createElement(GridItemImageRenderer, null)
|
|
125
|
-
}), /*#__PURE__*/React.createElement(Browser.Table.Cell.Thumbnail, {
|
|
126
|
-
type: "image/*",
|
|
127
|
-
element: /*#__PURE__*/React.createElement(TableItemImageRenderer, null)
|
|
128
|
-
}), /*#__PURE__*/React.createElement(Browser.Table.Cell.Thumbnail, {
|
|
129
|
-
type: "*/*",
|
|
130
|
-
element: /*#__PURE__*/React.createElement(TableItemDefaultRenderer, null)
|
|
131
|
-
}), /*#__PURE__*/React.createElement(FileDetails.Preview.Thumbnail, {
|
|
132
|
-
type: "*/*",
|
|
133
|
-
element: /*#__PURE__*/React.createElement(FilePreviewDefaultRenderer, null)
|
|
134
|
-
}), /*#__PURE__*/React.createElement(FileDetails.Preview.Thumbnail, {
|
|
135
|
-
type: "image/*",
|
|
136
|
-
element: /*#__PURE__*/React.createElement(FilePreviewImageRenderer, null)
|
|
137
|
-
})));
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
//# sourceMappingURL=index.js.map
|