@mjhls/mjh-framework 1.0.971-nofollow-v1 → 1.0.971-nofollow-v3

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.
Files changed (31) hide show
  1. package/dist/cjs/ArticleProgramLandingPage.js +1 -1
  2. package/dist/cjs/ExternalResources.js +1 -1
  3. package/dist/cjs/HorizontalArticleListing.js +1 -1
  4. package/dist/cjs/IssueLanding.js +1 -1
  5. package/dist/cjs/{MediaSeriesCard-b35ce812.js → MediaSeriesCard-36560c3c.js} +1 -1
  6. package/dist/cjs/MediaSeriesLanding.js +2 -2
  7. package/dist/cjs/MediaSeriesLandingPaginated.js +2 -2
  8. package/dist/cjs/PartnerDetailListing.js +1 -1
  9. package/dist/cjs/PartnerDetailListingPaginated.js +1 -1
  10. package/dist/cjs/TaxonomyDescription.js +1 -1
  11. package/dist/cjs/VideoProgramLandingPage.js +1 -1
  12. package/dist/cjs/View.js +48 -41
  13. package/dist/cjs/getSerializers.js +2 -2
  14. package/dist/cjs/{index-e4b9f361.js → index-744e5381.js} +7 -13
  15. package/dist/cjs/index.js +1 -1
  16. package/dist/esm/ArticleProgramLandingPage.js +1 -1
  17. package/dist/esm/ExternalResources.js +1 -1
  18. package/dist/esm/HorizontalArticleListing.js +1 -1
  19. package/dist/esm/IssueLanding.js +1 -1
  20. package/dist/esm/{MediaSeriesCard-3331c088.js → MediaSeriesCard-df694d3c.js} +1 -1
  21. package/dist/esm/MediaSeriesLanding.js +2 -2
  22. package/dist/esm/MediaSeriesLandingPaginated.js +2 -2
  23. package/dist/esm/PartnerDetailListing.js +1 -1
  24. package/dist/esm/PartnerDetailListingPaginated.js +1 -1
  25. package/dist/esm/TaxonomyDescription.js +1 -1
  26. package/dist/esm/VideoProgramLandingPage.js +1 -1
  27. package/dist/esm/View.js +48 -41
  28. package/dist/esm/getSerializers.js +2 -2
  29. package/dist/esm/{index-cca1a746.js → index-8db4b30e.js} +7 -13
  30. package/dist/esm/index.js +1 -1
  31. package/package.json +1 -1
@@ -5,7 +5,7 @@ var slicedToArray = require('./slicedToArray-067dd3bc.js');
5
5
  var _extends = require('./extends-7c86182f.js');
6
6
  var React = require('react');
7
7
  var BlockContent = require('./BlockContent-9ebd251f.js');
8
- var getSerializers = require('./index-e4b9f361.js');
8
+ var getSerializers = require('./index-744e5381.js');
9
9
  var ArticleSeriesListing = require('./ArticleSeriesListing.js');
10
10
  require('./_commonjsHelpers-06173234.js');
11
11
  require('./core.get-iterator-method-5643aa10.js');
@@ -4,7 +4,7 @@ var _extends = require('./extends-7c86182f.js');
4
4
  var slicedToArray = require('./slicedToArray-067dd3bc.js');
5
5
  var React = require('react');
6
6
  var BlockContent = require('./BlockContent-9ebd251f.js');
7
- var getSerializers = require('./index-e4b9f361.js');
7
+ var getSerializers = require('./index-744e5381.js');
8
8
  var index = require('./index-f86bb269.js');
9
9
  var Router = require('next/router');
10
10
  var Button = require('react-bootstrap/Button');
@@ -5,7 +5,7 @@ var React = require('react');
5
5
  var ArticleCarousel = require('./ArticleCarousel.js');
6
6
  var index_esm = require('./index.esm-d81454e7.js');
7
7
  var BlockContent = require('./BlockContent-9ebd251f.js');
8
- var getSerializers = require('./index-e4b9f361.js');
8
+ var getSerializers = require('./index-744e5381.js');
9
9
  require('./_commonjsHelpers-06173234.js');
10
10
  require('./core.get-iterator-method-5643aa10.js');
11
11
  require('./_object-pie-083f2dd6.js');
@@ -5,7 +5,7 @@ var React = require('react');
5
5
  var QueueDeckExpanded = require('./QueueDeckExpanded.js');
6
6
  var Breadcrumbs = require('./Breadcrumbs.js');
7
7
  var BlockContent = require('./BlockContent-9ebd251f.js');
8
- var getSerializers = require('./index-e4b9f361.js');
8
+ var getSerializers = require('./index-744e5381.js');
9
9
  require('./_commonjsHelpers-06173234.js');
10
10
  require('./core.get-iterator-method-5643aa10.js');
11
11
  require('./_object-pie-083f2dd6.js');
@@ -11,7 +11,7 @@ var urlFor = require('./urlFor.js');
11
11
  var moment = require('./moment-aca40de1.js');
12
12
  var styleInject_es = require('./style-inject.es-dcee06b6.js');
13
13
  var BlockContent = require('./BlockContent-9ebd251f.js');
14
- var getSerializers = require('./index-e4b9f361.js');
14
+ var getSerializers = require('./index-744e5381.js');
15
15
 
16
16
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
17
17
 
@@ -5,13 +5,13 @@ var _typeof = require('./typeof-567e31ff.js');
5
5
  var _extends = require('./extends-7c86182f.js');
6
6
  var slicedToArray = require('./slicedToArray-067dd3bc.js');
7
7
  var React = require('react');
8
- var MediaSeriesCard = require('./MediaSeriesCard-b35ce812.js');
8
+ var MediaSeriesCard = require('./MediaSeriesCard-36560c3c.js');
9
9
  require('./index-50be6759.js');
10
10
  require('react-dom');
11
11
  var Link = require('next/link');
12
12
  var MasterDeck = require('./MasterDeck.js');
13
13
  var BlockContent = require('./BlockContent-9ebd251f.js');
14
- var getSerializers = require('./index-e4b9f361.js');
14
+ var getSerializers = require('./index-744e5381.js');
15
15
  require('./_commonjsHelpers-06173234.js');
16
16
  require('./core.get-iterator-method-5643aa10.js');
17
17
  require('./web.dom.iterable-d98303e0.js');
@@ -5,13 +5,13 @@ var _typeof = require('./typeof-567e31ff.js');
5
5
  var _extends = require('./extends-7c86182f.js');
6
6
  var slicedToArray = require('./slicedToArray-067dd3bc.js');
7
7
  var React = require('react');
8
- var MediaSeriesCard = require('./MediaSeriesCard-b35ce812.js');
8
+ var MediaSeriesCard = require('./MediaSeriesCard-36560c3c.js');
9
9
  require('./index-50be6759.js');
10
10
  require('react-dom');
11
11
  var Link = require('next/link');
12
12
  var BlockContent = require('./BlockContent-9ebd251f.js');
13
13
  var MasterDeckPaginated = require('./MasterDeckPaginated.js');
14
- var getSerializers = require('./index-e4b9f361.js');
14
+ var getSerializers = require('./index-744e5381.js');
15
15
  require('./_commonjsHelpers-06173234.js');
16
16
  require('./core.get-iterator-method-5643aa10.js');
17
17
  require('./web.dom.iterable-d98303e0.js');
@@ -13,7 +13,7 @@ var QueueDeckExpanded = require('./QueueDeckExpanded.js');
13
13
  var Breadcrumbs = require('./Breadcrumbs.js');
14
14
  var Feature = require('./Feature.js');
15
15
  var urlFor = require('./urlFor.js');
16
- var getSerializers = require('./index-e4b9f361.js');
16
+ var getSerializers = require('./index-744e5381.js');
17
17
  var BlockContent = require('./BlockContent-9ebd251f.js');
18
18
  require('./_commonjsHelpers-06173234.js');
19
19
  require('./core.get-iterator-method-5643aa10.js');
@@ -13,7 +13,7 @@ var QueueDeckExpandedPaginated = require('./QueueDeckExpandedPaginated.js');
13
13
  var Breadcrumbs = require('./Breadcrumbs.js');
14
14
  var Feature = require('./Feature.js');
15
15
  var urlFor = require('./urlFor.js');
16
- var getSerializers = require('./index-e4b9f361.js');
16
+ var getSerializers = require('./index-744e5381.js');
17
17
  var BlockContent = require('./BlockContent-9ebd251f.js');
18
18
  require('./_commonjsHelpers-06173234.js');
19
19
  require('./core.get-iterator-method-5643aa10.js');
@@ -7,7 +7,7 @@ var React = require('react');
7
7
  var Router = require('next/router');
8
8
  var Head = require('next/head');
9
9
  var BlockContent = require('./BlockContent-9ebd251f.js');
10
- var getSerializers = require('./index-e4b9f361.js');
10
+ var getSerializers = require('./index-744e5381.js');
11
11
  require('./_commonjsHelpers-06173234.js');
12
12
  require('./core.get-iterator-method-5643aa10.js');
13
13
  require('./_object-pie-083f2dd6.js');
@@ -7,7 +7,7 @@ var BlockContent = require('./BlockContent-9ebd251f.js');
7
7
  var Col = require('react-bootstrap/Col');
8
8
  var Form = require('react-bootstrap/Form');
9
9
  var Button = require('react-bootstrap/Button');
10
- var getSerializers = require('./index-e4b9f361.js');
10
+ var getSerializers = require('./index-744e5381.js');
11
11
  var VideoSeriesListing = require('./VideoSeriesListing.js');
12
12
  require('./_commonjsHelpers-06173234.js');
13
13
  require('./core.get-iterator-method-5643aa10.js');
package/dist/cjs/View.js CHANGED
@@ -17,7 +17,7 @@ var FormControl = require('react-bootstrap/FormControl');
17
17
  var Button = require('react-bootstrap/Button');
18
18
  var visibilitySensor = require('./visibility-sensor-eb2c5b69.js');
19
19
  var SocialShare = require('./SocialShare.js');
20
- var getSerializers = require('./index-e4b9f361.js');
20
+ var getSerializers = require('./index-744e5381.js');
21
21
  var AdSlot = require('./AdSlot.js');
22
22
  var SeriesSlider = require('./SeriesSlider-74546d19.js');
23
23
  var getTargeting = require('./getTargeting-dab97fe1.js');
@@ -966,7 +966,14 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
966
966
  useSegmentRecommendedArticles = _props$useSegmentReco === undefined ? false : _props$useSegmentReco;
967
967
  var sliderData = props.sliderData;
968
968
 
969
+ var _useState = React.useState(null),
970
+ _useState2 = slicedToArray._slicedToArray(_useState, 2),
971
+ ogUrl = _useState2[0],
972
+ setOgUrl = _useState2[1];
969
973
 
974
+ React.useEffect(function () {
975
+ !ogUrl && setOgUrl(window.location.host);
976
+ }, []);
970
977
  var disableEpisodeNumber = false;
971
978
  if (article && article.documentGroup && article.documentGroup.disableEpisodeNumber === true) {
972
979
  disableEpisodeNumber = true;
@@ -1013,49 +1020,49 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
1013
1020
  article.contextualAD = Ads.getNativeContextualAD(getTargeting.getTargeting(props, 'native-ad'));
1014
1021
  }
1015
1022
 
1016
- var _useState = React.useState(null),
1017
- _useState2 = slicedToArray._slicedToArray(_useState, 2),
1018
- contextualADFlag = _useState2[0],
1019
- setContextualADFlag = _useState2[1];
1023
+ var _useState3 = React.useState(null),
1024
+ _useState4 = slicedToArray._slicedToArray(_useState3, 2),
1025
+ contextualADFlag = _useState4[0],
1026
+ setContextualADFlag = _useState4[1];
1020
1027
  // Setting new Flag 'visibleFlag' to know when the article is visible so that new contextual ad can be appended into DOM.
1021
1028
 
1022
1029
 
1023
- var _useState3 = React.useState(false),
1024
- _useState4 = slicedToArray._slicedToArray(_useState3, 2),
1025
- visibleFlag = _useState4[0],
1026
- setVisibleFlag = _useState4[1];
1030
+ var _useState5 = React.useState(false),
1031
+ _useState6 = slicedToArray._slicedToArray(_useState5, 2),
1032
+ visibleFlag = _useState6[0],
1033
+ setVisibleFlag = _useState6[1];
1027
1034
 
1028
1035
  var summary = getArticleSummary(props.article);
1029
1036
 
1030
- var _useState5 = React.useState(1),
1031
- _useState6 = slicedToArray._slicedToArray(_useState5, 2),
1032
- auth = _useState6[0],
1033
- setAuth = _useState6[1];
1034
-
1035
- var _useState7 = React.useState(''),
1037
+ var _useState7 = React.useState(1),
1036
1038
  _useState8 = slicedToArray._slicedToArray(_useState7, 2),
1037
- passwordKey = _useState8[0],
1038
- setPasswordKey = _useState8[1];
1039
+ auth = _useState8[0],
1040
+ setAuth = _useState8[1];
1039
1041
 
1040
- var _useState9 = React.useState(body),
1042
+ var _useState9 = React.useState(''),
1041
1043
  _useState10 = slicedToArray._slicedToArray(_useState9, 2),
1042
- articleBody = _useState10[0],
1043
- setArticleBody = _useState10[1];
1044
+ passwordKey = _useState10[0],
1045
+ setPasswordKey = _useState10[1];
1044
1046
 
1045
- var _useState11 = React.useState(0),
1047
+ var _useState11 = React.useState(body),
1046
1048
  _useState12 = slicedToArray._slicedToArray(_useState11, 2),
1047
- containerHeight = _useState12[0],
1048
- setContainerHeight = _useState12[1];
1049
+ articleBody = _useState12[0],
1050
+ setArticleBody = _useState12[1];
1051
+
1052
+ var _useState13 = React.useState(0),
1053
+ _useState14 = slicedToArray._slicedToArray(_useState13, 2),
1054
+ containerHeight = _useState14[0],
1055
+ setContainerHeight = _useState14[1];
1049
1056
 
1050
- var _useState13 = React.useState(true),
1051
- _useState14 = slicedToArray._slicedToArray(_useState13, 2);
1052
- _useState14[0];
1053
- var setPreviewAd = _useState14[1];
1057
+ var _useState15 = React.useState(true),
1058
+ _useState16 = slicedToArray._slicedToArray(_useState15, 2);
1059
+ _useState16[0];
1060
+ var setPreviewAd = _useState16[1];
1054
1061
 
1055
- var _useState15 = React.useState(props.index === 0),
1056
- _useState16 = slicedToArray._slicedToArray(_useState15, 2),
1057
- isFirstArticle = _useState16[0],
1058
- setIsFirstArticle = _useState16[1];
1062
+ var _useState17 = React.useState(props.index === 0),
1063
+ _useState18 = slicedToArray._slicedToArray(_useState17, 2),
1064
+ isFirstArticle = _useState18[0],
1065
+ setIsFirstArticle = _useState18[1];
1059
1066
 
1060
1067
  React.useEffect(function () {
1061
1068
  var path = window && window.location && window.location.search;
@@ -1078,7 +1085,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
1078
1085
  var renderAuthorBiography = function renderAuthorBiography(biography) {
1079
1086
  if (biography) {
1080
1087
  return React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
1081
- serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
1088
+ serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, ogUrl),
1082
1089
  blocks: [biography]
1083
1090
  }, client.config()));
1084
1091
  }
@@ -1324,7 +1331,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
1324
1331
  React__default['default'].Fragment,
1325
1332
  null,
1326
1333
  React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
1327
- serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
1334
+ serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay, ogUrl),
1328
1335
  blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, selectedIndex))),
1329
1336
  imageOptions: { w: 320, h: 240, fit: 'max' }
1330
1337
  }, client.config())),
@@ -1347,7 +1354,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
1347
1354
  React__default['default'].createElement(AdSlot, _extends._extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
1348
1355
  ),
1349
1356
  React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
1350
- serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
1357
+ serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay, ogUrl),
1351
1358
  blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(selectedIndex))),
1352
1359
  imageOptions: { w: 320, h: 240, fit: 'max' }
1353
1360
  }, client.config()))
@@ -1375,7 +1382,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
1375
1382
  React__default['default'].Fragment,
1376
1383
  null,
1377
1384
  React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
1378
- serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
1385
+ serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay, ogUrl),
1379
1386
  blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, _selectedIndex))),
1380
1387
  imageOptions: { w: 320, h: 240, fit: 'max' }
1381
1388
  }, client.config())),
@@ -1397,7 +1404,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
1397
1404
  ),
1398
1405
  contextualADFlag && React__default['default'].createElement('span', { className: 'clearfix' }),
1399
1406
  React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
1400
- serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
1407
+ serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay, ogUrl),
1401
1408
  blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(_selectedIndex))),
1402
1409
  imageOptions: { w: 320, h: 240, fit: 'max' }
1403
1410
  }, client.config()))
@@ -1430,7 +1437,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
1430
1437
  React__default['default'].Fragment,
1431
1438
  null,
1432
1439
  React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
1433
- serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
1440
+ serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay, ogUrl),
1434
1441
  blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, _selectedIndex2))),
1435
1442
  imageOptions: { w: 320, h: 240, fit: 'max' }
1436
1443
  }, client.config())),
@@ -1442,7 +1449,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
1442
1449
  React__default['default'].createElement(AdSlot, _extends._extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsAdFound }))
1443
1450
  ),
1444
1451
  React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
1445
- serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
1452
+ serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay, ogUrl),
1446
1453
  blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(_selectedIndex2))),
1447
1454
  imageOptions: { w: 320, h: 240, fit: 'max' }
1448
1455
  }, client.config()))
@@ -1457,13 +1464,13 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
1457
1464
  'div',
1458
1465
  null,
1459
1466
  React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
1460
- serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
1467
+ serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay, ogUrl),
1461
1468
  blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
1462
1469
  imageOptions: { w: 320, h: 240, fit: 'max' }
1463
1470
  }, client.config())),
1464
1471
  article.documentGroup && article.documentGroup.isSeries && sliderData && seriesInfo.hasVideo && React__default['default'].createElement(SeriesSlider.SeriesSlider, { dataset: sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: logicforDisplayingEpisodeNumber }),
1465
1472
  article.documentGroup && article.documentGroup.isSeries && React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
1466
- serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
1473
+ serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay, ogUrl),
1467
1474
  blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(_selectedIndex3))),
1468
1475
  imageOptions: { w: 320, h: 240, fit: 'max' }
1469
1476
  }, client.config()))
@@ -1824,7 +1831,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
1824
1831
  ISI,
1825
1832
  null,
1826
1833
  React__default['default'].createElement(BlockContent.BlockContent, {
1827
- serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, article.Ads, targeting),
1834
+ serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, article.Ads, targeting, ogUrl),
1828
1835
  blocks: isi
1829
1836
  })
1830
1837
  ),
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
3
  require('./extends-7c86182f.js');
4
- require('./slicedToArray-067dd3bc.js');
5
4
  require('react');
6
- var getSerializers = require('./index-e4b9f361.js');
5
+ var getSerializers = require('./index-744e5381.js');
7
6
  require('./BlockContent-9ebd251f.js');
8
7
  require('./entities-df1aed86.js');
9
8
  require('./_commonjsHelpers-06173234.js');
10
9
  require('./core.get-iterator-method-5643aa10.js');
11
10
  require('./_object-pie-083f2dd6.js');
11
+ require('./slicedToArray-067dd3bc.js');
12
12
  require('./web.dom.iterable-d98303e0.js');
13
13
  require('react-bootstrap');
14
14
  require('./urlFor.js');
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var _extends = require('./extends-7c86182f.js');
4
- var slicedToArray = require('./slicedToArray-067dd3bc.js');
5
4
  var React = require('react');
5
+ var slicedToArray = require('./slicedToArray-067dd3bc.js');
6
6
  var reactBootstrap = require('react-bootstrap');
7
7
  var urlFor = require('./urlFor.js');
8
8
  var index = require('./index-fc2f1ca2.js');
@@ -10391,6 +10391,8 @@ var DigiohSmartTag = function DigiohSmartTag(props) {
10391
10391
  return React__default['default'].createElement('div', { id: FormID });
10392
10392
  };
10393
10393
 
10394
+ var siteArray = ['www.aestheticsauthority.com', 'www.ajmc.com', 'www.appliedclinicaltrialsonline.com', 'www.biopharminternational.com', 'www.cancernetwork.com', 'www.cannabissciencetech.com', 'www.centerforbiosimilars.com', 'www.chromatographyonline.com', 'www.contagionlive.com', 'www.contemporaryclinic.com', 'www.contemporaryobgyn.net', 'www.contemporarypediatrics.com', 'www.curetoday.com', 'www.dentalproductsreport.com', 'www.dermatologytimes.com', 'www.diagnosticimaging.com', 'www.drugtopics.com', 'www.dvm360.com', 'www.endocrinologynetwork.com', 'europe.ophthalmologytimes.com', 'www.formularywatch.com', 'www.hcplive.com', 'www.infectioncontroltoday.com', 'www.managedhealthcareexecutive.com', 'www.medicaleconomics.com', 'www.modernretina.com', 'www.neurologylive.com', 'www.nutritionaloutlook.com', 'www.onclive.com', 'www.oncnursingnews.com', 'www.ophthalmologytimes.com', 'www.optometrytimes.com', 'www.patientcareonline.com', 'www.pharmaceuticalcommerce.com', 'www.pharmacytimes.com', 'www.pharmexec.com', 'www.pharmtech.com', 'www.physicianspractice.com', 'www.practicalcardiology.com', 'www.psychiatrictimes.com', 'www.rheumatologynetwork.com', 'www.spectroscopyonline.com', 'www.targetedonc.com', 'www.turbomachinerymag.com', 'www.urologytimes.com'];
10395
+
10394
10396
  var ScrollToElement = function ScrollToElement(elementId) {
10395
10397
  var element = document.getElementById(elementId);
10396
10398
  if (element) {
@@ -10450,19 +10452,11 @@ var getSerializers = function getSerializers() {
10450
10452
  meta = props[13],
10451
10453
  authorPrefix = props[14],
10452
10454
  authorImgHeight = props[15],
10453
- audioAutoplay = props[16];
10455
+ audioAutoplay = props[16],
10456
+ ogUrl = props[17];
10454
10457
 
10455
10458
  var nextVideo = article && article.nextVideo ? article.nextVideo : null;
10456
10459
 
10457
- var _useState = React.useState(''),
10458
- _useState2 = slicedToArray._slicedToArray(_useState, 2),
10459
- ogUrl = _useState2[0],
10460
- setOgUrl = _useState2[1];
10461
-
10462
- React.useEffect(function () {
10463
- setOgUrl(window.location.host);
10464
- }, []);
10465
-
10466
10460
  return {
10467
10461
  types: {
10468
10462
  undefined: function undefined$1() {
@@ -10658,7 +10652,7 @@ var getSerializers = function getSerializers() {
10658
10652
  //to remove http:// or https:// to check URLs
10659
10653
  url = url.split('/').slice(2, 3).join('/');
10660
10654
  }
10661
- return ogUrl && ogUrl.includes(url.split('/').slice(0, 1).join('/')) ? true : false;
10655
+ return ogUrl && ogUrl.includes(url.split('/').slice(0, 1).join('/')) || siteArray.includes(url.split('/').slice(0, 1).join('/')) ? true : false;
10662
10656
  };
10663
10657
  var checkNoFollow = function checkNoFollow(url, nofollow) {
10664
10658
  if (url && !isExernalUrl || url && checkBaseUrl(url)) {
@@ -10688,7 +10682,7 @@ var getSerializers = function getSerializers() {
10688
10682
  return href ? React__default['default'].createElement(
10689
10683
  'a',
10690
10684
  _extends._extends({
10691
- rel: checkNoFollow(href, nofollow) + ' ' + (blank ? 'noopener' : ''),
10685
+ rel: checkNoFollow(href, nofollow) + ' ' + (blank ? 'noreferrer noopener' : ''),
10692
10686
  href: isExernalUrl ? href : '/' + href,
10693
10687
  target: blank ? '_blank' : '_self'
10694
10688
  }, color && color.hex && { style: { color: color.hex } }),
package/dist/cjs/index.js CHANGED
@@ -90,7 +90,7 @@ var VerticalHero = require('./VerticalHero.js');
90
90
  var YahooHero = require('./YahooHero.js');
91
91
  var GridHero = require('./GridHero.js');
92
92
  var ConferenceArticleCard = require('./ConferenceArticleCard.js');
93
- var getSerializers = require('./index-e4b9f361.js');
93
+ var getSerializers = require('./index-744e5381.js');
94
94
  var Beam = require('./Beam.js');
95
95
  var Segment = require('./Segment.js');
96
96
  var KMTracker = require('./KMTracker.js');
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
3
3
  import { _ as _extends } from './extends-6d8e3924.js';
4
4
  import React__default from 'react';
5
5
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
6
- import { g as getSerializers } from './index-cca1a746.js';
6
+ import { g as getSerializers } from './index-8db4b30e.js';
7
7
  import ArticleSeriesListing from './ArticleSeriesListing.js';
8
8
  import './_commonjsHelpers-0c4b6f40.js';
9
9
  import './core.get-iterator-method-ea258bb1.js';
@@ -2,7 +2,7 @@ import { _ as _extends } from './extends-6d8e3924.js';
2
2
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
3
3
  import React__default, { useState, useEffect } from 'react';
4
4
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
5
- import { g as getSerializers } from './index-cca1a746.js';
5
+ import { g as getSerializers } from './index-8db4b30e.js';
6
6
  import { m as momentTimezone } from './index-79cfd25c.js';
7
7
  import { useRouter } from 'next/router';
8
8
  import Button from 'react-bootstrap/Button';
@@ -3,7 +3,7 @@ import React__default from 'react';
3
3
  import ArticleCarousel from './ArticleCarousel.js';
4
4
  import { I as IoIosArrowForward } from './index.esm-eb1e8e80.js';
5
5
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
6
- import { g as getSerializers } from './index-cca1a746.js';
6
+ import { g as getSerializers } from './index-8db4b30e.js';
7
7
  import './_commonjsHelpers-0c4b6f40.js';
8
8
  import './core.get-iterator-method-ea258bb1.js';
9
9
  import './_object-pie-133f504a.js';
@@ -3,7 +3,7 @@ import React__default from 'react';
3
3
  import QueueDeckExpanded from './QueueDeckExpanded.js';
4
4
  import Breadcrumbs from './Breadcrumbs.js';
5
5
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
6
- import { g as getSerializers } from './index-cca1a746.js';
6
+ import { g as getSerializers } from './index-8db4b30e.js';
7
7
  import './_commonjsHelpers-0c4b6f40.js';
8
8
  import './core.get-iterator-method-ea258bb1.js';
9
9
  import './_object-pie-133f504a.js';
@@ -9,7 +9,7 @@ import urlFor from './urlFor.js';
9
9
  import { m as moment } from './moment-bc12cb97.js';
10
10
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
11
11
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
12
- import { g as getSerializers } from './index-cca1a746.js';
12
+ import { g as getSerializers } from './index-8db4b30e.js';
13
13
 
14
14
  /**
15
15
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -3,13 +3,13 @@ import { _ as _typeof } from './typeof-e9fc0c5d.js';
3
3
  import { _ as _extends } from './extends-6d8e3924.js';
4
4
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
5
5
  import React__default, { useState, useEffect } from 'react';
6
- import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-3331c088.js';
6
+ import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-df694d3c.js';
7
7
  import './index-98ca9cec.js';
8
8
  import 'react-dom';
9
9
  import Link from 'next/link';
10
10
  import MasterDeck from './MasterDeck.js';
11
11
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
12
- import { g as getSerializers } from './index-cca1a746.js';
12
+ import { g as getSerializers } from './index-8db4b30e.js';
13
13
  import './_commonjsHelpers-0c4b6f40.js';
14
14
  import './core.get-iterator-method-ea258bb1.js';
15
15
  import './web.dom.iterable-ab4dea5c.js';
@@ -3,13 +3,13 @@ import { _ as _typeof } from './typeof-e9fc0c5d.js';
3
3
  import { _ as _extends } from './extends-6d8e3924.js';
4
4
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
5
5
  import React__default, { useState, useEffect } from 'react';
6
- import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-3331c088.js';
6
+ import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-df694d3c.js';
7
7
  import './index-98ca9cec.js';
8
8
  import 'react-dom';
9
9
  import Link from 'next/link';
10
10
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
11
11
  import MasterDeck from './MasterDeckPaginated.js';
12
- import { g as getSerializers } from './index-cca1a746.js';
12
+ import { g as getSerializers } from './index-8db4b30e.js';
13
13
  import './_commonjsHelpers-0c4b6f40.js';
14
14
  import './core.get-iterator-method-ea258bb1.js';
15
15
  import './web.dom.iterable-ab4dea5c.js';
@@ -11,7 +11,7 @@ import QueueDeckExpanded from './QueueDeckExpanded.js';
11
11
  import Breadcrumbs from './Breadcrumbs.js';
12
12
  import Feature from './Feature.js';
13
13
  import urlFor from './urlFor.js';
14
- import { g as getSerializers } from './index-cca1a746.js';
14
+ import { g as getSerializers } from './index-8db4b30e.js';
15
15
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
16
16
  import './_commonjsHelpers-0c4b6f40.js';
17
17
  import './core.get-iterator-method-ea258bb1.js';
@@ -11,7 +11,7 @@ import QueueDeckExpanded from './QueueDeckExpandedPaginated.js';
11
11
  import Breadcrumbs from './Breadcrumbs.js';
12
12
  import Feature from './Feature.js';
13
13
  import urlFor from './urlFor.js';
14
- import { g as getSerializers } from './index-cca1a746.js';
14
+ import { g as getSerializers } from './index-8db4b30e.js';
15
15
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
16
16
  import './_commonjsHelpers-0c4b6f40.js';
17
17
  import './core.get-iterator-method-ea258bb1.js';
@@ -5,7 +5,7 @@ import React__default, { useState, useEffect } from 'react';
5
5
  import { useRouter } from 'next/router';
6
6
  import Head from 'next/head';
7
7
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
8
- import { g as getSerializers } from './index-cca1a746.js';
8
+ import { g as getSerializers } from './index-8db4b30e.js';
9
9
  import './_commonjsHelpers-0c4b6f40.js';
10
10
  import './core.get-iterator-method-ea258bb1.js';
11
11
  import './_object-pie-133f504a.js';
@@ -5,7 +5,7 @@ import { B as BlockContent } from './BlockContent-1e73bd2c.js';
5
5
  import Col from 'react-bootstrap/Col';
6
6
  import Form from 'react-bootstrap/Form';
7
7
  import Button from 'react-bootstrap/Button';
8
- import { g as getSerializers } from './index-cca1a746.js';
8
+ import { g as getSerializers } from './index-8db4b30e.js';
9
9
  import VideoSeriesListing from './VideoSeriesListing.js';
10
10
  import './_commonjsHelpers-0c4b6f40.js';
11
11
  import './core.get-iterator-method-ea258bb1.js';
package/dist/esm/View.js CHANGED
@@ -15,7 +15,7 @@ import FormControl from 'react-bootstrap/FormControl';
15
15
  import Button from 'react-bootstrap/Button';
16
16
  import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
17
17
  import SocialShare from './SocialShare.js';
18
- import { r as renderAuthor, g as getSerializers } from './index-cca1a746.js';
18
+ import { r as renderAuthor, g as getSerializers } from './index-8db4b30e.js';
19
19
  import DFPAdSlot from './AdSlot.js';
20
20
  import { S as SeriesSlider } from './SeriesSlider-e495571f.js';
21
21
  import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-04d979c9.js';
@@ -956,7 +956,14 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
956
956
  useSegmentRecommendedArticles = _props$useSegmentReco === undefined ? false : _props$useSegmentReco;
957
957
  var sliderData = props.sliderData;
958
958
 
959
+ var _useState = useState(null),
960
+ _useState2 = _slicedToArray(_useState, 2),
961
+ ogUrl = _useState2[0],
962
+ setOgUrl = _useState2[1];
959
963
 
964
+ useEffect(function () {
965
+ !ogUrl && setOgUrl(window.location.host);
966
+ }, []);
960
967
  var disableEpisodeNumber = false;
961
968
  if (article && article.documentGroup && article.documentGroup.disableEpisodeNumber === true) {
962
969
  disableEpisodeNumber = true;
@@ -1003,49 +1010,49 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1003
1010
  article.contextualAD = Ads.getNativeContextualAD(getTargeting(props, 'native-ad'));
1004
1011
  }
1005
1012
 
1006
- var _useState = useState(null),
1007
- _useState2 = _slicedToArray(_useState, 2),
1008
- contextualADFlag = _useState2[0],
1009
- setContextualADFlag = _useState2[1];
1013
+ var _useState3 = useState(null),
1014
+ _useState4 = _slicedToArray(_useState3, 2),
1015
+ contextualADFlag = _useState4[0],
1016
+ setContextualADFlag = _useState4[1];
1010
1017
  // Setting new Flag 'visibleFlag' to know when the article is visible so that new contextual ad can be appended into DOM.
1011
1018
 
1012
1019
 
1013
- var _useState3 = useState(false),
1014
- _useState4 = _slicedToArray(_useState3, 2),
1015
- visibleFlag = _useState4[0],
1016
- setVisibleFlag = _useState4[1];
1020
+ var _useState5 = useState(false),
1021
+ _useState6 = _slicedToArray(_useState5, 2),
1022
+ visibleFlag = _useState6[0],
1023
+ setVisibleFlag = _useState6[1];
1017
1024
 
1018
1025
  var summary = getArticleSummary(props.article);
1019
1026
 
1020
- var _useState5 = useState(1),
1021
- _useState6 = _slicedToArray(_useState5, 2),
1022
- auth = _useState6[0],
1023
- setAuth = _useState6[1];
1024
-
1025
- var _useState7 = useState(''),
1027
+ var _useState7 = useState(1),
1026
1028
  _useState8 = _slicedToArray(_useState7, 2),
1027
- passwordKey = _useState8[0],
1028
- setPasswordKey = _useState8[1];
1029
+ auth = _useState8[0],
1030
+ setAuth = _useState8[1];
1029
1031
 
1030
- var _useState9 = useState(body),
1032
+ var _useState9 = useState(''),
1031
1033
  _useState10 = _slicedToArray(_useState9, 2),
1032
- articleBody = _useState10[0],
1033
- setArticleBody = _useState10[1];
1034
+ passwordKey = _useState10[0],
1035
+ setPasswordKey = _useState10[1];
1034
1036
 
1035
- var _useState11 = useState(0),
1037
+ var _useState11 = useState(body),
1036
1038
  _useState12 = _slicedToArray(_useState11, 2),
1037
- containerHeight = _useState12[0],
1038
- setContainerHeight = _useState12[1];
1039
+ articleBody = _useState12[0],
1040
+ setArticleBody = _useState12[1];
1041
+
1042
+ var _useState13 = useState(0),
1043
+ _useState14 = _slicedToArray(_useState13, 2),
1044
+ containerHeight = _useState14[0],
1045
+ setContainerHeight = _useState14[1];
1039
1046
 
1040
- var _useState13 = useState(true),
1041
- _useState14 = _slicedToArray(_useState13, 2);
1042
- _useState14[0];
1043
- var setPreviewAd = _useState14[1];
1047
+ var _useState15 = useState(true),
1048
+ _useState16 = _slicedToArray(_useState15, 2);
1049
+ _useState16[0];
1050
+ var setPreviewAd = _useState16[1];
1044
1051
 
1045
- var _useState15 = useState(props.index === 0),
1046
- _useState16 = _slicedToArray(_useState15, 2),
1047
- isFirstArticle = _useState16[0],
1048
- setIsFirstArticle = _useState16[1];
1052
+ var _useState17 = useState(props.index === 0),
1053
+ _useState18 = _slicedToArray(_useState17, 2),
1054
+ isFirstArticle = _useState18[0],
1055
+ setIsFirstArticle = _useState18[1];
1049
1056
 
1050
1057
  useEffect(function () {
1051
1058
  var path = window && window.location && window.location.search;
@@ -1068,7 +1075,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1068
1075
  var renderAuthorBiography = function renderAuthorBiography(biography) {
1069
1076
  if (biography) {
1070
1077
  return React__default.createElement(BlockContent, _extends({
1071
- serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
1078
+ serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag, ogUrl),
1072
1079
  blocks: [biography]
1073
1080
  }, client.config()));
1074
1081
  }
@@ -1314,7 +1321,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1314
1321
  React__default.Fragment,
1315
1322
  null,
1316
1323
  React__default.createElement(BlockContent, _extends({
1317
- serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
1324
+ serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay, ogUrl),
1318
1325
  blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
1319
1326
  imageOptions: { w: 320, h: 240, fit: 'max' }
1320
1327
  }, client.config())),
@@ -1337,7 +1344,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1337
1344
  React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
1338
1345
  ),
1339
1346
  React__default.createElement(BlockContent, _extends({
1340
- serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
1347
+ serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay, ogUrl),
1341
1348
  blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
1342
1349
  imageOptions: { w: 320, h: 240, fit: 'max' }
1343
1350
  }, client.config()))
@@ -1365,7 +1372,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1365
1372
  React__default.Fragment,
1366
1373
  null,
1367
1374
  React__default.createElement(BlockContent, _extends({
1368
- serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
1375
+ serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay, ogUrl),
1369
1376
  blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
1370
1377
  imageOptions: { w: 320, h: 240, fit: 'max' }
1371
1378
  }, client.config())),
@@ -1387,7 +1394,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1387
1394
  ),
1388
1395
  contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
1389
1396
  React__default.createElement(BlockContent, _extends({
1390
- serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
1397
+ serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay, ogUrl),
1391
1398
  blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
1392
1399
  imageOptions: { w: 320, h: 240, fit: 'max' }
1393
1400
  }, client.config()))
@@ -1420,7 +1427,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1420
1427
  React__default.Fragment,
1421
1428
  null,
1422
1429
  React__default.createElement(BlockContent, _extends({
1423
- serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
1430
+ serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay, ogUrl),
1424
1431
  blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
1425
1432
  imageOptions: { w: 320, h: 240, fit: 'max' }
1426
1433
  }, client.config())),
@@ -1432,7 +1439,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1432
1439
  React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsAdFound }))
1433
1440
  ),
1434
1441
  React__default.createElement(BlockContent, _extends({
1435
- serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
1442
+ serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay, ogUrl),
1436
1443
  blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
1437
1444
  imageOptions: { w: 320, h: 240, fit: 'max' }
1438
1445
  }, client.config()))
@@ -1447,13 +1454,13 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1447
1454
  'div',
1448
1455
  null,
1449
1456
  React__default.createElement(BlockContent, _extends({
1450
- serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
1457
+ serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay, ogUrl),
1451
1458
  blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
1452
1459
  imageOptions: { w: 320, h: 240, fit: 'max' }
1453
1460
  }, client.config())),
1454
1461
  article.documentGroup && article.documentGroup.isSeries && sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: logicforDisplayingEpisodeNumber }),
1455
1462
  article.documentGroup && article.documentGroup.isSeries && React__default.createElement(BlockContent, _extends({
1456
- serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
1463
+ serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay, ogUrl),
1457
1464
  blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
1458
1465
  imageOptions: { w: 320, h: 240, fit: 'max' }
1459
1466
  }, client.config()))
@@ -1814,7 +1821,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1814
1821
  ISI,
1815
1822
  null,
1816
1823
  React__default.createElement(BlockContent, {
1817
- serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, article.Ads, targeting),
1824
+ serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, article.Ads, targeting, ogUrl),
1818
1825
  blocks: isi
1819
1826
  })
1820
1827
  ),
@@ -1,12 +1,12 @@
1
1
  import './extends-6d8e3924.js';
2
- import './slicedToArray-6ebcbfea.js';
3
2
  import 'react';
4
- export { g as default } from './index-cca1a746.js';
3
+ export { g as default } from './index-8db4b30e.js';
5
4
  import './BlockContent-1e73bd2c.js';
6
5
  import './entities-6d9154b4.js';
7
6
  import './_commonjsHelpers-0c4b6f40.js';
8
7
  import './core.get-iterator-method-ea258bb1.js';
9
8
  import './_object-pie-133f504a.js';
9
+ import './slicedToArray-6ebcbfea.js';
10
10
  import './web.dom.iterable-ab4dea5c.js';
11
11
  import 'react-bootstrap';
12
12
  import './urlFor.js';
@@ -1,6 +1,6 @@
1
1
  import { _ as _extends, b as _extends$1 } from './extends-6d8e3924.js';
2
- import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-6ebcbfea.js';
3
2
  import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
3
+ import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-6ebcbfea.js';
4
4
  import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button as Button$1, ProgressBar } from 'react-bootstrap';
5
5
  import urlFor from './urlFor.js';
6
6
  import { l as lib_3 } from './index-f0fc23eb.js';
@@ -10371,6 +10371,8 @@ var DigiohSmartTag = function DigiohSmartTag(props) {
10371
10371
  return React__default.createElement('div', { id: FormID });
10372
10372
  };
10373
10373
 
10374
+ var siteArray = ['www.aestheticsauthority.com', 'www.ajmc.com', 'www.appliedclinicaltrialsonline.com', 'www.biopharminternational.com', 'www.cancernetwork.com', 'www.cannabissciencetech.com', 'www.centerforbiosimilars.com', 'www.chromatographyonline.com', 'www.contagionlive.com', 'www.contemporaryclinic.com', 'www.contemporaryobgyn.net', 'www.contemporarypediatrics.com', 'www.curetoday.com', 'www.dentalproductsreport.com', 'www.dermatologytimes.com', 'www.diagnosticimaging.com', 'www.drugtopics.com', 'www.dvm360.com', 'www.endocrinologynetwork.com', 'europe.ophthalmologytimes.com', 'www.formularywatch.com', 'www.hcplive.com', 'www.infectioncontroltoday.com', 'www.managedhealthcareexecutive.com', 'www.medicaleconomics.com', 'www.modernretina.com', 'www.neurologylive.com', 'www.nutritionaloutlook.com', 'www.onclive.com', 'www.oncnursingnews.com', 'www.ophthalmologytimes.com', 'www.optometrytimes.com', 'www.patientcareonline.com', 'www.pharmaceuticalcommerce.com', 'www.pharmacytimes.com', 'www.pharmexec.com', 'www.pharmtech.com', 'www.physicianspractice.com', 'www.practicalcardiology.com', 'www.psychiatrictimes.com', 'www.rheumatologynetwork.com', 'www.spectroscopyonline.com', 'www.targetedonc.com', 'www.turbomachinerymag.com', 'www.urologytimes.com'];
10375
+
10374
10376
  var ScrollToElement = function ScrollToElement(elementId) {
10375
10377
  var element = document.getElementById(elementId);
10376
10378
  if (element) {
@@ -10430,19 +10432,11 @@ var getSerializers = function getSerializers() {
10430
10432
  meta = props[13],
10431
10433
  authorPrefix = props[14],
10432
10434
  authorImgHeight = props[15],
10433
- audioAutoplay = props[16];
10435
+ audioAutoplay = props[16],
10436
+ ogUrl = props[17];
10434
10437
 
10435
10438
  var nextVideo = article && article.nextVideo ? article.nextVideo : null;
10436
10439
 
10437
- var _useState = useState(''),
10438
- _useState2 = _slicedToArray(_useState, 2),
10439
- ogUrl = _useState2[0],
10440
- setOgUrl = _useState2[1];
10441
-
10442
- useEffect(function () {
10443
- setOgUrl(window.location.host);
10444
- }, []);
10445
-
10446
10440
  return {
10447
10441
  types: {
10448
10442
  undefined: function undefined$1() {
@@ -10638,7 +10632,7 @@ var getSerializers = function getSerializers() {
10638
10632
  //to remove http:// or https:// to check URLs
10639
10633
  url = url.split('/').slice(2, 3).join('/');
10640
10634
  }
10641
- return ogUrl && ogUrl.includes(url.split('/').slice(0, 1).join('/')) ? true : false;
10635
+ return ogUrl && ogUrl.includes(url.split('/').slice(0, 1).join('/')) || siteArray.includes(url.split('/').slice(0, 1).join('/')) ? true : false;
10642
10636
  };
10643
10637
  var checkNoFollow = function checkNoFollow(url, nofollow) {
10644
10638
  if (url && !isExernalUrl || url && checkBaseUrl(url)) {
@@ -10668,7 +10662,7 @@ var getSerializers = function getSerializers() {
10668
10662
  return href ? React__default.createElement(
10669
10663
  'a',
10670
10664
  _extends({
10671
- rel: checkNoFollow(href, nofollow) + ' ' + (blank ? 'noopener' : ''),
10665
+ rel: checkNoFollow(href, nofollow) + ' ' + (blank ? 'noreferrer noopener' : ''),
10672
10666
  href: isExernalUrl ? href : '/' + href,
10673
10667
  target: blank ? '_blank' : '_self'
10674
10668
  }, color && color.hex && { style: { color: color.hex } }),
package/dist/esm/index.js CHANGED
@@ -87,7 +87,7 @@ export { default as VerticalHero } from './VerticalHero.js';
87
87
  export { default as YahooHero } from './YahooHero.js';
88
88
  export { default as GridHero } from './GridHero.js';
89
89
  export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
90
- export { g as getSerializers } from './index-cca1a746.js';
90
+ export { g as getSerializers } from './index-8db4b30e.js';
91
91
  export { default as Beam } from './Beam.js';
92
92
  export { default as Segment } from './Segment.js';
93
93
  export { default as KMTracker } from './KMTracker.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.971-nofollow-v1",
3
+ "version": "1.0.971-nofollow-v3",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",