@mjhls/mjh-framework 1.0.817-image-crop-test-v4 → 1.0.817
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 +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 -14099
- package/dist/cjs/ArticleCarousel.js +1 -2
- package/dist/cjs/ArticleProgramLandingPage.js +5 -7
- package/dist/cjs/ArticleSeriesLandingPage.js +4 -5
- package/dist/cjs/ArticleSeriesListing.js +4 -6
- 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 +24 -19
- package/dist/cjs/DeckContent.js +25 -20
- package/dist/cjs/DeckQueue.js +17 -11
- package/dist/cjs/{Dfp-93399f8c.js → Dfp-3f0ed4c8.js} +1 -2
- package/dist/cjs/EventsDeck.js +18 -18
- package/dist/cjs/ExternalResources.js +5 -7
- package/dist/cjs/Feature.js +10 -6
- package/dist/cjs/ForbesHero.js +14 -12
- package/dist/cjs/GridContent.js +29 -24
- package/dist/cjs/GridHero.js +19 -10
- package/dist/cjs/GroupDeck.js +8 -4
- package/dist/cjs/HamMagazine.js +15 -15
- package/dist/cjs/Hero.js +14 -3
- package/dist/cjs/HorizontalArticleListing.js +5 -7
- package/dist/cjs/HorizontalHero.js +8 -7
- package/dist/cjs/IssueContentDeck.js +27 -10
- package/dist/cjs/IssueDeck.js +12 -10
- package/dist/cjs/IssueLanding.js +36 -38
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +2 -3
- package/dist/cjs/MasterDeck.js +13 -14
- package/dist/cjs/MediaSeriesLanding.js +407 -307
- 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 +7 -6
- package/dist/cjs/OncliveLargeHero.js +22 -21
- package/dist/cjs/PartnerDetailListing.js +16 -13
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PubSection.js +4 -6
- package/dist/cjs/PublicationDeck.js +12 -10
- package/dist/cjs/PublicationLanding.js +29 -26
- package/dist/cjs/QueueDeckExpanded.js +72 -74
- package/dist/cjs/RecentNews.js +8 -5
- package/dist/cjs/RelatedContent.js +38 -35
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +3 -5
- package/dist/cjs/{SeriesSlider-d54fa925.js → SeriesSlider-2db54929.js} +12 -7
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-ecb4f972.js → SocialSearchComponent-948138c7.js} +3 -3
- package/dist/cjs/TaxonomyCard.js +14 -11
- package/dist/cjs/TaxonomyDescription.js +5 -7
- package/dist/cjs/TemplateNormal.js +7 -8
- package/dist/cjs/ThumbnailCard.js +10 -6
- package/dist/cjs/Ustream.js +4 -4
- package/dist/cjs/VerticalHero.js +7 -3
- package/dist/cjs/VideoProgramLandingPage.js +5 -7
- package/dist/cjs/VideoSeriesCard.js +8 -9
- package/dist/cjs/VideoSeriesLandingPage.js +4 -6
- package/dist/cjs/VideoSeriesListing.js +5 -7
- package/dist/cjs/View.js +16 -17
- package/dist/cjs/YahooHero.js +13 -11
- package/dist/cjs/YoutubeGroup.js +13 -9
- package/dist/cjs/getSerializers.js +5 -7
- 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-55c6de08.js → index-70971c54.js} +93 -49
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-00a6aade.js} +1 -1
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-2bb721c8.js} +1 -1
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-9225638f.js} +1 -1
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-f27f80d9.js} +1 -1
- package/dist/cjs/index.js +32 -19
- package/dist/cjs/{main-025fdc78.js → main-f1c77adb.js} +3 -3
- package/dist/cjs/urlFor.js +2 -34
- 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-7aaa47e1.js → ADInfeed-f7d00a9a.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-78f95e78.js → ADlgInfeed-db64f46d.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 +41 -14123
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +6 -7
- package/dist/esm/ArticleProgramLandingPage.js +17 -19
- package/dist/esm/ArticleSeriesLandingPage.js +12 -13
- package/dist/esm/ArticleSeriesListing.js +31 -33
- 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 +37 -32
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +68 -63
- package/dist/esm/DeckQueue.js +54 -48
- package/dist/esm/{Dfp-43f121ff.js → Dfp-be030f2a.js} +10 -11
- package/dist/esm/EventsDeck.js +81 -81
- package/dist/esm/ExternalResources.js +35 -37
- package/dist/esm/Feature.js +24 -20
- package/dist/esm/ForbesHero.js +34 -32
- package/dist/esm/GridContent.js +114 -109
- package/dist/esm/GridHero.js +40 -31
- package/dist/esm/GroupDeck.js +42 -38
- package/dist/esm/HamMagazine.js +95 -95
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +19 -8
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +31 -33
- package/dist/esm/HorizontalHero.js +26 -25
- package/dist/esm/IssueContentDeck.js +65 -48
- package/dist/esm/IssueDeck.js +45 -43
- package/dist/esm/IssueLanding.js +51 -53
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +16 -17
- package/dist/esm/MasterDeck.js +47 -48
- package/dist/esm/MediaSeriesLanding.js +434 -334
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +99 -99
- package/dist/esm/NavNative.js +86 -86
- package/dist/esm/NavNormal.js +22 -22
- package/dist/esm/OncliveHero.js +19 -18
- package/dist/esm/OncliveLargeHero.js +59 -58
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +71 -68
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +14 -16
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +45 -43
- package/dist/esm/PublicationLanding.js +78 -75
- package/dist/esm/QueueDeckExpanded.js +260 -262
- package/dist/esm/RecentNews.js +24 -21
- package/dist/esm/RelatedContent.js +49 -46
- 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 -21
- package/dist/esm/{SeriesSlider-8f2aca58.js → SeriesSlider-c8477bf3.js} +30 -25
- 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 +46 -43
- package/dist/esm/TaxonomyDescription.js +13 -15
- package/dist/esm/TemplateNormal.js +30 -31
- package/dist/esm/ThumbnailCard.js +15 -11
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +18 -14
- package/dist/esm/VideoProgramLandingPage.js +24 -26
- package/dist/esm/VideoSeriesCard.js +18 -19
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +12 -14
- package/dist/esm/VideoSeriesListing.js +48 -50
- package/dist/esm/View.js +177 -178
- package/dist/esm/YahooHero.js +31 -29
- package/dist/esm/YoutubeGroup.js +40 -36
- 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 -10
- 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-2446af28.js → index-5cc7b406.js} +469 -4
- package/dist/esm/{index-35bdcc81.js → index-755f2cc2.js} +4 -4
- package/dist/esm/{index-e8c6a892.js → index-a30e3b71.js} +401 -357
- package/dist/esm/{index.es-c6222053.js → index.es-a6137319.js} +5 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-37268dca.js} +16 -16
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-d4932dea.js} +1 -1
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-e874e770.js} +1 -1
- package/dist/esm/{index.esm-3fdda599.js → index.esm-f6156a57.js} +1 -1
- package/dist/esm/index.js +55 -43
- 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/urlFor.js +2 -34
- 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-1ac86856.js → ADInfeed-7cf51090.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-2ee46b09.js → ADlgInfeed-bf24708d.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__default, { 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-755f2cc2.js';
|
|
10
|
+
import { i as imageUrlBuilder } from './index-0dbff1d1.js';
|
|
11
|
+
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
12
12
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
13
13
|
import './es6.string.iterator-bc33758b.js';
|
|
14
14
|
import './_to-object-b50e61c3.js';
|
|
@@ -18,7 +18,6 @@ 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';
|
|
22
21
|
|
|
23
22
|
var usePrevious = function usePrevious(value) {
|
|
24
23
|
var ref = useRef();
|
|
@@ -31,12 +30,8 @@ var usePrevious = function usePrevious(value) {
|
|
|
31
30
|
var IssueDeck = function IssueDeck(props) {
|
|
32
31
|
var data = props.data,
|
|
33
32
|
href = props.href,
|
|
34
|
-
|
|
35
|
-
|
|
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,
|
|
33
|
+
imageHeight = props.imageHeight,
|
|
34
|
+
imageWidth = props.imageWidth,
|
|
40
35
|
Website = props.Website,
|
|
41
36
|
client = props.client,
|
|
42
37
|
publication = props.publication,
|
|
@@ -68,10 +63,17 @@ var IssueDeck = function IssueDeck(props) {
|
|
|
68
63
|
|
|
69
64
|
var prevValues = usePrevious(values);
|
|
70
65
|
|
|
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(
|
|
74
|
-
|
|
73
|
+
var url = urlFor(thumbnail);
|
|
74
|
+
if (imageHeight) url = url.height(imageHeight);
|
|
75
|
+
if (imageWidth) url = url.width(imageWidth);
|
|
76
|
+
return url.url();
|
|
75
77
|
} else {
|
|
76
78
|
return Website.logo;
|
|
77
79
|
}
|
|
@@ -131,71 +133,71 @@ var IssueDeck = function IssueDeck(props) {
|
|
|
131
133
|
}
|
|
132
134
|
}, [issuesData, setScrolling, count]);
|
|
133
135
|
|
|
134
|
-
return
|
|
136
|
+
return React__default.createElement(
|
|
135
137
|
InfiniteScroll,
|
|
136
138
|
{ dataLength: issuesData && issuesData.length, next: function next() {
|
|
137
139
|
return loadMore();
|
|
138
140
|
}, hasMore: scrolling, scrollThreshold: 0.9 },
|
|
139
|
-
|
|
141
|
+
React__default.createElement(
|
|
140
142
|
Row,
|
|
141
143
|
null,
|
|
142
144
|
issuesData && issuesData.length ? issuesData.map(function (row, index) {
|
|
143
|
-
return publication && row.identifier && row.identifier.current &&
|
|
145
|
+
return publication && row.identifier && row.identifier.current && React__default.createElement(
|
|
144
146
|
Col,
|
|
145
147
|
{ md: 12, lg: 12, key: index },
|
|
146
|
-
|
|
148
|
+
React__default.createElement(
|
|
147
149
|
Card,
|
|
148
150
|
{ className: 'queue-card journal-queue', style: { borderTop: '1px solid #EEE' } },
|
|
149
|
-
|
|
151
|
+
React__default.createElement(
|
|
150
152
|
Row,
|
|
151
153
|
{ style: { flexDirection: 'left' } },
|
|
152
|
-
|
|
154
|
+
React__default.createElement(
|
|
153
155
|
Col,
|
|
154
156
|
{ md: 12, lg: 4, className: 'body-image', style: { textAlign: 'center' } },
|
|
155
|
-
row.issues.length > 0 ?
|
|
157
|
+
row.issues.length > 0 ? React__default.createElement(
|
|
156
158
|
'a',
|
|
157
159
|
{ href: href + '/' + publication + '/' + row.identifier.current, style: { width: '100%' } },
|
|
158
|
-
row.thumbnail &&
|
|
160
|
+
row.thumbnail && React__default.createElement(
|
|
159
161
|
LazyLoad,
|
|
160
162
|
{ height: imageHeight },
|
|
161
|
-
|
|
163
|
+
React__default.createElement(Card.Img, { variant: 'top', src: renderCardImage(row.thumbnail), alt: row.name, style: { objectFit: 'contain' } })
|
|
162
164
|
)
|
|
163
|
-
) :
|
|
165
|
+
) : React__default.createElement(
|
|
164
166
|
'a',
|
|
165
167
|
null,
|
|
166
|
-
row.thumbnail &&
|
|
168
|
+
row.thumbnail && React__default.createElement(
|
|
167
169
|
LazyLoad,
|
|
168
170
|
{ height: imageHeight },
|
|
169
|
-
|
|
171
|
+
React__default.createElement(Card.Img, { variant: 'top', src: renderCardImage(row.thumbnail), alt: row.name, style: { objectFit: 'contain' } })
|
|
170
172
|
)
|
|
171
173
|
)
|
|
172
174
|
),
|
|
173
|
-
|
|
175
|
+
React__default.createElement(
|
|
174
176
|
Col,
|
|
175
177
|
{ md: 12, lg: 8 },
|
|
176
|
-
|
|
178
|
+
React__default.createElement(
|
|
177
179
|
Card.Body,
|
|
178
180
|
{ style: { padding: '20px' }, className: 'body-text' },
|
|
179
|
-
|
|
181
|
+
React__default.createElement(
|
|
180
182
|
Row,
|
|
181
183
|
null,
|
|
182
|
-
|
|
184
|
+
React__default.createElement(
|
|
183
185
|
Col,
|
|
184
186
|
null,
|
|
185
|
-
|
|
187
|
+
React__default.createElement(
|
|
186
188
|
Card.Title,
|
|
187
189
|
null,
|
|
188
190
|
row.name
|
|
189
191
|
)
|
|
190
192
|
)
|
|
191
193
|
),
|
|
192
|
-
|
|
194
|
+
React__default.createElement(
|
|
193
195
|
Row,
|
|
194
196
|
null,
|
|
195
|
-
|
|
197
|
+
React__default.createElement(
|
|
196
198
|
Col,
|
|
197
199
|
null,
|
|
198
|
-
|
|
200
|
+
React__default.createElement(
|
|
199
201
|
'div',
|
|
200
202
|
null,
|
|
201
203
|
'Volume: ',
|
|
@@ -203,13 +205,13 @@ var IssueDeck = function IssueDeck(props) {
|
|
|
203
205
|
)
|
|
204
206
|
)
|
|
205
207
|
),
|
|
206
|
-
|
|
208
|
+
React__default.createElement(
|
|
207
209
|
Row,
|
|
208
210
|
null,
|
|
209
|
-
|
|
211
|
+
React__default.createElement(
|
|
210
212
|
Col,
|
|
211
213
|
null,
|
|
212
|
-
|
|
214
|
+
React__default.createElement(
|
|
213
215
|
'div',
|
|
214
216
|
null,
|
|
215
217
|
'Number: ',
|
|
@@ -217,19 +219,19 @@ var IssueDeck = function IssueDeck(props) {
|
|
|
217
219
|
)
|
|
218
220
|
)
|
|
219
221
|
),
|
|
220
|
-
|
|
222
|
+
React__default.createElement(
|
|
221
223
|
Row,
|
|
222
224
|
null,
|
|
223
|
-
row.issues.length > 0 &&
|
|
225
|
+
row.issues.length > 0 && React__default.createElement(
|
|
224
226
|
'a',
|
|
225
227
|
{ style: { paddingRight: '15px', paddingLeft: '15px' }, href: href + '/' + publication + '/' + row.identifier.current },
|
|
226
|
-
|
|
228
|
+
React__default.createElement(
|
|
227
229
|
Button,
|
|
228
230
|
{ style: { marginTop: '20px', marginRight: '1rem' }, variant: 'secondary' },
|
|
229
231
|
'View Issue'
|
|
230
232
|
)
|
|
231
233
|
),
|
|
232
|
-
row.pdf && row.pdf.asset &&
|
|
234
|
+
row.pdf && row.pdf.asset && React__default.createElement(
|
|
233
235
|
'a',
|
|
234
236
|
{ rel: 'noopener', href: row.pdf.asset.url, target: '_blank', className: 'btn btn-primary', style: { marginTop: '20px' } },
|
|
235
237
|
'Download Issue'
|
|
@@ -240,13 +242,13 @@ var IssueDeck = function IssueDeck(props) {
|
|
|
240
242
|
)
|
|
241
243
|
)
|
|
242
244
|
);
|
|
243
|
-
}) :
|
|
245
|
+
}) : React__default.createElement(
|
|
244
246
|
'div',
|
|
245
247
|
null,
|
|
246
|
-
|
|
248
|
+
React__default.createElement(
|
|
247
249
|
'h5',
|
|
248
250
|
null,
|
|
249
|
-
|
|
251
|
+
React__default.createElement(
|
|
250
252
|
'em',
|
|
251
253
|
{ className: 'pl-3' },
|
|
252
254
|
'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__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-a30e3b71.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './_to-object-b50e61c3.js';
|
|
9
9
|
import './_object-pie-133f504a.js';
|
|
@@ -14,20 +14,18 @@ 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';
|
|
18
17
|
import './index-0dbff1d1.js';
|
|
19
|
-
import './index.es-
|
|
18
|
+
import './index.es-a6137319.js';
|
|
20
19
|
import './moment-bc12cb97.js';
|
|
21
|
-
import './visibility-sensor-
|
|
20
|
+
import './visibility-sensor-72fd8f8b.js';
|
|
22
21
|
import 'react-dom';
|
|
23
|
-
import './index-
|
|
24
|
-
import './events-6c3a7a63.js';
|
|
22
|
+
import './index-5cc7b406.js';
|
|
25
23
|
import 'prop-types';
|
|
26
24
|
import 'next/router';
|
|
27
|
-
import './index-
|
|
28
|
-
import './main-
|
|
25
|
+
import './index-755f2cc2.js';
|
|
26
|
+
import './main-d4165069.js';
|
|
29
27
|
import './entities-932b50cf.js';
|
|
30
|
-
import './ADInfeed-
|
|
28
|
+
import './ADInfeed-f7d00a9a.js';
|
|
31
29
|
import 'react-bootstrap/Card';
|
|
32
30
|
import './AdSlot.js';
|
|
33
31
|
import './debounce-533d9748.js';
|
|
@@ -38,9 +36,9 @@ import './stringify-59c8f690.js';
|
|
|
38
36
|
import './asyncToGenerator-7f8f9219.js';
|
|
39
37
|
import './_library-528f1934.js';
|
|
40
38
|
import './Segment.js';
|
|
41
|
-
import './AuthorComponent-
|
|
39
|
+
import './AuthorComponent-30aeba69.js';
|
|
42
40
|
import './lodash-f97fd99a.js';
|
|
43
|
-
import './ADlgInfeed-
|
|
41
|
+
import './ADlgInfeed-db64f46d.js';
|
|
44
42
|
import './getContentCategory-15dcc413.js';
|
|
45
43
|
import './timeDifferenceCalc.js';
|
|
46
44
|
import 'react-bootstrap/Breadcrumb';
|
|
@@ -48,7 +46,7 @@ import './index-c7e2ac95.js';
|
|
|
48
46
|
import './util-3ab476bf.js';
|
|
49
47
|
import './typeof-a286cf0c.js';
|
|
50
48
|
import './_is-array-3e99e06e.js';
|
|
51
|
-
import './brightcove-react-player-loader.es-
|
|
49
|
+
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
52
50
|
import './GroupDeck.js';
|
|
53
51
|
import './smoothscroll-fa4e3f8c.js';
|
|
54
52
|
import './SocialShare.js';
|
|
@@ -62,39 +60,39 @@ import 'react-bootstrap/Col';
|
|
|
62
60
|
import './inherits-a41fe93f.js';
|
|
63
61
|
import './_object-sap-f353c2a9.js';
|
|
64
62
|
import './define-property-fe54dc9f.js';
|
|
65
|
-
import './index.esm-
|
|
66
|
-
import './iconBase-
|
|
63
|
+
import './index.esm-f6156a57.js';
|
|
64
|
+
import './iconBase-ccc56b97.js';
|
|
67
65
|
import 'react-bootstrap/Figure';
|
|
68
66
|
|
|
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
|
|
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
|
|
98
96
|
*/
|
|
99
97
|
|
|
100
98
|
var IssueLanding = function IssueLanding(props) {
|
|
@@ -120,22 +118,22 @@ var IssueLanding = function IssueLanding(props) {
|
|
|
120
118
|
_props$imageWidth = props.imageWidth,
|
|
121
119
|
imageWidth = _props$imageWidth === undefined ? 480 : _props$imageWidth;
|
|
122
120
|
|
|
123
|
-
return
|
|
121
|
+
return React__default.createElement(
|
|
124
122
|
'div',
|
|
125
123
|
{ id: 'issueLanding' },
|
|
126
|
-
|
|
127
|
-
pubIssue.issue.source &&
|
|
124
|
+
React__default.createElement(Breadcrumbs, null),
|
|
125
|
+
pubIssue.issue.source && React__default.createElement(
|
|
128
126
|
'p',
|
|
129
127
|
{ className: 'badge badge-primary' },
|
|
130
128
|
pubIssue.issue.source
|
|
131
129
|
),
|
|
132
|
-
pubIssue.issue.description &&
|
|
133
|
-
|
|
130
|
+
pubIssue.issue.description && React__default.createElement(
|
|
131
|
+
React__default.Fragment,
|
|
134
132
|
null,
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
React__default.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: pubIssue.issue.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config())),
|
|
134
|
+
React__default.createElement('div', { style: { clear: 'both' } })
|
|
137
135
|
),
|
|
138
|
-
|
|
136
|
+
React__default.createElement(QueueDeckExpanded, {
|
|
139
137
|
client: client,
|
|
140
138
|
mapping: settings.mapping,
|
|
141
139
|
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 };
|