@mjhls/mjh-framework 1.0.816 → 1.0.817-image-crop-test-v2
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 +14099 -17
- package/dist/cjs/ArticleCarousel.js +2 -1
- package/dist/cjs/ArticleProgramLandingPage.js +7 -5
- package/dist/cjs/ArticleSeriesLandingPage.js +5 -4
- package/dist/cjs/ArticleSeriesListing.js +6 -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 +19 -24
- package/dist/cjs/DeckContent.js +20 -25
- package/dist/cjs/DeckQueue.js +11 -17
- package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-93399f8c.js} +2 -1
- package/dist/cjs/EventsDeck.js +18 -18
- package/dist/cjs/ExternalResources.js +7 -5
- package/dist/cjs/Feature.js +6 -10
- package/dist/cjs/ForbesHero.js +11 -13
- package/dist/cjs/GridContent.js +24 -29
- package/dist/cjs/GridHero.js +13 -24
- package/dist/cjs/GroupDeck.js +4 -8
- package/dist/cjs/HamMagazine.js +15 -15
- package/dist/cjs/Hero.js +3 -14
- package/dist/cjs/HorizontalArticleListing.js +7 -5
- package/dist/cjs/HorizontalHero.js +7 -8
- package/dist/cjs/IssueContentDeck.js +10 -27
- package/dist/cjs/IssueDeck.js +10 -12
- package/dist/cjs/IssueLanding.js +38 -36
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +3 -2
- package/dist/cjs/MasterDeck.js +14 -13
- package/dist/cjs/MediaSeriesLanding.js +307 -407
- 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 +6 -7
- package/dist/cjs/OncliveLargeHero.js +21 -22
- package/dist/cjs/PartnerDetailListing.js +13 -16
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PubSection.js +6 -4
- package/dist/cjs/PublicationDeck.js +10 -12
- package/dist/cjs/PublicationLanding.js +26 -29
- package/dist/cjs/QueueDeckExpanded.js +74 -72
- package/dist/cjs/RecentNews.js +5 -8
- package/dist/cjs/RelatedContent.js +35 -38
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +5 -3
- package/dist/cjs/{SeriesSlider-2db54929.js → SeriesSlider-8c157166.js} +7 -12
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-ecb4f972.js} +3 -3
- package/dist/cjs/TaxonomyCard.js +11 -14
- package/dist/cjs/TaxonomyDescription.js +7 -5
- package/dist/cjs/TemplateNormal.js +8 -7
- package/dist/cjs/ThumbnailCard.js +6 -10
- package/dist/cjs/Ustream.js +4 -4
- package/dist/cjs/VerticalHero.js +3 -7
- package/dist/cjs/VideoProgramLandingPage.js +7 -5
- package/dist/cjs/VideoSeriesCard.js +9 -8
- package/dist/cjs/VideoSeriesLandingPage.js +6 -4
- package/dist/cjs/VideoSeriesListing.js +6 -4
- package/dist/cjs/View.js +17 -16
- package/dist/cjs/YahooHero.js +10 -12
- package/dist/cjs/YoutubeGroup.js +9 -13
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/getSerializers.js +7 -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-8041a4eb.js +99 -0
- package/dist/cjs/{index-70971c54.js → index-8543a68a.js} +49 -93
- 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 +19 -32
- package/dist/cjs/{main-f1c77adb.js → main-025fdc78.js} +3 -3
- package/dist/cjs/urlForV2.js +35 -0
- 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-f7d00a9a.js → ADInfeed-7aaa47e1.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-db64f46d.js → ADlgInfeed-78f95e78.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 +14123 -41
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +7 -6
- package/dist/esm/ArticleProgramLandingPage.js +19 -17
- package/dist/esm/ArticleSeriesLandingPage.js +13 -12
- package/dist/esm/ArticleSeriesListing.js +33 -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 +32 -37
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +63 -68
- package/dist/esm/DeckQueue.js +48 -54
- package/dist/esm/{Dfp-be030f2a.js → Dfp-43f121ff.js} +11 -10
- package/dist/esm/EventsDeck.js +81 -81
- package/dist/esm/ExternalResources.js +37 -35
- package/dist/esm/Feature.js +20 -24
- package/dist/esm/ForbesHero.js +31 -33
- package/dist/esm/GridContent.js +109 -114
- package/dist/esm/GridHero.js +34 -45
- package/dist/esm/GroupDeck.js +38 -42
- package/dist/esm/HamMagazine.js +95 -95
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +8 -19
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +33 -31
- package/dist/esm/HorizontalHero.js +25 -26
- package/dist/esm/IssueContentDeck.js +48 -65
- package/dist/esm/IssueDeck.js +43 -45
- package/dist/esm/IssueLanding.js +53 -51
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +17 -16
- package/dist/esm/MasterDeck.js +48 -47
- package/dist/esm/MediaSeriesLanding.js +334 -434
- 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 +18 -19
- package/dist/esm/OncliveLargeHero.js +58 -59
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +68 -71
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +16 -14
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +43 -45
- package/dist/esm/PublicationLanding.js +75 -78
- package/dist/esm/QueueDeckExpanded.js +262 -260
- package/dist/esm/RecentNews.js +21 -24
- package/dist/esm/RelatedContent.js +46 -49
- 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 +21 -19
- package/dist/esm/{SeriesSlider-c8477bf3.js → SeriesSlider-bfd7299d.js} +25 -30
- 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 +43 -46
- package/dist/esm/TaxonomyDescription.js +15 -13
- package/dist/esm/TemplateNormal.js +31 -30
- package/dist/esm/ThumbnailCard.js +11 -15
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +14 -18
- package/dist/esm/VideoProgramLandingPage.js +26 -24
- package/dist/esm/VideoSeriesCard.js +19 -18
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +14 -12
- package/dist/esm/VideoSeriesListing.js +49 -47
- package/dist/esm/View.js +178 -177
- package/dist/esm/YahooHero.js +28 -30
- package/dist/esm/YoutubeGroup.js +36 -40
- 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 +10 -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-67e1773f.js +94 -0
- package/dist/esm/{index-a30e3b71.js → index-d1638f9e.js} +357 -401
- 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 +43 -55
- 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/urlForV2.js +33 -0
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/package.json +110 -110
- /package/dist/cjs/{ADInfeed-7cf51090.js → ADInfeed-1ac86856.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-bf24708d.js → ADlgInfeed-2ee46b09.js} +0 -0
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { m as moment } from './moment-bc12cb97.js';
|
|
3
|
-
import
|
|
3
|
+
import urlFor from './urlForV2.js';
|
|
4
4
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
5
|
+
import './index-0dbff1d1.js';
|
|
5
6
|
|
|
6
|
-
/*
|
|
7
|
-
Example usage - targetedonc.com/latest-conference
|
|
8
|
-
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] {
|
|
9
|
-
...,
|
|
10
|
-
title,
|
|
11
|
-
summary,
|
|
12
|
-
thumbnail,
|
|
13
|
-
url,
|
|
14
|
-
published,
|
|
15
|
-
documentGroup->,
|
|
16
|
-
contentCategory->,
|
|
17
|
-
'pageNumber': ${currentPage}
|
|
18
|
-
}`
|
|
19
|
-
|
|
20
|
-
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)
|
|
21
22
|
*/
|
|
22
23
|
|
|
23
24
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -26,59 +27,53 @@ var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
|
26
27
|
props.index;
|
|
27
28
|
var client = props.client;
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
var builder = imageUrlBuilder(client);
|
|
31
|
-
|
|
32
|
-
function urlFor(source) {
|
|
33
|
-
return builder.image(source).auto('format');
|
|
34
|
-
}
|
|
35
|
-
|
|
36
30
|
// title, thumbnail, summary, published, documentGroup.identifier.current, documentGroup.identifier.name
|
|
37
|
-
|
|
31
|
+
|
|
32
|
+
return React.createElement(
|
|
38
33
|
'div',
|
|
39
34
|
{ className: 'conference-media' },
|
|
40
|
-
|
|
35
|
+
React.createElement(
|
|
41
36
|
'a',
|
|
42
37
|
{ className: 'img-wrapper', href: '/view/' + (data.url ? data.url.current : '') },
|
|
43
|
-
|
|
38
|
+
React.createElement('img', {
|
|
44
39
|
className: 'mr-3 img-fluid',
|
|
45
|
-
src: data.thumbnail && urlFor(data.thumbnail.asset
|
|
40
|
+
src: data.thumbnail && urlFor({ client: client, source: data.thumbnail.asset, imageWidth: 350 }),
|
|
46
41
|
alt: data.title
|
|
47
42
|
})
|
|
48
43
|
),
|
|
49
|
-
|
|
44
|
+
React.createElement(
|
|
50
45
|
'div',
|
|
51
46
|
{ className: 'media-body' },
|
|
52
|
-
|
|
47
|
+
React.createElement(
|
|
53
48
|
'a',
|
|
54
49
|
{ href: '/view/' + (data.url ? data.url.current : '') },
|
|
55
|
-
|
|
50
|
+
React.createElement(
|
|
56
51
|
'h4',
|
|
57
52
|
{ className: 'conf-media__card-title' },
|
|
58
53
|
data.title
|
|
59
54
|
)
|
|
60
55
|
),
|
|
61
|
-
|
|
56
|
+
React.createElement(
|
|
62
57
|
'p',
|
|
63
58
|
{ className: 'conf-media__card-text' },
|
|
64
59
|
moment(data.published).format('MMMM Do YYYY, h:mma')
|
|
65
60
|
),
|
|
66
|
-
|
|
61
|
+
React.createElement(
|
|
67
62
|
'p',
|
|
68
63
|
{ className: 'mb-1 conference-group' },
|
|
69
|
-
data.documentGroup && data.documentGroup.identifier && (data.documentGroup.identifier.current.includes('/') ?
|
|
64
|
+
data.documentGroup && data.documentGroup.identifier && (data.documentGroup.identifier.current.includes('/') ? React.createElement(
|
|
70
65
|
'a',
|
|
71
66
|
{ href: '/' + data.documentGroup.identifier.current, alt: data.thumbnail && data.thumbnail.alt || data.title },
|
|
72
67
|
data.documentGroup.name
|
|
73
|
-
) :
|
|
68
|
+
) : React.createElement(
|
|
74
69
|
'a',
|
|
75
70
|
{ href: '/conference/' + data.documentGroup.identifier.current, alt: data.thumbnail && data.thumbnail.alt || data.title },
|
|
76
71
|
data.documentGroup.name
|
|
77
72
|
))
|
|
78
73
|
),
|
|
79
|
-
|
|
74
|
+
React.createElement('p', { className: 'pt-2 card-text', dangerouslySetInnerHTML: { __html: data.summary } })
|
|
80
75
|
),
|
|
81
|
-
|
|
76
|
+
React.createElement(
|
|
82
77
|
'style',
|
|
83
78
|
{ jsx: 'true' },
|
|
84
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-
|
|
15
|
-
import
|
|
16
|
-
import { L as LazyLoad } from './index-
|
|
17
|
-
import { m as main_43 } from './main-
|
|
13
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
14
|
+
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
15
|
+
import urlFor from './urlForV2.js';
|
|
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-7aaa47e1.js';
|
|
20
20
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
21
21
|
import './es6.string.iterator-bc33758b.js';
|
|
22
22
|
import './_to-object-b50e61c3.js';
|
|
@@ -29,10 +29,12 @@ 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';
|
|
35
36
|
import 'react-dom';
|
|
37
|
+
import './index-0dbff1d1.js';
|
|
36
38
|
import './slicedToArray-be2f7a22.js';
|
|
37
39
|
import './AdSlot.js';
|
|
38
40
|
import './Beam.js';
|
|
@@ -54,7 +56,7 @@ var DeckContent = function (_React$Component) {
|
|
|
54
56
|
args[_key] = arguments[_key];
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DeckContent.__proto__ || _Object$getPrototypeOf(DeckContent)).call.apply(_ref, [this].concat(args))), _this), _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord || [], _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.state = {
|
|
59
|
+
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DeckContent.__proto__ || _Object$getPrototypeOf(DeckContent)).call.apply(_ref, [this].concat(args))), _this), _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord || [], _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.client = _this.props.client, _this.state = {
|
|
58
60
|
data: _this.data,
|
|
59
61
|
dataKeptToCompareNewDatarecord: _this.data,
|
|
60
62
|
per: _this.params ? _this.params.to : 2,
|
|
@@ -115,17 +117,10 @@ var DeckContent = function (_React$Component) {
|
|
|
115
117
|
}
|
|
116
118
|
});
|
|
117
119
|
});
|
|
118
|
-
}, _this.urlFor = function (source) {
|
|
119
|
-
var client = _this.props.client;
|
|
120
|
-
|
|
121
|
-
var builder = imageUrlBuilder(client);
|
|
122
|
-
return builder.image(source).auto('format');
|
|
123
120
|
}, _this.renderCardImage = function (row, page) {
|
|
124
121
|
if (row.thumbnail && row.thumbnail.asset) {
|
|
125
|
-
var url = _this.
|
|
126
|
-
|
|
127
|
-
if (_this.props.imageWidth) url = url.width(_this.props.imageWidth);
|
|
128
|
-
return url.url();
|
|
122
|
+
var url = urlFor({ client: _this.client, source: row.thumbnail, imageHeight: _this.props.imageHeight || null, imageWidth: _this.props.imageWidth || null, imageFit: _this.props.imageFit || null });
|
|
123
|
+
return url;
|
|
129
124
|
} else {
|
|
130
125
|
return _this.defaultImage;
|
|
131
126
|
}
|
|
@@ -179,14 +174,14 @@ var DeckContent = function (_React$Component) {
|
|
|
179
174
|
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
180
175
|
|
|
181
176
|
// please leave this for later debug purpose : Yong Jun.
|
|
182
|
-
/* console.log('page change reported', {
|
|
183
|
-
currentPage: currentPage,
|
|
184
|
-
pageNumber: pageNumber,
|
|
185
|
-
pathname: pathname,
|
|
186
|
-
path: path,
|
|
187
|
-
newPath: newPath,
|
|
188
|
-
firstPage: pageNumber === 1,
|
|
189
|
-
queryString: queryString
|
|
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
|
|
190
185
|
}) */
|
|
191
186
|
|
|
192
187
|
if (pageview) {
|
|
@@ -206,35 +201,35 @@ var DeckContent = function (_React$Component) {
|
|
|
206
201
|
url = authorDetail.url;
|
|
207
202
|
|
|
208
203
|
if (displayName && url && url.current) {
|
|
209
|
-
return
|
|
204
|
+
return React.createElement(
|
|
210
205
|
'div',
|
|
211
206
|
{ key: _id },
|
|
212
|
-
index === 0 &&
|
|
207
|
+
index === 0 && React.createElement(
|
|
213
208
|
'span',
|
|
214
209
|
{ className: 'pr-1' },
|
|
215
210
|
'By'
|
|
216
211
|
),
|
|
217
|
-
|
|
212
|
+
React.createElement(
|
|
218
213
|
'a',
|
|
219
214
|
{ href: '/authors/${url.current}', className: 'text-muted' },
|
|
220
215
|
displayName,
|
|
221
|
-
length !== index + 1 &&
|
|
216
|
+
length !== index + 1 && React.createElement('br', null)
|
|
222
217
|
)
|
|
223
218
|
);
|
|
224
219
|
} else if (displayName) {
|
|
225
|
-
return
|
|
220
|
+
return React.createElement(
|
|
226
221
|
'div',
|
|
227
222
|
{ key: _id },
|
|
228
|
-
index === 0 &&
|
|
223
|
+
index === 0 && React.createElement(
|
|
229
224
|
'span',
|
|
230
225
|
{ className: 'pr-1' },
|
|
231
226
|
'By'
|
|
232
227
|
),
|
|
233
|
-
|
|
228
|
+
React.createElement(
|
|
234
229
|
'span',
|
|
235
230
|
{ className: 'text-muted' },
|
|
236
231
|
displayName,
|
|
237
|
-
length !== index + 1 &&
|
|
232
|
+
length !== index + 1 && React.createElement('br', null)
|
|
238
233
|
)
|
|
239
234
|
);
|
|
240
235
|
}
|
|
@@ -278,7 +273,7 @@ var DeckContent = function (_React$Component) {
|
|
|
278
273
|
articles = _this.state.data;
|
|
279
274
|
}
|
|
280
275
|
|
|
281
|
-
return
|
|
276
|
+
return React.createElement(
|
|
282
277
|
Row,
|
|
283
278
|
null,
|
|
284
279
|
articles && articles.map(function (row, index) {
|
|
@@ -290,51 +285,51 @@ var DeckContent = function (_React$Component) {
|
|
|
290
285
|
lgVar = 6;
|
|
291
286
|
}
|
|
292
287
|
if (row._type === 'BrandInsight' && row.adUnit) {
|
|
293
|
-
return
|
|
288
|
+
return React.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
294
289
|
} else {
|
|
295
290
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
296
291
|
var contentCategoryName = row.contentCategory && row.contentCategory.name && _this.mapping[row.contentCategory.name] ? row.contentCategory.name : 'Articles';
|
|
297
|
-
return
|
|
298
|
-
|
|
292
|
+
return React.createElement(
|
|
293
|
+
React.Fragment,
|
|
299
294
|
{ key: itemCounter },
|
|
300
|
-
|
|
295
|
+
React.createElement(
|
|
301
296
|
VisibilitySensor,
|
|
302
297
|
{
|
|
303
298
|
onChange: function onChange(isVisible) {
|
|
304
299
|
isVisible && _this.changePageNumber(pageNumber);
|
|
305
300
|
} },
|
|
306
|
-
|
|
301
|
+
React.createElement(
|
|
307
302
|
Col,
|
|
308
303
|
{ md: 12, lg: lgVar, counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
309
|
-
|
|
304
|
+
React.createElement(
|
|
310
305
|
Card,
|
|
311
306
|
{ className: 'content-card', style: { flexDirection: mode } },
|
|
312
|
-
(row.thumbnail && row.thumbnail.asset || _this.props.defaultImage) &&
|
|
307
|
+
(row.thumbnail && row.thumbnail.asset || _this.props.defaultImage) && React.createElement(
|
|
313
308
|
'a',
|
|
314
309
|
{ href: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
315
|
-
|
|
310
|
+
React.createElement(
|
|
316
311
|
LazyLoad,
|
|
317
312
|
{ height: _this.props.imageHeight },
|
|
318
|
-
|
|
313
|
+
React.createElement(Card.Img, {
|
|
319
314
|
variant: 'top',
|
|
320
315
|
src: _this.renderCardImage(row, page),
|
|
321
316
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
322
317
|
})
|
|
323
318
|
)
|
|
324
319
|
),
|
|
325
|
-
|
|
320
|
+
React.createElement(
|
|
326
321
|
Card.Body,
|
|
327
322
|
null,
|
|
328
|
-
|
|
323
|
+
React.createElement(
|
|
329
324
|
'a',
|
|
330
325
|
{ href: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
331
|
-
|
|
326
|
+
React.createElement(
|
|
332
327
|
Card.Title,
|
|
333
328
|
null,
|
|
334
329
|
row.title
|
|
335
330
|
)
|
|
336
331
|
),
|
|
337
|
-
_this.props.showPublished && row.published &&
|
|
332
|
+
_this.props.showPublished && row.published && React.createElement(
|
|
338
333
|
Card.Subtitle,
|
|
339
334
|
null,
|
|
340
335
|
moment(row.published).format('MMMM DD, YYYY')
|
|
@@ -342,7 +337,7 @@ var DeckContent = function (_React$Component) {
|
|
|
342
337
|
_this.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && row.authorMapping.map(function (authorDetail, index) {
|
|
343
338
|
return _this.renderAuthor(authorDetail, index, row.authorMapping.length);
|
|
344
339
|
}),
|
|
345
|
-
|
|
340
|
+
React.createElement(
|
|
346
341
|
Card.Text,
|
|
347
342
|
null,
|
|
348
343
|
clean_html_1(row.summary)
|
|
@@ -360,7 +355,7 @@ var DeckContent = function (_React$Component) {
|
|
|
360
355
|
var rightItems = _this.props.rightItems;
|
|
361
356
|
|
|
362
357
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
363
|
-
return
|
|
358
|
+
return React.createElement(
|
|
364
359
|
Col,
|
|
365
360
|
{ md: 12, style: { display: 'flex', flex: '1 0 auto' } },
|
|
366
361
|
rightItems[i].component
|
|
@@ -368,15 +363,15 @@ var DeckContent = function (_React$Component) {
|
|
|
368
363
|
}, _this.renderManualPagination = function () {
|
|
369
364
|
var currentPage = _this.state.currentPage;
|
|
370
365
|
|
|
371
|
-
return
|
|
366
|
+
return React.createElement(
|
|
372
367
|
'div',
|
|
373
368
|
{ className: 'd-flex justify-content-between' },
|
|
374
|
-
currentPage && currentPage > 1 &&
|
|
369
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
375
370
|
'a',
|
|
376
371
|
{ href: '?page=' + (currentPage - 1) },
|
|
377
372
|
'<< Previous'
|
|
378
373
|
),
|
|
379
|
-
|
|
374
|
+
React.createElement(
|
|
380
375
|
'a',
|
|
381
376
|
{ href: '?page=' + (currentPage + 1) },
|
|
382
377
|
'Next >>'
|
|
@@ -422,38 +417,38 @@ var DeckContent = function (_React$Component) {
|
|
|
422
417
|
brandInsight = _props.brandInsight;
|
|
423
418
|
|
|
424
419
|
|
|
425
|
-
return
|
|
420
|
+
return React.createElement(
|
|
426
421
|
'div',
|
|
427
422
|
{ className: 'contentDeck' },
|
|
428
|
-
autoScroll ?
|
|
429
|
-
|
|
423
|
+
autoScroll ? React.createElement(
|
|
424
|
+
React.Fragment,
|
|
430
425
|
null,
|
|
431
|
-
|
|
426
|
+
React.createElement(
|
|
432
427
|
InfiniteScroll,
|
|
433
428
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.9 },
|
|
434
|
-
|
|
429
|
+
React.createElement(
|
|
435
430
|
Container,
|
|
436
431
|
null,
|
|
437
432
|
this.cardLoader(page, columns, variant, showBI, brandInsight)
|
|
438
433
|
)
|
|
439
434
|
),
|
|
440
|
-
|
|
435
|
+
React.createElement(
|
|
441
436
|
'noscript',
|
|
442
437
|
null,
|
|
443
438
|
this.renderManualPagination()
|
|
444
439
|
)
|
|
445
|
-
) :
|
|
446
|
-
|
|
440
|
+
) : React.createElement(
|
|
441
|
+
React.Fragment,
|
|
447
442
|
null,
|
|
448
|
-
|
|
443
|
+
React.createElement(
|
|
449
444
|
Container,
|
|
450
445
|
null,
|
|
451
446
|
this.cardLoader(page, columns, variant, showBI, brandInsight)
|
|
452
447
|
),
|
|
453
|
-
|
|
448
|
+
React.createElement(
|
|
454
449
|
'div',
|
|
455
450
|
{ style: { padding: '0px 10px' } },
|
|
456
|
-
this.state.scrolling ?
|
|
451
|
+
this.state.scrolling ? React.createElement(
|
|
457
452
|
'button',
|
|
458
453
|
{
|
|
459
454
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -461,17 +456,17 @@ var DeckContent = function (_React$Component) {
|
|
|
461
456
|
_this2.loadMore();
|
|
462
457
|
} },
|
|
463
458
|
'Load More'
|
|
464
|
-
) :
|
|
459
|
+
) : React.createElement(
|
|
465
460
|
'p',
|
|
466
461
|
{ style: { textAlign: 'center' } },
|
|
467
|
-
|
|
462
|
+
React.createElement(
|
|
468
463
|
'b',
|
|
469
464
|
null,
|
|
470
465
|
'End of data'
|
|
471
466
|
)
|
|
472
467
|
)
|
|
473
468
|
),
|
|
474
|
-
|
|
469
|
+
React.createElement(
|
|
475
470
|
'noscript',
|
|
476
471
|
null,
|
|
477
472
|
this.renderManualPagination()
|
|
@@ -482,7 +477,7 @@ var DeckContent = function (_React$Component) {
|
|
|
482
477
|
}]);
|
|
483
478
|
|
|
484
479
|
return DeckContent;
|
|
485
|
-
}(
|
|
480
|
+
}(React.Component);
|
|
486
481
|
|
|
487
482
|
var ContentCard = withRouter(DeckContent);
|
|
488
483
|
|