@webiny/app-file-manager 6.0.0-beta.0 → 6.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (675) hide show
  1. package/BatchFileUploader.d.ts +2 -2
  2. package/BatchFileUploader.js +75 -112
  3. package/BatchFileUploader.js.map +1 -1
  4. package/README.md +7 -28
  5. package/app.js +9 -14
  6. package/app.js.map +1 -1
  7. package/components/BottomInfoBar/BottomInfoBar.d.ts +3 -3
  8. package/components/BottomInfoBar/BottomInfoBar.js +14 -17
  9. package/components/BottomInfoBar/BottomInfoBar.js.map +1 -1
  10. package/components/BottomInfoBar/ListStatus.js +17 -21
  11. package/components/BottomInfoBar/ListStatus.js.map +1 -1
  12. package/components/BottomInfoBar/SupportedFileTypes.d.ts +4 -2
  13. package/components/BottomInfoBar/SupportedFileTypes.js +37 -26
  14. package/components/BottomInfoBar/SupportedFileTypes.js.map +1 -1
  15. package/components/BottomInfoBar/index.d.ts +1 -1
  16. package/components/BottomInfoBar/index.js +1 -16
  17. package/components/BottomInfoBar/index.js.map +1 -1
  18. package/components/BulkActions/ActionDelete.js +70 -71
  19. package/components/BulkActions/ActionDelete.js.map +1 -1
  20. package/components/BulkActions/ActionEdit/ActionEdit.js +38 -45
  21. package/components/BulkActions/ActionEdit/ActionEdit.js.map +1 -1
  22. package/components/BulkActions/ActionEdit/ActionEdit.types.d.ts +2 -2
  23. package/components/BulkActions/ActionEdit/ActionEdit.types.js +1 -5
  24. package/components/BulkActions/ActionEdit/ActionEdit.types.js.map +1 -1
  25. package/components/BulkActions/ActionEdit/ActionEditPresenter.d.ts +1 -1
  26. package/components/BulkActions/ActionEdit/ActionEditPresenter.js +45 -80
  27. package/components/BulkActions/ActionEdit/ActionEditPresenter.js.map +1 -1
  28. package/components/BulkActions/ActionEdit/ActionEditPresenter.test.js +16 -19
  29. package/components/BulkActions/ActionEdit/ActionEditPresenter.test.js.map +1 -1
  30. package/components/BulkActions/ActionEdit/BatchEditorDialog/AddOperation.js +15 -18
  31. package/components/BulkActions/ActionEdit/BatchEditorDialog/AddOperation.js.map +1 -1
  32. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.d.ts +2 -2
  33. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.js +33 -54
  34. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.js.map +1 -1
  35. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.d.ts +1 -1
  36. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.js +36 -46
  37. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.js.map +1 -1
  38. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.d.ts +5 -10
  39. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.js +125 -173
  40. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.js.map +1 -1
  41. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.test.js +58 -49
  42. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.test.js.map +1 -1
  43. package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.d.ts +1 -1
  44. package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.js +20 -28
  45. package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.js.map +1 -1
  46. package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.d.ts +1 -1
  47. package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.js +34 -46
  48. package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.js.map +1 -1
  49. package/components/BulkActions/ActionEdit/BatchEditorDialog/index.d.ts +1 -1
  50. package/components/BulkActions/ActionEdit/BatchEditorDialog/index.js +1 -16
  51. package/components/BulkActions/ActionEdit/BatchEditorDialog/index.js.map +1 -1
  52. package/components/BulkActions/ActionEdit/GraphQLInputMapper.d.ts +15 -10
  53. package/components/BulkActions/ActionEdit/GraphQLInputMapper.js +41 -51
  54. package/components/BulkActions/ActionEdit/GraphQLInputMapper.js.map +1 -1
  55. package/components/BulkActions/ActionEdit/GraphQLInputMapper.test.js +90 -77
  56. package/components/BulkActions/ActionEdit/GraphQLInputMapper.test.js.map +1 -1
  57. package/components/BulkActions/ActionEdit/domain/Batch.js +23 -38
  58. package/components/BulkActions/ActionEdit/domain/Batch.js.map +1 -1
  59. package/components/BulkActions/ActionEdit/domain/BatchMapper.d.ts +1 -1
  60. package/components/BulkActions/ActionEdit/domain/BatchMapper.js +10 -27
  61. package/components/BulkActions/ActionEdit/domain/BatchMapper.js.map +1 -1
  62. package/components/BulkActions/ActionEdit/domain/Field.d.ts +2 -2
  63. package/components/BulkActions/ActionEdit/domain/Field.js +31 -53
  64. package/components/BulkActions/ActionEdit/domain/Field.js.map +1 -1
  65. package/components/BulkActions/ActionEdit/domain/FieldMapper.d.ts +1 -1
  66. package/components/BulkActions/ActionEdit/domain/FieldMapper.js +18 -41
  67. package/components/BulkActions/ActionEdit/domain/FieldMapper.js.map +1 -1
  68. package/components/BulkActions/ActionEdit/domain/index.d.ts +4 -4
  69. package/components/BulkActions/ActionEdit/domain/index.js +4 -49
  70. package/components/BulkActions/ActionEdit/domain/index.js.map +1 -1
  71. package/components/BulkActions/ActionEdit/index.d.ts +1 -1
  72. package/components/BulkActions/ActionEdit/index.js +1 -16
  73. package/components/BulkActions/ActionEdit/index.js.map +1 -1
  74. package/components/BulkActions/ActionEdit/useActionEditWorker.d.ts +2 -2
  75. package/components/BulkActions/ActionEdit/useActionEditWorker.js +44 -48
  76. package/components/BulkActions/ActionEdit/useActionEditWorker.js.map +1 -1
  77. package/components/BulkActions/ActionMove.js +64 -61
  78. package/components/BulkActions/ActionMove.js.map +1 -1
  79. package/components/BulkActions/BulkActions.js +35 -38
  80. package/components/BulkActions/BulkActions.js.map +1 -1
  81. package/components/BulkActions/index.d.ts +4 -4
  82. package/components/BulkActions/index.js +4 -43
  83. package/components/BulkActions/index.js.map +1 -1
  84. package/components/EditFileUsingUrl/EditFileUsingUrl.d.ts +1 -1
  85. package/components/EditFileUsingUrl/EditFileUsingUrl.js +31 -43
  86. package/components/EditFileUsingUrl/EditFileUsingUrl.js.map +1 -1
  87. package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.d.ts +2 -2
  88. package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.js +39 -49
  89. package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.js.map +1 -1
  90. package/components/EditFileUsingUrl/EditFileUsingUrlRepository.d.ts +2 -2
  91. package/components/EditFileUsingUrl/EditFileUsingUrlRepository.js +32 -49
  92. package/components/EditFileUsingUrl/EditFileUsingUrlRepository.js.map +1 -1
  93. package/components/EditFileUsingUrl/GetFileByUrl.d.ts +4 -4
  94. package/components/EditFileUsingUrl/GetFileByUrl.js +22 -34
  95. package/components/EditFileUsingUrl/GetFileByUrl.js.map +1 -1
  96. package/components/EditFileUsingUrl/Loading.js +30 -53
  97. package/components/EditFileUsingUrl/Loading.js.map +1 -1
  98. package/components/EditFileUsingUrl/UpdateFile.d.ts +4 -4
  99. package/components/EditFileUsingUrl/UpdateFile.js +6 -19
  100. package/components/EditFileUsingUrl/UpdateFile.js.map +1 -1
  101. package/components/EditFileUsingUrl/getFileByUrl.graphql.d.ts +1 -1
  102. package/components/EditFileUsingUrl/getFileByUrl.graphql.js +16 -13
  103. package/components/EditFileUsingUrl/getFileByUrl.graphql.js.map +1 -1
  104. package/components/EditFileUsingUrl/index.d.ts +1 -1
  105. package/components/EditFileUsingUrl/index.js +1 -16
  106. package/components/EditFileUsingUrl/index.js.map +1 -1
  107. package/components/Empty/Empty.d.ts +1 -1
  108. package/components/Empty/Empty.js +18 -23
  109. package/components/Empty/Empty.js.map +1 -1
  110. package/components/Empty/index.d.ts +1 -1
  111. package/components/Empty/index.js +1 -16
  112. package/components/Empty/index.js.map +1 -1
  113. package/components/FileDetails/FileDetails.d.ts +2 -2
  114. package/components/FileDetails/FileDetails.js +116 -140
  115. package/components/FileDetails/FileDetails.js.map +1 -1
  116. package/components/FileDetails/FileDetailsProvider.d.ts +1 -1
  117. package/components/FileDetails/FileDetailsProvider.js +11 -17
  118. package/components/FileDetails/FileDetailsProvider.js.map +1 -1
  119. package/components/FileDetails/components/ActionButton.d.ts +2 -1
  120. package/components/FileDetails/components/ActionButton.js +17 -24
  121. package/components/FileDetails/components/ActionButton.js.map +1 -1
  122. package/components/FileDetails/components/Actions.js +11 -34
  123. package/components/FileDetails/components/Actions.js.map +1 -1
  124. package/components/FileDetails/components/BaseFields.d.ts +1 -1
  125. package/components/FileDetails/components/BaseFields.js +14 -22
  126. package/components/FileDetails/components/BaseFields.js.map +1 -1
  127. package/components/FileDetails/components/Content.d.ts +2 -1
  128. package/components/FileDetails/components/Content.js +28 -41
  129. package/components/FileDetails/components/Content.js.map +1 -1
  130. package/components/FileDetails/components/CreatedOn.js +19 -52
  131. package/components/FileDetails/components/CreatedOn.js.map +1 -1
  132. package/components/FileDetails/components/Description.d.ts +2 -0
  133. package/components/FileDetails/components/Description.js +23 -0
  134. package/components/FileDetails/components/Description.js.map +1 -0
  135. package/components/FileDetails/components/Extensions.d.ts +1 -1
  136. package/components/FileDetails/components/Extensions.js +19 -50
  137. package/components/FileDetails/components/Extensions.js.map +1 -1
  138. package/components/FileDetails/components/Preview.js +9 -27
  139. package/components/FileDetails/components/Preview.js.map +1 -1
  140. package/components/FileDetails/components/Thumbnail.js +13 -18
  141. package/components/FileDetails/components/Thumbnail.js.map +1 -1
  142. package/components/FileDetails/index.d.ts +1 -1
  143. package/components/FileDetails/index.js +1 -16
  144. package/components/FileDetails/index.js.map +1 -1
  145. package/components/FileDropArea/FileDropArea.d.ts +9 -0
  146. package/components/FileDropArea/FileDropArea.js +69 -0
  147. package/components/FileDropArea/FileDropArea.js.map +1 -0
  148. package/components/FileDropArea/index.d.ts +1 -0
  149. package/components/FileDropArea/index.js +3 -0
  150. package/components/FileDropArea/index.js.map +1 -0
  151. package/components/FileDropPlaceholder/FileDropPlaceholder.d.ts +2 -0
  152. package/components/FileDropPlaceholder/FileDropPlaceholder.js +12 -0
  153. package/components/FileDropPlaceholder/FileDropPlaceholder.js.map +1 -0
  154. package/components/FileDropPlaceholder/index.d.ts +1 -0
  155. package/components/FileDropPlaceholder/index.js +3 -0
  156. package/components/FileDropPlaceholder/index.js.map +1 -0
  157. package/components/Filters/Filters.js +26 -0
  158. package/components/Filters/Filters.js.map +1 -0
  159. package/components/Filters/index.d.ts +1 -0
  160. package/components/Filters/index.js +3 -0
  161. package/components/Filters/index.js.map +1 -0
  162. package/components/Grid/ActionButton.d.ts +2 -1
  163. package/components/Grid/ActionButton.js +24 -21
  164. package/components/Grid/ActionButton.js.map +1 -1
  165. package/components/Grid/File.d.ts +23 -7
  166. package/components/Grid/File.js +77 -52
  167. package/components/Grid/File.js.map +1 -1
  168. package/components/Grid/Grid.d.ts +7 -4
  169. package/components/Grid/Grid.js +60 -67
  170. package/components/Grid/Grid.js.map +1 -1
  171. package/components/Grid/Thumbnail.js +13 -18
  172. package/components/Grid/Thumbnail.js.map +1 -1
  173. package/components/Grid/index.d.ts +1 -1
  174. package/components/Grid/index.js +1 -16
  175. package/components/Grid/index.js.map +1 -1
  176. package/components/Header/Actions.d.ts +5 -0
  177. package/components/Header/Actions.js +99 -0
  178. package/components/Header/Actions.js.map +1 -0
  179. package/components/Header/Header.d.ts +9 -0
  180. package/components/Header/Header.js +21 -0
  181. package/components/Header/Header.js.map +1 -0
  182. package/components/Header/Title.d.ts +2 -0
  183. package/components/Header/Title.js +55 -0
  184. package/components/Header/Title.js.map +1 -0
  185. package/components/Header/index.d.ts +1 -0
  186. package/components/Header/index.js +3 -0
  187. package/components/Header/index.js.map +1 -0
  188. package/components/ImageEditor/ImageEditor.d.ts +45 -0
  189. package/components/ImageEditor/ImageEditor.js +218 -0
  190. package/components/ImageEditor/ImageEditor.js.map +1 -0
  191. package/components/ImageEditor/ImageEditorDialog.d.ts +16 -0
  192. package/components/ImageEditor/ImageEditorDialog.js +53 -0
  193. package/components/ImageEditor/ImageEditorDialog.js.map +1 -0
  194. package/components/ImageEditor/index.d.ts +1 -0
  195. package/components/ImageEditor/index.js +3 -0
  196. package/components/ImageEditor/index.js.map +1 -0
  197. package/components/ImageEditor/toolbar/crop.d.ts +4 -0
  198. package/components/ImageEditor/toolbar/crop.js +67 -0
  199. package/components/ImageEditor/toolbar/crop.js.map +1 -0
  200. package/components/ImageEditor/toolbar/filter.d.ts +3 -0
  201. package/components/ImageEditor/toolbar/filter.js +167 -0
  202. package/components/ImageEditor/toolbar/filter.js.map +1 -0
  203. package/components/ImageEditor/toolbar/flip.d.ts +4 -0
  204. package/components/ImageEditor/toolbar/flip.js +94 -0
  205. package/components/ImageEditor/toolbar/flip.js.map +1 -0
  206. package/components/ImageEditor/toolbar/index.d.ts +4 -0
  207. package/components/ImageEditor/toolbar/index.js +6 -0
  208. package/components/ImageEditor/toolbar/index.js.map +1 -0
  209. package/components/ImageEditor/toolbar/rotate.d.ts +4 -0
  210. package/components/ImageEditor/toolbar/rotate.js +93 -0
  211. package/components/ImageEditor/toolbar/rotate.js.map +1 -0
  212. package/components/ImageEditor/toolbar/types.d.ts +32 -0
  213. package/components/ImageEditor/toolbar/types.js +3 -0
  214. package/components/ImageEditor/toolbar/types.js.map +1 -0
  215. package/components/LayoutSwitch/LayoutSwitch.js +18 -29
  216. package/components/LayoutSwitch/LayoutSwitch.js.map +1 -1
  217. package/components/LayoutSwitch/index.d.ts +1 -1
  218. package/components/LayoutSwitch/index.js +1 -16
  219. package/components/LayoutSwitch/index.js.map +1 -1
  220. package/components/NoPermissions/NoPermissions.d.ts +2 -0
  221. package/components/NoPermissions/NoPermissions.js +28 -0
  222. package/components/NoPermissions/NoPermissions.js.map +1 -0
  223. package/components/NoPermissions/index.d.ts +1 -0
  224. package/components/NoPermissions/index.js +3 -0
  225. package/components/NoPermissions/index.js.map +1 -0
  226. package/components/NoResults/NoResults.js +19 -15
  227. package/components/NoResults/NoResults.js.map +1 -1
  228. package/components/NoResults/index.d.ts +1 -1
  229. package/components/NoResults/index.js +1 -16
  230. package/components/NoResults/index.js.map +1 -1
  231. package/components/SearchWidget/SearchWidget.js +30 -0
  232. package/components/SearchWidget/SearchWidget.js.map +1 -0
  233. package/components/SearchWidget/index.d.ts +1 -0
  234. package/components/SearchWidget/index.js +3 -0
  235. package/components/SearchWidget/index.js.map +1 -0
  236. package/components/Table/Actions/CopyFile.js +19 -22
  237. package/components/Table/Actions/CopyFile.js.map +1 -1
  238. package/components/Table/Actions/DeleteFile.js +23 -25
  239. package/components/Table/Actions/DeleteFile.js.map +1 -1
  240. package/components/Table/Actions/EditFile.js +18 -23
  241. package/components/Table/Actions/EditFile.js.map +1 -1
  242. package/components/Table/Actions/MoveFile.js +15 -19
  243. package/components/Table/Actions/MoveFile.js.map +1 -1
  244. package/components/Table/Actions/index.d.ts +4 -4
  245. package/components/Table/Actions/index.js +4 -49
  246. package/components/Table/Actions/index.js.map +1 -1
  247. package/components/Table/Cells/CellActions.js +25 -30
  248. package/components/Table/Cells/CellActions.js.map +1 -1
  249. package/components/Table/Cells/CellAuthor.js +13 -14
  250. package/components/Table/Cells/CellAuthor.js.map +1 -1
  251. package/components/Table/Cells/CellCreated.js +15 -16
  252. package/components/Table/Cells/CellCreated.js.map +1 -1
  253. package/components/Table/Cells/CellModified.js +15 -16
  254. package/components/Table/Cells/CellModified.js.map +1 -1
  255. package/components/Table/Cells/CellName.d.ts +4 -4
  256. package/components/Table/Cells/CellName.js +55 -48
  257. package/components/Table/Cells/CellName.js.map +1 -1
  258. package/components/Table/Cells/CellSize.js +13 -18
  259. package/components/Table/Cells/CellSize.js.map +1 -1
  260. package/components/Table/Cells/CellThumbnail.d.ts +2 -0
  261. package/components/Table/Cells/CellThumbnail.js +16 -0
  262. package/components/Table/Cells/CellThumbnail.js.map +1 -0
  263. package/components/Table/Cells/CellType.js +12 -17
  264. package/components/Table/Cells/CellType.js.map +1 -1
  265. package/components/Table/Cells/index.d.ts +7 -7
  266. package/components/Table/Cells/index.js +7 -82
  267. package/components/Table/Cells/index.js.map +1 -1
  268. package/components/Table/Table.d.ts +4 -4
  269. package/components/Table/Table.js +23 -21
  270. package/components/Table/Table.js.map +1 -1
  271. package/components/Table/index.d.ts +3 -3
  272. package/components/Table/index.js +3 -38
  273. package/components/Table/index.js.map +1 -1
  274. package/{modules/FileManagerRenderer/FileManagerView/components → components}/TagsList/Empty.d.ts +1 -1
  275. package/components/TagsList/Empty.js +11 -0
  276. package/components/TagsList/Empty.js.map +1 -0
  277. package/components/TagsList/FilterSelect.d.ts +2 -0
  278. package/components/TagsList/FilterSelect.js +28 -0
  279. package/components/TagsList/FilterSelect.js.map +1 -0
  280. package/components/TagsList/FilterStatus.d.ts +7 -0
  281. package/components/TagsList/FilterStatus.js +27 -0
  282. package/components/TagsList/FilterStatus.js.map +1 -0
  283. package/{modules/FileManagerRenderer/FileManagerView/components → components}/TagsList/Tag.d.ts +2 -2
  284. package/components/TagsList/Tag.js +16 -0
  285. package/components/TagsList/Tag.js.map +1 -0
  286. package/components/TagsList/Tags.d.ts +8 -0
  287. package/components/TagsList/Tags.js +32 -0
  288. package/components/TagsList/Tags.js.map +1 -0
  289. package/{modules/FileManagerRenderer/FileManagerView/components → components}/TagsList/TagsList.d.ts +1 -1
  290. package/components/TagsList/TagsList.js +31 -0
  291. package/components/TagsList/TagsList.js.map +1 -0
  292. package/components/TagsList/index.d.ts +1 -0
  293. package/components/TagsList/index.js +3 -0
  294. package/components/TagsList/index.js.map +1 -0
  295. package/components/Thumbnail/Thumbnail.d.ts +2 -0
  296. package/components/Thumbnail/Thumbnail.js +16 -0
  297. package/components/Thumbnail/Thumbnail.js.map +1 -0
  298. package/components/Thumbnail/index.d.ts +1 -0
  299. package/components/Thumbnail/index.js +3 -0
  300. package/components/Thumbnail/index.js.map +1 -0
  301. package/components/UploadStatus/UploadStatus.d.ts +3 -1
  302. package/components/UploadStatus/UploadStatus.js +33 -32
  303. package/components/UploadStatus/UploadStatus.js.map +1 -1
  304. package/components/UploadStatus/index.d.ts +1 -1
  305. package/components/UploadStatus/index.js +1 -16
  306. package/components/UploadStatus/index.js.map +1 -1
  307. package/components/fields/AccessControl.js +31 -31
  308. package/components/fields/AccessControl.js.map +1 -1
  309. package/components/fields/Name.js +21 -23
  310. package/components/fields/Name.js.map +1 -1
  311. package/components/fields/Tags.js +30 -30
  312. package/components/fields/Tags.js.map +1 -1
  313. package/components/fields/index.d.ts +3 -4
  314. package/components/fields/index.js +3 -49
  315. package/components/fields/index.js.map +1 -1
  316. package/components/fields/useAccessControlField.d.ts +1 -2
  317. package/components/fields/useAccessControlField.js +9 -21
  318. package/components/fields/useAccessControlField.js.map +1 -1
  319. package/components/fields/useFileOrUndefined.js +4 -10
  320. package/components/fields/useFileOrUndefined.js.map +1 -1
  321. package/constants.d.ts +2 -2
  322. package/constants.js +4 -16
  323. package/constants.js.map +1 -1
  324. package/contexts/FileProvider.d.ts +1 -1
  325. package/contexts/FileProvider.js +12 -18
  326. package/contexts/FileProvider.js.map +1 -1
  327. package/hooks/useCopyFile.d.ts +1 -1
  328. package/hooks/useCopyFile.js +18 -24
  329. package/hooks/useCopyFile.js.map +1 -1
  330. package/hooks/useDeleteFile.d.ts +1 -1
  331. package/hooks/useDeleteFile.js +35 -62
  332. package/hooks/useDeleteFile.js.map +1 -1
  333. package/hooks/useFile.d.ts +1 -1
  334. package/hooks/useFile.js +5 -12
  335. package/hooks/useFile.js.map +1 -1
  336. package/hooks/useFileDetails.d.ts +1 -1
  337. package/hooks/useFileDetails.js +5 -12
  338. package/hooks/useFileDetails.js.map +1 -1
  339. package/hooks/useFileModel.js +5 -12
  340. package/hooks/useFileModel.js.map +1 -1
  341. package/hooks/useMoveFileToFolder.d.ts +1 -1
  342. package/hooks/useMoveFileToFolder.js +19 -21
  343. package/hooks/useMoveFileToFolder.js.map +1 -1
  344. package/index.d.ts +8 -8
  345. package/index.js +8 -101
  346. package/index.js.map +1 -1
  347. package/modules/Enterprise/HandleWebsocketMessages.d.ts +1 -0
  348. package/modules/Enterprise/HandleWebsocketMessages.js +57 -0
  349. package/modules/Enterprise/HandleWebsocketMessages.js.map +1 -0
  350. package/modules/Enterprise/components/ThreatScanInProgressFileBody.d.ts +2 -0
  351. package/modules/Enterprise/components/ThreatScanInProgressFileBody.js +23 -0
  352. package/modules/Enterprise/components/ThreatScanInProgressFileBody.js.map +1 -0
  353. package/modules/Enterprise/components/ThreatScanInProgressTableCell.d.ts +6 -0
  354. package/modules/Enterprise/components/ThreatScanInProgressTableCell.js +32 -0
  355. package/modules/Enterprise/components/ThreatScanInProgressTableCell.js.map +1 -0
  356. package/modules/Enterprise/constants.d.ts +3 -0
  357. package/modules/Enterprise/constants.js +5 -0
  358. package/modules/Enterprise/constants.js.map +1 -0
  359. package/modules/Enterprise/index.d.ts +2 -0
  360. package/modules/Enterprise/index.js +40 -0
  361. package/modules/Enterprise/index.js.map +1 -0
  362. package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.d.ts +2 -3
  363. package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.js +138 -129
  364. package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.js.map +1 -1
  365. package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.d.ts +1 -1
  366. package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.js +14 -25
  367. package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.js.map +1 -1
  368. package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.d.ts +1 -1
  369. package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.js +28 -11
  370. package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.js.map +1 -1
  371. package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.d.ts +1 -1
  372. package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.js +3 -9
  373. package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.js.map +1 -1
  374. package/modules/FileManagerApiProvider/FileManagerApiContext/index.d.ts +3 -3
  375. package/modules/FileManagerApiProvider/FileManagerApiContext/index.js +3 -26
  376. package/modules/FileManagerApiProvider/FileManagerApiContext/index.js.map +1 -1
  377. package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.d.ts +2 -2
  378. package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.js +4 -11
  379. package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.js.map +1 -1
  380. package/modules/FileManagerApiProvider/graphql.d.ts +8 -9
  381. package/modules/FileManagerApiProvider/graphql.js +116 -27
  382. package/modules/FileManagerApiProvider/graphql.js.map +1 -1
  383. package/modules/FileManagerApiProvider/index.js +11 -17
  384. package/modules/FileManagerApiProvider/index.js.map +1 -1
  385. package/modules/FileManagerRenderer/FileActions/FileDetails/CopyUrl.js +18 -25
  386. package/modules/FileManagerRenderer/FileActions/FileDetails/CopyUrl.js.map +1 -1
  387. package/modules/FileManagerRenderer/FileActions/FileDetails/DeleteImage.js +26 -39
  388. package/modules/FileManagerRenderer/FileActions/FileDetails/DeleteImage.js.map +1 -1
  389. package/modules/FileManagerRenderer/FileActions/FileDetails/Download.js +15 -23
  390. package/modules/FileManagerRenderer/FileActions/FileDetails/Download.js.map +1 -1
  391. package/modules/FileManagerRenderer/FileActions/FileDetails/EditImage.js +48 -59
  392. package/modules/FileManagerRenderer/FileActions/FileDetails/EditImage.js.map +1 -1
  393. package/modules/FileManagerRenderer/FileActions/FileDetails/MoveToFolder.js +14 -22
  394. package/modules/FileManagerRenderer/FileActions/FileDetails/MoveToFolder.js.map +1 -1
  395. package/modules/FileManagerRenderer/FileActions/Grid/Delete.d.ts +2 -0
  396. package/modules/FileManagerRenderer/FileActions/Grid/Delete.js +29 -0
  397. package/modules/FileManagerRenderer/FileActions/Grid/Delete.js.map +1 -0
  398. package/modules/FileManagerRenderer/FileActions/Grid/Download.js +16 -19
  399. package/modules/FileManagerRenderer/FileActions/Grid/Download.js.map +1 -1
  400. package/modules/FileManagerRenderer/FileActions/Grid/MoveToFolder.js +14 -17
  401. package/modules/FileManagerRenderer/FileActions/Grid/MoveToFolder.js.map +1 -1
  402. package/modules/FileManagerRenderer/FileActions/Grid/Settings.js +15 -18
  403. package/modules/FileManagerRenderer/FileActions/Grid/Settings.js.map +1 -1
  404. package/modules/FileManagerRenderer/FileActions/index.js +33 -38
  405. package/modules/FileManagerRenderer/FileActions/index.js.map +1 -1
  406. package/modules/FileManagerRenderer/FileManagerView/FileManagerView.js +168 -233
  407. package/modules/FileManagerRenderer/FileManagerView/FileManagerView.js.map +1 -1
  408. package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.d.ts +216 -63
  409. package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.js +55 -48
  410. package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.js.map +1 -1
  411. package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.d.ts +1 -1
  412. package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.js +42 -48
  413. package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.js.map +1 -1
  414. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.d.ts +2 -2
  415. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.js +34 -45
  416. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.js.map +1 -1
  417. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkEditField.js +11 -17
  418. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkEditField.js.map +1 -1
  419. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.d.ts +5 -5
  420. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.js +8 -22
  421. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.js.map +1 -1
  422. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.d.ts +20 -4
  423. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.js +20 -29
  424. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.js.map +1 -1
  425. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FilterByTags.js +7 -13
  426. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FilterByTags.js.map +1 -1
  427. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FiltersToWhere.js +7 -13
  428. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FiltersToWhere.js.map +1 -1
  429. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.d.ts +4 -4
  430. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.js +8 -22
  431. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.js.map +1 -1
  432. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderDropConfirmation.d.ts +5 -0
  433. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderDropConfirmation.js +10 -0
  434. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderDropConfirmation.js.map +1 -0
  435. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderFieldDecorator.d.ts +7 -0
  436. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderFieldDecorator.js +16 -0
  437. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderFieldDecorator.js.map +1 -0
  438. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.d.ts +15 -3
  439. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.js +18 -27
  440. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.js.map +1 -1
  441. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.d.ts +15 -3
  442. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.js +13 -19
  443. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.js.map +1 -1
  444. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.d.ts +2 -2
  445. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.js +1 -5
  446. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.js.map +1 -1
  447. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.d.ts +29 -6
  448. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.js +10 -22
  449. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.js.map +1 -1
  450. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Thumbnail.d.ts +28 -0
  451. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Thumbnail.js +30 -0
  452. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Thumbnail.js.map +1 -0
  453. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.d.ts +50 -5
  454. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.js +7 -9
  455. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.js.map +1 -1
  456. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.d.ts +148 -41
  457. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.js +40 -31
  458. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.js.map +1 -1
  459. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.d.ts +15 -3
  460. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.js +17 -26
  461. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.js.map +1 -1
  462. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.d.ts +20 -4
  463. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.js +20 -29
  464. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.js.map +1 -1
  465. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.d.ts +3 -3
  466. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.js +16 -24
  467. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.js.map +1 -1
  468. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.js +8 -14
  469. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.js.map +1 -1
  470. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.d.ts +15 -3
  471. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.js +12 -18
  472. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.js.map +1 -1
  473. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Width.js +8 -14
  474. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Width.js.map +1 -1
  475. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.d.ts +58 -19
  476. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.js +15 -21
  477. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.js.map +1 -1
  478. package/modules/FileManagerRenderer/FileManagerView/formatFileItem.d.ts +6 -0
  479. package/modules/FileManagerRenderer/FileManagerView/formatFileItem.js +19 -0
  480. package/modules/FileManagerRenderer/FileManagerView/formatFileItem.js.map +1 -0
  481. package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.d.ts +1 -1
  482. package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.js +7 -16
  483. package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.js.map +1 -1
  484. package/modules/FileManagerRenderer/FileManagerView/index.d.ts +1 -1
  485. package/modules/FileManagerRenderer/FileManagerView/index.js +55 -64
  486. package/modules/FileManagerRenderer/FileManagerView/index.js.map +1 -1
  487. package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.d.ts +1 -1
  488. package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.js +6 -17
  489. package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.js.map +1 -1
  490. package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.d.ts +30 -15
  491. package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.js +300 -310
  492. package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.js.map +1 -1
  493. package/modules/FileManagerRenderer/FileManagerViewProvider/index.d.ts +2 -2
  494. package/modules/FileManagerRenderer/FileManagerViewProvider/index.js +2 -27
  495. package/modules/FileManagerRenderer/FileManagerViewProvider/index.js.map +1 -1
  496. package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.d.ts +7 -5
  497. package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.js +30 -45
  498. package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.js.map +1 -1
  499. package/modules/FileManagerRenderer/FileManagerViewProvider/state.d.ts +5 -3
  500. package/modules/FileManagerRenderer/FileManagerViewProvider/state.js +5 -9
  501. package/modules/FileManagerRenderer/FileManagerViewProvider/state.js.map +1 -1
  502. package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.d.ts +2 -2
  503. package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.js +4 -10
  504. package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.js.map +1 -1
  505. package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.d.ts +7 -7
  506. package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.js +92 -92
  507. package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.js.map +1 -1
  508. package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.d.ts +1 -1
  509. package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.js +63 -81
  510. package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.js.map +1 -1
  511. package/modules/FileManagerRenderer/filters/FilterByType.js +9 -16
  512. package/modules/FileManagerRenderer/filters/FilterByType.js.map +1 -1
  513. package/modules/FileManagerRenderer/index.js +87 -84
  514. package/modules/FileManagerRenderer/index.js.map +1 -1
  515. package/modules/HeadlessCms/fileField.d.ts +1 -1
  516. package/modules/HeadlessCms/fileField.js +13 -21
  517. package/modules/HeadlessCms/fileField.js.map +1 -1
  518. package/modules/HeadlessCms/fileRenderer/fileField.d.ts +1 -1
  519. package/modules/HeadlessCms/fileRenderer/fileField.js +50 -92
  520. package/modules/HeadlessCms/fileRenderer/fileField.js.map +1 -1
  521. package/modules/HeadlessCms/fileRenderer/fileFields.d.ts +1 -1
  522. package/modules/HeadlessCms/fileRenderer/fileFields.js +78 -148
  523. package/modules/HeadlessCms/fileRenderer/fileFields.js.map +1 -1
  524. package/modules/HeadlessCms/fileRenderer/utils.d.ts +1 -11
  525. package/modules/HeadlessCms/fileRenderer/utils.js +3 -53
  526. package/modules/HeadlessCms/fileRenderer/utils.js.map +1 -1
  527. package/modules/HeadlessCms/index.js +8 -14
  528. package/modules/HeadlessCms/index.js.map +1 -1
  529. package/modules/SecurityPermissions.d.ts +2 -0
  530. package/modules/SecurityPermissions.js +36 -0
  531. package/modules/SecurityPermissions.js.map +1 -0
  532. package/modules/Settings/graphql.js +32 -15
  533. package/modules/Settings/graphql.js.map +1 -1
  534. package/modules/Settings/index.js +34 -32
  535. package/modules/Settings/index.js.map +1 -1
  536. package/modules/Settings/views/FileManagerSettings.js +146 -113
  537. package/modules/Settings/views/FileManagerSettings.js.map +1 -1
  538. package/modules/ThumbnailRenderers/FilePreviewDefaultRenderer.d.ts +2 -0
  539. package/modules/ThumbnailRenderers/FilePreviewDefaultRenderer.js +12 -0
  540. package/modules/ThumbnailRenderers/FilePreviewDefaultRenderer.js.map +1 -0
  541. package/modules/ThumbnailRenderers/FilePreviewImageRenderer.d.ts +2 -0
  542. package/modules/ThumbnailRenderers/FilePreviewImageRenderer.js +19 -0
  543. package/modules/ThumbnailRenderers/FilePreviewImageRenderer.js.map +1 -0
  544. package/modules/ThumbnailRenderers/GridItemDefaultRenderer.d.ts +2 -0
  545. package/modules/ThumbnailRenderers/GridItemDefaultRenderer.js +12 -0
  546. package/modules/ThumbnailRenderers/GridItemDefaultRenderer.js.map +1 -0
  547. package/modules/ThumbnailRenderers/GridItemImageRenderer.d.ts +2 -0
  548. package/modules/ThumbnailRenderers/GridItemImageRenderer.js +19 -0
  549. package/modules/ThumbnailRenderers/GridItemImageRenderer.js.map +1 -0
  550. package/modules/ThumbnailRenderers/TableItemDefaultRenderer.d.ts +2 -0
  551. package/modules/ThumbnailRenderers/TableItemDefaultRenderer.js +19 -0
  552. package/modules/ThumbnailRenderers/TableItemDefaultRenderer.js.map +1 -0
  553. package/modules/ThumbnailRenderers/TableItemImageRenderer.d.ts +2 -0
  554. package/modules/ThumbnailRenderers/TableItemImageRenderer.js +19 -0
  555. package/modules/ThumbnailRenderers/TableItemImageRenderer.js.map +1 -0
  556. package/package.json +32 -43
  557. package/routes.d.ts +4 -0
  558. package/routes.js +9 -0
  559. package/routes.js.map +1 -0
  560. package/tagsHelpers.d.ts +1 -1
  561. package/tagsHelpers.js +31 -37
  562. package/tagsHelpers.js.map +1 -1
  563. package/types.d.ts +55 -12
  564. package/types.js +1 -12
  565. package/types.js.map +1 -1
  566. package/components/BottomInfoBar/styled.d.ts +0 -21
  567. package/components/BottomInfoBar/styled.js +0 -81
  568. package/components/BottomInfoBar/styled.js.map +0 -1
  569. package/components/BulkActions/ActionEdit/ActionEdit.styled.d.ts +0 -28
  570. package/components/BulkActions/ActionEdit/ActionEdit.styled.js +0 -77
  571. package/components/BulkActions/ActionEdit/ActionEdit.styled.js.map +0 -1
  572. package/components/BulkActions/ActionEdit/BatchEditorDialog/RemoveOperation.d.ts +0 -7
  573. package/components/BulkActions/ActionEdit/BatchEditorDialog/RemoveOperation.js +0 -26
  574. package/components/BulkActions/ActionEdit/BatchEditorDialog/RemoveOperation.js.map +0 -1
  575. package/components/BulkActions/BulkActions.styled.d.ts +0 -13
  576. package/components/BulkActions/BulkActions.styled.js +0 -46
  577. package/components/BulkActions/BulkActions.styled.js.map +0 -1
  578. package/components/DropFilesHere/DropFilesHere.d.ts +0 -8
  579. package/components/DropFilesHere/DropFilesHere.js +0 -28
  580. package/components/DropFilesHere/DropFilesHere.js.map +0 -1
  581. package/components/DropFilesHere/index.d.ts +0 -1
  582. package/components/DropFilesHere/index.js +0 -18
  583. package/components/DropFilesHere/index.js.map +0 -1
  584. package/components/DropFilesHere/styled.d.ts +0 -22
  585. package/components/DropFilesHere/styled.js +0 -61
  586. package/components/DropFilesHere/styled.js.map +0 -1
  587. package/components/FileDetails/components/Flex.d.ts +0 -7
  588. package/components/FileDetails/components/Flex.js +0 -48
  589. package/components/FileDetails/components/Flex.js.map +0 -1
  590. package/components/FileDetails/components/Footer.d.ts +0 -2
  591. package/components/FileDetails/components/Footer.js +0 -40
  592. package/components/FileDetails/components/Footer.js.map +0 -1
  593. package/components/FileDetails/components/Header.d.ts +0 -2
  594. package/components/FileDetails/components/Header.js +0 -40
  595. package/components/FileDetails/components/Header.js.map +0 -1
  596. package/components/FileDetails/components/PreviewMeta.d.ts +0 -2
  597. package/components/FileDetails/components/PreviewMeta.js +0 -31
  598. package/components/FileDetails/components/PreviewMeta.js.map +0 -1
  599. package/components/FileDetails/components/TypeAndSize.d.ts +0 -2
  600. package/components/FileDetails/components/TypeAndSize.js +0 -67
  601. package/components/FileDetails/components/TypeAndSize.js.map +0 -1
  602. package/components/Grid/styled.d.ts +0 -41
  603. package/components/Grid/styled.js +0 -137
  604. package/components/Grid/styled.js.map +0 -1
  605. package/components/NoPermission/NoPermission.d.ts +0 -2
  606. package/components/NoPermission/NoPermission.js +0 -25
  607. package/components/NoPermission/NoPermission.js.map +0 -1
  608. package/components/NoPermission/index.d.ts +0 -1
  609. package/components/NoPermission/index.js +0 -18
  610. package/components/NoPermission/index.js.map +0 -1
  611. package/components/NoPermission/styled.d.ts +0 -24
  612. package/components/NoPermission/styled.js +0 -97
  613. package/components/NoPermission/styled.js.map +0 -1
  614. package/components/NoResults/styled.d.ts +0 -5
  615. package/components/NoResults/styled.js +0 -25
  616. package/components/NoResults/styled.js.map +0 -1
  617. package/components/Table/Cells/Cells.styled.d.ts +0 -12
  618. package/components/Table/Cells/Cells.styled.js +0 -54
  619. package/components/Table/Cells/Cells.styled.js.map +0 -1
  620. package/components/Title/Title.d.ts +0 -5
  621. package/components/Title/Title.js +0 -21
  622. package/components/Title/Title.js.map +0 -1
  623. package/components/Title/index.d.ts +0 -1
  624. package/components/Title/index.js +0 -18
  625. package/components/Title/index.js.map +0 -1
  626. package/components/Title/styled.d.ts +0 -4
  627. package/components/Title/styled.js +0 -26
  628. package/components/Title/styled.js.map +0 -1
  629. package/components/UploadStatus/assets/check.svg +0 -3
  630. package/components/UploadStatus/assets/loading.svg +0 -17
  631. package/components/UploadStatus/styled.d.ts +0 -39
  632. package/components/UploadStatus/styled.js +0 -127
  633. package/components/UploadStatus/styled.js.map +0 -1
  634. package/components/fields/Aliases.d.ts +0 -2
  635. package/components/fields/Aliases.js +0 -136
  636. package/components/fields/Aliases.js.map +0 -1
  637. package/modules/FileManagerRenderer/FileManagerView/NavigateFolderProvider.d.ts +0 -4
  638. package/modules/FileManagerRenderer/FileManagerView/NavigateFolderProvider.js +0 -37
  639. package/modules/FileManagerRenderer/FileManagerView/NavigateFolderProvider.js.map +0 -1
  640. package/modules/FileManagerRenderer/FileManagerView/components/Filters.js +0 -33
  641. package/modules/FileManagerRenderer/FileManagerView/components/Filters.js.map +0 -1
  642. package/modules/FileManagerRenderer/FileManagerView/components/SearchWidget.js +0 -98
  643. package/modules/FileManagerRenderer/FileManagerView/components/SearchWidget.js.map +0 -1
  644. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Empty.js +0 -19
  645. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Empty.js.map +0 -1
  646. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Tag.js +0 -29
  647. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Tag.js.map +0 -1
  648. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/TagsList.js +0 -74
  649. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/TagsList.js.map +0 -1
  650. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/index.d.ts +0 -1
  651. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/index.js +0 -18
  652. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/index.js.map +0 -1
  653. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/styled.d.ts +0 -21
  654. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/styled.js +0 -61
  655. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/styled.js.map +0 -1
  656. package/modules/HeadlessCms/fileRenderer/File.d.ts +0 -10
  657. package/modules/HeadlessCms/fileRenderer/File.js +0 -86
  658. package/modules/HeadlessCms/fileRenderer/File.js.map +0 -1
  659. package/modules/Settings/plugins/installation.d.ts +0 -3
  660. package/modules/Settings/plugins/installation.js +0 -96
  661. package/modules/Settings/plugins/installation.js.map +0 -1
  662. package/modules/Settings/plugins/permissionRenderer/FileManagerPermissions.d.ts +0 -14
  663. package/modules/Settings/plugins/permissionRenderer/FileManagerPermissions.js +0 -232
  664. package/modules/Settings/plugins/permissionRenderer/FileManagerPermissions.js.map +0 -1
  665. package/modules/Settings/plugins/permissionRenderer/index.d.ts +0 -3
  666. package/modules/Settings/plugins/permissionRenderer/index.js +0 -29
  667. package/modules/Settings/plugins/permissionRenderer/index.js.map +0 -1
  668. package/modules/ThumbnailRenderers/DefaultRenderer.d.ts +0 -2
  669. package/modules/ThumbnailRenderers/DefaultRenderer.js +0 -25
  670. package/modules/ThumbnailRenderers/DefaultRenderer.js.map +0 -1
  671. package/modules/ThumbnailRenderers/ImageRenderer.d.ts +0 -2
  672. package/modules/ThumbnailRenderers/ImageRenderer.js +0 -29
  673. package/modules/ThumbnailRenderers/ImageRenderer.js.map +0 -1
  674. /package/{modules/FileManagerRenderer/FileManagerView/components → components/Filters}/Filters.d.ts +0 -0
  675. /package/{modules/FileManagerRenderer/FileManagerView/components → components/SearchWidget}/SearchWidget.d.ts +0 -0
@@ -1,31 +1,26 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.Empty = void 0;
8
- var _react = _interopRequireDefault(require("react"));
9
- var _ = require("../..");
10
- var _NoPermission = require("../NoPermission");
11
- var _NoResults = require("../NoResults");
12
- var _DropFilesHere = require("../DropFilesHere");
13
- var Empty = exports.Empty = function Empty(_ref) {
14
- var browseFiles = _ref.browseFiles,
15
- isSearchResult = _ref.isSearchResult;
16
- var _useFileManagerApi = (0, _.useFileManagerApi)(),
17
- canRead = _useFileManagerApi.canRead;
1
+ import React from "react";
2
+ import { useFileManagerApi } from "../../index.js";
3
+ import { NoPermissions } from "../NoPermissions/index.js";
4
+ import { NoResults } from "../NoResults/index.js";
5
+ import { FileDropArea } from "../FileDropArea/index.js";
6
+ export const Empty = ({
7
+ browseFiles,
8
+ isSearchResult
9
+ }) => {
10
+ const {
11
+ canRead
12
+ } = useFileManagerApi();
18
13
  if (!canRead) {
19
- return /*#__PURE__*/_react.default.createElement(_NoPermission.NoPermission, null);
14
+ return /*#__PURE__*/React.createElement(NoPermissions, null);
20
15
  }
21
16
  if (isSearchResult) {
22
- return /*#__PURE__*/_react.default.createElement(_NoResults.NoResults, null);
17
+ return /*#__PURE__*/React.createElement(NoResults, null);
23
18
  }
24
- return /*#__PURE__*/_react.default.createElement(_DropFilesHere.DropFilesHere, {
19
+ return /*#__PURE__*/React.createElement(FileDropArea, {
25
20
  empty: true,
26
- onClick: function onClick() {
27
- return browseFiles();
28
- }
21
+ onClick: () => browseFiles(),
22
+ title: "Drag & Drop files here",
23
+ description: "You can also upload files from your computer by clicking the button below"
29
24
  });
30
25
  };
31
26
 
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_","_NoPermission","_NoResults","_DropFilesHere","Empty","exports","_ref","browseFiles","isSearchResult","_useFileManagerApi","useFileManagerApi","canRead","default","createElement","NoPermission","NoResults","DropFilesHere","empty","onClick"],"sources":["Empty.tsx"],"sourcesContent":["import React from \"react\";\nimport { FilesRenderChildren } from \"react-butterfiles\";\n\nimport { useFileManagerApi } from \"~/index\";\nimport { NoPermission } from \"~/components/NoPermission\";\nimport { NoResults } from \"~/components/NoResults\";\nimport { DropFilesHere } from \"~/components/DropFilesHere\";\n\ninterface EmptyViewProps {\n browseFiles: FilesRenderChildren[\"browseFiles\"];\n isSearchResult?: boolean;\n}\n\nexport const Empty = ({ browseFiles, isSearchResult }: EmptyViewProps) => {\n const { canRead } = useFileManagerApi();\n\n if (!canRead) {\n return <NoPermission />;\n }\n if (isSearchResult) {\n return <NoResults />;\n }\n\n return <DropFilesHere empty onClick={() => browseFiles()} />;\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,CAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AAOO,IAAMK,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAG,SAARA,KAAKA,CAAAE,IAAA,EAAwD;EAAA,IAAlDC,WAAW,GAAAD,IAAA,CAAXC,WAAW;IAAEC,cAAc,GAAAF,IAAA,CAAdE,cAAc;EAC/C,IAAAC,kBAAA,GAAoB,IAAAC,mBAAiB,EAAC,CAAC;IAA/BC,OAAO,GAAAF,kBAAA,CAAPE,OAAO;EAEf,IAAI,CAACA,OAAO,EAAE;IACV,oBAAOd,MAAA,CAAAe,OAAA,CAAAC,aAAA,CAACZ,aAAA,CAAAa,YAAY,MAAE,CAAC;EAC3B;EACA,IAAIN,cAAc,EAAE;IAChB,oBAAOX,MAAA,CAAAe,OAAA,CAAAC,aAAA,CAACX,UAAA,CAAAa,SAAS,MAAE,CAAC;EACxB;EAEA,oBAAOlB,MAAA,CAAAe,OAAA,CAAAC,aAAA,CAACV,cAAA,CAAAa,aAAa;IAACC,KAAK;IAACC,OAAO,EAAE,SAAAA,QAAA;MAAA,OAAMX,WAAW,CAAC,CAAC;IAAA;EAAC,CAAE,CAAC;AAChE,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useFileManagerApi","NoPermissions","NoResults","FileDropArea","Empty","browseFiles","isSearchResult","canRead","createElement","empty","onClick","title","description"],"sources":["Empty.tsx"],"sourcesContent":["import React from \"react\";\nimport type { FilesRenderChildren } from \"react-butterfiles\";\n\nimport { useFileManagerApi } from \"~/index.js\";\nimport { NoPermissions } from \"~/components/NoPermissions/index.js\";\nimport { NoResults } from \"~/components/NoResults/index.js\";\nimport { FileDropArea } from \"~/components/FileDropArea/index.js\";\n\ninterface EmptyViewProps {\n browseFiles: FilesRenderChildren[\"browseFiles\"];\n isSearchResult?: boolean;\n}\n\nexport const Empty = ({ browseFiles, isSearchResult }: EmptyViewProps) => {\n const { canRead } = useFileManagerApi();\n\n if (!canRead) {\n return <NoPermissions />;\n }\n\n if (isSearchResult) {\n return <NoResults />;\n }\n\n return (\n <FileDropArea\n empty\n onClick={() => browseFiles()}\n title={\"Drag & Drop files here\"}\n description={\n \"You can also upload files from your computer by clicking the button below\"\n }\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAGzB,SAASC,iBAAiB;AAC1B,SAASC,aAAa;AACtB,SAASC,SAAS;AAClB,SAASC,YAAY;AAOrB,OAAO,MAAMC,KAAK,GAAGA,CAAC;EAAEC,WAAW;EAAEC;AAA+B,CAAC,KAAK;EACtE,MAAM;IAAEC;EAAQ,CAAC,GAAGP,iBAAiB,CAAC,CAAC;EAEvC,IAAI,CAACO,OAAO,EAAE;IACV,oBAAOR,KAAA,CAAAS,aAAA,CAACP,aAAa,MAAE,CAAC;EAC5B;EAEA,IAAIK,cAAc,EAAE;IAChB,oBAAOP,KAAA,CAAAS,aAAA,CAACN,SAAS,MAAE,CAAC;EACxB;EAEA,oBACIH,KAAA,CAAAS,aAAA,CAACL,YAAY;IACTM,KAAK;IACLC,OAAO,EAAEA,CAAA,KAAML,WAAW,CAAC,CAAE;IAC7BM,KAAK,EAAE,wBAAyB;IAChCC,WAAW,EACP;EACH,CACJ,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- export * from "./Empty";
1
+ export * from "./Empty.js";
@@ -1,18 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _Empty = require("./Empty");
7
- Object.keys(_Empty).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _Empty[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function get() {
13
- return _Empty[key];
14
- }
15
- });
16
- });
1
+ export * from "./Empty.js";
17
2
 
18
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_Empty","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["index.tsx"],"sourcesContent":["export * from \"./Empty\";\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.tsx"],"sourcesContent":["export * from \"./Empty.js\";\n"],"mappings":"AAAA","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { FileItem } from "@webiny/app-admin/types";
2
+ import type { FileItem } from "../../types.js";
3
3
  export interface FileDetailsProps {
4
4
  file?: FileItem;
5
5
  open: boolean;
@@ -8,4 +8,4 @@ export interface FileDetailsProps {
8
8
  onSave: (file: FileItem) => void;
9
9
  onSetFile?: (file: FileItem) => void;
10
10
  }
11
- export declare const FileDetails: ({ open, onClose, onSave, loading, file, onSetFile }: FileDetailsProps) => React.JSX.Element;
11
+ export declare const FileDetails: ({ open, onClose, onSave, loading, file, onSetFile }: FileDetailsProps) => React.JSX.Element | null;
@@ -1,166 +1,142 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.FileDetails = void 0;
9
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
10
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
12
- var _base = _interopRequireDefault(require("@emotion/styled/base"));
13
- var _react = _interopRequireWildcard(require("react"));
14
- var _reactDom = _interopRequireDefault(require("react-dom"));
15
- var _noop = _interopRequireDefault(require("lodash/noop"));
16
- var _reactHotkeyz = require("react-hotkeyz");
17
- var _form = require("@webiny/form");
18
- var _appHeadlessCmsCommon = require("@webiny/app-headless-cms-common");
19
- var _Drawer = require("@webiny/ui/Drawer");
20
- var _Progress = require("@webiny/ui/Progress");
21
- var _Grid = require("@webiny/ui/Grid");
22
- var _Tabs = require("@webiny/ui/Tabs");
23
- var _FileDetailsProvider = require("./FileDetailsProvider");
24
- var _Preview = require("./components/Preview");
25
- var _PreviewMeta = require("./components/PreviewMeta");
26
- var _Actions = require("./components/Actions");
27
- var _Header = require("./components/Header");
28
- var _Elevation = require("@webiny/ui/Elevation");
29
- var _Content = require("./components/Content");
30
- var _SimpleForm = require("@webiny/app-admin/components/SimpleForm");
31
- var _Footer = require("./components/Footer");
32
- var _Extensions = require("./components/Extensions");
33
- var _useFileModel = require("../../hooks/useFileModel");
34
- var _ = require("../..");
35
- var _FileProvider = require("../../contexts/FileProvider");
36
- var _excluded = ["file"];
37
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } // @ts-expect-error This package has no types.
38
- var FileDetailsDrawer = /*#__PURE__*/(0, _base.default)(_Drawer.DrawerRight, process.env.NODE_ENV === "production" ? {
39
- target: "ekbey2w1"
40
- } : {
41
- target: "ekbey2w1",
42
- label: "FileDetailsDrawer"
43
- })("z-index:70;&.mdc-drawer{width:", function (props) {
44
- return props.width;
45
- }, ";}.mdc-drawer__content{overflow-y:hidden;}&+.mdc-drawer-scrim{z-index:65;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZpbGVEZXRhaWxzLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE2QnFFIiwiZmlsZSI6IkZpbGVEZXRhaWxzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyB1c2VNZW1vLCB1c2VSZWYgfSBmcm9tIFwicmVhY3RcIjtcbmltcG9ydCBSZWFjdERPTSBmcm9tIFwicmVhY3QtZG9tXCI7XG5pbXBvcnQgbm9vcCBmcm9tIFwibG9kYXNoL25vb3BcIj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NvbnN0IG9uU3VibWl0OiBGb3JtT25TdWJtaXQ8RmlsZUl0ZW0+ID0gYXN5bmMgZGF0YSA9PiB7XG4gICAgICAgIGNvbnN0IGZpbGVEYXRhID0gcHJlcGFyZUZvcm1EYXRhKGRhdGEsIGZpbGVNb2RlbC5maWVsZHMpO1xuICAgICAgICBwcm9wcy5vblN1Ym1pdCh7IC4uLmZpbGUsIC4uLmZpbGVEYXRhIH0pO1xuICAgIH07XG5cbiAgICBjb25zdCBiYXNpY0ZpZWxkc0VsZW1lbnQgPSAoXG4gICAgICAgIDxHcmlkPlxuICAgICAgICAgICAge2ZpbGVEZXRhaWxzLmZpZWxkcy5tYXAoZmllbGQgPT4gKFxuICAgICAgICAgICAgICAgIDxDZWxsIHNwYW49ezEyfSBrZXk9e2ZpZWxkLm5hbWV9PlxuICAgICAgICAgICAgICAgICAgICB7ZmllbGQuZWxlbWVudH1cbiAgICAgICAgICAgICAgICA8L0NlbGw+XG4gICAgICAgICAgICApKX1cbiAgICAgICAgPC9HcmlkPlxuICAgICk7XG5cbiAgICBjb25zdCBleHRlbnNpb25GaWVsZHNFbGVtZW50ID1cbiAgICAgICAgZXh0ZW5zaW9uRmllbGRzLmxlbmd0aCA+IDAgPyA8RXh0ZW5zaW9ucyBtb2RlbD17ZmlsZU1vZGVsfSAvPiA6IG51bGw7XG5cbiAgICByZXR1cm4gKFxuICAgICAgICA8Rm9ybSBkYXRhPXtmaWxlfSBvblN1Ym1pdD17b25TdWJtaXR9PlxuICAgICAgICAgICAgeygpID0+IChcbiAgICAgICAgICAgICAgICA8Rm9ybUNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICAgICAgPEhlYWRlciAvPlxuICAgICAgICAgICAgICAgICAgICA8Q29udGVudD5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxDb250ZW50LlBhbmVsIGZsZXg9e3BhcnNlRmxvYXQobGVmdFBhbmVsKX0+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPEVsZXZhdGlvbiB6PXsyfSBzdHlsZT17eyBtYXJnaW46IDIwIH19PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8QWN0aW9ucyAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8UHJldmlldyAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8UHJldmlld01ldGEgLz5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L0VsZXZhdGlvbj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvQ29udGVudC5QYW5lbD5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxDb250ZW50LlBhbmVsIGZsZXg9e3BhcnNlRmxvYXQocmlnaHRQYW5lbCl9PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtmaWxlRGV0YWlscy5ncm91cEZpZWxkcyA/IChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPFRhYnM+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8VGFiIGxhYmVsPXtcIkJhc2ljIERldGFpbHNcIn0+e2Jhc2ljRmllbGRzRWxlbWVudH08L1RhYj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxUYWIgbGFiZWw9e1wiQWR2YW5jZWQgRGV0YWlsc1wifT57ZXh0ZW5zaW9uRmllbGRzRWxlbWVudH08L1RhYj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9UYWJzPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICkgOiAoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDw+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7YmFzaWNGaWVsZHNFbGVtZW50fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge2V4dGVuc2lvbkZpZWxkc0VsZW1lbnR9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvPlxuICAgICAgICAgICAgICAgICAgICAgICAg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bGVEZXRhaWxzUHJvcHMge1xuICAgIGZpbGU/OiBGaWxlSXRlbTtcbiAgICBvcGVuOiBib29sZWFuO1xuICAgIGxvYWRpbmc6IHN0cmluZyB8IG51bGw7XG4gICAgb25DbG9zZTogKCkgPT4gdm9pZDtcbiAgICBvblNhdmU6IChmaWxlOiBGaWxlSXRlbSkgPT4gdm9pZDtcbiAgICBvblNldEZpbGU/OiAoZmlsZTogRmlsZUl0ZW0pID0+IHZvaWQ7XG59XG5cbmV4cG9ydCBjb25zdCBGaWxlRGV0YWlscyA9ICh7XG4gICAgb3BlbixcbiAgICBvbkNsb3NlLFxuICAgIG9uU2F2ZSxcbiAgICBsb2FkaW5nLFxuICAgIGZpbGUsXG4gICAgb25TZXRGaWxlID0gbm9vcFxufTogRmlsZURldGFpbHNQcm9wcykgPT4ge1xuICAgIHVzZUhvdGtleXMoe1xuICAgICAgICB6SW5kZXg6IDU1LFxuICAgICAgICBkaXNhYmxlZDogIW9wZW4sXG4gICAgICAgIGtleXM6IHtcbiAgICAgICAgICAgIGVzYzogb25DbG9zZVxuICAgICAgICB9XG4gICAgfSk7XG5cbiAgICBjb25zdCB7IGZpbGVEZXRhaWxzIH0gPSB1c2VGaWxlTWFuYWdlclZpZXdDb25maWcoKTtcblxuICAgIGNvbnN0IGRyYXdlcldpZHRoID0gZmlsZURldGFpbHMud2lkdGguc3BsaXQoXCIsXCIpWzBdO1xuXG4gICAgcmV0dXJuIChcbiAgICAgICAgPEZpbGVEZXRhaWxzUG9ydGFsPlxuICAgICAgICAgICAgPEZpbGVEZXRhaWxzRHJhd2VyXG4gICAgICAgICAgICAgICAgd2lkdGg9e2RyYXdlcldpZHRofVxuICAgICAgICAgICAgICAgIG1vZGFsXG4gICAgICAgICAgICAgICAgb3Blbj17b3Blbn1cbiAgICAgICAgICAgICAgICBvbkNsb3NlPXtvbkNsb3NlfVxuICAgICAgICAgICAgICAgIGRhdGEtdGVzdGlkPXtcImZtLmZpbGUtZGV0YWlscy5kcmF3ZXJcIn1cbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICA8RHJhd2VyQ29udGVudD5cbiAgICAgICAgICAgICAgICAgICAge2xvYWRpbmcgJiYgPENpcmN1bGFyUHJvZ3Jlc3MgbGFiZWw9e2xvYWRpbmd9IC8+fVxuICAgICAgICAgICAgICAgICAgICB7ZmlsZSAmJiAoXG4gICAgICAgICAgICAgICAgICAgICAgICA8RmlsZVByb3ZpZGVyIGZpbGU9e2ZpbGV9PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxGaWxlRGV0YWlsc1Byb3ZpZGVyIGhpZGVGaWxlRGV0YWlscz17b25DbG9zZX0gb25TZXRGaWxlPXtvblNldEZpbGV9PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8RmlsZURldGFpbHNJbm5lciBmaWxlPXtmaWxlfSBvbkNsb3NlPXtvbkNsb3NlfSBvblN1Ym1pdD17b25TYXZlfSAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvRmlsZURldGFpbHNQcm92aWRlcj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvRmlsZVByb3ZpZGVyPlxuICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgIDwvRHJhd2VyQ29udGVudD5cbiAgICAgICAgICAgIDwvRmlsZURldGFpbHNEcmF3ZXI+XG4gICAgICAgIDwvRmlsZURldGFpbHNQb3J0YWw+XG4gICAgKTtcbn07XG4iXX0= */"));
46
- var FormContainer = /*#__PURE__*/(0, _base.default)(_SimpleForm.SimpleForm, process.env.NODE_ENV === "production" ? {
47
- target: "ekbey2w0"
48
- } : {
49
- target: "ekbey2w0",
50
- label: "FormContainer"
51
- })(process.env.NODE_ENV === "production" ? {
52
- name: "ti75j2",
53
- styles: "margin:0"
54
- } : {
55
- name: "ti75j2",
56
- styles: "margin:0",
57
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZp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17b25TdWJtaXR9PlxuICAgICAgICAgICAgeygpID0+IChcbiAgICAgICAgICAgICAgICA8Rm9ybUNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICAgICAgPEhlYWRlciAvPlxuICAgICAgICAgICAgICAgICAgICA8Q29udGVudD5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxDb250ZW50LlBhbmVsIGZsZXg9e3BhcnNlRmxvYXQobGVmdFBhbmVsKX0+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPEVsZXZhdGlvbiB6PXsyfSBzdHlsZT17eyBtYXJnaW46IDIwIH19PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8QWN0aW9ucyAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8UHJldmlldyAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8UHJldmlld01ldGEgLz5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L0VsZXZhdGlvbj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvQ29udGVudC5QYW5lbD5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxDb250ZW50LlBhbmVsIGZsZXg9e3BhcnNlRmxvYXQocmlnaHRQYW5lbCl9PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtmaWxlRGV0YWlscy5ncm91cEZpZWxkcyA/IChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPFRhYnM+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8VGFiIGxhYmVsPXtcIkJhc2ljIERldGFpbHNcIn0+e2Jhc2ljRmllbGRzRWxlbWVudH08L1RhYj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxUYWIgbGFiZWw9e1wiQWR2YW5jZWQgRGV0YWlsc1wifT57ZXh0ZW5zaW9uRmllbGRzRWxlbWVudH08L1RhYj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9UYWJzPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICkgOiAoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDw+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7YmFzaWNGaWVsZHNFbGVtZW50fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge2V4dGVuc2lvbkZpZWxkc0VsZW1lbnR9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgICAgICAgICA8L0NvbnRlbnQuUGFuZWw+XG4gICAgICAgICAgICAgICAgICAgIDwvQ29udGVudD5cbiAgICAgICAgICAgICAgICAgICAgPEZvb3RlciAvPlxuICAgICAgICAgICAgICAgIDwvRm9ybUNvbnRhaW5lcj5cbiAgICAgICAgICAgICl9XG4gICAgICAgIDwvRm9ybT5cbiAgICApO1xufTtcblxuZnVuY3Rpb24gZ2V0UG9ydGFsVGFyZ2V0KCkge1xuICAgIGxldCB0YXJnZXQgPSB3aW5kb3cuZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoXCJmaWxlLWRldGFpbHMtZHJhd2VyXCIpO1xuICAgIGlmICghdGFyZ2V0KSB7XG4gICAgICAgIHRhcmdldCA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoXCJkaXZcIik7XG4gICAgICAgIHRhcmdldC5zZXRBdHRyaWJ1dGUoXCJpZFwiLCBcImZpbGUtZGV0YWlscy1kcmF3ZXJcIik7XG4gICAgICAgIGRvY3VtZW50LmJvZHkgJiYgZG9jdW1lbnQuYm9keS5hcHBlbmRDaGlsZCh0YXJnZXQpO1xuICAgIH1cbiAgICByZXR1cm4gdGFyZ2V0O1xufVxuXG5pbnRlcmZhY2UgRmlsZURldGFpbHNQb3J0YWxQcm9wcyB7XG4gICAgY2hpbGRyZW46IFJlYWN0LlJlYWN0Tm9kZTtcbn1cblxuY29uc3QgRmlsZURldG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PEZpbGVEZXRhaWxzUG9ydGFsPlxuICAgICAgICAgICAgPEZpbGVEZXRhaWxzRHJhd2VyXG4gICAgICAgICAgICAgICAgd2lkdGg9e2RyYXdlcldpZHRofVxuICAgICAgICAgICAgICAgIG1vZGFsXG4gICAgICAgICAgICAgICAgb3Blbj17b3Blbn1cbiAgICAgICAgICAgICAgICBvbkNsb3NlPXtvbkNsb3NlfVxuICAgICAgICAgICAgICAgIGRhdGEtdGVzdGlkPXtcImZtLmZpbGUtZGV0YWlscy5kcmF3ZXJcIn1cbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICA8RHJhd2VyQ29udGVudD5cbiAgICAgICAgICAgICAgICAgICAge2xvYWRpbmcgJiYgPENpcmN1bGFyUHJvZ3Jlc3MgbGFiZWw9e2xvYWRpbmd9IC8+fVxuICAgICAgICAgICAgICAgICAgICB7ZmlsZSAmJiAoXG4gICAgICAgICAgICAgICAgICAgICAgICA8RmlsZVByb3ZpZGVyIGZpbGU9e2ZpbGV9PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxGaWxlRGV0YWlsc1Byb3ZpZGVyIGhpZGVGaWxlRGV0YWlscz17b25DbG9zZX0gb25TZXRGaWxlPXtvblNldEZpbGV9PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8RmlsZURldGFpbHNJbm5lciBmaWxlPXtmaWxlfSBvbkNsb3NlPXtvbkNsb3NlfSBvblN1Ym1pdD17b25TYXZlfSAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvRmlsZURldGFpbHNQcm92aWRlcj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvRmlsZVByb3ZpZGVyPlxuICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgIDwvRHJhd2VyQ29udGVudD5cbiAgICAgICAgICAgIDwvRmlsZURldGFpbHNEcmF3ZXI+XG4gICAgICAgIDwvRmlsZURldGFpbHNQb3J0YWw+XG4gICAgKTtcbn07XG4iXX0= */",
58
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
59
- });
60
- var FileDetailsInner = function FileDetailsInner(_ref) {
61
- var file = _ref.file,
62
- props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
63
- var fileModel = (0, _useFileModel.useFileModel)();
64
- var _useFileManagerViewCo = (0, _.useFileManagerViewConfig)(),
65
- fileDetails = _useFileManagerViewCo.fileDetails;
66
- var _fileDetails$width$sp = fileDetails.width.split(","),
67
- _fileDetails$width$sp2 = (0, _slicedToArray2.default)(_fileDetails$width$sp, 3),
68
- _fileDetails$width$sp3 = _fileDetails$width$sp2[1],
69
- leftPanel = _fileDetails$width$sp3 === void 0 ? "1" : _fileDetails$width$sp3,
70
- _fileDetails$width$sp4 = _fileDetails$width$sp2[2],
71
- rightPanel = _fileDetails$width$sp4 === void 0 ? "1" : _fileDetails$width$sp4;
72
- var extensionFields = (0, _react.useMemo)(function () {
73
- var fields = fileModel.fields.find(function (field) {
74
- return field.fieldId === "extensions";
75
- });
1
+ import React, { useEffect, useMemo, useRef } from "react";
2
+ import noop from "lodash/noop.js";
3
+ // @ts-expect-error This package has no types.
4
+ import { useHotkeys } from "react-hotkeyz";
5
+ import { Drawer, Grid, OverlayLoader, Tabs } from "@webiny/admin-ui";
6
+ import { Form } from "@webiny/form";
7
+ import { prepareFormData } from "@webiny/app-headless-cms-common";
8
+ import { FileDetailsProvider } from "./FileDetailsProvider.js";
9
+ import { Preview } from "./components/Preview.js";
10
+ import { Actions } from "./components/Actions.js";
11
+ import { Content } from "./components/Content.js";
12
+ import { Extensions } from "./components/Extensions.js";
13
+ import { Description } from "./components/Description.js";
14
+ import { useFileModel } from "../../hooks/useFileModel.js";
15
+ import { useFileManagerViewConfig } from "../../index.js";
16
+ import { FileProvider } from "../../contexts/FileProvider.js";
17
+ const FileDetailsInner = ({
18
+ file,
19
+ onForm,
20
+ ...props
21
+ }) => {
22
+ const formRef = /*#__PURE__*/React.createRef();
23
+ useEffect(() => {
24
+ if (formRef.current) {
25
+ onForm(formRef.current);
26
+ }
27
+ }, []);
28
+ const fileModel = useFileModel();
29
+ const {
30
+ fileDetails
31
+ } = useFileManagerViewConfig();
32
+ const [, leftPanel = "1", rightPanel = "1"] = fileDetails.width.split(",");
33
+ const extensionFields = useMemo(() => {
34
+ const fields = fileModel.fields.find(field => field.fieldId === "extensions");
76
35
  if (!fields?.settings?.fields) {
77
36
  return [];
78
37
  }
79
38
  return fields?.settings?.fields || [];
80
39
  }, [fileModel]);
81
- var onSubmit = async function onSubmit(data) {
82
- var fileData = (0, _appHeadlessCmsCommon.prepareFormData)(data, fileModel.fields);
83
- props.onSubmit((0, _objectSpread2.default)((0, _objectSpread2.default)({}, file), fileData));
40
+ const onSubmit = async data => {
41
+ const fileData = prepareFormData(data, fileModel.fields);
42
+ props.onSubmit({
43
+ ...file,
44
+ ...fileData
45
+ });
84
46
  };
85
- var basicFieldsElement = /*#__PURE__*/_react.default.createElement(_Grid.Grid, null, fileDetails.fields.map(function (field) {
86
- return /*#__PURE__*/_react.default.createElement(_Grid.Cell, {
87
- span: 12,
88
- key: field.name
89
- }, field.element);
90
- }));
91
- var extensionFieldsElement = extensionFields.length > 0 ? /*#__PURE__*/_react.default.createElement(_Extensions.Extensions, {
47
+ const basicFieldsElement = /*#__PURE__*/React.createElement(Grid, null, fileDetails.fields.map(field => /*#__PURE__*/React.createElement(Grid.Column, {
48
+ span: 12,
49
+ key: field.name
50
+ }, field.element)));
51
+ const extensionFieldsElement = extensionFields.length > 0 ? /*#__PURE__*/React.createElement(Extensions, {
92
52
  model: fileModel
93
53
  }) : null;
94
- return /*#__PURE__*/_react.default.createElement(_form.Form, {
54
+ return /*#__PURE__*/React.createElement(Form, {
95
55
  data: file,
96
- onSubmit: onSubmit
97
- }, function () {
98
- return /*#__PURE__*/_react.default.createElement(FormContainer, null, /*#__PURE__*/_react.default.createElement(_Header.Header, null), /*#__PURE__*/_react.default.createElement(_Content.Content, null, /*#__PURE__*/_react.default.createElement(_Content.Content.Panel, {
99
- flex: parseFloat(leftPanel)
100
- }, /*#__PURE__*/_react.default.createElement(_Elevation.Elevation, {
101
- z: 2,
102
- style: {
103
- margin: 20
104
- }
105
- }, /*#__PURE__*/_react.default.createElement(_Actions.Actions, null), /*#__PURE__*/_react.default.createElement(_Preview.Preview, null), /*#__PURE__*/_react.default.createElement(_PreviewMeta.PreviewMeta, null))), /*#__PURE__*/_react.default.createElement(_Content.Content.Panel, {
106
- flex: parseFloat(rightPanel)
107
- }, fileDetails.groupFields ? /*#__PURE__*/_react.default.createElement(_Tabs.Tabs, null, /*#__PURE__*/_react.default.createElement(_Tabs.Tab, {
108
- label: "Basic Details"
109
- }, basicFieldsElement), /*#__PURE__*/_react.default.createElement(_Tabs.Tab, {
110
- label: "Advanced Details"
111
- }, extensionFieldsElement)) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, basicFieldsElement, extensionFieldsElement))), /*#__PURE__*/_react.default.createElement(_Footer.Footer, null));
112
- });
113
- };
114
- function getPortalTarget() {
115
- var target = window.document.getElementById("file-details-drawer");
116
- if (!target) {
117
- target = document.createElement("div");
118
- target.setAttribute("id", "file-details-drawer");
119
- document.body && document.body.appendChild(target);
120
- }
121
- return target;
122
- }
123
- var FileDetailsPortal = function FileDetailsPortal(_ref2) {
124
- var children = _ref2.children;
125
- var containerRef = (0, _react.useRef)(getPortalTarget());
126
- return /*#__PURE__*/_reactDom.default.createPortal(children, containerRef.current);
56
+ onSubmit: onSubmit,
57
+ ref: formRef
58
+ }, () => /*#__PURE__*/React.createElement(Content, null, /*#__PURE__*/React.createElement(Content.Panel, {
59
+ flex: parseFloat(leftPanel)
60
+ }, /*#__PURE__*/React.createElement("div", {
61
+ className: "flex flex-col justify-between gap-md h-full px-lg py-md"
62
+ }, /*#__PURE__*/React.createElement(Actions, null), /*#__PURE__*/React.createElement(Preview, null))), /*#__PURE__*/React.createElement(Content.Panel, {
63
+ flex: parseFloat(rightPanel)
64
+ }, fileDetails.groupFields ? /*#__PURE__*/React.createElement(Tabs, {
65
+ size: "md",
66
+ spacing: "lg",
67
+ separator: true,
68
+ tabs: [/*#__PURE__*/React.createElement(Tabs.Tab, {
69
+ key: "basic-details",
70
+ value: "basic-details",
71
+ trigger: "Basic details",
72
+ content: basicFieldsElement
73
+ }), /*#__PURE__*/React.createElement(Tabs.Tab, {
74
+ key: "advanced-details",
75
+ value: "advanced-details",
76
+ trigger: "Advanced details",
77
+ content: extensionFieldsElement
78
+ })]
79
+ }) : /*#__PURE__*/React.createElement("div", {
80
+ className: "p-lg"
81
+ }, basicFieldsElement, /*#__PURE__*/React.createElement("div", {
82
+ className: "mt-lg"
83
+ }, extensionFieldsElement)))));
127
84
  };
128
- var FileDetails = exports.FileDetails = function FileDetails(_ref3) {
129
- var open = _ref3.open,
130
- onClose = _ref3.onClose,
131
- onSave = _ref3.onSave,
132
- loading = _ref3.loading,
133
- file = _ref3.file,
134
- _ref3$onSetFile = _ref3.onSetFile,
135
- onSetFile = _ref3$onSetFile === void 0 ? _noop.default : _ref3$onSetFile;
136
- (0, _reactHotkeyz.useHotkeys)({
137
- zIndex: 55,
85
+ export const FileDetails = ({
86
+ open,
87
+ onClose,
88
+ onSave,
89
+ loading,
90
+ file,
91
+ onSetFile = noop
92
+ }) => {
93
+ useHotkeys({
94
+ zIndex: 50,
138
95
  disabled: !open,
139
96
  keys: {
140
97
  esc: onClose
141
98
  }
142
99
  });
143
- var _useFileManagerViewCo2 = (0, _.useFileManagerViewConfig)(),
144
- fileDetails = _useFileManagerViewCo2.fileDetails;
145
- var drawerWidth = fileDetails.width.split(",")[0];
146
- return /*#__PURE__*/_react.default.createElement(FileDetailsPortal, null, /*#__PURE__*/_react.default.createElement(FileDetailsDrawer, {
100
+ const {
101
+ fileDetails
102
+ } = useFileManagerViewConfig();
103
+ const drawerWidth = fileDetails.width.split(",")[0];
104
+ const formRef = useRef(null);
105
+ if (!file) {
106
+ return null;
107
+ }
108
+ return /*#__PURE__*/React.createElement(FileProvider, {
109
+ file: file
110
+ }, /*#__PURE__*/React.createElement(Drawer, {
111
+ title: file.name,
112
+ description: /*#__PURE__*/React.createElement(Description, null),
147
113
  width: drawerWidth,
148
- modal: true,
149
114
  open: open,
115
+ modal: true,
116
+ bodyPadding: false,
117
+ headerSeparator: true,
118
+ footerSeparator: true,
150
119
  onClose: onClose,
151
- "data-testid": "fm.file-details.drawer"
152
- }, /*#__PURE__*/_react.default.createElement(_Drawer.DrawerContent, null, loading && /*#__PURE__*/_react.default.createElement(_Progress.CircularProgress, {
153
- label: loading
154
- }), file && /*#__PURE__*/_react.default.createElement(_FileProvider.FileProvider, {
155
- file: file
156
- }, /*#__PURE__*/_react.default.createElement(_FileDetailsProvider.FileDetailsProvider, {
120
+ "data-testid": "fm.file-details.drawer",
121
+ actions: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Drawer.CancelButton, {
122
+ text: "Cancel"
123
+ }), /*#__PURE__*/React.createElement(Drawer.ConfirmButton, {
124
+ text: "Update",
125
+ onClick: () => formRef.current?.submit()
126
+ }))
127
+ }, loading && /*#__PURE__*/React.createElement(OverlayLoader, {
128
+ text: loading
129
+ }), /*#__PURE__*/React.createElement(FileDetailsProvider, {
157
130
  hideFileDetails: onClose,
158
131
  onSetFile: onSetFile
159
- }, /*#__PURE__*/_react.default.createElement(FileDetailsInner, {
132
+ }, /*#__PURE__*/React.createElement(FileDetailsInner, {
133
+ onForm: form => {
134
+ formRef.current = form;
135
+ },
160
136
  file: file,
161
137
  onClose: onClose,
162
138
  onSubmit: onSave
163
- }))))));
139
+ }))));
164
140
  };
165
141
 
166
142
  //# sourceMappingURL=FileDetails.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactDom","_interopRequireDefault","_noop","_reactHotkeyz","_form","_appHeadlessCmsCommon","_Drawer","_Progress","_Grid","_Tabs","_FileDetailsProvider","_Preview","_PreviewMeta","_Actions","_Header","_Elevation","_Content","_SimpleForm","_Footer","_Extensions","_useFileModel","_","_FileProvider","_excluded","_EMOTION_STRINGIFIED_CSS_ERROR__","FileDetailsDrawer","_base","default","DrawerRight","process","env","NODE_ENV","target","label","props","width","FormContainer","SimpleForm","name","styles","map","toString","FileDetailsInner","_ref","file","_objectWithoutProperties2","fileModel","useFileModel","_useFileManagerViewCo","useFileManagerViewConfig","fileDetails","_fileDetails$width$sp","split","_fileDetails$width$sp2","_slicedToArray2","_fileDetails$width$sp3","leftPanel","_fileDetails$width$sp4","rightPanel","extensionFields","useMemo","fields","find","field","fieldId","settings","onSubmit","data","fileData","prepareFormData","_objectSpread2","basicFieldsElement","createElement","Grid","Cell","span","key","element","extensionFieldsElement","length","Extensions","model","Form","Header","Content","Panel","flex","parseFloat","Elevation","z","style","margin","Actions","Preview","PreviewMeta","groupFields","Tabs","Tab","Fragment","Footer","getPortalTarget","window","document","getElementById","setAttribute","body","appendChild","FileDetailsPortal","_ref2","children","containerRef","useRef","ReactDOM","createPortal","current","FileDetails","exports","_ref3","open","onClose","onSave","loading","_ref3$onSetFile","onSetFile","noop","useHotkeys","zIndex","disabled","keys","esc","_useFileManagerViewCo2","drawerWidth","modal","DrawerContent","CircularProgress","FileProvider","FileDetailsProvider","hideFileDetails"],"sources":["FileDetails.tsx"],"sourcesContent":["import React, { useMemo, useRef } from \"react\";\nimport ReactDOM from \"react-dom\";\nimport noop from \"lodash/noop\";\n// @ts-expect-error This package has no types.\nimport { useHotkeys } from \"react-hotkeyz\";\nimport styled from \"@emotion/styled\";\nimport { FileItem } from \"@webiny/app-admin/types\";\nimport { Form, FormOnSubmit } from \"@webiny/form\";\nimport { prepareFormData } from \"@webiny/app-headless-cms-common\";\nimport { DrawerRight, DrawerContent } from \"@webiny/ui/Drawer\";\nimport { CircularProgress } from \"@webiny/ui/Progress\";\nimport { Cell, Grid } from \"@webiny/ui/Grid\";\nimport { Tab, Tabs } from \"@webiny/ui/Tabs\";\nimport { FileDetailsProvider } from \"~/components/FileDetails/FileDetailsProvider\";\nimport { Preview } from \"./components/Preview\";\nimport { PreviewMeta } from \"./components/PreviewMeta\";\nimport { Actions } from \"./components/Actions\";\nimport { Header } from \"./components/Header\";\nimport { Elevation } from \"@webiny/ui/Elevation\";\nimport { Content } from \"./components/Content\";\nimport { SimpleForm } from \"@webiny/app-admin/components/SimpleForm\";\nimport { Footer } from \"./components/Footer\";\nimport { Extensions } from \"./components/Extensions\";\nimport { useFileModel } from \"~/hooks/useFileModel\";\nimport { useFileManagerViewConfig } from \"~/index\";\nimport { FileProvider } from \"~/contexts/FileProvider\";\n\ntype FileDetailsDrawerProps = React.ComponentProps<typeof DrawerRight> & { width: string };\n\nconst FileDetailsDrawer = styled(DrawerRight)<FileDetailsDrawerProps>`\n z-index: 70;\n &.mdc-drawer {\n width: ${props => props.width};\n }\n .mdc-drawer__content {\n overflow-y: hidden;\n }\n & + .mdc-drawer-scrim {\n z-index: 65;\n }\n`;\n\nconst FormContainer = styled(SimpleForm)`\n margin: 0;\n`;\n\ninterface FileDetailsInnerProps {\n file: FileItem;\n onClose: () => void;\n onSubmit: (fileData: FileItem) => void;\n}\n\nconst FileDetailsInner = ({ file, ...props }: FileDetailsInnerProps) => {\n const fileModel = useFileModel();\n const { fileDetails } = useFileManagerViewConfig();\n\n const [, leftPanel = \"1\", rightPanel = \"1\"] = fileDetails.width.split(\",\");\n\n const extensionFields = useMemo(() => {\n const fields = fileModel.fields.find(field => field.fieldId === \"extensions\");\n if (!fields?.settings?.fields) {\n return [];\n }\n return fields?.settings?.fields || [];\n }, [fileModel]);\n\n const onSubmit: FormOnSubmit<FileItem> = async data => {\n const fileData = prepareFormData(data, fileModel.fields);\n props.onSubmit({ ...file, ...fileData });\n };\n\n const basicFieldsElement = (\n <Grid>\n {fileDetails.fields.map(field => (\n <Cell span={12} key={field.name}>\n {field.element}\n </Cell>\n ))}\n </Grid>\n );\n\n const extensionFieldsElement =\n extensionFields.length > 0 ? <Extensions model={fileModel} /> : null;\n\n return (\n <Form data={file} onSubmit={onSubmit}>\n {() => (\n <FormContainer>\n <Header />\n <Content>\n <Content.Panel flex={parseFloat(leftPanel)}>\n <Elevation z={2} style={{ margin: 20 }}>\n <Actions />\n <Preview />\n <PreviewMeta />\n </Elevation>\n </Content.Panel>\n <Content.Panel flex={parseFloat(rightPanel)}>\n {fileDetails.groupFields ? (\n <Tabs>\n <Tab label={\"Basic Details\"}>{basicFieldsElement}</Tab>\n <Tab label={\"Advanced Details\"}>{extensionFieldsElement}</Tab>\n </Tabs>\n ) : (\n <>\n {basicFieldsElement}\n {extensionFieldsElement}\n </>\n )}\n </Content.Panel>\n </Content>\n <Footer />\n </FormContainer>\n )}\n </Form>\n );\n};\n\nfunction getPortalTarget() {\n let target = window.document.getElementById(\"file-details-drawer\");\n if (!target) {\n target = document.createElement(\"div\");\n target.setAttribute(\"id\", \"file-details-drawer\");\n document.body && document.body.appendChild(target);\n }\n return target;\n}\n\ninterface FileDetailsPortalProps {\n children: React.ReactNode;\n}\n\nconst FileDetailsPortal = ({ children }: FileDetailsPortalProps) => {\n const containerRef = useRef<HTMLElement>(getPortalTarget());\n\n return ReactDOM.createPortal(children, containerRef.current);\n};\n\nexport interface FileDetailsProps {\n file?: FileItem;\n open: boolean;\n loading: string | null;\n onClose: () => void;\n onSave: (file: FileItem) => void;\n onSetFile?: (file: FileItem) => void;\n}\n\nexport const FileDetails = ({\n open,\n onClose,\n onSave,\n loading,\n file,\n onSetFile = noop\n}: FileDetailsProps) => {\n useHotkeys({\n zIndex: 55,\n disabled: !open,\n keys: {\n esc: onClose\n }\n });\n\n const { fileDetails } = useFileManagerViewConfig();\n\n const drawerWidth = fileDetails.width.split(\",\")[0];\n\n return (\n <FileDetailsPortal>\n <FileDetailsDrawer\n width={drawerWidth}\n modal\n open={open}\n onClose={onClose}\n data-testid={\"fm.file-details.drawer\"}\n >\n <DrawerContent>\n {loading && <CircularProgress label={loading} />}\n {file && (\n <FileProvider file={file}>\n <FileDetailsProvider hideFileDetails={onClose} onSetFile={onSetFile}>\n <FileDetailsInner file={file} on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ACT;EACJ,CAAC,CAAC;EAEF,IAAAW,sBAAA,GAAwB,IAAAjF,0BAAwB,EAAC,CAAC;IAA1CC,WAAW,GAAAgF,sBAAA,CAAXhF,WAAW;EAEnB,IAAMiF,WAAW,GAAGjF,WAAW,CAACf,KAAK,CAACiB,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;EAEnD,oBACIvD,MAAA,CAAA8B,OAAA,CAAA6C,aAAA,CAACmC,iBAAiB,qBACd9G,MAAA,CAAA8B,OAAA,CAAA6C,aAAA,CAAC/C,iBAAiB;IACdU,KAAK,EAAEgG,WAAY;IACnBC,KAAK;IACLd,IAAI,EAAEA,IAAK;IACXC,OAAO,EAAEA,OAAQ;IACjB,eAAa;EAAyB,gBAEtC1H,MAAA,CAAA8B,OAAA,CAAA6C,aAAA,CAAClE,OAAA,CAAA+H,aAAa,QACTZ,OAAO,iBAAI5H,MAAA,CAAA8B,OAAA,CAAA6C,aAAA,CAACjE,SAAA,CAAA+H,gBAAgB;IAACrG,KAAK,EAAEwF;EAAQ,CAAE,CAAC,EAC/C7E,IAAI,iBACD/C,MAAA,CAAA8B,OAAA,CAAA6C,aAAA,CAAClD,aAAA,CAAAiH,YAAY;IAAC3F,IAAI,EAAEA;EAAK,gBACrB/C,MAAA,CAAA8B,OAAA,CAAA6C,aAAA,CAAC9D,oBAAA,CAAA8H,mBAAmB;IAACC,eAAe,EAAElB,OAAQ;IAACI,SAAS,EAAEA;EAAU,gBAChE9H,MAAA,CAAA8B,OAAA,CAAA6C,aAAA,CAAC9B,gBAAgB;IAACE,IAAI,EAAEA,IAAK;IAAC2E,OAAO,EAAEA,OAAQ;IAACrD,QAAQ,EAAEsD;EAAO,CAAE,CAClD,CACX,CAEP,CACA,CACJ,CAAC;AAE5B,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useEffect","useMemo","useRef","noop","useHotkeys","Drawer","Grid","OverlayLoader","Tabs","Form","prepareFormData","FileDetailsProvider","Preview","Actions","Content","Extensions","Description","useFileModel","useFileManagerViewConfig","FileProvider","FileDetailsInner","file","onForm","props","formRef","createRef","current","fileModel","fileDetails","leftPanel","rightPanel","width","split","extensionFields","fields","find","field","fieldId","settings","onSubmit","data","fileData","basicFieldsElement","createElement","map","Column","span","key","name","element","extensionFieldsElement","length","model","ref","Panel","flex","parseFloat","className","groupFields","size","spacing","separator","tabs","Tab","value","trigger","content","FileDetails","open","onClose","onSave","loading","onSetFile","zIndex","disabled","keys","esc","drawerWidth","title","description","modal","bodyPadding","headerSeparator","footerSeparator","actions","Fragment","CancelButton","text","ConfirmButton","onClick","submit","hideFileDetails","form"],"sources":["FileDetails.tsx"],"sourcesContent":["import React, { useEffect, useMemo, useRef } from \"react\";\nimport noop from \"lodash/noop.js\";\n// @ts-expect-error This package has no types.\nimport { useHotkeys } from \"react-hotkeyz\";\nimport { Drawer, Grid, OverlayLoader, Tabs } from \"@webiny/admin-ui\";\nimport type { FileItem } from \"~/types.js\";\nimport type { FormAPI, FormOnSubmit } from \"@webiny/form\";\nimport { Form } from \"@webiny/form\";\nimport { prepareFormData } from \"@webiny/app-headless-cms-common\";\nimport { FileDetailsProvider } from \"~/components/FileDetails/FileDetailsProvider.js\";\nimport { Preview } from \"./components/Preview.js\";\nimport { Actions } from \"./components/Actions.js\";\nimport { Content } from \"./components/Content.js\";\nimport { Extensions } from \"./components/Extensions.js\";\nimport { Description } from \"./components/Description.js\";\nimport { useFileModel } from \"~/hooks/useFileModel.js\";\nimport { useFileManagerViewConfig } from \"~/index.js\";\nimport { FileProvider } from \"~/contexts/FileProvider.js\";\n\ninterface FileDetailsInnerProps {\n file: FileItem;\n onForm: (form: FormAPI) => void;\n onClose: () => void;\n onSubmit: (fileData: FileItem) => void;\n}\n\nconst FileDetailsInner = ({ file, onForm, ...props }: FileDetailsInnerProps) => {\n const formRef = React.createRef<FormAPI>();\n\n useEffect(() => {\n if (formRef.current) {\n onForm(formRef.current);\n }\n }, []);\n\n const fileModel = useFileModel();\n const { fileDetails } = useFileManagerViewConfig();\n\n const [, leftPanel = \"1\", rightPanel = \"1\"] = fileDetails.width.split(\",\");\n\n const extensionFields = useMemo(() => {\n const fields = fileModel.fields.find(field => field.fieldId === \"extensions\");\n if (!fields?.settings?.fields) {\n return [];\n }\n return fields?.settings?.fields || [];\n }, [fileModel]);\n\n const onSubmit: FormOnSubmit<FileItem> = async data => {\n const fileData = prepareFormData(data, fileModel.fields);\n props.onSubmit({ ...file, ...fileData });\n };\n\n const basicFieldsElement = (\n <Grid>\n {fileDetails.fields.map(field => (\n <Grid.Column span={12} key={field.name}>\n {field.element}\n </Grid.Column>\n ))}\n </Grid>\n );\n\n const extensionFieldsElement =\n extensionFields.length > 0 ? <Extensions model={fileModel} /> : null;\n\n return (\n <Form data={file} onSubmit={onSubmit} ref={formRef}>\n {() => (\n <Content>\n <Content.Panel flex={parseFloat(leftPanel)}>\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={parseFloat(rightPanel)}>\n {fileDetails.groupFields ? (\n <Tabs\n size={\"md\"}\n spacing={\"lg\"}\n separator={true}\n tabs={[\n <Tabs.Tab\n key={\"basic-details\"}\n value={\"basic-details\"}\n trigger={\"Basic details\"}\n content={basicFieldsElement}\n />,\n <Tabs.Tab\n key={\"advanced-details\"}\n value={\"advanced-details\"}\n trigger={\"Advanced details\"}\n content={extensionFieldsElement}\n />\n ]}\n />\n ) : (\n <div className={\"p-lg\"}>\n {basicFieldsElement}\n <div className={\"mt-lg\"}>{extensionFieldsElement}</div>\n </div>\n )}\n </Content.Panel>\n </Content>\n )}\n </Form>\n );\n};\n\nexport interface FileDetailsProps {\n file?: FileItem;\n open: boolean;\n loading: string | null;\n onClose: () => void;\n onSave: (file: FileItem) => void;\n onSetFile?: (file: FileItem) => void;\n}\n\nexport const FileDetails = ({\n open,\n onClose,\n onSave,\n loading,\n file,\n onSetFile = noop\n}: FileDetailsProps) => {\n useHotkeys({\n zIndex: 50,\n disabled: !open,\n keys: {\n esc: onClose\n }\n });\n\n const { fileDetails } = useFileManagerViewConfig();\n\n const drawerWidth = fileDetails.width.split(\",\")[0];\n\n const formRef = useRef<FormAPI | null>(null);\n\n if (!file) {\n return null;\n }\n\n return (\n <FileProvider file={file}>\n <Drawer\n title={file.name}\n description={<Description />}\n width={drawerWidth}\n open={open}\n modal={true}\n bodyPadding={false}\n headerSeparator={true}\n footerSeparator={true}\n onClose={onClose}\n data-testid={\"fm.file-details.drawer\"}\n actions={\n <>\n <Drawer.CancelButton text={\"Cancel\"} />\n <Drawer.ConfirmButton\n text={\"Update\"}\n onClick={() => formRef.current?.submit()}\n />\n </>\n }\n >\n {loading && <OverlayLoader text={loading} />}\n <FileDetailsProvider hideFileDetails={onClose} onSetFile={onSetFile}>\n <FileDetailsInner\n onForm={form => {\n formRef.current = form;\n }}\n file={file}\n onClose={onClose}\n onSubmit={onSave}\n />\n </FileDetailsProvider>\n </Drawer>\n </FileProvider>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AACzD,OAAOC,IAAI,MAAM,gBAAgB;AACjC;AACA,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,MAAM,EAAEC,IAAI,EAAEC,aAAa,EAAEC,IAAI,QAAQ,kBAAkB;AAGpE,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,eAAe,QAAQ,iCAAiC;AACjE,SAASC,mBAAmB;AAC5B,SAASC,OAAO;AAChB,SAASC,OAAO;AAChB,SAASC,OAAO;AAChB,SAASC,UAAU;AACnB,SAASC,WAAW;AACpB,SAASC,YAAY;AACrB,SAASC,wBAAwB;AACjC,SAASC,YAAY;AASrB,MAAMC,gBAAgB,GAAGA,CAAC;EAAEC,IAAI;EAAEC,MAAM;EAAE,GAAGC;AAA6B,CAAC,KAAK;EAC5E,MAAMC,OAAO,gBAAGzB,KAAK,CAAC0B,SAAS,CAAU,C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AAA,qBACItF,KAAA,CAAA4C,aAAA,CAACtC,MAAM,CAACiF,YAAY;MAACC,IAAI,EAAE;IAAS,CAAE,CAAC,eACvCxF,KAAA,CAAA4C,aAAA,CAACtC,MAAM,CAACmF,aAAa;MACjBD,IAAI,EAAE,QAAS;MACfE,OAAO,EAAEA,CAAA,KAAMjE,OAAO,CAACE,OAAO,EAAEgE,MAAM,CAAC;IAAE,CAC5C,CACH;EACL,GAEAnB,OAAO,iBAAIxE,KAAA,CAAA4C,aAAA,CAACpC,aAAa;IAACgF,IAAI,EAAEhB;EAAQ,CAAE,CAAC,eAC5CxE,KAAA,CAAA4C,aAAA,CAAChC,mBAAmB;IAACgF,eAAe,EAAEtB,OAAQ;IAACG,SAAS,EAAEA;EAAU,gBAChEzE,KAAA,CAAA4C,aAAA,CAACvB,gBAAgB;IACbE,MAAM,EAAEsE,IAAI,IAAI;MACZpE,OAAO,CAACE,OAAO,GAAGkE,IAAI;IAC1B,CAAE;IACFvE,IAAI,EAAEA,IAAK;IACXgD,OAAO,EAAEA,OAAQ;IACjB9B,QAAQ,EAAE+B;EAAO,CACpB,CACgB,CACjB,CACE,CAAC;AAEvB,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { FileItem } from "@webiny/app-admin/types";
2
+ import type { FileItem } from "../../types.js";
3
3
  export interface FileDetailsContext {
4
4
  close: () => void;
5
5
  setFile: (file: FileItem) => void;
@@ -1,25 +1,19 @@
1
- "use strict";
2
-
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.FileDetailsProvider = exports.FileDetailsContext = void 0;
8
- var _react = _interopRequireWildcard(require("react"));
9
- var _FileManagerViewProvider = require("../../modules/FileManagerRenderer/FileManagerViewProvider");
10
- var FileDetailsContext = exports.FileDetailsContext = /*#__PURE__*/(0, _react.createContext)(undefined);
11
- var FileDetailsProvider = exports.FileDetailsProvider = function FileDetailsProvider(_ref) {
12
- var hideFileDetails = _ref.hideFileDetails,
13
- onSetFile = _ref.onSetFile,
14
- children = _ref.children;
15
- var view = (0, _FileManagerViewProvider.useFileManagerView)();
16
- var value = {
1
+ import React, { createContext } from "react";
2
+ import { useFileManagerView } from "../../modules/FileManagerRenderer/FileManagerViewProvider/index.js";
3
+ export const FileDetailsContext = /*#__PURE__*/createContext(undefined);
4
+ export const FileDetailsProvider = ({
5
+ hideFileDetails,
6
+ onSetFile,
7
+ children
8
+ }) => {
9
+ const view = useFileManagerView();
10
+ const value = {
17
11
  close: hideFileDetails,
18
12
  scope: view.scope,
19
13
  own: view.own,
20
14
  setFile: onSetFile
21
15
  };
22
- return /*#__PURE__*/_react.default.createElement(FileDetailsContext.Provider, {
16
+ return /*#__PURE__*/React.createElement(FileDetailsContext.Provider, {
23
17
  value: value
24
18
  }, children);
25
19
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_FileManagerViewProvider","FileDetailsContext","exports","createContext","undefined","FileDetailsProvider","_ref","hideFileDetails","onSetFile","children","view","useFileManagerView","value","close","scope","own","setFile","default","createElement","Provider"],"sources":["FileDetailsProvider.tsx"],"sourcesContent":["import React, { createContext } from \"react\";\nimport { useFileManagerView } from \"~/modules/FileManagerRenderer/FileManagerViewProvider\";\nimport { FileItem } from \"@webiny/app-admin/types\";\n\nexport interface FileDetailsContext {\n close: () => void;\n setFile: (file: FileItem) => void;\n own: boolean;\n scope?: string;\n}\n\nexport const FileDetailsContext = createContext<FileDetailsContext | undefined>(undefined);\n\ninterface FileDetailsProviderProps {\n hideFileDetails: () => void;\n onSetFile: (file: FileItem) => void;\n children: React.ReactNode;\n}\n\nexport const FileDetailsProvider = ({\n hideFileDetails,\n onSetFile,\n children\n}: FileDetailsProviderProps) => {\n const view = useFileManagerView();\n\n const value: FileDetailsContext = {\n close: hideFileDetails,\n scope: view.scope,\n own: view.own,\n setFile: onSetFile\n };\n\n return <FileDetailsContext.Provider value={value}>{children}</FileDetailsContext.Provider>;\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,wBAAA,GAAAD,OAAA;AAUO,IAAME,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,gBAAG,IAAAE,oBAAa,EAAiCC,SAAS,CAAC;AAQnF,IAAMC,mBAAmB,GAAAH,OAAA,CAAAG,mBAAA,GAAG,SAAtBA,mBAAmBA,CAAAC,IAAA,EAIA;EAAA,IAH5BC,eAAe,GAAAD,IAAA,CAAfC,eAAe;IACfC,SAAS,GAAAF,IAAA,CAATE,SAAS;IACTC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;EAER,IAAMC,IAAI,GAAG,IAAAC,2CAAkB,EAAC,CAAC;EAEjC,IAAMC,KAAyB,GAAG;IAC9BC,KAAK,EAAEN,eAAe;IACtBO,KAAK,EAAEJ,IAAI,CAACI,KAAK;IACjBC,GAAG,EAAEL,IAAI,CAACK,GAAG;IACbC,OAAO,EAAER;EACb,CAAC;EAED,oBAAOX,MAAA,CAAAoB,OAAA,CAAAC,aAAA,CAACjB,kBAAkB,CAACkB,QAAQ;IAACP,KAAK,EAAEA;EAAM,GAAEH,QAAsC,CAAC;AAC9F,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","createContext","useFileManagerView","FileDetailsContext","undefined","FileDetailsProvider","hideFileDetails","onSetFile","children","view","value","close","scope","own","setFile","createElement","Provider"],"sources":["FileDetailsProvider.tsx"],"sourcesContent":["import React, { createContext } from \"react\";\nimport { useFileManagerView } from \"~/modules/FileManagerRenderer/FileManagerViewProvider/index.js\";\nimport type { FileItem } from \"~/types.js\";\n\nexport interface FileDetailsContext {\n close: () => void;\n setFile: (file: FileItem) => void;\n own: boolean;\n scope?: string;\n}\n\nexport const FileDetailsContext = createContext<FileDetailsContext | undefined>(undefined);\n\ninterface FileDetailsProviderProps {\n hideFileDetails: () => void;\n onSetFile: (file: FileItem) => void;\n children: React.ReactNode;\n}\n\nexport const FileDetailsProvider = ({\n hideFileDetails,\n onSetFile,\n children\n}: FileDetailsProviderProps) => {\n const view = useFileManagerView();\n\n const value: FileDetailsContext = {\n close: hideFileDetails,\n scope: view.scope,\n own: view.own,\n setFile: onSetFile\n };\n\n return <FileDetailsContext.Provider value={value}>{children}</FileDetailsContext.Provider>;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,SAASC,kBAAkB;AAU3B,OAAO,MAAMC,kBAAkB,gBAAGF,aAAa,CAAiCG,SAAS,CAAC;AAQ1F,OAAO,MAAMC,mBAAmB,GAAGA,CAAC;EAChCC,eAAe;EACfC,SAAS;EACTC;AACsB,CAAC,KAAK;EAC5B,MAAMC,IAAI,GAAGP,kBAAkB,CAAC,CAAC;EAEjC,MAAMQ,KAAyB,GAAG;IAC9BC,KAAK,EAAEL,eAAe;IACtBM,KAAK,EAAEH,IAAI,CAACG,KAAK;IACjBC,GAAG,EAAEJ,IAAI,CAACI,GAAG;IACbC,OAAO,EAAEP;EACb,CAAC;EAED,oBAAOP,KAAA,CAAAe,aAAA,CAACZ,kBAAkB,CAACa,QAAQ;IAACN,KAAK,EAAEA;EAAM,GAAEF,QAAsC,CAAC;AAC9F,CAAC","ignoreList":[]}
@@ -5,5 +5,6 @@ export interface ActionButtonProps {
5
5
  onAction: () => void;
6
6
  "data-testid"?: string;
7
7
  disabled?: boolean;
8
+ className?: string;
8
9
  }
9
- export declare const ActionButton: ({ label, icon, onAction, disabled, ...props }: ActionButtonProps) => React.JSX.Element;
10
+ export declare const ActionButton: ({ label, icon, onAction, disabled, className, ...props }: ActionButtonProps) => React.JSX.Element;