react-image-picker-editor
Advanced tools
Comparing version
@@ -7,4 +7,5 @@ import React from 'react'; | ||
delayMs?: number; | ||
testID?: string; | ||
} | ||
declare const Input: React.MemoExoticComponent<(props: React.InputHTMLAttributes<any> | InputProps) => React.JSX.Element>; | ||
declare const Input: React.MemoExoticComponent<(props: InputProps) => React.JSX.Element>; | ||
export default Input; |
import { IState } from '../models/index.models'; | ||
export declare const MAX_BUFFER_UNDO_MEMORY = 25; | ||
declare let rotate: number; | ||
export declare const convertImageUsingCanvas: (dataSrc: string, changeHeight: boolean | undefined, state: IState, options?: { | ||
@@ -13,2 +12,1 @@ getDimFromImage?: boolean; | ||
export declare const saveState: (state: IState, lastImage?: string) => IState; | ||
export {}; |
@@ -6,5 +6,5 @@ export interface ImagePickerConf { | ||
aspectRatio?: number | null; | ||
objectFit?: 'cover' | 'contain' | 'fill' | 'revert' | 'scale-down'; | ||
objectFit?: "cover" | "contain" | "fill" | "revert" | "scale-down"; | ||
compressInitial?: number | undefined | null; | ||
language?: 'en' | 'de' | 'es' | 'fa' | 'fr' | 'pt'; | ||
language?: string; | ||
hideDeleteBtn?: boolean; | ||
@@ -28,2 +28,3 @@ hideDownloadBtn?: boolean; | ||
basicFilters?: IBasicFilterState; | ||
rotation: number; | ||
} | ||
@@ -30,0 +31,0 @@ export interface ICacheData { |
{ | ||
"name": "react-image-picker-editor", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"description": "React library for the selection, edition and compression of images in png, jpeg and webp formats.", | ||
@@ -21,15 +21,17 @@ "author": { | ||
"prepare": "run-s build", | ||
"test": "run-s test:unit test:lint test:build", | ||
"test:build": "run-s build", | ||
"test:lint": "eslint .", | ||
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom", | ||
"test:watch": "react-scripts test --env=jsdom", | ||
"predeploy": "cd example && yarn install && yarn run build", | ||
"release": "rm -rf ./dist && yarn build && cp ./LICENSE.md ./dist/ && cp ./README.md ./dist/ && npm publish", | ||
"deploy": "gh-pages -d example/build" | ||
"release": "rm -rf ./dist && yarn build && yarn test && cp ./LICENSE.md ./dist/ && cp ./README.md ./dist/ && npm publish", | ||
"deploy": "gh-pages -d example/build", | ||
"test": "jest", | ||
"test:watch": "jest --watch", | ||
"test:coverage": "jest --coverage" | ||
}, | ||
"peerDependencies": { | ||
"react": "^17.0.2" | ||
"react": "^17.0.2 || ^18" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.26.10", | ||
"@rollup/plugin-babel": "^5.3.0", | ||
@@ -40,6 +42,7 @@ "@rollup/plugin-commonjs": "^21.0.0", | ||
"@rollup/plugin-typescript": "^8.2.5", | ||
"@testing-library/jest-dom": "^5.16.3", | ||
"@testing-library/react": "^12.1.4", | ||
"@testing-library/dom": "^10.4.0", | ||
"@testing-library/jest-dom": "^5.16.5", | ||
"@testing-library/react": "^13.4.0", | ||
"@testing-library/user-event": "^13.5.0", | ||
"@types/jest": "^29.4.0", | ||
"@types/jest": "^29.5.14", | ||
"@types/mime": "^4.0.0", | ||
@@ -52,2 +55,3 @@ "@types/node": "^18.14.6", | ||
"babel-eslint": "^10.1.0", | ||
"babel-jest": "^29.7.0", | ||
"cross-env": "^7.0.3", | ||
@@ -62,2 +66,5 @@ "eslint": "^8.12.0", | ||
"gh-pages": "^2.2.0", | ||
"identity-obj-proxy": "^3.0.0", | ||
"jest": "^29.0.0", | ||
"jest-environment-jsdom": "^29.0.0", | ||
"mime": "^4.0.3", | ||
@@ -72,2 +79,3 @@ "npm-run-all": "^4.1.5", | ||
"sass": "^1.49.9", | ||
"ts-jest": "^29.3.1", | ||
"typescript": "4.9.3" | ||
@@ -74,0 +82,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
557165
4.18%33
26.92%5752
1.7%42
20%