Giter Club home page Giter Club logo

Comments (2)

DanielRuf avatar DanielRuf commented on August 15, 2024

3.1.2 is the last tag and version at https://github.com/felixrieseberg/React-Dropzone-Component/releases

https://www.npmjs.com/package/react-dropzone-component

The latest published release is 3.2.0, see https://unpkg.com/browse/[email protected]/

I will check what the differences are and try to create a PR.

The difference / changes are the following (beautified the dist file):

From 18e65c249d23ba666691ab3143b9ce07f9afc513 Mon Sep 17 00:00:00 2001
From: Daniel Ruf <[email protected]>
Date: Fri, 11 Oct 2019 08:31:38 +0200
Subject: [PATCH] Apply 3.2.0

---
 .../react-dropzone-component/.travis.yml      |  4 +--
 .../react-dropzone-component/README.md        |  6 ++--
 .../dist/react-dropzone.js                    | 25 ++++++++-------
 .../react-dropzone-component/package.json     | 32 +++++++++----------
 package-lock.json                             |  8 ++---
 package.json                                  |  2 +-
 6 files changed, 39 insertions(+), 38 deletions(-)

diff --git a/node_modules/react-dropzone-component/.travis.yml b/node_modules/react-dropzone-component/.travis.yml
index de71e52..5d371b6 100644
--- a/node_modules/react-dropzone-component/.travis.yml
+++ b/node_modules/react-dropzone-component/.travis.yml
@@ -3,5 +3,5 @@ node_js:
   - "8"
 
 before_install:
-  - npm install -g react-dom
-  - npm install -g react
\ No newline at end of file
+  - npm install --save react
+  - npm install --save react-dom
\ No newline at end of file
diff --git a/node_modules/react-dropzone-component/README.md b/node_modules/react-dropzone-component/README.md
index b2d1433..bed4c73 100644
--- a/node_modules/react-dropzone-component/README.md
+++ b/node_modules/react-dropzone-component/README.md
@@ -61,7 +61,7 @@ There are a bunch of operations that might require accessing the dropzone object
 
 To get said object, use the `init` event, whose callback will receive a reference to the dropzone object as a parameter.
 
-```JS
+```js
 var myDropzone;
 
 function initCallback (dropzone) {
@@ -78,7 +78,7 @@ function removeFile () {
 ##### Usage Without Automatic Posting
 If you want to use this component without posting automatically to a URL but instead do the posting yourself, then you can just fill the `postUrl` option with a meaningless string and handle the displaying of progress by yourself using the provided event handlers. To see this in action, check out the `examples`!
 
-```
+```js
 var componentConfig = { postUrl: 'no-url' };
 var djsConfig = { autoProcessQueue: false }
 var eventHandlers = { addedfile: (file) => console.log(file) }
@@ -116,7 +116,7 @@ var djsConfig = {
 ##### Custom Post Parameters
 To add custom parameters to your request, add a `params` property to your Dropzone.js configuration object.
 
-```
+```js
 var djsConfig = {
     addRemoveLinks: true,
     params: {
diff --git a/node_modules/react-dropzone-component/dist/react-dropzone.js b/node_modules/react-dropzone-component/dist/react-dropzone.js
index 42ee52c..1907f8d 100644
--- a/node_modules/react-dropzone-component/dist/react-dropzone.js
+++ b/node_modules/react-dropzone-component/dist/react-dropzone.js
@@ -368,6 +368,7 @@
                                 dictInvalidFileType: "You can't upload files of this type.",
                                 dictResponseError: "Server responded with {{statusCode}} code.",
                                 dictCancelUpload: "Cancel upload",
+                                dictUploadCanceled: "Upload canceled.",
                                 dictCancelUploadConfirmation: "Are you sure you want to cancel this upload?",
                                 dictRemoveFile: "Remove file",
                                 dictRemoveFileConfirmation: null,
@@ -511,7 +512,7 @@
                                 },
                                 successmultiple: function() {},
                                 canceled: function(e) {
-                                    return this.emit("error", e, "Upload canceled.")
+                                    return this.emit("error", e, this.options.dictUploadCanceled)
                                 },
                                 canceledmultiple: function() {},
                                 complete: function(e) {
@@ -745,14 +746,14 @@
                             var e = this;
                             return this.clickableElements.forEach(function(e) {
                                 return e.classList.remove("dz-clickable")
-                            }), this.removeEventListeners(), this.files.map(function(t) {
+                            }), this.removeEventListeners(), this.disabled = !0, this.files.map(function(t) {
                                 return e.cancelUpload(t)
                             })
                         }
                     }, {
                         key: "enable",
                         value: function() {
-                            return this.clickableElements.forEach(function(e) {
+                            return delete this.disabled, this.clickableElements.forEach(function(e) {
                                 return e.classList.add("dz-clickable")
                             }), this.setupEventListeners()
                         }
@@ -783,10 +784,10 @@
                         value: function(e) {
                             if (e.dataTransfer) {
                                 this.emit("drop", e);
-                                var t = e.dataTransfer.files;
+                                for (var t = [], n = 0; n < e.dataTransfer.files.length; n++) t[n] = e.dataTransfer.files[n];
                                 if (this.emit("addedfiles", t), t.length) {
-                                    var n = e.dataTransfer.items;
-                                    n && n.length && null != n[0].webkitGetAsEntry ? this._addFilesFromItems(n) : this.handleFiles(t)
+                                    var i = e.dataTransfer.items;
+                                    i && i.length && null != i[0].webkitGetAsEntry ? this._addFilesFromItems(i) : this.handleFiles(t)
                                 }
                             }
                         }
@@ -805,10 +806,10 @@
                     }, {
                         key: "handleFiles",
                         value: function(e) {
-                            var t = this;
-                            return e.map(function(e) {
-                                return t.addFile(e)
-                            })
+                            for (var t = 0, n = n = e; !(t >= n.length);) {
+                                var i = n[t++];
+                                this.addFile(i)
+                            }
                         }
                     }, {
                         key: "_addFilesFromItems",
@@ -927,7 +928,7 @@
                         value: function(e, t, n, i, r) {
                             var s = this;
                             return this.createThumbnail(e, t, n, i, !1, function(t, n) {
-                                if (null === n) return r(e);
+                                if (null == n) return r(e);
                                 var i = s.options.resizeMimeType;
                                 null == i && (i = e.type);
                                 var a = n.toDataURL(i, s.options.resizeQuality);
@@ -1276,7 +1277,7 @@
                         }
                     }]), o
                 }();
-            o.initClass(), o.version = "5.2.0", o.options = {}, o.optionsForElement = function(e) {
+            o.initClass(), o.version = "5.4.0", o.options = {}, o.optionsForElement = function(e) {
                 return e.getAttribute("id") ? o.options[a(e.getAttribute("id"))] : void 0
             }, o.instances = [], o.forElement = function(e) {
                 if ("string" == typeof e && (e = document.querySelector(e)), null == (null != e ? e.dropzone : void 0)) throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");
diff --git a/node_modules/react-dropzone-component/package.json b/node_modules/react-dropzone-component/package.json
index cc0c941..1ebb951 100644
--- a/node_modules/react-dropzone-component/package.json
+++ b/node_modules/react-dropzone-component/package.json
@@ -1,34 +1,34 @@
 {
-  "_from": "[email protected]",
-  "_id": "[email protected]",
+  "_from": "[email protected]",
+  "_id": "[email protected]",
   "_inBundle": false,
-  "_integrity": "sha512-4+X4htvN8UvpJAmUhoBBLcm9kWAc60ccfdd3kBrty95mc5Rydbp4T/TzITgE/aSy+FmvAL3nLQT3vdeQNPDvjQ==",
+  "_integrity": "sha512-QwopN2GgzHCKcMyJvBZuYCeqnU9F/Uiq1hD94/JmFdLmkzU1rw7SbNjLNUad864YoAEvcx93uHUItv0NUwlTxw==",
   "_location": "/react-dropzone-component",
   "_phantomChildren": {},
   "_requested": {
     "type": "version",
     "registry": true,
-    "raw": "[email protected]",
+    "raw": "[email protected]",
     "name": "react-dropzone-component",
     "escapedName": "react-dropzone-component",
-    "rawSpec": "3.1.2",
+    "rawSpec": "3.2.0",
     "saveSpec": null,
-    "fetchSpec": "3.1.2"
+    "fetchSpec": "3.2.0"
   },
   "_requiredBy": [
     "#USER",
     "/"
   ],
-  "_resolved": "https://nexus3.bitexpert.net/repository/npm/react-dropzone-component/-/react-dropzone-component-3.1.2.tgz",
-  "_shasum": "3fd81e717f05ca03e5157028ddfed7467fed8c86",
-  "_spec": "[email protected]",
+  "_resolved": "https://nexus3.bitexpert.net/repository/npm/react-dropzone-component/-/react-dropzone-component-3.2.0.tgz",
+  "_shasum": "8ad4cdce342084fb87302ddec6651caa49d8b103",
+  "_spec": "[email protected]",
   "_where": "/home/druf/Schreibtisch/projects/react-dropzone-component-test",
   "bugs": {
     "url": "https://github.com/felixrieseberg/React-Dropzone/issues"
   },
   "bundleDependencies": false,
   "dependencies": {
-    "dropzone": "^5.2.0",
+    "dropzone": "^5.4.0",
     "extend": "^3.0.1"
   },
   "deprecated": false,
@@ -36,15 +36,15 @@
   "devDependencies": {
     "@types/dropzone": "5.0.2",
     "babel-core": "^6.26.0",
-    "babel-jest": "^22.1.0",
-    "babel-loader": "^7.1.2",
+    "babel-jest": "^22.4.3",
+    "babel-loader": "^7.1.4",
     "babel-preset-es2015": "^6.24.1",
     "babel-preset-react": "^6.24.1",
     "enzyme": "^3.3.0",
     "enzyme-adapter-react-16": "^1.1.1",
-    "jest": "^22.1.4",
-    "standard": "^10.0.3",
-    "uglifyjs-webpack-plugin": "^1.1.6",
+    "jest": "^22.4.3",
+    "standard": "^11.0.1",
+    "uglifyjs-webpack-plugin": "^1.2.4",
     "webpack": "^3.10.0"
   },
   "homepage": "https://github.com/felixrieseberg/React-Dropzone#readme",
@@ -92,5 +92,5 @@
   },
   "standalone": "React-Dropzone",
   "types": "typescript/types.d.ts",
-  "version": "3.1.2"
+  "version": "3.2.0"
 }
diff --git a/package-lock.json b/package-lock.json
index e84a095..29c03cc 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -15,11 +15,11 @@
       "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="
     },
     "react-dropzone-component": {
-      "version": "3.1.2",
-      "resolved": "https://nexus3.bitexpert.net/repository/npm/react-dropzone-component/-/react-dropzone-component-3.1.2.tgz",
-      "integrity": "sha512-4+X4htvN8UvpJAmUhoBBLcm9kWAc60ccfdd3kBrty95mc5Rydbp4T/TzITgE/aSy+FmvAL3nLQT3vdeQNPDvjQ==",
+      "version": "3.2.0",
+      "resolved": "https://nexus3.bitexpert.net/repository/npm/react-dropzone-component/-/react-dropzone-component-3.2.0.tgz",
+      "integrity": "sha512-QwopN2GgzHCKcMyJvBZuYCeqnU9F/Uiq1hD94/JmFdLmkzU1rw7SbNjLNUad864YoAEvcx93uHUItv0NUwlTxw==",
       "requires": {
-        "dropzone": "^5.2.0",
+        "dropzone": "^5.4.0",
         "extend": "^3.0.1"
       }
     }
diff --git a/package.json b/package.json
index 7acb3d3..96f6495 100644
--- a/package.json
+++ b/package.json
@@ -4,6 +4,6 @@
   "main": "index.js",
   "license": "Apache-2.0",
   "dependencies": {
-    "react-dropzone-component": "^3.1.2"
+    "react-dropzone-component": "^3.2.0"
   }
 }
-- 
2.23.0

from react-dropzone-component.

DanielRuf avatar DanielRuf commented on August 15, 2024

@felixrieseberg can you push that commit and tag to the repository or where can we find it?
Because not all changes are in master:

v3.1.2...master

from react-dropzone-component.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.