filepond 4.30.4 → 4.30.5

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 CHANGED
@@ -5,8 +5,9 @@ A JavaScript library that can upload anything you throw at it, optimizes images
5
5
  [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/pqina/filepond/blob/master/LICENSE)
6
6
  [![npm version](https://badge.fury.io/js/filepond.svg)](https://www.npmjs.com/package/filepond)
7
7
  ![npm](https://img.shields.io/npm/dt/filepond)
8
+ [![minzipped size](https://img.shields.io/bundlephobia/minzip/filepond)](https://bundlephobia.com/package/filepond)
8
9
 
9
- 21 KB gzipped. FilePond adapters are available for **[React](https://github.com/pqina/react-filepond)**, **[Vue](https://github.com/pqina/vue-filepond)**, **[Angular](https://github.com/pqina/ngx-filepond)**, **[Svelte](https://github.com/pqina/svelte-filepond)**, and **[jQuery](https://github.com/pqina/jquery-filepond)**
10
+ FilePond adapters are available for **[React](https://github.com/pqina/react-filepond)**, **[Vue](https://github.com/pqina/vue-filepond)**, **[Angular](https://github.com/pqina/ngx-filepond)**, **[Svelte](https://github.com/pqina/svelte-filepond)**, and **[jQuery](https://github.com/pqina/jquery-filepond)**
10
11
 
11
12
  ---
12
13
 
@@ -62,7 +63,7 @@ A JavaScript library that can upload anything you throw at it, optimizes images
62
63
  * [Media preview + PDF preview](https://github.com/ErnestBrandi/filepond-plugin-media-preview) ([ErnestBrandi/filepond-plugin-media-preview](https://github.com/ErnestBrandi/filepond-plugin-media-preview))
63
64
  * [Get file](https://github.com/nielsboogaard/filepond-plugin-get-file) ([nielsboogaard/filepond-plugin-get-file](https://github.com/nielsboogaard/filepond-plugin-get-file))
64
65
  * [Zip Directory Uploads](https://github.com/tzsk/filepond-plugin-zipper) ([tzsk/filepond-plugin-zipper](https://github.com/tzsk/filepond-plugin-zipper))
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 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
67
  * [PDF Convert](https://github.com/alexandreDavid/filepond-plugin-pdf-convert) ([alexandreDavid/filepond-plugin-pdf-convert](https://github.com/alexandreDavid/filepond-plugin-pdf-convert))
67
68
  * [Copy Path](https://github.com/jnkn6/filepond-plugin-copy-path) ([jnkn6/filepond-plugin-copy-path](https://github.com/jnkn6/filepond-plugin-copy-path))
68
69
 
@@ -85,6 +86,7 @@ A JavaScript library that can upload anything you throw at it, optimizes images
85
86
  * [Laravel](https://github.com/Sopamo/laravel-filepond) ([Sopamo/laravel-filepond](https://github.com/Sopamo/laravel-filepond))
86
87
  * [Laravel](https://github.com/Albert221/laravel-filepond) ([Albert221/laravel-filepond](https://github.com/Albert221/laravel-filepond))
87
88
  * [SilverStripe](https://github.com/lekoala/silverstripe-filepond) ([lekoala/silverstripe-filepond](https://github.com/lekoala/silverstripe-filepond))
89
+ * [Ruby on Rails](https://github.com/Code-With-Rails/filepond-rails) ([Code-With-Rails/filepond-rails](https://github.com/Code-With-Rails/filepond-rails))
88
90
 
89
91
  ## Quick Start
90
92
 
package/dist/filepond.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond 4.30.4
2
+ * FilePond 4.30.5
3
3
  * Licensed under MIT, https://opensource.org/licenses/MIT/
4
4
  * Please visit https://pqina.nl/filepond/ for details.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * FilePond 4.30.4
2
+ * FilePond 4.30.5
3
3
  * Licensed under MIT, https://opensource.org/licenses/MIT/
4
4
  * Please visit https://pqina.nl/filepond/ for details.
5
5
  */
@@ -7174,7 +7174,8 @@ const didRemoveItem = ({ root, action }) => {
7174
7174
  delete root.ref.fields[action.id];
7175
7175
  };
7176
7176
 
7177
- // only runs for server files (so doesn't deal with file input)
7177
+ // only runs for server files. will refuse to update the value if the field
7178
+ // is a file field
7178
7179
  const didDefineValue = ({ root, action }) => {
7179
7180
  const field = getField(root, action.id);
7180
7181
  if (!field) return;
@@ -7183,7 +7184,9 @@ const didDefineValue = ({ root, action }) => {
7183
7184
  field.removeAttribute('value');
7184
7185
  } else {
7185
7186
  // set field value
7186
- field.value = action.value;
7187
+ if (field.type != 'file') {
7188
+ field.value = action.value;
7189
+ }
7187
7190
  }
7188
7191
  syncFieldPositionsWithItems(root);
7189
7192
  };