@mjhls/mjh-framework 1.0.36 → 1.0.38
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/README.md +1 -1
- package/dist/index.es.js +13 -14
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +12 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React__default, { Component, useState,
|
|
1
|
+
import React__default, { Component, useState, createContext, createElement } from 'react';
|
|
2
2
|
import Row from 'react-bootstrap/Row';
|
|
3
3
|
import Col from 'react-bootstrap/Col';
|
|
4
4
|
import Card from 'react-bootstrap/Card';
|
|
@@ -5568,11 +5568,6 @@ var AD728x90 = function AD728x90(_ref) {
|
|
|
5568
5568
|
sizes: [[728, 90]],
|
|
5569
5569
|
adUnit: adUnit,
|
|
5570
5570
|
sizeMapping: [{ viewport: [1024, 768], sizes: [[728, 90]] }],
|
|
5571
|
-
onSlotVisibilityChanged: function onSlotVisibilityChanged(dfpEventData) {
|
|
5572
|
-
if (dfpEventData.event.inViewPercentage < minInViewPercent) {
|
|
5573
|
-
lib_3.refresh(slotId);
|
|
5574
|
-
}
|
|
5575
|
-
},
|
|
5576
5571
|
onSlotRender: function onSlotRender(eventData) {
|
|
5577
5572
|
return console.log('AD728x90 rendered:', eventData);
|
|
5578
5573
|
},
|
|
@@ -5591,7 +5586,7 @@ var AD728x90 = function AD728x90(_ref) {
|
|
|
5591
5586
|
React__default.createElement(lib_2, {
|
|
5592
5587
|
slotId: slotId,
|
|
5593
5588
|
sizes: [[300, 50], [320, 50]],
|
|
5594
|
-
sizeMapping: [{ viewport: [
|
|
5589
|
+
sizeMapping: [{ viewport: [767, 480], sizes: [[320, 50], [300, 50]] }],
|
|
5595
5590
|
adUnit: adUnit,
|
|
5596
5591
|
targetingArguments: { 'pos': 'mobile1' },
|
|
5597
5592
|
onSlotRender: function onSlotRender(eventData) {
|
|
@@ -5686,7 +5681,16 @@ var AD = function AD(_ref) {
|
|
|
5686
5681
|
className = _ref.className,
|
|
5687
5682
|
slotId = _ref.slotId,
|
|
5688
5683
|
sizes = _ref.sizes,
|
|
5689
|
-
minInViewPercent = _ref.minInViewPercent
|
|
5684
|
+
minInViewPercent = _ref.minInViewPercent,
|
|
5685
|
+
keywords = _ref.keywords;
|
|
5686
|
+
|
|
5687
|
+
|
|
5688
|
+
var targetingArguemnts = {};
|
|
5689
|
+
if (keywords) {
|
|
5690
|
+
targetingArguemnts = {
|
|
5691
|
+
'pos': keywords
|
|
5692
|
+
};
|
|
5693
|
+
}
|
|
5690
5694
|
|
|
5691
5695
|
return React__default.createElement(
|
|
5692
5696
|
lib_1,
|
|
@@ -5699,12 +5703,7 @@ var AD = function AD(_ref) {
|
|
|
5699
5703
|
sizes: sizes,
|
|
5700
5704
|
adUnit: adUnit,
|
|
5701
5705
|
sizeMapping: sizeMapping,
|
|
5702
|
-
|
|
5703
|
-
if (minInViewPercent && dfpEventData.event.inViewPercentage < minInViewPercent) {
|
|
5704
|
-
console.log('AD ' + className + ' visibilityChanged:', dfpEventData);
|
|
5705
|
-
lib_3.refresh(slotId);
|
|
5706
|
-
}
|
|
5707
|
-
},
|
|
5706
|
+
targetingArguments: targetingArguemnts,
|
|
5708
5707
|
onSlotIsRendered: function onSlotIsRendered(eventData) {
|
|
5709
5708
|
console.log('AD ' + className + ' rendered:', eventData);
|
|
5710
5709
|
},
|