@titelmedia/bricks-age-gate
Advanced tools
Comparing version 1.0.17 to 1.0.18
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.0.18](https://github.com/titel-media/bricks-lerna/compare/v1.0.17...v1.0.18) (2022-04-20) | ||
**Note:** Version bump only for package @titelmedia/bricks-age-gate | ||
## [1.0.17](https://github.com/titel-media/bricks-lerna/compare/v1.0.16...v1.0.17) (2022-04-14) | ||
@@ -8,0 +16,0 @@ |
@@ -81,3 +81,3 @@ "use strict"; | ||
const selector = document.querySelector('#bricks-story') || document.querySelector('body'); | ||
const selector = typeof document !== 'undefined' ? document.querySelector('#bricks-story') || document.querySelector('body') : null; | ||
return typeof document !== 'undefined' && selector ? _reactDom.default.createPortal(_react.default.createElement(_styles.Container, { | ||
@@ -84,0 +84,0 @@ ref: containerRef, |
@@ -78,6 +78,9 @@ import React, { useEffect, useRef, useState } from 'react'; | ||
// document.querySelector('body') is used on storybook | ||
const selector = document.querySelector('#bricks-story') || document.querySelector('body'); | ||
const selector = | ||
typeof document !== 'undefined' | ||
? document.querySelector('#bricks-story') || | ||
document.querySelector('body') | ||
: null; | ||
return typeof document !== 'undefined' && | ||
selector | ||
return typeof document !== 'undefined' && selector | ||
? ReactDOM.createPortal( | ||
@@ -100,2 +103,2 @@ <Container ref={containerRef} background={backgroundColor?.hex}> | ||
: null; | ||
}; | ||
}; |
{ | ||
"name": "@titelmedia/bricks-age-gate", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"description": "Now I’m the model of a modern major general / The venerated Virginian veteran whose men are all / Lining up, to put me up on a pedestal / Writin’ letters to relatives / Embellishin’ my elegance and eloquence / But the elephant is in the room / The truth is in ya face when ya hear the British cannons go / BOOM", | ||
@@ -28,3 +28,3 @@ "keywords": [], | ||
"dependencies": { | ||
"@titelmedia/bricks-theme": "^1.0.16", | ||
"@titelmedia/bricks-theme": "^1.0.18", | ||
"body-scroll-lock": "^4.0.0-beta.0", | ||
@@ -34,3 +34,3 @@ "gsap": "^3.8.0" | ||
"homepage": "https://github.com/titel-media/bricks-lerna#readme", | ||
"gitHead": "8ac303e6c7364cd175033e6b090d8548990f16b7" | ||
"gitHead": "7551f918bddfab7ace8f89d23739e6715ac3693c" | ||
} |
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
34885
366