Skip to content

Commit f69bf4f

Browse files
committed
new build
1 parent d6e1474 commit f69bf4f

File tree

8 files changed

+36
-19
lines changed

8 files changed

+36
-19
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 4.27.3
4+
5+
- Fix issue with file.js component leaking state causing `allowRemove` to impact other instances of FilePond. #713
6+
37
## 4.27.2
48

59
- Fix issue with fetch and `HEAD` no setting server id to hidden input element.

dist/filepond.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* FilePond 4.27.2
2+
* FilePond 4.27.3
33
* Licensed under MIT, https://opensource.org/licenses/MIT/
44
* Please visit https://pqina.nl/filepond/ for details.
55
*/

dist/filepond.esm.js

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* FilePond 4.27.2
2+
* FilePond 4.27.3
33
* Licensed under MIT, https://opensource.org/licenses/MIT/
44
* Please visit https://pqina.nl/filepond/ for details.
55
*/
@@ -5477,6 +5477,12 @@ const processingCompleteIndicatorView = createView({
54775477
* Creates the file view
54785478
*/
54795479
const create$4 = ({ root, props }) => {
5480+
// copy Buttons object
5481+
const LocalButtons = Object.keys(Buttons).reduce((prev, curr) => {
5482+
prev[curr] = { ...Buttons[curr] };
5483+
return prev;
5484+
}, {});
5485+
54805486
const { id } = props;
54815487

54825488
// allow reverting upload
@@ -5519,8 +5525,8 @@ const create$4 = ({ root, props }) => {
55195525

55205526
// update icon and label for revert button when instant uploading
55215527
if (instantUpload && allowRevert) {
5522-
Buttons['RevertItemProcessing'].label = 'GET_LABEL_BUTTON_REMOVE_ITEM';
5523-
Buttons['RevertItemProcessing'].icon = 'GET_ICON_REMOVE';
5528+
LocalButtons['RevertItemProcessing'].label = 'GET_LABEL_BUTTON_REMOVE_ITEM';
5529+
LocalButtons['RevertItemProcessing'].icon = 'GET_ICON_REMOVE';
55245530
}
55255531

55265532
// remove last button (revert) if not allowed
@@ -5547,19 +5553,20 @@ const create$4 = ({ root, props }) => {
55475553

55485554
// move remove button to right
55495555
if (alignRemoveItemButton && allowRevert) {
5550-
Buttons['RevertItemProcessing'].align = 'BUTTON_REMOVE_ITEM_POSITION';
5556+
LocalButtons['RevertItemProcessing'].align = 'BUTTON_REMOVE_ITEM_POSITION';
55515557
const map = StyleMap['DID_COMPLETE_ITEM_PROCESSING'];
55525558
map.info.translateX = calculateFileInfoOffset;
55535559
map.status.translateY = calculateFileVerticalCenterOffset;
55545560
map.processingCompleteIndicator = { opacity: 1, scaleX: 1, scaleY: 1 };
55555561
}
55565562

5563+
// show/hide RemoveItem button
55575564
if (!allowRemove) {
5558-
Buttons['RemoveItem'].disabled = true;
5565+
LocalButtons['RemoveItem'].disabled = true;
55595566
}
55605567

55615568
// create the button views
5562-
forin(Buttons, (key, definition) => {
5569+
forin(LocalButtons, (key, definition) => {
55635570
// create button
55645571
const buttonView = root.createChildView(fileActionButton, {
55655572
label: root.query(definition.label),

dist/filepond.esm.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/filepond.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* FilePond 4.27.2
2+
* FilePond 4.27.3
33
* Licensed under MIT, https://opensource.org/licenses/MIT/
44
* Please visit https://pqina.nl/filepond/ for details.
55
*/
@@ -7936,6 +7936,11 @@
79367936
var create$4 = function create(_ref2) {
79377937
var root = _ref2.root,
79387938
props = _ref2.props;
7939+
// copy Buttons object
7940+
var LocalButtons = Object.keys(Buttons).reduce(function(prev, curr) {
7941+
prev[curr] = Object.assign({}, Buttons[curr]);
7942+
return prev;
7943+
}, {});
79397944
var id = props.id;
79407945

79417946
// allow reverting upload
@@ -7986,8 +7991,8 @@
79867991

79877992
// update icon and label for revert button when instant uploading
79887993
if (instantUpload && allowRevert) {
7989-
Buttons['RevertItemProcessing'].label = 'GET_LABEL_BUTTON_REMOVE_ITEM';
7990-
Buttons['RevertItemProcessing'].icon = 'GET_ICON_REMOVE';
7994+
LocalButtons['RevertItemProcessing'].label = 'GET_LABEL_BUTTON_REMOVE_ITEM';
7995+
LocalButtons['RevertItemProcessing'].icon = 'GET_ICON_REMOVE';
79917996
}
79927997

79937998
// remove last button (revert) if not allowed
@@ -8014,19 +8019,20 @@
80148019

80158020
// move remove button to right
80168021
if (alignRemoveItemButton && allowRevert) {
8017-
Buttons['RevertItemProcessing'].align = 'BUTTON_REMOVE_ITEM_POSITION';
8022+
LocalButtons['RevertItemProcessing'].align = 'BUTTON_REMOVE_ITEM_POSITION';
80188023
var _map = StyleMap['DID_COMPLETE_ITEM_PROCESSING'];
80198024
_map.info.translateX = calculateFileInfoOffset;
80208025
_map.status.translateY = calculateFileVerticalCenterOffset;
80218026
_map.processingCompleteIndicator = { opacity: 1, scaleX: 1, scaleY: 1 };
80228027
}
80238028

8029+
// show/hide RemoveItem button
80248030
if (!allowRemove) {
8025-
Buttons['RemoveItem'].disabled = true;
8031+
LocalButtons['RemoveItem'].disabled = true;
80268032
}
80278033

80288034
// create the button views
8029-
forin(Buttons, function(key, definition) {
8035+
forin(LocalButtons, function(key, definition) {
80308036
// create button
80318037
var buttonView = root.createChildView(fileActionButton, {
80328038
label: root.query(definition.label),

dist/filepond.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/filepond.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "filepond",
3-
"version": "4.27.2",
3+
"version": "4.27.3",
44
"description": "FilePond, Where files go to stretch their bits.",
55
"license": "MIT",
66
"author": {

0 commit comments

Comments
 (0)