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