@lu-development/ux-gdpr-consent
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -31,5 +31,5 @@ 'use strict'; | ||
/* | ||
* Used to emit an event (either gdpr-consent-grant or gdpr-consent-revoke) | ||
* into window.dataLayer. | ||
* */ | ||
* Used to emit an event (either gdpr-consent-grant or gdpr-consent-revoke) | ||
* into window.dataLayer. | ||
* */ | ||
this.integrateGoogleTagManager = true; | ||
@@ -72,3 +72,3 @@ } | ||
} | ||
async grantConsentCookie({ returnFocus = false, passedGrantType = this.cookies.grantTypes.implicit } = {}) { | ||
async grantConsentCookie({ returnFocus = false, passedGrantType = this.cookies.grantTypes.implicit, } = {}) { | ||
var _a; | ||
@@ -136,3 +136,3 @@ const storedGrantType = (_a = this.getCookie(this.cookies.names.grantType)) === null || _a === void 0 ? void 0 : _a.split('=')[1]; | ||
} | ||
return data.location.is_eu; | ||
return data.is_eu; | ||
}); | ||
@@ -139,0 +139,0 @@ }) |
@@ -1,2 +0,2 @@ | ||
import { Component, Element, Event, Host, Listen, Method, Prop, State, h } from '@stencil/core'; | ||
import { Component, Element, Event, Host, Listen, Method, Prop, State, h, } from '@stencil/core'; | ||
export class GdprConsent { | ||
@@ -22,5 +22,5 @@ constructor() { | ||
/* | ||
* Used to emit an event (either gdpr-consent-grant or gdpr-consent-revoke) | ||
* into window.dataLayer. | ||
* */ | ||
* Used to emit an event (either gdpr-consent-grant or gdpr-consent-revoke) | ||
* into window.dataLayer. | ||
* */ | ||
this.integrateGoogleTagManager = true; | ||
@@ -63,3 +63,3 @@ } | ||
} | ||
async grantConsentCookie({ returnFocus = false, passedGrantType = this.cookies.grantTypes.implicit } = {}) { | ||
async grantConsentCookie({ returnFocus = false, passedGrantType = this.cookies.grantTypes.implicit, } = {}) { | ||
var _a; | ||
@@ -127,3 +127,3 @@ const storedGrantType = (_a = this.getCookie(this.cookies.names.grantType)) === null || _a === void 0 ? void 0 : _a.split('=')[1]; | ||
} | ||
return data.location.is_eu; | ||
return data.is_eu; | ||
}); | ||
@@ -258,3 +258,3 @@ }) | ||
"complexType": { | ||
"signature": "({ returnFocus, passedGrantType }?: { returnFocus?: boolean; passedGrantType?: string; }) => Promise<void>", | ||
"signature": "({ returnFocus, passedGrantType, }?: { returnFocus?: boolean; passedGrantType?: string; }) => Promise<void>", | ||
"parameters": [{ | ||
@@ -261,0 +261,0 @@ "tags": [], |
@@ -61,5 +61,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
/* | ||
* Used to emit an event (either gdpr-consent-grant or gdpr-consent-revoke) | ||
* into window.dataLayer. | ||
* */ | ||
* Used to emit an event (either gdpr-consent-grant or gdpr-consent-revoke) | ||
* into window.dataLayer. | ||
* */ | ||
this.integrateGoogleTagManager = true; | ||
@@ -219,3 +219,3 @@ } | ||
} | ||
return data.location.is_eu; | ||
return data.is_eu; | ||
}); | ||
@@ -222,0 +222,0 @@ }) |
@@ -27,5 +27,5 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4f0fd36c.js'; | ||
/* | ||
* Used to emit an event (either gdpr-consent-grant or gdpr-consent-revoke) | ||
* into window.dataLayer. | ||
* */ | ||
* Used to emit an event (either gdpr-consent-grant or gdpr-consent-revoke) | ||
* into window.dataLayer. | ||
* */ | ||
this.integrateGoogleTagManager = true; | ||
@@ -68,3 +68,3 @@ } | ||
} | ||
async grantConsentCookie({ returnFocus = false, passedGrantType = this.cookies.grantTypes.implicit } = {}) { | ||
async grantConsentCookie({ returnFocus = false, passedGrantType = this.cookies.grantTypes.implicit, } = {}) { | ||
var _a; | ||
@@ -132,3 +132,3 @@ const storedGrantType = (_a = this.getCookie(this.cookies.names.grantType)) === null || _a === void 0 ? void 0 : _a.split('=')[1]; | ||
} | ||
return data.location.is_eu; | ||
return data.is_eu; | ||
}); | ||
@@ -135,0 +135,0 @@ }) |
@@ -10,3 +10,3 @@ /* eslint-disable */ | ||
interface UxGdprConsent { | ||
"grantConsentCookie": ({ returnFocus, passedGrantType }?: { returnFocus?: boolean; passedGrantType?: string; }) => Promise<void>; | ||
"grantConsentCookie": ({ returnFocus, passedGrantType, }?: { returnFocus?: boolean; passedGrantType?: string; }) => Promise<void>; | ||
"init": () => Promise<void>; | ||
@@ -13,0 +13,0 @@ "integrateGoogleTagManager": boolean; |
@@ -32,3 +32,3 @@ import { EventEmitter } from '../../stencil-public-runtime'; | ||
init(): Promise<void>; | ||
grantConsentCookie({ returnFocus, passedGrantType }?: { | ||
grantConsentCookie({ returnFocus, passedGrantType, }?: { | ||
returnFocus?: boolean; | ||
@@ -35,0 +35,0 @@ passedGrantType?: string; |
@@ -1,1 +0,1 @@ | ||
System.register(["./p-4d96b027.system.js","./p-e8b2c550.system.js"],(function(){"use strict";var e,n;return{setters:[function(n){e=n.b},function(e){n=e.p}],execute:function(){n().then((function(n){return e([["p-a5cd1f26.system",[[1,"ux-gdpr-consent",{integrateGoogleTagManager:[4,"integrate-google-tag-manager"],hidden:[32],init:[64],grantConsentCookie:[64],revokeConsentCookie:[64],resetConsentCookie:[64]},[[4,"gdpr-consent-revoke","handleRevoke"],[4,"gdpr-consent-reset","handleReset"]]]]]],n)}))}}})); | ||
System.register(["./p-4d96b027.system.js","./p-e8b2c550.system.js"],(function(){"use strict";var e,n;return{setters:[function(n){e=n.b},function(e){n=e.p}],execute:function(){n().then((function(n){return e([["p-1cca2784.system",[[1,"ux-gdpr-consent",{integrateGoogleTagManager:[4,"integrate-google-tag-manager"],hidden:[32],init:[64],grantConsentCookie:[64],revokeConsentCookie:[64],resetConsentCookie:[64]},[[4,"gdpr-consent-revoke","handleRevoke"],[4,"gdpr-consent-reset","handleReset"]]]]]],n)}))}}})); |
@@ -1,1 +0,1 @@ | ||
import{b as e}from"./p-a6ef61f3.js";import{p as o}from"./p-3894c71a.js";o().then(o=>e([["p-34c4de93",[[1,"ux-gdpr-consent",{integrateGoogleTagManager:[4,"integrate-google-tag-manager"],hidden:[32],init:[64],grantConsentCookie:[64],revokeConsentCookie:[64],resetConsentCookie:[64]},[[4,"gdpr-consent-revoke","handleRevoke"],[4,"gdpr-consent-reset","handleReset"]]]]]],o)); | ||
import{b as e}from"./p-a6ef61f3.js";import{p as o}from"./p-3894c71a.js";o().then(o=>e([["p-8cc99abc",[[1,"ux-gdpr-consent",{integrateGoogleTagManager:[4,"integrate-google-tag-manager"],hidden:[32],init:[64],grantConsentCookie:[64],revokeConsentCookie:[64],resetConsentCookie:[64]},[[4,"gdpr-consent-revoke","handleRevoke"],[4,"gdpr-consent-reset","handleReset"]]]]]],o)); |
{ | ||
"name": "@lu-development/ux-gdpr-consent", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "GDPR compliance plugin", | ||
@@ -33,2 +33,3 @@ "main": "dist/index.js", | ||
"jest-cli": "^24.9.0", | ||
"prettier": "^2.3.2", | ||
"puppeteer": "1.20.0", | ||
@@ -38,4 +39,3 @@ "tslint": "^5.20.1", | ||
}, | ||
"license": "MIT", | ||
"dependencies": {} | ||
"license": "MIT" | ||
} |
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
810747
10
71