Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lu-development/ux-gdpr-consent

Package Overview
Dependencies
Maintainers
6
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lu-development/ux-gdpr-consent - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

dist/ux-gdpr-consent/p-krmwptty.entry.js

4

changelog.md
# UX GDPR Consent Dialog
## 1.0.12
- internal code improvements; add check for first focusable
## 1.0.11

@@ -4,0 +8,0 @@

2

dist/cjs/loader.cjs.js

@@ -9,3 +9,3 @@ 'use strict';

return core.patchEsm().then(() => {
core.bootstrapLazy([["ux-gdpr-consent.cjs",[[1,"ux-gdpr-consent",{"useGTM":[4,"use-g-t-m"],"hidden":[32],"grantConsentCookie":[64],"revokeConsentCookie":[64],"resetConsentCookie":[64]},[[4,"gdpr-consent-revoke","handleRevoke"],[4,"gdpr-consent-reset","handleReset"]]]]]], options);
core.bootstrapLazy([["ux-gdpr-consent.cjs",[[1,"ux-gdpr-consent",{"integrateGoogleTagManager":[4,"integrate-google-tag-manager"],"hidden":[32],"grantConsentCookie":[64],"revokeConsentCookie":[64],"resetConsentCookie":[64]},[[4,"gdpr-consent-revoke","handleRevoke"],[4,"gdpr-consent-reset","handleReset"]]]]]], options);
});

@@ -12,0 +12,0 @@ };

@@ -13,3 +13,3 @@ 'use strict';

this.hidden = true;
this.useGTM = true;
this.integrateGoogleTagManager = true;
this.consentEmitter = core.createEvent(this, "gdpr-consent", 7);

@@ -86,3 +86,3 @@ }

const firstFocusable = document.body.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
await Promise.resolve().then(() => firstFocusable.focus());
await Promise.resolve().then(() => firstFocusable ? firstFocusable.focus() : null);
}

@@ -93,3 +93,3 @@ async grantConsentCookie() {

this.consentEmitter.emit({ isConsentGranted: true });
if (this.useGTM && window.dataLayer) {
if (this.integrateGoogleTagManager && window.dataLayer) {
window.dataLayer.push({ event: "gdpr-consent-grant" });

@@ -103,3 +103,3 @@ }

this.consentEmitter.emit({ isConsentGranted: false });
if (this.useGTM && window.dataLayer) {
if (this.integrateGoogleTagManager && window.dataLayer) {
window.dataLayer.push({ event: "gdpr-consent-revoke" });

@@ -106,0 +106,0 @@ }

@@ -6,3 +6,3 @@ 'use strict';

core.patchBrowser().then(options => {
return core.bootstrapLazy([["ux-gdpr-consent.cjs",[[1,"ux-gdpr-consent",{"useGTM":[4,"use-g-t-m"],"hidden":[32],"grantConsentCookie":[64],"revokeConsentCookie":[64],"resetConsentCookie":[64]},[[4,"gdpr-consent-revoke","handleRevoke"],[4,"gdpr-consent-reset","handleReset"]]]]]], options);
return core.bootstrapLazy([["ux-gdpr-consent.cjs",[[1,"ux-gdpr-consent",{"integrateGoogleTagManager":[4,"integrate-google-tag-manager"],"hidden":[32],"grantConsentCookie":[64],"revokeConsentCookie":[64],"resetConsentCookie":[64]},[[4,"gdpr-consent-revoke","handleRevoke"],[4,"gdpr-consent-reset","handleReset"]]]]]], options);
});

@@ -7,3 +7,3 @@ import { h, Host } from "@stencil/core";

this.hidden = true;
this.useGTM = true;
this.integrateGoogleTagManager = true;
}

@@ -79,3 +79,3 @@ async componentWillLoad() {

const firstFocusable = document.body.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
await Promise.resolve().then(() => firstFocusable.focus());
await Promise.resolve().then(() => firstFocusable ? firstFocusable.focus() : null);
}

@@ -86,3 +86,3 @@ async grantConsentCookie() {

this.consentEmitter.emit({ isConsentGranted: true });
if (this.useGTM && window.dataLayer) {
if (this.integrateGoogleTagManager && window.dataLayer) {
window.dataLayer.push({ event: "gdpr-consent-grant" });

@@ -96,3 +96,3 @@ }

this.consentEmitter.emit({ isConsentGranted: false });
if (this.useGTM && window.dataLayer) {
if (this.integrateGoogleTagManager && window.dataLayer) {
window.dataLayer.push({ event: "gdpr-consent-revoke" });

@@ -132,3 +132,3 @@ }

static get properties() { return {
"useGTM": {
"integrateGoogleTagManager": {
"type": "boolean",

@@ -147,3 +147,3 @@ "mutable": false,

},
"attribute": "use-g-t-m",
"attribute": "integrate-google-tag-manager",
"reflect": false,

@@ -150,0 +150,0 @@ "defaultValue": "true"

@@ -44,3 +44,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

this.hidden = true;
this.useGTM = true;
this.integrateGoogleTagManager = true;
this.consentEmitter = createEvent(this, "gdpr-consent", 7);

@@ -140,3 +140,3 @@ }

firstFocusable = document.body.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
return [4 /*yield*/, Promise.resolve().then(function () { return firstFocusable.focus(); })];
return [4 /*yield*/, Promise.resolve().then(function () { return firstFocusable ? firstFocusable.focus() : null; })];
case 1:

@@ -155,3 +155,3 @@ _a.sent();

this.consentEmitter.emit({ isConsentGranted: true });
if (this.useGTM && window.dataLayer) {
if (this.integrateGoogleTagManager && window.dataLayer) {
window.dataLayer.push({ event: "gdpr-consent-grant" });

@@ -169,3 +169,3 @@ }

this.consentEmitter.emit({ isConsentGranted: false });
if (this.useGTM && window.dataLayer) {
if (this.integrateGoogleTagManager && window.dataLayer) {
window.dataLayer.push({ event: "gdpr-consent-revoke" });

@@ -172,0 +172,0 @@ }

@@ -9,3 +9,3 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './core-4a1fda95.js';

this.hidden = true;
this.useGTM = true;
this.integrateGoogleTagManager = true;
this.consentEmitter = createEvent(this, "gdpr-consent", 7);

@@ -82,3 +82,3 @@ }

const firstFocusable = document.body.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
await Promise.resolve().then(() => firstFocusable.focus());
await Promise.resolve().then(() => firstFocusable ? firstFocusable.focus() : null);
}

@@ -89,3 +89,3 @@ async grantConsentCookie() {

this.consentEmitter.emit({ isConsentGranted: true });
if (this.useGTM && window.dataLayer) {
if (this.integrateGoogleTagManager && window.dataLayer) {
window.dataLayer.push({ event: "gdpr-consent-grant" });

@@ -99,3 +99,3 @@ }

this.consentEmitter.emit({ isConsentGranted: false });
if (this.useGTM && window.dataLayer) {
if (this.integrateGoogleTagManager && window.dataLayer) {
window.dataLayer.push({ event: "gdpr-consent-revoke" });

@@ -102,0 +102,0 @@ }

@@ -14,5 +14,5 @@ /* tslint:disable */

'grantConsentCookie': () => Promise<void>;
'integrateGoogleTagManager': boolean;
'resetConsentCookie': () => Promise<void>;
'revokeConsentCookie': () => Promise<void>;
'useGTM': boolean;
}

@@ -36,4 +36,4 @@ }

interface UxGdprConsent {
'integrateGoogleTagManager'?: boolean;
'onGdpr-consent'?: (event: CustomEvent<any>) => void;
'useGTM'?: boolean;
}

@@ -40,0 +40,0 @@

@@ -9,3 +9,3 @@ import { EventEmitter } from "../../stencil.core";

hidden: boolean;
useGTM: boolean;
integrateGoogleTagManager: boolean;
componentWillLoad(): Promise<void>;

@@ -12,0 +12,0 @@ consentEmitter: EventEmitter;

@@ -1,1 +0,1 @@

System.register(["./p-72ac09a3.system.js"],(function(){"use strict";var e,n;return{setters:[function(t){e=t.p;n=t.b}],execute:function(){e().then((function(e){return n([["p-wismz3cw.system",[[1,"ux-gdpr-consent",{useGTM:[4,"use-g-t-m"],hidden:[32],grantConsentCookie:[64],revokeConsentCookie:[64],resetConsentCookie:[64]},[[4,"gdpr-consent-revoke","handleRevoke"],[4,"gdpr-consent-reset","handleReset"]]]]]],e)}))}}}));
System.register(["./p-72ac09a3.system.js"],(function(){"use strict";var e,t;return{setters:[function(n){e=n.p;t=n.b}],execute:function(){e().then((function(e){return t([["p-ttqng9p1.system",[[1,"ux-gdpr-consent",{integrateGoogleTagManager:[4,"integrate-google-tag-manager"],hidden:[32],grantConsentCookie:[64],revokeConsentCookie:[64],resetConsentCookie:[64]},[[4,"gdpr-consent-revoke","handleRevoke"],[4,"gdpr-consent-reset","handleReset"]]]]]],e)}))}}}));

@@ -1,1 +0,1 @@

import{p as e,b as o}from"./p-8a8dbd83.js";e().then(e=>o([["p-syodogde",[[1,"ux-gdpr-consent",{useGTM:[4,"use-g-t-m"],hidden:[32],grantConsentCookie:[64],revokeConsentCookie:[64],resetConsentCookie:[64]},[[4,"gdpr-consent-revoke","handleRevoke"],[4,"gdpr-consent-reset","handleReset"]]]]]],e));
import{p as e,b as o}from"./p-8a8dbd83.js";e().then(e=>o([["p-krmwptty",[[1,"ux-gdpr-consent",{integrateGoogleTagManager:[4,"integrate-google-tag-manager"],hidden:[32],grantConsentCookie:[64],revokeConsentCookie:[64],resetConsentCookie:[64]},[[4,"gdpr-consent-revoke","handleRevoke"],[4,"gdpr-consent-reset","handleReset"]]]]]],e));
{
"name": "@lu-development/ux-gdpr-consent",
"version": "1.0.11",
"version": "1.0.12",
"description": "GDPR compliance plugin",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc