react-pro-image 1.0.0

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/package.json ADDED
@@ -0,0 +1,83 @@
1
+ {
2
+ "name": "react-pro-image",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "description": "A performance-focused React image component with lazy loading, AVIF/WebP format negotiation, placeholder-to-full crossfade, and error fallback — all in a single drop-in <img> replacement.",
6
+ "author": "MohamedAlfeky1",
7
+ "license": "MIT",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/MohamedAlfeky1/react-pro-image.git"
11
+ },
12
+ "homepage": "https://github.com/MohamedAlfeky1/react-pro-image",
13
+ "bugs": {
14
+ "url": "https://github.com/MohamedAlfeky1/react-pro-image/issues"
15
+ },
16
+ "keywords": [
17
+ "react",
18
+ "image",
19
+ "lazy-loading",
20
+ "intersection-observer",
21
+ "avif",
22
+ "webp",
23
+ "optimized",
24
+ "placeholder",
25
+ "crossfade",
26
+ "performance"
27
+ ],
28
+ "main": "./dist/react-pro-image.cjs.js",
29
+ "module": "./dist/react-pro-image.es.js",
30
+ "types": "./dist/src/index.d.ts",
31
+ "exports": {
32
+ ".": {
33
+ "import": {
34
+ "types": "./dist/src/index.d.ts",
35
+ "default": "./dist/react-pro-image.es.js"
36
+ },
37
+ "require": {
38
+ "types": "./dist/src/index.d.ts",
39
+ "default": "./dist/react-pro-image.cjs.js"
40
+ }
41
+ }
42
+ },
43
+ "files": [
44
+ "dist",
45
+ "README.md",
46
+ "LICENSE"
47
+ ],
48
+ "sideEffects": false,
49
+ "scripts": {
50
+ "dev": "vite",
51
+ "build": "vite build",
52
+ "build:types": "tsc -p tsconfig.build.json",
53
+ "lint": "eslint .",
54
+ "preview": "vite preview",
55
+ "prepublishOnly": "npm run build"
56
+ },
57
+ "peerDependencies": {
58
+ "react": ">=17.0.0",
59
+ "react-dom": ">=17.0.0"
60
+ },
61
+ "peerDependenciesMeta": {
62
+ "react-dom": {
63
+ "optional": true
64
+ }
65
+ },
66
+ "devDependencies": {
67
+ "@eslint/js": "^10.0.1",
68
+ "@types/node": "^24.12.3",
69
+ "@types/react": "^19.2.14",
70
+ "@types/react-dom": "^19.2.3",
71
+ "@vitejs/plugin-react": "^6.0.1",
72
+ "eslint": "^10.3.0",
73
+ "eslint-plugin-react-hooks": "^7.1.1",
74
+ "eslint-plugin-react-refresh": "^0.5.2",
75
+ "globals": "^17.6.0",
76
+ "react": "^19.2.6",
77
+ "react-dom": "^19.2.6",
78
+ "typescript": "~6.0.2",
79
+ "typescript-eslint": "^8.59.2",
80
+ "vite": "^8.0.12",
81
+ "vite-plugin-dts": "^4.5.4"
82
+ }
83
+ }