{"_id":"@aaronhayes/react-scroll-hook","_rev":"2-1a57c8316840e8153228f657de8be43e","name":"@aaronhayes/react-scroll-hook","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"@aaronhayes/react-scroll-hook","version":"1.0.1","description":"The easiest way to detect current element in view when using react-scroll","main":"build/main/index.js","typings":"build/main/index.d.ts","types":"build/main/index.d.ts","module":"build/module/index.js","repository":{"type":"git","url":"git+https://github.com/aaronhayes/react-scroll-hook.git"},"license":"MIT","keywords":["react","react-scroll","hook","scroll"],"scripts":{"describe":"npm-scripts-info","build":"run-s clean && run-p build:rollup","build:main":"tsc -p tsconfig.json","build:module":"tsc -p tsconfig.module.json","build:rollup":"rollup -c","fix":"run-s fix:*","fix:prettier":"prettier \"src/**/*.ts\" --write","fix:tslint":"tslint --fix --project .","test":"run-s build test:*","test:lint":"tslint --project . && prettier \"src/**/*.ts\" --list-different","watch":"run-s clean build:main && run-p \"build:main -- -w\" \"test:unit -- --watch\"","version":"standard-version","reset":"git clean -dfx && git reset --hard && yarn && install-peers -f","clean":"trash build test","prepare":"install-peers","prepare-release":"run-s reset test version"},"scripts-info":{"info":"Display information about the package scripts","build":"Clean and rebuild the project","fix":"Try to automatically fix any linting problems","test":"Lint and unit test the project","watch":"Watch and rebuild the project on save, then rerun relevant tests","cov":"Rebuild, run tests, then create and open the coverage report","version":"Bump package.json version, update CHANGELOG.md, tag release","reset":"Delete all untracked files and reset the repo to the last commit","prepare-release":"One-step: clean, build, test, and prep a release"},"engines":{"node":">=10.16"},"dependencies":{"lodash.debounce":"^4.0.8"},"devDependencies":{"@bitjson/npm-scripts-info":"^1.0.0","@bitjson/typedoc":"^0.15.0-0","@istanbuljs/nyc-config-typescript":"^0.1.3","@types/react":"^16.9.11","@types/react-dom":"^16.9.3","ava":"2.4.0","codecov":"^3.5.0","cz-conventional-changelog":"^3.0.2","husky":"^3.0.9","install-peers-cli":"^2.1.1","lint-staged":"^9.4.2","npm-run-all":"^4.1.5","nyc":"^14.1.1","open-cli":"^5.0.0","prettier":"^1.18.2","pretty-quick":"^2.0.0","rollup":"^1.26.2","rollup-plugin-typescript2":"^0.24.3","standard-version":"^7.0.0","trash-cli":"^3.0.0","tslint":"^5.18.0","tslint-config-prettier":"^1.18.0","tslint-immutable":"^6.0.1","typescript":"^3.5.3"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0","react-scroll":"^1.7.14"},"ava":{"failFast":true,"files":["build/main/**/*.spec.js"],"sources":["build/main/**/*.js"]},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"prettier":{"singleQuote":true},"nyc":{"extends":"@istanbuljs/nyc-config-typescript","exclude":["**/*.spec.js"]},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"gitHead":"99f1373c5748ac131fa253714ce515cf64604bfb","bugs":{"url":"https://github.com/aaronhayes/react-scroll-hook/issues"},"homepage":"https://github.com/aaronhayes/react-scroll-hook#readme","_id":"@aaronhayes/react-scroll-hook@1.0.1","_nodeVersion":"12.12.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-3Ut1+SaNRL1dDd1Tnq+rAIJ/QsHjkER/plKA/XkQlIu7utmZHumDdhMZZ6S31QtodTepqEVV9C6HJM6m6Fps3A==","shasum":"21e9d25b18c27e98f89abc5039a787f76d05c78b","tarball":"https://registry.npmjs.org/@aaronhayes/react-scroll-hook/-/react-scroll-hook-1.0.1.tgz","fileCount":11,"unpackedSize":9292,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdvBzfCRA9TVsSAnZWagAAvQkP/3TsYAn8MVWxIV6dJGjN\ntHZSsUN0nOXCH6xwLZF3iKAdQmLZgyQO6Uk2+GCMtAIGbyDolj/5oqhVBtgu\nXrNqnmwMkJ94QVwofHPyxXAFGB4SqFKxPwCP2f6Ht47VoF8RRzpLoO4HSrkZ\n42ws5Lp8pPIbMxQN8awnHOZ0WU1hILr5kduYIKg1yOqwruc/F7d5sBJN0Eyu\nTYxUfIb2QcVjMtGVRWSHHp5Tq5/Z5wR9AoVGNveOtyRiV2vKWQmaPx7fc2/X\n704+A9KCieqVP4JKn7qlz2o9XcPCPcGRc/DSDdIOGeN56xisAzuOfatcUOXK\n3hnEwJqIaU/iCQ/iiGzTPwgaIT5EWWqZvx33R1YYn2tQ0G38AKcLUg/PbaM9\nOdetq61CG5Nh4x7vsw5KjoT5Dw0ht62niS3tT5rsVacl/oTHlosLFJCKbqO5\nBYqnfBDql1OiJbJ5/q5d0uGkL3NFacOP2WK3nBhIrMupgYiUHDm77tSc1ULV\nEDQ1+C2zV84BAruJF6NrR/vpB29FgQKGW0sE8TSv14FW+raSWFOBpD3coz9M\nYCwuKtdOPi3nyp5zPvbPSWiEbmX71aKnxS9W1ONuRWLPUQAGXwl8yMfgm2zF\n0nGw31PD+VteKaRiSjcUOqdTfzzh075dehA4p/LsEzzc1mYfHvo2sS2lSBuV\nFKYA\r\n=3VfS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAMg9bASFm0juo0MX3pgrQWgesRUupoihfYr371khFXOAiBM6MTJnYQFyD2awIN7xq+JsTzf4coB58TRC3qYMFJZ2g=="}]},"maintainers":[{"name":"aaronhayes","email":"aaron.hayes92@gmail.com"}],"_npmUser":{"name":"aaronhayes","email":"aaron.hayes92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-scroll-hook_1.0.1_1572609247395_0.09185018274554335"},"_hasShrinkwrap":false},"1.0.2":{"name":"@aaronhayes/react-scroll-hook","version":"1.0.2","description":"The easiest way to detect current element in view when using react-scroll","main":"build/main/index.js","typings":"build/main/index.d.ts","types":"build/main/index.d.ts","module":"build/module/index.js","repository":{"type":"git","url":"git+https://github.com/aaronhayes/react-scroll-hook.git"},"license":"MIT","keywords":["react","react-scroll","hook","scroll"],"scripts":{"describe":"npm-scripts-info","build":"run-s clean && run-p build:rollup","build:main":"tsc -p tsconfig.json","build:module":"tsc -p tsconfig.module.json","build:rollup":"rollup -c","fix":"run-s fix:*","fix:prettier":"prettier \"src/**/*.ts\" --write","fix:tslint":"tslint --fix --project .","test":"run-s build test:*","test:lint":"tslint --project . && prettier \"src/**/*.ts\" --list-different","watch":"run-s clean build:main && run-p \"build:main -- -w\" \"test:unit -- --watch\"","version":"standard-version","reset":"git clean -dfx && git reset --hard && yarn","clean":"trash build test","prepare-release":"run-s reset test version"},"scripts-info":{"info":"Display information about the package scripts","build":"Clean and rebuild the project","fix":"Try to automatically fix any linting problems","test":"Lint and unit test the project","watch":"Watch and rebuild the project on save, then rerun relevant tests","cov":"Rebuild, run tests, then create and open the coverage report","version":"Bump package.json version, update CHANGELOG.md, tag release","reset":"Delete all untracked files and reset the repo to the last commit","prepare-release":"One-step: clean, build, test, and prep a release"},"engines":{"node":">=10.16"},"dependencies":{"lodash.debounce":"^4.0.8"},"devDependencies":{"@bitjson/npm-scripts-info":"^1.0.0","@bitjson/typedoc":"^0.15.0-0","@istanbuljs/nyc-config-typescript":"^0.1.3","@types/react":"^16.9.11","@types/react-dom":"^16.9.3","ava":"2.4.0","codecov":"^3.5.0","cz-conventional-changelog":"^3.0.2","husky":"^3.0.9","lint-staged":"^9.4.2","npm-run-all":"^4.1.5","nyc":"^14.1.1","open-cli":"^5.0.0","prettier":"^1.18.2","pretty-quick":"^2.0.0","react":"^16.8.0","react-dom":"^16.8.0","react-scroll":"^1.7.14","rollup":"^1.26.2","rollup-plugin-typescript2":"^0.24.3","standard-version":"^7.0.0","trash-cli":"^3.0.0","tslint":"^5.18.0","tslint-config-prettier":"^1.18.0","tslint-immutable":"^6.0.1","typescript":"^3.5.3"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0","react-scroll":"^1.7.14"},"ava":{"failFast":true,"files":["build/main/**/*.spec.js"],"sources":["build/main/**/*.js"]},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"prettier":{"singleQuote":true},"nyc":{"extends":"@istanbuljs/nyc-config-typescript","exclude":["**/*.spec.js"]},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"gitHead":"afaa22ad2e4266302afe72ffb8e8486421d4d4f5","bugs":{"url":"https://github.com/aaronhayes/react-scroll-hook/issues"},"homepage":"https://github.com/aaronhayes/react-scroll-hook#readme","_id":"@aaronhayes/react-scroll-hook@1.0.2","_nodeVersion":"12.12.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-xXanN1ZaYk6bpItuNEsSAnOOOjUoyOAh1F+l5YkIAOdFnJQEQQ2XNNkxA8uKmMdh4pe1iTOIyBMi4vPrOO++RA==","shasum":"d9901fb29c64fe8200dccbd40d5613181c6ff61d","tarball":"https://registry.npmjs.org/@aaronhayes/react-scroll-hook/-/react-scroll-hook-1.0.2.tgz","fileCount":11,"unpackedSize":9381,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdvMFqCRA9TVsSAnZWagAABbkP/3bEa40TX5K5DIvNPJHl\nYJ8geHUIbc0+xMnJR/iLc6P/o1OdKhbNw99lkXuoua+uqFF557WL46xgcl/X\nI/fANICBZRVDHYEGQr5aLDjkj2IhQvQAuRq463PwdADF9YHFyV9jFNgo0X18\n9M7xAPBu6Aa4o1PZnkJzUJZCQGMVlPQWIxbTDLoJTiLnUkzVl+RBe13AvvD0\nafc+I/S8HXDFTcSJTDVUZ73x4VwIk73+W8il5Vea72vgzEJpcnScAtSzzNpM\n1V0tCb+YFurUtfnIf7dGymoJONy5JejNgbuqSauEi/a3e7K77y08JPIgrjY/\nU/Bb1vhB8IzLgsaP5bz9jOjDV0H9QL9MbxibI1NnE3w+RyjMPMLl4muCFI0q\nS6O8ra2wAxsFVd8xdiKmW+jq3pu807gDzhUB9TWcGZzeZ4ag4BobLFw+18S4\nJPT534v8F/eDBBEF9whtnMXf2JxKcQoVrOqReIXd4rebj4A2vq5xLAg/cHYw\nGl00O+EPtOkXdtG2RDOlutil63KW6rp+PNSdweaUuhx2u++sEOMAl6wxoMIo\n+PtHoyh0MRqqTqhoGJcs1Cqho8uR8DvKwPBT605BetZNAYtDfXBxNqBc0VDh\nMaCYXwpjbY98bQCG0uTIEoW5jQMVjwPKdFsjkftj48CyNJF6v0u+lbQHjYac\nDaDR\r\n=XxfV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrYU78UyzrA1UxQrwpI7tjZS7VXp2Voi21t9IjjpQMAgIgKD91fVE4u51rzplRau/WrnrX0zwTLE9v0RS9smPB53Q="}]},"maintainers":[{"name":"aaronhayes","email":"aaron.hayes92@gmail.com"}],"_npmUser":{"name":"aaronhayes","email":"aaron.hayes92@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-scroll-hook_1.0.2_1572651369657_0.24723237751737748"},"_hasShrinkwrap":false}},"time":{"created":"2019-11-01T11:54:07.163Z","1.0.1":"2019-11-01T11:54:07.518Z","modified":"2022-04-04T10:55:40.775Z","1.0.2":"2019-11-01T23:36:09.846Z"},"maintainers":[{"name":"aaronhayes","email":"aaron.hayes92@gmail.com"}],"description":"The easiest way to detect current element in view when using react-scroll","homepage":"https://github.com/aaronhayes/react-scroll-hook#readme","keywords":["react","react-scroll","hook","scroll"],"repository":{"type":"git","url":"git+https://github.com/aaronhayes/react-scroll-hook.git"},"bugs":{"url":"https://github.com/aaronhayes/react-scroll-hook/issues"},"license":"MIT","readme":"# React Scroll Hook\n\n[![npm (scoped)](https://img.shields.io/npm/v/@aaronhayes/react-scroll-hook?style=flat-square)](https://www.npmjs.com/package/@aaronhayes/react-scroll-hook)\n[![Bundle Size](https://img.shields.io/bundlephobia/min/@aaronhayes/react-scroll-hook?style=flat-square)](https://bundlephobia.com/result?p=@aaronhayes/react-scroll-hook)\n![License](https://img.shields.io/npm/l/@aaronhayes/react-scroll-hook?style=flat-square)\n\nHook for watching vertical scrolling location when using [React Scroll](https://github.com/fisshy/react-scroll)\n\n## Install\n\n```\n$ npm install --save @aaronhayes/react-scroll-hook\n```\n\n```\n$ yarn add @aaronhayes/react-scroll-hook\n```\n\n## Usage\n\n```TypeScript\nimport { Link, Element , Events, animateScroll as scroll, scrollSpy, scroller } from 'react-scroll'\n\n\nimport useScrollSpy from '@aaronhayes/react-scroll-hook';\n\nconst MyScrollWatchingComponent = () => {\n    const location = useScrollSpy();\n    console.log(location);\n    // Location will either be undefined or the current element scrolled to.\n\n    return (\n        <div>\n            <h1>\n                You are currently scrolled to: {location}\n            </h1>\n        </div>\n    )\n}\n\n```\n\n## See Also\n\n- [React Scroll](https://github.com/fisshy/react-scroll)\n","readmeFilename":"README.md"}