@mjhls/mjh-framework 1.0.796-series-test-v2 → 1.0.797
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +170 -170
- package/dist/cjs/AD300x250.js +1 -1
- package/dist/cjs/AD300x250x600.js +1 -1
- package/dist/cjs/AD728x90.js +1 -1
- package/dist/cjs/ADFloatingFooter.js +1 -1
- package/dist/cjs/ADGutter.js +1 -1
- package/dist/cjs/ADSkyscraper.js +1 -1
- package/dist/cjs/ADSponsoredResources.js +1 -1
- package/dist/cjs/ADWebcast.js +1 -1
- package/dist/cjs/ADWelcome.js +1 -1
- package/dist/cjs/AccordionPanel.js +2 -2
- package/dist/cjs/AdSlot.js +1 -1
- package/dist/cjs/AdSlotsProvider.js +1 -1
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +4 -4
- package/dist/cjs/ArticleSeriesLandingPage.js +3 -3
- package/dist/cjs/ArticleSeriesListing.js +3 -3
- package/dist/cjs/CMEDeck.js +1 -1
- package/dist/cjs/Column3.js +1 -1
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/DeckContent.js +10 -10
- package/dist/cjs/DeckQueue.js +1 -1
- package/dist/cjs/EventsDeck.js +18 -18
- package/dist/cjs/ExternalResources.js +4 -4
- package/dist/cjs/Feature.js +1 -1
- package/dist/cjs/GridContent.js +3 -3
- package/dist/cjs/HamMagazine.js +15 -15
- package/dist/cjs/HorizontalArticleListing.js +4 -4
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueLanding.js +32 -32
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +1 -1
- package/dist/cjs/MasterDeck.js +11 -11
- package/dist/cjs/MediaSeriesLanding.js +23 -12
- package/dist/cjs/NavMagazine.js +16 -16
- package/dist/cjs/NavNative.js +12 -12
- package/dist/cjs/NavNormal.js +2 -2
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +6 -6
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PubSection.js +3 -3
- package/dist/cjs/PublicationLanding.js +29 -29
- package/dist/cjs/QueueDeckExpanded.js +3 -3
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +2 -2
- package/dist/cjs/{SeriesSlider-c022ce04.js → SeriesSlider-2db54929.js} +5 -5
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-31afe61f.js → SocialSearchComponent-9cb50ae4.js} +3 -3
- package/dist/cjs/TaxonomyDescription.js +4 -4
- package/dist/cjs/TemplateNormal.js +6 -6
- package/dist/cjs/Ustream.js +4 -4
- package/dist/cjs/VideoProgramLandingPage.js +4 -4
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +3 -3
- package/dist/cjs/VideoSeriesListing.js +3 -3
- package/dist/cjs/View.js +8 -8
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/getSerializers.js +4 -4
- package/dist/cjs/{getTargeting-be6168ad.js → getTargeting-a100d6e5.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/{index-70cfabd2.js → index-08b35e31.js} +2 -2
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-00a6aade.js} +1 -1
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-2bb721c8.js} +1 -1
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-9225638f.js} +1 -1
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-f27f80d9.js} +1 -1
- package/dist/cjs/index.js +12 -12
- package/dist/cjs/{main-025fdc78.js → main-f1c77adb.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +6 -6
- package/dist/esm/AD300x250x600.js +6 -6
- package/dist/esm/AD728x90.js +7 -7
- package/dist/esm/ADFloatingFooter.js +9 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-e1e18f87.js → ADInfeed-f7d00a9a.js} +5 -5
- package/dist/esm/ADSkyscraper.js +9 -9
- package/dist/esm/ADSponsoredResources.js +9 -9
- package/dist/esm/ADWebcast.js +9 -9
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-c6d2831b.js → ADlgInfeed-db64f46d.js} +4 -4
- package/dist/esm/AccordionPanel.js +18 -18
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +4 -4
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +6 -6
- package/dist/esm/ArticleProgramLandingPage.js +17 -17
- package/dist/esm/ArticleSeriesLandingPage.js +12 -12
- package/dist/esm/ArticleSeriesListing.js +31 -31
- package/dist/esm/Auth.js +70 -70
- package/dist/esm/{AuthorComponent-5ae7409f.js → AuthorComponent-30aeba69.js} +10 -10
- package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-c99c9a8d.js} +3 -3
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +61 -61
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +23 -23
- package/dist/esm/ConferenceArticleCard.js +28 -28
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +57 -57
- package/dist/esm/DeckQueue.js +42 -42
- package/dist/esm/{Dfp-a304d96c.js → Dfp-be030f2a.js} +10 -10
- package/dist/esm/EventsDeck.js +81 -81
- package/dist/esm/ExternalResources.js +35 -35
- package/dist/esm/Feature.js +15 -15
- package/dist/esm/ForbesHero.js +26 -26
- package/dist/esm/GridContent.js +103 -103
- package/dist/esm/GridHero.js +27 -27
- package/dist/esm/GroupDeck.js +34 -34
- package/dist/esm/HamMagazine.js +95 -95
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +6 -6
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +31 -31
- package/dist/esm/HorizontalHero.js +20 -20
- package/dist/esm/IssueContentDeck.js +39 -39
- package/dist/esm/IssueDeck.js +33 -33
- package/dist/esm/IssueLanding.js +42 -42
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +46 -46
- package/dist/esm/MediaSeriesLanding.js +339 -328
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +99 -99
- package/dist/esm/NavNative.js +86 -86
- package/dist/esm/NavNormal.js +22 -22
- package/dist/esm/OncliveHero.js +13 -13
- package/dist/esm/OncliveLargeHero.js +50 -50
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +62 -62
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +14 -14
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +33 -33
- package/dist/esm/PublicationLanding.js +78 -78
- package/dist/esm/QueueDeckExpanded.js +246 -246
- package/dist/esm/RecentNews.js +18 -18
- package/dist/esm/RelatedContent.js +43 -43
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +5 -5
- package/dist/esm/SeriesListingDeck.js +19 -19
- package/dist/esm/{SeriesSlider-8414085b.js → SeriesSlider-c8477bf3.js} +23 -23
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-116b1d5d.js → SocialSearchComponent-09775683.js} +22 -22
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +35 -35
- package/dist/esm/TaxonomyDescription.js +13 -13
- package/dist/esm/TemplateNormal.js +30 -30
- package/dist/esm/ThumbnailCard.js +9 -9
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +11 -11
- package/dist/esm/VideoProgramLandingPage.js +24 -24
- package/dist/esm/VideoSeriesCard.js +15 -15
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +12 -12
- package/dist/esm/VideoSeriesListing.js +47 -47
- package/dist/esm/View.js +170 -170
- package/dist/esm/YahooHero.js +23 -23
- package/dist/esm/YoutubeGroup.js +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
- package/dist/esm/getSerializers.js +8 -8
- package/dist/esm/{getTargeting-68291ce9.js → getTargeting-05c216d6.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -5
- package/dist/esm/{index-888f9253.js → index-5cc7b406.js} +3 -3
- package/dist/esm/{index-35bdcc81.js → index-755f2cc2.js} +4 -4
- package/dist/esm/{index-613fdebe.js → index-c2daf449.js} +338 -338
- package/dist/esm/{index.es-c6222053.js → index.es-a6137319.js} +5 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-37268dca.js} +16 -16
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-d4932dea.js} +1 -1
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-e874e770.js} +1 -1
- package/dist/esm/{index.esm-3fdda599.js → index.esm-f6156a57.js} +1 -1
- package/dist/esm/index.js +38 -38
- package/dist/esm/{main-b5c5aac1.js → main-d4165069.js} +19 -19
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-9be47857.js} +5 -5
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/package.json +108 -108
- /package/dist/cjs/{ADInfeed-e7aecdf9.js → ADInfeed-7cf51090.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-0941023e.js → ADlgInfeed-bf24708d.js} +0 -0
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
3
3
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
4
4
|
import './slicedToArray-be2f7a22.js';
|
|
@@ -13,17 +13,17 @@ import './extends-60e0e1c6.js';
|
|
|
13
13
|
import './_object-pie-133f504a.js';
|
|
14
14
|
import 'react-bootstrap';
|
|
15
15
|
import './index-0dbff1d1.js';
|
|
16
|
-
import './index.es-
|
|
16
|
+
import './index.es-a6137319.js';
|
|
17
17
|
import './moment-bc12cb97.js';
|
|
18
|
-
import './visibility-sensor-
|
|
18
|
+
import './visibility-sensor-72fd8f8b.js';
|
|
19
19
|
import 'react-dom';
|
|
20
|
-
import './index-
|
|
20
|
+
import './index-5cc7b406.js';
|
|
21
21
|
import 'prop-types';
|
|
22
22
|
import 'next/router';
|
|
23
|
-
import './index-
|
|
24
|
-
import './main-
|
|
23
|
+
import './index-755f2cc2.js';
|
|
24
|
+
import './main-d4165069.js';
|
|
25
25
|
import './entities-932b50cf.js';
|
|
26
|
-
import './ADInfeed-
|
|
26
|
+
import './ADInfeed-f7d00a9a.js';
|
|
27
27
|
import 'react-bootstrap/Card';
|
|
28
28
|
import './AdSlot.js';
|
|
29
29
|
import './debounce-533d9748.js';
|
|
@@ -34,42 +34,42 @@ import './stringify-59c8f690.js';
|
|
|
34
34
|
import './asyncToGenerator-7f8f9219.js';
|
|
35
35
|
import './_library-528f1934.js';
|
|
36
36
|
import './Segment.js';
|
|
37
|
-
import './AuthorComponent-
|
|
37
|
+
import './AuthorComponent-30aeba69.js';
|
|
38
38
|
import './lodash-f97fd99a.js';
|
|
39
|
-
import './ADlgInfeed-
|
|
39
|
+
import './ADlgInfeed-db64f46d.js';
|
|
40
40
|
import './getContentCategory-15dcc413.js';
|
|
41
41
|
import './timeDifferenceCalc.js';
|
|
42
42
|
import 'react-bootstrap/Breadcrumb';
|
|
43
43
|
|
|
44
|
-
/* usage
|
|
45
|
-
import Settings, { Ads } from '../../../../settings'
|
|
46
|
-
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
47
|
-
import client from '../../../../client'
|
|
48
|
-
import moment from 'moment'
|
|
49
|
-
import Shell from '../../../../components/2.0/Shell'
|
|
50
|
-
import { pageview } from '../../../../utilities/gtag'
|
|
51
|
-
|
|
52
|
-
const Issue = (props) => {
|
|
53
|
-
const { pubIssue, cache } = props
|
|
54
|
-
const targeting = {
|
|
55
|
-
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
56
|
-
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
57
|
-
}
|
|
58
|
-
return (
|
|
59
|
-
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
60
|
-
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
61
|
-
</Shell>
|
|
62
|
-
)
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
Issue.getInitialProps = async (ctx) => {
|
|
66
|
-
const { query } = ctx
|
|
67
|
-
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
68
|
-
)
|
|
69
|
-
return { pubIssue }
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export default Issue
|
|
44
|
+
/* usage
|
|
45
|
+
import Settings, { Ads } from '../../../../settings'
|
|
46
|
+
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
47
|
+
import client from '../../../../client'
|
|
48
|
+
import moment from 'moment'
|
|
49
|
+
import Shell from '../../../../components/2.0/Shell'
|
|
50
|
+
import { pageview } from '../../../../utilities/gtag'
|
|
51
|
+
|
|
52
|
+
const Issue = (props) => {
|
|
53
|
+
const { pubIssue, cache } = props
|
|
54
|
+
const targeting = {
|
|
55
|
+
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
56
|
+
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
57
|
+
}
|
|
58
|
+
return (
|
|
59
|
+
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
60
|
+
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
61
|
+
</Shell>
|
|
62
|
+
)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
Issue.getInitialProps = async (ctx) => {
|
|
66
|
+
const { query } = ctx
|
|
67
|
+
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
68
|
+
)
|
|
69
|
+
return { pubIssue }
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export default Issue
|
|
73
73
|
*/
|
|
74
74
|
|
|
75
75
|
var IssueLanding = function IssueLanding(props) {
|
|
@@ -95,16 +95,16 @@ var IssueLanding = function IssueLanding(props) {
|
|
|
95
95
|
_props$imageWidth = props.imageWidth,
|
|
96
96
|
imageWidth = _props$imageWidth === undefined ? 480 : _props$imageWidth;
|
|
97
97
|
|
|
98
|
-
return
|
|
98
|
+
return React__default.createElement(
|
|
99
99
|
'div',
|
|
100
100
|
{ id: 'issueLanding' },
|
|
101
|
-
|
|
102
|
-
pubIssue.issue.source &&
|
|
101
|
+
React__default.createElement(Breadcrumbs, null),
|
|
102
|
+
pubIssue.issue.source && React__default.createElement(
|
|
103
103
|
'p',
|
|
104
104
|
{ className: 'badge badge-primary' },
|
|
105
105
|
pubIssue.issue.source
|
|
106
106
|
),
|
|
107
|
-
|
|
107
|
+
React__default.createElement(QueueDeckExpanded, {
|
|
108
108
|
client: client,
|
|
109
109
|
mapping: settings.mapping,
|
|
110
110
|
dataRecord: pubIssue.issue.articles,
|
package/dist/esm/KMTracker.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
var KMTracker = function KMTracker(props) {
|
|
2
|
-
|
|
2
|
+
var id = props.id;
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
if (document && id) {
|
|
5
5
|
(function () {
|
|
6
|
-
|
|
6
|
+
var ecnJquery = document.createElement('script');
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
ecnJquery.type = 'text/javascript';
|
|
9
|
+
ecnJquery.async = true;
|
|
10
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
var ecnScript = document.createElement('script');
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
ecnScript.type = 'text/javascript';
|
|
15
|
+
ecnScript.async = true;
|
|
16
|
+
ecnScript.id = 'km-tracker';
|
|
17
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
document.head.appendChild(ecnJquery);
|
|
20
|
+
document.head.appendChild(ecnScript);
|
|
21
|
+
})();
|
|
22
|
+
}
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
export default KMTracker;
|
package/dist/esm/LeftNav.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default, { useRef, useEffect } from 'react';
|
|
2
2
|
import ListGroup from 'react-bootstrap/ListGroup';
|
|
3
3
|
import ADWebcast from './ADWebcast.js';
|
|
4
4
|
import Segment from './Segment.js';
|
|
@@ -12,7 +12,7 @@ import './AdSlot.js';
|
|
|
12
12
|
import './extends-60e0e1c6.js';
|
|
13
13
|
import './_object-pie-133f504a.js';
|
|
14
14
|
import 'prop-types';
|
|
15
|
-
import './index-
|
|
15
|
+
import './index-5cc7b406.js';
|
|
16
16
|
import './debounce-533d9748.js';
|
|
17
17
|
import './isSymbol-a7e9aafe.js';
|
|
18
18
|
import './toNumber-5aeba6e7.js';
|
|
@@ -21,7 +21,7 @@ import './stringify-59c8f690.js';
|
|
|
21
21
|
import './asyncToGenerator-7f8f9219.js';
|
|
22
22
|
import './_library-528f1934.js';
|
|
23
23
|
import './_iter-detect-7e5e5ce2.js';
|
|
24
|
-
import './main-
|
|
24
|
+
import './main-d4165069.js';
|
|
25
25
|
|
|
26
26
|
var LeftNav = function LeftNav(props) {
|
|
27
27
|
var leftItems = props.leftItems,
|
|
@@ -65,21 +65,21 @@ var LeftNav = function LeftNav(props) {
|
|
|
65
65
|
|
|
66
66
|
var renderListGroupItem = function renderListGroupItem(subRow) {
|
|
67
67
|
if (checkUrlIsExternal(subRow.url)) {
|
|
68
|
-
return
|
|
68
|
+
return React__default.createElement(
|
|
69
69
|
'a',
|
|
70
70
|
{ target: subRow.blank ? '_blank' : '_self', needsegmentsupport: subRow.needSegmentSupport ? 'true' : '', href: subRow.url },
|
|
71
71
|
subRow.name
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
return
|
|
75
|
+
return React__default.createElement(
|
|
76
76
|
'a',
|
|
77
77
|
{ href: subRow.url || '#', target: subRow.blank ? '_blank' : '_self', needsegmentsupport: subRow.needSegmentSupport ? 'true' : '' },
|
|
78
78
|
subRow.name
|
|
79
79
|
);
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
return
|
|
82
|
+
return React__default.createElement(
|
|
83
83
|
'section',
|
|
84
84
|
{ ref: leftNavRef },
|
|
85
85
|
leftItems && leftItems.map(function (row, index) {
|
|
@@ -87,27 +87,27 @@ var LeftNav = function LeftNav(props) {
|
|
|
87
87
|
// Since Webcast Ad should be between spotlight and sub navigation it should be passed as the second element of leftItems array from site level.
|
|
88
88
|
// Webcast AD should have atleast adUnit , networkID, and "_type" as "webcastAD"
|
|
89
89
|
if (row._type && row._type === 'webcastAD' && row.adUnit) {
|
|
90
|
-
return
|
|
90
|
+
return React__default.createElement(
|
|
91
91
|
'div',
|
|
92
92
|
{ key: index },
|
|
93
|
-
|
|
93
|
+
React__default.createElement(ADWebcast, { webcastAd: row, refreshFlag: row.refreshFlag ? row.refreshFlag : false })
|
|
94
94
|
);
|
|
95
95
|
} else {
|
|
96
|
-
return
|
|
96
|
+
return React__default.createElement(
|
|
97
97
|
'nav',
|
|
98
98
|
{ key: index, 'aria-label': 'Secondary' },
|
|
99
|
-
|
|
99
|
+
React__default.createElement(
|
|
100
100
|
'div',
|
|
101
101
|
{ style: { display: 'flex', justifyContent: 'space-between', flexWrap: 'wrap' }, className: 'secondary-nav-title list-group-item active' },
|
|
102
|
-
|
|
102
|
+
React__default.createElement(
|
|
103
103
|
'span',
|
|
104
104
|
{ className: 'mr-1', style: { display: 'inline-block', fontWeight: 'bold', fontSize: '1rem' } },
|
|
105
105
|
row.name
|
|
106
106
|
),
|
|
107
|
-
row.url && SeeAll &&
|
|
107
|
+
row.url && SeeAll && React__default.createElement(
|
|
108
108
|
'span',
|
|
109
109
|
{ style: { marginLeft: 'auto', display: 'inline-block' } },
|
|
110
|
-
|
|
110
|
+
React__default.createElement(
|
|
111
111
|
'a',
|
|
112
112
|
{ style: { color: 'white', fontSize: '.6rem' }, href: row.url },
|
|
113
113
|
'See All ',
|
|
@@ -115,11 +115,11 @@ var LeftNav = function LeftNav(props) {
|
|
|
115
115
|
)
|
|
116
116
|
)
|
|
117
117
|
),
|
|
118
|
-
|
|
118
|
+
React__default.createElement(
|
|
119
119
|
'ul',
|
|
120
120
|
{ style: sideNavStyles },
|
|
121
121
|
row.subQuery && row.subQuery.map(function (subRow, subIndex) {
|
|
122
|
-
return
|
|
122
|
+
return React__default.createElement(
|
|
123
123
|
ListGroup.Item,
|
|
124
124
|
{ as: 'li', key: subIndex + '_2' },
|
|
125
125
|
renderListGroupItem(subRow)
|
|
@@ -132,7 +132,7 @@ var LeftNav = function LeftNav(props) {
|
|
|
132
132
|
);
|
|
133
133
|
};
|
|
134
134
|
|
|
135
|
-
var LeftNav$1 =
|
|
135
|
+
var LeftNav$1 = React__default.memo(LeftNav);
|
|
136
136
|
|
|
137
137
|
export default LeftNav$1;
|
|
138
138
|
export { LeftNav };
|
package/dist/esm/MasterDeck.js
CHANGED
|
@@ -2,8 +2,8 @@ import { _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
|
2
2
|
import { _ as _Promise } from './asyncToGenerator-7f8f9219.js';
|
|
3
3
|
import { _ as _extends } from './extends-60e0e1c6.js';
|
|
4
4
|
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-a41fe93f.js';
|
|
5
|
-
import
|
|
6
|
-
import { l as lib_3 } from './index-
|
|
5
|
+
import React__default from 'react';
|
|
6
|
+
import { l as lib_3 } from './index-5cc7b406.js';
|
|
7
7
|
import Container from 'react-bootstrap/Container';
|
|
8
8
|
import 'react-bootstrap/Row';
|
|
9
9
|
import 'react-bootstrap/Col';
|
|
@@ -12,12 +12,12 @@ import './moment-bc12cb97.js';
|
|
|
12
12
|
import { withRouter } from 'next/router';
|
|
13
13
|
import { l as lodash } from './lodash-f97fd99a.js';
|
|
14
14
|
import { d as debounce_1 } from './debounce-533d9748.js';
|
|
15
|
-
import { I as InfiniteScroll } from './index.es-
|
|
16
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
15
|
+
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
16
|
+
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
17
17
|
import './index-0dbff1d1.js';
|
|
18
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
19
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
20
|
-
import './main-
|
|
18
|
+
import { A as ADlgInfeed } from './ADlgInfeed-db64f46d.js';
|
|
19
|
+
import { A as ADInfeed } from './ADInfeed-f7d00a9a.js';
|
|
20
|
+
import './main-d4165069.js';
|
|
21
21
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
22
22
|
import './es6.string.iterator-bc33758b.js';
|
|
23
23
|
import './_to-object-b50e61c3.js';
|
|
@@ -224,14 +224,14 @@ var MasterDeck = function (_React$Component) {
|
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
// please leave this for later debug purpose : Yong Jun.
|
|
227
|
-
/* console.log('page change reported', {
|
|
228
|
-
currentPage: currentPage,
|
|
229
|
-
pageNumber: pageNumber,
|
|
230
|
-
pathname: pathname,
|
|
231
|
-
path: path,
|
|
232
|
-
newPath: newPath,
|
|
233
|
-
firstPage: pageNumber === 1,
|
|
234
|
-
queryString: queryString
|
|
227
|
+
/* console.log('page change reported', {
|
|
228
|
+
currentPage: currentPage,
|
|
229
|
+
pageNumber: pageNumber,
|
|
230
|
+
pathname: pathname,
|
|
231
|
+
path: path,
|
|
232
|
+
newPath: newPath,
|
|
233
|
+
firstPage: pageNumber === 1,
|
|
234
|
+
queryString: queryString
|
|
235
235
|
}) */
|
|
236
236
|
|
|
237
237
|
if (pageview) {
|
|
@@ -326,7 +326,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
326
326
|
}
|
|
327
327
|
});
|
|
328
328
|
|
|
329
|
-
return
|
|
329
|
+
return React__default.createElement(
|
|
330
330
|
'div',
|
|
331
331
|
null,
|
|
332
332
|
data && _this.state.dataRemapped && data.length > 0 ? // If JS enabled and Data remapped with ads
|
|
@@ -334,24 +334,24 @@ var MasterDeck = function (_React$Component) {
|
|
|
334
334
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
335
335
|
|
|
336
336
|
if (row._type === 'lg-infeed' && row.adUnit) {
|
|
337
|
-
return
|
|
337
|
+
return React__default.createElement(ADlgInfeed, _extends({ index: index }, row));
|
|
338
338
|
// Returning view for infeed Ad
|
|
339
339
|
} else if (row._type === 'brandInsightAd' && row.adUnit) {
|
|
340
|
-
return
|
|
340
|
+
return React__default.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
341
341
|
} else if (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type)) {
|
|
342
342
|
// Returning view for articles
|
|
343
|
-
return
|
|
343
|
+
return React__default.createElement(
|
|
344
344
|
VisibilitySensor,
|
|
345
345
|
{
|
|
346
346
|
key: row._id ? row._id : index,
|
|
347
347
|
onChange: function onChange(isVisible) {
|
|
348
348
|
isVisible && _this.changePageNumber(pageNumber);
|
|
349
349
|
} },
|
|
350
|
-
|
|
351
|
-
|
|
350
|
+
React__default.createElement(
|
|
351
|
+
React__default.Fragment,
|
|
352
352
|
{ key: index },
|
|
353
|
-
|
|
354
|
-
_this.state.mobileView && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 &&
|
|
353
|
+
React__default.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding }),
|
|
354
|
+
_this.state.mobileView && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
355
355
|
'div',
|
|
356
356
|
{ className: 'ad-container', style: { margin: '0 auto' } },
|
|
357
357
|
_this.renderMobileAd(index, numberOfItemsBeforeAd, _this.rightItems)
|
|
@@ -365,24 +365,24 @@ var MasterDeck = function (_React$Component) {
|
|
|
365
365
|
data.map(function (row, index) {
|
|
366
366
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
367
367
|
if (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type)) {
|
|
368
|
-
return
|
|
368
|
+
return React__default.createElement(
|
|
369
369
|
VisibilitySensor,
|
|
370
370
|
{
|
|
371
371
|
key: row._id ? row._id : index,
|
|
372
372
|
onChange: function onChange(isVisible) {
|
|
373
373
|
isVisible && _this.changePageNumber(pageNumber);
|
|
374
374
|
} },
|
|
375
|
-
|
|
376
|
-
|
|
375
|
+
React__default.createElement(
|
|
376
|
+
React__default.Fragment,
|
|
377
377
|
{ key: index },
|
|
378
|
-
|
|
378
|
+
React__default.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding })
|
|
379
379
|
)
|
|
380
380
|
);
|
|
381
381
|
}
|
|
382
|
-
}) :
|
|
382
|
+
}) : React__default.createElement(
|
|
383
383
|
'div',
|
|
384
384
|
null,
|
|
385
|
-
|
|
385
|
+
React__default.createElement(
|
|
386
386
|
'em',
|
|
387
387
|
null,
|
|
388
388
|
'New content coming soon, please check back later.'
|
|
@@ -391,7 +391,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
391
391
|
);
|
|
392
392
|
}, _this.renderMobileAd = function (index, numberOfItemsBeforeAd, rightItems) {
|
|
393
393
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
394
|
-
return
|
|
394
|
+
return React__default.createElement(
|
|
395
395
|
'div',
|
|
396
396
|
{ className: 'ad-container', style: { display: 'flex', flex: '1 0 auto', width: '100%', textAlign: 'center', marginBottom: '2rem' } },
|
|
397
397
|
rightItems[i].component
|
|
@@ -408,15 +408,15 @@ var MasterDeck = function (_React$Component) {
|
|
|
408
408
|
return null;
|
|
409
409
|
}
|
|
410
410
|
|
|
411
|
-
return
|
|
411
|
+
return React__default.createElement(
|
|
412
412
|
'div',
|
|
413
413
|
{ className: 'd-flex justify-content-between' },
|
|
414
|
-
currentPage && currentPage > 1 &&
|
|
414
|
+
currentPage && currentPage > 1 && React__default.createElement(
|
|
415
415
|
'a',
|
|
416
416
|
{ href: '?page=' + (currentPage - 1) },
|
|
417
417
|
'<< Previous'
|
|
418
418
|
),
|
|
419
|
-
|
|
419
|
+
React__default.createElement(
|
|
420
420
|
'a',
|
|
421
421
|
{ href: '?page=' + (currentPage + 1) },
|
|
422
422
|
'Next >>'
|
|
@@ -480,38 +480,38 @@ var MasterDeck = function (_React$Component) {
|
|
|
480
480
|
_props$lgInfeedAd = _props.lgInfeedAd,
|
|
481
481
|
lgInfeedAd = _props$lgInfeedAd === undefined ? false : _props$lgInfeedAd;
|
|
482
482
|
|
|
483
|
-
return
|
|
483
|
+
return React__default.createElement(
|
|
484
484
|
'div',
|
|
485
485
|
{ className: 'contentDeck' },
|
|
486
|
-
autoScroll ?
|
|
487
|
-
|
|
486
|
+
autoScroll ? React__default.createElement(
|
|
487
|
+
React__default.Fragment,
|
|
488
488
|
null,
|
|
489
|
-
|
|
489
|
+
React__default.createElement(
|
|
490
490
|
InfiniteScroll,
|
|
491
491
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.9 },
|
|
492
|
-
|
|
492
|
+
React__default.createElement(
|
|
493
493
|
Container,
|
|
494
494
|
null,
|
|
495
495
|
this.cardLoader(page, columns, variant, brandInsightAd, showBI, lgInfeedAd)
|
|
496
496
|
)
|
|
497
497
|
),
|
|
498
|
-
|
|
498
|
+
React__default.createElement(
|
|
499
499
|
'noscript',
|
|
500
500
|
null,
|
|
501
501
|
this.renderManualPagination()
|
|
502
502
|
)
|
|
503
|
-
) :
|
|
504
|
-
|
|
503
|
+
) : React__default.createElement(
|
|
504
|
+
React__default.Fragment,
|
|
505
505
|
null,
|
|
506
|
-
|
|
506
|
+
React__default.createElement(
|
|
507
507
|
Container,
|
|
508
508
|
null,
|
|
509
509
|
this.cardLoader(page, columns, variant, brandInsightAd, showBI, lgInfeedAd)
|
|
510
510
|
),
|
|
511
|
-
|
|
511
|
+
React__default.createElement(
|
|
512
512
|
'div',
|
|
513
513
|
{ style: { padding: '0px 10px' } },
|
|
514
|
-
this.state.scrolling &&
|
|
514
|
+
this.state.scrolling && React__default.createElement(
|
|
515
515
|
'button',
|
|
516
516
|
{
|
|
517
517
|
className: 'btn',
|
|
@@ -531,7 +531,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
531
531
|
'Load More'
|
|
532
532
|
)
|
|
533
533
|
),
|
|
534
|
-
|
|
534
|
+
React__default.createElement(
|
|
535
535
|
'noscript',
|
|
536
536
|
null,
|
|
537
537
|
this.renderManualPagination()
|
|
@@ -542,7 +542,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
542
542
|
}]);
|
|
543
543
|
|
|
544
544
|
return MasterDeck;
|
|
545
|
-
}(
|
|
545
|
+
}(React__default.Component);
|
|
546
546
|
|
|
547
547
|
var MasterDeck$1 = withRouter(MasterDeck);
|
|
548
548
|
|