filepond-plugin-image-validate-size
Advanced tools
Comparing version 1.2.5 to 1.2.6
/*! | ||
* FilePondPluginImageValidateSize 1.2.5 | ||
* FilePondPluginImageValidateSize 1.2.6 | ||
* Licensed under MIT, https://opensource.org/licenses/MIT/ | ||
@@ -4,0 +4,0 @@ * Please visit https://pqina.nl/filepond/ for details. |
/*! | ||
* FilePondPluginImageValidateSize 1.2.5 | ||
* FilePondPluginImageValidateSize 1.2.6 | ||
* Licensed under MIT, https://opensource.org/licenses/MIT/ | ||
@@ -4,0 +4,0 @@ * Please visit https://pqina.nl/filepond/ for details. |
/*! | ||
* FilePondPluginImageValidateSize 1.2.5 | ||
* FilePondPluginImageValidateSize 1.2.6 | ||
* Licensed under MIT, https://opensource.org/licenses/MIT/ | ||
@@ -4,0 +4,0 @@ * Please visit https://pqina.nl/filepond/ for details. |
/*! | ||
* FilePondPluginImageValidateSize 1.2.5 | ||
* FilePondPluginImageValidateSize 1.2.6 | ||
* Licensed under MIT, https://opensource.org/licenses/MIT/ | ||
@@ -4,0 +4,0 @@ * Please visit https://pqina.nl/filepond/ for details. |
{ | ||
"name": "filepond-plugin-image-validate-size", | ||
"version": "1.2.5", | ||
"description": "Image Size Validation Plugin for FilePond", | ||
"license": "MIT", | ||
"author": { | ||
"name": "PQINA", | ||
"url": "https://pqina.nl/" | ||
}, | ||
"homepage": "https://pqina.nl/filepond/", | ||
"repository": "pqina/filepond-plugin-image-validate-size", | ||
"main": "dist/filepond-plugin-image-validate-size.js", | ||
"browser": "dist/filepond-plugin-image-validate-size.js", | ||
"module": "dist/filepond-plugin-image-validate-size.esm.js", | ||
"browserslist": [ | ||
"last 1 version and not Explorer 10", | ||
"Explorer 11", | ||
"iOS >= 9", | ||
"Android >= 4.4" | ||
], | ||
"files": [ | ||
"dist", | ||
"types/*.d.ts" | ||
], | ||
"types": "types/index.d.ts", | ||
"scripts": { | ||
"start": "npx rollup -c -w", | ||
"build": "npx rollup -c" | ||
}, | ||
"peerDependencies": { | ||
"filepond": ">=1.8.x <5.x" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.4.0", | ||
"@babel/preset-env": "^7.4.2", | ||
"rollup": "^1.7.0", | ||
"rollup-plugin-babel": "^4.3.2", | ||
"rollup-plugin-commonjs": "^9.2.1", | ||
"rollup-plugin-license": "^0.8.1", | ||
"rollup-plugin-node-resolve": "^4.0.1", | ||
"rollup-plugin-prettier": "^0.6.0", | ||
"rollup-plugin-terser": "^4.0.4" | ||
} | ||
} | ||
"name": "filepond-plugin-image-validate-size", | ||
"version": "1.2.6", | ||
"description": "Image Size Validation Plugin for FilePond", | ||
"license": "MIT", | ||
"author": { | ||
"name": "PQINA", | ||
"url": "https://pqina.nl/" | ||
}, | ||
"homepage": "https://pqina.nl/filepond/", | ||
"repository": "pqina/filepond-plugin-image-validate-size", | ||
"main": "dist/filepond-plugin-image-validate-size.js", | ||
"browser": "dist/filepond-plugin-image-validate-size.js", | ||
"module": "dist/filepond-plugin-image-validate-size.esm.js", | ||
"browserslist": [ | ||
"last 1 version and not Explorer 10", | ||
"Explorer 11", | ||
"iOS >= 9", | ||
"Android >= 4.4" | ||
], | ||
"files": [ | ||
"dist", | ||
"types/*.d.ts" | ||
], | ||
"types": "types/index.d.ts", | ||
"scripts": { | ||
"start": "npx rollup -c -w", | ||
"build": "npx rollup -c" | ||
}, | ||
"peerDependencies": { | ||
"filepond": ">=1.8.x <5.x" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.4.0", | ||
"@babel/preset-env": "^7.4.2", | ||
"rollup": "^1.7.0", | ||
"rollup-plugin-babel": "^4.3.2", | ||
"rollup-plugin-commonjs": "^9.2.1", | ||
"rollup-plugin-license": "^0.8.1", | ||
"rollup-plugin-node-resolve": "^4.0.1", | ||
"rollup-plugin-prettier": "^0.6.0", | ||
"rollup-plugin-terser": "^4.0.4" | ||
} | ||
} |
@@ -1,38 +0,41 @@ | ||
declare module "filepond-plugin-image-validate-size" { | ||
const FilePondPluginImageValidateSize: FilePondPluginImageValidateSizeProps; | ||
export interface FilePondPluginImageValidateSizeProps { | ||
/** Enable or disable image size validation. */ | ||
allowImageValidateSize?: boolean; | ||
/** The minimum image width. */ | ||
imageValidateSizeMinWidth?: number; | ||
/** The maximum image width. */ | ||
imageValidateSizeMaxWidth?: number; | ||
/** The minimum image height. */ | ||
imageValidateSizeMinHeight?: number; | ||
/** The maximum image height. */ | ||
imageValidateSizeMaxHeight?: number; | ||
/** The message shown when the image is not supported by the browser. */ | ||
imageValidateSizeLabelFormatError?: string; | ||
/** The message shown when the image is too small. */ | ||
imageValidateSizeLabelImageSizeTooSmall?: string; | ||
/** The message shown when the image is too big. */ | ||
imageValidateSizeLabelImageSizeTooBig?: string; | ||
/** Message shown to indicate the minimum image size. */ | ||
imageValidateSizeLabelExpectedMinSize?: string; | ||
/** The minimum image resolution. */ | ||
imageValidateSizeMinResolution?: number; | ||
/** The maximum image resolution. */ | ||
imageValidateSizeMaxResolution?: number; | ||
/** The message shown when the image resolution is too low. */ | ||
imageValidateSizeLabelImageResolutionTooLow?: string; | ||
/** The message shown when the image resolution is too high. */ | ||
imageValidateSizeLabelImageResolutionTooHigh?: string; | ||
/** Message shown to indicate the minimum image resolution. */ | ||
imageValidateSizeLabelExpectedMinResolution?: string; | ||
/** Message shown to indicate the maximum image resolution. */ | ||
imageValidateSizeLabelExpectedMaxResolution?: string; | ||
/** A custom function to measure the image file, for when you want to measure image formats not supported by browsers. Receives the image file, should return a Promise. Resolve should pass a size object containing both a width and height parameter. Reject should be called if the image format is not supported / can’t be measured. */ | ||
imageValidateSizeMeasure?: (file: File) => Promise<{ width: number, height: number }>; | ||
} | ||
export default FilePondPluginImageValidateSize; | ||
// @ts-ignore | ||
import { FilePondOptions } from "filepond"; | ||
declare module "filepond" { | ||
export interface FilePondOptions { | ||
/** Enable or disable image size validation. */ | ||
allowImageValidateSize?: boolean; | ||
/** The minimum image width. */ | ||
imageValidateSizeMinWidth?: number; | ||
/** The maximum image width. */ | ||
imageValidateSizeMaxWidth?: number; | ||
/** The minimum image height. */ | ||
imageValidateSizeMinHeight?: number; | ||
/** The maximum image height. */ | ||
imageValidateSizeMaxHeight?: number; | ||
/** The message shown when the image is not supported by the browser. */ | ||
imageValidateSizeLabelFormatError?: string; | ||
/** The message shown when the image is too small. */ | ||
imageValidateSizeLabelImageSizeTooSmall?: string; | ||
/** The message shown when the image is too big. */ | ||
imageValidateSizeLabelImageSizeTooBig?: string; | ||
/** Message shown to indicate the minimum image size. */ | ||
imageValidateSizeLabelExpectedMinSize?: string; | ||
/** The minimum image resolution. */ | ||
imageValidateSizeMinResolution?: number; | ||
/** The maximum image resolution. */ | ||
imageValidateSizeMaxResolution?: number; | ||
/** The message shown when the image resolution is too low. */ | ||
imageValidateSizeLabelImageResolutionTooLow?: string; | ||
/** The message shown when the image resolution is too high. */ | ||
imageValidateSizeLabelImageResolutionTooHigh?: string; | ||
/** Message shown to indicate the minimum image resolution. */ | ||
imageValidateSizeLabelExpectedMinResolution?: string; | ||
/** Message shown to indicate the maximum image resolution. */ | ||
imageValidateSizeLabelExpectedMaxResolution?: string; | ||
/** A custom function to measure the image file, for when you want to measure image formats not supported by browsers. Receives the image file, should return a Promise. Resolve should pass a size object containing both a width and height parameter. Reject should be called if the image format is not supported / can’t be measured. */ | ||
imageValidateSizeMeasure?: ( | ||
file: File | ||
) => Promise<{ width: number; height: number }>; | ||
} | ||
} |
530
27815