react-cookie-consent
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -704,3 +704,4 @@ module.exports = | ||
TOP: "top", | ||
BOTTOM: "bottom" | ||
BOTTOM: "bottom", | ||
NONE: "none" | ||
}; | ||
@@ -859,3 +860,3 @@ | ||
CookieConsent.propTypes = { | ||
location: _propTypes2.default.oneOf(["top", "bottom"]), | ||
location: _propTypes2.default.oneOf(Object.values(OPTIONS)), | ||
style: _propTypes2.default.object, | ||
@@ -862,0 +863,0 @@ buttonStyle: _propTypes2.default.object, |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "A small, simple and customizable cookie consent bar for use in React applications.", | ||
@@ -18,3 +18,6 @@ "main": "build/index.js", | ||
"patch": "npm --no-git-tag-version version patch", | ||
"release": "npm run patch && npm run build && git add -A && git commit -m 'version bump and build' && git push && npm publish" | ||
"minor": "npm --no-git-tag-version version minor", | ||
"release": "npm run build && git add -A && git commit -m 'version bump and build' && git push && npm publish", | ||
"release-patch": "npm run patch && npm run release", | ||
"release-minor": "npm run minor && npm run release" | ||
}, | ||
@@ -38,4 +41,4 @@ "repository": { | ||
"babel-cli": "^6.24.1", | ||
"babel-core": "^6.24.1", | ||
"babel-loader": "^7.0.0", | ||
"babel-core": "^6.26.3", | ||
"babel-loader": "^7.1.4", | ||
"babel-plugin-transform-object-rest-spread": "^6.23.0", | ||
@@ -42,0 +45,0 @@ "babel-plugin-transform-react-jsx": "^6.24.1", |
@@ -80,3 +80,3 @@ # :cookie: react-cookie-consent :cookie: | ||
|---------------|:--------------------------------:|---------------|-------------------------------------------------------------------------------------------------------| | ||
| location | string, either "top" or "bottom" | "bottom" | Syntactic sugar to easily enable you to place the bar at the top or the bottom of the browser window. | | ||
| location | string, "top", "bottom" or "none"| "bottom" | Syntactic sugar to easily enable you to place the bar at the top or the bottom of the browser window. Use "none" to disable. | | ||
| children | string or React component | | Content to appear inside the bar | | ||
@@ -83,0 +83,0 @@ | disableStyles | boolean | false | If enabled the component will have no default style. (you can still supply style through props) | |
@@ -7,3 +7,4 @@ import React, { Component } from "react"; | ||
TOP: "top", | ||
BOTTOM: "bottom" | ||
BOTTOM: "bottom", | ||
NONE: "none" | ||
}; | ||
@@ -135,3 +136,3 @@ | ||
CookieConsent.propTypes = { | ||
location: PropTypes.oneOf(["top", "bottom"]), | ||
location: PropTypes.oneOf(Object.values(OPTIONS)), | ||
style: PropTypes.object, | ||
@@ -138,0 +139,0 @@ buttonStyle: PropTypes.object, |
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
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
130639
1621