@s-ui/react-molecule-photo-uploader
Advanced tools
Comparing version 2.10.0 to 2.11.0
# CHANGELOG | ||
# 2.11.0 (2022-04-05) | ||
### Bug Fixes | ||
* **components/molecule/photoUploader:** resolve linting errors ([c981bb9](https://github.com/SUI-Components/sui-components/commit/c981bb93a845392b4dea720aa9ecd5e4177931e2)) | ||
# 2.10.0 (2022-01-21) | ||
@@ -4,0 +13,0 @@ |
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator"; | ||
import _regeneratorRuntime from "@babel/runtime/regenerator"; | ||
import { formatToBase64 } from './photoTools'; | ||
import { ACTIONS, DEFAULT_HAS_ERRORS_STATUS, DEFAULT_IMAGE_ROTATION_DEGREES, REJECT_FILES_REASONS } from './config'; | ||
import { formatToBase64 } from './photoTools.js'; | ||
import { ACTIONS, DEFAULT_HAS_ERRORS_STATUS, DEFAULT_IMAGE_ROTATION_DEGREES, REJECT_FILES_REASONS } from './config.js'; | ||
export var filterValidFiles = function filterValidFiles(_ref) { | ||
@@ -18,3 +18,3 @@ var files = _ref.files, | ||
var notExcedingMaxSizeFilesFilter = function notExcedingMaxSizeFilesFilter(filesToFilter) { | ||
return filesToFilter.map(function (fileToFilter) { | ||
return filesToFilter.forEach(function (fileToFilter) { | ||
if (fileToFilter.size >= acceptedFileMaxSize) { | ||
@@ -35,3 +35,3 @@ excedingMaxSizeFiles.push({ | ||
var notRepeatedFilesFilter = function notRepeatedFilesFilter(filesToFilter) { | ||
return filesToFilter.map(function (fileToFilter) { | ||
return filesToFilter.forEach(function (fileToFilter) { | ||
var newFilePath = fileToFilter.path, | ||
@@ -38,0 +38,0 @@ newFileSize = fileToFilter.size, |
@@ -9,9 +9,9 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
import useMergeRefs from '@s-ui/react-hooks/lib/useMergeRefs'; | ||
import { filterValidFiles, prepareFiles, loadInitialPhotos } from './fileTools'; | ||
import DragNotification from './DragNotification'; | ||
import DragState from './DragState'; | ||
import InitialState from './InitialState'; | ||
import PhotosPreview from './PhotosPreview'; | ||
import { ATOM_ICON_SIZES } from '@s-ui/react-atom-icon'; | ||
import { BASE_CLASS_NAME, DROPZONE_CLASS_NAME, DEFAULT_DRAG_DELAY_TIME, DEFAULT_IMAGE_ROTATION_DEGREES, DEFAULT_IMAGE_ASPECT_RATIO, DEFAULT_MAX_IMAGE_HEIGHT, DEFAULT_MAX_IMAGE_WIDTH, DEFAULT_FILE_TYPES_ACCEPTED, DEFAULT_MAX_FILE_SIZE_ACCEPTED, DEFAULT_NOTIFICATION_ERROR, DRAG_STATE_STATUS_REJECTED, ROTATION_DIRECTION, REJECT_FILES_REASONS, ACTIONS } from './config'; | ||
import { filterValidFiles, prepareFiles, loadInitialPhotos } from './fileTools.js'; | ||
import DragNotification from './DragNotification/index.js'; | ||
import DragState from './DragState/index.js'; | ||
import InitialState from './InitialState/index.js'; | ||
import PhotosPreview from './PhotosPreview/index.js'; | ||
import { BASE_CLASS_NAME, DROPZONE_CLASS_NAME, DEFAULT_DRAG_DELAY_TIME, DEFAULT_IMAGE_ROTATION_DEGREES, DEFAULT_IMAGE_ASPECT_RATIO, DEFAULT_MAX_IMAGE_HEIGHT, DEFAULT_MAX_IMAGE_WIDTH, DEFAULT_FILE_TYPES_ACCEPTED, DEFAULT_MAX_FILE_SIZE_ACCEPTED, DEFAULT_NOTIFICATION_ERROR, DRAG_STATE_STATUS_REJECTED, ROTATION_DIRECTION, REJECT_FILES_REASONS, ACTIONS } from './config.js'; | ||
import { jsx as _jsx } from "react/jsx-runtime"; | ||
@@ -18,0 +18,0 @@ import { jsxs as _jsxs } from "react/jsx-runtime"; |
import _extends from "@babel/runtime/helpers/esm/extends"; | ||
import { FORM_IMAGE_UPLOADER_DEFAULT_FORMAT_TO_BASE_64_OPTIONS, DEFAULT_FILE_TYPE_EXPORTED, DEFAULT_IMAGE_QUALITY_EXPORTED, DEFAULT_IMAGE_ROTATION_DEGREES } from './config'; | ||
import { FORM_IMAGE_UPLOADER_DEFAULT_FORMAT_TO_BASE_64_OPTIONS, DEFAULT_FILE_TYPE_EXPORTED, DEFAULT_IMAGE_QUALITY_EXPORTED, DEFAULT_IMAGE_ROTATION_DEGREES } from './config.js'; | ||
export function formatToBase64(_ref) { | ||
@@ -4,0 +4,0 @@ var file = _ref.file, |
{ | ||
"name": "@s-ui/react-molecule-photo-uploader", | ||
"version": "2.10.0", | ||
"version": "2.11.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
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
87695
22
1293