@consent.software/catalog 1.5.0 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -82,7 +82,7 @@ ${n}
82
82
  </div>
83
83
  </div>
84
84
  </div>
85
- `}async connectedCallback(){super.connectedCallback(),this.updateTheme(),await this.csWebclientInstance.getCookieLevels()?this.setAttribute("show","false"):(this.setAttribute("show","true"),requestAnimationFrame(async()=>{await this.updated();let o=this.shadowRoot?.querySelector(".pageOverlay");o&&(o.style.background="rgba(255,255,255, 0.1)",o.style.backdropFilter="blur(0px)");let n=this.shadowRoot?.querySelector(".modalBox");n&&(n.style.transform="scale(1)",n.style.opacity="1")}))}async firstUpdated(){}async updated(){console.log(`The height of the cookie banner is ${this.shadowRoot?.host?.clientHeight}px`);let r=await this.csWebclientInstance.getCookieLevels();!this.csWebclientRan&&r&&(this.csWebclientRan=!0,await this.csWebclientInstance.getAndRunConsentTuples())}async handleConsentButtonClick(r,o){console.log(`Set level to ${o}`);let n=this.shadowRoot?.querySelector(".pageOverlay");n&&(n.style.background="rgba(255,255,255, 0)",n.style.backdropFilter="blur(0px)");let i=this.shadowRoot?.querySelector(".modalBox");i&&(i.style.transform="scale(0.95)",i.style.opacity="0"),await this.csWebclientInstance.setCookieLevels(o),await ht(300),this.setAttribute("show","false"),this.updated()}async pageOverlayClick(r){if(r.target===r.currentTarget){let o=this.shadowRoot?.querySelector(".pageOverlay"),n=this.shadowRoot?.querySelector(".modalBox");o&&n&&(o.classList.add("shake"),n.classList.add("shake"),await ht(300),o.classList.remove("shake"),n.classList.remove("shake"))}}updateTheme(){let r=window.matchMedia("(prefers-color-scheme: dark)").matches;this.theme=r?"dark":"light",window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",o=>{this.theme=o.matches?"dark":"light"})}};Or.demo=()=>Re`<consentsoftware-cookieconsent></consentsoftware-cookieconsent>`,Or.styles=Ze`
85
+ `}async connectedCallback(){super.connectedCallback(),this.updateTheme(),await this.csWebclientInstance.getCookieLevels()?this.setAttribute("show","false"):(this.setAttribute("show","true"),requestAnimationFrame(async()=>{await this.updated();let o=this.shadowRoot?.querySelector(".pageOverlay");o&&(o.style.background="rgba(255,255,255, 0.1)",o.style.backdropFilter="blur(0px)");let n=this.shadowRoot?.querySelector(".modalBox");n&&(n.style.transform="scale(1)",n.style.opacity="1")}))}async firstUpdated(){}async updated(){console.log(`The height of the cookie banner is ${this.shadowRoot?.host?.clientHeight}px`);let r=await this.csWebclientInstance.getCookieLevels();!this.csWebclientRan&&r&&(this.csWebclientRan=!0,await this.csWebclientInstance.getAndRunConsentTuples())}async handleConsentButtonClick(r,o){console.log(`Set level to ${o}`);let n=this.shadowRoot?.querySelector(".pageOverlay");n&&(n.style.background="rgba(255,255,255, 0)",n.style.backdropFilter="blur(0px)");let i=this.shadowRoot?.querySelector(".modalBox");i&&(i.style.transform="scale(0.95)",i.style.opacity="0"),await this.csWebclientInstance.setCookieLevels(o),await ht(300),this.setAttribute("show","false"),this.updated()}async pageOverlayClick(r){if(r.target===r.currentTarget){let o=this.shadowRoot?.querySelector(".pageOverlay"),n=this.shadowRoot?.querySelector(".modalBox");o&&n&&(o.classList.add("shake"),n.classList.add("shake"),await ht(2e3),o.classList.remove("shake"),n.classList.remove("shake"))}}updateTheme(){let r=window.matchMedia("(prefers-color-scheme: dark)").matches;this.theme=r?"dark":"light",window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",o=>{this.theme=o.matches?"dark":"light"})}};Or.demo=()=>Re`<consentsoftware-cookieconsent></consentsoftware-cookieconsent>`,Or.styles=Ze`
86
86
  :host {
87
87
  font-family: ${$n};
88
88
  user-select: none;
@@ -158,7 +158,7 @@ ${n}
158
158
 
159
159
  .modalBox.shake {
160
160
  animation: shake 150ms 2 linear;
161
- box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.6);
161
+ box-shadow: 0px 0px 8px rgba(255, 255, 255, 0.6);
162
162
  }
163
163
 
164
164
  @keyframes shake {