@mjhls/mjh-framework 1.0.971-nofollow-v3 → 1.0.971-nofollow-v4
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/dist/cjs/ArticleProgramLandingPage.js +1 -1
- package/dist/cjs/ExternalResources.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +1 -1
- package/dist/cjs/IssueLanding.js +1 -1
- package/dist/cjs/{MediaSeriesCard-36560c3c.js → MediaSeriesCard-e65f78d8.js} +1 -1
- package/dist/cjs/MediaSeriesLanding.js +2 -2
- package/dist/cjs/MediaSeriesLandingPaginated.js +2 -2
- package/dist/cjs/PartnerDetailListing.js +1 -1
- package/dist/cjs/PartnerDetailListingPaginated.js +1 -1
- package/dist/cjs/TaxonomyDescription.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +1 -1
- package/dist/cjs/View.js +41 -49
- package/dist/cjs/getSerializers.js +5 -5
- package/dist/cjs/{index-744e5381.js → index-366089a6.js} +71 -55
- package/dist/cjs/index.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +1 -1
- package/dist/esm/ExternalResources.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +1 -1
- package/dist/esm/IssueLanding.js +1 -1
- package/dist/esm/{MediaSeriesCard-df694d3c.js → MediaSeriesCard-9405860d.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +2 -2
- package/dist/esm/MediaSeriesLandingPaginated.js +2 -2
- package/dist/esm/PartnerDetailListing.js +1 -1
- package/dist/esm/PartnerDetailListingPaginated.js +1 -1
- package/dist/esm/TaxonomyDescription.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +1 -1
- package/dist/esm/View.js +41 -49
- package/dist/esm/getSerializers.js +5 -5
- package/dist/esm/{index-8db4b30e.js → index-cf1bb508.js} +71 -55
- package/dist/esm/index.js +1 -1
- 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-
|
|
8
|
+
var getSerializers = require('./index-366089a6.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-
|
|
7
|
+
var getSerializers = require('./index-366089a6.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-
|
|
8
|
+
var getSerializers = require('./index-366089a6.js');
|
|
9
9
|
require('./_commonjsHelpers-06173234.js');
|
|
10
10
|
require('./core.get-iterator-method-5643aa10.js');
|
|
11
11
|
require('./_object-pie-083f2dd6.js');
|
package/dist/cjs/IssueLanding.js
CHANGED
|
@@ -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-
|
|
8
|
+
var getSerializers = require('./index-366089a6.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-
|
|
14
|
+
var getSerializers = require('./index-366089a6.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-
|
|
8
|
+
var MediaSeriesCard = require('./MediaSeriesCard-e65f78d8.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-
|
|
14
|
+
var getSerializers = require('./index-366089a6.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-
|
|
8
|
+
var MediaSeriesCard = require('./MediaSeriesCard-e65f78d8.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-
|
|
14
|
+
var getSerializers = require('./index-366089a6.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-
|
|
16
|
+
var getSerializers = require('./index-366089a6.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-
|
|
16
|
+
var getSerializers = require('./index-366089a6.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-
|
|
10
|
+
var getSerializers = require('./index-366089a6.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-
|
|
10
|
+
var getSerializers = require('./index-366089a6.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-
|
|
20
|
+
var getSerializers = require('./index-366089a6.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,14 +966,6 @@ 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];
|
|
973
|
-
|
|
974
|
-
React.useEffect(function () {
|
|
975
|
-
!ogUrl && setOgUrl(window.location.host);
|
|
976
|
-
}, []);
|
|
977
969
|
var disableEpisodeNumber = false;
|
|
978
970
|
if (article && article.documentGroup && article.documentGroup.disableEpisodeNumber === true) {
|
|
979
971
|
disableEpisodeNumber = true;
|
|
@@ -1020,49 +1012,49 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1020
1012
|
article.contextualAD = Ads.getNativeContextualAD(getTargeting.getTargeting(props, 'native-ad'));
|
|
1021
1013
|
}
|
|
1022
1014
|
|
|
1023
|
-
var
|
|
1024
|
-
|
|
1025
|
-
contextualADFlag =
|
|
1026
|
-
setContextualADFlag =
|
|
1015
|
+
var _useState = React.useState(null),
|
|
1016
|
+
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
1017
|
+
contextualADFlag = _useState2[0],
|
|
1018
|
+
setContextualADFlag = _useState2[1];
|
|
1027
1019
|
// Setting new Flag 'visibleFlag' to know when the article is visible so that new contextual ad can be appended into DOM.
|
|
1028
1020
|
|
|
1029
1021
|
|
|
1030
|
-
var
|
|
1031
|
-
|
|
1032
|
-
visibleFlag =
|
|
1033
|
-
setVisibleFlag =
|
|
1022
|
+
var _useState3 = React.useState(false),
|
|
1023
|
+
_useState4 = slicedToArray._slicedToArray(_useState3, 2),
|
|
1024
|
+
visibleFlag = _useState4[0],
|
|
1025
|
+
setVisibleFlag = _useState4[1];
|
|
1034
1026
|
|
|
1035
1027
|
var summary = getArticleSummary(props.article);
|
|
1036
1028
|
|
|
1037
|
-
var
|
|
1029
|
+
var _useState5 = React.useState(1),
|
|
1030
|
+
_useState6 = slicedToArray._slicedToArray(_useState5, 2),
|
|
1031
|
+
auth = _useState6[0],
|
|
1032
|
+
setAuth = _useState6[1];
|
|
1033
|
+
|
|
1034
|
+
var _useState7 = React.useState(''),
|
|
1038
1035
|
_useState8 = slicedToArray._slicedToArray(_useState7, 2),
|
|
1039
|
-
|
|
1040
|
-
|
|
1036
|
+
passwordKey = _useState8[0],
|
|
1037
|
+
setPasswordKey = _useState8[1];
|
|
1041
1038
|
|
|
1042
|
-
var _useState9 = React.useState(
|
|
1039
|
+
var _useState9 = React.useState(body),
|
|
1043
1040
|
_useState10 = slicedToArray._slicedToArray(_useState9, 2),
|
|
1044
|
-
|
|
1045
|
-
|
|
1041
|
+
articleBody = _useState10[0],
|
|
1042
|
+
setArticleBody = _useState10[1];
|
|
1046
1043
|
|
|
1047
|
-
var _useState11 = React.useState(
|
|
1044
|
+
var _useState11 = React.useState(0),
|
|
1048
1045
|
_useState12 = slicedToArray._slicedToArray(_useState11, 2),
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
var _useState13 = React.useState(0),
|
|
1053
|
-
_useState14 = slicedToArray._slicedToArray(_useState13, 2),
|
|
1054
|
-
containerHeight = _useState14[0],
|
|
1055
|
-
setContainerHeight = _useState14[1];
|
|
1046
|
+
containerHeight = _useState12[0],
|
|
1047
|
+
setContainerHeight = _useState12[1];
|
|
1056
1048
|
|
|
1057
|
-
var
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
var setPreviewAd =
|
|
1049
|
+
var _useState13 = React.useState(true),
|
|
1050
|
+
_useState14 = slicedToArray._slicedToArray(_useState13, 2);
|
|
1051
|
+
_useState14[0];
|
|
1052
|
+
var setPreviewAd = _useState14[1];
|
|
1061
1053
|
|
|
1062
|
-
var
|
|
1063
|
-
|
|
1064
|
-
isFirstArticle =
|
|
1065
|
-
setIsFirstArticle =
|
|
1054
|
+
var _useState15 = React.useState(props.index === 0),
|
|
1055
|
+
_useState16 = slicedToArray._slicedToArray(_useState15, 2),
|
|
1056
|
+
isFirstArticle = _useState16[0],
|
|
1057
|
+
setIsFirstArticle = _useState16[1];
|
|
1066
1058
|
|
|
1067
1059
|
React.useEffect(function () {
|
|
1068
1060
|
var path = window && window.location && window.location.search;
|
|
@@ -1085,7 +1077,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1085
1077
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
1086
1078
|
if (biography) {
|
|
1087
1079
|
return React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1088
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag
|
|
1080
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
1089
1081
|
blocks: [biography]
|
|
1090
1082
|
}, client.config()));
|
|
1091
1083
|
}
|
|
@@ -1331,7 +1323,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1331
1323
|
React__default['default'].Fragment,
|
|
1332
1324
|
null,
|
|
1333
1325
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1334
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay
|
|
1326
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1335
1327
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
1336
1328
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1337
1329
|
}, client.config())),
|
|
@@ -1354,7 +1346,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1354
1346
|
React__default['default'].createElement(AdSlot, _extends._extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
1355
1347
|
),
|
|
1356
1348
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1357
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay
|
|
1349
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1358
1350
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(selectedIndex))),
|
|
1359
1351
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1360
1352
|
}, client.config()))
|
|
@@ -1382,7 +1374,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1382
1374
|
React__default['default'].Fragment,
|
|
1383
1375
|
null,
|
|
1384
1376
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1385
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay
|
|
1377
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1386
1378
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
1387
1379
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1388
1380
|
}, client.config())),
|
|
@@ -1404,7 +1396,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1404
1396
|
),
|
|
1405
1397
|
contextualADFlag && React__default['default'].createElement('span', { className: 'clearfix' }),
|
|
1406
1398
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1407
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay
|
|
1399
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1408
1400
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
1409
1401
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1410
1402
|
}, client.config()))
|
|
@@ -1437,7 +1429,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1437
1429
|
React__default['default'].Fragment,
|
|
1438
1430
|
null,
|
|
1439
1431
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1440
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay
|
|
1432
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1441
1433
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
1442
1434
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1443
1435
|
}, client.config())),
|
|
@@ -1449,7 +1441,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1449
1441
|
React__default['default'].createElement(AdSlot, _extends._extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsAdFound }))
|
|
1450
1442
|
),
|
|
1451
1443
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1452
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay
|
|
1444
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1453
1445
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
1454
1446
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1455
1447
|
}, client.config()))
|
|
@@ -1464,13 +1456,13 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1464
1456
|
'div',
|
|
1465
1457
|
null,
|
|
1466
1458
|
React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1467
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay
|
|
1459
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1468
1460
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(toConsumableArray._toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
1469
1461
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1470
1462
|
}, client.config())),
|
|
1471
1463
|
article.documentGroup && article.documentGroup.isSeries && sliderData && seriesInfo.hasVideo && React__default['default'].createElement(SeriesSlider.SeriesSlider, { dataset: sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: logicforDisplayingEpisodeNumber }),
|
|
1472
1464
|
article.documentGroup && article.documentGroup.isSeries && React__default['default'].createElement(BlockContent.BlockContent, _extends._extends({
|
|
1473
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay
|
|
1465
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1474
1466
|
blocks: [].concat(toConsumableArray._toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
1475
1467
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1476
1468
|
}, client.config()))
|
|
@@ -1831,7 +1823,7 @@ var Article = React__default['default'].memo(React.forwardRef(function (props, r
|
|
|
1831
1823
|
ISI,
|
|
1832
1824
|
null,
|
|
1833
1825
|
React__default['default'].createElement(BlockContent.BlockContent, {
|
|
1834
|
-
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, article.Ads, targeting
|
|
1826
|
+
serializers: getSerializers.getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, article.Ads, targeting),
|
|
1835
1827
|
blocks: isi
|
|
1836
1828
|
})
|
|
1837
1829
|
),
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('./extends-7c86182f.js');
|
|
4
3
|
require('react');
|
|
5
|
-
var getSerializers = require('./index-
|
|
4
|
+
var getSerializers = require('./index-366089a6.js');
|
|
6
5
|
require('./BlockContent-9ebd251f.js');
|
|
7
6
|
require('./entities-df1aed86.js');
|
|
8
|
-
require('./_commonjsHelpers-06173234.js');
|
|
9
|
-
require('./core.get-iterator-method-5643aa10.js');
|
|
10
|
-
require('./_object-pie-083f2dd6.js');
|
|
11
7
|
require('./slicedToArray-067dd3bc.js');
|
|
8
|
+
require('./_commonjsHelpers-06173234.js');
|
|
12
9
|
require('./web.dom.iterable-d98303e0.js');
|
|
10
|
+
require('./core.get-iterator-method-5643aa10.js');
|
|
13
11
|
require('react-bootstrap');
|
|
14
12
|
require('./urlFor.js');
|
|
15
13
|
require('./index-d48b231c.js');
|
|
@@ -26,6 +24,8 @@ require('./_library-dd23b178.js');
|
|
|
26
24
|
require('./_iter-detect-b1df62f0.js');
|
|
27
25
|
require('./Segment.js');
|
|
28
26
|
require('./main-f1c77adb.js');
|
|
27
|
+
require('./extends-7c86182f.js');
|
|
28
|
+
require('./_object-pie-083f2dd6.js');
|
|
29
29
|
require('./urlForFile-29d3815a.js');
|
|
30
30
|
require('./index-eadd5035.js');
|
|
31
31
|
require('react-dom');
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _extends = require('./extends-7c86182f.js');
|
|
4
3
|
var React = require('react');
|
|
5
4
|
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
6
5
|
var reactBootstrap = require('react-bootstrap');
|
|
@@ -15,6 +14,7 @@ require('./Beam.js');
|
|
|
15
14
|
var Segment = require('./Segment.js');
|
|
16
15
|
var main = require('./main-f1c77adb.js');
|
|
17
16
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
17
|
+
var _extends = require('./extends-7c86182f.js');
|
|
18
18
|
var urlForFile = require('./urlForFile-29d3815a.js');
|
|
19
19
|
var index$2 = require('./index-eadd5035.js');
|
|
20
20
|
var asyncToGenerator = require('./asyncToGenerator-77821af0.js');
|
|
@@ -10391,7 +10391,14 @@ var DigiohSmartTag = function DigiohSmartTag(props) {
|
|
|
10391
10391
|
return React__default['default'].createElement('div', { id: FormID });
|
|
10392
10392
|
};
|
|
10393
10393
|
|
|
10394
|
-
var siteArray = ['
|
|
10394
|
+
var siteArray = ['aestheticsauthority.com', 'ajmc.com', 'appliedclinicaltrialsonline.com', 'biopharminternational.com', 'cancernetwork.com', 'cannabissciencetech.com', 'centerforbiosimilars.com', 'chromatographyonline.com', 'contagionlive.com', 'contemporaryclinic.com', 'contemporaryobgyn.net', 'contemporarypediatrics.com', 'curetoday.com', 'dentalproductsreport.com', 'dermatologytimes.com', 'diagnosticimaging.com', 'drugtopics.com', 'dvm360.com', 'endocrinologynetwork.com', 'europe.ophthalmologytimes.com', 'formularywatch.com', 'hcplive.com', 'infectioncontroltoday.com', 'managedhealthcareexecutive.com', 'medicaleconomics.com', 'modernretina.com', 'neurologylive.com', 'nutritionaloutlook.com', 'onclive.com', 'oncnursingnews.com', 'ophthalmologytimes.com', 'optometrytimes.com', 'patientcareonline.com', 'pharmaceuticalcommerce.com', 'pharmacytimes.com', 'pharmexec.com', 'pharmtech.com', 'physicianspractice.com', 'practicalcardiology.com', 'psychiatrictimes.com', 'rheumatologynetwork.com', 'spectroscopyonline.com', 'targetedonc.com', 'turbomachinerymag.com', 'urologytimes.com'];
|
|
10395
|
+
|
|
10396
|
+
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|
|
10397
|
+
if (/https?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|http?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|(^mailto)/i.test(url)) {
|
|
10398
|
+
return true;
|
|
10399
|
+
}
|
|
10400
|
+
return false;
|
|
10401
|
+
};
|
|
10395
10402
|
|
|
10396
10403
|
var ScrollToElement = function ScrollToElement(elementId) {
|
|
10397
10404
|
var element = document.getElementById(elementId);
|
|
@@ -10407,11 +10414,66 @@ var ScrollToElement = function ScrollToElement(elementId) {
|
|
|
10407
10414
|
}
|
|
10408
10415
|
};
|
|
10409
10416
|
|
|
10410
|
-
var
|
|
10411
|
-
|
|
10412
|
-
|
|
10417
|
+
var ExternalLink = function ExternalLink(props) {
|
|
10418
|
+
var children = props.children,
|
|
10419
|
+
_props$mark = props.mark,
|
|
10420
|
+
href = _props$mark.href,
|
|
10421
|
+
blank = _props$mark.blank,
|
|
10422
|
+
color = _props$mark.color,
|
|
10423
|
+
nofollow = _props$mark.nofollow;
|
|
10424
|
+
|
|
10425
|
+
var _useState = React.useState(null),
|
|
10426
|
+
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
10427
|
+
ogUrl = _useState2[0],
|
|
10428
|
+
setOgUrl = _useState2[1];
|
|
10429
|
+
|
|
10430
|
+
React.useEffect(function () {
|
|
10431
|
+
if (window.location.href) {
|
|
10432
|
+
!ogUrl && setOgUrl(String(window.location.host).replace('www.', ''));
|
|
10433
|
+
}
|
|
10434
|
+
}, []);
|
|
10435
|
+
var isExernalUrl = checkUrlIsExternal(href);
|
|
10436
|
+
var checkBaseUrl = function checkBaseUrl(url) {
|
|
10437
|
+
if (url.includes('http://') || url.includes('https://')) {
|
|
10438
|
+
//to remove http:// or https:// to check URLs
|
|
10439
|
+
url = url.replace('www.', '').split('/').slice(2, 3).join('/');
|
|
10440
|
+
}
|
|
10441
|
+
return ogUrl && ogUrl.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) || siteArray.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) ? true : false;
|
|
10442
|
+
};
|
|
10443
|
+
var checkNoFollow = function checkNoFollow(url, nofollow) {
|
|
10444
|
+
if (url && !isExernalUrl || url && checkBaseUrl(url)) {
|
|
10445
|
+
//if not external url, nofollow is disabled
|
|
10446
|
+
return '';
|
|
10447
|
+
} else if (url && nofollow) {
|
|
10448
|
+
//if not external url and nofollow is enabled, nofollow
|
|
10449
|
+
return 'nofollow';
|
|
10450
|
+
} else {
|
|
10451
|
+
//if not external url and nofollow is disabled, no nofollow
|
|
10452
|
+
return '';
|
|
10453
|
+
}
|
|
10454
|
+
};
|
|
10455
|
+
|
|
10456
|
+
if (href && href.charAt(0) === '#') {
|
|
10457
|
+
var elementId = href.slice(1);
|
|
10458
|
+
if (articleId) elementId = elementId + '-' + articleId;
|
|
10459
|
+
return React__default['default'].createElement(
|
|
10460
|
+
'a',
|
|
10461
|
+
{ onClick: function onClick() {
|
|
10462
|
+
return ScrollToElement(elementId);
|
|
10463
|
+
} },
|
|
10464
|
+
children
|
|
10465
|
+
);
|
|
10413
10466
|
}
|
|
10414
|
-
|
|
10467
|
+
|
|
10468
|
+
return href ? React__default['default'].createElement(
|
|
10469
|
+
'a',
|
|
10470
|
+
_extends._extends({
|
|
10471
|
+
rel: checkNoFollow(href, nofollow) + ' ' + (blank && !checkBaseUrl(href) ? 'noreferrer noopener' : ''),
|
|
10472
|
+
href: isExernalUrl ? href : '/' + href,
|
|
10473
|
+
target: blank ? '_blank' : '_self'
|
|
10474
|
+
}, color && color.hex && { style: { color: color.hex } }),
|
|
10475
|
+
children
|
|
10476
|
+
) : children;
|
|
10415
10477
|
};
|
|
10416
10478
|
|
|
10417
10479
|
var convertEntities = function convertEntities(props) {
|
|
@@ -10452,8 +10514,7 @@ var getSerializers = function getSerializers() {
|
|
|
10452
10514
|
meta = props[13],
|
|
10453
10515
|
authorPrefix = props[14],
|
|
10454
10516
|
authorImgHeight = props[15],
|
|
10455
|
-
audioAutoplay = props[16]
|
|
10456
|
-
ogUrl = props[17];
|
|
10517
|
+
audioAutoplay = props[16];
|
|
10457
10518
|
|
|
10458
10519
|
var nextVideo = article && article.nextVideo ? article.nextVideo : null;
|
|
10459
10520
|
|
|
@@ -10640,54 +10701,9 @@ var getSerializers = function getSerializers() {
|
|
|
10640
10701
|
},
|
|
10641
10702
|
link: function link(props) {
|
|
10642
10703
|
var children = props.children,
|
|
10643
|
-
|
|
10644
|
-
href = _props$mark.href,
|
|
10645
|
-
blank = _props$mark.blank,
|
|
10646
|
-
color = _props$mark.color,
|
|
10647
|
-
nofollow = _props$mark.nofollow;
|
|
10648
|
-
|
|
10649
|
-
var isExernalUrl = checkUrlIsExternal(href);
|
|
10650
|
-
var checkBaseUrl = function checkBaseUrl(url) {
|
|
10651
|
-
if (url.includes('http://') || url.includes('https://')) {
|
|
10652
|
-
//to remove http:// or https:// to check URLs
|
|
10653
|
-
url = url.split('/').slice(2, 3).join('/');
|
|
10654
|
-
}
|
|
10655
|
-
return ogUrl && ogUrl.includes(url.split('/').slice(0, 1).join('/')) || siteArray.includes(url.split('/').slice(0, 1).join('/')) ? true : false;
|
|
10656
|
-
};
|
|
10657
|
-
var checkNoFollow = function checkNoFollow(url, nofollow) {
|
|
10658
|
-
if (url && !isExernalUrl || url && checkBaseUrl(url)) {
|
|
10659
|
-
//if not external url, nofollow is disabled
|
|
10660
|
-
return '';
|
|
10661
|
-
} else if (url && nofollow) {
|
|
10662
|
-
//if not external url and nofollow is enabled, nofollow
|
|
10663
|
-
return 'nofollow';
|
|
10664
|
-
} else {
|
|
10665
|
-
//if not external url and nofollow is disabled, no nofollow
|
|
10666
|
-
return '';
|
|
10667
|
-
}
|
|
10668
|
-
};
|
|
10669
|
-
|
|
10670
|
-
if (href && href.charAt(0) === '#') {
|
|
10671
|
-
var elementId = href.slice(1);
|
|
10672
|
-
if (articleId) elementId = elementId + '-' + articleId;
|
|
10673
|
-
return React__default['default'].createElement(
|
|
10674
|
-
'a',
|
|
10675
|
-
{ onClick: function onClick() {
|
|
10676
|
-
return ScrollToElement(elementId);
|
|
10677
|
-
} },
|
|
10678
|
-
children
|
|
10679
|
-
);
|
|
10680
|
-
}
|
|
10704
|
+
mark = props.mark;
|
|
10681
10705
|
|
|
10682
|
-
return
|
|
10683
|
-
'a',
|
|
10684
|
-
_extends._extends({
|
|
10685
|
-
rel: checkNoFollow(href, nofollow) + ' ' + (blank ? 'noreferrer noopener' : ''),
|
|
10686
|
-
href: isExernalUrl ? href : '/' + href,
|
|
10687
|
-
target: blank ? '_blank' : '_self'
|
|
10688
|
-
}, color && color.hex && { style: { color: color.hex } }),
|
|
10689
|
-
children
|
|
10690
|
-
) : children;
|
|
10706
|
+
return React__default['default'].createElement(ExternalLink, { children: children, mark: mark });
|
|
10691
10707
|
},
|
|
10692
10708
|
alignleft: function alignleft(_ref23) {
|
|
10693
10709
|
var children = _ref23.children;
|
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-
|
|
93
|
+
var getSerializers = require('./index-366089a6.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-
|
|
6
|
+
import { g as getSerializers } from './index-cf1bb508.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-
|
|
5
|
+
import { g as getSerializers } from './index-cf1bb508.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-
|
|
6
|
+
import { g as getSerializers } from './index-cf1bb508.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './core.get-iterator-method-ea258bb1.js';
|
|
9
9
|
import './_object-pie-133f504a.js';
|
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -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-
|
|
6
|
+
import { g as getSerializers } from './index-cf1bb508.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-
|
|
12
|
+
import { g as getSerializers } from './index-cf1bb508.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-
|
|
6
|
+
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-9405860d.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-
|
|
12
|
+
import { g as getSerializers } from './index-cf1bb508.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-
|
|
6
|
+
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-9405860d.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-
|
|
12
|
+
import { g as getSerializers } from './index-cf1bb508.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-
|
|
14
|
+
import { g as getSerializers } from './index-cf1bb508.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-
|
|
14
|
+
import { g as getSerializers } from './index-cf1bb508.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-
|
|
8
|
+
import { g as getSerializers } from './index-cf1bb508.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-
|
|
8
|
+
import { g as getSerializers } from './index-cf1bb508.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-
|
|
18
|
+
import { r as renderAuthor, g as getSerializers } from './index-cf1bb508.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,14 +956,6 @@ 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];
|
|
963
|
-
|
|
964
|
-
useEffect(function () {
|
|
965
|
-
!ogUrl && setOgUrl(window.location.host);
|
|
966
|
-
}, []);
|
|
967
959
|
var disableEpisodeNumber = false;
|
|
968
960
|
if (article && article.documentGroup && article.documentGroup.disableEpisodeNumber === true) {
|
|
969
961
|
disableEpisodeNumber = true;
|
|
@@ -1010,49 +1002,49 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1010
1002
|
article.contextualAD = Ads.getNativeContextualAD(getTargeting(props, 'native-ad'));
|
|
1011
1003
|
}
|
|
1012
1004
|
|
|
1013
|
-
var
|
|
1014
|
-
|
|
1015
|
-
contextualADFlag =
|
|
1016
|
-
setContextualADFlag =
|
|
1005
|
+
var _useState = useState(null),
|
|
1006
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1007
|
+
contextualADFlag = _useState2[0],
|
|
1008
|
+
setContextualADFlag = _useState2[1];
|
|
1017
1009
|
// Setting new Flag 'visibleFlag' to know when the article is visible so that new contextual ad can be appended into DOM.
|
|
1018
1010
|
|
|
1019
1011
|
|
|
1020
|
-
var
|
|
1021
|
-
|
|
1022
|
-
visibleFlag =
|
|
1023
|
-
setVisibleFlag =
|
|
1012
|
+
var _useState3 = useState(false),
|
|
1013
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
1014
|
+
visibleFlag = _useState4[0],
|
|
1015
|
+
setVisibleFlag = _useState4[1];
|
|
1024
1016
|
|
|
1025
1017
|
var summary = getArticleSummary(props.article);
|
|
1026
1018
|
|
|
1027
|
-
var
|
|
1019
|
+
var _useState5 = useState(1),
|
|
1020
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
1021
|
+
auth = _useState6[0],
|
|
1022
|
+
setAuth = _useState6[1];
|
|
1023
|
+
|
|
1024
|
+
var _useState7 = useState(''),
|
|
1028
1025
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
1029
|
-
|
|
1030
|
-
|
|
1026
|
+
passwordKey = _useState8[0],
|
|
1027
|
+
setPasswordKey = _useState8[1];
|
|
1031
1028
|
|
|
1032
|
-
var _useState9 = useState(
|
|
1029
|
+
var _useState9 = useState(body),
|
|
1033
1030
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
1034
|
-
|
|
1035
|
-
|
|
1031
|
+
articleBody = _useState10[0],
|
|
1032
|
+
setArticleBody = _useState10[1];
|
|
1036
1033
|
|
|
1037
|
-
var _useState11 = useState(
|
|
1034
|
+
var _useState11 = useState(0),
|
|
1038
1035
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
var _useState13 = useState(0),
|
|
1043
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
1044
|
-
containerHeight = _useState14[0],
|
|
1045
|
-
setContainerHeight = _useState14[1];
|
|
1036
|
+
containerHeight = _useState12[0],
|
|
1037
|
+
setContainerHeight = _useState12[1];
|
|
1046
1038
|
|
|
1047
|
-
var
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
var setPreviewAd =
|
|
1039
|
+
var _useState13 = useState(true),
|
|
1040
|
+
_useState14 = _slicedToArray(_useState13, 2);
|
|
1041
|
+
_useState14[0];
|
|
1042
|
+
var setPreviewAd = _useState14[1];
|
|
1051
1043
|
|
|
1052
|
-
var
|
|
1053
|
-
|
|
1054
|
-
isFirstArticle =
|
|
1055
|
-
setIsFirstArticle =
|
|
1044
|
+
var _useState15 = useState(props.index === 0),
|
|
1045
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
1046
|
+
isFirstArticle = _useState16[0],
|
|
1047
|
+
setIsFirstArticle = _useState16[1];
|
|
1056
1048
|
|
|
1057
1049
|
useEffect(function () {
|
|
1058
1050
|
var path = window && window.location && window.location.search;
|
|
@@ -1075,7 +1067,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1075
1067
|
var renderAuthorBiography = function renderAuthorBiography(biography) {
|
|
1076
1068
|
if (biography) {
|
|
1077
1069
|
return React__default.createElement(BlockContent, _extends({
|
|
1078
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag
|
|
1070
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, contextualADFlag),
|
|
1079
1071
|
blocks: [biography]
|
|
1080
1072
|
}, client.config()));
|
|
1081
1073
|
}
|
|
@@ -1321,7 +1313,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1321
1313
|
React__default.Fragment,
|
|
1322
1314
|
null,
|
|
1323
1315
|
React__default.createElement(BlockContent, _extends({
|
|
1324
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay
|
|
1316
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1325
1317
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
1326
1318
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1327
1319
|
}, client.config())),
|
|
@@ -1344,7 +1336,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1344
1336
|
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
1345
1337
|
),
|
|
1346
1338
|
React__default.createElement(BlockContent, _extends({
|
|
1347
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay
|
|
1339
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1348
1340
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
1349
1341
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1350
1342
|
}, client.config()))
|
|
@@ -1372,7 +1364,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1372
1364
|
React__default.Fragment,
|
|
1373
1365
|
null,
|
|
1374
1366
|
React__default.createElement(BlockContent, _extends({
|
|
1375
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay
|
|
1367
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1376
1368
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
1377
1369
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1378
1370
|
}, client.config())),
|
|
@@ -1394,7 +1386,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1394
1386
|
),
|
|
1395
1387
|
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
1396
1388
|
React__default.createElement(BlockContent, _extends({
|
|
1397
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay
|
|
1389
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1398
1390
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
1399
1391
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1400
1392
|
}, client.config()))
|
|
@@ -1427,7 +1419,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1427
1419
|
React__default.Fragment,
|
|
1428
1420
|
null,
|
|
1429
1421
|
React__default.createElement(BlockContent, _extends({
|
|
1430
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay
|
|
1422
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1431
1423
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
1432
1424
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1433
1425
|
}, client.config())),
|
|
@@ -1439,7 +1431,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1439
1431
|
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsAdFound }))
|
|
1440
1432
|
),
|
|
1441
1433
|
React__default.createElement(BlockContent, _extends({
|
|
1442
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay
|
|
1434
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1443
1435
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
1444
1436
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1445
1437
|
}, client.config()))
|
|
@@ -1454,13 +1446,13 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1454
1446
|
'div',
|
|
1455
1447
|
null,
|
|
1456
1448
|
React__default.createElement(BlockContent, _extends({
|
|
1457
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay
|
|
1449
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1458
1450
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
1459
1451
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1460
1452
|
}, client.config())),
|
|
1461
1453
|
article.documentGroup && article.documentGroup.isSeries && sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: logicforDisplayingEpisodeNumber }),
|
|
1462
1454
|
article.documentGroup && article.documentGroup.isSeries && React__default.createElement(BlockContent, _extends({
|
|
1463
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay
|
|
1455
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight, audioAutoplay),
|
|
1464
1456
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
1465
1457
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1466
1458
|
}, client.config()))
|
|
@@ -1821,7 +1813,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1821
1813
|
ISI,
|
|
1822
1814
|
null,
|
|
1823
1815
|
React__default.createElement(BlockContent, {
|
|
1824
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, article.Ads, targeting
|
|
1816
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, article.Ads, targeting),
|
|
1825
1817
|
blocks: isi
|
|
1826
1818
|
})
|
|
1827
1819
|
),
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import './extends-6d8e3924.js';
|
|
2
1
|
import 'react';
|
|
3
|
-
export { g as default } from './index-
|
|
2
|
+
export { g as default } from './index-cf1bb508.js';
|
|
4
3
|
import './BlockContent-1e73bd2c.js';
|
|
5
4
|
import './entities-6d9154b4.js';
|
|
6
|
-
import './_commonjsHelpers-0c4b6f40.js';
|
|
7
|
-
import './core.get-iterator-method-ea258bb1.js';
|
|
8
|
-
import './_object-pie-133f504a.js';
|
|
9
5
|
import './slicedToArray-6ebcbfea.js';
|
|
6
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
10
7
|
import './web.dom.iterable-ab4dea5c.js';
|
|
8
|
+
import './core.get-iterator-method-ea258bb1.js';
|
|
11
9
|
import 'react-bootstrap';
|
|
12
10
|
import './urlFor.js';
|
|
13
11
|
import './index-3f5c03b2.js';
|
|
@@ -24,6 +22,8 @@ import './_library-528f1934.js';
|
|
|
24
22
|
import './_iter-detect-98db3b07.js';
|
|
25
23
|
import './Segment.js';
|
|
26
24
|
import './main-1894c974.js';
|
|
25
|
+
import './extends-6d8e3924.js';
|
|
26
|
+
import './_object-pie-133f504a.js';
|
|
27
27
|
import './urlForFile-b69adffc.js';
|
|
28
28
|
import './index-755f2cc2.js';
|
|
29
29
|
import 'react-dom';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { _ as _extends, b as _extends$1 } from './extends-6d8e3924.js';
|
|
2
1
|
import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
|
|
3
2
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-6ebcbfea.js';
|
|
4
3
|
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button as Button$1, ProgressBar } from 'react-bootstrap';
|
|
@@ -13,6 +12,7 @@ import './Beam.js';
|
|
|
13
12
|
import Segment from './Segment.js';
|
|
14
13
|
import { e as main_18, b as main_42, m as main_43 } from './main-1894c974.js';
|
|
15
14
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
15
|
+
import { _ as _extends, b as _extends$1 } from './extends-6d8e3924.js';
|
|
16
16
|
import { u as urlForFile } from './urlForFile-b69adffc.js';
|
|
17
17
|
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
18
18
|
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
|
|
@@ -10371,7 +10371,14 @@ var DigiohSmartTag = function DigiohSmartTag(props) {
|
|
|
10371
10371
|
return React__default.createElement('div', { id: FormID });
|
|
10372
10372
|
};
|
|
10373
10373
|
|
|
10374
|
-
var siteArray = ['
|
|
10374
|
+
var siteArray = ['aestheticsauthority.com', 'ajmc.com', 'appliedclinicaltrialsonline.com', 'biopharminternational.com', 'cancernetwork.com', 'cannabissciencetech.com', 'centerforbiosimilars.com', 'chromatographyonline.com', 'contagionlive.com', 'contemporaryclinic.com', 'contemporaryobgyn.net', 'contemporarypediatrics.com', 'curetoday.com', 'dentalproductsreport.com', 'dermatologytimes.com', 'diagnosticimaging.com', 'drugtopics.com', 'dvm360.com', 'endocrinologynetwork.com', 'europe.ophthalmologytimes.com', 'formularywatch.com', 'hcplive.com', 'infectioncontroltoday.com', 'managedhealthcareexecutive.com', 'medicaleconomics.com', 'modernretina.com', 'neurologylive.com', 'nutritionaloutlook.com', 'onclive.com', 'oncnursingnews.com', 'ophthalmologytimes.com', 'optometrytimes.com', 'patientcareonline.com', 'pharmaceuticalcommerce.com', 'pharmacytimes.com', 'pharmexec.com', 'pharmtech.com', 'physicianspractice.com', 'practicalcardiology.com', 'psychiatrictimes.com', 'rheumatologynetwork.com', 'spectroscopyonline.com', 'targetedonc.com', 'turbomachinerymag.com', 'urologytimes.com'];
|
|
10375
|
+
|
|
10376
|
+
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|
|
10377
|
+
if (/https?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|http?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|(^mailto)/i.test(url)) {
|
|
10378
|
+
return true;
|
|
10379
|
+
}
|
|
10380
|
+
return false;
|
|
10381
|
+
};
|
|
10375
10382
|
|
|
10376
10383
|
var ScrollToElement = function ScrollToElement(elementId) {
|
|
10377
10384
|
var element = document.getElementById(elementId);
|
|
@@ -10387,11 +10394,66 @@ var ScrollToElement = function ScrollToElement(elementId) {
|
|
|
10387
10394
|
}
|
|
10388
10395
|
};
|
|
10389
10396
|
|
|
10390
|
-
var
|
|
10391
|
-
|
|
10392
|
-
|
|
10397
|
+
var ExternalLink = function ExternalLink(props) {
|
|
10398
|
+
var children = props.children,
|
|
10399
|
+
_props$mark = props.mark,
|
|
10400
|
+
href = _props$mark.href,
|
|
10401
|
+
blank = _props$mark.blank,
|
|
10402
|
+
color = _props$mark.color,
|
|
10403
|
+
nofollow = _props$mark.nofollow;
|
|
10404
|
+
|
|
10405
|
+
var _useState = useState(null),
|
|
10406
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
10407
|
+
ogUrl = _useState2[0],
|
|
10408
|
+
setOgUrl = _useState2[1];
|
|
10409
|
+
|
|
10410
|
+
useEffect(function () {
|
|
10411
|
+
if (window.location.href) {
|
|
10412
|
+
!ogUrl && setOgUrl(String(window.location.host).replace('www.', ''));
|
|
10413
|
+
}
|
|
10414
|
+
}, []);
|
|
10415
|
+
var isExernalUrl = checkUrlIsExternal(href);
|
|
10416
|
+
var checkBaseUrl = function checkBaseUrl(url) {
|
|
10417
|
+
if (url.includes('http://') || url.includes('https://')) {
|
|
10418
|
+
//to remove http:// or https:// to check URLs
|
|
10419
|
+
url = url.replace('www.', '').split('/').slice(2, 3).join('/');
|
|
10420
|
+
}
|
|
10421
|
+
return ogUrl && ogUrl.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) || siteArray.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) ? true : false;
|
|
10422
|
+
};
|
|
10423
|
+
var checkNoFollow = function checkNoFollow(url, nofollow) {
|
|
10424
|
+
if (url && !isExernalUrl || url && checkBaseUrl(url)) {
|
|
10425
|
+
//if not external url, nofollow is disabled
|
|
10426
|
+
return '';
|
|
10427
|
+
} else if (url && nofollow) {
|
|
10428
|
+
//if not external url and nofollow is enabled, nofollow
|
|
10429
|
+
return 'nofollow';
|
|
10430
|
+
} else {
|
|
10431
|
+
//if not external url and nofollow is disabled, no nofollow
|
|
10432
|
+
return '';
|
|
10433
|
+
}
|
|
10434
|
+
};
|
|
10435
|
+
|
|
10436
|
+
if (href && href.charAt(0) === '#') {
|
|
10437
|
+
var elementId = href.slice(1);
|
|
10438
|
+
if (articleId) elementId = elementId + '-' + articleId;
|
|
10439
|
+
return React__default.createElement(
|
|
10440
|
+
'a',
|
|
10441
|
+
{ onClick: function onClick() {
|
|
10442
|
+
return ScrollToElement(elementId);
|
|
10443
|
+
} },
|
|
10444
|
+
children
|
|
10445
|
+
);
|
|
10393
10446
|
}
|
|
10394
|
-
|
|
10447
|
+
|
|
10448
|
+
return href ? React__default.createElement(
|
|
10449
|
+
'a',
|
|
10450
|
+
_extends({
|
|
10451
|
+
rel: checkNoFollow(href, nofollow) + ' ' + (blank && !checkBaseUrl(href) ? 'noreferrer noopener' : ''),
|
|
10452
|
+
href: isExernalUrl ? href : '/' + href,
|
|
10453
|
+
target: blank ? '_blank' : '_self'
|
|
10454
|
+
}, color && color.hex && { style: { color: color.hex } }),
|
|
10455
|
+
children
|
|
10456
|
+
) : children;
|
|
10395
10457
|
};
|
|
10396
10458
|
|
|
10397
10459
|
var convertEntities = function convertEntities(props) {
|
|
@@ -10432,8 +10494,7 @@ var getSerializers = function getSerializers() {
|
|
|
10432
10494
|
meta = props[13],
|
|
10433
10495
|
authorPrefix = props[14],
|
|
10434
10496
|
authorImgHeight = props[15],
|
|
10435
|
-
audioAutoplay = props[16]
|
|
10436
|
-
ogUrl = props[17];
|
|
10497
|
+
audioAutoplay = props[16];
|
|
10437
10498
|
|
|
10438
10499
|
var nextVideo = article && article.nextVideo ? article.nextVideo : null;
|
|
10439
10500
|
|
|
@@ -10620,54 +10681,9 @@ var getSerializers = function getSerializers() {
|
|
|
10620
10681
|
},
|
|
10621
10682
|
link: function link(props) {
|
|
10622
10683
|
var children = props.children,
|
|
10623
|
-
|
|
10624
|
-
href = _props$mark.href,
|
|
10625
|
-
blank = _props$mark.blank,
|
|
10626
|
-
color = _props$mark.color,
|
|
10627
|
-
nofollow = _props$mark.nofollow;
|
|
10628
|
-
|
|
10629
|
-
var isExernalUrl = checkUrlIsExternal(href);
|
|
10630
|
-
var checkBaseUrl = function checkBaseUrl(url) {
|
|
10631
|
-
if (url.includes('http://') || url.includes('https://')) {
|
|
10632
|
-
//to remove http:// or https:// to check URLs
|
|
10633
|
-
url = url.split('/').slice(2, 3).join('/');
|
|
10634
|
-
}
|
|
10635
|
-
return ogUrl && ogUrl.includes(url.split('/').slice(0, 1).join('/')) || siteArray.includes(url.split('/').slice(0, 1).join('/')) ? true : false;
|
|
10636
|
-
};
|
|
10637
|
-
var checkNoFollow = function checkNoFollow(url, nofollow) {
|
|
10638
|
-
if (url && !isExernalUrl || url && checkBaseUrl(url)) {
|
|
10639
|
-
//if not external url, nofollow is disabled
|
|
10640
|
-
return '';
|
|
10641
|
-
} else if (url && nofollow) {
|
|
10642
|
-
//if not external url and nofollow is enabled, nofollow
|
|
10643
|
-
return 'nofollow';
|
|
10644
|
-
} else {
|
|
10645
|
-
//if not external url and nofollow is disabled, no nofollow
|
|
10646
|
-
return '';
|
|
10647
|
-
}
|
|
10648
|
-
};
|
|
10649
|
-
|
|
10650
|
-
if (href && href.charAt(0) === '#') {
|
|
10651
|
-
var elementId = href.slice(1);
|
|
10652
|
-
if (articleId) elementId = elementId + '-' + articleId;
|
|
10653
|
-
return React__default.createElement(
|
|
10654
|
-
'a',
|
|
10655
|
-
{ onClick: function onClick() {
|
|
10656
|
-
return ScrollToElement(elementId);
|
|
10657
|
-
} },
|
|
10658
|
-
children
|
|
10659
|
-
);
|
|
10660
|
-
}
|
|
10684
|
+
mark = props.mark;
|
|
10661
10685
|
|
|
10662
|
-
return
|
|
10663
|
-
'a',
|
|
10664
|
-
_extends({
|
|
10665
|
-
rel: checkNoFollow(href, nofollow) + ' ' + (blank ? 'noreferrer noopener' : ''),
|
|
10666
|
-
href: isExernalUrl ? href : '/' + href,
|
|
10667
|
-
target: blank ? '_blank' : '_self'
|
|
10668
|
-
}, color && color.hex && { style: { color: color.hex } }),
|
|
10669
|
-
children
|
|
10670
|
-
) : children;
|
|
10686
|
+
return React__default.createElement(ExternalLink, { children: children, mark: mark });
|
|
10671
10687
|
},
|
|
10672
10688
|
alignleft: function alignleft(_ref23) {
|
|
10673
10689
|
var children = _ref23.children;
|
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-
|
|
90
|
+
export { g as getSerializers } from './index-cf1bb508.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';
|