jb-image-input-react
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -20,5 +20,24 @@ import React from 'react'; | ||
type TValue = any; | ||
export declare const JBImageInput: React.ForwardRefExoticComponent<React.RefAttributes<any>>; | ||
export declare const JBImageInput: React.ForwardRefExoticComponent<JBImageInputProps<any> & React.RefAttributes<unknown>>; | ||
export type JBImageInputEventType<T, TValue> = T & { | ||
target: JBImageInputWebComponent<TValue>; | ||
}; | ||
type JBImageInputProps<TValue> = { | ||
className?: string; | ||
message?: string; | ||
placeholderTitle?: string; | ||
required?: boolean; | ||
config?: JBImageInputConfig; | ||
value?: any; | ||
uploadType?: string; | ||
onChange?: (e: JBImageInputEventType<Event, TValue>) => void; | ||
onImageSelected?: (e: JBImageInputEventType<CustomEvent, TValue>) => void; | ||
bridge?: JBImageInputBridge<TValue>; | ||
multiple?: boolean; | ||
file?: File; | ||
acceptTypes?: string; | ||
maxFileSize?: number; | ||
onMaxSizeExceed?: (e: JBImageInputEventType<Event, TValue>) => void; | ||
children?: React.ReactNode; | ||
name?: string; | ||
}; |
@@ -18,3 +18,3 @@ { | ||
], | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"bugs": "https://github.com/javadbat/jb-image-input-react-react/issues", | ||
@@ -21,0 +21,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
53420
442