@blaze-cms/plugin-media-ui 0.146.0-translations.8 → 0.147.0-rc-eagle.2

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 (214) hide show
  1. package/lib/components/CardMedia/CardMedia.js +160 -223
  2. package/lib/components/CardMedia/CardMedia.js.map +1 -1
  3. package/lib/components/CardMedia/index.js +2 -3
  4. package/lib/components/CardMedia/index.js.map +1 -1
  5. package/lib/components/EditMediaFile/EditMediaFile.js +153 -164
  6. package/lib/components/EditMediaFile/EditMediaFile.js.map +1 -1
  7. package/lib/components/EditMediaFile/EditMediaFilePage.js +79 -96
  8. package/lib/components/EditMediaFile/EditMediaFilePage.js.map +1 -1
  9. package/lib/components/EditMediaFile/index.js +2 -3
  10. package/lib/components/EditMediaFile/index.js.map +1 -1
  11. package/lib/components/EditorAdapter/EditorAdapter.js +43 -22
  12. package/lib/components/EditorAdapter/EditorAdapter.js.map +1 -1
  13. package/lib/components/EditorAdapter/index.js +2 -3
  14. package/lib/components/EditorAdapter/index.js.map +1 -1
  15. package/lib/components/FileList/FilesListContext/index.js +3 -4
  16. package/lib/components/FileList/FilesListContext/index.js.map +1 -1
  17. package/lib/components/FileList/FilesListProvider/index.js +27 -29
  18. package/lib/components/FileList/FilesListProvider/index.js.map +1 -1
  19. package/lib/components/FileList/useFileList/index.js +3 -6
  20. package/lib/components/FileList/useFileList/index.js.map +1 -1
  21. package/lib/components/FileList/useGetFiles/getFiles.js +164 -184
  22. package/lib/components/FileList/useGetFiles/getFiles.js.map +1 -1
  23. package/lib/components/FileList/useGetFiles/index.js +2 -3
  24. package/lib/components/FileList/useGetFiles/index.js.map +1 -1
  25. package/lib/components/FileList/useGetFiles/useGetFiles.js +88 -132
  26. package/lib/components/FileList/useGetFiles/useGetFiles.js.map +1 -1
  27. package/lib/components/FileList/useGetFilesList/getCounters.js +10 -30
  28. package/lib/components/FileList/useGetFilesList/getCounters.js.map +1 -1
  29. package/lib/components/FileList/useGetFilesList/index.js +2 -3
  30. package/lib/components/FileList/useGetFilesList/index.js.map +1 -1
  31. package/lib/components/FileList/useGetFilesList/useGetFilesList.js +89 -109
  32. package/lib/components/FileList/useGetFilesList/useGetFilesList.js.map +1 -1
  33. package/lib/components/FilePreview/Actions/index.js +24 -38
  34. package/lib/components/FilePreview/Actions/index.js.map +1 -1
  35. package/lib/components/FilePreview/Image/Image.js +31 -33
  36. package/lib/components/FilePreview/Image/Image.js.map +1 -1
  37. package/lib/components/FilePreview/Image/RawImage.js +25 -27
  38. package/lib/components/FilePreview/Image/RawImage.js.map +1 -1
  39. package/lib/components/FilePreview/Image/imageSchema.js +1 -2
  40. package/lib/components/FilePreview/Image/imageSchema.js.map +1 -1
  41. package/lib/components/FilePreview/Image/index.js +1 -2
  42. package/lib/components/FilePreview/Image/index.js.map +1 -1
  43. package/lib/components/FilePreview/ModalContext.js +1 -2
  44. package/lib/components/FilePreview/ModalContext.js.map +1 -1
  45. package/lib/components/FilePreview/PDF/PDF.js +44 -31
  46. package/lib/components/FilePreview/PDF/PDF.js.map +1 -1
  47. package/lib/components/FilePreview/PDF/RawPDF.js +27 -29
  48. package/lib/components/FilePreview/PDF/RawPDF.js.map +1 -1
  49. package/lib/components/FilePreview/PDF/index.js +1 -2
  50. package/lib/components/FilePreview/PDF/index.js.map +1 -1
  51. package/lib/components/FilePreview/PDF/schema.js +1 -2
  52. package/lib/components/FilePreview/PDF/schema.js.map +1 -1
  53. package/lib/components/FilePreview/get-preview.js +12 -10
  54. package/lib/components/FilePreview/get-preview.js.map +1 -1
  55. package/lib/components/FilePreview/index.js +59 -62
  56. package/lib/components/FilePreview/index.js.map +1 -1
  57. package/lib/components/FilePreview/previewDefault/PreviewDefault.js +35 -23
  58. package/lib/components/FilePreview/previewDefault/PreviewDefault.js.map +1 -1
  59. package/lib/components/FilePreview/previewDefault/RawPreviewDefault.js +33 -35
  60. package/lib/components/FilePreview/previewDefault/RawPreviewDefault.js.map +1 -1
  61. package/lib/components/FilePreview/previewDefault/icons/DefaultIcon.js +120 -123
  62. package/lib/components/FilePreview/previewDefault/icons/DefaultIcon.js.map +1 -1
  63. package/lib/components/FilePreview/previewDefault/icons/index.js +2 -3
  64. package/lib/components/FilePreview/previewDefault/icons/index.js.map +1 -1
  65. package/lib/components/FilePreview/previewDefault/index.js +1 -2
  66. package/lib/components/FilePreview/previewDefault/index.js.map +1 -1
  67. package/lib/components/FilePreview/previewDefault/previewDefaultSchema.js +1 -2
  68. package/lib/components/FilePreview/previewDefault/previewDefaultSchema.js.map +1 -1
  69. package/lib/components/FilePreviewReadOnly/FileList.js +10 -12
  70. package/lib/components/FilePreviewReadOnly/FileList.js.map +1 -1
  71. package/lib/components/FilePreviewReadOnly/FilePreviewList.js +14 -19
  72. package/lib/components/FilePreviewReadOnly/FilePreviewList.js.map +1 -1
  73. package/lib/components/FilePreviewReadOnly/FilePreviewReadOnly.js +52 -98
  74. package/lib/components/FilePreviewReadOnly/FilePreviewReadOnly.js.map +1 -1
  75. package/lib/components/FilePreviewReadOnly/index.js +2 -3
  76. package/lib/components/FilePreviewReadOnly/index.js.map +1 -1
  77. package/lib/components/FilePreviewReadOnly/mappers/format-initial-value.js +7 -8
  78. package/lib/components/FilePreviewReadOnly/mappers/format-initial-value.js.map +1 -1
  79. package/lib/components/FilePreviewReadOnly/mappers/index.js +1 -2
  80. package/lib/components/FilePreviewReadOnly/mappers/index.js.map +1 -1
  81. package/lib/components/FileUploadAdapter/FileList.js +26 -39
  82. package/lib/components/FileUploadAdapter/FileList.js.map +1 -1
  83. package/lib/components/FileUploadAdapter/FilePreviewList.js +14 -19
  84. package/lib/components/FileUploadAdapter/FilePreviewList.js.map +1 -1
  85. package/lib/components/FileUploadAdapter/FileReorderList.js +18 -21
  86. package/lib/components/FileUploadAdapter/FileReorderList.js.map +1 -1
  87. package/lib/components/FileUploadAdapter/FileReorderListItem.js +20 -23
  88. package/lib/components/FileUploadAdapter/FileReorderListItem.js.map +1 -1
  89. package/lib/components/FileUploadAdapter/FileUploadAdapter.js +219 -342
  90. package/lib/components/FileUploadAdapter/FileUploadAdapter.js.map +1 -1
  91. package/lib/components/FileUploadAdapter/index.js +2 -3
  92. package/lib/components/FileUploadAdapter/index.js.map +1 -1
  93. package/lib/components/FileUploadAdapter/mappers/format-initial-value.js +7 -8
  94. package/lib/components/FileUploadAdapter/mappers/format-initial-value.js.map +1 -1
  95. package/lib/components/FileUploadAdapter/mappers/get-button-text.js +9 -10
  96. package/lib/components/FileUploadAdapter/mappers/get-button-text.js.map +1 -1
  97. package/lib/components/FileUploadAdapter/mappers/get-format.js +7 -13
  98. package/lib/components/FileUploadAdapter/mappers/get-format.js.map +1 -1
  99. package/lib/components/FileUploadAdapter/mappers/get-number-files-pending-to-fetch.js +2 -2
  100. package/lib/components/FileUploadAdapter/mappers/get-number-files-pending-to-fetch.js.map +1 -1
  101. package/lib/components/FileUploadAdapter/mappers/index.js +6 -7
  102. package/lib/components/FileUploadAdapter/mappers/index.js.map +1 -1
  103. package/lib/components/FileUploadAdapter/mappers/is-unselecting.js +2 -10
  104. package/lib/components/FileUploadAdapter/mappers/is-unselecting.js.map +1 -1
  105. package/lib/components/FileUploadAdapter/mappers/transform-to-array.js +2 -5
  106. package/lib/components/FileUploadAdapter/mappers/transform-to-array.js.map +1 -1
  107. package/lib/components/FileUploadAdapter/useLimit.js +4 -10
  108. package/lib/components/FileUploadAdapter/useLimit.js.map +1 -1
  109. package/lib/components/FileUploadModal/FileUploadModal.js +142 -169
  110. package/lib/components/FileUploadModal/FileUploadModal.js.map +1 -1
  111. package/lib/components/FileUploadModal/index.js +2 -3
  112. package/lib/components/FileUploadModal/index.js.map +1 -1
  113. package/lib/components/FilterPanel/FilterPanel.js +68 -88
  114. package/lib/components/FilterPanel/FilterPanel.js.map +1 -1
  115. package/lib/components/FilterPanel/index.js +2 -3
  116. package/lib/components/FilterPanel/index.js.map +1 -1
  117. package/lib/components/ListingContainer/Listing/Listing.js +55 -57
  118. package/lib/components/ListingContainer/Listing/Listing.js.map +1 -1
  119. package/lib/components/ListingContainer/Listing/MediaListing/MediaFileList/MediaFileList.js +71 -92
  120. package/lib/components/ListingContainer/Listing/MediaListing/MediaFileList/MediaFileList.js.map +1 -1
  121. package/lib/components/ListingContainer/Listing/MediaListing/MediaFileList/index.js +2 -3
  122. package/lib/components/ListingContainer/Listing/MediaListing/MediaFileList/index.js.map +1 -1
  123. package/lib/components/ListingContainer/Listing/MediaListing/MediaListing.js +14 -26
  124. package/lib/components/ListingContainer/Listing/MediaListing/MediaListing.js.map +1 -1
  125. package/lib/components/ListingContainer/Listing/MediaListing/index.js +2 -3
  126. package/lib/components/ListingContainer/Listing/MediaListing/index.js.map +1 -1
  127. package/lib/components/ListingContainer/Listing/index.js +2 -3
  128. package/lib/components/ListingContainer/Listing/index.js.map +1 -1
  129. package/lib/components/ListingContainer/ListingContainer.js +62 -94
  130. package/lib/components/ListingContainer/ListingContainer.js.map +1 -1
  131. package/lib/components/ListingContainer/index.js +2 -3
  132. package/lib/components/ListingContainer/index.js.map +1 -1
  133. package/lib/components/ListingContainer/mappers/exist-previous.js +3 -10
  134. package/lib/components/ListingContainer/mappers/exist-previous.js.map +1 -1
  135. package/lib/components/ListingContainer/mappers/index.js +2 -3
  136. package/lib/components/ListingContainer/mappers/index.js.map +1 -1
  137. package/lib/components/MediaListing.js +14 -26
  138. package/lib/components/MediaListing.js.map +1 -1
  139. package/lib/constants.js +15 -16
  140. package/lib/constants.js.map +1 -1
  141. package/lib/icons/MediaLibraryIcon.js +17 -20
  142. package/lib/icons/MediaLibraryIcon.js.map +1 -1
  143. package/lib/icons/index.js +2 -3
  144. package/lib/icons/index.js.map +1 -1
  145. package/lib/index.js +67 -92
  146. package/lib/index.js.map +1 -1
  147. package/lib/utils/available-filters/available-filters.js +1 -2
  148. package/lib/utils/available-filters/available-filters.js.map +1 -1
  149. package/lib/utils/bustUrl.js +13 -0
  150. package/lib/utils/bustUrl.js.map +1 -0
  151. package/lib/utils/media-context/index.js +4 -5
  152. package/lib/utils/media-context/index.js.map +1 -1
  153. package/lib/utils/media-context/media-context.js +3 -4
  154. package/lib/utils/media-context/media-context.js.map +1 -1
  155. package/lib/utils/media-context/useMediaContext.js +2 -4
  156. package/lib/utils/media-context/useMediaContext.js.map +1 -1
  157. package/lib-es/components/CardMedia/CardMedia.js +7 -3
  158. package/lib-es/components/CardMedia/CardMedia.js.map +1 -1
  159. package/lib-es/components/EditMediaFile/EditMediaFile.js +74 -39
  160. package/lib-es/components/EditMediaFile/EditMediaFile.js.map +1 -1
  161. package/lib-es/components/EditMediaFile/EditMediaFilePage.js +35 -13
  162. package/lib-es/components/EditMediaFile/EditMediaFilePage.js.map +1 -1
  163. package/lib-es/components/EditorAdapter/EditorAdapter.js +26 -6
  164. package/lib-es/components/EditorAdapter/EditorAdapter.js.map +1 -1
  165. package/lib-es/components/FileList/useGetFiles/getFiles.js.map +1 -1
  166. package/lib-es/components/FileList/useGetFilesList/useGetFilesList.js.map +1 -1
  167. package/lib-es/components/FilePreview/Actions/index.js +2 -2
  168. package/lib-es/components/FilePreview/Actions/index.js.map +1 -1
  169. package/lib-es/components/FilePreview/PDF/PDF.js +19 -4
  170. package/lib-es/components/FilePreview/PDF/PDF.js.map +1 -1
  171. package/lib-es/components/FilePreview/index.js +10 -3
  172. package/lib-es/components/FilePreview/index.js.map +1 -1
  173. package/lib-es/components/FilePreview/previewDefault/PreviewDefault.js +18 -4
  174. package/lib-es/components/FilePreview/previewDefault/PreviewDefault.js.map +1 -1
  175. package/lib-es/components/FilePreviewReadOnly/FileList.js +2 -2
  176. package/lib-es/components/FilePreviewReadOnly/FileList.js.map +1 -1
  177. package/lib-es/components/FilePreviewReadOnly/FilePreviewReadOnly.js +14 -12
  178. package/lib-es/components/FilePreviewReadOnly/FilePreviewReadOnly.js.map +1 -1
  179. package/lib-es/components/FileUploadAdapter/FileList.js.map +1 -1
  180. package/lib-es/components/FileUploadAdapter/FileUploadAdapter.js +8 -2
  181. package/lib-es/components/FileUploadAdapter/FileUploadAdapter.js.map +1 -1
  182. package/lib-es/components/FileUploadAdapter/mappers/get-button-text.js.map +1 -1
  183. package/lib-es/components/FileUploadAdapter/useLimit.js.map +1 -1
  184. package/lib-es/components/FileUploadModal/FileUploadModal.js +51 -9
  185. package/lib-es/components/FileUploadModal/FileUploadModal.js.map +1 -1
  186. package/lib-es/components/FilterPanel/FilterPanel.js.map +1 -1
  187. package/lib-es/components/ListingContainer/Listing/MediaListing/MediaFileList/MediaFileList.js +6 -2
  188. package/lib-es/components/ListingContainer/Listing/MediaListing/MediaFileList/MediaFileList.js.map +1 -1
  189. package/lib-es/index.js +20 -4
  190. package/lib-es/index.js.map +1 -1
  191. package/lib-es/utils/bustUrl.js +7 -0
  192. package/lib-es/utils/bustUrl.js.map +1 -0
  193. package/package.json +25 -17
  194. package/src/components/CardMedia/CardMedia.js +6 -7
  195. package/src/components/EditMediaFile/EditMediaFile.js +75 -46
  196. package/src/components/EditMediaFile/EditMediaFilePage.js +33 -13
  197. package/src/components/EditorAdapter/EditorAdapter.js +31 -4
  198. package/src/components/FileList/useGetFilesList/useGetFilesList.js +15 -14
  199. package/src/components/FilePreview/Actions/index.js +25 -27
  200. package/src/components/FilePreview/PDF/PDF.js +17 -4
  201. package/src/components/FilePreview/index.js +9 -3
  202. package/src/components/FilePreview/previewDefault/PreviewDefault.js +16 -3
  203. package/src/components/FilePreviewReadOnly/FileList.js +1 -3
  204. package/src/components/FilePreviewReadOnly/FilePreviewReadOnly.js +17 -29
  205. package/src/components/FileUploadAdapter/FileUploadAdapter.js +52 -55
  206. package/src/components/FileUploadAdapter/useLimit.js +5 -8
  207. package/src/components/FileUploadModal/FileUploadModal.js +57 -38
  208. package/src/components/FilterPanel/FilterPanel.js +18 -23
  209. package/src/components/ListingContainer/Listing/MediaListing/MediaFileList/MediaFileList.js +22 -34
  210. package/src/index.js +17 -10
  211. package/src/utils/bustUrl.js +6 -0
  212. package/CHANGELOG.md +0 -1243
  213. package/babel.config.js +0 -3
  214. package/jest.config.js +0 -5
@@ -1,205 +1,185 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.object.define-property.js");
4
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
- exports["default"] = void 0;
9
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
10
- require("core-js/modules/es.array.concat.js");
11
- require("core-js/modules/es.array.includes.js");
12
- require("core-js/modules/es.array.map.js");
13
- require("core-js/modules/es.string.includes.js");
14
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
15
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
6
+ exports.default = void 0;
16
7
  var _adminUiUtils = require("@blaze-cms/admin-ui-utils");
17
8
  var _constants = require("../../../constants");
18
- var getFromSearch = /*#__PURE__*/function () {
19
- var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(_ref) {
20
- var searchTerm, offset, limit, where, client, _ref$fileStores, fileStores, allTypesMatches, matchSpecificType, match, mustMatch, storeKeys, _yield$client$query, _yield$client$query$d, files, all, image, video, text;
21
- return _regenerator["default"].wrap(function _callee$(_context) {
22
- while (1) switch (_context.prev = _context.next) {
23
- case 0:
24
- searchTerm = _ref.searchTerm, offset = _ref.offset, limit = _ref.limit, where = _ref.where, client = _ref.client, _ref$fileStores = _ref.fileStores, fileStores = _ref$fileStores === void 0 ? [] : _ref$fileStores;
25
- allTypesMatches = [{
26
- match: {
27
- type: 'image'
28
- }
29
- }, {
30
- match: {
31
- type: 'video'
32
- }
33
- }, {
34
- match: {
35
- type: 'text'
36
- }
37
- }];
38
- matchSpecificType = [{
39
- match: {
40
- type: where.type
41
- }
42
- }];
43
- match = !where.type || where.type === _constants.ALL ? allTypesMatches : matchSpecificType;
44
- mustMatch = [];
45
- if (searchTerm) {
46
- mustMatch.push({
47
- simple_query_string: {
48
- query: "".concat(searchTerm, "*"),
49
- analyze_wildcard: true,
50
- fields: ['name', 'filename', 'data.altText', 'data.caption', 'data.title', 'data.credits']
9
+ const getFromSearch = async ({
10
+ searchTerm,
11
+ offset,
12
+ limit,
13
+ where,
14
+ client,
15
+ fileStores = []
16
+ }) => {
17
+ const allTypesMatches = [{
18
+ match: {
19
+ type: 'image'
20
+ }
21
+ }, {
22
+ match: {
23
+ type: 'video'
24
+ }
25
+ }, {
26
+ match: {
27
+ type: 'text'
28
+ }
29
+ }];
30
+ const matchSpecificType = [{
31
+ match: {
32
+ type: where.type
33
+ }
34
+ }];
35
+ const match = !where.type || where.type === _constants.ALL ? allTypesMatches : matchSpecificType;
36
+ const mustMatch = [];
37
+ if (searchTerm) {
38
+ mustMatch.push({
39
+ simple_query_string: {
40
+ query: `${searchTerm}*`,
41
+ analyze_wildcard: true,
42
+ fields: ['name', 'filename', 'data.altText', 'data.caption', 'data.title', 'data.credits']
43
+ }
44
+ });
45
+ }
46
+ const storeKeys = [];
47
+ if (_constants.INVALID_STORE_KEY_VALUES.includes(where.storeKey)) {
48
+ storeKeys.push(...fileStores.map(({
49
+ key
50
+ }) => key));
51
+ } else if (where.storeKey) {
52
+ storeKeys.push(where.storeKey);
53
+ }
54
+ mustMatch.push({
55
+ bool: {
56
+ should: storeKeys.map(storeKey => ({
57
+ match: {
58
+ storeKey
59
+ }
60
+ })),
61
+ minimum_should_match: 1
62
+ }
63
+ });
64
+ const {
65
+ data: {
66
+ files: {
67
+ results: files
68
+ },
69
+ all,
70
+ image,
71
+ video,
72
+ text
73
+ }
74
+ } = await client.query({
75
+ query: (0, _adminUiUtils.getQuery)('SEARCH_ADMIN_MEDIA'),
76
+ fetchPolicy: 'network-only',
77
+ variables: {
78
+ offset,
79
+ limit,
80
+ sort: searchTerm ? null : 'updated:desc',
81
+ rawQuery: {
82
+ query: {
83
+ bool: {
84
+ must: [...mustMatch, {
85
+ bool: {
86
+ should: match
51
87
  }
52
- });
53
- }
54
- storeKeys = [];
55
- if (_constants.INVALID_STORE_KEY_VALUES.includes(where.storeKey)) {
56
- storeKeys.push.apply(storeKeys, (0, _toConsumableArray2["default"])(fileStores.map(function (_ref3) {
57
- var key = _ref3.key;
58
- return key;
59
- })));
60
- } else if (where.storeKey) {
61
- storeKeys.push(where.storeKey);
88
+ }]
62
89
  }
63
- mustMatch.push({
64
- bool: {
65
- should: storeKeys.map(function (storeKey) {
66
- return {
90
+ }
91
+ },
92
+ rawQueryAllResults: {
93
+ query: {
94
+ bool: {
95
+ must: [...mustMatch, {
96
+ bool: {
97
+ should: [{
67
98
  match: {
68
- storeKey: storeKey
99
+ type: 'image'
69
100
  }
70
- };
71
- }),
72
- minimum_should_match: 1
73
- }
74
- });
75
- _context.next = 11;
76
- return client.query({
77
- query: (0, _adminUiUtils.getQuery)('SEARCH_ADMIN_MEDIA'),
78
- fetchPolicy: 'network-only',
79
- variables: {
80
- offset: offset,
81
- limit: limit,
82
- sort: searchTerm ? null : 'updated:desc',
83
- rawQuery: {
84
- query: {
85
- bool: {
86
- must: [].concat(mustMatch, [{
87
- bool: {
88
- should: match
89
- }
90
- }])
101
+ }, {
102
+ match: {
103
+ type: 'video'
91
104
  }
92
- }
93
- },
94
- rawQueryAllResults: {
95
- query: {
96
- bool: {
97
- must: [].concat(mustMatch, [{
98
- bool: {
99
- should: [{
100
- match: {
101
- type: 'image'
102
- }
103
- }, {
104
- match: {
105
- type: 'video'
106
- }
107
- }, {
108
- match: {
109
- type: 'text'
110
- }
111
- }]
112
- }
113
- }])
105
+ }, {
106
+ match: {
107
+ type: 'text'
114
108
  }
115
- }
116
- },
117
- rawQueryImages: {
118
- query: {
119
- bool: {
120
- must: [].concat(mustMatch, [{
121
- bool: {
122
- should: [{
123
- match: {
124
- type: 'image'
125
- }
126
- }]
127
- }
128
- }])
109
+ }]
110
+ }
111
+ }]
112
+ }
113
+ }
114
+ },
115
+ rawQueryImages: {
116
+ query: {
117
+ bool: {
118
+ must: [...mustMatch, {
119
+ bool: {
120
+ should: [{
121
+ match: {
122
+ type: 'image'
129
123
  }
130
- }
131
- },
132
- rawQueryVideos: {
133
- query: {
134
- bool: {
135
- must: [].concat(mustMatch, [{
136
- bool: {
137
- should: [{
138
- match: {
139
- type: 'video'
140
- }
141
- }]
142
- }
143
- }])
124
+ }]
125
+ }
126
+ }]
127
+ }
128
+ }
129
+ },
130
+ rawQueryVideos: {
131
+ query: {
132
+ bool: {
133
+ must: [...mustMatch, {
134
+ bool: {
135
+ should: [{
136
+ match: {
137
+ type: 'video'
144
138
  }
145
- }
146
- },
147
- rawQueryDocs: {
148
- query: {
149
- bool: {
150
- must: [].concat(mustMatch, [{
151
- bool: {
152
- should: [{
153
- match: {
154
- type: 'text'
155
- }
156
- }]
157
- }
158
- }])
139
+ }]
140
+ }
141
+ }]
142
+ }
143
+ }
144
+ },
145
+ rawQueryDocs: {
146
+ query: {
147
+ bool: {
148
+ must: [...mustMatch, {
149
+ bool: {
150
+ should: [{
151
+ match: {
152
+ type: 'text'
159
153
  }
160
- }
154
+ }]
161
155
  }
162
- }
163
- });
164
- case 11:
165
- _yield$client$query = _context.sent;
166
- _yield$client$query$d = _yield$client$query.data;
167
- files = _yield$client$query$d.files.results;
168
- all = _yield$client$query$d.all;
169
- image = _yield$client$query$d.image;
170
- video = _yield$client$query$d.video;
171
- text = _yield$client$query$d.text;
172
- return _context.abrupt("return", {
173
- files: files,
174
- all: all,
175
- image: image,
176
- video: video,
177
- text: text
178
- });
179
- case 19:
180
- case "end":
181
- return _context.stop();
156
+ }]
157
+ }
158
+ }
182
159
  }
183
- }, _callee);
184
- }));
185
- return function getFromSearch(_x) {
186
- return _ref2.apply(this, arguments);
187
- };
188
- }();
189
- var getFiles = function getFiles(_ref4, client) {
190
- var offset = _ref4.offset,
191
- limit = _ref4.limit,
192
- where = _ref4.where,
193
- searchTerm = _ref4.searchTerm,
194
- fileStores = _ref4.fileStores;
195
- return getFromSearch({
196
- searchTerm: searchTerm,
197
- offset: offset,
198
- limit: limit,
199
- where: where,
200
- client: client,
201
- fileStores: fileStores
160
+ }
202
161
  });
162
+ return {
163
+ files,
164
+ all,
165
+ image,
166
+ video,
167
+ text
168
+ };
203
169
  };
204
- var _default = exports["default"] = getFiles;
170
+ const getFiles = ({
171
+ offset,
172
+ limit,
173
+ where,
174
+ searchTerm,
175
+ fileStores
176
+ }, client) => getFromSearch({
177
+ searchTerm,
178
+ offset,
179
+ limit,
180
+ where,
181
+ client,
182
+ fileStores
183
+ });
184
+ var _default = exports.default = getFiles;
205
185
  //# sourceMappingURL=getFiles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getFiles.js","names":["_adminUiUtils","require","_constants","getFromSearch","_ref2","_asyncToGenerator2","_regenerator","mark","_callee","_ref","searchTerm","offset","limit","where","client","_ref$fileStores","fileStores","allTypesMatches","matchSpecificType","match","mustMatch","storeKeys","_yield$client$query","_yield$client$query$d","files","all","image","video","text","wrap","_callee$","_context","prev","next","type","ALL","push","simple_query_string","query","concat","analyze_wildcard","fields","INVALID_STORE_KEY_VALUES","includes","storeKey","apply","_toConsumableArray2","map","_ref3","key","bool","should","minimum_should_match","getQuery","fetchPolicy","variables","sort","rawQuery","must","rawQueryAllResults","rawQueryImages","rawQueryVideos","rawQueryDocs","sent","data","results","abrupt","stop","_x","arguments","getFiles","_ref4","_default","exports"],"sources":["../../../../src/components/FileList/useGetFiles/getFiles.js"],"sourcesContent":["import { getQuery } from '@blaze-cms/admin-ui-utils';\nimport { ALL, INVALID_STORE_KEY_VALUES } from '../../../constants';\n\nconst getFromSearch = async ({ searchTerm, offset, limit, where, client, fileStores = [] }) => {\n const allTypesMatches = [\n {\n match: { type: 'image' }\n },\n {\n match: { type: 'video' }\n },\n {\n match: { type: 'text' }\n }\n ];\n const matchSpecificType = [\n {\n match: { type: where.type }\n }\n ];\n const match = !where.type || where.type === ALL ? allTypesMatches : matchSpecificType;\n const mustMatch = [];\n\n if (searchTerm) {\n mustMatch.push({\n simple_query_string: {\n query: `${searchTerm}*`,\n analyze_wildcard: true,\n fields: ['name', 'filename', 'data.altText', 'data.caption', 'data.title', 'data.credits']\n }\n });\n }\n\n const storeKeys = [];\n if (INVALID_STORE_KEY_VALUES.includes(where.storeKey)) {\n storeKeys.push(...fileStores.map(({ key }) => key));\n } else if (where.storeKey) {\n storeKeys.push(where.storeKey);\n }\n\n mustMatch.push({\n bool: {\n should: storeKeys.map(storeKey => ({\n match: { storeKey }\n })),\n minimum_should_match: 1\n }\n });\n\n const {\n data: {\n files: { results: files },\n all,\n image,\n video,\n text\n }\n } = await client.query({\n query: getQuery('SEARCH_ADMIN_MEDIA'),\n fetchPolicy: 'network-only',\n variables: {\n offset,\n limit,\n sort: searchTerm ? null : 'updated:desc',\n rawQuery: {\n query: {\n bool: {\n must: [\n ...mustMatch,\n {\n bool: {\n should: match\n }\n }\n ]\n }\n }\n },\n rawQueryAllResults: {\n query: {\n bool: {\n must: [\n ...mustMatch,\n {\n bool: {\n should: [\n {\n match: { type: 'image' }\n },\n {\n match: { type: 'video' }\n },\n {\n match: { type: 'text' }\n }\n ]\n }\n }\n ]\n }\n }\n },\n rawQueryImages: {\n query: {\n bool: {\n must: [\n ...mustMatch,\n {\n bool: {\n should: [\n {\n match: { type: 'image' }\n }\n ]\n }\n }\n ]\n }\n }\n },\n rawQueryVideos: {\n query: {\n bool: {\n must: [\n ...mustMatch,\n {\n bool: {\n should: [\n {\n match: { type: 'video' }\n }\n ]\n }\n }\n ]\n }\n }\n },\n rawQueryDocs: {\n query: {\n bool: {\n must: [\n ...mustMatch,\n {\n bool: {\n should: [\n {\n match: { type: 'text' }\n }\n ]\n }\n }\n ]\n }\n }\n }\n }\n });\n\n return { files, all, image, video, text };\n};\n\nconst getFiles = ({ offset, limit, where, searchTerm, fileStores }, client) =>\n getFromSearch({ searchTerm, offset, limit, where, client, fileStores });\n\nexport default getFiles;\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAA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C,KAAK,EAALA,KAAK;IAAEC,MAAM,EAANA,MAAM;IAAEE,UAAU,EAAVA;EAAW,CAAC,CAAC;AAAA;AAAC,IAAAwD,QAAA,GAAAC,OAAA,cAE3DH,QAAQ","ignoreList":[]}
1
+ {"version":3,"file":"getFiles.js","names":["_adminUiUtils","require","_constants","getFromSearch","searchTerm","offset","limit","where","client","fileStores","allTypesMatches","match","type","matchSpecificType","ALL","mustMatch","push","simple_query_string","query","analyze_wildcard","fields","storeKeys","INVALID_STORE_KEY_VALUES","includes","storeKey","map","key","bool","should","minimum_should_match","data","files","results","all","image","video","text","getQuery","fetchPolicy","variables","sort","rawQuery","must","rawQueryAllResults","rawQueryImages","rawQueryVideos","rawQueryDocs","getFiles","_default","exports","default"],"sources":["../../../../src/components/FileList/useGetFiles/getFiles.js"],"sourcesContent":["import { getQuery } from '@blaze-cms/admin-ui-utils';\nimport { ALL, INVALID_STORE_KEY_VALUES } from '../../../constants';\n\nconst getFromSearch = async ({ searchTerm, offset, limit, where, client, fileStores = [] }) => {\n const allTypesMatches = [\n {\n match: { type: 'image' }\n },\n {\n match: { type: 'video' }\n },\n {\n match: { type: 'text' }\n }\n ];\n const matchSpecificType = [\n {\n match: { type: where.type }\n }\n ];\n const match = !where.type || where.type === ALL ? allTypesMatches : matchSpecificType;\n const mustMatch = [];\n\n if (searchTerm) {\n mustMatch.push({\n simple_query_string: {\n query: `${searchTerm}*`,\n analyze_wildcard: true,\n fields: ['name', 'filename', 'data.altText', 'data.caption', 'data.title', 'data.credits']\n }\n });\n }\n\n const storeKeys = [];\n if (INVALID_STORE_KEY_VALUES.includes(where.storeKey)) {\n storeKeys.push(...fileStores.map(({ key }) => key));\n } else if (where.storeKey) {\n storeKeys.push(where.storeKey);\n }\n\n mustMatch.push({\n bool: {\n should: storeKeys.map(storeKey => ({\n match: { storeKey }\n })),\n minimum_should_match: 1\n }\n });\n\n const {\n data: {\n files: { results: files },\n all,\n image,\n video,\n text\n }\n } = await client.query({\n query: getQuery('SEARCH_ADMIN_MEDIA'),\n fetchPolicy: 'network-only',\n variables: {\n offset,\n limit,\n sort: searchTerm ? null : 'updated:desc',\n rawQuery: {\n query: {\n bool: {\n must: [\n ...mustMatch,\n {\n bool: {\n should: match\n }\n }\n ]\n }\n }\n },\n rawQueryAllResults: {\n query: {\n bool: {\n must: [\n ...mustMatch,\n {\n bool: {\n should: [\n {\n match: { type: 'image' }\n },\n {\n match: { type: 'video' }\n },\n {\n match: { type: 'text' }\n }\n ]\n }\n }\n ]\n }\n }\n },\n rawQueryImages: {\n query: {\n bool: {\n must: [\n ...mustMatch,\n {\n bool: {\n should: [\n {\n match: { type: 'image' }\n }\n ]\n }\n }\n ]\n }\n }\n },\n rawQueryVideos: {\n query: {\n bool: {\n must: [\n ...mustMatch,\n {\n bool: {\n should: [\n {\n match: { type: 'video' }\n }\n ]\n }\n }\n ]\n }\n }\n },\n rawQueryDocs: {\n query: {\n bool: {\n must: [\n ...mustMatch,\n {\n bool: {\n should: [\n {\n match: { type: 'text' }\n }\n ]\n }\n }\n ]\n }\n }\n }\n }\n });\n\n return { files, all, image, video, text };\n};\n\nconst getFiles = ({ offset, limit, where, searchTerm, fileStores }, client) =>\n getFromSearch({ searchTerm, offset, limit, where, client, fileStores });\n\nexport default getFiles;\n"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAEA,MAAME,aAAa,GAAG,MAAAA,CAAO;EAAEC,UAAU;EAAEC,MAAM;EAAEC,KAAK;EAAEC,KAAK;EAAEC,MAAM;EAAEC,UAAU,GAAG;AAAG,CAAC,KAAK;EAC7F,MAAMC,eAAe,GAAG,CACtB;IACEC,KAAK,EAAE;MAAEC,IAAI,EAAE;IAAQ;EACzB,CAAC,EACD;IACED,KAAK,EAAE;MAAEC,IAAI,EAAE;IAAQ;EACzB,CAAC,EACD;IACED,KAAK,EAAE;MAAEC,IAAI,EAAE;IAAO;EACxB,CAAC,CACF;EACD,MAA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AY,EAAE;QACZ5B,KAAK,EAAE;UACLS,IAAI,EAAE;YACJe,IAAI,EAAE,CACJ,GAAG3B,SAAS,EACZ;cACEY,IAAI,EAAE;gBACJC,MAAM,EAAE,CACN;kBACEjB,KAAK,EAAE;oBAAEC,IAAI,EAAE;kBAAO;gBACxB,CAAC;cAEL;YACF,CAAC;UAEL;QACF;MACF;IACF;EACF,CAAC,CAAC;EAEF,OAAO;IAAEmB,KAAK;IAAEE,GAAG;IAAEC,KAAK;IAAEC,KAAK;IAAEC;EAAK,CAAC;AAC3C,CAAC;AAED,MAAMW,QAAQ,GAAGA,CAAC;EAAE1C,MAAM;EAAEC,KAAK;EAAEC,KAAK;EAAEH,UAAU;EAAEK;AAAW,CAAC,EAAED,MAAM,KACxEL,aAAa,CAAC;EAAEC,UAAU;EAAEC,MAAM;EAAEC,KAAK;EAAEC,KAAK;EAAEC,MAAM;EAAEC;AAAW,CAAC,CAAC;AAAC,IAAAuC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAE3DH,QAAQ","ignoreList":[]}
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.object.define-property.js");
4
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
- exports["default"] = void 0;
7
+ exports.default = void 0;
9
8
  var _useGetFiles = _interopRequireDefault(require("./useGetFiles"));
10
- var _default = exports["default"] = _useGetFiles["default"];
9
+ var _default = exports.default = _useGetFiles.default;
11
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_useGetFiles","_interopRequireDefault","require","_default","exports","useGetFiles"],"sources":["../../../../src/components/FileList/useGetFiles/index.js"],"sourcesContent":["import useGetFiles from './useGetFiles';\n\nexport default useGetFiles;\n"],"mappings":";;;;;;;;AAAA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAwC,IAAAC,QAAA,GAAAC,OAAA,cAEzBC,uBAAW","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_useGetFiles","_interopRequireDefault","require","_default","exports","default","useGetFiles"],"sources":["../../../../src/components/FileList/useGetFiles/index.js"],"sourcesContent":["import useGetFiles from './useGetFiles';\n\nexport default useGetFiles;\n"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAwC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEzBC,oBAAW","ignoreList":[]}