@s-ui/react-molecule-photo-uploader
Advanced tools
Comparing version 1.10.0 to 1.11.0
124
CHANGELOG.md
@@ -5,3 +5,12 @@ # Change Log | ||
<a name="1.10.0"></a> | ||
# 1.11.0 (2020-05-21) | ||
### Features | ||
* add preview to be returned on callback, also fix callback when all ima ([8605961](https://github.com/SUI-Components/sui-components/commit/86059613333d2c9f8e0f1677bfde5ff2865b194b)) | ||
* rename and refactor ([a149337](https://github.com/SUI-Components/sui-components/commit/a1493370142615bc79253ff4ec3b4ae24ef47d06)) | ||
# 1.10.0 (2020-05-19) | ||
@@ -12,9 +21,8 @@ | ||
* add border-radius variables ([b4b408e](https://github.com/SUI-Components/sui-components/commit/b4b408e)) | ||
* join variables ([372a5fd](https://github.com/SUI-Components/sui-components/commit/372a5fd)) | ||
* remove unused var ([d676298](https://github.com/SUI-Components/sui-components/commit/d676298)) | ||
* add border-radius variables ([b4b408e](https://github.com/SUI-Components/sui-components/commit/b4b408e793458d5098ffe001a52e82ae4f9591b7)) | ||
* join variables ([372a5fd](https://github.com/SUI-Components/sui-components/commit/372a5fd6ecb48bfa54d2263188a997700e2bf60f)) | ||
* remove unused var ([d676298](https://github.com/SUI-Components/sui-components/commit/d676298743093bf9e3f52c9b45ad91ab82f4e533)) | ||
<a name="1.9.0"></a> | ||
# 1.9.0 (2020-04-23) | ||
@@ -25,7 +33,6 @@ | ||
* prevent submit form when photo uploader button is clicked ([21ec7e5](https://github.com/SUI-Components/sui-components/commit/21ec7e5)) | ||
* prevent submit form when photo uploader button is clicked ([21ec7e5](https://github.com/SUI-Components/sui-components/commit/21ec7e5c4f0c3c6e477351cc347ac8cb0c17cbfc)) | ||
<a name="1.8.0"></a> | ||
# 1.8.0 (2020-04-21) | ||
@@ -36,8 +43,7 @@ | ||
* add fileName on returned list of files ([74999b3](https://github.com/SUI-Components/sui-components/commit/74999b3)), closes [#1097](https://github.com/SUI-Components/sui-components/issues/1097) | ||
* expose file instead of fileName ([64eeba5](https://github.com/SUI-Components/sui-components/commit/64eeba5)) | ||
* add fileName on returned list of files ([74999b3](https://github.com/SUI-Components/sui-components/commit/74999b303084ea596d5280afe2aadfe9467ed570)), closes [#1097](https://github.com/SUI-Components/sui-components/issues/1097) | ||
* expose file instead of fileName ([64eeba5](https://github.com/SUI-Components/sui-components/commit/64eeba58852451b008b7e25ee80d8658fdd4f7e1)) | ||
<a name="1.7.0"></a> | ||
# 1.7.0 (2020-04-15) | ||
@@ -48,8 +54,7 @@ | ||
* fix counter styles ([6ab5325](https://github.com/SUI-Components/sui-components/commit/6ab5325)) | ||
* fix photouploader: ratio image disabled ([38829c6](https://github.com/SUI-Components/sui-components/commit/38829c6)) | ||
* fix counter styles ([6ab5325](https://github.com/SUI-Components/sui-components/commit/6ab5325e423686d10d61260885535d21a6a3615b)) | ||
* fix photouploader: ratio image disabled ([38829c6](https://github.com/SUI-Components/sui-components/commit/38829c6edde5293bd102b10880694c28073c1755)) | ||
<a name="1.6.0"></a> | ||
# 1.6.0 (2020-04-01) | ||
@@ -60,7 +65,6 @@ | ||
* add $bdrs-photo-uploader-initial-state var ([1027157](https://github.com/SUI-Components/sui-components/commit/1027157)) | ||
* add $bdrs-photo-uploader-initial-state var ([1027157](https://github.com/SUI-Components/sui-components/commit/102715777d124fb86a44f08683db9bc1d9854f7c)) | ||
<a name="1.5.0"></a> | ||
# 1.5.0 (2020-03-24) | ||
@@ -71,13 +75,12 @@ | ||
* add button color prop ([3bf3d8c](https://github.com/SUI-Components/sui-components/commit/3bf3d8c)) | ||
* add button design prop ([f3a56aa](https://github.com/SUI-Components/sui-components/commit/f3a56aa)) | ||
* add default to var ([67ae3f9](https://github.com/SUI-Components/sui-components/commit/67ae3f9)) | ||
* add default var ([3aefdea](https://github.com/SUI-Components/sui-components/commit/3aefdea)) | ||
* add scss var ([7a69683](https://github.com/SUI-Components/sui-components/commit/7a69683)) | ||
* use buttonColor passed as props ([0638882](https://github.com/SUI-Components/sui-components/commit/0638882)) | ||
* use primary color as defautl ([c0f47b2](https://github.com/SUI-Components/sui-components/commit/c0f47b2)) | ||
* add button color prop ([3bf3d8c](https://github.com/SUI-Components/sui-components/commit/3bf3d8c3a7ee2e557863263c7413817336294d42)) | ||
* add button design prop ([f3a56aa](https://github.com/SUI-Components/sui-components/commit/f3a56aae0f4f58a969cc8a31559087cdf120ff9c)) | ||
* add default to var ([67ae3f9](https://github.com/SUI-Components/sui-components/commit/67ae3f9514183e8399d2c96b7c111b10d3e5f250)) | ||
* add default var ([3aefdea](https://github.com/SUI-Components/sui-components/commit/3aefdead154f8b5f1dded72a7e9b054697253f08)) | ||
* add scss var ([7a69683](https://github.com/SUI-Components/sui-components/commit/7a696837b4837dccdcb4a22a0a770276f889ad0a)) | ||
* use buttonColor passed as props ([0638882](https://github.com/SUI-Components/sui-components/commit/06388825f7685cc358ec241337bc9b5e803db8ec)) | ||
* use primary color as defautl ([c0f47b2](https://github.com/SUI-Components/sui-components/commit/c0f47b2be79a62ca4f6b937cb182f95d2dc56711)) | ||
<a name="1.4.0"></a> | ||
# 1.4.0 (2020-03-11) | ||
@@ -88,7 +91,6 @@ | ||
* remove [@schibstedspain](https://github.com/schibstedspain) package ([d3d3b7d](https://github.com/SUI-Components/sui-components/commit/d3d3b7d)) | ||
* remove [@schibstedspain](https://github.com/schibstedspain) package ([d3d3b7d](https://github.com/SUI-Components/sui-components/commit/d3d3b7d3298bf6142c61cbcba01484833f445a36)) | ||
<a name="1.3.0"></a> | ||
# 1.3.0 (2020-03-05) | ||
@@ -99,3 +101,3 @@ | ||
* add 1px more to style padding ([27ce682](https://github.com/SUI-Components/sui-components/commit/27ce682)) | ||
* add 1px more to style padding ([27ce682](https://github.com/SUI-Components/sui-components/commit/27ce6823d287d0f0fa753b664227519f6374a632)) | ||
@@ -105,7 +107,6 @@ | ||
* disable cropping via prop ([6f463c4](https://github.com/SUI-Components/sui-components/commit/6f463c4)) | ||
* disable cropping via prop ([6f463c4](https://github.com/SUI-Components/sui-components/commit/6f463c471af0f3609dc8fd5e6e622008e77488a7)) | ||
<a name="1.2.0"></a> | ||
# 1.2.0 (2020-03-04) | ||
@@ -116,3 +117,3 @@ | ||
* counter positioning ([588024e](https://github.com/SUI-Components/sui-components/commit/588024e)) | ||
* counter positioning ([588024e](https://github.com/SUI-Components/sui-components/commit/588024e9943f16c1070e18799b9424ed95f2c662)) | ||
@@ -122,9 +123,8 @@ | ||
* add pixel ([b3d0ebc](https://github.com/SUI-Components/sui-components/commit/b3d0ebc)) | ||
* fix rejected files callback ([a32ccd2](https://github.com/SUI-Components/sui-components/commit/a32ccd2)) | ||
* rename func ([8ea9fd4](https://github.com/SUI-Components/sui-components/commit/8ea9fd4)) | ||
* add pixel ([b3d0ebc](https://github.com/SUI-Components/sui-components/commit/b3d0ebcc4f860ab355d9fdc080e881fbe409e3de)) | ||
* fix rejected files callback ([a32ccd2](https://github.com/SUI-Components/sui-components/commit/a32ccd21de7584f4b60307a65b6e5739111725f0)) | ||
* rename func ([8ea9fd4](https://github.com/SUI-Components/sui-components/commit/8ea9fd4f7a1a4e3855f923f9ad5d66dab93e6daf)) | ||
<a name="1.1.0"></a> | ||
# 1.1.0 (2020-02-28) | ||
@@ -135,33 +135,33 @@ | ||
* ad some variables ([808f55e](https://github.com/SUI-Components/sui-components/commit/808f55e)) | ||
* add buttonsize in initial state ([3f788a6](https://github.com/SUI-Components/sui-components/commit/3f788a6)) | ||
* add color to button, to avoid use deprecated props ([797407b](https://github.com/SUI-Components/sui-components/commit/797407b)) | ||
* add initial rotation based on EXIF metadata ([7018d7a](https://github.com/SUI-Components/sui-components/commit/7018d7a)) | ||
* add new callback: callbackPhotosRejected ([27e94d2](https://github.com/SUI-Components/sui-components/commit/27e94d2)) | ||
* add new prop dragDelay ([afeb2e9](https://github.com/SUI-Components/sui-components/commit/afeb2e9)) | ||
* add prop to allow upload repeated photos (false by default) ([7bc8d8e](https://github.com/SUI-Components/sui-components/commit/7bc8d8e)) | ||
* add README, and improve proptypes info ([4f56a36](https://github.com/SUI-Components/sui-components/commit/4f56a36)) | ||
* add scroll to bottom of the component went error notification appears ([47ef4c6](https://github.com/SUI-Components/sui-components/commit/47ef4c6)) | ||
* add token $bd-photo-uploader-thumb-chosen ([d1a573a](https://github.com/SUI-Components/sui-components/commit/d1a573a)) | ||
* added rotateDirection prop, it can be 'clockwise' or 'counterclockwise ([cf3016f](https://github.com/SUI-Components/sui-components/commit/cf3016f)) | ||
* create PhotosPreview component and extract its funcs ([7f9fe16](https://github.com/SUI-Components/sui-components/commit/7f9fe16)) | ||
* export default values from config to phototools.js ([db11a37](https://github.com/SUI-Components/sui-components/commit/db11a37)) | ||
* extract photo actions like loaders and filters ([8142f87](https://github.com/SUI-Components/sui-components/commit/8142f87)) | ||
* fix border radius main counter ([6a2c56d](https://github.com/SUI-Components/sui-components/commit/6a2c56d)) | ||
* fix default variables ([82434a8](https://github.com/SUI-Components/sui-components/commit/82434a8)) | ||
* fix FileReader lint ([ee9bbde](https://github.com/SUI-Components/sui-components/commit/ee9bbde)) | ||
* fix FileReader lint (a different one!) ([3fbf322](https://github.com/SUI-Components/sui-components/commit/3fbf322)) | ||
* fix first rotation action ([8f19e32](https://github.com/SUI-Components/sui-components/commit/8f19e32)) | ||
* fix scss use const BASE_CLASS_NAME ([bbc96e0](https://github.com/SUI-Components/sui-components/commit/bbc96e0)) | ||
* fix svgs icons ([9276af6](https://github.com/SUI-Components/sui-components/commit/9276af6)) | ||
* improve counter vertical alignment ([9380ab1](https://github.com/SUI-Components/sui-components/commit/9380ab1)) | ||
* improve playground and copies used. Also change the default accepted i ([b36f241](https://github.com/SUI-Components/sui-components/commit/b36f241)) | ||
* improve README text ([011da10](https://github.com/SUI-Components/sui-components/commit/011da10)) | ||
* initial commit ⚛ new molecule/photoUploader ([e897a36](https://github.com/SUI-Components/sui-components/commit/e897a36)) | ||
* remove commented func ([94a6c97](https://github.com/SUI-Components/sui-components/commit/94a6c97)) | ||
* remove comments ([24fdd47](https://github.com/SUI-Components/sui-components/commit/24fdd47)) | ||
* remove unnecessary dependency from package.json ([176dd47](https://github.com/SUI-Components/sui-components/commit/176dd47)) | ||
* replace useEffect with useMount ([9970a92](https://github.com/SUI-Components/sui-components/commit/9970a92)) | ||
* ad some variables ([808f55e](https://github.com/SUI-Components/sui-components/commit/808f55eca219d77e9f72928ccd86a6ff5dd2a79b)) | ||
* add buttonsize in initial state ([3f788a6](https://github.com/SUI-Components/sui-components/commit/3f788a6a8ad0ff0658b295036acb349cc4ea7d79)) | ||
* add color to button, to avoid use deprecated props ([797407b](https://github.com/SUI-Components/sui-components/commit/797407bd93bf24b55e7701e8f9e3416ce77a5864)) | ||
* add initial rotation based on EXIF metadata ([7018d7a](https://github.com/SUI-Components/sui-components/commit/7018d7a6773b50eadeb0f85554fcf5f205a8143e)) | ||
* add new callback: callbackPhotosRejected ([27e94d2](https://github.com/SUI-Components/sui-components/commit/27e94d2023a1619eb548b769bca7a2010129bdd6)) | ||
* add new prop dragDelay ([afeb2e9](https://github.com/SUI-Components/sui-components/commit/afeb2e907f3dc11a4555408cd7e8f5e222ef803f)) | ||
* add prop to allow upload repeated photos (false by default) ([7bc8d8e](https://github.com/SUI-Components/sui-components/commit/7bc8d8e132eb6be2fa21265426290d5f2a561517)) | ||
* add README, and improve proptypes info ([4f56a36](https://github.com/SUI-Components/sui-components/commit/4f56a36a46ed1be94338f34d47bd39996be1453e)) | ||
* add scroll to bottom of the component went error notification appears ([47ef4c6](https://github.com/SUI-Components/sui-components/commit/47ef4c66b5a3ffc0e4a366223c54f62282ac61e7)) | ||
* add token $bd-photo-uploader-thumb-chosen ([d1a573a](https://github.com/SUI-Components/sui-components/commit/d1a573a054d803a1a1ff10b7832024ee06a7fbcc)) | ||
* added rotateDirection prop, it can be 'clockwise' or 'counterclockwise ([cf3016f](https://github.com/SUI-Components/sui-components/commit/cf3016f8b02566f8ccac9f5019bac4d37ae0ee15)) | ||
* create PhotosPreview component and extract its funcs ([7f9fe16](https://github.com/SUI-Components/sui-components/commit/7f9fe1691aaded841dd93a9afb0b5ea85214c2a5)) | ||
* export default values from config to phototools.js ([db11a37](https://github.com/SUI-Components/sui-components/commit/db11a37b7883f0a330675786ffedddfc764a57c3)) | ||
* extract photo actions like loaders and filters ([8142f87](https://github.com/SUI-Components/sui-components/commit/8142f8720d939466d338131184769d87736f1060)) | ||
* fix border radius main counter ([6a2c56d](https://github.com/SUI-Components/sui-components/commit/6a2c56d52686fcc6878d31c970cd057c0d6a4286)) | ||
* fix default variables ([82434a8](https://github.com/SUI-Components/sui-components/commit/82434a83bdb78abe0718fa5532e86f745f72e1b2)) | ||
* fix FileReader lint ([ee9bbde](https://github.com/SUI-Components/sui-components/commit/ee9bbde776890b4d094ff64ab2661582ef898f31)) | ||
* fix FileReader lint (a different one!) ([3fbf322](https://github.com/SUI-Components/sui-components/commit/3fbf322143860a3e628906027e6a01091e38f3a7)) | ||
* fix first rotation action ([8f19e32](https://github.com/SUI-Components/sui-components/commit/8f19e32ff4ad770b93f85e60da97e5cf09c4906a)) | ||
* fix scss use const BASE_CLASS_NAME ([bbc96e0](https://github.com/SUI-Components/sui-components/commit/bbc96e03f16e72c3eb527b25356dd49248f0e655)) | ||
* fix svgs icons ([9276af6](https://github.com/SUI-Components/sui-components/commit/9276af6085b4fad51db92ef917f1eadcf5530f67)) | ||
* improve counter vertical alignment ([9380ab1](https://github.com/SUI-Components/sui-components/commit/9380ab107a8353d3f02e23bb9b71fd5f59b2f426)) | ||
* improve playground and copies used. Also change the default accepted i ([b36f241](https://github.com/SUI-Components/sui-components/commit/b36f2412071618efa37043b17992c48137ff403c)) | ||
* improve README text ([011da10](https://github.com/SUI-Components/sui-components/commit/011da103af68cac53b9dd0913a1fc12d45ae032c)) | ||
* initial commit ⚛ new molecule/photoUploader ([e897a36](https://github.com/SUI-Components/sui-components/commit/e897a36c3e19e0c0a79947b7717090571d0df73b)) | ||
* remove commented func ([94a6c97](https://github.com/SUI-Components/sui-components/commit/94a6c970ade69b4c2a820bb78253ef3621747baa)) | ||
* remove comments ([24fdd47](https://github.com/SUI-Components/sui-components/commit/24fdd472bbaaf6bf31972b96ac8cebab3115f9f4)) | ||
* remove unnecessary dependency from package.json ([176dd47](https://github.com/SUI-Components/sui-components/commit/176dd475f576624fa5405cd6374e789aa722b458)) | ||
* replace useEffect with useMount ([9970a92](https://github.com/SUI-Components/sui-components/commit/9970a9276e86794eb3dbf1e97ba06b1b6b6f1cbd)) | ||
@@ -114,22 +114,22 @@ import React, { useState } from 'react'; | ||
var _callbackPhotosUploaded = function _callbackPhotosUploaded(list) { | ||
if (list.length) { | ||
var blobsArray = list.reduce(function (array, currentFile) { | ||
var blob = currentFile.blob, | ||
url = currentFile.url, | ||
isNew = currentFile.isNew, | ||
isModified = currentFile.isModified, | ||
hasErrors = currentFile.hasErrors, | ||
file = currentFile.file; | ||
array.push({ | ||
blob: blob, | ||
url: url, | ||
isNew: isNew, | ||
isModified: isModified, | ||
hasErrors: hasErrors, | ||
file: file | ||
}); | ||
return [].concat(array); | ||
}, []); | ||
callbackPhotosUploaded(blobsArray); | ||
} | ||
var blobsArray = list.reduce(function (array, currentFile) { | ||
var blob = currentFile.blob, | ||
url = currentFile.url, | ||
isNew = currentFile.isNew, | ||
isModified = currentFile.isModified, | ||
hasErrors = currentFile.hasErrors, | ||
file = currentFile.file, | ||
preview = currentFile.preview; | ||
array.push({ | ||
blob: blob, | ||
url: url, | ||
isNew: isNew, | ||
isModified: isModified, | ||
hasErrors: hasErrors, | ||
file: file, | ||
previewUrl: preview | ||
}); | ||
return [].concat(array); | ||
}, []); | ||
callbackPhotosUploaded(blobsArray); | ||
}; | ||
@@ -136,0 +136,0 @@ |
{ | ||
"name": "@s-ui/react-molecule-photo-uploader", | ||
"version": "1.10.0", | ||
"version": "1.11.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -23,2 +23,4 @@ # MoleculePhotoUploader | ||
> `previewUrl` (String) a preview url to use if you wanna preview the images outside the photoUploader component | ||
## Installation | ||
@@ -25,0 +27,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65999
84