Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-scroll-into-view

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-scroll-into-view - npm Package Compare versions

Comparing version 2.0.2 to 2.1.0

dist/index.cjs

2

dist/index.d.ts

@@ -13,3 +13,3 @@ import React from 'react';

};
declare const ScrollInto: ({ children, selector, smooth, style, alignToTop, className, onClick, scrollOptions }: ScrollIntoViewProps) => React.JSX.Element;
export declare const ScrollInto: ({ children, selector, smooth, style, alignToTop, className, onClick, scrollOptions }: ScrollIntoViewProps) => React.JSX.Element;
export default ScrollInto;
{
"name": "react-scroll-into-view",
"version": "2.0.2",
"version": "2.1.0",
"description": "Simple React element that when clicked scrolls to any element on page",
"main": "./dist/index.cjs.js",
"module": "./dist/index.js",
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs.js"
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}

@@ -17,10 +22,11 @@ },

"scripts": {
"build": "package-check && rollup -c ",
"build": "package-check && rollup --config rollup.config.ts --configPlugin typescript && npm run copy-types && npx publint",
"test": "jest",
"tsc": "tsc",
"prepare": "husky install"
"prepare": "husky install",
"copy-types": "cp ./dist/index.d.ts ./dist/index.d.cts && cp ./dist/index.d.ts ./dist/index.d.mts"
},
"repository": {
"type": "git",
"url": "git@github.com:dominikbulaj/react-scroll-into-view.git"
"url": "git+ssh://git@github.com/dominikbulaj/react-scroll-into-view.git"
},

@@ -42,4 +48,5 @@ "keywords": [

"@babel/preset-react": "^7.0.0",
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"@commitlint/types": "^18.4.3",
"@rollup/plugin-babel": "^5.3.0",

@@ -50,3 +57,3 @@ "@rollup/plugin-node-resolve": "^13.0.5",

"@testing-library/react": "12.1.5",
"@types/jest": "^28.1.6",
"@types/jest": "^29.5.3",
"@types/node": "^18.6.3",

@@ -58,3 +65,3 @@ "@types/react": "^18.0.15",

"husky": "^8.0.0",
"jest": "^28.1.3",
"jest": "^29.6.2",
"jest-environment-jsdom": "^28.1.3",

@@ -67,3 +74,4 @@ "react": "^16.5.2",

"rollup-plugin-terser": "^7.0.2",
"ts-jest": "^28.0.7",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"tslib": "^2.4.0",

@@ -82,3 +90,3 @@ "typescript": "^4.7.4"

},
"types": "dist/index.d.ts"
"types": "./dist/index.d.ts"
}

@@ -5,6 +5,7 @@ # React scroll-into-view

[![npm version](https://img.shields.io/npm/v/react-scroll-into-view)](https://www.npmjs.com/package/react-scroll-into-view)
[![bundlephobia](https://badgen.net/bundlephobia/minzip/react-scroll-into-view)](https://bundlephobia.com/package/react-scroll-into-view)
[![tree shakable](https://badgen.net/bundlephobia/tree-shaking/react-scroll-into-view)](https://badgen.net/bundlephobia/tree-shaking/react-scroll-into-view)
[![bundlephobia](https://badgen.net/bundlephobia/minzip/react-scroll-into-view/)](https://bundlephobia.com/package/react-scroll-into-view)
[![tree shakable](https://badgen.net/bundlephobia/tree-shaking/react-scroll-into-view/)](https://bundlephobia.com/package/react-scroll-into-view)
[![dependency count](https://badgen.net/bundlephobia/dependency-count/react-scroll-into-view/)](https://bundlephobia.com/package/react-scroll-into-view)
Fast & declarative way for scrolling to any element on page. Weights only ~1.3 kB minified + gzipped
Fast & declarative way for scrolling to any element on page. Weights less than 600B (minified + gzipped)!

@@ -11,0 +12,0 @@ ## Idea behind

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc