@mjhls/mjh-framework 1.0.810-disable-social-share-v2 → 1.0.810
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 +19 -14100
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +5 -6
- package/dist/cjs/ArticleSeriesLandingPage.js +4 -5
- package/dist/cjs/ArticleSeriesListing.js +4 -5
- package/dist/cjs/CMEDeck.js +2 -3
- package/dist/cjs/Column3.js +2 -3
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/DeckContent.js +11 -12
- package/dist/cjs/DeckQueue.js +2 -3
- package/dist/cjs/{Dfp-93399f8c.js → Dfp-3f0ed4c8.js} +1 -2
- package/dist/cjs/EventsDeck.js +18 -18
- package/dist/cjs/ExternalResources.js +5 -6
- package/dist/cjs/Feature.js +1 -1
- package/dist/cjs/GridContent.js +4 -5
- package/dist/cjs/HamMagazine.js +15 -15
- package/dist/cjs/HorizontalArticleListing.js +5 -6
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueLanding.js +33 -34
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +2 -3
- package/dist/cjs/MasterDeck.js +12 -13
- package/dist/cjs/MediaSeriesLanding.js +408 -308
- 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 +7 -8
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PubSection.js +4 -5
- package/dist/cjs/PublicationLanding.js +29 -29
- package/dist/cjs/QueueDeckExpanded.js +4 -5
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +3 -4
- package/dist/cjs/{SeriesSlider-c022ce04.js → SeriesSlider-2db54929.js} +5 -5
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-ecb4f972.js → SocialSearchComponent-948138c7.js} +3 -3
- package/dist/cjs/TaxonomyCard.js +3 -2
- package/dist/cjs/TaxonomyDescription.js +5 -6
- package/dist/cjs/TemplateNormal.js +7 -8
- package/dist/cjs/Ustream.js +4 -4
- package/dist/cjs/VideoProgramLandingPage.js +5 -6
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +4 -5
- package/dist/cjs/VideoSeriesListing.js +4 -5
- package/dist/cjs/View.js +34 -62
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getSerializers.js +5 -6
- package/dist/cjs/{getTargeting-c8081c76.js → getTargeting-fbbe92ba.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-667c091e.js → index-a766f892.js} +3 -3
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-00a6aade.js} +1 -1
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-2bb721c8.js} +1 -1
- package/dist/cjs/{index.esm-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 +14 -15
- package/dist/cjs/{main-025fdc78.js → main-f1c77adb.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +6 -7
- package/dist/esm/AD300x250x600.js +6 -7
- package/dist/esm/AD728x90.js +7 -8
- package/dist/esm/ADFloatingFooter.js +9 -10
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -10
- package/dist/esm/{ADInfeed-6ed88032.js → ADInfeed-33e556f5.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-e02d1d98.js → ADlgInfeed-1270c526.js} +4 -4
- package/dist/esm/AccordionPanel.js +18 -18
- package/dist/esm/AdSlot.js +5 -6
- package/dist/esm/AdSlotsProvider.js +4 -5
- package/dist/esm/AlgoliaSearch.js +39 -14120
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +6 -6
- package/dist/esm/ArticleProgramLandingPage.js +17 -18
- package/dist/esm/ArticleSeriesLandingPage.js +12 -13
- package/dist/esm/ArticleSeriesListing.js +31 -32
- package/dist/esm/Auth.js +70 -70
- package/dist/esm/{AuthorComponent-5ae7409f.js → AuthorComponent-30aeba69.js} +10 -10
- package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-c99c9a8d.js} +3 -3
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +61 -62
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +23 -24
- package/dist/esm/ConferenceArticleCard.js +28 -28
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +57 -58
- package/dist/esm/DeckQueue.js +42 -43
- package/dist/esm/{Dfp-43f121ff.js → Dfp-be030f2a.js} +10 -11
- package/dist/esm/EventsDeck.js +81 -81
- package/dist/esm/ExternalResources.js +35 -36
- package/dist/esm/Feature.js +15 -15
- package/dist/esm/ForbesHero.js +26 -26
- package/dist/esm/GridContent.js +103 -104
- package/dist/esm/GridHero.js +27 -27
- package/dist/esm/GroupDeck.js +34 -34
- package/dist/esm/HamMagazine.js +95 -95
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +6 -6
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +31 -32
- package/dist/esm/HorizontalHero.js +20 -20
- package/dist/esm/IssueContentDeck.js +39 -39
- package/dist/esm/IssueDeck.js +33 -33
- package/dist/esm/IssueLanding.js +42 -43
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +16 -17
- package/dist/esm/MasterDeck.js +46 -47
- package/dist/esm/MediaSeriesLanding.js +431 -331
- 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 -63
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +14 -15
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +33 -33
- package/dist/esm/PublicationLanding.js +78 -78
- package/dist/esm/QueueDeckExpanded.js +246 -247
- package/dist/esm/RecentNews.js +18 -18
- package/dist/esm/RelatedContent.js +43 -43
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +5 -5
- package/dist/esm/SeriesListingDeck.js +19 -20
- package/dist/esm/{SeriesSlider-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-cd38ae60.js → SocialSearchComponent-db963c3e.js} +22 -22
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +38 -37
- package/dist/esm/TaxonomyDescription.js +13 -14
- package/dist/esm/TemplateNormal.js +30 -31
- package/dist/esm/ThumbnailCard.js +9 -9
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +11 -11
- package/dist/esm/VideoProgramLandingPage.js +24 -25
- package/dist/esm/VideoSeriesCard.js +15 -15
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +12 -13
- package/dist/esm/VideoSeriesListing.js +47 -48
- package/dist/esm/View.js +194 -222
- 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/getQuery.js +2 -2
- package/dist/esm/getSerializers.js +8 -9
- package/dist/esm/{getTargeting-2302c1b4.js → getTargeting-0958ad0e.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-d2fb744b.js → index-f354da27.js} +339 -339
- 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 +39 -40
- package/dist/esm/{main-b5c5aac1.js → main-d4165069.js} +19 -19
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-9be47857.js} +5 -5
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/package.json +109 -109
- 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-77f334bb.js → ADInfeed-d9976673.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-0664c67f.js → ADlgInfeed-0610e1bb.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-f076879e.js';
|
|
3
3
|
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-f71787cf.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-33e556f5.js';
|
|
20
20
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
21
21
|
import './es6.string.iterator-bc33758b.js';
|
|
22
22
|
import './_to-object-b50e61c3.js';
|
|
@@ -29,7 +29,6 @@ import './typeof-a286cf0c.js';
|
|
|
29
29
|
import './web.dom.iterable-4109ff68.js';
|
|
30
30
|
import './_is-array-3e99e06e.js';
|
|
31
31
|
import './_library-528f1934.js';
|
|
32
|
-
import './events-6c3a7a63.js';
|
|
33
32
|
import 'prop-types';
|
|
34
33
|
import './isSymbol-a7e9aafe.js';
|
|
35
34
|
import './toNumber-5aeba6e7.js';
|
|
@@ -180,14 +179,14 @@ var DeckContent = function (_React$Component) {
|
|
|
180
179
|
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
181
180
|
|
|
182
181
|
// please leave this for later debug purpose : Yong Jun.
|
|
183
|
-
/* console.log('page change reported', {
|
|
184
|
-
currentPage: currentPage,
|
|
185
|
-
pageNumber: pageNumber,
|
|
186
|
-
pathname: pathname,
|
|
187
|
-
path: path,
|
|
188
|
-
newPath: newPath,
|
|
189
|
-
firstPage: pageNumber === 1,
|
|
190
|
-
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
|
|
191
190
|
}) */
|
|
192
191
|
|
|
193
192
|
if (pageview) {
|
|
@@ -207,35 +206,35 @@ var DeckContent = function (_React$Component) {
|
|
|
207
206
|
url = authorDetail.url;
|
|
208
207
|
|
|
209
208
|
if (displayName && url && url.current) {
|
|
210
|
-
return
|
|
209
|
+
return React__default.createElement(
|
|
211
210
|
'div',
|
|
212
211
|
{ key: _id },
|
|
213
|
-
index === 0 &&
|
|
212
|
+
index === 0 && React__default.createElement(
|
|
214
213
|
'span',
|
|
215
214
|
{ className: 'pr-1' },
|
|
216
215
|
'By'
|
|
217
216
|
),
|
|
218
|
-
|
|
217
|
+
React__default.createElement(
|
|
219
218
|
'a',
|
|
220
219
|
{ href: '/authors/${url.current}', className: 'text-muted' },
|
|
221
220
|
displayName,
|
|
222
|
-
length !== index + 1 &&
|
|
221
|
+
length !== index + 1 && React__default.createElement('br', null)
|
|
223
222
|
)
|
|
224
223
|
);
|
|
225
224
|
} else if (displayName) {
|
|
226
|
-
return
|
|
225
|
+
return React__default.createElement(
|
|
227
226
|
'div',
|
|
228
227
|
{ key: _id },
|
|
229
|
-
index === 0 &&
|
|
228
|
+
index === 0 && React__default.createElement(
|
|
230
229
|
'span',
|
|
231
230
|
{ className: 'pr-1' },
|
|
232
231
|
'By'
|
|
233
232
|
),
|
|
234
|
-
|
|
233
|
+
React__default.createElement(
|
|
235
234
|
'span',
|
|
236
235
|
{ className: 'text-muted' },
|
|
237
236
|
displayName,
|
|
238
|
-
length !== index + 1 &&
|
|
237
|
+
length !== index + 1 && React__default.createElement('br', null)
|
|
239
238
|
)
|
|
240
239
|
);
|
|
241
240
|
}
|
|
@@ -279,7 +278,7 @@ var DeckContent = function (_React$Component) {
|
|
|
279
278
|
articles = _this.state.data;
|
|
280
279
|
}
|
|
281
280
|
|
|
282
|
-
return
|
|
281
|
+
return React__default.createElement(
|
|
283
282
|
Row,
|
|
284
283
|
null,
|
|
285
284
|
articles && articles.map(function (row, index) {
|
|
@@ -291,51 +290,51 @@ var DeckContent = function (_React$Component) {
|
|
|
291
290
|
lgVar = 6;
|
|
292
291
|
}
|
|
293
292
|
if (row._type === 'BrandInsight' && row.adUnit) {
|
|
294
|
-
return
|
|
293
|
+
return React__default.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
295
294
|
} else {
|
|
296
295
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
297
296
|
var contentCategoryName = row.contentCategory && row.contentCategory.name && _this.mapping[row.contentCategory.name] ? row.contentCategory.name : 'Articles';
|
|
298
|
-
return
|
|
299
|
-
|
|
297
|
+
return React__default.createElement(
|
|
298
|
+
React__default.Fragment,
|
|
300
299
|
{ key: itemCounter },
|
|
301
|
-
|
|
300
|
+
React__default.createElement(
|
|
302
301
|
VisibilitySensor,
|
|
303
302
|
{
|
|
304
303
|
onChange: function onChange(isVisible) {
|
|
305
304
|
isVisible && _this.changePageNumber(pageNumber);
|
|
306
305
|
} },
|
|
307
|
-
|
|
306
|
+
React__default.createElement(
|
|
308
307
|
Col,
|
|
309
308
|
{ md: 12, lg: lgVar, counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
310
|
-
|
|
309
|
+
React__default.createElement(
|
|
311
310
|
Card,
|
|
312
311
|
{ className: 'content-card', style: { flexDirection: mode } },
|
|
313
|
-
(row.thumbnail && row.thumbnail.asset || _this.props.defaultImage) &&
|
|
312
|
+
(row.thumbnail && row.thumbnail.asset || _this.props.defaultImage) && React__default.createElement(
|
|
314
313
|
'a',
|
|
315
314
|
{ href: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
316
|
-
|
|
315
|
+
React__default.createElement(
|
|
317
316
|
LazyLoad,
|
|
318
317
|
{ height: _this.props.imageHeight },
|
|
319
|
-
|
|
318
|
+
React__default.createElement(Card.Img, {
|
|
320
319
|
variant: 'top',
|
|
321
320
|
src: _this.renderCardImage(row, page),
|
|
322
321
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
323
322
|
})
|
|
324
323
|
)
|
|
325
324
|
),
|
|
326
|
-
|
|
325
|
+
React__default.createElement(
|
|
327
326
|
Card.Body,
|
|
328
327
|
null,
|
|
329
|
-
|
|
328
|
+
React__default.createElement(
|
|
330
329
|
'a',
|
|
331
330
|
{ href: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
332
|
-
|
|
331
|
+
React__default.createElement(
|
|
333
332
|
Card.Title,
|
|
334
333
|
null,
|
|
335
334
|
row.title
|
|
336
335
|
)
|
|
337
336
|
),
|
|
338
|
-
_this.props.showPublished && row.published &&
|
|
337
|
+
_this.props.showPublished && row.published && React__default.createElement(
|
|
339
338
|
Card.Subtitle,
|
|
340
339
|
null,
|
|
341
340
|
moment(row.published).format('MMMM DD, YYYY')
|
|
@@ -343,7 +342,7 @@ var DeckContent = function (_React$Component) {
|
|
|
343
342
|
_this.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && row.authorMapping.map(function (authorDetail, index) {
|
|
344
343
|
return _this.renderAuthor(authorDetail, index, row.authorMapping.length);
|
|
345
344
|
}),
|
|
346
|
-
|
|
345
|
+
React__default.createElement(
|
|
347
346
|
Card.Text,
|
|
348
347
|
null,
|
|
349
348
|
clean_html_1(row.summary)
|
|
@@ -361,7 +360,7 @@ var DeckContent = function (_React$Component) {
|
|
|
361
360
|
var rightItems = _this.props.rightItems;
|
|
362
361
|
|
|
363
362
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
364
|
-
return
|
|
363
|
+
return React__default.createElement(
|
|
365
364
|
Col,
|
|
366
365
|
{ md: 12, style: { display: 'flex', flex: '1 0 auto' } },
|
|
367
366
|
rightItems[i].component
|
|
@@ -369,15 +368,15 @@ var DeckContent = function (_React$Component) {
|
|
|
369
368
|
}, _this.renderManualPagination = function () {
|
|
370
369
|
var currentPage = _this.state.currentPage;
|
|
371
370
|
|
|
372
|
-
return
|
|
371
|
+
return React__default.createElement(
|
|
373
372
|
'div',
|
|
374
373
|
{ className: 'd-flex justify-content-between' },
|
|
375
|
-
currentPage && currentPage > 1 &&
|
|
374
|
+
currentPage && currentPage > 1 && React__default.createElement(
|
|
376
375
|
'a',
|
|
377
376
|
{ href: '?page=' + (currentPage - 1) },
|
|
378
377
|
'<< Previous'
|
|
379
378
|
),
|
|
380
|
-
|
|
379
|
+
React__default.createElement(
|
|
381
380
|
'a',
|
|
382
381
|
{ href: '?page=' + (currentPage + 1) },
|
|
383
382
|
'Next >>'
|
|
@@ -423,38 +422,38 @@ var DeckContent = function (_React$Component) {
|
|
|
423
422
|
brandInsight = _props.brandInsight;
|
|
424
423
|
|
|
425
424
|
|
|
426
|
-
return
|
|
425
|
+
return React__default.createElement(
|
|
427
426
|
'div',
|
|
428
427
|
{ className: 'contentDeck' },
|
|
429
|
-
autoScroll ?
|
|
430
|
-
|
|
428
|
+
autoScroll ? React__default.createElement(
|
|
429
|
+
React__default.Fragment,
|
|
431
430
|
null,
|
|
432
|
-
|
|
431
|
+
React__default.createElement(
|
|
433
432
|
InfiniteScroll,
|
|
434
433
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.9 },
|
|
435
|
-
|
|
434
|
+
React__default.createElement(
|
|
436
435
|
Container,
|
|
437
436
|
null,
|
|
438
437
|
this.cardLoader(page, columns, variant, showBI, brandInsight)
|
|
439
438
|
)
|
|
440
439
|
),
|
|
441
|
-
|
|
440
|
+
React__default.createElement(
|
|
442
441
|
'noscript',
|
|
443
442
|
null,
|
|
444
443
|
this.renderManualPagination()
|
|
445
444
|
)
|
|
446
|
-
) :
|
|
447
|
-
|
|
445
|
+
) : React__default.createElement(
|
|
446
|
+
React__default.Fragment,
|
|
448
447
|
null,
|
|
449
|
-
|
|
448
|
+
React__default.createElement(
|
|
450
449
|
Container,
|
|
451
450
|
null,
|
|
452
451
|
this.cardLoader(page, columns, variant, showBI, brandInsight)
|
|
453
452
|
),
|
|
454
|
-
|
|
453
|
+
React__default.createElement(
|
|
455
454
|
'div',
|
|
456
455
|
{ style: { padding: '0px 10px' } },
|
|
457
|
-
this.state.scrolling ?
|
|
456
|
+
this.state.scrolling ? React__default.createElement(
|
|
458
457
|
'button',
|
|
459
458
|
{
|
|
460
459
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -462,17 +461,17 @@ var DeckContent = function (_React$Component) {
|
|
|
462
461
|
_this2.loadMore();
|
|
463
462
|
} },
|
|
464
463
|
'Load More'
|
|
465
|
-
) :
|
|
464
|
+
) : React__default.createElement(
|
|
466
465
|
'p',
|
|
467
466
|
{ style: { textAlign: 'center' } },
|
|
468
|
-
|
|
467
|
+
React__default.createElement(
|
|
469
468
|
'b',
|
|
470
469
|
null,
|
|
471
470
|
'End of data'
|
|
472
471
|
)
|
|
473
472
|
)
|
|
474
473
|
),
|
|
475
|
-
|
|
474
|
+
React__default.createElement(
|
|
476
475
|
'noscript',
|
|
477
476
|
null,
|
|
478
477
|
this.renderManualPagination()
|
|
@@ -483,7 +482,7 @@ var DeckContent = function (_React$Component) {
|
|
|
483
482
|
}]);
|
|
484
483
|
|
|
485
484
|
return DeckContent;
|
|
486
|
-
}(
|
|
485
|
+
}(React__default.Component);
|
|
487
486
|
|
|
488
487
|
var ContentCard = withRouter(DeckContent);
|
|
489
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-f076879e.js';
|
|
3
3
|
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-f71787cf.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';
|
|
@@ -29,7 +29,6 @@ import './typeof-a286cf0c.js';
|
|
|
29
29
|
import './web.dom.iterable-4109ff68.js';
|
|
30
30
|
import './_is-array-3e99e06e.js';
|
|
31
31
|
import './_library-528f1934.js';
|
|
32
|
-
import './events-6c3a7a63.js';
|
|
33
32
|
import 'prop-types';
|
|
34
33
|
import 'react-dom';
|
|
35
34
|
import './isSymbol-a7e9aafe.js';
|
|
@@ -186,7 +185,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
186
185
|
var rightItems = _this.props.rightItems;
|
|
187
186
|
|
|
188
187
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
189
|
-
return
|
|
188
|
+
return React__default.createElement(
|
|
190
189
|
'div',
|
|
191
190
|
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
192
191
|
rightItems[i].component
|
|
@@ -194,15 +193,15 @@ var DeckQueue = function (_React$Component) {
|
|
|
194
193
|
}, _this.renderManualPagination = function () {
|
|
195
194
|
var currentPage = _this.state.currentPage;
|
|
196
195
|
|
|
197
|
-
return
|
|
196
|
+
return React__default.createElement(
|
|
198
197
|
'div',
|
|
199
198
|
{ className: 'd-flex justify-content-between' },
|
|
200
|
-
currentPage && currentPage > 1 &&
|
|
199
|
+
currentPage && currentPage > 1 && React__default.createElement(
|
|
201
200
|
'a',
|
|
202
201
|
{ href: '?page=' + (currentPage - 1) },
|
|
203
202
|
'<< Previous'
|
|
204
203
|
),
|
|
205
|
-
|
|
204
|
+
React__default.createElement(
|
|
206
205
|
'a',
|
|
207
206
|
{ href: '?page=' + (currentPage + 1) },
|
|
208
207
|
'Next >>'
|
|
@@ -220,78 +219,78 @@ var DeckQueue = function (_React$Component) {
|
|
|
220
219
|
var lgVar = Math.floor(12 / columns);
|
|
221
220
|
var numberOfItemsBeforeAd = 6;
|
|
222
221
|
|
|
223
|
-
return
|
|
222
|
+
return React__default.createElement(
|
|
224
223
|
Row,
|
|
225
224
|
null,
|
|
226
225
|
this.state.data && this.state.data.map(function (row, index) {
|
|
227
226
|
var pageNumber = row.pageNumber || _this2.state.page;
|
|
228
227
|
// const thumbnailURL = get(row, 'thumbnail.asset.url', this.props.defaultImage)
|
|
229
228
|
|
|
230
|
-
return
|
|
231
|
-
|
|
229
|
+
return React__default.createElement(
|
|
230
|
+
React__default.Fragment,
|
|
232
231
|
{ key: index },
|
|
233
|
-
|
|
232
|
+
React__default.createElement(
|
|
234
233
|
VisibilitySensor,
|
|
235
234
|
{
|
|
236
235
|
onChange: function onChange(isVisible) {
|
|
237
236
|
isVisible && _this2.changePageNumber(pageNumber);
|
|
238
237
|
} },
|
|
239
|
-
|
|
238
|
+
React__default.createElement(
|
|
240
239
|
Col,
|
|
241
240
|
{ md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
242
|
-
|
|
241
|
+
React__default.createElement(
|
|
243
242
|
Card,
|
|
244
243
|
{ className: 'queue-card', style: { borderTop: '1px solid #EEE' } },
|
|
245
|
-
|
|
244
|
+
React__default.createElement(
|
|
246
245
|
Row,
|
|
247
246
|
{ style: { flexDirection: mode } },
|
|
248
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
247
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React__default.createElement(
|
|
249
248
|
Col,
|
|
250
249
|
{ md: 12, lg: 4 },
|
|
251
|
-
|
|
250
|
+
React__default.createElement(
|
|
252
251
|
'a',
|
|
253
252
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
254
|
-
|
|
253
|
+
React__default.createElement(
|
|
255
254
|
LazyLoad,
|
|
256
255
|
{ height: _this2.props.imageHeight },
|
|
257
|
-
|
|
256
|
+
React__default.createElement(Card.Img, { variant: 'top', src: _this2.renderCardImage(row), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
|
|
258
257
|
)
|
|
259
258
|
)
|
|
260
259
|
),
|
|
261
|
-
|
|
260
|
+
React__default.createElement(
|
|
262
261
|
Col,
|
|
263
262
|
null,
|
|
264
|
-
|
|
263
|
+
React__default.createElement(
|
|
265
264
|
Card.Body,
|
|
266
265
|
{ style: { padding: '20px' } },
|
|
267
|
-
row.title &&
|
|
266
|
+
row.title && React__default.createElement(
|
|
268
267
|
Card.Title,
|
|
269
268
|
null,
|
|
270
|
-
|
|
269
|
+
React__default.createElement(
|
|
271
270
|
'a',
|
|
272
271
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
273
272
|
row.title
|
|
274
273
|
)
|
|
275
274
|
),
|
|
276
|
-
_this2.props.showPublished && row.published &&
|
|
275
|
+
_this2.props.showPublished && row.published && React__default.createElement(
|
|
277
276
|
Card.Subtitle,
|
|
278
277
|
null,
|
|
279
278
|
moment(row.published).format('MMMM DD, YYYY')
|
|
280
279
|
),
|
|
281
|
-
_this2.props.showRecent && row.recent && row.recent.title &&
|
|
280
|
+
_this2.props.showRecent && row.recent && row.recent.title && React__default.createElement(
|
|
282
281
|
Card.Subtitle,
|
|
283
282
|
null,
|
|
284
283
|
'Recent : ',
|
|
285
|
-
|
|
284
|
+
React__default.createElement(
|
|
286
285
|
'a',
|
|
287
286
|
{ href: 'view/' + row.recent.url.current },
|
|
288
287
|
row.recent.title
|
|
289
288
|
)
|
|
290
289
|
),
|
|
291
|
-
row.summary &&
|
|
290
|
+
row.summary && React__default.createElement(
|
|
292
291
|
Card.Text,
|
|
293
292
|
null,
|
|
294
|
-
|
|
293
|
+
React__default.createElement(
|
|
295
294
|
'a',
|
|
296
295
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
297
296
|
clean_html_1(row.summary)
|
|
@@ -320,29 +319,29 @@ var DeckQueue = function (_React$Component) {
|
|
|
320
319
|
page = _props.page;
|
|
321
320
|
|
|
322
321
|
|
|
323
|
-
return
|
|
322
|
+
return React__default.createElement(
|
|
324
323
|
'div',
|
|
325
324
|
{ className: 'contentDeck' },
|
|
326
|
-
autoScroll ?
|
|
325
|
+
autoScroll ? React__default.createElement(
|
|
327
326
|
InfiniteScroll,
|
|
328
327
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling },
|
|
329
|
-
|
|
328
|
+
React__default.createElement(
|
|
330
329
|
Container,
|
|
331
330
|
null,
|
|
332
331
|
this.cardLoader(page, columns, variant)
|
|
333
332
|
)
|
|
334
|
-
) :
|
|
335
|
-
|
|
333
|
+
) : React__default.createElement(
|
|
334
|
+
React__default.Fragment,
|
|
336
335
|
null,
|
|
337
|
-
|
|
336
|
+
React__default.createElement(
|
|
338
337
|
Container,
|
|
339
338
|
null,
|
|
340
339
|
this.cardLoader(page, columns, variant)
|
|
341
340
|
),
|
|
342
|
-
|
|
341
|
+
React__default.createElement(
|
|
343
342
|
'div',
|
|
344
343
|
{ style: { padding: '0px 10px' } },
|
|
345
|
-
this.state.scrolling ?
|
|
344
|
+
this.state.scrolling ? React__default.createElement(
|
|
346
345
|
'button',
|
|
347
346
|
{
|
|
348
347
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -350,17 +349,17 @@ var DeckQueue = function (_React$Component) {
|
|
|
350
349
|
_this3.loadMore();
|
|
351
350
|
} },
|
|
352
351
|
'Load More'
|
|
353
|
-
) :
|
|
352
|
+
) : React__default.createElement(
|
|
354
353
|
'p',
|
|
355
354
|
{ style: { textAlign: 'center' } },
|
|
356
|
-
|
|
355
|
+
React__default.createElement(
|
|
357
356
|
'b',
|
|
358
357
|
null,
|
|
359
358
|
'End of data'
|
|
360
359
|
)
|
|
361
360
|
)
|
|
362
361
|
),
|
|
363
|
-
|
|
362
|
+
React__default.createElement(
|
|
364
363
|
'noscript',
|
|
365
364
|
null,
|
|
366
365
|
this.renderManualPagination()
|
|
@@ -371,7 +370,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
371
370
|
}]);
|
|
372
371
|
|
|
373
372
|
return DeckQueue;
|
|
374
|
-
}(
|
|
373
|
+
}(React__default.Component);
|
|
375
374
|
|
|
376
375
|
var Queue = withRouter(DeckQueue);
|
|
377
376
|
|
|
@@ -1,15 +1,14 @@
|
|
|
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';
|
|
9
9
|
import './es6.string.iterator-bc33758b.js';
|
|
10
10
|
import './_to-object-b50e61c3.js';
|
|
11
11
|
import './core.get-iterator-method-133dfacd.js';
|
|
12
|
-
import './events-6c3a7a63.js';
|
|
13
12
|
import 'react-dom';
|
|
14
13
|
import './isSymbol-a7e9aafe.js';
|
|
15
14
|
import './toNumber-5aeba6e7.js';
|
|
@@ -43,20 +42,20 @@ var AD = function AD(_ref) {
|
|
|
43
42
|
}
|
|
44
43
|
}, 500);
|
|
45
44
|
|
|
46
|
-
return
|
|
47
|
-
|
|
45
|
+
return React__default.createElement(
|
|
46
|
+
React__default.Fragment,
|
|
48
47
|
null,
|
|
49
|
-
!showPlaceholder &&
|
|
48
|
+
!showPlaceholder && React__default.createElement(
|
|
50
49
|
lib_1,
|
|
51
50
|
{
|
|
52
51
|
dfpNetworkId: networkID,
|
|
53
52
|
targetingArguments: targeting,
|
|
54
53
|
sizeMapping: sizeMapping,
|
|
55
54
|
lazyLoad: { fetchMarginPercent: 500, renderMarginPercent: 200, mobileScaling: 2.0 } },
|
|
56
|
-
|
|
55
|
+
React__default.createElement(
|
|
57
56
|
'div',
|
|
58
57
|
{ className: className },
|
|
59
|
-
|
|
58
|
+
React__default.createElement(lib_2, {
|
|
60
59
|
slotId: slotId,
|
|
61
60
|
sizes: sizes,
|
|
62
61
|
adUnit: adUnit,
|
|
@@ -68,7 +67,7 @@ var AD = function AD(_ref) {
|
|
|
68
67
|
})
|
|
69
68
|
)
|
|
70
69
|
),
|
|
71
|
-
adRendered && showPlaceholder &&
|
|
70
|
+
adRendered && showPlaceholder && React__default.createElement(
|
|
72
71
|
VisibilitySensor,
|
|
73
72
|
{
|
|
74
73
|
partialVisibility: true,
|
|
@@ -77,7 +76,7 @@ var AD = function AD(_ref) {
|
|
|
77
76
|
setShowPlaceholder(false);
|
|
78
77
|
}
|
|
79
78
|
} },
|
|
80
|
-
|
|
79
|
+
React__default.createElement(
|
|
81
80
|
'div',
|
|
82
81
|
{ style: { height: 'auto' } },
|
|
83
82
|
'\xA0'
|