{"bugs":{"url":"https://github.com/magic-akari/seamless-scroll-polyfill/issues"},"dist":{"shasum":"60991c52779dbf7367c409ed0875529f00c3ee61","tarball":"https://registry.npmjs.org/seamless-scroll-polyfill/-/seamless-scroll-polyfill-2.1.3-beta.1.tgz","fileCount":63,"integrity":"sha512-UYCF0AqM+4Ilyf+WW1t1uTlkPC6SpyhJ41WZo+eLmXa61Xish+MncyydQ2h3Fxqg3nSbR6oAR1VEQMeWIJSRdA==","signatures":[{"sig":"MEQCIDyfDeR8zf9Je94RleijRIPLP9IqlQLFuFV8KnE4Fku8AiBHjN1l9EsQiECweSxLS4twxAAFSzz0EefRIHhngvncoA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":421690},"main":"./lib/bundle.js","name":"seamless-scroll-polyfill","type":"module","title":"seamless scroll polyfill","types":"lib/index.d.ts","author":{"url":"https://iamdustan.com","name":"Dustan Kasten","email":"dustan.kasten@gmail.com"},"module":"./lib/index.js","readme":"[![Build Status](https://travis-ci.org/magic-akari/seamless-scroll-polyfill.svg?branch=master)](https://travis-ci.org/magic-akari/seamless-scroll-polyfill)\n\nThis repo is forked from iamdustan/smoothscroll and rewritten with TypeScript.\n\n## Installation and use\n\n```sh\n# npm\nnpm install seamless-scroll-polyfill --save\n\n# yarn\nyarn add seamless-scroll-polyfill\n```\n\n## Use polyfill to patch all methods\n\n```js\nimport { polyfill } from \"seamless-scroll-polyfill\";\n\npolyfill();\n```\n\n## Use specific polyfill\n\n```js\nimport { elementScrollIntoViewPolyfill } from \"seamless-scroll-polyfill\";\n\nelementScrollIntoViewPolyfill();\n```\n\n## Use methods directly without patching\n\n```js\nimport { elementScrollIntoView } from \"seamless-scroll-polyfill\";\n\nelementScrollIntoView(document.querySelector(\"#target\"), { behavior: \"smooth\", block: \"center\", inline: \"center\" });\n```\n\n## Import via script\n\n```html\n<!-- please replace the `latest` with specific version -->\n<script src=\"https://cdn.jsdelivr.net/npm/seamless-scroll-polyfill@latest/lib/bundle.min.js\"></script>\n<script>\n    // patch all methods\n    seamless.polyfill();\n    // or use specific methods\n    seamless.windowScrollBy(window, { behavior: \"smooth\", top: 200, left: 0 });\n\n    seamless.elementScrollIntoView(document.querySelector(\"#target\"), {\n        behavior: \"smooth\",\n        block: \"center\",\n        inline: \"center\",\n    });\n</script>\n```\n\n## Changelog\n\nDetailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.md).\n\n## Thanks\n\n-   [iamdustan/smoothscroll](https://github.com/iamdustan/smoothscroll)\n-   [stipsan/compute-scroll-into-view](https://github.com/stipsan/compute-scroll-into-view)\n","browser":"./lib/bundle.min.js","exports":{"import":"./lib/index.js","default":"./lib/bundle.js"},"gitHead":"30d6d91a3b4fa05cf1c5c3b16a96d38d70aebfd0","license":"MIT","scripts":{"esm":"tsc","lint":"eslint --ignore-path .gitignore \"**/*.ts\"","rollup":"rollup -c","prepare":"husky install","prettier":"prettier --ignore-path .gitignore -l \"**/*.{ts,js,json,yml}\" \"README.md\"","type-check":"tsc --noEmit --skipLibCheck","prettier:fix":"prettier --ignore-path .gitignore --write \"**/*.{ts,js,json,yml}\" \"README.md\"","semantic-release":"HUSKY=0 semantic-release"},"_npmUser":{"name":"magic-akari","email":"akari.ccino@gmail.com"},"homepage":"https://github.com/magic-akari/seamless-scroll-polyfill","keywords":["smooth","scroll","scrollIntoView","CSSOM","polyfill"],"deprecated":"test version. do not us it","repository":{"url":"git+https://github.com/magic-akari/seamless-scroll-polyfill.git","type":"git"},"_npmVersion":"6.14.15","description":"Smooth Scroll behavior polyfill","directories":{},"maintainers":[{"name":"magic-akari","email":"akari.ccino@gmail.com"}],"sideEffects":false,"_nodeVersion":"14.17.6","contributors":[{"url":"https://jeremenichelli.io","name":"Jeremias Menichelli","email":"jmenichelli@gmail.com"}],"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"husky":"^7.0.2","tslib":"^2.3.1","eslint":"^7.32.0","rollup":"^2.56.3","prettier":"^2.3.2","commitizen":"^4.2.4","typescript":"^4.4.2","lint-staged":"^11.1.2","@commitlint/cli":"^13.1.0","semantic-release":"^17.4.7","eslint-config-akari":"^0.0.2","rollup-plugin-terser":"^7.0.2","@semantic-release/git":"^9.0.0","cz-conventional-changelog":"^3.3.0","rollup-plugin-typescript2":"^0.30.0","@semantic-release/changelog":"^5.0.1","@commitlint/config-conventional":"^13.1.0"},"_npmOperationalInternal":{"tmp":"tmp/seamless-scroll-polyfill_2.1.3-beta.1_1632131472542_0.6880992387195706","host":"s3://npm-registry-packages"},"_id":"seamless-scroll-polyfill@2.1.3-beta.1","version":"2.1.3-beta.1"}