@webiny/app-file-manager 0.0.0-mt-2 → 0.0.0-unstable.06b2ede40f
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/BatchFileUploader.d.ts +34 -0
- package/BatchFileUploader.js +87 -0
- package/BatchFileUploader.js.map +1 -0
- package/app.d.ts +2 -0
- package/app.js +11 -0
- package/app.js.map +1 -0
- package/components/BottomInfoBar/BottomInfoBar.d.ts +6 -0
- package/components/BottomInfoBar/BottomInfoBar.js +23 -0
- package/components/BottomInfoBar/BottomInfoBar.js.map +1 -0
- package/components/BottomInfoBar/ListStatus.d.ts +6 -0
- package/components/BottomInfoBar/ListStatus.js +23 -0
- package/components/BottomInfoBar/ListStatus.js.map +1 -0
- package/components/BottomInfoBar/SupportedFileTypes.d.ts +9 -0
- package/components/BottomInfoBar/SupportedFileTypes.js +60 -0
- package/components/BottomInfoBar/SupportedFileTypes.js.map +1 -0
- package/components/BottomInfoBar/index.d.ts +1 -0
- package/components/BottomInfoBar/index.js +3 -0
- package/components/BottomInfoBar/index.js.map +1 -0
- package/components/BulkActions/ActionDelete.d.ts +4 -0
- package/components/BulkActions/ActionDelete.js +80 -0
- package/components/BulkActions/ActionDelete.js.map +1 -0
- package/components/BulkActions/ActionEdit/ActionEdit.d.ts +4 -0
- package/components/BulkActions/ActionEdit/ActionEdit.js +62 -0
- package/components/BulkActions/ActionEdit/ActionEdit.js.map +1 -0
- package/components/BulkActions/ActionEdit/ActionEdit.types.d.ts +2 -0
- package/components/BulkActions/ActionEdit/ActionEdit.types.js +3 -0
- package/components/BulkActions/ActionEdit/ActionEdit.types.js.map +1 -0
- package/components/BulkActions/ActionEdit/ActionEditPresenter.d.ts +35 -0
- package/components/BulkActions/ActionEdit/ActionEditPresenter.js +55 -0
- package/components/BulkActions/ActionEdit/ActionEditPresenter.js.map +1 -0
- package/components/BulkActions/ActionEdit/ActionEditPresenter.test.d.ts +1 -0
- package/components/BulkActions/ActionEdit/ActionEditPresenter.test.js +158 -0
- package/components/BulkActions/ActionEdit/ActionEditPresenter.test.js.map +1 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/AddOperation.d.ts +7 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/AddOperation.js +19 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/AddOperation.js.map +1 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.d.ts +15 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.js +45 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.js.map +1 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.d.ts +15 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.js +52 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.js.map +1 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.d.ts +61 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.js +140 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.js.map +1 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.test.d.ts +1 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.test.js +336 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.test.js.map +1 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.d.ts +8 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.js +33 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.js.map +1 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.d.ts +11 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.js +41 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.js.map +1 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/index.d.ts +1 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/index.js +3 -0
- package/components/BulkActions/ActionEdit/BatchEditorDialog/index.js.map +1 -0
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.d.ts +41 -0
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.js +44 -0
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.js.map +1 -0
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.test.d.ts +1 -0
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.test.js +270 -0
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.test.js.map +1 -0
- package/components/BulkActions/ActionEdit/domain/Batch.d.ts +53 -0
- package/components/BulkActions/ActionEdit/domain/Batch.js +29 -0
- package/components/BulkActions/ActionEdit/domain/Batch.js.map +1 -0
- package/components/BulkActions/ActionEdit/domain/BatchMapper.d.ts +4 -0
- package/components/BulkActions/ActionEdit/domain/BatchMapper.js +13 -0
- package/components/BulkActions/ActionEdit/domain/BatchMapper.js.map +1 -0
- package/components/BulkActions/ActionEdit/domain/Field.d.ts +32 -0
- package/components/BulkActions/ActionEdit/domain/Field.js +47 -0
- package/components/BulkActions/ActionEdit/domain/Field.js.map +1 -0
- package/components/BulkActions/ActionEdit/domain/FieldMapper.d.ts +7 -0
- package/components/BulkActions/ActionEdit/domain/FieldMapper.js +22 -0
- package/components/BulkActions/ActionEdit/domain/FieldMapper.js.map +1 -0
- package/components/BulkActions/ActionEdit/domain/index.d.ts +4 -0
- package/components/BulkActions/ActionEdit/domain/index.js +6 -0
- package/components/BulkActions/ActionEdit/domain/index.js.map +1 -0
- package/components/BulkActions/ActionEdit/index.d.ts +1 -0
- package/components/BulkActions/ActionEdit/index.js +3 -0
- package/components/BulkActions/ActionEdit/index.js.map +1 -0
- package/components/BulkActions/ActionEdit/useActionEditWorker.d.ts +7 -0
- package/components/BulkActions/ActionEdit/useActionEditWorker.js +73 -0
- package/components/BulkActions/ActionEdit/useActionEditWorker.js.map +1 -0
- package/components/BulkActions/ActionMove.d.ts +4 -0
- package/components/BulkActions/ActionMove.js +91 -0
- package/components/BulkActions/ActionMove.js.map +1 -0
- package/components/BulkActions/BulkActions.d.ts +3 -0
- package/components/BulkActions/BulkActions.js +46 -0
- package/components/BulkActions/BulkActions.js.map +1 -0
- package/components/BulkActions/index.d.ts +4 -0
- package/components/BulkActions/index.js +6 -0
- package/components/BulkActions/index.js.map +1 -0
- package/components/EditFileUsingUrl/EditFileUsingUrl.d.ts +14 -0
- package/components/EditFileUsingUrl/EditFileUsingUrl.js +53 -0
- package/components/EditFileUsingUrl/EditFileUsingUrl.js.map +1 -0
- package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.d.ts +18 -0
- package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.js +43 -0
- package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.js.map +1 -0
- package/components/EditFileUsingUrl/EditFileUsingUrlRepository.d.ts +17 -0
- package/components/EditFileUsingUrl/EditFileUsingUrlRepository.js +39 -0
- package/components/EditFileUsingUrl/EditFileUsingUrlRepository.js.map +1 -0
- package/components/EditFileUsingUrl/GetFileByUrl.d.ts +10 -0
- package/components/EditFileUsingUrl/GetFileByUrl.js +27 -0
- package/components/EditFileUsingUrl/GetFileByUrl.js.map +1 -0
- package/components/EditFileUsingUrl/Loading.d.ts +18 -0
- package/components/EditFileUsingUrl/Loading.js +42 -0
- package/components/EditFileUsingUrl/Loading.js.map +1 -0
- package/components/EditFileUsingUrl/UpdateFile.d.ts +10 -0
- package/components/EditFileUsingUrl/UpdateFile.js +10 -0
- package/components/EditFileUsingUrl/UpdateFile.js.map +1 -0
- package/components/EditFileUsingUrl/getFileByUrl.graphql.d.ts +2 -0
- package/components/EditFileUsingUrl/getFileByUrl.graphql.js +19 -0
- package/components/EditFileUsingUrl/getFileByUrl.graphql.js.map +1 -0
- package/components/EditFileUsingUrl/index.d.ts +1 -0
- package/components/EditFileUsingUrl/index.js +3 -0
- package/components/EditFileUsingUrl/index.js.map +1 -0
- package/components/Empty/Empty.d.ts +8 -0
- package/components/Empty/Empty.js +27 -0
- package/components/Empty/Empty.js.map +1 -0
- package/components/Empty/index.d.ts +1 -0
- package/components/Empty/index.js +3 -0
- package/components/Empty/index.js.map +1 -0
- package/components/FileDetails/FileDetails.d.ts +11 -0
- package/components/FileDetails/FileDetails.js +155 -0
- package/components/FileDetails/FileDetails.js.map +1 -0
- package/components/FileDetails/FileDetailsProvider.d.ts +16 -0
- package/components/FileDetails/FileDetailsProvider.js +21 -0
- package/components/FileDetails/FileDetailsProvider.js.map +1 -0
- package/components/FileDetails/components/ActionButton.d.ts +10 -0
- package/components/FileDetails/components/ActionButton.js +23 -0
- package/components/FileDetails/components/ActionButton.js.map +1 -0
- package/components/FileDetails/components/Actions.d.ts +2 -0
- package/components/FileDetails/components/Actions.js +14 -0
- package/components/FileDetails/components/Actions.js.map +1 -0
- package/components/FileDetails/components/BaseFields.d.ts +7 -0
- package/components/FileDetails/components/BaseFields.js +29 -0
- package/components/FileDetails/components/BaseFields.js.map +1 -0
- package/components/FileDetails/components/Content.d.ts +14 -0
- package/components/FileDetails/components/Content.js +35 -0
- package/components/FileDetails/components/Content.js.map +1 -0
- package/components/FileDetails/components/CreatedOn.d.ts +2 -0
- package/components/FileDetails/components/CreatedOn.js +22 -0
- package/components/FileDetails/components/CreatedOn.js.map +1 -0
- package/components/FileDetails/components/Description.d.ts +2 -0
- package/components/FileDetails/components/Description.js +23 -0
- package/components/FileDetails/components/Description.js.map +1 -0
- package/components/FileDetails/components/Extensions.d.ts +7 -0
- package/components/FileDetails/components/Extensions.js +36 -0
- package/components/FileDetails/components/Extensions.js.map +1 -0
- package/components/FileDetails/components/Preview.d.ts +2 -0
- package/components/FileDetails/components/Preview.js +12 -0
- package/components/FileDetails/components/Preview.js.map +1 -0
- package/components/FileDetails/components/Thumbnail.d.ts +2 -0
- package/components/FileDetails/components/Thumbnail.js +16 -0
- package/components/FileDetails/components/Thumbnail.js.map +1 -0
- package/components/FileDetails/index.d.ts +1 -0
- package/components/FileDetails/index.js +3 -0
- package/components/FileDetails/index.js.map +1 -0
- package/components/FileDropArea/FileDropArea.d.ts +9 -0
- package/components/FileDropArea/FileDropArea.js +69 -0
- package/components/FileDropArea/FileDropArea.js.map +1 -0
- package/components/FileDropArea/index.d.ts +1 -0
- package/components/FileDropArea/index.js +3 -0
- package/components/FileDropArea/index.js.map +1 -0
- package/components/FileDropPlaceholder/FileDropPlaceholder.d.ts +2 -0
- package/components/FileDropPlaceholder/FileDropPlaceholder.js +12 -0
- package/components/FileDropPlaceholder/FileDropPlaceholder.js.map +1 -0
- package/components/FileDropPlaceholder/index.d.ts +1 -0
- package/components/FileDropPlaceholder/index.js +3 -0
- package/components/FileDropPlaceholder/index.js.map +1 -0
- package/components/Filters/Filters.d.ts +2 -0
- package/components/Filters/Filters.js +26 -0
- package/components/Filters/Filters.js.map +1 -0
- package/components/Filters/index.d.ts +1 -0
- package/components/Filters/index.js +3 -0
- package/components/Filters/index.js.map +1 -0
- package/components/Grid/ActionButton.d.ts +9 -0
- package/components/Grid/ActionButton.js +28 -0
- package/components/Grid/ActionButton.js.map +1 -0
- package/components/Grid/File.d.ts +32 -0
- package/components/Grid/File.js +89 -0
- package/components/Grid/File.js.map +1 -0
- package/components/Grid/Grid.d.ts +19 -0
- package/components/Grid/Grid.js +69 -0
- package/components/Grid/Grid.js.map +1 -0
- package/components/Grid/Thumbnail.d.ts +2 -0
- package/components/Grid/Thumbnail.js +16 -0
- package/components/Grid/Thumbnail.js.map +1 -0
- package/components/Grid/index.d.ts +1 -0
- package/components/Grid/index.js +3 -0
- package/components/Grid/index.js.map +1 -0
- package/components/Header/Actions.d.ts +5 -0
- package/components/Header/Actions.js +99 -0
- package/components/Header/Actions.js.map +1 -0
- package/components/Header/Header.d.ts +9 -0
- package/components/Header/Header.js +17 -0
- package/components/Header/Header.js.map +1 -0
- package/components/Header/Title.d.ts +2 -0
- package/components/Header/Title.js +62 -0
- package/components/Header/Title.js.map +1 -0
- package/components/Header/index.d.ts +1 -0
- package/components/Header/index.js +3 -0
- package/components/Header/index.js.map +1 -0
- package/components/ImageEditor/ImageEditor.d.ts +45 -0
- package/components/ImageEditor/ImageEditor.js +218 -0
- package/components/ImageEditor/ImageEditor.js.map +1 -0
- package/components/ImageEditor/ImageEditorDialog.d.ts +16 -0
- package/components/ImageEditor/ImageEditorDialog.js +53 -0
- package/components/ImageEditor/ImageEditorDialog.js.map +1 -0
- package/components/ImageEditor/index.d.ts +1 -0
- package/components/ImageEditor/index.js +3 -0
- package/components/ImageEditor/index.js.map +1 -0
- package/components/ImageEditor/toolbar/crop.d.ts +4 -0
- package/components/ImageEditor/toolbar/crop.js +67 -0
- package/components/ImageEditor/toolbar/crop.js.map +1 -0
- package/components/ImageEditor/toolbar/filter.d.ts +3 -0
- package/components/ImageEditor/toolbar/filter.js +167 -0
- package/components/ImageEditor/toolbar/filter.js.map +1 -0
- package/components/ImageEditor/toolbar/flip.d.ts +4 -0
- package/components/ImageEditor/toolbar/flip.js +94 -0
- package/components/ImageEditor/toolbar/flip.js.map +1 -0
- package/components/ImageEditor/toolbar/index.d.ts +4 -0
- package/components/ImageEditor/toolbar/index.js +6 -0
- package/components/ImageEditor/toolbar/index.js.map +1 -0
- package/components/ImageEditor/toolbar/rotate.d.ts +4 -0
- package/components/ImageEditor/toolbar/rotate.js +93 -0
- package/components/ImageEditor/toolbar/rotate.js.map +1 -0
- package/components/ImageEditor/toolbar/types.d.ts +32 -0
- package/components/ImageEditor/toolbar/types.js +3 -0
- package/components/ImageEditor/toolbar/types.js.map +1 -0
- package/components/LayoutSwitch/LayoutSwitch.d.ts +2 -0
- package/components/LayoutSwitch/LayoutSwitch.js +22 -0
- package/components/LayoutSwitch/LayoutSwitch.js.map +1 -0
- package/components/LayoutSwitch/index.d.ts +1 -0
- package/components/LayoutSwitch/index.js +3 -0
- package/components/LayoutSwitch/index.js.map +1 -0
- package/components/NoPermissions/NoPermissions.d.ts +2 -0
- package/components/NoPermissions/NoPermissions.js +28 -0
- package/components/NoPermissions/NoPermissions.js.map +1 -0
- package/components/NoPermissions/index.d.ts +1 -0
- package/components/NoPermissions/index.js +3 -0
- package/components/NoPermissions/index.js.map +1 -0
- package/components/NoResults/NoResults.d.ts +2 -0
- package/components/NoResults/NoResults.js +22 -0
- package/components/NoResults/NoResults.js.map +1 -0
- package/components/NoResults/index.d.ts +1 -0
- package/components/NoResults/index.js +3 -0
- package/components/NoResults/index.js.map +1 -0
- package/components/SearchWidget/SearchWidget.d.ts +2 -0
- package/components/SearchWidget/SearchWidget.js +31 -0
- package/components/SearchWidget/SearchWidget.js.map +1 -0
- package/components/SearchWidget/index.d.ts +1 -0
- package/components/SearchWidget/index.js +3 -0
- package/components/SearchWidget/index.js.map +1 -0
- package/components/Table/Actions/CopyFile.d.ts +2 -0
- package/components/Table/Actions/CopyFile.js +26 -0
- package/components/Table/Actions/CopyFile.js.map +1 -0
- package/components/Table/Actions/DeleteFile.d.ts +2 -0
- package/components/Table/Actions/DeleteFile.js +33 -0
- package/components/Table/Actions/DeleteFile.js.map +1 -0
- package/components/Table/Actions/EditFile.d.ts +2 -0
- package/components/Table/Actions/EditFile.js +24 -0
- package/components/Table/Actions/EditFile.js.map +1 -0
- package/components/Table/Actions/MoveFile.d.ts +2 -0
- package/components/Table/Actions/MoveFile.js +22 -0
- package/components/Table/Actions/MoveFile.js.map +1 -0
- package/components/Table/Actions/index.d.ts +4 -0
- package/components/Table/Actions/index.js +6 -0
- package/components/Table/Actions/index.js.map +1 -0
- package/components/Table/Cells/CellActions.d.ts +2 -0
- package/components/Table/Cells/CellActions.js +38 -0
- package/components/Table/Cells/CellActions.js.map +1 -0
- package/components/Table/Cells/CellAuthor.d.ts +2 -0
- package/components/Table/Cells/CellAuthor.js +13 -0
- package/components/Table/Cells/CellAuthor.js.map +1 -0
- package/components/Table/Cells/CellCreated.d.ts +2 -0
- package/components/Table/Cells/CellCreated.js +16 -0
- package/components/Table/Cells/CellCreated.js.map +1 -0
- package/components/Table/Cells/CellModified.d.ts +2 -0
- package/components/Table/Cells/CellModified.js +16 -0
- package/components/Table/Cells/CellModified.js.map +1 -0
- package/components/Table/Cells/CellName.d.ts +16 -0
- package/components/Table/Cells/CellName.js +70 -0
- package/components/Table/Cells/CellName.js.map +1 -0
- package/components/Table/Cells/CellSize.d.ts +2 -0
- package/components/Table/Cells/CellSize.js +20 -0
- package/components/Table/Cells/CellSize.js.map +1 -0
- package/components/Table/Cells/CellThumbnail.d.ts +2 -0
- package/components/Table/Cells/CellThumbnail.js +16 -0
- package/components/Table/Cells/CellThumbnail.js.map +1 -0
- package/components/Table/Cells/CellType.d.ts +2 -0
- package/components/Table/Cells/CellType.js +17 -0
- package/components/Table/Cells/CellType.js.map +1 -0
- package/components/Table/Cells/index.d.ts +7 -0
- package/components/Table/Cells/index.js +9 -0
- package/components/Table/Cells/index.js.map +1 -0
- package/components/Table/Table.d.ts +10 -0
- package/components/Table/Table.js +30 -0
- package/components/Table/Table.js.map +1 -0
- package/components/Table/index.d.ts +3 -0
- package/components/Table/index.js +5 -0
- package/components/Table/index.js.map +1 -0
- package/components/TagsList/Empty.d.ts +6 -0
- package/components/TagsList/Empty.js +11 -0
- package/components/TagsList/Empty.js.map +1 -0
- package/components/TagsList/FilterSelect.d.ts +2 -0
- package/components/TagsList/FilterSelect.js +28 -0
- package/components/TagsList/FilterSelect.js.map +1 -0
- package/components/TagsList/FilterStatus.d.ts +7 -0
- package/components/TagsList/FilterStatus.js +27 -0
- package/components/TagsList/FilterStatus.js.map +1 -0
- package/components/TagsList/Tag.d.ts +9 -0
- package/components/TagsList/Tag.js +16 -0
- package/components/TagsList/Tag.js.map +1 -0
- package/components/TagsList/Tags.d.ts +8 -0
- package/components/TagsList/Tags.js +32 -0
- package/components/TagsList/Tags.js.map +1 -0
- package/components/TagsList/TagsList.d.ts +11 -0
- package/components/TagsList/TagsList.js +31 -0
- package/components/TagsList/TagsList.js.map +1 -0
- package/components/TagsList/index.d.ts +1 -0
- package/components/TagsList/index.js +3 -0
- package/components/TagsList/index.js.map +1 -0
- package/components/Thumbnail/Thumbnail.d.ts +2 -0
- package/components/Thumbnail/Thumbnail.js +16 -0
- package/components/Thumbnail/Thumbnail.js.map +1 -0
- package/components/Thumbnail/index.d.ts +1 -0
- package/components/Thumbnail/index.js +3 -0
- package/components/Thumbnail/index.js.map +1 -0
- package/components/UploadStatus/UploadStatus.d.ts +8 -0
- package/components/UploadStatus/UploadStatus.js +38 -0
- package/components/UploadStatus/UploadStatus.js.map +1 -0
- package/components/UploadStatus/index.d.ts +1 -0
- package/components/UploadStatus/index.js +3 -0
- package/components/UploadStatus/index.js.map +1 -0
- package/components/fields/AccessControl.d.ts +7 -0
- package/components/fields/AccessControl.js +49 -0
- package/components/fields/AccessControl.js.map +1 -0
- package/components/fields/Aliases.d.ts +2 -0
- package/components/fields/Aliases.js +85 -0
- package/components/fields/Aliases.js.map +1 -0
- package/components/fields/Name.d.ts +2 -0
- package/components/fields/Name.js +29 -0
- package/components/fields/Name.js.map +1 -0
- package/components/fields/Tags.d.ts +2 -0
- package/components/fields/Tags.js +39 -0
- package/components/fields/Tags.js.map +1 -0
- package/components/fields/index.d.ts +4 -0
- package/components/fields/index.js +6 -0
- package/components/fields/index.js.map +1 -0
- package/components/fields/useAccessControlField.d.ts +7 -0
- package/components/fields/useAccessControlField.js +26 -0
- package/components/fields/useAccessControlField.js.map +1 -0
- package/components/fields/useFileOrUndefined.d.ts +3 -0
- package/components/fields/useFileOrUndefined.js +12 -0
- package/components/fields/useFileOrUndefined.js.map +1 -0
- package/constants.d.ts +4 -0
- package/constants.js +6 -0
- package/constants.js.map +1 -0
- package/contexts/FileProvider.d.ts +13 -0
- package/contexts/FileProvider.js +22 -0
- package/contexts/FileProvider.js.map +1 -0
- package/hooks/useCopyFile.d.ts +11 -0
- package/hooks/useCopyFile.js +25 -0
- package/hooks/useCopyFile.js.map +1 -0
- package/hooks/useDeleteFile.d.ts +9 -0
- package/hooks/useDeleteFile.js +44 -0
- package/hooks/useDeleteFile.js.map +1 -0
- package/hooks/useFile.d.ts +2 -0
- package/hooks/useFile.js +11 -0
- package/hooks/useFile.js.map +1 -0
- package/hooks/useFileDetails.d.ts +2 -0
- package/hooks/useFileDetails.js +11 -0
- package/hooks/useFileDetails.js.map +1 -0
- package/hooks/useFileModel.d.ts +1 -0
- package/hooks/useFileModel.js +11 -0
- package/hooks/useFileModel.js.map +1 -0
- package/hooks/useMoveFileToFolder.d.ts +2 -0
- package/hooks/useMoveFileToFolder.js +32 -0
- package/hooks/useMoveFileToFolder.js.map +1 -0
- package/index.d.ts +8 -0
- package/index.js +10 -0
- package/index.js.map +1 -0
- package/modules/Enterprise/HandleWebsocketMessages.d.ts +1 -0
- package/modules/Enterprise/HandleWebsocketMessages.js +57 -0
- package/modules/Enterprise/HandleWebsocketMessages.js.map +1 -0
- package/modules/Enterprise/components/ThreatScanInProgressFileBody.d.ts +2 -0
- package/modules/Enterprise/components/ThreatScanInProgressFileBody.js +23 -0
- package/modules/Enterprise/components/ThreatScanInProgressFileBody.js.map +1 -0
- package/modules/Enterprise/components/ThreatScanInProgressTableCell.d.ts +6 -0
- package/modules/Enterprise/components/ThreatScanInProgressTableCell.js +32 -0
- package/modules/Enterprise/components/ThreatScanInProgressTableCell.js.map +1 -0
- package/modules/Enterprise/constants.d.ts +3 -0
- package/modules/Enterprise/constants.js +5 -0
- package/modules/Enterprise/constants.js.map +1 -0
- package/modules/Enterprise/index.d.ts +2 -0
- package/modules/Enterprise/index.js +40 -0
- package/modules/Enterprise/index.js.map +1 -0
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.d.ts +44 -0
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.js +210 -0
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.js.map +1 -0
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.d.ts +6 -0
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.js +25 -0
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.js.map +1 -0
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.d.ts +2 -0
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.js +30 -0
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.js.map +1 -0
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.d.ts +2 -0
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.js +10 -0
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.js.map +1 -0
- package/modules/FileManagerApiProvider/FileManagerApiContext/index.d.ts +3 -0
- package/modules/FileManagerApiProvider/FileManagerApiContext/index.js +5 -0
- package/modules/FileManagerApiProvider/FileManagerApiContext/index.js.map +1 -0
- package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.d.ts +3 -0
- package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.js +11 -0
- package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.js.map +1 -0
- package/modules/FileManagerApiProvider/graphql.d.ts +125 -0
- package/modules/FileManagerApiProvider/graphql.js +118 -0
- package/modules/FileManagerApiProvider/graphql.js.map +1 -0
- package/modules/FileManagerApiProvider/index.d.ts +2 -0
- package/modules/FileManagerApiProvider/index.js +18 -0
- package/modules/FileManagerApiProvider/index.js.map +1 -0
- package/modules/FileManagerRenderer/FileActions/FileDetails/CopyUrl.d.ts +2 -0
- package/modules/FileManagerRenderer/FileActions/FileDetails/CopyUrl.js +24 -0
- package/modules/FileManagerRenderer/FileActions/FileDetails/CopyUrl.js.map +1 -0
- package/modules/FileManagerRenderer/FileActions/FileDetails/DeleteImage.d.ts +2 -0
- package/modules/FileManagerRenderer/FileActions/FileDetails/DeleteImage.js +35 -0
- package/modules/FileManagerRenderer/FileActions/FileDetails/DeleteImage.js.map +1 -0
- package/modules/FileManagerRenderer/FileActions/FileDetails/Download.d.ts +2 -0
- package/modules/FileManagerRenderer/FileActions/FileDetails/Download.js +24 -0
- package/modules/FileManagerRenderer/FileActions/FileDetails/Download.js.map +1 -0
- package/modules/FileManagerRenderer/FileActions/FileDetails/EditImage.d.ts +2 -0
- package/modules/FileManagerRenderer/FileActions/FileDetails/EditImage.js +111 -0
- package/modules/FileManagerRenderer/FileActions/FileDetails/EditImage.js.map +1 -0
- package/modules/FileManagerRenderer/FileActions/FileDetails/MoveToFolder.d.ts +2 -0
- package/modules/FileManagerRenderer/FileActions/FileDetails/MoveToFolder.js +19 -0
- package/modules/FileManagerRenderer/FileActions/FileDetails/MoveToFolder.js.map +1 -0
- package/modules/FileManagerRenderer/FileActions/Grid/Delete.d.ts +2 -0
- package/modules/FileManagerRenderer/FileActions/Grid/Delete.js +29 -0
- package/modules/FileManagerRenderer/FileActions/Grid/Delete.js.map +1 -0
- package/modules/FileManagerRenderer/FileActions/Grid/Download.d.ts +2 -0
- package/modules/FileManagerRenderer/FileActions/Grid/Download.js +24 -0
- package/modules/FileManagerRenderer/FileActions/Grid/Download.js.map +1 -0
- package/modules/FileManagerRenderer/FileActions/Grid/MoveToFolder.d.ts +2 -0
- package/modules/FileManagerRenderer/FileActions/Grid/MoveToFolder.js +19 -0
- package/modules/FileManagerRenderer/FileActions/Grid/MoveToFolder.js.map +1 -0
- package/modules/FileManagerRenderer/FileActions/Grid/Settings.d.ts +2 -0
- package/modules/FileManagerRenderer/FileActions/Grid/Settings.js +23 -0
- package/modules/FileManagerRenderer/FileActions/Grid/Settings.js.map +1 -0
- package/modules/FileManagerRenderer/FileActions/index.d.ts +2 -0
- package/modules/FileManagerRenderer/FileActions/index.js +47 -0
- package/modules/FileManagerRenderer/FileActions/index.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/FileManagerView.d.ts +5 -0
- package/modules/FileManagerRenderer/FileManagerView/FileManagerView.js +301 -0
- package/modules/FileManagerRenderer/FileManagerView/FileManagerView.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.d.ts +281 -0
- package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.js +54 -0
- package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.d.ts +8 -0
- package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.js +37 -0
- package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/NavigateFolderProvider.d.ts +4 -0
- package/modules/FileManagerRenderer/FileManagerView/NavigateFolderProvider.js +26 -0
- package/modules/FileManagerRenderer/FileManagerView/NavigateFolderProvider.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.d.ts +26 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.js +66 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkEditField.d.ts +10 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkEditField.js +26 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkEditField.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.d.ts +8 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.js +14 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.d.ts +39 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.js +44 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FilterByTags.d.ts +5 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FilterByTags.js +17 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FilterByTags.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FiltersToWhere.d.ts +7 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FiltersToWhere.js +16 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FiltersToWhere.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.d.ts +7 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.js +13 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderFieldDecorator.d.ts +7 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderFieldDecorator.js +16 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderFieldDecorator.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.d.ts +31 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.js +38 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.d.ts +28 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.js +30 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.d.ts +6 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.js +3 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.d.ts +32 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.js +16 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Thumbnail.d.ts +28 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Thumbnail.js +30 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Thumbnail.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.d.ts +57 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.js +10 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.d.ts +196 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.js +47 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.d.ts +31 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.js +35 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.d.ts +39 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.js +44 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.d.ts +8 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.js +25 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.d.ts +5 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.js +16 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.d.ts +28 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.js +27 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Width.d.ts +5 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Width.js +16 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Width.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.d.ts +87 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.js +23 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.d.ts +4 -0
- package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.js +21 -0
- package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/index.d.ts +13 -0
- package/modules/FileManagerRenderer/FileManagerView/index.js +88 -0
- package/modules/FileManagerRenderer/FileManagerView/index.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.d.ts +2 -0
- package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.js +30 -0
- package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.d.ts +86 -0
- package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.js +458 -0
- package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerViewProvider/index.d.ts +2 -0
- package/modules/FileManagerRenderer/FileManagerViewProvider/index.js +4 -0
- package/modules/FileManagerRenderer/FileManagerViewProvider/index.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.d.ts +31 -0
- package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.js +100 -0
- package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerViewProvider/state.d.ts +33 -0
- package/modules/FileManagerRenderer/FileManagerViewProvider/state.js +34 -0
- package/modules/FileManagerRenderer/FileManagerViewProvider/state.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.d.ts +3 -0
- package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.js +11 -0
- package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.d.ts +25 -0
- package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.js +153 -0
- package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.d.ts +11 -0
- package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.js +89 -0
- package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.js.map +1 -0
- package/modules/FileManagerRenderer/filters/FilterByType.d.ts +2 -0
- package/modules/FileManagerRenderer/filters/FilterByType.js +32 -0
- package/modules/FileManagerRenderer/filters/FilterByType.js.map +1 -0
- package/modules/FileManagerRenderer/index.d.ts +2 -0
- package/modules/FileManagerRenderer/index.js +139 -0
- package/modules/FileManagerRenderer/index.js.map +1 -0
- package/modules/HeadlessCms/fileField.d.ts +2 -0
- package/modules/HeadlessCms/fileField.js +40 -0
- package/modules/HeadlessCms/fileField.js.map +1 -0
- package/modules/HeadlessCms/fileRenderer/fileField.d.ts +2 -0
- package/modules/HeadlessCms/fileRenderer/fileField.js +62 -0
- package/modules/HeadlessCms/fileRenderer/fileField.js.map +1 -0
- package/modules/HeadlessCms/fileRenderer/fileFields.d.ts +2 -0
- package/modules/HeadlessCms/fileRenderer/fileFields.js +99 -0
- package/modules/HeadlessCms/fileRenderer/fileFields.js.map +1 -0
- package/modules/HeadlessCms/fileRenderer/utils.d.ts +2 -0
- package/modules/HeadlessCms/fileRenderer/utils.js +6 -0
- package/modules/HeadlessCms/fileRenderer/utils.js.map +1 -0
- package/modules/HeadlessCms/index.d.ts +1 -0
- package/modules/HeadlessCms/index.js +13 -0
- package/modules/HeadlessCms/index.js.map +1 -0
- package/{admin → modules/Settings}/graphql.d.ts +7 -0
- package/modules/Settings/graphql.js +29 -0
- package/modules/Settings/graphql.js.map +1 -0
- package/modules/Settings/index.d.ts +2 -0
- package/modules/Settings/index.js +39 -0
- package/modules/Settings/index.js.map +1 -0
- package/modules/Settings/plugins/installation.d.ts +3 -0
- package/modules/Settings/plugins/installation.js +96 -0
- package/modules/Settings/plugins/installation.js.map +1 -0
- package/modules/Settings/plugins/permissionRenderer/FileManagerPermissions.d.ts +14 -0
- package/modules/Settings/plugins/permissionRenderer/FileManagerPermissions.js +205 -0
- package/modules/Settings/plugins/permissionRenderer/FileManagerPermissions.js.map +1 -0
- package/{admin → modules/Settings}/plugins/permissionRenderer/index.d.ts +1 -1
- package/modules/Settings/plugins/permissionRenderer/index.js +23 -0
- package/modules/Settings/plugins/permissionRenderer/index.js.map +1 -0
- package/modules/Settings/views/FileManagerSettings.d.ts +2 -0
- package/modules/Settings/views/FileManagerSettings.js +106 -0
- package/modules/Settings/views/FileManagerSettings.js.map +1 -0
- package/modules/ThumbnailRenderers/FilePreviewDefaultRenderer.d.ts +2 -0
- package/modules/ThumbnailRenderers/FilePreviewDefaultRenderer.js +12 -0
- package/modules/ThumbnailRenderers/FilePreviewDefaultRenderer.js.map +1 -0
- package/modules/ThumbnailRenderers/FilePreviewImageRenderer.d.ts +2 -0
- package/modules/ThumbnailRenderers/FilePreviewImageRenderer.js +19 -0
- package/modules/ThumbnailRenderers/FilePreviewImageRenderer.js.map +1 -0
- package/modules/ThumbnailRenderers/GridItemDefaultRenderer.d.ts +2 -0
- package/modules/ThumbnailRenderers/GridItemDefaultRenderer.js +12 -0
- package/modules/ThumbnailRenderers/GridItemDefaultRenderer.js.map +1 -0
- package/modules/ThumbnailRenderers/GridItemImageRenderer.d.ts +2 -0
- package/modules/ThumbnailRenderers/GridItemImageRenderer.js +19 -0
- package/modules/ThumbnailRenderers/GridItemImageRenderer.js.map +1 -0
- package/modules/ThumbnailRenderers/TableItemDefaultRenderer.d.ts +2 -0
- package/modules/ThumbnailRenderers/TableItemDefaultRenderer.js +19 -0
- package/modules/ThumbnailRenderers/TableItemDefaultRenderer.js.map +1 -0
- package/modules/ThumbnailRenderers/TableItemImageRenderer.d.ts +2 -0
- package/modules/ThumbnailRenderers/TableItemImageRenderer.js +19 -0
- package/modules/ThumbnailRenderers/TableItemImageRenderer.js.map +1 -0
- package/package.json +49 -32
- package/tagsHelpers.d.ts +16 -0
- package/tagsHelpers.js +35 -0
- package/tagsHelpers.js.map +1 -0
- package/types.d.ts +26 -5
- package/types.js +3 -1
- package/types.js.map +1 -0
- package/admin/graphql.js +0 -13
- package/admin/index.d.ts +0 -2
- package/admin/index.js +0 -4
- package/admin/plugins/index.d.ts +0 -2
- package/admin/plugins/index.js +0 -6
- package/admin/plugins/installation.d.ts +0 -3
- package/admin/plugins/installation.js +0 -112
- package/admin/plugins/menus.d.ts +0 -5
- package/admin/plugins/menus.js +0 -101
- package/admin/plugins/permissionRenderer/FileManagerPermissions.d.ts +0 -5
- package/admin/plugins/permissionRenderer/FileManagerPermissions.js +0 -226
- package/admin/plugins/permissionRenderer/index.js +0 -22
- package/admin/plugins/upgrades/v5.0.0.d.ts +0 -5
- package/admin/plugins/upgrades/v5.0.0.js +0 -85
- package/admin/views/FileManagerSettings.d.ts +0 -3
- package/admin/views/FileManagerSettings.js +0 -95
- /package/{admin → modules/Settings}/assets/icons/folder-open.svg +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ReactComponent as MoveIcon } from "@webiny/icons/exit_to_app.svg";
|
|
3
|
+
import { FileManagerViewConfig, useFile, useMoveFileToFolder } from "../../../..";
|
|
4
|
+
const {
|
|
5
|
+
Browser
|
|
6
|
+
} = FileManagerViewConfig;
|
|
7
|
+
export const MoveToFolder = () => {
|
|
8
|
+
const {
|
|
9
|
+
file
|
|
10
|
+
} = useFile();
|
|
11
|
+
const moveToFolder = useMoveFileToFolder(file);
|
|
12
|
+
return /*#__PURE__*/React.createElement(Browser.Grid.Item.Action.IconButton, {
|
|
13
|
+
label: "Move file",
|
|
14
|
+
icon: /*#__PURE__*/React.createElement(MoveIcon, null),
|
|
15
|
+
onAction: moveToFolder
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=MoveToFolder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","ReactComponent","MoveIcon","FileManagerViewConfig","useFile","useMoveFileToFolder","Browser","MoveToFolder","file","moveToFolder","createElement","Grid","Item","Action","IconButton","label","icon","onAction"],"sources":["MoveToFolder.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as MoveIcon } from \"@webiny/icons/exit_to_app.svg\";\nimport { FileManagerViewConfig, useFile, useMoveFileToFolder } from \"~/index\";\n\nconst { Browser } = FileManagerViewConfig;\n\nexport const MoveToFolder = () => {\n const { file } = useFile();\n const moveToFolder = useMoveFileToFolder(file);\n\n return (\n <Browser.Grid.Item.Action.IconButton\n label={\"Move file\"}\n icon={<MoveIcon />}\n onAction={moveToFolder}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,IAAIC,QAAQ,QAAQ,+BAA+B;AAC1E,SAASC,qBAAqB,EAAEC,OAAO,EAAEC,mBAAmB;AAE5D,MAAM;EAAEC;AAAQ,CAAC,GAAGH,qBAAqB;AAEzC,OAAO,MAAMI,YAAY,GAAGA,CAAA,KAAM;EAC9B,MAAM;IAAEC;EAAK,CAAC,GAAGJ,OAAO,CAAC,CAAC;EAC1B,MAAMK,YAAY,GAAGJ,mBAAmB,CAACG,IAAI,CAAC;EAE9C,oBACIR,KAAA,CAAAU,aAAA,CAACJ,OAAO,CAACK,IAAI,CAACC,IAAI,CAACC,MAAM,CAACC,UAAU;IAChCC,KAAK,EAAE,WAAY;IACnBC,IAAI,eAAEhB,KAAA,CAAAU,aAAA,CAACR,QAAQ,MAAE,CAAE;IACnBe,QAAQ,EAAER;EAAa,CAC1B,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { useCallback } from "react";
|
|
2
|
+
import { ReactComponent as EditIcon } from "@webiny/icons/edit.svg";
|
|
3
|
+
import { FileManagerViewConfig, useFile, useFileManagerView } from "../../../..";
|
|
4
|
+
const {
|
|
5
|
+
Browser
|
|
6
|
+
} = FileManagerViewConfig;
|
|
7
|
+
export const Settings = () => {
|
|
8
|
+
const {
|
|
9
|
+
file
|
|
10
|
+
} = useFile();
|
|
11
|
+
const view = useFileManagerView();
|
|
12
|
+
const showDetails = useCallback(() => {
|
|
13
|
+
view.showFileDetails(file.id);
|
|
14
|
+
}, [file.id]);
|
|
15
|
+
return /*#__PURE__*/React.createElement(Browser.Grid.Item.Action.IconButton, {
|
|
16
|
+
icon: /*#__PURE__*/React.createElement(EditIcon, null),
|
|
17
|
+
label: "Edit file details",
|
|
18
|
+
onAction: showDetails,
|
|
19
|
+
"data-testid": "fm-file-wrapper-file-info-icon"
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=Settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","ReactComponent","EditIcon","FileManagerViewConfig","useFile","useFileManagerView","Browser","Settings","file","view","showDetails","showFileDetails","id","createElement","Grid","Item","Action","IconButton","icon","label","onAction"],"sources":["Settings.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { ReactComponent as EditIcon } from \"@webiny/icons/edit.svg\";\nimport { FileManagerViewConfig, useFile, useFileManagerView } from \"~/index\";\n\nconst { Browser } = FileManagerViewConfig;\n\nexport const Settings = () => {\n const { file } = useFile();\n const view = useFileManagerView();\n\n const showDetails = useCallback(() => {\n view.showFileDetails(file.id);\n }, [file.id]);\n\n return (\n <Browser.Grid.Item.Action.IconButton\n icon={<EditIcon />}\n label={\"Edit file details\"}\n onAction={showDetails}\n data-testid={\"fm-file-wrapper-file-info-icon\"}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAC1C,SAASC,cAAc,IAAIC,QAAQ,QAAQ,wBAAwB;AACnE,SAASC,qBAAqB,EAAEC,OAAO,EAAEC,kBAAkB;AAE3D,MAAM;EAAEC;AAAQ,CAAC,GAAGH,qBAAqB;AAEzC,OAAO,MAAMI,QAAQ,GAAGA,CAAA,KAAM;EAC1B,MAAM;IAAEC;EAAK,CAAC,GAAGJ,OAAO,CAAC,CAAC;EAC1B,MAAMK,IAAI,GAAGJ,kBAAkB,CAAC,CAAC;EAEjC,MAAMK,WAAW,GAAGV,WAAW,CAAC,MAAM;IAClCS,IAAI,CAACE,eAAe,CAACH,IAAI,CAACI,EAAE,CAAC;EACjC,CAAC,EAAE,CAACJ,IAAI,CAACI,EAAE,CAAC,CAAC;EAEb,oBACIb,KAAA,CAAAc,aAAA,CAACP,OAAO,CAACQ,IAAI,CAACC,IAAI,CAACC,MAAM,CAACC,UAAU;IAChCC,IAAI,eAAEnB,KAAA,CAAAc,aAAA,CAACX,QAAQ,MAAE,CAAE;IACnBiB,KAAK,EAAE,mBAAoB;IAC3BC,QAAQ,EAAEV,WAAY;IACtB,eAAa;EAAiC,CACjD,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FileManagerViewConfig } from "../../..";
|
|
3
|
+
import { Delete as GridDelete } from "./Grid/Delete";
|
|
4
|
+
import { Download as GridDownload } from "./Grid/Download";
|
|
5
|
+
import { MoveToFolder as GridMoveToFolder } from "./Grid/MoveToFolder";
|
|
6
|
+
import { Settings as GridSettings } from "./Grid/Settings";
|
|
7
|
+
import { Download as FileDetailsDownload } from "./FileDetails/Download";
|
|
8
|
+
import { MoveToFolder as FileDetailsMoveToFolder } from "./FileDetails/MoveToFolder";
|
|
9
|
+
import { CopyUrl as FileDetailsCopyUrl } from "./FileDetails/CopyUrl";
|
|
10
|
+
import { DeleteImage as FileDetailsDeleteImage } from "./FileDetails/DeleteImage";
|
|
11
|
+
import { EditImage as FileDetailsEditImage } from "./FileDetails/EditImage";
|
|
12
|
+
const {
|
|
13
|
+
Browser,
|
|
14
|
+
FileDetails
|
|
15
|
+
} = FileManagerViewConfig;
|
|
16
|
+
export const FileActions = () => {
|
|
17
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Browser.Grid.Item.Action, {
|
|
18
|
+
name: "settings",
|
|
19
|
+
element: /*#__PURE__*/React.createElement(GridSettings, null)
|
|
20
|
+
}), /*#__PURE__*/React.createElement(Browser.Grid.Item.Action, {
|
|
21
|
+
name: "download",
|
|
22
|
+
element: /*#__PURE__*/React.createElement(GridDownload, null)
|
|
23
|
+
}), /*#__PURE__*/React.createElement(Browser.Grid.Item.Action, {
|
|
24
|
+
name: "move",
|
|
25
|
+
element: /*#__PURE__*/React.createElement(GridMoveToFolder, null)
|
|
26
|
+
}), /*#__PURE__*/React.createElement(Browser.Grid.Item.Action, {
|
|
27
|
+
name: "delete",
|
|
28
|
+
element: /*#__PURE__*/React.createElement(GridDelete, null)
|
|
29
|
+
}), /*#__PURE__*/React.createElement(FileDetails.Action, {
|
|
30
|
+
name: "download",
|
|
31
|
+
element: /*#__PURE__*/React.createElement(FileDetailsDownload, null)
|
|
32
|
+
}), /*#__PURE__*/React.createElement(FileDetails.Action, {
|
|
33
|
+
name: "moveToFolder",
|
|
34
|
+
element: /*#__PURE__*/React.createElement(FileDetailsMoveToFolder, null)
|
|
35
|
+
}), /*#__PURE__*/React.createElement(FileDetails.Action, {
|
|
36
|
+
name: "copyUrl",
|
|
37
|
+
element: /*#__PURE__*/React.createElement(FileDetailsCopyUrl, null)
|
|
38
|
+
}), /*#__PURE__*/React.createElement(FileDetails.Action, {
|
|
39
|
+
name: "editImage",
|
|
40
|
+
element: /*#__PURE__*/React.createElement(FileDetailsEditImage, null)
|
|
41
|
+
}), /*#__PURE__*/React.createElement(FileDetails.Action, {
|
|
42
|
+
name: "delete",
|
|
43
|
+
element: /*#__PURE__*/React.createElement(FileDetailsDeleteImage, null)
|
|
44
|
+
}));
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","FileManagerViewConfig","Delete","GridDelete","Download","GridDownload","MoveToFolder","GridMoveToFolder","Settings","GridSettings","FileDetailsDownload","FileDetailsMoveToFolder","CopyUrl","FileDetailsCopyUrl","DeleteImage","FileDetailsDeleteImage","EditImage","FileDetailsEditImage","Browser","FileDetails","FileActions","createElement","Fragment","Grid","Item","Action","name","element"],"sources":["index.tsx"],"sourcesContent":["import React from \"react\";\nimport { FileManagerViewConfig } from \"~/index\";\nimport { Delete as GridDelete } from \"./Grid/Delete\";\nimport { Download as GridDownload } from \"./Grid/Download\";\nimport { MoveToFolder as GridMoveToFolder } from \"./Grid/MoveToFolder\";\nimport { Settings as GridSettings } from \"./Grid/Settings\";\nimport { Download as FileDetailsDownload } from \"./FileDetails/Download\";\nimport { MoveToFolder as FileDetailsMoveToFolder } from \"./FileDetails/MoveToFolder\";\nimport { CopyUrl as FileDetailsCopyUrl } from \"./FileDetails/CopyUrl\";\nimport { DeleteImage as FileDetailsDeleteImage } from \"./FileDetails/DeleteImage\";\nimport { EditImage as FileDetailsEditImage } from \"./FileDetails/EditImage\";\n\nconst { Browser, FileDetails } = FileManagerViewConfig;\n\nexport const FileActions = () => {\n return (\n <>\n {/* Grid actions. */}\n <Browser.Grid.Item.Action name={\"settings\"} element={<GridSettings />} />\n <Browser.Grid.Item.Action name={\"download\"} element={<GridDownload />} />\n <Browser.Grid.Item.Action name={\"move\"} element={<GridMoveToFolder />} />\n <Browser.Grid.Item.Action name={\"delete\"} element={<GridDelete />} />\n {/* File details actions. */}\n <FileDetails.Action name={\"download\"} element={<FileDetailsDownload />} />\n <FileDetails.Action name={\"moveToFolder\"} element={<FileDetailsMoveToFolder />} />\n <FileDetails.Action name={\"copyUrl\"} element={<FileDetailsCopyUrl />} />\n <FileDetails.Action name={\"editImage\"} element={<FileDetailsEditImage />} />\n <FileDetails.Action name={\"delete\"} element={<FileDetailsDeleteImage />} />\n </>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,qBAAqB;AAC9B,SAASC,MAAM,IAAIC,UAAU;AAC7B,SAASC,QAAQ,IAAIC,YAAY;AACjC,SAASC,YAAY,IAAIC,gBAAgB;AACzC,SAASC,QAAQ,IAAIC,YAAY;AACjC,SAASL,QAAQ,IAAIM,mBAAmB;AACxC,SAASJ,YAAY,IAAIK,uBAAuB;AAChD,SAASC,OAAO,IAAIC,kBAAkB;AACtC,SAASC,WAAW,IAAIC,sBAAsB;AAC9C,SAASC,SAAS,IAAIC,oBAAoB;AAE1C,MAAM;EAAEC,OAAO;EAAEC;AAAY,CAAC,GAAGlB,qBAAqB;AAEtD,OAAO,MAAMmB,WAAW,GAAGA,CAAA,KAAM;EAC7B,oBACIpB,KAAA,CAAAqB,aAAA,CAAArB,KAAA,CAAAsB,QAAA,qBAEItB,KAAA,CAAAqB,aAAA,CAACH,OAAO,CAACK,IAAI,CAACC,IAAI,CAACC,MAAM;IAACC,IAAI,EAAE,UAAW;IAACC,OAAO,eAAE3B,KAAA,CAAAqB,aAAA,CAACZ,YAAY,MAAE;EAAE,CAAE,CAAC,eACzET,KAAA,CAA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eAAE3B,KAAA,CAAAqB,aAAA,CAACN,sBAAsB,MAAE;EAAE,CAAE,CAC5E,CAAC;AAEX,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
|
2
|
+
import Files from "react-butterfiles";
|
|
3
|
+
import debounce from "lodash/debounce";
|
|
4
|
+
// @ts-expect-error
|
|
5
|
+
import { useHotkeys } from "react-hotkeyz";
|
|
6
|
+
import { observer } from "mobx-react-lite";
|
|
7
|
+
import { Heading, Scrollbar } from "@webiny/admin-ui";
|
|
8
|
+
import { i18n } from "@webiny/app/i18n";
|
|
9
|
+
import { OverlayLayout, useSnackbar } from "@webiny/app-admin";
|
|
10
|
+
import { LeftPanel, RightPanel, SplitView } from "@webiny/app-admin/components/SplitView";
|
|
11
|
+
import { useI18N } from "@webiny/app-i18n";
|
|
12
|
+
import { useTenancy } from "@webiny/app-tenancy";
|
|
13
|
+
import { useFileManagerView } from "../FileManagerViewProvider";
|
|
14
|
+
import { outputFileSelectionError } from "./outputFileSelectionError";
|
|
15
|
+
import { LeftSidebar } from "./LeftSidebar";
|
|
16
|
+
import { useFileManagerViewConfig } from "../../..";
|
|
17
|
+
import { BatchFileUploader } from "../../../BatchFileUploader";
|
|
18
|
+
import { BottomInfoBar } from "../../../components/BottomInfoBar";
|
|
19
|
+
import { BulkActions } from "../../../components/BulkActions";
|
|
20
|
+
import { FileDropPlaceholder } from "../../../components/FileDropPlaceholder";
|
|
21
|
+
import { Empty } from "../../../components/Empty";
|
|
22
|
+
import { FileDetails } from "../../../components/FileDetails";
|
|
23
|
+
import { Filters } from "../../../components/Filters";
|
|
24
|
+
import { Grid } from "../../../components/Grid";
|
|
25
|
+
import { Header } from "../../../components/Header";
|
|
26
|
+
import { SearchWidget } from "../../../components/SearchWidget";
|
|
27
|
+
import { Table } from "../../../components/Table";
|
|
28
|
+
import { TagsList } from "../../../components/TagsList";
|
|
29
|
+
import { UploadStatus } from "../../../components/UploadStatus";
|
|
30
|
+
const t = i18n.ns("app-admin/file-manager/file-manager-view");
|
|
31
|
+
const createSort = sorting => {
|
|
32
|
+
if (!sorting?.length) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
return sorting.reduce((items, item) => {
|
|
36
|
+
const sort = `${item.id}_${item.desc ? "DESC" : "ASC"}`;
|
|
37
|
+
if (items.includes(sort)) {
|
|
38
|
+
return items;
|
|
39
|
+
}
|
|
40
|
+
items.push(sort);
|
|
41
|
+
return items;
|
|
42
|
+
}, []);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Generates a `layoutId` to be used with the `<SplitView />` component.
|
|
47
|
+
* The `layoutId` is essential for saving user preferences into localStorage.
|
|
48
|
+
* The generation of the `layoutId` takes into account the current `tenantId`, `localeCode`, and the provided `applicationId`.
|
|
49
|
+
*
|
|
50
|
+
* TODO: export the useLayoutId from a generic use package, such as app-admin. At the moment is not possible because of circular dependency issues.
|
|
51
|
+
*/
|
|
52
|
+
const useLayoutId = applicationId => {
|
|
53
|
+
const {
|
|
54
|
+
tenant
|
|
55
|
+
} = useTenancy();
|
|
56
|
+
const {
|
|
57
|
+
getCurrentLocale
|
|
58
|
+
} = useI18N();
|
|
59
|
+
const localeCode = getCurrentLocale("content");
|
|
60
|
+
if (!tenant || !localeCode) {
|
|
61
|
+
console.warn("Missing tenant or localeCode while creating layoutId");
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
return `T#${tenant}#L#${localeCode}#A#${applicationId}`;
|
|
65
|
+
};
|
|
66
|
+
const FileManagerView = () => {
|
|
67
|
+
const view = useFileManagerView();
|
|
68
|
+
const {
|
|
69
|
+
browser
|
|
70
|
+
} = useFileManagerViewConfig();
|
|
71
|
+
const {
|
|
72
|
+
showSnackbar
|
|
73
|
+
} = useSnackbar();
|
|
74
|
+
const [drawerLoading, setDrawerLoading] = useState(null);
|
|
75
|
+
const uploader = useMemo(() => new BatchFileUploader(view.uploadFile), [view.folderId]);
|
|
76
|
+
const [tableSorting, setTableSorting] = useState([]);
|
|
77
|
+
const [currentFile, setCurrentFile] = useState();
|
|
78
|
+
const layoutId = useLayoutId("fm:file");
|
|
79
|
+
useEffect(() => {
|
|
80
|
+
const fetchFileDetails = async () => {
|
|
81
|
+
if (view.showingFileDetails) {
|
|
82
|
+
setDrawerLoading("Loading file details...");
|
|
83
|
+
const file = await view.getFile(view.showingFileDetails);
|
|
84
|
+
setCurrentFile(file);
|
|
85
|
+
} else {
|
|
86
|
+
setCurrentFile(undefined);
|
|
87
|
+
}
|
|
88
|
+
setDrawerLoading(null);
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
// call the function
|
|
92
|
+
fetchFileDetails();
|
|
93
|
+
}, [view.showingFileDetails]);
|
|
94
|
+
useEffect(() => {
|
|
95
|
+
if (!tableSorting?.length) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
const sort = createSort(tableSorting);
|
|
99
|
+
if (!sort) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
view.setListSort(sort);
|
|
103
|
+
}, [tableSorting]);
|
|
104
|
+
const getFileUploadErrorMessage = useCallback(e => {
|
|
105
|
+
if (typeof e === "string") {
|
|
106
|
+
const match = e.match(/Message>(.*?)<\/Message/);
|
|
107
|
+
if (match) {
|
|
108
|
+
const [, message] = match;
|
|
109
|
+
return message;
|
|
110
|
+
}
|
|
111
|
+
return e;
|
|
112
|
+
}
|
|
113
|
+
return e.message;
|
|
114
|
+
}, []);
|
|
115
|
+
useHotkeys({
|
|
116
|
+
zIndex: 20,
|
|
117
|
+
keys: {
|
|
118
|
+
esc: view.onClose
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
const uploadFiles = async files => {
|
|
122
|
+
uploader.addFiles(files);
|
|
123
|
+
view.setIsUploadProgressIndicatorVisible(true);
|
|
124
|
+
uploader.onUploadFinished(({
|
|
125
|
+
uploaded,
|
|
126
|
+
errors
|
|
127
|
+
}) => {
|
|
128
|
+
uploader.reset();
|
|
129
|
+
view.setIsUploadProgressIndicatorVisible(true);
|
|
130
|
+
if (errors.length > 0) {
|
|
131
|
+
showSnackbar(/*#__PURE__*/React.createElement(React.Fragment, null, t`One or more files were not uploaded successfully:`, /*#__PURE__*/React.createElement("ol", null, errors.map(({
|
|
132
|
+
file,
|
|
133
|
+
e
|
|
134
|
+
}) => /*#__PURE__*/React.createElement("li", {
|
|
135
|
+
key: file.name
|
|
136
|
+
}, /*#__PURE__*/React.createElement("strong", null, file.name), ": ", getFileUploadErrorMessage(e))))));
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
showSnackbar(t`File upload complete.`, {
|
|
140
|
+
timeout: 3000
|
|
141
|
+
});
|
|
142
|
+
view.onUploadCompletion(uploaded);
|
|
143
|
+
});
|
|
144
|
+
};
|
|
145
|
+
const filesBeingUploaded = uploader.getJobs().length;
|
|
146
|
+
const progress = uploader.progress;
|
|
147
|
+
const renderList = browseFiles => {
|
|
148
|
+
if (!view.isListLoading && view.isSearch && view.files.length === 0) {
|
|
149
|
+
return /*#__PURE__*/React.createElement(Empty, {
|
|
150
|
+
isSearchResult: true,
|
|
151
|
+
browseFiles: browseFiles
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
if (!view.isListLoading && view.files.length === 0 && view.folders.length === 0) {
|
|
155
|
+
return /*#__PURE__*/React.createElement(Empty, {
|
|
156
|
+
isSearchResult: false,
|
|
157
|
+
browseFiles: browseFiles
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
if (view.listTable) {
|
|
161
|
+
const getSelectableRow = rows => rows.filter(row => row.$type === "RECORD").map(row => row.data);
|
|
162
|
+
const onSelectRow = view.hasOnSelectCallback ? rows => {
|
|
163
|
+
const files = getSelectableRow(rows);
|
|
164
|
+
if (view.multiple) {
|
|
165
|
+
view.setSelected(files);
|
|
166
|
+
} else {
|
|
167
|
+
view.onChange(files[0]);
|
|
168
|
+
}
|
|
169
|
+
} : rows => {
|
|
170
|
+
const files = getSelectableRow(rows);
|
|
171
|
+
view.setSelected(files);
|
|
172
|
+
};
|
|
173
|
+
const onToggleRow = view.hasOnSelectCallback ? row => {
|
|
174
|
+
const files = getSelectableRow([row]);
|
|
175
|
+
if (view.multiple) {
|
|
176
|
+
view.toggleSelected(files[0]);
|
|
177
|
+
} else {
|
|
178
|
+
view.onChange(files[0]);
|
|
179
|
+
}
|
|
180
|
+
} : row => {
|
|
181
|
+
const files = getSelectableRow([row]);
|
|
182
|
+
view.toggleSelected(files[0]);
|
|
183
|
+
};
|
|
184
|
+
return /*#__PURE__*/React.createElement(Table, {
|
|
185
|
+
onSelectRow: onSelectRow,
|
|
186
|
+
onToggleRow: onToggleRow,
|
|
187
|
+
sorting: tableSorting,
|
|
188
|
+
onSortingChange: setTableSorting
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
return /*#__PURE__*/React.createElement(Grid, {
|
|
192
|
+
folders: view.folders,
|
|
193
|
+
records: view.files,
|
|
194
|
+
loading: view.isListLoading,
|
|
195
|
+
onFolderClick: view.setFolderId,
|
|
196
|
+
selected: view.selected,
|
|
197
|
+
multiple: view.multiple,
|
|
198
|
+
toggleSelected: view.toggleSelected,
|
|
199
|
+
deselectAll: view.deselectAll,
|
|
200
|
+
onChange: view.onChange,
|
|
201
|
+
onClose: view.onClose,
|
|
202
|
+
hasOnSelectCallback: view.hasOnSelectCallback,
|
|
203
|
+
displaySubFolders: view.displaySubFolders
|
|
204
|
+
});
|
|
205
|
+
};
|
|
206
|
+
const loadMoreOnScroll = useCallback(debounce(async ({
|
|
207
|
+
scrollFrame
|
|
208
|
+
}) => {
|
|
209
|
+
if (scrollFrame.top > 0.8) {
|
|
210
|
+
view.loadMoreFiles();
|
|
211
|
+
}
|
|
212
|
+
}, 200), [view.meta, view.loadMoreFiles]);
|
|
213
|
+
const updateFile = useCallback(async data => {
|
|
214
|
+
const {
|
|
215
|
+
id,
|
|
216
|
+
...fileData
|
|
217
|
+
} = data;
|
|
218
|
+
setDrawerLoading("Saving file changes...");
|
|
219
|
+
await view.updateFile(id, fileData);
|
|
220
|
+
setDrawerLoading(null);
|
|
221
|
+
showSnackbar("File updated successfully!");
|
|
222
|
+
view.hideFileDetails();
|
|
223
|
+
}, [view.updateFile]);
|
|
224
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Files, {
|
|
225
|
+
multiple: true,
|
|
226
|
+
maxSize: view.settings ? view.settings.uploadMaxFileSize + "b" : "1TB",
|
|
227
|
+
multipleMaxSize: "1TB",
|
|
228
|
+
accept: view.accept,
|
|
229
|
+
onSuccess: files => {
|
|
230
|
+
const filesToUpload = files.map(file => file.src.file).filter(Boolean);
|
|
231
|
+
uploadFiles(filesToUpload);
|
|
232
|
+
},
|
|
233
|
+
onError: errors => {
|
|
234
|
+
const message = outputFileSelectionError(errors);
|
|
235
|
+
showSnackbar(message);
|
|
236
|
+
}
|
|
237
|
+
}, ({
|
|
238
|
+
getDropZoneProps,
|
|
239
|
+
browseFiles
|
|
240
|
+
}) => /*#__PURE__*/React.createElement(OverlayLayout, {
|
|
241
|
+
variant: "strong",
|
|
242
|
+
onExited: view.onClose,
|
|
243
|
+
barLeft: /*#__PURE__*/React.createElement(Heading, {
|
|
244
|
+
level: 5
|
|
245
|
+
}, "File manager"),
|
|
246
|
+
barMiddle: /*#__PURE__*/React.createElement(SearchWidget, null)
|
|
247
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FileDetails, {
|
|
248
|
+
loading: drawerLoading,
|
|
249
|
+
file: currentFile,
|
|
250
|
+
open: Boolean(view.showingFileDetails),
|
|
251
|
+
onClose: view.hideFileDetails,
|
|
252
|
+
onSave: updateFile
|
|
253
|
+
}), /*#__PURE__*/React.createElement(SplitView, {
|
|
254
|
+
layoutId: layoutId
|
|
255
|
+
}, /*#__PURE__*/React.createElement(LeftPanel, {
|
|
256
|
+
span: 2
|
|
257
|
+
}, /*#__PURE__*/React.createElement(LeftSidebar, {
|
|
258
|
+
currentFolder: view.folderId,
|
|
259
|
+
onFolderClick: view.setFolderId
|
|
260
|
+
}, browser.filterByTags ? /*#__PURE__*/React.createElement(TagsList, {
|
|
261
|
+
loading: view.tags.loading,
|
|
262
|
+
activeTags: view.tags.activeTags,
|
|
263
|
+
tags: view.tags.allTags,
|
|
264
|
+
onActivatedTagsChange: view.tags.setActiveTags
|
|
265
|
+
}) : null)), /*#__PURE__*/React.createElement(RightPanel, {
|
|
266
|
+
span: 10
|
|
267
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
268
|
+
className: "wby-flex wby-flex-col wby-relative",
|
|
269
|
+
style: {
|
|
270
|
+
height: "calc(100vh - 69px"
|
|
271
|
+
}
|
|
272
|
+
}, /*#__PURE__*/React.createElement(Header, {
|
|
273
|
+
browseFiles: browseFiles
|
|
274
|
+
}), /*#__PURE__*/React.createElement("div", Object.assign({
|
|
275
|
+
className: "wby-flex-1"
|
|
276
|
+
}, getDropZoneProps({
|
|
277
|
+
onDragOver: () => view.setDragging(true),
|
|
278
|
+
onDragLeave: () => view.setDragging(false),
|
|
279
|
+
onDrop: () => view.setDragging(false)
|
|
280
|
+
}), {
|
|
281
|
+
"data-testid": "fm-list-wrapper"
|
|
282
|
+
}), /*#__PURE__*/React.createElement(BulkActions, null), /*#__PURE__*/React.createElement(Filters, null), /*#__PURE__*/React.createElement(Scrollbar, {
|
|
283
|
+
onScrollFrame: scrollFrame => loadMoreOnScroll({
|
|
284
|
+
scrollFrame
|
|
285
|
+
})
|
|
286
|
+
}, renderList(browseFiles)), view.dragging && /*#__PURE__*/React.createElement(FileDropPlaceholder, null), /*#__PURE__*/React.createElement(UploadStatus, {
|
|
287
|
+
numberOfFiles: filesBeingUploaded,
|
|
288
|
+
progress: progress,
|
|
289
|
+
isVisible: view.isUploadProgressIndicatorVisible,
|
|
290
|
+
setIsVisible: view.setIsUploadProgressIndicatorVisible
|
|
291
|
+
})), /*#__PURE__*/React.createElement(BottomInfoBar, {
|
|
292
|
+
accept: view.accept,
|
|
293
|
+
listing: view.isListLoadingMore,
|
|
294
|
+
loading: view.isListLoading,
|
|
295
|
+
totalCount: view.meta?.totalCount ?? 0,
|
|
296
|
+
currentCount: view.files.length
|
|
297
|
+
}))))))));
|
|
298
|
+
};
|
|
299
|
+
export default observer(FileManagerView);
|
|
300
|
+
|
|
301
|
+
//# sourceMappingURL=FileManagerView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useEffect","useMemo","useState","Files","debounce","useHotkeys","observer","Heading","Scrollbar","i18n","OverlayLayout","useSnackbar","LeftPanel","RightPanel","SplitView","useI18N","useTenancy","useFileManagerView","outputFileSelectionError","LeftSidebar","useFileManagerViewConfig","BatchFileUploader","BottomInfoBar","BulkActions","FileDropPlaceholder","Empty","FileDetails","Filters","Grid","Header","SearchWidget","Table","TagsList","UploadStatus","t","ns","createSort","sorting","length","undefined","reduce","items","item","sort","id","desc","includes","push","useLayoutId","applicationId","tenant","getCurrentLocale","localeCode","console","warn","FileManagerView","view","browser","showSnackbar","drawerLoading","setDrawerLoading","uploader","uploadFile","folderId","tableSorting","setTableSorting","currentFile","setCurrentFile","layoutId","fetchFileDetails","showingFileDetails","file","getFile","setListSort","getFileUploadErrorMessage","e","match","message","zIndex","keys","esc","onClose","uploadFiles","files","addFiles","setIsUploadProgressIndicatorVisible","onUploadFinished","uploaded","errors","reset","createElement","Fragment","map","key","name","timeout","onUploadCompletion","filesBeingUploaded","getJobs","progress","renderList","browseFiles","isListLoading","isSearch","isSearchResult","folders","listTable","getSelectableRow","rows","filter","row","$type","data","onSelectRow","hasOnSelectCallback","multiple","setSelected","onChange","onToggleRow","toggleSelected","onSortingChange","records","loading","onFolderClick","setFolderId","selected","deselectAll","displaySubFolders","loadMoreOnScroll","scrollFrame","top","loadMoreFiles","meta","updateFile","fileData","hideFileDetails","maxSize","settings","uploadMaxFileSize","multipleMaxSize","accept","onSuccess","filesToUpload","src","Boolean","onError","getDropZoneProps","variant","onExited","barLeft","level","barMiddle","open","onSave","span","currentFolder","filterByTags","tags","activeTags","allTags","onActivatedTagsChange","setActiveTags","className","style","height","Object","assign","onDragOver","setDragging","onDragLeave","onDrop","onScrollFrame","dragging","numberOfFiles","isVisible","isUploadProgressIndicatorVisible","setIsVisible","listing","isListLoadingMore","totalCount","currentCount"],"sources":["FileManagerView.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useMemo, useState } from \"react\";\nimport type { FilesRenderChildren } from \"react-butterfiles\";\nimport Files from \"react-butterfiles\";\nimport debounce from \"lodash/debounce\";\nimport type { positionValues } from \"react-custom-scrollbars\";\n// @ts-expect-error\nimport { useHotkeys } from \"react-hotkeyz\";\nimport { observer } from \"mobx-react-lite\";\nimport { Heading, type DataTableSorting, Scrollbar } from \"@webiny/admin-ui\";\nimport { i18n } from \"@webiny/app/i18n\";\nimport { OverlayLayout, useSnackbar } from \"@webiny/app-admin\";\nimport { LeftPanel, RightPanel, SplitView } from \"@webiny/app-admin/components/SplitView\";\nimport { useI18N } from \"@webiny/app-i18n\";\nimport { useTenancy } from \"@webiny/app-tenancy\";\nimport { useFileManagerView } from \"~/modules/FileManagerRenderer/FileManagerViewProvider\";\nimport { outputFileSelectionError } from \"./outputFileSelectionError\";\nimport { LeftSidebar } from \"./LeftSidebar\";\nimport { useFileManagerViewConfig } from \"~/index\";\nimport type { FileItem } from \"@webiny/app-admin/types\";\nimport { BatchFileUploader } from \"~/BatchFileUploader\";\nimport type { ListFilesSort, ListFilesSortItem } from \"~/modules/FileManagerApiProvider/graphql\";\nimport type { TableItem } from \"~/types\";\n\nimport { BottomInfoBar } from \"~/components/BottomInfoBar\";\nimport { BulkActions } from \"~/components/BulkActions\";\nimport { FileDropPlaceholder } from \"~/components/FileDropPlaceholder\";\nimport { Empty } from \"~/components/Empty\";\nimport { FileDetails } from \"~/components/FileDetails\";\nimport { Filters } from \"~/components/Filters\";\nimport { Grid } from \"~/components/Grid\";\nimport { Header } from \"~/components/Header\";\nimport { SearchWidget } from \"~/components/SearchWidget\";\nimport type { TableProps } from \"~/components/Table\";\nimport { Table } from \"~/components/Table\";\nimport { TagsList } from \"~/components/TagsList\";\nimport { UploadStatus } from \"~/components/UploadStatus\";\n\nconst t = i18n.ns(\"app-admin/file-manager/file-manager-view\");\n\ntype GetFileUploadErrorMessageProps =\n | string\n | {\n message: string;\n };\n\nconst createSort = (sorting?: DataTableSorting): ListFilesSort | undefined => {\n if (!sorting?.length) {\n return undefined;\n }\n return sorting.reduce<ListFilesSort>((items, item) => {\n const sort = `${item.id}_${item.desc ? \"DESC\" : \"ASC\"}` as ListFilesSortItem;\n if (items.includes(sort)) {\n return items;\n }\n items.push(sort);\n return items;\n }, []);\n};\n\n/**\n * Generates a `layoutId` to be used with the `<SplitView />` component.\n * The `layoutId` is essential for saving user preferences into localStorage.\n * The generation of the `layoutId` takes into account the current `tenantId`, `localeCode`, and the provided `applicationId`.\n *\n * TODO: export the useLayoutId from a generic use package, such as app-admin. At the moment is not possible because of circular dependency issues.\n */\nconst useLayoutId = (applicationId: string) => {\n const { tenant } = useTenancy();\n const { getCurrentLocale } = useI18N();\n const localeCode = getCurrentLocale(\"content\");\n\n if (!tenant || !localeCode) {\n console.warn(\"Missing tenant or localeCode while creating layoutId\");\n return null;\n }\n\n return `T#${tenant}#L#${localeCode}#A#${applicationId}`;\n};\n\nconst FileManagerView = () => {\n const view = useFileManagerView();\n const { browser } = useFileManagerViewConfig();\n const { showSnackbar } = useSnackbar();\n const [drawerLoading, setDrawerLoading] = useState<string | null>(null);\n\n const uploader = useMemo<BatchFileUploader>(\n () => new BatchFileUploader(view.uploadFile),\n [view.folderId]\n );\n\n const [tableSorting, setTableSorting] = useState<DataTableSorting>([]);\n const [currentFile, setCurrentFile] = useState<FileItem>();\n const layoutId = useLayoutId(\"fm:file\");\n\n useEffect(() => {\n const fetchFileDetails = async () => {\n if (view.showingFileDetails) {\n setDrawerLoading(\"Loading file details...\");\n const file = await view.getFile(view.showingFileDetails);\n setCurrentFile(file);\n } else {\n setCurrentFile(undefined);\n }\n setDrawerLoading(null);\n };\n\n // call the function\n fetchFileDetails();\n }, [view.showingFileDetails]);\n\n useEffect(() => {\n if (!tableSorting?.length) {\n return;\n }\n const sort = createSort(tableSorting);\n if (!sort) {\n return;\n }\n view.setListSort(sort);\n }, [tableSorting]);\n\n const getFileUploadErrorMessage = useCallback((e: GetFileUploadErrorMessageProps) => {\n if (typeof e === \"string\") {\n const match = e.match(/Message>(.*?)<\\/Message/);\n if (match) {\n const [, message] = match;\n return message;\n }\n\n return e;\n }\n return e.message;\n }, []);\n\n useHotkeys({\n zIndex: 20,\n keys: {\n esc: view.onClose\n }\n });\n\n const uploadFiles = async (files: File[]) => {\n uploader.addFiles(files);\n view.setIsUploadProgressIndicatorVisible(true);\n\n uploader.onUploadFinished(({ uploaded, errors }) => {\n uploader.reset();\n view.setIsUploadProgressIndicatorVisible(true);\n\n if (errors.length > 0) {\n showSnackbar(\n <>\n {t`One or more files were not uploaded successfully:`}\n <ol>\n {errors.map(({ file, e }) => (\n <li key={file.name}>\n <strong>{file.name}</strong>: {getFileUploadErrorMessage(e)}\n </li>\n ))}\n </ol>\n </>\n );\n return;\n }\n\n showSnackbar(t`File upload complete.`, { timeout: 3000 });\n\n view.onUploadCompletion(uploaded);\n });\n };\n\n const filesBeingUploaded = uploader.getJobs().length;\n const progress = uploader.progress;\n\n const renderList = (browseFiles: FilesRenderChildren[\"browseFiles\"]) => {\n if (!view.isListLoading && view.isSearch && view.files.length === 0) {\n return <Empty isSearchResult={true} browseFiles={browseFiles} />;\n }\n\n if (!view.isListLoading && view.files.length === 0 && view.folders.length === 0) {\n return <Empty isSearchResult={false} browseFiles={browseFiles} />;\n }\n\n if (view.listTable) {\n const getSelectableRow = (rows: TableItem[]) =>\n rows.filter(row => row.$type === \"RECORD\").map(row => row.data as FileItem);\n\n const onSelectRow: TableProps[\"onSelectRow\"] = view.hasOnSelectCallback\n ? rows => {\n const files = getSelectableRow(rows);\n\n if (view.multiple) {\n view.setSelected(files);\n } else {\n view.onChange(files[0]);\n }\n }\n : rows => {\n const files = getSelectableRow(rows);\n view.setSelected(files);\n };\n\n const onToggleRow: TableProps[\"onToggleRow\"] = view.hasOnSelectCallback\n ? row => {\n const files = getSelectableRow([row]);\n\n if (view.multiple) {\n view.toggleSelected(files[0]);\n } else {\n view.onChange(files[0]);\n }\n }\n : row => {\n const files = getSelectableRow([row]);\n view.toggleSelected(files[0]);\n };\n\n return (\n <Table\n onSelectRow={onSelectRow}\n onToggleRow={onToggleRow}\n sorting={tableSorting}\n onSortingChange={setTableSorting}\n />\n );\n }\n\n return (\n <Grid\n folders={view.folders}\n records={view.files}\n loading={view.isListLoading}\n onFolderClick={view.setFolderId}\n selected={view.selected}\n multiple={view.multiple}\n toggleSelected={view.toggleSelected}\n deselectAll={view.deselectAll}\n onChange={view.onChange}\n onClose={view.onClose}\n hasOnSelectCallback={view.hasOnSelectCallback}\n displaySubFolders={view.displaySubFolders}\n />\n );\n };\n\n const loadMoreOnScroll = useCallback(\n debounce(async ({ scrollFrame }: { scrollFrame: positionValues }) => {\n if (scrollFrame.top > 0.8) {\n view.loadMoreFiles();\n }\n }, 200),\n [view.meta, view.loadMoreFiles]\n );\n\n const updateFile = useCallback(\n async (data: FileItem) => {\n const { id, ...fileData } = data;\n setDrawerLoading(\"Saving file changes...\");\n await view.updateFile(id, fileData);\n setDrawerLoading(null);\n showSnackbar(\"File updated successfully!\");\n view.hideFileDetails();\n },\n [view.updateFile]\n );\n\n return (\n <>\n <Files\n multiple\n maxSize={view.settings ? view.settings.uploadMaxFileSize + \"b\" : \"1TB\"}\n multipleMaxSize={\"1TB\"}\n accept={view.accept}\n onSuccess={files => {\n const filesToUpload = files\n .map(file => file.src.file)\n .filter(Boolean) as File[];\n uploadFiles(filesToUpload);\n }}\n onError={errors => {\n const message = outputFileSelectionError(errors);\n showSnackbar(message);\n }}\n >\n {({ getDropZoneProps, browseFiles }) => (\n <OverlayLayout\n variant={\"strong\"}\n onExited={view.onClose}\n barLeft={<Heading level={5}>{\"File manager\"}</Heading>}\n barMiddle={<SearchWidget />}\n >\n <>\n <FileDetails\n loading={drawerLoading}\n file={currentFile}\n open={Boolean(view.showingFileDetails)}\n onClose={view.hideFileDetails}\n onSave={updateFile}\n />\n <SplitView layoutId={layoutId}>\n <LeftPanel span={2}>\n <LeftSidebar\n currentFolder={view.folderId}\n onFolderClick={view.setFolderId}\n >\n {browser.filterByTags ? (\n <TagsList\n loading={view.tags.loading}\n activeTags={view.tags.activeTags}\n tags={view.tags.allTags}\n onActivatedTagsChange={view.tags.setActiveTags}\n />\n ) : null}\n </LeftSidebar>\n </LeftPanel>\n <RightPanel span={10}>\n <div\n className={\"wby-flex wby-flex-col wby-relative\"}\n style={{ height: \"calc(100vh - 69px\" }}\n >\n <Header browseFiles={browseFiles} />\n <div\n className={\"wby-flex-1\"}\n {...getDropZoneProps({\n onDragOver: () => view.setDragging(true),\n onDragLeave: () => view.setDragging(false),\n onDrop: () => view.setDragging(false)\n })}\n data-testid={\"fm-list-wrapper\"}\n >\n <BulkActions />\n <Filters />\n <Scrollbar\n onScrollFrame={scrollFrame =>\n loadMoreOnScroll({ scrollFrame })\n }\n >\n {renderList(browseFiles)}\n </Scrollbar>\n {view.dragging && <FileDropPlaceholder />}\n <UploadStatus\n numberOfFiles={filesBeingUploaded}\n progress={progress}\n isVisible={view.isUploadProgressIndicatorVisible}\n setIsVisible={\n view.setIsUploadProgressIndicatorVisible\n }\n />\n </div>\n <BottomInfoBar\n accept={view.accept}\n listing={view.isListLoadingMore}\n loading={view.isListLoading}\n totalCount={view.meta?.totalCount ?? 0}\n currentCount={view.files.length}\n />\n </div>\n </RightPanel>\n </SplitView>\n </>\n </OverlayLayout>\n )}\n </Files>\n </>\n );\n};\n\nexport default observer(FileManagerView);\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EA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