@brndts/brndts-ads 1.13.2 → 1.13.4

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
@@ -80295,7 +80295,8 @@ var DefaultTemplate = /*#__PURE__*/ function() {
80295
80295
  width: plane.width - (cutout.x + cutout.width),
80296
80296
  height: cutout.y + cutout.height
80297
80297
  }),
80298
- name: "A"
80298
+ name: "A",
80299
+ maxSlots: 3
80299
80300
  });
80300
80301
  }
80301
80302
  if (plane.height - (cutout.y + cutout.height) > 0) {
@@ -80307,7 +80308,8 @@ var DefaultTemplate = /*#__PURE__*/ function() {
80307
80308
  width: plane.width,
80308
80309
  height: plane.height - (cutout.y + cutout.height)
80309
80310
  }),
80310
- name: "B"
80311
+ name: "B",
80312
+ maxSlots: 1
80311
80313
  });
80312
80314
  }
80313
80315
  return areas;
@@ -80335,7 +80337,8 @@ var FullscreenTemplate = /*#__PURE__*/ function() {
80335
80337
  width: plane.width - (cutout.x + cutout.width),
80336
80338
  height: plane.height
80337
80339
  }),
80338
- name: "A"
80340
+ name: "A",
80341
+ maxSlots: 3
80339
80342
  });
80340
80343
  }
80341
80344
  if (plane.height - (cutout.y + cutout.height) > 0) {
@@ -80350,7 +80353,8 @@ var FullscreenTemplate = /*#__PURE__*/ function() {
80350
80353
  available: {
80351
80354
  w: 0.7
80352
80355
  },
80353
- name: "B"
80356
+ name: "B",
80357
+ maxSlots: 1
80354
80358
  });
80355
80359
  }
80356
80360
  return areas;
@@ -80459,6 +80463,9 @@ var RegionPacker = /*#__PURE__*/ function(_import_events8_default) {
80459
80463
  }
80460
80464
  index -= 1;
80461
80465
  }
80466
+ if (result.length >= region.maxSlots) {
80467
+ break;
80468
+ }
80462
80469
  }
80463
80470
  return result;
80464
80471
  }
@@ -80645,12 +80652,6 @@ var StaticRegionContent2 = /*#__PURE__*/ function(RegionContent) {
80645
80652
  this.container.style.width = "fit-content";
80646
80653
  this.container.style.height = "fit-content";
80647
80654
  this.container.dataset.state = this.box.area(this.plane.size) > 0 ? "visible" : "hidden";
80648
- this.container.childNodes.forEach(function(node) {
80649
- if (_instanceof(node, HTMLElement)) {
80650
- node.style.width = "fit-content";
80651
- node.style.height = "fit-content";
80652
- }
80653
- });
80654
80655
  }
80655
80656
  }
80656
80657
  ]);
@@ -80900,6 +80901,7 @@ var RegionsContainerView = /*#__PURE__*/ function() {
80900
80901
  }
80901
80902
  if (this.contentLayer) {
80902
80903
  this.contentLayer.style.position = "absolute";
80904
+ this.contentLayer.style.overflow = "hidden";
80903
80905
  this.contentLayer.style.top = "".concat(this.position.y, "px");
80904
80906
  this.contentLayer.style.left = "".concat(this.position.x, "px");
80905
80907
  this.contentLayer.style.width = "".concat(this.size.width, "px");
@@ -81085,7 +81087,7 @@ var AdRegionsArea = /*#__PURE__*/ function() {
81085
81087
  var region = diffRight[index2];
81086
81088
  var provider = ContentProviderFactory.getProvider(this.context, this.context.config.get("ads").provider);
81087
81089
  var plugins2 = [
81088
- new RegionBorderPlugin(),
81090
+ // new RegionBorderPlugin(),
81089
81091
  new RegionAnimationPlugin("OPACITY")
81090
81092
  ];
81091
81093
  var newRegion = new BasicAdRegion(region.id, {
@@ -81112,16 +81114,15 @@ var AdRegionsArea = /*#__PURE__*/ function() {
81112
81114
  {
81113
81115
  key: "clear",
81114
81116
  value: function clear() {
81115
- var _this = this;
81117
+ this.updateSize({
81118
+ width: 0,
81119
+ height: 0
81120
+ }, this.context.media.aspectRatio);
81121
+ this.updatePosition({
81122
+ x: 0,
81123
+ y: 0
81124
+ });
81116
81125
  this.regionsObjects.forEach(function(region) {
81117
- _this.updateSize({
81118
- width: 0,
81119
- height: 0
81120
- }, _this.context.media.aspectRatio);
81121
- _this.updatePosition({
81122
- x: 0,
81123
- y: 0
81124
- });
81125
81126
  region.clear();
81126
81127
  });
81127
81128
  }