@brndts/brndts-ads 1.13.20 → 1.13.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +25 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -68606,6 +68606,13 @@ var regions = [
|
|
68606
68606
|
h: 300,
|
68607
68607
|
name: "Generic - 250x300",
|
68608
68608
|
type: ""
|
68609
|
+
},
|
68610
|
+
{
|
68611
|
+
id: 1003,
|
68612
|
+
w: 300,
|
68613
|
+
h: 600,
|
68614
|
+
name: "Generic - 300x600",
|
68615
|
+
type: "large-rectangle"
|
68609
68616
|
}
|
68610
68617
|
];
|
68611
68618
|
var ContentProvider = /*#__PURE__*/ function() {
|
@@ -70343,7 +70350,7 @@ var PrebidjsProvider = /*#__PURE__*/ function(ContentProvider1) {
|
|
70343
70350
|
code: "prebid"
|
70344
70351
|
}
|
70345
70352
|
};
|
70346
|
-
_this.affiliateManifestUrl = "https://brndts-public.s3.eu-west-2.amazonaws.com/affiliates/
|
70353
|
+
_this.affiliateManifestUrl = "https://brndts-public.s3.eu-west-2.amazonaws.com/affiliates/general_manifest.json";
|
70347
70354
|
_this.affiliateProvider = new AffiliateProvider({}, {
|
70348
70355
|
manifest: _this.affiliateManifestUrl
|
70349
70356
|
});
|
@@ -70411,9 +70418,14 @@ var PrebidjsProvider = /*#__PURE__*/ function(ContentProvider1) {
|
|
70411
70418
|
var _this_affiliateProvider;
|
70412
70419
|
var affiliateContent = (_this_affiliateProvider = _this.affiliateProvider) === null || _this_affiliateProvider === void 0 ? void 0 : _this_affiliateProvider.contents();
|
70413
70420
|
if (affiliateContent && affiliateContent.content.length > 0) {
|
70421
|
+
var _affiliateContent_extra;
|
70414
70422
|
_this.content = _object_spread_props(_object_spread({}, _this.content), {
|
70415
70423
|
content: affiliateContent.content,
|
70416
70424
|
extra: _object_spread_props(_object_spread({}, _this.content.extra || {}), {
|
70425
|
+
sz: ((_affiliateContent_extra = affiliateContent.extra) === null || _affiliateContent_extra === void 0 ? void 0 : _affiliateContent_extra.sz) || {
|
70426
|
+
w: 300,
|
70427
|
+
h: 250
|
70428
|
+
},
|
70417
70429
|
region: regionId,
|
70418
70430
|
fallback: "affiliate"
|
70419
70431
|
})
|
@@ -70450,7 +70462,7 @@ var PrebidjsProvider = /*#__PURE__*/ function(ContentProvider1) {
|
|
70450
70462
|
key: "request",
|
70451
70463
|
value: function request(params) {
|
70452
70464
|
return _async_to_generator(function() {
|
70453
|
-
var _this, adType, regionId, regionInfo
|
70465
|
+
var _this, adType, adName, regionId, regionInfo;
|
70454
70466
|
return _ts_generator(this, function(_state) {
|
70455
70467
|
switch(_state.label){
|
70456
70468
|
case 0:
|
@@ -70462,17 +70474,23 @@ var PrebidjsProvider = /*#__PURE__*/ function(ContentProvider1) {
|
|
70462
70474
|
case 1:
|
70463
70475
|
_state.sent();
|
70464
70476
|
adType = params.params.adType;
|
70477
|
+
adName = params.params.regionName;
|
70465
70478
|
regionId = params.params.regionId;
|
70466
70479
|
if (params.params.useRatio) {
|
70467
70480
|
regionInfo = ContentProvider.approxRegionByRatio(params.size.width, params.size.height);
|
70468
70481
|
if (regionInfo) {
|
70469
70482
|
regionId = "".concat(regionInfo.id);
|
70470
70483
|
}
|
70484
|
+
} else if (adType && adName) {
|
70485
|
+
regionInfo = ContentProvider.approxRegionByType(adType);
|
70486
|
+
regionId = (regionInfo === null || regionInfo === void 0 ? void 0 : regionInfo.id) ? "".concat(regionInfo.id) : regionId;
|
70471
70487
|
} else if (params.params.useSize) {
|
70472
|
-
|
70473
|
-
if (
|
70474
|
-
regionId = "".concat(
|
70488
|
+
regionInfo = ContentProvider.approxRegionBySize(params.size.width, params.size.height);
|
70489
|
+
if (regionInfo) {
|
70490
|
+
regionId = "".concat(regionInfo.id);
|
70475
70491
|
}
|
70492
|
+
} else {
|
70493
|
+
regionInfo = ContentProvider.approxRegionById(+regionId);
|
70476
70494
|
}
|
70477
70495
|
params.params.refRegionId = regionId;
|
70478
70496
|
this.content = _object_spread_props(_object_spread({}, this.content), {
|
@@ -70486,6 +70504,7 @@ var PrebidjsProvider = /*#__PURE__*/ function(ContentProvider1) {
|
|
70486
70504
|
];
|
70487
70505
|
case 2:
|
70488
70506
|
_state.sent();
|
70507
|
+
this.processBids(params, {});
|
70489
70508
|
PrebidJS.defineSlot(this.options, regionId, params.params.regionId, adType);
|
70490
70509
|
PrebidJS.request(regionId, params.params.regionId, function(bids) {
|
70491
70510
|
return _this.processBids(params, bids);
|
@@ -71816,6 +71835,7 @@ var Region = /*#__PURE__*/ function() {
|
|
71816
71835
|
this.container.style.pointerEvents = "none";
|
71817
71836
|
if ((_this_deps_config = this.deps.config) === null || _this_deps_config === void 0 ? void 0 : (_this_deps_config_getAdsConfig_general = _this_deps_config.getAdsConfig().general) === null || _this_deps_config_getAdsConfig_general === void 0 ? void 0 : (_this_deps_config_getAdsConfig_general_clickability = _this_deps_config_getAdsConfig_general.clickability) === null || _this_deps_config_getAdsConfig_general_clickability === void 0 ? void 0 : _this_deps_config_getAdsConfig_general_clickability.value) {
|
71818
71837
|
this.container.style.pointerEvents = "all";
|
71838
|
+
this.container.style.zIndex = "9999";
|
71819
71839
|
}
|
71820
71840
|
if ((_this_deps_config1 = this.deps.config) === null || _this_deps_config1 === void 0 ? void 0 : (_this_deps_config_getAdsConfig_general1 = _this_deps_config1.getAdsConfig().general) === null || _this_deps_config_getAdsConfig_general1 === void 0 ? void 0 : (_this_deps_config_getAdsConfig_general_debug_mode = _this_deps_config_getAdsConfig_general1.debug_mode) === null || _this_deps_config_getAdsConfig_general_debug_mode === void 0 ? void 0 : _this_deps_config_getAdsConfig_general_debug_mode.value) {
|
71821
71841
|
this.container.style.pointerEvents = "none";
|