@webiny/app-file-manager 6.3.0 → 6.4.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1128) hide show
  1. package/app.js +48 -14
  2. package/app.js.map +1 -1
  3. package/domain/constants.js +7 -0
  4. package/domain/constants.js.map +1 -0
  5. package/domain/permissionsSchema.js +28 -17
  6. package/domain/permissionsSchema.js.map +1 -1
  7. package/domain/tagsHelpers.js +25 -0
  8. package/domain/tagsHelpers.js.map +1 -0
  9. package/domain/types.d.ts +34 -0
  10. package/domain/types.js +0 -0
  11. package/features/deleteFile/DeleteFile.test.js +150 -0
  12. package/features/deleteFile/DeleteFile.test.js.map +1 -0
  13. package/features/deleteFile/DeleteFileGateway.d.ts +11 -0
  14. package/features/deleteFile/DeleteFileGateway.js +23 -0
  15. package/features/deleteFile/DeleteFileGateway.js.map +1 -0
  16. package/features/deleteFile/DeleteFileRepository.d.ts +12 -0
  17. package/features/deleteFile/DeleteFileRepository.js +26 -0
  18. package/features/deleteFile/DeleteFileRepository.js.map +1 -0
  19. package/features/deleteFile/DeleteFileUseCase.d.ts +10 -0
  20. package/features/deleteFile/DeleteFileUseCase.js +34 -0
  21. package/features/deleteFile/DeleteFileUseCase.js.map +1 -0
  22. package/features/deleteFile/abstractions.d.ts +36 -0
  23. package/features/deleteFile/abstractions.js +7 -0
  24. package/features/deleteFile/abstractions.js.map +1 -0
  25. package/features/deleteFile/feature.d.ts +3 -0
  26. package/features/deleteFile/feature.js +21 -0
  27. package/features/deleteFile/feature.js.map +1 -0
  28. package/features/deleteFile/index.d.ts +3 -0
  29. package/features/deleteFile/index.js +2 -0
  30. package/features/fileModel/FileModelProvider.d.ts +12 -0
  31. package/features/fileModel/FileModelProvider.js +21 -0
  32. package/features/fileModel/FileModelProvider.js.map +1 -0
  33. package/features/fileModel/GetFileModelGqlGateway.d.ts +12 -0
  34. package/features/fileModel/GetFileModelGqlGateway.js +38 -0
  35. package/features/fileModel/GetFileModelGqlGateway.js.map +1 -0
  36. package/features/fileModel/GetFileModelRepository.d.ts +14 -0
  37. package/features/fileModel/GetFileModelRepository.js +32 -0
  38. package/features/fileModel/GetFileModelRepository.js.map +1 -0
  39. package/features/fileModel/abstractions.d.ts +24 -0
  40. package/features/fileModel/abstractions.js +7 -0
  41. package/features/fileModel/abstractions.js.map +1 -0
  42. package/features/fileModel/feature.d.ts +1 -0
  43. package/features/fileModel/feature.js +15 -0
  44. package/features/fileModel/feature.js.map +1 -0
  45. package/features/fileModel/index.d.ts +2 -0
  46. package/features/fileModel/index.js +2 -0
  47. package/features/fileUploader/FileUploader.d.ts +22 -0
  48. package/features/fileUploader/FileUploader.js +239 -0
  49. package/features/fileUploader/FileUploader.js.map +1 -0
  50. package/features/fileUploader/FileUploader.test.js +425 -0
  51. package/features/fileUploader/FileUploader.test.js.map +1 -0
  52. package/features/fileUploader/abstractions.d.ts +51 -0
  53. package/features/fileUploader/abstractions.js +5 -0
  54. package/features/fileUploader/abstractions.js.map +1 -0
  55. package/features/fileUploader/feature.d.ts +3 -0
  56. package/features/fileUploader/feature.js +17 -0
  57. package/features/fileUploader/feature.js.map +1 -0
  58. package/features/fileUploader/index.d.ts +3 -0
  59. package/features/fileUploader/index.js +2 -0
  60. package/features/getFile/GetFileGateway.js +17 -16
  61. package/features/getFile/GetFileGateway.js.map +1 -1
  62. package/features/getFile/GetFileRepository.js +13 -10
  63. package/features/getFile/GetFileRepository.js.map +1 -1
  64. package/features/getFile/GetFileUseCase.js +28 -25
  65. package/features/getFile/GetFileUseCase.js.map +1 -1
  66. package/features/getFile/abstractions.js +4 -12
  67. package/features/getFile/abstractions.js.map +1 -1
  68. package/features/getFile/feature.js +15 -14
  69. package/features/getFile/feature.js.map +1 -1
  70. package/features/getFile/index.js +1 -3
  71. package/features/listFiles/ListFiles.test.js +192 -0
  72. package/features/listFiles/ListFiles.test.js.map +1 -0
  73. package/features/listFiles/ListFilesGateway.d.ts +11 -0
  74. package/features/listFiles/ListFilesGateway.js +32 -0
  75. package/features/listFiles/ListFilesGateway.js.map +1 -0
  76. package/features/listFiles/ListFilesRepository.d.ts +12 -0
  77. package/features/listFiles/ListFilesRepository.js +26 -0
  78. package/features/listFiles/ListFilesRepository.js.map +1 -0
  79. package/features/listFiles/ListFilesUseCase.d.ts +10 -0
  80. package/features/listFiles/ListFilesUseCase.js +28 -0
  81. package/features/listFiles/ListFilesUseCase.js.map +1 -0
  82. package/features/listFiles/abstractions.d.ts +45 -0
  83. package/features/listFiles/abstractions.js +7 -0
  84. package/features/listFiles/abstractions.js.map +1 -0
  85. package/features/listFiles/feature.d.ts +3 -0
  86. package/features/listFiles/feature.js +21 -0
  87. package/features/listFiles/feature.js.map +1 -0
  88. package/features/listFiles/index.d.ts +3 -0
  89. package/features/listFiles/index.js +2 -0
  90. package/features/permissions/abstractions.d.ts +2 -2
  91. package/features/permissions/abstractions.js +2 -1
  92. package/features/permissions/abstractions.js.map +1 -1
  93. package/features/permissions/feature.d.ts +2 -2
  94. package/features/permissions/feature.js +2 -1
  95. package/features/permissions/feature.js.map +1 -1
  96. package/features/resolveImageTool/ResolveImageTool.js +49 -0
  97. package/features/resolveImageTool/ResolveImageTool.js.map +1 -0
  98. package/features/resolveImageTool/feature.js +11 -0
  99. package/features/resolveImageTool/feature.js.map +1 -0
  100. package/features/settings/GetSettings.test.d.ts +1 -0
  101. package/features/settings/GetSettings.test.js +92 -0
  102. package/features/settings/GetSettings.test.js.map +1 -0
  103. package/features/settings/GetSettingsGateway.d.ts +12 -0
  104. package/features/settings/GetSettingsGateway.js +43 -0
  105. package/features/settings/GetSettingsGateway.js.map +1 -0
  106. package/features/settings/GetSettingsRepository.d.ts +14 -0
  107. package/features/settings/GetSettingsRepository.js +34 -0
  108. package/features/settings/GetSettingsRepository.js.map +1 -0
  109. package/features/settings/GetSettingsUseCase.d.ts +11 -0
  110. package/features/settings/GetSettingsUseCase.js +18 -0
  111. package/features/settings/GetSettingsUseCase.js.map +1 -0
  112. package/features/settings/SaveSettingsGateway.d.ts +12 -0
  113. package/features/settings/SaveSettingsGateway.js +50 -0
  114. package/features/settings/SaveSettingsGateway.js.map +1 -0
  115. package/features/settings/abstractions.d.ts +31 -0
  116. package/features/settings/abstractions.js +8 -0
  117. package/features/settings/abstractions.js.map +1 -0
  118. package/features/settings/feature.d.ts +3 -0
  119. package/features/settings/feature.js +23 -0
  120. package/features/settings/feature.js.map +1 -0
  121. package/features/settings/index.d.ts +3 -0
  122. package/features/settings/index.js +2 -0
  123. package/features/shared/FILE_FIELDS.js +31 -1
  124. package/features/shared/FILE_FIELDS.js.map +1 -1
  125. package/features/shared/FilesListCache.d.ts +1 -0
  126. package/features/shared/FilesListCache.js +1 -0
  127. package/features/shared/abstractions.d.ts +6 -0
  128. package/features/shared/abstractions.js +5 -0
  129. package/features/shared/abstractions.js.map +1 -0
  130. package/features/shared/feature.d.ts +4 -0
  131. package/features/shared/feature.js +17 -0
  132. package/features/shared/feature.js.map +1 -0
  133. package/features/shared/index.d.ts +4 -0
  134. package/features/shared/index.js +3 -0
  135. package/features/shared/types.js +0 -3
  136. package/features/tags/ListTags.test.d.ts +1 -0
  137. package/features/tags/ListTags.test.js +126 -0
  138. package/features/tags/ListTags.test.js.map +1 -0
  139. package/features/tags/ListTagsGateway.d.ts +11 -0
  140. package/features/tags/ListTagsGateway.js +23 -0
  141. package/features/tags/ListTagsGateway.js.map +1 -0
  142. package/features/tags/ListTagsRepository.d.ts +12 -0
  143. package/features/tags/ListTagsRepository.js +25 -0
  144. package/features/tags/ListTagsRepository.js.map +1 -0
  145. package/features/tags/ListTagsUseCase.d.ts +10 -0
  146. package/features/tags/ListTagsUseCase.js +20 -0
  147. package/features/tags/ListTagsUseCase.js.map +1 -0
  148. package/features/tags/abstractions.d.ts +32 -0
  149. package/features/tags/abstractions.js +7 -0
  150. package/features/tags/abstractions.js.map +1 -0
  151. package/features/tags/feature.d.ts +3 -0
  152. package/features/tags/feature.js +21 -0
  153. package/features/tags/feature.js.map +1 -0
  154. package/features/tags/index.d.ts +3 -0
  155. package/features/tags/index.js +2 -0
  156. package/features/updateFile/UpdateFile.test.d.ts +1 -0
  157. package/features/updateFile/UpdateFile.test.js +258 -0
  158. package/features/updateFile/UpdateFile.test.js.map +1 -0
  159. package/features/updateFile/UpdateFileGateway.d.ts +12 -0
  160. package/features/updateFile/UpdateFileGateway.js +25 -0
  161. package/features/updateFile/UpdateFileGateway.js.map +1 -0
  162. package/features/updateFile/UpdateFileRepository.d.ts +13 -0
  163. package/features/updateFile/UpdateFileRepository.js +30 -0
  164. package/features/updateFile/UpdateFileRepository.js.map +1 -0
  165. package/features/updateFile/UpdateFileUseCase.d.ts +10 -0
  166. package/features/updateFile/UpdateFileUseCase.js +38 -0
  167. package/features/updateFile/UpdateFileUseCase.js.map +1 -0
  168. package/features/updateFile/abstractions.d.ts +53 -0
  169. package/features/updateFile/abstractions.js +7 -0
  170. package/features/updateFile/abstractions.js.map +1 -0
  171. package/features/updateFile/feature.d.ts +3 -0
  172. package/features/updateFile/feature.js +21 -0
  173. package/features/updateFile/feature.js.map +1 -0
  174. package/features/updateFile/index.d.ts +3 -0
  175. package/features/updateFile/index.js +2 -0
  176. package/index.d.ts +3 -8
  177. package/index.js +3 -10
  178. package/modules/Enterprise/HandleWebsocketMessages.js +46 -50
  179. package/modules/Enterprise/HandleWebsocketMessages.js.map +1 -1
  180. package/modules/Enterprise/components/ThreatScanInProgressFileBody.js +19 -20
  181. package/modules/Enterprise/components/ThreatScanInProgressFileBody.js.map +1 -1
  182. package/modules/Enterprise/components/ThreatScanInProgressTableCell.js +15 -27
  183. package/modules/Enterprise/components/ThreatScanInProgressTableCell.js.map +1 -1
  184. package/modules/Enterprise/constants.js +3 -2
  185. package/modules/Enterprise/constants.js.map +1 -1
  186. package/modules/Enterprise/index.js +21 -31
  187. package/modules/Enterprise/index.js.map +1 -1
  188. package/modules/FileManagerRoutes.d.ts +2 -0
  189. package/modules/FileManagerRoutes.js +31 -0
  190. package/modules/FileManagerRoutes.js.map +1 -0
  191. package/modules/FileModelModule.d.ts +2 -0
  192. package/modules/FileModelModule.js +18 -0
  193. package/modules/FileModelModule.js.map +1 -0
  194. package/modules/HeadlessCms/fileField.js +38 -34
  195. package/modules/HeadlessCms/fileField.js.map +1 -1
  196. package/modules/HeadlessCms/fileRenderer/fileField.js +43 -61
  197. package/modules/HeadlessCms/fileRenderer/fileField.js.map +1 -1
  198. package/modules/HeadlessCms/fileRenderer/fileFields.js +60 -92
  199. package/modules/HeadlessCms/fileRenderer/fileFields.js.map +1 -1
  200. package/modules/HeadlessCms/fileRenderer/utils.js +13 -4
  201. package/modules/HeadlessCms/fileRenderer/utils.js.map +1 -1
  202. package/modules/HeadlessCms/index.js +6 -5
  203. package/modules/HeadlessCms/index.js.map +1 -1
  204. package/modules/SecurityPermissions.js +11 -14
  205. package/modules/SecurityPermissions.js.map +1 -1
  206. package/modules/Settings/assets/icons/folder-open.js +19 -0
  207. package/modules/Settings/assets/icons/folder-open.js.map +1 -0
  208. package/modules/Settings/graphql.js +6 -5
  209. package/modules/Settings/graphql.js.map +1 -1
  210. package/modules/Settings/index.js +23 -28
  211. package/modules/Settings/index.js.map +1 -1
  212. package/modules/Settings/views/FileManagerSettings.js +121 -139
  213. package/modules/Settings/views/FileManagerSettings.js.map +1 -1
  214. package/package.json +23 -27
  215. package/presentation/FileActions/FileDetails/CopyUrl.js +19 -0
  216. package/presentation/FileActions/FileDetails/CopyUrl.js.map +1 -0
  217. package/presentation/FileActions/FileDetails/DeleteImage.js +24 -0
  218. package/presentation/FileActions/FileDetails/DeleteImage.js.map +1 -0
  219. package/presentation/FileActions/FileDetails/Download.js +19 -0
  220. package/presentation/FileActions/FileDetails/Download.js.map +1 -0
  221. package/presentation/FileActions/FileDetails/MoveToFolder.js +16 -0
  222. package/presentation/FileActions/FileDetails/MoveToFolder.js.map +1 -0
  223. package/presentation/FileActions/Grid/Delete.js +23 -0
  224. package/presentation/FileActions/Grid/Delete.js.map +1 -0
  225. package/presentation/FileActions/Grid/Download.js +19 -0
  226. package/presentation/FileActions/Grid/Download.js.map +1 -0
  227. package/presentation/FileActions/Grid/MoveToFolder.js +16 -0
  228. package/presentation/FileActions/Grid/MoveToFolder.js.map +1 -0
  229. package/presentation/FileActions/Grid/Settings.js +23 -0
  230. package/presentation/FileActions/Grid/Settings.js.map +1 -0
  231. package/presentation/FileActions/index.js +39 -0
  232. package/presentation/FileActions/index.js.map +1 -0
  233. package/presentation/FileDetails/FileDetailsPresenter.d.ts +28 -0
  234. package/presentation/FileDetails/FileDetailsPresenter.js +138 -0
  235. package/presentation/FileDetails/FileDetailsPresenter.js.map +1 -0
  236. package/presentation/FileDetails/FileDetailsPresenter.test.d.ts +1 -0
  237. package/presentation/FileDetails/FileDetailsPresenter.test.js +280 -0
  238. package/presentation/FileDetails/FileDetailsPresenter.test.js.map +1 -0
  239. package/presentation/FileDetails/abstractions.d.ts +22 -0
  240. package/presentation/FileDetails/abstractions.js +5 -0
  241. package/presentation/FileDetails/abstractions.js.map +1 -0
  242. package/presentation/FileDetails/components/ActionButton.js +15 -0
  243. package/presentation/FileDetails/components/ActionButton.js.map +1 -0
  244. package/presentation/FileDetails/components/Actions.js +13 -0
  245. package/presentation/FileDetails/components/Actions.js.map +1 -0
  246. package/presentation/FileDetails/components/Content.js +20 -0
  247. package/presentation/FileDetails/components/Content.js.map +1 -0
  248. package/presentation/FileDetails/components/CreatedOn.js +21 -0
  249. package/presentation/FileDetails/components/CreatedOn.js.map +1 -0
  250. package/presentation/FileDetails/components/Description.js +16 -0
  251. package/presentation/FileDetails/components/Description.js.map +1 -0
  252. package/presentation/FileDetails/components/FileDetailsDrawer.d.ts +4 -0
  253. package/presentation/FileDetails/components/FileDetailsDrawer.js +73 -0
  254. package/presentation/FileDetails/components/FileDetailsDrawer.js.map +1 -0
  255. package/presentation/FileDetails/components/Preview.js +15 -0
  256. package/presentation/FileDetails/components/Preview.js.map +1 -0
  257. package/presentation/FileDetails/components/Thumbnail.js +12 -0
  258. package/presentation/FileDetails/components/Thumbnail.js.map +1 -0
  259. package/presentation/FileDetails/feature.d.ts +3 -0
  260. package/presentation/FileDetails/feature.js +17 -0
  261. package/presentation/FileDetails/feature.js.map +1 -0
  262. package/presentation/FileDetails/index.d.ts +3 -0
  263. package/presentation/FileDetails/index.js +2 -0
  264. package/presentation/FileList/FileListDataSource.d.ts +20 -0
  265. package/presentation/FileList/FileListDataSource.js +122 -0
  266. package/presentation/FileList/FileListDataSource.js.map +1 -0
  267. package/presentation/FileList/FileListPresenter.test.d.ts +1 -0
  268. package/presentation/FileList/FileListPresenter.test.js +424 -0
  269. package/presentation/FileList/FileListPresenter.test.js.map +1 -0
  270. package/presentation/FileList/FileManagerPresenter.d.ts +43 -0
  271. package/presentation/FileList/FileManagerPresenter.js +213 -0
  272. package/presentation/FileList/FileManagerPresenter.js.map +1 -0
  273. package/presentation/FileList/FileManagerPresenterProvider.d.ts +9 -0
  274. package/presentation/FileList/FileManagerPresenterProvider.js +13 -0
  275. package/presentation/FileList/FileManagerPresenterProvider.js.map +1 -0
  276. package/presentation/FileList/abstractions.d.ts +76 -0
  277. package/presentation/FileList/abstractions.js +5 -0
  278. package/presentation/FileList/abstractions.js.map +1 -0
  279. package/presentation/FileList/components/BottomInfoBar/BottomInfoBar.js +12 -0
  280. package/presentation/FileList/components/BottomInfoBar/BottomInfoBar.js.map +1 -0
  281. package/presentation/FileList/components/BottomInfoBar/ListStatus.js +20 -0
  282. package/presentation/FileList/components/BottomInfoBar/ListStatus.js.map +1 -0
  283. package/presentation/FileList/components/BottomInfoBar/SupportedFileTypes.js +56 -0
  284. package/presentation/FileList/components/BottomInfoBar/SupportedFileTypes.js.map +1 -0
  285. package/presentation/FileList/components/BottomInfoBar/index.js +1 -0
  286. package/presentation/FileList/components/BulkActions/ActionEdit.types.d.ts +2 -0
  287. package/presentation/FileList/components/BulkActions/ActionEdit.types.js +0 -0
  288. package/presentation/FileList/components/BulkActions/ActionEditPresenter.d.ts +35 -0
  289. package/presentation/FileList/components/BulkActions/ActionEditPresenter.js +55 -0
  290. package/presentation/FileList/components/BulkActions/ActionEditPresenter.js.map +1 -0
  291. package/presentation/FileList/components/BulkActions/ActionEditPresenter.test.d.ts +1 -0
  292. package/presentation/FileList/components/BulkActions/ActionEditPresenter.test.js +170 -0
  293. package/presentation/FileList/components/BulkActions/ActionEditPresenter.test.js.map +1 -0
  294. package/presentation/FileList/components/BulkActions/BatchEditorDialog/AddOperation.js +15 -0
  295. package/presentation/FileList/components/BulkActions/BatchEditorDialog/AddOperation.js.map +1 -0
  296. package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditor.d.ts +15 -0
  297. package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditor.js +44 -0
  298. package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditor.js.map +1 -0
  299. package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialog.d.ts +15 -0
  300. package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialog.js +52 -0
  301. package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialog.js.map +1 -0
  302. package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialogPresenter.d.ts +61 -0
  303. package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialogPresenter.js +111 -0
  304. package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialogPresenter.js.map +1 -0
  305. package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialogPresenter.test.d.ts +1 -0
  306. package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialogPresenter.test.js +372 -0
  307. package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialogPresenter.test.js.map +1 -0
  308. package/presentation/FileList/components/BulkActions/BatchEditorDialog/FieldRenderer.d.ts +8 -0
  309. package/presentation/FileList/components/BulkActions/BatchEditorDialog/FieldRenderer.js +31 -0
  310. package/presentation/FileList/components/BulkActions/BatchEditorDialog/FieldRenderer.js.map +1 -0
  311. package/presentation/FileList/components/BulkActions/BatchEditorDialog/Operation.d.ts +11 -0
  312. package/presentation/FileList/components/BulkActions/BatchEditorDialog/Operation.js +33 -0
  313. package/presentation/FileList/components/BulkActions/BatchEditorDialog/Operation.js.map +1 -0
  314. package/presentation/FileList/components/BulkActions/BatchEditorDialog/index.js +1 -0
  315. package/presentation/FileList/components/BulkActions/BulkActionBar.d.ts +5 -0
  316. package/presentation/FileList/components/BulkActions/BulkActionBar.js +42 -0
  317. package/presentation/FileList/components/BulkActions/BulkActionBar.js.map +1 -0
  318. package/presentation/FileList/components/BulkActions/BulkActionDelete.d.ts +4 -0
  319. package/presentation/FileList/components/BulkActions/BulkActionDelete.js +65 -0
  320. package/presentation/FileList/components/BulkActions/BulkActionDelete.js.map +1 -0
  321. package/presentation/FileList/components/BulkActions/BulkActionEdit.d.ts +4 -0
  322. package/presentation/FileList/components/BulkActions/BulkActionEdit.js +105 -0
  323. package/presentation/FileList/components/BulkActions/BulkActionEdit.js.map +1 -0
  324. package/presentation/FileList/components/BulkActions/BulkActionMove.d.ts +4 -0
  325. package/presentation/FileList/components/BulkActions/BulkActionMove.js +87 -0
  326. package/presentation/FileList/components/BulkActions/BulkActionMove.js.map +1 -0
  327. package/presentation/FileList/components/BulkActions/GraphQLInputMapper.d.ts +23 -0
  328. package/presentation/FileList/components/BulkActions/GraphQLInputMapper.js +40 -0
  329. package/presentation/FileList/components/BulkActions/GraphQLInputMapper.js.map +1 -0
  330. package/presentation/FileList/components/BulkActions/GraphQLInputMapper.test.d.ts +1 -0
  331. package/presentation/FileList/components/BulkActions/GraphQLInputMapper.test.js +319 -0
  332. package/presentation/FileList/components/BulkActions/GraphQLInputMapper.test.js.map +1 -0
  333. package/presentation/FileList/components/BulkActions/domain/Batch.js +32 -0
  334. package/presentation/FileList/components/BulkActions/domain/Batch.js.map +1 -0
  335. package/presentation/FileList/components/BulkActions/domain/BatchMapper.js +14 -0
  336. package/presentation/FileList/components/BulkActions/domain/BatchMapper.js.map +1 -0
  337. package/presentation/FileList/components/BulkActions/domain/Field.js +49 -0
  338. package/presentation/FileList/components/BulkActions/domain/Field.js.map +1 -0
  339. package/presentation/FileList/components/BulkActions/domain/FieldMapper.js +21 -0
  340. package/presentation/FileList/components/BulkActions/domain/FieldMapper.js.map +1 -0
  341. package/presentation/FileList/components/BulkActions/domain/index.js +4 -0
  342. package/presentation/FileList/components/BulkActions/index.d.ts +5 -0
  343. package/presentation/FileList/components/BulkActions/index.js +5 -0
  344. package/presentation/FileList/components/BulkActions/useBulkActionWorker.d.ts +16 -0
  345. package/presentation/FileList/components/BulkActions/useBulkActionWorker.js +43 -0
  346. package/presentation/FileList/components/BulkActions/useBulkActionWorker.js.map +1 -0
  347. package/presentation/FileList/components/Empty/Empty.d.ts +8 -0
  348. package/presentation/FileList/components/Empty/Empty.js +20 -0
  349. package/presentation/FileList/components/Empty/Empty.js.map +1 -0
  350. package/presentation/FileList/components/Empty/index.js +1 -0
  351. package/presentation/FileList/components/FileDropArea/FileDropArea.js +63 -0
  352. package/presentation/FileList/components/FileDropArea/FileDropArea.js.map +1 -0
  353. package/presentation/FileList/components/FileDropArea/index.js +1 -0
  354. package/presentation/FileList/components/FileDropPlaceholder/FileDropPlaceholder.js +11 -0
  355. package/presentation/FileList/components/FileDropPlaceholder/FileDropPlaceholder.js.map +1 -0
  356. package/presentation/FileList/components/FileDropPlaceholder/index.js +1 -0
  357. package/presentation/FileList/components/FilePicker/FilePicker.d.ts +11 -0
  358. package/presentation/FileList/components/FilePicker/FilePicker.js +28 -0
  359. package/presentation/FileList/components/FilePicker/FilePicker.js.map +1 -0
  360. package/presentation/FileList/components/Filters/FilterByType.js +39 -0
  361. package/presentation/FileList/components/Filters/FilterByType.js.map +1 -0
  362. package/presentation/FileList/components/Filters/SubFoldersToggle.d.ts +9 -0
  363. package/presentation/FileList/components/Filters/SubFoldersToggle.js +25 -0
  364. package/presentation/FileList/components/Filters/SubFoldersToggle.js.map +1 -0
  365. package/presentation/FileList/components/Filters/TagsFilter.d.ts +9 -0
  366. package/presentation/FileList/components/Filters/TagsFilter.js +86 -0
  367. package/presentation/FileList/components/Filters/TagsFilter.js.map +1 -0
  368. package/presentation/FileList/components/Filters/TypeFilter.d.ts +8 -0
  369. package/presentation/FileList/components/Filters/TypeFilter.js +46 -0
  370. package/presentation/FileList/components/Filters/TypeFilter.js.map +1 -0
  371. package/presentation/FileList/components/Filters/index.d.ts +3 -0
  372. package/presentation/FileList/components/Filters/index.js +3 -0
  373. package/presentation/FileList/components/Grid/ActionButton.d.ts +9 -0
  374. package/presentation/FileList/components/Grid/ActionButton.js +24 -0
  375. package/presentation/FileList/components/Grid/ActionButton.js.map +1 -0
  376. package/presentation/FileList/components/Grid/File.d.ts +32 -0
  377. package/presentation/FileList/components/Grid/File.js +84 -0
  378. package/presentation/FileList/components/Grid/File.js.map +1 -0
  379. package/presentation/FileList/components/Grid/FileGrid.d.ts +9 -0
  380. package/presentation/FileList/components/Grid/FileGrid.js +168 -0
  381. package/presentation/FileList/components/Grid/FileGrid.js.map +1 -0
  382. package/presentation/FileList/components/Grid/FileGrid.test.d.ts +1 -0
  383. package/presentation/FileList/components/Grid/FileGrid.test.js +387 -0
  384. package/presentation/FileList/components/Grid/FileGrid.test.js.map +1 -0
  385. package/presentation/FileList/components/Grid/index.d.ts +1 -0
  386. package/presentation/FileList/components/Grid/index.js +1 -0
  387. package/presentation/FileList/components/Header/FileManagerHeader.d.ts +7 -0
  388. package/presentation/FileList/components/Header/FileManagerHeader.js +114 -0
  389. package/presentation/FileList/components/Header/FileManagerHeader.js.map +1 -0
  390. package/presentation/FileList/components/LayoutSwitch/LayoutSwitch.js +24 -0
  391. package/presentation/FileList/components/LayoutSwitch/LayoutSwitch.js.map +1 -0
  392. package/presentation/FileList/components/LayoutSwitch/index.js +1 -0
  393. package/presentation/FileList/components/NoPermissions/NoPermissions.js +27 -0
  394. package/presentation/FileList/components/NoPermissions/NoPermissions.js.map +1 -0
  395. package/presentation/FileList/components/NoPermissions/index.js +1 -0
  396. package/presentation/FileList/components/NoResults/NoResults.js +21 -0
  397. package/presentation/FileList/components/NoResults/NoResults.js.map +1 -0
  398. package/presentation/FileList/components/NoResults/index.js +1 -0
  399. package/presentation/FileList/components/Search/SearchBar.d.ts +9 -0
  400. package/presentation/FileList/components/Search/SearchBar.js +33 -0
  401. package/presentation/FileList/components/Search/SearchBar.js.map +1 -0
  402. package/presentation/FileList/components/Search/index.d.ts +1 -0
  403. package/presentation/FileList/components/Search/index.js +1 -0
  404. package/presentation/FileList/components/Table/Actions/CopyFile.js +21 -0
  405. package/presentation/FileList/components/Table/Actions/CopyFile.js.map +1 -0
  406. package/presentation/FileList/components/Table/Actions/DeleteFile.js +24 -0
  407. package/presentation/FileList/components/Table/Actions/DeleteFile.js.map +1 -0
  408. package/presentation/FileList/components/Table/Actions/EditFile.js +19 -0
  409. package/presentation/FileList/components/Table/Actions/EditFile.js.map +1 -0
  410. package/presentation/FileList/components/Table/Actions/MoveFile.js +19 -0
  411. package/presentation/FileList/components/Table/Actions/MoveFile.js.map +1 -0
  412. package/presentation/FileList/components/Table/Actions/index.js +4 -0
  413. package/presentation/FileList/components/Table/Cells/CellActions.js +28 -0
  414. package/presentation/FileList/components/Table/Cells/CellActions.js.map +1 -0
  415. package/presentation/FileList/components/Table/Cells/CellAuthor.js +10 -0
  416. package/presentation/FileList/components/Table/Cells/CellAuthor.js.map +1 -0
  417. package/presentation/FileList/components/Table/Cells/CellCreated.js +13 -0
  418. package/presentation/FileList/components/Table/Cells/CellCreated.js.map +1 -0
  419. package/presentation/FileList/components/Table/Cells/CellModified.js +13 -0
  420. package/presentation/FileList/components/Table/Cells/CellModified.js.map +1 -0
  421. package/presentation/FileList/components/Table/Cells/CellName.d.ts +16 -0
  422. package/presentation/FileList/components/Table/Cells/CellName.js +59 -0
  423. package/presentation/FileList/components/Table/Cells/CellName.js.map +1 -0
  424. package/presentation/FileList/components/Table/Cells/CellSize.js +14 -0
  425. package/presentation/FileList/components/Table/Cells/CellSize.js.map +1 -0
  426. package/presentation/FileList/components/Table/Cells/CellThumbnail.js +12 -0
  427. package/presentation/FileList/components/Table/Cells/CellThumbnail.js.map +1 -0
  428. package/presentation/FileList/components/Table/Cells/CellType.js +11 -0
  429. package/presentation/FileList/components/Table/Cells/CellType.js.map +1 -0
  430. package/presentation/FileList/components/Table/Cells/index.js +7 -0
  431. package/presentation/FileList/components/Table/FileTable.d.ts +12 -0
  432. package/presentation/FileList/components/Table/FileTable.js +79 -0
  433. package/presentation/FileList/components/Table/FileTable.js.map +1 -0
  434. package/presentation/FileList/components/Table/FileTable.test.d.ts +1 -0
  435. package/presentation/FileList/components/Table/FileTable.test.js +365 -0
  436. package/presentation/FileList/components/Table/FileTable.test.js.map +1 -0
  437. package/presentation/FileList/components/Table/index.d.ts +4 -0
  438. package/presentation/FileList/components/Table/index.js +3 -0
  439. package/presentation/FileList/components/TagsList/Empty.js +8 -0
  440. package/presentation/FileList/components/TagsList/Empty.js.map +1 -0
  441. package/presentation/FileList/components/TagsList/FilterSelect.js +38 -0
  442. package/presentation/FileList/components/TagsList/FilterSelect.js.map +1 -0
  443. package/presentation/FileList/components/TagsList/FilterStatus.js +25 -0
  444. package/presentation/FileList/components/TagsList/FilterStatus.js.map +1 -0
  445. package/presentation/FileList/components/TagsList/Tag.js +11 -0
  446. package/presentation/FileList/components/TagsList/Tag.js.map +1 -0
  447. package/presentation/FileList/components/TagsList/Tags.js +30 -0
  448. package/presentation/FileList/components/TagsList/Tags.js.map +1 -0
  449. package/presentation/FileList/components/TagsList/TagsList.js +24 -0
  450. package/presentation/FileList/components/TagsList/TagsList.js.map +1 -0
  451. package/presentation/FileList/components/TagsList/index.js +1 -0
  452. package/presentation/FileList/components/Thumbnail/Thumbnail.js +12 -0
  453. package/presentation/FileList/components/Thumbnail/Thumbnail.js.map +1 -0
  454. package/presentation/FileList/components/Thumbnail/index.js +1 -0
  455. package/presentation/FileList/components/Upload/UploadProgress.d.ts +9 -0
  456. package/presentation/FileList/components/Upload/UploadProgress.js +45 -0
  457. package/presentation/FileList/components/Upload/UploadProgress.js.map +1 -0
  458. package/presentation/FileList/components/Upload/index.d.ts +1 -0
  459. package/presentation/FileList/components/Upload/index.js +1 -0
  460. package/presentation/FileList/feature.d.ts +3 -0
  461. package/presentation/FileList/feature.js +17 -0
  462. package/presentation/FileList/feature.js.map +1 -0
  463. package/presentation/FileList/index.d.ts +5 -0
  464. package/presentation/FileList/index.js +3 -0
  465. package/presentation/FileManager/FileManagerRenderer.d.ts +2 -0
  466. package/presentation/FileManager/FileManagerRenderer.js +33 -0
  467. package/presentation/FileManager/FileManagerRenderer.js.map +1 -0
  468. package/presentation/FileManager/FileManagerView.d.ts +12 -0
  469. package/presentation/FileManager/FileManagerView.js +238 -0
  470. package/presentation/FileManager/FileManagerView.js.map +1 -0
  471. package/presentation/FileManager/OverlayContext.d.ts +14 -0
  472. package/presentation/FileManager/OverlayContext.js +11 -0
  473. package/presentation/FileManager/OverlayContext.js.map +1 -0
  474. package/presentation/FileManager/outputFileSelectionError.d.ts +2 -0
  475. package/presentation/FileManager/outputFileSelectionError.js +27 -0
  476. package/presentation/FileManager/outputFileSelectionError.js.map +1 -0
  477. package/presentation/Settings/SettingsPresenter.d.ts +14 -0
  478. package/presentation/Settings/SettingsPresenter.js +78 -0
  479. package/presentation/Settings/SettingsPresenter.js.map +1 -0
  480. package/presentation/Settings/components/SettingsView.d.ts +4 -0
  481. package/presentation/Settings/components/SettingsView.js +45 -0
  482. package/presentation/Settings/components/SettingsView.js.map +1 -0
  483. package/presentation/config/DefaultFileManagerConfig.d.ts +2 -0
  484. package/presentation/config/DefaultFileManagerConfig.js +118 -0
  485. package/presentation/config/DefaultFileManagerConfig.js.map +1 -0
  486. package/presentation/config/FileManagerViewConfig.d.ts +248 -0
  487. package/presentation/config/FileManagerViewConfig.js +74 -0
  488. package/presentation/config/FileManagerViewConfig.js.map +1 -0
  489. package/presentation/config/configComponents/Browser/BulkAction.d.ts +26 -0
  490. package/presentation/config/configComponents/Browser/BulkAction.js +57 -0
  491. package/presentation/config/configComponents/Browser/BulkAction.js.map +1 -0
  492. package/presentation/config/configComponents/Browser/BulkEditField.js +24 -0
  493. package/presentation/config/configComponents/Browser/BulkEditField.js.map +1 -0
  494. package/presentation/config/configComponents/Browser/FileAction.js +11 -0
  495. package/presentation/config/configComponents/Browser/FileAction.js.map +1 -0
  496. package/presentation/config/configComponents/Browser/Filter.js +37 -0
  497. package/presentation/config/configComponents/Browser/Filter.js.map +1 -0
  498. package/presentation/config/configComponents/Browser/FilterByTags.js +14 -0
  499. package/presentation/config/configComponents/Browser/FilterByTags.js.map +1 -0
  500. package/presentation/config/configComponents/Browser/FiltersToWhere.js +13 -0
  501. package/presentation/config/configComponents/Browser/FiltersToWhere.js.map +1 -0
  502. package/presentation/config/configComponents/Browser/FolderAction.js +10 -0
  503. package/presentation/config/configComponents/Browser/FolderAction.js.map +1 -0
  504. package/presentation/config/configComponents/Browser/FolderDropConfirmation.js +7 -0
  505. package/presentation/config/configComponents/Browser/FolderDropConfirmation.js.map +1 -0
  506. package/presentation/config/configComponents/Browser/FolderFieldDecorator.js +11 -0
  507. package/presentation/config/configComponents/Browser/FolderFieldDecorator.js.map +1 -0
  508. package/presentation/config/configComponents/Browser/Grid/Action.js +33 -0
  509. package/presentation/config/configComponents/Browser/Grid/Action.js.map +1 -0
  510. package/presentation/config/configComponents/Browser/Grid/Thumbnail.js +28 -0
  511. package/presentation/config/configComponents/Browser/Grid/Thumbnail.js.map +1 -0
  512. package/presentation/config/configComponents/Browser/Grid/index.js +0 -0
  513. package/presentation/config/configComponents/Browser/Table/Column.d.ts +32 -0
  514. package/presentation/config/configComponents/Browser/Table/Column.js +13 -0
  515. package/presentation/config/configComponents/Browser/Table/Column.js.map +1 -0
  516. package/presentation/config/configComponents/Browser/Table/Thumbnail.js +28 -0
  517. package/presentation/config/configComponents/Browser/Table/Thumbnail.js.map +1 -0
  518. package/presentation/config/configComponents/Browser/Table/index.d.ts +56 -0
  519. package/presentation/config/configComponents/Browser/Table/index.js +11 -0
  520. package/presentation/config/configComponents/Browser/Table/index.js.map +1 -0
  521. package/presentation/config/configComponents/Browser/index.d.ts +189 -0
  522. package/presentation/config/configComponents/Browser/index.js +47 -0
  523. package/presentation/config/configComponents/Browser/index.js.map +1 -0
  524. package/presentation/config/configComponents/FileDetails/Action.js +30 -0
  525. package/presentation/config/configComponents/FileDetails/Action.js.map +1 -0
  526. package/presentation/config/configComponents/FileDetails/Thumbnail.js +25 -0
  527. package/presentation/config/configComponents/FileDetails/Thumbnail.js.map +1 -0
  528. package/presentation/config/configComponents/FileDetails/Width.js +13 -0
  529. package/presentation/config/configComponents/FileDetails/Width.js.map +1 -0
  530. package/presentation/config/configComponents/FileDetails/index.d.ts +52 -0
  531. package/presentation/config/configComponents/FileDetails/index.js +16 -0
  532. package/presentation/config/configComponents/FileDetails/index.js.map +1 -0
  533. package/presentation/config/fields/AccessControl.js +38 -0
  534. package/presentation/config/fields/AccessControl.js.map +1 -0
  535. package/presentation/config/fields/Tags.js +32 -0
  536. package/presentation/config/fields/Tags.js.map +1 -0
  537. package/presentation/config/fields/index.d.ts +2 -0
  538. package/presentation/config/fields/index.js +2 -0
  539. package/presentation/config/fields/useAccessControlField.js +21 -0
  540. package/presentation/config/fields/useAccessControlField.js.map +1 -0
  541. package/presentation/config/fields/useFileOrUndefined.js +13 -0
  542. package/presentation/config/fields/useFileOrUndefined.js.map +1 -0
  543. package/presentation/config/getThumbnailRenderer.d.ts +4 -0
  544. package/presentation/config/getThumbnailRenderer.js +16 -0
  545. package/presentation/config/getThumbnailRenderer.js.map +1 -0
  546. package/presentation/config/thumbnailRenderers/FilePreviewDefaultRenderer.js +11 -0
  547. package/presentation/config/thumbnailRenderers/FilePreviewDefaultRenderer.js.map +1 -0
  548. package/presentation/config/thumbnailRenderers/FilePreviewImageRenderer.js +18 -0
  549. package/presentation/config/thumbnailRenderers/FilePreviewImageRenderer.js.map +1 -0
  550. package/presentation/config/thumbnailRenderers/GridItemDefaultRenderer.js +11 -0
  551. package/presentation/config/thumbnailRenderers/GridItemDefaultRenderer.js.map +1 -0
  552. package/presentation/config/thumbnailRenderers/GridItemImageRenderer.js +18 -0
  553. package/presentation/config/thumbnailRenderers/GridItemImageRenderer.js.map +1 -0
  554. package/presentation/config/thumbnailRenderers/TableItemDefaultRenderer.js +18 -0
  555. package/presentation/config/thumbnailRenderers/TableItemDefaultRenderer.js.map +1 -0
  556. package/presentation/config/thumbnailRenderers/TableItemImageRenderer.js +18 -0
  557. package/presentation/config/thumbnailRenderers/TableItemImageRenderer.js.map +1 -0
  558. package/presentation/contexts/FileProvider.d.ts +12 -0
  559. package/presentation/contexts/FileProvider.js +13 -0
  560. package/presentation/contexts/FileProvider.js.map +1 -0
  561. package/presentation/hooks/useCopyFile.d.ts +11 -0
  562. package/presentation/hooks/useCopyFile.js +24 -0
  563. package/presentation/hooks/useCopyFile.js.map +1 -0
  564. package/presentation/hooks/useDeleteFile.d.ts +9 -0
  565. package/presentation/hooks/useDeleteFile.js +35 -0
  566. package/presentation/hooks/useDeleteFile.js.map +1 -0
  567. package/presentation/hooks/useFile.d.ts +2 -0
  568. package/presentation/hooks/useFile.js +10 -0
  569. package/presentation/hooks/useFile.js.map +1 -0
  570. package/presentation/hooks/useMoveFileToFolder.d.ts +2 -0
  571. package/presentation/hooks/useMoveFileToFolder.js +36 -0
  572. package/presentation/hooks/useMoveFileToFolder.js.map +1 -0
  573. package/routes.d.ts +3 -0
  574. package/routes.js +13 -5
  575. package/routes.js.map +1 -1
  576. package/static/svg/folder-open.ae8d0fac.svg +1 -0
  577. package/BatchFileUploader.d.ts +0 -34
  578. package/BatchFileUploader.js +0 -87
  579. package/BatchFileUploader.js.map +0 -1
  580. package/components/BottomInfoBar/BottomInfoBar.js +0 -13
  581. package/components/BottomInfoBar/BottomInfoBar.js.map +0 -1
  582. package/components/BottomInfoBar/ListStatus.js +0 -23
  583. package/components/BottomInfoBar/ListStatus.js.map +0 -1
  584. package/components/BottomInfoBar/SupportedFileTypes.js +0 -62
  585. package/components/BottomInfoBar/SupportedFileTypes.js.map +0 -1
  586. package/components/BottomInfoBar/index.js +0 -3
  587. package/components/BottomInfoBar/index.js.map +0 -1
  588. package/components/BulkActions/ActionDelete.d.ts +0 -4
  589. package/components/BulkActions/ActionDelete.js +0 -80
  590. package/components/BulkActions/ActionDelete.js.map +0 -1
  591. package/components/BulkActions/ActionEdit/ActionEdit.d.ts +0 -4
  592. package/components/BulkActions/ActionEdit/ActionEdit.js +0 -62
  593. package/components/BulkActions/ActionEdit/ActionEdit.js.map +0 -1
  594. package/components/BulkActions/ActionEdit/ActionEdit.types.d.ts +0 -2
  595. package/components/BulkActions/ActionEdit/ActionEdit.types.js +0 -3
  596. package/components/BulkActions/ActionEdit/ActionEdit.types.js.map +0 -1
  597. package/components/BulkActions/ActionEdit/ActionEditPresenter.d.ts +0 -35
  598. package/components/BulkActions/ActionEdit/ActionEditPresenter.js +0 -55
  599. package/components/BulkActions/ActionEdit/ActionEditPresenter.js.map +0 -1
  600. package/components/BulkActions/ActionEdit/ActionEditPresenter.test.js +0 -159
  601. package/components/BulkActions/ActionEdit/ActionEditPresenter.test.js.map +0 -1
  602. package/components/BulkActions/ActionEdit/BatchEditorDialog/AddOperation.js +0 -19
  603. package/components/BulkActions/ActionEdit/BatchEditorDialog/AddOperation.js.map +0 -1
  604. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.d.ts +0 -15
  605. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.js +0 -44
  606. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.js.map +0 -1
  607. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.d.ts +0 -15
  608. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.js +0 -54
  609. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.js.map +0 -1
  610. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.d.ts +0 -61
  611. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.js +0 -140
  612. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.js.map +0 -1
  613. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.test.js +0 -337
  614. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.test.js.map +0 -1
  615. package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.d.ts +0 -8
  616. package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.js +0 -33
  617. package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.js.map +0 -1
  618. package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.d.ts +0 -11
  619. package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.js +0 -41
  620. package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.js.map +0 -1
  621. package/components/BulkActions/ActionEdit/BatchEditorDialog/index.js +0 -3
  622. package/components/BulkActions/ActionEdit/BatchEditorDialog/index.js.map +0 -1
  623. package/components/BulkActions/ActionEdit/GraphQLInputMapper.d.ts +0 -46
  624. package/components/BulkActions/ActionEdit/GraphQLInputMapper.js +0 -44
  625. package/components/BulkActions/ActionEdit/GraphQLInputMapper.js.map +0 -1
  626. package/components/BulkActions/ActionEdit/GraphQLInputMapper.test.js +0 -270
  627. package/components/BulkActions/ActionEdit/GraphQLInputMapper.test.js.map +0 -1
  628. package/components/BulkActions/ActionEdit/domain/Batch.js +0 -29
  629. package/components/BulkActions/ActionEdit/domain/Batch.js.map +0 -1
  630. package/components/BulkActions/ActionEdit/domain/BatchMapper.js +0 -13
  631. package/components/BulkActions/ActionEdit/domain/BatchMapper.js.map +0 -1
  632. package/components/BulkActions/ActionEdit/domain/Field.js +0 -47
  633. package/components/BulkActions/ActionEdit/domain/Field.js.map +0 -1
  634. package/components/BulkActions/ActionEdit/domain/FieldMapper.js +0 -22
  635. package/components/BulkActions/ActionEdit/domain/FieldMapper.js.map +0 -1
  636. package/components/BulkActions/ActionEdit/domain/index.js +0 -6
  637. package/components/BulkActions/ActionEdit/domain/index.js.map +0 -1
  638. package/components/BulkActions/ActionEdit/index.d.ts +0 -1
  639. package/components/BulkActions/ActionEdit/index.js +0 -3
  640. package/components/BulkActions/ActionEdit/index.js.map +0 -1
  641. package/components/BulkActions/ActionEdit/useActionEditWorker.d.ts +0 -7
  642. package/components/BulkActions/ActionEdit/useActionEditWorker.js +0 -73
  643. package/components/BulkActions/ActionEdit/useActionEditWorker.js.map +0 -1
  644. package/components/BulkActions/ActionMove.d.ts +0 -4
  645. package/components/BulkActions/ActionMove.js +0 -91
  646. package/components/BulkActions/ActionMove.js.map +0 -1
  647. package/components/BulkActions/BulkActions.d.ts +0 -3
  648. package/components/BulkActions/BulkActions.js +0 -46
  649. package/components/BulkActions/BulkActions.js.map +0 -1
  650. package/components/BulkActions/index.d.ts +0 -4
  651. package/components/BulkActions/index.js +0 -6
  652. package/components/BulkActions/index.js.map +0 -1
  653. package/components/EditFileUsingUrl/EditFileUsingUrl.d.ts +0 -14
  654. package/components/EditFileUsingUrl/EditFileUsingUrl.js +0 -53
  655. package/components/EditFileUsingUrl/EditFileUsingUrl.js.map +0 -1
  656. package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.d.ts +0 -18
  657. package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.js +0 -43
  658. package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.js.map +0 -1
  659. package/components/EditFileUsingUrl/EditFileUsingUrlRepository.d.ts +0 -17
  660. package/components/EditFileUsingUrl/EditFileUsingUrlRepository.js +0 -39
  661. package/components/EditFileUsingUrl/EditFileUsingUrlRepository.js.map +0 -1
  662. package/components/EditFileUsingUrl/GetFileByUrl.d.ts +0 -10
  663. package/components/EditFileUsingUrl/GetFileByUrl.js +0 -27
  664. package/components/EditFileUsingUrl/GetFileByUrl.js.map +0 -1
  665. package/components/EditFileUsingUrl/Loading.d.ts +0 -18
  666. package/components/EditFileUsingUrl/Loading.js +0 -42
  667. package/components/EditFileUsingUrl/Loading.js.map +0 -1
  668. package/components/EditFileUsingUrl/UpdateFile.d.ts +0 -10
  669. package/components/EditFileUsingUrl/UpdateFile.js +0 -10
  670. package/components/EditFileUsingUrl/UpdateFile.js.map +0 -1
  671. package/components/EditFileUsingUrl/getFileByUrl.graphql.d.ts +0 -2
  672. package/components/EditFileUsingUrl/getFileByUrl.graphql.js +0 -19
  673. package/components/EditFileUsingUrl/getFileByUrl.graphql.js.map +0 -1
  674. package/components/EditFileUsingUrl/index.d.ts +0 -1
  675. package/components/EditFileUsingUrl/index.js +0 -3
  676. package/components/EditFileUsingUrl/index.js.map +0 -1
  677. package/components/Empty/Empty.d.ts +0 -8
  678. package/components/Empty/Empty.js +0 -27
  679. package/components/Empty/Empty.js.map +0 -1
  680. package/components/Empty/index.js +0 -3
  681. package/components/Empty/index.js.map +0 -1
  682. package/components/FileDetails/FileDetails.d.ts +0 -11
  683. package/components/FileDetails/FileDetails.js +0 -141
  684. package/components/FileDetails/FileDetails.js.map +0 -1
  685. package/components/FileDetails/FileDetailsProvider.d.ts +0 -16
  686. package/components/FileDetails/FileDetailsProvider.js +0 -21
  687. package/components/FileDetails/FileDetailsProvider.js.map +0 -1
  688. package/components/FileDetails/components/ActionButton.js +0 -23
  689. package/components/FileDetails/components/ActionButton.js.map +0 -1
  690. package/components/FileDetails/components/Actions.js +0 -14
  691. package/components/FileDetails/components/Actions.js.map +0 -1
  692. package/components/FileDetails/components/BaseFields.d.ts +0 -7
  693. package/components/FileDetails/components/BaseFields.js +0 -29
  694. package/components/FileDetails/components/BaseFields.js.map +0 -1
  695. package/components/FileDetails/components/Content.js +0 -35
  696. package/components/FileDetails/components/Content.js.map +0 -1
  697. package/components/FileDetails/components/CreatedOn.js +0 -22
  698. package/components/FileDetails/components/CreatedOn.js.map +0 -1
  699. package/components/FileDetails/components/Description.js +0 -23
  700. package/components/FileDetails/components/Description.js.map +0 -1
  701. package/components/FileDetails/components/Extensions.d.ts +0 -7
  702. package/components/FileDetails/components/Extensions.js +0 -36
  703. package/components/FileDetails/components/Extensions.js.map +0 -1
  704. package/components/FileDetails/components/Preview.js +0 -12
  705. package/components/FileDetails/components/Preview.js.map +0 -1
  706. package/components/FileDetails/components/Thumbnail.js +0 -16
  707. package/components/FileDetails/components/Thumbnail.js.map +0 -1
  708. package/components/FileDetails/index.d.ts +0 -1
  709. package/components/FileDetails/index.js +0 -3
  710. package/components/FileDetails/index.js.map +0 -1
  711. package/components/FileDropArea/FileDropArea.js +0 -69
  712. package/components/FileDropArea/FileDropArea.js.map +0 -1
  713. package/components/FileDropArea/index.js +0 -3
  714. package/components/FileDropArea/index.js.map +0 -1
  715. package/components/FileDropPlaceholder/FileDropPlaceholder.js +0 -12
  716. package/components/FileDropPlaceholder/FileDropPlaceholder.js.map +0 -1
  717. package/components/FileDropPlaceholder/index.js +0 -3
  718. package/components/FileDropPlaceholder/index.js.map +0 -1
  719. package/components/Filters/Filters.d.ts +0 -2
  720. package/components/Filters/Filters.js +0 -26
  721. package/components/Filters/Filters.js.map +0 -1
  722. package/components/Filters/index.d.ts +0 -1
  723. package/components/Filters/index.js +0 -3
  724. package/components/Filters/index.js.map +0 -1
  725. package/components/Grid/ActionButton.d.ts +0 -9
  726. package/components/Grid/ActionButton.js +0 -28
  727. package/components/Grid/ActionButton.js.map +0 -1
  728. package/components/Grid/File.d.ts +0 -32
  729. package/components/Grid/File.js +0 -85
  730. package/components/Grid/File.js.map +0 -1
  731. package/components/Grid/Grid.d.ts +0 -21
  732. package/components/Grid/Grid.js +0 -71
  733. package/components/Grid/Grid.js.map +0 -1
  734. package/components/Grid/Thumbnail.js +0 -16
  735. package/components/Grid/Thumbnail.js.map +0 -1
  736. package/components/Grid/index.d.ts +0 -1
  737. package/components/Grid/index.js +0 -3
  738. package/components/Grid/index.js.map +0 -1
  739. package/components/Header/Actions.d.ts +0 -5
  740. package/components/Header/Actions.js +0 -99
  741. package/components/Header/Actions.js.map +0 -1
  742. package/components/Header/Header.d.ts +0 -9
  743. package/components/Header/Header.js +0 -21
  744. package/components/Header/Header.js.map +0 -1
  745. package/components/Header/Title.d.ts +0 -2
  746. package/components/Header/Title.js +0 -55
  747. package/components/Header/Title.js.map +0 -1
  748. package/components/Header/index.d.ts +0 -1
  749. package/components/Header/index.js +0 -3
  750. package/components/Header/index.js.map +0 -1
  751. package/components/LayoutSwitch/LayoutSwitch.js +0 -22
  752. package/components/LayoutSwitch/LayoutSwitch.js.map +0 -1
  753. package/components/LayoutSwitch/index.js +0 -3
  754. package/components/LayoutSwitch/index.js.map +0 -1
  755. package/components/NoPermissions/NoPermissions.js +0 -28
  756. package/components/NoPermissions/NoPermissions.js.map +0 -1
  757. package/components/NoPermissions/index.js +0 -3
  758. package/components/NoPermissions/index.js.map +0 -1
  759. package/components/NoResults/NoResults.js +0 -22
  760. package/components/NoResults/NoResults.js.map +0 -1
  761. package/components/NoResults/index.js +0 -3
  762. package/components/NoResults/index.js.map +0 -1
  763. package/components/SearchWidget/SearchWidget.d.ts +0 -2
  764. package/components/SearchWidget/SearchWidget.js +0 -30
  765. package/components/SearchWidget/SearchWidget.js.map +0 -1
  766. package/components/SearchWidget/index.d.ts +0 -1
  767. package/components/SearchWidget/index.js +0 -3
  768. package/components/SearchWidget/index.js.map +0 -1
  769. package/components/Table/Actions/CopyFile.js +0 -26
  770. package/components/Table/Actions/CopyFile.js.map +0 -1
  771. package/components/Table/Actions/DeleteFile.js +0 -33
  772. package/components/Table/Actions/DeleteFile.js.map +0 -1
  773. package/components/Table/Actions/EditFile.js +0 -24
  774. package/components/Table/Actions/EditFile.js.map +0 -1
  775. package/components/Table/Actions/MoveFile.js +0 -22
  776. package/components/Table/Actions/MoveFile.js.map +0 -1
  777. package/components/Table/Actions/index.js +0 -6
  778. package/components/Table/Actions/index.js.map +0 -1
  779. package/components/Table/Cells/CellActions.js +0 -37
  780. package/components/Table/Cells/CellActions.js.map +0 -1
  781. package/components/Table/Cells/CellAuthor.js +0 -16
  782. package/components/Table/Cells/CellAuthor.js.map +0 -1
  783. package/components/Table/Cells/CellCreated.js +0 -19
  784. package/components/Table/Cells/CellCreated.js.map +0 -1
  785. package/components/Table/Cells/CellModified.js +0 -19
  786. package/components/Table/Cells/CellModified.js.map +0 -1
  787. package/components/Table/Cells/CellName.d.ts +0 -16
  788. package/components/Table/Cells/CellName.js +0 -70
  789. package/components/Table/Cells/CellName.js.map +0 -1
  790. package/components/Table/Cells/CellSize.js +0 -20
  791. package/components/Table/Cells/CellSize.js.map +0 -1
  792. package/components/Table/Cells/CellThumbnail.js +0 -16
  793. package/components/Table/Cells/CellThumbnail.js.map +0 -1
  794. package/components/Table/Cells/CellType.js +0 -17
  795. package/components/Table/Cells/CellType.js.map +0 -1
  796. package/components/Table/Cells/index.js +0 -9
  797. package/components/Table/Cells/index.js.map +0 -1
  798. package/components/Table/Table.d.ts +0 -10
  799. package/components/Table/Table.js +0 -35
  800. package/components/Table/Table.js.map +0 -1
  801. package/components/Table/index.d.ts +0 -3
  802. package/components/Table/index.js +0 -5
  803. package/components/Table/index.js.map +0 -1
  804. package/components/TagsList/Empty.js +0 -11
  805. package/components/TagsList/Empty.js.map +0 -1
  806. package/components/TagsList/FilterSelect.js +0 -28
  807. package/components/TagsList/FilterSelect.js.map +0 -1
  808. package/components/TagsList/FilterStatus.js +0 -27
  809. package/components/TagsList/FilterStatus.js.map +0 -1
  810. package/components/TagsList/Tag.js +0 -16
  811. package/components/TagsList/Tag.js.map +0 -1
  812. package/components/TagsList/Tags.js +0 -32
  813. package/components/TagsList/Tags.js.map +0 -1
  814. package/components/TagsList/TagsList.js +0 -31
  815. package/components/TagsList/TagsList.js.map +0 -1
  816. package/components/TagsList/index.js +0 -3
  817. package/components/TagsList/index.js.map +0 -1
  818. package/components/Thumbnail/Thumbnail.d.ts +0 -2
  819. package/components/Thumbnail/Thumbnail.js +0 -16
  820. package/components/Thumbnail/Thumbnail.js.map +0 -1
  821. package/components/Thumbnail/index.js +0 -3
  822. package/components/Thumbnail/index.js.map +0 -1
  823. package/components/UploadStatus/UploadStatus.d.ts +0 -8
  824. package/components/UploadStatus/UploadStatus.js +0 -38
  825. package/components/UploadStatus/UploadStatus.js.map +0 -1
  826. package/components/UploadStatus/index.d.ts +0 -1
  827. package/components/UploadStatus/index.js +0 -3
  828. package/components/UploadStatus/index.js.map +0 -1
  829. package/components/fields/AccessControl.js +0 -49
  830. package/components/fields/AccessControl.js.map +0 -1
  831. package/components/fields/Description.d.ts +0 -2
  832. package/components/fields/Description.js +0 -25
  833. package/components/fields/Description.js.map +0 -1
  834. package/components/fields/Name.d.ts +0 -2
  835. package/components/fields/Name.js +0 -29
  836. package/components/fields/Name.js.map +0 -1
  837. package/components/fields/Tags.js +0 -39
  838. package/components/fields/Tags.js.map +0 -1
  839. package/components/fields/index.d.ts +0 -4
  840. package/components/fields/index.js +0 -6
  841. package/components/fields/index.js.map +0 -1
  842. package/components/fields/useAccessControlField.js +0 -26
  843. package/components/fields/useAccessControlField.js.map +0 -1
  844. package/components/fields/useFileOrUndefined.js +0 -12
  845. package/components/fields/useFileOrUndefined.js.map +0 -1
  846. package/constants.js +0 -6
  847. package/constants.js.map +0 -1
  848. package/contexts/FileProvider.d.ts +0 -13
  849. package/contexts/FileProvider.js +0 -22
  850. package/contexts/FileProvider.js.map +0 -1
  851. package/features/getFile/index.js.map +0 -1
  852. package/features/shared/types.js.map +0 -1
  853. package/hooks/useCopyFile.d.ts +0 -11
  854. package/hooks/useCopyFile.js +0 -25
  855. package/hooks/useCopyFile.js.map +0 -1
  856. package/hooks/useDeleteFile.d.ts +0 -9
  857. package/hooks/useDeleteFile.js +0 -41
  858. package/hooks/useDeleteFile.js.map +0 -1
  859. package/hooks/useFile.d.ts +0 -2
  860. package/hooks/useFile.js +0 -11
  861. package/hooks/useFile.js.map +0 -1
  862. package/hooks/useFileDetails.d.ts +0 -2
  863. package/hooks/useFileDetails.js +0 -11
  864. package/hooks/useFileDetails.js.map +0 -1
  865. package/hooks/useFileModel.d.ts +0 -1
  866. package/hooks/useFileModel.js +0 -11
  867. package/hooks/useFileModel.js.map +0 -1
  868. package/hooks/useMoveFileToFolder.d.ts +0 -2
  869. package/hooks/useMoveFileToFolder.js +0 -32
  870. package/hooks/useMoveFileToFolder.js.map +0 -1
  871. package/index.js.map +0 -1
  872. package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.d.ts +0 -43
  873. package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.js +0 -227
  874. package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.js.map +0 -1
  875. package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.d.ts +0 -6
  876. package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.js +0 -25
  877. package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.js.map +0 -1
  878. package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.d.ts +0 -2
  879. package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.js +0 -33
  880. package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.js.map +0 -1
  881. package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.d.ts +0 -2
  882. package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.js +0 -10
  883. package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.js.map +0 -1
  884. package/modules/FileManagerApiProvider/FileManagerApiContext/index.d.ts +0 -3
  885. package/modules/FileManagerApiProvider/FileManagerApiContext/index.js +0 -5
  886. package/modules/FileManagerApiProvider/FileManagerApiContext/index.js.map +0 -1
  887. package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.d.ts +0 -3
  888. package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.js +0 -11
  889. package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.js.map +0 -1
  890. package/modules/FileManagerApiProvider/graphql.d.ts +0 -124
  891. package/modules/FileManagerApiProvider/graphql.js +0 -118
  892. package/modules/FileManagerApiProvider/graphql.js.map +0 -1
  893. package/modules/FileManagerApiProvider/index.d.ts +0 -2
  894. package/modules/FileManagerApiProvider/index.js +0 -18
  895. package/modules/FileManagerApiProvider/index.js.map +0 -1
  896. package/modules/FileManagerRenderer/FileActions/FileDetails/CopyUrl.js +0 -24
  897. package/modules/FileManagerRenderer/FileActions/FileDetails/CopyUrl.js.map +0 -1
  898. package/modules/FileManagerRenderer/FileActions/FileDetails/DeleteImage.js +0 -35
  899. package/modules/FileManagerRenderer/FileActions/FileDetails/DeleteImage.js.map +0 -1
  900. package/modules/FileManagerRenderer/FileActions/FileDetails/Download.js +0 -24
  901. package/modules/FileManagerRenderer/FileActions/FileDetails/Download.js.map +0 -1
  902. package/modules/FileManagerRenderer/FileActions/FileDetails/MoveToFolder.js +0 -19
  903. package/modules/FileManagerRenderer/FileActions/FileDetails/MoveToFolder.js.map +0 -1
  904. package/modules/FileManagerRenderer/FileActions/Grid/Delete.js +0 -29
  905. package/modules/FileManagerRenderer/FileActions/Grid/Delete.js.map +0 -1
  906. package/modules/FileManagerRenderer/FileActions/Grid/Download.js +0 -24
  907. package/modules/FileManagerRenderer/FileActions/Grid/Download.js.map +0 -1
  908. package/modules/FileManagerRenderer/FileActions/Grid/MoveToFolder.js +0 -19
  909. package/modules/FileManagerRenderer/FileActions/Grid/MoveToFolder.js.map +0 -1
  910. package/modules/FileManagerRenderer/FileActions/Grid/Settings.js +0 -23
  911. package/modules/FileManagerRenderer/FileActions/Grid/Settings.js.map +0 -1
  912. package/modules/FileManagerRenderer/FileActions/index.js +0 -43
  913. package/modules/FileManagerRenderer/FileActions/index.js.map +0 -1
  914. package/modules/FileManagerRenderer/FileManagerView/FileManagerView.d.ts +0 -5
  915. package/modules/FileManagerRenderer/FileManagerView/FileManagerView.js +0 -280
  916. package/modules/FileManagerRenderer/FileManagerView/FileManagerView.js.map +0 -1
  917. package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.d.ts +0 -281
  918. package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.js +0 -59
  919. package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.js.map +0 -1
  920. package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.d.ts +0 -8
  921. package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.js +0 -47
  922. package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.js.map +0 -1
  923. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.d.ts +0 -26
  924. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.js +0 -66
  925. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.js.map +0 -1
  926. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkEditField.js +0 -26
  927. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkEditField.js.map +0 -1
  928. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.js +0 -14
  929. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.js.map +0 -1
  930. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.js +0 -44
  931. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.js.map +0 -1
  932. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FilterByTags.js +0 -17
  933. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FilterByTags.js.map +0 -1
  934. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FiltersToWhere.js +0 -16
  935. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FiltersToWhere.js.map +0 -1
  936. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.js +0 -13
  937. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.js.map +0 -1
  938. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderDropConfirmation.js +0 -10
  939. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderDropConfirmation.js.map +0 -1
  940. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderFieldDecorator.js +0 -16
  941. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderFieldDecorator.js.map +0 -1
  942. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.js +0 -38
  943. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.js.map +0 -1
  944. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.js +0 -30
  945. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.js.map +0 -1
  946. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.js +0 -3
  947. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.js.map +0 -1
  948. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.d.ts +0 -32
  949. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.js +0 -16
  950. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.js.map +0 -1
  951. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Thumbnail.js +0 -30
  952. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Thumbnail.js.map +0 -1
  953. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.d.ts +0 -56
  954. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.js +0 -10
  955. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.js.map +0 -1
  956. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.d.ts +0 -189
  957. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.js +0 -46
  958. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.js.map +0 -1
  959. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.js +0 -35
  960. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.js.map +0 -1
  961. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.d.ts +0 -39
  962. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.js +0 -44
  963. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.js.map +0 -1
  964. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.d.ts +0 -8
  965. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.js +0 -25
  966. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.js.map +0 -1
  967. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.d.ts +0 -5
  968. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.js +0 -16
  969. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.js.map +0 -1
  970. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.js +0 -27
  971. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.js.map +0 -1
  972. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Width.js +0 -16
  973. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Width.js.map +0 -1
  974. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.d.ts +0 -86
  975. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.js +0 -23
  976. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.js.map +0 -1
  977. package/modules/FileManagerRenderer/FileManagerView/formatFileItem.d.ts +0 -6
  978. package/modules/FileManagerRenderer/FileManagerView/formatFileItem.js +0 -19
  979. package/modules/FileManagerRenderer/FileManagerView/formatFileItem.js.map +0 -1
  980. package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.d.ts +0 -4
  981. package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.js +0 -21
  982. package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.js.map +0 -1
  983. package/modules/FileManagerRenderer/FileManagerView/index.d.ts +0 -13
  984. package/modules/FileManagerRenderer/FileManagerView/index.js +0 -77
  985. package/modules/FileManagerRenderer/FileManagerView/index.js.map +0 -1
  986. package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.d.ts +0 -2
  987. package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.js +0 -30
  988. package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.js.map +0 -1
  989. package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.d.ts +0 -89
  990. package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.js +0 -459
  991. package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.js.map +0 -1
  992. package/modules/FileManagerRenderer/FileManagerViewProvider/index.d.ts +0 -2
  993. package/modules/FileManagerRenderer/FileManagerViewProvider/index.js +0 -4
  994. package/modules/FileManagerRenderer/FileManagerViewProvider/index.js.map +0 -1
  995. package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.d.ts +0 -31
  996. package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.js +0 -100
  997. package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.js.map +0 -1
  998. package/modules/FileManagerRenderer/FileManagerViewProvider/state.d.ts +0 -33
  999. package/modules/FileManagerRenderer/FileManagerViewProvider/state.js +0 -34
  1000. package/modules/FileManagerRenderer/FileManagerViewProvider/state.js.map +0 -1
  1001. package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.d.ts +0 -3
  1002. package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.js +0 -11
  1003. package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.js.map +0 -1
  1004. package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.d.ts +0 -24
  1005. package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.js +0 -153
  1006. package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.js.map +0 -1
  1007. package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.d.ts +0 -11
  1008. package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.js +0 -89
  1009. package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.js.map +0 -1
  1010. package/modules/FileManagerRenderer/filters/FilterByType.js +0 -32
  1011. package/modules/FileManagerRenderer/filters/FilterByType.js.map +0 -1
  1012. package/modules/FileManagerRenderer/index.d.ts +0 -2
  1013. package/modules/FileManagerRenderer/index.js +0 -140
  1014. package/modules/FileManagerRenderer/index.js.map +0 -1
  1015. package/modules/ThumbnailRenderers/FilePreviewDefaultRenderer.js +0 -12
  1016. package/modules/ThumbnailRenderers/FilePreviewDefaultRenderer.js.map +0 -1
  1017. package/modules/ThumbnailRenderers/FilePreviewImageRenderer.js +0 -19
  1018. package/modules/ThumbnailRenderers/FilePreviewImageRenderer.js.map +0 -1
  1019. package/modules/ThumbnailRenderers/GridItemDefaultRenderer.js +0 -12
  1020. package/modules/ThumbnailRenderers/GridItemDefaultRenderer.js.map +0 -1
  1021. package/modules/ThumbnailRenderers/GridItemImageRenderer.js +0 -19
  1022. package/modules/ThumbnailRenderers/GridItemImageRenderer.js.map +0 -1
  1023. package/modules/ThumbnailRenderers/TableItemDefaultRenderer.js +0 -19
  1024. package/modules/ThumbnailRenderers/TableItemDefaultRenderer.js.map +0 -1
  1025. package/modules/ThumbnailRenderers/TableItemImageRenderer.js +0 -19
  1026. package/modules/ThumbnailRenderers/TableItemImageRenderer.js.map +0 -1
  1027. package/presentation/resolveImageTool/ResolveImageTool.js +0 -48
  1028. package/presentation/resolveImageTool/ResolveImageTool.js.map +0 -1
  1029. package/presentation/resolveImageTool/feature.js +0 -10
  1030. package/presentation/resolveImageTool/feature.js.map +0 -1
  1031. package/tagsHelpers.js +0 -35
  1032. package/tagsHelpers.js.map +0 -1
  1033. package/types.d.ts +0 -78
  1034. package/types.js +0 -3
  1035. package/types.js.map +0 -1
  1036. /package/{constants.d.ts → domain/constants.d.ts} +0 -0
  1037. /package/{tagsHelpers.d.ts → domain/tagsHelpers.d.ts} +0 -0
  1038. /package/{components/BulkActions/ActionEdit/ActionEditPresenter.test.d.ts → features/deleteFile/DeleteFile.test.d.ts} +0 -0
  1039. /package/{components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.test.d.ts → features/fileUploader/FileUploader.test.d.ts} +0 -0
  1040. /package/{components/BulkActions/ActionEdit/GraphQLInputMapper.test.d.ts → features/listFiles/ListFiles.test.d.ts} +0 -0
  1041. /package/{presentation → features}/resolveImageTool/ResolveImageTool.d.ts +0 -0
  1042. /package/{presentation → features}/resolveImageTool/feature.d.ts +0 -0
  1043. /package/{modules/FileManagerRenderer → presentation}/FileActions/FileDetails/CopyUrl.d.ts +0 -0
  1044. /package/{modules/FileManagerRenderer → presentation}/FileActions/FileDetails/DeleteImage.d.ts +0 -0
  1045. /package/{modules/FileManagerRenderer → presentation}/FileActions/FileDetails/Download.d.ts +0 -0
  1046. /package/{modules/FileManagerRenderer → presentation}/FileActions/FileDetails/MoveToFolder.d.ts +0 -0
  1047. /package/{modules/FileManagerRenderer → presentation}/FileActions/Grid/Delete.d.ts +0 -0
  1048. /package/{modules/FileManagerRenderer → presentation}/FileActions/Grid/Download.d.ts +0 -0
  1049. /package/{modules/FileManagerRenderer → presentation}/FileActions/Grid/MoveToFolder.d.ts +0 -0
  1050. /package/{modules/FileManagerRenderer → presentation}/FileActions/Grid/Settings.d.ts +0 -0
  1051. /package/{modules/FileManagerRenderer → presentation}/FileActions/index.d.ts +0 -0
  1052. /package/{components → presentation}/FileDetails/components/ActionButton.d.ts +0 -0
  1053. /package/{components → presentation}/FileDetails/components/Actions.d.ts +0 -0
  1054. /package/{components → presentation}/FileDetails/components/Content.d.ts +0 -0
  1055. /package/{components → presentation}/FileDetails/components/CreatedOn.d.ts +0 -0
  1056. /package/{components → presentation}/FileDetails/components/Description.d.ts +0 -0
  1057. /package/{components → presentation}/FileDetails/components/Preview.d.ts +0 -0
  1058. /package/{components → presentation}/FileDetails/components/Thumbnail.d.ts +0 -0
  1059. /package/{components → presentation/FileList/components}/BottomInfoBar/BottomInfoBar.d.ts +0 -0
  1060. /package/{components → presentation/FileList/components}/BottomInfoBar/ListStatus.d.ts +0 -0
  1061. /package/{components → presentation/FileList/components}/BottomInfoBar/SupportedFileTypes.d.ts +0 -0
  1062. /package/{components → presentation/FileList/components}/BottomInfoBar/index.d.ts +0 -0
  1063. /package/{components/BulkActions/ActionEdit → presentation/FileList/components/BulkActions}/BatchEditorDialog/AddOperation.d.ts +0 -0
  1064. /package/{components/BulkActions/ActionEdit → presentation/FileList/components/BulkActions}/BatchEditorDialog/index.d.ts +0 -0
  1065. /package/{components/BulkActions/ActionEdit → presentation/FileList/components/BulkActions}/domain/Batch.d.ts +0 -0
  1066. /package/{components/BulkActions/ActionEdit → presentation/FileList/components/BulkActions}/domain/BatchMapper.d.ts +0 -0
  1067. /package/{components/BulkActions/ActionEdit → presentation/FileList/components/BulkActions}/domain/Field.d.ts +0 -0
  1068. /package/{components/BulkActions/ActionEdit → presentation/FileList/components/BulkActions}/domain/FieldMapper.d.ts +0 -0
  1069. /package/{components/BulkActions/ActionEdit → presentation/FileList/components/BulkActions}/domain/index.d.ts +0 -0
  1070. /package/{components → presentation/FileList/components}/Empty/index.d.ts +0 -0
  1071. /package/{components → presentation/FileList/components}/FileDropArea/FileDropArea.d.ts +0 -0
  1072. /package/{components → presentation/FileList/components}/FileDropArea/index.d.ts +0 -0
  1073. /package/{components → presentation/FileList/components}/FileDropPlaceholder/FileDropPlaceholder.d.ts +0 -0
  1074. /package/{components → presentation/FileList/components}/FileDropPlaceholder/index.d.ts +0 -0
  1075. /package/{modules/FileManagerRenderer/filters → presentation/FileList/components/Filters}/FilterByType.d.ts +0 -0
  1076. /package/{components → presentation/FileList/components}/LayoutSwitch/LayoutSwitch.d.ts +0 -0
  1077. /package/{components → presentation/FileList/components}/LayoutSwitch/index.d.ts +0 -0
  1078. /package/{components → presentation/FileList/components}/NoPermissions/NoPermissions.d.ts +0 -0
  1079. /package/{components → presentation/FileList/components}/NoPermissions/index.d.ts +0 -0
  1080. /package/{components → presentation/FileList/components}/NoResults/NoResults.d.ts +0 -0
  1081. /package/{components → presentation/FileList/components}/NoResults/index.d.ts +0 -0
  1082. /package/{components → presentation/FileList/components}/Table/Actions/CopyFile.d.ts +0 -0
  1083. /package/{components → presentation/FileList/components}/Table/Actions/DeleteFile.d.ts +0 -0
  1084. /package/{components → presentation/FileList/components}/Table/Actions/EditFile.d.ts +0 -0
  1085. /package/{components → presentation/FileList/components}/Table/Actions/MoveFile.d.ts +0 -0
  1086. /package/{components → presentation/FileList/components}/Table/Actions/index.d.ts +0 -0
  1087. /package/{components → presentation/FileList/components}/Table/Cells/CellActions.d.ts +0 -0
  1088. /package/{components → presentation/FileList/components}/Table/Cells/CellAuthor.d.ts +0 -0
  1089. /package/{components → presentation/FileList/components}/Table/Cells/CellCreated.d.ts +0 -0
  1090. /package/{components → presentation/FileList/components}/Table/Cells/CellModified.d.ts +0 -0
  1091. /package/{components → presentation/FileList/components}/Table/Cells/CellSize.d.ts +0 -0
  1092. /package/{components → presentation/FileList/components}/Table/Cells/CellThumbnail.d.ts +0 -0
  1093. /package/{components → presentation/FileList/components}/Table/Cells/CellType.d.ts +0 -0
  1094. /package/{components → presentation/FileList/components}/Table/Cells/index.d.ts +0 -0
  1095. /package/{components → presentation/FileList/components}/TagsList/Empty.d.ts +0 -0
  1096. /package/{components → presentation/FileList/components}/TagsList/FilterSelect.d.ts +0 -0
  1097. /package/{components → presentation/FileList/components}/TagsList/FilterStatus.d.ts +0 -0
  1098. /package/{components → presentation/FileList/components}/TagsList/Tag.d.ts +0 -0
  1099. /package/{components → presentation/FileList/components}/TagsList/Tags.d.ts +0 -0
  1100. /package/{components → presentation/FileList/components}/TagsList/TagsList.d.ts +0 -0
  1101. /package/{components → presentation/FileList/components}/TagsList/index.d.ts +0 -0
  1102. /package/{components/Grid → presentation/FileList/components/Thumbnail}/Thumbnail.d.ts +0 -0
  1103. /package/{components → presentation/FileList/components}/Thumbnail/index.d.ts +0 -0
  1104. /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/BulkEditField.d.ts +0 -0
  1105. /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/FileAction.d.ts +0 -0
  1106. /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/Filter.d.ts +0 -0
  1107. /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/FilterByTags.d.ts +0 -0
  1108. /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/FiltersToWhere.d.ts +0 -0
  1109. /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/FolderAction.d.ts +0 -0
  1110. /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/FolderDropConfirmation.d.ts +0 -0
  1111. /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/FolderFieldDecorator.d.ts +0 -0
  1112. /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/Grid/Action.d.ts +0 -0
  1113. /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/Grid/Thumbnail.d.ts +0 -0
  1114. /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/Grid/index.d.ts +0 -0
  1115. /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/Table/Thumbnail.d.ts +0 -0
  1116. /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/FileDetails/Action.d.ts +0 -0
  1117. /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/FileDetails/Thumbnail.d.ts +0 -0
  1118. /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/FileDetails/Width.d.ts +0 -0
  1119. /package/{components → presentation/config}/fields/AccessControl.d.ts +0 -0
  1120. /package/{components → presentation/config}/fields/Tags.d.ts +0 -0
  1121. /package/{components → presentation/config}/fields/useAccessControlField.d.ts +0 -0
  1122. /package/{components → presentation/config}/fields/useFileOrUndefined.d.ts +0 -0
  1123. /package/{modules/ThumbnailRenderers → presentation/config/thumbnailRenderers}/FilePreviewDefaultRenderer.d.ts +0 -0
  1124. /package/{modules/ThumbnailRenderers → presentation/config/thumbnailRenderers}/FilePreviewImageRenderer.d.ts +0 -0
  1125. /package/{modules/ThumbnailRenderers → presentation/config/thumbnailRenderers}/GridItemDefaultRenderer.d.ts +0 -0
  1126. /package/{modules/ThumbnailRenderers → presentation/config/thumbnailRenderers}/GridItemImageRenderer.d.ts +0 -0
  1127. /package/{modules/ThumbnailRenderers → presentation/config/thumbnailRenderers}/TableItemDefaultRenderer.d.ts +0 -0
  1128. /package/{modules/ThumbnailRenderers → presentation/config/thumbnailRenderers}/TableItemImageRenderer.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation/FileDetails/abstractions.js","sources":["../../../src/presentation/FileDetails/abstractions.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/admin\";\nimport type { IFormVM } from \"@webiny/app-admin/features/formModel/abstractions.js\";\nimport type { FmFile } from \"../../features/shared/types.js\";\n\n// ---------------------------------------------------------------------------\n// FileDetailsViewModel\n// ---------------------------------------------------------------------------\n\nexport interface IFileDetailsViewModel {\n file: FmFile | null;\n loading: string | null;\n form: IFormVM;\n previewUrl: string | null;\n permissions: {\n canEdit: boolean;\n canDelete: boolean;\n };\n}\n\n// ---------------------------------------------------------------------------\n// IFileDetailsPresenter\n// ---------------------------------------------------------------------------\n\nexport interface IFileDetailsPresenter {\n vm: IFileDetailsViewModel;\n loadFile(id: string): Promise<void>;\n saveFile(): Promise<boolean>;\n}\n\nexport const FileDetailsPresenter =\n createAbstraction<IFileDetailsPresenter>(\"FileDetailsPresenter\");\n\nexport namespace FileDetailsPresenter {\n export type Interface = IFileDetailsPresenter;\n export type ViewModel = IFileDetailsViewModel;\n}\n"],"names":["FileDetailsPresenter","createAbstraction"],"mappings":";AA6BO,MAAMA,uBACTC,kBAAyC"}
@@ -0,0 +1,15 @@
1
+ import react from "react";
2
+ import { Button } from "@webiny/admin-ui";
3
+ const ActionButton = ({ label, icon, onAction, disabled, className, ...props })=>/*#__PURE__*/ react.createElement(Button, {
4
+ text: label,
5
+ icon: icon,
6
+ onClick: onAction,
7
+ disabled: disabled,
8
+ "data-testid": props["data-testid"],
9
+ containerClassName: className,
10
+ variant: "ghost",
11
+ size: "sm"
12
+ });
13
+ export { ActionButton };
14
+
15
+ //# sourceMappingURL=ActionButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation/FileDetails/components/ActionButton.js","sources":["../../../../src/presentation/FileDetails/components/ActionButton.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button } from \"@webiny/admin-ui\";\n\nexport interface ActionButtonProps {\n label: string;\n icon: React.JSX.Element;\n onAction: () => void;\n \"data-testid\"?: string;\n disabled?: boolean;\n className?: string;\n}\n\nexport const ActionButton = ({\n label,\n icon,\n onAction,\n disabled,\n className,\n ...props\n}: ActionButtonProps) => {\n return (\n <Button\n text={label}\n icon={icon}\n onClick={onAction}\n disabled={disabled}\n data-testid={props[\"data-testid\"]}\n containerClassName={className}\n variant={\"ghost\"}\n size={\"sm\"}\n />\n );\n};\n"],"names":["ActionButton","label","icon","onAction","disabled","className","props","Button"],"mappings":";;AAYO,MAAMA,eAAe,CAAC,EACzBC,KAAK,EACLC,IAAI,EACJC,QAAQ,EACRC,QAAQ,EACRC,SAAS,EACT,GAAGC,OACa,GACT,WAAP,GACI,oBAACC,QAAMA;QACH,MAAMN;QACN,MAAMC;QACN,SAASC;QACT,UAAUC;QACV,eAAaE,KAAK,CAAC,cAAc;QACjC,oBAAoBD;QACpB,SAAS;QACT,MAAM"}
@@ -0,0 +1,13 @@
1
+ import react from "react";
2
+ import { useFileManagerConfig } from "../../../index.js";
3
+ const Actions = ()=>{
4
+ const { fileDetails } = useFileManagerConfig();
5
+ return /*#__PURE__*/ react.createElement("div", {
6
+ className: "flex justify-start gap-xs"
7
+ }, fileDetails.actions.map((action)=>/*#__PURE__*/ react.createElement(react.Fragment, {
8
+ key: action.name
9
+ }, action.element)));
10
+ };
11
+ export { Actions };
12
+
13
+ //# sourceMappingURL=Actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation/FileDetails/components/Actions.js","sources":["../../../../src/presentation/FileDetails/components/Actions.tsx"],"sourcesContent":["import React from \"react\";\nimport { useFileManagerConfig } from \"~/index.js\";\n\nexport const Actions = () => {\n const { fileDetails } = useFileManagerConfig();\n\n return (\n <div className={\"flex justify-start gap-xs\"}>\n {fileDetails.actions.map(action => (\n <React.Fragment key={action.name}>{action.element}</React.Fragment>\n ))}\n </div>\n );\n};\n"],"names":["Actions","fileDetails","useFileManagerConfig","action","React"],"mappings":";;AAGO,MAAMA,UAAU;IACnB,MAAM,EAAEC,WAAW,EAAE,GAAGC;IAExB,OAAO,WAAP,GACI,oBAAC;QAAI,WAAW;OACXD,YAAY,OAAO,CAAC,GAAG,CAACE,CAAAA,SAAAA,WAAAA,GACrB,oBAACC,MAAAA,QAAc;YAAC,KAAKD,OAAO,IAAI;WAAGA,OAAO,OAAO;AAIjE"}
@@ -0,0 +1,20 @@
1
+ import react from "react";
2
+ import { cn } from "@webiny/admin-ui";
3
+ const Grow = ({ flex, children, className })=>/*#__PURE__*/ react.createElement("div", {
4
+ className: cn("overflow-y-scroll last-of-type:border-l-sm border-neutral-dimmed", className),
5
+ style: {
6
+ flex
7
+ }
8
+ }, children);
9
+ const Content = ({ children })=>/*#__PURE__*/ react.createElement("div", {
10
+ className: "flex h-full"
11
+ }, children);
12
+ const Panel = ({ flex, children, className })=>/*#__PURE__*/ react.createElement(Grow, {
13
+ "data-role": "panel",
14
+ flex: flex ?? 1,
15
+ className: className
16
+ }, children);
17
+ Content.Panel = Panel;
18
+ export { Content };
19
+
20
+ //# sourceMappingURL=Content.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation/FileDetails/components/Content.js","sources":["../../../../src/presentation/FileDetails/components/Content.tsx"],"sourcesContent":["import React from \"react\";\nimport { cn } from \"@webiny/admin-ui\";\n\ninterface GrowProps {\n flex: number;\n className?: string;\n}\n\nconst Grow = ({ flex, children, className }: React.PropsWithChildren<GrowProps>) => {\n return (\n <div\n className={cn(\n \"overflow-y-scroll last-of-type:border-l-sm border-neutral-dimmed\",\n className\n )}\n style={{ flex }}\n >\n {children}\n </div>\n );\n};\n\ninterface ContentProps {\n children: React.ReactNode;\n}\n\nexport const Content = ({ children }: ContentProps) => {\n return <div className={\"flex h-full\"}>{children}</div>;\n};\n\ninterface PanelProps {\n flex?: number;\n children: React.ReactNode;\n className?: string;\n}\n\nconst Panel = ({ flex, children, className }: PanelProps) => {\n return (\n <Grow data-role={\"panel\"} flex={flex ?? 1} className={className}>\n {children}\n </Grow>\n );\n};\n\nContent.Panel = Panel;\n"],"names":["Grow","flex","children","className","cn","Content","Panel"],"mappings":";;AAQA,MAAMA,OAAO,CAAC,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,SAAS,EAAsC,GACpE,WAAP,GACI,oBAAC;QACG,WAAWC,GACP,oEACAD;QAEJ,OAAO;YAAEF;QAAK;OAEbC;AASN,MAAMG,UAAU,CAAC,EAAEH,QAAQ,EAAgB,GACvC,WAAP,GAAO,oBAAC;QAAI,WAAW;OAAgBA;AAS3C,MAAMI,QAAQ,CAAC,EAAEL,IAAI,EAAEC,QAAQ,EAAEC,SAAS,EAAc,GAC7C,WAAP,GACI,oBAACH,MAAIA;QAAC,aAAW;QAAS,MAAMC,QAAQ;QAAG,WAAWE;OACjDD;AAKbG,QAAQ,KAAK,GAAGC"}
@@ -0,0 +1,21 @@
1
+ import react from "react";
2
+ import dayjs from "dayjs";
3
+ import { Icon, Text } from "@webiny/admin-ui";
4
+ import { ReactComponent } from "@webiny/icons/today.svg";
5
+ import { useFile } from "../../hooks/useFile.js";
6
+ const CreatedOn = ()=>{
7
+ const { file } = useFile();
8
+ return /*#__PURE__*/ react.createElement("div", {
9
+ className: "flex items-center gap-xs"
10
+ }, /*#__PURE__*/ react.createElement("div", null, /*#__PURE__*/ react.createElement(Icon, {
11
+ icon: /*#__PURE__*/ react.createElement(ReactComponent, null),
12
+ label: "Calendar icon",
13
+ color: "neutral-light"
14
+ })), /*#__PURE__*/ react.createElement(Text, {
15
+ size: "sm",
16
+ as: "div"
17
+ }, dayjs(file.createdOn).format("DD MMM YYYY [at] HH:mm")));
18
+ };
19
+ export { CreatedOn };
20
+
21
+ //# sourceMappingURL=CreatedOn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation/FileDetails/components/CreatedOn.js","sources":["../../../../src/presentation/FileDetails/components/CreatedOn.tsx"],"sourcesContent":["import React from \"react\";\nimport dayjs from \"dayjs\";\nimport { Icon, Text } from \"@webiny/admin-ui\";\nimport { ReactComponent as CalendarIcon } from \"@webiny/icons/today.svg\";\nimport { useFile } from \"~/presentation/hooks/useFile.js\";\n\nexport const CreatedOn = () => {\n const { file } = useFile();\n\n return (\n <div className={\"flex items-center gap-xs\"}>\n <div>\n <Icon icon={<CalendarIcon />} label={\"Calendar icon\"} color={\"neutral-light\"} />\n </div>\n <Text size={\"sm\"} as={\"div\"}>\n {dayjs(file.createdOn).format(\"DD MMM YYYY [at] HH:mm\")}\n </Text>\n </div>\n );\n};\n"],"names":["CreatedOn","file","useFile","Icon","CalendarIcon","Text","dayjs"],"mappings":";;;;;AAMO,MAAMA,YAAY;IACrB,MAAM,EAAEC,IAAI,EAAE,GAAGC;IAEjB,OAAO,WAAP,GACI,oBAAC;QAAI,WAAW;qBACZ,oBAAC,2BACG,oBAACC,MAAIA;QAAC,oBAAM,oBAACC,gBAAYA;QAAK,OAAO;QAAiB,OAAO;uBAEjE,oBAACC,MAAIA;QAAC,MAAM;QAAM,IAAI;OACjBC,MAAML,KAAK,SAAS,EAAE,MAAM,CAAC;AAI9C"}
@@ -0,0 +1,16 @@
1
+ import react from "react";
2
+ import bytes from "bytes";
3
+ import dayjs from "dayjs";
4
+ import { useFile } from "../../hooks/useFile.js";
5
+ const formatFileSize = (size)=>bytes.format(size, {
6
+ unitSeparator: " "
7
+ });
8
+ const formatDate = (date)=>dayjs(date).format("DD MMM YYYY, HH:mm");
9
+ const Description = ()=>{
10
+ const { file } = useFile();
11
+ if (!file) return null;
12
+ return /*#__PURE__*/ react.createElement("span", null, "Type: ", file.type, " ", " // ", "Size: ", formatFileSize(file.size), " ", " // ", "Upload date: ", formatDate(file.createdOn));
13
+ };
14
+ export { Description };
15
+
16
+ //# sourceMappingURL=Description.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation/FileDetails/components/Description.js","sources":["../../../../src/presentation/FileDetails/components/Description.tsx"],"sourcesContent":["import React from \"react\";\nimport bytes from \"bytes\";\nimport dayjs from \"dayjs\";\nimport { useFile } from \"~/presentation/hooks/useFile.js\";\n\nconst formatFileSize = (size: number) => {\n return bytes.format(size, { unitSeparator: \" \" });\n};\n\nconst formatDate = (date: string | Date) => {\n return dayjs(date).format(\"DD MMM YYYY, HH:mm\");\n};\n\nexport const Description = () => {\n const { file } = useFile();\n\n if (!file) {\n return null;\n }\n\n return (\n <span>\n Type: {file.type} {\" // \"}\n Size: {formatFileSize(file.size)} {\" // \"}\n Upload date: {formatDate(file.createdOn)}\n </span>\n );\n};\n"],"names":["formatFileSize","size","bytes","formatDate","date","dayjs","Description","file","useFile"],"mappings":";;;;AAKA,MAAMA,iBAAiB,CAACC,OACbC,MAAM,MAAM,CAACD,MAAM;QAAE,eAAe;IAAI;AAGnD,MAAME,aAAa,CAACC,OACTC,MAAMD,MAAM,MAAM,CAAC;AAGvB,MAAME,cAAc;IACvB,MAAM,EAAEC,IAAI,EAAE,GAAGC;IAEjB,IAAI,CAACD,MACD,OAAO;IAGX,OAAO,WAAP,GACI,oBAAC,cAAK,UACKA,KAAK,IAAI,EAAC,KAAE,QAAO,UACnBP,eAAeO,KAAK,IAAI,GAAE,KAAE,QAAO,iBAC5BJ,WAAWI,KAAK,SAAS;AAGnD"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ export declare const FileDetailsDrawer: (() => React.JSX.Element | null) & {
3
+ displayName: string;
4
+ };
@@ -0,0 +1,73 @@
1
+ import react from "react";
2
+ import { observer } from "mobx-react-lite";
3
+ import { Drawer, OverlayLoader } from "@webiny/admin-ui";
4
+ import { FormView } from "@webiny/app-admin/features/formModel/FormView.js";
5
+ import { useFileManagerPresenter } from "../../FileList/index.js";
6
+ import { useFileManagerConfig } from "../../config/FileManagerViewConfig.js";
7
+ import { FileProvider } from "../../contexts/FileProvider.js";
8
+ import { Content } from "./Content.js";
9
+ import { Preview } from "./Preview.js";
10
+ import { Actions } from "./Actions.js";
11
+ import { Description } from "./Description.js";
12
+ const parseWidth = (width)=>{
13
+ const [drawerWidth, leftPanel = "1", rightPanel = "1"] = width.split(",");
14
+ return {
15
+ drawerWidth,
16
+ leftFlex: parseFloat(leftPanel),
17
+ rightFlex: parseFloat(rightPanel)
18
+ };
19
+ };
20
+ const FileDetailsDrawer_FileDetailsContent = observer(function() {
21
+ const { vm } = useFileManagerPresenter();
22
+ const fileDetails = vm.fileDetails;
23
+ const { fileDetails: fileDetailsConfig } = useFileManagerConfig();
24
+ if (!fileDetails) return null;
25
+ const { leftFlex, rightFlex } = parseWidth(fileDetailsConfig.width);
26
+ return /*#__PURE__*/ react.createElement(Content, null, /*#__PURE__*/ react.createElement(Content.Panel, {
27
+ flex: leftFlex
28
+ }, /*#__PURE__*/ react.createElement("div", {
29
+ className: "flex flex-col justify-between gap-md h-full px-lg py-md"
30
+ }, /*#__PURE__*/ react.createElement(Actions, null), /*#__PURE__*/ react.createElement(Preview, null))), /*#__PURE__*/ react.createElement(Content.Panel, {
31
+ flex: rightFlex
32
+ }, /*#__PURE__*/ react.createElement("div", {
33
+ className: "p-lg"
34
+ }, /*#__PURE__*/ react.createElement(FormView, {
35
+ name: "File Details",
36
+ form: fileDetails.vm.form
37
+ }))));
38
+ });
39
+ const FileDetailsDrawer_FileDetailsDrawer = observer(function() {
40
+ const { vm, actions } = useFileManagerPresenter();
41
+ const fileDetails = vm.fileDetails;
42
+ const { fileDetails: fileDetailsConfig } = useFileManagerConfig();
43
+ const { drawerWidth } = parseWidth(fileDetailsConfig.width);
44
+ if (!fileDetails || !fileDetails.vm.file) return null;
45
+ return /*#__PURE__*/ react.createElement(FileProvider, {
46
+ file: fileDetails.vm.file
47
+ }, /*#__PURE__*/ react.createElement(Drawer, {
48
+ title: fileDetails.vm.file.name ?? "",
49
+ description: /*#__PURE__*/ react.createElement(Description, null),
50
+ width: drawerWidth,
51
+ open: true,
52
+ modal: true,
53
+ bodyPadding: false,
54
+ headerSeparator: true,
55
+ footerSeparator: true,
56
+ onClose: actions.hideFileDetails,
57
+ "data-testid": "fm.file-details.drawer",
58
+ actions: /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(Drawer.CancelButton, {
59
+ text: "Cancel"
60
+ }), fileDetails.vm.permissions.canEdit && /*#__PURE__*/ react.createElement(Drawer.ConfirmButton, {
61
+ text: "Update",
62
+ onClick: async ()=>{
63
+ const saved = await fileDetails.saveFile();
64
+ if (saved) actions.hideFileDetails();
65
+ }
66
+ }))
67
+ }, fileDetails.vm.loading && /*#__PURE__*/ react.createElement(OverlayLoader, {
68
+ text: fileDetails.vm.loading
69
+ }), /*#__PURE__*/ react.createElement(FileDetailsDrawer_FileDetailsContent, null)));
70
+ });
71
+ export { FileDetailsDrawer_FileDetailsDrawer as FileDetailsDrawer };
72
+
73
+ //# sourceMappingURL=FileDetailsDrawer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation/FileDetails/components/FileDetailsDrawer.js","sources":["../../../../src/presentation/FileDetails/components/FileDetailsDrawer.tsx"],"sourcesContent":["import React from \"react\";\nimport { observer } from \"mobx-react-lite\";\nimport { Drawer } from \"@webiny/admin-ui\";\nimport { OverlayLoader } from \"@webiny/admin-ui\";\nimport { FormView } from \"@webiny/app-admin/features/formModel/FormView.js\";\nimport { useFileManagerPresenter } from \"~/presentation/FileList/index.js\";\nimport { useFileManagerConfig } from \"~/presentation/config/FileManagerViewConfig.js\";\nimport { FileProvider } from \"~/presentation/contexts/FileProvider.js\";\nimport { Content } from \"~/presentation/FileDetails/components/Content.js\";\nimport { Preview } from \"~/presentation/FileDetails/components/Preview.js\";\nimport { Actions } from \"~/presentation/FileDetails/components/Actions.js\";\nimport { Description } from \"~/presentation/FileDetails/components/Description.js\";\n\nconst parseWidth = (width: string) => {\n const [drawerWidth, leftPanel = \"1\", rightPanel = \"1\"] = width.split(\",\");\n return {\n drawerWidth,\n leftFlex: parseFloat(leftPanel),\n rightFlex: parseFloat(rightPanel)\n };\n};\n\nconst FileDetailsContent = observer(function FileDetailsContent() {\n const { vm } = useFileManagerPresenter();\n const fileDetails = vm.fileDetails;\n const { fileDetails: fileDetailsConfig } = useFileManagerConfig();\n\n if (!fileDetails) {\n return null;\n }\n\n const { leftFlex, rightFlex } = parseWidth(fileDetailsConfig.width);\n\n return (\n <Content>\n <Content.Panel flex={leftFlex}>\n <div className={\"flex flex-col justify-between gap-md h-full px-lg py-md\"}>\n <Actions />\n <Preview />\n </div>\n </Content.Panel>\n <Content.Panel flex={rightFlex}>\n <div className={\"p-lg\"}>\n <FormView name=\"File Details\" form={fileDetails.vm.form} />\n </div>\n </Content.Panel>\n </Content>\n );\n});\n\nexport const FileDetailsDrawer = observer(function FileDetailsDrawer() {\n const { vm, actions } = useFileManagerPresenter();\n const fileDetails = vm.fileDetails;\n const { fileDetails: fileDetailsConfig } = useFileManagerConfig();\n\n const { drawerWidth } = parseWidth(fileDetailsConfig.width);\n\n if (!fileDetails || !fileDetails.vm.file) {\n return null;\n }\n\n return (\n <FileProvider file={fileDetails.vm.file}>\n <Drawer\n title={fileDetails.vm.file.name ?? \"\"}\n description={<Description />}\n width={drawerWidth}\n open={true}\n modal={true}\n bodyPadding={false}\n headerSeparator={true}\n footerSeparator={true}\n onClose={actions.hideFileDetails}\n data-testid={\"fm.file-details.drawer\"}\n actions={\n <>\n <Drawer.CancelButton text={\"Cancel\"} />\n {fileDetails.vm.permissions.canEdit && (\n <Drawer.ConfirmButton\n text={\"Update\"}\n onClick={async () => {\n const saved = await fileDetails.saveFile();\n if (saved) {\n actions.hideFileDetails();\n }\n }}\n />\n )}\n </>\n }\n >\n {fileDetails.vm.loading && <OverlayLoader text={fileDetails.vm.loading} />}\n <FileDetailsContent />\n </Drawer>\n </FileProvider>\n );\n});\n"],"names":["parseWidth","width","drawerWidth","leftPanel","rightPanel","parseFloat","FileDetailsContent","observer","vm","useFileManagerPresenter","fileDetails","fileDetailsConfig","useFileManagerConfig","leftFlex","rightFlex","Content","Actions","Preview","FormView","FileDetailsDrawer","actions","FileProvider","Drawer","Description","saved","OverlayLoader"],"mappings":";;;;;;;;;;;AAaA,MAAMA,aAAa,CAACC;IAChB,MAAM,CAACC,aAAaC,YAAY,GAAG,EAAEC,aAAa,GAAG,CAAC,GAAGH,MAAM,KAAK,CAAC;IACrE,OAAO;QACHC;QACA,UAAUG,WAAWF;QACrB,WAAWE,WAAWD;IAC1B;AACJ;AAEA,MAAME,uCAAqBC,SAAS;IAChC,MAAM,EAAEC,EAAE,EAAE,GAAGC;IACf,MAAMC,cAAcF,GAAG,WAAW;IAClC,MAAM,EAAE,aAAaG,iBAAiB,EAAE,GAAGC;IAE3C,IAAI,CAACF,aACD,OAAO;IAGX,MAAM,EAAEG,QAAQ,EAAEC,SAAS,EAAE,GAAGd,WAAWW,kBAAkB,KAAK;IAElE,OAAO,WAAP,GACI,oBAACI,SAAOA,MAAAA,WAAAA,GACJ,oBAACA,QAAQ,KAAK;QAAC,MAAMF;qBACjB,oBAAC;QAAI,WAAW;qBACZ,oBAACG,SAAOA,OAAAA,WAAAA,GACR,oBAACC,SAAOA,SAAAA,WAAAA,GAGhB,oBAACF,QAAQ,KAAK;QAAC,MAAMD;qBACjB,oBAAC;QAAI,WAAW;qBACZ,oBAACI,UAAQA;QAAC,MAAK;QAAe,MAAMR,YAAY,EAAE,CAAC,IAAI;;AAK3E;AAEO,MAAMS,sCAAoBZ,SAAS;IACtC,MAAM,EAAEC,EAAE,EAAEY,OAAO,EAAE,GAAGX;IACxB,MAAMC,cAAcF,GAAG,WAAW;IAClC,MAAM,EAAE,aAAaG,iBAAiB,EAAE,GAAGC;IAE3C,MAAM,EAAEV,WAAW,EAAE,GAAGF,WAAWW,kBAAkB,KAAK;IAE1D,IAAI,CAACD,eAAe,CAACA,YAAY,EAAE,CAAC,IAAI,EACpC,OAAO;IAGX,OAAO,WAAP,GACI,oBAACW,cAAYA;QAAC,MAAMX,YAAY,EAAE,CAAC,IAAI;qBACnC,oBAACY,QAAMA;QACH,OAAOZ,YAAY,EAAE,CAAC,IAAI,CAAC,IAAI,IAAI;QACnC,2BAAa,oBAACa,aAAWA;QACzB,OAAOrB;QACP,MAAM;QACN,OAAO;QACP,aAAa;QACb,iBAAiB;QACjB,iBAAiB;QACjB,SAASkB,QAAQ,eAAe;QAChC,eAAa;QACb,uBACI,wDACI,oBAACE,OAAO,YAAY;YAAC,MAAM;YAC1BZ,YAAY,EAAE,CAAC,WAAW,CAAC,OAAO,IAAI,WAAJ,GAC/B,oBAACY,OAAO,aAAa;YACjB,MAAM;YACN,SAAS;gBACL,MAAME,QAAQ,MAAMd,YAAY,QAAQ;gBACxC,IAAIc,OACAJ,QAAQ,eAAe;YAE/B;;OAMfV,YAAY,EAAE,CAAC,OAAO,IAAI,WAAJ,GAAI,oBAACe,eAAaA;QAAC,MAAMf,YAAY,EAAE,CAAC,OAAO;sBACtE,oBAACJ,sCAAkBA;AAInC"}
@@ -0,0 +1,15 @@
1
+ import react from "react";
2
+ import { Thumbnail } from "./Thumbnail.js";
3
+ import { cn } from "@webiny/admin-ui";
4
+ const Preview = ()=>/*#__PURE__*/ react.createElement("div", {
5
+ className: "h-full w-full"
6
+ }, /*#__PURE__*/ react.createElement("div", {
7
+ className: cn([
8
+ "flex items-center justify-center",
9
+ "w-full aspect-square rounded-lg bg-neutral-dimmed",
10
+ "overflow-hidden"
11
+ ])
12
+ }, /*#__PURE__*/ react.createElement(Thumbnail, null)));
13
+ export { Preview };
14
+
15
+ //# sourceMappingURL=Preview.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation/FileDetails/components/Preview.js","sources":["../../../../src/presentation/FileDetails/components/Preview.tsx"],"sourcesContent":["import React from \"react\";\nimport { Thumbnail } from \"./Thumbnail.js\";\nimport { cn } from \"@webiny/admin-ui\";\n\nexport const Preview = () => {\n return (\n <div className={\"h-full w-full\"}>\n <div\n className={cn([\n \"flex items-center justify-center\",\n \"w-full aspect-square rounded-lg bg-neutral-dimmed\",\n \"overflow-hidden\"\n ])}\n >\n <Thumbnail />\n </div>\n </div>\n );\n};\n"],"names":["Preview","cn","Thumbnail"],"mappings":";;;AAIO,MAAMA,UAAU,IACZ,WAAP,GACI,oBAAC;QAAI,WAAW;qBACZ,oBAAC;QACG,WAAWC,GAAG;YACV;YACA;YACA;SACH;qBAED,oBAACC,WAASA"}
@@ -0,0 +1,12 @@
1
+ import react from "react";
2
+ import { useFile } from "../../hooks/useFile.js";
3
+ import { useFileManagerConfig } from "../../../index.js";
4
+ const Thumbnail = ()=>{
5
+ const { file } = useFile();
6
+ const { fileDetails, getThumbnailRenderer } = useFileManagerConfig();
7
+ const renderer = getThumbnailRenderer(fileDetails.thumbnails, file);
8
+ return /*#__PURE__*/ react.createElement(react.Fragment, null, renderer?.element || null);
9
+ };
10
+ export { Thumbnail };
11
+
12
+ //# sourceMappingURL=Thumbnail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation/FileDetails/components/Thumbnail.js","sources":["../../../../src/presentation/FileDetails/components/Thumbnail.tsx"],"sourcesContent":["import React from \"react\";\nimport { useFile } from \"~/presentation/hooks/useFile.js\";\nimport { useFileManagerConfig } from \"~/index.js\";\n\nexport const Thumbnail = () => {\n const { file } = useFile();\n const { fileDetails, getThumbnailRenderer } = useFileManagerConfig();\n\n const renderer = getThumbnailRenderer(fileDetails.thumbnails, file);\n\n return <>{renderer?.element || null}</>;\n};\n"],"names":["Thumbnail","file","useFile","fileDetails","getThumbnailRenderer","useFileManagerConfig","renderer"],"mappings":";;;AAIO,MAAMA,YAAY;IACrB,MAAM,EAAEC,IAAI,EAAE,GAAGC;IACjB,MAAM,EAAEC,WAAW,EAAEC,oBAAoB,EAAE,GAAGC;IAE9C,MAAMC,WAAWF,qBAAqBD,YAAY,UAAU,EAAEF;IAE9D,OAAO,WAAP,GAAO,0CAAGK,UAAU,WAAW;AACnC"}
@@ -0,0 +1,3 @@
1
+ export declare const FileDetailsPresenterFeature: import("@webiny/feature/admin").FeatureDefinition<{
2
+ presenter: import("./abstractions.js").IFileDetailsPresenter;
3
+ }, []>;
@@ -0,0 +1,17 @@
1
+ import { createFeature } from "@webiny/feature/admin";
2
+ import { FileDetailsPresenter } from "./abstractions.js";
3
+ import { FileDetailsPresenter as external_FileDetailsPresenter_js_FileDetailsPresenter } from "./FileDetailsPresenter.js";
4
+ const FileDetailsPresenterFeature = createFeature({
5
+ name: "FileManager/FileDetailsPresenter",
6
+ register (container) {
7
+ container.register(external_FileDetailsPresenter_js_FileDetailsPresenter).inSingletonScope();
8
+ },
9
+ resolve (container) {
10
+ return {
11
+ presenter: container.resolve(FileDetailsPresenter)
12
+ };
13
+ }
14
+ });
15
+ export { FileDetailsPresenterFeature };
16
+
17
+ //# sourceMappingURL=feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation/FileDetails/feature.js","sources":["../../../src/presentation/FileDetails/feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/admin\";\nimport { FileDetailsPresenter as Abstraction } from \"./abstractions.js\";\nimport { FileDetailsPresenter } from \"./FileDetailsPresenter.js\";\n\nexport const FileDetailsPresenterFeature = createFeature({\n name: \"FileManager/FileDetailsPresenter\",\n register(container) {\n container.register(FileDetailsPresenter).inSingletonScope();\n },\n resolve(container) {\n return {\n presenter: container.resolve(Abstraction)\n };\n }\n});\n"],"names":["FileDetailsPresenterFeature","createFeature","container","FileDetailsPresenter","Abstraction"],"mappings":";;;AAIO,MAAMA,8BAA8BC,cAAc;IACrD,MAAM;IACN,UAASC,SAAS;QACdA,UAAU,QAAQ,CAACC,uDAAsB,gBAAgB;IAC7D;IACA,SAAQD,SAAS;QACb,OAAO;YACH,WAAWA,UAAU,OAAO,CAACE;QACjC;IACJ;AACJ"}
@@ -0,0 +1,3 @@
1
+ export { FileDetailsPresenterFeature } from "./feature.js";
2
+ export { FileDetailsPresenter } from "./abstractions.js";
3
+ export type { IFileDetailsPresenter, IFileDetailsViewModel } from "./abstractions.js";
@@ -0,0 +1,2 @@
1
+ export { FileDetailsPresenterFeature } from "./feature.js";
2
+ export { FileDetailsPresenter } from "./abstractions.js";
@@ -0,0 +1,20 @@
1
+ import type { IDataSource, IDataSourceQuery, IDataSourceMeta } from "@webiny/app-admin/presentation/listPresenter/abstractions.js";
2
+ import type { IListFilesUseCase } from "../../features/listFiles/abstractions.js";
3
+ import type { IGetDescendantFoldersUseCase } from "@webiny/app-aco/features/folders/getDescendantFolders/abstractions.js";
4
+ import type { IListCache } from "@webiny/app-admin/features/listCache/index.js";
5
+ import type { FmFile } from "../../features/shared/types.js";
6
+ export declare class FileListDataSource implements IDataSource<FmFile> {
7
+ private listFilesUseCase;
8
+ private cache;
9
+ private getDescendantFoldersUseCase?;
10
+ private scope?;
11
+ private _meta;
12
+ private _loading;
13
+ constructor(listFilesUseCase: IListFilesUseCase, cache: IListCache<FmFile>, getDescendantFoldersUseCase?: IGetDescendantFoldersUseCase | undefined, scope?: string | undefined);
14
+ get rows(): FmFile[];
15
+ get meta(): IDataSourceMeta;
16
+ get loading(): boolean;
17
+ query(params: IDataSourceQuery): Promise<void>;
18
+ loadMore(params: IDataSourceQuery): Promise<void>;
19
+ private buildWhere;
20
+ }
@@ -0,0 +1,122 @@
1
+ import { computed, makeAutoObservable, runInAction } from "mobx";
2
+ import { DEFAULT_SCOPE } from "../../domain/constants.js";
3
+ class FileListDataSource {
4
+ constructor(listFilesUseCase, cache, getDescendantFoldersUseCase, scope){
5
+ this.listFilesUseCase = listFilesUseCase;
6
+ this.cache = cache;
7
+ this.getDescendantFoldersUseCase = getDescendantFoldersUseCase;
8
+ this.scope = scope;
9
+ this._meta = {
10
+ cursor: null,
11
+ hasMoreItems: false,
12
+ totalCount: 0
13
+ };
14
+ this._loading = false;
15
+ makeAutoObservable(this, {
16
+ listFilesUseCase: false,
17
+ getDescendantFoldersUseCase: false,
18
+ rows: computed
19
+ });
20
+ }
21
+ get rows() {
22
+ return this.cache.getItems();
23
+ }
24
+ get meta() {
25
+ return this._meta;
26
+ }
27
+ get loading() {
28
+ return this._loading;
29
+ }
30
+ async query(params) {
31
+ this._loading = true;
32
+ this.cache.clear();
33
+ const where = this.buildWhere(params);
34
+ const sort = params.sort ? [
35
+ `${params.sort.field}_${params.sort.direction}`
36
+ ] : void 0;
37
+ const result = await this.listFilesUseCase.execute({
38
+ search: params.search,
39
+ where,
40
+ sort,
41
+ limit: params.limit,
42
+ after: params.cursor
43
+ });
44
+ runInAction(()=>{
45
+ this.cache.addItems(result.data);
46
+ this._meta = {
47
+ cursor: result.meta.cursor,
48
+ hasMoreItems: result.meta.hasMoreItems,
49
+ totalCount: result.meta.totalCount
50
+ };
51
+ this._loading = false;
52
+ });
53
+ }
54
+ async loadMore(params) {
55
+ if (!this._meta.hasMoreItems || this._loading) return;
56
+ this._loading = true;
57
+ const where = this.buildWhere(params);
58
+ const sort = params.sort ? [
59
+ `${params.sort.field}_${params.sort.direction}`
60
+ ] : void 0;
61
+ const result = await this.listFilesUseCase.execute({
62
+ search: params.search,
63
+ where,
64
+ sort,
65
+ limit: params.limit,
66
+ after: params.cursor
67
+ });
68
+ runInAction(()=>{
69
+ this.cache.addItems(result.data);
70
+ this._meta = {
71
+ cursor: result.meta.cursor,
72
+ hasMoreItems: result.meta.hasMoreItems,
73
+ totalCount: result.meta.totalCount
74
+ };
75
+ this._loading = false;
76
+ });
77
+ }
78
+ buildWhere(params) {
79
+ const where = {
80
+ ...params.filters
81
+ };
82
+ const includeSubFolders = true === where["includeSubFolders"];
83
+ delete where["includeSubFolders"];
84
+ const tags = where["tags"];
85
+ const tagsRule = where["tags_rule"] || "OR";
86
+ delete where["tags"];
87
+ delete where["tags_rule"];
88
+ if (this.scope) where["tags_startsWith"] = this.scope;
89
+ else where["tags_not_startsWith"] = DEFAULT_SCOPE;
90
+ if (tags && tags.length > 0) {
91
+ const andConditions = [];
92
+ if ("OR" === tagsRule) andConditions.push({
93
+ tags_in: tags
94
+ });
95
+ else andConditions.push(...tags.map((tag)=>({
96
+ tags_in: [
97
+ tag
98
+ ]
99
+ })));
100
+ where["AND"] = andConditions;
101
+ }
102
+ if (where["folderId"]) {
103
+ const currentFolderId = where["folderId"];
104
+ const isRoot = "root" === currentFolderId;
105
+ if (params.search && isRoot) ;
106
+ else if ((params.search || includeSubFolders) && this.getDescendantFoldersUseCase) {
107
+ const descendants = this.getDescendantFoldersUseCase.execute(currentFolderId);
108
+ const folderIds = descendants.map((f)=>f.id);
109
+ where["location"] = {
110
+ folderId_in: folderIds
111
+ };
112
+ } else where["location"] = {
113
+ folderId: currentFolderId
114
+ };
115
+ delete where["folderId"];
116
+ }
117
+ return where;
118
+ }
119
+ }
120
+ export { FileListDataSource };
121
+
122
+ //# sourceMappingURL=FileListDataSource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentation/FileList/FileListDataSource.js","sources":["../../../src/presentation/FileList/FileListDataSource.ts"],"sourcesContent":["import { makeAutoObservable, runInAction, computed } from \"mobx\";\nimport type {\n IDataSource,\n IDataSourceQuery,\n IDataSourceMeta\n} from \"@webiny/app-admin/presentation/listPresenter/abstractions.js\";\nimport type { IListFilesUseCase } from \"../../features/listFiles/abstractions.js\";\nimport type { IGetDescendantFoldersUseCase } from \"@webiny/app-aco/features/folders/getDescendantFolders/abstractions.js\";\nimport type { IListCache } from \"@webiny/app-admin/features/listCache/index.js\";\nimport type { FmFile } from \"../../features/shared/types.js\";\nimport { DEFAULT_SCOPE } from \"~/domain/constants.js\";\n\nexport class FileListDataSource implements IDataSource<FmFile> {\n private _meta: IDataSourceMeta = { cursor: null, hasMoreItems: false, totalCount: 0 };\n private _loading = false;\n\n constructor(\n private listFilesUseCase: IListFilesUseCase,\n private cache: IListCache<FmFile>,\n private getDescendantFoldersUseCase?: IGetDescendantFoldersUseCase,\n private scope?: string\n ) {\n makeAutoObservable<FileListDataSource, \"listFilesUseCase\" | \"getDescendantFoldersUseCase\">(\n this,\n {\n listFilesUseCase: false,\n getDescendantFoldersUseCase: false,\n rows: computed\n }\n );\n }\n\n get rows(): FmFile[] {\n return this.cache.getItems();\n }\n\n get meta(): IDataSourceMeta {\n return this._meta;\n }\n\n get loading(): boolean {\n return this._loading;\n }\n\n async query(params: IDataSourceQuery): Promise<void> {\n this._loading = true;\n this.cache.clear();\n\n const where = this.buildWhere(params);\n const sort = params.sort ? [`${params.sort.field}_${params.sort.direction}`] : undefined;\n\n const result = await this.listFilesUseCase.execute({\n search: params.search,\n where,\n sort,\n limit: params.limit,\n after: params.cursor\n });\n\n runInAction(() => {\n this.cache.addItems(result.data);\n this._meta = {\n cursor: result.meta.cursor,\n hasMoreItems: result.meta.hasMoreItems,\n totalCount: result.meta.totalCount\n };\n this._loading = false;\n });\n }\n\n async loadMore(params: IDataSourceQuery): Promise<void> {\n if (!this._meta.hasMoreItems || this._loading) {\n return;\n }\n this._loading = true;\n\n const where = this.buildWhere(params);\n const sort = params.sort ? [`${params.sort.field}_${params.sort.direction}`] : undefined;\n\n const result = await this.listFilesUseCase.execute({\n search: params.search,\n where,\n sort,\n limit: params.limit,\n after: params.cursor\n });\n\n runInAction(() => {\n this.cache.addItems(result.data);\n this._meta = {\n cursor: result.meta.cursor,\n hasMoreItems: result.meta.hasMoreItems,\n totalCount: result.meta.totalCount\n };\n this._loading = false;\n });\n }\n\n private buildWhere(params: IDataSourceQuery): Record<string, unknown> {\n const where: Record<string, unknown> = { ...params.filters };\n\n const includeSubFolders = where[\"includeSubFolders\"] === true;\n delete where[\"includeSubFolders\"];\n\n const tags = where[\"tags\"] as string[] | undefined;\n const tagsRule = (where[\"tags_rule\"] as string) || \"OR\";\n delete where[\"tags\"];\n delete where[\"tags_rule\"];\n\n if (this.scope) {\n where[\"tags_startsWith\"] = this.scope;\n } else {\n where[\"tags_not_startsWith\"] = DEFAULT_SCOPE;\n }\n\n if (tags && tags.length > 0) {\n const andConditions: Record<string, unknown>[] = [];\n if (tagsRule === \"OR\") {\n andConditions.push({ tags_in: tags });\n } else {\n andConditions.push(...tags.map(tag => ({ tags_in: [tag] })));\n }\n where[\"AND\"] = andConditions;\n }\n\n if (where[\"folderId\"]) {\n const currentFolderId = where[\"folderId\"] as string;\n const isRoot = currentFolderId === \"root\";\n\n if (params.search && isRoot) {\n // Search from root: no location filter — search all folders.\n } else if ((params.search || includeSubFolders) && this.getDescendantFoldersUseCase) {\n const descendants = this.getDescendantFoldersUseCase.execute(currentFolderId);\n const folderIds = descendants.map(f => f.id);\n where[\"location\"] = { folderId_in: folderIds };\n } else {\n where[\"location\"] = { folderId: currentFolderId };\n }\n\n delete where[\"folderId\"];\n }\n\n return where;\n }\n}\n"],"names":["FileListDataSource","listFilesUseCase","cache","getDescendantFoldersUseCase","scope","makeAutoObservable","computed","params","where","sort","undefined","result","runInAction","includeSubFolders","tags","tagsRule","DEFAULT_SCOPE","andConditions","tag","currentFolderId","isRoot","descendants","folderIds","f"],"mappings":";;AAYO,MAAMA;IAIT,YACYC,gBAAmC,EACnCC,KAAyB,EACzBC,2BAA0D,EAC1DC,KAAc,CACxB;aAJUH,gBAAgB,GAAhBA;aACAC,KAAK,GAALA;aACAC,2BAA2B,GAA3BA;aACAC,KAAK,GAALA;aAPJ,KAAK,GAAoB;YAAE,QAAQ;YAAM,cAAc;YAAO,YAAY;QAAE;aAC5E,QAAQ,GAAG;QAQfC,mBACI,IAAI,EACJ;YACI,kBAAkB;YAClB,6BAA6B;YAC7B,MAAMC;QACV;IAER;IAEA,IAAI,OAAiB;QACjB,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ;IAC9B;IAEA,IAAI,OAAwB;QACxB,OAAO,IAAI,CAAC,KAAK;IACrB;IAEA,IAAI,UAAmB;QACnB,OAAO,IAAI,CAAC,QAAQ;IACxB;IAEA,MAAM,MAAMC,MAAwB,EAAiB;QACjD,IAAI,CAAC,QAAQ,GAAG;QAChB,IAAI,CAAC,KAAK,CAAC,KAAK;QAEhB,MAAMC,QAAQ,IAAI,CAAC,UAAU,CAACD;QAC9B,MAAME,OAAOF,OAAO,IAAI,GAAG;YAAC,GAAGA,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAEA,OAAO,IAAI,CAAC,SAAS,EAAE;SAAC,GAAGG;QAE/E,MAAMC,SAAS,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;YAC/C,QAAQJ,OAAO,MAAM;YACrBC;YACAC;YACA,OAAOF,OAAO,KAAK;YACnB,OAAOA,OAAO,MAAM;QACxB;QAEAK,YAAY;YACR,IAAI,CAAC,KAAK,CAAC,QAAQ,CAACD,OAAO,IAAI;YAC/B,IAAI,CAAC,KAAK,GAAG;gBACT,QAAQA,OAAO,IAAI,CAAC,MAAM;gBAC1B,cAAcA,OAAO,IAAI,CAAC,YAAY;gBACtC,YAAYA,OAAO,IAAI,CAAC,UAAU;YACtC;YACA,IAAI,CAAC,QAAQ,GAAG;QACpB;IACJ;IAEA,MAAM,SAASJ,MAAwB,EAAiB;QACpD,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,IAAI,IAAI,CAAC,QAAQ,EACzC;QAEJ,IAAI,CAAC,QAAQ,GAAG;QAEhB,MAAMC,QAAQ,IAAI,CAAC,UAAU,CAACD;QAC9B,MAAME,OAAOF,OAAO,IAAI,GAAG;YAAC,GAAGA,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAEA,OAAO,IAAI,CAAC,SAAS,EAAE;SAAC,GAAGG;QAE/E,MAAMC,SAAS,MAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;YAC/C,QAAQJ,OAAO,MAAM;YACrBC;YACAC;YACA,OAAOF,OAAO,KAAK;YACnB,OAAOA,OAAO,MAAM;QACxB;QAEAK,YAAY;YACR,IAAI,CAAC,KAAK,CAAC,QAAQ,CAACD,OAAO,IAAI;YAC/B,IAAI,CAAC,KAAK,GAAG;gBACT,QAAQA,OAAO,IAAI,CAAC,MAAM;gBAC1B,cAAcA,OAAO,IAAI,CAAC,YAAY;gBACtC,YAAYA,OAAO,IAAI,CAAC,UAAU;YACtC;YACA,IAAI,CAAC,QAAQ,GAAG;QACpB;IACJ;IAEQ,WAAWJ,MAAwB,EAA2B;QAClE,MAAMC,QAAiC;YAAE,GAAGD,OAAO,OAAO;QAAC;QAE3D,MAAMM,oBAAoBL,AAA+B,SAA/BA,KAAK,CAAC,oBAAoB;QACpD,OAAOA,KAAK,CAAC,oBAAoB;QAEjC,MAAMM,OAAON,KAAK,CAAC,OAAO;QAC1B,MAAMO,WAAYP,KAAK,CAAC,YAAY,IAAe;QACnD,OAAOA,KAAK,CAAC,OAAO;QACpB,OAAOA,KAAK,CAAC,YAAY;QAEzB,IAAI,IAAI,CAAC,KAAK,EACVA,KAAK,CAAC,kBAAkB,GAAG,IAAI,CAAC,KAAK;aAErCA,KAAK,CAAC,sBAAsB,GAAGQ;QAGnC,IAAIF,QAAQA,KAAK,MAAM,GAAG,GAAG;YACzB,MAAMG,gBAA2C,EAAE;YACnD,IAAIF,AAAa,SAAbA,UACAE,cAAc,IAAI,CAAC;gBAAE,SAASH;YAAK;iBAEnCG,cAAc,IAAI,IAAIH,KAAK,GAAG,CAACI,CAAAA,MAAQ;oBAAE,SAAS;wBAACA;qBAAI;gBAAC;YAE5DV,KAAK,CAAC,MAAM,GAAGS;QACnB;QAEA,IAAIT,KAAK,CAAC,WAAW,EAAE;YACnB,MAAMW,kBAAkBX,KAAK,CAAC,WAAW;YACzC,MAAMY,SAASD,AAAoB,WAApBA;YAEf,IAAIZ,OAAO,MAAM,IAAIa;iBAEd,IAAKb,AAAAA,CAAAA,OAAO,MAAM,IAAIM,iBAAgB,KAAM,IAAI,CAAC,2BAA2B,EAAE;gBACjF,MAAMQ,cAAc,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAACF;gBAC7D,MAAMG,YAAYD,YAAY,GAAG,CAACE,CAAAA,IAAKA,EAAE,EAAE;gBAC3Cf,KAAK,CAAC,WAAW,GAAG;oBAAE,aAAac;gBAAU;YACjD,OACId,KAAK,CAAC,WAAW,GAAG;gBAAE,UAAUW;YAAgB;YAGpD,OAAOX,KAAK,CAAC,WAAW;QAC5B;QAEA,OAAOA;IACX;AACJ"}
@@ -0,0 +1 @@
1
+ export {};