@mjhls/mjh-framework 1.0.876 → 1.0.877
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 +168 -168
- 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 +5 -6
- package/dist/cjs/AdSlotsProvider.js +2 -3
- package/dist/cjs/AlgoliaSearch.js +17 -14098
- 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/AuthWrapper.js +1 -1
- package/dist/cjs/Beam.js +2 -2
- 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-9be904d5.js → Dfp-94f8ccdf.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 +36 -37
- 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 +406 -306
- package/dist/cjs/NavMagazine.js +16 -16
- package/dist/cjs/NavNative.js +12 -12
- 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 +26 -26
- 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/Segment.js +0 -1
- package/dist/cjs/SeriesListingDeck.js +3 -4
- package/dist/cjs/{SeriesSlider-ce3261cb.js → SeriesSlider-f9128638.js} +5 -5
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-5ec44406.js → SocialSearchComponent-4942ddfc.js} +3 -3
- 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 +9 -10
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/getSerializers.js +5 -6
- package/dist/cjs/{getTargeting-9d509319.js → getTargeting-6d59cc5b.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-6a2a3e03.js → index-2a2528f6.js} +28 -28
- 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-44f3e2d0.js → index.esm-c1e16606.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-6c6093ae.js → ADInfeed-c7b8f6be.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-5d7386e8.js → ADlgInfeed-1aea5403.js} +4 -4
- package/dist/esm/AccordionPanel.js +18 -18
- package/dist/esm/AdSlot.js +8 -9
- package/dist/esm/AdSlotsProvider.js +4 -5
- package/dist/esm/AlgoliaSearch.js +40 -14121
- 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/AuthWrapper.js +26 -26
- package/dist/esm/{AuthorComponent-46a745ba.js → AuthorComponent-defe68b6.js} +10 -10
- package/dist/esm/Beam.js +2 -2
- 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-4ca12f2e.js → Dfp-4b99f79d.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 +124 -125
- 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 +51 -52
- 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 +432 -332
- 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/OncliveHero.js +13 -13
- package/dist/esm/OncliveLargeHero.js +50 -50
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +66 -67
- 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 +75 -75
- 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/Segment.js +0 -1
- package/dist/esm/SeriesListingDeck.js +19 -20
- package/dist/esm/{SeriesSlider-485f514e.js → SeriesSlider-98b7a870.js} +23 -23
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-a5b11613.js → SocialSearchComponent-9458fac6.js} +22 -22
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +35 -35
- package/dist/esm/TaxonomyDescription.js +13 -14
- package/dist/esm/TemplateNormal.js +29 -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 -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 +173 -174
- package/dist/esm/YahooHero.js +23 -23
- package/dist/esm/YoutubeGroup.js +38 -38
- 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 -9
- package/dist/esm/{getTargeting-ff2c9409.js → getTargeting-3792eba9.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-5bbd1562.js → index-1d312e35.js} +444 -444
- 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.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-c6715e80.js → index.esm-9b042655.js} +1 -1
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-d4932dea.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-1894c974.js} +20 -20
- 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 +111 -111
- 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-b9e5ff3f.js → ADInfeed-3c44e465.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-3cdefebd.js → ADlgInfeed-0c03dac2.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { m as moment } from './moment-bc12cb97.js';
|
|
3
3
|
import urlFor from './urlFor.js';
|
|
4
4
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
@@ -7,21 +7,21 @@ import './web.dom.iterable-fdf034f5.js';
|
|
|
7
7
|
import './core.get-iterator-method-e903ff31.js';
|
|
8
8
|
import './index-0dbff1d1.js';
|
|
9
9
|
|
|
10
|
-
/*
|
|
11
|
-
Example usage - targetedonc.com/latest-conference
|
|
12
|
-
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
13
|
-
...,
|
|
14
|
-
title,
|
|
15
|
-
summary,
|
|
16
|
-
thumbnail,
|
|
17
|
-
url,
|
|
18
|
-
published,
|
|
19
|
-
documentGroup->,
|
|
20
|
-
contentCategory->,
|
|
21
|
-
'pageNumber': ${currentPage}
|
|
22
|
-
}`
|
|
23
|
-
|
|
24
|
-
const posts = await client.fetch(query, params)
|
|
10
|
+
/*
|
|
11
|
+
Example usage - targetedonc.com/latest-conference
|
|
12
|
+
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
13
|
+
...,
|
|
14
|
+
title,
|
|
15
|
+
summary,
|
|
16
|
+
thumbnail,
|
|
17
|
+
url,
|
|
18
|
+
published,
|
|
19
|
+
documentGroup->,
|
|
20
|
+
contentCategory->,
|
|
21
|
+
'pageNumber': ${currentPage}
|
|
22
|
+
}`
|
|
23
|
+
|
|
24
|
+
const posts = await client.fetch(query, params)
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -32,51 +32,51 @@ var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
|
32
32
|
|
|
33
33
|
// title, thumbnail, summary, published, documentGroup.identifier.current, documentGroup.identifier.name
|
|
34
34
|
|
|
35
|
-
return
|
|
35
|
+
return React__default.createElement(
|
|
36
36
|
'div',
|
|
37
37
|
{ className: 'conference-media' },
|
|
38
|
-
|
|
38
|
+
React__default.createElement(
|
|
39
39
|
'a',
|
|
40
40
|
{ className: 'img-wrapper', href: '/view/' + (data.url ? data.url.current : '') },
|
|
41
|
-
|
|
41
|
+
React__default.createElement('img', {
|
|
42
42
|
className: 'mr-3 img-fluid',
|
|
43
43
|
src: data.thumbnail && urlFor({ client: client, source: data.thumbnail.asset, imageWidth: 350 }),
|
|
44
44
|
alt: data.title
|
|
45
45
|
})
|
|
46
46
|
),
|
|
47
|
-
|
|
47
|
+
React__default.createElement(
|
|
48
48
|
'div',
|
|
49
49
|
{ className: 'media-body' },
|
|
50
|
-
|
|
50
|
+
React__default.createElement(
|
|
51
51
|
'a',
|
|
52
52
|
{ href: '/view/' + (data.url ? data.url.current : '') },
|
|
53
|
-
|
|
53
|
+
React__default.createElement(
|
|
54
54
|
'h4',
|
|
55
55
|
{ className: 'conf-media__card-title' },
|
|
56
56
|
data.title
|
|
57
57
|
)
|
|
58
58
|
),
|
|
59
|
-
|
|
59
|
+
React__default.createElement(
|
|
60
60
|
'p',
|
|
61
61
|
{ className: 'conf-media__card-text' },
|
|
62
62
|
moment(data.published).format('MMMM Do YYYY, h:mma')
|
|
63
63
|
),
|
|
64
|
-
|
|
64
|
+
React__default.createElement(
|
|
65
65
|
'p',
|
|
66
66
|
{ className: 'mb-1 conference-group' },
|
|
67
|
-
data.documentGroup && data.documentGroup.identifier && (data.documentGroup.identifier.current.includes('/') ?
|
|
67
|
+
data.documentGroup && data.documentGroup.identifier && (data.documentGroup.identifier.current.includes('/') ? React__default.createElement(
|
|
68
68
|
'a',
|
|
69
69
|
{ href: '/' + data.documentGroup.identifier.current, alt: data.thumbnail && data.thumbnail.alt || data.title },
|
|
70
70
|
data.documentGroup.name
|
|
71
|
-
) :
|
|
71
|
+
) : React__default.createElement(
|
|
72
72
|
'a',
|
|
73
73
|
{ href: '/conference/' + data.documentGroup.identifier.current, alt: data.thumbnail && data.thumbnail.alt || data.title },
|
|
74
74
|
data.documentGroup.name
|
|
75
75
|
))
|
|
76
76
|
),
|
|
77
|
-
|
|
77
|
+
React__default.createElement('p', { className: 'pt-2 card-text', dangerouslySetInnerHTML: { __html: data.summary } })
|
|
78
78
|
),
|
|
79
|
-
|
|
79
|
+
React__default.createElement(
|
|
80
80
|
'style',
|
|
81
81
|
{ jsx: 'true' },
|
|
82
82
|
'\n .conference-media {\n display: flex;\n flex-direction: row;\n margin-bottom: 1.25rem;\n padding-bottom: 1.25rem;\n border-bottom: 1px solid #ddd;\n }\n .conf-media__card-title {\n font-weight: bold;\n color: #252525;\n margin-bottom: 0.5rem;\n font-size: 1.5rem;\n }\n .conf-media__card-text {\n color: var(--dark);\n margin-bottom: 0.25rem;\n }\n .conference-media a img {\n width: 175px;\n min-width: 175px;\n height: auto;\n object-fit: contain;\n }\n .conference-media .conference-group {\n background: #003767;\n color: white;\n border-radius: 5px;\n display: inline-block;\n padding: 0 0.25rem;\n }\n .conference-media .conference-group a {\n color: white;\n font-size: 0.8rem;\n }\n @media screen and (max-width: 1064px) {\n .conf-media__card-title {\n font-size: 1.1rem;\n }\n }\n @media screen and (max-width: 768px) {\n .conference-media {\n flex-direction: column;\n }\n .conference-media a img {\n width: 100%;\n height: auto;\n max-height: 175px;\n object-fit: contain;\n margin-bottom: 1rem;\n }\n }\n '
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
var ConferenceBanner = function ConferenceBanner(props) {
|
|
4
4
|
var website = props.website;
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
return
|
|
7
|
+
return React__default.createElement(
|
|
8
8
|
"div",
|
|
9
9
|
{ className: "conf-img" },
|
|
10
|
-
|
|
10
|
+
React__default.createElement(
|
|
11
11
|
"a",
|
|
12
12
|
{ href: website.conferenceBannerContent.href },
|
|
13
|
-
|
|
13
|
+
React__default.createElement("img", { src: website.conferenceBannerContent.src, alt: website.conferenceBannerContent.alt })
|
|
14
14
|
)
|
|
15
15
|
);
|
|
16
16
|
};
|
package/dist/esm/DeckContent.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as _toConsumableArray } from './toConsumableArray-7b1c0e23.js';
|
|
2
2
|
import { _ as _extends } from './extends-dc6a71fd.js';
|
|
3
3
|
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-8a801a18.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 urlFor from './urlFor.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-1894c974.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-c7b8f6be.js';
|
|
20
20
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
21
21
|
import './core.get-iterator-method-e903ff31.js';
|
|
22
22
|
import './_iter-detect-f089461c.js';
|
|
@@ -27,7 +27,6 @@ import './typeof-83d9eb10.js';
|
|
|
27
27
|
import './web.dom.iterable-fdf034f5.js';
|
|
28
28
|
import './_is-array-893ab020.js';
|
|
29
29
|
import './_library-528f1934.js';
|
|
30
|
-
import './events-6c3a7a63.js';
|
|
31
30
|
import 'prop-types';
|
|
32
31
|
import './isSymbol-a7e9aafe.js';
|
|
33
32
|
import './toNumber-5aeba6e7.js';
|
|
@@ -172,14 +171,14 @@ var DeckContent = function (_React$Component) {
|
|
|
172
171
|
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
173
172
|
|
|
174
173
|
// please leave this for later debug purpose : Yong Jun.
|
|
175
|
-
/* console.log('page change reported', {
|
|
176
|
-
currentPage: currentPage,
|
|
177
|
-
pageNumber: pageNumber,
|
|
178
|
-
pathname: pathname,
|
|
179
|
-
path: path,
|
|
180
|
-
newPath: newPath,
|
|
181
|
-
firstPage: pageNumber === 1,
|
|
182
|
-
queryString: queryString
|
|
174
|
+
/* console.log('page change reported', {
|
|
175
|
+
currentPage: currentPage,
|
|
176
|
+
pageNumber: pageNumber,
|
|
177
|
+
pathname: pathname,
|
|
178
|
+
path: path,
|
|
179
|
+
newPath: newPath,
|
|
180
|
+
firstPage: pageNumber === 1,
|
|
181
|
+
queryString: queryString
|
|
183
182
|
}) */
|
|
184
183
|
|
|
185
184
|
if (pageview) {
|
|
@@ -199,35 +198,35 @@ var DeckContent = function (_React$Component) {
|
|
|
199
198
|
url = authorDetail.url;
|
|
200
199
|
|
|
201
200
|
if (displayName && url && url.current) {
|
|
202
|
-
return
|
|
201
|
+
return React__default.createElement(
|
|
203
202
|
'div',
|
|
204
203
|
{ key: _id },
|
|
205
|
-
index === 0 &&
|
|
204
|
+
index === 0 && React__default.createElement(
|
|
206
205
|
'span',
|
|
207
206
|
{ className: 'pr-1' },
|
|
208
207
|
'By'
|
|
209
208
|
),
|
|
210
|
-
|
|
209
|
+
React__default.createElement(
|
|
211
210
|
'a',
|
|
212
211
|
{ href: '/authors/${url.current}', className: 'text-muted' },
|
|
213
212
|
displayName,
|
|
214
|
-
length !== index + 1 &&
|
|
213
|
+
length !== index + 1 && React__default.createElement('br', null)
|
|
215
214
|
)
|
|
216
215
|
);
|
|
217
216
|
} else if (displayName) {
|
|
218
|
-
return
|
|
217
|
+
return React__default.createElement(
|
|
219
218
|
'div',
|
|
220
219
|
{ key: _id },
|
|
221
|
-
index === 0 &&
|
|
220
|
+
index === 0 && React__default.createElement(
|
|
222
221
|
'span',
|
|
223
222
|
{ className: 'pr-1' },
|
|
224
223
|
'By'
|
|
225
224
|
),
|
|
226
|
-
|
|
225
|
+
React__default.createElement(
|
|
227
226
|
'span',
|
|
228
227
|
{ className: 'text-muted' },
|
|
229
228
|
displayName,
|
|
230
|
-
length !== index + 1 &&
|
|
229
|
+
length !== index + 1 && React__default.createElement('br', null)
|
|
231
230
|
)
|
|
232
231
|
);
|
|
233
232
|
}
|
|
@@ -271,7 +270,7 @@ var DeckContent = function (_React$Component) {
|
|
|
271
270
|
articles = _this.state.data;
|
|
272
271
|
}
|
|
273
272
|
|
|
274
|
-
return
|
|
273
|
+
return React__default.createElement(
|
|
275
274
|
Row,
|
|
276
275
|
null,
|
|
277
276
|
articles && articles.map(function (row, index) {
|
|
@@ -283,51 +282,51 @@ var DeckContent = function (_React$Component) {
|
|
|
283
282
|
lgVar = 6;
|
|
284
283
|
}
|
|
285
284
|
if (row._type === 'BrandInsight' && row.adUnit) {
|
|
286
|
-
return
|
|
285
|
+
return React__default.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
287
286
|
} else {
|
|
288
287
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
289
288
|
var contentCategoryName = row.contentCategory && row.contentCategory.name && _this.mapping[row.contentCategory.name] ? row.contentCategory.name : 'Articles';
|
|
290
|
-
return
|
|
291
|
-
|
|
289
|
+
return React__default.createElement(
|
|
290
|
+
React__default.Fragment,
|
|
292
291
|
{ key: itemCounter },
|
|
293
|
-
|
|
292
|
+
React__default.createElement(
|
|
294
293
|
VisibilitySensor,
|
|
295
294
|
{
|
|
296
295
|
onChange: function onChange(isVisible) {
|
|
297
296
|
isVisible && _this.changePageNumber(pageNumber);
|
|
298
297
|
} },
|
|
299
|
-
|
|
298
|
+
React__default.createElement(
|
|
300
299
|
Col,
|
|
301
300
|
{ md: 12, lg: lgVar, counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
302
|
-
|
|
301
|
+
React__default.createElement(
|
|
303
302
|
Card,
|
|
304
303
|
{ className: 'content-card', style: { flexDirection: mode } },
|
|
305
|
-
(row.thumbnail && row.thumbnail.asset || _this.props.defaultImage) &&
|
|
304
|
+
(row.thumbnail && row.thumbnail.asset || _this.props.defaultImage) && React__default.createElement(
|
|
306
305
|
'a',
|
|
307
306
|
{ href: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
308
|
-
|
|
307
|
+
React__default.createElement(
|
|
309
308
|
LazyLoad,
|
|
310
309
|
{ height: _this.props.imageHeight },
|
|
311
|
-
|
|
310
|
+
React__default.createElement(Card.Img, {
|
|
312
311
|
variant: 'top',
|
|
313
312
|
src: _this.renderCardImage(row, page),
|
|
314
313
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
315
314
|
})
|
|
316
315
|
)
|
|
317
316
|
),
|
|
318
|
-
|
|
317
|
+
React__default.createElement(
|
|
319
318
|
Card.Body,
|
|
320
319
|
null,
|
|
321
|
-
|
|
320
|
+
React__default.createElement(
|
|
322
321
|
'a',
|
|
323
322
|
{ href: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
324
|
-
|
|
323
|
+
React__default.createElement(
|
|
325
324
|
Card.Title,
|
|
326
325
|
null,
|
|
327
326
|
row.title
|
|
328
327
|
)
|
|
329
328
|
),
|
|
330
|
-
_this.props.showPublished && row.published &&
|
|
329
|
+
_this.props.showPublished && row.published && React__default.createElement(
|
|
331
330
|
Card.Subtitle,
|
|
332
331
|
null,
|
|
333
332
|
moment(row.published).format('MMMM DD, YYYY')
|
|
@@ -335,7 +334,7 @@ var DeckContent = function (_React$Component) {
|
|
|
335
334
|
_this.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && row.authorMapping.map(function (authorDetail, index) {
|
|
336
335
|
return _this.renderAuthor(authorDetail, index, row.authorMapping.length);
|
|
337
336
|
}),
|
|
338
|
-
|
|
337
|
+
React__default.createElement(
|
|
339
338
|
Card.Text,
|
|
340
339
|
null,
|
|
341
340
|
clean_html_1(row.summary)
|
|
@@ -353,7 +352,7 @@ var DeckContent = function (_React$Component) {
|
|
|
353
352
|
var rightItems = _this.props.rightItems;
|
|
354
353
|
|
|
355
354
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
356
|
-
return
|
|
355
|
+
return React__default.createElement(
|
|
357
356
|
Col,
|
|
358
357
|
{ md: 12, style: { display: 'flex', flex: '1 0 auto' } },
|
|
359
358
|
rightItems[i].component
|
|
@@ -361,15 +360,15 @@ var DeckContent = function (_React$Component) {
|
|
|
361
360
|
}, _this.renderManualPagination = function () {
|
|
362
361
|
var currentPage = _this.state.currentPage;
|
|
363
362
|
|
|
364
|
-
return
|
|
363
|
+
return React__default.createElement(
|
|
365
364
|
'div',
|
|
366
365
|
{ className: 'd-flex justify-content-between' },
|
|
367
|
-
currentPage && currentPage > 1 &&
|
|
366
|
+
currentPage && currentPage > 1 && React__default.createElement(
|
|
368
367
|
'a',
|
|
369
368
|
{ href: '?page=' + (currentPage - 1) },
|
|
370
369
|
'<< Previous'
|
|
371
370
|
),
|
|
372
|
-
|
|
371
|
+
React__default.createElement(
|
|
373
372
|
'a',
|
|
374
373
|
{ href: '?page=' + (currentPage + 1) },
|
|
375
374
|
'Next >>'
|
|
@@ -415,38 +414,38 @@ var DeckContent = function (_React$Component) {
|
|
|
415
414
|
brandInsight = _props.brandInsight;
|
|
416
415
|
|
|
417
416
|
|
|
418
|
-
return
|
|
417
|
+
return React__default.createElement(
|
|
419
418
|
'div',
|
|
420
419
|
{ className: 'contentDeck' },
|
|
421
|
-
autoScroll ?
|
|
422
|
-
|
|
420
|
+
autoScroll ? React__default.createElement(
|
|
421
|
+
React__default.Fragment,
|
|
423
422
|
null,
|
|
424
|
-
|
|
423
|
+
React__default.createElement(
|
|
425
424
|
InfiniteScroll,
|
|
426
425
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.9 },
|
|
427
|
-
|
|
426
|
+
React__default.createElement(
|
|
428
427
|
Container,
|
|
429
428
|
null,
|
|
430
429
|
this.cardLoader(page, columns, variant, showBI, brandInsight)
|
|
431
430
|
)
|
|
432
431
|
),
|
|
433
|
-
|
|
432
|
+
React__default.createElement(
|
|
434
433
|
'noscript',
|
|
435
434
|
null,
|
|
436
435
|
this.renderManualPagination()
|
|
437
436
|
)
|
|
438
|
-
) :
|
|
439
|
-
|
|
437
|
+
) : React__default.createElement(
|
|
438
|
+
React__default.Fragment,
|
|
440
439
|
null,
|
|
441
|
-
|
|
440
|
+
React__default.createElement(
|
|
442
441
|
Container,
|
|
443
442
|
null,
|
|
444
443
|
this.cardLoader(page, columns, variant, showBI, brandInsight)
|
|
445
444
|
),
|
|
446
|
-
|
|
445
|
+
React__default.createElement(
|
|
447
446
|
'div',
|
|
448
447
|
{ style: { padding: '0px 10px' } },
|
|
449
|
-
this.state.scrolling ?
|
|
448
|
+
this.state.scrolling ? React__default.createElement(
|
|
450
449
|
'button',
|
|
451
450
|
{
|
|
452
451
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -454,17 +453,17 @@ var DeckContent = function (_React$Component) {
|
|
|
454
453
|
_this2.loadMore();
|
|
455
454
|
} },
|
|
456
455
|
'Load More'
|
|
457
|
-
) :
|
|
456
|
+
) : React__default.createElement(
|
|
458
457
|
'p',
|
|
459
458
|
{ style: { textAlign: 'center' } },
|
|
460
|
-
|
|
459
|
+
React__default.createElement(
|
|
461
460
|
'b',
|
|
462
461
|
null,
|
|
463
462
|
'End of data'
|
|
464
463
|
)
|
|
465
464
|
)
|
|
466
465
|
),
|
|
467
|
-
|
|
466
|
+
React__default.createElement(
|
|
468
467
|
'noscript',
|
|
469
468
|
null,
|
|
470
469
|
this.renderManualPagination()
|
|
@@ -475,7 +474,7 @@ var DeckContent = function (_React$Component) {
|
|
|
475
474
|
}]);
|
|
476
475
|
|
|
477
476
|
return DeckContent;
|
|
478
|
-
}(
|
|
477
|
+
}(React__default.Component);
|
|
479
478
|
|
|
480
479
|
var ContentCard = withRouter(DeckContent);
|
|
481
480
|
|
package/dist/esm/DeckQueue.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { _ as _toConsumableArray } from './toConsumableArray-7b1c0e23.js';
|
|
2
2
|
import { _ as _extends } from './extends-dc6a71fd.js';
|
|
3
3
|
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-8a801a18.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 urlFor from './urlFor.js';
|
|
18
|
-
import { m as main_43 } from './main-
|
|
18
|
+
import { m as main_43 } from './main-1894c974.js';
|
|
19
19
|
import { c as clean_html_1 } from './entities-932b50cf.js';
|
|
20
20
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
21
21
|
import './core.get-iterator-method-e903ff31.js';
|
|
@@ -27,7 +27,6 @@ import './typeof-83d9eb10.js';
|
|
|
27
27
|
import './web.dom.iterable-fdf034f5.js';
|
|
28
28
|
import './_is-array-893ab020.js';
|
|
29
29
|
import './_library-528f1934.js';
|
|
30
|
-
import './events-6c3a7a63.js';
|
|
31
30
|
import 'prop-types';
|
|
32
31
|
import 'react-dom';
|
|
33
32
|
import './isSymbol-a7e9aafe.js';
|
|
@@ -184,7 +183,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
184
183
|
var rightItems = _this.props.rightItems;
|
|
185
184
|
|
|
186
185
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
187
|
-
return
|
|
186
|
+
return React__default.createElement(
|
|
188
187
|
'div',
|
|
189
188
|
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
190
189
|
rightItems[i].component
|
|
@@ -192,15 +191,15 @@ var DeckQueue = function (_React$Component) {
|
|
|
192
191
|
}, _this.renderManualPagination = function () {
|
|
193
192
|
var currentPage = _this.state.currentPage;
|
|
194
193
|
|
|
195
|
-
return
|
|
194
|
+
return React__default.createElement(
|
|
196
195
|
'div',
|
|
197
196
|
{ className: 'd-flex justify-content-between' },
|
|
198
|
-
currentPage && currentPage > 1 &&
|
|
197
|
+
currentPage && currentPage > 1 && React__default.createElement(
|
|
199
198
|
'a',
|
|
200
199
|
{ href: '?page=' + (currentPage - 1) },
|
|
201
200
|
'<< Previous'
|
|
202
201
|
),
|
|
203
|
-
|
|
202
|
+
React__default.createElement(
|
|
204
203
|
'a',
|
|
205
204
|
{ href: '?page=' + (currentPage + 1) },
|
|
206
205
|
'Next >>'
|
|
@@ -218,78 +217,78 @@ var DeckQueue = function (_React$Component) {
|
|
|
218
217
|
var lgVar = Math.floor(12 / columns);
|
|
219
218
|
var numberOfItemsBeforeAd = 6;
|
|
220
219
|
|
|
221
|
-
return
|
|
220
|
+
return React__default.createElement(
|
|
222
221
|
Row,
|
|
223
222
|
null,
|
|
224
223
|
this.state.data && this.state.data.map(function (row, index) {
|
|
225
224
|
var pageNumber = row.pageNumber || _this2.state.page;
|
|
226
225
|
// const thumbnailURL = get(row, 'thumbnail.asset.url', this.props.defaultImage)
|
|
227
226
|
|
|
228
|
-
return
|
|
229
|
-
|
|
227
|
+
return React__default.createElement(
|
|
228
|
+
React__default.Fragment,
|
|
230
229
|
{ key: index },
|
|
231
|
-
|
|
230
|
+
React__default.createElement(
|
|
232
231
|
VisibilitySensor,
|
|
233
232
|
{
|
|
234
233
|
onChange: function onChange(isVisible) {
|
|
235
234
|
isVisible && _this2.changePageNumber(pageNumber);
|
|
236
235
|
} },
|
|
237
|
-
|
|
236
|
+
React__default.createElement(
|
|
238
237
|
Col,
|
|
239
238
|
{ md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
240
|
-
|
|
239
|
+
React__default.createElement(
|
|
241
240
|
Card,
|
|
242
241
|
{ className: 'queue-card', style: { borderTop: '1px solid #EEE' } },
|
|
243
|
-
|
|
242
|
+
React__default.createElement(
|
|
244
243
|
Row,
|
|
245
244
|
{ style: { flexDirection: mode } },
|
|
246
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
245
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React__default.createElement(
|
|
247
246
|
Col,
|
|
248
247
|
{ md: 12, lg: 4 },
|
|
249
|
-
|
|
248
|
+
React__default.createElement(
|
|
250
249
|
'a',
|
|
251
250
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
252
|
-
|
|
251
|
+
React__default.createElement(
|
|
253
252
|
LazyLoad,
|
|
254
253
|
{ height: _this2.props.imageHeight },
|
|
255
|
-
|
|
254
|
+
React__default.createElement(Card.Img, { variant: 'top', src: _this2.renderCardImage(row), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
|
|
256
255
|
)
|
|
257
256
|
)
|
|
258
257
|
),
|
|
259
|
-
|
|
258
|
+
React__default.createElement(
|
|
260
259
|
Col,
|
|
261
260
|
null,
|
|
262
|
-
|
|
261
|
+
React__default.createElement(
|
|
263
262
|
Card.Body,
|
|
264
263
|
{ style: { padding: '20px' } },
|
|
265
|
-
row.title &&
|
|
264
|
+
row.title && React__default.createElement(
|
|
266
265
|
Card.Title,
|
|
267
266
|
null,
|
|
268
|
-
|
|
267
|
+
React__default.createElement(
|
|
269
268
|
'a',
|
|
270
269
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
271
270
|
row.title
|
|
272
271
|
)
|
|
273
272
|
),
|
|
274
|
-
_this2.props.showPublished && row.published &&
|
|
273
|
+
_this2.props.showPublished && row.published && React__default.createElement(
|
|
275
274
|
Card.Subtitle,
|
|
276
275
|
null,
|
|
277
276
|
moment(row.published).format('MMMM DD, YYYY')
|
|
278
277
|
),
|
|
279
|
-
_this2.props.showRecent && row.recent && row.recent.title &&
|
|
278
|
+
_this2.props.showRecent && row.recent && row.recent.title && React__default.createElement(
|
|
280
279
|
Card.Subtitle,
|
|
281
280
|
null,
|
|
282
281
|
'Recent : ',
|
|
283
|
-
|
|
282
|
+
React__default.createElement(
|
|
284
283
|
'a',
|
|
285
284
|
{ href: 'view/' + row.recent.url.current },
|
|
286
285
|
row.recent.title
|
|
287
286
|
)
|
|
288
287
|
),
|
|
289
|
-
row.summary &&
|
|
288
|
+
row.summary && React__default.createElement(
|
|
290
289
|
Card.Text,
|
|
291
290
|
null,
|
|
292
|
-
|
|
291
|
+
React__default.createElement(
|
|
293
292
|
'a',
|
|
294
293
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
295
294
|
clean_html_1(row.summary)
|
|
@@ -318,29 +317,29 @@ var DeckQueue = function (_React$Component) {
|
|
|
318
317
|
page = _props.page;
|
|
319
318
|
|
|
320
319
|
|
|
321
|
-
return
|
|
320
|
+
return React__default.createElement(
|
|
322
321
|
'div',
|
|
323
322
|
{ className: 'contentDeck' },
|
|
324
|
-
autoScroll ?
|
|
323
|
+
autoScroll ? React__default.createElement(
|
|
325
324
|
InfiniteScroll,
|
|
326
325
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling },
|
|
327
|
-
|
|
326
|
+
React__default.createElement(
|
|
328
327
|
Container,
|
|
329
328
|
null,
|
|
330
329
|
this.cardLoader(page, columns, variant)
|
|
331
330
|
)
|
|
332
|
-
) :
|
|
333
|
-
|
|
331
|
+
) : React__default.createElement(
|
|
332
|
+
React__default.Fragment,
|
|
334
333
|
null,
|
|
335
|
-
|
|
334
|
+
React__default.createElement(
|
|
336
335
|
Container,
|
|
337
336
|
null,
|
|
338
337
|
this.cardLoader(page, columns, variant)
|
|
339
338
|
),
|
|
340
|
-
|
|
339
|
+
React__default.createElement(
|
|
341
340
|
'div',
|
|
342
341
|
{ style: { padding: '0px 10px' } },
|
|
343
|
-
this.state.scrolling ?
|
|
342
|
+
this.state.scrolling ? React__default.createElement(
|
|
344
343
|
'button',
|
|
345
344
|
{
|
|
346
345
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -348,17 +347,17 @@ var DeckQueue = function (_React$Component) {
|
|
|
348
347
|
_this3.loadMore();
|
|
349
348
|
} },
|
|
350
349
|
'Load More'
|
|
351
|
-
) :
|
|
350
|
+
) : React__default.createElement(
|
|
352
351
|
'p',
|
|
353
352
|
{ style: { textAlign: 'center' } },
|
|
354
|
-
|
|
353
|
+
React__default.createElement(
|
|
355
354
|
'b',
|
|
356
355
|
null,
|
|
357
356
|
'End of data'
|
|
358
357
|
)
|
|
359
358
|
)
|
|
360
359
|
),
|
|
361
|
-
|
|
360
|
+
React__default.createElement(
|
|
362
361
|
'noscript',
|
|
363
362
|
null,
|
|
364
363
|
this.renderManualPagination()
|
|
@@ -369,7 +368,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
369
368
|
}]);
|
|
370
369
|
|
|
371
370
|
return DeckQueue;
|
|
372
|
-
}(
|
|
371
|
+
}(React__default.Component);
|
|
373
372
|
|
|
374
373
|
var Queue = withRouter(DeckQueue);
|
|
375
374
|
|