@folklore/ads 0.0.90 → 0.0.92
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/cjs.js +10 -10
- package/dist/es.js +10 -10
- package/package.json +2 -2
package/dist/cjs.js
CHANGED
|
@@ -522,9 +522,6 @@ class AdsManager extends EventEmitter {
|
|
|
522
522
|
return true;
|
|
523
523
|
}
|
|
524
524
|
displaySlot(slot) {
|
|
525
|
-
if (!slot.canBeDisplayed()) {
|
|
526
|
-
return;
|
|
527
|
-
}
|
|
528
525
|
this.callDisplaySlot(slot);
|
|
529
526
|
}
|
|
530
527
|
|
|
@@ -534,12 +531,15 @@ class AdsManager extends EventEmitter {
|
|
|
534
531
|
googletag
|
|
535
532
|
} = this;
|
|
536
533
|
googletag.cmd.push(() => {
|
|
534
|
+
if (!slot.canBeDisplayed()) {
|
|
535
|
+
return;
|
|
536
|
+
}
|
|
537
537
|
const id = slot.getElementId();
|
|
538
538
|
const path = slot.getAdPath();
|
|
539
539
|
debug$1('Displaying slot #%s(%s)...', id, path);
|
|
540
|
-
googletag.display(
|
|
540
|
+
googletag.display(id);
|
|
541
541
|
if (googletag.pubads().isInitialLoadDisabled()) {
|
|
542
|
-
googletag.pubads().refresh([
|
|
542
|
+
googletag.pubads().refresh([id]);
|
|
543
543
|
}
|
|
544
544
|
slot.setDisplayed(true);
|
|
545
545
|
});
|
|
@@ -634,12 +634,12 @@ const slots = {
|
|
|
634
634
|
}
|
|
635
635
|
},
|
|
636
636
|
fullwidth: {
|
|
637
|
-
size: [[
|
|
637
|
+
size: [[250, 250], [300, 100], [300, 150], [300, 250], [320, 50], [320, 100], [336, 280], [634, 634], [640, 350], [728, 90], [970, 90], [970, 250], [970, 415], [1024, 300], [1382, 300], [1382, 600]],
|
|
638
638
|
sizeMapping: {
|
|
639
|
-
default: [[
|
|
640
|
-
tablet: [[
|
|
641
|
-
desktop: [[
|
|
642
|
-
laptop: [[
|
|
639
|
+
default: [[250, 250], [300, 100], [300, 150], [300, 250], [320, 50], [320, 100], [336, 280]],
|
|
640
|
+
tablet: [[250, 250], [300, 100], [300, 150], [300, 250], [320, 50], [320, 100], [336, 280], [634, 634], [640, 350], [728, 90]],
|
|
641
|
+
desktop: [[634, 634], [640, 350], [728, 90], [970, 90], [970, 250], [970, 415], [1024, 300]],
|
|
642
|
+
laptop: [[634, 634], [640, 350], [728, 90], [970, 90], [970, 250], [970, 415], [1024, 300], [1382, 300], [1382, 600]]
|
|
643
643
|
}
|
|
644
644
|
},
|
|
645
645
|
content: {
|
package/dist/es.js
CHANGED
|
@@ -520,9 +520,6 @@ class AdsManager extends EventEmitter {
|
|
|
520
520
|
return true;
|
|
521
521
|
}
|
|
522
522
|
displaySlot(slot) {
|
|
523
|
-
if (!slot.canBeDisplayed()) {
|
|
524
|
-
return;
|
|
525
|
-
}
|
|
526
523
|
this.callDisplaySlot(slot);
|
|
527
524
|
}
|
|
528
525
|
|
|
@@ -532,12 +529,15 @@ class AdsManager extends EventEmitter {
|
|
|
532
529
|
googletag
|
|
533
530
|
} = this;
|
|
534
531
|
googletag.cmd.push(() => {
|
|
532
|
+
if (!slot.canBeDisplayed()) {
|
|
533
|
+
return;
|
|
534
|
+
}
|
|
535
535
|
const id = slot.getElementId();
|
|
536
536
|
const path = slot.getAdPath();
|
|
537
537
|
debug$1('Displaying slot #%s(%s)...', id, path);
|
|
538
|
-
googletag.display(
|
|
538
|
+
googletag.display(id);
|
|
539
539
|
if (googletag.pubads().isInitialLoadDisabled()) {
|
|
540
|
-
googletag.pubads().refresh([
|
|
540
|
+
googletag.pubads().refresh([id]);
|
|
541
541
|
}
|
|
542
542
|
slot.setDisplayed(true);
|
|
543
543
|
});
|
|
@@ -632,12 +632,12 @@ const slots = {
|
|
|
632
632
|
}
|
|
633
633
|
},
|
|
634
634
|
fullwidth: {
|
|
635
|
-
size: [[
|
|
635
|
+
size: [[250, 250], [300, 100], [300, 150], [300, 250], [320, 50], [320, 100], [336, 280], [634, 634], [640, 350], [728, 90], [970, 90], [970, 250], [970, 415], [1024, 300], [1382, 300], [1382, 600]],
|
|
636
636
|
sizeMapping: {
|
|
637
|
-
default: [[
|
|
638
|
-
tablet: [[
|
|
639
|
-
desktop: [[
|
|
640
|
-
laptop: [[
|
|
637
|
+
default: [[250, 250], [300, 100], [300, 150], [300, 250], [320, 50], [320, 100], [336, 280]],
|
|
638
|
+
tablet: [[250, 250], [300, 100], [300, 150], [300, 250], [320, 50], [320, 100], [336, 280], [634, 634], [640, 350], [728, 90]],
|
|
639
|
+
desktop: [[634, 634], [640, 350], [728, 90], [970, 90], [970, 250], [970, 415], [1024, 300]],
|
|
640
|
+
laptop: [[634, 634], [640, 350], [728, 90], [970, 90], [970, 250], [970, 415], [1024, 300], [1382, 300], [1382, 600]]
|
|
641
641
|
}
|
|
642
642
|
},
|
|
643
643
|
content: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@folklore/ads",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.92",
|
|
4
4
|
"description": "Ads library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "e41d1a9c4dc805aba884403e1e7ceb24545fe4fd",
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@folklore/hooks": "^0.0.71",
|
|
56
56
|
"@folklore/tracking": "^0.0.26",
|