@brndts/brndts-ads 1.14.7 → 1.14.9
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 +58 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +58 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -70090,6 +70090,13 @@ var REGIONS = [
|
|
70090
70090
|
h: 150,
|
70091
70091
|
name: "Generic - 150x150",
|
70092
70092
|
type: "medium-rectangle"
|
70093
|
+
},
|
70094
|
+
{
|
70095
|
+
id: 1014,
|
70096
|
+
w: 160,
|
70097
|
+
h: 600,
|
70098
|
+
name: "Generic - 160x600",
|
70099
|
+
type: "large-rectangle"
|
70093
70100
|
}
|
70094
70101
|
];
|
70095
70102
|
var RegionDefinitions = /*#__PURE__*/ function() {
|
@@ -72192,6 +72199,15 @@ var GPT = /*#__PURE__*/ function() {
|
|
72192
72199
|
]);
|
72193
72200
|
return GPT;
|
72194
72201
|
}();
|
72202
|
+
var tcf_ready = false;
|
72203
|
+
function handleTCFApiEvent(data, success) {
|
72204
|
+
if (!success) return;
|
72205
|
+
var ready = (data === null || data === void 0 ? void 0 : data.eventStatus) === "tcloaded" || (data === null || data === void 0 ? void 0 : data.eventStatus) === "useractioncomplete";
|
72206
|
+
var hasTC = !!(data === null || data === void 0 ? void 0 : data.tcString);
|
72207
|
+
if (ready && hasTC) {
|
72208
|
+
tcf_ready = true;
|
72209
|
+
}
|
72210
|
+
}
|
72195
72211
|
var PrebidGAM = /*#__PURE__*/ function() {
|
72196
72212
|
function _PrebidGAM() {
|
72197
72213
|
_class_call_check(this, _PrebidGAM);
|
@@ -72225,6 +72241,13 @@ var PrebidGAM = /*#__PURE__*/ function() {
|
|
72225
72241
|
key: "configure",
|
72226
72242
|
value: function configure(context, options) {
|
72227
72243
|
var _window_pbjs_que, _window_pbjs;
|
72244
|
+
if (window.__tcfApi) {
|
72245
|
+
var _window___tcfapi, _window, _window___tcfapi1, _window1;
|
72246
|
+
(_window___tcfapi = (_window = window).__tcfapi) === null || _window___tcfapi === void 0 ? void 0 : _window___tcfapi.call(_window, "getTCData", 2, handleTCFApiEvent);
|
72247
|
+
(_window___tcfapi1 = (_window1 = window).__tcfapi) === null || _window___tcfapi1 === void 0 ? void 0 : _window___tcfapi1.call(_window1, "addEventListener", 2, handleTCFApiEvent);
|
72248
|
+
} else {
|
72249
|
+
tcf_ready = true;
|
72250
|
+
}
|
72228
72251
|
(_window_pbjs = window.pbjs) === null || _window_pbjs === void 0 ? void 0 : (_window_pbjs_que = _window_pbjs.que) === null || _window_pbjs_que === void 0 ? void 0 : _window_pbjs_que.push(function() {
|
72229
72252
|
var _context_config_getAdsConfig_general_debug_mode, _context_config_getAdsConfig_general, _window_pbjs, _window_pbjs1, _window_pbjs2;
|
72230
72253
|
var configBuilder = new PrebidConfigBuilder();
|
@@ -81898,12 +81921,32 @@ var TYPES = {
|
|
81898
81921
|
[
|
81899
81922
|
300,
|
81900
81923
|
250
|
81924
|
+
],
|
81925
|
+
[
|
81926
|
+
250,
|
81927
|
+
250
|
81928
|
+
],
|
81929
|
+
[
|
81930
|
+
200,
|
81931
|
+
200
|
81932
|
+
],
|
81933
|
+
[
|
81934
|
+
180,
|
81935
|
+
150
|
81936
|
+
],
|
81937
|
+
[
|
81938
|
+
150,
|
81939
|
+
150
|
81901
81940
|
]
|
81902
81941
|
],
|
81903
81942
|
"large-rectangle": [
|
81904
81943
|
[
|
81905
81944
|
300,
|
81906
81945
|
600
|
81946
|
+
],
|
81947
|
+
[
|
81948
|
+
160,
|
81949
|
+
600
|
81907
81950
|
]
|
81908
81951
|
],
|
81909
81952
|
"billboard": [
|
@@ -81976,7 +82019,7 @@ var DefaultTemplate = /*#__PURE__*/ function() {
|
|
81976
82019
|
height: plane.height - (this.margin.t + this.margin.b)
|
81977
82020
|
}),
|
81978
82021
|
name: "A",
|
81979
|
-
maxSlots:
|
82022
|
+
maxSlots: 1
|
81980
82023
|
});
|
81981
82024
|
}
|
81982
82025
|
if (plane.height - (cutout.y + cutout.height) > 0) {
|
@@ -82025,7 +82068,7 @@ var FullscreenTemplate = /*#__PURE__*/ function() {
|
|
82025
82068
|
height: plane.height - (this.margin.t + this.margin.b)
|
82026
82069
|
}),
|
82027
82070
|
name: "A",
|
82028
|
-
maxSlots:
|
82071
|
+
maxSlots: 1
|
82029
82072
|
});
|
82030
82073
|
}
|
82031
82074
|
if (plane.height - (cutout.y + cutout.height) > 0) {
|
@@ -82170,8 +82213,13 @@ var RegionPacker = /*#__PURE__*/ function(_import_events8_default) {
|
|
82170
82213
|
for(var _iterator = this.areas[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
82171
82214
|
var region = _step.value;
|
82172
82215
|
var _packed;
|
82173
|
-
|
82174
|
-
|
82216
|
+
var regionSlots = this.fillRegion(_object_spread({}, region));
|
82217
|
+
this.packedByArea[region.name] = regionSlots;
|
82218
|
+
(_packed = packed).push.apply(_packed, _to_consumable_array(regionSlots));
|
82219
|
+
if (regionSlots.length > 0) {
|
82220
|
+
updated = true;
|
82221
|
+
break;
|
82222
|
+
}
|
82175
82223
|
}
|
82176
82224
|
} catch (err) {
|
82177
82225
|
_didIteratorError = true;
|
@@ -82402,12 +82450,16 @@ var BasicAdRegion = /*#__PURE__*/ function(Region) {
|
|
82402
82450
|
},
|
82403
82451
|
{
|
82404
82452
|
key: "updateVisibility",
|
82405
|
-
value: function updateVisibility(value2) {
|
82453
|
+
value: function updateVisibility(value2) {
|
82454
|
+
var _this_deps_recorder;
|
82455
|
+
(_this_deps_recorder = this.deps.recorder) === null || _this_deps_recorder === void 0 ? void 0 : _this_deps_recorder.displayStateChanged(this);
|
82456
|
+
}
|
82406
82457
|
},
|
82407
82458
|
{
|
82408
82459
|
key: "hideRegion",
|
82409
82460
|
value: function hideRegion() {
|
82410
82461
|
return _async_to_generator(function() {
|
82462
|
+
var _this_deps_recorder;
|
82411
82463
|
return _ts_generator(this, function(_state) {
|
82412
82464
|
switch(_state.label){
|
82413
82465
|
case 0:
|
@@ -82426,6 +82478,7 @@ var BasicAdRegion = /*#__PURE__*/ function(Region) {
|
|
82426
82478
|
this.applyPlugins("afterHide");
|
82427
82479
|
this.visible = false;
|
82428
82480
|
this.hidden.resolve(true);
|
82481
|
+
(_this_deps_recorder = this.deps.recorder) === null || _this_deps_recorder === void 0 ? void 0 : _this_deps_recorder.presentationStateChanged(this, true);
|
82429
82482
|
return [
|
82430
82483
|
2
|
82431
82484
|
];
|