UNPKG

react-image-section-mapper

Version:

react-image-section-mapper is a React component that enables users to create interactive, resizable, and draggable sections on images. It is useful for image annotation, mapping hot zones, or interactive UI elements on images.

96 lines (95 loc) 3.06 kB
{ "name": "react-image-section-mapper", "version": "1.0.3", "description": "react-image-section-mapper is a React component that enables users to create interactive, resizable, and draggable sections on images. It is useful for image annotation, mapping hot zones, or interactive UI elements on images.", "repository": { "type": "git", "url": "https://github.com/mdtanvirahamedshanto/react-image-section-mapper.git" }, "keywords": [ "react-image-section-mapper", "react", "image-mapping", "react-image-mapper", "interactive-image", "image-annotations", "image-hotspots", "react-component", "image-sections", "react-draggable", "react-resizable", "typescript" ], "author": "Md Tanvir Ahamed Shanto", "license": "ISC", "type": "commonjs", "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", "scripts": { "build": "tsup src/index.ts --dts --format esm,cjs --minify", "test": "echo \"No tests specified\" && exit 0", "test:watch": "jest --watch", "test:coverage": "jest --coverage", "lint": "eslint src/**/*.ts src/**/*.tsx", "typecheck": "tsc --noEmit", "prepare": "husky install", "prepublishOnly": "npm run lint && npm run test && npm run build", "preversion": "npm run lint", "version": "npm run format && git add -A src", "postversion": "git push && git push --tags", "prepares": "npm run build", "rollup": "rollup -c --bundleConfigAsCjs" }, "lint-staged": { "src/**/*.{js,jsx,ts,tsx}": [ "eslint --fix", "prettier --write" ] }, "devDependencies": { "@babel/core": "^7.26.8", "@babel/preset-env": "^7.26.8", "@babel/preset-react": "^7.26.3", "@eslint/js": "^9.20.0", "@jest/globals": "^29.7.0", "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-commonjs": "^28.0.2", "@rollup/plugin-node-resolve": "^16.0.0", "@rollup/plugin-terser": "^0.4.4", "@rollup/plugin-typescript": "^12.1.2", "@swc/core": "^1.10.15", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.2.0", "@testing-library/user-event": "^14.6.1", "@types/jest": "^29.5.14", "@types/node": "^22.13.1", "@types/react": "^19.0.8", "@typescript-eslint/eslint-plugin": "^8.24.0", "@typescript-eslint/parser": "^8.24.0", "babel-jest": "^29.7.0", "eslint": "^9.20.1", "eslint-plugin-react": "^7.37.4", "globals": "^15.14.0", "husky": "^9.1.7", "identity-obj-proxy": "^3.0.0", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "jest-esm-transformer": "^1.0.0", "lint-staged": "^15.4.3", "prettier": "^3.5.0", "prop-types": "^15.8.1", "rollup": "^4.34.6", "rollup-plugin-dts": "^6.1.1", "rollup-plugin-peer-deps-external": "^2.2.4", "ts-jest": "^29.2.5", "tslib": "^2.8.1", "tsup": "^8.3.6", "typescript": "^5.7.3", "typescript-eslint": "^8.24.0" }, "dependencies": { "react": "^19.0.0", "react-dom": "^19.0.0" } }