@mjhls/mjh-framework 1.0.821 → 1.0.822
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +170 -170
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +3 -2
- package/dist/cjs/AD300x250x600.js +3 -2
- package/dist/cjs/AD728x90.js +3 -2
- package/dist/cjs/ADFloatingFooter.js +3 -2
- package/dist/cjs/ADGutter.js +3 -2
- package/dist/cjs/ADSkyscraper.js +3 -2
- package/dist/cjs/ADSponsoredResources.js +3 -2
- package/dist/cjs/ADWebcast.js +3 -2
- package/dist/cjs/ADWelcome.js +3 -2
- package/dist/cjs/AccordionPanel.js +2 -2
- package/dist/cjs/AdSlot.js +3 -2
- package/dist/cjs/AdSlotsProvider.js +3 -2
- package/dist/cjs/AlgoliaSearch.js +14098 -17
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +6 -5
- package/dist/cjs/ArticleSeriesLandingPage.js +5 -4
- package/dist/cjs/ArticleSeriesListing.js +5 -4
- package/dist/cjs/AuthWrapper.js +1 -1
- package/dist/cjs/CMEDeck.js +3 -2
- package/dist/cjs/Column3.js +3 -2
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/DeckContent.js +12 -11
- package/dist/cjs/DeckQueue.js +3 -2
- package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-93399f8c.js} +2 -1
- package/dist/cjs/EventsDeck.js +18 -18
- package/dist/cjs/ExternalResources.js +6 -5
- package/dist/cjs/Feature.js +1 -1
- package/dist/cjs/GridContent.js +5 -4
- package/dist/cjs/HamMagazine.js +15 -15
- package/dist/cjs/HorizontalArticleListing.js +6 -5
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueLanding.js +37 -36
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +3 -2
- package/dist/cjs/MasterDeck.js +13 -12
- package/dist/cjs/MediaSeriesLanding.js +306 -406
- package/dist/cjs/NavMagazine.js +16 -16
- package/dist/cjs/NavNative.js +12 -12
- package/dist/cjs/NavNormal.js +2 -2
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +11 -7
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PubSection.js +5 -4
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpanded.js +5 -4
- 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 +4 -3
- package/dist/cjs/{SeriesSlider-028ab640.js → SeriesSlider-d54fa925.js} +5 -5
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-ecb4f972.js} +3 -3
- package/dist/cjs/TaxonomyDescription.js +6 -5
- package/dist/cjs/TemplateNormal.js +8 -7
- package/dist/cjs/Ustream.js +4 -4
- package/dist/cjs/VideoProgramLandingPage.js +6 -5
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +5 -4
- package/dist/cjs/VideoSeriesListing.js +5 -4
- package/dist/cjs/View.js +10 -9
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/getSerializers.js +6 -5
- package/dist/cjs/{getTargeting-a100d6e5.js → getTargeting-be6168ad.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +5 -2
- package/dist/cjs/{index-7e0d91f8.js → index-179d21a3.js} +3 -3
- package/dist/cjs/index-8041a4eb.js +99 -0
- package/dist/cjs/{index-0e4427c8.js → index-fc2f1ca2.js} +2 -467
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-05850a2f.js} +1 -1
- package/dist/cjs/{index.esm-9225638f.js → index.esm-3b9b8952.js} +1 -1
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-8123cf40.js} +1 -1
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-974f47d9.js} +1 -1
- package/dist/cjs/index.js +15 -14
- package/dist/cjs/{main-f1c77adb.js → main-025fdc78.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +7 -6
- package/dist/esm/AD300x250x600.js +7 -6
- package/dist/esm/AD728x90.js +8 -7
- package/dist/esm/ADFloatingFooter.js +10 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +10 -9
- package/dist/esm/{ADInfeed-4a09242b.js → ADInfeed-28b1e946.js} +5 -5
- package/dist/esm/ADSkyscraper.js +10 -9
- package/dist/esm/ADSponsoredResources.js +10 -9
- package/dist/esm/ADWebcast.js +10 -9
- package/dist/esm/ADWelcome.js +14 -13
- package/dist/esm/{ADlgInfeed-0bff9a62.js → ADlgInfeed-0b474b02.js} +4 -4
- package/dist/esm/AccordionPanel.js +18 -18
- package/dist/esm/AdSlot.js +6 -5
- package/dist/esm/AdSlotsProvider.js +5 -4
- package/dist/esm/AlgoliaSearch.js +14120 -39
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +6 -6
- package/dist/esm/ArticleProgramLandingPage.js +18 -17
- package/dist/esm/ArticleSeriesLandingPage.js +13 -12
- package/dist/esm/ArticleSeriesListing.js +32 -31
- package/dist/esm/Auth.js +70 -70
- package/dist/esm/AuthWrapper.js +26 -26
- package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-5ae7409f.js} +10 -10
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-52cf21c5.js} +3 -3
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +62 -61
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +24 -23
- package/dist/esm/ConferenceArticleCard.js +28 -28
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +58 -57
- package/dist/esm/DeckQueue.js +43 -42
- package/dist/esm/{Dfp-be030f2a.js → Dfp-43f121ff.js} +11 -10
- package/dist/esm/EventsDeck.js +81 -81
- package/dist/esm/ExternalResources.js +36 -35
- package/dist/esm/Feature.js +15 -15
- package/dist/esm/ForbesHero.js +26 -26
- package/dist/esm/GridContent.js +104 -103
- package/dist/esm/GridHero.js +27 -27
- package/dist/esm/GroupDeck.js +34 -34
- package/dist/esm/HamMagazine.js +95 -95
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +6 -6
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +32 -31
- package/dist/esm/HorizontalHero.js +20 -20
- package/dist/esm/IssueContentDeck.js +39 -39
- package/dist/esm/IssueDeck.js +33 -33
- package/dist/esm/IssueLanding.js +52 -51
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +17 -16
- package/dist/esm/MasterDeck.js +47 -46
- package/dist/esm/MediaSeriesLanding.js +331 -431
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +99 -99
- package/dist/esm/NavNative.js +86 -86
- package/dist/esm/NavNormal.js +22 -22
- package/dist/esm/OncliveHero.js +13 -13
- package/dist/esm/OncliveLargeHero.js +50 -50
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +66 -62
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +15 -14
- 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 +247 -246
- package/dist/esm/RecentNews.js +18 -18
- package/dist/esm/RelatedContent.js +43 -43
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +5 -5
- package/dist/esm/SeriesListingDeck.js +20 -19
- package/dist/esm/{SeriesSlider-6551c52e.js → SeriesSlider-8f2aca58.js} +23 -23
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-cd38ae60.js} +22 -22
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +35 -35
- package/dist/esm/TaxonomyDescription.js +14 -13
- package/dist/esm/TemplateNormal.js +31 -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 +25 -24
- package/dist/esm/VideoSeriesCard.js +15 -15
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +13 -12
- package/dist/esm/VideoSeriesListing.js +48 -47
- package/dist/esm/View.js +171 -170
- package/dist/esm/YahooHero.js +23 -23
- package/dist/esm/YoutubeGroup.js +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-b43c695a.js} +3 -3
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/getSerializers.js +9 -8
- package/dist/esm/{getTargeting-05c216d6.js → getTargeting-68291ce9.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-5cc7b406.js → index-2446af28.js} +4 -469
- package/dist/esm/{index-755f2cc2.js → index-35bdcc81.js} +4 -4
- package/dist/esm/{index-3bcafffc.js → index-5cc7293b.js} +343 -343
- package/dist/esm/index-67e1773f.js +94 -0
- package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
- package/dist/esm/{index.esm-f6156a57.js → index.esm-3fdda599.js} +1 -1
- package/dist/esm/{index.esm-37268dca.js → index.esm-8016b507.js} +16 -16
- package/dist/esm/{index.esm-d4932dea.js → index.esm-a8ff922c.js} +1 -1
- package/dist/esm/{index.esm-e874e770.js → index.esm-d6f88d94.js} +1 -1
- package/dist/esm/index.js +40 -39
- package/dist/esm/{main-d4165069.js → main-b5c5aac1.js} +19 -19
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-91f9716f.js} +5 -5
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/package.json +110 -110
- /package/dist/cjs/{ADInfeed-eb4ce360.js → ADInfeed-8b336c67.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-8a05b63f.js → ADlgInfeed-aedd5e18.js} +0 -0
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React 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.createElement(
|
|
33
33
|
'div',
|
|
34
34
|
{ className: 'conference-media' },
|
|
35
|
-
|
|
35
|
+
React.createElement(
|
|
36
36
|
'a',
|
|
37
37
|
{ className: 'img-wrapper', href: '/view/' + (data.url ? data.url.current : '') },
|
|
38
|
-
|
|
38
|
+
React.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.createElement(
|
|
45
45
|
'div',
|
|
46
46
|
{ className: 'media-body' },
|
|
47
|
-
|
|
47
|
+
React.createElement(
|
|
48
48
|
'a',
|
|
49
49
|
{ href: '/view/' + (data.url ? data.url.current : '') },
|
|
50
|
-
|
|
50
|
+
React.createElement(
|
|
51
51
|
'h4',
|
|
52
52
|
{ className: 'conf-media__card-title' },
|
|
53
53
|
data.title
|
|
54
54
|
)
|
|
55
55
|
),
|
|
56
|
-
|
|
56
|
+
React.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.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.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.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.createElement('p', { className: 'pt-2 card-text', dangerouslySetInnerHTML: { __html: data.summary } })
|
|
75
75
|
),
|
|
76
|
-
|
|
76
|
+
React.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 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.createElement(
|
|
8
8
|
"div",
|
|
9
9
|
{ className: "conf-img" },
|
|
10
|
-
|
|
10
|
+
React.createElement(
|
|
11
11
|
"a",
|
|
12
12
|
{ href: website.conferenceBannerContent.href },
|
|
13
|
-
|
|
13
|
+
React.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 from 'react';
|
|
5
|
+
import { l as lib_3 } from './index-2446af28.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-c6222053.js';
|
|
14
|
+
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.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-35bdcc81.js';
|
|
17
|
+
import { m as main_43 } from './main-b5c5aac1.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-28b1e946.js';
|
|
20
20
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
21
21
|
import './es6.string.iterator-bc33758b.js';
|
|
22
22
|
import './_to-object-b50e61c3.js';
|
|
@@ -29,6 +29,7 @@ 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';
|
|
32
33
|
import 'prop-types';
|
|
33
34
|
import './isSymbol-a7e9aafe.js';
|
|
34
35
|
import './toNumber-5aeba6e7.js';
|
|
@@ -173,14 +174,14 @@ var DeckContent = function (_React$Component) {
|
|
|
173
174
|
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
174
175
|
|
|
175
176
|
// please leave this for later debug purpose : Yong Jun.
|
|
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
|
|
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
|
|
184
185
|
}) */
|
|
185
186
|
|
|
186
187
|
if (pageview) {
|
|
@@ -200,35 +201,35 @@ var DeckContent = function (_React$Component) {
|
|
|
200
201
|
url = authorDetail.url;
|
|
201
202
|
|
|
202
203
|
if (displayName && url && url.current) {
|
|
203
|
-
return
|
|
204
|
+
return React.createElement(
|
|
204
205
|
'div',
|
|
205
206
|
{ key: _id },
|
|
206
|
-
index === 0 &&
|
|
207
|
+
index === 0 && React.createElement(
|
|
207
208
|
'span',
|
|
208
209
|
{ className: 'pr-1' },
|
|
209
210
|
'By'
|
|
210
211
|
),
|
|
211
|
-
|
|
212
|
+
React.createElement(
|
|
212
213
|
'a',
|
|
213
214
|
{ href: '/authors/${url.current}', className: 'text-muted' },
|
|
214
215
|
displayName,
|
|
215
|
-
length !== index + 1 &&
|
|
216
|
+
length !== index + 1 && React.createElement('br', null)
|
|
216
217
|
)
|
|
217
218
|
);
|
|
218
219
|
} else if (displayName) {
|
|
219
|
-
return
|
|
220
|
+
return React.createElement(
|
|
220
221
|
'div',
|
|
221
222
|
{ key: _id },
|
|
222
|
-
index === 0 &&
|
|
223
|
+
index === 0 && React.createElement(
|
|
223
224
|
'span',
|
|
224
225
|
{ className: 'pr-1' },
|
|
225
226
|
'By'
|
|
226
227
|
),
|
|
227
|
-
|
|
228
|
+
React.createElement(
|
|
228
229
|
'span',
|
|
229
230
|
{ className: 'text-muted' },
|
|
230
231
|
displayName,
|
|
231
|
-
length !== index + 1 &&
|
|
232
|
+
length !== index + 1 && React.createElement('br', null)
|
|
232
233
|
)
|
|
233
234
|
);
|
|
234
235
|
}
|
|
@@ -272,7 +273,7 @@ var DeckContent = function (_React$Component) {
|
|
|
272
273
|
articles = _this.state.data;
|
|
273
274
|
}
|
|
274
275
|
|
|
275
|
-
return
|
|
276
|
+
return React.createElement(
|
|
276
277
|
Row,
|
|
277
278
|
null,
|
|
278
279
|
articles && articles.map(function (row, index) {
|
|
@@ -284,51 +285,51 @@ var DeckContent = function (_React$Component) {
|
|
|
284
285
|
lgVar = 6;
|
|
285
286
|
}
|
|
286
287
|
if (row._type === 'BrandInsight' && row.adUnit) {
|
|
287
|
-
return
|
|
288
|
+
return React.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
288
289
|
} else {
|
|
289
290
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
290
291
|
var contentCategoryName = row.contentCategory && row.contentCategory.name && _this.mapping[row.contentCategory.name] ? row.contentCategory.name : 'Articles';
|
|
291
|
-
return
|
|
292
|
-
|
|
292
|
+
return React.createElement(
|
|
293
|
+
React.Fragment,
|
|
293
294
|
{ key: itemCounter },
|
|
294
|
-
|
|
295
|
+
React.createElement(
|
|
295
296
|
VisibilitySensor,
|
|
296
297
|
{
|
|
297
298
|
onChange: function onChange(isVisible) {
|
|
298
299
|
isVisible && _this.changePageNumber(pageNumber);
|
|
299
300
|
} },
|
|
300
|
-
|
|
301
|
+
React.createElement(
|
|
301
302
|
Col,
|
|
302
303
|
{ md: 12, lg: lgVar, counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
303
|
-
|
|
304
|
+
React.createElement(
|
|
304
305
|
Card,
|
|
305
306
|
{ className: 'content-card', style: { flexDirection: mode } },
|
|
306
|
-
(row.thumbnail && row.thumbnail.asset || _this.props.defaultImage) &&
|
|
307
|
+
(row.thumbnail && row.thumbnail.asset || _this.props.defaultImage) && React.createElement(
|
|
307
308
|
'a',
|
|
308
309
|
{ href: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
309
|
-
|
|
310
|
+
React.createElement(
|
|
310
311
|
LazyLoad,
|
|
311
312
|
{ height: _this.props.imageHeight },
|
|
312
|
-
|
|
313
|
+
React.createElement(Card.Img, {
|
|
313
314
|
variant: 'top',
|
|
314
315
|
src: _this.renderCardImage(row, page),
|
|
315
316
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
316
317
|
})
|
|
317
318
|
)
|
|
318
319
|
),
|
|
319
|
-
|
|
320
|
+
React.createElement(
|
|
320
321
|
Card.Body,
|
|
321
322
|
null,
|
|
322
|
-
|
|
323
|
+
React.createElement(
|
|
323
324
|
'a',
|
|
324
325
|
{ href: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
325
|
-
|
|
326
|
+
React.createElement(
|
|
326
327
|
Card.Title,
|
|
327
328
|
null,
|
|
328
329
|
row.title
|
|
329
330
|
)
|
|
330
331
|
),
|
|
331
|
-
_this.props.showPublished && row.published &&
|
|
332
|
+
_this.props.showPublished && row.published && React.createElement(
|
|
332
333
|
Card.Subtitle,
|
|
333
334
|
null,
|
|
334
335
|
moment(row.published).format('MMMM DD, YYYY')
|
|
@@ -336,7 +337,7 @@ var DeckContent = function (_React$Component) {
|
|
|
336
337
|
_this.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && row.authorMapping.map(function (authorDetail, index) {
|
|
337
338
|
return _this.renderAuthor(authorDetail, index, row.authorMapping.length);
|
|
338
339
|
}),
|
|
339
|
-
|
|
340
|
+
React.createElement(
|
|
340
341
|
Card.Text,
|
|
341
342
|
null,
|
|
342
343
|
clean_html_1(row.summary)
|
|
@@ -354,7 +355,7 @@ var DeckContent = function (_React$Component) {
|
|
|
354
355
|
var rightItems = _this.props.rightItems;
|
|
355
356
|
|
|
356
357
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
357
|
-
return
|
|
358
|
+
return React.createElement(
|
|
358
359
|
Col,
|
|
359
360
|
{ md: 12, style: { display: 'flex', flex: '1 0 auto' } },
|
|
360
361
|
rightItems[i].component
|
|
@@ -362,15 +363,15 @@ var DeckContent = function (_React$Component) {
|
|
|
362
363
|
}, _this.renderManualPagination = function () {
|
|
363
364
|
var currentPage = _this.state.currentPage;
|
|
364
365
|
|
|
365
|
-
return
|
|
366
|
+
return React.createElement(
|
|
366
367
|
'div',
|
|
367
368
|
{ className: 'd-flex justify-content-between' },
|
|
368
|
-
currentPage && currentPage > 1 &&
|
|
369
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
369
370
|
'a',
|
|
370
371
|
{ href: '?page=' + (currentPage - 1) },
|
|
371
372
|
'<< Previous'
|
|
372
373
|
),
|
|
373
|
-
|
|
374
|
+
React.createElement(
|
|
374
375
|
'a',
|
|
375
376
|
{ href: '?page=' + (currentPage + 1) },
|
|
376
377
|
'Next >>'
|
|
@@ -416,38 +417,38 @@ var DeckContent = function (_React$Component) {
|
|
|
416
417
|
brandInsight = _props.brandInsight;
|
|
417
418
|
|
|
418
419
|
|
|
419
|
-
return
|
|
420
|
+
return React.createElement(
|
|
420
421
|
'div',
|
|
421
422
|
{ className: 'contentDeck' },
|
|
422
|
-
autoScroll ?
|
|
423
|
-
|
|
423
|
+
autoScroll ? React.createElement(
|
|
424
|
+
React.Fragment,
|
|
424
425
|
null,
|
|
425
|
-
|
|
426
|
+
React.createElement(
|
|
426
427
|
InfiniteScroll,
|
|
427
428
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.9 },
|
|
428
|
-
|
|
429
|
+
React.createElement(
|
|
429
430
|
Container,
|
|
430
431
|
null,
|
|
431
432
|
this.cardLoader(page, columns, variant, showBI, brandInsight)
|
|
432
433
|
)
|
|
433
434
|
),
|
|
434
|
-
|
|
435
|
+
React.createElement(
|
|
435
436
|
'noscript',
|
|
436
437
|
null,
|
|
437
438
|
this.renderManualPagination()
|
|
438
439
|
)
|
|
439
|
-
) :
|
|
440
|
-
|
|
440
|
+
) : React.createElement(
|
|
441
|
+
React.Fragment,
|
|
441
442
|
null,
|
|
442
|
-
|
|
443
|
+
React.createElement(
|
|
443
444
|
Container,
|
|
444
445
|
null,
|
|
445
446
|
this.cardLoader(page, columns, variant, showBI, brandInsight)
|
|
446
447
|
),
|
|
447
|
-
|
|
448
|
+
React.createElement(
|
|
448
449
|
'div',
|
|
449
450
|
{ style: { padding: '0px 10px' } },
|
|
450
|
-
this.state.scrolling ?
|
|
451
|
+
this.state.scrolling ? React.createElement(
|
|
451
452
|
'button',
|
|
452
453
|
{
|
|
453
454
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -455,17 +456,17 @@ var DeckContent = function (_React$Component) {
|
|
|
455
456
|
_this2.loadMore();
|
|
456
457
|
} },
|
|
457
458
|
'Load More'
|
|
458
|
-
) :
|
|
459
|
+
) : React.createElement(
|
|
459
460
|
'p',
|
|
460
461
|
{ style: { textAlign: 'center' } },
|
|
461
|
-
|
|
462
|
+
React.createElement(
|
|
462
463
|
'b',
|
|
463
464
|
null,
|
|
464
465
|
'End of data'
|
|
465
466
|
)
|
|
466
467
|
)
|
|
467
468
|
),
|
|
468
|
-
|
|
469
|
+
React.createElement(
|
|
469
470
|
'noscript',
|
|
470
471
|
null,
|
|
471
472
|
this.renderManualPagination()
|
|
@@ -476,7 +477,7 @@ var DeckContent = function (_React$Component) {
|
|
|
476
477
|
}]);
|
|
477
478
|
|
|
478
479
|
return DeckContent;
|
|
479
|
-
}(
|
|
480
|
+
}(React.Component);
|
|
480
481
|
|
|
481
482
|
var ContentCard = withRouter(DeckContent);
|
|
482
483
|
|
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 from 'react';
|
|
5
|
+
import { l as lib_3 } from './index-2446af28.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-f40c2564.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-35bdcc81.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-c6222053.js';
|
|
17
17
|
import urlFor from './urlFor.js';
|
|
18
|
-
import { m as main_43 } from './main-
|
|
18
|
+
import { m as main_43 } from './main-b5c5aac1.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,6 +29,7 @@ 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';
|
|
32
33
|
import 'prop-types';
|
|
33
34
|
import 'react-dom';
|
|
34
35
|
import './isSymbol-a7e9aafe.js';
|
|
@@ -178,7 +179,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
178
179
|
var rightItems = _this.props.rightItems;
|
|
179
180
|
|
|
180
181
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
181
|
-
return
|
|
182
|
+
return React.createElement(
|
|
182
183
|
'div',
|
|
183
184
|
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
184
185
|
rightItems[i].component
|
|
@@ -186,15 +187,15 @@ var DeckQueue = function (_React$Component) {
|
|
|
186
187
|
}, _this.renderManualPagination = function () {
|
|
187
188
|
var currentPage = _this.state.currentPage;
|
|
188
189
|
|
|
189
|
-
return
|
|
190
|
+
return React.createElement(
|
|
190
191
|
'div',
|
|
191
192
|
{ className: 'd-flex justify-content-between' },
|
|
192
|
-
currentPage && currentPage > 1 &&
|
|
193
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
193
194
|
'a',
|
|
194
195
|
{ href: '?page=' + (currentPage - 1) },
|
|
195
196
|
'<< Previous'
|
|
196
197
|
),
|
|
197
|
-
|
|
198
|
+
React.createElement(
|
|
198
199
|
'a',
|
|
199
200
|
{ href: '?page=' + (currentPage + 1) },
|
|
200
201
|
'Next >>'
|
|
@@ -212,78 +213,78 @@ var DeckQueue = function (_React$Component) {
|
|
|
212
213
|
var lgVar = Math.floor(12 / columns);
|
|
213
214
|
var numberOfItemsBeforeAd = 6;
|
|
214
215
|
|
|
215
|
-
return
|
|
216
|
+
return React.createElement(
|
|
216
217
|
Row,
|
|
217
218
|
null,
|
|
218
219
|
this.state.data && this.state.data.map(function (row, index) {
|
|
219
220
|
var pageNumber = row.pageNumber || _this2.state.page;
|
|
220
221
|
// const thumbnailURL = get(row, 'thumbnail.asset.url', this.props.defaultImage)
|
|
221
222
|
|
|
222
|
-
return
|
|
223
|
-
|
|
223
|
+
return React.createElement(
|
|
224
|
+
React.Fragment,
|
|
224
225
|
{ key: index },
|
|
225
|
-
|
|
226
|
+
React.createElement(
|
|
226
227
|
VisibilitySensor,
|
|
227
228
|
{
|
|
228
229
|
onChange: function onChange(isVisible) {
|
|
229
230
|
isVisible && _this2.changePageNumber(pageNumber);
|
|
230
231
|
} },
|
|
231
|
-
|
|
232
|
+
React.createElement(
|
|
232
233
|
Col,
|
|
233
234
|
{ md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
234
|
-
|
|
235
|
+
React.createElement(
|
|
235
236
|
Card,
|
|
236
237
|
{ className: 'queue-card', style: { borderTop: '1px solid #EEE' } },
|
|
237
|
-
|
|
238
|
+
React.createElement(
|
|
238
239
|
Row,
|
|
239
240
|
{ style: { flexDirection: mode } },
|
|
240
|
-
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) &&
|
|
241
|
+
(row.thumbnail && row.thumbnail.asset || _this2.props.defaultImage) && React.createElement(
|
|
241
242
|
Col,
|
|
242
243
|
{ md: 12, lg: 4 },
|
|
243
|
-
|
|
244
|
+
React.createElement(
|
|
244
245
|
'a',
|
|
245
246
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
246
|
-
|
|
247
|
+
React.createElement(
|
|
247
248
|
LazyLoad,
|
|
248
249
|
{ height: _this2.props.imageHeight },
|
|
249
|
-
|
|
250
|
+
React.createElement(Card.Img, { variant: 'top', src: _this2.renderCardImage(row), alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : '' })
|
|
250
251
|
)
|
|
251
252
|
)
|
|
252
253
|
),
|
|
253
|
-
|
|
254
|
+
React.createElement(
|
|
254
255
|
Col,
|
|
255
256
|
null,
|
|
256
|
-
|
|
257
|
+
React.createElement(
|
|
257
258
|
Card.Body,
|
|
258
259
|
{ style: { padding: '20px' } },
|
|
259
|
-
row.title &&
|
|
260
|
+
row.title && React.createElement(
|
|
260
261
|
Card.Title,
|
|
261
262
|
null,
|
|
262
|
-
|
|
263
|
+
React.createElement(
|
|
263
264
|
'a',
|
|
264
265
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
265
266
|
row.title
|
|
266
267
|
)
|
|
267
268
|
),
|
|
268
|
-
_this2.props.showPublished && row.published &&
|
|
269
|
+
_this2.props.showPublished && row.published && React.createElement(
|
|
269
270
|
Card.Subtitle,
|
|
270
271
|
null,
|
|
271
272
|
moment(row.published).format('MMMM DD, YYYY')
|
|
272
273
|
),
|
|
273
|
-
_this2.props.showRecent && row.recent && row.recent.title &&
|
|
274
|
+
_this2.props.showRecent && row.recent && row.recent.title && React.createElement(
|
|
274
275
|
Card.Subtitle,
|
|
275
276
|
null,
|
|
276
277
|
'Recent : ',
|
|
277
|
-
|
|
278
|
+
React.createElement(
|
|
278
279
|
'a',
|
|
279
280
|
{ href: 'view/' + row.recent.url.current },
|
|
280
281
|
row.recent.title
|
|
281
282
|
)
|
|
282
283
|
),
|
|
283
|
-
row.summary &&
|
|
284
|
+
row.summary && React.createElement(
|
|
284
285
|
Card.Text,
|
|
285
286
|
null,
|
|
286
|
-
|
|
287
|
+
React.createElement(
|
|
287
288
|
'a',
|
|
288
289
|
{ href: _this2.page + '/' + get_1(row, 'url.current') },
|
|
289
290
|
clean_html_1(row.summary)
|
|
@@ -312,29 +313,29 @@ var DeckQueue = function (_React$Component) {
|
|
|
312
313
|
page = _props.page;
|
|
313
314
|
|
|
314
315
|
|
|
315
|
-
return
|
|
316
|
+
return React.createElement(
|
|
316
317
|
'div',
|
|
317
318
|
{ className: 'contentDeck' },
|
|
318
|
-
autoScroll ?
|
|
319
|
+
autoScroll ? React.createElement(
|
|
319
320
|
InfiniteScroll,
|
|
320
321
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling },
|
|
321
|
-
|
|
322
|
+
React.createElement(
|
|
322
323
|
Container,
|
|
323
324
|
null,
|
|
324
325
|
this.cardLoader(page, columns, variant)
|
|
325
326
|
)
|
|
326
|
-
) :
|
|
327
|
-
|
|
327
|
+
) : React.createElement(
|
|
328
|
+
React.Fragment,
|
|
328
329
|
null,
|
|
329
|
-
|
|
330
|
+
React.createElement(
|
|
330
331
|
Container,
|
|
331
332
|
null,
|
|
332
333
|
this.cardLoader(page, columns, variant)
|
|
333
334
|
),
|
|
334
|
-
|
|
335
|
+
React.createElement(
|
|
335
336
|
'div',
|
|
336
337
|
{ style: { padding: '0px 10px' } },
|
|
337
|
-
this.state.scrolling ?
|
|
338
|
+
this.state.scrolling ? React.createElement(
|
|
338
339
|
'button',
|
|
339
340
|
{
|
|
340
341
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -342,17 +343,17 @@ var DeckQueue = function (_React$Component) {
|
|
|
342
343
|
_this3.loadMore();
|
|
343
344
|
} },
|
|
344
345
|
'Load More'
|
|
345
|
-
) :
|
|
346
|
+
) : React.createElement(
|
|
346
347
|
'p',
|
|
347
348
|
{ style: { textAlign: 'center' } },
|
|
348
|
-
|
|
349
|
+
React.createElement(
|
|
349
350
|
'b',
|
|
350
351
|
null,
|
|
351
352
|
'End of data'
|
|
352
353
|
)
|
|
353
354
|
)
|
|
354
355
|
),
|
|
355
|
-
|
|
356
|
+
React.createElement(
|
|
356
357
|
'noscript',
|
|
357
358
|
null,
|
|
358
359
|
this.renderManualPagination()
|
|
@@ -363,7 +364,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
363
364
|
}]);
|
|
364
365
|
|
|
365
366
|
return DeckQueue;
|
|
366
|
-
}(
|
|
367
|
+
}(React.Component);
|
|
367
368
|
|
|
368
369
|
var Queue = withRouter(DeckQueue);
|
|
369
370
|
|