@mjhls/mjh-framework 1.0.796-series-test → 1.0.796
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/AD300x250.js +1 -1
- package/dist/cjs/AD300x250x600.js +1 -1
- package/dist/cjs/AD728x90.js +1 -1
- package/dist/cjs/ADFloatingFooter.js +1 -1
- package/dist/cjs/ADGutter.js +1 -1
- package/dist/cjs/ADSkyscraper.js +1 -1
- package/dist/cjs/ADSponsoredResources.js +1 -1
- package/dist/cjs/ADWebcast.js +1 -1
- package/dist/cjs/ADWelcome.js +1 -1
- package/dist/cjs/AccordionPanel.js +2 -2
- package/dist/cjs/AdSlot.js +1 -1
- package/dist/cjs/AdSlotsProvider.js +1 -1
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +4 -4
- package/dist/cjs/ArticleSeriesLandingPage.js +3 -3
- package/dist/cjs/ArticleSeriesListing.js +3 -3
- package/dist/cjs/CMEDeck.js +1 -1
- package/dist/cjs/Column3.js +1 -1
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/DeckContent.js +10 -10
- package/dist/cjs/DeckQueue.js +1 -1
- package/dist/cjs/EventsDeck.js +18 -18
- package/dist/cjs/ExternalResources.js +4 -4
- package/dist/cjs/Feature.js +1 -1
- package/dist/cjs/GridContent.js +3 -3
- package/dist/cjs/HamMagazine.js +15 -15
- package/dist/cjs/HorizontalArticleListing.js +4 -4
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueLanding.js +32 -32
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +1 -1
- package/dist/cjs/MasterDeck.js +11 -11
- package/dist/cjs/MediaSeriesLanding.js +23 -12
- package/dist/cjs/NavMagazine.js +16 -16
- package/dist/cjs/NavNative.js +12 -12
- package/dist/cjs/NavNormal.js +2 -2
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +6 -6
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PubSection.js +3 -3
- package/dist/cjs/PublicationLanding.js +29 -29
- package/dist/cjs/QueueDeckExpanded.js +3 -3
- 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 +2 -2
- package/dist/cjs/{SeriesSlider-c022ce04.js → SeriesSlider-2db54929.js} +5 -5
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-31afe61f.js → SocialSearchComponent-9cb50ae4.js} +3 -3
- package/dist/cjs/TaxonomyDescription.js +4 -4
- package/dist/cjs/TemplateNormal.js +6 -6
- package/dist/cjs/Ustream.js +4 -4
- package/dist/cjs/VideoProgramLandingPage.js +4 -4
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +3 -3
- package/dist/cjs/VideoSeriesListing.js +3 -3
- package/dist/cjs/View.js +18 -14
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/getSerializers.js +4 -4
- 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-70cfabd2.js → index-08b35e31.js} +2 -2
- 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 +12 -12
- package/dist/cjs/{main-025fdc78.js → main-f1c77adb.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +6 -6
- package/dist/esm/AD300x250x600.js +6 -6
- package/dist/esm/AD728x90.js +7 -7
- package/dist/esm/ADFloatingFooter.js +9 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-e1e18f87.js → ADInfeed-f7d00a9a.js} +5 -5
- package/dist/esm/ADSkyscraper.js +9 -9
- package/dist/esm/ADSponsoredResources.js +9 -9
- package/dist/esm/ADWebcast.js +9 -9
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-c6d2831b.js → ADlgInfeed-db64f46d.js} +4 -4
- package/dist/esm/AccordionPanel.js +18 -18
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +4 -4
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +6 -6
- package/dist/esm/ArticleProgramLandingPage.js +17 -17
- package/dist/esm/ArticleSeriesLandingPage.js +12 -12
- package/dist/esm/ArticleSeriesListing.js +31 -31
- package/dist/esm/Auth.js +70 -70
- 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 -61
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +23 -23
- package/dist/esm/ConferenceArticleCard.js +28 -28
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +57 -57
- package/dist/esm/DeckQueue.js +42 -42
- package/dist/esm/{Dfp-a304d96c.js → Dfp-be030f2a.js} +10 -10
- package/dist/esm/EventsDeck.js +81 -81
- package/dist/esm/ExternalResources.js +35 -35
- package/dist/esm/Feature.js +15 -15
- package/dist/esm/ForbesHero.js +26 -26
- package/dist/esm/GridContent.js +103 -103
- package/dist/esm/GridHero.js +27 -27
- package/dist/esm/GroupDeck.js +34 -34
- package/dist/esm/HamMagazine.js +95 -95
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +6 -6
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +31 -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 +42 -42
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +46 -46
- package/dist/esm/MediaSeriesLanding.js +339 -328
- 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 +13 -13
- package/dist/esm/OncliveLargeHero.js +50 -50
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +62 -62
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +14 -14
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +33 -33
- package/dist/esm/PublicationLanding.js +78 -78
- package/dist/esm/QueueDeckExpanded.js +246 -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 +19 -19
- package/dist/esm/{SeriesSlider-8414085b.js → SeriesSlider-c8477bf3.js} +23 -23
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-116b1d5d.js → SocialSearchComponent-09775683.js} +22 -22
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +35 -35
- package/dist/esm/TaxonomyDescription.js +13 -13
- package/dist/esm/TemplateNormal.js +30 -30
- package/dist/esm/ThumbnailCard.js +9 -9
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +11 -11
- package/dist/esm/VideoProgramLandingPage.js +24 -24
- package/dist/esm/VideoSeriesCard.js +15 -15
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +12 -12
- package/dist/esm/VideoSeriesListing.js +47 -47
- package/dist/esm/View.js +178 -174
- package/dist/esm/YahooHero.js +23 -23
- package/dist/esm/YoutubeGroup.js +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
- package/dist/esm/getSerializers.js +8 -8
- 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-888f9253.js → index-5cc7b406.js} +3 -3
- package/dist/esm/{index-35bdcc81.js → index-755f2cc2.js} +4 -4
- package/dist/esm/{index-613fdebe.js → index-c2daf449.js} +338 -338
- 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 +38 -38
- package/dist/esm/{main-b5c5aac1.js → main-d4165069.js} +19 -19
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-9be47857.js} +5 -5
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/package.json +108 -108
- /package/dist/cjs/{ADInfeed-e7aecdf9.js → ADInfeed-7cf51090.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-0941023e.js → ADlgInfeed-bf24708d.js} +0 -0
package/dist/esm/DeckContent.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
2
2
|
import { _ as _extends } from './extends-60e0e1c6.js';
|
|
3
3
|
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-a41fe93f.js';
|
|
4
|
-
import
|
|
5
|
-
import { l as lib_3 } from './index-
|
|
4
|
+
import React__default from 'react';
|
|
5
|
+
import { l as lib_3 } from './index-5cc7b406.js';
|
|
6
6
|
import Container from 'react-bootstrap/Container';
|
|
7
7
|
import Row from 'react-bootstrap/Row';
|
|
8
8
|
import Col from 'react-bootstrap/Col';
|
|
@@ -10,13 +10,13 @@ import Card from 'react-bootstrap/Card';
|
|
|
10
10
|
import { m as moment } from './moment-bc12cb97.js';
|
|
11
11
|
import { withRouter } from 'next/router';
|
|
12
12
|
import { d as debounce_1 } from './debounce-533d9748.js';
|
|
13
|
-
import { I as InfiniteScroll } from './index.es-
|
|
14
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
13
|
+
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
14
|
+
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
15
15
|
import { i as imageUrlBuilder } from './index-0dbff1d1.js';
|
|
16
|
-
import { L as LazyLoad } from './index-
|
|
17
|
-
import { m as main_43 } from './main-
|
|
16
|
+
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
17
|
+
import { m as main_43 } from './main-d4165069.js';
|
|
18
18
|
import { c as clean_html_1 } from './entities-932b50cf.js';
|
|
19
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
19
|
+
import { A as ADInfeed } from './ADInfeed-f7d00a9a.js';
|
|
20
20
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
21
21
|
import './es6.string.iterator-bc33758b.js';
|
|
22
22
|
import './_to-object-b50e61c3.js';
|
|
@@ -179,14 +179,14 @@ var DeckContent = function (_React$Component) {
|
|
|
179
179
|
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
180
180
|
|
|
181
181
|
// please leave this for later debug purpose : Yong Jun.
|
|
182
|
-
/* console.log('page change reported', {
|
|
183
|
-
currentPage: currentPage,
|
|
184
|
-
pageNumber: pageNumber,
|
|
185
|
-
pathname: pathname,
|
|
186
|
-
path: path,
|
|
187
|
-
newPath: newPath,
|
|
188
|
-
firstPage: pageNumber === 1,
|
|
189
|
-
queryString: queryString
|
|
182
|
+
/* console.log('page change reported', {
|
|
183
|
+
currentPage: currentPage,
|
|
184
|
+
pageNumber: pageNumber,
|
|
185
|
+
pathname: pathname,
|
|
186
|
+
path: path,
|
|
187
|
+
newPath: newPath,
|
|
188
|
+
firstPage: pageNumber === 1,
|
|
189
|
+
queryString: queryString
|
|
190
190
|
}) */
|
|
191
191
|
|
|
192
192
|
if (pageview) {
|
|
@@ -206,35 +206,35 @@ var DeckContent = function (_React$Component) {
|
|
|
206
206
|
url = authorDetail.url;
|
|
207
207
|
|
|
208
208
|
if (displayName && url && url.current) {
|
|
209
|
-
return
|
|
209
|
+
return React__default.createElement(
|
|
210
210
|
'div',
|
|
211
211
|
{ key: _id },
|
|
212
|
-
index === 0 &&
|
|
212
|
+
index === 0 && React__default.createElement(
|
|
213
213
|
'span',
|
|
214
214
|
{ className: 'pr-1' },
|
|
215
215
|
'By'
|
|
216
216
|
),
|
|
217
|
-
|
|
217
|
+
React__default.createElement(
|
|
218
218
|
'a',
|
|
219
219
|
{ href: '/authors/${url.current}', className: 'text-muted' },
|
|
220
220
|
displayName,
|
|
221
|
-
length !== index + 1 &&
|
|
221
|
+
length !== index + 1 && React__default.createElement('br', null)
|
|
222
222
|
)
|
|
223
223
|
);
|
|
224
224
|
} else if (displayName) {
|
|
225
|
-
return
|
|
225
|
+
return React__default.createElement(
|
|
226
226
|
'div',
|
|
227
227
|
{ key: _id },
|
|
228
|
-
index === 0 &&
|
|
228
|
+
index === 0 && React__default.createElement(
|
|
229
229
|
'span',
|
|
230
230
|
{ className: 'pr-1' },
|
|
231
231
|
'By'
|
|
232
232
|
),
|
|
233
|
-
|
|
233
|
+
React__default.createElement(
|
|
234
234
|
'span',
|
|
235
235
|
{ className: 'text-muted' },
|
|
236
236
|
displayName,
|
|
237
|
-
length !== index + 1 &&
|
|
237
|
+
length !== index + 1 && React__default.createElement('br', null)
|
|
238
238
|
)
|
|
239
239
|
);
|
|
240
240
|
}
|
|
@@ -278,7 +278,7 @@ var DeckContent = function (_React$Component) {
|
|
|
278
278
|
articles = _this.state.data;
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
return
|
|
281
|
+
return React__default.createElement(
|
|
282
282
|
Row,
|
|
283
283
|
null,
|
|
284
284
|
articles && articles.map(function (row, index) {
|
|
@@ -290,51 +290,51 @@ var DeckContent = function (_React$Component) {
|
|
|
290
290
|
lgVar = 6;
|
|
291
291
|
}
|
|
292
292
|
if (row._type === 'BrandInsight' && row.adUnit) {
|
|
293
|
-
return
|
|
293
|
+
return React__default.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
294
294
|
} else {
|
|
295
295
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
296
296
|
var contentCategoryName = row.contentCategory && row.contentCategory.name && _this.mapping[row.contentCategory.name] ? row.contentCategory.name : 'Articles';
|
|
297
|
-
return
|
|
298
|
-
|
|
297
|
+
return React__default.createElement(
|
|
298
|
+
React__default.Fragment,
|
|
299
299
|
{ key: itemCounter },
|
|
300
|
-
|
|
300
|
+
React__default.createElement(
|
|
301
301
|
VisibilitySensor,
|
|
302
302
|
{
|
|
303
303
|
onChange: function onChange(isVisible) {
|
|
304
304
|
isVisible && _this.changePageNumber(pageNumber);
|
|
305
305
|
} },
|
|
306
|
-
|
|
306
|
+
React__default.createElement(
|
|
307
307
|
Col,
|
|
308
308
|
{ md: 12, lg: lgVar, counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
309
|
-
|
|
309
|
+
React__default.createElement(
|
|
310
310
|
Card,
|
|
311
311
|
{ className: 'content-card', style: { flexDirection: mode } },
|
|
312
|
-
(row.thumbnail && row.thumbnail.asset || _this.props.defaultImage) &&
|
|
312
|
+
(row.thumbnail && row.thumbnail.asset || _this.props.defaultImage) && React__default.createElement(
|
|
313
313
|
'a',
|
|
314
314
|
{ href: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
315
|
-
|
|
315
|
+
React__default.createElement(
|
|
316
316
|
LazyLoad,
|
|
317
317
|
{ height: _this.props.imageHeight },
|
|
318
|
-
|
|
318
|
+
React__default.createElement(Card.Img, {
|
|
319
319
|
variant: 'top',
|
|
320
320
|
src: _this.renderCardImage(row, page),
|
|
321
321
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
322
322
|
})
|
|
323
323
|
)
|
|
324
324
|
),
|
|
325
|
-
|
|
325
|
+
React__default.createElement(
|
|
326
326
|
Card.Body,
|
|
327
327
|
null,
|
|
328
|
-
|
|
328
|
+
React__default.createElement(
|
|
329
329
|
'a',
|
|
330
330
|
{ href: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
331
|
-
|
|
331
|
+
React__default.createElement(
|
|
332
332
|
Card.Title,
|
|
333
333
|
null,
|
|
334
334
|
row.title
|
|
335
335
|
)
|
|
336
336
|
),
|
|
337
|
-
_this.props.showPublished && row.published &&
|
|
337
|
+
_this.props.showPublished && row.published && React__default.createElement(
|
|
338
338
|
Card.Subtitle,
|
|
339
339
|
null,
|
|
340
340
|
moment(row.published).format('MMMM DD, YYYY')
|
|
@@ -342,7 +342,7 @@ var DeckContent = function (_React$Component) {
|
|
|
342
342
|
_this.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && row.authorMapping.map(function (authorDetail, index) {
|
|
343
343
|
return _this.renderAuthor(authorDetail, index, row.authorMapping.length);
|
|
344
344
|
}),
|
|
345
|
-
|
|
345
|
+
React__default.createElement(
|
|
346
346
|
Card.Text,
|
|
347
347
|
null,
|
|
348
348
|
clean_html_1(row.summary)
|
|
@@ -360,7 +360,7 @@ var DeckContent = function (_React$Component) {
|
|
|
360
360
|
var rightItems = _this.props.rightItems;
|
|
361
361
|
|
|
362
362
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
363
|
-
return
|
|
363
|
+
return React__default.createElement(
|
|
364
364
|
Col,
|
|
365
365
|
{ md: 12, style: { display: 'flex', flex: '1 0 auto' } },
|
|
366
366
|
rightItems[i].component
|
|
@@ -368,15 +368,15 @@ var DeckContent = function (_React$Component) {
|
|
|
368
368
|
}, _this.renderManualPagination = function () {
|
|
369
369
|
var currentPage = _this.state.currentPage;
|
|
370
370
|
|
|
371
|
-
return
|
|
371
|
+
return React__default.createElement(
|
|
372
372
|
'div',
|
|
373
373
|
{ className: 'd-flex justify-content-between' },
|
|
374
|
-
currentPage && currentPage > 1 &&
|
|
374
|
+
currentPage && currentPage > 1 && React__default.createElement(
|
|
375
375
|
'a',
|
|
376
376
|
{ href: '?page=' + (currentPage - 1) },
|
|
377
377
|
'<< Previous'
|
|
378
378
|
),
|
|
379
|
-
|
|
379
|
+
React__default.createElement(
|
|
380
380
|
'a',
|
|
381
381
|
{ href: '?page=' + (currentPage + 1) },
|
|
382
382
|
'Next >>'
|
|
@@ -422,38 +422,38 @@ var DeckContent = function (_React$Component) {
|
|
|
422
422
|
brandInsight = _props.brandInsight;
|
|
423
423
|
|
|
424
424
|
|
|
425
|
-
return
|
|
425
|
+
return React__default.createElement(
|
|
426
426
|
'div',
|
|
427
427
|
{ className: 'contentDeck' },
|
|
428
|
-
autoScroll ?
|
|
429
|
-
|
|
428
|
+
autoScroll ? React__default.createElement(
|
|
429
|
+
React__default.Fragment,
|
|
430
430
|
null,
|
|
431
|
-
|
|
431
|
+
React__default.createElement(
|
|
432
432
|
InfiniteScroll,
|
|
433
433
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.9 },
|
|
434
|
-
|
|
434
|
+
React__default.createElement(
|
|
435
435
|
Container,
|
|
436
436
|
null,
|
|
437
437
|
this.cardLoader(page, columns, variant, showBI, brandInsight)
|
|
438
438
|
)
|
|
439
439
|
),
|
|
440
|
-
|
|
440
|
+
React__default.createElement(
|
|
441
441
|
'noscript',
|
|
442
442
|
null,
|
|
443
443
|
this.renderManualPagination()
|
|
444
444
|
)
|
|
445
|
-
) :
|
|
446
|
-
|
|
445
|
+
) : React__default.createElement(
|
|
446
|
+
React__default.Fragment,
|
|
447
447
|
null,
|
|
448
|
-
|
|
448
|
+
React__default.createElement(
|
|
449
449
|
Container,
|
|
450
450
|
null,
|
|
451
451
|
this.cardLoader(page, columns, variant, showBI, brandInsight)
|
|
452
452
|
),
|
|
453
|
-
|
|
453
|
+
React__default.createElement(
|
|
454
454
|
'div',
|
|
455
455
|
{ style: { padding: '0px 10px' } },
|
|
456
|
-
this.state.scrolling ?
|
|
456
|
+
this.state.scrolling ? React__default.createElement(
|
|
457
457
|
'button',
|
|
458
458
|
{
|
|
459
459
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -461,17 +461,17 @@ var DeckContent = function (_React$Component) {
|
|
|
461
461
|
_this2.loadMore();
|
|
462
462
|
} },
|
|
463
463
|
'Load More'
|
|
464
|
-
) :
|
|
464
|
+
) : React__default.createElement(
|
|
465
465
|
'p',
|
|
466
466
|
{ style: { textAlign: 'center' } },
|
|
467
|
-
|
|
467
|
+
React__default.createElement(
|
|
468
468
|
'b',
|
|
469
469
|
null,
|
|
470
470
|
'End of data'
|
|
471
471
|
)
|
|
472
472
|
)
|
|
473
473
|
),
|
|
474
|
-
|
|
474
|
+
React__default.createElement(
|
|
475
475
|
'noscript',
|
|
476
476
|
null,
|
|
477
477
|
this.renderManualPagination()
|
|
@@ -482,7 +482,7 @@ var DeckContent = function (_React$Component) {
|
|
|
482
482
|
}]);
|
|
483
483
|
|
|
484
484
|
return DeckContent;
|
|
485
|
-
}(
|
|
485
|
+
}(React__default.Component);
|
|
486
486
|
|
|
487
487
|
var ContentCard = withRouter(DeckContent);
|
|
488
488
|
|
package/dist/esm/DeckQueue.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
2
2
|
import { _ as _extends } from './extends-60e0e1c6.js';
|
|
3
3
|
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-a41fe93f.js';
|
|
4
|
-
import
|
|
5
|
-
import { l as lib_3 } from './index-
|
|
4
|
+
import React__default from 'react';
|
|
5
|
+
import { l as lib_3 } from './index-5cc7b406.js';
|
|
6
6
|
import Container from 'react-bootstrap/Container';
|
|
7
7
|
import Row from 'react-bootstrap/Row';
|
|
8
8
|
import Col from 'react-bootstrap/Col';
|
|
9
9
|
import Card from 'react-bootstrap/Card';
|
|
10
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
10
|
+
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
11
11
|
import { m as moment } from './moment-bc12cb97.js';
|
|
12
12
|
import { withRouter } from 'next/router';
|
|
13
|
-
import { L as LazyLoad } from './index-
|
|
13
|
+
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
14
14
|
import { g as get_1 } from './get-3c308da4.js';
|
|
15
15
|
import { d as debounce_1 } from './debounce-533d9748.js';
|
|
16
|
-
import { I as InfiniteScroll } from './index.es-
|
|
16
|
+
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
17
17
|
import { i as imageUrlBuilder } from './index-0dbff1d1.js';
|
|
18
|
-
import { m as main_43 } from './main-
|
|
18
|
+
import { m as main_43 } from './main-d4165069.js';
|
|
19
19
|
import { c as clean_html_1 } from './entities-932b50cf.js';
|
|
20
20
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
21
21
|
import './es6.string.iterator-bc33758b.js';
|
|
@@ -185,7 +185,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
185
185
|
var rightItems = _this.props.rightItems;
|
|
186
186
|
|
|
187
187
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
188
|
-
return
|
|
188
|
+
return React__default.createElement(
|
|
189
189
|
'div',
|
|
190
190
|
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
191
191
|
rightItems[i].component
|
|
@@ -193,15 +193,15 @@ var DeckQueue = function (_React$Component) {
|
|
|
193
193
|
}, _this.renderManualPagination = function () {
|
|
194
194
|
var currentPage = _this.state.currentPage;
|
|
195
195
|
|
|
196
|
-
return
|
|
196
|
+
return React__default.createElement(
|
|
197
197
|
'div',
|
|
198
198
|
{ className: 'd-flex justify-content-between' },
|
|
199
|
-
currentPage && currentPage > 1 &&
|
|
199
|
+
currentPage && currentPage > 1 && React__default.createElement(
|
|
200
200
|
'a',
|
|
201
201
|
{ href: '?page=' + (currentPage - 1) },
|
|
202
202
|
'<< Previous'
|
|
203
203
|
),
|
|
204
|
-
|
|
204
|
+
React__default.createElement(
|
|
205
205
|
'a',
|
|
206
206
|
{ href: '?page=' + (currentPage + 1) },
|
|
207
207
|
'Next >>'
|
|
@@ -219,78 +219,78 @@ var DeckQueue = function (_React$Component) {
|
|
|
219
219
|
var lgVar = Math.floor(12 / columns);
|
|
220
220
|
var numberOfItemsBeforeAd = 6;
|
|
221
221
|
|
|
222
|
-
return
|
|
222
|
+
return React__default.createElement(
|
|
223
223
|
Row,
|
|
224
224
|
null,
|
|
225
225
|
this.state.data && this.state.data.map(function (row, index) {
|
|
226
226
|
var pageNumber = row.pageNumber || _this2.state.page;
|
|
227
227
|
// const thumbnailURL = get(row, 'thumbnail.asset.url', this.props.defaultImage)
|
|
228
228
|
|
|
229
|
-
return
|
|
230
|
-
|
|
229
|
+
return React__default.createElement(
|
|
230
|
+
React__default.Fragment,
|
|
231
231
|
{ key: index },
|
|
232
|
-
|
|
232
|
+
React__default.createElement(
|
|
233
233
|
VisibilitySensor,
|
|
234
234
|
{
|
|
235
235
|
onChange: function onChange(isVisible) {
|
|
236
236
|
isVisible && _this2.changePageNumber(pageNumber);
|
|
237
237
|
} },
|
|
238
|
-
|
|
238
|
+
React__default.createElement(
|
|
239
239
|
Col,
|
|
240
240
|
{ md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
241
|
-
|
|
241
|
+
React__default.createElement(
|
|
242
242
|
Card,
|
|
243
243
|
{ className: 'queue-card', style: { borderTop: '1px solid #EEE' } },
|
|
244
|
-
|
|
244
|
+
React__default.createElement(
|
|
245
245
|
Row,
|
|
246
246
|
{ style: { flexDirection: mode } },
|
|
247
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
247
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React__default.createElement(
|
|
248
248
|
Col,
|
|
249
249
|
{ md: 12, lg: 4 },
|
|
250
|
-
|
|
250
|
+
React__default.createElement(
|
|
251
251
|
'a',
|
|
252
252
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
253
|
-
|
|
253
|
+
React__default.createElement(
|
|
254
254
|
LazyLoad,
|
|
255
255
|
{ height: _this2.props.imageHeight },
|
|
256
|
-
|
|
256
|
+
React__default.createElement(Card.Img, { variant: 'top', src: _this2.renderCardImage(row), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
|
|
257
257
|
)
|
|
258
258
|
)
|
|
259
259
|
),
|
|
260
|
-
|
|
260
|
+
React__default.createElement(
|
|
261
261
|
Col,
|
|
262
262
|
null,
|
|
263
|
-
|
|
263
|
+
React__default.createElement(
|
|
264
264
|
Card.Body,
|
|
265
265
|
{ style: { padding: '20px' } },
|
|
266
|
-
row.title &&
|
|
266
|
+
row.title && React__default.createElement(
|
|
267
267
|
Card.Title,
|
|
268
268
|
null,
|
|
269
|
-
|
|
269
|
+
React__default.createElement(
|
|
270
270
|
'a',
|
|
271
271
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
272
272
|
row.title
|
|
273
273
|
)
|
|
274
274
|
),
|
|
275
|
-
_this2.props.showPublished && row.published &&
|
|
275
|
+
_this2.props.showPublished && row.published && React__default.createElement(
|
|
276
276
|
Card.Subtitle,
|
|
277
277
|
null,
|
|
278
278
|
moment(row.published).format('MMMM DD, YYYY')
|
|
279
279
|
),
|
|
280
|
-
_this2.props.showRecent && row.recent && row.recent.title &&
|
|
280
|
+
_this2.props.showRecent && row.recent && row.recent.title && React__default.createElement(
|
|
281
281
|
Card.Subtitle,
|
|
282
282
|
null,
|
|
283
283
|
'Recent : ',
|
|
284
|
-
|
|
284
|
+
React__default.createElement(
|
|
285
285
|
'a',
|
|
286
286
|
{ href: 'view/' + row.recent.url.current },
|
|
287
287
|
row.recent.title
|
|
288
288
|
)
|
|
289
289
|
),
|
|
290
|
-
row.summary &&
|
|
290
|
+
row.summary && React__default.createElement(
|
|
291
291
|
Card.Text,
|
|
292
292
|
null,
|
|
293
|
-
|
|
293
|
+
React__default.createElement(
|
|
294
294
|
'a',
|
|
295
295
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
296
296
|
clean_html_1(row.summary)
|
|
@@ -319,29 +319,29 @@ var DeckQueue = function (_React$Component) {
|
|
|
319
319
|
page = _props.page;
|
|
320
320
|
|
|
321
321
|
|
|
322
|
-
return
|
|
322
|
+
return React__default.createElement(
|
|
323
323
|
'div',
|
|
324
324
|
{ className: 'contentDeck' },
|
|
325
|
-
autoScroll ?
|
|
325
|
+
autoScroll ? React__default.createElement(
|
|
326
326
|
InfiniteScroll,
|
|
327
327
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling },
|
|
328
|
-
|
|
328
|
+
React__default.createElement(
|
|
329
329
|
Container,
|
|
330
330
|
null,
|
|
331
331
|
this.cardLoader(page, columns, variant)
|
|
332
332
|
)
|
|
333
|
-
) :
|
|
334
|
-
|
|
333
|
+
) : React__default.createElement(
|
|
334
|
+
React__default.Fragment,
|
|
335
335
|
null,
|
|
336
|
-
|
|
336
|
+
React__default.createElement(
|
|
337
337
|
Container,
|
|
338
338
|
null,
|
|
339
339
|
this.cardLoader(page, columns, variant)
|
|
340
340
|
),
|
|
341
|
-
|
|
341
|
+
React__default.createElement(
|
|
342
342
|
'div',
|
|
343
343
|
{ style: { padding: '0px 10px' } },
|
|
344
|
-
this.state.scrolling ?
|
|
344
|
+
this.state.scrolling ? React__default.createElement(
|
|
345
345
|
'button',
|
|
346
346
|
{
|
|
347
347
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -349,17 +349,17 @@ var DeckQueue = function (_React$Component) {
|
|
|
349
349
|
_this3.loadMore();
|
|
350
350
|
} },
|
|
351
351
|
'Load More'
|
|
352
|
-
) :
|
|
352
|
+
) : React__default.createElement(
|
|
353
353
|
'p',
|
|
354
354
|
{ style: { textAlign: 'center' } },
|
|
355
|
-
|
|
355
|
+
React__default.createElement(
|
|
356
356
|
'b',
|
|
357
357
|
null,
|
|
358
358
|
'End of data'
|
|
359
359
|
)
|
|
360
360
|
)
|
|
361
361
|
),
|
|
362
|
-
|
|
362
|
+
React__default.createElement(
|
|
363
363
|
'noscript',
|
|
364
364
|
null,
|
|
365
365
|
this.renderManualPagination()
|
|
@@ -370,7 +370,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
370
370
|
}]);
|
|
371
371
|
|
|
372
372
|
return DeckQueue;
|
|
373
|
-
}(
|
|
373
|
+
}(React__default.Component);
|
|
374
374
|
|
|
375
375
|
var Queue = withRouter(DeckQueue);
|
|
376
376
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
|
|
2
|
-
import
|
|
2
|
+
import React__default, { useState } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { b as lib_1, a as lib_2 } from './index-
|
|
5
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
4
|
+
import { b as lib_1, a as lib_2 } from './index-5cc7b406.js';
|
|
5
|
+
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
6
6
|
import { d as debounce_1 } from './debounce-533d9748.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './web.dom.iterable-4109ff68.js';
|
|
@@ -42,20 +42,20 @@ var AD = function AD(_ref) {
|
|
|
42
42
|
}
|
|
43
43
|
}, 500);
|
|
44
44
|
|
|
45
|
-
return
|
|
46
|
-
|
|
45
|
+
return React__default.createElement(
|
|
46
|
+
React__default.Fragment,
|
|
47
47
|
null,
|
|
48
|
-
!showPlaceholder &&
|
|
48
|
+
!showPlaceholder && React__default.createElement(
|
|
49
49
|
lib_1,
|
|
50
50
|
{
|
|
51
51
|
dfpNetworkId: networkID,
|
|
52
52
|
targetingArguments: targeting,
|
|
53
53
|
sizeMapping: sizeMapping,
|
|
54
54
|
lazyLoad: { fetchMarginPercent: 500, renderMarginPercent: 200, mobileScaling: 2.0 } },
|
|
55
|
-
|
|
55
|
+
React__default.createElement(
|
|
56
56
|
'div',
|
|
57
57
|
{ className: className },
|
|
58
|
-
|
|
58
|
+
React__default.createElement(lib_2, {
|
|
59
59
|
slotId: slotId,
|
|
60
60
|
sizes: sizes,
|
|
61
61
|
adUnit: adUnit,
|
|
@@ -67,7 +67,7 @@ var AD = function AD(_ref) {
|
|
|
67
67
|
})
|
|
68
68
|
)
|
|
69
69
|
),
|
|
70
|
-
adRendered && showPlaceholder &&
|
|
70
|
+
adRendered && showPlaceholder && React__default.createElement(
|
|
71
71
|
VisibilitySensor,
|
|
72
72
|
{
|
|
73
73
|
partialVisibility: true,
|
|
@@ -76,7 +76,7 @@ var AD = function AD(_ref) {
|
|
|
76
76
|
setShowPlaceholder(false);
|
|
77
77
|
}
|
|
78
78
|
} },
|
|
79
|
-
|
|
79
|
+
React__default.createElement(
|
|
80
80
|
'div',
|
|
81
81
|
{ style: { height: 'auto' } },
|
|
82
82
|
'\xA0'
|