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