@mjhls/mjh-framework 1.0.837 → 1.0.838
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 +2 -3
- 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/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 +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 +408 -307
- 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/SeriesListingDeck.js +3 -4
- package/dist/cjs/{SeriesSlider-cbab9f0f.js → SeriesSlider-e3e8ead7.js} +5 -5
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-ecb4f972.js → SocialSearchComponent-948138c7.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-be6168ad.js → getTargeting-a100d6e5.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/{index-fc2f1ca2.js → index-0e4427c8.js} +467 -2
- package/dist/cjs/{index-0a582ba9.js → index-55dd328c.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-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-28b1e946.js → ADInfeed-4a09242b.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-0b474b02.js → ADlgInfeed-0bff9a62.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/AuthWrapper.js +26 -26
- package/dist/esm/{AuthorComponent-5ae7409f.js → AuthorComponent-30aeba69.js} +10 -10
- package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-c99c9a8d.js} +3 -3
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +61 -62
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +23 -24
- package/dist/esm/ConferenceArticleCard.js +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 +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 +433 -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 +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 +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/SeriesListingDeck.js +19 -20
- package/dist/esm/{SeriesSlider-5c62a578.js → SeriesSlider-ae17159f.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 +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 +170 -171
- package/dist/esm/YahooHero.js +23 -23
- package/dist/esm/YoutubeGroup.js +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
- package/dist/esm/getSerializers.js +8 -9
- package/dist/esm/{getTargeting-68291ce9.js → getTargeting-05c216d6.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -5
- package/dist/esm/{index-66ffc224.js → index-490e778a.js} +365 -365
- 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-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 +110 -110
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/index-8041a4eb.js +0 -99
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/index-67e1773f.js +0 -94
- /package/dist/cjs/{ADInfeed-8b336c67.js → ADInfeed-eb4ce360.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-aedd5e18.js → ADlgInfeed-8a05b63f.js} +0 -0
|
@@ -1,24 +1,24 @@
|
|
|
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';
|
|
5
5
|
import './index-0dbff1d1.js';
|
|
6
6
|
|
|
7
|
-
/*
|
|
8
|
-
Example usage - targetedonc.com/latest-conference
|
|
9
|
-
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] {
|
|
10
|
-
...,
|
|
11
|
-
title,
|
|
12
|
-
summary,
|
|
13
|
-
thumbnail,
|
|
14
|
-
url,
|
|
15
|
-
published,
|
|
16
|
-
documentGroup->,
|
|
17
|
-
contentCategory->,
|
|
18
|
-
'pageNumber': ${currentPage}
|
|
19
|
-
}`
|
|
20
|
-
|
|
21
|
-
const posts = await client.fetch(query, params)
|
|
7
|
+
/*
|
|
8
|
+
Example usage - targetedonc.com/latest-conference
|
|
9
|
+
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] {
|
|
10
|
+
...,
|
|
11
|
+
title,
|
|
12
|
+
summary,
|
|
13
|
+
thumbnail,
|
|
14
|
+
url,
|
|
15
|
+
published,
|
|
16
|
+
documentGroup->,
|
|
17
|
+
contentCategory->,
|
|
18
|
+
'pageNumber': ${currentPage}
|
|
19
|
+
}`
|
|
20
|
+
|
|
21
|
+
const posts = await client.fetch(query, params)
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
24
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -29,51 +29,51 @@ var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
|
29
29
|
|
|
30
30
|
// title, thumbnail, summary, published, documentGroup.identifier.current, documentGroup.identifier.name
|
|
31
31
|
|
|
32
|
-
return
|
|
32
|
+
return React__default.createElement(
|
|
33
33
|
'div',
|
|
34
34
|
{ className: 'conference-media' },
|
|
35
|
-
|
|
35
|
+
React__default.createElement(
|
|
36
36
|
'a',
|
|
37
37
|
{ className: 'img-wrapper', href: '/view/' + (data.url ? data.url.current : '') },
|
|
38
|
-
|
|
38
|
+
React__default.createElement('img', {
|
|
39
39
|
className: 'mr-3 img-fluid',
|
|
40
40
|
src: data.thumbnail && urlFor({ client: client, source: data.thumbnail.asset, imageWidth: 350 }),
|
|
41
41
|
alt: data.title
|
|
42
42
|
})
|
|
43
43
|
),
|
|
44
|
-
|
|
44
|
+
React__default.createElement(
|
|
45
45
|
'div',
|
|
46
46
|
{ className: 'media-body' },
|
|
47
|
-
|
|
47
|
+
React__default.createElement(
|
|
48
48
|
'a',
|
|
49
49
|
{ href: '/view/' + (data.url ? data.url.current : '') },
|
|
50
|
-
|
|
50
|
+
React__default.createElement(
|
|
51
51
|
'h4',
|
|
52
52
|
{ className: 'conf-media__card-title' },
|
|
53
53
|
data.title
|
|
54
54
|
)
|
|
55
55
|
),
|
|
56
|
-
|
|
56
|
+
React__default.createElement(
|
|
57
57
|
'p',
|
|
58
58
|
{ className: 'conf-media__card-text' },
|
|
59
59
|
moment(data.published).format('MMMM Do YYYY, h:mma')
|
|
60
60
|
),
|
|
61
|
-
|
|
61
|
+
React__default.createElement(
|
|
62
62
|
'p',
|
|
63
63
|
{ className: 'mb-1 conference-group' },
|
|
64
|
-
data.documentGroup && data.documentGroup.identifier && (data.documentGroup.identifier.current.includes('/') ?
|
|
64
|
+
data.documentGroup && data.documentGroup.identifier && (data.documentGroup.identifier.current.includes('/') ? React__default.createElement(
|
|
65
65
|
'a',
|
|
66
66
|
{ href: '/' + data.documentGroup.identifier.current, alt: data.thumbnail && data.thumbnail.alt || data.title },
|
|
67
67
|
data.documentGroup.name
|
|
68
|
-
) :
|
|
68
|
+
) : React__default.createElement(
|
|
69
69
|
'a',
|
|
70
70
|
{ href: '/conference/' + data.documentGroup.identifier.current, alt: data.thumbnail && data.thumbnail.alt || data.title },
|
|
71
71
|
data.documentGroup.name
|
|
72
72
|
))
|
|
73
73
|
),
|
|
74
|
-
|
|
74
|
+
React__default.createElement('p', { className: 'pt-2 card-text', dangerouslySetInnerHTML: { __html: data.summary } })
|
|
75
75
|
),
|
|
76
|
-
|
|
76
|
+
React__default.createElement(
|
|
77
77
|
'style',
|
|
78
78
|
{ jsx: 'true' },
|
|
79
79
|
'\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-6d9a4616.js';
|
|
2
2
|
import { _ as _extends } from './extends-60e0e1c6.js';
|
|
3
3
|
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-a41fe93f.js';
|
|
4
|
-
import
|
|
5
|
-
import { l as lib_3 } from './index-
|
|
4
|
+
import React__default from 'react';
|
|
5
|
+
import { l as lib_3 } from './index-5cc7b406.js';
|
|
6
6
|
import Container from 'react-bootstrap/Container';
|
|
7
7
|
import Row from 'react-bootstrap/Row';
|
|
8
8
|
import Col from 'react-bootstrap/Col';
|
|
@@ -10,13 +10,13 @@ import Card from 'react-bootstrap/Card';
|
|
|
10
10
|
import { m as moment } from './moment-bc12cb97.js';
|
|
11
11
|
import { withRouter } from 'next/router';
|
|
12
12
|
import { d as debounce_1 } from './debounce-533d9748.js';
|
|
13
|
-
import { I as InfiniteScroll } from './index.es-
|
|
14
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
13
|
+
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
14
|
+
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
15
15
|
import 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-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-4a09242b.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';
|
|
@@ -174,14 +173,14 @@ var DeckContent = function (_React$Component) {
|
|
|
174
173
|
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
175
174
|
|
|
176
175
|
// please leave this for later debug purpose : Yong Jun.
|
|
177
|
-
/* console.log('page change reported', {
|
|
178
|
-
currentPage: currentPage,
|
|
179
|
-
pageNumber: pageNumber,
|
|
180
|
-
pathname: pathname,
|
|
181
|
-
path: path,
|
|
182
|
-
newPath: newPath,
|
|
183
|
-
firstPage: pageNumber === 1,
|
|
184
|
-
queryString: queryString
|
|
176
|
+
/* console.log('page change reported', {
|
|
177
|
+
currentPage: currentPage,
|
|
178
|
+
pageNumber: pageNumber,
|
|
179
|
+
pathname: pathname,
|
|
180
|
+
path: path,
|
|
181
|
+
newPath: newPath,
|
|
182
|
+
firstPage: pageNumber === 1,
|
|
183
|
+
queryString: queryString
|
|
185
184
|
}) */
|
|
186
185
|
|
|
187
186
|
if (pageview) {
|
|
@@ -201,35 +200,35 @@ var DeckContent = function (_React$Component) {
|
|
|
201
200
|
url = authorDetail.url;
|
|
202
201
|
|
|
203
202
|
if (displayName && url && url.current) {
|
|
204
|
-
return
|
|
203
|
+
return React__default.createElement(
|
|
205
204
|
'div',
|
|
206
205
|
{ key: _id },
|
|
207
|
-
index === 0 &&
|
|
206
|
+
index === 0 && React__default.createElement(
|
|
208
207
|
'span',
|
|
209
208
|
{ className: 'pr-1' },
|
|
210
209
|
'By'
|
|
211
210
|
),
|
|
212
|
-
|
|
211
|
+
React__default.createElement(
|
|
213
212
|
'a',
|
|
214
213
|
{ href: '/authors/${url.current}', className: 'text-muted' },
|
|
215
214
|
displayName,
|
|
216
|
-
length !== index + 1 &&
|
|
215
|
+
length !== index + 1 && React__default.createElement('br', null)
|
|
217
216
|
)
|
|
218
217
|
);
|
|
219
218
|
} else if (displayName) {
|
|
220
|
-
return
|
|
219
|
+
return React__default.createElement(
|
|
221
220
|
'div',
|
|
222
221
|
{ key: _id },
|
|
223
|
-
index === 0 &&
|
|
222
|
+
index === 0 && React__default.createElement(
|
|
224
223
|
'span',
|
|
225
224
|
{ className: 'pr-1' },
|
|
226
225
|
'By'
|
|
227
226
|
),
|
|
228
|
-
|
|
227
|
+
React__default.createElement(
|
|
229
228
|
'span',
|
|
230
229
|
{ className: 'text-muted' },
|
|
231
230
|
displayName,
|
|
232
|
-
length !== index + 1 &&
|
|
231
|
+
length !== index + 1 && React__default.createElement('br', null)
|
|
233
232
|
)
|
|
234
233
|
);
|
|
235
234
|
}
|
|
@@ -273,7 +272,7 @@ var DeckContent = function (_React$Component) {
|
|
|
273
272
|
articles = _this.state.data;
|
|
274
273
|
}
|
|
275
274
|
|
|
276
|
-
return
|
|
275
|
+
return React__default.createElement(
|
|
277
276
|
Row,
|
|
278
277
|
null,
|
|
279
278
|
articles && articles.map(function (row, index) {
|
|
@@ -285,51 +284,51 @@ var DeckContent = function (_React$Component) {
|
|
|
285
284
|
lgVar = 6;
|
|
286
285
|
}
|
|
287
286
|
if (row._type === 'BrandInsight' && row.adUnit) {
|
|
288
|
-
return
|
|
287
|
+
return React__default.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
289
288
|
} else {
|
|
290
289
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
291
290
|
var contentCategoryName = row.contentCategory && row.contentCategory.name && _this.mapping[row.contentCategory.name] ? row.contentCategory.name : 'Articles';
|
|
292
|
-
return
|
|
293
|
-
|
|
291
|
+
return React__default.createElement(
|
|
292
|
+
React__default.Fragment,
|
|
294
293
|
{ key: itemCounter },
|
|
295
|
-
|
|
294
|
+
React__default.createElement(
|
|
296
295
|
VisibilitySensor,
|
|
297
296
|
{
|
|
298
297
|
onChange: function onChange(isVisible) {
|
|
299
298
|
isVisible && _this.changePageNumber(pageNumber);
|
|
300
299
|
} },
|
|
301
|
-
|
|
300
|
+
React__default.createElement(
|
|
302
301
|
Col,
|
|
303
302
|
{ md: 12, lg: lgVar, counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
304
|
-
|
|
303
|
+
React__default.createElement(
|
|
305
304
|
Card,
|
|
306
305
|
{ className: 'content-card', style: { flexDirection: mode } },
|
|
307
|
-
(row.thumbnail && row.thumbnail.asset || _this.props.defaultImage) &&
|
|
306
|
+
(row.thumbnail && row.thumbnail.asset || _this.props.defaultImage) && React__default.createElement(
|
|
308
307
|
'a',
|
|
309
308
|
{ href: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
310
|
-
|
|
309
|
+
React__default.createElement(
|
|
311
310
|
LazyLoad,
|
|
312
311
|
{ height: _this.props.imageHeight },
|
|
313
|
-
|
|
312
|
+
React__default.createElement(Card.Img, {
|
|
314
313
|
variant: 'top',
|
|
315
314
|
src: _this.renderCardImage(row, page),
|
|
316
315
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
317
316
|
})
|
|
318
317
|
)
|
|
319
318
|
),
|
|
320
|
-
|
|
319
|
+
React__default.createElement(
|
|
321
320
|
Card.Body,
|
|
322
321
|
null,
|
|
323
|
-
|
|
322
|
+
React__default.createElement(
|
|
324
323
|
'a',
|
|
325
324
|
{ href: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
326
|
-
|
|
325
|
+
React__default.createElement(
|
|
327
326
|
Card.Title,
|
|
328
327
|
null,
|
|
329
328
|
row.title
|
|
330
329
|
)
|
|
331
330
|
),
|
|
332
|
-
_this.props.showPublished && row.published &&
|
|
331
|
+
_this.props.showPublished && row.published && React__default.createElement(
|
|
333
332
|
Card.Subtitle,
|
|
334
333
|
null,
|
|
335
334
|
moment(row.published).format('MMMM DD, YYYY')
|
|
@@ -337,7 +336,7 @@ var DeckContent = function (_React$Component) {
|
|
|
337
336
|
_this.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && row.authorMapping.map(function (authorDetail, index) {
|
|
338
337
|
return _this.renderAuthor(authorDetail, index, row.authorMapping.length);
|
|
339
338
|
}),
|
|
340
|
-
|
|
339
|
+
React__default.createElement(
|
|
341
340
|
Card.Text,
|
|
342
341
|
null,
|
|
343
342
|
clean_html_1(row.summary)
|
|
@@ -355,7 +354,7 @@ var DeckContent = function (_React$Component) {
|
|
|
355
354
|
var rightItems = _this.props.rightItems;
|
|
356
355
|
|
|
357
356
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
358
|
-
return
|
|
357
|
+
return React__default.createElement(
|
|
359
358
|
Col,
|
|
360
359
|
{ md: 12, style: { display: 'flex', flex: '1 0 auto' } },
|
|
361
360
|
rightItems[i].component
|
|
@@ -363,15 +362,15 @@ var DeckContent = function (_React$Component) {
|
|
|
363
362
|
}, _this.renderManualPagination = function () {
|
|
364
363
|
var currentPage = _this.state.currentPage;
|
|
365
364
|
|
|
366
|
-
return
|
|
365
|
+
return React__default.createElement(
|
|
367
366
|
'div',
|
|
368
367
|
{ className: 'd-flex justify-content-between' },
|
|
369
|
-
currentPage && currentPage > 1 &&
|
|
368
|
+
currentPage && currentPage > 1 && React__default.createElement(
|
|
370
369
|
'a',
|
|
371
370
|
{ href: '?page=' + (currentPage - 1) },
|
|
372
371
|
'<< Previous'
|
|
373
372
|
),
|
|
374
|
-
|
|
373
|
+
React__default.createElement(
|
|
375
374
|
'a',
|
|
376
375
|
{ href: '?page=' + (currentPage + 1) },
|
|
377
376
|
'Next >>'
|
|
@@ -417,38 +416,38 @@ var DeckContent = function (_React$Component) {
|
|
|
417
416
|
brandInsight = _props.brandInsight;
|
|
418
417
|
|
|
419
418
|
|
|
420
|
-
return
|
|
419
|
+
return React__default.createElement(
|
|
421
420
|
'div',
|
|
422
421
|
{ className: 'contentDeck' },
|
|
423
|
-
autoScroll ?
|
|
424
|
-
|
|
422
|
+
autoScroll ? React__default.createElement(
|
|
423
|
+
React__default.Fragment,
|
|
425
424
|
null,
|
|
426
|
-
|
|
425
|
+
React__default.createElement(
|
|
427
426
|
InfiniteScroll,
|
|
428
427
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.9 },
|
|
429
|
-
|
|
428
|
+
React__default.createElement(
|
|
430
429
|
Container,
|
|
431
430
|
null,
|
|
432
431
|
this.cardLoader(page, columns, variant, showBI, brandInsight)
|
|
433
432
|
)
|
|
434
433
|
),
|
|
435
|
-
|
|
434
|
+
React__default.createElement(
|
|
436
435
|
'noscript',
|
|
437
436
|
null,
|
|
438
437
|
this.renderManualPagination()
|
|
439
438
|
)
|
|
440
|
-
) :
|
|
441
|
-
|
|
439
|
+
) : React__default.createElement(
|
|
440
|
+
React__default.Fragment,
|
|
442
441
|
null,
|
|
443
|
-
|
|
442
|
+
React__default.createElement(
|
|
444
443
|
Container,
|
|
445
444
|
null,
|
|
446
445
|
this.cardLoader(page, columns, variant, showBI, brandInsight)
|
|
447
446
|
),
|
|
448
|
-
|
|
447
|
+
React__default.createElement(
|
|
449
448
|
'div',
|
|
450
449
|
{ style: { padding: '0px 10px' } },
|
|
451
|
-
this.state.scrolling ?
|
|
450
|
+
this.state.scrolling ? React__default.createElement(
|
|
452
451
|
'button',
|
|
453
452
|
{
|
|
454
453
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -456,17 +455,17 @@ var DeckContent = function (_React$Component) {
|
|
|
456
455
|
_this2.loadMore();
|
|
457
456
|
} },
|
|
458
457
|
'Load More'
|
|
459
|
-
) :
|
|
458
|
+
) : React__default.createElement(
|
|
460
459
|
'p',
|
|
461
460
|
{ style: { textAlign: 'center' } },
|
|
462
|
-
|
|
461
|
+
React__default.createElement(
|
|
463
462
|
'b',
|
|
464
463
|
null,
|
|
465
464
|
'End of data'
|
|
466
465
|
)
|
|
467
466
|
)
|
|
468
467
|
),
|
|
469
|
-
|
|
468
|
+
React__default.createElement(
|
|
470
469
|
'noscript',
|
|
471
470
|
null,
|
|
472
471
|
this.renderManualPagination()
|
|
@@ -477,7 +476,7 @@ var DeckContent = function (_React$Component) {
|
|
|
477
476
|
}]);
|
|
478
477
|
|
|
479
478
|
return DeckContent;
|
|
480
|
-
}(
|
|
479
|
+
}(React__default.Component);
|
|
481
480
|
|
|
482
481
|
var ContentCard = withRouter(DeckContent);
|
|
483
482
|
|
package/dist/esm/DeckQueue.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { _ as _toConsumableArray } from './toConsumableArray-6d9a4616.js';
|
|
2
2
|
import { _ as _extends } from './extends-60e0e1c6.js';
|
|
3
3
|
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-a41fe93f.js';
|
|
4
|
-
import
|
|
5
|
-
import { l as lib_3 } from './index-
|
|
4
|
+
import React__default from 'react';
|
|
5
|
+
import { l as lib_3 } from './index-5cc7b406.js';
|
|
6
6
|
import Container from 'react-bootstrap/Container';
|
|
7
7
|
import Row from 'react-bootstrap/Row';
|
|
8
8
|
import Col from 'react-bootstrap/Col';
|
|
9
9
|
import Card from 'react-bootstrap/Card';
|
|
10
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
10
|
+
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
11
11
|
import { m as moment } from './moment-bc12cb97.js';
|
|
12
12
|
import { withRouter } from 'next/router';
|
|
13
|
-
import { L as LazyLoad } from './index-
|
|
13
|
+
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
14
14
|
import { g as get_1 } from './get-3c308da4.js';
|
|
15
15
|
import { d as debounce_1 } from './debounce-533d9748.js';
|
|
16
|
-
import { I as InfiniteScroll } from './index.es-
|
|
16
|
+
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
17
17
|
import urlFor from './urlFor.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';
|
|
@@ -185,7 +184,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
185
184
|
var rightItems = _this.props.rightItems;
|
|
186
185
|
|
|
187
186
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
188
|
-
return
|
|
187
|
+
return React__default.createElement(
|
|
189
188
|
'div',
|
|
190
189
|
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
191
190
|
rightItems[i].component
|
|
@@ -193,15 +192,15 @@ var DeckQueue = function (_React$Component) {
|
|
|
193
192
|
}, _this.renderManualPagination = function () {
|
|
194
193
|
var currentPage = _this.state.currentPage;
|
|
195
194
|
|
|
196
|
-
return
|
|
195
|
+
return React__default.createElement(
|
|
197
196
|
'div',
|
|
198
197
|
{ className: 'd-flex justify-content-between' },
|
|
199
|
-
currentPage && currentPage > 1 &&
|
|
198
|
+
currentPage && currentPage > 1 && React__default.createElement(
|
|
200
199
|
'a',
|
|
201
200
|
{ href: '?page=' + (currentPage - 1) },
|
|
202
201
|
'<< Previous'
|
|
203
202
|
),
|
|
204
|
-
|
|
203
|
+
React__default.createElement(
|
|
205
204
|
'a',
|
|
206
205
|
{ href: '?page=' + (currentPage + 1) },
|
|
207
206
|
'Next >>'
|
|
@@ -219,78 +218,78 @@ var DeckQueue = function (_React$Component) {
|
|
|
219
218
|
var lgVar = Math.floor(12 / columns);
|
|
220
219
|
var numberOfItemsBeforeAd = 6;
|
|
221
220
|
|
|
222
|
-
return
|
|
221
|
+
return React__default.createElement(
|
|
223
222
|
Row,
|
|
224
223
|
null,
|
|
225
224
|
this.state.data && this.state.data.map(function (row, index) {
|
|
226
225
|
var pageNumber = row.pageNumber || _this2.state.page;
|
|
227
226
|
// const thumbnailURL = get(row, 'thumbnail.asset.url', this.props.defaultImage)
|
|
228
227
|
|
|
229
|
-
return
|
|
230
|
-
|
|
228
|
+
return React__default.createElement(
|
|
229
|
+
React__default.Fragment,
|
|
231
230
|
{ key: index },
|
|
232
|
-
|
|
231
|
+
React__default.createElement(
|
|
233
232
|
VisibilitySensor,
|
|
234
233
|
{
|
|
235
234
|
onChange: function onChange(isVisible) {
|
|
236
235
|
isVisible && _this2.changePageNumber(pageNumber);
|
|
237
236
|
} },
|
|
238
|
-
|
|
237
|
+
React__default.createElement(
|
|
239
238
|
Col,
|
|
240
239
|
{ md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
241
|
-
|
|
240
|
+
React__default.createElement(
|
|
242
241
|
Card,
|
|
243
242
|
{ className: 'queue-card', style: { borderTop: '1px solid #EEE' } },
|
|
244
|
-
|
|
243
|
+
React__default.createElement(
|
|
245
244
|
Row,
|
|
246
245
|
{ style: { flexDirection: mode } },
|
|
247
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
246
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React__default.createElement(
|
|
248
247
|
Col,
|
|
249
248
|
{ md: 12, lg: 4 },
|
|
250
|
-
|
|
249
|
+
React__default.createElement(
|
|
251
250
|
'a',
|
|
252
251
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
253
|
-
|
|
252
|
+
React__default.createElement(
|
|
254
253
|
LazyLoad,
|
|
255
254
|
{ height: _this2.props.imageHeight },
|
|
256
|
-
|
|
255
|
+
React__default.createElement(Card.Img, { variant: 'top', src: _this2.renderCardImage(row), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
|
|
257
256
|
)
|
|
258
257
|
)
|
|
259
258
|
),
|
|
260
|
-
|
|
259
|
+
React__default.createElement(
|
|
261
260
|
Col,
|
|
262
261
|
null,
|
|
263
|
-
|
|
262
|
+
React__default.createElement(
|
|
264
263
|
Card.Body,
|
|
265
264
|
{ style: { padding: '20px' } },
|
|
266
|
-
row.title &&
|
|
265
|
+
row.title && React__default.createElement(
|
|
267
266
|
Card.Title,
|
|
268
267
|
null,
|
|
269
|
-
|
|
268
|
+
React__default.createElement(
|
|
270
269
|
'a',
|
|
271
270
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
272
271
|
row.title
|
|
273
272
|
)
|
|
274
273
|
),
|
|
275
|
-
_this2.props.showPublished && row.published &&
|
|
274
|
+
_this2.props.showPublished && row.published && React__default.createElement(
|
|
276
275
|
Card.Subtitle,
|
|
277
276
|
null,
|
|
278
277
|
moment(row.published).format('MMMM DD, YYYY')
|
|
279
278
|
),
|
|
280
|
-
_this2.props.showRecent && row.recent && row.recent.title &&
|
|
279
|
+
_this2.props.showRecent && row.recent && row.recent.title && React__default.createElement(
|
|
281
280
|
Card.Subtitle,
|
|
282
281
|
null,
|
|
283
282
|
'Recent : ',
|
|
284
|
-
|
|
283
|
+
React__default.createElement(
|
|
285
284
|
'a',
|
|
286
285
|
{ href: 'view/' + row.recent.url.current },
|
|
287
286
|
row.recent.title
|
|
288
287
|
)
|
|
289
288
|
),
|
|
290
|
-
row.summary &&
|
|
289
|
+
row.summary && React__default.createElement(
|
|
291
290
|
Card.Text,
|
|
292
291
|
null,
|
|
293
|
-
|
|
292
|
+
React__default.createElement(
|
|
294
293
|
'a',
|
|
295
294
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
296
295
|
clean_html_1(row.summary)
|
|
@@ -319,29 +318,29 @@ var DeckQueue = function (_React$Component) {
|
|
|
319
318
|
page = _props.page;
|
|
320
319
|
|
|
321
320
|
|
|
322
|
-
return
|
|
321
|
+
return React__default.createElement(
|
|
323
322
|
'div',
|
|
324
323
|
{ className: 'contentDeck' },
|
|
325
|
-
autoScroll ?
|
|
324
|
+
autoScroll ? React__default.createElement(
|
|
326
325
|
InfiniteScroll,
|
|
327
326
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling },
|
|
328
|
-
|
|
327
|
+
React__default.createElement(
|
|
329
328
|
Container,
|
|
330
329
|
null,
|
|
331
330
|
this.cardLoader(page, columns, variant)
|
|
332
331
|
)
|
|
333
|
-
) :
|
|
334
|
-
|
|
332
|
+
) : React__default.createElement(
|
|
333
|
+
React__default.Fragment,
|
|
335
334
|
null,
|
|
336
|
-
|
|
335
|
+
React__default.createElement(
|
|
337
336
|
Container,
|
|
338
337
|
null,
|
|
339
338
|
this.cardLoader(page, columns, variant)
|
|
340
339
|
),
|
|
341
|
-
|
|
340
|
+
React__default.createElement(
|
|
342
341
|
'div',
|
|
343
342
|
{ style: { padding: '0px 10px' } },
|
|
344
|
-
this.state.scrolling ?
|
|
343
|
+
this.state.scrolling ? React__default.createElement(
|
|
345
344
|
'button',
|
|
346
345
|
{
|
|
347
346
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -349,17 +348,17 @@ var DeckQueue = function (_React$Component) {
|
|
|
349
348
|
_this3.loadMore();
|
|
350
349
|
} },
|
|
351
350
|
'Load More'
|
|
352
|
-
) :
|
|
351
|
+
) : React__default.createElement(
|
|
353
352
|
'p',
|
|
354
353
|
{ style: { textAlign: 'center' } },
|
|
355
|
-
|
|
354
|
+
React__default.createElement(
|
|
356
355
|
'b',
|
|
357
356
|
null,
|
|
358
357
|
'End of data'
|
|
359
358
|
)
|
|
360
359
|
)
|
|
361
360
|
),
|
|
362
|
-
|
|
361
|
+
React__default.createElement(
|
|
363
362
|
'noscript',
|
|
364
363
|
null,
|
|
365
364
|
this.renderManualPagination()
|
|
@@ -370,7 +369,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
370
369
|
}]);
|
|
371
370
|
|
|
372
371
|
return DeckQueue;
|
|
373
|
-
}(
|
|
372
|
+
}(React__default.Component);
|
|
374
373
|
|
|
375
374
|
var Queue = withRouter(DeckQueue);
|
|
376
375
|
|