Socket
Socket
Sign inDemoInstall

@adv-ui/universal-consents-cookies-widget

Package Overview
Dependencies
43
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.12.0 to 1.13.0

umd/without-segment/index.js

6

lib/config.js

@@ -6,3 +6,5 @@ var _ref = window.__mpi || {},

var _universalConsentsCoo = universalConsentsCookiesWidget.logo,
logo = _universalConsentsCoo === void 0 ? 'https://www.adevinta.com/wp-content/themes/scom/assets/img/Adevinta-logo.svg' : _universalConsentsCoo;
export { logo };
logo = _universalConsentsCoo === void 0 ? 'https://www.adevinta.com/wp-content/themes/scom/assets/img/Adevinta-logo.svg' : _universalConsentsCoo,
_universalConsentsCoo2 = universalConsentsCookiesWidget.language,
language = _universalConsentsCoo2 === void 0 ? 'es' : _universalConsentsCoo2;
export { logo, language };

@@ -5,3 +5,3 @@ import { jsx as _jsx } from "react/jsx-runtime";

import TcfUi from '@adv-ui/adit-boros-tcf-ui-consent';
import { logo } from './config.js';
import { logo, language } from './config.js';
var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);

@@ -11,3 +11,3 @@ export default function TcfWidget(_ref) {

return /*#__PURE__*/_jsx(TcfUi, {
lang: "es",
lang: language,
logo: logo,

@@ -14,0 +14,0 @@ isMobile: isMobile,

{
"name": "@adv-ui/universal-consents-cookies-widget",
"version": "1.12.0",
"version": "1.13.0",
"description": "",

@@ -20,3 +20,5 @@ "main": "lib/app.js",

"test": "echo \"no test specified\"",
"umd": "NODE_ENV=production sui-bundler lib src-umd/index.js -o umd/ -p --root"
"umd": "rm -rf umd && npm run umd:segment && npm run umd:withoutsegment",
"umd:segment": "NODE_ENV=production sui-bundler lib src-umd/index.js -o umd/ -p --root",
"umd:withoutsegment": "NODE_ENV=production sui-bundler lib src-umd/without-segment.js -o umd/without-segment -p --root"
},

@@ -40,3 +42,3 @@ "repository": {

"dependencies": {
"@adv-ui/adit-boros-tcf-ui-consent": "1",
"@adv-ui/adit-boros-tcf-ui-consent": "2",
"@adv-ui/vendor-by-consents-loader": "1",

@@ -43,0 +45,0 @@ "@s-ui/segment-wrapper": "3",

@@ -23,2 +23,4 @@ # @adv-ui/universal-consents-cookies-widget [![Build Status](https://travis.mpi-internal.com/scmspain/frontend-all--consents-cookies-widget-pack.svg?token=rg6VMzkvzMeJr1v4tr6s&branch=master)](https://travis.mpi-internal.com/scmspain/frontend-all--consents-cookies-widget-pack)

Check a working demo: https://codesandbox.io/s/long-star-62xc9?file=/index.html
### Adding a link to open manually Consents Cookies Widget

@@ -72,4 +74,20 @@

You could then use the config from Segment Wrapper. This should be placed before loading the widget.
```
<script>
window.__mpi = {
segmentWrapper: {
googleAdsPixelId: '1054970353',
facebookPixelId: '448176625351232',
importAdobeVisitorId: true,
defaultProperties: {
site: 'infojobs'
}
}
}
</script>
```
## Load scripts for some consents

@@ -76,0 +94,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc