@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.mjs CHANGED
@@ -70136,6 +70136,13 @@ var REGIONS = [
70136
70136
  h: 150,
70137
70137
  name: "Generic - 150x150",
70138
70138
  type: "medium-rectangle"
70139
+ },
70140
+ {
70141
+ id: 1014,
70142
+ w: 160,
70143
+ h: 600,
70144
+ name: "Generic - 160x600",
70145
+ type: "large-rectangle"
70139
70146
  }
70140
70147
  ];
70141
70148
  var RegionDefinitions = /*#__PURE__*/ function() {
@@ -82013,12 +82020,32 @@ var TYPES = {
82013
82020
  [
82014
82021
  300,
82015
82022
  250
82023
+ ],
82024
+ [
82025
+ 250,
82026
+ 250
82027
+ ],
82028
+ [
82029
+ 200,
82030
+ 200
82031
+ ],
82032
+ [
82033
+ 180,
82034
+ 150
82035
+ ],
82036
+ [
82037
+ 150,
82038
+ 150
82016
82039
  ]
82017
82040
  ],
82018
82041
  "large-rectangle": [
82019
82042
  [
82020
82043
  300,
82021
82044
  600
82045
+ ],
82046
+ [
82047
+ 160,
82048
+ 600
82022
82049
  ]
82023
82050
  ],
82024
82051
  "billboard": [
@@ -82092,7 +82119,7 @@ var DefaultTemplate = /*#__PURE__*/ function() {
82092
82119
  height: plane.height - (this.margin.t + this.margin.b)
82093
82120
  }),
82094
82121
  name: "A",
82095
- maxSlots: 3
82122
+ maxSlots: 1
82096
82123
  });
82097
82124
  }
82098
82125
  if (plane.height - (cutout.y + cutout.height) > 0) {
@@ -82142,7 +82169,7 @@ var FullscreenTemplate = /*#__PURE__*/ function() {
82142
82169
  height: plane.height - (this.margin.t + this.margin.b)
82143
82170
  }),
82144
82171
  name: "A",
82145
- maxSlots: 3
82172
+ maxSlots: 1
82146
82173
  });
82147
82174
  }
82148
82175
  if (plane.height - (cutout.y + cutout.height) > 0) {
@@ -82288,8 +82315,13 @@ var RegionPacker = /*#__PURE__*/ function(_import_events8_default) {
82288
82315
  for(var _iterator = this.areas[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
82289
82316
  var region = _step.value;
82290
82317
  var _packed;
82291
- this.packedByArea[region.name] = this.fillRegion(_object_spread({}, region));
82292
- (_packed = packed).push.apply(_packed, _to_consumable_array(this.packedByArea[region.name]));
82318
+ var regionSlots = this.fillRegion(_object_spread({}, region));
82319
+ this.packedByArea[region.name] = regionSlots;
82320
+ (_packed = packed).push.apply(_packed, _to_consumable_array(regionSlots));
82321
+ if (regionSlots.length > 0) {
82322
+ updated = true;
82323
+ break;
82324
+ }
82293
82325
  }
82294
82326
  } catch (err) {
82295
82327
  _didIteratorError = true;
@@ -82523,12 +82555,16 @@ var BasicAdRegion = /*#__PURE__*/ function(Region) {
82523
82555
  },
82524
82556
  {
82525
82557
  key: "updateVisibility",
82526
- value: function updateVisibility(value2) {}
82558
+ value: function updateVisibility(value2) {
82559
+ var _this_deps_recorder;
82560
+ (_this_deps_recorder = this.deps.recorder) === null || _this_deps_recorder === void 0 ? void 0 : _this_deps_recorder.displayStateChanged(this);
82561
+ }
82527
82562
  },
82528
82563
  {
82529
82564
  key: "hideRegion",
82530
82565
  value: function hideRegion() {
82531
82566
  return _async_to_generator(function() {
82567
+ var _this_deps_recorder;
82532
82568
  return _ts_generator(this, function(_state) {
82533
82569
  switch(_state.label){
82534
82570
  case 0:
@@ -82547,6 +82583,7 @@ var BasicAdRegion = /*#__PURE__*/ function(Region) {
82547
82583
  this.applyPlugins("afterHide");
82548
82584
  this.visible = false;
82549
82585
  this.hidden.resolve(true);
82586
+ (_this_deps_recorder = this.deps.recorder) === null || _this_deps_recorder === void 0 ? void 0 : _this_deps_recorder.presentationStateChanged(this, true);
82550
82587
  return [
82551
82588
  2
82552
82589
  ];