react-sticky
Advanced tools
Comparing version 2.4.0 to 2.5.0
{ | ||
"name": "react-sticky", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"description": "Sticky component for React", | ||
"main": "./sticky", | ||
"main": "./lib/sticky", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"prepublish": "browserify --external react -p [minifyify --map sticky.js.map --output ./dist/sticky.js.map --uglify --compress --dead_code--comparisons 0 ] -s Sticky ./lib/sticky.js --debug > ./dist/sticky.min.js", | ||
"test": "mocha --compilers js:babel/register" | ||
}, | ||
@@ -19,18 +20,20 @@ "repository": { | ||
"author": "Captivation Software", | ||
"contributors": [{ | ||
"name": "Aaron Goin", | ||
"email": "aarondgoin@gmail.com" | ||
}, | ||
{ | ||
"name": "Alejandro Tardin", | ||
"email": "alejandro@tardin.com" | ||
}, | ||
{ | ||
"name": "Josh Carr", | ||
"email": "joshcarr@gmail.com" | ||
}, | ||
{ | ||
"name": "George Lifchits", | ||
"email": "george.lifchits@gmail.com" | ||
}], | ||
"contributors": [ | ||
{ | ||
"name": "Aaron Goin", | ||
"email": "aarondgoin@gmail.com" | ||
}, | ||
{ | ||
"name": "Alejandro Tardin", | ||
"email": "alejandro@tardin.com" | ||
}, | ||
{ | ||
"name": "Josh Carr", | ||
"email": "joshcarr@gmail.com" | ||
}, | ||
{ | ||
"name": "George Lifchits", | ||
"email": "george.lifchits@gmail.com" | ||
} | ||
], | ||
"license": "MIT", | ||
@@ -43,3 +46,12 @@ "bugs": { | ||
"react": "0.x" | ||
}, | ||
"devDependencies": { | ||
"babel": "^5.8.21", | ||
"browserify": "^11.0.1", | ||
"chai": "^3.2.0", | ||
"jsdom": "3.x", | ||
"lodash": "^3.10.1", | ||
"minifyify": "^7.0.5", | ||
"mocha": "^2.2.5" | ||
} | ||
} |
@@ -1,7 +0,17 @@ | ||
react-sticky | ||
react-sticky [![Build Status](https://travis-ci.org/captivationsoftware/react-sticky.svg?branch=master)](https://travis-ci.org/captivationsoftware/react-sticky) | ||
============ | ||
[Demo](https://captivationsoftware.github.io/react-sticky) | ||
Make any React component on your page sticky using inline styles or CSS classes! | ||
### [Demo](https://captivationsoftware.github.io/react-sticky) | ||
Make your React components sticky! | ||
Perfect for headers, menus, or any other element where you want to maximize | ||
usability as your users scroll. Tons of options to make this component fit | ||
your project's needs, or simply rely on the ready-to-go defaults. | ||
##### Highlights: | ||
- Not bound to any version of React so it will scale along with the community! | ||
- Only 12K, with 0 external dependencies (besides React, of course)! | ||
- Allows multiple Sticky elements on the page at once! | ||
## Installation | ||
@@ -12,2 +22,4 @@ ```sh | ||
Tip: Run `npm install` to build the compressed UMD version suitable for inclusion via CommonJS/AMD/manual `<script />` includes. | ||
## Code Example | ||
@@ -112,3 +124,3 @@ | ||
Note: In the event that `stickyStyle` rules conflict with `style` rules, `stickyStyle` rules take precedence ONLY while sticky state is active. | ||
Note: In the event that `stickyStyle` rules conflict with `style` rules, `stickyStyle` rules take precedence ONLY while sticky state is active. | ||
@@ -140,3 +152,3 @@ #### type | ||
Captivation Software | ||
##### [Captivation Software](http://www.captivationsoftware.com) | ||
@@ -143,0 +155,0 @@ Aaron Goin |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
38468
9
471
167
7
2
1