@blaze-cms/plugin-media-ui 0.146.0-node18.1 → 0.146.0-rc-eagle.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (334) hide show
  1. package/CHANGELOG.md +10 -16
  2. package/lib/components/CardMedia/CardMedia.js +168 -221
  3. package/lib/components/CardMedia/CardMedia.js.map +1 -1
  4. package/lib/components/CardMedia/index.js +2 -3
  5. package/lib/components/CardMedia/index.js.map +1 -1
  6. package/lib/components/EditMediaFile/EditMediaFile.js +162 -113
  7. package/lib/components/EditMediaFile/EditMediaFile.js.map +1 -1
  8. package/lib/components/EditMediaFile/EditMediaFilePage.js +81 -97
  9. package/lib/components/EditMediaFile/EditMediaFilePage.js.map +1 -1
  10. package/lib/components/EditMediaFile/index.js +2 -3
  11. package/lib/components/EditMediaFile/index.js.map +1 -1
  12. package/lib/components/EditorAdapter/EditorAdapter.js +43 -22
  13. package/lib/components/EditorAdapter/EditorAdapter.js.map +1 -1
  14. package/lib/components/EditorAdapter/index.js +2 -3
  15. package/lib/components/EditorAdapter/index.js.map +1 -1
  16. package/lib/components/FileList/FilesListContext/index.js +3 -4
  17. package/lib/components/FileList/FilesListContext/index.js.map +1 -1
  18. package/lib/components/FileList/FilesListProvider/index.js +27 -29
  19. package/lib/components/FileList/FilesListProvider/index.js.map +1 -1
  20. package/lib/components/FileList/useFileList/index.js +3 -6
  21. package/lib/components/FileList/useFileList/index.js.map +1 -1
  22. package/lib/components/FileList/useGetFiles/getFiles.js +164 -185
  23. package/lib/components/FileList/useGetFiles/getFiles.js.map +1 -1
  24. package/lib/components/FileList/useGetFiles/index.js +2 -3
  25. package/lib/components/FileList/useGetFiles/index.js.map +1 -1
  26. package/lib/components/FileList/useGetFiles/useGetFiles.js +88 -133
  27. package/lib/components/FileList/useGetFiles/useGetFiles.js.map +1 -1
  28. package/lib/components/FileList/useGetFilesList/getCounters.js +10 -30
  29. package/lib/components/FileList/useGetFilesList/getCounters.js.map +1 -1
  30. package/lib/components/FileList/useGetFilesList/index.js +2 -3
  31. package/lib/components/FileList/useGetFilesList/index.js.map +1 -1
  32. package/lib/components/FileList/useGetFilesList/useGetFilesList.js +89 -110
  33. package/lib/components/FileList/useGetFilesList/useGetFilesList.js.map +1 -1
  34. package/lib/components/FilePreview/Actions/index.js +24 -38
  35. package/lib/components/FilePreview/Actions/index.js.map +1 -1
  36. package/lib/components/FilePreview/Image/Image.js +35 -24
  37. package/lib/components/FilePreview/Image/Image.js.map +1 -1
  38. package/lib/components/FilePreview/Image/RawImage.js +25 -27
  39. package/lib/components/FilePreview/Image/RawImage.js.map +1 -1
  40. package/lib/components/FilePreview/Image/imageSchema.js +2 -3
  41. package/lib/components/FilePreview/Image/imageSchema.js.map +1 -1
  42. package/lib/components/FilePreview/Image/index.js +1 -2
  43. package/lib/components/FilePreview/Image/index.js.map +1 -1
  44. package/lib/components/FilePreview/ModalContext.js +9 -0
  45. package/lib/components/FilePreview/ModalContext.js.map +1 -0
  46. package/lib/components/FilePreview/PDF/PDF.js +44 -31
  47. package/lib/components/FilePreview/PDF/PDF.js.map +1 -1
  48. package/lib/components/FilePreview/PDF/RawPDF.js +27 -29
  49. package/lib/components/FilePreview/PDF/RawPDF.js.map +1 -1
  50. package/lib/components/FilePreview/PDF/index.js +1 -2
  51. package/lib/components/FilePreview/PDF/index.js.map +1 -1
  52. package/lib/components/FilePreview/PDF/schema.js +1 -2
  53. package/lib/components/FilePreview/PDF/schema.js.map +1 -1
  54. package/lib/components/FilePreview/get-preview.js +12 -10
  55. package/lib/components/FilePreview/get-preview.js.map +1 -1
  56. package/lib/components/FilePreview/index.js +66 -57
  57. package/lib/components/FilePreview/index.js.map +1 -1
  58. package/lib/components/FilePreview/previewDefault/PreviewDefault.js +35 -23
  59. package/lib/components/FilePreview/previewDefault/PreviewDefault.js.map +1 -1
  60. package/lib/components/FilePreview/previewDefault/RawPreviewDefault.js +33 -27
  61. package/lib/components/FilePreview/previewDefault/RawPreviewDefault.js.map +1 -1
  62. package/lib/components/FilePreview/previewDefault/icons/DefaultIcon.js +120 -123
  63. package/lib/components/FilePreview/previewDefault/icons/DefaultIcon.js.map +1 -1
  64. package/lib/components/FilePreview/previewDefault/icons/index.js +2 -3
  65. package/lib/components/FilePreview/previewDefault/icons/index.js.map +1 -1
  66. package/lib/components/FilePreview/previewDefault/index.js +1 -2
  67. package/lib/components/FilePreview/previewDefault/index.js.map +1 -1
  68. package/lib/components/FilePreview/previewDefault/previewDefaultSchema.js +1 -2
  69. package/lib/components/FilePreview/previewDefault/previewDefaultSchema.js.map +1 -1
  70. package/lib/components/FilePreviewReadOnly/FileList.js +10 -12
  71. package/lib/components/FilePreviewReadOnly/FileList.js.map +1 -1
  72. package/lib/components/FilePreviewReadOnly/FilePreviewList.js +14 -20
  73. package/lib/components/FilePreviewReadOnly/FilePreviewList.js.map +1 -1
  74. package/lib/components/FilePreviewReadOnly/FilePreviewReadOnly.js +52 -98
  75. package/lib/components/FilePreviewReadOnly/FilePreviewReadOnly.js.map +1 -1
  76. package/lib/components/FilePreviewReadOnly/index.js +2 -3
  77. package/lib/components/FilePreviewReadOnly/index.js.map +1 -1
  78. package/lib/components/FilePreviewReadOnly/mappers/format-initial-value.js +7 -8
  79. package/lib/components/FilePreviewReadOnly/mappers/format-initial-value.js.map +1 -1
  80. package/lib/components/FilePreviewReadOnly/mappers/index.js +1 -2
  81. package/lib/components/FilePreviewReadOnly/mappers/index.js.map +1 -1
  82. package/lib/components/FileUploadAdapter/FileList.js +26 -39
  83. package/lib/components/FileUploadAdapter/FileList.js.map +1 -1
  84. package/lib/components/FileUploadAdapter/FilePreviewList.js +14 -20
  85. package/lib/components/FileUploadAdapter/FilePreviewList.js.map +1 -1
  86. package/lib/components/FileUploadAdapter/FileReorderList.js +18 -21
  87. package/lib/components/FileUploadAdapter/FileReorderList.js.map +1 -1
  88. package/lib/components/FileUploadAdapter/FileReorderListItem.js +20 -23
  89. package/lib/components/FileUploadAdapter/FileReorderListItem.js.map +1 -1
  90. package/lib/components/FileUploadAdapter/FileUploadAdapter.js +238 -338
  91. package/lib/components/FileUploadAdapter/FileUploadAdapter.js.map +1 -1
  92. package/lib/components/FileUploadAdapter/index.js +2 -3
  93. package/lib/components/FileUploadAdapter/index.js.map +1 -1
  94. package/lib/components/FileUploadAdapter/mappers/format-initial-value.js +7 -8
  95. package/lib/components/FileUploadAdapter/mappers/format-initial-value.js.map +1 -1
  96. package/lib/components/FileUploadAdapter/mappers/get-button-text.js +9 -6
  97. package/lib/components/FileUploadAdapter/mappers/get-button-text.js.map +1 -1
  98. package/lib/components/FileUploadAdapter/mappers/get-format.js +7 -13
  99. package/lib/components/FileUploadAdapter/mappers/get-format.js.map +1 -1
  100. package/lib/components/FileUploadAdapter/mappers/get-number-files-pending-to-fetch.js +6 -5
  101. package/lib/components/FileUploadAdapter/mappers/get-number-files-pending-to-fetch.js.map +1 -1
  102. package/lib/components/FileUploadAdapter/mappers/index.js +6 -7
  103. package/lib/components/FileUploadAdapter/mappers/index.js.map +1 -1
  104. package/lib/components/FileUploadAdapter/mappers/is-unselecting.js +2 -10
  105. package/lib/components/FileUploadAdapter/mappers/is-unselecting.js.map +1 -1
  106. package/lib/components/FileUploadAdapter/mappers/transform-to-array.js +2 -5
  107. package/lib/components/FileUploadAdapter/mappers/transform-to-array.js.map +1 -1
  108. package/lib/components/FileUploadAdapter/useLimit.js +4 -10
  109. package/lib/components/FileUploadAdapter/useLimit.js.map +1 -1
  110. package/lib/components/FileUploadModal/FileUploadModal.js +150 -145
  111. package/lib/components/FileUploadModal/FileUploadModal.js.map +1 -1
  112. package/lib/components/FileUploadModal/index.js +2 -3
  113. package/lib/components/FileUploadModal/index.js.map +1 -1
  114. package/lib/components/FilterPanel/FilterPanel.js +68 -88
  115. package/lib/components/FilterPanel/FilterPanel.js.map +1 -1
  116. package/lib/components/FilterPanel/index.js +2 -3
  117. package/lib/components/FilterPanel/index.js.map +1 -1
  118. package/lib/components/ListingContainer/Listing/Listing.js +58 -48
  119. package/lib/components/ListingContainer/Listing/Listing.js.map +1 -1
  120. package/lib/components/ListingContainer/Listing/MediaListing/MediaFileList/MediaFileList.js +75 -92
  121. package/lib/components/ListingContainer/Listing/MediaListing/MediaFileList/MediaFileList.js.map +1 -1
  122. package/lib/components/ListingContainer/Listing/MediaListing/MediaFileList/index.js +2 -3
  123. package/lib/components/ListingContainer/Listing/MediaListing/MediaFileList/index.js.map +1 -1
  124. package/lib/components/ListingContainer/Listing/MediaListing/MediaListing.js +22 -26
  125. package/lib/components/ListingContainer/Listing/MediaListing/MediaListing.js.map +1 -1
  126. package/lib/components/ListingContainer/Listing/MediaListing/index.js +2 -3
  127. package/lib/components/ListingContainer/Listing/MediaListing/index.js.map +1 -1
  128. package/lib/components/ListingContainer/Listing/index.js +2 -3
  129. package/lib/components/ListingContainer/Listing/index.js.map +1 -1
  130. package/lib/components/ListingContainer/ListingContainer.js +69 -92
  131. package/lib/components/ListingContainer/ListingContainer.js.map +1 -1
  132. package/lib/components/ListingContainer/index.js +2 -3
  133. package/lib/components/ListingContainer/index.js.map +1 -1
  134. package/lib/components/ListingContainer/mappers/exist-previous.js +3 -10
  135. package/lib/components/ListingContainer/mappers/exist-previous.js.map +1 -1
  136. package/lib/components/ListingContainer/mappers/index.js +2 -3
  137. package/lib/components/ListingContainer/mappers/index.js.map +1 -1
  138. package/lib/components/MediaListing.js +14 -26
  139. package/lib/components/MediaListing.js.map +1 -1
  140. package/lib/constants.js +15 -16
  141. package/lib/constants.js.map +1 -1
  142. package/lib/icons/MediaLibraryIcon.js +17 -20
  143. package/lib/icons/MediaLibraryIcon.js.map +1 -1
  144. package/lib/icons/index.js +2 -3
  145. package/lib/icons/index.js.map +1 -1
  146. package/lib/index.js +67 -92
  147. package/lib/index.js.map +1 -1
  148. package/lib/utils/available-filters/available-filters.js +1 -2
  149. package/lib/utils/available-filters/available-filters.js.map +1 -1
  150. package/lib/utils/bustUrl.js +13 -0
  151. package/lib/utils/bustUrl.js.map +1 -0
  152. package/lib/utils/media-context/index.js +4 -5
  153. package/lib/utils/media-context/index.js.map +1 -1
  154. package/lib/utils/media-context/media-context.js +3 -4
  155. package/lib/utils/media-context/media-context.js.map +1 -1
  156. package/lib/utils/media-context/useMediaContext.js +2 -4
  157. package/lib/utils/media-context/useMediaContext.js.map +1 -1
  158. package/package.json +14 -14
  159. package/src/components/CardMedia/CardMedia.js +27 -8
  160. package/src/components/EditMediaFile/EditMediaFile.js +115 -37
  161. package/src/components/EditMediaFile/EditMediaFilePage.js +35 -9
  162. package/src/components/EditorAdapter/EditorAdapter.js +31 -4
  163. package/src/components/FilePreview/Actions/index.js +25 -27
  164. package/src/components/FilePreview/Image/Image.js +15 -2
  165. package/src/components/FilePreview/Image/imageSchema.js +1 -1
  166. package/src/components/FilePreview/ModalContext.js +3 -0
  167. package/src/components/FilePreview/PDF/PDF.js +17 -4
  168. package/src/components/FilePreview/index.js +35 -6
  169. package/src/components/FilePreview/previewDefault/PreviewDefault.js +16 -3
  170. package/src/components/FilePreview/previewDefault/RawPreviewDefault.js +17 -7
  171. package/src/components/FilePreviewReadOnly/FileList.js +1 -3
  172. package/src/components/FilePreviewReadOnly/FilePreviewReadOnly.js +17 -29
  173. package/src/components/FileUploadAdapter/FileUploadAdapter.js +42 -18
  174. package/src/components/FileUploadAdapter/mappers/get-button-text.js +4 -3
  175. package/src/components/FileUploadAdapter/mappers/get-number-files-pending-to-fetch.js +6 -4
  176. package/src/components/FileUploadModal/FileUploadModal.js +88 -42
  177. package/src/components/ListingContainer/Listing/Listing.js +15 -5
  178. package/src/components/ListingContainer/Listing/MediaListing/MediaFileList/MediaFileList.js +11 -5
  179. package/src/components/ListingContainer/Listing/MediaListing/MediaListing.js +10 -2
  180. package/src/components/ListingContainer/ListingContainer.js +13 -4
  181. package/src/index.js +17 -14
  182. package/src/utils/bustUrl.js +6 -0
  183. package/lib-es/components/CardMedia/CardMedia.js +0 -219
  184. package/lib-es/components/CardMedia/CardMedia.js.map +0 -1
  185. package/lib-es/components/CardMedia/index.js +0 -3
  186. package/lib-es/components/CardMedia/index.js.map +0 -1
  187. package/lib-es/components/EditMediaFile/EditMediaFile.js +0 -115
  188. package/lib-es/components/EditMediaFile/EditMediaFile.js.map +0 -1
  189. package/lib-es/components/EditMediaFile/EditMediaFilePage.js +0 -86
  190. package/lib-es/components/EditMediaFile/EditMediaFilePage.js.map +0 -1
  191. package/lib-es/components/EditMediaFile/index.js +0 -3
  192. package/lib-es/components/EditMediaFile/index.js.map +0 -1
  193. package/lib-es/components/EditorAdapter/EditorAdapter.js +0 -39
  194. package/lib-es/components/EditorAdapter/EditorAdapter.js.map +0 -1
  195. package/lib-es/components/EditorAdapter/index.js +0 -3
  196. package/lib-es/components/EditorAdapter/index.js.map +0 -1
  197. package/lib-es/components/FileList/FilesListContext/index.js +0 -4
  198. package/lib-es/components/FileList/FilesListContext/index.js.map +0 -1
  199. package/lib-es/components/FileList/FilesListProvider/index.js +0 -36
  200. package/lib-es/components/FileList/FilesListProvider/index.js.map +0 -1
  201. package/lib-es/components/FileList/useFileList/index.js +0 -5
  202. package/lib-es/components/FileList/useFileList/index.js.map +0 -1
  203. package/lib-es/components/FileList/useGetFiles/getFiles.js +0 -179
  204. package/lib-es/components/FileList/useGetFiles/getFiles.js.map +0 -1
  205. package/lib-es/components/FileList/useGetFiles/index.js +0 -3
  206. package/lib-es/components/FileList/useGetFiles/index.js.map +0 -1
  207. package/lib-es/components/FileList/useGetFiles/useGetFiles.js +0 -114
  208. package/lib-es/components/FileList/useGetFiles/useGetFiles.js.map +0 -1
  209. package/lib-es/components/FileList/useGetFilesList/getCounters.js +0 -11
  210. package/lib-es/components/FileList/useGetFilesList/getCounters.js.map +0 -1
  211. package/lib-es/components/FileList/useGetFilesList/index.js +0 -3
  212. package/lib-es/components/FileList/useGetFilesList/index.js.map +0 -1
  213. package/lib-es/components/FileList/useGetFilesList/useGetFilesList.js +0 -172
  214. package/lib-es/components/FileList/useGetFilesList/useGetFilesList.js.map +0 -1
  215. package/lib-es/components/FilePreview/Actions/index.js +0 -38
  216. package/lib-es/components/FilePreview/Actions/index.js.map +0 -1
  217. package/lib-es/components/FilePreview/Image/Image.js +0 -27
  218. package/lib-es/components/FilePreview/Image/Image.js.map +0 -1
  219. package/lib-es/components/FilePreview/Image/RawImage.js +0 -31
  220. package/lib-es/components/FilePreview/Image/RawImage.js.map +0 -1
  221. package/lib-es/components/FilePreview/Image/imageSchema.js +0 -53
  222. package/lib-es/components/FilePreview/Image/imageSchema.js.map +0 -1
  223. package/lib-es/components/FilePreview/Image/index.js +0 -12
  224. package/lib-es/components/FilePreview/Image/index.js.map +0 -1
  225. package/lib-es/components/FilePreview/PDF/PDF.js +0 -34
  226. package/lib-es/components/FilePreview/PDF/PDF.js.map +0 -1
  227. package/lib-es/components/FilePreview/PDF/RawPDF.js +0 -33
  228. package/lib-es/components/FilePreview/PDF/RawPDF.js.map +0 -1
  229. package/lib-es/components/FilePreview/PDF/index.js +0 -12
  230. package/lib-es/components/FilePreview/PDF/index.js.map +0 -1
  231. package/lib-es/components/FilePreview/PDF/schema.js +0 -21
  232. package/lib-es/components/FilePreview/PDF/schema.js.map +0 -1
  233. package/lib-es/components/FilePreview/get-preview.js +0 -28
  234. package/lib-es/components/FilePreview/get-preview.js.map +0 -1
  235. package/lib-es/components/FilePreview/index.js +0 -85
  236. package/lib-es/components/FilePreview/index.js.map +0 -1
  237. package/lib-es/components/FilePreview/previewDefault/PreviewDefault.js +0 -27
  238. package/lib-es/components/FilePreview/previewDefault/PreviewDefault.js.map +0 -1
  239. package/lib-es/components/FilePreview/previewDefault/RawPreviewDefault.js +0 -31
  240. package/lib-es/components/FilePreview/previewDefault/RawPreviewDefault.js.map +0 -1
  241. package/lib-es/components/FilePreview/previewDefault/icons/DefaultIcon.js +0 -121
  242. package/lib-es/components/FilePreview/previewDefault/icons/DefaultIcon.js.map +0 -1
  243. package/lib-es/components/FilePreview/previewDefault/icons/index.js +0 -3
  244. package/lib-es/components/FilePreview/previewDefault/icons/index.js.map +0 -1
  245. package/lib-es/components/FilePreview/previewDefault/index.js +0 -12
  246. package/lib-es/components/FilePreview/previewDefault/index.js.map +0 -1
  247. package/lib-es/components/FilePreview/previewDefault/previewDefaultSchema.js +0 -25
  248. package/lib-es/components/FilePreview/previewDefault/previewDefaultSchema.js.map +0 -1
  249. package/lib-es/components/FilePreviewReadOnly/FileList.js +0 -18
  250. package/lib-es/components/FilePreviewReadOnly/FileList.js.map +0 -1
  251. package/lib-es/components/FilePreviewReadOnly/FilePreviewList.js +0 -22
  252. package/lib-es/components/FilePreviewReadOnly/FilePreviewList.js.map +0 -1
  253. package/lib-es/components/FilePreviewReadOnly/FilePreviewReadOnly.js +0 -66
  254. package/lib-es/components/FilePreviewReadOnly/FilePreviewReadOnly.js.map +0 -1
  255. package/lib-es/components/FilePreviewReadOnly/index.js +0 -3
  256. package/lib-es/components/FilePreviewReadOnly/index.js.map +0 -1
  257. package/lib-es/components/FilePreviewReadOnly/mappers/format-initial-value.js +0 -11
  258. package/lib-es/components/FilePreviewReadOnly/mappers/format-initial-value.js.map +0 -1
  259. package/lib-es/components/FilePreviewReadOnly/mappers/index.js +0 -3
  260. package/lib-es/components/FilePreviewReadOnly/mappers/index.js.map +0 -1
  261. package/lib-es/components/FileUploadAdapter/FileList.js +0 -52
  262. package/lib-es/components/FileUploadAdapter/FileList.js.map +0 -1
  263. package/lib-es/components/FileUploadAdapter/FilePreviewList.js +0 -22
  264. package/lib-es/components/FileUploadAdapter/FilePreviewList.js.map +0 -1
  265. package/lib-es/components/FileUploadAdapter/FileReorderList.js +0 -32
  266. package/lib-es/components/FileUploadAdapter/FileReorderList.js.map +0 -1
  267. package/lib-es/components/FileUploadAdapter/FileReorderListItem.js +0 -24
  268. package/lib-es/components/FileUploadAdapter/FileReorderListItem.js.map +0 -1
  269. package/lib-es/components/FileUploadAdapter/FileUploadAdapter.js +0 -367
  270. package/lib-es/components/FileUploadAdapter/FileUploadAdapter.js.map +0 -1
  271. package/lib-es/components/FileUploadAdapter/index.js +0 -3
  272. package/lib-es/components/FileUploadAdapter/index.js.map +0 -1
  273. package/lib-es/components/FileUploadAdapter/mappers/format-initial-value.js +0 -11
  274. package/lib-es/components/FileUploadAdapter/mappers/format-initial-value.js.map +0 -1
  275. package/lib-es/components/FileUploadAdapter/mappers/get-button-text.js +0 -9
  276. package/lib-es/components/FileUploadAdapter/mappers/get-button-text.js.map +0 -1
  277. package/lib-es/components/FileUploadAdapter/mappers/get-format.js +0 -12
  278. package/lib-es/components/FileUploadAdapter/mappers/get-format.js.map +0 -1
  279. package/lib-es/components/FileUploadAdapter/mappers/get-number-files-pending-to-fetch.js +0 -6
  280. package/lib-es/components/FileUploadAdapter/mappers/get-number-files-pending-to-fetch.js.map +0 -1
  281. package/lib-es/components/FileUploadAdapter/mappers/index.js +0 -8
  282. package/lib-es/components/FileUploadAdapter/mappers/index.js.map +0 -1
  283. package/lib-es/components/FileUploadAdapter/mappers/is-unselecting.js +0 -2
  284. package/lib-es/components/FileUploadAdapter/mappers/is-unselecting.js.map +0 -1
  285. package/lib-es/components/FileUploadAdapter/mappers/transform-to-array.js +0 -2
  286. package/lib-es/components/FileUploadAdapter/mappers/transform-to-array.js.map +0 -1
  287. package/lib-es/components/FileUploadAdapter/useLimit.js +0 -13
  288. package/lib-es/components/FileUploadAdapter/useLimit.js.map +0 -1
  289. package/lib-es/components/FileUploadModal/FileUploadModal.js +0 -113
  290. package/lib-es/components/FileUploadModal/FileUploadModal.js.map +0 -1
  291. package/lib-es/components/FileUploadModal/index.js +0 -3
  292. package/lib-es/components/FileUploadModal/index.js.map +0 -1
  293. package/lib-es/components/FilterPanel/FilterPanel.js +0 -135
  294. package/lib-es/components/FilterPanel/FilterPanel.js.map +0 -1
  295. package/lib-es/components/FilterPanel/index.js +0 -3
  296. package/lib-es/components/FilterPanel/index.js.map +0 -1
  297. package/lib-es/components/ListingContainer/Listing/Listing.js +0 -58
  298. package/lib-es/components/ListingContainer/Listing/Listing.js.map +0 -1
  299. package/lib-es/components/ListingContainer/Listing/MediaListing/MediaFileList/MediaFileList.js +0 -145
  300. package/lib-es/components/ListingContainer/Listing/MediaListing/MediaFileList/MediaFileList.js.map +0 -1
  301. package/lib-es/components/ListingContainer/Listing/MediaListing/MediaFileList/index.js +0 -3
  302. package/lib-es/components/ListingContainer/Listing/MediaListing/MediaFileList/index.js.map +0 -1
  303. package/lib-es/components/ListingContainer/Listing/MediaListing/MediaListing.js +0 -24
  304. package/lib-es/components/ListingContainer/Listing/MediaListing/MediaListing.js.map +0 -1
  305. package/lib-es/components/ListingContainer/Listing/MediaListing/index.js +0 -3
  306. package/lib-es/components/ListingContainer/Listing/MediaListing/index.js.map +0 -1
  307. package/lib-es/components/ListingContainer/Listing/index.js +0 -3
  308. package/lib-es/components/ListingContainer/Listing/index.js.map +0 -1
  309. package/lib-es/components/ListingContainer/ListingContainer.js +0 -106
  310. package/lib-es/components/ListingContainer/ListingContainer.js.map +0 -1
  311. package/lib-es/components/ListingContainer/index.js +0 -3
  312. package/lib-es/components/ListingContainer/index.js.map +0 -1
  313. package/lib-es/components/ListingContainer/mappers/exist-previous.js +0 -3
  314. package/lib-es/components/ListingContainer/mappers/exist-previous.js.map +0 -1
  315. package/lib-es/components/ListingContainer/mappers/index.js +0 -3
  316. package/lib-es/components/ListingContainer/mappers/index.js.map +0 -1
  317. package/lib-es/components/MediaListing.js +0 -29
  318. package/lib-es/components/MediaListing.js.map +0 -1
  319. package/lib-es/constants.js +0 -36
  320. package/lib-es/constants.js.map +0 -1
  321. package/lib-es/icons/MediaLibraryIcon.js +0 -70
  322. package/lib-es/icons/MediaLibraryIcon.js.map +0 -1
  323. package/lib-es/icons/index.js +0 -3
  324. package/lib-es/icons/index.js.map +0 -1
  325. package/lib-es/index.js +0 -61
  326. package/lib-es/index.js.map +0 -1
  327. package/lib-es/utils/available-filters/available-filters.js +0 -26
  328. package/lib-es/utils/available-filters/available-filters.js.map +0 -1
  329. package/lib-es/utils/media-context/index.js +0 -4
  330. package/lib-es/utils/media-context/index.js.map +0 -1
  331. package/lib-es/utils/media-context/media-context.js +0 -6
  332. package/lib-es/utils/media-context/media-context.js.map +0 -1
  333. package/lib-es/utils/media-context/useMediaContext.js +0 -4
  334. package/lib-es/utils/media-context/useMediaContext.js.map +0 -1
@@ -1,27 +0,0 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- const Image = ({
4
- url,
5
- name,
6
- children
7
- }) => /*#__PURE__*/React.createElement("div", {
8
- className: "preview"
9
- }, /*#__PURE__*/React.createElement("div", {
10
- className: "preview__file preview__file--image"
11
- }, /*#__PURE__*/React.createElement("img", {
12
- src: url,
13
- alt: name
14
- }), /*#__PURE__*/React.createElement("div", {
15
- className: "preview__details preview__details--file"
16
- }, /*#__PURE__*/React.createElement("p", null, /*#__PURE__*/React.createElement("strong", null, "File details"), /*#__PURE__*/React.createElement("a", {
17
- href: url,
18
- rel: "noopener noreferrer",
19
- target: "_blank"
20
- }, "Original")))), children);
21
- Image.propTypes = {
22
- url: PropTypes.string.isRequired,
23
- name: PropTypes.string.isRequired,
24
- children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired
25
- };
26
- export { Image };
27
- //# sourceMappingURL=Image.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Image.js","names":["React","PropTypes","Image","url","name","children","createElement","className","src","alt","href","rel","target","propTypes","string","isRequired","oneOfType","arrayOf","node"],"sources":["../../../../src/components/FilePreview/Image/Image.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nconst Image = ({ url, name, children }) => (\n <div className=\"preview\">\n <div className=\"preview__file preview__file--image\">\n <img src={url} alt={name} />\n <div className=\"preview__details preview__details--file\">\n <p>\n <strong>File details</strong>\n <a href={url} rel=\"noopener noreferrer\" target=\"_blank\">\n Original\n </a>\n </p>\n </div>\n </div>\n {children}\n </div>\n);\n\nImage.propTypes = {\n url: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired,\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired\n};\n\nexport { Image };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,MAAMC,KAAK,GAAGA,CAAC;EAAEC,GAAG;EAAEC,IAAI;EAAEC;AAAS,CAAC,kBACpCL,KAAA,CAAAM,aAAA;EAAKC,SAAS,EAAC;AAAS,gBACtBP,KAAA,CAAAM,aAAA;EAAKC,SAAS,EAAC;AAAoC,gBACjDP,KAAA,CAAAM,aAAA;EAAKE,GAAG,EAAEL,GAAI;EAACM,GAAG,EAAEL;AAAK,CAAE,CAAC,eAC5BJ,KAAA,CAAAM,aAAA;EAAKC,SAAS,EAAC;AAAyC,gBACtDP,KAAA,CAAAM,aAAA,yBACEN,KAAA,CAAAM,aAAA,iBAAQ,cAAoB,CAAC,eAC7BN,KAAA,CAAAM,aAAA;EAAGI,IAAI,EAAEP,GAAI;EAACQ,GAAG,EAAC,qBAAqB;EAACC,MAAM,EAAC;AAAQ,GAAC,UAErD,CACF,CACA,CACF,CAAC,EACLP,QACE,CACN;AAEDH,KAAK,CAACW,SAAS,GAAG;EAChBV,GAAG,EAAEF,SAAS,CAACa,MAAM,CAACC,UAAU;EAChCX,IAAI,EAAEH,SAAS,CAACa,MAAM,CAACC,UAAU;EACjCV,QAAQ,EAAEJ,SAAS,CAACe,SAAS,CAAC,CAACf,SAAS,CAACgB,OAAO,CAAChB,SAAS,CAACiB,IAAI,CAAC,EAAEjB,SAAS,CAACiB,IAAI,CAAC,CAAC,CAACH;AACrF,CAAC;AAED,SAASb,KAAK","ignoreList":[]}
@@ -1,31 +0,0 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import Actions from '../Actions';
4
- const RawImage = ({
5
- url,
6
- name,
7
- file
8
- }) => /*#__PURE__*/React.createElement("div", {
9
- className: "FilePreview"
10
- }, /*#__PURE__*/React.createElement("div", {
11
- className: "FilePreviewItem"
12
- }, /*#__PURE__*/React.createElement("div", {
13
- className: "FilePreviewItem__wrapper"
14
- }, /*#__PURE__*/React.createElement("img", {
15
- className: "FilePreviewItem__wrapper__image",
16
- src: url,
17
- alt: name
18
- })), /*#__PURE__*/React.createElement("div", {
19
- className: "FilePreviewItem__info"
20
- }, /*#__PURE__*/React.createElement("p", {
21
- className: "FilePreviewItem__info__fileName"
22
- }, name), /*#__PURE__*/React.createElement(Actions, {
23
- file: file
24
- }))));
25
- RawImage.propTypes = {
26
- url: PropTypes.string.isRequired,
27
- name: PropTypes.string.isRequired,
28
- file: PropTypes.object.isRequired
29
- };
30
- export { RawImage };
31
- //# sourceMappingURL=RawImage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RawImage.js","names":["React","PropTypes","Actions","RawImage","url","name","file","createElement","className","src","alt","propTypes","string","isRequired","object"],"sources":["../../../../src/components/FilePreview/Image/RawImage.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Actions from '../Actions';\n\nconst RawImage = ({ url, name, file }) => (\n <div className=\"FilePreview\">\n <div className=\"FilePreviewItem\">\n <div className=\"FilePreviewItem__wrapper\">\n <img className=\"FilePreviewItem__wrapper__image\" src={url} alt={name} />\n </div>\n <div className=\"FilePreviewItem__info\">\n <p className=\"FilePreviewItem__info__fileName\">{name}</p>\n <Actions file={file} />\n </div>\n </div>\n </div>\n);\n\nRawImage.propTypes = {\n url: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired,\n file: PropTypes.object.isRequired\n};\n\nexport { RawImage };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,OAAO,MAAM,YAAY;AAEhC,MAAMC,QAAQ,GAAGA,CAAC;EAAEC,GAAG;EAAEC,IAAI;EAAEC;AAAK,CAAC,kBACnCN,KAAA,CAAAO,aAAA;EAAKC,SAAS,EAAC;AAAa,gBAC1BR,KAAA,CAAAO,aAAA;EAAKC,SAAS,EAAC;AAAiB,gBAC9BR,KAAA,CAAAO,aAAA;EAAKC,SAAS,EAAC;AAA0B,gBACvCR,KAAA,CAAAO,aAAA;EAAKC,SAAS,EAAC,iCAAiC;EAACC,GAAG,EAAEL,GAAI;EAACM,GAAG,EAAEL;AAAK,CAAE,CACpE,CAAC,eACNL,KAAA,CAAAO,aAAA;EAAKC,SAAS,EAAC;AAAuB,gBACpCR,KAAA,CAAAO,aAAA;EAAGC,SAAS,EAAC;AAAiC,GAAEH,IAAQ,CAAC,eACzDL,KAAA,CAAAO,aAAA,CAACL,OAAO;EAACI,IAAI,EAAEA;AAAK,CAAE,CACnB,CACF,CACF,CACN;AAEDH,QAAQ,CAACQ,SAAS,GAAG;EACnBP,GAAG,EAAEH,SAAS,CAACW,MAAM,CAACC,UAAU;EAChCR,IAAI,EAAEJ,SAAS,CAACW,MAAM,CAACC,UAAU;EACjCP,IAAI,EAAEL,SAAS,CAACa,MAAM,CAACD;AACzB,CAAC;AAED,SAASV,QAAQ","ignoreList":[]}
@@ -1,53 +0,0 @@
1
- const imageSchema = {
2
- settings: {},
3
- formSchema: {
4
- properties: {
5
- name: {
6
- type: 'string',
7
- showInForm: true,
8
- label: 'File name',
9
- formFieldType: 'text',
10
- formPriority: 1.0
11
- },
12
- storeKey: {
13
- type: 'string',
14
- showInForm: true,
15
- label: 'Store type',
16
- formFieldType: 'select',
17
- formPriority: 2.0,
18
- description: 'Please select store type',
19
- options: []
20
- },
21
- altText: {
22
- type: 'string',
23
- showInForm: true,
24
- label: 'Alt text',
25
- formFieldType: 'text',
26
- formPriority: 3.0
27
- },
28
- caption: {
29
- type: 'string',
30
- showInForm: true,
31
- formFieldType: 'text',
32
- formPriority: 4.0
33
- },
34
- credits: {
35
- type: 'string',
36
- showInForm: true,
37
- formFieldType: 'text',
38
- formPriority: 5.0
39
- },
40
- hrefUrl: {
41
- type: 'string',
42
- format: 'uri-template',
43
- label: 'url',
44
- showInForm: true,
45
- formFieldType: 'text',
46
- description: 'Url format is not valid'
47
- }
48
- },
49
- required: ['name']
50
- }
51
- };
52
- export { imageSchema };
53
- //# sourceMappingURL=imageSchema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"imageSchema.js","names":["imageSchema","settings","formSchema","properties","name","type","showInForm","label","formFieldType","formPriority","storeKey","description","options","altText","caption","credits","hrefUrl","format","required"],"sources":["../../../../src/components/FilePreview/Image/imageSchema.js"],"sourcesContent":["const imageSchema = {\n settings: {},\n formSchema: {\n properties: {\n name: {\n type: 'string',\n showInForm: true,\n label: 'File name',\n formFieldType: 'text',\n formPriority: 1.0\n },\n storeKey: {\n type: 'string',\n showInForm: true,\n label: 'Store type',\n formFieldType: 'select',\n formPriority: 2.0,\n description: 'Please select store type',\n options: []\n },\n altText: {\n type: 'string',\n showInForm: true,\n label: 'Alt text',\n formFieldType: 'text',\n formPriority: 3.0\n },\n caption: {\n type: 'string',\n showInForm: true,\n formFieldType: 'text',\n formPriority: 4.0\n },\n credits: {\n type: 'string',\n showInForm: true,\n formFieldType: 'text',\n formPriority: 5.0\n },\n hrefUrl: {\n type: 'string',\n format: 'uri-template',\n label: 'url',\n showInForm: true,\n formFieldType: 'text',\n description: 'Url format is not valid'\n }\n },\n required: ['name']\n }\n};\n\nexport { imageSchema };\n"],"mappings":"AAAA,MAAMA,WAAW,GAAG;EAClBC,QAAQ,EAAE,CAAC,CAAC;EACZC,UAAU,EAAE;IACVC,UAAU,EAAE;MACVC,IAAI,EAAE;QACJC,IAAI,EAAE,QAAQ;QACdC,UAAU,EAAE,IAAI;QAChBC,KAAK,EAAE,WAAW;QAClBC,aAAa,EAAE,MAAM;QACrBC,YAAY,EAAE;MAChB,CAAC;MACDC,QAAQ,EAAE;QACRL,IAAI,EAAE,QAAQ;QACdC,UAAU,EAAE,IAAI;QAChBC,KAAK,EAAE,YAAY;QACnBC,aAAa,EAAE,QAAQ;QACvBC,YAAY,EAAE,GAAG;QACjBE,WAAW,EAAE,0BAA0B;QACvCC,OAAO,EAAE;MACX,CAAC;MACDC,OAAO,EAAE;QACPR,IAAI,EAAE,QAAQ;QACdC,UAAU,EAAE,IAAI;QAChBC,KAAK,EAAE,UAAU;QACjBC,aAAa,EAAE,MAAM;QACrBC,YAAY,EAAE;MAChB,CAAC;MACDK,OAAO,EAAE;QACPT,IAAI,EAAE,QAAQ;QACdC,UAAU,EAAE,IAAI;QAChBE,aAAa,EAAE,MAAM;QACrBC,YAAY,EAAE;MAChB,CAAC;MACDM,OAAO,EAAE;QACPV,IAAI,EAAE,QAAQ;QACdC,UAAU,EAAE,IAAI;QAChBE,aAAa,EAAE,MAAM;QACrBC,YAAY,EAAE;MAChB,CAAC;MACDO,OAAO,EAAE;QACPX,IAAI,EAAE,QAAQ;QACdY,MAAM,EAAE,cAAc;QACtBV,KAAK,EAAE,KAAK;QACZD,UAAU,EAAE,IAAI;QAChBE,aAAa,EAAE,MAAM;QACrBG,WAAW,EAAE;MACf;IACF,CAAC;IACDO,QAAQ,EAAE,CAAC,MAAM;EACnB;AACF,CAAC;AAED,SAASlB,WAAW","ignoreList":[]}
@@ -1,12 +0,0 @@
1
- import { RawImage } from './RawImage';
2
- import { Image } from './Image';
3
- import { imageSchema } from './imageSchema';
4
- const image = {
5
- component: {
6
- card: Image,
7
- raw: RawImage
8
- },
9
- schema: imageSchema
10
- };
11
- export { image };
12
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["RawImage","Image","imageSchema","image","component","card","raw","schema"],"sources":["../../../../src/components/FilePreview/Image/index.js"],"sourcesContent":["import { RawImage } from './RawImage';\nimport { Image } from './Image';\nimport { imageSchema } from './imageSchema';\n\nconst image = {\n component: {\n card: Image,\n raw: RawImage\n },\n schema: imageSchema\n};\nexport { image };\n"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,YAAY;AACrC,SAASC,KAAK,QAAQ,SAAS;AAC/B,SAASC,WAAW,QAAQ,eAAe;AAE3C,MAAMC,KAAK,GAAG;EACZC,SAAS,EAAE;IACTC,IAAI,EAAEJ,KAAK;IACXK,GAAG,EAAEN;EACP,CAAC;EACDO,MAAM,EAAEL;AACV,CAAC;AACD,SAASC,KAAK","ignoreList":[]}
@@ -1,34 +0,0 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- const PDF = ({
4
- mimetype,
5
- url,
6
- name,
7
- children
8
- }) => /*#__PURE__*/React.createElement("div", {
9
- className: "preview"
10
- }, /*#__PURE__*/React.createElement("div", {
11
- className: "preview__file preview__file--pdf"
12
- }, /*#__PURE__*/React.createElement("object", {
13
- data: url,
14
- type: mimetype,
15
- className: "preview__file--pdf"
16
- }, /*#__PURE__*/React.createElement("p", null, /*#__PURE__*/React.createElement("a", {
17
- href: url,
18
- rel: "noopener noreferrer",
19
- target: "_blank"
20
- }, "Download ", name))), /*#__PURE__*/React.createElement("div", {
21
- className: "preview__details preview__details--file"
22
- }, /*#__PURE__*/React.createElement("p", null, /*#__PURE__*/React.createElement("strong", null, "File details"), /*#__PURE__*/React.createElement("a", {
23
- href: url,
24
- rel: "noopener noreferrer",
25
- target: "_blank"
26
- }, "Original")))), children);
27
- PDF.propTypes = {
28
- mimetype: PropTypes.string.isRequired,
29
- url: PropTypes.string.isRequired,
30
- name: PropTypes.string.isRequired,
31
- children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired
32
- };
33
- export { PDF };
34
- //# sourceMappingURL=PDF.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PDF.js","names":["React","PropTypes","PDF","mimetype","url","name","children","createElement","className","data","type","href","rel","target","propTypes","string","isRequired","oneOfType","arrayOf","node"],"sources":["../../../../src/components/FilePreview/PDF/PDF.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nconst PDF = ({ mimetype, url, name, children }) => (\n <div className=\"preview\">\n <div className=\"preview__file preview__file--pdf\">\n <object data={url} type={mimetype} className=\"preview__file--pdf\">\n <p>\n <a href={url} rel=\"noopener noreferrer\" target=\"_blank\">\n Download {name}\n </a>\n </p>\n </object>\n <div className=\"preview__details preview__details--file\">\n <p>\n <strong>File details</strong>\n <a href={url} rel=\"noopener noreferrer\" target=\"_blank\">\n Original\n </a>\n </p>\n </div>\n </div>\n {children}\n </div>\n);\n\nPDF.propTypes = {\n mimetype: PropTypes.string.isRequired,\n url: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired,\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired\n};\n\nexport { PDF };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,MAAMC,GAAG,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,GAAG;EAAEC,IAAI;EAAEC;AAAS,CAAC,kBAC5CN,KAAA,CAAAO,aAAA;EAAKC,SAAS,EAAC;AAAS,gBACtBR,KAAA,CAAAO,aAAA;EAAKC,SAAS,EAAC;AAAkC,gBAC/CR,KAAA,CAAAO,aAAA;EAAQE,IAAI,EAAEL,GAAI;EAACM,IAAI,EAAEP,QAAS;EAACK,SAAS,EAAC;AAAoB,gBAC/DR,KAAA,CAAAO,aAAA,yBACEP,KAAA,CAAAO,aAAA;EAAGI,IAAI,EAAEP,GAAI;EAACQ,GAAG,EAAC,qBAAqB;EAACC,MAAM,EAAC;AAAQ,GAAC,WAC7C,EAACR,IACT,CACF,CACG,CAAC,eACTL,KAAA,CAAAO,aAAA;EAAKC,SAAS,EAAC;AAAyC,gBACtDR,KAAA,CAAAO,aAAA,yBACEP,KAAA,CAAAO,aAAA,iBAAQ,cAAoB,CAAC,eAC7BP,KAAA,CAAAO,aAAA;EAAGI,IAAI,EAAEP,GAAI;EAACQ,GAAG,EAAC,qBAAqB;EAACC,MAAM,EAAC;AAAQ,GAAC,UAErD,CACF,CACA,CACF,CAAC,EACLP,QACE,CACN;AAEDJ,GAAG,CAACY,SAAS,GAAG;EACdX,QAAQ,EAAEF,SAAS,CAACc,MAAM,CAACC,UAAU;EACrCZ,GAAG,EAAEH,SAAS,CAACc,MAAM,CAACC,UAAU;EAChCX,IAAI,EAAEJ,SAAS,CAACc,MAAM,CAACC,UAAU;EACjCV,QAAQ,EAAEL,SAAS,CAACgB,SAAS,CAAC,CAAChB,SAAS,CAACiB,OAAO,CAACjB,SAAS,CAACkB,IAAI,CAAC,EAAElB,SAAS,CAACkB,IAAI,CAAC,CAAC,CAACH;AACrF,CAAC;AAED,SAASd,GAAG","ignoreList":[]}
@@ -1,33 +0,0 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import Actions from '../Actions';
4
- const RawPDF = ({
5
- mimetype,
6
- url,
7
- name,
8
- file
9
- }) => /*#__PURE__*/React.createElement("div", {
10
- className: "FilePreview"
11
- }, /*#__PURE__*/React.createElement("object", {
12
- data: url,
13
- type: mimetype,
14
- className: "preview__file--pdf"
15
- }, /*#__PURE__*/React.createElement("p", null, /*#__PURE__*/React.createElement("a", {
16
- href: url,
17
- rel: "noopener noreferrer",
18
- target: "_blank"
19
- }, "Download ", name))), /*#__PURE__*/React.createElement("div", {
20
- className: "FilePreviewItem__info"
21
- }, /*#__PURE__*/React.createElement("p", {
22
- className: "FilePreviewItem__info__fileName"
23
- }, name), /*#__PURE__*/React.createElement(Actions, {
24
- file: file
25
- })));
26
- RawPDF.propTypes = {
27
- mimetype: PropTypes.string.isRequired,
28
- url: PropTypes.string.isRequired,
29
- name: PropTypes.string.isRequired,
30
- file: PropTypes.object.isRequired
31
- };
32
- export { RawPDF };
33
- //# sourceMappingURL=RawPDF.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RawPDF.js","names":["React","PropTypes","Actions","RawPDF","mimetype","url","name","file","createElement","className","data","type","href","rel","target","propTypes","string","isRequired","object"],"sources":["../../../../src/components/FilePreview/PDF/RawPDF.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Actions from '../Actions';\n\nconst RawPDF = ({ mimetype, url, name, file }) => (\n <div className=\"FilePreview\">\n <object data={url} type={mimetype} className=\"preview__file--pdf\">\n <p>\n <a href={url} rel=\"noopener noreferrer\" target=\"_blank\">\n Download {name}\n </a>\n </p>\n </object>\n <div className=\"FilePreviewItem__info\">\n <p className=\"FilePreviewItem__info__fileName\">{name}</p>\n <Actions file={file} />\n </div>\n </div>\n);\n\nRawPDF.propTypes = {\n mimetype: PropTypes.string.isRequired,\n url: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired,\n file: PropTypes.object.isRequired\n};\n\nexport { RawPDF };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,OAAO,MAAM,YAAY;AAEhC,MAAMC,MAAM,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,GAAG;EAAEC,IAAI;EAAEC;AAAK,CAAC,kBAC3CP,KAAA,CAAAQ,aAAA;EAAKC,SAAS,EAAC;AAAa,gBAC1BT,KAAA,CAAAQ,aAAA;EAAQE,IAAI,EAAEL,GAAI;EAACM,IAAI,EAAEP,QAAS;EAACK,SAAS,EAAC;AAAoB,gBAC/DT,KAAA,CAAAQ,aAAA,yBACER,KAAA,CAAAQ,aAAA;EAAGI,IAAI,EAAEP,GAAI;EAACQ,GAAG,EAAC,qBAAqB;EAACC,MAAM,EAAC;AAAQ,GAAC,WAC7C,EAACR,IACT,CACF,CACG,CAAC,eACTN,KAAA,CAAAQ,aAAA;EAAKC,SAAS,EAAC;AAAuB,gBACpCT,KAAA,CAAAQ,aAAA;EAAGC,SAAS,EAAC;AAAiC,GAAEH,IAAQ,CAAC,eACzDN,KAAA,CAAAQ,aAAA,CAACN,OAAO;EAACK,IAAI,EAAEA;AAAK,CAAE,CACnB,CACF,CACN;AAEDJ,MAAM,CAACY,SAAS,GAAG;EACjBX,QAAQ,EAAEH,SAAS,CAACe,MAAM,CAACC,UAAU;EACrCZ,GAAG,EAAEJ,SAAS,CAACe,MAAM,CAACC,UAAU;EAChCX,IAAI,EAAEL,SAAS,CAACe,MAAM,CAACC,UAAU;EACjCV,IAAI,EAAEN,SAAS,CAACiB,MAAM,CAACD;AACzB,CAAC;AAED,SAASd,MAAM","ignoreList":[]}
@@ -1,12 +0,0 @@
1
- import { PDF } from './PDF';
2
- import { RawPDF } from './RawPDF';
3
- import { PDFSchema } from './schema';
4
- const pdf = {
5
- component: {
6
- card: PDF,
7
- raw: RawPDF
8
- },
9
- schema: PDFSchema
10
- };
11
- export { pdf };
12
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["PDF","RawPDF","PDFSchema","pdf","component","card","raw","schema"],"sources":["../../../../src/components/FilePreview/PDF/index.js"],"sourcesContent":["import { PDF } from './PDF';\nimport { RawPDF } from './RawPDF';\nimport { PDFSchema } from './schema';\n\nconst pdf = {\n component: {\n card: PDF,\n raw: RawPDF\n },\n schema: PDFSchema\n};\n\nexport { pdf };\n"],"mappings":"AAAA,SAASA,GAAG,QAAQ,OAAO;AAC3B,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,SAAS,QAAQ,UAAU;AAEpC,MAAMC,GAAG,GAAG;EACVC,SAAS,EAAE;IACTC,IAAI,EAAEL,GAAG;IACTM,GAAG,EAAEL;EACP,CAAC;EACDM,MAAM,EAAEL;AACV,CAAC;AAED,SAASC,GAAG","ignoreList":[]}
@@ -1,21 +0,0 @@
1
- const PDFSchema = {
2
- settings: {},
3
- formSchema: {
4
- properties: {
5
- name: {
6
- type: 'string',
7
- showInForm: true,
8
- label: 'File name',
9
- formFieldType: 'text'
10
- },
11
- caption: {
12
- type: 'string',
13
- showInForm: true,
14
- formFieldType: 'text'
15
- }
16
- },
17
- required: ['name']
18
- }
19
- };
20
- export { PDFSchema };
21
- //# sourceMappingURL=schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.js","names":["PDFSchema","settings","formSchema","properties","name","type","showInForm","label","formFieldType","caption","required"],"sources":["../../../../src/components/FilePreview/PDF/schema.js"],"sourcesContent":["const PDFSchema = {\n settings: {},\n formSchema: {\n properties: {\n name: {\n type: 'string',\n showInForm: true,\n label: 'File name',\n formFieldType: 'text'\n },\n caption: {\n type: 'string',\n showInForm: true,\n formFieldType: 'text'\n }\n },\n required: ['name']\n }\n};\n\nexport { PDFSchema };\n"],"mappings":"AAAA,MAAMA,SAAS,GAAG;EAChBC,QAAQ,EAAE,CAAC,CAAC;EACZC,UAAU,EAAE;IACVC,UAAU,EAAE;MACVC,IAAI,EAAE;QACJC,IAAI,EAAE,QAAQ;QACdC,UAAU,EAAE,IAAI;QAChBC,KAAK,EAAE,WAAW;QAClBC,aAAa,EAAE;MACjB,CAAC;MACDC,OAAO,EAAE;QACPJ,IAAI,EAAE,QAAQ;QACdC,UAAU,EAAE,IAAI;QAChBE,aAAa,EAAE;MACjB;IACF,CAAC;IACDE,QAAQ,EAAE,CAAC,MAAM;EACnB;AACF,CAAC;AAED,SAASV,SAAS","ignoreList":[]}
@@ -1,28 +0,0 @@
1
- import { pdf } from './PDF';
2
- import { image } from './Image';
3
- import { previewDefault } from './previewDefault';
4
- const schemas = {
5
- 'application/pdf': pdf,
6
- 'image/gif': image,
7
- 'image/jpg': image,
8
- 'image/jpeg': image,
9
- 'image/png': image,
10
- 'image/bmp': image,
11
- 'image/svg+xml': image,
12
- 'image/tiff': image,
13
- 'image/webp': image,
14
- default: previewDefault
15
- };
16
- const getPreview = ({
17
- mimetype,
18
- previewType
19
- }) => {
20
- const {
21
- component,
22
- schema
23
- } = schemas[mimetype] || schemas.default;
24
- const Preview = component[previewType] || component;
25
- return [Preview, schema];
26
- };
27
- export { getPreview };
28
- //# sourceMappingURL=get-preview.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-preview.js","names":["pdf","image","previewDefault","schemas","default","getPreview","mimetype","previewType","component","schema","Preview"],"sources":["../../../src/components/FilePreview/get-preview.js"],"sourcesContent":["import { pdf } from './PDF';\nimport { image } from './Image';\nimport { previewDefault } from './previewDefault';\n\nconst schemas = {\n 'application/pdf': pdf,\n 'image/gif': image,\n 'image/jpg': image,\n 'image/jpeg': image,\n 'image/png': image,\n 'image/bmp': image,\n 'image/svg+xml': image,\n 'image/tiff': image,\n 'image/webp': image,\n default: previewDefault\n};\n\nconst getPreview = ({ mimetype, previewType }) => {\n const { component, schema } = schemas[mimetype] || schemas.default;\n const Preview = component[previewType] || component;\n return [Preview, schema];\n};\n\nexport { getPreview };\n"],"mappings":"AAAA,SAASA,GAAG,QAAQ,OAAO;AAC3B,SAASC,KAAK,QAAQ,SAAS;AAC/B,SAASC,cAAc,QAAQ,kBAAkB;AAEjD,MAAMC,OAAO,GAAG;EACd,iBAAiB,EAAEH,GAAG;EACtB,WAAW,EAAEC,KAAK;EAClB,WAAW,EAAEA,KAAK;EAClB,YAAY,EAAEA,KAAK;EACnB,WAAW,EAAEA,KAAK;EAClB,WAAW,EAAEA,KAAK;EAClB,eAAe,EAAEA,KAAK;EACtB,YAAY,EAAEA,KAAK;EACnB,YAAY,EAAEA,KAAK;EACnBG,OAAO,EAAEF;AACX,CAAC;AAED,MAAMG,UAAU,GAAGA,CAAC;EAAEC,QAAQ;EAAEC;AAAY,CAAC,KAAK;EAChD,MAAM;IAAEC,SAAS;IAAEC;EAAO,CAAC,GAAGN,OAAO,CAACG,QAAQ,CAAC,IAAIH,OAAO,CAACC,OAAO;EAClE,MAAMM,OAAO,GAAGF,SAAS,CAACD,WAAW,CAAC,IAAIC,SAAS;EACnD,OAAO,CAACE,OAAO,EAAED,MAAM,CAAC;AAC1B,CAAC;AAED,SAASJ,UAAU","ignoreList":[]}
@@ -1,85 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
- import React from 'react';
6
- import { FormBuilder } from '@blaze-cms/react-form-builder';
7
- import PropTypes from 'prop-types';
8
- import { getPreview } from './get-preview';
9
- const FilePreview = ({
10
- file,
11
- handleFormChange,
12
- displayForm,
13
- previewType,
14
- children
15
- }) => {
16
- const {
17
- name,
18
- url,
19
- mimetype,
20
- data,
21
- store
22
- } = file;
23
- const [Preview, schema] = getPreview({
24
- mimetype,
25
- previewType
26
- });
27
- const shouldRenderForm = schema && displayForm;
28
- if (shouldRenderForm && store) {
29
- const {
30
- defaultStore = {},
31
- storeOptions = []
32
- } = store;
33
- if (schema.formSchema.properties.storeKey) {
34
- schema.formSchema.properties.storeKey.options = storeOptions;
35
- if (defaultStore) {
36
- const {
37
- key
38
- } = defaultStore;
39
- schema.formSchema.properties.storeKey.selected = key;
40
- }
41
- }
42
- }
43
- const formBuilderData = {
44
- values: _objectSpread(_objectSpread({}, file), data)
45
- };
46
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Preview, _extends({
47
- mimetype: mimetype,
48
- url: url,
49
- name: name
50
- }, data, {
51
- file: file
52
- }), shouldRenderForm && /*#__PURE__*/React.createElement("div", {
53
- className: "preview__details"
54
- }, /*#__PURE__*/React.createElement("div", {
55
- className: "preview__filename"
56
- }, file.filename), /*#__PURE__*/React.createElement(FormBuilder, {
57
- formClassName: "preview__form",
58
- onChange: handleFormChange,
59
- data: formBuilderData,
60
- schema: schema.formSchema
61
- }))), children);
62
- };
63
- FilePreview.availablePreviewTypes = {
64
- card: 'card',
65
- raw: 'raw'
66
- };
67
- FilePreview.propTypes = {
68
- file: PropTypes.object.isRequired,
69
- fileName: PropTypes.string,
70
- handleFormChange: PropTypes.func,
71
- displayForm: PropTypes.bool,
72
- handlers: PropTypes.object,
73
- previewType: PropTypes.oneOf(Object.keys(FilePreview.availablePreviewTypes)),
74
- children: PropTypes.oneOfType([PropTypes.array, PropTypes.object, PropTypes.string])
75
- };
76
- FilePreview.defaultProps = {
77
- displayForm: false,
78
- fileName: '',
79
- handlers: {},
80
- previewType: FilePreview.availablePreviewTypes.card,
81
- handleFormChange: () => {},
82
- children: []
83
- };
84
- export default FilePreview;
85
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["React","FormBuilder","PropTypes","getPreview","FilePreview","file","handleFormChange","displayForm","previewType","children","name","url","mimetype","data","store","Preview","schema","shouldRenderForm","defaultStore","storeOptions","formSchema","properties","storeKey","options","key","selected","formBuilderData","values","_objectSpread","createElement","Fragment","_extends","className","filename","formClassName","onChange","availablePreviewTypes","card","raw","propTypes","object","isRequired","fileName","string","func","bool","handlers","oneOf","Object","keys","oneOfType","array","defaultProps"],"sources":["../../../src/components/FilePreview/index.js"],"sourcesContent":["import React from 'react';\nimport { FormBuilder } from '@blaze-cms/react-form-builder';\nimport PropTypes from 'prop-types';\nimport { getPreview } from './get-preview';\n\nconst FilePreview = ({ file, handleFormChange, displayForm, previewType, children }) => {\n const { name, url, mimetype, data, store } = file;\n const [Preview, schema] = getPreview({ mimetype, previewType });\n const shouldRenderForm = schema && displayForm;\n\n if (shouldRenderForm && store) {\n const { defaultStore = {}, storeOptions = [] } = store;\n if (schema.formSchema.properties.storeKey) {\n schema.formSchema.properties.storeKey.options = storeOptions;\n if (defaultStore) {\n const { key } = defaultStore;\n schema.formSchema.properties.storeKey.selected = key;\n }\n }\n }\n\n const formBuilderData = { values: { ...file, ...data } };\n\n return (\n <>\n <Preview mimetype={mimetype} url={url} name={name} {...data} file={file}>\n {shouldRenderForm && (\n <div className=\"preview__details\">\n <div className=\"preview__filename\">{file.filename}</div>\n <FormBuilder\n formClassName=\"preview__form\"\n onChange={handleFormChange}\n data={formBuilderData}\n schema={schema.formSchema}\n />\n </div>\n )}\n </Preview>\n {children}\n </>\n );\n};\n\nFilePreview.availablePreviewTypes = {\n card: 'card',\n raw: 'raw'\n};\n\nFilePreview.propTypes = {\n file: PropTypes.object.isRequired,\n fileName: PropTypes.string,\n handleFormChange: PropTypes.func,\n displayForm: PropTypes.bool,\n handlers: PropTypes.object,\n previewType: PropTypes.oneOf(Object.keys(FilePreview.availablePreviewTypes)),\n children: PropTypes.oneOfType([PropTypes.array, PropTypes.object, PropTypes.string])\n};\n\nFilePreview.defaultProps = {\n displayForm: false,\n fileName: '',\n handlers: {},\n previewType: FilePreview.availablePreviewTypes.card,\n handleFormChange: () => {},\n children: []\n};\n\nexport default FilePreview;\n"],"mappings":"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","ignoreList":[]}
@@ -1,27 +0,0 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import { DefaultIcon } from './icons';
4
- const PreviewDefault = ({
5
- url,
6
- name,
7
- children
8
- }) => /*#__PURE__*/React.createElement("div", {
9
- className: "preview"
10
- }, /*#__PURE__*/React.createElement("div", {
11
- className: "preview__file preview__file--default"
12
- }, /*#__PURE__*/React.createElement("div", {
13
- className: "preview__file--icon"
14
- }, /*#__PURE__*/React.createElement(DefaultIcon, null), /*#__PURE__*/React.createElement("span", null, "Preview not available")), /*#__PURE__*/React.createElement("div", {
15
- className: "preview__details preview__details--file"
16
- }, /*#__PURE__*/React.createElement("p", null, /*#__PURE__*/React.createElement("strong", null, "File details"), /*#__PURE__*/React.createElement("a", {
17
- href: url,
18
- rel: "noopener noreferrer",
19
- target: "_blank"
20
- }, "Original")))), children);
21
- PreviewDefault.propTypes = {
22
- url: PropTypes.string.isRequired,
23
- name: PropTypes.string.isRequired,
24
- children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired
25
- };
26
- export { PreviewDefault };
27
- //# sourceMappingURL=PreviewDefault.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PreviewDefault.js","names":["React","PropTypes","DefaultIcon","PreviewDefault","url","name","children","createElement","className","href","rel","target","propTypes","string","isRequired","oneOfType","arrayOf","node"],"sources":["../../../../src/components/FilePreview/previewDefault/PreviewDefault.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { DefaultIcon } from './icons';\n\nconst PreviewDefault = ({ url, name, children }) => (\n <div className=\"preview\">\n <div className=\"preview__file preview__file--default\">\n <div className=\"preview__file--icon\">\n <DefaultIcon />\n <span>Preview not available</span>\n </div>\n <div className=\"preview__details preview__details--file\">\n <p>\n <strong>File details</strong>\n <a href={url} rel=\"noopener noreferrer\" target=\"_blank\">\n Original\n </a>\n </p>\n </div>\n </div>\n {children}\n </div>\n);\n\nPreviewDefault.propTypes = {\n url: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired,\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired\n};\n\nexport { PreviewDefault };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,WAAW,QAAQ,SAAS;AAErC,MAAMC,cAAc,GAAGA,CAAC;EAAEC,GAAG;EAAEC,IAAI;EAAEC;AAAS,CAAC,kBAC7CN,KAAA,CAAAO,aAAA;EAAKC,SAAS,EAAC;AAAS,gBACtBR,KAAA,CAAAO,aAAA;EAAKC,SAAS,EAAC;AAAsC,gBACnDR,KAAA,CAAAO,aAAA;EAAKC,SAAS,EAAC;AAAqB,gBAClCR,KAAA,CAAAO,aAAA,CAACL,WAAW,MAAE,CAAC,eACfF,KAAA,CAAAO,aAAA,eAAM,uBAA2B,CAC9B,CAAC,eACNP,KAAA,CAAAO,aAAA;EAAKC,SAAS,EAAC;AAAyC,gBACtDR,KAAA,CAAAO,aAAA,yBACEP,KAAA,CAAAO,aAAA,iBAAQ,cAAoB,CAAC,eAC7BP,KAAA,CAAAO,aAAA;EAAGE,IAAI,EAAEL,GAAI;EAACM,GAAG,EAAC,qBAAqB;EAACC,MAAM,EAAC;AAAQ,GAAC,UAErD,CACF,CACA,CACF,CAAC,EACLL,QACE,CACN;AAEDH,cAAc,CAACS,SAAS,GAAG;EACzBR,GAAG,EAAEH,SAAS,CAACY,MAAM,CAACC,UAAU;EAChCT,IAAI,EAAEJ,SAAS,CAACY,MAAM,CAACC,UAAU;EACjCR,QAAQ,EAAEL,SAAS,CAACc,SAAS,CAAC,CAACd,SAAS,CAACe,OAAO,CAACf,SAAS,CAACgB,IAAI,CAAC,EAAEhB,SAAS,CAACgB,IAAI,CAAC,CAAC,CAACH;AACrF,CAAC;AAED,SAASX,cAAc","ignoreList":[]}
@@ -1,31 +0,0 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import Actions from '../Actions';
4
- const RawPreviewDefault = ({
5
- url,
6
- name,
7
- file
8
- }) => /*#__PURE__*/React.createElement("div", {
9
- className: "FilePreview"
10
- }, /*#__PURE__*/React.createElement("div", {
11
- className: "FilePreviewItem"
12
- }, /*#__PURE__*/React.createElement("div", {
13
- className: "FilePreviewItem__wrapper"
14
- }, /*#__PURE__*/React.createElement("img", {
15
- className: "FilePreviewItem__wrapper__default",
16
- src: url,
17
- alt: name
18
- })), /*#__PURE__*/React.createElement("div", {
19
- className: "FilePreviewItem__info"
20
- }, /*#__PURE__*/React.createElement("p", {
21
- className: "FilePreviewItem__info__fileName"
22
- }, name), /*#__PURE__*/React.createElement(Actions, {
23
- file: file
24
- }))));
25
- RawPreviewDefault.propTypes = {
26
- url: PropTypes.string.isRequired,
27
- name: PropTypes.string.isRequired,
28
- file: PropTypes.object.isRequired
29
- };
30
- export { RawPreviewDefault };
31
- //# sourceMappingURL=RawPreviewDefault.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RawPreviewDefault.js","names":["React","PropTypes","Actions","RawPreviewDefault","url","name","file","createElement","className","src","alt","propTypes","string","isRequired","object"],"sources":["../../../../src/components/FilePreview/previewDefault/RawPreviewDefault.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Actions from '../Actions';\n\nconst RawPreviewDefault = ({ url, name, file }) => (\n <div className=\"FilePreview\">\n <div className=\"FilePreviewItem\">\n <div className=\"FilePreviewItem__wrapper\">\n <img className=\"FilePreviewItem__wrapper__default\" src={url} alt={name} />\n </div>\n <div className=\"FilePreviewItem__info\">\n <p className=\"FilePreviewItem__info__fileName\">{name}</p>\n <Actions file={file} />\n </div>\n </div>\n </div>\n);\n\nRawPreviewDefault.propTypes = {\n url: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired,\n file: PropTypes.object.isRequired\n};\n\nexport { RawPreviewDefault };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,OAAO,MAAM,YAAY;AAEhC,MAAMC,iBAAiB,GAAGA,CAAC;EAAEC,GAAG;EAAEC,IAAI;EAAEC;AAAK,CAAC,kBAC5CN,KAAA,CAAAO,aAAA;EAAKC,SAAS,EAAC;AAAa,gBAC1BR,KAAA,CAAAO,aAAA;EAAKC,SAAS,EAAC;AAAiB,gBAC9BR,KAAA,CAAAO,aAAA;EAAKC,SAAS,EAAC;AAA0B,gBACvCR,KAAA,CAAAO,aAAA;EAAKC,SAAS,EAAC,mCAAmC;EAACC,GAAG,EAAEL,GAAI;EAACM,GAAG,EAAEL;AAAK,CAAE,CACtE,CAAC,eACNL,KAAA,CAAAO,aAAA;EAAKC,SAAS,EAAC;AAAuB,gBACpCR,KAAA,CAAAO,aAAA;EAAGC,SAAS,EAAC;AAAiC,GAAEH,IAAQ,CAAC,eACzDL,KAAA,CAAAO,aAAA,CAACL,OAAO;EAACI,IAAI,EAAEA;AAAK,CAAE,CACnB,CACF,CACF,CACN;AAEDH,iBAAiB,CAACQ,SAAS,GAAG;EAC5BP,GAAG,EAAEH,SAAS,CAACW,MAAM,CAACC,UAAU;EAChCR,IAAI,EAAEJ,SAAS,CAACW,MAAM,CAACC,UAAU;EACjCP,IAAI,EAAEL,SAAS,CAACa,MAAM,CAACD;AACzB,CAAC;AAED,SAASV,iBAAiB","ignoreList":[]}
@@ -1,121 +0,0 @@
1
- import React from 'react';
2
- const DefaultIcon = () => /*#__PURE__*/React.createElement("svg", {
3
- width: "24px",
4
- height: "24px",
5
- viewBox: "0 0 24 24",
6
- version: "1.1",
7
- xmlns: "http://www.w3.org/2000/svg"
8
- }, /*#__PURE__*/React.createElement("title", null, "gala:file-document"), /*#__PURE__*/React.createElement("g", {
9
- id: "Subscribe",
10
- stroke: "none",
11
- strokeWidth: "1",
12
- fill: "none",
13
- fillRule: "evenodd"
14
- }, /*#__PURE__*/React.createElement("g", {
15
- id: "Desktop",
16
- transform: "translate(-109.000000, -1998.000000)"
17
- }, /*#__PURE__*/React.createElement("g", {
18
- id: "gala:file-document",
19
- transform: "translate(109.000000, 1998.000000)"
20
- }, /*#__PURE__*/React.createElement("rect", {
21
- id: "ViewBox",
22
- x: "0",
23
- y: "0",
24
- width: "24",
25
- height: "24"
26
- }), /*#__PURE__*/React.createElement("g", {
27
- id: "galaFileDocument0",
28
- strokeLinecap: "round",
29
- transform: "translate(2.953125, 1.453125)",
30
- stroke: "#7C7D7E",
31
- strokeWidth: "1.5"
32
- }, /*#__PURE__*/React.createElement("line", {
33
- x1: "0.05",
34
- y1: "3.046875",
35
- x2: "0.05",
36
- y2: "18.0397125",
37
- id: "galaFileDocument1"
38
- }), /*#__PURE__*/React.createElement("line", {
39
- x1: "18.05",
40
- y1: "7.546875",
41
- x2: "18.05",
42
- y2: "18.046875",
43
- id: "galaFileDocument2",
44
- strokeLinejoin: "round"
45
- }), /*#__PURE__*/React.createElement("line", {
46
- x1: "3.046875",
47
- y1: "0.05",
48
- x2: "10.546875",
49
- y2: "0.05",
50
- id: "galaFileDocument3",
51
- strokeLinejoin: "round"
52
- }), /*#__PURE__*/React.createElement("line", {
53
- x1: "3.046875",
54
- y1: "21.05",
55
- x2: "15.046875",
56
- y2: "21.05",
57
- id: "galaFileDocument4"
58
- }), /*#__PURE__*/React.createElement("path", {
59
- d: "M18.046875,18.046875 C18.0550688,19.5451584 16.546875,21.046875 15.046875,21.046875",
60
- id: "galaFileDocument5",
61
- strokeLinejoin: "round"
62
- }), /*#__PURE__*/React.createElement("path", {
63
- d: "M3.046875,18.046875 C3.046875,19.546875 1.546875,21.046875 0.046875,21.046875",
64
- id: "galaFileDocument6",
65
- strokeLinejoin: "round",
66
- transform: "translate(1.546875, 19.546875) scale(-1, 1) translate(-1.546875, -19.546875) "
67
- }), /*#__PURE__*/React.createElement("path", {
68
- d: "M3.046875,0.0468751875 C3.046875,1.54469869 1.546875,3.0112935 0.046875,3.0446985",
69
- id: "galaFileDocument7",
70
- strokeLinejoin: "round",
71
- transform: "translate(1.546875, 1.545787) rotate(180.000000) translate(-1.546875, -1.545787) "
72
- }), /*#__PURE__*/React.createElement("line", {
73
- x1: "18.0386784",
74
- y1: "7.55360428",
75
- x2: "10.546875",
76
- y2: "0.046875",
77
- id: "galaFileDocument8",
78
- strokeLinejoin: "round"
79
- }), /*#__PURE__*/React.createElement("path", {
80
- d: "M13.546875,4.546875 C13.5422625,6.03871181 12.0408262,7.546875 10.546875,7.546875",
81
- id: "galaFileDocument9",
82
- strokeLinejoin: "round",
83
- transform: "translate(12.046875, 6.046875) scale(-1, 1) translate(-12.046875, -6.046875) "
84
- }), /*#__PURE__*/React.createElement("line", {
85
- x1: "10.55",
86
- y1: "4.546875",
87
- x2: "10.55",
88
- y2: "0.046875",
89
- id: "galaFileDocumenta",
90
- strokeLinejoin: "round"
91
- }), /*#__PURE__*/React.createElement("line", {
92
- x1: "13.546875",
93
- y1: "7.55",
94
- x2: "18.046875",
95
- y2: "7.55",
96
- id: "galaFileDocumentb",
97
- strokeLinejoin: "round"
98
- }), /*#__PURE__*/React.createElement("line", {
99
- x1: "3.046875",
100
- y1: "17.05",
101
- x2: "7.546875",
102
- y2: "17.05",
103
- id: "galaFileDocumentc",
104
- strokeLinejoin: "round"
105
- }), /*#__PURE__*/React.createElement("line", {
106
- x1: "3.046875",
107
- y1: "14.05",
108
- x2: "10.546875",
109
- y2: "14.05",
110
- id: "galaFileDocumentd",
111
- strokeLinejoin: "round"
112
- }), /*#__PURE__*/React.createElement("line", {
113
- x1: "3.046875",
114
- y1: "11.05",
115
- x2: "7.546875",
116
- y2: "11.05",
117
- id: "galaFileDocumente",
118
- strokeLinejoin: "round"
119
- }))))));
120
- export default DefaultIcon;
121
- //# sourceMappingURL=DefaultIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultIcon.js","names":["React","DefaultIcon","createElement","width","height","viewBox","version","xmlns","id","stroke","strokeWidth","fill","fillRule","transform","x","y","strokeLinecap","x1","y1","x2","y2","strokeLinejoin","d"],"sources":["../../../../../src/components/FilePreview/previewDefault/icons/DefaultIcon.js"],"sourcesContent":["import React from 'react';\n\nconst DefaultIcon = () => (\n <svg\n width=\"24px\"\n height=\"24px\"\n viewBox=\"0 0 24 24\"\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <title>gala:file-document</title>\n <g id=\"Subscribe\" stroke=\"none\" strokeWidth=\"1\" fill=\"none\" fillRule=\"evenodd\">\n <g id=\"Desktop\" transform=\"translate(-109.000000, -1998.000000)\">\n <g id=\"gala:file-document\" transform=\"translate(109.000000, 1998.000000)\">\n <rect id=\"ViewBox\" x=\"0\" y=\"0\" width=\"24\" height=\"24\" />\n <g\n id=\"galaFileDocument0\"\n strokeLinecap=\"round\"\n transform=\"translate(2.953125, 1.453125)\"\n stroke=\"#7C7D7E\"\n strokeWidth=\"1.5\">\n <line x1=\"0.05\" y1=\"3.046875\" x2=\"0.05\" y2=\"18.0397125\" id=\"galaFileDocument1\" />\n <line\n x1=\"18.05\"\n y1=\"7.546875\"\n x2=\"18.05\"\n y2=\"18.046875\"\n id=\"galaFileDocument2\"\n strokeLinejoin=\"round\"\n />\n <line\n x1=\"3.046875\"\n y1=\"0.05\"\n x2=\"10.546875\"\n y2=\"0.05\"\n id=\"galaFileDocument3\"\n strokeLinejoin=\"round\"\n />\n <line x1=\"3.046875\" y1=\"21.05\" x2=\"15.046875\" y2=\"21.05\" id=\"galaFileDocument4\" />\n <path\n d=\"M18.046875,18.046875 C18.0550688,19.5451584 16.546875,21.046875 15.046875,21.046875\"\n id=\"galaFileDocument5\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M3.046875,18.046875 C3.046875,19.546875 1.546875,21.046875 0.046875,21.046875\"\n id=\"galaFileDocument6\"\n strokeLinejoin=\"round\"\n transform=\"translate(1.546875, 19.546875) scale(-1, 1) translate(-1.546875, -19.546875) \"\n />\n <path\n d=\"M3.046875,0.0468751875 C3.046875,1.54469869 1.546875,3.0112935 0.046875,3.0446985\"\n id=\"galaFileDocument7\"\n strokeLinejoin=\"round\"\n transform=\"translate(1.546875, 1.545787) rotate(180.000000) translate(-1.546875, -1.545787) \"\n />\n <line\n x1=\"18.0386784\"\n y1=\"7.55360428\"\n x2=\"10.546875\"\n y2=\"0.046875\"\n id=\"galaFileDocument8\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M13.546875,4.546875 C13.5422625,6.03871181 12.0408262,7.546875 10.546875,7.546875\"\n id=\"galaFileDocument9\"\n strokeLinejoin=\"round\"\n transform=\"translate(12.046875, 6.046875) scale(-1, 1) translate(-12.046875, -6.046875) \"\n />\n <line\n x1=\"10.55\"\n y1=\"4.546875\"\n x2=\"10.55\"\n y2=\"0.046875\"\n id=\"galaFileDocumenta\"\n strokeLinejoin=\"round\"\n />\n <line\n x1=\"13.546875\"\n y1=\"7.55\"\n x2=\"18.046875\"\n y2=\"7.55\"\n id=\"galaFileDocumentb\"\n strokeLinejoin=\"round\"\n />\n <line\n x1=\"3.046875\"\n y1=\"17.05\"\n x2=\"7.546875\"\n y2=\"17.05\"\n id=\"galaFileDocumentc\"\n strokeLinejoin=\"round\"\n />\n <line\n x1=\"3.046875\"\n y1=\"14.05\"\n x2=\"10.546875\"\n y2=\"14.05\"\n id=\"galaFileDocumentd\"\n strokeLinejoin=\"round\"\n />\n <line\n x1=\"3.046875\"\n y1=\"11.05\"\n x2=\"7.546875\"\n y2=\"11.05\"\n id=\"galaFileDocumente\"\n strokeLinejoin=\"round\"\n />\n </g>\n </g>\n </g>\n </g>\n </svg>\n);\n\nexport default DefaultIcon;\n"],"mappings":"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","ignoreList":[]}