filepond 4.30.1 → 4.30.4
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/README.md +1 -0
- package/dist/filepond.css +1 -1
- package/dist/filepond.esm.js +14 -7
- package/dist/filepond.esm.min.js +2 -2
- package/dist/filepond.js +15 -7
- package/dist/filepond.min.css +1 -1
- package/dist/filepond.min.js +2 -2
- package/locale/da-dk.js +11 -11
- package/locale/el-el.js +39 -0
- package/locale/fi-fi.js +39 -0
- package/locale/fr-fr.js +4 -4
- package/locale/hr-hr.js +39 -0
- package/locale/ro-ro.js +39 -0
- package/locale/vi-vi.js +39 -0
- package/package.json +2 -1
- package/types/index.d.ts +46 -1
package/README.md
CHANGED
|
@@ -63,6 +63,7 @@ A JavaScript library that can upload anything you throw at it, optimizes images
|
|
|
63
63
|
* [Get file](https://github.com/nielsboogaard/filepond-plugin-get-file) ([nielsboogaard/filepond-plugin-get-file](https://github.com/nielsboogaard/filepond-plugin-get-file))
|
|
64
64
|
* [Zip Directory Uploads](https://github.com/tzsk/filepond-plugin-zipper) ([tzsk/filepond-plugin-zipper](https://github.com/tzsk/filepond-plugin-zipper))
|
|
65
65
|
* [PDF Preview](https://github.com/Adri-Glez/filepond-plugin-pdf-preview) ([Adri-Glez/filepond-plugin-pdf-preview](https://github.com/Adri-Glez/filepond-plugin-pdf-preview)
|
|
66
|
+
* [PDF Convert](https://github.com/alexandreDavid/filepond-plugin-pdf-convert) ([alexandreDavid/filepond-plugin-pdf-convert](https://github.com/alexandreDavid/filepond-plugin-pdf-convert))
|
|
66
67
|
* [Copy Path](https://github.com/jnkn6/filepond-plugin-copy-path) ([jnkn6/filepond-plugin-copy-path](https://github.com/jnkn6/filepond-plugin-copy-path))
|
|
67
68
|
|
|
68
69
|
|
package/dist/filepond.css
CHANGED
package/dist/filepond.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* FilePond 4.30.
|
|
2
|
+
* FilePond 4.30.4
|
|
3
3
|
* Licensed under MIT, https://opensource.org/licenses/MIT/
|
|
4
4
|
* Please visit https://pqina.nl/filepond/ for details.
|
|
5
5
|
*/
|
|
@@ -1600,7 +1600,7 @@ const InteractionMethod = {
|
|
|
1600
1600
|
const getUniqueId = () =>
|
|
1601
1601
|
Math.random()
|
|
1602
1602
|
.toString(36)
|
|
1603
|
-
.
|
|
1603
|
+
.substring(2, 11);
|
|
1604
1604
|
|
|
1605
1605
|
const arrayRemove = (arr, index) => arr.splice(index, 1);
|
|
1606
1606
|
|
|
@@ -3453,7 +3453,7 @@ const createFileProcessor = (processFn, options) => {
|
|
|
3453
3453
|
return api;
|
|
3454
3454
|
};
|
|
3455
3455
|
|
|
3456
|
-
const getFilenameWithoutExtension = name => name.
|
|
3456
|
+
const getFilenameWithoutExtension = name => name.substring(0, name.lastIndexOf('.')) || name;
|
|
3457
3457
|
|
|
3458
3458
|
const createFileStub = source => {
|
|
3459
3459
|
let data = [source.name, source.size, source.type];
|
|
@@ -5007,8 +5007,6 @@ const actions = (dispatch, query, state) => ({
|
|
|
5007
5007
|
...Object.keys(options).filter(key => !prioritizedOptionKeys.includes(key)),
|
|
5008
5008
|
];
|
|
5009
5009
|
|
|
5010
|
-
console.log(orderedOptionKeys);
|
|
5011
|
-
|
|
5012
5010
|
// dispatch set event for each option
|
|
5013
5011
|
orderedOptionKeys.forEach(key => {
|
|
5014
5012
|
dispatch(`SET_${fromCamels(key, '_').toUpperCase()}`, {
|
|
@@ -8065,7 +8063,7 @@ const write$9 = ({ root, props, actions }) => {
|
|
|
8065
8063
|
.filter(action => /^DID_SET_STYLE_/.test(action.type))
|
|
8066
8064
|
.filter(action => !isEmpty(action.data.value))
|
|
8067
8065
|
.map(({ type, data }) => {
|
|
8068
|
-
const name = toCamels(type.
|
|
8066
|
+
const name = toCamels(type.substring(8).toLowerCase(), '_');
|
|
8069
8067
|
root.element.dataset[name] = data.value;
|
|
8070
8068
|
root.invalidateLayout();
|
|
8071
8069
|
});
|
|
@@ -8363,11 +8361,20 @@ const exceedsMaxFiles = (root, items) => {
|
|
|
8363
8361
|
|
|
8364
8362
|
// if does not allow multiple items and dragging more than one item
|
|
8365
8363
|
if (!allowMultiple && totalBrowseItems > 1) {
|
|
8364
|
+
root.dispatch('DID_THROW_MAX_FILES', {
|
|
8365
|
+
source: items,
|
|
8366
|
+
error: createResponse('warning', 0, 'Max files'),
|
|
8367
|
+
});
|
|
8366
8368
|
return true;
|
|
8367
8369
|
}
|
|
8368
8370
|
|
|
8369
8371
|
// limit max items to one if not allowed to drop multiple items
|
|
8370
|
-
maxItems = allowMultiple ? maxItems :
|
|
8372
|
+
maxItems = allowMultiple ? maxItems : 1;
|
|
8373
|
+
|
|
8374
|
+
if (!allowMultiple && allowReplace) {
|
|
8375
|
+
// There is only one item, so there is room to replace or add an item
|
|
8376
|
+
return false;
|
|
8377
|
+
}
|
|
8371
8378
|
|
|
8372
8379
|
// no more room?
|
|
8373
8380
|
const hasMaxItems = isInt(maxItems);
|