image-dropzone 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -13
 - package/package.json +1 -1
 
    
        package/README.md
    CHANGED
    
    | 
         @@ -5,7 +5,6 @@ 
     | 
|
| 
       5 
5 
     | 
    
         
             
            ![npm-typescript]
         
     | 
| 
       6 
6 
     | 
    
         
             
            [![License][github-license]][github-license-url]
         
     | 
| 
       7 
7 
     | 
    
         | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
8 
     | 
    
         
             
            It is simple React counter.
         
     | 
| 
       10 
9 
     | 
    
         | 
| 
       11 
10 
     | 
    
         
             
            ## Installation:
         
     | 
| 
         @@ -22,31 +21,32 @@ yarn add -D image-dropzone 
     | 
|
| 
       22 
21 
     | 
    
         | 
| 
       23 
22 
     | 
    
         
             
            ## Usage :
         
     | 
| 
       24 
23 
     | 
    
         | 
| 
       25 
     | 
    
         
            -
            Add ` 
     | 
| 
      
 24 
     | 
    
         
            +
            Add `ImageDropZone` to your component:
         
     | 
| 
       26 
25 
     | 
    
         | 
| 
       27 
26 
     | 
    
         
             
            ```js
         
     | 
| 
       28 
27 
     | 
    
         
             
            import React from 'react'
         
     | 
| 
       29 
28 
     | 
    
         
             
            import ReactDOM from 'react-dom/client'
         
     | 
| 
       30 
     | 
    
         
            -
            import {  
     | 
| 
      
 29 
     | 
    
         
            +
            import { ImageDropZone } from 'image-dropzone'
         
     | 
| 
       31 
30 
     | 
    
         | 
| 
       32 
31 
     | 
    
         
             
            const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
         
     | 
| 
       33 
32 
     | 
    
         
             
            root.render(
         
     | 
| 
       34 
33 
     | 
    
         
             
                <React.StrictMode>
         
     | 
| 
       35 
     | 
    
         
            -
                    < 
     | 
| 
       36 
     | 
    
         
            -
                         
     | 
| 
       37 
     | 
    
         
            -
                         
     | 
| 
       38 
     | 
    
         
            -
             
     | 
| 
       39 
     | 
    
         
            -
             
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
       41 
     | 
    
         
            -
                         
     | 
| 
       42 
     | 
    
         
            -
                        <MyCounter value={5} />
         
     | 
| 
       43 
     | 
    
         
            -
                    </div>
         
     | 
| 
      
 34 
     | 
    
         
            +
                    <ImageDropZone
         
     | 
| 
      
 35 
     | 
    
         
            +
                        ref={yourDropzoneRef}
         
     | 
| 
      
 36 
     | 
    
         
            +
                        from={"businessLogo"}
         
     | 
| 
      
 37 
     | 
    
         
            +
                        sendUploadImage={handleUploadImage} // upload function
         
     | 
| 
      
 38 
     | 
    
         
            +
                        handleResetImage={handleResetImage} // reset image function
         
     | 
| 
      
 39 
     | 
    
         
            +
                        handleChangeImage={handleChangeImage} // change image function
         
     | 
| 
      
 40 
     | 
    
         
            +
                        />
         
     | 
| 
       44 
41 
     | 
    
         
             
                </React.StrictMode>,
         
     | 
| 
       45 
42 
     | 
    
         
             
            )
         
     | 
| 
       46 
43 
     | 
    
         | 
| 
       47 
44 
     | 
    
         
             
            ```
         
     | 
| 
       48 
45 
     | 
    
         | 
| 
       49 
46 
     | 
    
         
             
            [npm-url]: https://www.npmjs.com/package/image-dropzone
         
     | 
| 
      
 47 
     | 
    
         
            +
            [npm-image]: https://img.shields.io/npm/v/image-dropzone
         
     | 
| 
      
 48 
     | 
    
         
            +
            [github-license]: https://img.shields.io/github/license/NavjotKaur01/image-dropzone
         
     | 
| 
       50 
49 
     | 
    
         
             
            [github-license-url]: https://github.com/NavjotKaur01/image-dropzone/blob/main/LICENSE
         
     | 
| 
       51 
50 
     | 
    
         
             
            [github-build]: https://github.com/NavjotKaur01/image-dropzone/actions/workflows/publish.yml/badge.svg
         
     | 
| 
       52 
     | 
    
         
            -
            [github-build-url]: https://github.com/NavjotKaur01/image-dropzone/actions/workflows/publish.yml
         
     | 
| 
      
 51 
     | 
    
         
            +
            [github-build-url]: https://github.com/NavjotKaur01/image-dropzone/actions/workflows/publish.yml
         
     | 
| 
      
 52 
     | 
    
         
            +
            [npm-typescript]: https://img.shields.io/npm/types/image-dropzone
         
     |