@mjhls/mjh-framework 1.0.591 → 1.0.592

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.591
2
+ # mjh-framework v. 1.0.592
3
3
 
4
4
  > Foundation Framework
5
5
 
@@ -403,11 +403,11 @@ var GridContent = function (_React$Component) {
403
403
  sizes: brandInsight.sizes,
404
404
  slotId: brandInsight.slotId + '_' + i,
405
405
  targeting: {
406
- pos: 'article' + i,
406
+ pos: 'infeed',
407
407
  content_placement: brandInsight.targeting.content_placement,
408
408
  document_url: brandInsight.targeting.document_url
409
409
  },
410
- _type: 'BrandInsight'
410
+ _type: 'brandInsightAd'
411
411
  };
412
412
 
413
413
  posts = insert(posts, pos, inFeedAd);
@@ -426,10 +426,8 @@ var GridContent = function (_React$Component) {
426
426
  posts = posts.map(function (ele, i) {
427
427
  if (ele._type === 'lg-infeed') {
428
428
  // Setting pos as top2 for the first occurence of large infeed ad
429
- var _pos = posts.indexOf(posts.find(function (d) {
430
- return d._type === 'lg-infeed';
431
- })) === i ? 'top2' : 'lg-infeed_' + i;
432
- return _extends._extends({}, ele, { slotId: 'lg-infeed_' + i, targeting: _extends._extends({}, ele.targeting, { pos: _pos }) });
429
+ // const pos = posts.indexOf(posts.find((d) => d._type === 'lg-infeed')) === i ? 'top2' : `lg-infeed_${i}`
430
+ return _extends._extends({}, ele, { slotId: 'lg-infeed_' + i, targeting: _extends._extends({}, ele.targeting, { pos: 'lg-infeed' }) });
433
431
  } else if (ele._type === 'article') {
434
432
  // incrementing 'articleCount' for each article.
435
433
  ++articleCount;
@@ -582,7 +580,7 @@ var GridContent = function (_React$Component) {
582
580
  }
583
581
  } else if (row._type === 'lg-infeed' && row.adUnit) {
584
582
  return React__default.createElement(ADlgInfeed.ADlgInfeed, _extends._extends({ index: index }, row));
585
- } else if (row._type === 'BrandInsight' && row.adUnit) {
583
+ } else if (row._type === 'brandInsightAd' && row.adUnit) {
586
584
  return React__default.createElement(ADInfeed.ADInfeed, { index: index, infeedAd: row });
587
585
  }
588
586
  if (index + 1 > heroContent + featureCount && (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type))) {
@@ -397,11 +397,11 @@ var GridContent = function (_React$Component) {
397
397
  sizes: brandInsight.sizes,
398
398
  slotId: brandInsight.slotId + '_' + i,
399
399
  targeting: {
400
- pos: 'article' + i,
400
+ pos: 'infeed',
401
401
  content_placement: brandInsight.targeting.content_placement,
402
402
  document_url: brandInsight.targeting.document_url
403
403
  },
404
- _type: 'BrandInsight'
404
+ _type: 'brandInsightAd'
405
405
  };
406
406
 
407
407
  posts = insert(posts, pos, inFeedAd);
@@ -420,10 +420,8 @@ var GridContent = function (_React$Component) {
420
420
  posts = posts.map(function (ele, i) {
421
421
  if (ele._type === 'lg-infeed') {
422
422
  // Setting pos as top2 for the first occurence of large infeed ad
423
- var _pos = posts.indexOf(posts.find(function (d) {
424
- return d._type === 'lg-infeed';
425
- })) === i ? 'top2' : 'lg-infeed_' + i;
426
- return _extends({}, ele, { slotId: 'lg-infeed_' + i, targeting: _extends({}, ele.targeting, { pos: _pos }) });
423
+ // const pos = posts.indexOf(posts.find((d) => d._type === 'lg-infeed')) === i ? 'top2' : `lg-infeed_${i}`
424
+ return _extends({}, ele, { slotId: 'lg-infeed_' + i, targeting: _extends({}, ele.targeting, { pos: 'lg-infeed' }) });
427
425
  } else if (ele._type === 'article') {
428
426
  // incrementing 'articleCount' for each article.
429
427
  ++articleCount;
@@ -576,7 +574,7 @@ var GridContent = function (_React$Component) {
576
574
  }
577
575
  } else if (row._type === 'lg-infeed' && row.adUnit) {
578
576
  return React__default.createElement(ADlgInfeed, _extends({ index: index }, row));
579
- } else if (row._type === 'BrandInsight' && row.adUnit) {
577
+ } else if (row._type === 'brandInsightAd' && row.adUnit) {
580
578
  return React__default.createElement(ADInfeed, { index: index, infeedAd: row });
581
579
  }
582
580
  if (index + 1 > heroContent + featureCount && (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type))) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.591",
3
+ "version": "1.0.592",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",