@mjhls/mjh-framework 1.0.782-beta.0 → 1.0.782-dev4485
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 +10 -9
- package/dist/cjs/AD300x250.js +12 -10
- package/dist/cjs/AD300x250x600.js +12 -10
- package/dist/cjs/AD728x90.js +13 -11
- package/dist/cjs/ADFloatingFooter.js +14 -12
- package/dist/cjs/ADFooter.js +9 -8
- package/dist/cjs/ADGutter.js +14 -12
- package/dist/cjs/{ADInfeed-5b042ade.js → ADInfeed-de972407.js} +11 -9
- package/dist/cjs/ADSkyscraper.js +14 -12
- package/dist/cjs/ADSponsoredResources.js +14 -12
- package/dist/cjs/ADWebcast.js +14 -12
- package/dist/cjs/ADWelcome.js +18 -16
- package/dist/cjs/{ADlgInfeed-e92b6f9f.js → ADlgInfeed-6ab92047.js} +7 -6
- package/dist/cjs/AccordionPanel.js +24 -22
- package/dist/cjs/AdSlot.js +16 -14
- package/dist/cjs/AdSlotsProvider.js +10 -8
- package/dist/cjs/AlphabeticList.js +16 -15
- package/dist/cjs/ArticleCarousel.js +11 -10
- package/dist/cjs/ArticleProgramLandingPage.js +26 -24
- package/dist/cjs/ArticleSeriesLandingPage.js +22 -20
- package/dist/cjs/ArticleSeriesListing.js +40 -39
- package/dist/cjs/Auth.js +194 -140
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-ac8972ce.js} +13 -12
- package/dist/cjs/Beam.js +2 -1
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-8b494587.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +23 -21
- package/dist/cjs/CMEDeck.js +66 -65
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +24 -20
- package/dist/cjs/Column3.js +37 -33
- package/dist/cjs/ConferenceArticleCard.js +35 -34
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +87 -82
- package/dist/cjs/DeckQueue.js +73 -69
- package/dist/cjs/{Dfp-b807d8fa.js → Dfp-c226037e.js} +21 -20
- package/dist/cjs/EventsDeck.js +140 -133
- package/dist/cjs/ExternalResources.js +49 -47
- package/dist/cjs/Feature.js +26 -24
- package/dist/cjs/ForbesHero.js +34 -33
- package/dist/cjs/GridContent.js +155 -150
- package/dist/cjs/GridHero.js +35 -34
- package/dist/cjs/GroupDeck.js +49 -48
- package/dist/cjs/HamMagazine.js +131 -125
- package/dist/cjs/Header.js +13 -11
- package/dist/cjs/Hero.js +11 -10
- package/dist/cjs/HighlightenVideo.js +17 -16
- package/dist/cjs/HorizontalArticleListing.js +39 -37
- package/dist/cjs/HorizontalHero.js +25 -24
- package/dist/cjs/IssueContentDeck.js +70 -65
- package/dist/cjs/IssueDeck.js +65 -60
- package/dist/cjs/IssueLanding.js +50 -48
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +24 -21
- package/dist/cjs/MasterDeck.js +60 -58
- package/dist/cjs/MediaSeriesLanding.js +27 -24
- package/dist/cjs/NavDvm.js +70 -64
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +133 -127
- package/dist/cjs/NavNative.js +127 -118
- package/dist/cjs/NavNormal.js +43 -37
- package/dist/cjs/OncliveHero.js +18 -18
- package/dist/cjs/OncliveLargeHero.js +59 -58
- package/dist/cjs/PageFilter.js +9 -8
- package/dist/cjs/PartnerDetailListing.js +73 -71
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +15 -13
- package/dist/cjs/PubSection.js +22 -20
- package/dist/cjs/PubToc.js +10 -8
- package/dist/cjs/PublicationDeck.js +64 -59
- package/dist/cjs/PublicationLanding.js +129 -213
- package/dist/cjs/QueueDeckExpanded.js +272 -271
- package/dist/cjs/RecentNews.js +23 -22
- package/dist/cjs/RelatedContent.js +50 -49
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +16 -12
- package/dist/cjs/Segment.js +2 -1
- package/dist/cjs/SeriesListingDeck.js +26 -26
- package/dist/cjs/{SeriesSlider-f662f1f5.js → SeriesSlider-5e6108e0.js} +40 -39
- package/dist/cjs/SideFooter.js +28 -26
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-8dd468fd.js → SocialSearchComponent-fb784cc3.js} +38 -34
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +59 -54
- package/dist/cjs/TaxonomyDescription.js +24 -22
- package/dist/cjs/TemplateNormal.js +38 -36
- package/dist/cjs/ThumbnailCard.js +19 -17
- package/dist/cjs/Ustream.js +21 -20
- package/dist/cjs/VerticalHero.js +17 -16
- package/dist/cjs/VideoProgramLandingPage.js +46 -41
- package/dist/cjs/VideoSeriesCard.js +25 -24
- package/dist/cjs/VideoSeriesFilter.js +11 -10
- package/dist/cjs/VideoSeriesLandingPage.js +27 -25
- package/dist/cjs/VideoSeriesListing.js +57 -56
- package/dist/cjs/View.js +222 -223
- package/dist/cjs/YahooHero.js +30 -29
- package/dist/cjs/YoutubeGroup.js +56 -55
- package/dist/cjs/_set-species-f92c67c5.js +57 -0
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-533d476a.js} +6 -54
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-4ba0d3d5.js} +6 -5
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +133 -68
- package/dist/cjs/getRootDocGroup.js +2 -1
- package/dist/cjs/getSerializers.js +13 -12
- package/dist/cjs/{getTargeting-9af0ef69.js → getTargeting-7c425fbf.js} +11 -11
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-76417d82.js → index-2410ec98.js} +859 -836
- package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
- package/dist/cjs/{index-da796b8c.js → index-8a3fb0bc.js} +12 -10
- package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
- package/dist/cjs/{index-8bf6c863.js → index-e08f00ce.js} +9 -8
- package/dist/cjs/{index.es-9110add6.js → index.es-13533f24.js} +11 -8
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
- package/dist/cjs/{index.esm-4d410430.js → index.esm-3ffa049c.js} +20 -20
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +61 -57
- package/dist/cjs/{inherits-c9f99d47.js → inherits-87492b40.js} +1 -1
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/{main-02daeefe.js → main-11ec04d2.js} +85 -53
- package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-07939b41.js} +12 -11
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{typeof-725500bc.js → typeof-9d7f610f.js} +1 -1
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +9 -8
- package/dist/esm/AD300x250x600.js +9 -8
- package/dist/esm/AD728x90.js +10 -9
- package/dist/esm/ADFloatingFooter.js +11 -10
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +11 -10
- package/dist/esm/{ADInfeed-eb7bdd41.js → ADInfeed-1cba8312.js} +5 -5
- package/dist/esm/ADSkyscraper.js +11 -10
- package/dist/esm/ADSponsoredResources.js +11 -10
- package/dist/esm/ADWebcast.js +11 -10
- package/dist/esm/ADWelcome.js +15 -14
- package/dist/esm/{ADlgInfeed-f2ac31d1.js → ADlgInfeed-fe7ad144.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +7 -6
- package/dist/esm/AdSlotsProvider.js +7 -6
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +8 -8
- package/dist/esm/ArticleProgramLandingPage.js +22 -21
- package/dist/esm/ArticleSeriesLandingPage.js +19 -18
- package/dist/esm/ArticleSeriesListing.js +34 -34
- package/dist/esm/Auth.js +171 -121
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-8ffd4679.js} +10 -10
- package/dist/esm/Beam.js +2 -1
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-d05b5b23.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +63 -62
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +14 -13
- package/dist/esm/Column3.js +26 -25
- package/dist/esm/ConferenceArticleCard.js +30 -30
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +64 -63
- package/dist/esm/DeckQueue.js +47 -47
- package/dist/esm/{Dfp-ebc4b22f.js → Dfp-c06b41fc.js} +10 -10
- package/dist/esm/EventsDeck.js +83 -83
- package/dist/esm/ExternalResources.js +41 -40
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +113 -112
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +98 -97
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +36 -35
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +41 -41
- package/dist/esm/IssueDeck.js +34 -34
- package/dist/esm/IssueLanding.js +47 -46
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +18 -17
- package/dist/esm/MasterDeck.js +53 -52
- package/dist/esm/MediaSeriesLanding.js +17 -16
- package/dist/esm/NavDvm.js +45 -44
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +102 -101
- package/dist/esm/NavNative.js +89 -88
- package/dist/esm/NavNormal.js +23 -22
- package/dist/esm/OncliveHero.js +14 -15
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +68 -67
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +19 -18
- package/dist/esm/PubToc.js +7 -6
- package/dist/esm/PublicationDeck.js +35 -35
- package/dist/esm/PublicationLanding.js +88 -176
- package/dist/esm/QueueDeckExpanded.js +253 -252
- package/dist/esm/RecentNews.js +19 -19
- package/dist/esm/RelatedContent.js +45 -45
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +5 -5
- package/dist/esm/Segment.js +2 -1
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-9245785f.js → SeriesSlider-19a24623.js} +29 -29
- package/dist/esm/SideFooter.js +23 -22
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-a2ae84d1.js → SocialSearchComponent-2a4a7398.js} +25 -25
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +36 -36
- package/dist/esm/TaxonomyDescription.js +18 -17
- package/dist/esm/TemplateNormal.js +31 -30
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +29 -28
- package/dist/esm/VideoSeriesCard.js +18 -18
- package/dist/esm/VideoSeriesFilter.js +8 -7
- package/dist/esm/VideoSeriesLandingPage.js +19 -18
- package/dist/esm/VideoSeriesListing.js +50 -50
- package/dist/esm/View.js +198 -203
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +39 -39
- package/dist/esm/_set-species-3f8319f5.js +52 -0
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-502f13b4.js} +5 -49
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-e1c6b0f2.js} +3 -3
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +128 -63
- package/dist/esm/getRootDocGroup.js +2 -1
- package/dist/esm/getSerializers.js +13 -12
- package/dist/esm/{getTargeting-7211f12c.js → getTargeting-f22b76f5.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
- package/dist/esm/{index-a9e53f80.js → index-acfb8079.js} +3 -3
- package/dist/esm/{index-5f9f807a.js → index-c5fd0af5.js} +4 -4
- package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
- package/dist/esm/{index-c1374f98.js → index-f41e3fe9.js} +790 -774
- package/dist/esm/{index.es-29c1cef5.js → index.es-7dda2f0a.js} +8 -6
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-fd746768.js → index.esm-8ee5ff72.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
- package/dist/esm/index.js +45 -44
- package/dist/esm/{inherits-fb9b6e8f.js → inherits-0d8cda6e.js} +1 -1
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/{main-e4a934b2.js → main-aef58dbc.js} +81 -50
- package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-3822f1ce.js} +5 -5
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{typeof-6435ba1c.js → typeof-af9c50d8.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
- package/package.json +107 -107
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
package/dist/esm/Column3.js
CHANGED
|
@@ -8,28 +8,29 @@ import './_object-pie-33c40e79.js';
|
|
|
8
8
|
import './extends-eb69e8ac.js';
|
|
9
9
|
import './define-property-8af5f002.js';
|
|
10
10
|
import './web.dom.iterable-4439f05a.js';
|
|
11
|
-
import
|
|
12
|
-
import './index-
|
|
11
|
+
import React, { useRef, useEffect } from 'react';
|
|
12
|
+
import './index-acfb8079.js';
|
|
13
13
|
import 'prop-types';
|
|
14
14
|
import Row from 'react-bootstrap/Row';
|
|
15
15
|
import Col from 'react-bootstrap/Col';
|
|
16
16
|
import './isSymbol-1981418f.js';
|
|
17
17
|
import './debounce-9207d8ee.js';
|
|
18
18
|
import './toNumber-2f7a84cd.js';
|
|
19
|
-
import { m as
|
|
19
|
+
import { m as main_39 } from './main-aef58dbc.js';
|
|
20
20
|
import './slicedToArray-641f241f.js';
|
|
21
21
|
import './stringify-4330ccdc.js';
|
|
22
|
-
import './asyncToGenerator-
|
|
22
|
+
import './asyncToGenerator-502f13b4.js';
|
|
23
|
+
import './_set-species-3f8319f5.js';
|
|
23
24
|
import './Segment.js';
|
|
24
25
|
import './Beam.js';
|
|
25
26
|
import './AdSlot.js';
|
|
26
27
|
import './get-1e515072.js';
|
|
27
28
|
import './eq-b470f743.js';
|
|
28
|
-
import './react-social-icons-
|
|
29
|
+
import './react-social-icons-3822f1ce.js';
|
|
29
30
|
import 'react-bootstrap';
|
|
30
31
|
import './defineProperty-94fd8bfc.js';
|
|
31
32
|
import SideFooter from './SideFooter.js';
|
|
32
|
-
import { C as ConferenceBanner } from './ConferenceBanner-
|
|
33
|
+
import { C as ConferenceBanner } from './ConferenceBanner-9162d0ca.js';
|
|
33
34
|
import ADSponsoredResources from './ADSponsoredResources.js';
|
|
34
35
|
import 'react-bootstrap/ListGroup';
|
|
35
36
|
import './ADWebcast.js';
|
|
@@ -51,7 +52,7 @@ var Column3 = function Column3(props) {
|
|
|
51
52
|
var adRef = useRef(null);
|
|
52
53
|
|
|
53
54
|
useEffect(function () {
|
|
54
|
-
if (!
|
|
55
|
+
if (!main_39 && window.innerWidth >= 768) {
|
|
55
56
|
var navbar = document.querySelector('.navbar');
|
|
56
57
|
var AdOffsetTop = adRef.current.getBoundingClientRect().top;
|
|
57
58
|
window.addEventListener('scroll', function () {
|
|
@@ -70,62 +71,62 @@ var Column3 = function Column3(props) {
|
|
|
70
71
|
}
|
|
71
72
|
}, []);
|
|
72
73
|
|
|
73
|
-
return
|
|
74
|
+
return React.createElement(
|
|
74
75
|
'section',
|
|
75
76
|
null,
|
|
76
|
-
|
|
77
|
+
React.createElement(
|
|
77
78
|
Row,
|
|
78
79
|
{ className: 'justify-content-md-center' },
|
|
79
|
-
|
|
80
|
+
React.createElement(
|
|
80
81
|
Col,
|
|
81
82
|
{ md: true, className: 'leftCol', style: { width: '200px' } },
|
|
82
|
-
|
|
83
|
-
website && website.sponsoredAd &&
|
|
84
|
-
website && website.sideFooterContent && website.sideFooterContent.length && website.showFooterOnLeftSide &&
|
|
83
|
+
React.createElement(LeftNav, { leftItems: leftItems }),
|
|
84
|
+
website && website.sponsoredAd && React.createElement(ADSponsoredResources, { sponsoredAd: website.sponsoredAd }),
|
|
85
|
+
website && website.sideFooterContent && website.sideFooterContent.length && website.showFooterOnLeftSide && React.createElement(SideFooter, { website: website, cache: website.cache, logo: logo })
|
|
85
86
|
),
|
|
86
|
-
|
|
87
|
+
React.createElement(
|
|
87
88
|
Col,
|
|
88
89
|
{ md: true, className: 'middleCol', style: { maxWidth: '640px', marginTop: !title && '10px' } },
|
|
89
|
-
showFilter ?
|
|
90
|
+
showFilter ? React.createElement(
|
|
90
91
|
'div',
|
|
91
92
|
{ className: 'title-wrap' },
|
|
92
|
-
|
|
93
|
+
React.createElement(
|
|
93
94
|
'h1',
|
|
94
95
|
{ className: 'title' },
|
|
95
96
|
title
|
|
96
97
|
),
|
|
97
|
-
|
|
98
|
+
React.createElement(
|
|
98
99
|
'div',
|
|
99
100
|
{ className: 'filter-box' },
|
|
100
|
-
|
|
101
|
+
React.createElement(PageFilter, { getParams: getParams, filters: filters, defaultFilter: defaultFilter })
|
|
101
102
|
)
|
|
102
|
-
) : title &&
|
|
103
|
+
) : title && React.createElement(
|
|
103
104
|
'h1',
|
|
104
105
|
{ className: 'title' },
|
|
105
106
|
title
|
|
106
107
|
),
|
|
107
108
|
props.children
|
|
108
109
|
),
|
|
109
|
-
|
|
110
|
+
React.createElement(
|
|
110
111
|
'style',
|
|
111
112
|
{ jsx: 'true' },
|
|
112
113
|
'\n .filter-box {\n float: right;\n padding-top: 6px;\n padding-right: 18px;\n }\n @media only screen and (min-width: 768px) {\n .title-wrap {\n display: flex;\n justify-content: space-between;\n }\n }\n @media only screen and (max-width: 767px) {\n /* .filter-box {\n float: right;\n display: flex;\n justify-content: flex-end;\n } */\n .title-wrap {\n display: flex;\n flex-direction: column;\n margin-bottom: 10px;\n }\n }\n '
|
|
113
114
|
),
|
|
114
|
-
(!
|
|
115
|
+
(!main_39 || showRightAd) && React.createElement(
|
|
115
116
|
Col,
|
|
116
117
|
{ xs: 12, className: 'rightCol' },
|
|
117
|
-
website && website.conferenceBannerContent &&
|
|
118
|
-
|
|
118
|
+
website && website.conferenceBannerContent && React.createElement(ConferenceBanner, { website: website }),
|
|
119
|
+
React.createElement(
|
|
119
120
|
'div',
|
|
120
121
|
{ ref: adRef },
|
|
121
122
|
rightItems && rightItems.map(function (row, index) {
|
|
122
|
-
return
|
|
123
|
+
return React.createElement(
|
|
123
124
|
'div',
|
|
124
125
|
{ key: index },
|
|
125
126
|
row.component
|
|
126
127
|
);
|
|
127
128
|
}),
|
|
128
|
-
website && website.sideFooterContent && website.sideFooterContent.length && !website.showFooterOnLeftSide &&
|
|
129
|
+
website && website.sideFooterContent && website.sideFooterContent.length && !website.showFooterOnLeftSide && React.createElement(SideFooter, { website: website, cache: website.cache, logo: logo })
|
|
129
130
|
)
|
|
130
131
|
)
|
|
131
132
|
)
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import
|
|
3
|
-
import { m as moment } from './moment-
|
|
4
|
-
import { i as imageUrlBuilder } from './index-
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { m as moment } from './moment-12415288.js';
|
|
4
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
5
5
|
|
|
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)
|
|
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)
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -34,51 +34,51 @@ var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
// title, thumbnail, summary, published, documentGroup.identifier.current, documentGroup.identifier.name
|
|
37
|
-
return
|
|
37
|
+
return React.createElement(
|
|
38
38
|
'div',
|
|
39
39
|
{ className: 'conference-media' },
|
|
40
|
-
|
|
40
|
+
React.createElement(
|
|
41
41
|
'a',
|
|
42
42
|
{ className: 'img-wrapper', href: '/view/' + (data.url ? data.url.current : '') },
|
|
43
|
-
|
|
43
|
+
React.createElement('img', {
|
|
44
44
|
className: 'mr-3 img-fluid',
|
|
45
45
|
src: data.thumbnail && urlFor(data.thumbnail.asset).width(350).url(),
|
|
46
46
|
alt: data.title
|
|
47
47
|
})
|
|
48
48
|
),
|
|
49
|
-
|
|
49
|
+
React.createElement(
|
|
50
50
|
'div',
|
|
51
51
|
{ className: 'media-body' },
|
|
52
|
-
|
|
52
|
+
React.createElement(
|
|
53
53
|
'a',
|
|
54
54
|
{ href: '/view/' + (data.url ? data.url.current : '') },
|
|
55
|
-
|
|
55
|
+
React.createElement(
|
|
56
56
|
'h4',
|
|
57
57
|
{ className: 'conf-media__card-title' },
|
|
58
58
|
data.title
|
|
59
59
|
)
|
|
60
60
|
),
|
|
61
|
-
|
|
61
|
+
React.createElement(
|
|
62
62
|
'p',
|
|
63
63
|
{ className: 'conf-media__card-text' },
|
|
64
64
|
moment(data.published).format('MMMM Do YYYY, h:mma')
|
|
65
65
|
),
|
|
66
|
-
|
|
66
|
+
React.createElement(
|
|
67
67
|
'p',
|
|
68
68
|
{ className: 'mb-1 conference-group' },
|
|
69
|
-
data.documentGroup && data.documentGroup.identifier && (data.documentGroup.identifier.current.includes('/') ?
|
|
69
|
+
data.documentGroup && data.documentGroup.identifier && (data.documentGroup.identifier.current.includes('/') ? React.createElement(
|
|
70
70
|
'a',
|
|
71
71
|
{ href: '/' + data.documentGroup.identifier.current, alt: data.thumbnail && data.thumbnail.alt || data.title },
|
|
72
72
|
data.documentGroup.name
|
|
73
|
-
) :
|
|
73
|
+
) : React.createElement(
|
|
74
74
|
'a',
|
|
75
75
|
{ href: '/conference/' + data.documentGroup.identifier.current, alt: data.thumbnail && data.thumbnail.alt || data.title },
|
|
76
76
|
data.documentGroup.name
|
|
77
77
|
))
|
|
78
78
|
),
|
|
79
|
-
|
|
79
|
+
React.createElement('p', { className: 'pt-2 card-text', dangerouslySetInnerHTML: { __html: data.summary } })
|
|
80
80
|
),
|
|
81
|
-
|
|
81
|
+
React.createElement(
|
|
82
82
|
'style',
|
|
83
83
|
{ jsx: 'true' },
|
|
84
84
|
'\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
|
@@ -8,37 +8,38 @@ import './core.get-iterator-method-e1de7503.js';
|
|
|
8
8
|
import './_object-pie-33c40e79.js';
|
|
9
9
|
import { _ as _extends } from './extends-eb69e8ac.js';
|
|
10
10
|
import './_object-sap-964b6feb.js';
|
|
11
|
-
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-
|
|
11
|
+
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-0d8cda6e.js';
|
|
12
12
|
import './define-property-8af5f002.js';
|
|
13
13
|
import './web.dom.iterable-4439f05a.js';
|
|
14
|
-
import './typeof-
|
|
14
|
+
import './typeof-af9c50d8.js';
|
|
15
15
|
import './_is-array-58e95429.js';
|
|
16
|
-
import
|
|
17
|
-
import { l as lib_3 } from './index-
|
|
16
|
+
import React from 'react';
|
|
17
|
+
import { l as lib_3 } from './index-acfb8079.js';
|
|
18
18
|
import 'prop-types';
|
|
19
19
|
import Container from 'react-bootstrap/Container';
|
|
20
20
|
import Row from 'react-bootstrap/Row';
|
|
21
21
|
import Col from 'react-bootstrap/Col';
|
|
22
22
|
import Card from 'react-bootstrap/Card';
|
|
23
|
-
import { m as moment } from './moment-
|
|
23
|
+
import { m as moment } from './moment-12415288.js';
|
|
24
24
|
import { withRouter } from 'next/router';
|
|
25
25
|
import './isSymbol-1981418f.js';
|
|
26
26
|
import { d as debounce_1 } from './debounce-9207d8ee.js';
|
|
27
27
|
import './toNumber-2f7a84cd.js';
|
|
28
|
-
import { I as InfiniteScroll } from './index.es-
|
|
28
|
+
import { I as InfiniteScroll } from './index.es-7dda2f0a.js';
|
|
29
29
|
import 'react-dom';
|
|
30
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
31
|
-
import { i as imageUrlBuilder } from './index-
|
|
32
|
-
import { L as LazyLoad } from './index-
|
|
33
|
-
import { m as
|
|
30
|
+
import { V as VisibilitySensor } from './visibility-sensor-082c757b.js';
|
|
31
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
32
|
+
import { L as LazyLoad } from './index-c5fd0af5.js';
|
|
33
|
+
import { m as main_39 } from './main-aef58dbc.js';
|
|
34
34
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
35
35
|
import './slicedToArray-641f241f.js';
|
|
36
36
|
import './stringify-4330ccdc.js';
|
|
37
|
-
import './asyncToGenerator-
|
|
37
|
+
import './asyncToGenerator-502f13b4.js';
|
|
38
|
+
import './_set-species-3f8319f5.js';
|
|
38
39
|
import './Segment.js';
|
|
39
40
|
import './Beam.js';
|
|
40
41
|
import './AdSlot.js';
|
|
41
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
42
|
+
import { A as ADInfeed } from './ADInfeed-1cba8312.js';
|
|
42
43
|
|
|
43
44
|
var DeckContent = function (_React$Component) {
|
|
44
45
|
_inherits(DeckContent, _React$Component);
|
|
@@ -179,14 +180,14 @@ var DeckContent = function (_React$Component) {
|
|
|
179
180
|
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
180
181
|
|
|
181
182
|
// 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
|
|
183
|
+
/* console.log('page change reported', {
|
|
184
|
+
currentPage: currentPage,
|
|
185
|
+
pageNumber: pageNumber,
|
|
186
|
+
pathname: pathname,
|
|
187
|
+
path: path,
|
|
188
|
+
newPath: newPath,
|
|
189
|
+
firstPage: pageNumber === 1,
|
|
190
|
+
queryString: queryString
|
|
190
191
|
}) */
|
|
191
192
|
|
|
192
193
|
if (pageview) {
|
|
@@ -206,35 +207,35 @@ var DeckContent = function (_React$Component) {
|
|
|
206
207
|
url = authorDetail.url;
|
|
207
208
|
|
|
208
209
|
if (displayName && url && url.current) {
|
|
209
|
-
return
|
|
210
|
+
return React.createElement(
|
|
210
211
|
'div',
|
|
211
212
|
{ key: _id },
|
|
212
|
-
index === 0 &&
|
|
213
|
+
index === 0 && React.createElement(
|
|
213
214
|
'span',
|
|
214
215
|
{ className: 'pr-1' },
|
|
215
216
|
'By'
|
|
216
217
|
),
|
|
217
|
-
|
|
218
|
+
React.createElement(
|
|
218
219
|
'a',
|
|
219
220
|
{ href: '/authors/${url.current}', className: 'text-muted' },
|
|
220
221
|
displayName,
|
|
221
|
-
length !== index + 1 &&
|
|
222
|
+
length !== index + 1 && React.createElement('br', null)
|
|
222
223
|
)
|
|
223
224
|
);
|
|
224
225
|
} else if (displayName) {
|
|
225
|
-
return
|
|
226
|
+
return React.createElement(
|
|
226
227
|
'div',
|
|
227
228
|
{ key: _id },
|
|
228
|
-
index === 0 &&
|
|
229
|
+
index === 0 && React.createElement(
|
|
229
230
|
'span',
|
|
230
231
|
{ className: 'pr-1' },
|
|
231
232
|
'By'
|
|
232
233
|
),
|
|
233
|
-
|
|
234
|
+
React.createElement(
|
|
234
235
|
'span',
|
|
235
236
|
{ className: 'text-muted' },
|
|
236
237
|
displayName,
|
|
237
|
-
length !== index + 1 &&
|
|
238
|
+
length !== index + 1 && React.createElement('br', null)
|
|
238
239
|
)
|
|
239
240
|
);
|
|
240
241
|
}
|
|
@@ -278,7 +279,7 @@ var DeckContent = function (_React$Component) {
|
|
|
278
279
|
articles = _this.state.data;
|
|
279
280
|
}
|
|
280
281
|
|
|
281
|
-
return
|
|
282
|
+
return React.createElement(
|
|
282
283
|
Row,
|
|
283
284
|
null,
|
|
284
285
|
articles && articles.map(function (row, index) {
|
|
@@ -290,51 +291,51 @@ var DeckContent = function (_React$Component) {
|
|
|
290
291
|
lgVar = 6;
|
|
291
292
|
}
|
|
292
293
|
if (row._type === 'BrandInsight' && row.adUnit) {
|
|
293
|
-
return
|
|
294
|
+
return React.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
294
295
|
} else {
|
|
295
296
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
296
297
|
var contentCategoryName = row.contentCategory && row.contentCategory.name && _this.mapping[row.contentCategory.name] ? row.contentCategory.name : 'Articles';
|
|
297
|
-
return
|
|
298
|
-
|
|
298
|
+
return React.createElement(
|
|
299
|
+
React.Fragment,
|
|
299
300
|
{ key: itemCounter },
|
|
300
|
-
|
|
301
|
+
React.createElement(
|
|
301
302
|
VisibilitySensor,
|
|
302
303
|
{
|
|
303
304
|
onChange: function onChange(isVisible) {
|
|
304
305
|
isVisible && _this.changePageNumber(pageNumber);
|
|
305
306
|
} },
|
|
306
|
-
|
|
307
|
+
React.createElement(
|
|
307
308
|
Col,
|
|
308
309
|
{ md: 12, lg: lgVar, counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
309
|
-
|
|
310
|
+
React.createElement(
|
|
310
311
|
Card,
|
|
311
312
|
{ className: 'content-card', style: { flexDirection: mode } },
|
|
312
|
-
(row.thumbnail && row.thumbnail.asset || _this.props.defaultImage) &&
|
|
313
|
+
(row.thumbnail && row.thumbnail.asset || _this.props.defaultImage) && React.createElement(
|
|
313
314
|
'a',
|
|
314
315
|
{ href: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
315
|
-
|
|
316
|
+
React.createElement(
|
|
316
317
|
LazyLoad,
|
|
317
318
|
{ height: _this.props.imageHeight },
|
|
318
|
-
|
|
319
|
+
React.createElement(Card.Img, {
|
|
319
320
|
variant: 'top',
|
|
320
321
|
src: _this.renderCardImage(row, page),
|
|
321
322
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
322
323
|
})
|
|
323
324
|
)
|
|
324
325
|
),
|
|
325
|
-
|
|
326
|
+
React.createElement(
|
|
326
327
|
Card.Body,
|
|
327
328
|
null,
|
|
328
|
-
|
|
329
|
+
React.createElement(
|
|
329
330
|
'a',
|
|
330
331
|
{ href: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
331
|
-
|
|
332
|
+
React.createElement(
|
|
332
333
|
Card.Title,
|
|
333
334
|
null,
|
|
334
335
|
row.title
|
|
335
336
|
)
|
|
336
337
|
),
|
|
337
|
-
_this.props.showPublished && row.published &&
|
|
338
|
+
_this.props.showPublished && row.published && React.createElement(
|
|
338
339
|
Card.Subtitle,
|
|
339
340
|
null,
|
|
340
341
|
moment(row.published).format('MMMM DD, YYYY')
|
|
@@ -342,7 +343,7 @@ var DeckContent = function (_React$Component) {
|
|
|
342
343
|
_this.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && row.authorMapping.map(function (authorDetail, index) {
|
|
343
344
|
return _this.renderAuthor(authorDetail, index, row.authorMapping.length);
|
|
344
345
|
}),
|
|
345
|
-
|
|
346
|
+
React.createElement(
|
|
346
347
|
Card.Text,
|
|
347
348
|
null,
|
|
348
349
|
clean_html_1(row.summary)
|
|
@@ -351,7 +352,7 @@ var DeckContent = function (_React$Component) {
|
|
|
351
352
|
)
|
|
352
353
|
)
|
|
353
354
|
),
|
|
354
|
-
|
|
355
|
+
main_39 && _this.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
355
356
|
);
|
|
356
357
|
}
|
|
357
358
|
})
|
|
@@ -360,7 +361,7 @@ var DeckContent = function (_React$Component) {
|
|
|
360
361
|
var rightItems = _this.props.rightItems;
|
|
361
362
|
|
|
362
363
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
363
|
-
return
|
|
364
|
+
return React.createElement(
|
|
364
365
|
Col,
|
|
365
366
|
{ md: 12, style: { display: 'flex', flex: '1 0 auto' } },
|
|
366
367
|
rightItems[i].component
|
|
@@ -368,15 +369,15 @@ var DeckContent = function (_React$Component) {
|
|
|
368
369
|
}, _this.renderManualPagination = function () {
|
|
369
370
|
var currentPage = _this.state.currentPage;
|
|
370
371
|
|
|
371
|
-
return
|
|
372
|
+
return React.createElement(
|
|
372
373
|
'div',
|
|
373
374
|
{ className: 'd-flex justify-content-between' },
|
|
374
|
-
currentPage && currentPage > 1 &&
|
|
375
|
+
currentPage && currentPage > 1 && React.createElement(
|
|
375
376
|
'a',
|
|
376
377
|
{ href: '?page=' + (currentPage - 1) },
|
|
377
378
|
'<< Previous'
|
|
378
379
|
),
|
|
379
|
-
|
|
380
|
+
React.createElement(
|
|
380
381
|
'a',
|
|
381
382
|
{ href: '?page=' + (currentPage + 1) },
|
|
382
383
|
'Next >>'
|
|
@@ -422,38 +423,38 @@ var DeckContent = function (_React$Component) {
|
|
|
422
423
|
brandInsight = _props.brandInsight;
|
|
423
424
|
|
|
424
425
|
|
|
425
|
-
return
|
|
426
|
+
return React.createElement(
|
|
426
427
|
'div',
|
|
427
428
|
{ className: 'contentDeck' },
|
|
428
|
-
autoScroll ?
|
|
429
|
-
|
|
429
|
+
autoScroll ? React.createElement(
|
|
430
|
+
React.Fragment,
|
|
430
431
|
null,
|
|
431
|
-
|
|
432
|
+
React.createElement(
|
|
432
433
|
InfiniteScroll,
|
|
433
434
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.9 },
|
|
434
|
-
|
|
435
|
+
React.createElement(
|
|
435
436
|
Container,
|
|
436
437
|
null,
|
|
437
438
|
this.cardLoader(page, columns, variant, showBI, brandInsight)
|
|
438
439
|
)
|
|
439
440
|
),
|
|
440
|
-
|
|
441
|
+
React.createElement(
|
|
441
442
|
'noscript',
|
|
442
443
|
null,
|
|
443
444
|
this.renderManualPagination()
|
|
444
445
|
)
|
|
445
|
-
) :
|
|
446
|
-
|
|
446
|
+
) : React.createElement(
|
|
447
|
+
React.Fragment,
|
|
447
448
|
null,
|
|
448
|
-
|
|
449
|
+
React.createElement(
|
|
449
450
|
Container,
|
|
450
451
|
null,
|
|
451
452
|
this.cardLoader(page, columns, variant, showBI, brandInsight)
|
|
452
453
|
),
|
|
453
|
-
|
|
454
|
+
React.createElement(
|
|
454
455
|
'div',
|
|
455
456
|
{ style: { padding: '0px 10px' } },
|
|
456
|
-
this.state.scrolling ?
|
|
457
|
+
this.state.scrolling ? React.createElement(
|
|
457
458
|
'button',
|
|
458
459
|
{
|
|
459
460
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -461,17 +462,17 @@ var DeckContent = function (_React$Component) {
|
|
|
461
462
|
_this2.loadMore();
|
|
462
463
|
} },
|
|
463
464
|
'Load More'
|
|
464
|
-
) :
|
|
465
|
+
) : React.createElement(
|
|
465
466
|
'p',
|
|
466
467
|
{ style: { textAlign: 'center' } },
|
|
467
|
-
|
|
468
|
+
React.createElement(
|
|
468
469
|
'b',
|
|
469
470
|
null,
|
|
470
471
|
'End of data'
|
|
471
472
|
)
|
|
472
473
|
)
|
|
473
474
|
),
|
|
474
|
-
|
|
475
|
+
React.createElement(
|
|
475
476
|
'noscript',
|
|
476
477
|
null,
|
|
477
478
|
this.renderManualPagination()
|
|
@@ -482,7 +483,7 @@ var DeckContent = function (_React$Component) {
|
|
|
482
483
|
}]);
|
|
483
484
|
|
|
484
485
|
return DeckContent;
|
|
485
|
-
}(
|
|
486
|
+
}(React.Component);
|
|
486
487
|
|
|
487
488
|
var ContentCard = withRouter(DeckContent);
|
|
488
489
|
|