@mjhls/mjh-framework 1.0.486 → 1.0.487

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 CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- # mjh-framework v. 1.0.486
2
+ # mjh-framework v. 1.0.487
3
3
 
4
4
 
5
5
  > Foundation Framework
@@ -49,7 +49,7 @@ var AD300x250 = function AD300x250(_ref) {
49
49
  };
50
50
 
51
51
  var browserSizes = [[300, 250], [300, 100]];
52
- var mobileSizes = [[300, 50][(50)], [300, 250], [300, 100]];
52
+ var mobileSizes = [[300, 50], [320, 50], [300, 250], [300, 100]];
53
53
 
54
54
  return React__default.createElement(AdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: adTargeting, className: 'AD300x250', sizes: mobileView ? mobileSizes : browserSizes });
55
55
  };
@@ -31,10 +31,8 @@ var AD300x250x600 = function AD300x250x600(_ref) {
31
31
  _ref$pos = _ref.pos,
32
32
  pos = _ref$pos === undefined ? 'rec2' : _ref$pos;
33
33
 
34
- var mobileView = false;
35
34
  if (main.main_39) {
36
35
  pos = 'rec2-mobile';
37
- mobileView = true;
38
36
  }
39
37
 
40
38
  var adTargeting = {
@@ -48,10 +46,26 @@ var AD300x250x600 = function AD300x250x600(_ref) {
48
46
  publication_url: targeting.publication_url
49
47
  };
50
48
 
51
- var browserSizes = [[300, 250], [300, 600], [300, 100]];
52
- var mobileSizes = [[300, 50][(50)], [300, 250], [300, 100]];
53
-
54
- return React__default.createElement(AdSlot, { networkID: networkID, adUnit: adUnit, className: 'AD300x250', slotId: slotId, targeting: adTargeting, sizes: mobileView ? mobileSizes : browserSizes });
49
+ return React__default.createElement(AdSlot, {
50
+ networkID: networkID,
51
+ adUnit: adUnit,
52
+ className: 'AD300x250',
53
+ slotId: slotId,
54
+ targeting: adTargeting
55
+ // passing all possible sizes.
56
+ , sizes: ([300, 600])
57
+ // setting responsive sizemapping to make the ads responsive.
58
+ , sizeMapping: [{
59
+ viewport: [1200, 900],
60
+ sizes: [[300, 100], [300, 250], [300, 600]]
61
+ }, {
62
+ viewport: [1200, 1],
63
+ sizes: [[300, 100], [300, 250]]
64
+ }, {
65
+ viewport: [1, 1],
66
+ sizes: [[300, 50], [300, 100], [320, 50], [300, 250]]
67
+ }]
68
+ });
55
69
  };
56
70
 
57
71
  module.exports = AD300x250x600;
@@ -44,7 +44,7 @@ var AD300x250 = function AD300x250(_ref) {
44
44
  };
45
45
 
46
46
  var browserSizes = [[300, 250], [300, 100]];
47
- var mobileSizes = [[300, 50][(50)], [300, 250], [300, 100]];
47
+ var mobileSizes = [[300, 50], [320, 50], [300, 250], [300, 100]];
48
48
 
49
49
  return React__default.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, slotId: slotId, targeting: adTargeting, className: 'AD300x250', sizes: mobileView ? mobileSizes : browserSizes });
50
50
  };
@@ -26,10 +26,8 @@ var AD300x250x600 = function AD300x250x600(_ref) {
26
26
  _ref$pos = _ref.pos,
27
27
  pos = _ref$pos === undefined ? 'rec2' : _ref$pos;
28
28
 
29
- var mobileView = false;
30
29
  if (main_39) {
31
30
  pos = 'rec2-mobile';
32
- mobileView = true;
33
31
  }
34
32
 
35
33
  var adTargeting = {
@@ -43,10 +41,26 @@ var AD300x250x600 = function AD300x250x600(_ref) {
43
41
  publication_url: targeting.publication_url
44
42
  };
45
43
 
46
- var browserSizes = [[300, 250], [300, 600], [300, 100]];
47
- var mobileSizes = [[300, 50][(50)], [300, 250], [300, 100]];
48
-
49
- return React__default.createElement(DFPAdSlot, { networkID: networkID, adUnit: adUnit, className: 'AD300x250', slotId: slotId, targeting: adTargeting, sizes: mobileView ? mobileSizes : browserSizes });
44
+ return React__default.createElement(DFPAdSlot, {
45
+ networkID: networkID,
46
+ adUnit: adUnit,
47
+ className: 'AD300x250',
48
+ slotId: slotId,
49
+ targeting: adTargeting
50
+ // passing all possible sizes.
51
+ , sizes: ([300, 600])
52
+ // setting responsive sizemapping to make the ads responsive.
53
+ , sizeMapping: [{
54
+ viewport: [1200, 900],
55
+ sizes: [[300, 100], [300, 250], [300, 600]]
56
+ }, {
57
+ viewport: [1200, 1],
58
+ sizes: [[300, 100], [300, 250]]
59
+ }, {
60
+ viewport: [1, 1],
61
+ sizes: [[300, 50], [300, 100], [320, 50], [300, 250]]
62
+ }]
63
+ });
50
64
  };
51
65
 
52
66
  export default AD300x250x600;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.486",
3
+ "version": "1.0.487",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",