@scaleflex/widget-explorer 4.0.6 → 4.0.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.
package/CHANGELOG.md CHANGED
@@ -3,31 +3,44 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [4.0.6](https://code.scaleflex.cloud/scaleflex/widget/compare/v4.0.0...v4.0.6) (2025-09-14)
6
+ ## [4.0.7](https://code.scaleflex.cloud/scaleflex/widget/compare/v4.0.8...v4.0.7) (2025-09-15)
7
7
 
8
8
 
9
- ### Bug Fixes
9
+ ### Reverts
10
10
 
11
- * update CodeSandbox links in HTML and README files to point to the new sandbox version for better user access ([cf4f794](https://code.scaleflex.cloud/scaleflex/widget/commits/cf4f7941cc3b79e5bb9ce604ff7a2f25665072a4))
12
- * update output filename for Scaleflex widget CSS and adjust CDN links for consistency across various components ([244813e](https://code.scaleflex.cloud/scaleflex/widget/commits/244813e3100c606995ec8988484cf7697398f062))
13
-
14
-
15
-
16
-
17
-
18
- ## [4.0.5](https://code.scaleflex.cloud/scaleflex/widget/compare/v4.0.0...v4.0.5) (2025-09-10)
19
-
20
-
21
- ### Bug Fixes
22
-
23
- * update CodeSandbox links in HTML and README files to point to the new sandbox version for better user access ([cf4f794](https://code.scaleflex.cloud/scaleflex/widget/commits/cf4f7941cc3b79e5bb9ce604ff7a2f25665072a4))
24
- * update output filename for Scaleflex widget CSS and adjust CDN links for consistency across various components ([244813e](https://code.scaleflex.cloud/scaleflex/widget/commits/244813e3100c606995ec8988484cf7697398f062))
11
+ * Revert "chore(release): publish new version v4.0.7🔥🚀" ([a940492](https://code.scaleflex.cloud/scaleflex/widget/commits/a940492ab76142f7041379f9a8a1d0bc8367214f))
12
+ * Revert "chore(release): publish new version v4.0.8🔥🚀" ([6cc5817](https://code.scaleflex.cloud/scaleflex/widget/commits/6cc581729ea8428d7a814aefedd78254512f3693))
25
13
 
26
14
 
27
15
 
28
16
 
29
17
 
30
18
 
19
+ ## [4.0.6](https://code.scaleflex.cloud/scaleflex/widget/compare/v4.0.0...v4.0.6) (2025-09-14)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * update CodeSandbox links in HTML and README files to point to the new sandbox version for better user access ([cf4f794](https://code.scaleflex.cloud/scaleflex/widget/commits/cf4f7941cc3b79e5bb9ce604ff7a2f25665072a4))
25
+ * update output filename for Scaleflex widget CSS and adjust CDN links for consistency across various components ([244813e](https://code.scaleflex.cloud/scaleflex/widget/commits/244813e3100c606995ec8988484cf7697398f062))
26
+
27
+
28
+
29
+
30
+
31
+ ## [4.0.5](https://code.scaleflex.cloud/scaleflex/widget/compare/v4.0.0...v4.0.5) (2025-09-10)
32
+
33
+
34
+ ### Bug Fixes
35
+
36
+ * update CodeSandbox links in HTML and README files to point to the new sandbox version for better user access ([cf4f794](https://code.scaleflex.cloud/scaleflex/widget/commits/cf4f7941cc3b79e5bb9ce604ff7a2f25665072a4))
37
+ * update output filename for Scaleflex widget CSS and adjust CDN links for consistency across various components ([244813e](https://code.scaleflex.cloud/scaleflex/widget/commits/244813e3100c606995ec8988484cf7697398f062))
38
+
39
+
40
+
41
+
42
+
43
+
31
44
  ## [4.0.4](https://code.scaleflex.cloud/scaleflex/widget/compare/v4.0.0...v4.0.4) (2025-09-02)
32
45
 
33
46
 
@@ -59,6 +59,11 @@ var DETAILS_SIDEBAR_TAB = _defineProperty(_defineProperty({}, DETAILS_SIDEBAR_TA
59
59
  disabled: function disabled(_ref) {
60
60
  var isM0LegacyMeta = _ref.isM0LegacyMeta;
61
61
  return isM0LegacyMeta;
62
+ },
63
+ hide: function hide() {
64
+ var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
65
+ hideMetadataTab = _ref2.hideMetadataTab;
66
+ return hideMetadataTab;
62
67
  }
63
68
  });
64
69
  var DETAILS_SIDEBAR_TABS = [DETAILS_SIDEBAR_TAB[DETAILS_SIDEBAR_TAB_IDS.GENERAL], DETAILS_SIDEBAR_TAB[DETAILS_SIDEBAR_TAB_IDS.CUSTOM_METADATA]];
@@ -1,6 +1,6 @@
1
1
  import { useSelector } from 'react-redux';
2
2
  import { DETAILS_SIDEBAR_TAB, DETAILS_SIDEBAR_TABS } from './Details.constants';
3
- import { useExplorerI18n } from '../../hooks';
3
+ import { useExplorer } from '../../hooks';
4
4
  import Styled from './DetailsSideBar.styled';
5
5
  import { selectIsM0LegacyMeta } from '../../slices/metadata.slice';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -8,7 +8,9 @@ var DetailsSidebarTabChips = function DetailsSidebarTabChips(_ref) {
8
8
  var activeTabId = _ref.activeTabId,
9
9
  setActiveTabId = _ref.setActiveTabId,
10
10
  variantComponents = _ref.variantComponents;
11
- var i18n = useExplorerI18n();
11
+ var _useExplorer = useExplorer(),
12
+ hideMetadataTab = _useExplorer.opts.hideMetadataTab,
13
+ i18n = _useExplorer.i18n;
12
14
  var isM0LegacyMeta = useSelector(selectIsM0LegacyMeta);
13
15
  var isAtMaxOneTab = Object.values(variantComponents || {}).length < 2;
14
16
  if (isAtMaxOneTab) {
@@ -30,8 +32,11 @@ var DetailsSidebarTabChips = function DetailsSidebarTabChips(_ref) {
30
32
  children: DETAILS_SIDEBAR_TABS.map(function (_ref2) {
31
33
  var i18nKey = _ref2.i18nKey,
32
34
  id = _ref2.id,
33
- disabled = _ref2.disabled;
34
- return /*#__PURE__*/_jsx(Styled.Tab, {
35
+ disabled = _ref2.disabled,
36
+ hide = _ref2.hide;
37
+ return hide !== null && hide !== void 0 && hide({
38
+ hideMetadataTab: hideMetadataTab
39
+ }) ? false : /*#__PURE__*/_jsx(Styled.Tab, {
35
40
  size: "lg",
36
41
  label: i18n(i18nKey),
37
42
  value: id,
@@ -40,7 +45,7 @@ var DetailsSidebarTabChips = function DetailsSidebarTabChips(_ref) {
40
45
  })),
41
46
  active: id === activeTabId
42
47
  }, id);
43
- })
48
+ }).filter(Boolean)
44
49
  });
45
50
  };
46
51
  export default DetailsSidebarTabChips;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleflex/widget-explorer",
3
- "version": "4.0.6",
3
+ "version": "4.0.7",
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.0.6",
22
- "@scaleflex/widget-icons": "^4.0.6",
23
- "@scaleflex/widget-informer": "^4.0.6",
24
- "@scaleflex/widget-provider-views": "^4.0.6",
25
- "@scaleflex/widget-thumbnail-generator": "^4.0.6",
26
- "@scaleflex/widget-utils": "^4.0.6",
21
+ "@scaleflex/widget-common": "^4.0.7",
22
+ "@scaleflex/widget-icons": "^4.0.7",
23
+ "@scaleflex/widget-informer": "^4.0.7",
24
+ "@scaleflex/widget-provider-views": "^4.0.7",
25
+ "@scaleflex/widget-thumbnail-generator": "^4.0.7",
26
+ "@scaleflex/widget-utils": "^4.0.7",
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": "17ad9b9abc2add9c8b52ab56e3a72108bee20a7a"
54
+ "gitHead": "a940492ab76142f7041379f9a8a1d0bc8367214f"
55
55
  }