@mjhls/mjh-framework 1.0.878 → 1.0.879
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 +2 -3
- package/dist/cjs/AD300x250x600.js +2 -3
- package/dist/cjs/AD728x90.js +2 -3
- package/dist/cjs/ADFloatingFooter.js +2 -3
- package/dist/cjs/ADGutter.js +2 -3
- package/dist/cjs/ADSkyscraper.js +2 -3
- package/dist/cjs/ADSponsoredResources.js +2 -3
- package/dist/cjs/ADWebcast.js +2 -3
- package/dist/cjs/ADWelcome.js +2 -3
- package/dist/cjs/AccordionPanel.js +2 -2
- package/dist/cjs/AdSlot.js +2 -3
- package/dist/cjs/AdSlotsProvider.js +2 -3
- package/dist/cjs/AlgoliaSearch.js +17 -14098
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +5 -6
- package/dist/cjs/ArticleSeriesLandingPage.js +4 -5
- package/dist/cjs/ArticleSeriesListing.js +4 -5
- package/dist/cjs/AuthWrapper.js +1 -1
- package/dist/cjs/CMEDeck.js +2 -3
- package/dist/cjs/Column3.js +2 -3
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/DeckContent.js +11 -12
- package/dist/cjs/DeckQueue.js +2 -3
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-94f8ccdf.js} +1 -2
- package/dist/cjs/EventsDeck.js +18 -18
- package/dist/cjs/ExternalResources.js +5 -6
- package/dist/cjs/Feature.js +1 -1
- package/dist/cjs/GridContent.js +4 -5
- package/dist/cjs/HamMagazine.js +15 -15
- package/dist/cjs/HorizontalArticleListing.js +5 -6
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueLanding.js +36 -37
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +2 -3
- package/dist/cjs/MasterDeck.js +12 -13
- package/dist/cjs/MediaSeriesLanding.js +406 -306
- 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 +7 -8
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PubSection.js +4 -5
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpanded.js +4 -5
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Segment.js +2 -20
- package/dist/cjs/SeriesListingDeck.js +3 -4
- package/dist/cjs/{SeriesSlider-ce3261cb.js → SeriesSlider-f9128638.js} +5 -5
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-5ec44406.js → SocialSearchComponent-4942ddfc.js} +3 -3
- package/dist/cjs/TaxonomyDescription.js +5 -6
- package/dist/cjs/TemplateNormal.js +7 -8
- package/dist/cjs/Ustream.js +4 -4
- package/dist/cjs/VideoProgramLandingPage.js +5 -6
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +4 -5
- package/dist/cjs/VideoSeriesListing.js +4 -5
- package/dist/cjs/View.js +9 -10
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/getSerializers.js +5 -6
- package/dist/cjs/{getTargeting-9d509319.js → getTargeting-6d59cc5b.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/{index-fc2f1ca2.js → index-0e4427c8.js} +467 -2
- package/dist/cjs/{index-e2ec2eae.js → index-aafe16dd.js} +3 -3
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-00a6aade.js} +1 -1
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-2bb721c8.js} +1 -1
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-c1e16606.js} +1 -1
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-f27f80d9.js} +1 -1
- package/dist/cjs/index.js +14 -15
- package/dist/cjs/{main-025fdc78.js → main-f1c77adb.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +6 -7
- package/dist/esm/AD300x250x600.js +6 -7
- package/dist/esm/AD728x90.js +7 -8
- package/dist/esm/ADFloatingFooter.js +9 -10
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -10
- package/dist/esm/{ADInfeed-014c7bd1.js → ADInfeed-bba8b026.js} +5 -5
- package/dist/esm/ADSkyscraper.js +9 -10
- package/dist/esm/ADSponsoredResources.js +9 -10
- package/dist/esm/ADWebcast.js +9 -10
- package/dist/esm/ADWelcome.js +13 -14
- package/dist/esm/{ADlgInfeed-75e097f4.js → ADlgInfeed-a45afa1d.js} +4 -4
- package/dist/esm/AccordionPanel.js +18 -18
- package/dist/esm/AdSlot.js +5 -6
- package/dist/esm/AdSlotsProvider.js +4 -5
- package/dist/esm/AlgoliaSearch.js +40 -14121
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +6 -6
- package/dist/esm/ArticleProgramLandingPage.js +17 -18
- package/dist/esm/ArticleSeriesLandingPage.js +12 -13
- package/dist/esm/ArticleSeriesListing.js +31 -32
- package/dist/esm/Auth.js +70 -70
- package/dist/esm/AuthWrapper.js +26 -26
- package/dist/esm/{AuthorComponent-46a745ba.js → AuthorComponent-defe68b6.js} +10 -10
- package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-c99c9a8d.js} +3 -3
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +61 -62
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +23 -24
- package/dist/esm/ConferenceArticleCard.js +28 -28
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +57 -58
- package/dist/esm/DeckQueue.js +42 -43
- package/dist/esm/{Dfp-4ca12f2e.js → Dfp-4b99f79d.js} +10 -11
- package/dist/esm/EventsDeck.js +81 -81
- package/dist/esm/ExternalResources.js +35 -36
- package/dist/esm/Feature.js +15 -15
- package/dist/esm/ForbesHero.js +26 -26
- package/dist/esm/GridContent.js +124 -125
- 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 +31 -32
- 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 +51 -52
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +16 -17
- package/dist/esm/MasterDeck.js +46 -47
- package/dist/esm/MediaSeriesLanding.js +432 -332
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.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 +66 -67
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +14 -15
- 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 +246 -247
- 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/Segment.js +2 -20
- package/dist/esm/SeriesListingDeck.js +19 -20
- package/dist/esm/{SeriesSlider-7a6c45ce.js → SeriesSlider-98b7a870.js} +23 -23
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-bdecba55.js → SocialSearchComponent-9458fac6.js} +22 -22
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +35 -35
- package/dist/esm/TaxonomyDescription.js +13 -14
- package/dist/esm/TemplateNormal.js +29 -30
- package/dist/esm/ThumbnailCard.js +9 -9
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +11 -11
- package/dist/esm/VideoProgramLandingPage.js +24 -25
- package/dist/esm/VideoSeriesCard.js +15 -15
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +12 -13
- package/dist/esm/VideoSeriesListing.js +47 -48
- package/dist/esm/View.js +173 -174
- package/dist/esm/YahooHero.js +23 -23
- package/dist/esm/YoutubeGroup.js +38 -38
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
- package/dist/esm/getSerializers.js +8 -9
- package/dist/esm/{getTargeting-ff2c9409.js → getTargeting-3792eba9.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -5
- package/dist/esm/{index-2446af28.js → index-5cc7b406.js} +469 -4
- package/dist/esm/{index-35bdcc81.js → index-755f2cc2.js} +4 -4
- package/dist/esm/{index-f2783f14.js → index-e57e375a.js} +419 -419
- package/dist/esm/{index.es-c6222053.js → index.es-a6137319.js} +5 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-37268dca.js} +16 -16
- package/dist/esm/{index.esm-c6715e80.js → index.esm-9b042655.js} +1 -1
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-d4932dea.js} +1 -1
- package/dist/esm/{index.esm-3fdda599.js → index.esm-f6156a57.js} +1 -1
- package/dist/esm/index.js +39 -40
- package/dist/esm/{main-4136096f.js → main-1894c974.js} +19 -19
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-9be47857.js} +5 -5
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/package.json +111 -111
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/index-8041a4eb.js +0 -99
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/index-67e1773f.js +0 -94
- /package/dist/cjs/{ADInfeed-f7e6956b.js → ADInfeed-51a39495.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-4df6d147.js → ADlgInfeed-12db4509.js} +0 -0
package/dist/esm/RecentNews.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { a as FaLongArrowAltRight } from './index.esm-
|
|
3
|
-
import './iconBase-
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { a as FaLongArrowAltRight } from './index.esm-d4932dea.js';
|
|
3
|
+
import './iconBase-ccc56b97.js';
|
|
4
4
|
|
|
5
5
|
var RecentNews = function RecentNews(_ref) {
|
|
6
6
|
_ref.client;
|
|
@@ -19,39 +19,39 @@ var RecentNews = function RecentNews(_ref) {
|
|
|
19
19
|
var topArticle = dataRecord[0];
|
|
20
20
|
var subArticles = dataRecord.slice(1, dataRecord.length);
|
|
21
21
|
|
|
22
|
-
return
|
|
22
|
+
return React__default.createElement(
|
|
23
23
|
'div',
|
|
24
24
|
{ className: 'recent-news-container', style: { border: '3px solid ' + borderColor } },
|
|
25
|
-
|
|
25
|
+
React__default.createElement(
|
|
26
26
|
'div',
|
|
27
27
|
{ className: 'recent-news-title' },
|
|
28
|
-
|
|
28
|
+
React__default.createElement(
|
|
29
29
|
'h2',
|
|
30
30
|
null,
|
|
31
31
|
heroTitle
|
|
32
32
|
),
|
|
33
|
-
|
|
33
|
+
React__default.createElement('div', null)
|
|
34
34
|
),
|
|
35
|
-
|
|
35
|
+
React__default.createElement(
|
|
36
36
|
'div',
|
|
37
37
|
{ className: 'recent-news-inner' },
|
|
38
|
-
|
|
38
|
+
React__default.createElement(
|
|
39
39
|
'div',
|
|
40
40
|
{ className: 'recent-article-wrap', style: { flexBasis: '100%' } },
|
|
41
|
-
|
|
41
|
+
React__default.createElement(
|
|
42
42
|
'a',
|
|
43
43
|
{ href: '/view/' + topArticle.url.current, className: 'recent-article' },
|
|
44
|
-
|
|
44
|
+
React__default.createElement(
|
|
45
45
|
'p',
|
|
46
46
|
null,
|
|
47
47
|
topArticle.title
|
|
48
48
|
)
|
|
49
49
|
),
|
|
50
50
|
subArticles.map(function (article, index) {
|
|
51
|
-
return
|
|
51
|
+
return React__default.createElement(
|
|
52
52
|
'a',
|
|
53
53
|
{ key: index, href: '/view/' + article.url.current, className: 'recent-article' },
|
|
54
|
-
|
|
54
|
+
React__default.createElement(
|
|
55
55
|
'p',
|
|
56
56
|
null,
|
|
57
57
|
article.title
|
|
@@ -60,21 +60,21 @@ var RecentNews = function RecentNews(_ref) {
|
|
|
60
60
|
})
|
|
61
61
|
)
|
|
62
62
|
),
|
|
63
|
-
linkTo &&
|
|
63
|
+
linkTo && React__default.createElement(
|
|
64
64
|
'div',
|
|
65
65
|
{ className: 'recent-view-more' },
|
|
66
|
-
|
|
66
|
+
React__default.createElement(
|
|
67
67
|
'a',
|
|
68
68
|
{ href: linkTo },
|
|
69
69
|
linkTitle,
|
|
70
|
-
|
|
70
|
+
React__default.createElement(
|
|
71
71
|
'span',
|
|
72
72
|
null,
|
|
73
|
-
|
|
73
|
+
React__default.createElement(FaLongArrowAltRight, { color: 'var(--primary)' })
|
|
74
74
|
)
|
|
75
75
|
)
|
|
76
76
|
),
|
|
77
|
-
|
|
77
|
+
React__default.createElement(
|
|
78
78
|
'style',
|
|
79
79
|
{ jsx: 'true' },
|
|
80
80
|
'\n .recent-news-container {\n margin-bottom: 1.7rem;\n margin-top: 1rem;\n position: relative;\n }\n .recent-news-title {\n position: absolute;\n top: -10px;\n background: white;\n z-index: 2;\n left: 10px;\n padding-right: 0.25rem;\n padding-left: 0.25rem;\n font-weight: bold;\n }\n .recent-news-title h2 {\n font-size: 0.9rem;\n font-weight: bold;\n }\n .recent-news-inner {\n display: flex;\n flex-direction: row;\n padding-top: 0.75rem;\n margin-top: 0.75rem;\n }\n .recent-article-wrap {\n padding: 0 0.5rem;\n }\n \n .recent-article {\n border-bottom: 1px solid #ccc;\n display: block;\n margin-bottom: 0.5rem;\n }\n .recent-article:last-child {\n border-bottom: none;\n }\n .recent-article:hover {\n background: #eee;\n }\n .recent-article p {\n font-size: 0.7rem;\n margin-bottom: 0.5rem;\n color: #252525;\n }\n .recent-view-more {\n position: absolute;\n right: 0;\n margin-top: 0.25rem;\n font-size: 0.7rem;\n font-weight: bold;\n }\n .recent-view-more span {\n display: inline-block;\n color: rgb(81, 116, 153);\n font-size: 0.7rem;\n }\n @media screen and (max-width: 1191px){\n \n .recent-article > p {\n font-size: 0.7rem;\n }\n }\n }\n @media screen and (max-width: 495px) {\n \n .recent-article > p {\n font-size: 0.7rem;\n }\n }\n '
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { m as moment } from './moment-bc12cb97.js';
|
|
3
3
|
import 'react-bootstrap/Media';
|
|
4
4
|
import urlFor from './urlFor.js';
|
|
5
|
-
import { L as LazyLoad } from './index-
|
|
5
|
+
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
6
6
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
7
7
|
import './slicedToArray-ca2c8b8d.js';
|
|
8
8
|
import './web.dom.iterable-fdf034f5.js';
|
|
@@ -11,34 +11,34 @@ import './index-0dbff1d1.js';
|
|
|
11
11
|
import 'react-dom';
|
|
12
12
|
import 'prop-types';
|
|
13
13
|
|
|
14
|
-
/*
|
|
15
|
-
Sample query
|
|
16
|
-
let references = ''
|
|
17
|
-
if(article.taxonomyMapping.length > 0){
|
|
18
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
19
|
-
references = references + `references('${ref._ref}') `
|
|
20
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
21
|
-
references = references + ` && `
|
|
22
|
-
}
|
|
23
|
-
})
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
27
|
-
...,
|
|
28
|
-
title,
|
|
29
|
-
summary,
|
|
30
|
-
thumbnail,
|
|
31
|
-
url,
|
|
32
|
-
published,
|
|
33
|
-
authorMapping[]->,
|
|
34
|
-
contentCategory->
|
|
35
|
-
}`
|
|
36
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
37
|
-
|
|
38
|
-
Sample usage
|
|
39
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
40
|
-
|
|
41
|
-
|
|
14
|
+
/*
|
|
15
|
+
Sample query
|
|
16
|
+
let references = ''
|
|
17
|
+
if(article.taxonomyMapping.length > 0){
|
|
18
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
19
|
+
references = references + `references('${ref._ref}') `
|
|
20
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
21
|
+
references = references + ` && `
|
|
22
|
+
}
|
|
23
|
+
})
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
27
|
+
...,
|
|
28
|
+
title,
|
|
29
|
+
summary,
|
|
30
|
+
thumbnail,
|
|
31
|
+
url,
|
|
32
|
+
published,
|
|
33
|
+
authorMapping[]->,
|
|
34
|
+
contentCategory->
|
|
35
|
+
}`
|
|
36
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
37
|
+
|
|
38
|
+
Sample usage
|
|
39
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
40
|
+
|
|
41
|
+
|
|
42
42
|
*/
|
|
43
43
|
var RelatedContent = function RelatedContent(props) {
|
|
44
44
|
var client = props.client,
|
|
@@ -47,47 +47,47 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
47
47
|
defaultImage = _props$defaultImage === undefined ? '' : _props$defaultImage;
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
return
|
|
50
|
+
return React__default.createElement(
|
|
51
51
|
'div',
|
|
52
52
|
null,
|
|
53
|
-
|
|
53
|
+
React__default.createElement(
|
|
54
54
|
'h1',
|
|
55
55
|
{ className: 'mb-4 pb-2', style: { borderBottom: '1px solid #ccc', fontSize: '1.2rem', fontWeight: 'bold', color: '#252525' } },
|
|
56
56
|
'Related Content'
|
|
57
57
|
),
|
|
58
|
-
|
|
58
|
+
React__default.createElement(
|
|
59
59
|
'div',
|
|
60
60
|
{ className: 'related-articles-container' },
|
|
61
61
|
dataRecord.map(function (article, index) {
|
|
62
|
-
return
|
|
62
|
+
return React__default.createElement(
|
|
63
63
|
'a',
|
|
64
64
|
{ key: index, href: '/view/' + article.url.current, className: 'related-article' },
|
|
65
|
-
|
|
65
|
+
React__default.createElement(
|
|
66
66
|
'figure',
|
|
67
67
|
null,
|
|
68
|
-
|
|
68
|
+
React__default.createElement(
|
|
69
69
|
LazyLoad,
|
|
70
70
|
{ once: true },
|
|
71
|
-
|
|
71
|
+
React__default.createElement('img', {
|
|
72
72
|
src: article.thumbnail ? urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 500 }) : defaultImage,
|
|
73
73
|
alt: article.title
|
|
74
74
|
})
|
|
75
75
|
)
|
|
76
76
|
),
|
|
77
|
-
|
|
77
|
+
React__default.createElement(
|
|
78
78
|
'div',
|
|
79
79
|
{ className: 'related-article-body' },
|
|
80
|
-
|
|
81
|
-
props.showPublished &&
|
|
80
|
+
React__default.createElement('h4', { dangerouslySetInnerHTML: { __html: article.title } }),
|
|
81
|
+
props.showPublished && React__default.createElement(
|
|
82
82
|
'p',
|
|
83
83
|
{ className: 'pb-0 mb-0' },
|
|
84
84
|
moment(article.published).format('MMMM DD, YYYY hh:mma')
|
|
85
85
|
),
|
|
86
|
-
props.showAuthor && article.authorMapping && article.authorMapping[0] &&
|
|
86
|
+
props.showAuthor && article.authorMapping && article.authorMapping[0] && React__default.createElement(
|
|
87
87
|
'p',
|
|
88
88
|
null,
|
|
89
89
|
'By ',
|
|
90
|
-
|
|
90
|
+
React__default.createElement(
|
|
91
91
|
'b',
|
|
92
92
|
null,
|
|
93
93
|
article.authorMapping[0].displayName
|
|
@@ -96,7 +96,7 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
96
96
|
)
|
|
97
97
|
);
|
|
98
98
|
}),
|
|
99
|
-
|
|
99
|
+
React__default.createElement(
|
|
100
100
|
'style',
|
|
101
101
|
{ jsx: 'true' },
|
|
102
102
|
'\n .related-article {\n width: 100%;\n display: flex;\n flex-direction: ' + (props.reverse ? 'row-reverse' : 'row') + ';\n margin-bottom: 1rem;\n }\n .related-article figure {\n width: 165px;\n height: 110px;\n min-width: 165px;\n }\n .related-article figure img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n .related-article-body {\n flex: 1 1 auto;\n padding: 0 1rem;\n }\n .related-article-body h4 {\n font-weight: bold;\n font-size: 1.1rem;\n margin-bottom: 0.25rem;\n line-height: 1.3;\n }\n @media screen and (max-width: 430px) {\n .related-article {\n flex-direction: column;\n }\n .related-article figure {\n width: 80%;\n height: auto;\n min-width: 80%;\n margin: 0 auto;\n }\n .related-article figure img {\n width: 100%;\n height: auto;\n object-fit: cover;\n }\n }\n '
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import DropdownButton from 'react-bootstrap/DropdownButton';
|
|
3
3
|
import Dropdown from 'react-bootstrap/Dropdown';
|
|
4
4
|
|
|
@@ -14,36 +14,36 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14
14
|
_ref$className = _ref.className,
|
|
15
15
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
16
16
|
|
|
17
|
-
/*
|
|
18
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
19
|
-
example:
|
|
20
|
-
<RelatedTopicDropdown
|
|
21
|
-
page='/clinical'
|
|
22
|
-
exclude="clinical"
|
|
23
|
-
className='mb-3'
|
|
24
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
25
|
-
subTaxonomies={props.subTaxonomies}
|
|
26
|
-
/>
|
|
17
|
+
/*
|
|
18
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
19
|
+
example:
|
|
20
|
+
<RelatedTopicDropdown
|
|
21
|
+
page='/clinical'
|
|
22
|
+
exclude="clinical"
|
|
23
|
+
className='mb-3'
|
|
24
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
25
|
+
subTaxonomies={props.subTaxonomies}
|
|
26
|
+
/>
|
|
27
27
|
*/
|
|
28
28
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
29
29
|
if (parentTaxonomy.identifier == exclude) {
|
|
30
30
|
return '';
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return React__default.createElement(
|
|
33
33
|
'div',
|
|
34
34
|
null,
|
|
35
|
-
|
|
35
|
+
React__default.createElement(
|
|
36
36
|
'style',
|
|
37
37
|
{ jsx: true },
|
|
38
38
|
'\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n top: auto !important;\n max-height: 50vh !important;\n box-shadow: 0px 0px 25px #ccc;\n z-index: 9999;\n transform: none !important;\n overflow: hidden;\n overflow-y: scroll;\n }\n @media only screen and (max-width: 720px) {\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n max-height: 30vh !important;\n max-width: 95vw;\n box-shadow: 0px 0px 25px #ccc;\n z-index: 9999;\n font-size: 0.85em;\n overflow: hidden;\n overflow-y: scroll;\n }\n }\n '
|
|
39
39
|
),
|
|
40
|
-
|
|
40
|
+
React__default.createElement(
|
|
41
41
|
'div',
|
|
42
42
|
{ id: 'related_dropdown', className: className },
|
|
43
|
-
|
|
43
|
+
React__default.createElement(
|
|
44
44
|
DropdownButton,
|
|
45
45
|
{ id: 'related_button', variant: variant, title: 'Related Topics' },
|
|
46
|
-
|
|
46
|
+
React__default.createElement(
|
|
47
47
|
Dropdown.Item,
|
|
48
48
|
{ href: parentTaxonomy.identifier },
|
|
49
49
|
parentTaxonomy.name
|
|
@@ -52,22 +52,22 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
52
52
|
)
|
|
53
53
|
);
|
|
54
54
|
} else {
|
|
55
|
-
return
|
|
55
|
+
return React__default.createElement(
|
|
56
56
|
'div',
|
|
57
57
|
null,
|
|
58
|
-
|
|
58
|
+
React__default.createElement(
|
|
59
59
|
'style',
|
|
60
60
|
{ jsx: true },
|
|
61
61
|
'\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n top: auto !important;\n max-height: 40vh !important;\n z-index: 9999;\n transform: none !important;\n overflow: hidden;\n overflow-y: scroll;\n }\n @media only screen and (max-width: 720px) {\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n max-height: 30vh !important;\n max-width: 95vw;\n z-index: 9999;\n font-size: 0.85em;\n overflow: hidden;\n overflow-y: scroll;\n }\n }\n '
|
|
62
62
|
),
|
|
63
|
-
|
|
63
|
+
React__default.createElement(
|
|
64
64
|
'div',
|
|
65
65
|
{ id: 'related_dropdown', className: className },
|
|
66
|
-
|
|
66
|
+
React__default.createElement(
|
|
67
67
|
DropdownButton,
|
|
68
68
|
{ id: 'related_button', variant: variant, title: 'Related Topics' },
|
|
69
69
|
subTaxonomies.length > 0 && subTaxonomies.map(function (taxonomy, index) {
|
|
70
|
-
return
|
|
70
|
+
return React__default.createElement(
|
|
71
71
|
Dropdown.Item,
|
|
72
72
|
{ key: index, href: page + '/' + taxonomy.identifier },
|
|
73
73
|
taxonomy.name
|
package/dist/esm/RolesDeck.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import Container from 'react-bootstrap/Container';
|
|
3
3
|
import Row from 'react-bootstrap/Row';
|
|
4
4
|
import Col from 'react-bootstrap/Col';
|
|
@@ -15,43 +15,43 @@ var RolesDeck = function RolesDeck(props) {
|
|
|
15
15
|
// dataRecord - data record to be shown in card.
|
|
16
16
|
// />
|
|
17
17
|
|
|
18
|
-
return
|
|
18
|
+
return React__default.createElement(
|
|
19
19
|
'div',
|
|
20
20
|
{ className: 'rolesDeck' },
|
|
21
|
-
|
|
21
|
+
React__default.createElement(
|
|
22
22
|
Container,
|
|
23
23
|
null,
|
|
24
|
-
|
|
24
|
+
React__default.createElement(
|
|
25
25
|
Row,
|
|
26
26
|
null,
|
|
27
27
|
data && data.map(function (row, index) {
|
|
28
28
|
if (row && row.url && row.name) {
|
|
29
|
-
return
|
|
29
|
+
return React__default.createElement(
|
|
30
30
|
Col,
|
|
31
31
|
{ key: index, md: 12, lg: 6, counter: index++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
32
|
-
|
|
32
|
+
React__default.createElement(
|
|
33
33
|
Card,
|
|
34
34
|
{ className: 'taxonomy-card', style: { position: 'relative', overflow: 'hidden', borderBottom: '3px solid var(--primary)' } },
|
|
35
|
-
|
|
35
|
+
React__default.createElement(
|
|
36
36
|
Card.Link,
|
|
37
37
|
{ href: row.url },
|
|
38
|
-
|
|
38
|
+
React__default.createElement(
|
|
39
39
|
Card.Body,
|
|
40
40
|
null,
|
|
41
|
-
|
|
41
|
+
React__default.createElement(
|
|
42
42
|
Row,
|
|
43
43
|
null,
|
|
44
|
-
|
|
44
|
+
React__default.createElement(
|
|
45
45
|
Col,
|
|
46
46
|
{ className: 'details-content-wrapper' },
|
|
47
|
-
|
|
47
|
+
React__default.createElement(
|
|
48
48
|
'div',
|
|
49
49
|
{ className: 'details-wrapper' },
|
|
50
50
|
row.name
|
|
51
51
|
)
|
|
52
52
|
)
|
|
53
53
|
),
|
|
54
|
-
icon &&
|
|
54
|
+
icon && React__default.createElement(
|
|
55
55
|
'span',
|
|
56
56
|
{
|
|
57
57
|
className: 'taxonomy-icon',
|
|
@@ -73,7 +73,7 @@ var RolesDeck = function RolesDeck(props) {
|
|
|
73
73
|
})
|
|
74
74
|
)
|
|
75
75
|
),
|
|
76
|
-
icon &&
|
|
76
|
+
icon && React__default.createElement(
|
|
77
77
|
'style',
|
|
78
78
|
{ jsx: 'true' },
|
|
79
79
|
'\n .taxonomy-card .taxonomy-icon {\n transform: translateY(-50%) translateX(10px) !important;\n }\n .taxonomy-card.card:hover .taxonomy-icon {\n transform: translateY(-50%) translateX(5px) scale(1.25) rotate(-180deg) !important;\n }\n '
|
package/dist/esm/Search.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
2
|
-
import
|
|
2
|
+
import React__default, { useState } from 'react';
|
|
3
3
|
import Form from 'react-bootstrap/Form';
|
|
4
4
|
import FormControl from 'react-bootstrap/FormControl';
|
|
5
5
|
import Button from 'react-bootstrap/Button';
|
|
@@ -25,12 +25,12 @@ var Search = function Search(props) {
|
|
|
25
25
|
window.location.href = '/search?searchTerm=' + encodeURIComponent(searchKey);
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
return
|
|
28
|
+
return React__default.createElement(
|
|
29
29
|
Form,
|
|
30
30
|
{ inline: true, onSubmit: function onSubmit(e) {
|
|
31
31
|
return submitSearch(e);
|
|
32
32
|
} },
|
|
33
|
-
|
|
33
|
+
React__default.createElement(FormControl, {
|
|
34
34
|
className: device === 'mobile' ? 'mobile-search mr-sm-2' : 'mr-sm-2',
|
|
35
35
|
type: 'text',
|
|
36
36
|
placeholder: placeholder,
|
|
@@ -39,14 +39,14 @@ var Search = function Search(props) {
|
|
|
39
39
|
return setSearchKey(e.target.value);
|
|
40
40
|
}
|
|
41
41
|
}),
|
|
42
|
-
|
|
42
|
+
React__default.createElement(
|
|
43
43
|
Button,
|
|
44
44
|
{ variant: 'secondary', onClick: function onClick(e) {
|
|
45
45
|
return submitSearch(e);
|
|
46
46
|
} },
|
|
47
47
|
btnText
|
|
48
48
|
),
|
|
49
|
-
|
|
49
|
+
React__default.createElement(
|
|
50
50
|
'style',
|
|
51
51
|
{ jsx: 'true' },
|
|
52
52
|
'\n .mobile-search {\n width: 75%;\n margin-right: 15px;\n }\n '
|
package/dist/esm/Segment.js
CHANGED
|
@@ -62,31 +62,13 @@ var Segment = {
|
|
|
62
62
|
var _this = this;
|
|
63
63
|
|
|
64
64
|
return _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
65
|
-
var res, json;
|
|
66
65
|
return regenerator.wrap(function _callee$(_context) {
|
|
67
66
|
while (1) {
|
|
68
67
|
switch (_context.prev = _context.next) {
|
|
69
68
|
case 0:
|
|
70
|
-
_context.
|
|
71
|
-
return fetch('https://beam.mjhlifesciences.com/api/beam/id', {
|
|
72
|
-
headers: {
|
|
73
|
-
'Content-Type': 'application/json',
|
|
74
|
-
Accept: 'application/json'
|
|
75
|
-
},
|
|
76
|
-
method: 'post',
|
|
77
|
-
credentials: 'include'
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
case 2:
|
|
81
|
-
res = _context.sent;
|
|
82
|
-
_context.next = 5;
|
|
83
|
-
return res.json();
|
|
84
|
-
|
|
85
|
-
case 5:
|
|
86
|
-
json = _context.sent;
|
|
87
|
-
return _context.abrupt('return', json);
|
|
69
|
+
return _context.abrupt('return', {});
|
|
88
70
|
|
|
89
|
-
case
|
|
71
|
+
case 1:
|
|
90
72
|
case 'end':
|
|
91
73
|
return _context.stop();
|
|
92
74
|
}
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import { _ as _toConsumableArray } from './toConsumableArray-7b1c0e23.js';
|
|
2
2
|
import { _ as _extends } from './extends-dc6a71fd.js';
|
|
3
3
|
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
4
|
-
import
|
|
4
|
+
import React__default, { useState, useEffect, useRef } from 'react';
|
|
5
5
|
import { useRouter } from 'next/router';
|
|
6
|
-
import { l as lib_3 } from './index-
|
|
7
|
-
import { I as InfiniteScroll } from './index.es-
|
|
8
|
-
import { S as SeriesSlider } from './SeriesSlider-
|
|
9
|
-
import { V as VisibilitySensor } from './visibility-sensor-
|
|
6
|
+
import { l as lib_3 } from './index-5cc7b406.js';
|
|
7
|
+
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
8
|
+
import { S as SeriesSlider } from './SeriesSlider-98b7a870.js';
|
|
9
|
+
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './core.get-iterator-method-e903ff31.js';
|
|
12
12
|
import './_iter-detect-f089461c.js';
|
|
13
13
|
import './_object-pie-133f504a.js';
|
|
14
14
|
import './web.dom.iterable-fdf034f5.js';
|
|
15
|
-
import './events-6c3a7a63.js';
|
|
16
15
|
import 'prop-types';
|
|
17
16
|
import './index-c7e2ac95.js';
|
|
18
|
-
import './index-
|
|
17
|
+
import './index-755f2cc2.js';
|
|
19
18
|
import 'react-dom';
|
|
20
19
|
import './smoothscroll-fa4e3f8c.js';
|
|
21
20
|
import './urlFor.js';
|
|
22
21
|
import './index-0dbff1d1.js';
|
|
23
|
-
import './main-
|
|
22
|
+
import './main-1894c974.js';
|
|
24
23
|
|
|
25
24
|
var usePrevious = function usePrevious(value) {
|
|
26
25
|
var ref = useRef();
|
|
@@ -182,19 +181,19 @@ var SeriesListingDeck = function SeriesListingDeck(props) {
|
|
|
182
181
|
}
|
|
183
182
|
}, [seriesData, setScrolling, count]);
|
|
184
183
|
|
|
185
|
-
return
|
|
184
|
+
return React__default.createElement(
|
|
186
185
|
InfiniteScroll,
|
|
187
186
|
{ dataLength: seriesData && seriesData.length, next: function next() {
|
|
188
187
|
return loadMore();
|
|
189
188
|
}, hasMore: scrolling, scrollThreshold: 0.9 },
|
|
190
|
-
|
|
189
|
+
React__default.createElement(
|
|
191
190
|
'div',
|
|
192
191
|
null,
|
|
193
|
-
seriesData && seriesData.length ?
|
|
192
|
+
seriesData && seriesData.length ? React__default.createElement(
|
|
194
193
|
'div',
|
|
195
194
|
null,
|
|
196
195
|
seriesData.map(function (series, index) {
|
|
197
|
-
return
|
|
196
|
+
return React__default.createElement(
|
|
198
197
|
VisibilitySensor,
|
|
199
198
|
{
|
|
200
199
|
key: series._id ? series._id : index,
|
|
@@ -202,34 +201,34 @@ var SeriesListingDeck = function SeriesListingDeck(props) {
|
|
|
202
201
|
onChange: function onChange(isVisible) {
|
|
203
202
|
isVisible && changePageNumber(currentPage, index, pageview);
|
|
204
203
|
} },
|
|
205
|
-
|
|
204
|
+
React__default.createElement(
|
|
206
205
|
'div',
|
|
207
206
|
{ className: 'mb-5', key: series.name },
|
|
208
|
-
|
|
207
|
+
React__default.createElement(
|
|
209
208
|
'div',
|
|
210
209
|
{ style: { fontSize: '20px', fontWeight: 'bold', borderBottom: '1px solid #eee', margin: '0 .5rem', color: '373a3c' } },
|
|
211
|
-
|
|
210
|
+
React__default.createElement(
|
|
212
211
|
'a',
|
|
213
212
|
{ href: '/' + parentIdentifier + '/' + series.identifier.current },
|
|
214
213
|
series.name
|
|
215
214
|
)
|
|
216
215
|
),
|
|
217
|
-
series.articles && series.articles.length == 0 &&
|
|
216
|
+
series.articles && series.articles.length == 0 && React__default.createElement(
|
|
218
217
|
'p',
|
|
219
218
|
{ className: 'mt-2 ml-2' },
|
|
220
219
|
'Please check back for more content.'
|
|
221
220
|
),
|
|
222
|
-
series.articles && series.articles.length > 0 &&
|
|
221
|
+
series.articles && series.articles.length > 0 && React__default.createElement(SeriesSlider, _extends({}, props, { dataset: series.articles, client: client }))
|
|
223
222
|
)
|
|
224
223
|
);
|
|
225
224
|
})
|
|
226
|
-
) :
|
|
225
|
+
) : React__default.createElement(
|
|
227
226
|
'div',
|
|
228
227
|
null,
|
|
229
|
-
|
|
228
|
+
React__default.createElement(
|
|
230
229
|
'h5',
|
|
231
230
|
null,
|
|
232
|
-
|
|
231
|
+
React__default.createElement(
|
|
233
232
|
'em',
|
|
234
233
|
{ className: 'pl-3' },
|
|
235
234
|
'New content coming soon, please check back later.'
|