@brndts/brndts-ads 1.14.7 → 1.14.8

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 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() {
@@ -81898,12 +81905,32 @@ var TYPES = {
81898
81905
  [
81899
81906
  300,
81900
81907
  250
81908
+ ],
81909
+ [
81910
+ 250,
81911
+ 250
81912
+ ],
81913
+ [
81914
+ 200,
81915
+ 200
81916
+ ],
81917
+ [
81918
+ 180,
81919
+ 150
81920
+ ],
81921
+ [
81922
+ 150,
81923
+ 150
81901
81924
  ]
81902
81925
  ],
81903
81926
  "large-rectangle": [
81904
81927
  [
81905
81928
  300,
81906
81929
  600
81930
+ ],
81931
+ [
81932
+ 160,
81933
+ 600
81907
81934
  ]
81908
81935
  ],
81909
81936
  "billboard": [
@@ -81976,7 +82003,7 @@ var DefaultTemplate = /*#__PURE__*/ function() {
81976
82003
  height: plane.height - (this.margin.t + this.margin.b)
81977
82004
  }),
81978
82005
  name: "A",
81979
- maxSlots: 3
82006
+ maxSlots: 1
81980
82007
  });
81981
82008
  }
81982
82009
  if (plane.height - (cutout.y + cutout.height) > 0) {
@@ -82025,7 +82052,7 @@ var FullscreenTemplate = /*#__PURE__*/ function() {
82025
82052
  height: plane.height - (this.margin.t + this.margin.b)
82026
82053
  }),
82027
82054
  name: "A",
82028
- maxSlots: 3
82055
+ maxSlots: 1
82029
82056
  });
82030
82057
  }
82031
82058
  if (plane.height - (cutout.y + cutout.height) > 0) {
@@ -82170,8 +82197,13 @@ var RegionPacker = /*#__PURE__*/ function(_import_events8_default) {
82170
82197
  for(var _iterator = this.areas[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
82171
82198
  var region = _step.value;
82172
82199
  var _packed;
82173
- this.packedByArea[region.name] = this.fillRegion(_object_spread({}, region));
82174
- (_packed = packed).push.apply(_packed, _to_consumable_array(this.packedByArea[region.name]));
82200
+ var regionSlots = this.fillRegion(_object_spread({}, region));
82201
+ this.packedByArea[region.name] = regionSlots;
82202
+ (_packed = packed).push.apply(_packed, _to_consumable_array(regionSlots));
82203
+ if (regionSlots.length > 0) {
82204
+ updated = true;
82205
+ break;
82206
+ }
82175
82207
  }
82176
82208
  } catch (err) {
82177
82209
  _didIteratorError = true;
@@ -82402,12 +82434,16 @@ var BasicAdRegion = /*#__PURE__*/ function(Region) {
82402
82434
  },
82403
82435
  {
82404
82436
  key: "updateVisibility",
82405
- value: function updateVisibility(value2) {}
82437
+ value: function updateVisibility(value2) {
82438
+ var _this_deps_recorder;
82439
+ (_this_deps_recorder = this.deps.recorder) === null || _this_deps_recorder === void 0 ? void 0 : _this_deps_recorder.displayStateChanged(this);
82440
+ }
82406
82441
  },
82407
82442
  {
82408
82443
  key: "hideRegion",
82409
82444
  value: function hideRegion() {
82410
82445
  return _async_to_generator(function() {
82446
+ var _this_deps_recorder;
82411
82447
  return _ts_generator(this, function(_state) {
82412
82448
  switch(_state.label){
82413
82449
  case 0:
@@ -82426,6 +82462,7 @@ var BasicAdRegion = /*#__PURE__*/ function(Region) {
82426
82462
  this.applyPlugins("afterHide");
82427
82463
  this.visible = false;
82428
82464
  this.hidden.resolve(true);
82465
+ (_this_deps_recorder = this.deps.recorder) === null || _this_deps_recorder === void 0 ? void 0 : _this_deps_recorder.presentationStateChanged(this, true);
82429
82466
  return [
82430
82467
  2
82431
82468
  ];