@mjhls/mjh-framework 1.0.626-iOS-chrome-fix-v2 → 1.0.626
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/AD.js +1 -1
- package/dist/cjs/AD300x250.js +3 -3
- package/dist/cjs/AD300x250x600.js +3 -3
- package/dist/cjs/AD728x90.js +4 -4
- package/dist/cjs/ADFloatingFooter.js +2 -2
- package/dist/cjs/ADGutter.js +2 -2
- package/dist/cjs/ADSkyscraper.js +2 -2
- package/dist/cjs/ADSponsoredResources.js +2 -2
- package/dist/cjs/ADWebcast.js +2 -2
- package/dist/cjs/ADWelcome.js +2 -2
- package/dist/cjs/AdSlot.js +2 -2
- package/dist/cjs/AdSlotsProvider.js +1 -1
- package/dist/cjs/ArticleQueue.js +12 -12
- package/dist/cjs/ArticleSeriesListing.js +5 -5
- package/dist/cjs/Auth.js +300 -249
- package/dist/cjs/{BlockContent-c2168db0.js → BlockContent-f942392e.js} +1 -1
- package/dist/cjs/CMEDeck.js +5 -5
- package/dist/cjs/Column3.js +4 -4
- package/dist/cjs/ConferenceArticleCard.js +2 -2
- package/dist/cjs/DeckContent.js +8 -8
- package/dist/cjs/DeckQueue.js +7 -7
- package/dist/cjs/{Dfp-fcdeabc4.js → Dfp-fbe32b96.js} +1 -1
- package/dist/cjs/EventsDeck.js +5 -5
- package/dist/cjs/ExternalResources.js +8 -8
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +2 -2
- package/dist/cjs/GridContent.js +12 -12
- package/dist/cjs/GridHero.js +2 -2
- package/dist/cjs/GroupDeck.js +1 -1
- package/dist/cjs/HamMagazine.js +4 -4
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueContentDeck.js +2 -2
- package/dist/cjs/IssueDeck.js +2 -2
- package/dist/cjs/IssueLanding.js +8 -8
- package/dist/cjs/LeftNav.js +2 -2
- package/dist/cjs/MasterDeck.js +10 -10
- package/dist/cjs/NavMagazine.js +4 -4
- package/dist/cjs/NavNative.js +2 -2
- package/dist/cjs/OncliveHero.js +2 -2
- package/dist/cjs/OncliveLargeHero.js +2 -2
- package/dist/cjs/PartnerDetailListing.js +15 -1211
- package/dist/cjs/PublicationDeck.js +2 -2
- package/dist/cjs/QueueDeckExpanded.js +10 -10
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +2 -2
- package/dist/cjs/{SocialSearchComponent-7febe148.js → SocialSearchComponent-5cbde5e0.js} +3 -5
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +3 -3
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +2 -2
- package/dist/cjs/VerticalHero.js +2 -2
- package/dist/cjs/VideoSeriesListing.js +5 -5
- package/dist/cjs/View.js +14 -14
- package/dist/cjs/YahooHero.js +2 -2
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/getSerializers.js +7 -7
- package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
- package/dist/cjs/{index-2cc1225c.js → index-77531536.js} +10 -10
- package/dist/cjs/{index-39beccb3.js → index-b5eb3ff8.js} +18 -18
- package/dist/cjs/{index-fa3cec70.js → index-f7ee1612.js} +4 -6
- package/dist/cjs/{index.es-9110add6.js → index.es-ab3f2690.js} +3 -1
- package/dist/cjs/index.js +14 -13
- package/dist/cjs/{inherits-227da8e1.js → inherits-dca612fa.js} +4 -4
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-a4cb15bb.js → main-bc4db521.js} +66 -36
- package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
- package/dist/cjs/urlFor.js +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +3 -3
- package/dist/esm/AD300x250x600.js +3 -3
- package/dist/esm/AD728x90.js +4 -4
- package/dist/esm/ADFloatingFooter.js +2 -2
- package/dist/esm/ADGutter.js +2 -2
- package/dist/esm/ADSkyscraper.js +2 -2
- package/dist/esm/ADSponsoredResources.js +2 -2
- package/dist/esm/ADWebcast.js +2 -2
- package/dist/esm/ADWelcome.js +2 -2
- package/dist/esm/AdSlot.js +2 -2
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/ArticleQueue.js +11 -11
- package/dist/esm/ArticleSeriesListing.js +4 -4
- package/dist/esm/Auth.js +300 -249
- package/dist/esm/{BlockContent-c409aca5.js → BlockContent-a614acdf.js} +1 -1
- package/dist/esm/CMEDeck.js +5 -5
- package/dist/esm/Column3.js +4 -4
- package/dist/esm/ConferenceArticleCard.js +2 -2
- package/dist/esm/DeckContent.js +7 -7
- package/dist/esm/DeckQueue.js +6 -6
- package/dist/esm/{Dfp-380bef62.js → Dfp-40c70a33.js} +1 -1
- package/dist/esm/EventsDeck.js +5 -5
- package/dist/esm/ExternalResources.js +7 -7
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +2 -2
- package/dist/esm/GridContent.js +11 -11
- package/dist/esm/GridHero.js +2 -2
- package/dist/esm/GroupDeck.js +1 -1
- package/dist/esm/HamMagazine.js +4 -4
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalHero.js +2 -2
- package/dist/esm/IssueContentDeck.js +2 -2
- package/dist/esm/IssueDeck.js +2 -2
- package/dist/esm/IssueLanding.js +8 -8
- package/dist/esm/LeftNav.js +2 -2
- package/dist/esm/MasterDeck.js +9 -9
- package/dist/esm/NavMagazine.js +4 -4
- package/dist/esm/NavNative.js +2 -2
- package/dist/esm/OncliveHero.js +2 -2
- package/dist/esm/OncliveLargeHero.js +2 -2
- package/dist/esm/PartnerDetailListing.js +14 -1210
- package/dist/esm/PublicationDeck.js +2 -2
- package/dist/esm/QueueDeckExpanded.js +10 -10
- package/dist/esm/RecentNews.js +2 -2
- package/dist/esm/RelatedContent.js +2 -2
- package/dist/esm/{SocialSearchComponent-74c5add5.js → SocialSearchComponent-00385695.js} +3 -5
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +3 -3
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +2 -2
- package/dist/esm/VerticalHero.js +2 -2
- package/dist/esm/VideoSeriesListing.js +4 -4
- package/dist/esm/View.js +13 -13
- package/dist/esm/YahooHero.js +2 -2
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/getSerializers.js +6 -6
- package/dist/esm/{index-3849e3fe.js → index-51a80699.js} +18 -18
- package/dist/esm/{index-1df8b68e.js → index-8a3465af.js} +9 -9
- package/dist/esm/{index-3f4dd6f2.js → index-93ec3c59.js} +4 -6
- package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
- package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
- package/dist/esm/index.js +13 -12
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-5d1e4bd3.js → main-7255814e.js} +65 -34
- package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/package.json +3 -3
- /package/dist/cjs/{ADInfeed-cbdb3a85.js → ADInfeed-ce11d87d.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-abcaf930.js → ADlgInfeed-7fc40444.js} +0 -0
- /package/dist/esm/{ADInfeed-cab1e5a5.js → ADInfeed-5fb6c05e.js} +0 -0
- /package/dist/esm/{ADlgInfeed-b65e5399.js → ADlgInfeed-5eab5705.js} +0 -0
|
@@ -5,9 +5,9 @@ import Row from 'react-bootstrap/Row';
|
|
|
5
5
|
import Col from 'react-bootstrap/Col';
|
|
6
6
|
import Card from 'react-bootstrap/Card';
|
|
7
7
|
import 'react-dom';
|
|
8
|
-
import { i as imageUrlBuilder } from './index-
|
|
8
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
9
9
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
10
|
-
import { l as lodash } from './lodash-
|
|
10
|
+
import { l as lodash } from './lodash-17fdfebb.js';
|
|
11
11
|
import Button from 'react-bootstrap/Button';
|
|
12
12
|
|
|
13
13
|
var PublicationDeck = function PublicationDeck(props) {
|
|
@@ -8,19 +8,19 @@ import './_object-pie-33c40e79.js';
|
|
|
8
8
|
import { _ as _extends } from './extends-229166d5.js';
|
|
9
9
|
import './web.dom.iterable-5c830d3d.js';
|
|
10
10
|
import React__default, { useEffect, useState, useRef } from 'react';
|
|
11
|
-
import { l as lib_3 } from './index-
|
|
11
|
+
import { l as lib_3 } from './index-93ec3c59.js';
|
|
12
12
|
import 'prop-types';
|
|
13
13
|
import 'react-bootstrap/Card';
|
|
14
|
-
import { m as moment } from './moment-
|
|
14
|
+
import { m as moment } from './moment-12415288.js';
|
|
15
15
|
import { useRouter } from 'next/router';
|
|
16
16
|
import './isSymbol-47f5ff3b.js';
|
|
17
17
|
import './debounce-a0d9abca.js';
|
|
18
|
-
import { I as InfiniteScroll } from './index.es-
|
|
18
|
+
import { I as InfiniteScroll } from './index.es-938a3a58.js';
|
|
19
19
|
import 'react-dom';
|
|
20
20
|
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
21
|
-
import { i as imageUrlBuilder } from './index-
|
|
21
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
22
22
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
23
|
-
import { m as
|
|
23
|
+
import { m as main_39 } from './main-7255814e.js';
|
|
24
24
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
25
25
|
import './stringify-feadff37.js';
|
|
26
26
|
import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
|
|
@@ -28,9 +28,9 @@ import './asyncToGenerator-d25aac66.js';
|
|
|
28
28
|
import './_set-species-75f77d40.js';
|
|
29
29
|
import './beam-c40d77ae.js';
|
|
30
30
|
import './AdSlot.js';
|
|
31
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
32
|
-
import { l as lodash } from './lodash-
|
|
33
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
31
|
+
import { A as ADInfeed } from './ADInfeed-5fb6c05e.js';
|
|
32
|
+
import { l as lodash } from './lodash-17fdfebb.js';
|
|
33
|
+
import { A as ADlgInfeed } from './ADlgInfeed-5eab5705.js';
|
|
34
34
|
import { A as AuthorComponent } from './AuthorComponent-4ddf3533.js';
|
|
35
35
|
import { Container, Media } from 'react-bootstrap';
|
|
36
36
|
|
|
@@ -504,7 +504,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
504
504
|
} else if (article._type === 'brandInsightAd' && article.adUnit) {
|
|
505
505
|
return React__default.createElement(ADInfeed, { index: index, infeedAd: article });
|
|
506
506
|
}
|
|
507
|
-
if (
|
|
507
|
+
if (main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0) {
|
|
508
508
|
return renderMobileAd(index, numberOfItemsBeforeAd, rightItems);
|
|
509
509
|
}
|
|
510
510
|
|
|
@@ -898,7 +898,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
898
898
|
} else if (article._type === 'brandInsightAd' && article.adUnit) {
|
|
899
899
|
return React__default.createElement(ADInfeed, { index: index, infeedAd: article });
|
|
900
900
|
}
|
|
901
|
-
if (
|
|
901
|
+
if (main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0) {
|
|
902
902
|
return renderMobileAd(index, numberOfItemsBeforeAd, rightItems);
|
|
903
903
|
}
|
|
904
904
|
|
package/dist/esm/RecentNews.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import './moment-
|
|
4
|
-
import { i as imageUrlBuilder } from './index-
|
|
3
|
+
import './moment-12415288.js';
|
|
4
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
5
5
|
import './iconBase-602d52fe.js';
|
|
6
6
|
import { a as FaLongArrowAltRight } from './index.esm-9a4c8813.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { m as moment } from './moment-
|
|
4
|
-
import { i as imageUrlBuilder } from './index-
|
|
3
|
+
import { m as moment } from './moment-12415288.js';
|
|
4
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
5
5
|
import 'react-bootstrap/Media';
|
|
6
6
|
|
|
7
7
|
/*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { a as main_40 } from './main-7255814e.js';
|
|
3
3
|
import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
|
|
4
4
|
import { I as IconContext } from './iconBase-602d52fe.js';
|
|
5
5
|
import Button from 'react-bootstrap/Button';
|
|
@@ -14,9 +14,7 @@ var SocialSearchComponent = function SocialSearchComponent(_ref) {
|
|
|
14
14
|
website = _ref.website,
|
|
15
15
|
navID = _ref.navID;
|
|
16
16
|
|
|
17
|
-
console.log('isIOS:::::::::::::', main_30);
|
|
18
17
|
// Search Term
|
|
19
|
-
|
|
20
18
|
var _useState = useState(''),
|
|
21
19
|
_useState2 = _slicedToArray(_useState, 2),
|
|
22
20
|
searchKey = _useState2[0],
|
|
@@ -69,14 +67,14 @@ var SocialSearchComponent = function SocialSearchComponent(_ref) {
|
|
|
69
67
|
var searchBtn = document.getElementsByClassName(selector)[0];
|
|
70
68
|
if (searchBtn && searchBtn.classList && searchBtn.classList.contains(addOn)) {
|
|
71
69
|
// Set overflow fix for iPhones safari browsers
|
|
72
|
-
if (
|
|
70
|
+
if (main_40) {
|
|
73
71
|
var mainNav = document.querySelector('#navbar-ham');
|
|
74
72
|
if (mainNav && mainNav.style) mainNav.style.overflow = 'auto';
|
|
75
73
|
}
|
|
76
74
|
searchBtn.classList.remove(addOn);
|
|
77
75
|
} else if (searchBtn && searchBtn.classList) {
|
|
78
76
|
// Set overflow fix for iPhones safari browsers
|
|
79
|
-
if (
|
|
77
|
+
if (main_40) {
|
|
80
78
|
var _mainNav = document.querySelector('#navbar-ham');
|
|
81
79
|
if (_mainNav && _mainNav.style) _mainNav.style.overflow = 'visible';
|
|
82
80
|
}
|
package/dist/esm/TaxonomyCard.js
CHANGED
|
@@ -9,9 +9,9 @@ import Row from 'react-bootstrap/Row';
|
|
|
9
9
|
import Col from 'react-bootstrap/Col';
|
|
10
10
|
import Card from 'react-bootstrap/Card';
|
|
11
11
|
import 'react-dom';
|
|
12
|
-
import { i as imageUrlBuilder } from './index-
|
|
12
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
13
13
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
14
|
-
import { B as BlockContent } from './BlockContent-
|
|
14
|
+
import { B as BlockContent } from './BlockContent-a614acdf.js';
|
|
15
15
|
import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
|
|
16
16
|
|
|
17
17
|
var TaxonomyCard = function TaxonomyCard(props) {
|
|
@@ -6,7 +6,7 @@ import './_iter-detect-70af34ea.js';
|
|
|
6
6
|
import './define-property-99e9c0ad.js';
|
|
7
7
|
import './web.dom.iterable-5c830d3d.js';
|
|
8
8
|
import React__default, { useState, useEffect } from 'react';
|
|
9
|
-
import './index-
|
|
9
|
+
import './index-93ec3c59.js';
|
|
10
10
|
import 'prop-types';
|
|
11
11
|
import Container from 'react-bootstrap/Container';
|
|
12
12
|
import 'react-bootstrap/Row';
|
|
@@ -14,7 +14,7 @@ import 'react-bootstrap/Col';
|
|
|
14
14
|
import { useRouter } from 'next/router';
|
|
15
15
|
import './isSymbol-47f5ff3b.js';
|
|
16
16
|
import './debounce-a0d9abca.js';
|
|
17
|
-
import './main-
|
|
17
|
+
import './main-7255814e.js';
|
|
18
18
|
import './stringify-feadff37.js';
|
|
19
19
|
import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
|
|
20
20
|
import './asyncToGenerator-d25aac66.js';
|
|
@@ -50,7 +50,7 @@ import './index.esm-73e847d2.js';
|
|
|
50
50
|
import './SocialIcons.js';
|
|
51
51
|
import 'react-bootstrap/Form';
|
|
52
52
|
import 'react-bootstrap/FormControl';
|
|
53
|
-
import './SocialSearchComponent-
|
|
53
|
+
import './SocialSearchComponent-00385695.js';
|
|
54
54
|
import MagazineNav from './NavMagazine.js';
|
|
55
55
|
import { NavNative } from './NavNative.js';
|
|
56
56
|
import './Search.js';
|
|
@@ -2,7 +2,7 @@ import './_commonjsHelpers-0c4b6f40.js';
|
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import 'prop-types';
|
|
4
4
|
import 'react-dom';
|
|
5
|
-
import { i as imageUrlBuilder } from './index-
|
|
5
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
6
6
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
7
7
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
8
8
|
import Media from 'react-bootstrap/Media';
|
package/dist/esm/Ustream.js
CHANGED
|
@@ -3,7 +3,7 @@ import './_to-object-b01e8612.js';
|
|
|
3
3
|
import './core.get-iterator-method-66cf57ee.js';
|
|
4
4
|
import './web.dom.iterable-5c830d3d.js';
|
|
5
5
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
6
|
-
import { m as
|
|
6
|
+
import { m as main_39 } from './main-7255814e.js';
|
|
7
7
|
import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
|
|
8
8
|
import './iconBase-602d52fe.js';
|
|
9
9
|
import { c as IoIosOpen } from './index.esm-85cb09e6.js';
|
|
@@ -64,7 +64,7 @@ var Ustream = function Ustream(_ref) {
|
|
|
64
64
|
} catch (err) {}
|
|
65
65
|
}, []);
|
|
66
66
|
//return nothing if mobile
|
|
67
|
-
if (
|
|
67
|
+
if (main_39) {
|
|
68
68
|
return null;
|
|
69
69
|
}
|
|
70
70
|
return React__default.createElement(
|
package/dist/esm/VerticalHero.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import './moment-
|
|
4
|
-
import { i as imageUrlBuilder } from './index-
|
|
3
|
+
import './moment-12415288.js';
|
|
4
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
5
5
|
|
|
6
6
|
var VerticalHero = function VerticalHero(props) {
|
|
7
7
|
var client = props.client;
|
|
@@ -11,17 +11,17 @@ import './web.dom.iterable-5c830d3d.js';
|
|
|
11
11
|
import './typeof-f11fd438.js';
|
|
12
12
|
import './_is-array-ced12663.js';
|
|
13
13
|
import React__default from 'react';
|
|
14
|
-
import { l as lib_3 } from './index-
|
|
14
|
+
import { l as lib_3 } from './index-93ec3c59.js';
|
|
15
15
|
import 'prop-types';
|
|
16
16
|
import Container from 'react-bootstrap/Container';
|
|
17
|
-
import './moment-
|
|
17
|
+
import './moment-12415288.js';
|
|
18
18
|
import { withRouter } from 'next/router';
|
|
19
19
|
import './isSymbol-47f5ff3b.js';
|
|
20
20
|
import { d as debounce_1 } from './debounce-a0d9abca.js';
|
|
21
|
-
import { I as InfiniteScroll } from './index.es-
|
|
21
|
+
import { I as InfiniteScroll } from './index.es-938a3a58.js';
|
|
22
22
|
import 'react-dom';
|
|
23
23
|
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
24
|
-
import './index-
|
|
24
|
+
import './index-51a80699.js';
|
|
25
25
|
import './index-5f9f807a.js';
|
|
26
26
|
import './slicedToArray-a58d7edf.js';
|
|
27
27
|
import './smoothscroll-4b699764.js';
|
package/dist/esm/View.js
CHANGED
|
@@ -13,19 +13,19 @@ import './web.dom.iterable-5c830d3d.js';
|
|
|
13
13
|
import { _ as _typeof } from './typeof-f11fd438.js';
|
|
14
14
|
import './_is-array-ced12663.js';
|
|
15
15
|
import React__default, { useState, useEffect } from 'react';
|
|
16
|
-
import { l as lib_3 } from './index-
|
|
16
|
+
import { l as lib_3 } from './index-93ec3c59.js';
|
|
17
17
|
import 'prop-types';
|
|
18
18
|
import 'react-bootstrap/Row';
|
|
19
19
|
import 'react-bootstrap/Col';
|
|
20
|
-
import { m as moment } from './moment-
|
|
20
|
+
import { m as moment } from './moment-12415288.js';
|
|
21
21
|
import { useRouter } from 'next/router';
|
|
22
22
|
import './isSymbol-47f5ff3b.js';
|
|
23
23
|
import './debounce-a0d9abca.js';
|
|
24
|
-
import { I as InfiniteScroll } from './index.es-
|
|
24
|
+
import { I as InfiniteScroll } from './index.es-938a3a58.js';
|
|
25
25
|
import 'react-dom';
|
|
26
|
-
import './index-
|
|
26
|
+
import './index-51a80699.js';
|
|
27
27
|
import './index-5f9f807a.js';
|
|
28
|
-
import { m as
|
|
28
|
+
import { m as main_39 } from './main-7255814e.js';
|
|
29
29
|
import './entities-7cc3bf45.js';
|
|
30
30
|
import { _ as _JSON$stringify } from './stringify-feadff37.js';
|
|
31
31
|
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
|
|
@@ -33,12 +33,12 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-d25
|
|
|
33
33
|
import './_set-species-75f77d40.js';
|
|
34
34
|
import './beam-c40d77ae.js';
|
|
35
35
|
import DFPAdSlot from './AdSlot.js';
|
|
36
|
-
import { B as BlockContent } from './BlockContent-
|
|
36
|
+
import { B as BlockContent } from './BlockContent-a614acdf.js';
|
|
37
37
|
import './smoothscroll-4b699764.js';
|
|
38
38
|
import './GroupDeck.js';
|
|
39
39
|
import 'react-bootstrap';
|
|
40
40
|
import Button from 'react-bootstrap/Button';
|
|
41
|
-
import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-
|
|
41
|
+
import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-8a3465af.js';
|
|
42
42
|
import './util-7700fc59.js';
|
|
43
43
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
44
44
|
import 'react-bootstrap/Pagination';
|
|
@@ -132,9 +132,9 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
132
132
|
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
133
133
|
thumbnailUrl && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
134
134
|
!thumbnailUrl && React__default.createElement('p', {
|
|
135
|
-
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' :
|
|
135
|
+
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_39 ? 'left' : 'right', marginTop: '.25rem' },
|
|
136
136
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
137
|
-
|
|
137
|
+
main_39 && !thumbnailUrl && React__default.createElement(
|
|
138
138
|
'style',
|
|
139
139
|
{ jsx: 'true' },
|
|
140
140
|
'\n a.doc-group {\n display: block !important;\n padding: 0!important;\n }\n '
|
|
@@ -880,7 +880,7 @@ var Article = function Article(props) {
|
|
|
880
880
|
React__default.createElement(
|
|
881
881
|
'div',
|
|
882
882
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
883
|
-
|
|
883
|
+
main_39 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
884
884
|
if (index === 0) {
|
|
885
885
|
return React__default.createElement(
|
|
886
886
|
'div',
|
|
@@ -947,7 +947,7 @@ var Article = function Article(props) {
|
|
|
947
947
|
renderIsiContent(props.article)
|
|
948
948
|
)
|
|
949
949
|
),
|
|
950
|
-
|
|
950
|
+
main_39 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
951
951
|
if (index > 0) {
|
|
952
952
|
return React__default.createElement(
|
|
953
953
|
'div',
|
|
@@ -1020,7 +1020,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1020
1020
|
});
|
|
1021
1021
|
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
1022
1022
|
|
|
1023
|
-
if (!
|
|
1023
|
+
if (!main_39) {
|
|
1024
1024
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1025
1025
|
if (window.googletag && googletag.pubadsReady) {
|
|
1026
1026
|
var slots = googletag.pubads().getSlots();
|
|
@@ -1038,7 +1038,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1038
1038
|
});
|
|
1039
1039
|
}
|
|
1040
1040
|
//Refresh leaderboard ad on mobile
|
|
1041
|
-
if (
|
|
1041
|
+
if (main_39) {
|
|
1042
1042
|
var leaderboardSlotId = '';
|
|
1043
1043
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1044
1044
|
if (window.googletag && googletag.pubadsReady) {
|
package/dist/esm/YahooHero.js
CHANGED
|
@@ -4,9 +4,9 @@ import './core.get-iterator-method-66cf57ee.js';
|
|
|
4
4
|
import './web.dom.iterable-5c830d3d.js';
|
|
5
5
|
import React__default from 'react';
|
|
6
6
|
import 'prop-types';
|
|
7
|
-
import { m as moment } from './moment-
|
|
7
|
+
import { m as moment } from './moment-12415288.js';
|
|
8
8
|
import 'react-dom';
|
|
9
|
-
import { i as imageUrlBuilder } from './index-
|
|
9
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
10
10
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
11
11
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
12
12
|
import './slicedToArray-a58d7edf.js';
|
package/dist/esm/YoutubeGroup.js
CHANGED
|
@@ -9,7 +9,7 @@ import './_is-array-ced12663.js';
|
|
|
9
9
|
import React__default, { useRef, useState, useEffect } from 'react';
|
|
10
10
|
import 'prop-types';
|
|
11
11
|
import 'react-dom';
|
|
12
|
-
import { i as imageUrlBuilder } from './index-
|
|
12
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
13
13
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
14
14
|
import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
|
|
15
15
|
import { s as smoothscroll, g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
@@ -13,18 +13,18 @@ import './web.dom.iterable-5c830d3d.js';
|
|
|
13
13
|
import './typeof-f11fd438.js';
|
|
14
14
|
import './_is-array-ced12663.js';
|
|
15
15
|
import 'react';
|
|
16
|
-
import './index-
|
|
16
|
+
import './index-93ec3c59.js';
|
|
17
17
|
import 'prop-types';
|
|
18
18
|
import 'react-bootstrap/Row';
|
|
19
19
|
import 'react-bootstrap/Col';
|
|
20
|
-
import './moment-
|
|
20
|
+
import './moment-12415288.js';
|
|
21
21
|
import 'next/router';
|
|
22
22
|
import './isSymbol-47f5ff3b.js';
|
|
23
23
|
import './debounce-a0d9abca.js';
|
|
24
24
|
import 'react-dom';
|
|
25
|
-
import './index-
|
|
25
|
+
import './index-51a80699.js';
|
|
26
26
|
import './index-5f9f807a.js';
|
|
27
|
-
import './main-
|
|
27
|
+
import './main-7255814e.js';
|
|
28
28
|
import './entities-7cc3bf45.js';
|
|
29
29
|
import './stringify-feadff37.js';
|
|
30
30
|
import './slicedToArray-a58d7edf.js';
|
|
@@ -32,12 +32,12 @@ import './asyncToGenerator-d25aac66.js';
|
|
|
32
32
|
import './_set-species-75f77d40.js';
|
|
33
33
|
import './beam-c40d77ae.js';
|
|
34
34
|
import './AdSlot.js';
|
|
35
|
-
import './BlockContent-
|
|
35
|
+
import './BlockContent-a614acdf.js';
|
|
36
36
|
import './smoothscroll-4b699764.js';
|
|
37
37
|
import './GroupDeck.js';
|
|
38
38
|
import 'react-bootstrap';
|
|
39
39
|
import 'react-bootstrap/Button';
|
|
40
|
-
export { g as default } from './index-
|
|
40
|
+
export { g as default } from './index-8a3465af.js';
|
|
41
41
|
import './util-7700fc59.js';
|
|
42
42
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
43
43
|
import 'react-bootstrap/Pagination';
|
|
@@ -58,35 +58,35 @@ function parseSource(source) {
|
|
|
58
58
|
if (typeof source === 'string' && isUrl(source)) {
|
|
59
59
|
// Someone passed an existing image url?
|
|
60
60
|
image = {
|
|
61
|
-
asset: { _ref: urlToId(source) }
|
|
61
|
+
asset: { _ref: urlToId(source) },
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
else if (typeof source === 'string') {
|
|
65
65
|
// Just an asset id
|
|
66
66
|
image = {
|
|
67
|
-
asset: { _ref: source }
|
|
67
|
+
asset: { _ref: source },
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
else if (isRef(source)) {
|
|
71
71
|
// We just got passed an asset directly
|
|
72
72
|
image = {
|
|
73
|
-
asset: source
|
|
73
|
+
asset: source,
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
else if (isAsset(source)) {
|
|
77
77
|
// If we were passed an image asset document
|
|
78
78
|
image = {
|
|
79
79
|
asset: {
|
|
80
|
-
_ref: source._id || ''
|
|
81
|
-
}
|
|
80
|
+
_ref: source._id || '',
|
|
81
|
+
},
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
else if (isAssetStub(source)) {
|
|
85
85
|
// If we were passed a partial asset (`url`, but no `_id`)
|
|
86
86
|
image = {
|
|
87
87
|
asset: {
|
|
88
|
-
_ref: urlToId(source.asset.url)
|
|
89
|
-
}
|
|
88
|
+
_ref: urlToId(source.asset.url),
|
|
89
|
+
},
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
else if (typeof source.asset === 'object') {
|
|
@@ -127,7 +127,7 @@ function applyDefaults(image) {
|
|
|
127
127
|
left: 0,
|
|
128
128
|
top: 0,
|
|
129
129
|
bottom: 0,
|
|
130
|
-
right: 0
|
|
130
|
+
right: 0,
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
133
|
if (!result.hotspot) {
|
|
@@ -135,7 +135,7 @@ function applyDefaults(image) {
|
|
|
135
135
|
x: 0.5,
|
|
136
136
|
y: 0.5,
|
|
137
137
|
height: 1.0,
|
|
138
|
-
width: 1.0
|
|
138
|
+
width: 1.0,
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
return result;
|
|
@@ -182,7 +182,7 @@ exports.SPEC_NAME_TO_URL_NAME_MAPPINGS = [
|
|
|
182
182
|
['crop', 'crop'],
|
|
183
183
|
['saturation', 'sat'],
|
|
184
184
|
['auto', 'auto'],
|
|
185
|
-
['dpr', 'dpr']
|
|
185
|
+
['dpr', 'dpr'],
|
|
186
186
|
];
|
|
187
187
|
function urlForImage(options) {
|
|
188
188
|
var spec = __assign({}, (options || {}));
|
|
@@ -201,7 +201,7 @@ function urlForImage(options) {
|
|
|
201
201
|
left: cropLeft,
|
|
202
202
|
top: cropTop,
|
|
203
203
|
width: Math.round(asset.width - image.crop.right * asset.width - cropLeft),
|
|
204
|
-
height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop)
|
|
204
|
+
height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop),
|
|
205
205
|
};
|
|
206
206
|
// Compute hot spot rect in terms of pixel coordinates
|
|
207
207
|
var hotSpotVerticalRadius = (image.hotspot.height * asset.height) / 2;
|
|
@@ -212,7 +212,7 @@ function urlForImage(options) {
|
|
|
212
212
|
left: hotSpotCenterX - hotSpotHorizontalRadius,
|
|
213
213
|
top: hotSpotCenterY - hotSpotVerticalRadius,
|
|
214
214
|
right: hotSpotCenterX + hotSpotHorizontalRadius,
|
|
215
|
-
bottom: hotSpotCenterY + hotSpotVerticalRadius
|
|
215
|
+
bottom: hotSpotCenterY + hotSpotVerticalRadius,
|
|
216
216
|
};
|
|
217
217
|
// If irrelevant, or if we are requested to: don't perform crop/fit based on
|
|
218
218
|
// the crop/hotspot.
|
|
@@ -294,7 +294,7 @@ function fit(source, spec) {
|
|
|
294
294
|
left: Math.round(left),
|
|
295
295
|
top: Math.round(top_2),
|
|
296
296
|
width: Math.round(width),
|
|
297
|
-
height: Math.round(height)
|
|
297
|
+
height: Math.round(height),
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
300
|
else {
|
|
@@ -316,13 +316,13 @@ function fit(source, spec) {
|
|
|
316
316
|
left: Math.max(0, Math.floor(left)),
|
|
317
317
|
top: Math.max(0, Math.floor(top_3)),
|
|
318
318
|
width: Math.round(width),
|
|
319
|
-
height: Math.round(height)
|
|
319
|
+
height: Math.round(height),
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
322
|
return {
|
|
323
323
|
width: imgWidth,
|
|
324
324
|
height: imgHeight,
|
|
325
|
-
rect: cropRect
|
|
325
|
+
rect: cropRect,
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
328
|
|
|
@@ -380,7 +380,7 @@ function urlBuilder(options) {
|
|
|
380
380
|
return new ImageUrlBuilder(null, {
|
|
381
381
|
baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
|
|
382
382
|
projectId: projectId,
|
|
383
|
-
dataset: dataset
|
|
383
|
+
dataset: dataset,
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
386
|
// Or just accept the options as given
|
|
@@ -393,7 +393,7 @@ var ImageUrlBuilder = /** @class */ (function () {
|
|
|
393
393
|
? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
|
|
394
394
|
}
|
|
395
395
|
ImageUrlBuilder.prototype.withOptions = function (options) {
|
|
396
|
-
var baseUrl = options.baseUrl ||
|
|
396
|
+
var baseUrl = options.baseUrl || this.options.baseUrl;
|
|
397
397
|
var newOptions = { baseUrl: baseUrl };
|
|
398
398
|
for (var key in options) {
|
|
399
399
|
if (options.hasOwnProperty(key)) {
|
|
@@ -521,7 +521,7 @@ var ImageUrlBuilder = /** @class */ (function () {
|
|
|
521
521
|
ImageUrlBuilder.prototype.url = function () {
|
|
522
522
|
return urlForImage_1$1.default(this.options);
|
|
523
523
|
};
|
|
524
|
-
//
|
|
524
|
+
// Alias for url()
|
|
525
525
|
ImageUrlBuilder.prototype.toString = function () {
|
|
526
526
|
return this.url();
|
|
527
527
|
};
|
|
@@ -3,20 +3,20 @@ import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-2
|
|
|
3
3
|
import { _ as _extends } from './extends-229166d5.js';
|
|
4
4
|
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-a15d91fe.js';
|
|
5
5
|
import React__default, { useState, useEffect, useRef } from 'react';
|
|
6
|
-
import { l as lib_3 } from './index-
|
|
6
|
+
import { l as lib_3 } from './index-93ec3c59.js';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import Row from 'react-bootstrap/Row';
|
|
9
9
|
import Col from 'react-bootstrap/Col';
|
|
10
|
-
import { m as moment } from './moment-
|
|
10
|
+
import { m as moment } from './moment-12415288.js';
|
|
11
11
|
import Router, { useRouter } from 'next/router';
|
|
12
|
-
import { i as imageUrlBuilder } from './index-
|
|
12
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
13
13
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
14
|
-
import { b as main_16, c as
|
|
14
|
+
import { b as main_16, c as main_38, m as main_39 } from './main-7255814e.js';
|
|
15
15
|
import { h as html_decode_1 } from './entities-7cc3bf45.js';
|
|
16
16
|
import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
|
|
17
17
|
import { B as Beam, S as Segment } from './beam-c40d77ae.js';
|
|
18
18
|
import DFPAdSlot from './AdSlot.js';
|
|
19
|
-
import { B as BlockContent } from './BlockContent-
|
|
19
|
+
import { B as BlockContent } from './BlockContent-a614acdf.js';
|
|
20
20
|
import { g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
21
21
|
import GroupDeck from './GroupDeck.js';
|
|
22
22
|
import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Card, Row as Row$1, Col as Col$1 } from 'react-bootstrap';
|
|
@@ -7480,7 +7480,7 @@ var Poll = function Poll(_ref) {
|
|
|
7480
7480
|
);
|
|
7481
7481
|
};
|
|
7482
7482
|
|
|
7483
|
-
var numberOfPaginations =
|
|
7483
|
+
var numberOfPaginations = main_38 ? 4 : 10;
|
|
7484
7484
|
|
|
7485
7485
|
var Quiz = function Quiz(_ref) {
|
|
7486
7486
|
var quizzes = _ref.quizzes,
|
|
@@ -7593,7 +7593,7 @@ var Quiz = function Quiz(_ref) {
|
|
|
7593
7593
|
var renderPagination = function renderPagination() {
|
|
7594
7594
|
return React__default.createElement(
|
|
7595
7595
|
Pagination,
|
|
7596
|
-
{ className: 'p-0 m-0', size:
|
|
7596
|
+
{ className: 'p-0 m-0', size: main_38 && 'sm' },
|
|
7597
7597
|
React__default.createElement(Pagination.First, { onClick: function onClick() {
|
|
7598
7598
|
return changePage('first');
|
|
7599
7599
|
}, disabled: currentPage === 1 }),
|
|
@@ -8175,7 +8175,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8175
8175
|
//const activeArticle = path
|
|
8176
8176
|
//let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
|
|
8177
8177
|
|
|
8178
|
-
if (!
|
|
8178
|
+
if (!main_39) {
|
|
8179
8179
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8180
8180
|
if (window.googletag && googletag.pubadsReady) {
|
|
8181
8181
|
lib_3.refresh();
|
|
@@ -8183,7 +8183,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
|
|
|
8183
8183
|
});
|
|
8184
8184
|
}
|
|
8185
8185
|
//Refresh leaderboard ad on mobile
|
|
8186
|
-
if (
|
|
8186
|
+
if (main_39) {
|
|
8187
8187
|
var leaderboardSlotId = '';
|
|
8188
8188
|
lib_3.getGoogletag().then(function (googletag) {
|
|
8189
8189
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -821,15 +821,13 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
821
821
|
});
|
|
822
822
|
|
|
823
823
|
if (_this5.lazyLoadIsEnabled()) {
|
|
824
|
-
var args = [];
|
|
825
|
-
|
|
826
824
|
var config = _this5.getLazyLoadConfig();
|
|
827
825
|
|
|
828
|
-
if (config
|
|
829
|
-
|
|
826
|
+
if (config) {
|
|
827
|
+
pubadsService.enableLazyLoad(config);
|
|
828
|
+
} else {
|
|
829
|
+
pubadsService.enableLazyLoad();
|
|
830
830
|
}
|
|
831
|
-
|
|
832
|
-
pubadsService.enableLazyLoad.call(args);
|
|
833
831
|
}
|
|
834
832
|
|
|
835
833
|
if (_this5.singleRequestIsEnabled()) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as createCommonjsModule, a as commonjsGlobal, g as getCjsExportFromNamespace } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import { m as moment } from './moment-
|
|
2
|
+
import { m as moment } from './moment-12415288.js';
|
|
3
3
|
|
|
4
4
|
var momentTimezone = createCommonjsModule(function (module) {
|
|
5
5
|
//! moment-timezone.js
|
|
@@ -263,6 +263,9 @@ var InfiniteScroll = /** @class */ (function (_super) {
|
|
|
263
263
|
_this.dragging = false;
|
|
264
264
|
if (_this.state.pullToRefreshThresholdBreached) {
|
|
265
265
|
_this.props.refreshFunction && _this.props.refreshFunction();
|
|
266
|
+
_this.setState({
|
|
267
|
+
pullToRefreshThresholdBreached: false,
|
|
268
|
+
});
|
|
266
269
|
}
|
|
267
270
|
requestAnimationFrame(function () {
|
|
268
271
|
// this._infScroll
|
|
@@ -369,7 +372,6 @@ var InfiniteScroll = /** @class */ (function (_super) {
|
|
|
369
372
|
// update state when new data was sent in
|
|
370
373
|
this.setState({
|
|
371
374
|
showLoader: false,
|
|
372
|
-
pullToRefreshThresholdBreached: false,
|
|
373
375
|
});
|
|
374
376
|
};
|
|
375
377
|
InfiniteScroll.prototype.isElementAtBottom = function (target, scrollThreshold) {
|