react-intersection-observer-hook
Version:
React hook to use IntersectionObserver declaratively.
68 lines (67 loc) • 1.71 kB
JSON
{
"name": "react-intersection-observer-hook",
"version": "4.0.0",
"description": "React hook to use IntersectionObserver declaratively.",
"keywords": [
"react",
"react-hooks",
"intersection-observer",
"on-screen",
"visibility"
],
"homepage": "https://onderonur.github.io/react-intersection-observer-hook",
"bugs": {
"url": "https://github.com/onderonur/react-intersection-observer-hook/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/onderonur/react-intersection-observer-hook.git",
"directory": "packages/react-intersection-observer-hook"
},
"license": "MIT",
"author": "onderonur",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"attw": "attw --pack .",
"build": "tsup",
"dev": "tsup --watch",
"lint": "eslint . --max-warnings 0",
"lint:fix": "eslint . --fix --max-warnings 0",
"prepublishOnly": "npm run build",
"publint": "publint",
"typecheck": "tsc"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.1",
"@repo/eslint-config": "*",
"@repo/lint-staged-config": "*",
"@repo/typescript-config": "*",
"@types/react": "^19.0.1",
"eslint": "^8.57.0",
"publint": "^0.2.12",
"react": "^19.0.0",
"tsup": "^8.3.5",
"typescript": "^5.7.2"
},
"peerDependencies": {
"react": ">=19",
"react-dom": ">=19"
}
}