@webiny/app-file-manager 5.43.3 → 6.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (631) hide show
  1. package/BatchFileUploader.d.ts +2 -2
  2. package/BatchFileUploader.js +75 -112
  3. package/BatchFileUploader.js.map +1 -1
  4. package/app.js +8 -15
  5. package/app.js.map +1 -1
  6. package/components/BottomInfoBar/BottomInfoBar.d.ts +2 -2
  7. package/components/BottomInfoBar/BottomInfoBar.js +14 -17
  8. package/components/BottomInfoBar/BottomInfoBar.js.map +1 -1
  9. package/components/BottomInfoBar/ListStatus.js +17 -21
  10. package/components/BottomInfoBar/ListStatus.js.map +1 -1
  11. package/components/BottomInfoBar/SupportedFileTypes.js +31 -32
  12. package/components/BottomInfoBar/SupportedFileTypes.js.map +1 -1
  13. package/components/BottomInfoBar/index.js +1 -16
  14. package/components/BottomInfoBar/index.js.map +1 -1
  15. package/components/BulkActions/ActionDelete.js +70 -71
  16. package/components/BulkActions/ActionDelete.js.map +1 -1
  17. package/components/BulkActions/ActionEdit/ActionEdit.js +38 -45
  18. package/components/BulkActions/ActionEdit/ActionEdit.js.map +1 -1
  19. package/components/BulkActions/ActionEdit/ActionEdit.types.d.ts +1 -1
  20. package/components/BulkActions/ActionEdit/ActionEdit.types.js +1 -5
  21. package/components/BulkActions/ActionEdit/ActionEdit.types.js.map +1 -1
  22. package/components/BulkActions/ActionEdit/ActionEditPresenter.d.ts +1 -1
  23. package/components/BulkActions/ActionEdit/ActionEditPresenter.js +45 -80
  24. package/components/BulkActions/ActionEdit/ActionEditPresenter.js.map +1 -1
  25. package/components/BulkActions/ActionEdit/ActionEditPresenter.test.js +11 -15
  26. package/components/BulkActions/ActionEdit/ActionEditPresenter.test.js.map +1 -1
  27. package/components/BulkActions/ActionEdit/BatchEditorDialog/AddOperation.js +15 -18
  28. package/components/BulkActions/ActionEdit/BatchEditorDialog/AddOperation.js.map +1 -1
  29. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.d.ts +2 -2
  30. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.js +34 -54
  31. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.js.map +1 -1
  32. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.d.ts +1 -1
  33. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.js +34 -46
  34. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.js.map +1 -1
  35. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.d.ts +1 -1
  36. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.js +125 -173
  37. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.js.map +1 -1
  38. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.test.js +56 -48
  39. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.test.js.map +1 -1
  40. package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.d.ts +1 -1
  41. package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.js +20 -28
  42. package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.js.map +1 -1
  43. package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.d.ts +1 -1
  44. package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.js +34 -46
  45. package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.js.map +1 -1
  46. package/components/BulkActions/ActionEdit/BatchEditorDialog/index.js +1 -16
  47. package/components/BulkActions/ActionEdit/BatchEditorDialog/index.js.map +1 -1
  48. package/components/BulkActions/ActionEdit/GraphQLInputMapper.d.ts +2 -2
  49. package/components/BulkActions/ActionEdit/GraphQLInputMapper.js +41 -51
  50. package/components/BulkActions/ActionEdit/GraphQLInputMapper.js.map +1 -1
  51. package/components/BulkActions/ActionEdit/GraphQLInputMapper.test.js +88 -75
  52. package/components/BulkActions/ActionEdit/GraphQLInputMapper.test.js.map +1 -1
  53. package/components/BulkActions/ActionEdit/domain/Batch.js +23 -38
  54. package/components/BulkActions/ActionEdit/domain/Batch.js.map +1 -1
  55. package/components/BulkActions/ActionEdit/domain/BatchMapper.d.ts +1 -1
  56. package/components/BulkActions/ActionEdit/domain/BatchMapper.js +10 -27
  57. package/components/BulkActions/ActionEdit/domain/BatchMapper.js.map +1 -1
  58. package/components/BulkActions/ActionEdit/domain/Field.d.ts +1 -1
  59. package/components/BulkActions/ActionEdit/domain/Field.js +31 -53
  60. package/components/BulkActions/ActionEdit/domain/Field.js.map +1 -1
  61. package/components/BulkActions/ActionEdit/domain/FieldMapper.d.ts +1 -1
  62. package/components/BulkActions/ActionEdit/domain/FieldMapper.js +18 -41
  63. package/components/BulkActions/ActionEdit/domain/FieldMapper.js.map +1 -1
  64. package/components/BulkActions/ActionEdit/domain/index.js +4 -49
  65. package/components/BulkActions/ActionEdit/domain/index.js.map +1 -1
  66. package/components/BulkActions/ActionEdit/index.js +1 -16
  67. package/components/BulkActions/ActionEdit/index.js.map +1 -1
  68. package/components/BulkActions/ActionEdit/useActionEditWorker.d.ts +2 -2
  69. package/components/BulkActions/ActionEdit/useActionEditWorker.js +44 -48
  70. package/components/BulkActions/ActionEdit/useActionEditWorker.js.map +1 -1
  71. package/components/BulkActions/ActionMove.js +64 -61
  72. package/components/BulkActions/ActionMove.js.map +1 -1
  73. package/components/BulkActions/BulkActions.js +35 -38
  74. package/components/BulkActions/BulkActions.js.map +1 -1
  75. package/components/BulkActions/index.js +4 -43
  76. package/components/BulkActions/index.js.map +1 -1
  77. package/components/EditFileUsingUrl/EditFileUsingUrl.d.ts +1 -1
  78. package/components/EditFileUsingUrl/EditFileUsingUrl.js +31 -43
  79. package/components/EditFileUsingUrl/EditFileUsingUrl.js.map +1 -1
  80. package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.d.ts +2 -2
  81. package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.js +39 -49
  82. package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.js.map +1 -1
  83. package/components/EditFileUsingUrl/EditFileUsingUrlRepository.d.ts +1 -1
  84. package/components/EditFileUsingUrl/EditFileUsingUrlRepository.js +32 -49
  85. package/components/EditFileUsingUrl/EditFileUsingUrlRepository.js.map +1 -1
  86. package/components/EditFileUsingUrl/GetFileByUrl.d.ts +4 -4
  87. package/components/EditFileUsingUrl/GetFileByUrl.js +22 -34
  88. package/components/EditFileUsingUrl/GetFileByUrl.js.map +1 -1
  89. package/components/EditFileUsingUrl/Loading.js +30 -53
  90. package/components/EditFileUsingUrl/Loading.js.map +1 -1
  91. package/components/EditFileUsingUrl/UpdateFile.d.ts +3 -3
  92. package/components/EditFileUsingUrl/UpdateFile.js +6 -19
  93. package/components/EditFileUsingUrl/UpdateFile.js.map +1 -1
  94. package/components/EditFileUsingUrl/getFileByUrl.graphql.d.ts +1 -1
  95. package/components/EditFileUsingUrl/getFileByUrl.graphql.js +16 -13
  96. package/components/EditFileUsingUrl/getFileByUrl.graphql.js.map +1 -1
  97. package/components/EditFileUsingUrl/index.js +1 -16
  98. package/components/EditFileUsingUrl/index.js.map +1 -1
  99. package/components/Empty/Empty.d.ts +1 -1
  100. package/components/Empty/Empty.js +18 -23
  101. package/components/Empty/Empty.js.map +1 -1
  102. package/components/Empty/index.js +1 -16
  103. package/components/Empty/index.js.map +1 -1
  104. package/components/FileDetails/FileDetails.d.ts +1 -1
  105. package/components/FileDetails/FileDetails.js +120 -131
  106. package/components/FileDetails/FileDetails.js.map +1 -1
  107. package/components/FileDetails/FileDetailsProvider.d.ts +1 -1
  108. package/components/FileDetails/FileDetailsProvider.js +11 -17
  109. package/components/FileDetails/FileDetailsProvider.js.map +1 -1
  110. package/components/FileDetails/components/ActionButton.d.ts +2 -1
  111. package/components/FileDetails/components/ActionButton.js +17 -24
  112. package/components/FileDetails/components/ActionButton.js.map +1 -1
  113. package/components/FileDetails/components/Actions.js +11 -34
  114. package/components/FileDetails/components/Actions.js.map +1 -1
  115. package/components/FileDetails/components/BaseFields.d.ts +1 -1
  116. package/components/FileDetails/components/BaseFields.js +14 -22
  117. package/components/FileDetails/components/BaseFields.js.map +1 -1
  118. package/components/FileDetails/components/Content.d.ts +2 -1
  119. package/components/FileDetails/components/Content.js +28 -41
  120. package/components/FileDetails/components/Content.js.map +1 -1
  121. package/components/FileDetails/components/CreatedOn.js +19 -52
  122. package/components/FileDetails/components/CreatedOn.js.map +1 -1
  123. package/components/FileDetails/components/Description.d.ts +2 -0
  124. package/components/FileDetails/components/Description.js +23 -0
  125. package/components/FileDetails/components/Description.js.map +1 -0
  126. package/components/FileDetails/components/Extensions.d.ts +1 -1
  127. package/components/FileDetails/components/Extensions.js +19 -47
  128. package/components/FileDetails/components/Extensions.js.map +1 -1
  129. package/components/FileDetails/components/Preview.js +9 -27
  130. package/components/FileDetails/components/Preview.js.map +1 -1
  131. package/components/FileDetails/components/Thumbnail.js +13 -18
  132. package/components/FileDetails/components/Thumbnail.js.map +1 -1
  133. package/components/FileDetails/index.js +1 -16
  134. package/components/FileDetails/index.js.map +1 -1
  135. package/components/FileDropArea/FileDropArea.d.ts +9 -0
  136. package/components/FileDropArea/FileDropArea.js +69 -0
  137. package/components/FileDropArea/FileDropArea.js.map +1 -0
  138. package/components/FileDropArea/index.d.ts +1 -0
  139. package/components/FileDropArea/index.js +3 -0
  140. package/components/FileDropArea/index.js.map +1 -0
  141. package/components/FileDropPlaceholder/FileDropPlaceholder.d.ts +2 -0
  142. package/components/FileDropPlaceholder/FileDropPlaceholder.js +12 -0
  143. package/components/FileDropPlaceholder/FileDropPlaceholder.js.map +1 -0
  144. package/components/FileDropPlaceholder/index.d.ts +1 -0
  145. package/components/FileDropPlaceholder/index.js +3 -0
  146. package/components/FileDropPlaceholder/index.js.map +1 -0
  147. package/components/Filters/Filters.js +26 -0
  148. package/components/Filters/Filters.js.map +1 -0
  149. package/components/Filters/index.d.ts +1 -0
  150. package/components/Filters/index.js +3 -0
  151. package/components/Filters/index.js.map +1 -0
  152. package/components/Grid/ActionButton.d.ts +2 -1
  153. package/components/Grid/ActionButton.js +24 -21
  154. package/components/Grid/ActionButton.js.map +1 -1
  155. package/components/Grid/File.d.ts +2 -1
  156. package/components/Grid/File.js +74 -60
  157. package/components/Grid/File.js.map +1 -1
  158. package/components/Grid/Grid.d.ts +4 -3
  159. package/components/Grid/Grid.js +58 -67
  160. package/components/Grid/Grid.js.map +1 -1
  161. package/components/Grid/Thumbnail.js +13 -18
  162. package/components/Grid/Thumbnail.js.map +1 -1
  163. package/components/Grid/index.js +1 -16
  164. package/components/Grid/index.js.map +1 -1
  165. package/components/Header/Actions.d.ts +5 -0
  166. package/components/Header/Actions.js +99 -0
  167. package/components/Header/Actions.js.map +1 -0
  168. package/components/Header/Header.d.ts +9 -0
  169. package/components/Header/Header.js +17 -0
  170. package/components/Header/Header.js.map +1 -0
  171. package/components/Header/Title.d.ts +2 -0
  172. package/components/Header/Title.js +62 -0
  173. package/components/Header/Title.js.map +1 -0
  174. package/components/Header/index.d.ts +1 -0
  175. package/components/Header/index.js +3 -0
  176. package/components/Header/index.js.map +1 -0
  177. package/components/ImageEditor/ImageEditor.d.ts +45 -0
  178. package/components/ImageEditor/ImageEditor.js +218 -0
  179. package/components/ImageEditor/ImageEditor.js.map +1 -0
  180. package/components/ImageEditor/ImageEditorDialog.d.ts +16 -0
  181. package/components/ImageEditor/ImageEditorDialog.js +53 -0
  182. package/components/ImageEditor/ImageEditorDialog.js.map +1 -0
  183. package/components/ImageEditor/index.d.ts +1 -0
  184. package/components/ImageEditor/index.js +3 -0
  185. package/components/ImageEditor/index.js.map +1 -0
  186. package/components/ImageEditor/toolbar/crop.d.ts +4 -0
  187. package/components/ImageEditor/toolbar/crop.js +67 -0
  188. package/components/ImageEditor/toolbar/crop.js.map +1 -0
  189. package/components/ImageEditor/toolbar/filter.d.ts +3 -0
  190. package/components/ImageEditor/toolbar/filter.js +167 -0
  191. package/components/ImageEditor/toolbar/filter.js.map +1 -0
  192. package/components/ImageEditor/toolbar/flip.d.ts +4 -0
  193. package/components/ImageEditor/toolbar/flip.js +94 -0
  194. package/components/ImageEditor/toolbar/flip.js.map +1 -0
  195. package/components/ImageEditor/toolbar/index.d.ts +4 -0
  196. package/components/ImageEditor/toolbar/index.js +6 -0
  197. package/components/ImageEditor/toolbar/index.js.map +1 -0
  198. package/components/ImageEditor/toolbar/rotate.d.ts +4 -0
  199. package/components/ImageEditor/toolbar/rotate.js +93 -0
  200. package/components/ImageEditor/toolbar/rotate.js.map +1 -0
  201. package/components/ImageEditor/toolbar/types.d.ts +32 -0
  202. package/components/ImageEditor/toolbar/types.js +3 -0
  203. package/components/ImageEditor/toolbar/types.js.map +1 -0
  204. package/components/LayoutSwitch/LayoutSwitch.js +18 -29
  205. package/components/LayoutSwitch/LayoutSwitch.js.map +1 -1
  206. package/components/LayoutSwitch/index.js +1 -16
  207. package/components/LayoutSwitch/index.js.map +1 -1
  208. package/components/NoPermissions/NoPermissions.d.ts +2 -0
  209. package/components/NoPermissions/NoPermissions.js +28 -0
  210. package/components/NoPermissions/NoPermissions.js.map +1 -0
  211. package/components/NoPermissions/index.d.ts +1 -0
  212. package/components/NoPermissions/index.js +3 -0
  213. package/components/NoPermissions/index.js.map +1 -0
  214. package/components/NoResults/NoResults.js +19 -15
  215. package/components/NoResults/NoResults.js.map +1 -1
  216. package/components/NoResults/index.js +1 -16
  217. package/components/NoResults/index.js.map +1 -1
  218. package/components/SearchWidget/SearchWidget.js +31 -0
  219. package/components/SearchWidget/SearchWidget.js.map +1 -0
  220. package/components/SearchWidget/index.d.ts +1 -0
  221. package/components/SearchWidget/index.js +3 -0
  222. package/components/SearchWidget/index.js.map +1 -0
  223. package/components/Table/Actions/CopyFile.js +19 -22
  224. package/components/Table/Actions/CopyFile.js.map +1 -1
  225. package/components/Table/Actions/DeleteFile.js +23 -25
  226. package/components/Table/Actions/DeleteFile.js.map +1 -1
  227. package/components/Table/Actions/EditFile.js +18 -23
  228. package/components/Table/Actions/EditFile.js.map +1 -1
  229. package/components/Table/Actions/MoveFile.js +15 -19
  230. package/components/Table/Actions/MoveFile.js.map +1 -1
  231. package/components/Table/Actions/index.js +4 -49
  232. package/components/Table/Actions/index.js.map +1 -1
  233. package/components/Table/Cells/CellActions.js +24 -28
  234. package/components/Table/Cells/CellActions.js.map +1 -1
  235. package/components/Table/Cells/CellAuthor.js +10 -17
  236. package/components/Table/Cells/CellAuthor.js.map +1 -1
  237. package/components/Table/Cells/CellCreated.js +12 -19
  238. package/components/Table/Cells/CellCreated.js.map +1 -1
  239. package/components/Table/Cells/CellModified.js +12 -19
  240. package/components/Table/Cells/CellModified.js.map +1 -1
  241. package/components/Table/Cells/CellName.d.ts +4 -4
  242. package/components/Table/Cells/CellName.js +55 -48
  243. package/components/Table/Cells/CellName.js.map +1 -1
  244. package/components/Table/Cells/CellSize.js +13 -18
  245. package/components/Table/Cells/CellSize.js.map +1 -1
  246. package/components/Table/Cells/CellThumbnail.d.ts +2 -0
  247. package/components/Table/Cells/CellThumbnail.js +16 -0
  248. package/components/Table/Cells/CellThumbnail.js.map +1 -0
  249. package/components/Table/Cells/CellType.js +12 -17
  250. package/components/Table/Cells/CellType.js.map +1 -1
  251. package/components/Table/Cells/index.js +7 -82
  252. package/components/Table/Cells/index.js.map +1 -1
  253. package/components/Table/Table.d.ts +4 -4
  254. package/components/Table/Table.js +17 -20
  255. package/components/Table/Table.js.map +1 -1
  256. package/components/Table/index.js +3 -38
  257. package/components/Table/index.js.map +1 -1
  258. package/components/TagsList/Empty.js +11 -0
  259. package/components/TagsList/Empty.js.map +1 -0
  260. package/components/TagsList/FilterSelect.d.ts +2 -0
  261. package/components/TagsList/FilterSelect.js +28 -0
  262. package/components/TagsList/FilterSelect.js.map +1 -0
  263. package/components/TagsList/FilterStatus.d.ts +7 -0
  264. package/components/TagsList/FilterStatus.js +27 -0
  265. package/components/TagsList/FilterStatus.js.map +1 -0
  266. package/{modules/FileManagerRenderer/FileManagerView/components → components}/TagsList/Tag.d.ts +1 -1
  267. package/components/TagsList/Tag.js +16 -0
  268. package/components/TagsList/Tag.js.map +1 -0
  269. package/components/TagsList/Tags.d.ts +8 -0
  270. package/components/TagsList/Tags.js +32 -0
  271. package/components/TagsList/Tags.js.map +1 -0
  272. package/{modules/FileManagerRenderer/FileManagerView/components → components}/TagsList/TagsList.d.ts +1 -1
  273. package/components/TagsList/TagsList.js +31 -0
  274. package/components/TagsList/TagsList.js.map +1 -0
  275. package/components/TagsList/index.js +3 -0
  276. package/components/TagsList/index.js.map +1 -0
  277. package/components/Thumbnail/Thumbnail.d.ts +2 -0
  278. package/components/Thumbnail/Thumbnail.js +16 -0
  279. package/components/Thumbnail/Thumbnail.js.map +1 -0
  280. package/components/Thumbnail/index.d.ts +1 -0
  281. package/components/Thumbnail/index.js +3 -0
  282. package/components/Thumbnail/index.js.map +1 -0
  283. package/components/UploadStatus/UploadStatus.d.ts +3 -1
  284. package/components/UploadStatus/UploadStatus.js +33 -32
  285. package/components/UploadStatus/UploadStatus.js.map +1 -1
  286. package/components/UploadStatus/index.js +1 -16
  287. package/components/UploadStatus/index.js.map +1 -1
  288. package/components/fields/AccessControl.js +31 -31
  289. package/components/fields/AccessControl.js.map +1 -1
  290. package/components/fields/Aliases.js +76 -127
  291. package/components/fields/Aliases.js.map +1 -1
  292. package/components/fields/Name.js +21 -23
  293. package/components/fields/Name.js.map +1 -1
  294. package/components/fields/Tags.js +30 -30
  295. package/components/fields/Tags.js.map +1 -1
  296. package/components/fields/index.js +4 -49
  297. package/components/fields/index.js.map +1 -1
  298. package/components/fields/useAccessControlField.d.ts +1 -1
  299. package/components/fields/useAccessControlField.js +9 -21
  300. package/components/fields/useAccessControlField.js.map +1 -1
  301. package/components/fields/useFileOrUndefined.js +3 -9
  302. package/components/fields/useFileOrUndefined.js.map +1 -1
  303. package/constants.js +4 -16
  304. package/constants.js.map +1 -1
  305. package/contexts/FileProvider.d.ts +1 -1
  306. package/contexts/FileProvider.js +12 -18
  307. package/contexts/FileProvider.js.map +1 -1
  308. package/hooks/useCopyFile.d.ts +1 -1
  309. package/hooks/useCopyFile.js +18 -24
  310. package/hooks/useCopyFile.js.map +1 -1
  311. package/hooks/useDeleteFile.d.ts +1 -1
  312. package/hooks/useDeleteFile.js +38 -62
  313. package/hooks/useDeleteFile.js.map +1 -1
  314. package/hooks/useFile.js +5 -12
  315. package/hooks/useFile.js.map +1 -1
  316. package/hooks/useFileDetails.js +5 -12
  317. package/hooks/useFileDetails.js.map +1 -1
  318. package/hooks/useFileModel.js +5 -12
  319. package/hooks/useFileModel.js.map +1 -1
  320. package/hooks/useMoveFileToFolder.d.ts +1 -1
  321. package/hooks/useMoveFileToFolder.js +19 -21
  322. package/hooks/useMoveFileToFolder.js.map +1 -1
  323. package/index.js +8 -101
  324. package/index.js.map +1 -1
  325. package/modules/Enterprise/HandleWebsocketMessages.js +31 -53
  326. package/modules/Enterprise/HandleWebsocketMessages.js.map +1 -1
  327. package/modules/Enterprise/components/ThreatScanInProgressFileBody.d.ts +2 -0
  328. package/modules/Enterprise/components/ThreatScanInProgressFileBody.js +23 -0
  329. package/modules/Enterprise/components/ThreatScanInProgressFileBody.js.map +1 -0
  330. package/modules/Enterprise/components/ThreatScanInProgressTableCell.d.ts +6 -0
  331. package/modules/Enterprise/components/ThreatScanInProgressTableCell.js +32 -0
  332. package/modules/Enterprise/components/ThreatScanInProgressTableCell.js.map +1 -0
  333. package/modules/Enterprise/constants.js +1 -7
  334. package/modules/Enterprise/constants.js.map +1 -1
  335. package/modules/Enterprise/index.js +29 -22
  336. package/modules/Enterprise/index.js.map +1 -1
  337. package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.d.ts +3 -3
  338. package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.js +120 -128
  339. package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.js.map +1 -1
  340. package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.d.ts +1 -1
  341. package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.js +14 -25
  342. package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.js.map +1 -1
  343. package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.d.ts +1 -1
  344. package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.js +25 -11
  345. package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.js.map +1 -1
  346. package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.d.ts +1 -1
  347. package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.js +3 -9
  348. package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.js.map +1 -1
  349. package/modules/FileManagerApiProvider/FileManagerApiContext/index.js +3 -26
  350. package/modules/FileManagerApiProvider/FileManagerApiContext/index.js.map +1 -1
  351. package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.d.ts +2 -2
  352. package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.js +4 -11
  353. package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.js.map +1 -1
  354. package/modules/FileManagerApiProvider/graphql.d.ts +3 -3
  355. package/modules/FileManagerApiProvider/graphql.js +116 -27
  356. package/modules/FileManagerApiProvider/graphql.js.map +1 -1
  357. package/modules/FileManagerApiProvider/index.js +11 -17
  358. package/modules/FileManagerApiProvider/index.js.map +1 -1
  359. package/modules/FileManagerRenderer/FileActions/FileDetails/CopyUrl.js +18 -25
  360. package/modules/FileManagerRenderer/FileActions/FileDetails/CopyUrl.js.map +1 -1
  361. package/modules/FileManagerRenderer/FileActions/FileDetails/DeleteImage.js +26 -39
  362. package/modules/FileManagerRenderer/FileActions/FileDetails/DeleteImage.js.map +1 -1
  363. package/modules/FileManagerRenderer/FileActions/FileDetails/Download.js +15 -23
  364. package/modules/FileManagerRenderer/FileActions/FileDetails/Download.js.map +1 -1
  365. package/modules/FileManagerRenderer/FileActions/FileDetails/EditImage.js +48 -59
  366. package/modules/FileManagerRenderer/FileActions/FileDetails/EditImage.js.map +1 -1
  367. package/modules/FileManagerRenderer/FileActions/FileDetails/MoveToFolder.js +14 -22
  368. package/modules/FileManagerRenderer/FileActions/FileDetails/MoveToFolder.js.map +1 -1
  369. package/modules/FileManagerRenderer/FileActions/Grid/Delete.d.ts +2 -0
  370. package/modules/FileManagerRenderer/FileActions/Grid/Delete.js +29 -0
  371. package/modules/FileManagerRenderer/FileActions/Grid/Delete.js.map +1 -0
  372. package/modules/FileManagerRenderer/FileActions/Grid/Download.js +16 -19
  373. package/modules/FileManagerRenderer/FileActions/Grid/Download.js.map +1 -1
  374. package/modules/FileManagerRenderer/FileActions/Grid/MoveToFolder.js +14 -17
  375. package/modules/FileManagerRenderer/FileActions/Grid/MoveToFolder.js.map +1 -1
  376. package/modules/FileManagerRenderer/FileActions/Grid/Settings.js +15 -18
  377. package/modules/FileManagerRenderer/FileActions/Grid/Settings.js.map +1 -1
  378. package/modules/FileManagerRenderer/FileActions/index.js +36 -37
  379. package/modules/FileManagerRenderer/FileActions/index.js.map +1 -1
  380. package/modules/FileManagerRenderer/FileManagerView/FileManagerView.js +172 -252
  381. package/modules/FileManagerRenderer/FileManagerView/FileManagerView.js.map +1 -1
  382. package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.d.ts +52 -6
  383. package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.js +47 -54
  384. package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.js.map +1 -1
  385. package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.js +29 -56
  386. package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.js.map +1 -1
  387. package/modules/FileManagerRenderer/FileManagerView/NavigateFolderProvider.js +12 -23
  388. package/modules/FileManagerRenderer/FileManagerView/NavigateFolderProvider.js.map +1 -1
  389. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.d.ts +2 -2
  390. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.js +34 -45
  391. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.js.map +1 -1
  392. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkEditField.js +11 -17
  393. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkEditField.js.map +1 -1
  394. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.d.ts +2 -2
  395. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.js +8 -19
  396. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.js.map +1 -1
  397. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.js +20 -29
  398. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.js.map +1 -1
  399. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FilterByTags.js +7 -13
  400. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FilterByTags.js.map +1 -1
  401. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FiltersToWhere.js +7 -13
  402. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FiltersToWhere.js.map +1 -1
  403. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.d.ts +2 -2
  404. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.js +8 -19
  405. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.js.map +1 -1
  406. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderFieldDecorator.d.ts +2 -2
  407. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderFieldDecorator.js +6 -10
  408. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderFieldDecorator.js.map +1 -1
  409. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.js +18 -27
  410. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.js.map +1 -1
  411. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.js +13 -19
  412. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.js.map +1 -1
  413. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.d.ts +2 -2
  414. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.js +1 -5
  415. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.js.map +1 -1
  416. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.d.ts +28 -5
  417. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.js +10 -19
  418. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.js.map +1 -1
  419. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Thumbnail.d.ts +28 -0
  420. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Thumbnail.js +30 -0
  421. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Thumbnail.js.map +1 -0
  422. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.d.ts +49 -3
  423. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.js +7 -9
  424. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.js.map +1 -1
  425. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.d.ts +55 -12
  426. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.js +30 -38
  427. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.js.map +1 -1
  428. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.js +17 -26
  429. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.js.map +1 -1
  430. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.js +20 -29
  431. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.js.map +1 -1
  432. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.d.ts +1 -1
  433. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.js +16 -24
  434. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.js.map +1 -1
  435. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.js +8 -14
  436. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.js.map +1 -1
  437. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.js +12 -18
  438. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.js.map +1 -1
  439. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Width.js +8 -14
  440. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Width.js.map +1 -1
  441. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.d.ts +4 -4
  442. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.js +15 -21
  443. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.js.map +1 -1
  444. package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.d.ts +1 -1
  445. package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.js +7 -16
  446. package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.js.map +1 -1
  447. package/modules/FileManagerRenderer/FileManagerView/index.d.ts +1 -1
  448. package/modules/FileManagerRenderer/FileManagerView/index.js +49 -57
  449. package/modules/FileManagerRenderer/FileManagerView/index.js.map +1 -1
  450. package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.d.ts +1 -1
  451. package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.js +6 -17
  452. package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.js.map +1 -1
  453. package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.d.ts +11 -5
  454. package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.js +281 -337
  455. package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.js.map +1 -1
  456. package/modules/FileManagerRenderer/FileManagerViewProvider/index.js +2 -27
  457. package/modules/FileManagerRenderer/FileManagerViewProvider/index.js.map +1 -1
  458. package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.d.ts +4 -2
  459. package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.js +30 -45
  460. package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.js.map +1 -1
  461. package/modules/FileManagerRenderer/FileManagerViewProvider/state.d.ts +5 -3
  462. package/modules/FileManagerRenderer/FileManagerViewProvider/state.js +5 -9
  463. package/modules/FileManagerRenderer/FileManagerViewProvider/state.js.map +1 -1
  464. package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.d.ts +1 -1
  465. package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.js +4 -10
  466. package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.js.map +1 -1
  467. package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.d.ts +5 -5
  468. package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.js +79 -99
  469. package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.js.map +1 -1
  470. package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.d.ts +1 -1
  471. package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.js +63 -81
  472. package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.js.map +1 -1
  473. package/modules/FileManagerRenderer/filters/FilterByType.js +9 -16
  474. package/modules/FileManagerRenderer/filters/FilterByType.js.map +1 -1
  475. package/modules/FileManagerRenderer/index.js +89 -83
  476. package/modules/FileManagerRenderer/index.js.map +1 -1
  477. package/modules/HeadlessCms/fileField.d.ts +1 -1
  478. package/modules/HeadlessCms/fileField.js +11 -19
  479. package/modules/HeadlessCms/fileField.js.map +1 -1
  480. package/modules/HeadlessCms/fileRenderer/fileField.d.ts +1 -1
  481. package/modules/HeadlessCms/fileRenderer/fileField.js +46 -91
  482. package/modules/HeadlessCms/fileRenderer/fileField.js.map +1 -1
  483. package/modules/HeadlessCms/fileRenderer/fileFields.d.ts +1 -1
  484. package/modules/HeadlessCms/fileRenderer/fileFields.js +76 -146
  485. package/modules/HeadlessCms/fileRenderer/fileFields.js.map +1 -1
  486. package/modules/HeadlessCms/fileRenderer/utils.d.ts +1 -11
  487. package/modules/HeadlessCms/fileRenderer/utils.js +3 -53
  488. package/modules/HeadlessCms/fileRenderer/utils.js.map +1 -1
  489. package/modules/HeadlessCms/index.js +8 -14
  490. package/modules/HeadlessCms/index.js.map +1 -1
  491. package/modules/Settings/graphql.js +26 -15
  492. package/modules/Settings/graphql.js.map +1 -1
  493. package/modules/Settings/index.js +35 -32
  494. package/modules/Settings/index.js.map +1 -1
  495. package/modules/Settings/plugins/installation.d.ts +1 -1
  496. package/modules/Settings/plugins/installation.js +68 -68
  497. package/modules/Settings/plugins/installation.js.map +1 -1
  498. package/modules/Settings/plugins/permissionRenderer/FileManagerPermissions.js +122 -149
  499. package/modules/Settings/plugins/permissionRenderer/FileManagerPermissions.js.map +1 -1
  500. package/modules/Settings/plugins/permissionRenderer/index.d.ts +1 -1
  501. package/modules/Settings/plugins/permissionRenderer/index.js +16 -22
  502. package/modules/Settings/plugins/permissionRenderer/index.js.map +1 -1
  503. package/modules/Settings/views/FileManagerSettings.js +97 -110
  504. package/modules/Settings/views/FileManagerSettings.js.map +1 -1
  505. package/modules/ThumbnailRenderers/FilePreviewDefaultRenderer.d.ts +2 -0
  506. package/modules/ThumbnailRenderers/FilePreviewDefaultRenderer.js +12 -0
  507. package/modules/ThumbnailRenderers/FilePreviewDefaultRenderer.js.map +1 -0
  508. package/modules/ThumbnailRenderers/FilePreviewImageRenderer.d.ts +2 -0
  509. package/modules/ThumbnailRenderers/FilePreviewImageRenderer.js +19 -0
  510. package/modules/ThumbnailRenderers/FilePreviewImageRenderer.js.map +1 -0
  511. package/modules/ThumbnailRenderers/GridItemDefaultRenderer.d.ts +2 -0
  512. package/modules/ThumbnailRenderers/GridItemDefaultRenderer.js +12 -0
  513. package/modules/ThumbnailRenderers/GridItemDefaultRenderer.js.map +1 -0
  514. package/modules/ThumbnailRenderers/GridItemImageRenderer.d.ts +2 -0
  515. package/modules/ThumbnailRenderers/GridItemImageRenderer.js +19 -0
  516. package/modules/ThumbnailRenderers/GridItemImageRenderer.js.map +1 -0
  517. package/modules/ThumbnailRenderers/TableItemDefaultRenderer.d.ts +2 -0
  518. package/modules/ThumbnailRenderers/TableItemDefaultRenderer.js +19 -0
  519. package/modules/ThumbnailRenderers/TableItemDefaultRenderer.js.map +1 -0
  520. package/modules/ThumbnailRenderers/TableItemImageRenderer.d.ts +2 -0
  521. package/modules/ThumbnailRenderers/TableItemImageRenderer.js +19 -0
  522. package/modules/ThumbnailRenderers/TableItemImageRenderer.js.map +1 -0
  523. package/package.json +23 -24
  524. package/tagsHelpers.d.ts +1 -1
  525. package/tagsHelpers.js +31 -37
  526. package/tagsHelpers.js.map +1 -1
  527. package/types.d.ts +6 -7
  528. package/types.js +1 -12
  529. package/types.js.map +1 -1
  530. package/components/BottomInfoBar/styled.d.ts +0 -21
  531. package/components/BottomInfoBar/styled.js +0 -81
  532. package/components/BottomInfoBar/styled.js.map +0 -1
  533. package/components/BulkActions/ActionEdit/ActionEdit.styled.d.ts +0 -28
  534. package/components/BulkActions/ActionEdit/ActionEdit.styled.js +0 -77
  535. package/components/BulkActions/ActionEdit/ActionEdit.styled.js.map +0 -1
  536. package/components/BulkActions/ActionEdit/BatchEditorDialog/RemoveOperation.d.ts +0 -7
  537. package/components/BulkActions/ActionEdit/BatchEditorDialog/RemoveOperation.js +0 -26
  538. package/components/BulkActions/ActionEdit/BatchEditorDialog/RemoveOperation.js.map +0 -1
  539. package/components/BulkActions/BulkActions.styled.d.ts +0 -13
  540. package/components/BulkActions/BulkActions.styled.js +0 -46
  541. package/components/BulkActions/BulkActions.styled.js.map +0 -1
  542. package/components/DropFilesHere/DropFilesHere.d.ts +0 -8
  543. package/components/DropFilesHere/DropFilesHere.js +0 -28
  544. package/components/DropFilesHere/DropFilesHere.js.map +0 -1
  545. package/components/DropFilesHere/index.d.ts +0 -1
  546. package/components/DropFilesHere/index.js +0 -18
  547. package/components/DropFilesHere/index.js.map +0 -1
  548. package/components/DropFilesHere/styled.d.ts +0 -22
  549. package/components/DropFilesHere/styled.js +0 -61
  550. package/components/DropFilesHere/styled.js.map +0 -1
  551. package/components/FileDetails/components/Flex.d.ts +0 -7
  552. package/components/FileDetails/components/Flex.js +0 -48
  553. package/components/FileDetails/components/Flex.js.map +0 -1
  554. package/components/FileDetails/components/Footer.d.ts +0 -2
  555. package/components/FileDetails/components/Footer.js +0 -40
  556. package/components/FileDetails/components/Footer.js.map +0 -1
  557. package/components/FileDetails/components/Header.d.ts +0 -2
  558. package/components/FileDetails/components/Header.js +0 -40
  559. package/components/FileDetails/components/Header.js.map +0 -1
  560. package/components/FileDetails/components/PreviewMeta.d.ts +0 -2
  561. package/components/FileDetails/components/PreviewMeta.js +0 -31
  562. package/components/FileDetails/components/PreviewMeta.js.map +0 -1
  563. package/components/FileDetails/components/TypeAndSize.d.ts +0 -2
  564. package/components/FileDetails/components/TypeAndSize.js +0 -67
  565. package/components/FileDetails/components/TypeAndSize.js.map +0 -1
  566. package/components/Grid/styled.d.ts +0 -41
  567. package/components/Grid/styled.js +0 -137
  568. package/components/Grid/styled.js.map +0 -1
  569. package/components/NoPermission/NoPermission.d.ts +0 -2
  570. package/components/NoPermission/NoPermission.js +0 -25
  571. package/components/NoPermission/NoPermission.js.map +0 -1
  572. package/components/NoPermission/index.d.ts +0 -1
  573. package/components/NoPermission/index.js +0 -18
  574. package/components/NoPermission/index.js.map +0 -1
  575. package/components/NoPermission/styled.d.ts +0 -24
  576. package/components/NoPermission/styled.js +0 -97
  577. package/components/NoPermission/styled.js.map +0 -1
  578. package/components/NoResults/styled.d.ts +0 -5
  579. package/components/NoResults/styled.js +0 -25
  580. package/components/NoResults/styled.js.map +0 -1
  581. package/components/Table/Cells/Cells.styled.d.ts +0 -12
  582. package/components/Table/Cells/Cells.styled.js +0 -54
  583. package/components/Table/Cells/Cells.styled.js.map +0 -1
  584. package/components/Title/Title.d.ts +0 -5
  585. package/components/Title/Title.js +0 -21
  586. package/components/Title/Title.js.map +0 -1
  587. package/components/Title/index.d.ts +0 -1
  588. package/components/Title/index.js +0 -18
  589. package/components/Title/index.js.map +0 -1
  590. package/components/Title/styled.d.ts +0 -4
  591. package/components/Title/styled.js +0 -26
  592. package/components/Title/styled.js.map +0 -1
  593. package/components/UploadStatus/assets/check.svg +0 -3
  594. package/components/UploadStatus/assets/loading.svg +0 -17
  595. package/components/UploadStatus/styled.d.ts +0 -39
  596. package/components/UploadStatus/styled.js +0 -127
  597. package/components/UploadStatus/styled.js.map +0 -1
  598. package/modules/Enterprise/components/ThreatScanInProgress.d.ts +0 -2
  599. package/modules/Enterprise/components/ThreatScanInProgress.js +0 -44
  600. package/modules/Enterprise/components/ThreatScanInProgress.js.map +0 -1
  601. package/modules/FileManagerRenderer/FileManagerView/components/Filters.js +0 -33
  602. package/modules/FileManagerRenderer/FileManagerView/components/Filters.js.map +0 -1
  603. package/modules/FileManagerRenderer/FileManagerView/components/SearchWidget.js +0 -98
  604. package/modules/FileManagerRenderer/FileManagerView/components/SearchWidget.js.map +0 -1
  605. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Empty.js +0 -19
  606. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Empty.js.map +0 -1
  607. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Tag.js +0 -29
  608. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Tag.js.map +0 -1
  609. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/TagsList.js +0 -71
  610. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/TagsList.js.map +0 -1
  611. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/index.js +0 -18
  612. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/index.js.map +0 -1
  613. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/styled.d.ts +0 -39
  614. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/styled.js +0 -91
  615. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/styled.js.map +0 -1
  616. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderDropConfirmation.d.ts +0 -5
  617. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderDropConfirmation.js +0 -15
  618. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderDropConfirmation.js.map +0 -1
  619. package/modules/HeadlessCms/fileRenderer/File.d.ts +0 -10
  620. package/modules/HeadlessCms/fileRenderer/File.js +0 -86
  621. package/modules/HeadlessCms/fileRenderer/File.js.map +0 -1
  622. package/modules/ThumbnailRenderers/DefaultRenderer.d.ts +0 -2
  623. package/modules/ThumbnailRenderers/DefaultRenderer.js +0 -25
  624. package/modules/ThumbnailRenderers/DefaultRenderer.js.map +0 -1
  625. package/modules/ThumbnailRenderers/ImageRenderer.d.ts +0 -2
  626. package/modules/ThumbnailRenderers/ImageRenderer.js +0 -29
  627. package/modules/ThumbnailRenderers/ImageRenderer.js.map +0 -1
  628. /package/{modules/FileManagerRenderer/FileManagerView/components → components/Filters}/Filters.d.ts +0 -0
  629. /package/{modules/FileManagerRenderer/FileManagerView/components → components/SearchWidget}/SearchWidget.d.ts +0 -0
  630. /package/{modules/FileManagerRenderer/FileManagerView/components → components}/TagsList/Empty.d.ts +0 -0
  631. /package/{modules/FileManagerRenderer/FileManagerView/components → components}/TagsList/index.d.ts +0 -0
@@ -1,136 +1,85 @@
1
- "use strict";
2
-
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.Aliases = void 0;
9
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
10
- var _base = _interopRequireDefault(require("@emotion/styled/base"));
11
- var _react = _interopRequireWildcard(require("react"));
12
- var _delete = require("@material-design-icons/svg/outlined/delete.svg");
13
- var _DynamicFieldset = require("@webiny/ui/DynamicFieldset");
14
- var _Input = require("@webiny/ui/Input");
15
- var _Typography = require("@webiny/ui/Typography");
16
- var _Button = require("@webiny/ui/Button");
17
- var _validation = require("@webiny/validation");
18
- var _form = require("@webiny/form");
19
- 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)."; }
20
- var Fieldset = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
21
- target: "e1f610363"
22
- } : {
23
- target: "e1f610363",
24
- label: "Fieldset"
25
- })(process.env.NODE_ENV === "production" ? {
26
- name: "1ismlu1",
27
- styles: "position:relative;width:100%;margin-bottom:15px;.webiny-ui-button{position:absolute;display:block;right:10px;top:13px;}"
28
- } : {
29
- name: "1ismlu1",
30
- styles: "position:relative;width:100%;margin-bottom:15px;.webiny-ui-button{position:absolute;display:block;right:10px;top:13px;}",
31
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkFsaWFzZXMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVVpQiIsImZpbGUiOiJBbGlhc2VzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyBGcmFnbWVudCwgdXNlTWVtbyB9IGZyb20gXCJyZWFjdFwiO1xuaW1wb3J0IHN0eWxlZCBmcm9tIFwiQGVtb3Rpb24vc3R5bGVkXCI7XG5pbXBvcnQgeyBSZWFjdENvbXBvbmVudCBhcy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uICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgXTtcbiAgICB9LCBbXSk7XG5cbiAgICByZXR1cm4gKFxuICAgICAgICA8RHluYW1pY0ZpZWxkc2V0IHZhbHVlPXt2YWx1ZSB8fCBbXCJcIl19IG9uQ2hhbmdlPXtvbkNoYW5nZX0+XG4gICAgICAgICAgICB7KHsgYWN0aW9ucywgaGVhZGVyLCByb3csIGVtcHR5IH0pID0+IChcbiAgICAgICAgICAgICAgICA8PlxuICAgICAgICAgICAgICAgICAgICB7cm93KCh7IGluZGV4IH0pID0+IChcbiAgICAgICAgICAgICAgICAgICAgICAgIDxGaWVsZHNldD5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8QmluZCB2YWxpZGF0b3JzPXthbGlhc1ZhbGlkYXRvcn0gbmFtZT17YGFsaWFzZXMuJHtpbmRleH1gfT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPElucHV0XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwbGFjZWhvbGRlcj17XCJBbGlhc1wifVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVzY3JpcHRpb249e1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiRW50ZXIgYSBmaWxlIHBhdGgsIGUuZy4sIC9teS9jdXN0b20vZmlsZS9wYXRoLnBuZ1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9CaW5kPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxEZWxldGVBbGlhc0J1dHRvblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpY29uPXs8RGVsZXRlSWNvbiAvPn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb25DbGljaz17YWN0aW9ucy5yZW1vdmUoaW5kZXgpfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgICAgICAgICA8L0ZpZWxkc2V0PlxuICAgICAgICAgICAgICAgICAgICApKX1cbiAgICAgICAgICAgICAgICAgICAge2VtcHR5KCgpID0+IChcbiAgICAgICAgICAgICAgICAgICAgICAgIDxGcmFnbWVudD5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8SGVhZGVyPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8VHlwb2dyYXBoeSB1c2U9e1wib3ZlcmxpbmVcIn0+RmlsZSBBbGlhc2VzPC9UeXBvZ3JhcGh5PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8QnV0dG9uRGVmYXVsdCBvbkNsaWNrPXthZGRBbGlhc30+KyBBZGQgQWxpYXM8L0J1dHRvbkRlZmF1bHQ+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9IZWFkZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPFR5cG9ncmFwaHkgdXNlPXtcImNhcHRpb25cIn0+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxGaWxlQWxpYXNNZXNzYWdlPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgVG8gbWFrZSB5b3VyIGZpbGUgYWNjZXNzaWJsZSB2aWEgY3VzdG9tIHBhdGhzLCBhZGQgb25lIG9yIG1vcmVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFsaWFzZXMuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvRmlsZUFsaWFzTWVzc2FnZT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L1R5cG9ncmFwaHk+XG4gICAgICAgICAgICAgICAgICAgICAgICA8L0ZyYWdtZW50PlxuICAgICAgICAgICAgICAgICAgICApKX1cbiAgICAgICAgICAgICAgICAgICAge2hlYWRlcigoKSA9PiAoXG4gICAgICAgICAgICAgICAgICAgICAgICA8SGVhZGVyPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxUeXBvZ3JhcGh5IHVzZT17XCJvdmVybGluZVwifT5GaWxlIEFsaWFzZXM8L1R5cG9ncmFwaHk+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPEJ1dHRvbkRlZmF1bHQgb25DbGljaz17YWRkQWxpYXN9PisgQWRkIEFsaWFzPC9CdXR0b25EZWZhdWx0PlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9IZWFkZXI+XG4gICAgICAgICAgICAgICAgICAgICkpfVxuICAgICAgICAgICAgICAgIDwvPlxuICAgICAgICAgICAgKX1cbiAgICAgICAgPC9EeW5hbWljRmllbGRzZXQ+XG4gICAgKTtcbn07XG4iXX0= */",
32
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
33
- });
34
- var Header = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
35
- target: "e1f610362"
36
- } : {
37
- target: "e1f610362",
38
- label: "Header"
39
- })(process.env.NODE_ENV === "production" ? {
40
- name: "1eoy87d",
41
- styles: "display:flex;justify-content:space-between"
42
- } : {
43
- name: "1eoy87d",
44
- styles: "display:flex;justify-content:space-between",
45
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkFsaWFzZXMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXNCZSIsImZpbGUiOiJBbGlhc2VzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyBGcmFnbWVudCwgdXNlTWVtbyB9IGZyb20gXCJyZWFjdFwiO1xuaW1wb3J0IHN0eWxlZCBmcm9tIFwiQGVtb3Rpb24vc3R5bGVkXCI7XG5pbXBvcnQgeyBSZWFjdENvbXBvbmVudCBhcyBEZWxldGVJY29uIH0gZnJvbSBcIkBtYXRlcmlhbC1kZXNpZ24taWNvbnMvc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B9LCBbXSk7XG5cbiAgICByZXR1cm4gKFxuICAgICAgICA8RHluYW1pY0ZpZWxkc2V0IHZhbHVlPXt2YWx1ZSB8fCBbXCJcIl19IG9uQ2hhbmdlPXtvbkNoYW5nZX0+XG4gICAgICAgICAgICB7KHsgYWN0aW9ucywgaGVhZGVyLCByb3csIGVtcHR5IH0pID0+IChcbiAgICAgICAgICAgICAgICA8PlxuICAgICAgICAgICAgICAgICAgICB7cm93KCh7IGluZGV4IH0pID0+IChcbiAgICAgICAgICAgICAgICAgICAgICAgIDxGaWVsZHNldD5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8QmluZCB2YWxpZGF0b3JzPXthbGlhc1ZhbGlkYXRvcn0gbmFtZT17YGFsaWFzZXMuJHtpbmRleH1gfT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPElucHV0XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwbGFjZWhvbGRlcj17XCJBbGlhc1wifVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVzY3JpcHRpb249e1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiRW50ZXIgYSBmaWxlIHBhdGgsIGUuZy4sIC9teS9jdXN0b20vZmlsZS9wYXRoLnBuZ1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9CaW5kPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxEZWxldGVBbGlhc0J1dHRvblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpY29uPXs8RGVsZXRlSWNvbiAvPn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb25DbGljaz17YWN0aW9ucy5yZW1vdmUoaW5kZXgpfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgICAgICAgICA8L0ZpZWxkc2V0PlxuICAgICAgICAgICAgICAgICAgICApKX1cbiAgICAgICAgICAgICAgICAgICAge2VtcHR5KCgpID0+IChcbiAgICAgICAgICAgICAgICAgICAgICAgIDxGcmFnbWVudD5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8SGVhZGVyPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8VHlwb2dyYXBoeSB1c2U9e1wib3ZlcmxpbmVcIn0+RmlsZSBBbGlhc2VzPC9UeXBvZ3JhcGh5PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8QnV0dG9uRGVmYXVsdCBvbkNsaWNrPXthZGRBbGlhc30+KyBBZGQgQWxpYXM8L0J1dHRvbkRlZmF1bHQ+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9IZWFkZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPFR5cG9ncmFwaHkgdXNlPXtcImNhcHRpb25cIn0+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxGaWxlQWxpYXNNZXNzYWdlPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgVG8gbWFrZSB5b3VyIGZpbGUgYWNjZXNzaWJsZSB2aWEgY3VzdG9tIHBhdGhzLCBhZGQgb25lIG9yIG1vcmVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFsaWFzZXMuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvRmlsZUFsaWFzTWVzc2FnZT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L1R5cG9ncmFwaHk+XG4gICAgICAgICAgICAgICAgICAgICAgICA8L0ZyYWdtZW50PlxuICAgICAgICAgICAgICAgICAgICApKX1cbiAgICAgICAgICAgICAgICAgICAge2hlYWRlcigoKSA9PiAoXG4gICAgICAgICAgICAgICAgICAgICAgICA8SGVhZGVyPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxUeXBvZ3JhcGh5IHVzZT17XCJvdmVybGluZVwifT5GaWxlIEFsaWFzZXM8L1R5cG9ncmFwaHk+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPEJ1dHRvbkRlZmF1bHQgb25DbGljaz17YWRkQWxpYXN9PisgQWRkIEFsaWFzPC9CdXR0b25EZWZhdWx0PlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9IZWFkZXI+XG4gICAgICAgICAgICAgICAgICAgICkpfVxuICAgICAgICAgICAgICAgIDwvPlxuICAgICAgICAgICAgKX1cbiAgICAgICAgPC9EeW5hbWljRmllbGRzZXQ+XG4gICAgKTtcbn07XG4iXX0= */",
46
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
47
- });
48
- var DeleteAliasButton = /*#__PURE__*/(0, _base.default)(_Button.IconButton, process.env.NODE_ENV === "production" ? {
49
- target: "e1f610361"
50
- } : {
51
- target: "e1f610361",
52
- label: "DeleteAliasButton"
53
- })(process.env.NODE_ENV === "production" ? {
54
- name: "1em5xmo",
55
- styles: "position:absolute;top:5px;right:5px"
56
- } : {
57
- name: "1em5xmo",
58
- styles: "position:absolute;top:5px;right:5px",
59
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkFsaWFzZXMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTJCNEMiLCJmaWxlIjoiQWxpYXNlcy50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgRnJhZ21lbnQsIHVzZU1lbW8gfSBmcm9tIFwicmVhY3RcIjtcbmltcG9ydCBzdHlsZWQgZnJvbSBcIkBlbW90aW9uL3N0eWxlZFwiO1xuaW1wb3J0IHsgUmVhY3RDb21wb25lbnQgYXMgRGVsZXRlSWNvbiB9IGZyb20gXCJAbWF0ZXJpYWwtZGVzaWduLWljb25zL3N2Zy9vdXRsaW5lZC9kZWxldGUuc3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dXJuIChcbiAgICAgICAgPER5bmFtaWNGaWVsZHNldCB2YWx1ZT17dmFsdWUgfHwgW1wiXCJdfSBvbkNoYW5nZT17b25DaGFuZ2V9PlxuICAgICAgICAgICAgeyh7IGFjdGlvbnMsIGhlYWRlciwgcm93LCBlbXB0eSB9KSA9PiAoXG4gICAgICAgICAgICAgICAgPD5cbiAgICAgICAgICAgICAgICAgICAge3JvdygoeyBpbmRleCB9KSA9PiAoXG4gICAgICAgICAgICAgICAgICAgICAgICA8RmllbGRzZXQ+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPEJpbmQgdmFsaWRhdG9ycz17YWxpYXNWYWxpZGF0b3J9IG5hbWU9e2BhbGlhc2VzLiR7aW5kZXh9YH0+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxJbnB1dFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGxhY2Vob2xkZXI9e1wiQWxpYXNcIn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlc2NyaXB0aW9uPXtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIkVudGVyIGEgZmlsZSBwYXRoLCBlLmcuLCAvbXkvY3VzdG9tL2ZpbGUvcGF0aC5wbmdcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvQmluZD5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8RGVsZXRlQWxpYXNCdXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWNvbj17PERlbGV0ZUljb24gLz59XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uQ2xpY2s9e2FjdGlvbnMucmVtb3ZlKGluZGV4KX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9GaWVsZHNldD5cbiAgICAgICAgICAgICAgICAgICAgKSl9XG4gICAgICAgICAgICAgICAgICAgIHtlbXB0eSgoKSA9PiAoXG4gICAgICAgICAgICAgICAgICAgICAgICA8RnJhZ21lbnQ+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPEhlYWRlcj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPFR5cG9ncmFwaHkgdXNlPXtcIm92ZXJsaW5lXCJ9PkZpbGUgQWxpYXNlczwvVHlwb2dyYXBoeT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPEJ1dHRvbkRlZmF1bHQgb25DbGljaz17YWRkQWxpYXN9PisgQWRkIEFsaWFzPC9CdXR0b25EZWZhdWx0PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvSGVhZGVyPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxUeXBvZ3JhcGh5IHVzZT17XCJjYXB0aW9uXCJ9PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8RmlsZUFsaWFzTWVzc2FnZT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFRvIG1ha2UgeW91ciBmaWxlIGFjY2Vzc2libGUgdmlhIGN1c3RvbSBwYXRocywgYWRkIG9uZSBvciBtb3JlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhbGlhc2VzLlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L0ZpbGVBbGlhc01lc3NhZ2U+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9UeXBvZ3JhcGh5PlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9GcmFnbWVudD5cbiAgICAgICAgICAgICAgICAgICAgKSl9XG4gICAgICAgICAgICAgICAgICAgIHtoZWFkZXIoKCkgPT4gKFxuICAgICAgICAgICAgICAgICAgICAgICAgPEhlYWRlcj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8VHlwb2dyYXBoeSB1c2U9e1wib3ZlcmxpbmVcIn0+RmlsZSBBbGlhc2VzPC9UeXBvZ3JhcGh5PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxCdXR0b25EZWZhdWx0IG9uQ2xpY2s9e2FkZEFsaWFzfT4rIEFkZCBBbGlhczwvQnV0dG9uRGVmYXVsdD5cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvSGVhZGVyPlxuICAgICAgICAgICAgICAgICAgICApKX1cbiAgICAgICAgICAgICAgICA8Lz5cbiAgICAgICAgICAgICl9XG4gICAgICAgIDwvRHluYW1pY0ZpZWxkc2V0PlxuICAgICk7XG59O1xuIl19 */",
60
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
61
- });
62
- var FileAliasMessage = /*#__PURE__*/(0, _base.default)("span", process.env.NODE_ENV === "production" ? {
63
- target: "e1f610360"
64
- } : {
65
- target: "e1f610360",
66
- label: "FileAliasMessage"
67
- })(process.env.NODE_ENV === "production" ? {
68
- name: "1438pbo",
69
- styles: "color:var(--mdc-theme-text-secondary-on-background);font-size:12px"
70
- } : {
71
- name: "1438pbo",
72
- styles: "color:var(--mdc-theme-text-secondary-on-background);font-size:12px",
73
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkFsaWFzZXMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWlDdUMiLCJmaWxlIjoiQWxpYXNlcy50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgRnJhZ21lbnQsIHVzZU1lbW8gfSBmcm9tIFwicmVhY3RcIjtcbmltcG9ydCBzdHlsZWQgZnJvbSBcIkBlbW90aW9uL3N0eWxlZFwiO1xuaW1wb3J0IHsgUmVhY3RDb21wb25lbnQgYXMgRGVsZXRlSWNvbiB9IGZyb20gXCJAbWF0ZXJpYWwtZGVzaWduLWljb25zL3N2Zy9vdXRsaW5l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1xuXG4gICAgcmV0dXJuIChcbiAgICAgICAgPER5bmFtaWNGaWVsZHNldCB2YWx1ZT17dmFsdWUgfHwgW1wiXCJdfSBvbkNoYW5nZT17b25DaGFuZ2V9PlxuICAgICAgICAgICAgeyh7IGFjdGlvbnMsIGhlYWRlciwgcm93LCBlbXB0eSB9KSA9PiAoXG4gICAgICAgICAgICAgICAgPD5cbiAgICAgICAgICAgICAgICAgICAge3JvdygoeyBpbmRleCB9KSA9PiAoXG4gICAgICAgICAgICAgICAgICAgICAgICA8RmllbGRzZXQ+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPEJpbmQgdmFsaWRhdG9ycz17YWxpYXNWYWxpZGF0b3J9IG5hbWU9e2BhbGlhc2VzLiR7aW5kZXh9YH0+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxJbnB1dFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGxhY2Vob2xkZXI9e1wiQWxpYXNcIn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlc2NyaXB0aW9uPXtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIkVudGVyIGEgZmlsZSBwYXRoLCBlLmcuLCAvbXkvY3VzdG9tL2ZpbGUvcGF0aC5wbmdcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvQmluZD5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8RGVsZXRlQWxpYXNCdXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWNvbj17PERlbGV0ZUljb24gLz59XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uQ2xpY2s9e2FjdGlvbnMucmVtb3ZlKGluZGV4KX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9GaWVsZHNldD5cbiAgICAgICAgICAgICAgICAgICAgKSl9XG4gICAgICAgICAgICAgICAgICAgIHtlbXB0eSgoKSA9PiAoXG4gICAgICAgICAgICAgICAgICAgICAgICA8RnJhZ21lbnQ+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPEhlYWRlcj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPFR5cG9ncmFwaHkgdXNlPXtcIm92ZXJsaW5lXCJ9PkZpbGUgQWxpYXNlczwvVHlwb2dyYXBoeT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPEJ1dHRvbkRlZmF1bHQgb25DbGljaz17YWRkQWxpYXN9PisgQWRkIEFsaWFzPC9CdXR0b25EZWZhdWx0PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvSGVhZGVyPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxUeXBvZ3JhcGh5IHVzZT17XCJjYXB0aW9uXCJ9PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8RmlsZUFsaWFzTWVzc2FnZT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFRvIG1ha2UgeW91ciBmaWxlIGFjY2Vzc2libGUgdmlhIGN1c3RvbSBwYXRocywgYWRkIG9uZSBvciBtb3JlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhbGlhc2VzLlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L0ZpbGVBbGlhc01lc3NhZ2U+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9UeXBvZ3JhcGh5PlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9GcmFnbWVudD5cbiAgICAgICAgICAgICAgICAgICAgKSl9XG4gICAgICAgICAgICAgICAgICAgIHtoZWFkZXIoKCkgPT4gKFxuICAgICAgICAgICAgICAgICAgICAgICAgPEhlYWRlcj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8VHlwb2dyYXBoeSB1c2U9e1wib3ZlcmxpbmVcIn0+RmlsZSBBbGlhc2VzPC9UeXBvZ3JhcGh5PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxCdXR0b25EZWZhdWx0IG9uQ2xpY2s9e2FkZEFsaWFzfT4rIEFkZCBBbGlhczwvQnV0dG9uRGVmYXVsdD5cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvSGVhZGVyPlxuICAgICAgICAgICAgICAgICAgICApKX1cbiAgICAgICAgICAgICAgICA8Lz5cbiAgICAgICAgICAgICl9XG4gICAgICAgIDwvRHluYW1pY0ZpZWxkc2V0PlxuICAgICk7XG59O1xuIl19 */",
74
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
75
- });
76
- var PATHNAME_REGEX = /^\/[/.a-zA-Z0-9-_]+$/;
77
- var Aliases = exports.Aliases = function Aliases() {
78
- var _useBind = (0, _form.useBind)({
79
- name: "aliases"
80
- }),
81
- value = _useBind.value,
82
- onChange = _useBind.onChange;
83
- var addAlias = function addAlias() {
84
- var newValue = Array.isArray(value) ? (0, _toConsumableArray2.default)(value) : [];
85
- newValue.push("");
86
- if (!onChange) {
87
- return;
88
- }
89
- onChange(newValue);
90
- };
91
- var aliasValidator = (0, _react.useMemo)(function () {
92
- return [_validation.validation.create("required"), function (value) {
1
+ import React, { useMemo } from "react";
2
+ import { ReactComponent as AddIcon } from "@webiny/icons/add.svg";
3
+ import { ReactComponent as DeleteIcon } from "@webiny/icons/delete.svg";
4
+ import { validation } from "@webiny/validation";
5
+ import { Bind, useBind } from "@webiny/form";
6
+ import { Button, DynamicFieldset, Heading, IconButton, Input, Text } from "@webiny/admin-ui";
7
+ const PATHNAME_REGEX = /^\/[/.a-zA-Z0-9-_]+$/;
8
+ const Header = () => {
9
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Heading, {
10
+ level: 6,
11
+ className: "wby-text-neutral-primary"
12
+ }, "File Aliases"), /*#__PURE__*/React.createElement(Text, {
13
+ size: "sm",
14
+ as: "div",
15
+ className: "wby-mt-xs"
16
+ }, "To make your file accessible via custom paths, add one or more aliases."));
17
+ };
18
+ const Footer = ({
19
+ addAlias
20
+ }) => {
21
+ return /*#__PURE__*/React.createElement("div", {
22
+ className: "wby-mt-md"
23
+ }, /*#__PURE__*/React.createElement(Button, {
24
+ onClick: addAlias,
25
+ text: "Add Alias",
26
+ variant: "secondary",
27
+ size: "sm",
28
+ icon: /*#__PURE__*/React.createElement(AddIcon, null)
29
+ }));
30
+ };
31
+ export const Aliases = () => {
32
+ const {
33
+ value,
34
+ onChange
35
+ } = useBind({
36
+ name: "aliases"
37
+ });
38
+ const aliasValidator = useMemo(() => {
39
+ return [validation.create("required"), value => {
93
40
  if (!PATHNAME_REGEX.test(value)) {
94
41
  throw new Error("Value must be a valid pathname.");
95
42
  }
96
43
  }];
97
44
  }, []);
98
- return /*#__PURE__*/_react.default.createElement(_DynamicFieldset.DynamicFieldset, {
45
+ return /*#__PURE__*/React.createElement("div", {
46
+ className: "wby-my-lg"
47
+ }, /*#__PURE__*/React.createElement(DynamicFieldset, {
99
48
  value: value || [""],
100
- onChange: onChange
101
- }, function (_ref) {
102
- var actions = _ref.actions,
103
- header = _ref.header,
104
- row = _ref.row,
105
- empty = _ref.empty;
106
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, row(function (_ref2) {
107
- var index = _ref2.index;
108
- return /*#__PURE__*/_react.default.createElement(Fieldset, null, /*#__PURE__*/_react.default.createElement(_form.Bind, {
109
- validators: aliasValidator,
110
- name: "aliases.".concat(index)
111
- }, /*#__PURE__*/_react.default.createElement(_Input.Input, {
112
- placeholder: "Alias",
113
- description: "Enter a file path, e.g., /my/custom/file/path.png"
114
- })), /*#__PURE__*/_react.default.createElement(DeleteAliasButton, {
115
- icon: /*#__PURE__*/_react.default.createElement(_delete.ReactComponent, null),
116
- onClick: actions.remove(index)
117
- }));
118
- }), empty(function () {
119
- return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(Header, null, /*#__PURE__*/_react.default.createElement(_Typography.Typography, {
120
- use: "overline"
121
- }, "File Aliases"), /*#__PURE__*/_react.default.createElement(_Button.ButtonDefault, {
122
- onClick: addAlias
123
- }, "+ Add Alias")), /*#__PURE__*/_react.default.createElement(_Typography.Typography, {
124
- use: "caption"
125
- }, /*#__PURE__*/_react.default.createElement(FileAliasMessage, null, "To make your file accessible via custom paths, add one or more aliases.")));
126
- }), header(function () {
127
- return /*#__PURE__*/_react.default.createElement(Header, null, /*#__PURE__*/_react.default.createElement(_Typography.Typography, {
128
- use: "overline"
129
- }, "File Aliases"), /*#__PURE__*/_react.default.createElement(_Button.ButtonDefault, {
130
- onClick: addAlias
131
- }, "+ Add Alias"));
132
- }));
133
- });
49
+ onChange: onChange,
50
+ onAdd: () => ""
51
+ }, ({
52
+ actions,
53
+ header,
54
+ footer,
55
+ row,
56
+ empty
57
+ }) => /*#__PURE__*/React.createElement(React.Fragment, null, row(({
58
+ index
59
+ }) => /*#__PURE__*/React.createElement("div", {
60
+ className: "wby-mt-md"
61
+ }, /*#__PURE__*/React.createElement(Text, {
62
+ size: "sm",
63
+ as: "div",
64
+ className: "wby-mb-sm"
65
+ }, "Enter a file path, e.g., /my/custom/file/path.png"), /*#__PURE__*/React.createElement("div", {
66
+ className: "wby-flex wby-items-start wby-gap-sm"
67
+ }, /*#__PURE__*/React.createElement(Bind, {
68
+ validators: aliasValidator,
69
+ name: `aliases.${index}`
70
+ }, /*#__PURE__*/React.createElement(Input, {
71
+ placeholder: "Alias",
72
+ size: "lg"
73
+ })), /*#__PURE__*/React.createElement(IconButton, {
74
+ variant: "ghost",
75
+ size: "lg",
76
+ icon: /*#__PURE__*/React.createElement(DeleteIcon, null),
77
+ onClick: actions.remove(index)
78
+ })))), footer(() => /*#__PURE__*/React.createElement(Footer, {
79
+ addAlias: actions.add()
80
+ })), header(() => /*#__PURE__*/React.createElement(Header, null)), empty(() => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, null), /*#__PURE__*/React.createElement(Footer, {
81
+ addAlias: actions.add()
82
+ }))))));
134
83
  };
135
84
 
136
85
  //# sourceMappingURL=Aliases.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_delete","_DynamicFieldset","_Input","_Typography","_Button","_validation","_form","_EMOTION_STRINGIFIED_CSS_ERROR__","Fieldset","_base","default","process","env","NODE_ENV","target","label","name","styles","map","toString","Header","DeleteAliasButton","IconButton","FileAliasMessage","PATHNAME_REGEX","Aliases","exports","_useBind","useBind","value","onChange","addAlias","newValue","Array","isArray","_toConsumableArray2","push","aliasValidator","useMemo","validation","create","test","Error","createElement","DynamicFieldset","_ref","actions","header","row","empty","Fragment","_ref2","index","Bind","validators","concat","Input","placeholder","description","icon","ReactComponent","onClick","remove","Typography","use","ButtonDefault"],"sources":["Aliases.tsx"],"sourcesContent":["import React, { Fragment, useMemo } from \"react\";\nimport styled from \"@emotion/styled\";\nimport { ReactComponent as DeleteIcon } from \"@material-design-icons/svg/outlined/delete.svg\";\nimport { DynamicFieldset } from \"@webiny/ui/DynamicFieldset\";\nimport { Input } from \"@webiny/ui/Input\";\nimport { Typography } from \"@webiny/ui/Typography\";\nimport { ButtonDefault, IconButton } from \"@webiny/ui/Button\";\nimport { validation } from \"@webiny/validation\";\nimport { Bind, useBind } from \"@webiny/form\";\n\nconst Fieldset = styled(\"div\")({\n position: \"relative\",\n width: \"100%\",\n marginBottom: 15,\n \".webiny-ui-button\": {\n position: \"absolute\",\n display: \"block\",\n right: 10,\n top: 13\n }\n});\n\nconst Header = styled(\"div\")({\n display: \"flex\",\n justifyContent: \"space-between\"\n});\n\nconst DeleteAliasButton = styled(IconButton)`\n position: absolute;\n top: 5px;\n right: 5px;\n`;\n\nconst FileAliasMessage = styled(\"span\")`\n color: var(--mdc-theme-text-secondary-on-background);\n font-size: 12px;\n`;\n\nconst PATHNAME_REGEX = /^\\/[/.a-zA-Z0-9-_]+$/;\n\nexport const Aliases = () => {\n const { value, onChange } = useBind({ name: \"aliases\" });\n\n const addAlias = () => {\n const newValue = Array.isArray(value) ? [...value] : [];\n newValue.push(\"\");\n if (!onChange) {\n return;\n }\n onChange(newValue);\n };\n\n const aliasValidator = useMemo(() => {\n return [\n validation.create(\"required\"),\n (value: string) => {\n if (!PATHNAME_REGEX.test(value)) {\n throw new Error(\"Value must be a valid pathname.\");\n }\n }\n ];\n }, []);\n\n return (\n <DynamicFieldset value={value || [\"\"]} onChange={onChange}>\n {({ actions, header, row, empty }) => (\n <>\n {row(({ index }) => (\n <Fieldset>\n <Bind validators={aliasValidator} name={`aliases.${index}`}>\n <Input\n placeholder={\"Alias\"}\n description={\n \"Enter a file path, e.g., /my/custom/file/path.png\"\n }\n />\n </Bind>\n <DeleteAliasButton\n icon={<DeleteIcon />}\n onClick={actions.remove(index)}\n />\n </Fieldset>\n ))}\n {empty(() => (\n <Fragment>\n <Header>\n <Typography use={\"overline\"}>File Aliases</Typography>\n <ButtonDefault onClick={addAlias}>+ Add Alias</ButtonDefault>\n </Header>\n <Typography use={\"caption\"}>\n <FileAliasMessage>\n To make your file accessible via custom paths, add one or more\n aliases.\n </FileAliasMessage>\n </Typography>\n </Fragment>\n ))}\n {header(() => (\n <Header>\n <Typography use={\"overline\"}>File Aliases</Typography>\n <ButtonDefault onClick={addAlias}>+ Add Alias</ButtonDefault>\n </Header>\n ))}\n </>\n )}\n </DynamicFieldset>\n );\n};\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,KAAA,GAAAP,OAA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AAA4D,UAAU;QAACC,GAAG,EAAE;MAAU,gBACvBnE,MAAA,CAAAa,OAAA,CAAAiC,aAAA,CAACpB,gBAAgB,QAAC,yEAGA,CACV,CACN,CAAC;IAAA,CACd,CAAC,EACDwB,MAAM,CAAC;MAAA,oBACJlD,MAAA,CAAAa,OAAA,CAAAiC,aAAA,CAACvB,MAAM,qBACHvB,MAAA,CAAAa,OAAA,CAAAiC,aAAA,CAACxC,WAAA,CAAA4D,UAAU;QAACC,GAAG,EAAE;MAAW,GAAC,cAAwB,CAAC,eACtDnE,MAAA,CAAAa,OAAA,CAAAiC,aAAA,CAACvC,OAAA,CAAA6D,aAAa;QAACJ,OAAO,EAAE9B;MAAS,GAAC,aAA0B,CACxD,CAAC;IAAA,CACZ,CACH,CAAC;EAAA,CAEM,CAAC;AAE1B,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useMemo","ReactComponent","AddIcon","DeleteIcon","validation","Bind","useBind","Button","DynamicFieldset","Heading","IconButton","Input","Text","PATHNAME_REGEX","Header","createElement","Fragment","level","className","size","as","Footer","addAlias","onClick","text","variant","icon","Aliases","value","onChange","name","aliasValidator","create","test","Error","onAdd","actions","header","footer","row","empty","index","validators","placeholder","remove","add"],"sources":["Aliases.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { ReactComponent as AddIcon } from \"@webiny/icons/add.svg\";\nimport { ReactComponent as DeleteIcon } from \"@webiny/icons/delete.svg\";\nimport { validation } from \"@webiny/validation\";\nimport { Bind, useBind } from \"@webiny/form\";\nimport { Button, DynamicFieldset, Heading, IconButton, Input, Text } from \"@webiny/admin-ui\";\n\nconst PATHNAME_REGEX = /^\\/[/.a-zA-Z0-9-_]+$/;\n\nconst Header = () => {\n return (\n <>\n <Heading level={6} className={\"wby-text-neutral-primary\"}>\n {\"File Aliases\"}\n </Heading>\n <Text size={\"sm\"} as={\"div\"} className={\"wby-mt-xs\"}>\n To make your file accessible via custom paths, add one or more aliases.\n </Text>\n </>\n );\n};\n\ninterface FooterProps {\n addAlias: () => void;\n}\n\nconst Footer = ({ addAlias }: FooterProps) => {\n return (\n <div className={\"wby-mt-md\"}>\n <Button\n onClick={addAlias}\n text=\"Add Alias\"\n variant={\"secondary\"}\n size={\"sm\"}\n icon={<AddIcon />}\n />\n </div>\n );\n};\n\nexport const Aliases = () => {\n const { value, onChange } = useBind({ name: \"aliases\" });\n\n const aliasValidator = useMemo(() => {\n return [\n validation.create(\"required\"),\n (value: string) => {\n if (!PATHNAME_REGEX.test(value)) {\n throw new Error(\"Value must be a valid pathname.\");\n }\n }\n ];\n }, []);\n\n return (\n <div className={\"wby-my-lg\"}>\n <DynamicFieldset value={value || [\"\"]} onChange={onChange} onAdd={() => \"\"}>\n {({ actions, header, footer, row, empty }) => (\n <>\n {row(({ index }) => (\n <div className={\"wby-mt-md\"}>\n <Text size={\"sm\"} as={\"div\"} className={\"wby-mb-sm\"}>\n {\"Enter a file path, e.g., /my/custom/file/path.png\"}\n </Text>\n <div className={\"wby-flex wby-items-start wby-gap-sm\"}>\n <Bind validators={aliasValidator} name={`aliases.${index}`}>\n <Input placeholder={\"Alias\"} size={\"lg\"} />\n </Bind>\n <IconButton\n variant={\"ghost\"}\n size={\"lg\"}\n icon={<DeleteIcon />}\n onClick={actions.remove(index)}\n />\n </div>\n </div>\n ))}\n {footer(() => (\n <Footer addAlias={actions.add()} />\n ))}\n {header(() => (\n <Header />\n ))}\n {empty(() => (\n <>\n <Header />\n <Footer addAlias={actions.add()} />\n </>\n ))}\n </>\n )}\n </DynamicFieldset>\n </div>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,cAAc,IAAIC,OAAO,QAAQ,uBAAuB;AACjE,SAASD,cAAc,IAAIE,UAAU,QAAQ,0BAA0B;AACvE,SAASC,UAAU,QAAQ,oBAAoB;AAC/C,SAASC,IAAI,EAAEC,OAAO,QAAQ,cAAc;AAC5C,SAASC,MAAM,EAAEC,eAAe,E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AE,CAAE,CACrC,CAAC,EACDR,MAAM,CAAC,mBACJtC,KAAA,CAAAgB,aAAA,CAACD,MAAM,MAAE,CACZ,CAAC,EACD0B,KAAK,CAAC,mBACHzC,KAAA,CAAAgB,aAAA,CAAAhB,KAAA,CAAAiB,QAAA,qBACIjB,KAAA,CAAAgB,aAAA,CAACD,MAAM,MAAE,CAAC,eACVf,KAAA,CAAAgB,aAAA,CAACM,MAAM;IAACC,QAAQ,EAAEc,OAAO,CAACS,GAAG,CAAC;EAAE,CAAE,CACpC,CACL,CACH,CAEO,CAChB,CAAC;AAEd,CAAC","ignoreList":[]}
@@ -1,30 +1,28 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.Name = void 0;
8
- var _react = _interopRequireDefault(require("react"));
9
- var _Input = require("@webiny/ui/Input");
10
- var _validation = require("@webiny/validation");
11
- var _form = require("@webiny/form");
12
- var _ = require("../..");
13
- var Name = exports.Name = function Name() {
14
- var _useFile = (0, _.useFile)(),
15
- file = _useFile.file;
16
- var _useFileManagerApi = (0, _.useFileManagerApi)(),
17
- canEdit = _useFileManagerApi.canEdit;
18
- var bind = (0, _form.useBind)({
1
+ import React from "react";
2
+ import { Input, Label } from "@webiny/admin-ui";
3
+ import { validation } from "@webiny/validation";
4
+ import { useBind } from "@webiny/form";
5
+ import { useFile, useFileManagerApi } from "../..";
6
+ export const Name = () => {
7
+ const {
8
+ file
9
+ } = useFile();
10
+ const {
11
+ canEdit
12
+ } = useFileManagerApi();
13
+ const bind = useBind({
19
14
  name: "name",
20
- validators: [_validation.validation.create("required")]
15
+ validators: [validation.create("required")]
21
16
  });
22
- return /*#__PURE__*/_react.default.createElement(_Input.Input, Object.assign({}, bind, {
23
- label: "Name",
17
+ return /*#__PURE__*/React.createElement(Input, Object.assign({}, bind, {
18
+ label: /*#__PURE__*/React.createElement(Label, {
19
+ text: "Name",
20
+ hint: "Choose a descriptive name that's easy to remember.",
21
+ required: true
22
+ }),
24
23
  disabled: !canEdit(file),
25
24
  autoFocus: true,
26
- placeholder: "Enter name",
27
- description: "A descriptive name is easier to remember."
25
+ placeholder: "Enter name"
28
26
  }));
29
27
  };
30
28
 
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_Input","_validation","_form","_","Name","exports","_useFile","useFile","file","_useFileManagerApi","useFileManagerApi","canEdit","bind","useBind","name","validators","validation","create","default","createElement","Input","Object","assign","label","disabled","autoFocus","placeholder","description"],"sources":["Name.tsx"],"sourcesContent":["import React from \"react\";\nimport { Input } from \"@webiny/ui/Input\";\nimport { validation } from \"@webiny/validation\";\nimport { useBind } from \"@webiny/form\";\nimport { useFile, useFileManagerApi } from \"~/index\";\n\nexport const Name = () => {\n const { file } = useFile();\n const { canEdit } = useFileManagerApi();\n const bind = useBind({\n name: \"name\",\n validators: [validation.create(\"required\")]\n });\n\n return (\n <Input\n {...bind}\n label={\"Name\"}\n disabled={!canEdit(file)}\n autoFocus\n placeholder={\"Enter name\"}\n description={\"A descriptive name is easier to remember.\"}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,CAAA,GAAAJ,OAAA;AAEO,IAAMK,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG,SAAPA,IAAIA,CAAA,EAAS;EACtB,IAAAE,QAAA,GAAiB,IAAAC,SAAO,EAAC,CAAC;IAAlBC,IAAI,GAAAF,QAAA,CAAJE,IAAI;EACZ,IAAAC,kBAAA,GAAoB,IAAAC,mBAAiB,EAAC,CAAC;IAA/BC,OAAO,GAAAF,kBAAA,CAAPE,OAAO;EACf,IAAMC,IAAI,GAAG,IAAAC,aAAO,EAAC;IACjBC,IAAI,EAAE,MAAM;IACZC,UAAU,EAAE,CAACC,sBAAU,CAACC,MAAM,CAAC,UAAU,CAAC;EAC9C,CAAC,CAAC;EAEF,oBACIpB,MAAA,CAAAqB,OAAA,CAAAC,aAAA,CAACnB,MAAA,CAAAoB,KAAK,EAAAC,MAAA,CAAAC,MAAA,KACEV,IAAI;IACRW,KAAK,EAAE,MAAO;IACdC,QAAQ,EAAE,CAACb,OAAO,CAACH,IAAI,CAAE;IACzBiB,SAAS;IACTC,WAAW,EAAE,YAAa;IAC1BC,WAAW,EAAE;EAA4C,EAC5D,CAAC;AAEV,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","Input","Label","validation","useBind","useFile","useFileManagerApi","Name","file","canEdit","bind","name","validators","create","createElement","Object","assign","label","text","hint","required","disabled","autoFocus","placeholder"],"sources":["Name.tsx"],"sourcesContent":["import React from \"react\";\nimport { Input, Label } from \"@webiny/admin-ui\";\nimport { validation } from \"@webiny/validation\";\nimport { useBind } from \"@webiny/form\";\nimport { useFile, useFileManagerApi } from \"~/index\";\n\nexport const Name = () => {\n const { file } = useFile();\n const { canEdit } = useFileManagerApi();\n const bind = useBind({\n name: \"name\",\n validators: [validation.create(\"required\")]\n });\n\n return (\n <Input\n {...bind}\n label={\n <Label\n text={\"Name\"}\n hint={\"Choose a descriptive name that's easy to remember.\"}\n required\n />\n }\n disabled={!canEdit(file)}\n autoFocus\n placeholder={\"Enter name\"}\n />\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,KAAK,QAAQ,kBAAkB;AAC/C,SAASC,UAAU,QAAQ,oBAAoB;AAC/C,SAASC,OAAO,QAAQ,cAAc;AACtC,SAASC,OAAO,EAAEC,iBAAiB;AAEnC,OAAO,MAAMC,IAAI,GAAGA,CAAA,KAAM;EACtB,MAAM;IAAEC;EAAK,CAAC,GAAGH,OAAO,CAAC,CAAC;EAC1B,MAAM;IAAEI;EAAQ,CAAC,GAAGH,iBAAiB,CAAC,CAAC;EACvC,MAAMI,IAAI,GAAGN,OAAO,CAAC;IACjBO,IAAI,EAAE,MAAM;IACZC,UAAU,EAAE,CAACT,UAAU,CAACU,MAAM,CAAC,UAAU,CAAC;EAC9C,CAAC,CAAC;EAEF,oBACIb,KAAA,CAAAc,aAAA,CAACb,KAAK,EAAAc,MAAA,CAAAC,MAAA,KACEN,IAAI;IACRO,KAAK,eACDjB,KAAA,CAAAc,aAAA,CAACZ,KAAK;MACFgB,IAAI,EAAE,MAAO;MACbC,IAAI,EAAE,oDAAqD;MAC3DC,QAAQ;IAAA,CACX,CACJ;IACDC,QAAQ,EAAE,CAACZ,OAAO,CAACD,IAAI,CAAE;IACzBc,SAAS;IACTC,WAAW,EAAE;EAAa,EAC7B,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -1,37 +1,37 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.Tags = void 0;
8
- var _react = _interopRequireDefault(require("react"));
9
- var _AutoComplete = require("@webiny/ui/AutoComplete");
10
- var _form = require("@webiny/form");
11
- var _ = require("../..");
12
- var _useFileOrUndefined2 = require("./useFileOrUndefined");
13
- var Tags = exports.Tags = function Tags() {
14
- var _useFileOrUndefined = (0, _useFileOrUndefined2.useFileOrUndefined)(),
15
- file = _useFileOrUndefined.file;
16
- var _useFileManagerApi = (0, _.useFileManagerApi)(),
17
- canEdit = _useFileManagerApi.canEdit;
18
- var _useFileManagerView = (0, _.useFileManagerView)(),
19
- tags = _useFileManagerView.tags;
20
- var bind = (0, _form.useBind)({
1
+ import React, { useMemo } from "react";
2
+ import { Label, MultiAutoComplete } from "@webiny/admin-ui";
3
+ import { useBind } from "@webiny/form";
4
+ import { useFileManagerApi, useFileManagerView } from "../..";
5
+ import { THREAT_SCAN } from "../../modules/Enterprise/constants";
6
+ import { useFileOrUndefined } from "./useFileOrUndefined";
7
+ export const Tags = () => {
8
+ const {
9
+ file
10
+ } = useFileOrUndefined();
11
+ const {
12
+ canEdit
13
+ } = useFileManagerApi();
14
+ const {
15
+ tags
16
+ } = useFileManagerView();
17
+ const bind = useBind({
21
18
  name: "tags"
22
19
  });
23
- return /*#__PURE__*/_react.default.createElement(_AutoComplete.MultiAutoComplete, Object.assign({}, bind, {
24
- value: (bind.value || []).filter(function (tag) {
25
- return !tag.startsWith("mime:");
26
- }),
27
- options: tags.allTags.map(function (tagItem) {
28
- return tagItem.tag;
20
+ const values = useMemo(() => {
21
+ return (bind.value || []).filter(tag => {
22
+ return !tag.startsWith("mime:") || tag !== THREAT_SCAN.IN_PROGRESS;
23
+ });
24
+ }, [bind.value]);
25
+ return /*#__PURE__*/React.createElement(MultiAutoComplete, Object.assign({}, bind, {
26
+ values: values,
27
+ onValuesChange: bind.onChange,
28
+ options: tags.allTags.map(tagItem => tagItem.tag),
29
+ label: /*#__PURE__*/React.createElement(Label, {
30
+ text: "Tags",
31
+ hint: "Type to add a new tag or select from suggestions."
29
32
  }),
30
- label: "Tags",
31
- description: "Type in a new tag or select an existing one.",
32
- unique: true,
33
+ uniqueValues: true,
33
34
  allowFreeInput: true,
34
- useSimpleValues: true,
35
35
  disabled: file ? !canEdit(file) : false
36
36
  }));
37
37
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_AutoComplete","_form","_","_useFileOrUndefined2","Tags","exports","_useFileOrUndefined","useFileOrUndefined","file","_useFileManagerApi","useFileManagerApi","canEdit","_useFileManagerView","useFileManagerView","tags","bind","useBind","name","default","createElement","MultiAutoComplete","Object","assign","value","filter","tag","startsWith","options","allTags","map","tagItem","label","description","unique","allowFreeInput","useSimpleValues","disabled"],"sources":["Tags.tsx"],"sourcesContent":["import React from \"react\";\nimport { MultiAutoComplete } from \"@webiny/ui/AutoComplete\";\nimport { useBind } from \"@webiny/form\";\nimport { useFileManagerApi, useFileManagerView } from \"~/index\";\nimport { useFileOrUndefined } from \"./useFileOrUndefined\";\n\nexport const Tags = () => {\n const { file } = useFileOrUndefined();\n const { canEdit } = useFileManagerApi();\n const { tags } = useFileManagerView();\n\n const bind = useBind({\n name: \"tags\"\n });\n\n return (\n <MultiAutoComplete\n {...bind}\n value={(bind.value || []).filter((tag: string) => !tag.startsWith(\"mime:\"))}\n options={tags.allTags.map(tagItem => tagItem.tag)}\n label={\"Tags\"}\n description={\"Type in a new tag or select an existing one.\"}\n unique={true}\n allowFreeInput={true}\n useSimpleValues={true}\n disabled={file ? !canEdit(file) : false}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,CAAA,GAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAJ,OAAA;AAEO,IAAMK,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG,SAAPA,IAAIA,CAAA,EAAS;EACtB,IAAAE,mBAAA,GAAiB,IAAAC,uCAAkB,EAAC,CAAC;IAA7BC,IAAI,GAAAF,mBAAA,CAAJE,IAAI;EACZ,IAAAC,kBAAA,GAAoB,IAAAC,mBAAiB,EAAC,CAAC;IAA/BC,OAAO,GAAAF,kBAAA,CAAPE,OAAO;EACf,IAAAC,mBAAA,GAAiB,IAAAC,oBAAkB,EAAC,CAAC;IAA7BC,IAAI,GAAAF,mBAAA,CAAJE,IAAI;EAEZ,IAAMC,IAAI,GAAG,IAAAC,aAAO,EAAC;IACjBC,IAAI,EAAE;EACV,CAAC,CAAC;EAEF,oBACIpB,MAAA,CAAAqB,OAAA,CAAAC,aAAA,CAACnB,aAAA,CAAAoB,iBAAiB,EAAAC,MAAA,CAAAC,MAAA,KACVP,IAAI;IACRQ,KAAK,EAAE,CAACR,IAAI,CAACQ,KAAK,IAAI,EAAE,EAAEC,MAAM,CAAC,UAACC,GAAW;MAAA,OAAK,CAACA,GAAG,CAACC,UAAU,CAAC,OAAO,CAAC;IAAA,EAAE;IAC5EC,OAAO,EAAEb,IAAI,CAACc,OAAO,CAACC,GAAG,CAAC,UAAAC,OAAO;MAAA,OAAIA,OAAO,CAACL,GAAG;IAAA,EAAE;IAClDM,KAAK,EAAE,MAAO;IACdC,WAAW,EAAE,8CAA+C;IAC5DC,MAAM,EAAE,IAAK;IACbC,cAAc,EAAE,IAAK;IACrBC,eAAe,EAAE,IAAK;IACtBC,QAAQ,EAAE5B,IAAI,GAAG,CAACG,OAAO,CAACH,IAAI,CAAC,GAAG;EAAM,EAC3C,CAAC;AAEV,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useMemo","Label","MultiAutoComplete","useBind","useFileManagerApi","useFileManagerView","THREAT_SCAN","useFileOrUndefined","Tags","file","canEdit","tags","bind","name","values","value","filter","tag","startsWith","IN_PROGRESS","createElement","Object","assign","onValuesChange","onChange","options","allTags","map","tagItem","label","text","hint","uniqueValues","allowFreeInput","disabled"],"sources":["Tags.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { Label, MultiAutoComplete } from \"@webiny/admin-ui\";\nimport { useBind } from \"@webiny/form\";\nimport { useFileManagerApi, useFileManagerView } from \"~/index\";\nimport { THREAT_SCAN } from \"~/modules/Enterprise/constants\";\nimport { useFileOrUndefined } from \"./useFileOrUndefined\";\n\nexport const Tags = () => {\n const { file } = useFileOrUndefined();\n const { canEdit } = useFileManagerApi();\n const { tags } = useFileManagerView();\n\n const bind = useBind({\n name: \"tags\"\n });\n\n const values = useMemo(() => {\n return (bind.value || []).filter((tag: string) => {\n return !tag.startsWith(\"mime:\") || tag !== THREAT_SCAN.IN_PROGRESS;\n });\n }, [bind.value]);\n\n return (\n <MultiAutoComplete\n {...bind}\n values={values}\n onValuesChange={bind.onChange}\n options={tags.allTags.map(tagItem => tagItem.tag)}\n label={\n <Label text={\"Tags\"} hint={\"Type to add a new tag or select from suggestions.\"} />\n }\n uniqueValues={true}\n allowFreeInput={true}\n disabled={file ? !canEd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IAAK;IACrBC,QAAQ,EAAEzB,IAAI,GAAG,CAACC,OAAO,CAACD,IAAI,CAAC,GAAG;EAAM,EAC3C,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -1,51 +1,6 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _AccessControl = require("./AccessControl");
7
- Object.keys(_AccessControl).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _AccessControl[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function get() {
13
- return _AccessControl[key];
14
- }
15
- });
16
- });
17
- var _Aliases = require("./Aliases");
18
- Object.keys(_Aliases).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _Aliases[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function get() {
24
- return _Aliases[key];
25
- }
26
- });
27
- });
28
- var _Name = require("./Name");
29
- Object.keys(_Name).forEach(function (key) {
30
- if (key === "default" || key === "__esModule") return;
31
- if (key in exports && exports[key] === _Name[key]) return;
32
- Object.defineProperty(exports, key, {
33
- enumerable: true,
34
- get: function get() {
35
- return _Name[key];
36
- }
37
- });
38
- });
39
- var _Tags = require("./Tags");
40
- Object.keys(_Tags).forEach(function (key) {
41
- if (key === "default" || key === "__esModule") return;
42
- if (key in exports && exports[key] === _Tags[key]) return;
43
- Object.defineProperty(exports, key, {
44
- enumerable: true,
45
- get: function get() {
46
- return _Tags[key];
47
- }
48
- });
49
- });
1
+ export * from "./AccessControl";
2
+ export * from "./Aliases";
3
+ export * from "./Name";
4
+ export * from "./Tags";
50
5
 
51
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_AccessControl","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_Aliases","_Name","_Tags"],"sources":["index.ts"],"sourcesContent":["export * from \"./AccessControl\";\nexport * from \"./Aliases\";\nexport * from \"./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AA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,KAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAG,KAAA,CAAAP,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./AccessControl\";\nexport * from \"./Aliases\";\nexport * from \"./Name\";\nexport * from \"./Tags\";\n"],"mappings":"AAAA;AACA;AACA;AACA","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Select } from "@webiny/ui/Select";
2
+ import type { Select } from "@webiny/admin-ui";
3
3
  interface AccessControlField {
4
4
  options: React.ComponentProps<typeof Select>["options"];
5
5
  }
@@ -1,29 +1,17 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.useAccessControlField = void 0;
7
- var _react = require("react");
8
- var _ = require("../..");
9
- var useAccessControlField = exports.useAccessControlField = function useAccessControlField() {
10
- var model = (0, _.useFileModel)();
11
- var accessControlField = (0, _react.useMemo)(function () {
12
- return model.fields.find(function (field) {
13
- return field.fieldId === "accessControl";
14
- });
15
- }, []);
1
+ import { useMemo } from "react";
2
+ import { useFileModel } from "../..";
3
+ export const useAccessControlField = () => {
4
+ const model = useFileModel();
5
+ const accessControlField = useMemo(() => model.fields.find(field => field.fieldId === "accessControl"), []);
16
6
  if (!accessControlField || !accessControlField.settings) {
17
7
  return null;
18
8
  }
19
- var typeField = accessControlField.settings.fields?.find(function (field) {
20
- return field.fieldId === "type";
21
- });
9
+ const typeField = accessControlField.settings.fields?.find(field => field.fieldId === "type");
22
10
  if (!typeField) {
23
11
  return null;
24
12
  }
25
- var options = (0, _react.useMemo)(function () {
26
- return (typeField.predefinedValues?.values || []).map(function (pv) {
13
+ const options = useMemo(() => {
14
+ return (typeField.predefinedValues?.values || []).map(pv => {
27
15
  return {
28
16
  value: pv.value,
29
17
  label: pv.label
@@ -31,7 +19,7 @@ var useAccessControlField = exports.useAccessControlField = function useAccessCo
31
19
  });
32
20
  }, []);
33
21
  return {
34
- options: options
22
+ options
35
23
  };
36
24
  };
37
25