click-away-listener
Version:
A React component and hook library for detecting clicks outside an element, compatible with React 18 and Next.js
58 lines • 1.59 kB
JSON
{
"name": "click-away-listener",
"version": "1.0.3",
"description": "A React component and hook library for detecting clicks outside an element, compatible with React 18 and Next.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "tsc",
"test": "jest",
"prepublishOnly": "npm run build",
"lint": "eslint src --ext ts,tsx",
"format": "prettier --write \"src/**/*.{ts,tsx}\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/ChetSocio/click-away-listener.git"
},
"keywords": [
"react",
"clickaway",
"click-away",
"dropdown",
"modal",
"nextjs",
"hook",
"component"
],
"author": "BatchNepal Consultancy <support@batchnepal.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/ChetSocio/click-away-listener/issues"
},
"homepage": "https://github.com/ChetSocio/click-away-listener#readme",
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"devDependencies": {
"@jest/globals": "^30.0.0-beta.3",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@types/jest": "^28.1.8",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"eslint": "^8.0.0",
"eslint-config-prettier": "^8.0.0",
"eslint-plugin-react": "^7.0.0",
"eslint-plugin-react-hooks": "^4.0.0",
"jest": "^28.1.3",
"jest-environment-jsdom": "^30.0.0-beta.3",
"prettier": "^2.7.0",
"ts-jest": "^28.0.8",
"typescript": "^4.7.0"
}
}