@mjhls/mjh-framework 1.0.563 → 1.0.565

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.563
2
+ # mjh-framework v. 1.0.565
3
3
 
4
4
  > Foundation Framework
5
5
 
@@ -246,7 +246,7 @@ var IssueContentDeck = function IssueContentDeck(props) {
246
246
  React__default.createElement(
247
247
  'style',
248
248
  { jsx: 'true' },
249
- '\n .displayLabelThumb {\n margin: 0 auto;\n margin-top: -1.25rem;\n background-color: white;\n position: relative;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n border: 2px solid #484848;\n display: inline;\n width: max-content;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n '
249
+ '\n .displayLabelThumb {\n margin: 0 auto;\n margin-top: -1.25rem;\n background-color: white;\n position: relative;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n border: 2px solid #484848;\n width: fit-content;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n '
250
250
  )
251
251
  );
252
252
  };
@@ -269,7 +269,7 @@ var MasterDeck = function (_React$Component) {
269
269
  sizes: brandInsightAd.sizes,
270
270
  slotId: brandInsightAd.slotId + '_' + i,
271
271
  targeting: {
272
- pos: 'article' + i,
272
+ pos: 'infeed',
273
273
  content_placement: brandInsightAd.targeting.content_placement,
274
274
  document_url: brandInsightAd.targeting.document_url
275
275
  },
@@ -285,10 +285,8 @@ var MasterDeck = function (_React$Component) {
285
285
  data = data.map(function (ele, i) {
286
286
  if (ele._type === 'lg-infeed') {
287
287
  // Setting pos as top2 for the first occurence of large infeed ad
288
- var _pos = data.indexOf(data.find(function (d) {
289
- return d._type === 'lg-infeed';
290
- })) === i ? 'top2' : 'lg-infeed_' + i;
291
- return _extends._extends({}, ele, { slotId: 'lg-infeed_' + i, targeting: _extends._extends({}, ele.targeting, { pos: _pos }) });
288
+ // const pos = data.indexOf(data.find((d) => d._type === 'lg-infeed')) === i ? 'top2' : `lg-infeed_${i}`
289
+ return _extends._extends({}, ele, { slotId: 'lg-infeed_' + i, targeting: _extends._extends({}, ele.targeting, { pos: 'lg-infeed' }) });
292
290
  } else {
293
291
  return ele;
294
292
  }
@@ -555,7 +555,7 @@ var PublicationLanding = function PublicationLanding(props) {
555
555
  React__default.createElement(
556
556
  'style',
557
557
  { jsx: 'true' },
558
- '\n .issueCard.card:hover {\n cursor: default;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n border: 2px solid #484848;\n display: inline;\n width: max-content;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n '
558
+ '\n .issueCard.card:hover {\n cursor: default;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n border: 2px solid #484848;\n width: fit-content;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n '
559
559
  )
560
560
  );
561
561
  };
@@ -217,7 +217,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
217
217
  sizes: brandInsightAd.sizes,
218
218
  slotId: brandInsightAd.slotId + '_' + i,
219
219
  targeting: {
220
- pos: 'article' + i,
220
+ pos: 'infeed',
221
221
  content_placement: brandInsightAd.targeting.content_placement,
222
222
  document_url: brandInsightAd.targeting.document_url
223
223
  },
@@ -236,10 +236,8 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
236
236
  data = data.map(function (ele, i) {
237
237
  if (ele._type === 'lg-infeed') {
238
238
  // Setting pos as top2 for the first occurence of large infeed ad
239
- var _pos = data.indexOf(data.find(function (d) {
240
- return d._type === 'lg-infeed';
241
- })) === i ? 'top2' : 'lg-infeed_' + i;
242
- return _extends._extends({}, ele, { slotId: 'lg-infeed_' + i, targeting: _extends._extends({}, ele.targeting, { pos: _pos }) });
239
+ // const pos = data.indexOf(data.find((d) => d._type === 'lg-infeed')) === i ? 'top2' : `lg-infeed_${i}`
240
+ return _extends._extends({}, ele, { slotId: 'lg-infeed_' + i, targeting: _extends._extends({}, ele.targeting, { pos: 'lg-infeed' }) });
243
241
  } else if (ele._type === 'article') {
244
242
  // incrementing 'articleCount' for each article.
245
243
  ++articleCount;
@@ -241,7 +241,7 @@ var IssueContentDeck = function IssueContentDeck(props) {
241
241
  React__default.createElement(
242
242
  'style',
243
243
  { jsx: 'true' },
244
- '\n .displayLabelThumb {\n margin: 0 auto;\n margin-top: -1.25rem;\n background-color: white;\n position: relative;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n border: 2px solid #484848;\n display: inline;\n width: max-content;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n '
244
+ '\n .displayLabelThumb {\n margin: 0 auto;\n margin-top: -1.25rem;\n background-color: white;\n position: relative;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n border: 2px solid #484848;\n width: fit-content;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n '
245
245
  )
246
246
  );
247
247
  };
@@ -263,7 +263,7 @@ var MasterDeck = function (_React$Component) {
263
263
  sizes: brandInsightAd.sizes,
264
264
  slotId: brandInsightAd.slotId + '_' + i,
265
265
  targeting: {
266
- pos: 'article' + i,
266
+ pos: 'infeed',
267
267
  content_placement: brandInsightAd.targeting.content_placement,
268
268
  document_url: brandInsightAd.targeting.document_url
269
269
  },
@@ -279,10 +279,8 @@ var MasterDeck = function (_React$Component) {
279
279
  data = data.map(function (ele, i) {
280
280
  if (ele._type === 'lg-infeed') {
281
281
  // Setting pos as top2 for the first occurence of large infeed ad
282
- var _pos = data.indexOf(data.find(function (d) {
283
- return d._type === 'lg-infeed';
284
- })) === i ? 'top2' : 'lg-infeed_' + i;
285
- return _extends({}, ele, { slotId: 'lg-infeed_' + i, targeting: _extends({}, ele.targeting, { pos: _pos }) });
282
+ // const pos = data.indexOf(data.find((d) => d._type === 'lg-infeed')) === i ? 'top2' : `lg-infeed_${i}`
283
+ return _extends({}, ele, { slotId: 'lg-infeed_' + i, targeting: _extends({}, ele.targeting, { pos: 'lg-infeed' }) });
286
284
  } else {
287
285
  return ele;
288
286
  }
@@ -549,7 +549,7 @@ var PublicationLanding = function PublicationLanding(props) {
549
549
  React__default.createElement(
550
550
  'style',
551
551
  { jsx: 'true' },
552
- '\n .issueCard.card:hover {\n cursor: default;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n border: 2px solid #484848;\n display: inline;\n width: max-content;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n '
552
+ '\n .issueCard.card:hover {\n cursor: default;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n border: 2px solid #484848;\n width: fit-content;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n '
553
553
  )
554
554
  );
555
555
  };
@@ -211,7 +211,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
211
211
  sizes: brandInsightAd.sizes,
212
212
  slotId: brandInsightAd.slotId + '_' + i,
213
213
  targeting: {
214
- pos: 'article' + i,
214
+ pos: 'infeed',
215
215
  content_placement: brandInsightAd.targeting.content_placement,
216
216
  document_url: brandInsightAd.targeting.document_url
217
217
  },
@@ -230,10 +230,8 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
230
230
  data = data.map(function (ele, i) {
231
231
  if (ele._type === 'lg-infeed') {
232
232
  // Setting pos as top2 for the first occurence of large infeed ad
233
- var _pos = data.indexOf(data.find(function (d) {
234
- return d._type === 'lg-infeed';
235
- })) === i ? 'top2' : 'lg-infeed_' + i;
236
- return _extends({}, ele, { slotId: 'lg-infeed_' + i, targeting: _extends({}, ele.targeting, { pos: _pos }) });
233
+ // const pos = data.indexOf(data.find((d) => d._type === 'lg-infeed')) === i ? 'top2' : `lg-infeed_${i}`
234
+ return _extends({}, ele, { slotId: 'lg-infeed_' + i, targeting: _extends({}, ele.targeting, { pos: 'lg-infeed' }) });
237
235
  } else if (ele._type === 'article') {
238
236
  // incrementing 'articleCount' for each article.
239
237
  ++articleCount;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.563",
3
+ "version": "1.0.565",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",