@revjet/react-revjet-tag
Advanced tools
Comparing version 5.2.2 to 5.2.3
@@ -199,5 +199,5 @@ "use strict"; | ||
react_1.default.createElement("ins", { style: holderStyleSheet }, | ||
react_1.default.createElement("iframe", { ref: iframeRefCallback, style: iframeStyleSheet, frameBorder: 0, marginWidth: 0, marginHeight: 0, scrolling: "no", name: "revjet-single-iframe", loading: "eager", "data-revjet-options": encodedSlotOptions, srcDoc: adContent, ...AdditionalIframeProps })))); | ||
react_1.default.createElement("iframe", { ref: iframeRefCallback, style: iframeStyleSheet, frameBorder: 0, marginWidth: 0, marginHeight: 0, scrolling: "no", loading: "eager", "data-revjet-options": encodedSlotOptions, srcDoc: adContent, ...AdditionalIframeProps })))); | ||
} | ||
exports.Banner = Banner; | ||
//# sourceMappingURL=banner.js.map |
@@ -150,5 +150,5 @@ "use strict"; | ||
return (react_1.default.createElement("div", { style: containerStyleSheet }, | ||
react_1.default.createElement("iframe", { ref: iframeRefCallback, onLoad: onIframeLoad, style: iframeStyleSheet, frameBorder: 0, marginWidth: 0, marginHeight: 0, scrolling: "no", name: "revjet-single-iframe", loading: "eager", "data-revjet-options": encodedSlotOptions, srcDoc: adContent, ...AdditionalIframeProps }))); | ||
react_1.default.createElement("iframe", { ref: iframeRefCallback, onLoad: onIframeLoad, style: iframeStyleSheet, frameBorder: 0, marginWidth: 0, marginHeight: 0, scrolling: "no", loading: "eager", "data-revjet-options": encodedSlotOptions, srcDoc: adContent, ...AdditionalIframeProps }))); | ||
} | ||
exports.ResponsiveBanner = ResponsiveBanner; | ||
//# sourceMappingURL=responsive-banner.js.map |
{ | ||
"name": "@revjet/react-revjet-tag", | ||
"version": "5.2.2", | ||
"version": "5.2.3", | ||
"description": "React RevJet Tag", | ||
@@ -5,0 +5,0 @@ "author": "Vladimir Marteev <vladimir.marteev@revjet.com>", |
@@ -13,19 +13,20 @@ # React RevJet Tag | ||
const tagProperties: TagProperties = { | ||
_tag: 'tagXXXX', | ||
_plc_id: '12345', | ||
_key: 'xxx', | ||
debug: 'emulate', | ||
_opts: { | ||
custom_domain: 'ads.revjet.com', | ||
autohide: false, | ||
responsive: true, | ||
responsive_height: 'dynamic', | ||
delivery_method: 'banner', | ||
_imp_banner_size: '640x480' | ||
}, | ||
_custom_parameter: 'Custom Parameter' | ||
} | ||
export function App(_props: AppProps) { | ||
const tagProperties: TagProperties = { | ||
_tag: 'tagXXXX', | ||
_plc_id: '12345', | ||
_key: 'xxx', | ||
debug: 'emulate', | ||
_opts: { | ||
custom_domain: 'ads.revjet.com', | ||
autohide: false, | ||
responsive: true, | ||
responsive_height: 'dynamic', | ||
delivery_method: 'banner', | ||
_imp_banner_size: '640x480' | ||
}, | ||
_custom_parameter: 'Custom Parameter' | ||
} | ||
// Optional | ||
const onBeforeLoad = useCallback(() => { | ||
@@ -35,2 +36,3 @@ console.log('onBeforeLoad', tagProperties) | ||
// Optional | ||
const onLoad = useCallback(() => { | ||
@@ -40,2 +42,3 @@ console.log('onLoad', tagProperties) | ||
// Optional | ||
const onError = useCallback( | ||
@@ -42,0 +45,0 @@ (err) => { |
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
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
60
129772
1574