@mjhls/mjh-framework 1.0.821 → 1.0.822
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/AD.js +1 -1
- package/dist/cjs/AD300x250.js +3 -2
- package/dist/cjs/AD300x250x600.js +3 -2
- package/dist/cjs/AD728x90.js +3 -2
- package/dist/cjs/ADFloatingFooter.js +3 -2
- package/dist/cjs/ADGutter.js +3 -2
- package/dist/cjs/ADSkyscraper.js +3 -2
- package/dist/cjs/ADSponsoredResources.js +3 -2
- package/dist/cjs/ADWebcast.js +3 -2
- package/dist/cjs/ADWelcome.js +3 -2
- package/dist/cjs/AccordionPanel.js +2 -2
- package/dist/cjs/AdSlot.js +3 -2
- package/dist/cjs/AdSlotsProvider.js +3 -2
- package/dist/cjs/AlgoliaSearch.js +14098 -17
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +6 -5
- package/dist/cjs/ArticleSeriesLandingPage.js +5 -4
- package/dist/cjs/ArticleSeriesListing.js +5 -4
- package/dist/cjs/AuthWrapper.js +1 -1
- package/dist/cjs/CMEDeck.js +3 -2
- package/dist/cjs/Column3.js +3 -2
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/DeckContent.js +12 -11
- package/dist/cjs/DeckQueue.js +3 -2
- package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-93399f8c.js} +2 -1
- package/dist/cjs/EventsDeck.js +18 -18
- package/dist/cjs/ExternalResources.js +6 -5
- package/dist/cjs/Feature.js +1 -1
- package/dist/cjs/GridContent.js +5 -4
- package/dist/cjs/HamMagazine.js +15 -15
- package/dist/cjs/HorizontalArticleListing.js +6 -5
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueLanding.js +37 -36
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +3 -2
- package/dist/cjs/MasterDeck.js +13 -12
- package/dist/cjs/MediaSeriesLanding.js +306 -406
- 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 +11 -7
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PubSection.js +5 -4
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpanded.js +5 -4
- 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 +4 -3
- package/dist/cjs/{SeriesSlider-028ab640.js → SeriesSlider-d54fa925.js} +5 -5
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-ecb4f972.js} +3 -3
- package/dist/cjs/TaxonomyDescription.js +6 -5
- package/dist/cjs/TemplateNormal.js +8 -7
- package/dist/cjs/Ustream.js +4 -4
- package/dist/cjs/VideoProgramLandingPage.js +6 -5
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +5 -4
- package/dist/cjs/VideoSeriesListing.js +5 -4
- package/dist/cjs/View.js +10 -9
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/getSerializers.js +6 -5
- package/dist/cjs/{getTargeting-a100d6e5.js → getTargeting-be6168ad.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +5 -2
- package/dist/cjs/{index-7e0d91f8.js → index-179d21a3.js} +3 -3
- package/dist/cjs/index-8041a4eb.js +99 -0
- package/dist/cjs/{index-0e4427c8.js → index-fc2f1ca2.js} +2 -467
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-05850a2f.js} +1 -1
- package/dist/cjs/{index.esm-9225638f.js → index.esm-3b9b8952.js} +1 -1
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-8123cf40.js} +1 -1
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-974f47d9.js} +1 -1
- package/dist/cjs/index.js +15 -14
- package/dist/cjs/{main-f1c77adb.js → main-025fdc78.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +7 -6
- package/dist/esm/AD300x250x600.js +7 -6
- package/dist/esm/AD728x90.js +8 -7
- package/dist/esm/ADFloatingFooter.js +10 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +10 -9
- package/dist/esm/{ADInfeed-4a09242b.js → ADInfeed-28b1e946.js} +5 -5
- package/dist/esm/ADSkyscraper.js +10 -9
- package/dist/esm/ADSponsoredResources.js +10 -9
- package/dist/esm/ADWebcast.js +10 -9
- package/dist/esm/ADWelcome.js +14 -13
- package/dist/esm/{ADlgInfeed-0bff9a62.js → ADlgInfeed-0b474b02.js} +4 -4
- package/dist/esm/AccordionPanel.js +18 -18
- package/dist/esm/AdSlot.js +6 -5
- package/dist/esm/AdSlotsProvider.js +5 -4
- package/dist/esm/AlgoliaSearch.js +14120 -39
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +6 -6
- package/dist/esm/ArticleProgramLandingPage.js +18 -17
- package/dist/esm/ArticleSeriesLandingPage.js +13 -12
- package/dist/esm/ArticleSeriesListing.js +32 -31
- package/dist/esm/Auth.js +70 -70
- package/dist/esm/AuthWrapper.js +26 -26
- package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-5ae7409f.js} +10 -10
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-52cf21c5.js} +3 -3
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +62 -61
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +24 -23
- package/dist/esm/ConferenceArticleCard.js +28 -28
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +58 -57
- package/dist/esm/DeckQueue.js +43 -42
- package/dist/esm/{Dfp-be030f2a.js → Dfp-43f121ff.js} +11 -10
- package/dist/esm/EventsDeck.js +81 -81
- package/dist/esm/ExternalResources.js +36 -35
- package/dist/esm/Feature.js +15 -15
- package/dist/esm/ForbesHero.js +26 -26
- package/dist/esm/GridContent.js +104 -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 +32 -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 +52 -51
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +17 -16
- package/dist/esm/MasterDeck.js +47 -46
- package/dist/esm/MediaSeriesLanding.js +331 -431
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.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 +66 -62
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +15 -14
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +33 -33
- package/dist/esm/PublicationLanding.js +75 -75
- package/dist/esm/QueueDeckExpanded.js +247 -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 +20 -19
- package/dist/esm/{SeriesSlider-6551c52e.js → SeriesSlider-8f2aca58.js} +23 -23
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-cd38ae60.js} +22 -22
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +35 -35
- package/dist/esm/TaxonomyDescription.js +14 -13
- package/dist/esm/TemplateNormal.js +31 -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 +25 -24
- package/dist/esm/VideoSeriesCard.js +15 -15
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +13 -12
- package/dist/esm/VideoSeriesListing.js +48 -47
- package/dist/esm/View.js +171 -170
- package/dist/esm/YahooHero.js +23 -23
- package/dist/esm/YoutubeGroup.js +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-b43c695a.js} +3 -3
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/getSerializers.js +9 -8
- package/dist/esm/{getTargeting-05c216d6.js → getTargeting-68291ce9.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-5cc7b406.js → index-2446af28.js} +4 -469
- package/dist/esm/{index-755f2cc2.js → index-35bdcc81.js} +4 -4
- package/dist/esm/{index-3bcafffc.js → index-5cc7293b.js} +343 -343
- package/dist/esm/index-67e1773f.js +94 -0
- package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
- package/dist/esm/{index.esm-f6156a57.js → index.esm-3fdda599.js} +1 -1
- package/dist/esm/{index.esm-37268dca.js → index.esm-8016b507.js} +16 -16
- package/dist/esm/{index.esm-d4932dea.js → index.esm-a8ff922c.js} +1 -1
- package/dist/esm/{index.esm-e874e770.js → index.esm-d6f88d94.js} +1 -1
- package/dist/esm/index.js +40 -39
- package/dist/esm/{main-d4165069.js → main-b5c5aac1.js} +19 -19
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-91f9716f.js} +5 -5
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/package.json +110 -110
- /package/dist/cjs/{ADInfeed-eb4ce360.js → ADInfeed-8b336c67.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-8a05b63f.js → ADlgInfeed-aedd5e18.js} +0 -0
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { _ as _extends } from './extends-60e0e1c6.js';
|
|
2
|
-
import
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
4
4
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
5
|
-
import { B as BlockContent } from './BlockContent-
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
5
|
+
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
6
|
+
import { g as getSerializers } from './index-5cc7293b.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './_to-object-b50e61c3.js';
|
|
9
9
|
import './_object-pie-133f504a.js';
|
|
@@ -16,17 +16,18 @@ import './_iter-detect-7e5e5ce2.js';
|
|
|
16
16
|
import 'react-bootstrap';
|
|
17
17
|
import './urlFor.js';
|
|
18
18
|
import './index-0dbff1d1.js';
|
|
19
|
-
import './index.es-
|
|
19
|
+
import './index.es-c6222053.js';
|
|
20
20
|
import './moment-bc12cb97.js';
|
|
21
|
-
import './visibility-sensor-
|
|
21
|
+
import './visibility-sensor-f40c2564.js';
|
|
22
22
|
import 'react-dom';
|
|
23
|
-
import './index-
|
|
23
|
+
import './index-2446af28.js';
|
|
24
|
+
import './events-6c3a7a63.js';
|
|
24
25
|
import 'prop-types';
|
|
25
26
|
import 'next/router';
|
|
26
|
-
import './index-
|
|
27
|
-
import './main-
|
|
27
|
+
import './index-35bdcc81.js';
|
|
28
|
+
import './main-b5c5aac1.js';
|
|
28
29
|
import './entities-932b50cf.js';
|
|
29
|
-
import './ADInfeed-
|
|
30
|
+
import './ADInfeed-28b1e946.js';
|
|
30
31
|
import 'react-bootstrap/Card';
|
|
31
32
|
import './AdSlot.js';
|
|
32
33
|
import './debounce-533d9748.js';
|
|
@@ -37,9 +38,9 @@ import './stringify-59c8f690.js';
|
|
|
37
38
|
import './asyncToGenerator-7f8f9219.js';
|
|
38
39
|
import './_library-528f1934.js';
|
|
39
40
|
import './Segment.js';
|
|
40
|
-
import './AuthorComponent-
|
|
41
|
+
import './AuthorComponent-5ae7409f.js';
|
|
41
42
|
import './lodash-f97fd99a.js';
|
|
42
|
-
import './ADlgInfeed-
|
|
43
|
+
import './ADlgInfeed-0b474b02.js';
|
|
43
44
|
import './getContentCategory-15dcc413.js';
|
|
44
45
|
import './timeDifferenceCalc.js';
|
|
45
46
|
import 'react-bootstrap/Breadcrumb';
|
|
@@ -47,7 +48,7 @@ import './index-c7e2ac95.js';
|
|
|
47
48
|
import './util-3ab476bf.js';
|
|
48
49
|
import './typeof-a286cf0c.js';
|
|
49
50
|
import './_is-array-3e99e06e.js';
|
|
50
|
-
import './brightcove-react-player-loader.es-
|
|
51
|
+
import './brightcove-react-player-loader.es-b43c695a.js';
|
|
51
52
|
import './GroupDeck.js';
|
|
52
53
|
import './smoothscroll-fa4e3f8c.js';
|
|
53
54
|
import './SocialShare.js';
|
|
@@ -61,39 +62,39 @@ import 'react-bootstrap/Col';
|
|
|
61
62
|
import './inherits-a41fe93f.js';
|
|
62
63
|
import './_object-sap-f353c2a9.js';
|
|
63
64
|
import './define-property-fe54dc9f.js';
|
|
64
|
-
import './index.esm-
|
|
65
|
-
import './iconBase-
|
|
65
|
+
import './index.esm-3fdda599.js';
|
|
66
|
+
import './iconBase-602d52fe.js';
|
|
66
67
|
import 'react-bootstrap/Figure';
|
|
67
68
|
|
|
68
|
-
/* usage
|
|
69
|
-
import Settings, { Ads } from '../../../../settings'
|
|
70
|
-
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
71
|
-
import client from '../../../../client'
|
|
72
|
-
import moment from 'moment'
|
|
73
|
-
import Shell from '../../../../components/2.0/Shell'
|
|
74
|
-
import { pageview } from '../../../../utilities/gtag'
|
|
75
|
-
|
|
76
|
-
const Issue = (props) => {
|
|
77
|
-
const { pubIssue, cache } = props
|
|
78
|
-
const targeting = {
|
|
79
|
-
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
80
|
-
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
81
|
-
}
|
|
82
|
-
return (
|
|
83
|
-
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
84
|
-
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
85
|
-
</Shell>
|
|
86
|
-
)
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
Issue.getInitialProps = async (ctx) => {
|
|
90
|
-
const { query } = ctx
|
|
91
|
-
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
92
|
-
)
|
|
93
|
-
return { pubIssue }
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export default Issue
|
|
69
|
+
/* usage
|
|
70
|
+
import Settings, { Ads } from '../../../../settings'
|
|
71
|
+
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
72
|
+
import client from '../../../../client'
|
|
73
|
+
import moment from 'moment'
|
|
74
|
+
import Shell from '../../../../components/2.0/Shell'
|
|
75
|
+
import { pageview } from '../../../../utilities/gtag'
|
|
76
|
+
|
|
77
|
+
const Issue = (props) => {
|
|
78
|
+
const { pubIssue, cache } = props
|
|
79
|
+
const targeting = {
|
|
80
|
+
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
81
|
+
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
82
|
+
}
|
|
83
|
+
return (
|
|
84
|
+
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
85
|
+
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
86
|
+
</Shell>
|
|
87
|
+
)
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
Issue.getInitialProps = async (ctx) => {
|
|
91
|
+
const { query } = ctx
|
|
92
|
+
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
93
|
+
)
|
|
94
|
+
return { pubIssue }
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export default Issue
|
|
97
98
|
*/
|
|
98
99
|
|
|
99
100
|
var IssueLanding = function IssueLanding(props) {
|
|
@@ -119,22 +120,22 @@ var IssueLanding = function IssueLanding(props) {
|
|
|
119
120
|
_props$imageWidth = props.imageWidth,
|
|
120
121
|
imageWidth = _props$imageWidth === undefined ? 480 : _props$imageWidth;
|
|
121
122
|
|
|
122
|
-
return
|
|
123
|
+
return React.createElement(
|
|
123
124
|
'div',
|
|
124
125
|
{ id: 'issueLanding' },
|
|
125
|
-
|
|
126
|
-
pubIssue.issue.source &&
|
|
126
|
+
React.createElement(Breadcrumbs, null),
|
|
127
|
+
pubIssue.issue.source && React.createElement(
|
|
127
128
|
'p',
|
|
128
129
|
{ className: 'badge badge-primary' },
|
|
129
130
|
pubIssue.issue.source
|
|
130
131
|
),
|
|
131
|
-
pubIssue.issue.description &&
|
|
132
|
-
|
|
132
|
+
pubIssue.issue.description && React.createElement(
|
|
133
|
+
React.Fragment,
|
|
133
134
|
null,
|
|
134
|
-
|
|
135
|
-
|
|
135
|
+
React.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: pubIssue.issue.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config())),
|
|
136
|
+
React.createElement('div', { style: { clear: 'both' } })
|
|
136
137
|
),
|
|
137
|
-
|
|
138
|
+
React.createElement(QueueDeckExpanded, {
|
|
138
139
|
client: client,
|
|
139
140
|
mapping: settings.mapping,
|
|
140
141
|
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, { 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,8 @@ 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-2446af28.js';
|
|
16
|
+
import './events-6c3a7a63.js';
|
|
16
17
|
import './debounce-533d9748.js';
|
|
17
18
|
import './isSymbol-a7e9aafe.js';
|
|
18
19
|
import './toNumber-5aeba6e7.js';
|
|
@@ -21,7 +22,7 @@ import './stringify-59c8f690.js';
|
|
|
21
22
|
import './asyncToGenerator-7f8f9219.js';
|
|
22
23
|
import './_library-528f1934.js';
|
|
23
24
|
import './_iter-detect-7e5e5ce2.js';
|
|
24
|
-
import './main-
|
|
25
|
+
import './main-b5c5aac1.js';
|
|
25
26
|
|
|
26
27
|
var LeftNav = function LeftNav(props) {
|
|
27
28
|
var leftItems = props.leftItems,
|
|
@@ -65,21 +66,21 @@ var LeftNav = function LeftNav(props) {
|
|
|
65
66
|
|
|
66
67
|
var renderListGroupItem = function renderListGroupItem(subRow) {
|
|
67
68
|
if (checkUrlIsExternal(subRow.url)) {
|
|
68
|
-
return
|
|
69
|
+
return React.createElement(
|
|
69
70
|
'a',
|
|
70
71
|
{ target: subRow.blank ? '_blank' : '_self', needsegmentsupport: subRow.needSegmentSupport ? 'true' : '', href: subRow.url },
|
|
71
72
|
subRow.name
|
|
72
73
|
);
|
|
73
74
|
}
|
|
74
75
|
|
|
75
|
-
return
|
|
76
|
+
return React.createElement(
|
|
76
77
|
'a',
|
|
77
78
|
{ href: subRow.url || '#', target: subRow.blank ? '_blank' : '_self', needsegmentsupport: subRow.needSegmentSupport ? 'true' : '' },
|
|
78
79
|
subRow.name
|
|
79
80
|
);
|
|
80
81
|
};
|
|
81
82
|
|
|
82
|
-
return
|
|
83
|
+
return React.createElement(
|
|
83
84
|
'section',
|
|
84
85
|
{ ref: leftNavRef },
|
|
85
86
|
leftItems && leftItems.map(function (row, index) {
|
|
@@ -87,27 +88,27 @@ var LeftNav = function LeftNav(props) {
|
|
|
87
88
|
// 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
89
|
// Webcast AD should have atleast adUnit , networkID, and "_type" as "webcastAD"
|
|
89
90
|
if (row._type && row._type === 'webcastAD' && row.adUnit) {
|
|
90
|
-
return
|
|
91
|
+
return React.createElement(
|
|
91
92
|
'div',
|
|
92
93
|
{ key: index },
|
|
93
|
-
|
|
94
|
+
React.createElement(ADWebcast, { webcastAd: row, refreshFlag: row.refreshFlag ? row.refreshFlag : false })
|
|
94
95
|
);
|
|
95
96
|
} else {
|
|
96
|
-
return
|
|
97
|
+
return React.createElement(
|
|
97
98
|
'nav',
|
|
98
99
|
{ key: index, 'aria-label': 'Secondary' },
|
|
99
|
-
|
|
100
|
+
React.createElement(
|
|
100
101
|
'div',
|
|
101
102
|
{ style: { display: 'flex', justifyContent: 'space-between', flexWrap: 'wrap' }, className: 'secondary-nav-title list-group-item active' },
|
|
102
|
-
|
|
103
|
+
React.createElement(
|
|
103
104
|
'span',
|
|
104
105
|
{ className: 'mr-1', style: { display: 'inline-block', fontWeight: 'bold', fontSize: '1rem' } },
|
|
105
106
|
row.name
|
|
106
107
|
),
|
|
107
|
-
row.url && SeeAll &&
|
|
108
|
+
row.url && SeeAll && React.createElement(
|
|
108
109
|
'span',
|
|
109
110
|
{ style: { marginLeft: 'auto', display: 'inline-block' } },
|
|
110
|
-
|
|
111
|
+
React.createElement(
|
|
111
112
|
'a',
|
|
112
113
|
{ style: { color: 'white', fontSize: '.6rem' }, href: row.url },
|
|
113
114
|
'See All ',
|
|
@@ -115,11 +116,11 @@ var LeftNav = function LeftNav(props) {
|
|
|
115
116
|
)
|
|
116
117
|
)
|
|
117
118
|
),
|
|
118
|
-
|
|
119
|
+
React.createElement(
|
|
119
120
|
'ul',
|
|
120
121
|
{ style: sideNavStyles },
|
|
121
122
|
row.subQuery && row.subQuery.map(function (subRow, subIndex) {
|
|
122
|
-
return
|
|
123
|
+
return React.createElement(
|
|
123
124
|
ListGroup.Item,
|
|
124
125
|
{ as: 'li', key: subIndex + '_2' },
|
|
125
126
|
renderListGroupItem(subRow)
|
|
@@ -132,7 +133,7 @@ var LeftNav = function LeftNav(props) {
|
|
|
132
133
|
);
|
|
133
134
|
};
|
|
134
135
|
|
|
135
|
-
var LeftNav$1 =
|
|
136
|
+
var LeftNav$1 = React.memo(LeftNav);
|
|
136
137
|
|
|
137
138
|
export default LeftNav$1;
|
|
138
139
|
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 from 'react';
|
|
6
|
+
import { l as lib_3 } from './index-2446af28.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-c6222053.js';
|
|
16
|
+
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.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-0b474b02.js';
|
|
19
|
+
import { A as ADInfeed } from './ADInfeed-28b1e946.js';
|
|
20
|
+
import './main-b5c5aac1.js';
|
|
21
21
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
22
22
|
import './es6.string.iterator-bc33758b.js';
|
|
23
23
|
import './_to-object-b50e61c3.js';
|
|
@@ -30,6 +30,7 @@ import './_object-sap-f353c2a9.js';
|
|
|
30
30
|
import './define-property-fe54dc9f.js';
|
|
31
31
|
import './typeof-a286cf0c.js';
|
|
32
32
|
import './_is-array-3e99e06e.js';
|
|
33
|
+
import './events-6c3a7a63.js';
|
|
33
34
|
import 'prop-types';
|
|
34
35
|
import './isSymbol-a7e9aafe.js';
|
|
35
36
|
import './toNumber-5aeba6e7.js';
|
|
@@ -224,14 +225,14 @@ var MasterDeck = function (_React$Component) {
|
|
|
224
225
|
}
|
|
225
226
|
|
|
226
227
|
// 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
|
|
228
|
+
/* console.log('page change reported', {
|
|
229
|
+
currentPage: currentPage,
|
|
230
|
+
pageNumber: pageNumber,
|
|
231
|
+
pathname: pathname,
|
|
232
|
+
path: path,
|
|
233
|
+
newPath: newPath,
|
|
234
|
+
firstPage: pageNumber === 1,
|
|
235
|
+
queryString: queryString
|
|
235
236
|
}) */
|
|
236
237
|
|
|
237
238
|
if (pageview) {
|
|
@@ -326,7 +327,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
326
327
|
}
|
|
327
328
|
});
|
|
328
329
|
|
|
329
|
-
return
|
|
330
|
+
return React.createElement(
|
|
330
331
|
'div',
|
|
331
332
|
null,
|
|
332
333
|
data && _this.state.dataRemapped && data.length > 0 ? // If JS enabled and Data remapped with ads
|
|
@@ -334,24 +335,24 @@ var MasterDeck = function (_React$Component) {
|
|
|
334
335
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
335
336
|
|
|
336
337
|
if (row._type === 'lg-infeed' && row.adUnit) {
|
|
337
|
-
return
|
|
338
|
+
return React.createElement(ADlgInfeed, _extends({ index: index }, row));
|
|
338
339
|
// Returning view for infeed Ad
|
|
339
340
|
} else if (row._type === 'brandInsightAd' && row.adUnit) {
|
|
340
|
-
return
|
|
341
|
+
return React.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
341
342
|
} else if (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type)) {
|
|
342
343
|
// Returning view for articles
|
|
343
|
-
return
|
|
344
|
+
return React.createElement(
|
|
344
345
|
VisibilitySensor,
|
|
345
346
|
{
|
|
346
347
|
key: row._id ? row._id : index,
|
|
347
348
|
onChange: function onChange(isVisible) {
|
|
348
349
|
isVisible && _this.changePageNumber(pageNumber);
|
|
349
350
|
} },
|
|
350
|
-
|
|
351
|
-
|
|
351
|
+
React.createElement(
|
|
352
|
+
React.Fragment,
|
|
352
353
|
{ key: index },
|
|
353
|
-
|
|
354
|
-
_this.state.mobileView && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 &&
|
|
354
|
+
React.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding }),
|
|
355
|
+
_this.state.mobileView && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React.createElement(
|
|
355
356
|
'div',
|
|
356
357
|
{ className: 'ad-container', style: { margin: '0 auto' } },
|
|
357
358
|
_this.renderMobileAd(index, numberOfItemsBeforeAd, _this.rightItems)
|
|
@@ -365,24 +366,24 @@ var MasterDeck = function (_React$Component) {
|
|
|
365
366
|
data.map(function (row, index) {
|
|
366
367
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
367
368
|
if (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type)) {
|
|
368
|
-
return
|
|
369
|
+
return React.createElement(
|
|
369
370
|
VisibilitySensor,
|
|
370
371
|
{
|
|
371
372
|
key: row._id ? row._id : index,
|
|
372
373
|
onChange: function onChange(isVisible) {
|
|
373
374
|
isVisible && _this.changePageNumber(pageNumber);
|
|
374
375
|
} },
|
|
375
|
-
|
|
376
|
-
|
|
376
|
+
React.createElement(
|
|
377
|
+
React.Fragment,
|
|
377
378
|
{ key: index },
|
|
378
|
-
|
|
379
|
+
React.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding })
|
|
379
380
|
)
|
|
380
381
|
);
|
|
381
382
|
}
|
|
382
|
-
}) :
|
|
383
|
+
}) : React.createElement(
|
|
383
384
|
'div',
|
|
384
385
|
null,
|
|
385
|
-
|
|
386
|
+
React.createElement(
|
|
386
387
|
'em',
|
|
387
388
|
null,
|
|
388
389
|
'New content coming soon, please check back later.'
|
|
@@ -391,7 +392,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
391
392
|
);
|
|
392
393
|
}, _this.renderMobileAd = function (index, numberOfItemsBeforeAd, rightItems) {
|
|
393
394
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
394
|
-
return
|
|
395
|
+
return React.createElement(
|
|
395
396
|
'div',
|
|
396
397
|
{ className: 'ad-container', style: { display: 'flex', flex: '1 0 auto', width: '100%', textAlign: 'center', marginBottom: '2rem' } },
|
|
397
398
|
rightItems[i].component
|
|
@@ -408,15 +409,15 @@ var MasterDeck = function (_React$Component) {
|
|
|
408
409
|
return null;
|
|
409
410
|
}
|
|
410
411
|
|
|
411
|
-
return
|
|
412
|
+
return React.createElement(
|
|
412
413
|
'div',
|
|
413
414
|
{ className: 'd-flex justify-content-between' },
|
|
414
|
-
currentPage && currentPage > 1 &&
|
|
415
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
415
416
|
'a',
|
|
416
417
|
{ href: '?page=' + (currentPage - 1) },
|
|
417
418
|
'<< Previous'
|
|
418
419
|
),
|
|
419
|
-
|
|
420
|
+
React.createElement(
|
|
420
421
|
'a',
|
|
421
422
|
{ href: '?page=' + (currentPage + 1) },
|
|
422
423
|
'Next >>'
|
|
@@ -480,38 +481,38 @@ var MasterDeck = function (_React$Component) {
|
|
|
480
481
|
_props$lgInfeedAd = _props.lgInfeedAd,
|
|
481
482
|
lgInfeedAd = _props$lgInfeedAd === undefined ? false : _props$lgInfeedAd;
|
|
482
483
|
|
|
483
|
-
return
|
|
484
|
+
return React.createElement(
|
|
484
485
|
'div',
|
|
485
486
|
{ className: 'contentDeck' },
|
|
486
|
-
autoScroll ?
|
|
487
|
-
|
|
487
|
+
autoScroll ? React.createElement(
|
|
488
|
+
React.Fragment,
|
|
488
489
|
null,
|
|
489
|
-
|
|
490
|
+
React.createElement(
|
|
490
491
|
InfiniteScroll,
|
|
491
492
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.9 },
|
|
492
|
-
|
|
493
|
+
React.createElement(
|
|
493
494
|
Container,
|
|
494
495
|
null,
|
|
495
496
|
this.cardLoader(page, columns, variant, brandInsightAd, showBI, lgInfeedAd)
|
|
496
497
|
)
|
|
497
498
|
),
|
|
498
|
-
|
|
499
|
+
React.createElement(
|
|
499
500
|
'noscript',
|
|
500
501
|
null,
|
|
501
502
|
this.renderManualPagination()
|
|
502
503
|
)
|
|
503
|
-
) :
|
|
504
|
-
|
|
504
|
+
) : React.createElement(
|
|
505
|
+
React.Fragment,
|
|
505
506
|
null,
|
|
506
|
-
|
|
507
|
+
React.createElement(
|
|
507
508
|
Container,
|
|
508
509
|
null,
|
|
509
510
|
this.cardLoader(page, columns, variant, brandInsightAd, showBI, lgInfeedAd)
|
|
510
511
|
),
|
|
511
|
-
|
|
512
|
+
React.createElement(
|
|
512
513
|
'div',
|
|
513
514
|
{ style: { padding: '0px 10px' } },
|
|
514
|
-
this.state.scrolling &&
|
|
515
|
+
this.state.scrolling && React.createElement(
|
|
515
516
|
'button',
|
|
516
517
|
{
|
|
517
518
|
className: 'btn',
|
|
@@ -531,7 +532,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
531
532
|
'Load More'
|
|
532
533
|
)
|
|
533
534
|
),
|
|
534
|
-
|
|
535
|
+
React.createElement(
|
|
535
536
|
'noscript',
|
|
536
537
|
null,
|
|
537
538
|
this.renderManualPagination()
|
|
@@ -542,7 +543,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
542
543
|
}]);
|
|
543
544
|
|
|
544
545
|
return MasterDeck;
|
|
545
|
-
}(
|
|
546
|
+
}(React.Component);
|
|
546
547
|
|
|
547
548
|
var MasterDeck$1 = withRouter(MasterDeck);
|
|
548
549
|
|