@titelmedia/bricks-age-gate
Advanced tools
Comparing version 0.3.22 to 0.3.23
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.3.23](https://github.com/titel-media/bricks-lerna/compare/v0.3.22...v0.3.23) (2022-01-25) | ||
**Note:** Version bump only for package @titelmedia/bricks-age-gate | ||
## [0.3.22](https://github.com/titel-media/bricks-lerna/compare/v0.3.21...v0.3.22) (2022-01-25) | ||
@@ -8,0 +16,0 @@ |
@@ -35,2 +35,3 @@ "use strict"; | ||
const titleRef = (0, _react.useRef)(null); | ||
console.log('document', document.getElementById('__gatsby'), document.getElementById('root')); | ||
const rootRef = (0, _react.useRef)(document.getElementById('__gatsby') || document.getElementById('root')); | ||
@@ -52,2 +53,3 @@ (0, _react.useEffect)(() => { | ||
const buildTimeline = () => { | ||
console.log('buildTimeline', rootRef); | ||
tlRef.current = _all.gsap.timeline().to(rootRef.current, { | ||
@@ -63,2 +65,3 @@ duration: 0.4, | ||
function closeAgeGate() { | ||
console.log('closeAgeGate', rootRef); | ||
tlRef.current = _all.gsap.timeline().to(rootRef.current, { | ||
@@ -80,2 +83,3 @@ duration: 0.4, | ||
const fluid = (logo === null || logo === void 0 ? void 0 : logo.fluid) || logo; | ||
console.log(fluid); | ||
return _reactDom.default.createPortal(_react.default.createElement(_styles.Container, { | ||
@@ -82,0 +86,0 @@ ref: containerRef |
@@ -19,2 +19,3 @@ import React, { useEffect, useRef, useState } from 'react'; | ||
console.log('document',document.getElementById('__gatsby'), document.getElementById('root')); | ||
const rootRef = useRef(document.getElementById('__gatsby') || document.getElementById('root')); | ||
@@ -37,2 +38,3 @@ | ||
const buildTimeline = () => { | ||
console.log('buildTimeline',rootRef); | ||
tlRef.current = gsap | ||
@@ -47,2 +49,3 @@ .timeline() | ||
function closeAgeGate() { | ||
console.log('closeAgeGate',rootRef); | ||
tlRef.current = gsap | ||
@@ -62,2 +65,3 @@ .timeline() | ||
const fluid = logo?.fluid || logo; | ||
console.log(fluid); | ||
return ReactDOM.createPortal( | ||
@@ -64,0 +68,0 @@ <Container ref={containerRef}> |
{ | ||
"name": "@titelmedia/bricks-age-gate", | ||
"version": "0.3.22", | ||
"version": "0.3.23", | ||
"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", | ||
@@ -33,3 +33,3 @@ "keywords": [], | ||
"homepage": "https://github.com/titel-media/bricks-lerna#readme", | ||
"gitHead": "7b2b7879f2dd70b9c84f4daf945201cb114fbae4" | ||
"gitHead": "afec6cba14677f2141f0f2f032fbfb7ef8b120c2" | ||
} |
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
21130
323