react-cookie-kit
Advanced tools
Comparing version 1.0.20 to 1.0.21
@@ -411,4 +411,7 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
id: "xbCheckbox_".concat(cookieDefn.id), | ||
type: "checkbox", | ||
checked: consentSettings[cookieDefn.type], | ||
type: "checkbox" // Application cookies are always checked. | ||
, | ||
checked: cookieDefn.type === "application" || consentSettings[cookieDefn.type] // Application cookies are always disabled. | ||
, | ||
disabled: cookieDefn.type === "application", | ||
onChange: function onChange(e) { | ||
@@ -419,3 +422,5 @@ return _this2.handleCookieCheck(e, cookieDefn.type); | ||
htmlFor: "xbCheckbox_".concat(cookieDefn.id), | ||
className: "".concat(BLOCK, "__checkbox") | ||
className: "".concat(BLOCK, "__checkbox") // Application cookies are always disabled. | ||
, | ||
disabled: cookieDefn.type === "application" | ||
})), React.createElement("div", { | ||
@@ -597,4 +602,7 @@ className: "".concat(BLOCK, "__consent-label"), | ||
id: "xbCheckbox_".concat(cookieDefn.id), | ||
type: "checkbox", | ||
checked: consentSettings[cookieDefn.type], | ||
type: "checkbox" // Application cookies are always checked. | ||
, | ||
checked: cookieDefn.type === "application" || consentSettings[cookieDefn.type] // Application cookies are always disabled. | ||
, | ||
disabled: cookieDefn.type === "application", | ||
onChange: function onChange(e) { | ||
@@ -605,3 +613,5 @@ return _this2.handleCookieCheck(e, cookieDefn.type); | ||
htmlFor: "xbCheckbox_".concat(cookieDefn.id), | ||
className: "".concat(BLOCK, "__checkbox") | ||
className: "".concat(BLOCK, "__checkbox") // Application cookies are always disabled. | ||
, | ||
disabled: cookieDefn.type === "application" | ||
})), React.createElement("div", { | ||
@@ -608,0 +618,0 @@ className: "".concat(BLOCK, "__consent-label"), |
{ | ||
"name": "react-cookie-kit", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"description": "GDPR / CCPA Easy Cookie, Script, Do-Not-Sell, and Fingerprint Consent Management for Websites.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -399,3 +399,6 @@ import React from "react"; | ||
type="checkbox" | ||
checked={consentSettings[cookieDefn.type]} | ||
// Application cookies are always checked. | ||
checked={cookieDefn.type === "application" || consentSettings[cookieDefn.type]} | ||
// Application cookies are always disabled. | ||
disabled={cookieDefn.type === "application"} | ||
onChange={e => this.handleCookieCheck(e, cookieDefn.type)} | ||
@@ -406,2 +409,4 @@ /> | ||
className={`${BLOCK}__checkbox`} | ||
// Application cookies are always disabled. | ||
disabled={cookieDefn.type === "application"} | ||
/> | ||
@@ -673,3 +678,6 @@ </div> | ||
type="checkbox" | ||
checked={consentSettings[cookieDefn.type]} | ||
// Application cookies are always checked. | ||
checked={cookieDefn.type === "application" || consentSettings[cookieDefn.type]} | ||
// Application cookies are always disabled. | ||
disabled={cookieDefn.type === "application"} | ||
onChange={e => this.handleCookieCheck(e, cookieDefn.type)} | ||
@@ -680,2 +688,4 @@ /> | ||
className={`${BLOCK}__checkbox`} | ||
// Application cookies are always disabled. | ||
disabled={cookieDefn.type === "application"} | ||
/> | ||
@@ -682,0 +692,0 @@ </div> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
378892
4450