@mjhls/mjh-framework 1.0.588 → 1.0.589
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 +172 -172
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +7 -8
- package/dist/cjs/AD300x250x600.js +7 -8
- package/dist/cjs/AD728x90.js +10 -11
- package/dist/cjs/ADFloatingFooter.js +14 -15
- package/dist/cjs/ADFooter.js +8 -9
- package/dist/cjs/ADGutter.js +11 -12
- package/dist/cjs/{ADInfeed-fdbd80ea.js → ADInfeed-17a378db.js} +9 -11
- package/dist/cjs/ADSkyscraper.js +11 -12
- package/dist/cjs/ADSponsoredResources.js +10 -11
- package/dist/cjs/ADWebcast.js +10 -11
- package/dist/cjs/ADWelcome.js +15 -16
- package/dist/cjs/{ADlgInfeed-ecd2642c.js → ADlgInfeed-070d911c.js} +6 -7
- package/dist/cjs/AccordionPanel.js +22 -24
- package/dist/cjs/AdSlot.js +13 -15
- package/dist/cjs/AdSlotsProvider.js +5 -6
- package/dist/cjs/AlphabeticList.js +15 -16
- package/dist/cjs/ArticleQueue.js +112 -115
- package/dist/cjs/Auth.js +593 -430
- package/dist/cjs/{AuthorComponent-5bb8f868.js → AuthorComponent-cb8b8128.js} +12 -13
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-f942392e.js} +24 -26
- package/dist/cjs/Breadcrumbs.js +21 -23
- package/dist/cjs/CMEDeck.js +61 -61
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +19 -22
- package/dist/cjs/Column3.js +32 -35
- package/dist/cjs/ConferenceArticleCard.js +33 -34
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +81 -85
- package/dist/cjs/DeckQueue.js +69 -73
- package/dist/cjs/{Dfp-a06d722a.js → Dfp-fbe32b96.js} +20 -22
- package/dist/cjs/EventsDeck.js +106 -113
- package/dist/cjs/ExternalResources.js +41 -42
- package/dist/cjs/Feature.js +24 -26
- package/dist/cjs/ForbesHero.js +33 -34
- package/dist/cjs/GridContent.js +145 -149
- package/dist/cjs/GridHero.js +34 -35
- package/dist/cjs/GroupDeck.js +37 -38
- package/dist/cjs/HamMagazine.js +113 -118
- package/dist/cjs/Header.js +11 -13
- package/dist/cjs/Hero.js +10 -11
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalHero.js +24 -25
- package/dist/cjs/{InscreenSensor-1f9f7db4.js → InscreenSensor-3aec8492.js} +7 -8
- package/dist/cjs/IssueContentDeck.js +64 -69
- package/dist/cjs/IssueDeck.js +59 -64
- package/dist/cjs/IssueLanding.js +46 -47
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +20 -22
- package/dist/cjs/MasterDeck.js +59 -60
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +147 -155
- package/dist/cjs/NavNative.js +103 -111
- package/dist/cjs/NavNormal.js +36 -41
- package/dist/cjs/OncliveHero.js +18 -18
- package/dist/cjs/OncliveLargeHero.js +58 -59
- package/dist/cjs/PageFilter.js +8 -9
- package/dist/cjs/PartnerDetailListing.js +69 -1267
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PublicationDeck.js +58 -63
- package/dist/cjs/PublicationLanding.js +81 -85
- package/dist/cjs/QueueDeckExpanded.js +217 -217
- package/dist/cjs/RelatedContent.js +46 -47
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +12 -16
- package/dist/cjs/SideFooter.js +23 -24
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialNavFooter-d9ab4d17.js → SocialNavFooter-9a07520f.js} +17 -18
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +54 -59
- package/dist/cjs/TemplateNormal.js +35 -36
- package/dist/cjs/ThumbnailCard.js +17 -19
- package/dist/cjs/Ustream.js +20 -21
- package/dist/cjs/VerticalHero.js +16 -17
- package/dist/cjs/VideoSeriesFilter.js +10 -10
- package/dist/cjs/VideoSeriesListing.js +37 -38
- package/dist/cjs/View.js +161 -166
- package/dist/cjs/YahooHero.js +29 -30
- package/dist/cjs/YoutubeGroup.js +45 -46
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +6 -355
- package/dist/cjs/getSerializers.js +271 -270
- package/dist/cjs/{getTargeting-86e68d62.js → getTargeting-b15993cb.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-99edf08a.js → index-5be2866f.js} +1 -1
- package/dist/cjs/{index-44481153.js → index-f7ee1612.js} +8 -10
- package/dist/cjs/{index-8a3fb0bc.js → index-fa0fb52c.js} +10 -13
- package/dist/cjs/{index.es-f3e47207.js → index.es-ab3f2690.js} +11 -28
- package/dist/cjs/{index.esm-d02b6c3d.js → index.esm-0e5c6a9e.js} +3 -2
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
- package/dist/cjs/{index.esm-55da9104.js → index.esm-89fabc47.js} +6 -3
- package/dist/cjs/{index.esm-99553d28.js → index.esm-fbd1f7e9.js} +15 -6
- package/dist/cjs/index.js +33 -32
- package/dist/cjs/{inherits-4a2f1cc3.js → inherits-14962339.js} +4 -4
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-c50facd7.js → main-bc4db521.js} +43 -48
- package/dist/cjs/{moment-ca3bd9fb.js → moment-66a6a284.js} +8 -10
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-cd0d9d3b.js} +11 -13
- package/dist/cjs/{typeof-583cdc4b.js → typeof-1869832c.js} +1 -1
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +5 -5
- package/dist/esm/AD300x250x600.js +5 -5
- package/dist/esm/AD728x90.js +8 -8
- package/dist/esm/ADFloatingFooter.js +12 -12
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-ed104a2b.js → ADInfeed-c7dba95f.js} +5 -5
- package/dist/esm/ADSkyscraper.js +9 -9
- package/dist/esm/ADSponsoredResources.js +8 -8
- package/dist/esm/ADWebcast.js +8 -8
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-dfde985e.js → ADlgInfeed-8bfd6d58.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +3 -3
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleQueue.js +97 -97
- package/dist/esm/Auth.js +578 -411
- package/dist/esm/{AuthorComponent-f67cb027.js → AuthorComponent-158226c9.js} +10 -10
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-a614acdf.js} +3 -3
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +58 -58
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +24 -24
- package/dist/esm/ConferenceArticleCard.js +28 -28
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +61 -61
- package/dist/esm/DeckQueue.js +46 -46
- package/dist/esm/{Dfp-0557840a.js → Dfp-ae9336e2.js} +10 -10
- package/dist/esm/EventsDeck.js +64 -64
- package/dist/esm/ExternalResources.js +35 -35
- package/dist/esm/Feature.js +16 -16
- package/dist/esm/ForbesHero.js +27 -27
- package/dist/esm/GridContent.js +106 -106
- package/dist/esm/GridHero.js +28 -28
- package/dist/esm/GroupDeck.js +33 -33
- package/dist/esm/HamMagazine.js +86 -86
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +6 -6
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalHero.js +20 -20
- package/dist/esm/{InscreenSensor-3e1fe82a.js → InscreenSensor-280b2b10.js} +5 -5
- package/dist/esm/IssueContentDeck.js +40 -40
- package/dist/esm/IssueDeck.js +33 -33
- package/dist/esm/IssueLanding.js +44 -44
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +53 -53
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +114 -114
- package/dist/esm/NavNative.js +78 -78
- package/dist/esm/NavNormal.js +21 -21
- package/dist/esm/OncliveHero.js +14 -13
- package/dist/esm/OncliveLargeHero.js +51 -51
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +65 -1261
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PublicationDeck.js +34 -34
- package/dist/esm/PublicationLanding.js +61 -61
- package/dist/esm/QueueDeckExpanded.js +197 -197
- package/dist/esm/RelatedContent.js +42 -42
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +5 -5
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialNavFooter-1a531144.js → SocialNavFooter-4fb16720.js} +15 -15
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +35 -35
- package/dist/esm/TemplateNormal.js +29 -29
- package/dist/esm/ThumbnailCard.js +9 -9
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +12 -12
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesListing.js +32 -32
- package/dist/esm/View.js +140 -140
- package/dist/esm/YahooHero.js +24 -24
- package/dist/esm/YoutubeGroup.js +36 -36
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +6 -355
- package/dist/esm/getSerializers.js +228 -221
- package/dist/esm/{getTargeting-1f2c61e3.js → getTargeting-1a0bd08d.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-c5fd0af5.js → index-5f9f807a.js} +4 -4
- package/dist/esm/{index-1819118a.js → index-93ec3c59.js} +3 -3
- package/dist/esm/{index-fa2ffe86.js → index-d2f90501.js} +1 -1
- package/dist/esm/{index.es-c6222053.js → index.es-938a3a58.js} +9 -25
- package/dist/esm/{index.esm-cc28490f.js → index.esm-16536e81.js} +3 -2
- package/dist/esm/{index.esm-116f3274.js → index.esm-4b1d94b7.js} +15 -6
- package/dist/esm/{index.esm-16e9450c.js → index.esm-9a4c8813.js} +6 -3
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
- package/dist/esm/index.js +28 -27
- package/dist/esm/{inherits-2758cc14.js → inherits-b8e4c697.js} +1 -1
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-b722e2e2.js → main-7255814e.js} +44 -48
- package/dist/esm/{moment-b6f49411.js → moment-12415288.js} +8 -10
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/{typeof-7e72fee0.js → typeof-5f046efd.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
- package/package.json +107 -107
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/esm/index-db3bb315.js +0 -207
package/dist/esm/Column3.js
CHANGED
|
@@ -4,14 +4,14 @@ import './core.get-iterator-method-f5c0d66a.js';
|
|
|
4
4
|
import './_library-528f1934.js';
|
|
5
5
|
import './_iter-detect-6e099a34.js';
|
|
6
6
|
import './web.dom.iterable-46c95e52.js';
|
|
7
|
-
import
|
|
8
|
-
import './index-
|
|
7
|
+
import React__default, { useRef, useEffect } from 'react';
|
|
8
|
+
import './index-93ec3c59.js';
|
|
9
9
|
import 'prop-types';
|
|
10
10
|
import Row from 'react-bootstrap/Row';
|
|
11
11
|
import Col from 'react-bootstrap/Col';
|
|
12
12
|
import './isSymbol-b7b7434f.js';
|
|
13
13
|
import './debounce-048d9cb6.js';
|
|
14
|
-
import { m as
|
|
14
|
+
import { m as main_39 } from './main-7255814e.js';
|
|
15
15
|
import './slicedToArray-f1e40361.js';
|
|
16
16
|
import './stringify-e30bc114.js';
|
|
17
17
|
import './asyncToGenerator-0379e924.js';
|
|
@@ -20,10 +20,10 @@ import './beam-a25bd8fd.js';
|
|
|
20
20
|
import './AdSlot.js';
|
|
21
21
|
import './_arrayMap-64cbe0e4.js';
|
|
22
22
|
import './get-0eb56363.js';
|
|
23
|
-
import './react-social-icons-
|
|
23
|
+
import './react-social-icons-a7d5c5c7.js';
|
|
24
24
|
import 'react-bootstrap';
|
|
25
25
|
import SideFooter from './SideFooter.js';
|
|
26
|
-
import { C as ConferenceBanner } from './ConferenceBanner-
|
|
26
|
+
import { C as ConferenceBanner } from './ConferenceBanner-8792ebd2.js';
|
|
27
27
|
import ADSponsoredResources from './ADSponsoredResources.js';
|
|
28
28
|
import 'react-bootstrap/ListGroup';
|
|
29
29
|
import './ADWebcast.js';
|
|
@@ -45,7 +45,7 @@ var Column3 = function Column3(props) {
|
|
|
45
45
|
var adRef = useRef(null);
|
|
46
46
|
|
|
47
47
|
useEffect(function () {
|
|
48
|
-
if (!
|
|
48
|
+
if (!main_39 && window.innerWidth >= 768) {
|
|
49
49
|
var navbar = document.querySelector('.navbar');
|
|
50
50
|
var AdOffsetTop = adRef.current.getBoundingClientRect().top;
|
|
51
51
|
window.addEventListener('scroll', function () {
|
|
@@ -64,62 +64,62 @@ var Column3 = function Column3(props) {
|
|
|
64
64
|
}
|
|
65
65
|
}, []);
|
|
66
66
|
|
|
67
|
-
return
|
|
67
|
+
return React__default.createElement(
|
|
68
68
|
'section',
|
|
69
69
|
null,
|
|
70
|
-
|
|
70
|
+
React__default.createElement(
|
|
71
71
|
Row,
|
|
72
72
|
{ className: 'justify-content-md-center' },
|
|
73
|
-
|
|
73
|
+
React__default.createElement(
|
|
74
74
|
Col,
|
|
75
75
|
{ md: true, className: 'leftCol', style: { width: '200px' } },
|
|
76
|
-
|
|
77
|
-
website && website.sponsoredAd &&
|
|
78
|
-
website && website.sideFooterContent && website.sideFooterContent.length && website.showFooterOnLeftSide &&
|
|
76
|
+
React__default.createElement(LeftNav, { leftItems: leftItems }),
|
|
77
|
+
website && website.sponsoredAd && React__default.createElement(ADSponsoredResources, { sponsoredAd: website.sponsoredAd }),
|
|
78
|
+
website && website.sideFooterContent && website.sideFooterContent.length && website.showFooterOnLeftSide && React__default.createElement(SideFooter, { website: website, cache: website.cache, logo: logo })
|
|
79
79
|
),
|
|
80
|
-
|
|
80
|
+
React__default.createElement(
|
|
81
81
|
Col,
|
|
82
82
|
{ md: true, className: 'middleCol', style: { maxWidth: '640px', marginTop: !title && '10px' } },
|
|
83
|
-
showFilter ?
|
|
83
|
+
showFilter ? React__default.createElement(
|
|
84
84
|
'div',
|
|
85
85
|
{ className: 'title-wrap' },
|
|
86
|
-
|
|
86
|
+
React__default.createElement(
|
|
87
87
|
'h1',
|
|
88
88
|
{ className: 'title' },
|
|
89
89
|
title
|
|
90
90
|
),
|
|
91
|
-
|
|
91
|
+
React__default.createElement(
|
|
92
92
|
'div',
|
|
93
93
|
{ className: 'filter-box' },
|
|
94
|
-
|
|
94
|
+
React__default.createElement(PageFilter, { getParams: getParams, filters: filters, defaultFilter: defaultFilter })
|
|
95
95
|
)
|
|
96
|
-
) : title &&
|
|
96
|
+
) : title && React__default.createElement(
|
|
97
97
|
'h1',
|
|
98
98
|
{ className: 'title' },
|
|
99
99
|
title
|
|
100
100
|
),
|
|
101
101
|
props.children
|
|
102
102
|
),
|
|
103
|
-
|
|
103
|
+
React__default.createElement(
|
|
104
104
|
'style',
|
|
105
105
|
{ jsx: 'true' },
|
|
106
106
|
'\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 '
|
|
107
107
|
),
|
|
108
|
-
(!
|
|
108
|
+
(!main_39 || showRightAd) && React__default.createElement(
|
|
109
109
|
Col,
|
|
110
110
|
{ xs: 12, className: 'rightCol' },
|
|
111
|
-
website && website.conferenceBannerContent &&
|
|
112
|
-
|
|
111
|
+
website && website.conferenceBannerContent && React__default.createElement(ConferenceBanner, { website: website }),
|
|
112
|
+
React__default.createElement(
|
|
113
113
|
'div',
|
|
114
114
|
{ ref: adRef },
|
|
115
115
|
rightItems && rightItems.map(function (row, index) {
|
|
116
|
-
return
|
|
116
|
+
return React__default.createElement(
|
|
117
117
|
'div',
|
|
118
118
|
{ key: index },
|
|
119
119
|
row.component
|
|
120
120
|
);
|
|
121
121
|
}),
|
|
122
|
-
website && website.sideFooterContent && website.sideFooterContent.length && !website.showFooterOnLeftSide &&
|
|
122
|
+
website && website.sideFooterContent && website.sideFooterContent.length && !website.showFooterOnLeftSide && React__default.createElement(SideFooter, { website: website, cache: website.cache, logo: logo })
|
|
123
123
|
)
|
|
124
124
|
)
|
|
125
125
|
)
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import
|
|
3
|
-
import { m as moment } from './moment-
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { m as moment } from './moment-12415288.js';
|
|
4
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,47 +34,47 @@ 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__default.createElement(
|
|
38
38
|
'div',
|
|
39
39
|
{ className: 'conference-media' },
|
|
40
|
-
|
|
40
|
+
React__default.createElement(
|
|
41
41
|
'a',
|
|
42
42
|
{ className: 'img-wrapper', href: '/view/' + (data.url ? data.url.current : '') },
|
|
43
|
-
|
|
43
|
+
React__default.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__default.createElement(
|
|
50
50
|
'div',
|
|
51
51
|
{ className: 'media-body' },
|
|
52
|
-
|
|
52
|
+
React__default.createElement(
|
|
53
53
|
'a',
|
|
54
54
|
{ href: '/view/' + (data.url ? data.url.current : '') },
|
|
55
|
-
|
|
55
|
+
React__default.createElement(
|
|
56
56
|
'h4',
|
|
57
57
|
{ className: 'conf-media__card-title' },
|
|
58
58
|
data.title
|
|
59
59
|
)
|
|
60
60
|
),
|
|
61
|
-
|
|
61
|
+
React__default.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__default.createElement(
|
|
67
67
|
'p',
|
|
68
68
|
{ className: 'mb-1 conference-group' },
|
|
69
|
-
data.documentGroup && data.documentGroup.identifier &&
|
|
69
|
+
data.documentGroup && data.documentGroup.identifier && React__default.createElement(
|
|
70
70
|
'a',
|
|
71
71
|
{ href: '/conference/' + data.documentGroup.identifier.current, alt: data.thumbnail && data.thumbnail.alt || data.title },
|
|
72
72
|
data.documentGroup.name
|
|
73
73
|
)
|
|
74
74
|
),
|
|
75
|
-
|
|
75
|
+
React__default.createElement('p', { className: 'pt-2 card-text', dangerouslySetInnerHTML: { __html: data.summary } })
|
|
76
76
|
),
|
|
77
|
-
|
|
77
|
+
React__default.createElement(
|
|
78
78
|
'style',
|
|
79
79
|
{ jsx: 'true' },
|
|
80
80
|
'\n .conference-media {\n display: flex;\n flex-direction: row;\n margin-bottom: 1.25rem;\n padding-bottom: 1.25rem;\n border-bottom: 1px solid #ddd;\n }\n .conf-media__card-title {\n font-weight: bold;\n color: #252525;\n margin-bottom: 0.5rem;\n font-size: 1.5rem;\n }\n .conf-media__card-text {\n color: var(--dark);\n margin-bottom: 0.25rem;\n }\n .conference-media a img {\n width: 175px;\n min-width: 175px;\n height: auto;\n object-fit: contain;\n }\n .conference-media .conference-group {\n background: #003767;\n color: white;\n border-radius: 5px;\n display: inline-block;\n padding: 0 0.25rem;\n }\n .conference-media .conference-group a {\n color: white;\n font-size: 0.8rem;\n }\n @media screen and (max-width: 1064px) {\n .conf-media__card-title {\n font-size: 1.1rem;\n }\n }\n @media screen and (max-width: 768px) {\n .conference-media {\n flex-direction: column;\n }\n .conference-media a img {\n width: 100%;\n height: auto;\n max-height: 175px;\n object-fit: contain;\n margin-bottom: 1rem;\n }\n }\n '
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
var ConferenceBanner = function ConferenceBanner(props) {
|
|
4
4
|
var website = props.website;
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
return
|
|
7
|
+
return React__default.createElement(
|
|
8
8
|
"div",
|
|
9
9
|
{ className: "conf-img" },
|
|
10
|
-
|
|
10
|
+
React__default.createElement(
|
|
11
11
|
"a",
|
|
12
12
|
{ href: website.conferenceBannerContent.href },
|
|
13
|
-
|
|
13
|
+
React__default.createElement("img", { src: website.conferenceBannerContent.src, alt: website.conferenceBannerContent.alt })
|
|
14
14
|
)
|
|
15
15
|
);
|
|
16
16
|
};
|
package/dist/esm/DeckContent.js
CHANGED
|
@@ -8,27 +8,27 @@ import { _ as _toConsumableArray } from './toConsumableArray-8712d678.js';
|
|
|
8
8
|
import './_object-pie-33c40e79.js';
|
|
9
9
|
import { _ as _extends } from './extends-6e00b262.js';
|
|
10
10
|
import './_object-sap-56bb8073.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-b8e4c697.js';
|
|
12
12
|
import './web.dom.iterable-46c95e52.js';
|
|
13
|
-
import './typeof-
|
|
13
|
+
import './typeof-5f046efd.js';
|
|
14
14
|
import './_is-array-dd5523d6.js';
|
|
15
|
-
import
|
|
16
|
-
import { l as lib_3 } from './index-
|
|
15
|
+
import React__default from 'react';
|
|
16
|
+
import { l as lib_3 } from './index-93ec3c59.js';
|
|
17
17
|
import 'prop-types';
|
|
18
18
|
import Container from 'react-bootstrap/Container';
|
|
19
19
|
import Row from 'react-bootstrap/Row';
|
|
20
20
|
import Col from 'react-bootstrap/Col';
|
|
21
21
|
import Card from 'react-bootstrap/Card';
|
|
22
|
-
import { m as moment } from './moment-
|
|
22
|
+
import { m as moment } from './moment-12415288.js';
|
|
23
23
|
import { withRouter } from 'next/router';
|
|
24
24
|
import './isSymbol-b7b7434f.js';
|
|
25
25
|
import { d as debounce_1 } from './debounce-048d9cb6.js';
|
|
26
|
-
import { I as InfiniteScroll } from './index.es-
|
|
26
|
+
import { I as InfiniteScroll } from './index.es-938a3a58.js';
|
|
27
27
|
import 'react-dom';
|
|
28
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
28
|
+
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
29
29
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
30
|
-
import { L as LazyLoad } from './index-
|
|
31
|
-
import { m as
|
|
30
|
+
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
31
|
+
import { m as main_39 } from './main-7255814e.js';
|
|
32
32
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
33
33
|
import './slicedToArray-f1e40361.js';
|
|
34
34
|
import './stringify-e30bc114.js';
|
|
@@ -36,7 +36,7 @@ import './asyncToGenerator-0379e924.js';
|
|
|
36
36
|
import './_set-species-6f64f1c1.js';
|
|
37
37
|
import './beam-a25bd8fd.js';
|
|
38
38
|
import './AdSlot.js';
|
|
39
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
39
|
+
import { A as ADInfeed } from './ADInfeed-c7dba95f.js';
|
|
40
40
|
|
|
41
41
|
var DeckContent = function (_React$Component) {
|
|
42
42
|
_inherits(DeckContent, _React$Component);
|
|
@@ -177,14 +177,14 @@ var DeckContent = function (_React$Component) {
|
|
|
177
177
|
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
178
178
|
|
|
179
179
|
// please leave this for later debug purpose : Yong Jun.
|
|
180
|
-
/* console.log('page change reported', {
|
|
181
|
-
currentPage: currentPage,
|
|
182
|
-
pageNumber: pageNumber,
|
|
183
|
-
pathname: pathname,
|
|
184
|
-
path: path,
|
|
185
|
-
newPath: newPath,
|
|
186
|
-
firstPage: pageNumber === 1,
|
|
187
|
-
queryString: queryString
|
|
180
|
+
/* console.log('page change reported', {
|
|
181
|
+
currentPage: currentPage,
|
|
182
|
+
pageNumber: pageNumber,
|
|
183
|
+
pathname: pathname,
|
|
184
|
+
path: path,
|
|
185
|
+
newPath: newPath,
|
|
186
|
+
firstPage: pageNumber === 1,
|
|
187
|
+
queryString: queryString
|
|
188
188
|
}) */
|
|
189
189
|
|
|
190
190
|
if (pageview) {
|
|
@@ -204,35 +204,35 @@ var DeckContent = function (_React$Component) {
|
|
|
204
204
|
url = authorDetail.url;
|
|
205
205
|
|
|
206
206
|
if (displayName && url && url.current) {
|
|
207
|
-
return
|
|
207
|
+
return React__default.createElement(
|
|
208
208
|
'div',
|
|
209
209
|
{ key: _id },
|
|
210
|
-
index === 0 &&
|
|
210
|
+
index === 0 && React__default.createElement(
|
|
211
211
|
'span',
|
|
212
212
|
{ className: 'pr-1' },
|
|
213
213
|
'By'
|
|
214
214
|
),
|
|
215
|
-
|
|
215
|
+
React__default.createElement(
|
|
216
216
|
'a',
|
|
217
217
|
{ href: '/authors/${url.current}', className: 'text-muted' },
|
|
218
218
|
displayName,
|
|
219
|
-
length !== index + 1 &&
|
|
219
|
+
length !== index + 1 && React__default.createElement('br', null)
|
|
220
220
|
)
|
|
221
221
|
);
|
|
222
222
|
} else if (displayName) {
|
|
223
|
-
return
|
|
223
|
+
return React__default.createElement(
|
|
224
224
|
'div',
|
|
225
225
|
{ key: _id },
|
|
226
|
-
index === 0 &&
|
|
226
|
+
index === 0 && React__default.createElement(
|
|
227
227
|
'span',
|
|
228
228
|
{ className: 'pr-1' },
|
|
229
229
|
'By'
|
|
230
230
|
),
|
|
231
|
-
|
|
231
|
+
React__default.createElement(
|
|
232
232
|
'span',
|
|
233
233
|
{ className: 'text-muted' },
|
|
234
234
|
displayName,
|
|
235
|
-
length !== index + 1 &&
|
|
235
|
+
length !== index + 1 && React__default.createElement('br', null)
|
|
236
236
|
)
|
|
237
237
|
);
|
|
238
238
|
}
|
|
@@ -274,7 +274,7 @@ var DeckContent = function (_React$Component) {
|
|
|
274
274
|
articles = _this.state.data;
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
-
return
|
|
277
|
+
return React__default.createElement(
|
|
278
278
|
Row,
|
|
279
279
|
null,
|
|
280
280
|
articles && articles.map(function (row, index) {
|
|
@@ -286,51 +286,51 @@ var DeckContent = function (_React$Component) {
|
|
|
286
286
|
lgVar = 6;
|
|
287
287
|
}
|
|
288
288
|
if (row._type === 'BrandInsight' && row.adUnit) {
|
|
289
|
-
return
|
|
289
|
+
return React__default.createElement(ADInfeed, { index: index, infeedAd: row });
|
|
290
290
|
} else {
|
|
291
291
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
292
292
|
var contentCategoryName = row.contentCategory && row.contentCategory.name && _this.mapping[row.contentCategory.name] ? row.contentCategory.name : 'Articles';
|
|
293
|
-
return
|
|
294
|
-
|
|
293
|
+
return React__default.createElement(
|
|
294
|
+
React__default.Fragment,
|
|
295
295
|
{ key: itemCounter },
|
|
296
|
-
|
|
296
|
+
React__default.createElement(
|
|
297
297
|
VisibilitySensor,
|
|
298
298
|
{
|
|
299
299
|
onChange: function onChange(isVisible) {
|
|
300
300
|
isVisible && _this.changePageNumber(pageNumber);
|
|
301
301
|
} },
|
|
302
|
-
|
|
302
|
+
React__default.createElement(
|
|
303
303
|
Col,
|
|
304
304
|
{ md: 12, lg: lgVar, counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
305
|
-
|
|
305
|
+
React__default.createElement(
|
|
306
306
|
Card,
|
|
307
307
|
{ className: 'content-card', style: { flexDirection: mode } },
|
|
308
|
-
(row.thumbnail && row.thumbnail.asset || _this.props.defaultImage) &&
|
|
308
|
+
(row.thumbnail && row.thumbnail.asset || _this.props.defaultImage) && React__default.createElement(
|
|
309
309
|
'a',
|
|
310
310
|
{ href: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
311
|
-
|
|
311
|
+
React__default.createElement(
|
|
312
312
|
LazyLoad,
|
|
313
313
|
{ height: _this.props.imageHeight },
|
|
314
|
-
|
|
314
|
+
React__default.createElement(Card.Img, {
|
|
315
315
|
variant: 'top',
|
|
316
316
|
src: _this.renderCardImage(row, page),
|
|
317
317
|
alt: row.thumbnail && row.thumbnail.asset ? row.thumbnail.asset.originalFilename : ''
|
|
318
318
|
})
|
|
319
319
|
)
|
|
320
320
|
),
|
|
321
|
-
|
|
321
|
+
React__default.createElement(
|
|
322
322
|
Card.Body,
|
|
323
323
|
null,
|
|
324
|
-
|
|
324
|
+
React__default.createElement(
|
|
325
325
|
'a',
|
|
326
326
|
{ href: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
327
|
-
|
|
327
|
+
React__default.createElement(
|
|
328
328
|
Card.Title,
|
|
329
329
|
null,
|
|
330
330
|
row.title
|
|
331
331
|
)
|
|
332
332
|
),
|
|
333
|
-
_this.props.showPublished && row.published &&
|
|
333
|
+
_this.props.showPublished && row.published && React__default.createElement(
|
|
334
334
|
Card.Subtitle,
|
|
335
335
|
null,
|
|
336
336
|
moment(row.published).format('MMMM DD, YYYY')
|
|
@@ -338,7 +338,7 @@ var DeckContent = function (_React$Component) {
|
|
|
338
338
|
_this.props.showAuthor && row.authorMapping && row.authorMapping.length > 0 && row.authorMapping.map(function (authorDetail, index) {
|
|
339
339
|
return _this.renderAuthor(authorDetail, index, row.authorMapping.length);
|
|
340
340
|
}),
|
|
341
|
-
|
|
341
|
+
React__default.createElement(
|
|
342
342
|
Card.Text,
|
|
343
343
|
null,
|
|
344
344
|
clean_html_1(row.summary)
|
|
@@ -347,7 +347,7 @@ var DeckContent = function (_React$Component) {
|
|
|
347
347
|
)
|
|
348
348
|
)
|
|
349
349
|
),
|
|
350
|
-
|
|
350
|
+
main_39 && _this.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
351
351
|
);
|
|
352
352
|
}
|
|
353
353
|
})
|
|
@@ -356,7 +356,7 @@ var DeckContent = function (_React$Component) {
|
|
|
356
356
|
var rightItems = _this.props.rightItems;
|
|
357
357
|
|
|
358
358
|
var i = ((index + 1) / numberOfItemsBeforeAd - 1) % rightItems.length;
|
|
359
|
-
return
|
|
359
|
+
return React__default.createElement(
|
|
360
360
|
Col,
|
|
361
361
|
{ md: 12, style: { display: 'flex', flex: '1 0 auto' } },
|
|
362
362
|
rightItems[i].component
|
|
@@ -364,15 +364,15 @@ var DeckContent = function (_React$Component) {
|
|
|
364
364
|
}, _this.renderManualPagination = function () {
|
|
365
365
|
var currentPage = _this.state.currentPage;
|
|
366
366
|
|
|
367
|
-
return
|
|
367
|
+
return React__default.createElement(
|
|
368
368
|
'div',
|
|
369
369
|
{ className: 'd-flex justify-content-between' },
|
|
370
|
-
currentPage && currentPage > 1 &&
|
|
370
|
+
currentPage && currentPage > 1 && React__default.createElement(
|
|
371
371
|
'a',
|
|
372
372
|
{ href: '?page=' + (currentPage - 1) },
|
|
373
373
|
'<< Previous'
|
|
374
374
|
),
|
|
375
|
-
|
|
375
|
+
React__default.createElement(
|
|
376
376
|
'a',
|
|
377
377
|
{ href: '?page=' + (currentPage + 1) },
|
|
378
378
|
'Next >>'
|
|
@@ -418,38 +418,38 @@ var DeckContent = function (_React$Component) {
|
|
|
418
418
|
brandInsight = _props.brandInsight;
|
|
419
419
|
|
|
420
420
|
|
|
421
|
-
return
|
|
421
|
+
return React__default.createElement(
|
|
422
422
|
'div',
|
|
423
423
|
{ className: 'contentDeck' },
|
|
424
|
-
autoScroll ?
|
|
425
|
-
|
|
424
|
+
autoScroll ? React__default.createElement(
|
|
425
|
+
React__default.Fragment,
|
|
426
426
|
null,
|
|
427
|
-
|
|
427
|
+
React__default.createElement(
|
|
428
428
|
InfiniteScroll,
|
|
429
429
|
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.9 },
|
|
430
|
-
|
|
430
|
+
React__default.createElement(
|
|
431
431
|
Container,
|
|
432
432
|
null,
|
|
433
433
|
this.cardLoader(page, columns, variant, showBI, brandInsight)
|
|
434
434
|
)
|
|
435
435
|
),
|
|
436
|
-
|
|
436
|
+
React__default.createElement(
|
|
437
437
|
'noscript',
|
|
438
438
|
null,
|
|
439
439
|
this.renderManualPagination()
|
|
440
440
|
)
|
|
441
|
-
) :
|
|
442
|
-
|
|
441
|
+
) : React__default.createElement(
|
|
442
|
+
React__default.Fragment,
|
|
443
443
|
null,
|
|
444
|
-
|
|
444
|
+
React__default.createElement(
|
|
445
445
|
Container,
|
|
446
446
|
null,
|
|
447
447
|
this.cardLoader(page, columns, variant, showBI, brandInsight)
|
|
448
448
|
),
|
|
449
|
-
|
|
449
|
+
React__default.createElement(
|
|
450
450
|
'div',
|
|
451
451
|
{ style: { padding: '0px 10px' } },
|
|
452
|
-
this.state.scrolling ?
|
|
452
|
+
this.state.scrolling ? React__default.createElement(
|
|
453
453
|
'button',
|
|
454
454
|
{
|
|
455
455
|
style: { margin: 'auto', width: '100%' },
|
|
@@ -457,17 +457,17 @@ var DeckContent = function (_React$Component) {
|
|
|
457
457
|
_this2.loadMore();
|
|
458
458
|
} },
|
|
459
459
|
'Load More'
|
|
460
|
-
) :
|
|
460
|
+
) : React__default.createElement(
|
|
461
461
|
'p',
|
|
462
462
|
{ style: { textAlign: 'center' } },
|
|
463
|
-
|
|
463
|
+
React__default.createElement(
|
|
464
464
|
'b',
|
|
465
465
|
null,
|
|
466
466
|
'End of data'
|
|
467
467
|
)
|
|
468
468
|
)
|
|
469
469
|
),
|
|
470
|
-
|
|
470
|
+
React__default.createElement(
|
|
471
471
|
'noscript',
|
|
472
472
|
null,
|
|
473
473
|
this.renderManualPagination()
|
|
@@ -478,7 +478,7 @@ var DeckContent = function (_React$Component) {
|
|
|
478
478
|
}]);
|
|
479
479
|
|
|
480
480
|
return DeckContent;
|
|
481
|
-
}(
|
|
481
|
+
}(React__default.Component);
|
|
482
482
|
|
|
483
483
|
var ContentCard = withRouter(DeckContent);
|
|
484
484
|
|