Skip to content

Commit

Permalink
new build
Browse files Browse the repository at this point in the history
  • Loading branch information
rikschennink committed May 31, 2021
1 parent d6e1474 commit f69bf4f
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 19 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 4.27.3

- Fix issue with file.js component leaking state causing `allowRemove` to impact other instances of FilePond. #713

## 4.27.2

- Fix issue with fetch and `HEAD` no setting server id to hidden input element.
Expand Down
2 changes: 1 addition & 1 deletion dist/filepond.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* FilePond 4.27.2
* FilePond 4.27.3
* Licensed under MIT, https://opensource.org/licenses/MIT/
* Please visit https://pqina.nl/filepond/ for details.
*/
Expand Down
19 changes: 13 additions & 6 deletions dist/filepond.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* FilePond 4.27.2
* FilePond 4.27.3
* Licensed under MIT, https://opensource.org/licenses/MIT/
* Please visit https://pqina.nl/filepond/ for details.
*/
Expand Down Expand Up @@ -5477,6 +5477,12 @@ const processingCompleteIndicatorView = createView({
* Creates the file view
*/
const create$4 = ({ root, props }) => {
// copy Buttons object
const LocalButtons = Object.keys(Buttons).reduce((prev, curr) => {
prev[curr] = { ...Buttons[curr] };
return prev;
}, {});

const { id } = props;

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

// update icon and label for revert button when instant uploading
if (instantUpload && allowRevert) {
Buttons['RevertItemProcessing'].label = 'GET_LABEL_BUTTON_REMOVE_ITEM';
Buttons['RevertItemProcessing'].icon = 'GET_ICON_REMOVE';
LocalButtons['RevertItemProcessing'].label = 'GET_LABEL_BUTTON_REMOVE_ITEM';
LocalButtons['RevertItemProcessing'].icon = 'GET_ICON_REMOVE';
}

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

// move remove button to right
if (alignRemoveItemButton && allowRevert) {
Buttons['RevertItemProcessing'].align = 'BUTTON_REMOVE_ITEM_POSITION';
LocalButtons['RevertItemProcessing'].align = 'BUTTON_REMOVE_ITEM_POSITION';
const map = StyleMap['DID_COMPLETE_ITEM_PROCESSING'];
map.info.translateX = calculateFileInfoOffset;
map.status.translateY = calculateFileVerticalCenterOffset;
map.processingCompleteIndicator = { opacity: 1, scaleX: 1, scaleY: 1 };
}

// show/hide RemoveItem button
if (!allowRemove) {
Buttons['RemoveItem'].disabled = true;
LocalButtons['RemoveItem'].disabled = true;
}

// create the button views
forin(Buttons, (key, definition) => {
forin(LocalButtons, (key, definition) => {
// create button
const buttonView = root.createChildView(fileActionButton, {
label: root.query(definition.label),
Expand Down
4 changes: 2 additions & 2 deletions dist/filepond.esm.min.js

Large diffs are not rendered by default.

18 changes: 12 additions & 6 deletions dist/filepond.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* FilePond 4.27.2
* FilePond 4.27.3
* Licensed under MIT, https://opensource.org/licenses/MIT/
* Please visit https://pqina.nl/filepond/ for details.
*/
Expand Down Expand Up @@ -7936,6 +7936,11 @@
var create$4 = function create(_ref2) {
var root = _ref2.root,
props = _ref2.props;
// copy Buttons object
var LocalButtons = Object.keys(Buttons).reduce(function(prev, curr) {
prev[curr] = Object.assign({}, Buttons[curr]);
return prev;
}, {});
var id = props.id;

// allow reverting upload
Expand Down Expand Up @@ -7986,8 +7991,8 @@

// update icon and label for revert button when instant uploading
if (instantUpload && allowRevert) {
Buttons['RevertItemProcessing'].label = 'GET_LABEL_BUTTON_REMOVE_ITEM';
Buttons['RevertItemProcessing'].icon = 'GET_ICON_REMOVE';
LocalButtons['RevertItemProcessing'].label = 'GET_LABEL_BUTTON_REMOVE_ITEM';
LocalButtons['RevertItemProcessing'].icon = 'GET_ICON_REMOVE';
}

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

// move remove button to right
if (alignRemoveItemButton && allowRevert) {
Buttons['RevertItemProcessing'].align = 'BUTTON_REMOVE_ITEM_POSITION';
LocalButtons['RevertItemProcessing'].align = 'BUTTON_REMOVE_ITEM_POSITION';
var _map = StyleMap['DID_COMPLETE_ITEM_PROCESSING'];
_map.info.translateX = calculateFileInfoOffset;
_map.status.translateY = calculateFileVerticalCenterOffset;
_map.processingCompleteIndicator = { opacity: 1, scaleX: 1, scaleY: 1 };
}

// show/hide RemoveItem button
if (!allowRemove) {
Buttons['RemoveItem'].disabled = true;
LocalButtons['RemoveItem'].disabled = true;
}

// create the button views
forin(Buttons, function(key, definition) {
forin(LocalButtons, function(key, definition) {
// create button
var buttonView = root.createChildView(fileActionButton, {
label: root.query(definition.label),
Expand Down
2 changes: 1 addition & 1 deletion dist/filepond.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/filepond.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "filepond",
"version": "4.27.2",
"version": "4.27.3",
"description": "FilePond, Where files go to stretch their bits.",
"license": "MIT",
"author": {
Expand Down

0 comments on commit f69bf4f

Please sign in to comment.