react-cookie-consent
Advanced tools
Comparing version 6.4.0 to 6.4.1
@@ -7,2 +7,3 @@ import * as React from "react"; | ||
sameSite?: "strict" | "lax" | "none"; | ||
visible?: "hidden" | "show" | "byCookieValue"; | ||
cookieSecurity?: boolean; | ||
@@ -57,2 +58,15 @@ style?: object; | ||
/** | ||
* Reset the consent cookie | ||
* Remove the cookie on browser in order to allow user to change their consent | ||
* @param {*} name optional name of the cookie | ||
*/ | ||
export function resetCookieConsentValue(name?: string); | ||
/** | ||
* Get the legacy cookie name by the regular cookie name | ||
* @param {string} name of cookie to get | ||
*/ | ||
export function getLegacyCookieName(name: string); | ||
export { Cookies }; |
@@ -8,2 +8,10 @@ # Changelog | ||
## [[6.4.1](https://github.com/Mastermindzh/react-cookie-consent/releases/tag/6.4.1))] | ||
- Added missing typing | ||
## [[6.4.0](https://github.com/Mastermindzh/react-cookie-consent/releases/tag/6.4.0))] | ||
- Added visible prop | ||
## [[6.3.0](https://github.com/Mastermindzh/react-cookie-consent/releases/tag/6.2.3))] | ||
@@ -10,0 +18,0 @@ |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "6.4.0", | ||
"version": "6.4.1", | ||
"description": "A small, simple and customizable cookie consent bar for use in React applications.", | ||
@@ -10,0 +10,0 @@ "main": "build/index.js", |
@@ -7,2 +7,3 @@ import * as React from "react"; | ||
sameSite?: "strict" | "lax" | "none"; | ||
visible?: "hidden" | "show" | "byCookieValue"; | ||
cookieSecurity?: boolean; | ||
@@ -57,2 +58,15 @@ style?: object; | ||
/** | ||
* Reset the consent cookie | ||
* Remove the cookie on browser in order to allow user to change their consent | ||
* @param {*} name optional name of the cookie | ||
*/ | ||
export function resetCookieConsentValue(name?: string); | ||
/** | ||
* Get the legacy cookie name by the regular cookie name | ||
* @param {string} name of cookie to get | ||
*/ | ||
export function getLegacyCookieName(name: string); | ||
export { Cookies }; |
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
171139
1327