@scaleflex/widget-explorer 0.1.0 → 0.1.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.
package/CHANGELOG.md
CHANGED
|
@@ -3,23 +3,7 @@
|
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### Bug Fixes
|
|
10
|
-
|
|
11
|
-
* modal aria-label ([3f67277](https://code.scaleflex.cloud/scaleflex/widget/commits/3f67277c031c6a668d7b0d3db35be72072c235fd))
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
### Features
|
|
15
|
-
|
|
16
|
-
* add roles and aria-labels for e2e testing ([7e5e36e](https://code.scaleflex.cloud/scaleflex/widget/commits/7e5e36e61fb0469ca54a6edccf2840149fd6d513))
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## [0.0.5](https://code.scaleflex.cloud/scaleflex/widget/compare/v0.0.4...v0.0.5) (2025-07-22)
|
|
6
|
+
## [0.1.2](https://code.scaleflex.cloud/scaleflex/widget/compare/v0.1.1...v0.1.2) (2025-07-30)
|
|
23
7
|
|
|
24
8
|
**Note:** Version bump only for package @scaleflex/widget-explorer
|
|
25
9
|
|
|
@@ -27,15 +11,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
27
11
|
|
|
28
12
|
|
|
29
13
|
|
|
30
|
-
## [0.
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package @scaleflex/widget-explorer
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
## [0.0.3](https://code.scaleflex.cloud/scaleflex/widget/compare/v0.0.2...v0.0.3) (2025-07-20)
|
|
14
|
+
## [0.1.1](https://code.scaleflex.cloud/scaleflex/widget/compare/v0.1.0...v0.1.1) (2025-07-28)
|
|
39
15
|
|
|
40
16
|
**Note:** Version bump only for package @scaleflex/widget-explorer
|
|
41
17
|
|
|
@@ -44,6 +20,47 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
44
20
|
|
|
45
21
|
|
|
46
22
|
|
|
23
|
+
# [0.1.0](https://code.scaleflex.cloud/scaleflex/widget/compare/v0.0.5...v0.1.0) (2025-07-23)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* modal aria-label ([3f67277](https://code.scaleflex.cloud/scaleflex/widget/commits/3f67277c031c6a668d7b0d3db35be72072c235fd))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* add roles and aria-labels for e2e testing ([7e5e36e](https://code.scaleflex.cloud/scaleflex/widget/commits/7e5e36e61fb0469ca54a6edccf2840149fd6d513))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## [0.0.5](https://code.scaleflex.cloud/scaleflex/widget/compare/v0.0.4...v0.0.5) (2025-07-22)
|
|
40
|
+
|
|
41
|
+
**Note:** Version bump only for package @scaleflex/widget-explorer
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## [0.0.4](https://code.scaleflex.cloud/scaleflex/widget/compare/v0.0.3...v0.0.4) (2025-07-20)
|
|
48
|
+
|
|
49
|
+
**Note:** Version bump only for package @scaleflex/widget-explorer
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## [0.0.3](https://code.scaleflex.cloud/scaleflex/widget/compare/v0.0.2...v0.0.3) (2025-07-20)
|
|
56
|
+
|
|
57
|
+
**Note:** Version bump only for package @scaleflex/widget-explorer
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
47
64
|
## [0.0.2](https://code.scaleflex.cloud/scaleflex/widget/compare/v0.0.1...v0.0.2) (2025-07-20)
|
|
48
65
|
|
|
49
66
|
**Note:** Version bump only for package @scaleflex/widget-explorer
|
|
@@ -107,8 +107,7 @@ var AddFiles = function AddFiles() {
|
|
|
107
107
|
var importFromDam = function importFromDam() {
|
|
108
108
|
openAssetPicker({
|
|
109
109
|
onImport: onImportFromDam,
|
|
110
|
-
hideUploadButton: true
|
|
111
|
-
ExploreViewComponent: ExploreViewComponent
|
|
110
|
+
hideUploadButton: true
|
|
112
111
|
});
|
|
113
112
|
};
|
|
114
113
|
return /*#__PURE__*/_jsx(Styled.AcquirerButtons, {
|
|
@@ -82,10 +82,7 @@ var CustomMetadataSection = function CustomMetadataSection(_ref) {
|
|
|
82
82
|
openAssetPicker = _useAssetsPicker.openAssetPicker;
|
|
83
83
|
var _useExplorer = useExplorer(),
|
|
84
84
|
info = _useExplorer.info,
|
|
85
|
-
i18nArray = _useExplorer.i18nArray
|
|
86
|
-
_useExplorer$opts = _useExplorer.opts,
|
|
87
|
-
_useExplorer$opts2 = _useExplorer$opts === void 0 ? {} : _useExplorer$opts,
|
|
88
|
-
ExploreViewComponent = _useExplorer$opts2.ExploreViewComponent;
|
|
85
|
+
i18nArray = _useExplorer.i18nArray;
|
|
89
86
|
var locateFile = useLocateFile();
|
|
90
87
|
var deleteModal = useDeleteModal(true);
|
|
91
88
|
var triggerDownloadConsentModal = useDownloadConsentModal();
|
|
@@ -154,8 +151,7 @@ var CustomMetadataSection = function CustomMetadataSection(_ref) {
|
|
|
154
151
|
fetchFileByUuid: fetchFileByUuid,
|
|
155
152
|
field: field,
|
|
156
153
|
smallerFont: smallerFont,
|
|
157
|
-
copyCdnLink: copyFileLink
|
|
158
|
-
assetsPickerExploreViewComponent: ExploreViewComponent
|
|
154
|
+
copyCdnLink: copyFileLink
|
|
159
155
|
});
|
|
160
156
|
};
|
|
161
157
|
return /*#__PURE__*/_jsx(StyledMetadataTab.TableContainer, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
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); }
|
|
2
|
-
var _excluded = ["onImport", "multiSelect", "maxCountOfSelectedFiles", "mutedFilesUuids", "hideUploadButton", "forceFilters", "rootFolderPath", "views", "allowedUploadFileTypes", "onClickUploadButton", "
|
|
2
|
+
var _excluded = ["onImport", "multiSelect", "maxCountOfSelectedFiles", "mutedFilesUuids", "hideUploadButton", "forceFilters", "rootFolderPath", "views", "allowedUploadFileTypes", "onClickUploadButton", "acquirers", "assetsPickerModelTitle", "pluginsToUse"];
|
|
3
3
|
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; }
|
|
4
4
|
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; }
|
|
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; }
|
|
@@ -16,12 +16,12 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
|
16
16
|
import { useRef } from 'react';
|
|
17
17
|
import Filerobot from '@scaleflex/widget-core';
|
|
18
18
|
import { VIEW_IDS, PLUGINS_IDS } from '@scaleflex/widget-utils/lib/constants';
|
|
19
|
+
import Explorer from '../index';
|
|
20
|
+
import ExploreViewComponent from '../components/ExploreView';
|
|
19
21
|
|
|
20
22
|
// We are importing Explorer dynamically to avoid issue with redux slice initialization
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
Explorer = module["default"];
|
|
24
|
-
});
|
|
23
|
+
// Using a promise-based approach to ensure proper loading
|
|
24
|
+
|
|
25
25
|
var DEFAULT_VIEWS = [VIEW_IDS.ASSETS, VIEW_IDS.FOLDERS];
|
|
26
26
|
var getConfigs = function getConfigs(_ref) {
|
|
27
27
|
var container = _ref.container,
|
|
@@ -38,7 +38,6 @@ var getConfigs = function getConfigs(_ref) {
|
|
|
38
38
|
views = _ref.views,
|
|
39
39
|
allowedUploadFileTypes = _ref.allowedUploadFileTypes,
|
|
40
40
|
onClickUploadButton = _ref.onClickUploadButton,
|
|
41
|
-
ExploreViewComponent = _ref.ExploreViewComponent,
|
|
42
41
|
_ref$assetsPickerMode = _ref.assetsPickerModelTitle,
|
|
43
42
|
assetsPickerModelTitle = _ref$assetsPickerMode === void 0 ? 'explorerTopSectionImportFileTitle' : _ref$assetsPickerMode;
|
|
44
43
|
return {
|
|
@@ -120,7 +119,7 @@ var useAssetsPicker = function useAssetsPicker(_ref2) {
|
|
|
120
119
|
onImport: onImport
|
|
121
120
|
});
|
|
122
121
|
};
|
|
123
|
-
var openAssetPicker = function openAssetPicker() {
|
|
122
|
+
var openAssetPicker = async function openAssetPicker() {
|
|
124
123
|
var _ref6 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
125
124
|
onImport = _ref6.onImport,
|
|
126
125
|
multiSelect = _ref6.multiSelect,
|
|
@@ -138,11 +137,11 @@ var useAssetsPicker = function useAssetsPicker(_ref2) {
|
|
|
138
137
|
_ref6$allowedUploadFi = _ref6.allowedUploadFileTypes,
|
|
139
138
|
allowedUploadFileTypes = _ref6$allowedUploadFi === void 0 ? null : _ref6$allowedUploadFi,
|
|
140
139
|
onClickUploadButton = _ref6.onClickUploadButton,
|
|
141
|
-
_ref6$ExploreViewComp = _ref6.ExploreViewComponent,
|
|
142
|
-
ExploreViewComponent = _ref6$ExploreViewComp === void 0 ? null : _ref6$ExploreViewComp,
|
|
143
140
|
_ref6$acquirers = _ref6.acquirers,
|
|
144
141
|
acquirers = _ref6$acquirers === void 0 ? [] : _ref6$acquirers,
|
|
145
142
|
assetsPickerModelTitle = _ref6.assetsPickerModelTitle,
|
|
143
|
+
_ref6$pluginsToUse = _ref6.pluginsToUse,
|
|
144
|
+
pluginsToUse = _ref6$pluginsToUse === void 0 ? [] : _ref6$pluginsToUse,
|
|
146
145
|
rest = _objectWithoutProperties(_ref6, _excluded);
|
|
147
146
|
if (!window || filerobotInstance.current) return;
|
|
148
147
|
var _getConfigs = getConfigs(_objectSpread({
|
|
@@ -159,13 +158,18 @@ var useAssetsPicker = function useAssetsPicker(_ref2) {
|
|
|
159
158
|
forceFilters: forceFilters,
|
|
160
159
|
allowedUploadFileTypes: allowedUploadFileTypes,
|
|
161
160
|
onClickUploadButton: onClickUploadButton,
|
|
162
|
-
ExploreViewComponent: ExploreViewComponent,
|
|
163
161
|
assetsPickerModelTitle: assetsPickerModelTitle
|
|
164
162
|
}, rest)),
|
|
165
163
|
core = _getConfigs.core,
|
|
166
164
|
explorer = _getConfigs.explorer;
|
|
167
165
|
var filerobot = Filerobot(core);
|
|
168
166
|
filerobot.use(Explorer, explorer);
|
|
167
|
+
pluginsToUse.forEach(function (_ref7) {
|
|
168
|
+
var plugin = _ref7.plugin,
|
|
169
|
+
_ref7$options = _ref7.options,
|
|
170
|
+
options = _ref7$options === void 0 ? {} : _ref7$options;
|
|
171
|
+
filerobot.use(plugin, options);
|
|
172
|
+
});
|
|
169
173
|
if (!hideUploadButton) {
|
|
170
174
|
import('@scaleflex/widget-xhr-upload').then(function (module) {
|
|
171
175
|
var XHRUpload = module["default"];
|
|
@@ -210,6 +214,7 @@ var useAssetsPicker = function useAssetsPicker(_ref2) {
|
|
|
210
214
|
filerobot.on('explorer:modal-close', closeAssetsPicker);
|
|
211
215
|
filerobotInstance.current = filerobot;
|
|
212
216
|
getExplorerPlugin(filerobot).openModal();
|
|
217
|
+
return filerobot;
|
|
213
218
|
};
|
|
214
219
|
return {
|
|
215
220
|
openAssetPicker: openAssetPicker,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleflex/widget-explorer",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
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.1.
|
|
22
|
-
"@scaleflex/widget-icons": "^0.1.
|
|
23
|
-
"@scaleflex/widget-informer": "^0.1.
|
|
24
|
-
"@scaleflex/widget-provider-views": "^0.1.
|
|
25
|
-
"@scaleflex/widget-thumbnail-generator": "^0.1.
|
|
26
|
-
"@scaleflex/widget-utils": "^0.1.
|
|
21
|
+
"@scaleflex/widget-common": "^0.1.2",
|
|
22
|
+
"@scaleflex/widget-icons": "^0.1.2",
|
|
23
|
+
"@scaleflex/widget-informer": "^0.1.2",
|
|
24
|
+
"@scaleflex/widget-provider-views": "^0.1.2",
|
|
25
|
+
"@scaleflex/widget-thumbnail-generator": "^0.1.2",
|
|
26
|
+
"@scaleflex/widget-utils": "^0.1.2",
|
|
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": "
|
|
54
|
+
"gitHead": "de62b98bdb3e1dcbb4adaba9f0b4661b1bf1564e"
|
|
55
55
|
}
|