UNPKG

scroll-into-view-if-needed

Version:

Ponyfill for upcoming Element.scrollIntoView() APIs like scrollMode: if-needed, behavior: smooth and block: center

91 lines • 2.24 kB
{ "name": "scroll-into-view-if-needed", "version": "3.2.1", "description": "Ponyfill for upcoming Element.scrollIntoView() APIs like scrollMode: if-needed, behavior: smooth and block: center", "keywords": [ "behavior-smooth", "if-needed", "polyfill", "ponyfill", "scroll", "scroll-into-view", "scrollIntoView", "scrollIntoViewIfNeeded", "scrollMode", "smooth", "smoothscroll", "typescript" ], "homepage": "https://scroll-into-view.dev", "repository": { "type": "git", "url": "git+https://github.com/scroll-into-view/scroll-into-view-if-needed.git" }, "license": "MIT", "author": "Cody Olsen", "sideEffects": false, "type": "module", "exports": { ".": { "types": "./dist/index.d.ts", "source": "./src/index.ts", "require": "./dist/index.cjs", "import": "./dist/index.js", "default": "./dist/index.js" }, "./package.json": "./package.json" }, "main": "./dist/index.cjs", "module": "./dist/index.js", "source": "./src/index.ts", "typings": "./dist/index.d.ts", "files": [ "dist", "src" ], "browserslist": [ "chrome 79", "edge 79", "firefox 72", "ios_saf 13", "safari 13", "opera 66", "node 12" ], "prettier": { "semi": false, "singleQuote": true }, "dependencies": { "compute-scroll-into-view": "^3.2.2" }, "devDependencies": { "@changesets/changelog-github": "^1.0.1", "@changesets/cli": "^3.0.3", "@sanity/pkg-utils": "^4.4.4", "cross-env": "^7.0.3", "es-check": "^9.8.1", "prettier": "^3.0.3", "prettier-plugin-packagejson": "^2.4.3", "rimraf": "^4.1.2", "typescript": "^5.0.0" }, "bundlesize": [ { "path": "./dist/index.js", "maxSize": "3.3 kB", "compression": "none" } ], "publishConfig": { "access": "public", "provenance": true }, "scripts": { "build": "pnpm run clean && pkg build --strict && pnpm run check:es", "check:es": "es-check es2019 dist/index.cjs && es-check es2019 --module dist/index.js", "clean": "rimraf 'dist'", "typecheck": "tsc && tsc --noEmit -p tests/typescript", "release": "pnpm build && changeset publish" } }