@mjhls/mjh-framework 1.0.877 → 1.0.878
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 +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-94f8ccdf.js → Dfp-9be904d5.js} +2 -1
- package/dist/cjs/EventsDeck.js +26 -20
- 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/OncliveHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +8 -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-f9128638.js → SeriesSlider-ce3261cb.js} +5 -5
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-4942ddfc.js → SocialSearchComponent-5ec44406.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-6d59cc5b.js → getTargeting-9d509319.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-8041a4eb.js +99 -0
- package/dist/cjs/{index-2a2528f6.js → index-e2ec2eae.js} +3 -3
- 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-c1e16606.js → index.esm-44f3e2d0.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-c7b8f6be.js → ADInfeed-014c7bd1.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-1aea5403.js → ADlgInfeed-75e097f4.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 +14121 -40
- 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-defe68b6.js → AuthorComponent-46a745ba.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-4b99f79d.js → Dfp-4ca12f2e.js} +11 -10
- package/dist/esm/EventsDeck.js +89 -83
- 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 +125 -124
- 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 +332 -432
- 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/OncliveHero.js +13 -13
- package/dist/esm/OncliveLargeHero.js +50 -50
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +67 -66
- 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-98b7a870.js → SeriesSlider-7a6c45ce.js} +23 -23
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-9458fac6.js → SocialSearchComponent-bdecba55.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 +30 -29
- 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 +174 -173
- package/dist/esm/YahooHero.js +23 -23
- package/dist/esm/YoutubeGroup.js +38 -38
- 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-3792eba9.js → getTargeting-ff2c9409.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-67e1773f.js +94 -0
- package/dist/esm/{index-1d312e35.js → index-f2783f14.js} +419 -419
- 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-9b042655.js → index.esm-c6715e80.js} +1 -1
- package/dist/esm/index.js +40 -39
- package/dist/esm/{main-1894c974.js → main-4136096f.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 +111 -111
- /package/dist/cjs/{ADInfeed-3c44e465.js → ADInfeed-f7e6956b.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-0c03dac2.js → ADlgInfeed-4df6d147.js} +0 -0
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { _ as _extends } from './extends-dc6a71fd.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-f2783f14.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './core.get-iterator-method-e903ff31.js';
|
|
9
9
|
import './_object-pie-133f504a.js';
|
|
@@ -14,17 +14,18 @@ import './_iter-detect-f089461c.js';
|
|
|
14
14
|
import 'react-bootstrap';
|
|
15
15
|
import './urlFor.js';
|
|
16
16
|
import './index-0dbff1d1.js';
|
|
17
|
-
import './index.es-
|
|
17
|
+
import './index.es-c6222053.js';
|
|
18
18
|
import './moment-bc12cb97.js';
|
|
19
|
-
import './visibility-sensor-
|
|
19
|
+
import './visibility-sensor-f40c2564.js';
|
|
20
20
|
import 'react-dom';
|
|
21
|
-
import './index-
|
|
21
|
+
import './index-2446af28.js';
|
|
22
|
+
import './events-6c3a7a63.js';
|
|
22
23
|
import 'prop-types';
|
|
23
24
|
import 'next/router';
|
|
24
|
-
import './index-
|
|
25
|
-
import './main-
|
|
25
|
+
import './index-35bdcc81.js';
|
|
26
|
+
import './main-4136096f.js';
|
|
26
27
|
import './entities-932b50cf.js';
|
|
27
|
-
import './ADInfeed-
|
|
28
|
+
import './ADInfeed-014c7bd1.js';
|
|
28
29
|
import 'react-bootstrap/Card';
|
|
29
30
|
import './AdSlot.js';
|
|
30
31
|
import './debounce-533d9748.js';
|
|
@@ -35,9 +36,9 @@ import './stringify-c21932b3.js';
|
|
|
35
36
|
import './asyncToGenerator-b4dfe691.js';
|
|
36
37
|
import './_library-528f1934.js';
|
|
37
38
|
import './Segment.js';
|
|
38
|
-
import './AuthorComponent-
|
|
39
|
+
import './AuthorComponent-46a745ba.js';
|
|
39
40
|
import './lodash-f97fd99a.js';
|
|
40
|
-
import './ADlgInfeed-
|
|
41
|
+
import './ADlgInfeed-75e097f4.js';
|
|
41
42
|
import './getContentCategory-15dcc413.js';
|
|
42
43
|
import './timeDifferenceCalc.js';
|
|
43
44
|
import 'react-bootstrap/Breadcrumb';
|
|
@@ -45,7 +46,7 @@ import './index-c7e2ac95.js';
|
|
|
45
46
|
import './util-3ab476bf.js';
|
|
46
47
|
import './typeof-83d9eb10.js';
|
|
47
48
|
import './_is-array-893ab020.js';
|
|
48
|
-
import './brightcove-react-player-loader.es-
|
|
49
|
+
import './brightcove-react-player-loader.es-b43c695a.js';
|
|
49
50
|
import './GroupDeck.js';
|
|
50
51
|
import './smoothscroll-fa4e3f8c.js';
|
|
51
52
|
import './SocialShare.js';
|
|
@@ -59,42 +60,42 @@ import 'react-bootstrap/Col';
|
|
|
59
60
|
import './inherits-8a801a18.js';
|
|
60
61
|
import './_object-sap-169d6272.js';
|
|
61
62
|
import './define-property-99e66838.js';
|
|
62
|
-
import './index.esm-
|
|
63
|
-
import './iconBase-
|
|
63
|
+
import './index.esm-3fdda599.js';
|
|
64
|
+
import './iconBase-602d52fe.js';
|
|
64
65
|
import 'react-bootstrap/Figure';
|
|
65
66
|
import 'react-bootstrap/OverlayTrigger';
|
|
66
67
|
import 'react-bootstrap/Tooltip';
|
|
67
68
|
import 'react-bootstrap/Popover';
|
|
68
69
|
|
|
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
|
|
70
|
+
/* usage
|
|
71
|
+
import Settings, { Ads } from '../../../../settings'
|
|
72
|
+
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
73
|
+
import client from '../../../../client'
|
|
74
|
+
import moment from 'moment'
|
|
75
|
+
import Shell from '../../../../components/2.0/Shell'
|
|
76
|
+
import { pageview } from '../../../../utilities/gtag'
|
|
77
|
+
|
|
78
|
+
const Issue = (props) => {
|
|
79
|
+
const { pubIssue, cache } = props
|
|
80
|
+
const targeting = {
|
|
81
|
+
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
82
|
+
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
83
|
+
}
|
|
84
|
+
return (
|
|
85
|
+
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
86
|
+
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
87
|
+
</Shell>
|
|
88
|
+
)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
Issue.getInitialProps = async (ctx) => {
|
|
92
|
+
const { query } = ctx
|
|
93
|
+
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
94
|
+
)
|
|
95
|
+
return { pubIssue }
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export default Issue
|
|
98
99
|
*/
|
|
99
100
|
|
|
100
101
|
var IssueLanding = function IssueLanding(props) {
|
|
@@ -120,22 +121,22 @@ var IssueLanding = function IssueLanding(props) {
|
|
|
120
121
|
_props$imageWidth = props.imageWidth,
|
|
121
122
|
imageWidth = _props$imageWidth === undefined ? 480 : _props$imageWidth;
|
|
122
123
|
|
|
123
|
-
return
|
|
124
|
+
return React.createElement(
|
|
124
125
|
'div',
|
|
125
126
|
{ id: 'issueLanding' },
|
|
126
|
-
|
|
127
|
-
pubIssue.issue.source &&
|
|
127
|
+
React.createElement(Breadcrumbs, null),
|
|
128
|
+
pubIssue.issue.source && React.createElement(
|
|
128
129
|
'p',
|
|
129
130
|
{ className: 'badge badge-primary' },
|
|
130
131
|
pubIssue.issue.source
|
|
131
132
|
),
|
|
132
|
-
pubIssue.issue.description &&
|
|
133
|
-
|
|
133
|
+
pubIssue.issue.description && React.createElement(
|
|
134
|
+
React.Fragment,
|
|
134
135
|
null,
|
|
135
|
-
|
|
136
|
-
|
|
136
|
+
React.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: pubIssue.issue.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config())),
|
|
137
|
+
React.createElement('div', { style: { clear: 'both' } })
|
|
137
138
|
),
|
|
138
|
-
|
|
139
|
+
React.createElement(QueueDeckExpanded, {
|
|
139
140
|
client: client,
|
|
140
141
|
mapping: settings.mapping,
|
|
141
142
|
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';
|
|
@@ -10,7 +10,8 @@ import './AdSlot.js';
|
|
|
10
10
|
import './extends-dc6a71fd.js';
|
|
11
11
|
import './_object-pie-133f504a.js';
|
|
12
12
|
import 'prop-types';
|
|
13
|
-
import './index-
|
|
13
|
+
import './index-2446af28.js';
|
|
14
|
+
import './events-6c3a7a63.js';
|
|
14
15
|
import './debounce-533d9748.js';
|
|
15
16
|
import './isSymbol-a7e9aafe.js';
|
|
16
17
|
import './toNumber-5aeba6e7.js';
|
|
@@ -19,7 +20,7 @@ import './stringify-c21932b3.js';
|
|
|
19
20
|
import './asyncToGenerator-b4dfe691.js';
|
|
20
21
|
import './_library-528f1934.js';
|
|
21
22
|
import './_iter-detect-f089461c.js';
|
|
22
|
-
import './main-
|
|
23
|
+
import './main-4136096f.js';
|
|
23
24
|
|
|
24
25
|
var LeftNav = function LeftNav(props) {
|
|
25
26
|
var leftItems = props.leftItems,
|
|
@@ -63,21 +64,21 @@ var LeftNav = function LeftNav(props) {
|
|
|
63
64
|
|
|
64
65
|
var renderListGroupItem = function renderListGroupItem(subRow) {
|
|
65
66
|
if (checkUrlIsExternal(subRow.url)) {
|
|
66
|
-
return
|
|
67
|
+
return React.createElement(
|
|
67
68
|
'a',
|
|
68
69
|
{ target: subRow.blank ? '_blank' : '_self', needsegmentsupport: subRow.needSegmentSupport ? 'true' : '', href: subRow.url },
|
|
69
70
|
subRow.name
|
|
70
71
|
);
|
|
71
72
|
}
|
|
72
73
|
|
|
73
|
-
return
|
|
74
|
+
return React.createElement(
|
|
74
75
|
'a',
|
|
75
76
|
{ href: subRow.url || '#', target: subRow.blank ? '_blank' : '_self', needsegmentsupport: subRow.needSegmentSupport ? 'true' : '' },
|
|
76
77
|
subRow.name
|
|
77
78
|
);
|
|
78
79
|
};
|
|
79
80
|
|
|
80
|
-
return
|
|
81
|
+
return React.createElement(
|
|
81
82
|
'section',
|
|
82
83
|
{ ref: leftNavRef },
|
|
83
84
|
leftItems && leftItems.map(function (row, index) {
|
|
@@ -85,27 +86,27 @@ var LeftNav = function LeftNav(props) {
|
|
|
85
86
|
// Since Webcast Ad should be between spotlight and sub navigation it should be passed as the second element of leftItems array from site level.
|
|
86
87
|
// Webcast AD should have atleast adUnit , networkID, and "_type" as "webcastAD"
|
|
87
88
|
if (row._type && row._type === 'webcastAD' && row.adUnit) {
|
|
88
|
-
return
|
|
89
|
+
return React.createElement(
|
|
89
90
|
'div',
|
|
90
91
|
{ key: index },
|
|
91
|
-
|
|
92
|
+
React.createElement(ADWebcast, { webcastAd: row, refreshFlag: row.refreshFlag ? row.refreshFlag : false })
|
|
92
93
|
);
|
|
93
94
|
} else {
|
|
94
|
-
return
|
|
95
|
+
return React.createElement(
|
|
95
96
|
'nav',
|
|
96
97
|
{ key: index, 'aria-label': 'Secondary' },
|
|
97
|
-
|
|
98
|
+
React.createElement(
|
|
98
99
|
'div',
|
|
99
100
|
{ style: { display: 'flex', justifyContent: 'space-between', flexWrap: 'wrap' }, className: 'secondary-nav-title list-group-item active' },
|
|
100
|
-
|
|
101
|
+
React.createElement(
|
|
101
102
|
'span',
|
|
102
103
|
{ className: 'mr-1', style: { display: 'inline-block', fontWeight: 'bold', fontSize: '1rem' } },
|
|
103
104
|
row.name
|
|
104
105
|
),
|
|
105
|
-
row.url && SeeAll &&
|
|
106
|
+
row.url && SeeAll && React.createElement(
|
|
106
107
|
'span',
|
|
107
108
|
{ style: { marginLeft: 'auto', display: 'inline-block' } },
|
|
108
|
-
|
|
109
|
+
React.createElement(
|
|
109
110
|
'a',
|
|
110
111
|
{ style: { color: 'white', fontSize: '.6rem' }, href: row.url },
|
|
111
112
|
'See All ',
|
|
@@ -113,11 +114,11 @@ var LeftNav = function LeftNav(props) {
|
|
|
113
114
|
)
|
|
114
115
|
)
|
|
115
116
|
),
|
|
116
|
-
|
|
117
|
+
React.createElement(
|
|
117
118
|
'ul',
|
|
118
119
|
{ style: sideNavStyles },
|
|
119
120
|
row.subQuery && row.subQuery.map(function (subRow, subIndex) {
|
|
120
|
-
return
|
|
121
|
+
return React.createElement(
|
|
121
122
|
ListGroup.Item,
|
|
122
123
|
{ as: 'li', key: subIndex + '_2' },
|
|
123
124
|
renderListGroupItem(subRow)
|
|
@@ -130,7 +131,7 @@ var LeftNav = function LeftNav(props) {
|
|
|
130
131
|
);
|
|
131
132
|
};
|
|
132
133
|
|
|
133
|
-
var LeftNav$1 =
|
|
134
|
+
var LeftNav$1 = React.memo(LeftNav);
|
|
134
135
|
|
|
135
136
|
export default LeftNav$1;
|
|
136
137
|
export { LeftNav };
|
package/dist/esm/MasterDeck.js
CHANGED
|
@@ -2,8 +2,8 @@ import { _ as _toConsumableArray } from './toConsumableArray-7b1c0e23.js';
|
|
|
2
2
|
import { _ as _Promise } from './asyncToGenerator-b4dfe691.js';
|
|
3
3
|
import { _ as _extends } from './extends-dc6a71fd.js';
|
|
4
4
|
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-8a801a18.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,13 +12,13 @@ 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 './slicedToArray-ca2c8b8d.js';
|
|
18
18
|
import './index-0dbff1d1.js';
|
|
19
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
20
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
21
|
-
import './main-
|
|
19
|
+
import { A as ADlgInfeed } from './ADlgInfeed-75e097f4.js';
|
|
20
|
+
import { A as ADInfeed } from './ADInfeed-014c7bd1.js';
|
|
21
|
+
import './main-4136096f.js';
|
|
22
22
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
23
23
|
import './core.get-iterator-method-e903ff31.js';
|
|
24
24
|
import './_iter-detect-f089461c.js';
|
|
@@ -29,6 +29,7 @@ import './_object-sap-169d6272.js';
|
|
|
29
29
|
import './define-property-99e66838.js';
|
|
30
30
|
import './typeof-83d9eb10.js';
|
|
31
31
|
import './_is-array-893ab020.js';
|
|
32
|
+
import './events-6c3a7a63.js';
|
|
32
33
|
import 'prop-types';
|
|
33
34
|
import './isSymbol-a7e9aafe.js';
|
|
34
35
|
import './toNumber-5aeba6e7.js';
|
|
@@ -222,14 +223,14 @@ var MasterDeck = function (_React$Component) {
|
|
|
222
223
|
}
|
|
223
224
|
|
|
224
225
|
// please leave this for later debug purpose : Yong Jun.
|
|
225
|
-
/* console.log('page change reported', {
|
|
226
|
-
currentPage: currentPage,
|
|
227
|
-
pageNumber: pageNumber,
|
|
228
|
-
pathname: pathname,
|
|
229
|
-
path: path,
|
|
230
|
-
newPath: newPath,
|
|
231
|
-
firstPage: pageNumber === 1,
|
|
232
|
-
queryString: queryString
|
|
226
|
+
/* console.log('page change reported', {
|
|
227
|
+
currentPage: currentPage,
|
|
228
|
+
pageNumber: pageNumber,
|
|
229
|
+
pathname: pathname,
|
|
230
|
+
path: path,
|
|
231
|
+
newPath: newPath,
|
|
232
|
+
firstPage: pageNumber === 1,
|
|
233
|
+
queryString: queryString
|
|
233
234
|
}) */
|
|
234
235
|
|
|
235
236
|
if (pageview) {
|
|
@@ -324,7 +325,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
324
325
|
}
|
|
325
326
|
});
|
|
326
327
|
|
|
327
|
-
return
|
|
328
|
+
return React.createElement(
|
|
328
329
|
'div',
|
|
329
330
|
null,
|
|
330
331
|
data && _this.state.dataRemapped && data.length > 0 ? // If JS enabled and Data remapped with ads
|
|
@@ -332,24 +333,24 @@ var MasterDeck = function (_React$Component) {
|
|
|
332
333
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
333
334
|
|
|
334
335
|
if (row._type === 'lg-infeed' && row.adUnit) {
|
|
335
|
-
return
|
|
336
|
+
return React.createElement(ADlgInfeed, _extends({ index: index }, row));
|
|
336
337
|
// Returning view for infeed Ad
|
|
337
338
|
} else if (row._type === 'brandInsightAd' && row.adUnit) {
|
|
338
|
-
return
|
|
339
|
+
return React.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
339
340
|
} else if (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type)) {
|
|
340
341
|
// Returning view for articles
|
|
341
|
-
return
|
|
342
|
+
return React.createElement(
|
|
342
343
|
VisibilitySensor,
|
|
343
344
|
{
|
|
344
345
|
key: row._id ? row._id : index,
|
|
345
346
|
onChange: function onChange(isVisible) {
|
|
346
347
|
isVisible && _this.changePageNumber(pageNumber);
|
|
347
348
|
} },
|
|
348
|
-
|
|
349
|
-
|
|
349
|
+
React.createElement(
|
|
350
|
+
React.Fragment,
|
|
350
351
|
{ key: index },
|
|
351
|
-
|
|
352
|
-
_this.state.mobileView && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 &&
|
|
352
|
+
React.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding }),
|
|
353
|
+
_this.state.mobileView && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React.createElement(
|
|
353
354
|
'div',
|
|
354
355
|
{ className: 'ad-container', style: { margin: '0 auto' } },
|
|
355
356
|
_this.renderMobileAd(index, numberOfItemsBeforeAd, _this.rightItems)
|
|
@@ -363,24 +364,24 @@ var MasterDeck = function (_React$Component) {
|
|
|
363
364
|
data.map(function (row, index) {
|
|
364
365
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
365
366
|
if (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type)) {
|
|
366
|
-
return
|
|
367
|
+
return React.createElement(
|
|
367
368
|
VisibilitySensor,
|
|
368
369
|
{
|
|
369
370
|
key: row._id ? row._id : index,
|
|
370
371
|
onChange: function onChange(isVisible) {
|
|
371
372
|
isVisible && _this.changePageNumber(pageNumber);
|
|
372
373
|
} },
|
|
373
|
-
|
|
374
|
-
|
|
374
|
+
React.createElement(
|
|
375
|
+
React.Fragment,
|
|
375
376
|
{ key: index },
|
|
376
|
-
|
|
377
|
+
React.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage, isSeriesLanding: _this.isSeriesLanding })
|
|
377
378
|
)
|
|
378
379
|
);
|
|
379
380
|
}
|
|
380
|
-
}) :
|
|
381
|
+
}) : React.createElement(
|
|
381
382
|
'div',
|
|
382
383
|
null,
|
|
383
|
-
|
|
384
|
+
React.createElement(
|
|
384
385
|
'em',
|
|
385
386
|
null,
|
|
386
387
|
'New content coming soon, please check back later.'
|
|
@@ -389,7 +390,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
389
390
|
);
|
|
390
391
|
}, _this.renderMobileAd = function (index, numberOfItemsBeforeAd, rightItems) {
|
|
391
392
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
392
|
-
return
|
|
393
|
+
return React.createElement(
|
|
393
394
|
'div',
|
|
394
395
|
{ className: 'ad-container', style: { display: 'flex', flex: '1 0 auto', width: '100%', textAlign: 'center', marginBottom: '2rem' } },
|
|
395
396
|
rightItems[i].component
|
|
@@ -406,15 +407,15 @@ var MasterDeck = function (_React$Component) {
|
|
|
406
407
|
return null;
|
|
407
408
|
}
|
|
408
409
|
|
|
409
|
-
return
|
|
410
|
+
return React.createElement(
|
|
410
411
|
'div',
|
|
411
412
|
{ className: 'd-flex justify-content-between' },
|
|
412
|
-
currentPage && currentPage > 1 &&
|
|
413
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
413
414
|
'a',
|
|
414
415
|
{ href: '?page=' + (currentPage - 1) },
|
|
415
416
|
'<< Previous'
|
|
416
417
|
),
|
|
417
|
-
|
|
418
|
+
React.createElement(
|
|
418
419
|
'a',
|
|
419
420
|
{ href: '?page=' + (currentPage + 1) },
|
|
420
421
|
'Next >>'
|
|
@@ -478,38 +479,38 @@ var MasterDeck = function (_React$Component) {
|
|
|
478
479
|
_props$lgInfeedAd = _props.lgInfeedAd,
|
|
479
480
|
lgInfeedAd = _props$lgInfeedAd === undefined ? false : _props$lgInfeedAd;
|
|
480
481
|
|
|
481
|
-
return
|
|
482
|
+
return React.createElement(
|
|
482
483
|
'div',
|
|
483
484
|
{ className: 'contentDeck' },
|
|
484
|
-
autoScroll ?
|
|
485
|
-
|
|
485
|
+
autoScroll ? React.createElement(
|
|
486
|
+
React.Fragment,
|
|
486
487
|
null,
|
|
487
|
-
|
|
488
|
+
React.createElement(
|
|
488
489
|
InfiniteScroll,
|
|
489
490
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.9 },
|
|
490
|
-
|
|
491
|
+
React.createElement(
|
|
491
492
|
Container,
|
|
492
493
|
null,
|
|
493
494
|
this.cardLoader(page, columns, variant, brandInsightAd, showBI, lgInfeedAd)
|
|
494
495
|
)
|
|
495
496
|
),
|
|
496
|
-
|
|
497
|
+
React.createElement(
|
|
497
498
|
'noscript',
|
|
498
499
|
null,
|
|
499
500
|
this.renderManualPagination()
|
|
500
501
|
)
|
|
501
|
-
) :
|
|
502
|
-
|
|
502
|
+
) : React.createElement(
|
|
503
|
+
React.Fragment,
|
|
503
504
|
null,
|
|
504
|
-
|
|
505
|
+
React.createElement(
|
|
505
506
|
Container,
|
|
506
507
|
null,
|
|
507
508
|
this.cardLoader(page, columns, variant, brandInsightAd, showBI, lgInfeedAd)
|
|
508
509
|
),
|
|
509
|
-
|
|
510
|
+
React.createElement(
|
|
510
511
|
'div',
|
|
511
512
|
{ style: { padding: '0px 10px' } },
|
|
512
|
-
this.state.scrolling &&
|
|
513
|
+
this.state.scrolling && React.createElement(
|
|
513
514
|
'button',
|
|
514
515
|
{
|
|
515
516
|
className: 'btn',
|
|
@@ -529,7 +530,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
529
530
|
'Load More'
|
|
530
531
|
)
|
|
531
532
|
),
|
|
532
|
-
|
|
533
|
+
React.createElement(
|
|
533
534
|
'noscript',
|
|
534
535
|
null,
|
|
535
536
|
this.renderManualPagination()
|
|
@@ -540,7 +541,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
540
541
|
}]);
|
|
541
542
|
|
|
542
543
|
return MasterDeck;
|
|
543
|
-
}(
|
|
544
|
+
}(React.Component);
|
|
544
545
|
|
|
545
546
|
var MasterDeck$1 = withRouter(MasterDeck);
|
|
546
547
|
|