image-dropzone 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +51 -51
- package/package.json +61 -61
- package/dist/index.2d3ace14.js +0 -27444
- package/dist/index.2d3ace14.js.map +0 -1
- package/dist/index.html +0 -14
package/README.md
CHANGED
@@ -1,52 +1,52 @@
|
|
1
|
-
# image-dropzone-typescript-package
|
2
|
-
|
3
|
-
[![NPM version][npm-image]][npm-url]
|
4
|
-
[![Build][github-build]][github-build-url]
|
5
|
-
![npm-typescript]
|
6
|
-
[![License][github-license]][github-license-url]
|
7
|
-
|
8
|
-
|
9
|
-
It is simple React counter.
|
10
|
-
|
11
|
-
## Installation:
|
12
|
-
|
13
|
-
```bash
|
14
|
-
npm install image-dropzone --save-dev
|
15
|
-
```
|
16
|
-
|
17
|
-
or
|
18
|
-
|
19
|
-
```bash
|
20
|
-
yarn add -D image-dropzone
|
21
|
-
```
|
22
|
-
|
23
|
-
## Usage :
|
24
|
-
|
25
|
-
Add `MyCounter` to your component:
|
26
|
-
|
27
|
-
```js
|
28
|
-
import React from 'react'
|
29
|
-
import ReactDOM from 'react-dom/client'
|
30
|
-
import { MyCounter } from 'my-react-typescript-package'
|
31
|
-
|
32
|
-
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
|
33
|
-
root.render(
|
34
|
-
<React.StrictMode>
|
35
|
-
<div>
|
36
|
-
<h2>Default counter</h2>
|
37
|
-
<MyCounter />
|
38
|
-
</div>
|
39
|
-
<hr />
|
40
|
-
<div>
|
41
|
-
<h2>Counter with predefined value</h2>
|
42
|
-
<MyCounter value={5} />
|
43
|
-
</div>
|
44
|
-
</React.StrictMode>,
|
45
|
-
)
|
46
|
-
|
47
|
-
```
|
48
|
-
|
49
|
-
[npm-url]: https://www.npmjs.com/package/image-dropzone
|
50
|
-
[github-license-url]: https://github.com/NavjotKaur01/image-dropzone/blob/main/LICENSE
|
51
|
-
[github-build]: https://github.com/NavjotKaur01/image-dropzone/actions/workflows/publish.yml/badge.svg
|
1
|
+
# image-dropzone-typescript-package
|
2
|
+
|
3
|
+
[![NPM version][npm-image]][npm-url]
|
4
|
+
[![Build][github-build]][github-build-url]
|
5
|
+
![npm-typescript]
|
6
|
+
[![License][github-license]][github-license-url]
|
7
|
+
|
8
|
+
|
9
|
+
It is simple React counter.
|
10
|
+
|
11
|
+
## Installation:
|
12
|
+
|
13
|
+
```bash
|
14
|
+
npm install image-dropzone --save-dev
|
15
|
+
```
|
16
|
+
|
17
|
+
or
|
18
|
+
|
19
|
+
```bash
|
20
|
+
yarn add -D image-dropzone
|
21
|
+
```
|
22
|
+
|
23
|
+
## Usage :
|
24
|
+
|
25
|
+
Add `MyCounter` to your component:
|
26
|
+
|
27
|
+
```js
|
28
|
+
import React from 'react'
|
29
|
+
import ReactDOM from 'react-dom/client'
|
30
|
+
import { MyCounter } from 'my-react-typescript-package'
|
31
|
+
|
32
|
+
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
|
33
|
+
root.render(
|
34
|
+
<React.StrictMode>
|
35
|
+
<div>
|
36
|
+
<h2>Default counter</h2>
|
37
|
+
<MyCounter />
|
38
|
+
</div>
|
39
|
+
<hr />
|
40
|
+
<div>
|
41
|
+
<h2>Counter with predefined value</h2>
|
42
|
+
<MyCounter value={5} />
|
43
|
+
</div>
|
44
|
+
</React.StrictMode>,
|
45
|
+
)
|
46
|
+
|
47
|
+
```
|
48
|
+
|
49
|
+
[npm-url]: https://www.npmjs.com/package/image-dropzone
|
50
|
+
[github-license-url]: https://github.com/NavjotKaur01/image-dropzone/blob/main/LICENSE
|
51
|
+
[github-build]: https://github.com/NavjotKaur01/image-dropzone/actions/workflows/publish.yml/badge.svg
|
52
52
|
[github-build-url]: https://github.com/NavjotKaur01/image-dropzone/actions/workflows/publish.yml
|
package/package.json
CHANGED
@@ -1,61 +1,61 @@
|
|
1
|
-
{
|
2
|
-
"name": "image-dropzone",
|
3
|
-
"version": "1.0.
|
4
|
-
"description": "",
|
5
|
-
"main": "./dist/cjs/index.js",
|
6
|
-
"module": "./dist/esm/index.js",
|
7
|
-
"types": "./dist/esm/index.d.ts",
|
8
|
-
"scripts": {
|
9
|
-
"build": "yarn build:esm && yarn build:cjs",
|
10
|
-
"build:esm": "tsc",
|
11
|
-
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
|
12
|
-
"lint": "eslint \"{**/*,*}.{js,ts,jsx,tsx}\"",
|
13
|
-
"prettier": "prettier --write \"{src,tests,example/src}/**/*.{js,ts,jsx,tsx}\"",
|
14
|
-
"test": "jest --config jestconfig.json",
|
15
|
-
"prepare": "npm run build",
|
16
|
-
"prepublishOnly": "npm test && npm run prettier && npm run lint"
|
17
|
-
},
|
18
|
-
"repository": {
|
19
|
-
"type": "git",
|
20
|
-
"url": "git+https://github.com/NavjotKaur01/image-dropzone.git"
|
21
|
-
},
|
22
|
-
"files": [
|
23
|
-
"dist",
|
24
|
-
"LICENSE",
|
25
|
-
"README.md"
|
26
|
-
],
|
27
|
-
"keywords": [
|
28
|
-
"react",
|
29
|
-
"typescript",
|
30
|
-
"image-dropzone"
|
31
|
-
],
|
32
|
-
"author": "Tushar Raj",
|
33
|
-
"license": "ISC",
|
34
|
-
"bugs": {
|
35
|
-
"url": "https://github.com/NavjotKaur01/image-dropzone/issues"
|
36
|
-
},
|
37
|
-
"homepage": "https://github.com/NavjotKaur01/image-dropzone#readme",
|
38
|
-
"devDependencies": {
|
39
|
-
"@testing-library/react": "^14.0.0",
|
40
|
-
"@types/jest": "^29.5.2",
|
41
|
-
"@types/react": "^18.2.14",
|
42
|
-
"@typescript-eslint/eslint-plugin": "^5.60.0",
|
43
|
-
"@typescript-eslint/parser": "^5.60.0",
|
44
|
-
"eslint": "^8.43.0",
|
45
|
-
"eslint-config-prettier": "^8.8.0",
|
46
|
-
"eslint-plugin-prettier": "^4.2.1",
|
47
|
-
"eslint-plugin-react": "^7.32.2",
|
48
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
49
|
-
"jest": "^29.5.0",
|
50
|
-
"jest-canvas-mock": "^2.5.1",
|
51
|
-
"jest-environment-jsdom": "^29.5.0",
|
52
|
-
"prettier": "^2.8.8",
|
53
|
-
"react": "^18.2.0",
|
54
|
-
"react-dom": "^18.2.0",
|
55
|
-
"ts-jest": "^29.1.0",
|
56
|
-
"typescript": "^5.1.3"
|
57
|
-
},
|
58
|
-
"peerDependencies": {
|
59
|
-
"react": ">=16"
|
60
|
-
}
|
61
|
-
}
|
1
|
+
{
|
2
|
+
"name": "image-dropzone",
|
3
|
+
"version": "1.0.2",
|
4
|
+
"description": "",
|
5
|
+
"main": "./dist/cjs/index.js",
|
6
|
+
"module": "./dist/esm/index.js",
|
7
|
+
"types": "./dist/esm/index.d.ts",
|
8
|
+
"scripts": {
|
9
|
+
"build": "yarn build:esm && yarn build:cjs",
|
10
|
+
"build:esm": "tsc",
|
11
|
+
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
|
12
|
+
"lint": "eslint \"{**/*,*}.{js,ts,jsx,tsx}\"",
|
13
|
+
"prettier": "prettier --write \"{src,tests,example/src}/**/*.{js,ts,jsx,tsx}\"",
|
14
|
+
"test": "jest --config jestconfig.json",
|
15
|
+
"prepare": "npm run build",
|
16
|
+
"prepublishOnly": "npm test && npm run prettier && npm run lint"
|
17
|
+
},
|
18
|
+
"repository": {
|
19
|
+
"type": "git",
|
20
|
+
"url": "git+https://github.com/NavjotKaur01/image-dropzone.git"
|
21
|
+
},
|
22
|
+
"files": [
|
23
|
+
"dist",
|
24
|
+
"LICENSE",
|
25
|
+
"README.md"
|
26
|
+
],
|
27
|
+
"keywords": [
|
28
|
+
"react",
|
29
|
+
"typescript",
|
30
|
+
"image-dropzone"
|
31
|
+
],
|
32
|
+
"author": "Tushar Raj",
|
33
|
+
"license": "ISC",
|
34
|
+
"bugs": {
|
35
|
+
"url": "https://github.com/NavjotKaur01/image-dropzone/issues"
|
36
|
+
},
|
37
|
+
"homepage": "https://github.com/NavjotKaur01/image-dropzone#readme",
|
38
|
+
"devDependencies": {
|
39
|
+
"@testing-library/react": "^14.0.0",
|
40
|
+
"@types/jest": "^29.5.2",
|
41
|
+
"@types/react": "^18.2.14",
|
42
|
+
"@typescript-eslint/eslint-plugin": "^5.60.0",
|
43
|
+
"@typescript-eslint/parser": "^5.60.0",
|
44
|
+
"eslint": "^8.43.0",
|
45
|
+
"eslint-config-prettier": "^8.8.0",
|
46
|
+
"eslint-plugin-prettier": "^4.2.1",
|
47
|
+
"eslint-plugin-react": "^7.32.2",
|
48
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
49
|
+
"jest": "^29.5.0",
|
50
|
+
"jest-canvas-mock": "^2.5.1",
|
51
|
+
"jest-environment-jsdom": "^29.5.0",
|
52
|
+
"prettier": "^2.8.8",
|
53
|
+
"react": "^18.2.0",
|
54
|
+
"react-dom": "^18.2.0",
|
55
|
+
"ts-jest": "^29.1.0",
|
56
|
+
"typescript": "^5.1.3"
|
57
|
+
},
|
58
|
+
"peerDependencies": {
|
59
|
+
"react": ">=16"
|
60
|
+
}
|
61
|
+
}
|