{"_id":"@daveyplate/use-scroll-restoration","_rev":"7-91276f52e1cdc0ef14d77f047baaf7b2","name":"@daveyplate/use-scroll-restoration","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"@daveyplate/use-scroll-restoration","version":"1.0.0","keywords":["NextJS","Scroll Restoration"],"author":{"name":"LeakedDave"},"license":"ISC","_id":"@daveyplate/use-scroll-restoration@1.0.0","maintainers":[{"name":"leakeddave","email":"leakeddave@me.com"}],"homepage":"https://github.com/Daveyplate/use-scroll-restoration","dist":{"shasum":"73ee70504845243ffeacc3154dc3f271180cb137","tarball":"https://registry.npmjs.org/@daveyplate/use-scroll-restoration/-/use-scroll-restoration-1.0.0.tgz","fileCount":6,"integrity":"sha512-EHLO5q/vTLxwgL49CD7SipXn2qDtS01GOSSvYkpw262gsBPOlt+0D8HfTVqvQDWQkuoTN7r2WbqPwQb5cazTKQ==","signatures":[{"sig":"MEYCIQCqSHyg/dzbbr6OgmWtWCCwt9UnTTsY6ew0/9vqtkhGnAIhAMhslfIs1CWZDAG4q6thnhDTyRwUPQ7K79UUfy6fntW3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6411},"main":"src/index","types":"src/@types/index","gitHead":"e895181d9d4a84614457a495e46086cb526c568f","scripts":{"build":"npx tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"leakeddave","email":"leakeddave@me.com"},"_npmVersion":"10.5.0","description":"NextJS Scroll Restoration Hook","directories":{},"_nodeVersion":"20.12.0","dependencies":{"next":"^14.2.14","react":"^18.3.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.2"},"_npmOperationalInternal":{"tmp":"tmp/use-scroll-restoration_1.0.0_1727836013907_0.5328888216532326","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@daveyplate/use-scroll-restoration","version":"1.0.1","keywords":["NextJS","Scroll Restoration"],"author":{"name":"LeakedDave"},"license":"ISC","_id":"@daveyplate/use-scroll-restoration@1.0.1","maintainers":[{"name":"leakeddave","email":"leakeddave@me.com"}],"homepage":"https://github.com/Daveyplate/use-scroll-restoration","dist":{"shasum":"bfdf80590ba5a386fb299e8c4b0ce493a10be184","tarball":"https://registry.npmjs.org/@daveyplate/use-scroll-restoration/-/use-scroll-restoration-1.0.1.tgz","fileCount":6,"integrity":"sha512-XyfjkQ0oJGCjbEif42S9A6s07N5qK2VeD3lj2FCxnodH6s2zKCjgtaybZrGcmQHJZfQX2vAEquT7H7bawmxv5w==","signatures":[{"sig":"MEUCIBy5DZRdjh5kjI520QfvCu7P8WCvym20cYfiW38lkbX5AiEAtHlf69/R6p+pZS5bX8YzRbmM9asgHg38ql7aMcbUeMk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6432},"main":"src/index","type":"module","types":"src/@types/index","gitHead":"7be9dd149ba65f3242d7af2a6582e04eabdb2974","scripts":{"build":"npx tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"leakeddave","email":"leakeddave@me.com"},"_npmVersion":"10.5.0","description":"NextJS Scroll Restoration Hook","directories":{},"_nodeVersion":"20.12.0","dependencies":{"next":"^14.2.14","react":"^18.3.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.2"},"_npmOperationalInternal":{"tmp":"tmp/use-scroll-restoration_1.0.1_1727836521214_0.35145016125173645","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@daveyplate/use-scroll-restoration","version":"1.0.2","keywords":["NextJS","Scroll Restoration"],"author":{"name":"LeakedDave"},"license":"ISC","_id":"@daveyplate/use-scroll-restoration@1.0.2","maintainers":[{"name":"leakeddave","email":"leakeddave@me.com"}],"homepage":"https://github.com/Daveyplate/use-scroll-restoration","dist":{"shasum":"8e49e167afb87fb95958febd1c6a50c5b2b6bb6d","tarball":"https://registry.npmjs.org/@daveyplate/use-scroll-restoration/-/use-scroll-restoration-1.0.2.tgz","fileCount":6,"integrity":"sha512-kmfzYeivTx0+ygHMZAvL1TcWBCdNCBaM5ixFf+s1hkvHx02EZlpxEVBEqV1TEM1KBZROZzFnUev3QPI6FFIcaA==","signatures":[{"sig":"MEQCIFu0WsewRQoH204WURzlIetp4QZC1l9SJ2eUs9OPjXVBAiAl4cu9dmFFEXWK2Lj1uhE+NJr+Ba57ZEPCedWtnTq3WQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6457},"main":"src/index","type":"module","types":"src/@types/index","module":"src/index","gitHead":"3fe971c536902f95e1bcb823d062311f1bfdf910","scripts":{"build":"npx tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"leakeddave","email":"leakeddave@me.com"},"_npmVersion":"10.5.0","description":"NextJS Scroll Restoration Hook","directories":{},"_nodeVersion":"20.12.0","dependencies":{"next":"^14.2.14","react":"^18.3.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.2"},"_npmOperationalInternal":{"tmp":"tmp/use-scroll-restoration_1.0.2_1727836642267_0.849355910634608","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@daveyplate/use-scroll-restoration","version":"1.0.3","keywords":["NextJS","Scroll Restoration"],"author":{"name":"LeakedDave"},"license":"ISC","_id":"@daveyplate/use-scroll-restoration@1.0.3","maintainers":[{"name":"leakeddave","email":"leakeddave@me.com"}],"homepage":"https://github.com/Daveyplate/use-scroll-restoration","dist":{"shasum":"efe3331d5757d9785983a105d47283da5e00ab5d","tarball":"https://registry.npmjs.org/@daveyplate/use-scroll-restoration/-/use-scroll-restoration-1.0.3.tgz","fileCount":6,"integrity":"sha512-JFXjxgJkgFggGB1ScEnrrorL4i4k4NtsORwoDdhg13hg3PUAF/CVmNQHrQrM5IOnx/esVXw30u2d8Vah+dyKwQ==","signatures":[{"sig":"MEYCIQCBPrfBzwZGC9ppRSvFeITfCfJiyTov+aG+kO7bdUEM7QIhAKbAWCaZkmZnswUQRw52L4DOSadtJg7O4hp7x+oR8ivd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7172},"main":"src/index","types":"src/@types/index","gitHead":"05d096824885240e825c5991ff62f391cff1888f","scripts":{"build":"npx tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"leakeddave","email":"leakeddave@me.com"},"_npmVersion":"10.5.0","description":"NextJS Scroll Restoration Hook","directories":{},"_nodeVersion":"20.12.0","dependencies":{"next":"^14.2.14","react":"^18.3.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.2"},"_npmOperationalInternal":{"tmp":"tmp/use-scroll-restoration_1.0.3_1727836848597_0.9808905647256294","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@daveyplate/use-scroll-restoration","version":"1.0.4","keywords":["NextJS","Scroll Restoration"],"author":{"name":"LeakedDave"},"license":"ISC","_id":"@daveyplate/use-scroll-restoration@1.0.4","maintainers":[{"name":"leakeddave","email":"leakeddave@me.com"}],"homepage":"https://github.com/Daveyplate/use-scroll-restoration","dist":{"shasum":"a27ad3c9cbcbd934d68d62be68790652c3580417","tarball":"https://registry.npmjs.org/@daveyplate/use-scroll-restoration/-/use-scroll-restoration-1.0.4.tgz","fileCount":6,"integrity":"sha512-A0Rn03Gm5R9ZinJyQJXGEyeMjSKFCwOswfvAFSFKf1pZpdlJemtS+QHJppwV9YQug097Ha/WVU2TBI/EJdRL5A==","signatures":[{"sig":"MEUCIELuuwm8XGLHdtibVVOGVyfkWAOd9IWuAO8tyIs4XBKvAiEAg4voHAqfT0yNADz15St4NwBVI8mrDOMsQtmAwp9IdOI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7174},"types":"src/@types/index","module":"src/index","gitHead":"2ba0b4b94d7dd8d188c544ff5ef3deb380d4538d","scripts":{"build":"npx tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"leakeddave","email":"leakeddave@me.com"},"_npmVersion":"10.5.0","description":"NextJS Scroll Restoration Hook","directories":{},"_nodeVersion":"20.12.0","dependencies":{"next":"^14.2.14","react":"^18.3.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.2"},"_npmOperationalInternal":{"tmp":"tmp/use-scroll-restoration_1.0.4_1727837302764_0.0507850123095801","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@daveyplate/use-scroll-restoration","version":"1.0.5","keywords":["NextJS","Scroll Restoration"],"author":{"name":"daveycodez"},"license":"ISC","_id":"@daveyplate/use-scroll-restoration@1.0.5","maintainers":[{"name":"leakeddave","email":"leakeddave@me.com"}],"homepage":"https://github.com/Daveyplate/use-scroll-restoration","dist":{"shasum":"a1392d65f91a58090225d5eb2338a8d79c5888b5","tarball":"https://registry.npmjs.org/@daveyplate/use-scroll-restoration/-/use-scroll-restoration-1.0.5.tgz","fileCount":9,"integrity":"sha512-JI1m9huLhXdJXlo3WR7EmlXxO4Ht/DmebBPnhYCY0q5shHc/1rK6qXh2UmX9ini9Beeqe7ZhIzfmab6gOvQJzg==","signatures":[{"sig":"MEYCIQDZ3TDqzDYF2Awf3DMI7NXAfYlPWLf+Su8YkIpg/iym3gIhALFJvrr9gZi7bMU6peXfUHJPWedcVJEohvMkoO1NkJMu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55874},"types":"dist/index","module":"dist/index","gitHead":"092378e37510c89a964031f6cc6f4e031025025b","scripts":{"dev":"tsc --watch","build":"tsc","prepublishOnly":"rm -rf dist && npm run build"},"_npmUser":{"name":"leakeddave","email":"leakeddave@me.com"},"_npmVersion":"10.9.0","description":"NextJS Scroll Restoration Hook","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"devDependencies":{"react":"file:../daveyplate/node_modules/react","react-dom":"file:../daveyplate/node_modules/react-dom","typescript":"^5.6.2","@types/react":"^19.0.1"},"peerDependencies":{"next":">=14.0.0","react":">=18.0.0","react-dom":">=18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/use-scroll-restoration_1.0.5_1733779850886_0.2153987796327681","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2024-10-02T02:26:53.809Z","modified":"2025-11-21T03:13:13.205Z","1.0.0":"2024-10-02T02:26:54.103Z","1.0.1":"2024-10-02T02:35:21.378Z","1.0.2":"2024-10-02T02:37:22.448Z","1.0.3":"2024-10-02T02:40:48.761Z","1.0.4":"2024-10-02T02:48:22.932Z","1.0.5":"2024-12-09T21:30:51.136Z"},"author":{"name":"daveycodez"},"license":"ISC","homepage":"https://github.com/Daveyplate/use-scroll-restoration","keywords":["NextJS","Scroll Restoration"],"description":"NextJS Scroll Restoration Hook","maintainers":[{"email":"leakeddave@me.com","name":"leakeddave"},{"email":"daveycodez@gmail.com","name":"daveycodez"}],"readme":"# NextJS Scroll Restoration\n\nThis package enables custom Scroll Restoration for NextJS Pages Router.\nYou may supply a delay if you need to refetch data that isn't immediate,\nand you may specify a selector to use an element instead of the window for restoration.\n\n## Installation\n\n```\nnpm install @daveyplate/use-scroll-restoration\n```\n\n## Usage\n\nSimply call useScrollRestoration hook in a custom _app.js, parameters are all optional.\n\n```\nexport function useScrollRestoration({ router = null, enabled = true, selector = null, delay = null } = {})\n```","readmeFilename":"README.md"}