UNPKG

smooth-scroll-into-view-if-needed

Version:

Ponyfill for smooth scrolling elements into view (if needed!)

123 lines (122 loc) 2.73 kB
{ "name": "smooth-scroll-into-view-if-needed", "description": "Ponyfill for smooth scrolling elements into view (if needed!)", "license": "MIT", "author": "Cody Olsen", "homepage": "https://scroll-into-view.dev", "repository": { "type": "git", "url": "git+https://github.com/scroll-into-view/smooth-scroll-into-view-if-needed.git" }, "version": "2.0.2", "type": "module", "exports": { ".": { "types": "./dist/index.d.ts", "source": "./src/index.ts", "import": "./dist/index.js", "require": "./dist/index.cjs", "default": "./dist/index.js" }, "./package.json": "./package.json" }, "main": "./dist/index.cjs", "module": "./dist/index.js", "typings": "./dist/index.d.ts", "files": [ "dist", "src" ], "scripts": { "test": "jest", "typecheck": "tsc --noEmit", "prebuild": "npm run clean", "build": "pkg build --strict", "clean": "npx rimraf 'dist'", "prepublishOnly": "npm run build" }, "dependencies": { "scroll-into-view-if-needed": "^3.1.0" }, "devDependencies": { "@sanity/pkg-utils": "^2.2.8", "@sanity/semantic-release-preset": "^4.0.0", "@types/jest": "^26.0.24", "babel-eslint": "^10.1.0", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-import": "^2.25.3", "eslint-plugin-react": "^7.27.0", "jest": "^26.6.3", "jest-junit": "^12.3.0", "prettier": "^2.8.4", "prettier-package-json": "^2.8.0", "rimraf": "^3.0.2", "semantic-release": "^20.1.1", "ts-jest": "^26.5.6", "typescript": "^4.4.4" }, "keywords": [ "behavior-smooth", "if-needed", "polyfill", "ponyfill", "scroll", "scroll-into-view", "scrollIntoView", "scrollIntoViewIfNeeded", "scrollMode", "smooth", "smoothscroll", "typescript" ], "browserify": { "transform": [ "loose-envify" ] }, "bundlesize": [ { "path": "./umd/smooth-scroll-into-view-if-needed.min.js", "maxSize": "5 kB", "compression": "none" } ], "jest": { "transform": { "^.+\\.ts$": "ts-jest" }, "testRegex": "(/tests/.*|(\\.|/)(test|spec))\\.(js|ts)$", "moduleFileExtensions": [ "ts", "tsx", "js", "jsx", "json", "node" ], "reporters": [ "default", [ "jest-junit", { "output": "reports/jest/results.xml" } ] ] }, "prettier": { "semi": false, "singleQuote": true, "trailingComma": "es5", "overrides": [ { "files": ".babelrc", "options": { "parser": "json" } } ] }, "sideEffects": false }