@scaleflex/widget-explorer 4.5.0 → 4.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +21 -3
  3. package/lib/components/ActionBar/DownloadWithExportButton.js +32 -4
  4. package/lib/components/AssetsList/ListView/AssetsSection/AssetsSectionTableRow.js +1 -1
  5. package/lib/components/Breadcrumbs/index.js +114 -6
  6. package/lib/components/CollectionsView/CollectionFolderIcon.js +35 -0
  7. package/lib/components/CollectionsView/CollectionVirtualFoldersTree/CollectionTreeSkeletion.js +26 -0
  8. package/lib/components/CollectionsView/CollectionVirtualFoldersTree/CollectionVirtualFoldersTree.styled.js +52 -0
  9. package/lib/components/CollectionsView/CollectionVirtualFoldersTree/CollectionVirtualFoldersTree.utils.js +24 -0
  10. package/lib/components/CollectionsView/CollectionVirtualFoldersTree/Folder.js +88 -0
  11. package/lib/components/CollectionsView/CollectionVirtualFoldersTree/Tree.js +50 -0
  12. package/lib/components/CollectionsView/CollectionVirtualFoldersTree/index.js +75 -0
  13. package/lib/components/CollectionsView/CollectionsSkeleton.js +30 -0
  14. package/lib/components/CollectionsView/CollectionsTree/ActiveCollectionContent.js +61 -0
  15. package/lib/components/CollectionsView/CollectionsTree/CollectionTreeItem.js +44 -0
  16. package/lib/components/CollectionsView/CollectionsTree/CollectionsContent.js +130 -0
  17. package/lib/components/CollectionsView/CollectionsTree/CollectionsTree.styled.js +84 -0
  18. package/lib/components/CollectionsView/CollectionsTree/index.js +47 -0
  19. package/lib/components/CollectionsView/CollectionsView.styled.js +38 -0
  20. package/lib/components/CollectionsView/VirtualFoldersGrid.js +67 -0
  21. package/lib/components/CollectionsView/index.js +188 -0
  22. package/lib/components/Details/Details.constants.js +1 -0
  23. package/lib/components/FileItem/FileInfo/index.js +8 -2
  24. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsTabNavigator.js +1 -7
  25. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/index.js +4 -1
  26. package/lib/components/FileWindowPanel/Header/index.js +9 -0
  27. package/lib/components/Filters/hooks/useFilters.js +3 -2
  28. package/lib/components/HeaderBar/index.js +6 -2
  29. package/lib/components/LabelsView/LabelsTree/LabelsTree.styled.js +86 -0
  30. package/lib/components/LabelsView/LabelsTree/LabelsTreeSkeleton.js +21 -0
  31. package/lib/components/LabelsView/LabelsTree/index.js +128 -0
  32. package/lib/components/LabelsView/LabelsView.styled.js +10 -0
  33. package/lib/components/LabelsView/index.js +139 -0
  34. package/lib/components/Modals/DownloadConsent/DownloadConsent.hooks.js +11 -0
  35. package/lib/components/Modals/TransformedDownload/TransformedDownload.hooks.js +9 -0
  36. package/lib/components/Views/Views.constants.js +30 -4
  37. package/lib/components/Views/index.js +11 -4
  38. package/lib/components/common/FileMetadataFieldValue/GeneralMetadataFieldValue.js +1 -1
  39. package/lib/components/common/Sort/Sort.constants.js +28 -1
  40. package/lib/defaultLocale.js +36 -1
  41. package/lib/slices/collections.slice.js +714 -0
  42. package/lib/slices/common.slice.js +15 -52
  43. package/lib/slices/files.slice.js +6 -3
  44. package/lib/slices/index.js +5 -1
  45. package/lib/slices/labels.slice.js +652 -0
  46. package/lib/slices/views.slice.js +12 -0
  47. package/lib/utils/prepareSearchUrl.js +10 -0
  48. package/package.json +8 -8
@@ -23,6 +23,9 @@ var prepareSearchUrl = function prepareSearchUrl(_ref, cb) {
23
23
  sorting = _ref$sorting === void 0 ? 'name:asc' : _ref$sorting,
24
24
  searchSuggestionsFilters = _ref.searchSuggestionsFilters,
25
25
  searchSuggestionsTags = _ref.searchSuggestionsTags,
26
+ _ref$activeCollection = _ref.activeCollection,
27
+ activeCollection = _ref$activeCollection === void 0 ? null : _ref$activeCollection,
28
+ activeCollectionVirtualFolder = _ref.activeCollectionVirtualFolder,
26
29
  includeMeta = _ref.includeMeta,
27
30
  debugSearch = _ref.debugSearch;
28
31
  var queryItems = [];
@@ -55,6 +58,13 @@ var prepareSearchUrl = function prepareSearchUrl(_ref, cb) {
55
58
  if (sorting) {
56
59
  queryItems.push("sort=".concat(sorting));
57
60
  }
61
+ if (activeCollection !== null && activeCollection !== void 0 && activeCollection.uuid) {
62
+ var _activeCollection$dat, _activeCollection$dat2;
63
+ queryItems.push("collection_uuid=".concat(activeCollection.uuid));
64
+ if (activeCollection !== null && activeCollection !== void 0 && (_activeCollection$dat = activeCollection.data) !== null && _activeCollection$dat !== void 0 && (_activeCollection$dat2 = _activeCollection$dat.groupby) !== null && _activeCollection$dat2 !== void 0 && _activeCollection$dat2.length && activeCollectionVirtualFolder !== null && activeCollectionVirtualFolder !== void 0 && activeCollectionVirtualFolder.filters) {
65
+ queryItems.push("f64=".concat(activeCollectionVirtualFolder === null || activeCollectionVirtualFolder === void 0 ? void 0 : activeCollectionVirtualFolder.filters));
66
+ }
67
+ }
58
68
  if (includeMeta) queryItems.push('include_meta=1');
59
69
  if (debugSearch) queryItems.push('debug_search=1');
60
70
  if (cb) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleflex/widget-explorer",
3
- "version": "4.5.0",
3
+ "version": "4.5.1",
4
4
  "description": "Scaleflex explorer for the files uploaded on filerobot, handling them & upload new files.",
5
5
  "main": "lib/index.js",
6
6
  "style": "dist/style.min.css",
@@ -18,12 +18,12 @@
18
18
  "@scaleflex/icons": "^3.0.0-beta.11",
19
19
  "@scaleflex/react-url-builder": "^0.0.72",
20
20
  "@scaleflex/ui": "^3.0.0-beta.11",
21
- "@scaleflex/widget-common": "^4.5.0",
22
- "@scaleflex/widget-icons": "^4.5.0",
23
- "@scaleflex/widget-informer": "^4.5.0",
24
- "@scaleflex/widget-provider-views": "^4.5.0",
25
- "@scaleflex/widget-thumbnail-generator": "^4.5.0",
26
- "@scaleflex/widget-utils": "^4.5.0",
21
+ "@scaleflex/widget-common": "^4.5.1",
22
+ "@scaleflex/widget-icons": "^4.5.1",
23
+ "@scaleflex/widget-informer": "^4.5.1",
24
+ "@scaleflex/widget-provider-views": "^4.5.1",
25
+ "@scaleflex/widget-thumbnail-generator": "^4.5.1",
26
+ "@scaleflex/widget-utils": "^4.5.1",
27
27
  "@transloadit/prettier-bytes": "0.1.0",
28
28
  "akamai-filerobot-converter": "^0.1.6",
29
29
  "classnames": "^2.2.6",
@@ -51,5 +51,5 @@
51
51
  "react-konva": ">=19.0.3"
52
52
  },
53
53
  "license": "MIT",
54
- "gitHead": "df64ca68034ed6c33e123e7dfa215176aa0a1196"
54
+ "gitHead": "b211f9961ad30d3eaa01138f34e190ad5d38fb91"
55
55
  }