From 340b637bc1e84e775280767de12d7c51a1a72328 Mon Sep 17 00:00:00 2001
From: Jose Manuel Serrano Amaut <a20122128@pucp.pe>
Date: Sun, 21 Jan 2024 16:00:26 -0500
Subject: [PATCH] Update changelog to version 1.2.0

---
 CHANGELOG.md      | 44 +++++++++++++++++++++++++++++++++++++++++++-
 package-lock.json | 18 +++++++++---------
 package.json      |  4 ++--
 3 files changed, 54 insertions(+), 12 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index a778c12..a076ec2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,48 @@
 All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
 Thils file also consider all dropzone-ui [releases](https://github.com/dropzone-ui/dropzone-ui-react/releases).
 
+## [1.2.0](https://github.com/files-ui/files-ui-react/releases/tag/v1.1.0) (2024-01-21)
+
+## ๐Ÿงช ๐Ÿš€ Allow uploading files with different URLs
+
+- Enhanced components to perform the upload operation with a different urls for each [ExtFile](https://www.files-ui.com/types#extfile). 
+  - [ExtFile](https://www.files-ui.com/types#extfile): Added a new property in ExtFile type: `uploadUrl`.
+  - [\<Dropzone/\>](https://www.files-ui.com/components/dropzone) & [\<FileInputButton/\>](https://www.files-ui.com/components/fileinputbutton): There is a new sub-prop `uploadConfig.customUrl()` that is a fucntion that given an extFile object, obtains a custom url.
+- The order of priority is as follows:
+    - 1) ExtFile.uploadUrl
+    - 2) DropzoneProps.UploadConfig.customUrl
+    - 3) DropzoneProps.UploadConfig.url
+
+- The setup can be as follows:
+
+```jsx
+    ...
+    return(
+      <React.Fragment>
+        <Dropzone
+            uploadConfig={
+              customUrl: (extFile)=> "https://urlfromserver/" + extFile.name
+            }
+        />
+        <FileInputButton
+            uploadConfig={
+              customUrl: (extFile)=> "https://urlfromserver/" + extFile.name
+            }
+        />
+        <Dropzone
+          onChange={updateFiles}
+          value={files}
+        >
+          {files.map((file) => (
+              <FileMosaic key={file.id} {...file} uploadUrl={"https://urlfromserver/" + extFile.id}/>
+            ))}
+        </Dropzone>
+
+      
+      </React.Fragment>
+    )
+```
+
 ## [1.1.0](https://github.com/files-ui/files-ui-react/releases/tag/v1.1.0) (2023-12-17)
 
 ## ๐Ÿงช New features and ๐Ÿ› :hammer: Improvements
@@ -35,7 +77,7 @@ Thils file also consider all dropzone-ui [releases](https://github.com/dropzone-
 
 - [\<FileCard/\>](https://www.files-ui.com/components/filecard): This new component is an alternative version of FileMosaic. It displays the file info in a card. Receives the same props as FileMosaic plus `elevation`.
 
-- [\<FileInputButton/\>](https://www.files-ui.com/components/dropzone): This component replaces the old "InputButton" component. The features are the same as the dropzone except the header and footer related features. That means that this component now can trigger the upload progress.
+- [\<FileInputButton/\>](https://www.files-ui.com/components/fileinputbutton): This component replaces the old "InputButton" component. The features are the same as the dropzone except the header and footer related features. That means that this component now can trigger the upload progress.
   Validation is optional, so non valid files can be uploaded.
 
 - [\<Avatar/\>](https://www.files-ui.com/components/avatar): This new component is designed tohandle the selection of images for changing the avatar. Can recieve as source an string url or even a File.
diff --git a/package-lock.json b/package-lock.json
index baa627f..e836a74 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,16 +1,16 @@
 {
   "name": "@files-ui/react",
-  "version": "1.0.8",
+  "version": "1.2.0",
   "lockfileVersion": 2,
   "requires": true,
   "packages": {
     "": {
       "name": "@files-ui/react",
-      "version": "1.0.8",
+      "version": "1.2.0",
       "license": "MIT",
       "dependencies": {
         "@dynamicss/dynamicss": "^2.2.8",
-        "@files-ui/core": "latest"
+        "@files-ui/core": "^2.0.4"
       },
       "devDependencies": {
         "@rollup/plugin-commonjs": "^24.0.1",
@@ -646,9 +646,9 @@
       "hasInstallScript": true
     },
     "node_modules/@files-ui/core": {
-      "version": "1.0.4",
-      "resolved": "https://registry.npmjs.org/@files-ui/core/-/core-1.0.4.tgz",
-      "integrity": "sha512-CaSyHSwjeWEkctfALoK4MwAxq3Zr7+Ozyk5AMoB3s1UBIVgh2618wvNuUIHSVhWFKeB28bOoYxCzM2PEXO4QgA=="
+      "version": "2.0.4",
+      "resolved": "https://registry.npmjs.org/@files-ui/core/-/core-2.0.4.tgz",
+      "integrity": "sha512-zlUfkOYpLGw/EEe2ZO+OPDXstygEaaWYIPQtibhV6oR1KTXewMvvbyC8QU/Y9Jy77/8Ps6N/Rl1yjH0PUqdmXg=="
     },
     "node_modules/@istanbuljs/load-nyc-config": {
       "version": "1.1.0",
@@ -6801,9 +6801,9 @@
       "integrity": "sha512-e6hrGUydr8f+c9E/9fHFSG5LoSLdq/MdZXXfbzEDWIVuzKF2hcdxZE7nHNqUNF2htw1mZ17Pyoshu3A6kFEeFA=="
     },
     "@files-ui/core": {
-      "version": "1.0.4",
-      "resolved": "https://registry.npmjs.org/@files-ui/core/-/core-1.0.4.tgz",
-      "integrity": "sha512-CaSyHSwjeWEkctfALoK4MwAxq3Zr7+Ozyk5AMoB3s1UBIVgh2618wvNuUIHSVhWFKeB28bOoYxCzM2PEXO4QgA=="
+      "version": "2.0.4",
+      "resolved": "https://registry.npmjs.org/@files-ui/core/-/core-2.0.4.tgz",
+      "integrity": "sha512-zlUfkOYpLGw/EEe2ZO+OPDXstygEaaWYIPQtibhV6oR1KTXewMvvbyC8QU/Y9Jy77/8Ps6N/Rl1yjH0PUqdmXg=="
     },
     "@istanbuljs/load-nyc-config": {
       "version": "1.1.0",
diff --git a/package.json b/package.json
index f8a623b..1d78054 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@files-ui/react",
-  "version": "1.1.0",
+  "version": "1.2.0",
   "description": "UI components for file uploads with React js",
   "main": "./build/index.js",
   "module": "./build/index.es.js",
@@ -68,7 +68,7 @@
   },
   "dependencies": {
     "@dynamicss/dynamicss": "^2.2.8",
-    "@files-ui/core": "latest"
+    "@files-ui/core": "^2.0.4"
   },
   "publishConfig": {
     "access": "public"
-- 
GitLab