@mjhls/mjh-framework 1.0.448 → 1.0.450
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 +1 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +6 -7
- package/dist/cjs/AD300x250x600.js +6 -7
- package/dist/cjs/AD728x90.js +8 -9
- package/dist/cjs/ADFloatingFooter.js +11 -12
- package/dist/cjs/ADFooter.js +8 -9
- package/dist/cjs/ADGutter.js +11 -12
- package/dist/cjs/{ADInfeed-7b80e936.js → ADInfeed-5c1d1425.js} +9 -11
- package/dist/cjs/ADSponsoredResources.js +10 -11
- package/dist/cjs/ADWelcome.js +15 -16
- package/dist/cjs/{ADlgInfeed-23bfb514.js → ADlgInfeed-ce35bd57.js} +6 -7
- package/dist/cjs/AccordionPanel.js +21 -23
- package/dist/cjs/AdSlot.js +13 -15
- package/dist/cjs/AdSlotsProvider.js +5 -6
- package/dist/cjs/AlphabeticList.js +15 -16
- package/dist/cjs/ArticleQueue.js +127 -132
- package/dist/cjs/Auth.js +84 -88
- package/dist/cjs/{AuthorComponent-5bb8f868.js → AuthorComponent-cb8b8128.js} +12 -13
- package/dist/cjs/{BlockContent-80608595.js → BlockContent-77f81ffc.js} +24 -26
- package/dist/cjs/Breadcrumbs.js +21 -23
- package/dist/cjs/CMEDeck.js +61 -61
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +19 -22
- package/dist/cjs/Column3.js +31 -34
- package/dist/cjs/ConferenceArticleCard.js +18 -19
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +72 -76
- package/dist/cjs/DeckQueue.js +68 -72
- package/dist/cjs/{Dfp-19f10ad4.js → Dfp-fcdeabc4.js} +20 -22
- package/dist/cjs/EventsDeck.js +72 -79
- package/dist/cjs/Feature.js +23 -25
- package/dist/cjs/{Figure-ce37247b.js → Figure-eeac313a.js} +20 -21
- package/dist/cjs/ForbesHero.js +33 -34
- package/dist/cjs/GridContent.js +141 -145
- package/dist/cjs/GridHero.js +34 -35
- package/dist/cjs/GroupDeck.js +33 -34
- package/dist/cjs/HamMagazine.js +103 -108
- package/dist/cjs/Header.js +11 -13
- package/dist/cjs/Hero.js +10 -11
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalHero.js +24 -25
- package/dist/cjs/{InscreenSensor-04a70c60.js → InscreenSensor-bcdec6b0.js} +7 -8
- package/dist/cjs/IssueContentDeck.js +59 -64
- package/dist/cjs/IssueDeck.js +59 -64
- package/dist/cjs/IssueLanding.js +16 -17
- package/dist/cjs/LeftNav.js +16 -18
- package/dist/cjs/MasterDeck.js +43 -44
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +106 -111
- package/dist/cjs/NavNative.js +65 -70
- package/dist/cjs/NavNormal.js +36 -41
- package/dist/cjs/OncliveHero.js +17 -18
- package/dist/cjs/OncliveLargeHero.js +58 -59
- package/dist/cjs/PageFilter.js +8 -9
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PublicationDeck.js +57 -62
- package/dist/cjs/PublicationLanding.js +44 -48
- package/dist/cjs/QueueDeckExpanded.js +104 -104
- package/dist/cjs/RelatedContent.js +18 -19
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/Search.js +12 -16
- package/dist/cjs/SideFooter.js +17 -18
- package/dist/cjs/{SocialNavFooter-d9ab4d17.js → SocialNavFooter-9a07520f.js} +17 -18
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +54 -59
- package/dist/cjs/TemplateNormal.js +31 -32
- package/dist/cjs/ThumbnailCard.js +17 -19
- package/dist/cjs/Ustream.js +18 -19
- package/dist/cjs/VerticalHero.js +16 -17
- package/dist/cjs/VideoSeriesFilter.js +10 -10
- package/dist/cjs/VideoSeriesListing.js +31 -32
- package/dist/cjs/View.js +170 -178
- package/dist/cjs/YahooHero.js +29 -30
- package/dist/cjs/YoutubeGroup.js +41 -42
- package/dist/cjs/{brightcove-react-player-loader.es-4ba0d3d5.js → brightcove-react-player-loader.es-156bd4d6.js} +5 -6
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getSerializers.js +209 -214
- package/dist/cjs/{getTargeting-3ced038f.js → getTargeting-37612527.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-637d3f1e.js +3 -0
- package/dist/cjs/{index-8a3fb0bc.js → index-fa0fb52c.js} +10 -13
- package/dist/cjs/{index-b2448ff6.js → index-fa3cec70.js} +8 -10
- package/dist/cjs/{index.es-44c8e726.js → index.es-9110add6.js} +7 -8
- package/dist/cjs/index.js +23 -23
- package/dist/cjs/{inherits-4a2f1cc3.js → inherits-93684212.js} +1 -1
- package/dist/cjs/{main-d76cde9c.js → main-88348b15.js} +16 -17
- package/dist/cjs/{moment-66a6a284.js → moment-575fe24c.js} +1 -1
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-cd0d9d3b.js} +11 -13
- package/dist/cjs/{typeof-583cdc4b.js → typeof-1869832c.js} +1 -1
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{visibility-sensor-a40ae0cd.js → visibility-sensor-0c45a583.js} +6 -8
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +4 -4
- package/dist/esm/AD300x250x600.js +4 -4
- package/dist/esm/AD728x90.js +6 -6
- 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-1d67a779.js → ADInfeed-24924eab.js} +5 -5
- package/dist/esm/ADSponsoredResources.js +8 -8
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-d5161b6e.js → ADlgInfeed-019d6cd9.js} +4 -4
- package/dist/esm/AccordionPanel.js +16 -16
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +3 -3
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleQueue.js +114 -116
- package/dist/esm/Auth.js +71 -71
- package/dist/esm/{AuthorComponent-f67cb027.js → AuthorComponent-158226c9.js} +10 -10
- package/dist/esm/{BlockContent-4af2feb9.js → BlockContent-e9b4ddcf.js} +3 -3
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +58 -58
- 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 +13 -13
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +52 -52
- package/dist/esm/DeckQueue.js +45 -45
- package/dist/esm/{Dfp-7addbfb1.js → Dfp-58cfc45a.js} +10 -10
- package/dist/esm/EventsDeck.js +44 -44
- package/dist/esm/Feature.js +15 -15
- package/dist/esm/{Figure-408929f3.js → Figure-bc2b95d7.js} +16 -16
- package/dist/esm/ForbesHero.js +27 -27
- package/dist/esm/GridContent.js +102 -102
- package/dist/esm/GridHero.js +28 -28
- package/dist/esm/GroupDeck.js +29 -29
- package/dist/esm/HamMagazine.js +74 -74
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +6 -6
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalHero.js +19 -19
- package/dist/esm/{InscreenSensor-b7f931bf.js → InscreenSensor-67905ed5.js} +5 -5
- package/dist/esm/IssueContentDeck.js +35 -35
- package/dist/esm/IssueDeck.js +33 -33
- package/dist/esm/IssueLanding.js +14 -14
- package/dist/esm/LeftNav.js +12 -12
- package/dist/esm/MasterDeck.js +37 -37
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +79 -79
- package/dist/esm/NavNative.js +47 -47
- package/dist/esm/NavNormal.js +20 -20
- package/dist/esm/OncliveHero.js +13 -13
- package/dist/esm/OncliveLargeHero.js +51 -51
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PdfDownload.js +5 -5
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PublicationDeck.js +33 -33
- package/dist/esm/PublicationLanding.js +25 -25
- package/dist/esm/QueueDeckExpanded.js +90 -90
- package/dist/esm/RelatedContent.js +14 -14
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/Search.js +5 -5
- package/dist/esm/SideFooter.js +15 -15
- package/dist/esm/{SocialNavFooter-1a531144.js → SocialNavFooter-4fb16720.js} +15 -15
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +35 -35
- package/dist/esm/TemplateNormal.js +25 -25
- package/dist/esm/ThumbnailCard.js +9 -9
- package/dist/esm/Ustream.js +14 -14
- package/dist/esm/VerticalHero.js +12 -12
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesListing.js +26 -26
- package/dist/esm/View.js +144 -146
- package/dist/esm/YahooHero.js +24 -24
- package/dist/esm/YoutubeGroup.js +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-e1c6b0f2.js → brightcove-react-player-loader.es-83f53e4e.js} +3 -3
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getSerializers.js +170 -170
- package/dist/esm/{index-fb49124c.js → index-3f4dd6f2.js} +3 -3
- package/dist/esm/{index-c5fd0af5.js → index-5f9f807a.js} +4 -4
- package/dist/esm/{index.es-27d0bae9.js → index.es-29c1cef5.js} +5 -5
- package/dist/esm/index.js +18 -18
- package/dist/esm/{inherits-2758cc14.js → inherits-b8e4c697.js} +1 -1
- package/dist/esm/{main-8c8784b8.js → main-d7ee6151.js} +16 -16
- package/dist/esm/{moment-12415288.js → moment-e2f9b20c.js} +1 -1
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/{typeof-7e72fee0.js → typeof-5f046efd.js} +1 -1
- package/dist/esm/{visibility-sensor-87d6b78c.js → visibility-sensor-0baa4eea.js} +3 -3
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
package/dist/esm/DeckContent.js
CHANGED
|
@@ -8,27 +8,27 @@ import { _ as _toConsumableArray } from './toConsumableArray-8712d678.js';
|
|
|
8
8
|
import './_object-pie-33c40e79.js';
|
|
9
9
|
import { _ as _extends } from './extends-6e00b262.js';
|
|
10
10
|
import './_object-sap-56bb8073.js';
|
|
11
|
-
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-
|
|
11
|
+
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-b8e4c697.js';
|
|
12
12
|
import './web.dom.iterable-46c95e52.js';
|
|
13
|
-
import './typeof-
|
|
13
|
+
import './typeof-5f046efd.js';
|
|
14
14
|
import './_is-array-dd5523d6.js';
|
|
15
|
-
import
|
|
16
|
-
import { l as lib_3 } from './index-
|
|
15
|
+
import React__default from 'react';
|
|
16
|
+
import { l as lib_3 } from './index-3f4dd6f2.js';
|
|
17
17
|
import 'prop-types';
|
|
18
18
|
import Container from 'react-bootstrap/Container';
|
|
19
19
|
import Row from 'react-bootstrap/Row';
|
|
20
20
|
import Col from 'react-bootstrap/Col';
|
|
21
21
|
import Card from 'react-bootstrap/Card';
|
|
22
|
-
import { m as moment } from './moment-
|
|
22
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
23
23
|
import { withRouter } from 'next/router';
|
|
24
24
|
import './isSymbol-c1b9be80.js';
|
|
25
25
|
import { d as debounce_1 } from './debounce-8cd9e09c.js';
|
|
26
|
-
import { I as InfiniteScroll } from './index.es-
|
|
26
|
+
import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
27
27
|
import 'react-dom';
|
|
28
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
28
|
+
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
29
29
|
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
30
|
-
import { L as LazyLoad } from './index-
|
|
31
|
-
import { m as main_36 } from './main-
|
|
30
|
+
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
31
|
+
import { m as main_36 } from './main-d7ee6151.js';
|
|
32
32
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
33
33
|
import './slicedToArray-f1e40361.js';
|
|
34
34
|
import './stringify-e30bc114.js';
|
|
@@ -38,7 +38,7 @@ import './promise-53143c9a.js';
|
|
|
38
38
|
import './Beam.js';
|
|
39
39
|
import './Segment.js';
|
|
40
40
|
import './AdSlot.js';
|
|
41
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
41
|
+
import { A as ADInfeed } from './ADInfeed-24924eab.js';
|
|
42
42
|
|
|
43
43
|
var DeckContent = function (_React$Component) {
|
|
44
44
|
_inherits(DeckContent, _React$Component);
|
|
@@ -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
|
}
|
|
@@ -276,7 +276,7 @@ var DeckContent = function (_React$Component) {
|
|
|
276
276
|
articles = _this.state.data;
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
return
|
|
279
|
+
return React__default.createElement(
|
|
280
280
|
Row,
|
|
281
281
|
null,
|
|
282
282
|
articles && articles.map(function (row, index) {
|
|
@@ -288,51 +288,51 @@ var DeckContent = function (_React$Component) {
|
|
|
288
288
|
lgVar = 6;
|
|
289
289
|
}
|
|
290
290
|
if (row._type === 'BrandInsight' && row.adUnit) {
|
|
291
|
-
return
|
|
291
|
+
return React__default.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
292
292
|
} else {
|
|
293
293
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
294
294
|
var contentCategoryName = row.contentCategory && row.contentCategory.name && _this.mapping[row.contentCategory.name] ? row.contentCategory.name : 'Articles';
|
|
295
|
-
return
|
|
296
|
-
|
|
295
|
+
return React__default.createElement(
|
|
296
|
+
React__default.Fragment,
|
|
297
297
|
{ key: itemCounter },
|
|
298
|
-
|
|
298
|
+
React__default.createElement(
|
|
299
299
|
VisibilitySensor,
|
|
300
300
|
{
|
|
301
301
|
onChange: function onChange(isVisible) {
|
|
302
302
|
isVisible && _this.changePageNumber(pageNumber);
|
|
303
303
|
} },
|
|
304
|
-
|
|
304
|
+
React__default.createElement(
|
|
305
305
|
Col,
|
|
306
306
|
{ md: 12, lg: lgVar, counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
307
|
-
|
|
307
|
+
React__default.createElement(
|
|
308
308
|
Card,
|
|
309
309
|
{ className: 'content-card', style: { flexDirection: mode } },
|
|
310
|
-
(row.thumbnail && row.thumbnail.asset || _this.props.defaultImage) &&
|
|
310
|
+
(row.thumbnail && row.thumbnail.asset || _this.props.defaultImage) && React__default.createElement(
|
|
311
311
|
'a',
|
|
312
312
|
{ href: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
313
|
-
|
|
313
|
+
React__default.createElement(
|
|
314
314
|
LazyLoad,
|
|
315
315
|
{ height: _this.props.imageHeight },
|
|
316
|
-
|
|
316
|
+
React__default.createElement(Card.Img, {
|
|
317
317
|
variant: 'top',
|
|
318
318
|
src: _this.renderCardImage(row, page),
|
|
319
319
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
320
320
|
})
|
|
321
321
|
)
|
|
322
322
|
),
|
|
323
|
-
|
|
323
|
+
React__default.createElement(
|
|
324
324
|
Card.Body,
|
|
325
325
|
null,
|
|
326
|
-
|
|
326
|
+
React__default.createElement(
|
|
327
327
|
'a',
|
|
328
328
|
{ href: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
329
|
-
|
|
329
|
+
React__default.createElement(
|
|
330
330
|
Card.Title,
|
|
331
331
|
null,
|
|
332
332
|
row.title
|
|
333
333
|
)
|
|
334
334
|
),
|
|
335
|
-
_this.props.showPublished && row.published &&
|
|
335
|
+
_this.props.showPublished && row.published && React__default.createElement(
|
|
336
336
|
Card.Subtitle,
|
|
337
337
|
null,
|
|
338
338
|
moment(row.published).format('MMMM DD, YYYY')
|
|
@@ -340,7 +340,7 @@ var DeckContent = function (_React$Component) {
|
|
|
340
340
|
_this.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && row.authorMapping.map(function (authorDetail, index) {
|
|
341
341
|
return _this.renderAuthor(authorDetail, index, row.authorMapping.length);
|
|
342
342
|
}),
|
|
343
|
-
|
|
343
|
+
React__default.createElement(
|
|
344
344
|
Card.Text,
|
|
345
345
|
null,
|
|
346
346
|
clean_html_1(row.summary)
|
|
@@ -358,7 +358,7 @@ var DeckContent = function (_React$Component) {
|
|
|
358
358
|
var rightItems = _this.props.rightItems;
|
|
359
359
|
|
|
360
360
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
361
|
-
return
|
|
361
|
+
return React__default.createElement(
|
|
362
362
|
Col,
|
|
363
363
|
{ md: 12, style: { display: 'flex', flex: '1 0 auto' } },
|
|
364
364
|
rightItems[i].component
|
|
@@ -366,15 +366,15 @@ var DeckContent = function (_React$Component) {
|
|
|
366
366
|
}, _this.renderManualPagination = function () {
|
|
367
367
|
var currentPage = _this.state.currentPage;
|
|
368
368
|
|
|
369
|
-
return
|
|
369
|
+
return React__default.createElement(
|
|
370
370
|
'div',
|
|
371
371
|
{ className: 'd-flex justify-content-between' },
|
|
372
|
-
currentPage && currentPage > 1 &&
|
|
372
|
+
currentPage && currentPage > 1 && React__default.createElement(
|
|
373
373
|
'a',
|
|
374
374
|
{ href: '?page=' + (currentPage - 1) },
|
|
375
375
|
'<< Previous'
|
|
376
376
|
),
|
|
377
|
-
|
|
377
|
+
React__default.createElement(
|
|
378
378
|
'a',
|
|
379
379
|
{ href: '?page=' + (currentPage + 1) },
|
|
380
380
|
'Next >>'
|
|
@@ -420,38 +420,38 @@ var DeckContent = function (_React$Component) {
|
|
|
420
420
|
brandInsight = _props.brandInsight;
|
|
421
421
|
|
|
422
422
|
|
|
423
|
-
return
|
|
423
|
+
return React__default.createElement(
|
|
424
424
|
'div',
|
|
425
425
|
{ className: 'contentDeck' },
|
|
426
|
-
autoScroll ?
|
|
427
|
-
|
|
426
|
+
autoScroll ? React__default.createElement(
|
|
427
|
+
React__default.Fragment,
|
|
428
428
|
null,
|
|
429
|
-
|
|
429
|
+
React__default.createElement(
|
|
430
430
|
InfiniteScroll,
|
|
431
431
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.9 },
|
|
432
|
-
|
|
432
|
+
React__default.createElement(
|
|
433
433
|
Container,
|
|
434
434
|
null,
|
|
435
435
|
this.cardLoader(page, columns, variant, showBI, brandInsight)
|
|
436
436
|
)
|
|
437
437
|
),
|
|
438
|
-
|
|
438
|
+
React__default.createElement(
|
|
439
439
|
'noscript',
|
|
440
440
|
null,
|
|
441
441
|
this.renderManualPagination()
|
|
442
442
|
)
|
|
443
|
-
) :
|
|
444
|
-
|
|
443
|
+
) : React__default.createElement(
|
|
444
|
+
React__default.Fragment,
|
|
445
445
|
null,
|
|
446
|
-
|
|
446
|
+
React__default.createElement(
|
|
447
447
|
Container,
|
|
448
448
|
null,
|
|
449
449
|
this.cardLoader(page, columns, variant, showBI, brandInsight)
|
|
450
450
|
),
|
|
451
|
-
|
|
451
|
+
React__default.createElement(
|
|
452
452
|
'div',
|
|
453
453
|
{ style: { padding: '0px 10px' } },
|
|
454
|
-
this.state.scrolling ?
|
|
454
|
+
this.state.scrolling ? React__default.createElement(
|
|
455
455
|
'button',
|
|
456
456
|
{
|
|
457
457
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -459,17 +459,17 @@ var DeckContent = function (_React$Component) {
|
|
|
459
459
|
_this2.loadMore();
|
|
460
460
|
} },
|
|
461
461
|
'Load More'
|
|
462
|
-
) :
|
|
462
|
+
) : React__default.createElement(
|
|
463
463
|
'p',
|
|
464
464
|
{ style: { textAlign: 'center' } },
|
|
465
|
-
|
|
465
|
+
React__default.createElement(
|
|
466
466
|
'b',
|
|
467
467
|
null,
|
|
468
468
|
'End of data'
|
|
469
469
|
)
|
|
470
470
|
)
|
|
471
471
|
),
|
|
472
|
-
|
|
472
|
+
React__default.createElement(
|
|
473
473
|
'noscript',
|
|
474
474
|
null,
|
|
475
475
|
this.renderManualPagination()
|
|
@@ -480,7 +480,7 @@ var DeckContent = function (_React$Component) {
|
|
|
480
480
|
}]);
|
|
481
481
|
|
|
482
482
|
return DeckContent;
|
|
483
|
-
}(
|
|
483
|
+
}(React__default.Component);
|
|
484
484
|
|
|
485
485
|
var ContentCard = withRouter(DeckContent);
|
|
486
486
|
|
package/dist/esm/DeckQueue.js
CHANGED
|
@@ -8,27 +8,27 @@ import { _ as _toConsumableArray } from './toConsumableArray-8712d678.js';
|
|
|
8
8
|
import './_object-pie-33c40e79.js';
|
|
9
9
|
import { _ as _extends } from './extends-6e00b262.js';
|
|
10
10
|
import './_object-sap-56bb8073.js';
|
|
11
|
-
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-
|
|
11
|
+
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-b8e4c697.js';
|
|
12
12
|
import './web.dom.iterable-46c95e52.js';
|
|
13
|
-
import './typeof-
|
|
13
|
+
import './typeof-5f046efd.js';
|
|
14
14
|
import './_is-array-dd5523d6.js';
|
|
15
|
-
import
|
|
16
|
-
import { l as lib_3 } from './index-
|
|
15
|
+
import React__default from 'react';
|
|
16
|
+
import { l as lib_3 } from './index-3f4dd6f2.js';
|
|
17
17
|
import 'prop-types';
|
|
18
18
|
import Container from 'react-bootstrap/Container';
|
|
19
19
|
import Row from 'react-bootstrap/Row';
|
|
20
20
|
import Col from 'react-bootstrap/Col';
|
|
21
21
|
import Card from 'react-bootstrap/Card';
|
|
22
|
-
import { m as moment } from './moment-
|
|
22
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
23
23
|
import { withRouter } from 'next/router';
|
|
24
24
|
import './isSymbol-c1b9be80.js';
|
|
25
25
|
import { d as debounce_1 } from './debounce-8cd9e09c.js';
|
|
26
|
-
import { I as InfiniteScroll } from './index.es-
|
|
26
|
+
import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
27
27
|
import 'react-dom';
|
|
28
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
28
|
+
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
29
29
|
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
30
|
-
import { L as LazyLoad } from './index-
|
|
31
|
-
import { m as main_36 } from './main-
|
|
30
|
+
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
31
|
+
import { m as main_36 } from './main-d7ee6151.js';
|
|
32
32
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
33
33
|
import './_arrayMap-a8dd2b2c.js';
|
|
34
34
|
import { g as get_1 } from './get-ae817b75.js';
|
|
@@ -183,7 +183,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
183
183
|
var rightItems = _this.props.rightItems;
|
|
184
184
|
|
|
185
185
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
186
|
-
return
|
|
186
|
+
return React__default.createElement(
|
|
187
187
|
'div',
|
|
188
188
|
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
189
189
|
rightItems[i].component
|
|
@@ -191,15 +191,15 @@ var DeckQueue = function (_React$Component) {
|
|
|
191
191
|
}, _this.renderManualPagination = function () {
|
|
192
192
|
var currentPage = _this.state.currentPage;
|
|
193
193
|
|
|
194
|
-
return
|
|
194
|
+
return React__default.createElement(
|
|
195
195
|
'div',
|
|
196
196
|
{ className: 'd-flex justify-content-between' },
|
|
197
|
-
currentPage && currentPage > 1 &&
|
|
197
|
+
currentPage && currentPage > 1 && React__default.createElement(
|
|
198
198
|
'a',
|
|
199
199
|
{ href: '?page=' + (currentPage - 1) },
|
|
200
200
|
'<< Previous'
|
|
201
201
|
),
|
|
202
|
-
|
|
202
|
+
React__default.createElement(
|
|
203
203
|
'a',
|
|
204
204
|
{ href: '?page=' + (currentPage + 1) },
|
|
205
205
|
'Next >>'
|
|
@@ -217,78 +217,78 @@ var DeckQueue = function (_React$Component) {
|
|
|
217
217
|
var lgVar = Math.floor(12 / columns);
|
|
218
218
|
var numberOfItemsBeforeAd = 6;
|
|
219
219
|
|
|
220
|
-
return
|
|
220
|
+
return React__default.createElement(
|
|
221
221
|
Row,
|
|
222
222
|
null,
|
|
223
223
|
this.state.data && this.state.data.map(function (row, index) {
|
|
224
224
|
var pageNumber = row.pageNumber || _this2.state.page;
|
|
225
225
|
// const thumbnailURL = get(row, 'thumbnail.asset.url', this.props.defaultImage)
|
|
226
226
|
|
|
227
|
-
return
|
|
228
|
-
|
|
227
|
+
return React__default.createElement(
|
|
228
|
+
React__default.Fragment,
|
|
229
229
|
{ key: index },
|
|
230
|
-
|
|
230
|
+
React__default.createElement(
|
|
231
231
|
VisibilitySensor,
|
|
232
232
|
{
|
|
233
233
|
onChange: function onChange(isVisible) {
|
|
234
234
|
isVisible && _this2.changePageNumber(pageNumber);
|
|
235
235
|
} },
|
|
236
|
-
|
|
236
|
+
React__default.createElement(
|
|
237
237
|
Col,
|
|
238
238
|
{ md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
239
|
-
|
|
239
|
+
React__default.createElement(
|
|
240
240
|
Card,
|
|
241
241
|
{ className: 'queue-card', style: { borderTop: '1px solid #EEE' } },
|
|
242
|
-
|
|
242
|
+
React__default.createElement(
|
|
243
243
|
Row,
|
|
244
244
|
{ style: { flexDirection: mode } },
|
|
245
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
245
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React__default.createElement(
|
|
246
246
|
Col,
|
|
247
247
|
{ md: 12, lg: 4 },
|
|
248
|
-
|
|
248
|
+
React__default.createElement(
|
|
249
249
|
'a',
|
|
250
250
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
251
|
-
|
|
251
|
+
React__default.createElement(
|
|
252
252
|
LazyLoad,
|
|
253
253
|
{ height: _this2.props.imageHeight },
|
|
254
|
-
|
|
254
|
+
React__default.createElement(Card.Img, { variant: 'top', src: _this2.renderCardImage(row), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
|
|
255
255
|
)
|
|
256
256
|
)
|
|
257
257
|
),
|
|
258
|
-
|
|
258
|
+
React__default.createElement(
|
|
259
259
|
Col,
|
|
260
260
|
null,
|
|
261
|
-
|
|
261
|
+
React__default.createElement(
|
|
262
262
|
Card.Body,
|
|
263
263
|
{ style: { padding: '20px' } },
|
|
264
|
-
row.title &&
|
|
264
|
+
row.title && React__default.createElement(
|
|
265
265
|
Card.Title,
|
|
266
266
|
null,
|
|
267
|
-
|
|
267
|
+
React__default.createElement(
|
|
268
268
|
'a',
|
|
269
269
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
270
270
|
row.title
|
|
271
271
|
)
|
|
272
272
|
),
|
|
273
|
-
_this2.props.showPublished && row.published &&
|
|
273
|
+
_this2.props.showPublished && row.published && React__default.createElement(
|
|
274
274
|
Card.Subtitle,
|
|
275
275
|
null,
|
|
276
276
|
moment(row.published).format('MMMM DD, YYYY')
|
|
277
277
|
),
|
|
278
|
-
_this2.props.showRecent && row.recent && row.recent.title &&
|
|
278
|
+
_this2.props.showRecent && row.recent && row.recent.title && React__default.createElement(
|
|
279
279
|
Card.Subtitle,
|
|
280
280
|
null,
|
|
281
281
|
'Recent : ',
|
|
282
|
-
|
|
282
|
+
React__default.createElement(
|
|
283
283
|
'a',
|
|
284
284
|
{ href: 'view/' + row.recent.url.current },
|
|
285
285
|
row.recent.title
|
|
286
286
|
)
|
|
287
287
|
),
|
|
288
|
-
row.summary &&
|
|
288
|
+
row.summary && React__default.createElement(
|
|
289
289
|
Card.Text,
|
|
290
290
|
null,
|
|
291
|
-
|
|
291
|
+
React__default.createElement(
|
|
292
292
|
'a',
|
|
293
293
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
294
294
|
clean_html_1(row.summary)
|
|
@@ -317,29 +317,29 @@ var DeckQueue = function (_React$Component) {
|
|
|
317
317
|
page = _props.page;
|
|
318
318
|
|
|
319
319
|
|
|
320
|
-
return
|
|
320
|
+
return React__default.createElement(
|
|
321
321
|
'div',
|
|
322
322
|
{ className: 'contentDeck' },
|
|
323
|
-
autoScroll ?
|
|
323
|
+
autoScroll ? React__default.createElement(
|
|
324
324
|
InfiniteScroll,
|
|
325
325
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling },
|
|
326
|
-
|
|
326
|
+
React__default.createElement(
|
|
327
327
|
Container,
|
|
328
328
|
null,
|
|
329
329
|
this.cardLoader(page, columns, variant)
|
|
330
330
|
)
|
|
331
|
-
) :
|
|
332
|
-
|
|
331
|
+
) : React__default.createElement(
|
|
332
|
+
React__default.Fragment,
|
|
333
333
|
null,
|
|
334
|
-
|
|
334
|
+
React__default.createElement(
|
|
335
335
|
Container,
|
|
336
336
|
null,
|
|
337
337
|
this.cardLoader(page, columns, variant)
|
|
338
338
|
),
|
|
339
|
-
|
|
339
|
+
React__default.createElement(
|
|
340
340
|
'div',
|
|
341
341
|
{ style: { padding: '0px 10px' } },
|
|
342
|
-
this.state.scrolling ?
|
|
342
|
+
this.state.scrolling ? React__default.createElement(
|
|
343
343
|
'button',
|
|
344
344
|
{
|
|
345
345
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -347,17 +347,17 @@ var DeckQueue = function (_React$Component) {
|
|
|
347
347
|
_this3.loadMore();
|
|
348
348
|
} },
|
|
349
349
|
'Load More'
|
|
350
|
-
) :
|
|
350
|
+
) : React__default.createElement(
|
|
351
351
|
'p',
|
|
352
352
|
{ style: { textAlign: 'center' } },
|
|
353
|
-
|
|
353
|
+
React__default.createElement(
|
|
354
354
|
'b',
|
|
355
355
|
null,
|
|
356
356
|
'End of data'
|
|
357
357
|
)
|
|
358
358
|
)
|
|
359
359
|
),
|
|
360
|
-
|
|
360
|
+
React__default.createElement(
|
|
361
361
|
'noscript',
|
|
362
362
|
null,
|
|
363
363
|
this.renderManualPagination()
|
|
@@ -368,7 +368,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
368
368
|
}]);
|
|
369
369
|
|
|
370
370
|
return DeckQueue;
|
|
371
|
-
}(
|
|
371
|
+
}(React__default.Component);
|
|
372
372
|
|
|
373
373
|
var Queue = withRouter(DeckQueue);
|
|
374
374
|
|
|
@@ -2,13 +2,13 @@ import './_commonjsHelpers-0c4b6f40.js';
|
|
|
2
2
|
import './_to-object-16fd8b46.js';
|
|
3
3
|
import './core.get-iterator-method-f5c0d66a.js';
|
|
4
4
|
import './web.dom.iterable-46c95e52.js';
|
|
5
|
-
import
|
|
6
|
-
import { b as lib_1, a as lib_2 } from './index-
|
|
5
|
+
import React__default, { useState } from 'react';
|
|
6
|
+
import { b as lib_1, a as lib_2 } from './index-3f4dd6f2.js';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import './isSymbol-c1b9be80.js';
|
|
9
9
|
import { d as debounce_1 } from './debounce-8cd9e09c.js';
|
|
10
10
|
import 'react-dom';
|
|
11
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
11
|
+
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
12
12
|
import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
13
13
|
|
|
14
14
|
var AD = function AD(_ref) {
|
|
@@ -40,20 +40,20 @@ var AD = function AD(_ref) {
|
|
|
40
40
|
}
|
|
41
41
|
}, 500);
|
|
42
42
|
|
|
43
|
-
return
|
|
44
|
-
|
|
43
|
+
return React__default.createElement(
|
|
44
|
+
React__default.Fragment,
|
|
45
45
|
null,
|
|
46
|
-
!showPlaceholder &&
|
|
46
|
+
!showPlaceholder && React__default.createElement(
|
|
47
47
|
lib_1,
|
|
48
48
|
{
|
|
49
49
|
dfpNetworkId: networkID,
|
|
50
50
|
targetingArguments: targeting,
|
|
51
51
|
sizeMapping: sizeMapping,
|
|
52
52
|
lazyLoad: { fetchMarginPercent: 500, renderMarginPercent: 200, mobileScaling: 2.0 } },
|
|
53
|
-
|
|
53
|
+
React__default.createElement(
|
|
54
54
|
'div',
|
|
55
55
|
{ className: className },
|
|
56
|
-
|
|
56
|
+
React__default.createElement(lib_2, {
|
|
57
57
|
slotId: slotId,
|
|
58
58
|
sizes: sizes,
|
|
59
59
|
adUnit: adUnit,
|
|
@@ -65,7 +65,7 @@ var AD = function AD(_ref) {
|
|
|
65
65
|
})
|
|
66
66
|
)
|
|
67
67
|
),
|
|
68
|
-
adRendered && showPlaceholder &&
|
|
68
|
+
adRendered && showPlaceholder && React__default.createElement(
|
|
69
69
|
VisibilitySensor,
|
|
70
70
|
{
|
|
71
71
|
partialVisibility: true,
|
|
@@ -74,7 +74,7 @@ var AD = function AD(_ref) {
|
|
|
74
74
|
setShowPlaceholder(false);
|
|
75
75
|
}
|
|
76
76
|
} },
|
|
77
|
-
|
|
77
|
+
React__default.createElement(
|
|
78
78
|
'div',
|
|
79
79
|
{ style: { height: 'auto' } },
|
|
80
80
|
'\xA0'
|