@mjhls/mjh-framework 1.0.1096 → 1.0.1097-external-link-v2
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.js +1 -1
- package/dist/cjs/MediaSeriesLanding.js +1 -1
- package/dist/cjs/MediaSeriesLandingPaginated.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +1 -1
- package/dist/cjs/PartnerDetailListingPaginated.js +1 -1
- package/dist/cjs/PodcastsLanding.js +1 -1
- package/dist/cjs/TaxonomyDescription.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +1 -1
- package/dist/cjs/View.js +1 -1
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/{index-e4c71e36.js → index-363da820.js} +32 -16
- 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.js +1 -1
- package/dist/esm/MediaSeriesLanding.js +1 -1
- package/dist/esm/MediaSeriesLandingPaginated.js +1 -1
- package/dist/esm/PartnerDetailListing.js +1 -1
- package/dist/esm/PartnerDetailListingPaginated.js +1 -1
- package/dist/esm/PodcastsLanding.js +1 -1
- package/dist/esm/TaxonomyDescription.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +1 -1
- package/dist/esm/View.js +1 -1
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/{index-d57654a0.js → index-e0397252.js} +32 -16
- 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-be0d85bc.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
8
|
-
var getSerializers = require('./index-
|
|
8
|
+
var getSerializers = require('./index-363da820.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-be0d85bc.js');
|
|
|
4
4
|
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
7
|
-
var getSerializers = require('./index-
|
|
7
|
+
var getSerializers = require('./index-363da820.js');
|
|
8
8
|
var index = require('./index-4d21663c.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-96b44364.js');
|
|
8
|
-
var getSerializers = require('./index-
|
|
8
|
+
var getSerializers = require('./index-363da820.js');
|
|
9
9
|
require('./_commonjsHelpers-06173234.js');
|
|
10
10
|
require('./core.get-iterator-method-5643aa10.js');
|
|
11
11
|
require('./YoutubeGroup.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-96b44364.js');
|
|
8
|
-
var getSerializers = require('./index-
|
|
8
|
+
var getSerializers = require('./index-363da820.js');
|
|
9
9
|
var PixelTracking = require('./PixelTracking.js');
|
|
10
10
|
require('./_commonjsHelpers-06173234.js');
|
|
11
11
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -7,7 +7,7 @@ var urlFor = require('./urlFor.js');
|
|
|
7
7
|
var moment = require('./moment-f730814d.js');
|
|
8
8
|
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
9
9
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
10
|
-
var getSerializers = require('./index-
|
|
10
|
+
var getSerializers = require('./index-363da820.js');
|
|
11
11
|
require('./_commonjsHelpers-06173234.js');
|
|
12
12
|
require('./core.get-iterator-method-5643aa10.js');
|
|
13
13
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -12,7 +12,7 @@ var Link = require('next/link');
|
|
|
12
12
|
var MasterDeck = require('./MasterDeck.js');
|
|
13
13
|
var MediaSeriesCard = require('./MediaSeriesCard.js');
|
|
14
14
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
15
|
-
var getSerializers = require('./index-
|
|
15
|
+
var getSerializers = require('./index-363da820.js');
|
|
16
16
|
require('./_commonjsHelpers-06173234.js');
|
|
17
17
|
require('./core.get-iterator-method-5643aa10.js');
|
|
18
18
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -12,7 +12,7 @@ var Link = require('next/link');
|
|
|
12
12
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
13
13
|
var MasterDeckPaginated = require('./MasterDeckPaginated.js');
|
|
14
14
|
var MediaSeriesCard = require('./MediaSeriesCard.js');
|
|
15
|
-
var getSerializers = require('./index-
|
|
15
|
+
var getSerializers = require('./index-363da820.js');
|
|
16
16
|
require('./_commonjsHelpers-06173234.js');
|
|
17
17
|
require('./core.get-iterator-method-5643aa10.js');
|
|
18
18
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -12,7 +12,7 @@ var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
|
12
12
|
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
13
13
|
var Feature = require('./Feature.js');
|
|
14
14
|
var urlFor = require('./urlFor.js');
|
|
15
|
-
var getSerializers = require('./index-
|
|
15
|
+
var getSerializers = require('./index-363da820.js');
|
|
16
16
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
17
17
|
var checkSisterSite = require('./checkSisterSite-c3a4ac98.js');
|
|
18
18
|
require('./_commonjsHelpers-06173234.js');
|
|
@@ -12,7 +12,7 @@ var QueueDeckExpandedPaginated = require('./QueueDeckExpandedPaginated.js');
|
|
|
12
12
|
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
13
13
|
var Feature = require('./Feature.js');
|
|
14
14
|
var urlFor = require('./urlFor.js');
|
|
15
|
-
var getSerializers = require('./index-
|
|
15
|
+
var getSerializers = require('./index-363da820.js');
|
|
16
16
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
17
17
|
var checkSisterSite = require('./checkSisterSite-c3a4ac98.js');
|
|
18
18
|
require('./_commonjsHelpers-06173234.js');
|
|
@@ -8,7 +8,7 @@ var Link = require('next/link');
|
|
|
8
8
|
var MasterDeck = require('./MasterDeck.js');
|
|
9
9
|
var MediaSeriesCard = require('./MediaSeriesCard.js');
|
|
10
10
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
11
|
-
var getSerializers = require('./index-
|
|
11
|
+
var getSerializers = require('./index-363da820.js');
|
|
12
12
|
require('./_commonjsHelpers-06173234.js');
|
|
13
13
|
require('./core.get-iterator-method-5643aa10.js');
|
|
14
14
|
require('./web.dom.iterable-d98303e0.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-96b44364.js');
|
|
10
|
-
var getSerializers = require('./index-
|
|
10
|
+
var getSerializers = require('./index-363da820.js');
|
|
11
11
|
require('./_commonjsHelpers-06173234.js');
|
|
12
12
|
require('./core.get-iterator-method-5643aa10.js');
|
|
13
13
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -7,7 +7,7 @@ var BlockContent = require('./BlockContent-96b44364.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-363da820.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-56020df6.js');
|
|
19
19
|
var SocialShare = require('./SocialShare.js');
|
|
20
|
-
var getSerializers = require('./index-
|
|
20
|
+
var getSerializers = require('./index-363da820.js');
|
|
21
21
|
var AdSlot = require('./AdSlot.js');
|
|
22
22
|
var SeriesSlider = require('./SeriesSlider-a8b51591.js');
|
|
23
23
|
var getTargeting = require('./getTargeting-5b954783.js');
|
|
@@ -11225,7 +11225,8 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
11225
11225
|
Promocode = _props$node.Promocode,
|
|
11226
11226
|
_props$node$needSegme = _props$node.needSegmentSupport,
|
|
11227
11227
|
needSegmentSupport = _props$node$needSegme === undefined ? false : _props$node$needSegme,
|
|
11228
|
-
frameHeight = _props$node.frameHeight
|
|
11228
|
+
frameHeight = _props$node.frameHeight,
|
|
11229
|
+
tfaParams = _props$node.tfaParams;
|
|
11229
11230
|
|
|
11230
11231
|
var router = Router.useRouter();
|
|
11231
11232
|
|
|
@@ -11247,16 +11248,27 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
11247
11248
|
React.useEffect(function () {
|
|
11248
11249
|
var tfa_2 = router.query.tfa_2;
|
|
11249
11250
|
|
|
11251
|
+
var pattern = /\?.+=.*/g;
|
|
11250
11252
|
if (FormID) {
|
|
11251
11253
|
var src = 'https://' + enterpriseDomainName + '.tfaforms.net/' + FormID;
|
|
11252
11254
|
if (anonymousID && needSegmentSupport) {
|
|
11253
11255
|
src = src + '?tfa_1=' + anonymousID;
|
|
11254
11256
|
}
|
|
11255
11257
|
if (tfa_2 || Promocode) {
|
|
11256
|
-
var pattern = /\?.+=.*/g;
|
|
11257
11258
|
var hasQueryString = pattern.test(src);
|
|
11258
11259
|
src = hasQueryString ? src + '&tfa_2=' + (tfa_2 ? tfa_2 : Promocode) : src + '?tfa_2=' + (tfa_2 ? tfa_2 : Promocode);
|
|
11259
11260
|
}
|
|
11261
|
+
if (tfaParams && tfaParams.length > 0) {
|
|
11262
|
+
tfaParams.forEach(function (param) {
|
|
11263
|
+
if (param.includes(';')) {
|
|
11264
|
+
var paramArr = param.split(';');
|
|
11265
|
+
var paramName = paramArr[0];
|
|
11266
|
+
var paramVal = paramArr[1];
|
|
11267
|
+
var _hasQueryString = pattern.test(src);
|
|
11268
|
+
src = '' + src + (_hasQueryString ? '&' : '?') + paramName + '=' + paramVal;
|
|
11269
|
+
}
|
|
11270
|
+
});
|
|
11271
|
+
}
|
|
11260
11272
|
setIframeSrc(encodeURI(src));
|
|
11261
11273
|
}
|
|
11262
11274
|
}, [anonymousID]);
|
|
@@ -11385,12 +11397,12 @@ var ScrollToElement = function ScrollToElement(elementId) {
|
|
|
11385
11397
|
var ExternalLink = function ExternalLink(props) {
|
|
11386
11398
|
var children = props.children,
|
|
11387
11399
|
_props$mark = props.mark,
|
|
11388
|
-
href = _props$mark.href,
|
|
11389
11400
|
blank = _props$mark.blank,
|
|
11390
11401
|
color = _props$mark.color,
|
|
11391
11402
|
nofollow = _props$mark.nofollow,
|
|
11392
11403
|
articleId = props.articleId,
|
|
11393
11404
|
type = props.type;
|
|
11405
|
+
var href = props.mark.href;
|
|
11394
11406
|
|
|
11395
11407
|
|
|
11396
11408
|
if (type && type === 'emailAddress') {
|
|
@@ -11418,19 +11430,6 @@ var ExternalLink = function ExternalLink(props) {
|
|
|
11418
11430
|
!ogUrl && setOgUrl(String(window.location.host).replace('www.', ''));
|
|
11419
11431
|
}
|
|
11420
11432
|
}, []);
|
|
11421
|
-
var isExernalUrl = checkUrlIsExternal(href);
|
|
11422
|
-
var checkNoFollow = function checkNoFollow(url, nofollow) {
|
|
11423
|
-
if (url && !isExernalUrl || url && checkSisterSite.checkSisterSite(url)) {
|
|
11424
|
-
//if not external url, nofollow is disabled
|
|
11425
|
-
return '';
|
|
11426
|
-
} else if (url && (nofollow || nofollow == undefined)) {
|
|
11427
|
-
//if not external url and nofollow is enabled, nofollow
|
|
11428
|
-
return 'nofollow';
|
|
11429
|
-
} else {
|
|
11430
|
-
//if not external url and nofollow is disabled, no nofollow
|
|
11431
|
-
return '';
|
|
11432
|
-
}
|
|
11433
|
-
};
|
|
11434
11433
|
|
|
11435
11434
|
if (href && href.charAt(0) === '#') {
|
|
11436
11435
|
var elementId = href.slice(1);
|
|
@@ -11444,6 +11443,23 @@ var ExternalLink = function ExternalLink(props) {
|
|
|
11444
11443
|
);
|
|
11445
11444
|
}
|
|
11446
11445
|
|
|
11446
|
+
if (href.includes('@') && !href.includes('mailto:') && href.length >= 5 && href.includes('.')) {
|
|
11447
|
+
href = 'mailto:' + href;
|
|
11448
|
+
}
|
|
11449
|
+
console.log('href: ', href);
|
|
11450
|
+
var isExernalUrl = checkUrlIsExternal(href);
|
|
11451
|
+
var checkNoFollow = function checkNoFollow(url, nofollow) {
|
|
11452
|
+
if (url && !isExernalUrl || url && checkSisterSite.checkSisterSite(url)) {
|
|
11453
|
+
//if not external url, nofollow is disabled
|
|
11454
|
+
return '';
|
|
11455
|
+
} else if (url && (nofollow || nofollow == undefined)) {
|
|
11456
|
+
//if not external url and nofollow is enabled, nofollow
|
|
11457
|
+
return 'nofollow';
|
|
11458
|
+
} else {
|
|
11459
|
+
//if not external url and nofollow is disabled, no nofollow
|
|
11460
|
+
return '';
|
|
11461
|
+
}
|
|
11462
|
+
};
|
|
11447
11463
|
var linkRel = (href && checkNoFollow(href, nofollow)) + ' ' + (href && blank && !checkSisterSite.checkSisterSite(href) ? 'noreferrer noopener' : '');
|
|
11448
11464
|
return href ? linkRel.trim().length > 0 ? React__default["default"].createElement(
|
|
11449
11465
|
'a',
|
package/dist/cjs/index.js
CHANGED
|
@@ -91,7 +91,7 @@ var VerticalHero = require('./VerticalHero.js');
|
|
|
91
91
|
var YahooHero = require('./YahooHero.js');
|
|
92
92
|
var GridHero = require('./GridHero.js');
|
|
93
93
|
var ConferenceArticleCard = require('./ConferenceArticleCard.js');
|
|
94
|
-
var getSerializers = require('./index-
|
|
94
|
+
var getSerializers = require('./index-363da820.js');
|
|
95
95
|
var Beam = require('./Beam.js');
|
|
96
96
|
var Segment = require('./Segment.js');
|
|
97
97
|
var KMTracker = require('./KMTracker.js');
|
|
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from './slicedToArray-72ed566b.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-2f4448b8.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-e0397252.js';
|
|
7
7
|
import ArticleSeriesListing from './ArticleSeriesListing.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './core.get-iterator-method-95db387d.js';
|
|
@@ -2,7 +2,7 @@ import { _ as _extends } from './extends-2f4448b8.js';
|
|
|
2
2
|
import { _ as _slicedToArray } from './slicedToArray-72ed566b.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-e0397252.js';
|
|
6
6
|
import { m as momentTimezone } from './index-887c1f5e.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-e0397252.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './core.get-iterator-method-95db387d.js';
|
|
9
9
|
import './YoutubeGroup.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-e0397252.js';
|
|
7
7
|
import { PixelTrackingLandingPages } from './PixelTracking.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './core.get-iterator-method-95db387d.js';
|
|
@@ -5,7 +5,7 @@ import urlFor from './urlFor.js';
|
|
|
5
5
|
import { m as moment } from './moment-48faeb9c.js';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
7
7
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
8
|
-
import { g as getSerializers } from './index-
|
|
8
|
+
import { g as getSerializers } from './index-e0397252.js';
|
|
9
9
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
10
10
|
import './core.get-iterator-method-95db387d.js';
|
|
11
11
|
import './web.dom.iterable-3fffc027.js';
|
|
@@ -10,7 +10,7 @@ import Link from 'next/link';
|
|
|
10
10
|
import MasterDeck from './MasterDeck.js';
|
|
11
11
|
import MediaSeriesCard from './MediaSeriesCard.js';
|
|
12
12
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
13
|
-
import { g as getSerializers } from './index-
|
|
13
|
+
import { g as getSerializers } from './index-e0397252.js';
|
|
14
14
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
15
15
|
import './core.get-iterator-method-95db387d.js';
|
|
16
16
|
import './web.dom.iterable-3fffc027.js';
|
|
@@ -10,7 +10,7 @@ import Link from 'next/link';
|
|
|
10
10
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
11
11
|
import MasterDeck from './MasterDeckPaginated.js';
|
|
12
12
|
import MediaSeriesCard from './MediaSeriesCard.js';
|
|
13
|
-
import { g as getSerializers } from './index-
|
|
13
|
+
import { g as getSerializers } from './index-e0397252.js';
|
|
14
14
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
15
15
|
import './core.get-iterator-method-95db387d.js';
|
|
16
16
|
import './web.dom.iterable-3fffc027.js';
|
|
@@ -10,7 +10,7 @@ import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
|
10
10
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
11
11
|
import Feature from './Feature.js';
|
|
12
12
|
import urlFor from './urlFor.js';
|
|
13
|
-
import { g as getSerializers } from './index-
|
|
13
|
+
import { g as getSerializers } from './index-e0397252.js';
|
|
14
14
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
15
15
|
import { c as checkSisterSite } from './checkSisterSite-a7218fda.js';
|
|
16
16
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
@@ -10,7 +10,7 @@ import QueueDeckExpanded from './QueueDeckExpandedPaginated.js';
|
|
|
10
10
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
11
11
|
import Feature from './Feature.js';
|
|
12
12
|
import urlFor from './urlFor.js';
|
|
13
|
-
import { g as getSerializers } from './index-
|
|
13
|
+
import { g as getSerializers } from './index-e0397252.js';
|
|
14
14
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
15
15
|
import { c as checkSisterSite } from './checkSisterSite-a7218fda.js';
|
|
16
16
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
@@ -6,7 +6,7 @@ import Link from 'next/link';
|
|
|
6
6
|
import MasterDeck from './MasterDeck.js';
|
|
7
7
|
import MediaSeriesCard from './MediaSeriesCard.js';
|
|
8
8
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
9
|
-
import { g as getSerializers } from './index-
|
|
9
|
+
import { g as getSerializers } from './index-e0397252.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './core.get-iterator-method-95db387d.js';
|
|
12
12
|
import './web.dom.iterable-3fffc027.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-e0397252.js';
|
|
9
9
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
10
10
|
import './core.get-iterator-method-95db387d.js';
|
|
11
11
|
import './web.dom.iterable-3fffc027.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-e0397252.js';
|
|
9
9
|
import VideoSeriesListing from './VideoSeriesListing.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './core.get-iterator-method-95db387d.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-e0397252.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
20
|
import { S as SeriesSlider } from './SeriesSlider-5757414b.js';
|
|
21
21
|
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-b62a177c.js';
|
|
@@ -11205,7 +11205,8 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
11205
11205
|
Promocode = _props$node.Promocode,
|
|
11206
11206
|
_props$node$needSegme = _props$node.needSegmentSupport,
|
|
11207
11207
|
needSegmentSupport = _props$node$needSegme === undefined ? false : _props$node$needSegme,
|
|
11208
|
-
frameHeight = _props$node.frameHeight
|
|
11208
|
+
frameHeight = _props$node.frameHeight,
|
|
11209
|
+
tfaParams = _props$node.tfaParams;
|
|
11209
11210
|
|
|
11210
11211
|
var router = useRouter();
|
|
11211
11212
|
|
|
@@ -11227,16 +11228,27 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
11227
11228
|
useEffect(function () {
|
|
11228
11229
|
var tfa_2 = router.query.tfa_2;
|
|
11229
11230
|
|
|
11231
|
+
var pattern = /\?.+=.*/g;
|
|
11230
11232
|
if (FormID) {
|
|
11231
11233
|
var src = 'https://' + enterpriseDomainName + '.tfaforms.net/' + FormID;
|
|
11232
11234
|
if (anonymousID && needSegmentSupport) {
|
|
11233
11235
|
src = src + '?tfa_1=' + anonymousID;
|
|
11234
11236
|
}
|
|
11235
11237
|
if (tfa_2 || Promocode) {
|
|
11236
|
-
var pattern = /\?.+=.*/g;
|
|
11237
11238
|
var hasQueryString = pattern.test(src);
|
|
11238
11239
|
src = hasQueryString ? src + '&tfa_2=' + (tfa_2 ? tfa_2 : Promocode) : src + '?tfa_2=' + (tfa_2 ? tfa_2 : Promocode);
|
|
11239
11240
|
}
|
|
11241
|
+
if (tfaParams && tfaParams.length > 0) {
|
|
11242
|
+
tfaParams.forEach(function (param) {
|
|
11243
|
+
if (param.includes(';')) {
|
|
11244
|
+
var paramArr = param.split(';');
|
|
11245
|
+
var paramName = paramArr[0];
|
|
11246
|
+
var paramVal = paramArr[1];
|
|
11247
|
+
var _hasQueryString = pattern.test(src);
|
|
11248
|
+
src = '' + src + (_hasQueryString ? '&' : '?') + paramName + '=' + paramVal;
|
|
11249
|
+
}
|
|
11250
|
+
});
|
|
11251
|
+
}
|
|
11240
11252
|
setIframeSrc(encodeURI(src));
|
|
11241
11253
|
}
|
|
11242
11254
|
}, [anonymousID]);
|
|
@@ -11365,12 +11377,12 @@ var ScrollToElement = function ScrollToElement(elementId) {
|
|
|
11365
11377
|
var ExternalLink = function ExternalLink(props) {
|
|
11366
11378
|
var children = props.children,
|
|
11367
11379
|
_props$mark = props.mark,
|
|
11368
|
-
href = _props$mark.href,
|
|
11369
11380
|
blank = _props$mark.blank,
|
|
11370
11381
|
color = _props$mark.color,
|
|
11371
11382
|
nofollow = _props$mark.nofollow,
|
|
11372
11383
|
articleId = props.articleId,
|
|
11373
11384
|
type = props.type;
|
|
11385
|
+
var href = props.mark.href;
|
|
11374
11386
|
|
|
11375
11387
|
|
|
11376
11388
|
if (type && type === 'emailAddress') {
|
|
@@ -11398,19 +11410,6 @@ var ExternalLink = function ExternalLink(props) {
|
|
|
11398
11410
|
!ogUrl && setOgUrl(String(window.location.host).replace('www.', ''));
|
|
11399
11411
|
}
|
|
11400
11412
|
}, []);
|
|
11401
|
-
var isExernalUrl = checkUrlIsExternal(href);
|
|
11402
|
-
var checkNoFollow = function checkNoFollow(url, nofollow) {
|
|
11403
|
-
if (url && !isExernalUrl || url && checkSisterSite(url)) {
|
|
11404
|
-
//if not external url, nofollow is disabled
|
|
11405
|
-
return '';
|
|
11406
|
-
} else if (url && (nofollow || nofollow == undefined)) {
|
|
11407
|
-
//if not external url and nofollow is enabled, nofollow
|
|
11408
|
-
return 'nofollow';
|
|
11409
|
-
} else {
|
|
11410
|
-
//if not external url and nofollow is disabled, no nofollow
|
|
11411
|
-
return '';
|
|
11412
|
-
}
|
|
11413
|
-
};
|
|
11414
11413
|
|
|
11415
11414
|
if (href && href.charAt(0) === '#') {
|
|
11416
11415
|
var elementId = href.slice(1);
|
|
@@ -11424,6 +11423,23 @@ var ExternalLink = function ExternalLink(props) {
|
|
|
11424
11423
|
);
|
|
11425
11424
|
}
|
|
11426
11425
|
|
|
11426
|
+
if (href.includes('@') && !href.includes('mailto:') && href.length >= 5 && href.includes('.')) {
|
|
11427
|
+
href = 'mailto:' + href;
|
|
11428
|
+
}
|
|
11429
|
+
console.log('href: ', href);
|
|
11430
|
+
var isExernalUrl = checkUrlIsExternal(href);
|
|
11431
|
+
var checkNoFollow = function checkNoFollow(url, nofollow) {
|
|
11432
|
+
if (url && !isExernalUrl || url && checkSisterSite(url)) {
|
|
11433
|
+
//if not external url, nofollow is disabled
|
|
11434
|
+
return '';
|
|
11435
|
+
} else if (url && (nofollow || nofollow == undefined)) {
|
|
11436
|
+
//if not external url and nofollow is enabled, nofollow
|
|
11437
|
+
return 'nofollow';
|
|
11438
|
+
} else {
|
|
11439
|
+
//if not external url and nofollow is disabled, no nofollow
|
|
11440
|
+
return '';
|
|
11441
|
+
}
|
|
11442
|
+
};
|
|
11427
11443
|
var linkRel = (href && checkNoFollow(href, nofollow)) + ' ' + (href && blank && !checkSisterSite(href) ? 'noreferrer noopener' : '');
|
|
11428
11444
|
return href ? linkRel.trim().length > 0 ? React__default.createElement(
|
|
11429
11445
|
'a',
|
package/dist/esm/index.js
CHANGED
|
@@ -88,7 +88,7 @@ export { default as VerticalHero } from './VerticalHero.js';
|
|
|
88
88
|
export { default as YahooHero } from './YahooHero.js';
|
|
89
89
|
export { default as GridHero } from './GridHero.js';
|
|
90
90
|
export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
|
|
91
|
-
export { g as getSerializers } from './index-
|
|
91
|
+
export { g as getSerializers } from './index-e0397252.js';
|
|
92
92
|
export { default as Beam } from './Beam.js';
|
|
93
93
|
export { default as Segment } from './Segment.js';
|
|
94
94
|
export { default as KMTracker } from './KMTracker.js';
|