@webiny/app-file-manager 0.0.0-unstable.78f581c1d2 → 0.0.0-unstable.7be00a75a9
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/README.md +7 -28
- package/app.d.ts +2 -0
- package/app.js +57 -0
- package/app.js.map +1 -0
- package/domain/constants.d.ts +4 -0
- package/domain/constants.js +7 -0
- package/domain/constants.js.map +1 -0
- package/domain/permissionsSchema.d.ts +18 -0
- package/domain/permissionsSchema.js +32 -0
- package/domain/permissionsSchema.js.map +1 -0
- package/domain/tagsHelpers.d.ts +16 -0
- 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/exports/admin/ui/file-manager.d.ts +2 -0
- package/exports/admin/ui/file-manager.js +1 -0
- package/features/deleteFile/DeleteFile.test.d.ts +1 -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 +23 -0
- package/features/fileUploader/FileUploader.js +243 -0
- package/features/fileUploader/FileUploader.js.map +1 -0
- package/features/fileUploader/FileUploader.test.d.ts +1 -0
- package/features/fileUploader/FileUploader.test.js +427 -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/fileUrlFormatter/FileUrlFormatter.d.ts +8 -0
- package/features/fileUrlFormatter/FileUrlFormatter.js +13 -0
- package/features/fileUrlFormatter/FileUrlFormatter.js.map +1 -0
- package/features/fileUrlFormatter/abstractions.d.ts +1 -0
- package/features/fileUrlFormatter/abstractions.js +1 -0
- package/features/fileUrlFormatter/feature.d.ts +1 -0
- package/features/fileUrlFormatter/feature.js +11 -0
- package/features/fileUrlFormatter/feature.js.map +1 -0
- package/features/getFile/GetFileGateway.d.ts +14 -0
- package/features/getFile/GetFileGateway.js +28 -0
- package/features/getFile/GetFileGateway.js.map +1 -0
- package/features/getFile/GetFileRepository.d.ts +11 -0
- package/features/getFile/GetFileRepository.js +18 -0
- package/features/getFile/GetFileRepository.js.map +1 -0
- package/features/getFile/GetFileUseCase.d.ts +10 -0
- package/features/getFile/GetFileUseCase.js +35 -0
- package/features/getFile/GetFileUseCase.js.map +1 -0
- package/features/getFile/abstractions.d.ts +38 -0
- package/features/getFile/abstractions.js +7 -0
- package/features/getFile/abstractions.js.map +1 -0
- package/features/getFile/feature.d.ts +3 -0
- package/features/getFile/feature.js +21 -0
- package/features/getFile/feature.js.map +1 -0
- package/features/getFile/index.d.ts +3 -0
- package/features/getFile/index.js +2 -0
- package/features/listFiles/ListFiles.test.d.ts +1 -0
- package/features/listFiles/ListFiles.test.js +192 -0
- package/features/listFiles/ListFiles.test.js.map +1 -0
- package/features/listFiles/ListFilesGateway.d.ts +13 -0
- package/features/listFiles/ListFilesGateway.js +35 -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 +17 -0
- package/features/permissions/abstractions.js +6 -0
- package/features/permissions/abstractions.js.map +1 -0
- package/features/permissions/feature.d.ts +14 -0
- package/features/permissions/feature.js +7 -0
- package/features/permissions/feature.js.map +1 -0
- package/features/resolveImageTool/ResolveImageTool.d.ts +40 -0
- package/features/resolveImageTool/ResolveImageTool.js +49 -0
- package/features/resolveImageTool/ResolveImageTool.js.map +1 -0
- package/features/resolveImageTool/feature.d.ts +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.d.ts +1 -0
- package/features/shared/FILE_FIELDS.js +32 -0
- package/features/shared/FILE_FIELDS.js.map +1 -0
- package/features/shared/FileFieldsProvider.d.ts +8 -0
- package/features/shared/FileFieldsProvider.js +14 -0
- package/features/shared/FileFieldsProvider.js.map +1 -0
- package/features/shared/FileFieldsProviderWithWcp.d.ts +12 -0
- package/features/shared/FileFieldsProviderWithWcp.js +25 -0
- package/features/shared/FileFieldsProviderWithWcp.js.map +1 -0
- package/features/shared/FilesListCache.d.ts +1 -0
- package/features/shared/FilesListCache.js +1 -0
- package/features/shared/abstractions.d.ts +13 -0
- package/features/shared/abstractions.js +6 -0
- package/features/shared/abstractions.js.map +1 -0
- package/features/shared/feature.d.ts +5 -0
- package/features/shared/feature.js +22 -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.d.ts +16 -0
- package/features/shared/types.js +0 -0
- 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 +260 -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 +14 -0
- package/features/updateFile/UpdateFileRepository.js +32 -0
- package/features/updateFile/UpdateFileRepository.js.map +1 -0
- package/features/updateFile/UpdateFileUseCase.d.ts +12 -0
- package/features/updateFile/UpdateFileUseCase.js +41 -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 -2
- package/index.js +3 -37
- package/modules/Enterprise/HandleWebsocketMessages.d.ts +1 -0
- package/modules/Enterprise/HandleWebsocketMessages.js +53 -0
- package/modules/Enterprise/HandleWebsocketMessages.js.map +1 -0
- package/modules/Enterprise/components/ThreatScanInProgressFileBody.d.ts +2 -0
- package/modules/Enterprise/components/ThreatScanInProgressFileBody.js +22 -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 +20 -0
- package/modules/Enterprise/components/ThreatScanInProgressTableCell.js.map +1 -0
- package/modules/Enterprise/constants.d.ts +3 -0
- package/modules/Enterprise/constants.js +6 -0
- package/modules/Enterprise/constants.js.map +1 -0
- package/modules/Enterprise/index.d.ts +2 -0
- package/modules/Enterprise/index.js +30 -0
- package/modules/Enterprise/index.js.map +1 -0
- 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/FileUrlFormatter.d.ts +2 -0
- package/modules/FileUrlFormatter.js +9 -0
- package/modules/FileUrlFormatter.js.map +1 -0
- package/modules/HeadlessCms/fileField.d.ts +2 -0
- package/modules/HeadlessCms/fileField.js +44 -0
- package/modules/HeadlessCms/fileField.js.map +1 -0
- package/modules/HeadlessCms/fileRenderer/fileField.d.ts +2 -0
- package/modules/HeadlessCms/fileRenderer/fileField.js +53 -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 +73 -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 +15 -0
- package/modules/HeadlessCms/fileRenderer/utils.js.map +1 -0
- package/modules/HeadlessCms/index.d.ts +1 -0
- package/modules/HeadlessCms/index.js +14 -0
- package/modules/HeadlessCms/index.js.map +1 -0
- package/modules/SecurityPermissions.d.ts +2 -0
- package/modules/SecurityPermissions.js +15 -0
- package/modules/SecurityPermissions.js.map +1 -0
- package/modules/Settings/assets/icons/folder-open.js +19 -0
- package/modules/Settings/assets/icons/folder-open.js.map +1 -0
- package/{admin → modules/Settings}/graphql.d.ts +7 -0
- package/modules/Settings/graphql.js +36 -0
- package/modules/Settings/graphql.js.map +1 -0
- package/modules/Settings/index.d.ts +2 -0
- package/modules/Settings/index.js +27 -0
- package/modules/Settings/index.js.map +1 -0
- package/modules/Settings/views/FileManagerSettings.d.ts +2 -0
- package/modules/Settings/views/FileManagerSettings.js +134 -0
- package/modules/Settings/views/FileManagerSettings.js.map +1 -0
- package/package.json +46 -37
- package/presentation/FileActions/FileDetails/CopyUrl.d.ts +2 -0
- package/presentation/FileActions/FileDetails/CopyUrl.js +19 -0
- package/presentation/FileActions/FileDetails/CopyUrl.js.map +1 -0
- package/presentation/FileActions/FileDetails/DeleteImage.d.ts +2 -0
- package/presentation/FileActions/FileDetails/DeleteImage.js +24 -0
- package/presentation/FileActions/FileDetails/DeleteImage.js.map +1 -0
- package/presentation/FileActions/FileDetails/Download.d.ts +2 -0
- package/presentation/FileActions/FileDetails/Download.js +19 -0
- package/presentation/FileActions/FileDetails/Download.js.map +1 -0
- package/presentation/FileActions/FileDetails/MoveToFolder.d.ts +2 -0
- package/presentation/FileActions/FileDetails/MoveToFolder.js +16 -0
- package/presentation/FileActions/FileDetails/MoveToFolder.js.map +1 -0
- package/presentation/FileActions/Grid/Delete.d.ts +2 -0
- package/presentation/FileActions/Grid/Delete.js +23 -0
- package/presentation/FileActions/Grid/Delete.js.map +1 -0
- package/presentation/FileActions/Grid/Download.d.ts +2 -0
- package/presentation/FileActions/Grid/Download.js +19 -0
- package/presentation/FileActions/Grid/Download.js.map +1 -0
- package/presentation/FileActions/Grid/MoveToFolder.d.ts +2 -0
- package/presentation/FileActions/Grid/MoveToFolder.js +16 -0
- package/presentation/FileActions/Grid/MoveToFolder.js.map +1 -0
- package/presentation/FileActions/Grid/Settings.d.ts +2 -0
- package/presentation/FileActions/Grid/Settings.js +23 -0
- package/presentation/FileActions/Grid/Settings.js.map +1 -0
- package/presentation/FileActions/index.d.ts +2 -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.d.ts +10 -0
- package/presentation/FileDetails/components/ActionButton.js +15 -0
- package/presentation/FileDetails/components/ActionButton.js.map +1 -0
- package/presentation/FileDetails/components/Actions.d.ts +2 -0
- package/presentation/FileDetails/components/Actions.js +13 -0
- package/presentation/FileDetails/components/Actions.js.map +1 -0
- package/presentation/FileDetails/components/Content.d.ts +14 -0
- package/presentation/FileDetails/components/Content.js +20 -0
- package/presentation/FileDetails/components/Content.js.map +1 -0
- package/presentation/FileDetails/components/CreatedOn.d.ts +2 -0
- package/presentation/FileDetails/components/CreatedOn.js +21 -0
- package/presentation/FileDetails/components/CreatedOn.js.map +1 -0
- package/presentation/FileDetails/components/Description.d.ts +2 -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.d.ts +2 -0
- package/presentation/FileDetails/components/Preview.js +15 -0
- package/presentation/FileDetails/components/Preview.js.map +1 -0
- package/presentation/FileDetails/components/Thumbnail.d.ts +2 -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.d.ts +6 -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.d.ts +6 -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.d.ts +8 -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.d.ts +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.d.ts +7 -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.d.ts +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.d.ts +32 -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.d.ts +4 -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.d.ts +32 -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.d.ts +7 -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.d.ts +4 -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.d.ts +1 -0
- package/presentation/FileList/components/Empty/index.js +1 -0
- package/presentation/FileList/components/FileDropArea/FileDropArea.d.ts +9 -0
- package/presentation/FileList/components/FileDropArea/FileDropArea.js +62 -0
- package/presentation/FileList/components/FileDropArea/FileDropArea.js.map +1 -0
- package/presentation/FileList/components/FileDropArea/index.d.ts +1 -0
- package/presentation/FileList/components/FileDropArea/index.js +1 -0
- package/presentation/FileList/components/FileDropPlaceholder/FileDropPlaceholder.d.ts +2 -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.d.ts +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.d.ts +2 -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 +162 -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.d.ts +2 -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.d.ts +1 -0
- package/presentation/FileList/components/LayoutSwitch/index.js +1 -0
- package/presentation/FileList/components/NoPermissions/NoPermissions.d.ts +2 -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.d.ts +1 -0
- package/presentation/FileList/components/NoPermissions/index.js +1 -0
- package/presentation/FileList/components/NoResults/NoResults.d.ts +2 -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.d.ts +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.d.ts +2 -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.d.ts +2 -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.d.ts +2 -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.d.ts +2 -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.d.ts +4 -0
- package/presentation/FileList/components/Table/Actions/index.js +4 -0
- package/presentation/FileList/components/Table/Cells/CellActions.d.ts +2 -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.d.ts +2 -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.d.ts +2 -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.d.ts +2 -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.d.ts +2 -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.d.ts +2 -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.d.ts +2 -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.d.ts +7 -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.d.ts +6 -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.d.ts +2 -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.d.ts +7 -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.d.ts +9 -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.d.ts +8 -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.d.ts +11 -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.d.ts +1 -0
- package/presentation/FileList/components/TagsList/index.js +1 -0
- package/presentation/FileList/components/Thumbnail/Thumbnail.d.ts +2 -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.d.ts +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 +246 -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.d.ts +10 -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.d.ts +8 -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.d.ts +39 -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.d.ts +5 -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.d.ts +7 -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.d.ts +7 -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.d.ts +5 -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.d.ts +7 -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.d.ts +31 -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.d.ts +28 -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.d.ts +6 -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.d.ts +28 -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.d.ts +31 -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.d.ts +28 -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.d.ts +5 -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.d.ts +7 -0
- package/presentation/config/fields/AccessControl.js +38 -0
- package/presentation/config/fields/AccessControl.js.map +1 -0
- package/presentation/config/fields/Tags.d.ts +2 -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.d.ts +6 -0
- package/presentation/config/fields/useAccessControlField.js +21 -0
- package/presentation/config/fields/useAccessControlField.js.map +1 -0
- package/presentation/config/fields/useFileOrUndefined.d.ts +3 -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.d.ts +2 -0
- package/presentation/config/thumbnailRenderers/FilePreviewDefaultRenderer.js +11 -0
- package/presentation/config/thumbnailRenderers/FilePreviewDefaultRenderer.js.map +1 -0
- package/presentation/config/thumbnailRenderers/FilePreviewImageRenderer.d.ts +2 -0
- package/presentation/config/thumbnailRenderers/FilePreviewImageRenderer.js +18 -0
- package/presentation/config/thumbnailRenderers/FilePreviewImageRenderer.js.map +1 -0
- package/presentation/config/thumbnailRenderers/GridItemDefaultRenderer.d.ts +2 -0
- package/presentation/config/thumbnailRenderers/GridItemDefaultRenderer.js +11 -0
- package/presentation/config/thumbnailRenderers/GridItemDefaultRenderer.js.map +1 -0
- package/presentation/config/thumbnailRenderers/GridItemImageRenderer.d.ts +2 -0
- package/presentation/config/thumbnailRenderers/GridItemImageRenderer.js +18 -0
- package/presentation/config/thumbnailRenderers/GridItemImageRenderer.js.map +1 -0
- package/presentation/config/thumbnailRenderers/TableItemDefaultRenderer.d.ts +2 -0
- package/presentation/config/thumbnailRenderers/TableItemDefaultRenderer.js +18 -0
- package/presentation/config/thumbnailRenderers/TableItemDefaultRenderer.js.map +1 -0
- package/presentation/config/thumbnailRenderers/TableItemImageRenderer.d.ts +2 -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 +7 -0
- package/routes.js +17 -0
- package/routes.js.map +1 -0
- package/static/svg/folder-open.ae8d0fac.svg +1 -0
- package/admin/graphql.js +0 -24
- package/admin/graphql.js.map +0 -1
- package/admin/index.d.ts +0 -2
- package/admin/index.js +0 -16
- package/admin/index.js.map +0 -1
- package/admin/plugins/index.d.ts +0 -2
- package/admin/plugins/index.js +0 -18
- package/admin/plugins/index.js.map +0 -1
- package/admin/plugins/installation.d.ts +0 -3
- package/admin/plugins/installation.js +0 -134
- package/admin/plugins/installation.js.map +0 -1
- package/admin/plugins/permissionRenderer/FileManagerPermissions.d.ts +0 -14
- package/admin/plugins/permissionRenderer/FileManagerPermissions.js +0 -249
- package/admin/plugins/permissionRenderer/FileManagerPermissions.js.map +0 -1
- package/admin/plugins/permissionRenderer/index.d.ts +0 -3
- package/admin/plugins/permissionRenderer/index.js +0 -38
- package/admin/plugins/permissionRenderer/index.js.map +0 -1
- package/admin/views/FileManagerSettings.d.ts +0 -3
- package/admin/views/FileManagerSettings.js +0 -162
- package/admin/views/FileManagerSettings.js.map +0 -1
- package/index.js.map +0 -1
- package/types.d.ts +0 -26
- package/types.js +0 -5
- package/types.js.map +0 -1
- /package/{admin → modules/Settings}/assets/icons/folder-open.svg +0 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { createFolderFieldDecoratorFactory } from "@webiny/app-aco";
|
|
2
|
+
import { BulkAction } from "./BulkAction.js";
|
|
3
|
+
import { Filter } from "./Filter.js";
|
|
4
|
+
import { FiltersToWhere } from "./FiltersToWhere.js";
|
|
5
|
+
import { FilterByTags } from "./FilterByTags.js";
|
|
6
|
+
import { FolderAction } from "./FolderAction.js";
|
|
7
|
+
import { FileAction } from "./FileAction.js";
|
|
8
|
+
import { Table } from "./Table/index.js";
|
|
9
|
+
import { BulkEditField } from "./BulkEditField.js";
|
|
10
|
+
import { Action } from "./Grid/Action.js";
|
|
11
|
+
import { Thumbnail } from "./Grid/Thumbnail.js";
|
|
12
|
+
import { ActionButton } from "../../../FileList/components/Grid/ActionButton.js";
|
|
13
|
+
import { File } from "../../../FileList/components/Grid/File.js";
|
|
14
|
+
import { shouldDecorateFolderField } from "./FolderFieldDecorator.js";
|
|
15
|
+
import { FolderDropConfirmation } from "./FolderDropConfirmation.js";
|
|
16
|
+
const Browser = {
|
|
17
|
+
Grid: {
|
|
18
|
+
Item: Object.assign(File, {
|
|
19
|
+
Thumbnail: Thumbnail,
|
|
20
|
+
Action: Object.assign(Action, {
|
|
21
|
+
IconButton: ActionButton
|
|
22
|
+
})
|
|
23
|
+
})
|
|
24
|
+
},
|
|
25
|
+
BulkAction: BulkAction,
|
|
26
|
+
BulkEditField: BulkEditField,
|
|
27
|
+
Filter: Filter,
|
|
28
|
+
FiltersToWhere: FiltersToWhere,
|
|
29
|
+
FilterByTags: FilterByTags,
|
|
30
|
+
Folder: {
|
|
31
|
+
ExtensionField: {
|
|
32
|
+
createDecorator: createFolderFieldDecoratorFactory({
|
|
33
|
+
scope: "fm",
|
|
34
|
+
shouldDecorate: shouldDecorateFolderField
|
|
35
|
+
})
|
|
36
|
+
},
|
|
37
|
+
Action: FolderAction,
|
|
38
|
+
DropConfirmation: FolderDropConfirmation
|
|
39
|
+
},
|
|
40
|
+
File: {
|
|
41
|
+
Action: FileAction
|
|
42
|
+
},
|
|
43
|
+
Table: Table
|
|
44
|
+
};
|
|
45
|
+
export { Browser };
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/config/configComponents/Browser/index.js","sources":["../../../../../src/presentation/config/configComponents/Browser/index.ts"],"sourcesContent":["import { createFolderFieldDecoratorFactory } from \"@webiny/app-aco\";\nimport type { BulkActionConfig } from \"./BulkAction.js\";\nimport { BulkAction } from \"./BulkAction.js\";\nimport type { FilterConfig } from \"./Filter.js\";\nimport { Filter } from \"./Filter.js\";\nimport type { FiltersToWhereConverter } from \"./FiltersToWhere.js\";\nimport { FiltersToWhere } from \"./FiltersToWhere.js\";\nimport { FilterByTags } from \"./FilterByTags.js\";\nimport { FolderAction } from \"./FolderAction.js\";\nimport { FileAction } from \"./FileAction.js\";\nimport type { TableConfig } from \"./Table/index.js\";\nimport { Table } from \"./Table/index.js\";\nimport type { BulkEditFieldConfig } from \"./BulkEditField.js\";\nimport { BulkEditField } from \"./BulkEditField.js\";\nimport { Action } from \"./Grid/Action.js\";\nimport { Thumbnail } from \"./Grid/Thumbnail.js\";\nimport type { GridConfig } from \"./Grid/index.js\";\nimport { ActionButton } from \"~/presentation/FileList/components/Grid/ActionButton.js\";\nimport { File } from \"~/presentation/FileList/components/Grid/File.js\";\nimport { shouldDecorateFolderField } from \"./FolderFieldDecorator.js\";\nimport { FolderDropConfirmation } from \"./FolderDropConfirmation.js\";\nimport { RecordConfig } from \"@webiny/app-aco/config/record\";\n\nexport interface BrowserConfig {\n bulkActions: BulkActionConfig[];\n bulkEditFields: BulkEditFieldConfig[];\n filters: FilterConfig[];\n filtersToWhere: FiltersToWhereConverter[];\n filterByTags: boolean;\n table: TableConfig;\n grid: GridConfig;\n file: RecordConfig;\n}\n\nexport const Browser = {\n Grid: {\n Item: Object.assign(File, {\n Thumbnail,\n Action: Object.assign(Action, { IconButton: ActionButton })\n })\n },\n BulkAction,\n BulkEditField,\n Filter,\n FiltersToWhere,\n FilterByTags,\n Folder: {\n ExtensionField: {\n createDecorator: createFolderFieldDecoratorFactory({\n scope: \"fm\",\n shouldDecorate: shouldDecorateFolderField\n })\n },\n Action: FolderAction,\n DropConfirmation: FolderDropConfirmation\n },\n File: {\n Action: FileAction\n },\n Table\n};\n"],"names":["Browser","Object","File","Thumbnail","Action","ActionButton","BulkAction","BulkEditField","Filter","FiltersToWhere","FilterByTags","createFolderFieldDecoratorFactory","shouldDecorateFolderField","FolderAction","FolderDropConfirmation","FileAction","Table"],"mappings":";;;;;;;;;;;;;;;AAkCO,MAAMA,UAAU;IACnB,MAAM;QACF,MAAMC,OAAO,MAAM,CAACC,MAAM;YACtBC,WAASA;YACT,QAAQF,OAAO,MAAM,CAACG,QAAQ;gBAAE,YAAYC;YAAa;QAC7D;IACJ;IACAC,YAAUA;IACVC,eAAaA;IACbC,QAAMA;IACNC,gBAAcA;IACdC,cAAYA;IACZ,QAAQ;QACJ,gBAAgB;YACZ,iBAAiBC,kCAAkC;gBAC/C,OAAO;gBACP,gBAAgBC;YACpB;QACJ;QACA,QAAQC;QACR,kBAAkBC;IACtB;IACA,MAAM;QACF,QAAQC;IACZ;IACAC,OAAKA;AACT"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ActionConfig {
|
|
3
|
+
name: string;
|
|
4
|
+
element: React.ReactElement;
|
|
5
|
+
}
|
|
6
|
+
export interface ActionProps {
|
|
7
|
+
name: string;
|
|
8
|
+
element?: React.ReactElement<unknown>;
|
|
9
|
+
remove?: boolean;
|
|
10
|
+
before?: string;
|
|
11
|
+
after?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const Action: (({ name, element, after, before, remove }: ActionProps) => React.JSX.Element) & {
|
|
14
|
+
original: ({ name, element, after, before, remove }: ActionProps) => React.JSX.Element;
|
|
15
|
+
originalName: string;
|
|
16
|
+
displayName: string;
|
|
17
|
+
} & {
|
|
18
|
+
original: (({ name, element, after, before, remove }: ActionProps) => React.JSX.Element) & {
|
|
19
|
+
original: ({ name, element, after, before, remove }: ActionProps) => React.JSX.Element;
|
|
20
|
+
originalName: string;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
originalName: string;
|
|
24
|
+
displayName: string;
|
|
25
|
+
} & {
|
|
26
|
+
createDecorator: (decorator: import("@webiny/app-admin").ComponentDecorator<(({ name, element, after, before, remove }: ActionProps) => React.JSX.Element) & {
|
|
27
|
+
original: ({ name, element, after, before, remove }: ActionProps) => React.JSX.Element;
|
|
28
|
+
originalName: string;
|
|
29
|
+
displayName: string;
|
|
30
|
+
}>) => (props: unknown) => React.JSX.Element;
|
|
31
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { Property, useIdGenerator } from "@webiny/react-properties";
|
|
3
|
+
import { makeDecoratable } from "@webiny/app-admin";
|
|
4
|
+
const Action = makeDecoratable("Action", ({ name, element, after, before, remove = false })=>{
|
|
5
|
+
const getId = useIdGenerator("action");
|
|
6
|
+
const placeAfter = void 0 !== after ? getId(after) : void 0;
|
|
7
|
+
const placeBefore = void 0 !== before ? getId(before) : void 0;
|
|
8
|
+
return /*#__PURE__*/ react.createElement(Property, {
|
|
9
|
+
id: "fileDetails",
|
|
10
|
+
name: "fileDetails"
|
|
11
|
+
}, /*#__PURE__*/ react.createElement(Property, {
|
|
12
|
+
id: getId(name),
|
|
13
|
+
name: "actions",
|
|
14
|
+
array: true,
|
|
15
|
+
before: placeBefore,
|
|
16
|
+
after: placeAfter,
|
|
17
|
+
remove: remove
|
|
18
|
+
}, /*#__PURE__*/ react.createElement(Property, {
|
|
19
|
+
id: getId(name, "name"),
|
|
20
|
+
name: "name",
|
|
21
|
+
value: name
|
|
22
|
+
}), element ? /*#__PURE__*/ react.createElement(Property, {
|
|
23
|
+
id: getId(name, "element"),
|
|
24
|
+
name: "element",
|
|
25
|
+
value: element
|
|
26
|
+
}) : null));
|
|
27
|
+
});
|
|
28
|
+
export { Action };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=Action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/config/configComponents/FileDetails/Action.js","sources":["../../../../../src/presentation/config/configComponents/FileDetails/Action.tsx"],"sourcesContent":["import React from \"react\";\nimport { Property, useIdGenerator } from \"@webiny/react-properties\";\nimport { makeDecoratable } from \"@webiny/app-admin\";\n\nexport interface ActionConfig {\n name: string;\n element: React.ReactElement;\n}\n\nexport interface ActionProps {\n name: string;\n element?: React.ReactElement<unknown>;\n remove?: boolean;\n before?: string;\n after?: string;\n}\n\nexport const Action = makeDecoratable(\n \"Action\",\n ({ name, element, after = undefined, before = undefined, remove = false }: ActionProps) => {\n const getId = useIdGenerator(\"action\");\n const placeAfter = after !== undefined ? getId(after) : undefined;\n const placeBefore = before !== undefined ? getId(before) : undefined;\n\n return (\n <Property id=\"fileDetails\" name={\"fileDetails\"}>\n <Property\n id={getId(name)}\n name={\"actions\"}\n array={true}\n before={placeBefore}\n after={placeAfter}\n remove={remove}\n >\n <Property id={getId(name, \"name\")} name={\"name\"} value={name} />\n {element ? (\n <Property id={getId(name, \"element\")} name={\"element\"} value={element} />\n ) : null}\n </Property>\n </Property>\n );\n }\n);\n"],"names":["Action","makeDecoratable","name","element","after","before","remove","getId","useIdGenerator","placeAfter","undefined","placeBefore","Property"],"mappings":";;;AAiBO,MAAMA,SAASC,gBAClB,UACA,CAAC,EAAEC,IAAI,EAAEC,OAAO,EAAEC,KAAiB,EAAEC,MAAkB,EAAEC,SAAS,KAAK,EAAe;IAClF,MAAMC,QAAQC,eAAe;IAC7B,MAAMC,aAAaL,AAAUM,WAAVN,QAAsBG,MAAMH,SAASM;IACxD,MAAMC,cAAcN,AAAWK,WAAXL,SAAuBE,MAAMF,UAAUK;IAE3D,OAAO,WAAP,GACI,oBAACE,UAAQA;QAAC,IAAG;QAAc,MAAM;qBAC7B,oBAACA,UAAQA;QACL,IAAIL,MAAML;QACV,MAAM;QACN,OAAO;QACP,QAAQS;QACR,OAAOF;QACP,QAAQH;qBAER,oBAACM,UAAQA;QAAC,IAAIL,MAAML,MAAM;QAAS,MAAM;QAAQ,OAAOA;QACvDC,UAAU,WAAVA,GACG,oBAACS,UAAQA;QAAC,IAAIL,MAAML,MAAM;QAAY,MAAM;QAAW,OAAOC;SAC9D;AAIpB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ThumbnailConfig {
|
|
3
|
+
type: string;
|
|
4
|
+
element: React.JSX.Element;
|
|
5
|
+
}
|
|
6
|
+
export interface RendererProps {
|
|
7
|
+
type: string;
|
|
8
|
+
element: React.JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export declare const Thumbnail: (({ type, element }: RendererProps) => React.JSX.Element) & {
|
|
11
|
+
original: ({ type, element }: RendererProps) => React.JSX.Element;
|
|
12
|
+
originalName: string;
|
|
13
|
+
displayName: string;
|
|
14
|
+
} & {
|
|
15
|
+
original: (({ type, element }: RendererProps) => React.JSX.Element) & {
|
|
16
|
+
original: ({ type, element }: RendererProps) => React.JSX.Element;
|
|
17
|
+
originalName: string;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
originalName: string;
|
|
21
|
+
displayName: string;
|
|
22
|
+
} & {
|
|
23
|
+
createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(({ type, element }: RendererProps) => React.JSX.Element) & {
|
|
24
|
+
original: ({ type, element }: RendererProps) => React.JSX.Element;
|
|
25
|
+
originalName: string;
|
|
26
|
+
displayName: string;
|
|
27
|
+
}>) => (props: unknown) => React.JSX.Element;
|
|
28
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { makeDecoratable } from "@webiny/react-composition";
|
|
3
|
+
import { Property, useIdGenerator } from "@webiny/react-properties";
|
|
4
|
+
const Thumbnail = makeDecoratable("Thumbnail", ({ type, element })=>{
|
|
5
|
+
const getId = useIdGenerator("thumbnail");
|
|
6
|
+
return /*#__PURE__*/ react.createElement(Property, {
|
|
7
|
+
id: "fileDetails",
|
|
8
|
+
name: "fileDetails"
|
|
9
|
+
}, /*#__PURE__*/ react.createElement(Property, {
|
|
10
|
+
id: getId(type),
|
|
11
|
+
name: "thumbnails",
|
|
12
|
+
array: true
|
|
13
|
+
}, /*#__PURE__*/ react.createElement(Property, {
|
|
14
|
+
id: getId(type, "type"),
|
|
15
|
+
name: "type",
|
|
16
|
+
value: type
|
|
17
|
+
}), /*#__PURE__*/ react.createElement(Property, {
|
|
18
|
+
id: getId(type, "element"),
|
|
19
|
+
name: "element",
|
|
20
|
+
value: element
|
|
21
|
+
})));
|
|
22
|
+
});
|
|
23
|
+
export { Thumbnail };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=Thumbnail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/config/configComponents/FileDetails/Thumbnail.js","sources":["../../../../../src/presentation/config/configComponents/FileDetails/Thumbnail.tsx"],"sourcesContent":["import React from \"react\";\nimport { makeDecoratable } from \"@webiny/react-composition\";\nimport { Property, useIdGenerator } from \"@webiny/react-properties\";\n\nexport interface ThumbnailConfig {\n type: string;\n element: React.JSX.Element;\n}\n\nexport interface RendererProps {\n type: string;\n element: React.JSX.Element;\n}\n\nexport const Thumbnail = makeDecoratable(\"Thumbnail\", ({ type, element }: RendererProps) => {\n const getId = useIdGenerator(\"thumbnail\");\n\n return (\n <Property id=\"fileDetails\" name={\"fileDetails\"}>\n <Property id={getId(type)} name={\"thumbnails\"} array={true}>\n <Property id={getId(type, \"type\")} name={\"type\"} value={type} />\n <Property id={getId(type, \"element\")} name={\"element\"} value={element} />\n </Property>\n </Property>\n );\n});\n"],"names":["Thumbnail","makeDecoratable","type","element","getId","useIdGenerator","Property"],"mappings":";;;AAcO,MAAMA,YAAYC,gBAAgB,aAAa,CAAC,EAAEC,IAAI,EAAEC,OAAO,EAAiB;IACnF,MAAMC,QAAQC,eAAe;IAE7B,OAAO,WAAP,GACI,oBAACC,UAAQA;QAAC,IAAG;QAAc,MAAM;qBAC7B,oBAACA,UAAQA;QAAC,IAAIF,MAAMF;QAAO,MAAM;QAAc,OAAO;qBAClD,oBAACI,UAAQA;QAAC,IAAIF,MAAMF,MAAM;QAAS,MAAM;QAAQ,OAAOA;sBACxD,oBAACI,UAAQA;QAAC,IAAIF,MAAMF,MAAM;QAAY,MAAM;QAAW,OAAOC;;AAI9E"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { Property } from "@webiny/react-properties";
|
|
3
|
+
const Width = ({ value })=>/*#__PURE__*/ react.createElement(Property, {
|
|
4
|
+
id: "fileDetails",
|
|
5
|
+
name: "fileDetails"
|
|
6
|
+
}, /*#__PURE__*/ react.createElement(Property, {
|
|
7
|
+
id: "drawer:width",
|
|
8
|
+
name: "width",
|
|
9
|
+
value: value
|
|
10
|
+
}));
|
|
11
|
+
export { Width };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=Width.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/config/configComponents/FileDetails/Width.js","sources":["../../../../../src/presentation/config/configComponents/FileDetails/Width.tsx"],"sourcesContent":["import React from \"react\";\nimport { Property } from \"@webiny/react-properties\";\n\nexport interface WidthProps {\n value: string;\n}\n\nexport const Width = ({ value }: WidthProps) => {\n return (\n <Property id=\"fileDetails\" name={\"fileDetails\"}>\n <Property id={`drawer:width`} name={\"width\"} value={value} />\n </Property>\n );\n};\n"],"names":["Width","value","Property"],"mappings":";;AAOO,MAAMA,QAAQ,CAAC,EAAEC,KAAK,EAAc,GAChC,WAAP,GACI,oBAACC,UAAQA;QAAC,IAAG;QAAc,MAAM;qBAC7B,oBAACA,UAAQA;QAAC,IAAI;QAAgB,MAAM;QAAS,OAAOD"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { ActionConfig } from "./Action.js";
|
|
2
|
+
import type { ThumbnailConfig } from "./Thumbnail.js";
|
|
3
|
+
export interface FileDetailsConfig {
|
|
4
|
+
actions: ActionConfig[];
|
|
5
|
+
thumbnails: ThumbnailConfig[];
|
|
6
|
+
width: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const FileDetails: {
|
|
9
|
+
Action: (({ name, element, after, before, remove }: import("./Action.js").ActionProps) => import("react").JSX.Element) & {
|
|
10
|
+
original: ({ name, element, after, before, remove }: import("./Action.js").ActionProps) => import("react").JSX.Element;
|
|
11
|
+
originalName: string;
|
|
12
|
+
displayName: string;
|
|
13
|
+
} & {
|
|
14
|
+
original: (({ name, element, after, before, remove }: import("./Action.js").ActionProps) => import("react").JSX.Element) & {
|
|
15
|
+
original: ({ name, element, after, before, remove }: import("./Action.js").ActionProps) => import("react").JSX.Element;
|
|
16
|
+
originalName: string;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
originalName: string;
|
|
20
|
+
displayName: string;
|
|
21
|
+
} & {
|
|
22
|
+
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<(({ name, element, after, before, remove }: import("./Action.js").ActionProps) => import("react").JSX.Element) & {
|
|
23
|
+
original: ({ name, element, after, before, remove }: import("./Action.js").ActionProps) => import("react").JSX.Element;
|
|
24
|
+
originalName: string;
|
|
25
|
+
displayName: string;
|
|
26
|
+
}>) => (props: unknown) => React.JSX.Element;
|
|
27
|
+
} & {
|
|
28
|
+
Button: ({ label, icon, onAction, disabled, className, ...props }: import("~/presentation/FileDetails/components/ActionButton.js").ActionButtonProps) => import("react").JSX.Element;
|
|
29
|
+
};
|
|
30
|
+
Preview: {
|
|
31
|
+
Thumbnail: (({ type, element }: import("./Thumbnail.js").RendererProps) => import("react").JSX.Element) & {
|
|
32
|
+
original: ({ type, element }: import("./Thumbnail.js").RendererProps) => import("react").JSX.Element;
|
|
33
|
+
originalName: string;
|
|
34
|
+
displayName: string;
|
|
35
|
+
} & {
|
|
36
|
+
original: (({ type, element }: import("./Thumbnail.js").RendererProps) => import("react").JSX.Element) & {
|
|
37
|
+
original: ({ type, element }: import("./Thumbnail.js").RendererProps) => import("react").JSX.Element;
|
|
38
|
+
originalName: string;
|
|
39
|
+
displayName: string;
|
|
40
|
+
};
|
|
41
|
+
originalName: string;
|
|
42
|
+
displayName: string;
|
|
43
|
+
} & {
|
|
44
|
+
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<(({ type, element }: import("./Thumbnail.js").RendererProps) => import("react").JSX.Element) & {
|
|
45
|
+
original: ({ type, element }: import("./Thumbnail.js").RendererProps) => import("react").JSX.Element;
|
|
46
|
+
originalName: string;
|
|
47
|
+
displayName: string;
|
|
48
|
+
}>) => (props: unknown) => React.JSX.Element;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
Width: ({ value }: import("./Width.js").WidthProps) => import("react").JSX.Element;
|
|
52
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Width } from "./Width.js";
|
|
2
|
+
import { Action } from "./Action.js";
|
|
3
|
+
import { ActionButton } from "../../../FileDetails/components/ActionButton.js";
|
|
4
|
+
import { Thumbnail } from "./Thumbnail.js";
|
|
5
|
+
const FileDetails = {
|
|
6
|
+
Action: Object.assign(Action, {
|
|
7
|
+
Button: ActionButton
|
|
8
|
+
}),
|
|
9
|
+
Preview: {
|
|
10
|
+
Thumbnail: Thumbnail
|
|
11
|
+
},
|
|
12
|
+
Width: Width
|
|
13
|
+
};
|
|
14
|
+
export { FileDetails };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/config/configComponents/FileDetails/index.js","sources":["../../../../../src/presentation/config/configComponents/FileDetails/index.ts"],"sourcesContent":["import { Width } from \"./Width.js\";\nimport type { ActionConfig } from \"./Action.js\";\nimport { Action } from \"./Action.js\";\nimport { ActionButton } from \"~/presentation/FileDetails/components/ActionButton.js\";\nimport type { ThumbnailConfig } from \"./Thumbnail.js\";\nimport { Thumbnail } from \"./Thumbnail.js\";\n\nexport interface FileDetailsConfig {\n actions: ActionConfig[];\n thumbnails: ThumbnailConfig[];\n width: string;\n}\n\nexport const FileDetails = {\n Action: Object.assign(Action, { Button: ActionButton }),\n Preview: {\n Thumbnail\n },\n Width\n};\n"],"names":["FileDetails","Object","Action","ActionButton","Thumbnail","Width"],"mappings":";;;;AAaO,MAAMA,cAAc;IACvB,QAAQC,OAAO,MAAM,CAACC,QAAQ;QAAE,QAAQC;IAAa;IACrD,SAAS;QACLC,WAASA;IACb;IACAC,OAAKA;AACT"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { validation } from "@webiny/validation";
|
|
3
|
+
import { useBind } from "@webiny/form";
|
|
4
|
+
import { useFileManagerPresenter } from "../../FileList/FileManagerPresenterProvider.js";
|
|
5
|
+
import { useAccessControlField } from "./useAccessControlField.js";
|
|
6
|
+
import { useFileOrUndefined } from "./useFileOrUndefined.js";
|
|
7
|
+
import { Label, Select } from "@webiny/admin-ui";
|
|
8
|
+
const AccessControl = ({ defaultValue, placeholder })=>{
|
|
9
|
+
const { file } = useFileOrUndefined();
|
|
10
|
+
const { vm } = useFileManagerPresenter();
|
|
11
|
+
const accessControlField = useAccessControlField();
|
|
12
|
+
if (!accessControlField) return null;
|
|
13
|
+
const { options } = accessControlField;
|
|
14
|
+
const bind = useBind({
|
|
15
|
+
name: "accessControl.type",
|
|
16
|
+
validators: [
|
|
17
|
+
validation.create("required")
|
|
18
|
+
],
|
|
19
|
+
defaultValue,
|
|
20
|
+
beforeChange (value, cb) {
|
|
21
|
+
cb("" === value ? void 0 : value);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
return /*#__PURE__*/ react.createElement(Select, {
|
|
25
|
+
...bind,
|
|
26
|
+
value: bind.value || defaultValue,
|
|
27
|
+
label: /*#__PURE__*/ react.createElement(Label, {
|
|
28
|
+
text: "Access Control",
|
|
29
|
+
hint: "Control who can access this file."
|
|
30
|
+
}),
|
|
31
|
+
options: options || [],
|
|
32
|
+
disabled: file ? !vm.permissions.canEditFile(file) : false,
|
|
33
|
+
placeholder: placeholder
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
export { AccessControl };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=AccessControl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/config/fields/AccessControl.js","sources":["../../../../src/presentation/config/fields/AccessControl.tsx"],"sourcesContent":["import React from \"react\";\nimport { validation } from \"@webiny/validation\";\nimport { useBind } from \"@webiny/form\";\nimport { useFileManagerPresenter } from \"~/presentation/FileList/FileManagerPresenterProvider.js\";\nimport { useAccessControlField } from \"./useAccessControlField.js\";\nimport { useFileOrUndefined } from \"~/presentation/config/fields/useFileOrUndefined.js\";\nimport { Label, Select } from \"@webiny/admin-ui\";\n\ninterface AccessControlProps {\n defaultValue?: string;\n placeholder?: string;\n}\n\nexport const AccessControl = ({ defaultValue, placeholder }: AccessControlProps) => {\n const { file } = useFileOrUndefined();\n const { vm } = useFileManagerPresenter();\n const accessControlField = useAccessControlField();\n\n /**\n * In reality, this condition will never happen, so we don't need to worry about hooks used further below.\n */\n if (!accessControlField) {\n return null;\n }\n\n const { options } = accessControlField;\n\n const bind = useBind({\n name: \"accessControl.type\",\n validators: [validation.create(\"required\")],\n defaultValue,\n beforeChange(value, cb) {\n cb(value === \"\" ? undefined : value);\n }\n });\n\n return (\n <Select\n {...bind}\n value={bind.value || defaultValue}\n label={<Label text={\"Access Control\"} hint={\"Control who can access this file.\"} />}\n options={options || []}\n disabled={file ? !vm.permissions.canEditFile(file) : false}\n placeholder={placeholder}\n />\n );\n};\n"],"names":["AccessControl","defaultValue","placeholder","file","useFileOrUndefined","vm","useFileManagerPresenter","accessControlField","useAccessControlField","options","bind","useBind","validation","value","cb","undefined","Select","Label"],"mappings":";;;;;;;AAaO,MAAMA,gBAAgB,CAAC,EAAEC,YAAY,EAAEC,WAAW,EAAsB;IAC3E,MAAM,EAAEC,IAAI,EAAE,GAAGC;IACjB,MAAM,EAAEC,EAAE,EAAE,GAAGC;IACf,MAAMC,qBAAqBC;IAK3B,IAAI,CAACD,oBACD,OAAO;IAGX,MAAM,EAAEE,OAAO,EAAE,GAAGF;IAEpB,MAAMG,OAAOC,QAAQ;QACjB,MAAM;QACN,YAAY;YAACC,WAAW,MAAM,CAAC;SAAY;QAC3CX;QACA,cAAaY,KAAK,EAAEC,EAAE;YAClBA,GAAGD,AAAU,OAAVA,QAAeE,SAAYF;QAClC;IACJ;IAEA,OAAO,WAAP,GACI,oBAACG,QAAMA;QACF,GAAGN,IAAI;QACR,OAAOA,KAAK,KAAK,IAAIT;QACrB,qBAAO,oBAACgB,OAAKA;YAAC,MAAM;YAAkB,MAAM;;QAC5C,SAASR,WAAW,EAAE;QACtB,UAAUN,OAAO,CAACE,GAAG,WAAW,CAAC,WAAW,CAACF,QAAQ;QACrD,aAAaD;;AAGzB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import react, { useMemo } from "react";
|
|
2
|
+
import { Label, MultiAutoComplete } from "@webiny/admin-ui";
|
|
3
|
+
import { useBind } from "@webiny/form";
|
|
4
|
+
import { useFileManagerPresenter } from "../../FileList/FileManagerPresenterProvider.js";
|
|
5
|
+
import { THREAT_SCAN } from "../../../modules/Enterprise/constants.js";
|
|
6
|
+
import { useFileOrUndefined } from "./useFileOrUndefined.js";
|
|
7
|
+
const Tags = ()=>{
|
|
8
|
+
const { file } = useFileOrUndefined();
|
|
9
|
+
const { vm } = useFileManagerPresenter();
|
|
10
|
+
const bind = useBind({
|
|
11
|
+
name: "tags"
|
|
12
|
+
});
|
|
13
|
+
const values = useMemo(()=>(bind.value || []).filter((tag)=>!tag.startsWith("mime:") || tag !== THREAT_SCAN.IN_PROGRESS), [
|
|
14
|
+
bind.value
|
|
15
|
+
]);
|
|
16
|
+
return /*#__PURE__*/ react.createElement(MultiAutoComplete, {
|
|
17
|
+
...bind,
|
|
18
|
+
values: values,
|
|
19
|
+
onValuesChange: bind.onChange,
|
|
20
|
+
options: vm.tags.map((tagItem)=>tagItem.tag),
|
|
21
|
+
label: /*#__PURE__*/ react.createElement(Label, {
|
|
22
|
+
text: "Tags",
|
|
23
|
+
hint: "Type to add a new tag or select from suggestions."
|
|
24
|
+
}),
|
|
25
|
+
uniqueValues: true,
|
|
26
|
+
allowFreeInput: true,
|
|
27
|
+
disabled: file ? !vm.permissions.canEditFile(file) : false
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
export { Tags };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=Tags.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/config/fields/Tags.js","sources":["../../../../src/presentation/config/fields/Tags.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { Label, MultiAutoComplete } from \"@webiny/admin-ui\";\nimport { useBind } from \"@webiny/form\";\nimport { useFileManagerPresenter } from \"~/presentation/FileList/FileManagerPresenterProvider.js\";\nimport { THREAT_SCAN } from \"~/modules/Enterprise/constants.js\";\nimport { useFileOrUndefined } from \"./useFileOrUndefined.js\";\n\nexport const Tags = () => {\n const { file } = useFileOrUndefined();\n const { vm } = useFileManagerPresenter();\n\n const bind = useBind({\n name: \"tags\"\n });\n\n const values = useMemo(() => {\n return (bind.value || []).filter((tag: string) => {\n return !tag.startsWith(\"mime:\") || tag !== THREAT_SCAN.IN_PROGRESS;\n });\n }, [bind.value]);\n\n return (\n <MultiAutoComplete\n {...bind}\n values={values}\n onValuesChange={bind.onChange}\n options={vm.tags.map(tagItem => tagItem.tag)}\n label={\n <Label text={\"Tags\"} hint={\"Type to add a new tag or select from suggestions.\"} />\n }\n uniqueValues={true}\n allowFreeInput={true}\n disabled={file ? !vm.permissions.canEditFile(file) : false}\n />\n );\n};\n"],"names":["Tags","file","useFileOrUndefined","vm","useFileManagerPresenter","bind","useBind","values","useMemo","tag","THREAT_SCAN","MultiAutoComplete","tagItem","Label"],"mappings":";;;;;;AAOO,MAAMA,OAAO;IAChB,MAAM,EAAEC,IAAI,EAAE,GAAGC;IACjB,MAAM,EAAEC,EAAE,EAAE,GAAGC;IAEf,MAAMC,OAAOC,QAAQ;QACjB,MAAM;IACV;IAEA,MAAMC,SAASC,QAAQ,IACXH,AAAAA,CAAAA,KAAK,KAAK,IAAI,EAAC,EAAG,MAAM,CAAC,CAACI,MACvB,CAACA,IAAI,UAAU,CAAC,YAAYA,QAAQC,YAAY,WAAW,GAEvE;QAACL,KAAK,KAAK;KAAC;IAEf,OAAO,WAAP,GACI,oBAACM,mBAAiBA;QACb,GAAGN,IAAI;QACR,QAAQE;QACR,gBAAgBF,KAAK,QAAQ;QAC7B,SAASF,GAAG,IAAI,CAAC,GAAG,CAACS,CAAAA,UAAWA,QAAQ,GAAG;QAC3C,qBACI,oBAACC,OAAKA;YAAC,MAAM;YAAQ,MAAM;;QAE/B,cAAc;QACd,gBAAgB;QAChB,UAAUZ,OAAO,CAACE,GAAG,WAAW,CAAC,WAAW,CAACF,QAAQ;;AAGjE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useMemo } from "react";
|
|
2
|
+
import { useFileManagerPresenter } from "../../FileList/FileManagerPresenterProvider.js";
|
|
3
|
+
const useAccessControlField = ()=>{
|
|
4
|
+
const { vm } = useFileManagerPresenter();
|
|
5
|
+
const model = vm.fileModel;
|
|
6
|
+
if (!model) return null;
|
|
7
|
+
const accessControlField = useMemo(()=>model.fields.find((field)=>"accessControl" === field.fieldId), []);
|
|
8
|
+
if (!accessControlField || !accessControlField.settings) return null;
|
|
9
|
+
const typeField = accessControlField.settings.fields?.find((field)=>"type" === field.fieldId);
|
|
10
|
+
if (!typeField) return null;
|
|
11
|
+
const options = useMemo(()=>(typeField.predefinedValues?.values || []).map((pv)=>({
|
|
12
|
+
value: pv.value,
|
|
13
|
+
label: pv.label
|
|
14
|
+
})), []);
|
|
15
|
+
return {
|
|
16
|
+
options
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export { useAccessControlField };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=useAccessControlField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/config/fields/useAccessControlField.js","sources":["../../../../src/presentation/config/fields/useAccessControlField.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport type { Select } from \"@webiny/admin-ui\";\nimport { useFileManagerPresenter } from \"~/presentation/FileList/FileManagerPresenterProvider.js\";\n\ninterface AccessControlField {\n options: React.ComponentProps<typeof Select>[\"options\"];\n}\n\nexport const useAccessControlField = (): AccessControlField | null => {\n const { vm } = useFileManagerPresenter();\n const model = vm.fileModel;\n\n if (!model) {\n return null;\n }\n\n const accessControlField = useMemo(\n () => model.fields.find(field => field.fieldId === \"accessControl\"),\n []\n );\n\n if (!accessControlField || !accessControlField.settings) {\n return null;\n }\n\n const typeField = accessControlField.settings.fields?.find(field => field.fieldId === \"type\");\n\n if (!typeField) {\n return null;\n }\n\n const options = useMemo(() => {\n return (typeField.predefinedValues?.values || []).map(pv => {\n return {\n value: pv.value,\n label: pv.label\n };\n });\n }, []);\n\n return { options };\n};\n"],"names":["useAccessControlField","vm","useFileManagerPresenter","model","accessControlField","useMemo","field","typeField","options","pv"],"mappings":";;AAQO,MAAMA,wBAAwB;IACjC,MAAM,EAAEC,EAAE,EAAE,GAAGC;IACf,MAAMC,QAAQF,GAAG,SAAS;IAE1B,IAAI,CAACE,OACD,OAAO;IAGX,MAAMC,qBAAqBC,QACvB,IAAMF,MAAM,MAAM,CAAC,IAAI,CAACG,CAAAA,QAASA,AAAkB,oBAAlBA,MAAM,OAAO,GAC9C,EAAE;IAGN,IAAI,CAACF,sBAAsB,CAACA,mBAAmB,QAAQ,EACnD,OAAO;IAGX,MAAMG,YAAYH,mBAAmB,QAAQ,CAAC,MAAM,EAAE,KAAKE,CAAAA,QAASA,AAAkB,WAAlBA,MAAM,OAAO;IAEjF,IAAI,CAACC,WACD,OAAO;IAGX,MAAMC,UAAUH,QAAQ,IACZE,AAAAA,CAAAA,UAAU,gBAAgB,EAAE,UAAU,EAAC,EAAG,GAAG,CAACE,CAAAA,KAC3C;gBACH,OAAOA,GAAG,KAAK;gBACf,OAAOA,GAAG,KAAK;YACnB,KAEL,EAAE;IAEL,OAAO;QAAED;IAAQ;AACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/config/fields/useFileOrUndefined.js","sources":["../../../../src/presentation/config/fields/useFileOrUndefined.ts"],"sourcesContent":["import { useFile } from \"~/presentation/hooks/useFile.js\";\n\nexport function useFileOrUndefined() {\n try {\n return useFile();\n } catch {\n return { file: undefined };\n }\n}\n"],"names":["useFileOrUndefined","useFile","undefined"],"mappings":";AAEO,SAASA;IACZ,IAAI;QACA,OAAOC;IACX,EAAE,OAAM;QACJ,OAAO;YAAE,MAAMC;QAAU;IAC7B;AACJ"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { minimatch } from "minimatch";
|
|
2
|
+
const getThumbnailRenderer = (renderers, file)=>{
|
|
3
|
+
const regExMatch = /\*/g;
|
|
4
|
+
const types = renderers.sort((a, b)=>{
|
|
5
|
+
const countA = (a.type.match(regExMatch) || []).length;
|
|
6
|
+
const countB = (b.type.match(regExMatch) || []).length;
|
|
7
|
+
if (countB > countA) return -1;
|
|
8
|
+
if (countB < countA) return 1;
|
|
9
|
+
return 0;
|
|
10
|
+
});
|
|
11
|
+
const renderer = types.find((type)=>minimatch(file.type, type.type));
|
|
12
|
+
return renderer;
|
|
13
|
+
};
|
|
14
|
+
export { getThumbnailRenderer };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=getThumbnailRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/config/getThumbnailRenderer.js","sources":["../../../src/presentation/config/getThumbnailRenderer.ts"],"sourcesContent":["import { minimatch } from \"minimatch\";\nimport type { FileItem } from \"~/domain/types.js\";\n\nexport const getThumbnailRenderer = <T extends { type: string }>(\n renderers: T[],\n file: FileItem\n): T => {\n // Sort by type and by priority. More occurrences of `*` means lower priority.\n const regExMatch = /\\*/g;\n\n const types = renderers.sort((a, b) => {\n const countA = (a.type.match(regExMatch) || []).length;\n const countB = (b.type.match(regExMatch) || []).length;\n if (countB > countA) {\n return -1;\n } else if (countB < countA) {\n return 1;\n }\n return 0;\n });\n\n // Find first matching type\n const renderer = types.find(type => minimatch(file.type, type.type));\n\n return renderer!;\n};\n"],"names":["getThumbnailRenderer","renderers","file","regExMatch","types","a","b","countA","countB","renderer","type","minimatch"],"mappings":";AAGO,MAAMA,uBAAuB,CAChCC,WACAC;IAGA,MAAMC,aAAa;IAEnB,MAAMC,QAAQH,UAAU,IAAI,CAAC,CAACI,GAAGC;QAC7B,MAAMC,SAAUF,AAAAA,CAAAA,EAAE,IAAI,CAAC,KAAK,CAACF,eAAe,EAAC,EAAG,MAAM;QACtD,MAAMK,SAAUF,AAAAA,CAAAA,EAAE,IAAI,CAAC,KAAK,CAACH,eAAe,EAAC,EAAG,MAAM;QACtD,IAAIK,SAASD,QACT,OAAO;QACJ,IAAIC,SAASD,QAChB,OAAO;QAEX,OAAO;IACX;IAGA,MAAME,WAAWL,MAAM,IAAI,CAACM,CAAAA,OAAQC,UAAUT,KAAK,IAAI,EAAEQ,KAAK,IAAI;IAElE,OAAOD;AACX"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactComponent } from "@webiny/icons/hide_image.svg";
|
|
2
|
+
import * as __rspack_external_react from "react";
|
|
3
|
+
const FilePreviewDefaultRenderer = ()=>/*#__PURE__*/ __rspack_external_react.createElement("div", {
|
|
4
|
+
className: "fill-neutral-strong"
|
|
5
|
+
}, /*#__PURE__*/ __rspack_external_react.createElement(ReactComponent, {
|
|
6
|
+
width: 48,
|
|
7
|
+
height: 48
|
|
8
|
+
}));
|
|
9
|
+
export { FilePreviewDefaultRenderer };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=FilePreviewDefaultRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/config/thumbnailRenderers/FilePreviewDefaultRenderer.js","sources":["../../../../src/presentation/config/thumbnailRenderers/FilePreviewDefaultRenderer.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { ReactComponent as HideImageIcon } from \"@webiny/icons/hide_image.svg\";\n\nexport const FilePreviewDefaultRenderer = () => {\n return (\n <div className={\"fill-neutral-strong\"}>\n <HideImageIcon width={48} height={48} />\n </div>\n );\n};\n"],"names":["FilePreviewDefaultRenderer","HideImageIcon"],"mappings":";;AAGO,MAAMA,6BAA6B,IAC/B,WAAP,GACI,sCAAC;QAAI,WAAW;qBACZ,sCAACC,gBAAaA;QAAC,OAAO;QAAI,QAAQ"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Image } from "@webiny/app/components/index.js";
|
|
2
|
+
import { useFile } from "../../hooks/useFile.js";
|
|
3
|
+
import * as __rspack_external_react from "react";
|
|
4
|
+
const width750 = {
|
|
5
|
+
width: 750
|
|
6
|
+
};
|
|
7
|
+
const FilePreviewImageRenderer = ()=>{
|
|
8
|
+
const { file } = useFile();
|
|
9
|
+
return /*#__PURE__*/ __rspack_external_react.createElement(Image, {
|
|
10
|
+
src: file.src,
|
|
11
|
+
alt: file.name,
|
|
12
|
+
transform: width750,
|
|
13
|
+
className: "object-contain max-w-full max-h-full"
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
export { FilePreviewImageRenderer };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=FilePreviewImageRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/config/thumbnailRenderers/FilePreviewImageRenderer.js","sources":["../../../../src/presentation/config/thumbnailRenderers/FilePreviewImageRenderer.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Image } from \"@webiny/app/components/index.js\";\nimport { useFile } from \"~/presentation/hooks/useFile.js\";\n\nconst width750 = { width: 750 };\n\nexport const FilePreviewImageRenderer = () => {\n const { file } = useFile();\n return (\n <Image\n src={file.src}\n alt={file.name}\n transform={width750}\n className={\"object-contain max-w-full max-h-full\"}\n />\n );\n};\n"],"names":["width750","FilePreviewImageRenderer","file","useFile","Image"],"mappings":";;;AAIA,MAAMA,WAAW;IAAE,OAAO;AAAI;AAEvB,MAAMC,2BAA2B;IACpC,MAAM,EAAEC,IAAI,EAAE,GAAGC;IACjB,OAAO,WAAP,GACI,sCAACC,OAAKA;QACF,KAAKF,KAAK,GAAG;QACb,KAAKA,KAAK,IAAI;QACd,WAAWF;QACX,WAAW;;AAGvB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactComponent } from "@webiny/icons/hide_image.svg";
|
|
2
|
+
import * as __rspack_external_react from "react";
|
|
3
|
+
const GridItemDefaultRenderer = ()=>/*#__PURE__*/ __rspack_external_react.createElement("div", {
|
|
4
|
+
className: "fill-neutral-strong"
|
|
5
|
+
}, /*#__PURE__*/ __rspack_external_react.createElement(ReactComponent, {
|
|
6
|
+
width: 48,
|
|
7
|
+
height: 48
|
|
8
|
+
}));
|
|
9
|
+
export { GridItemDefaultRenderer };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=GridItemDefaultRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/config/thumbnailRenderers/GridItemDefaultRenderer.js","sources":["../../../../src/presentation/config/thumbnailRenderers/GridItemDefaultRenderer.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { ReactComponent as HideImageIcon } from \"@webiny/icons/hide_image.svg\";\n\nexport const GridItemDefaultRenderer = () => {\n return (\n <div className={\"fill-neutral-strong\"}>\n <HideImageIcon width={48} height={48} />\n </div>\n );\n};\n"],"names":["GridItemDefaultRenderer","HideImageIcon"],"mappings":";;AAGO,MAAMA,0BAA0B,IAC5B,WAAP,GACI,sCAAC;QAAI,WAAW;qBACZ,sCAACC,gBAAaA;QAAC,OAAO;QAAI,QAAQ"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Image } from "@webiny/app/components/index.js";
|
|
2
|
+
import { useFile } from "../../hooks/useFile.js";
|
|
3
|
+
import * as __rspack_external_react from "react";
|
|
4
|
+
const width300 = {
|
|
5
|
+
width: 300
|
|
6
|
+
};
|
|
7
|
+
const GridItemImageRenderer = ()=>{
|
|
8
|
+
const { file } = useFile();
|
|
9
|
+
return /*#__PURE__*/ __rspack_external_react.createElement(Image, {
|
|
10
|
+
src: file.src,
|
|
11
|
+
alt: file.name,
|
|
12
|
+
transform: width300,
|
|
13
|
+
className: "object-contain max-w-full max-h-full"
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
export { GridItemImageRenderer };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=GridItemImageRenderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/config/thumbnailRenderers/GridItemImageRenderer.js","sources":["../../../../src/presentation/config/thumbnailRenderers/GridItemImageRenderer.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Image } from \"@webiny/app/components/index.js\";\nimport { useFile } from \"~/presentation/hooks/useFile.js\";\n\nconst width300 = { width: 300 };\n\nexport const GridItemImageRenderer = () => {\n const { file } = useFile();\n return (\n <Image\n src={file.src}\n alt={file.name}\n transform={width300}\n className={\"object-contain max-w-full max-h-full\"}\n />\n );\n};\n"],"names":["width300","GridItemImageRenderer","file","useFile","Image"],"mappings":";;;AAIA,MAAMA,WAAW;IAAE,OAAO;AAAI;AAEvB,MAAMC,wBAAwB;IACjC,MAAM,EAAEC,IAAI,EAAE,GAAGC;IACjB,OAAO,WAAP,GACI,sCAACC,OAAKA;QACF,KAAKF,KAAK,GAAG;QACb,KAAKA,KAAK,IAAI;QACd,WAAWF;QACX,WAAW;;AAGvB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactComponent } from "@webiny/icons/hide_image.svg";
|
|
2
|
+
import { useFile } from "../../hooks/useFile.js";
|
|
3
|
+
import { Icon } from "@webiny/admin-ui";
|
|
4
|
+
import * as __rspack_external_react from "react";
|
|
5
|
+
const TableItemDefaultRenderer = ()=>{
|
|
6
|
+
const { file } = useFile();
|
|
7
|
+
return /*#__PURE__*/ __rspack_external_react.createElement("div", {
|
|
8
|
+
className: "w-full h-full flex items-center justify-center"
|
|
9
|
+
}, /*#__PURE__*/ __rspack_external_react.createElement(Icon, {
|
|
10
|
+
color: "neutral-light",
|
|
11
|
+
size: "md",
|
|
12
|
+
icon: /*#__PURE__*/ __rspack_external_react.createElement(ReactComponent, null),
|
|
13
|
+
label: file.name
|
|
14
|
+
}));
|
|
15
|
+
};
|
|
16
|
+
export { TableItemDefaultRenderer };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=TableItemDefaultRenderer.js.map
|