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 1.0.4 to 1.1.0-rc2

2

package.json
{
"name": "react-scroll-into-view",
"version": "1.0.4",
"version": "1.1.0-rc2",
"description": "Simple React element that when clicked scrolls to any element on page",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -8,2 +8,5 @@ # React scroll-into-view

## Changelog
See [releases](releases) tab
## Installation

@@ -41,2 +44,3 @@ ```

| smooth | Boolean | true | Scroll behaviour; when true - transition animation will be smooth. Otherwise instant.
| style | Object | `{display: 'inline'}` | CSS styles passed to element

@@ -43,0 +47,0 @@ ## TODO

import resolve from 'rollup-plugin-node-resolve'
import babel from 'rollup-plugin-babel'
import commonjs from 'rollup-plugin-commonjs'

@@ -10,9 +11,10 @@ export default {

},
external: [
'react',
'prop-types',
'recompose',
],
plugins: [
resolve(),
commonjs({
include: 'node_modules/**',
namedExports:{
'./node_modules/react/index.js': ['createFactory', 'Component','createElement'],
}
}),
babel({

@@ -19,0 +21,0 @@ exclude: 'node_modules/**'

@@ -5,4 +5,8 @@ import React from 'react'

const ScrollInto = ({ children, scrollIntoView }) => (
<div onClick={scrollIntoView}>
const defaultStyle = {
display:'inline',
}
const ScrollInto = ({ children, scrollIntoView, style }) => (
<div style={{...defaultStyle, style}} onClick={scrollIntoView}>
{children}

@@ -15,2 +19,3 @@ </div>

smooth: PropTypes.bool,
style: PropTypes.object,
}

@@ -20,2 +25,3 @@

smooth: true,
style: {}
}

@@ -22,0 +28,0 @@

Sorry, the diff of this file is too big to display

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