@s-ui/react-ad-blocker-extension-detector
Advanced tools
Comparing version 1.4.0 to 1.5.0
@@ -10,3 +10,3 @@ # Change Log | ||
* Move to [@s-ui](https://github.com/s-ui) organization ([226e124](https://github.com/SUI-Components/schibsted-spain-components/commit/226e1246c2da443332e4cea1e8eacb6c5c5a092e)) | ||
* Move to [@s-ui](https://github.com/s-ui) organization ([226e124](https://github.com/SUI-Components/adevinta-spain-components/commit/226e1246c2da443332e4cea1e8eacb6c5c5a092e)) | ||
@@ -20,3 +20,3 @@ | ||
* Remove .npmignore ([68aabc3](https://github.com/SUI-Components/schibsted-spain-components/commit/68aabc38867f061eb1561f5715f000a4f52dbc84)) | ||
* Remove .npmignore ([68aabc3](https://github.com/SUI-Components/adevinta-spain-components/commit/68aabc38867f061eb1561f5715f000a4f52dbc84)) | ||
@@ -30,3 +30,3 @@ | ||
* deleted remove method ([78041bb](https://github.com/SUI-Components/schibsted-spain-components/commit/78041bb5593c3b989fcae1c9451191d47331a163)) | ||
* deleted remove method ([78041bb](https://github.com/SUI-Components/adevinta-spain-components/commit/78041bb5593c3b989fcae1c9451191d47331a163)) | ||
@@ -33,0 +33,0 @@ |
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose"; | ||
import React, { Component } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { jsx as _jsx } from "react/jsx-runtime"; | ||
import { jsxs as _jsxs } from "react/jsx-runtime"; | ||
import { Fragment as _Fragment } from "react/jsx-runtime"; | ||
import { createRef, Component } from 'react'; | ||
var AdBlockerExtensionDetector = | ||
/*#__PURE__*/ | ||
function (_Component) { | ||
var AdBlockerExtensionDetector = /*#__PURE__*/function (_Component) { | ||
_inheritsLoose(AdBlockerExtensionDetector, _Component); | ||
@@ -25,3 +25,3 @@ | ||
_this.blockDetector = React.createRef(); | ||
_this.blockDetector = /*#__PURE__*/createRef(); | ||
_this.state = { | ||
@@ -42,6 +42,9 @@ displayBanner: false, | ||
var children = this.props.children; | ||
return React.createElement(React.Fragment, null, this.state.displayBanner && children, this.state.showBlockDetector && React.createElement("div", { | ||
ref: this.blockDetector, | ||
className: "adsbox" | ||
}, "\xA0")); | ||
return /*#__PURE__*/_jsxs(_Fragment, { | ||
children: [this.state.displayBanner && children, this.state.showBlockDetector && /*#__PURE__*/_jsx("div", { | ||
ref: this.blockDetector, | ||
className: "adsbox", | ||
children: "\xA0" | ||
})] | ||
}); | ||
}; | ||
@@ -48,0 +51,0 @@ |
{ | ||
"name": "@s-ui/react-ad-blocker-extension-detector", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -1,2 +0,2 @@ | ||
import React, {Component} from 'react' | ||
import {createRef, Component} from 'react' | ||
import PropTypes from 'prop-types' | ||
@@ -7,3 +7,3 @@ | ||
super(props) | ||
this.blockDetector = React.createRef() | ||
this.blockDetector = createRef() | ||
this.state = { | ||
@@ -10,0 +10,0 @@ displayBanner: false, |
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
5967
83