@scaleflex/widget-explorer 0.0.3 → 0.0.5

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,6 +3,22 @@
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
+ ## [0.0.5](https://code.scaleflex.cloud/scaleflex/widget/compare/v0.0.4...v0.0.5) (2025-07-22)
7
+
8
+ **Note:** Version bump only for package @scaleflex/widget-explorer
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.0.4](https://code.scaleflex.cloud/scaleflex/widget/compare/v0.0.3...v0.0.4) (2025-07-20)
15
+
16
+ **Note:** Version bump only for package @scaleflex/widget-explorer
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.0.3](https://code.scaleflex.cloud/scaleflex/widget/compare/v0.0.2...v0.0.3) (2025-07-20)
7
23
 
8
24
  **Note:** Version bump only for package @scaleflex/widget-explorer
@@ -1,3 +1,4 @@
1
+ import { useExplorer } from '../../../hooks';
1
2
  import EditDetailsButton from '../../common/EditDetailsButton';
2
3
  import CustomMetadataSection from '../../FileWindowPanel/FileTabs/MetadataTab/CustomMetadataSection';
3
4
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -15,6 +16,10 @@ var DetailsSidebarFileCustomMetadataTab = function DetailsSidebarFileCustomMetad
15
16
  scrollToMetaField = _ref.scrollToMetaField,
16
17
  TabPanelWrapper = _ref.TabPanelWrapper,
17
18
  renderNoValue = _ref.renderNoValue;
19
+ var _useExplorer = useExplorer(),
20
+ _useExplorer$opts = _useExplorer.opts,
21
+ _useExplorer$opts2 = _useExplorer$opts === void 0 ? {} : _useExplorer$opts,
22
+ useAssetsPicker = _useExplorer$opts2.useAssetsPicker;
18
23
  if (!file) {
19
24
  return null;
20
25
  }
@@ -35,7 +40,7 @@ var DetailsSidebarFileCustomMetadataTab = function DetailsSidebarFileCustomMetad
35
40
  dismissMarginTop: true,
36
41
  tagsFieldMaxWidth: 300,
37
42
  smallerFont: true
38
- }), !isEditing && /*#__PURE__*/_jsx(EditDetailsButton, {
43
+ }), !isEditing && !useAssetsPicker && /*#__PURE__*/_jsx(EditDetailsButton, {
39
44
  enableEditing: enableEditing,
40
45
  isUserNotAllowedToEdit: isUserNotAllowedToEdit,
41
46
  bottom: "calc(100% - 40px)"
@@ -55,7 +55,8 @@ var GeneralSection = function GeneralSection(_ref) {
55
55
  _useExplorer$opts = _useExplorer.opts,
56
56
  _useExplorer$opts2 = _useExplorer$opts === void 0 ? {} : _useExplorer$opts,
57
57
  config = _useExplorer$opts2.config,
58
- enableAIDescription = _useExplorer$opts2.enableAIDescription;
58
+ enableAIDescription = _useExplorer$opts2.enableAIDescription,
59
+ useAssetsPicker = _useExplorer$opts2.useAssetsPicker;
59
60
  var _ref2 = (config === null || config === void 0 ? void 0 : config.tagging) || {},
60
61
  _ref2$suggestionList = _ref2.suggestionList,
61
62
  allTags = _ref2$suggestionList === void 0 ? [] : _ref2$suggestionList,
@@ -170,7 +171,7 @@ var GeneralSection = function GeneralSection(_ref) {
170
171
  }, field.uuid);
171
172
  })]
172
173
  })
173
- }), showEditButton && !isEditing && /*#__PURE__*/_jsx(EditDetailsButton, {
174
+ }), showEditButton && !isEditing && !useAssetsPicker && /*#__PURE__*/_jsx(EditDetailsButton, {
174
175
  enableEditing: enableEditing,
175
176
  isUserNotAllowedToEdit: isUserNotAllowedToEdit,
176
177
  mt: "5px",
package/lib/index.js CHANGED
@@ -58,6 +58,7 @@ import { facetedSearchToggled } from './slices/filters.slice';
58
58
  import { checkIsValidSortBy, checkIsValidSortOrder } from './components/common/Sort/Sort.utils';
59
59
  import { DEFAULT_SORT_OPTION } from './components/common/Sort/Sort.constants';
60
60
  import isFileVersion from './utils/isFileVersion';
61
+ import { addUploadActivity } from './thunks/uploads.thunks';
61
62
 
62
63
  // TODO: find a way to show version of the current plugin
63
64
  // why solution below isn't good?
@@ -208,6 +209,17 @@ var Explorer = /*#__PURE__*/function (_Plugin) {
208
209
  }
209
210
  return url;
210
211
  });
212
+ _defineProperty(_this, "triggerProgressPanelActivities", function (files, uploadActivityOptions) {
213
+ var progressPanelInstance = _this.filerobot.getPlugin(PLUGINS_IDS.PROGRESS_PANEL);
214
+ if (progressPanelInstance) {
215
+ console.log('files', files);
216
+ files.forEach(function (file) {
217
+ _this.dispatch(addUploadActivity(_objectSpread({
218
+ file: file
219
+ }, uploadActivityOptions)));
220
+ });
221
+ }
222
+ });
211
223
  _defineProperty(_this, "triggerViewEvents", function (_ref4) {
212
224
  var viewItem = _ref4.viewItem,
213
225
  viewSubItem = _ref4.viewSubItem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleflex/widget-explorer",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
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": "^0.0.3",
22
- "@scaleflex/widget-icons": "^0.0.0",
23
- "@scaleflex/widget-informer": "^0.0.3",
24
- "@scaleflex/widget-provider-views": "^0.0.3",
25
- "@scaleflex/widget-thumbnail-generator": "^0.0.3",
26
- "@scaleflex/widget-utils": "^0.0.0",
21
+ "@scaleflex/widget-common": "^0.0.5",
22
+ "@scaleflex/widget-icons": "^0.0.5",
23
+ "@scaleflex/widget-informer": "^0.0.5",
24
+ "@scaleflex/widget-provider-views": "^0.0.5",
25
+ "@scaleflex/widget-thumbnail-generator": "^0.0.5",
26
+ "@scaleflex/widget-utils": "^0.0.5",
27
27
  "@transloadit/prettier-bytes": "0.1.0",
28
28
  "akamai-filerobot-converter": "^0.1.6",
29
29
  "classnames": "^2.2.6",
@@ -45,11 +45,11 @@
45
45
  "react-konva": "19.0.3"
46
46
  },
47
47
  "peerDependencies": {
48
- "@scaleflex/widget-core": "^0.0.0",
48
+ "@scaleflex/widget-core": "^0.0.3",
49
49
  "react": ">=19.0.0",
50
50
  "react-dom": ">=19.0.0",
51
51
  "react-konva": ">=19.0.3"
52
52
  },
53
53
  "license": "MIT",
54
- "gitHead": "81d1b053c6deb611f65a4bbc0018f57df39c378f"
54
+ "gitHead": "93bd594a7c20e71c4bed60bc8e5119ef6db794e1"
55
55
  }