Socket
Socket
Sign inDemoInstall

@s-ui/react-molecule-photo-uploader

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@s-ui/react-molecule-photo-uploader - npm Package Compare versions

Comparing version 2.10.0 to 2.11.0

lib/DragNotification/config.js

9

CHANGELOG.md
# 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 @@

8

lib/fileTools.js
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc