@scaleflex/widget-progress-panel 4.5.4 → 4.6.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.
- package/CHANGELOG.md +19 -0
- package/lib/progressPanel.slice.js +12 -10
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.6.1](https://code.scaleflex.cloud/scaleflex/widget/compare/v4.6.0...v4.6.1) (2025-12-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @scaleflex/widget-progress-panel
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [4.6.0](https://code.scaleflex.cloud/scaleflex/widget/compare/v4.5.4...v4.6.0) (2025-12-03)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* enhance error handling and abort functionality in archive thunks ([aa716e5](https://code.scaleflex.cloud/scaleflex/widget/commits/aa716e5a9769c8df3e7b2ed2c499f3d247a060ba))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [4.5.4](https://code.scaleflex.cloud/scaleflex/widget/compare/v4.5.3...v4.5.4) (2025-10-15)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @scaleflex/widget-progress-panel
|
|
@@ -36,7 +36,7 @@ var onActivityError = createThunk(function (_ref, thunkApi) {
|
|
|
36
36
|
var activity = selectProgressPanelActivitiesById(getState(), id);
|
|
37
37
|
dispatch(progressPanelActivityUpdated({
|
|
38
38
|
id: id,
|
|
39
|
-
progress: _objectSpread(_objectSpread({}, activity.progress), {}, {
|
|
39
|
+
progress: _objectSpread(_objectSpread({}, activity === null || activity === void 0 ? void 0 : activity.progress), {}, {
|
|
40
40
|
status: PROGRESS_PANEL_STATUS.ERROR
|
|
41
41
|
})
|
|
42
42
|
}));
|
|
@@ -553,38 +553,40 @@ export var selectProgressPanelUploadingActivitiesIds = createSelector(selectProg
|
|
|
553
553
|
return activitiesIds.filter(function (activityId) {
|
|
554
554
|
var _activity$progress;
|
|
555
555
|
var activity = activities[activityId];
|
|
556
|
-
return ((_activity$progress = activity.progress) === null || _activity$progress === void 0 ? void 0 : _activity$progress.type) === PROGRESS_PANEL_ACTIVITY.UPLOAD;
|
|
556
|
+
return (activity === null || activity === void 0 ? void 0 : (_activity$progress = activity.progress) === null || _activity$progress === void 0 ? void 0 : _activity$progress.type) === PROGRESS_PANEL_ACTIVITY.UPLOAD;
|
|
557
557
|
});
|
|
558
558
|
});
|
|
559
559
|
export var selectProgressPanelInProgressActivitiesIds = createSelector(selectProgressPanelActivities, selectProgressPanelActivitiesIds, function (activities, activitiesIds) {
|
|
560
560
|
return activitiesIds.filter(function (activityId) {
|
|
561
|
-
var _activity$progress2;
|
|
561
|
+
var _activity$progress2, _activity$progress3;
|
|
562
562
|
var activity = activities[activityId];
|
|
563
|
-
return isProgressPanelActive((_activity$progress2 = activity.progress) === null || _activity$progress2 === void 0 ? void 0 : _activity$progress2.status) && activity.progress.startedAt;
|
|
563
|
+
return isProgressPanelActive(activity === null || activity === void 0 ? void 0 : (_activity$progress2 = activity.progress) === null || _activity$progress2 === void 0 ? void 0 : _activity$progress2.status) && (activity === null || activity === void 0 ? void 0 : (_activity$progress3 = activity.progress) === null || _activity$progress3 === void 0 ? void 0 : _activity$progress3.startedAt);
|
|
564
564
|
});
|
|
565
565
|
});
|
|
566
566
|
export var selectProgressPanelCompletedActivitiesIds = createSelector(selectProgressPanelActivities, selectProgressPanelActivitiesIds, function (activities, activitiesIds) {
|
|
567
567
|
return activitiesIds.filter(function (activityId) {
|
|
568
|
-
var _activity$
|
|
568
|
+
var _activity$progress4;
|
|
569
569
|
var activity = activities[activityId];
|
|
570
|
-
return ((_activity$
|
|
570
|
+
return (activity === null || activity === void 0 ? void 0 : (_activity$progress4 = activity.progress) === null || _activity$progress4 === void 0 ? void 0 : _activity$progress4.status) === PROGRESS_PANEL_STATUS.COMPLETE;
|
|
571
571
|
});
|
|
572
572
|
});
|
|
573
573
|
export var selectProgressPanelDelayedActivitiesIds = createSelector(selectProgressPanelActivities, selectProgressPanelActivitiesIds, function (activities, activitiesIds) {
|
|
574
574
|
return activitiesIds.filter(function (activityId) {
|
|
575
|
-
var _activity$
|
|
575
|
+
var _activity$progress5;
|
|
576
576
|
var activity = activities[activityId];
|
|
577
|
-
return ((_activity$
|
|
577
|
+
return (activity === null || activity === void 0 ? void 0 : (_activity$progress5 = activity.progress) === null || _activity$progress5 === void 0 ? void 0 : _activity$progress5.status) === PROGRESS_PANEL_STATUS.DELAYED;
|
|
578
578
|
});
|
|
579
579
|
});
|
|
580
580
|
export var selectProgressPanelFailedActivitiesIds = createSelector(selectProgressPanelActivities, selectProgressPanelActivitiesIds, function (activities, activitiesIds) {
|
|
581
581
|
return activitiesIds.filter(function (activityId) {
|
|
582
|
-
|
|
582
|
+
var _activities$activityI, _activities$activityI2;
|
|
583
|
+
return ((_activities$activityI = activities[activityId]) === null || _activities$activityI === void 0 ? void 0 : (_activities$activityI2 = _activities$activityI.progress) === null || _activities$activityI2 === void 0 ? void 0 : _activities$activityI2.status) === PROGRESS_PANEL_STATUS.ERROR;
|
|
583
584
|
});
|
|
584
585
|
});
|
|
585
586
|
export var selectInProgressNotPaused = createSelector(selectProgressPanelActivities, selectProgressPanelInProgressActivitiesIds, function (activities, inProgressActivitiesIds) {
|
|
586
587
|
return inProgressActivitiesIds.filter(function (activityId) {
|
|
587
|
-
|
|
588
|
+
var _activities$activityI3, _activities$activityI4;
|
|
589
|
+
return ((_activities$activityI3 = activities[activityId]) === null || _activities$activityI3 === void 0 ? void 0 : (_activities$activityI4 = _activities$activityI3.progress) === null || _activities$activityI4 === void 0 ? void 0 : _activities$activityI4.status) !== PROGRESS_PANEL_STATUS.PAUSED;
|
|
588
590
|
});
|
|
589
591
|
});
|
|
590
592
|
export var selectProgressPanelTotalEta = function selectProgressPanelTotalEta(state) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleflex/widget-progress-panel",
|
|
3
3
|
"description": "A progress panel for Scaleflex, handles upload, download, video transformation operation simultaneously",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.6.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"style": "dist/style.min.css",
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"access": "public"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@scaleflex/widget-common": "^4.
|
|
19
|
-
"@scaleflex/widget-informer": "^4.
|
|
20
|
-
"@scaleflex/widget-utils": "^4.
|
|
18
|
+
"@scaleflex/widget-common": "^4.6.1",
|
|
19
|
+
"@scaleflex/widget-informer": "^4.6.1",
|
|
20
|
+
"@scaleflex/widget-utils": "^4.6.1",
|
|
21
21
|
"lodash.throttle": "^4.1.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"react": ">=19.0.0",
|
|
30
30
|
"react-dom": ">=19.0.0"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "48403bdcbff9936529404606711831a93ce4b348"
|
|
33
33
|
}
|