@mjhls/mjh-framework 1.0.819-ad-refresh → 1.0.820
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 +6 -27
- package/dist/cjs/AlgoliaSearch.js +14099 -17
- package/dist/cjs/ArticleCarousel.js +2 -1
- package/dist/cjs/ArticleProgramLandingPage.js +7 -5
- package/dist/cjs/ArticleSeriesLandingPage.js +5 -4
- package/dist/cjs/ArticleSeriesListing.js +6 -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 +19 -24
- package/dist/cjs/DeckContent.js +20 -25
- package/dist/cjs/DeckQueue.js +11 -17
- package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-93399f8c.js} +2 -1
- package/dist/cjs/EventsDeck.js +18 -18
- package/dist/cjs/ExternalResources.js +7 -5
- package/dist/cjs/Feature.js +6 -10
- package/dist/cjs/ForbesHero.js +12 -14
- package/dist/cjs/GridContent.js +24 -29
- package/dist/cjs/GridHero.js +10 -19
- package/dist/cjs/GroupDeck.js +4 -8
- package/dist/cjs/HamMagazine.js +15 -15
- package/dist/cjs/Hero.js +3 -14
- package/dist/cjs/HorizontalArticleListing.js +7 -5
- package/dist/cjs/HorizontalHero.js +7 -8
- package/dist/cjs/IssueContentDeck.js +10 -27
- package/dist/cjs/IssueDeck.js +10 -12
- package/dist/cjs/IssueLanding.js +38 -36
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +3 -2
- package/dist/cjs/MasterDeck.js +14 -13
- package/dist/cjs/MediaSeriesLanding.js +307 -407
- 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 +6 -7
- package/dist/cjs/OncliveLargeHero.js +21 -22
- package/dist/cjs/PartnerDetailListing.js +13 -16
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PubSection.js +6 -4
- package/dist/cjs/PublicationDeck.js +10 -12
- package/dist/cjs/PublicationLanding.js +26 -29
- package/dist/cjs/QueueDeckExpanded.js +74 -72
- package/dist/cjs/RecentNews.js +5 -8
- package/dist/cjs/RelatedContent.js +35 -38
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +5 -3
- package/dist/cjs/{SeriesSlider-2db54929.js → SeriesSlider-d54fa925.js} +7 -12
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-ecb4f972.js} +3 -3
- package/dist/cjs/TaxonomyCard.js +11 -14
- package/dist/cjs/TaxonomyDescription.js +7 -5
- package/dist/cjs/TemplateNormal.js +8 -7
- package/dist/cjs/ThumbnailCard.js +6 -10
- package/dist/cjs/Ustream.js +4 -4
- package/dist/cjs/VerticalHero.js +3 -7
- package/dist/cjs/VideoProgramLandingPage.js +7 -5
- package/dist/cjs/VideoSeriesCard.js +9 -8
- package/dist/cjs/VideoSeriesLandingPage.js +6 -4
- package/dist/cjs/VideoSeriesListing.js +7 -5
- package/dist/cjs/View.js +17 -16
- package/dist/cjs/YahooHero.js +11 -13
- package/dist/cjs/YoutubeGroup.js +9 -13
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/getSerializers.js +7 -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-48bd6cd5.js → index-179d21a3.js} +49 -93
- 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 +19 -32
- package/dist/cjs/{main-f1c77adb.js → main-025fdc78.js} +3 -3
- package/dist/cjs/urlFor.js +34 -2
- 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 +8 -28
- package/dist/esm/AlgoliaSearch.js +14123 -41
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +7 -6
- package/dist/esm/ArticleProgramLandingPage.js +19 -17
- package/dist/esm/ArticleSeriesLandingPage.js +13 -12
- package/dist/esm/ArticleSeriesListing.js +33 -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 +32 -37
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +63 -68
- package/dist/esm/DeckQueue.js +48 -54
- package/dist/esm/{Dfp-be030f2a.js → Dfp-43f121ff.js} +11 -10
- package/dist/esm/EventsDeck.js +81 -81
- package/dist/esm/ExternalResources.js +37 -35
- package/dist/esm/Feature.js +20 -24
- package/dist/esm/ForbesHero.js +32 -34
- package/dist/esm/GridContent.js +109 -114
- package/dist/esm/GridHero.js +31 -40
- package/dist/esm/GroupDeck.js +38 -42
- package/dist/esm/HamMagazine.js +95 -95
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +8 -19
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +33 -31
- package/dist/esm/HorizontalHero.js +25 -26
- package/dist/esm/IssueContentDeck.js +48 -65
- package/dist/esm/IssueDeck.js +43 -45
- package/dist/esm/IssueLanding.js +53 -51
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +17 -16
- package/dist/esm/MasterDeck.js +48 -47
- package/dist/esm/MediaSeriesLanding.js +334 -434
- 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 +18 -19
- package/dist/esm/OncliveLargeHero.js +58 -59
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +68 -71
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +16 -14
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +43 -45
- package/dist/esm/PublicationLanding.js +75 -78
- package/dist/esm/QueueDeckExpanded.js +262 -260
- package/dist/esm/RecentNews.js +21 -24
- package/dist/esm/RelatedContent.js +46 -49
- 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 +21 -19
- package/dist/esm/{SeriesSlider-c8477bf3.js → SeriesSlider-8f2aca58.js} +25 -30
- 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 +43 -46
- package/dist/esm/TaxonomyDescription.js +15 -13
- package/dist/esm/TemplateNormal.js +31 -30
- package/dist/esm/ThumbnailCard.js +11 -15
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +14 -18
- package/dist/esm/VideoProgramLandingPage.js +26 -24
- package/dist/esm/VideoSeriesCard.js +19 -18
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +14 -12
- package/dist/esm/VideoSeriesListing.js +50 -48
- package/dist/esm/View.js +178 -177
- package/dist/esm/YahooHero.js +29 -31
- package/dist/esm/YoutubeGroup.js +36 -40
- 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 +10 -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-343d9c07.js → index-5cc7293b.js} +357 -401
- 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 +43 -55
- 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/urlFor.js +34 -2
- 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/IssueDeck.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
2
2
|
import { _ as _extends } from './extends-60e0e1c6.js';
|
|
3
3
|
import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
|
|
4
|
-
import
|
|
4
|
+
import React, { useState, useEffect, useRef } from 'react';
|
|
5
5
|
import Row from 'react-bootstrap/Row';
|
|
6
6
|
import Col from 'react-bootstrap/Col';
|
|
7
7
|
import Button from 'react-bootstrap/Button';
|
|
8
8
|
import Card from 'react-bootstrap/Card';
|
|
9
|
-
import { L as LazyLoad } from './index-
|
|
10
|
-
import
|
|
11
|
-
import { I as InfiniteScroll } from './index.es-
|
|
9
|
+
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
10
|
+
import urlFor from './urlFor.js';
|
|
11
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
12
12
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
13
13
|
import './es6.string.iterator-bc33758b.js';
|
|
14
14
|
import './_to-object-b50e61c3.js';
|
|
@@ -18,6 +18,7 @@ import './_object-pie-133f504a.js';
|
|
|
18
18
|
import './web.dom.iterable-4109ff68.js';
|
|
19
19
|
import 'react-dom';
|
|
20
20
|
import 'prop-types';
|
|
21
|
+
import './index-0dbff1d1.js';
|
|
21
22
|
|
|
22
23
|
var usePrevious = function usePrevious(value) {
|
|
23
24
|
var ref = useRef();
|
|
@@ -30,8 +31,12 @@ var usePrevious = function usePrevious(value) {
|
|
|
30
31
|
var IssueDeck = function IssueDeck(props) {
|
|
31
32
|
var data = props.data,
|
|
32
33
|
href = props.href,
|
|
33
|
-
imageHeight = props.imageHeight,
|
|
34
|
-
|
|
34
|
+
_props$imageHeight = props.imageHeight,
|
|
35
|
+
imageHeight = _props$imageHeight === undefined ? null : _props$imageHeight,
|
|
36
|
+
_props$imageWidth = props.imageWidth,
|
|
37
|
+
imageWidth = _props$imageWidth === undefined ? null : _props$imageWidth,
|
|
38
|
+
_props$imageFit = props.imageFit,
|
|
39
|
+
imageFit = _props$imageFit === undefined ? null : _props$imageFit,
|
|
35
40
|
Website = props.Website,
|
|
36
41
|
client = props.client,
|
|
37
42
|
publication = props.publication,
|
|
@@ -63,17 +68,10 @@ var IssueDeck = function IssueDeck(props) {
|
|
|
63
68
|
|
|
64
69
|
var prevValues = usePrevious(values);
|
|
65
70
|
|
|
66
|
-
var urlFor = function urlFor(source) {
|
|
67
|
-
var builder = imageUrlBuilder(client);
|
|
68
|
-
return builder.image(source).auto('format');
|
|
69
|
-
};
|
|
70
|
-
|
|
71
71
|
var renderCardImage = function renderCardImage(thumbnail) {
|
|
72
72
|
if (thumbnail && thumbnail.asset) {
|
|
73
|
-
var url = urlFor(thumbnail);
|
|
74
|
-
|
|
75
|
-
if (imageWidth) url = url.width(imageWidth);
|
|
76
|
-
return url.url();
|
|
73
|
+
var url = urlFor({ client: client, source: thumbnail, imageHeight: imageHeight, imageWidth: imageWidth, imageFit: imageFit });
|
|
74
|
+
return url;
|
|
77
75
|
} else {
|
|
78
76
|
return Website.logo;
|
|
79
77
|
}
|
|
@@ -133,71 +131,71 @@ var IssueDeck = function IssueDeck(props) {
|
|
|
133
131
|
}
|
|
134
132
|
}, [issuesData, setScrolling, count]);
|
|
135
133
|
|
|
136
|
-
return
|
|
134
|
+
return React.createElement(
|
|
137
135
|
InfiniteScroll,
|
|
138
136
|
{ dataLength: issuesData && issuesData.length, next: function next() {
|
|
139
137
|
return loadMore();
|
|
140
138
|
}, hasMore: scrolling, scrollThreshold: 0.9 },
|
|
141
|
-
|
|
139
|
+
React.createElement(
|
|
142
140
|
Row,
|
|
143
141
|
null,
|
|
144
142
|
issuesData && issuesData.length ? issuesData.map(function (row, index) {
|
|
145
|
-
return publication && row.identifier && row.identifier.current &&
|
|
143
|
+
return publication && row.identifier && row.identifier.current && React.createElement(
|
|
146
144
|
Col,
|
|
147
145
|
{ md: 12, lg: 12, key: index },
|
|
148
|
-
|
|
146
|
+
React.createElement(
|
|
149
147
|
Card,
|
|
150
148
|
{ className: 'queue-card journal-queue', style: { borderTop: '1px solid #EEE' } },
|
|
151
|
-
|
|
149
|
+
React.createElement(
|
|
152
150
|
Row,
|
|
153
151
|
{ style: { flexDirection: 'left' } },
|
|
154
|
-
|
|
152
|
+
React.createElement(
|
|
155
153
|
Col,
|
|
156
154
|
{ md: 12, lg: 4, className: 'body-image', style: { textAlign: 'center' } },
|
|
157
|
-
row.issues.length > 0 ?
|
|
155
|
+
row.issues.length > 0 ? React.createElement(
|
|
158
156
|
'a',
|
|
159
157
|
{ href: href + '/' + publication + '/' + row.identifier.current, style: { width: '100%' } },
|
|
160
|
-
row.thumbnail &&
|
|
158
|
+
row.thumbnail && React.createElement(
|
|
161
159
|
LazyLoad,
|
|
162
160
|
{ height: imageHeight },
|
|
163
|
-
|
|
161
|
+
React.createElement(Card.Img, { variant: 'top', src: renderCardImage(row.thumbnail), alt: row.name, style: { objectFit: 'contain' } })
|
|
164
162
|
)
|
|
165
|
-
) :
|
|
163
|
+
) : React.createElement(
|
|
166
164
|
'a',
|
|
167
165
|
null,
|
|
168
|
-
row.thumbnail &&
|
|
166
|
+
row.thumbnail && React.createElement(
|
|
169
167
|
LazyLoad,
|
|
170
168
|
{ height: imageHeight },
|
|
171
|
-
|
|
169
|
+
React.createElement(Card.Img, { variant: 'top', src: renderCardImage(row.thumbnail), alt: row.name, style: { objectFit: 'contain' } })
|
|
172
170
|
)
|
|
173
171
|
)
|
|
174
172
|
),
|
|
175
|
-
|
|
173
|
+
React.createElement(
|
|
176
174
|
Col,
|
|
177
175
|
{ md: 12, lg: 8 },
|
|
178
|
-
|
|
176
|
+
React.createElement(
|
|
179
177
|
Card.Body,
|
|
180
178
|
{ style: { padding: '20px' }, className: 'body-text' },
|
|
181
|
-
|
|
179
|
+
React.createElement(
|
|
182
180
|
Row,
|
|
183
181
|
null,
|
|
184
|
-
|
|
182
|
+
React.createElement(
|
|
185
183
|
Col,
|
|
186
184
|
null,
|
|
187
|
-
|
|
185
|
+
React.createElement(
|
|
188
186
|
Card.Title,
|
|
189
187
|
null,
|
|
190
188
|
row.name
|
|
191
189
|
)
|
|
192
190
|
)
|
|
193
191
|
),
|
|
194
|
-
|
|
192
|
+
React.createElement(
|
|
195
193
|
Row,
|
|
196
194
|
null,
|
|
197
|
-
|
|
195
|
+
React.createElement(
|
|
198
196
|
Col,
|
|
199
197
|
null,
|
|
200
|
-
|
|
198
|
+
React.createElement(
|
|
201
199
|
'div',
|
|
202
200
|
null,
|
|
203
201
|
'Volume: ',
|
|
@@ -205,13 +203,13 @@ var IssueDeck = function IssueDeck(props) {
|
|
|
205
203
|
)
|
|
206
204
|
)
|
|
207
205
|
),
|
|
208
|
-
|
|
206
|
+
React.createElement(
|
|
209
207
|
Row,
|
|
210
208
|
null,
|
|
211
|
-
|
|
209
|
+
React.createElement(
|
|
212
210
|
Col,
|
|
213
211
|
null,
|
|
214
|
-
|
|
212
|
+
React.createElement(
|
|
215
213
|
'div',
|
|
216
214
|
null,
|
|
217
215
|
'Number: ',
|
|
@@ -219,19 +217,19 @@ var IssueDeck = function IssueDeck(props) {
|
|
|
219
217
|
)
|
|
220
218
|
)
|
|
221
219
|
),
|
|
222
|
-
|
|
220
|
+
React.createElement(
|
|
223
221
|
Row,
|
|
224
222
|
null,
|
|
225
|
-
row.issues.length > 0 &&
|
|
223
|
+
row.issues.length > 0 && React.createElement(
|
|
226
224
|
'a',
|
|
227
225
|
{ style: { paddingRight: '15px', paddingLeft: '15px' }, href: href + '/' + publication + '/' + row.identifier.current },
|
|
228
|
-
|
|
226
|
+
React.createElement(
|
|
229
227
|
Button,
|
|
230
228
|
{ style: { marginTop: '20px', marginRight: '1rem' }, variant: 'secondary' },
|
|
231
229
|
'View Issue'
|
|
232
230
|
)
|
|
233
231
|
),
|
|
234
|
-
row.pdf && row.pdf.asset &&
|
|
232
|
+
row.pdf && row.pdf.asset && React.createElement(
|
|
235
233
|
'a',
|
|
236
234
|
{ rel: 'noopener', href: row.pdf.asset.url, target: '_blank', className: 'btn btn-primary', style: { marginTop: '20px' } },
|
|
237
235
|
'Download Issue'
|
|
@@ -242,13 +240,13 @@ var IssueDeck = function IssueDeck(props) {
|
|
|
242
240
|
)
|
|
243
241
|
)
|
|
244
242
|
);
|
|
245
|
-
}) :
|
|
243
|
+
}) : React.createElement(
|
|
246
244
|
'div',
|
|
247
245
|
null,
|
|
248
|
-
|
|
246
|
+
React.createElement(
|
|
249
247
|
'h5',
|
|
250
248
|
null,
|
|
251
|
-
|
|
249
|
+
React.createElement(
|
|
252
250
|
'em',
|
|
253
251
|
{ className: 'pl-3' },
|
|
254
252
|
'New content coming soon, please check back later.'
|
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';
|
|
@@ -14,18 +14,20 @@ import './core.get-iterator-method-133dfacd.js';
|
|
|
14
14
|
import './toConsumableArray-6d9a4616.js';
|
|
15
15
|
import './_iter-detect-7e5e5ce2.js';
|
|
16
16
|
import 'react-bootstrap';
|
|
17
|
+
import './urlFor.js';
|
|
17
18
|
import './index-0dbff1d1.js';
|
|
18
|
-
import './index.es-
|
|
19
|
+
import './index.es-c6222053.js';
|
|
19
20
|
import './moment-bc12cb97.js';
|
|
20
|
-
import './visibility-sensor-
|
|
21
|
+
import './visibility-sensor-f40c2564.js';
|
|
21
22
|
import 'react-dom';
|
|
22
|
-
import './index-
|
|
23
|
+
import './index-2446af28.js';
|
|
24
|
+
import './events-6c3a7a63.js';
|
|
23
25
|
import 'prop-types';
|
|
24
26
|
import 'next/router';
|
|
25
|
-
import './index-
|
|
26
|
-
import './main-
|
|
27
|
+
import './index-35bdcc81.js';
|
|
28
|
+
import './main-b5c5aac1.js';
|
|
27
29
|
import './entities-932b50cf.js';
|
|
28
|
-
import './ADInfeed-
|
|
30
|
+
import './ADInfeed-28b1e946.js';
|
|
29
31
|
import 'react-bootstrap/Card';
|
|
30
32
|
import './AdSlot.js';
|
|
31
33
|
import './debounce-533d9748.js';
|
|
@@ -36,9 +38,9 @@ import './stringify-59c8f690.js';
|
|
|
36
38
|
import './asyncToGenerator-7f8f9219.js';
|
|
37
39
|
import './_library-528f1934.js';
|
|
38
40
|
import './Segment.js';
|
|
39
|
-
import './AuthorComponent-
|
|
41
|
+
import './AuthorComponent-5ae7409f.js';
|
|
40
42
|
import './lodash-f97fd99a.js';
|
|
41
|
-
import './ADlgInfeed-
|
|
43
|
+
import './ADlgInfeed-0b474b02.js';
|
|
42
44
|
import './getContentCategory-15dcc413.js';
|
|
43
45
|
import './timeDifferenceCalc.js';
|
|
44
46
|
import 'react-bootstrap/Breadcrumb';
|
|
@@ -46,7 +48,7 @@ import './index-c7e2ac95.js';
|
|
|
46
48
|
import './util-3ab476bf.js';
|
|
47
49
|
import './typeof-a286cf0c.js';
|
|
48
50
|
import './_is-array-3e99e06e.js';
|
|
49
|
-
import './brightcove-react-player-loader.es-
|
|
51
|
+
import './brightcove-react-player-loader.es-b43c695a.js';
|
|
50
52
|
import './GroupDeck.js';
|
|
51
53
|
import './smoothscroll-fa4e3f8c.js';
|
|
52
54
|
import './SocialShare.js';
|
|
@@ -60,39 +62,39 @@ import 'react-bootstrap/Col';
|
|
|
60
62
|
import './inherits-a41fe93f.js';
|
|
61
63
|
import './_object-sap-f353c2a9.js';
|
|
62
64
|
import './define-property-fe54dc9f.js';
|
|
63
|
-
import './index.esm-
|
|
64
|
-
import './iconBase-
|
|
65
|
+
import './index.esm-3fdda599.js';
|
|
66
|
+
import './iconBase-602d52fe.js';
|
|
65
67
|
import 'react-bootstrap/Figure';
|
|
66
68
|
|
|
67
|
-
/* usage
|
|
68
|
-
import Settings, { Ads } from '../../../../settings'
|
|
69
|
-
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
70
|
-
import client from '../../../../client'
|
|
71
|
-
import moment from 'moment'
|
|
72
|
-
import Shell from '../../../../components/2.0/Shell'
|
|
73
|
-
import { pageview } from '../../../../utilities/gtag'
|
|
74
|
-
|
|
75
|
-
const Issue = (props) => {
|
|
76
|
-
const { pubIssue, cache } = props
|
|
77
|
-
const targeting = {
|
|
78
|
-
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
79
|
-
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
80
|
-
}
|
|
81
|
-
return (
|
|
82
|
-
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
83
|
-
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
84
|
-
</Shell>
|
|
85
|
-
)
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
Issue.getInitialProps = async (ctx) => {
|
|
89
|
-
const { query } = ctx
|
|
90
|
-
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
91
|
-
)
|
|
92
|
-
return { pubIssue }
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
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
|
|
96
98
|
*/
|
|
97
99
|
|
|
98
100
|
var IssueLanding = function IssueLanding(props) {
|
|
@@ -118,22 +120,22 @@ var IssueLanding = function IssueLanding(props) {
|
|
|
118
120
|
_props$imageWidth = props.imageWidth,
|
|
119
121
|
imageWidth = _props$imageWidth === undefined ? 480 : _props$imageWidth;
|
|
120
122
|
|
|
121
|
-
return
|
|
123
|
+
return React.createElement(
|
|
122
124
|
'div',
|
|
123
125
|
{ id: 'issueLanding' },
|
|
124
|
-
|
|
125
|
-
pubIssue.issue.source &&
|
|
126
|
+
React.createElement(Breadcrumbs, null),
|
|
127
|
+
pubIssue.issue.source && React.createElement(
|
|
126
128
|
'p',
|
|
127
129
|
{ className: 'badge badge-primary' },
|
|
128
130
|
pubIssue.issue.source
|
|
129
131
|
),
|
|
130
|
-
pubIssue.issue.description &&
|
|
131
|
-
|
|
132
|
+
pubIssue.issue.description && React.createElement(
|
|
133
|
+
React.Fragment,
|
|
132
134
|
null,
|
|
133
|
-
|
|
134
|
-
|
|
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' } })
|
|
135
137
|
),
|
|
136
|
-
|
|
138
|
+
React.createElement(QueueDeckExpanded, {
|
|
137
139
|
client: client,
|
|
138
140
|
mapping: settings.mapping,
|
|
139
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 };
|