@scaleflex/widget-explorer 4.8.5 → 4.8.7

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 (57) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +1293 -1293
  3. package/dist/style.css +18 -10
  4. package/dist/style.min.css +1 -1
  5. package/lib/components/AssetsList/GridView/FilesSection/FileCell.js +2 -2
  6. package/lib/components/AssetsList/GridView/FilesSection/index.js +2 -2
  7. package/lib/components/AssetsList/GridView/FoldersSection/FolderCell.js +2 -2
  8. package/lib/components/AssetsList/GridView/FoldersSection/FolderTopOptions.js +2 -2
  9. package/lib/components/AssetsList/GridView/FoldersSection/index.js +2 -2
  10. package/lib/components/AssetsList/GridView/index.js +2 -2
  11. package/lib/components/AssetsList/SearchView.hook.js +24 -24
  12. package/lib/components/AssetsList/__SearchTestPannel.js +27 -27
  13. package/lib/components/BulkEditPanel/components/AssetsList/Columns/columns.utils.js +2 -2
  14. package/lib/components/CropPanel/ImageOptions.js +2 -2
  15. package/lib/components/CropPanel/index.scss +55 -55
  16. package/lib/components/Details/FileItem/style.scss +11 -11
  17. package/lib/components/Details/TabPanels.js +2 -2
  18. package/lib/components/Drawer/Drawer.utils.js +0 -9
  19. package/lib/components/Drawer/ResizerCore.js +3 -3
  20. package/lib/components/ExploreView.js +2 -2
  21. package/lib/components/FileItem/FileUploadTopOptions.js +2 -2
  22. package/lib/components/FileItem/PreUploadFileThumbnail/index.scss +19 -19
  23. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsTopOptions.js +4 -4
  24. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/index.js +2 -2
  25. package/lib/components/FileWindowPanel/Header/BeforeUploadActionBtns.js +4 -4
  26. package/lib/components/Filters/Placeholder.js +2 -2
  27. package/lib/components/FoldersView/FoldersTree/SearchedFoldersItem.js +2 -2
  28. package/lib/components/GalleryRoleSelect/GalleryRoleSelect.utils.js +3 -3
  29. package/lib/components/GalleryRoleSelect/index.js +11 -11
  30. package/lib/components/Modals/TransformedDownload/TransformedDownload.hooks.js +11 -11
  31. package/lib/components/Modals/TransformedDownload/TransformedDownload.utils.js +4 -4
  32. package/lib/components/TopBar/index.scss +20 -20
  33. package/lib/components/UploadsPanel/UploadsList/UploadsVirtualGrid.js +2 -2
  34. package/lib/components/common/FileMetadataFieldValue/FileMetadataFieldValue.utils.js +2 -2
  35. package/lib/components/metadata.adapter.js +20 -20
  36. package/lib/hooks/useAssetsPicker.js +2 -2
  37. package/lib/hooks/useEditFileDetails.js +7 -7
  38. package/lib/hooks/useIsSmallScreen.js +6 -6
  39. package/lib/hooks/useValidateFileName.js +22 -22
  40. package/lib/index.js +150 -150
  41. package/lib/slices/files.slice.js +17 -17
  42. package/lib/slices/filters.slice.js +2 -2
  43. package/lib/slices/folders.slice.js +17 -13
  44. package/lib/slices/metadata.slice.js +2 -2
  45. package/lib/slices/search.slice.js +2 -2
  46. package/lib/slices/views.slice.js +2 -2
  47. package/lib/style.scss +276 -268
  48. package/lib/thunks/uploads.thunks.js +2 -2
  49. package/lib/utils/SearchSuggestions/SearchSuggestionsMenu.js +4 -4
  50. package/lib/utils/createSuperFocus.js +5 -5
  51. package/lib/utils/filters.js +5 -5
  52. package/lib/utils/formatPinSubTitle.js +6 -6
  53. package/lib/utils/getActiveOverlayEl.js +2 -2
  54. package/lib/utils/truncateString.js +7 -7
  55. package/package.json +54 -54
  56. package/types/index.d.ts +102 -102
  57. package/CHANGELOG.md +0 -12305
@@ -1,55 +1,55 @@
1
- $export-crop-padding: 12px;
2
- $export-crop-block-height: 57px;
3
-
4
- // packages/@scaleflex/widget-explorer/src/components/DownloadTransformation/Option.jsx
5
- // packages/@scaleflex/widget-explorer/src/components/DownloadTransformation/ImageResize.jsx
6
- .filerobot-Explorer-ImageOptions {
7
- &-options {
8
- display: flex;
9
- justify-content: space-between;
10
- margin-bottom: 8px;
11
-
12
- &-select {
13
- width: 60%;
14
- text-align: left;
15
- text-transform: capitalize;
16
-
17
- &-fullWidth {
18
- width: 100%;
19
- }
20
- }
21
- }
22
-
23
- &-size-options {
24
- display: flex;
25
- align-items: flex-start;
26
- flex-direction: column;
27
- row-gap: 4px;
28
- }
29
-
30
- &-description {
31
- display: flex;
32
- justify-content: space-between;
33
- margin-top: 20px;
34
- }
35
-
36
- &-settings {
37
- margin-bottom: 10px;
38
- }
39
-
40
- &-resize-options {
41
- display: flex;
42
- align-items: center;
43
- column-gap: 8px;
44
- }
45
-
46
- &-download-zip {
47
- display: flex;
48
- margin-top: 16px;
49
- }
50
- }
51
-
52
- #SfxPopper {
53
- position: absolute;
54
- top: -10000px;
55
- }
1
+ $export-crop-padding: 12px;
2
+ $export-crop-block-height: 57px;
3
+
4
+ // packages/@scaleflex/widget-explorer/src/components/DownloadTransformation/Option.jsx
5
+ // packages/@scaleflex/widget-explorer/src/components/DownloadTransformation/ImageResize.jsx
6
+ .filerobot-Explorer-ImageOptions {
7
+ &-options {
8
+ display: flex;
9
+ justify-content: space-between;
10
+ margin-bottom: 8px;
11
+
12
+ &-select {
13
+ width: 60%;
14
+ text-align: left;
15
+ text-transform: capitalize;
16
+
17
+ &-fullWidth {
18
+ width: 100%;
19
+ }
20
+ }
21
+ }
22
+
23
+ &-size-options {
24
+ display: flex;
25
+ align-items: flex-start;
26
+ flex-direction: column;
27
+ row-gap: 4px;
28
+ }
29
+
30
+ &-description {
31
+ display: flex;
32
+ justify-content: space-between;
33
+ margin-top: 20px;
34
+ }
35
+
36
+ &-settings {
37
+ margin-bottom: 10px;
38
+ }
39
+
40
+ &-resize-options {
41
+ display: flex;
42
+ align-items: center;
43
+ column-gap: 8px;
44
+ }
45
+
46
+ &-download-zip {
47
+ display: flex;
48
+ margin-top: 16px;
49
+ }
50
+ }
51
+
52
+ #SfxPopper {
53
+ position: absolute;
54
+ top: -10000px;
55
+ }
@@ -1,11 +1,11 @@
1
- // packages/@scaleflex/widget-provider-views/src/components/Details/FileItem/index.jsx
2
- .filerobot-Explorer-Details-imageContainer {
3
- height: 100%;
4
- width: 100%;
5
- padding: 0;
6
- }
7
-
8
- // packages/@scaleflex/widget-provider-views/src/components/Details/FileItem/components/DetailsTabContent.jsx
9
- .filerobot-Explorer-Details-emptyValue {
10
- align-items: flex-start;
11
- }
1
+ // packages/@scaleflex/widget-provider-views/src/components/Details/FileItem/index.jsx
2
+ .filerobot-Explorer-Details-imageContainer {
3
+ height: 100%;
4
+ width: 100%;
5
+ padding: 0;
6
+ }
7
+
8
+ // packages/@scaleflex/widget-provider-views/src/components/Details/FileItem/components/DetailsTabContent.jsx
9
+ .filerobot-Explorer-Details-emptyValue {
10
+ align-items: flex-start;
11
+ }
@@ -5,8 +5,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
6
6
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
7
7
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
8
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
10
10
  import Styled from './DetailsSideBar.styled';
11
11
  import { createElement as _createElement } from "react";
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -111,15 +111,6 @@ export var getTouch = function getTouch(e, identifier) {
111
111
  };
112
112
  export var addUserSelectStyles = function addUserSelectStyles(doc) {
113
113
  if (!doc) return;
114
- var styleEl = doc.getElementById('style-el');
115
- if (!styleEl) {
116
- styleEl = doc.createElement('style');
117
- styleEl.type = 'text/css';
118
- styleEl.id = 'style-el';
119
- styleEl.innerHTML = '.filerobot-transparent-selection *::-moz-selection {all: inherit;}\n';
120
- styleEl.innerHTML += '.filerobot-transparent-selection *::selection {all: inherit;}\n';
121
- doc.getElementsByTagName('head')[0].appendChild(styleEl);
122
- }
123
114
  if (doc.body) addClassName(doc.body, 'filerobot-transparent-selection');
124
115
  };
125
116
  export var removeUserSelectStyles = function removeUserSelectStyles(doc) {
@@ -4,9 +4,9 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
4
4
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
5
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
6
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
- /**
8
- * Borrows heavily from and inspired by react-draggable https://github.com/react-grid-layout/react-draggable,
9
- * basically a stripped-down version of it. Using only the core functionalities and using what we need from it
7
+ /**
8
+ * Borrows heavily from and inspired by react-draggable https://github.com/react-grid-layout/react-draggable,
9
+ * basically a stripped-down version of it. Using only the core functionalities and using what we need from it
10
10
  */
11
11
 
12
12
  import { useState, useEffect, cloneElement, useRef, Children } from 'react';
@@ -5,8 +5,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
6
6
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
7
7
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
8
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
10
10
  // !!!!! This component path, name and default export must kept the same,
11
11
  // !!!!! as this is expected to be used by the widget usage in other projects.
12
12
  import { useSelector } from 'react-redux';
@@ -5,8 +5,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
6
6
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
7
7
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
8
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
10
10
  import { useCallback, useMemo } from 'react';
11
11
  import { useDispatch } from 'react-redux';
12
12
  import { ItemHoverTopOptions } from '@scaleflex/widget-common';
@@ -1,19 +1,19 @@
1
- // packages/@scaleflex/widget-explorer/src/components/FileItem/PreUploadFileThumbnail/FileThumbnail.jsx
2
- .filerobot-Explorer-Item-fileThumbnail {
3
- max-width: 100%;
4
- max-height: 100%;
5
- width: 100%;
6
- height: 100%;
7
- object-fit: contain;
8
- }
9
-
10
- .filerobot-Explorer-Item-preview img.filerobot-Explorer-Item-fileThumbnail {
11
- width: 100%;
12
- height: 100%;
13
- max-width: 100%;
14
- max-height: 100%;
15
- object-fit: contain;
16
- // Fixes file previews being partially invisible in safari (for some pics only).
17
- // (https://stackoverflow.com/a/27971913/3192470)
18
- transform: translateZ(0);
19
- }
1
+ // packages/@scaleflex/widget-explorer/src/components/FileItem/PreUploadFileThumbnail/FileThumbnail.jsx
2
+ .filerobot-Explorer-Item-fileThumbnail {
3
+ max-width: 100%;
4
+ max-height: 100%;
5
+ width: 100%;
6
+ height: 100%;
7
+ object-fit: contain;
8
+ }
9
+
10
+ .filerobot-Explorer-Item-preview img.filerobot-Explorer-Item-fileThumbnail {
11
+ width: 100%;
12
+ height: 100%;
13
+ max-width: 100%;
14
+ max-height: 100%;
15
+ object-fit: contain;
16
+ // Fixes file previews being partially invisible in safari (for some pics only).
17
+ // (https://stackoverflow.com/a/27971913/3192470)
18
+ transform: translateZ(0);
19
+ }
@@ -63,10 +63,10 @@ var VariationsTopOptions = function VariationsTopOptions(_ref) {
63
63
  }
64
64
  var variantName = variant.name;
65
65
  var variantUrl = getFileLink(variant, 'cdn');
66
- /*
67
- * TODO: Check the following in-case BE supports it,
68
- * Disabled download as zip due to this task: https://scaleflexhq.atlassian.net/browse/FRA-7213
69
- * To re-enabled Remove dismissUsageRights: true.
66
+ /*
67
+ * TODO: Check the following in-case BE supports it,
68
+ * Disabled download as zip due to this task: https://scaleflexhq.atlassian.net/browse/FRA-7213
69
+ * To re-enabled Remove dismissUsageRights: true.
70
70
  */
71
71
 
72
72
  var downloadParams = _objectSpread({
@@ -6,8 +6,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
6
6
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
7
7
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
8
8
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
10
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
9
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
10
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
11
11
  function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
12
12
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13
13
  function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
@@ -35,10 +35,10 @@ var BeforeUploadActionButtons = function BeforeUploadActionButtons(_ref) {
35
35
  if (filesLength === 1) dispatch(showAddFilesPanelUpdated(true));
36
36
  };
37
37
 
38
- /**
39
- * Navigates to the next item or closes the file window.
40
- *
41
- * @param {number} indexOffset - The offset from the current index. Defaults to 0.
38
+ /**
39
+ * Navigates to the next item or closes the file window.
40
+ *
41
+ * @param {number} indexOffset - The offset from the current index. Defaults to 0.
42
42
  */
43
43
  var navigateNextItemOrCloseFileWindow = function navigateNextItemOrCloseFileWindow() {
44
44
  var indexOffset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
@@ -5,8 +5,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
6
6
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
7
7
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
8
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
10
10
  import Styled from './Filters.styled';
11
11
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
12
  var Placeholder = function Placeholder(_ref) {
@@ -5,8 +5,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
6
6
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
7
7
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
8
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
10
10
  import { useDispatch, useSelector } from 'react-redux';
11
11
  import { Folder } from '@scaleflex/icons';
12
12
  import { useTheme } from '@scaleflex/ui/theme/hooks';
@@ -49,9 +49,9 @@ export var generatePrettyName = function generatePrettyName(str) {
49
49
  return eachWordUpperCase ? convertStringToWordsArray(str).map(capitalizeFirstLetter).join(' ') : capitalizeFirstLetter(convertStringToWordsArray(str).join(' '));
50
50
  };
51
51
 
52
- /**
53
- * @param {string} roleName - Like "GALLERY_EDITOR"
54
- * @returns {{longName: string, shortName: string, i18nKeyLongName: string, i18nKeyShortName: string}}
52
+ /**
53
+ * @param {string} roleName - Like "GALLERY_EDITOR"
54
+ * @returns {{longName: string, shortName: string, i18nKeyLongName: string, i18nKeyShortName: string}}
55
55
  */
56
56
  export var prettyGalleryRole = function prettyGalleryRole(roleName) {
57
57
  var galleryRole = roleName ? roleName.toLowerCase() : 'unknown';
@@ -26,17 +26,17 @@ import StandardRolesTab from './StandardRolesTab';
26
26
  import { GALLERY_ROLE_TABS, GALLERY_ROLE_TABS_IDS } from './GalleryRoleSelect.constants';
27
27
  import CustomRolesTab from './CustomRolesTab';
28
28
 
29
- /**
30
- * @param {object} props
31
- * @param {string} props.value - Role ID
32
- * @param {function} props.onChange
33
- * @param {boolean} [props.showPermissionsInfo=true]
34
- * @param {number} [props.selectorPaddingX=17]
35
- * @param {boolean} [props.disabled=false]
36
- * @param {boolean} [props.readOnly=false]
37
- * @param {boolean} [props.defaultValueFirstItem=false]
38
- * @param {number} [props.minPermissions] - Use to specify which roles could be selectable
39
- * @returns
29
+ /**
30
+ * @param {object} props
31
+ * @param {string} props.value - Role ID
32
+ * @param {function} props.onChange
33
+ * @param {boolean} [props.showPermissionsInfo=true]
34
+ * @param {number} [props.selectorPaddingX=17]
35
+ * @param {boolean} [props.disabled=false]
36
+ * @param {boolean} [props.readOnly=false]
37
+ * @param {boolean} [props.defaultValueFirstItem=false]
38
+ * @param {number} [props.minPermissions] - Use to specify which roles could be selectable
39
+ * @returns
40
40
  */
41
41
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
42
42
  var GalleryRoleSelect = function GalleryRoleSelect(_ref) {
@@ -35,11 +35,11 @@ export var useTransformedDownload = function useTransformedDownload() {
35
35
  dispatch(collectionsDeselected());
36
36
  };
37
37
  var triggerTransformedDownload = useCallback(function (filesToBeDownloaded, options) {
38
- /*
39
- * TODO: Check the following in-case BE supports it,
40
- * Disabled download as zip due to this task: https://scaleflexhq.atlassian.net/browse/FRA-7213
41
- * as BE doesn't support it for now,
42
- * to re-enable just un-comment the following line and remove isVariant in the options in the following line.
38
+ /*
39
+ * TODO: Check the following in-case BE supports it,
40
+ * Disabled download as zip due to this task: https://scaleflexhq.atlassian.net/browse/FRA-7213
41
+ * as BE doesn't support it for now,
42
+ * to re-enable just un-comment the following line and remove isVariant in the options in the following line.
43
43
  */
44
44
  // const { transformations, isDownloadAsZip = isDownloadUsageRightsEnabled } = options || {}
45
45
  var isDownloadAsZip = false;
@@ -52,12 +52,12 @@ export var useTransformedDownload = function useTransformedDownload() {
52
52
  handleClearSelection();
53
53
  if (!preventDownloadDefaultBehavior) {
54
54
  info(i18n('mutualizedDownloadStartedInfo'));
55
- /*
56
- * TODO: Check the following in-case BE supports it,
57
- * Disabled download as zip due to this task: https://scaleflexhq.atlassian.net/browse/FRA-7213
58
- * as BE doesn't support it for now,
59
- * to re-enable remove dismissUsageRights: isVariant from downloadFilesOneByOne of the current file
60
- * and also isVariant from the following condition, and isVariant from onButtonPrimaryClick in the other function of the file.
55
+ /*
56
+ * TODO: Check the following in-case BE supports it,
57
+ * Disabled download as zip due to this task: https://scaleflexhq.atlassian.net/browse/FRA-7213
58
+ * as BE doesn't support it for now,
59
+ * to re-enable remove dismissUsageRights: isVariant from downloadFilesOneByOne of the current file
60
+ * and also isVariant from the following condition, and isVariant from onButtonPrimaryClick in the other function of the file.
61
61
  */
62
62
  if (transformedFiles.length > 1 && isDownloadAsZip || isDownloadUsageRightsEnabled && !isVariant) {
63
63
  var fileUrls = transformedFiles.map(function (file) {
@@ -21,10 +21,10 @@ export var getFileWithNewParams = function getFileWithNewParams(file) {
21
21
  });
22
22
  }
23
23
  var newExtension = newParams.force_format === 'jpeg' ? 'jpg' : newParams.force_format || file.extension;
24
- /**
25
- * For supporting animated GIF/WEBP files, we should force the format in the proper format cloudimage needs
26
- * and send it only to cloudimage but keep the extension .(gif/webp) as it's in the downloaded file.
27
- * Fix for the following card ID: [T6929]
24
+ /**
25
+ * For supporting animated GIF/WEBP files, we should force the format in the proper format cloudimage needs
26
+ * and send it only to cloudimage but keep the extension .(gif/webp) as it's in the downloaded file.
27
+ * Fix for the following card ID: [T6929]
28
28
  */
29
29
  var updatedParams = _objectSpread({}, newParams);
30
30
  if (updatedParams.force_format) {
@@ -1,20 +1,20 @@
1
- // packages/@scaleflex/widget-provider-views/src/components/TopBar/Search/PrependedOptions/index.jsx
2
- // packages/@scaleflex/widget-provider-views/src/components/TopBar/Search/ContextDropdown/index.jsx
3
- // packages/@scaleflex/widget-provider-views/src/components/TopBar/Search/PrependedOptions/PinsOverlay/index.jsx
4
- .filerobot-Explorer-TopBar-PrependedOptions {
5
- display: flex;
6
- align-items: center;
7
- height: 100%;
8
- }
9
-
10
- .filerobot-Explorer-TopBar-AppendedOptions {
11
- display: flex;
12
- align-items: center;
13
- float: right;
14
- }
15
-
16
- .filerobot-Explorer-TopBar-Search-ContextDropdown-SubList-container {
17
- padding: 0 !important;
18
- cursor: default !important;
19
- background: #ffffff !important;
20
- }
1
+ // packages/@scaleflex/widget-provider-views/src/components/TopBar/Search/PrependedOptions/index.jsx
2
+ // packages/@scaleflex/widget-provider-views/src/components/TopBar/Search/ContextDropdown/index.jsx
3
+ // packages/@scaleflex/widget-provider-views/src/components/TopBar/Search/PrependedOptions/PinsOverlay/index.jsx
4
+ .filerobot-Explorer-TopBar-PrependedOptions {
5
+ display: flex;
6
+ align-items: center;
7
+ height: 100%;
8
+ }
9
+
10
+ .filerobot-Explorer-TopBar-AppendedOptions {
11
+ display: flex;
12
+ align-items: center;
13
+ float: right;
14
+ }
15
+
16
+ .filerobot-Explorer-TopBar-Search-ContextDropdown-SubList-container {
17
+ padding: 0 !important;
18
+ cursor: default !important;
19
+ background: #ffffff !important;
20
+ }
@@ -5,8 +5,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
6
6
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
7
7
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
8
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
10
10
  import { VirtualGrid } from '@scaleflex/widget-common';
11
11
  import FileItem from '../../FileItem';
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["isPreUpload"];
2
2
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
5
  function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
6
6
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7
7
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
@@ -10,8 +10,8 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
10
10
  function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
11
11
  function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
12
12
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
14
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
13
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
14
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
15
15
  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; }
16
16
  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; }
17
17
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -19,9 +19,9 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
19
19
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
20
20
  import cuid from 'cuid';
21
21
 
22
- /**
23
- * Connected with ticket -- http://sk.fl3x.cc/?i=8KJIbM0d51zOLt
24
- * We need to adapt metadata to new format which support Regional variants groups
22
+ /**
23
+ * Connected with ticket -- http://sk.fl3x.cc/?i=8KJIbM0d51zOLt
24
+ * We need to adapt metadata to new format which support Regional variants groups
25
25
  */
26
26
 
27
27
  var generateFieldPossibleValue = function generateFieldPossibleValue(posValue) {
@@ -114,8 +114,8 @@ var adaptMetadata = function adaptMetadata(metadata) {
114
114
  });
115
115
  var oldMetaModel = metadata === null || metadata === void 0 ? void 0 : metadata.model;
116
116
 
117
- /**
118
- * Generate regionalVariantsGroups and update model fields regional_variants params, to use group uuid instead of string[]
117
+ /**
118
+ * Generate regionalVariantsGroups and update model fields regional_variants params, to use group uuid instead of string[]
119
119
  */
120
120
 
121
121
  // Regional variants group hash buffer
@@ -131,12 +131,12 @@ var adaptMetadata = function adaptMetadata(metadata) {
131
131
  possibleValues = field.possible_values,
132
132
  permissions = field.permissions,
133
133
  fieldRest = _objectWithoutProperties(field, _excluded);
134
- /**
135
- * For select types we can't use regional variants. (Disscussed with Julian)
136
- * Bad file metadata:
137
- * which_colors: { default: [@item1, @item2] }
138
- * Good file metadata:
139
- * which_colors: [@item1, @item2]
134
+ /**
135
+ * For select types we can't use regional variants. (Disscussed with Julian)
136
+ * Bad file metadata:
137
+ * which_colors: { default: [@item1, @item2] }
138
+ * Good file metadata:
139
+ * which_colors: [@item1, @item2]
140
140
  */
141
141
  var needRemoveRegionalVariants = ['select-one', 'multi-select'].indexOf(fieldRest === null || fieldRest === void 0 ? void 0 : fieldRest.type) > -1;
142
142
  var adaptedField = _objectSpread(_objectSpread({}, fieldRest), {}, {
@@ -206,9 +206,9 @@ var adaptMetadata = function adaptMetadata(metadata) {
206
206
  }
207
207
  adaptedMetadata.store.regional_variants_groups = rvGroupsArray;
208
208
 
209
- /**
210
- * Add default "Root fields" group.
211
- * We wait what regional_variants_groups list is generated, to find language regional group
209
+ /**
210
+ * Add default "Root fields" group.
211
+ * We wait what regional_variants_groups list is generated, to find language regional group
212
212
  */
213
213
  adaptedMetadata.model = adaptedMetadata.model.map(function (item) {
214
214
  var _ref3;
@@ -242,10 +242,10 @@ var adaptMetadata = function adaptMetadata(metadata) {
242
242
  return adaptedMetadata;
243
243
  };
244
244
 
245
- /**
246
- * @param {object} groupsObj
247
- * @param {string[]} variants
248
- * @param {boolean} [isRoot=false] - Flag to mark group as root. TRUE is mean that this group is not deletable. Added for meta "Root fields" group
245
+ /**
246
+ * @param {object} groupsObj
247
+ * @param {string[]} variants
248
+ * @param {boolean} [isRoot=false] - Flag to mark group as root. TRUE is mean that this group is not deletable. Added for meta "Root fields" group
249
249
  */
250
250
  var generateNewRegionalVariantGroup = function generateNewRegionalVariantGroup(groupsObj, variants) {
251
251
  var _adaptedVariants;
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["securityTemplateId", "container", "sassKey", "theme", "language", "onImport", "multiSelect", "maxCountOfSelectedFiles", "mutedFilesUuids", "disableUpload", "forceFilters", "rootFolderPath", "views", "allowedUploadFileTypes", "onClickUploadButton", "acquirers", "assetsPickerModelTitle", "pluginsToUse", "moreCoreConfig", "moreExplorerConfig", "moreXhrUploadConfig", "moreProgressPanelConfig", "onOpen", "onClose"];
2
2
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
5
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
6
6
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7
7
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["name", "tags"];
2
2
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
3
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
5
  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; }
6
6
  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; }
7
7
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
@@ -470,11 +470,11 @@ var useEditFileDetails = function useEditFileDetails(_ref) {
470
470
  var metaFieldElem = document.querySelector("#meta-field-".concat(metaFieldKey));
471
471
  if (metaFieldElem) {
472
472
  var _metaFieldElem$queryS;
473
- /**
474
- * block: 'center' replaced with block: 'nearest' as 'center' causes the whole panel's block to be scrolled outside of the view (hidden)
475
- * in-case of small screen which is not good as it blocks further operations.
476
- * And it's a common issue for people on StackOverFlow so nearest fixed the issue, seems like some strange behavior of scrollIntoView.
477
- * https://stackoverflow.com/q/11039885
473
+ /**
474
+ * block: 'center' replaced with block: 'nearest' as 'center' causes the whole panel's block to be scrolled outside of the view (hidden)
475
+ * in-case of small screen which is not good as it blocks further operations.
476
+ * And it's a common issue for people on StackOverFlow so nearest fixed the issue, seems like some strange behavior of scrollIntoView.
477
+ * https://stackoverflow.com/q/11039885
478
478
  */
479
479
  metaFieldElem.scrollIntoView({
480
480
  block: 'nearest',