@mjhls/mjh-framework 1.0.577-native-nav-v4 → 1.0.577
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 +10 -9
- package/dist/cjs/AD300x250.js +8 -7
- package/dist/cjs/AD300x250x600.js +8 -7
- package/dist/cjs/AD728x90.js +11 -10
- package/dist/cjs/ADFloatingFooter.js +15 -14
- package/dist/cjs/ADFooter.js +9 -8
- package/dist/cjs/ADGutter.js +12 -11
- package/dist/cjs/{ADInfeed-df340285.js → ADInfeed-fdbd80ea.js} +11 -9
- package/dist/cjs/ADSkyscraper.js +12 -11
- package/dist/cjs/ADSponsoredResources.js +11 -10
- package/dist/cjs/ADWebcast.js +11 -10
- package/dist/cjs/ADWelcome.js +16 -15
- package/dist/cjs/{ADlgInfeed-2110d08c.js → ADlgInfeed-ecd2642c.js} +7 -6
- package/dist/cjs/AccordionPanel.js +24 -22
- package/dist/cjs/AdSlot.js +15 -13
- package/dist/cjs/AdSlotsProvider.js +6 -5
- package/dist/cjs/AlphabeticList.js +16 -15
- package/dist/cjs/ArticleQueue.js +115 -112
- package/dist/cjs/Auth.js +227 -139
- package/dist/cjs/{AuthorComponent-cb8b8128.js → AuthorComponent-5bb8f868.js} +13 -12
- package/dist/cjs/{BlockContent-c2168db0.js → BlockContent-8b494587.js} +26 -24
- package/dist/cjs/Breadcrumbs.js +23 -21
- package/dist/cjs/CMEDeck.js +61 -61
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +22 -19
- package/dist/cjs/Column3.js +35 -32
- package/dist/cjs/ConferenceArticleCard.js +34 -33
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +85 -81
- package/dist/cjs/DeckQueue.js +73 -69
- package/dist/cjs/{Dfp-fcdeabc4.js → Dfp-a06d722a.js} +22 -20
- package/dist/cjs/EventsDeck.js +113 -106
- package/dist/cjs/ExternalResources.js +43 -42
- package/dist/cjs/Feature.js +26 -24
- package/dist/cjs/ForbesHero.js +34 -33
- package/dist/cjs/GridContent.js +148 -144
- package/dist/cjs/GridHero.js +35 -34
- package/dist/cjs/GroupDeck.js +38 -37
- package/dist/cjs/HamMagazine.js +118 -113
- package/dist/cjs/Header.js +13 -11
- package/dist/cjs/Hero.js +11 -10
- package/dist/cjs/HighlightenVideo.js +17 -16
- package/dist/cjs/HorizontalHero.js +25 -24
- package/dist/cjs/{InscreenSensor-3aec8492.js → InscreenSensor-1f9f7db4.js} +8 -7
- package/dist/cjs/IssueContentDeck.js +70 -65
- package/dist/cjs/IssueDeck.js +65 -60
- package/dist/cjs/IssueLanding.js +47 -46
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +22 -20
- package/dist/cjs/MasterDeck.js +60 -59
- package/dist/cjs/NavDvm.js +68 -63
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +122 -117
- package/dist/cjs/NavNative.js +115 -108
- package/dist/cjs/NavNormal.js +41 -36
- 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 +134 -132
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +15 -13
- package/dist/cjs/PublicationDeck.js +63 -58
- package/dist/cjs/PublicationLanding.js +85 -81
- package/dist/cjs/QueueDeckExpanded.js +216 -216
- package/dist/cjs/RelatedContent.js +47 -46
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +16 -12
- package/dist/cjs/SideFooter.js +20 -19
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialNavFooter-9a07520f.js → SocialNavFooter-d9ab4d17.js} +18 -17
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +59 -54
- package/dist/cjs/TemplateNormal.js +35 -34
- package/dist/cjs/ThumbnailCard.js +19 -17
- package/dist/cjs/Ustream.js +21 -20
- package/dist/cjs/VerticalHero.js +17 -16
- package/dist/cjs/VideoSeriesFilter.js +10 -10
- package/dist/cjs/VideoSeriesListing.js +39 -38
- package/dist/cjs/View.js +165 -160
- package/dist/cjs/YahooHero.js +30 -29
- package/dist/cjs/YoutubeGroup.js +47 -46
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-5c98aec7.js} +10 -8
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +9 -9
- package/dist/cjs/getSerializers.js +267 -257
- package/dist/cjs/{getTargeting-b15993cb.js → getTargeting-86e68d62.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-fa3cec70.js → index-44481153.js} +14 -14
- package/dist/cjs/{index-fa0fb52c.js → index-8a3fb0bc.js} +13 -10
- package/dist/cjs/{index-3294d3bc.js → index-99edf08a.js} +1 -1
- package/dist/cjs/{index-39beccb3.js → index-b5eb3ff8.js} +18 -18
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
- package/dist/cjs/{index.esm-89fabc47.js → index.esm-55da9104.js} +3 -6
- package/dist/cjs/{index.esm-fbd1f7e9.js → index.esm-99553d28.js} +6 -15
- package/dist/cjs/index.js +28 -28
- package/dist/cjs/{inherits-14962339.js → inherits-4a2f1cc3.js} +4 -4
- package/dist/cjs/{main-88348b15.js → main-c50facd7.js} +89 -53
- package/dist/cjs/{moment-575fe24c.js → moment-ca3bd9fb.js} +10 -8
- package/dist/cjs/{react-social-icons-cd0d9d3b.js → react-social-icons-07939b41.js} +13 -11
- package/dist/cjs/{typeof-1869832c.js → typeof-583cdc4b.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 +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-db7610fb.js → ADInfeed-ed104a2b.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-4bb11153.js → ADlgInfeed-dfde985e.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 +98 -98
- package/dist/esm/Auth.js +207 -123
- package/dist/esm/{AuthorComponent-158226c9.js → AuthorComponent-f67cb027.js} +10 -10
- package/dist/esm/{BlockContent-c409aca5.js → BlockContent-d05b5b23.js} +4 -4
- 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 +29 -29
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +62 -62
- package/dist/esm/DeckQueue.js +47 -47
- package/dist/esm/{Dfp-81a052c2.js → Dfp-0557840a.js} +10 -10
- package/dist/esm/EventsDeck.js +64 -64
- package/dist/esm/ExternalResources.js +36 -36
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +106 -106
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +34 -34
- package/dist/esm/HamMagazine.js +86 -86
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/{InscreenSensor-280b2b10.js → InscreenSensor-3e1fe82a.js} +5 -5
- package/dist/esm/IssueContentDeck.js +41 -41
- package/dist/esm/IssueDeck.js +34 -34
- 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-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +92 -92
- package/dist/esm/NavNative.js +82 -83
- package/dist/esm/NavNormal.js +21 -21
- 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 +72 -72
- 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 +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/SideFooter.js +17 -17
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialNavFooter-4fb16720.js → SocialNavFooter-1a531144.js} +15 -15
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +36 -36
- package/dist/esm/TemplateNormal.js +28 -28
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesListing.js +33 -33
- package/dist/esm/View.js +139 -139
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +37 -37
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-4abff0b1.js} +7 -6
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +2 -2
- package/dist/esm/getSerializers.js +219 -215
- package/dist/esm/{getTargeting-1a0bd08d.js → getTargeting-1f2c61e3.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-3f4dd6f2.js → index-1819118a.js} +7 -9
- package/dist/esm/{index-3849e3fe.js → index-51a80699.js} +18 -18
- package/dist/esm/{index-5f9f807a.js → index-c5fd0af5.js} +4 -4
- package/dist/esm/{index-ef6d5dcf.js → index-fa2ffe86.js} +1 -1
- package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
- package/dist/esm/{index.esm-4b1d94b7.js → index.esm-116f3274.js} +6 -15
- package/dist/esm/{index.esm-9a4c8813.js → index.esm-16e9450c.js} +3 -6
- package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
- package/dist/esm/index.js +24 -24
- package/dist/esm/{inherits-b8e4c697.js → inherits-2758cc14.js} +1 -1
- package/dist/esm/{main-d7ee6151.js → main-b722e2e2.js} +87 -52
- package/dist/esm/{moment-e2f9b20c.js → moment-b6f49411.js} +10 -8
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-3822f1ce.js} +5 -5
- package/dist/esm/{typeof-5f046efd.js → typeof-7e72fee0.js} +1 -1
- package/dist/esm/urlFor.js +2 -2
- 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
|
@@ -1,37 +1,37 @@
|
|
|
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-b6f49411.js';
|
|
4
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
5
5
|
import 'react-bootstrap/Media';
|
|
6
6
|
|
|
7
|
-
/*
|
|
8
|
-
Sample query
|
|
9
|
-
let references = ''
|
|
10
|
-
if(article.taxonomyMapping.length > 0){
|
|
11
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
12
|
-
references = references + `references('${ref._ref}') `
|
|
13
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
14
|
-
references = references + ` && `
|
|
15
|
-
}
|
|
16
|
-
})
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
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] {
|
|
20
|
-
...,
|
|
21
|
-
title,
|
|
22
|
-
summary,
|
|
23
|
-
thumbnail,
|
|
24
|
-
url,
|
|
25
|
-
published,
|
|
26
|
-
authorMapping[]->,
|
|
27
|
-
contentCategory->
|
|
28
|
-
}`
|
|
29
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
30
|
-
|
|
31
|
-
Sample usage
|
|
32
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
33
|
-
|
|
34
|
-
|
|
7
|
+
/*
|
|
8
|
+
Sample query
|
|
9
|
+
let references = ''
|
|
10
|
+
if(article.taxonomyMapping.length > 0){
|
|
11
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
12
|
+
references = references + `references('${ref._ref}') `
|
|
13
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
14
|
+
references = references + ` && `
|
|
15
|
+
}
|
|
16
|
+
})
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
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] {
|
|
20
|
+
...,
|
|
21
|
+
title,
|
|
22
|
+
summary,
|
|
23
|
+
thumbnail,
|
|
24
|
+
url,
|
|
25
|
+
published,
|
|
26
|
+
authorMapping[]->,
|
|
27
|
+
contentCategory->
|
|
28
|
+
}`
|
|
29
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
30
|
+
|
|
31
|
+
Sample usage
|
|
32
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
33
|
+
|
|
34
|
+
|
|
35
35
|
*/
|
|
36
36
|
var RelatedContent = function RelatedContent(props) {
|
|
37
37
|
var client = props.client,
|
|
@@ -44,43 +44,43 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
44
44
|
return builder.image(source);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
return
|
|
47
|
+
return React.createElement(
|
|
48
48
|
'div',
|
|
49
49
|
null,
|
|
50
|
-
|
|
50
|
+
React.createElement(
|
|
51
51
|
'h1',
|
|
52
52
|
{ className: 'mb-4 pb-2', style: { borderBottom: '1px solid #ccc', fontSize: '1.2rem', fontWeight: 'bold', color: '#252525' } },
|
|
53
53
|
'Related Content'
|
|
54
54
|
),
|
|
55
|
-
|
|
55
|
+
React.createElement(
|
|
56
56
|
'div',
|
|
57
57
|
{ className: 'related-articles-container' },
|
|
58
58
|
dataRecord.map(function (article, index) {
|
|
59
|
-
return
|
|
59
|
+
return React.createElement(
|
|
60
60
|
'a',
|
|
61
61
|
{ key: index, href: '/view/' + article.url.current, className: 'related-article' },
|
|
62
|
-
|
|
62
|
+
React.createElement(
|
|
63
63
|
'figure',
|
|
64
64
|
null,
|
|
65
|
-
|
|
65
|
+
React.createElement('img', {
|
|
66
66
|
src: article.thumbnail ? urlFor(article.thumbnail.asset).width(500).url() : defaultImage,
|
|
67
67
|
alt: article.title
|
|
68
68
|
})
|
|
69
69
|
),
|
|
70
|
-
|
|
70
|
+
React.createElement(
|
|
71
71
|
'div',
|
|
72
72
|
{ className: 'related-article-body' },
|
|
73
|
-
|
|
74
|
-
props.showPublished &&
|
|
73
|
+
React.createElement('h4', { dangerouslySetInnerHTML: { __html: article.title } }),
|
|
74
|
+
props.showPublished && React.createElement(
|
|
75
75
|
'p',
|
|
76
76
|
{ className: 'pb-0 mb-0' },
|
|
77
77
|
moment(article.published).format('MMMM DD, YYYY hh:mma')
|
|
78
78
|
),
|
|
79
|
-
props.showAuthor && article.authorMapping && article.authorMapping[0] &&
|
|
79
|
+
props.showAuthor && article.authorMapping && article.authorMapping[0] && React.createElement(
|
|
80
80
|
'p',
|
|
81
81
|
null,
|
|
82
82
|
'By ',
|
|
83
|
-
|
|
83
|
+
React.createElement(
|
|
84
84
|
'b',
|
|
85
85
|
null,
|
|
86
86
|
article.authorMapping[0].displayName
|
|
@@ -89,7 +89,7 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
89
89
|
)
|
|
90
90
|
);
|
|
91
91
|
}),
|
|
92
|
-
|
|
92
|
+
React.createElement(
|
|
93
93
|
'style',
|
|
94
94
|
{ jsx: 'true' },
|
|
95
95
|
'\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 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.createElement(
|
|
33
33
|
'div',
|
|
34
34
|
null,
|
|
35
|
-
|
|
35
|
+
React.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 }\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 }\n }\n '
|
|
39
39
|
),
|
|
40
|
-
|
|
40
|
+
React.createElement(
|
|
41
41
|
'div',
|
|
42
42
|
{ id: 'related_dropdown', className: className },
|
|
43
|
-
|
|
43
|
+
React.createElement(
|
|
44
44
|
DropdownButton,
|
|
45
45
|
{ id: 'related_button', variant: variant, title: 'Related Topics' },
|
|
46
|
-
|
|
46
|
+
React.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.createElement(
|
|
56
56
|
'div',
|
|
57
57
|
null,
|
|
58
|
-
|
|
58
|
+
React.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 }\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 }\n }\n '
|
|
62
62
|
),
|
|
63
|
-
|
|
63
|
+
React.createElement(
|
|
64
64
|
'div',
|
|
65
65
|
{ id: 'related_dropdown', className: className },
|
|
66
|
-
|
|
66
|
+
React.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.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 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.createElement(
|
|
19
19
|
'div',
|
|
20
20
|
{ className: 'rolesDeck' },
|
|
21
|
-
|
|
21
|
+
React.createElement(
|
|
22
22
|
Container,
|
|
23
23
|
null,
|
|
24
|
-
|
|
24
|
+
React.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.createElement(
|
|
30
30
|
Col,
|
|
31
31
|
{ key: index, md: 12, lg: 6, counter: index++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
32
|
-
|
|
32
|
+
React.createElement(
|
|
33
33
|
Card,
|
|
34
34
|
{ className: 'taxonomy-card', style: { position: 'relative', overflow: 'hidden', borderBottom: '3px solid var(--primary)' } },
|
|
35
|
-
|
|
35
|
+
React.createElement(
|
|
36
36
|
Card.Link,
|
|
37
37
|
{ href: row.url },
|
|
38
|
-
|
|
38
|
+
React.createElement(
|
|
39
39
|
Card.Body,
|
|
40
40
|
null,
|
|
41
|
-
|
|
41
|
+
React.createElement(
|
|
42
42
|
Row,
|
|
43
43
|
null,
|
|
44
|
-
|
|
44
|
+
React.createElement(
|
|
45
45
|
Col,
|
|
46
46
|
{ className: 'details-content-wrapper' },
|
|
47
|
-
|
|
47
|
+
React.createElement(
|
|
48
48
|
'div',
|
|
49
49
|
{ className: 'details-wrapper' },
|
|
50
50
|
row.name
|
|
51
51
|
)
|
|
52
52
|
)
|
|
53
53
|
),
|
|
54
|
-
icon &&
|
|
54
|
+
icon && React.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.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
|
@@ -2,7 +2,7 @@ import './_commonjsHelpers-0c4b6f40.js';
|
|
|
2
2
|
import './_to-object-16fd8b46.js';
|
|
3
3
|
import './core.get-iterator-method-f5c0d66a.js';
|
|
4
4
|
import './web.dom.iterable-46c95e52.js';
|
|
5
|
-
import
|
|
5
|
+
import React, { useState } from 'react';
|
|
6
6
|
import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
7
7
|
import Button from 'react-bootstrap/Button';
|
|
8
8
|
import Form from 'react-bootstrap/Form';
|
|
@@ -26,12 +26,12 @@ var Search = function Search(props) {
|
|
|
26
26
|
window.location.href = '/search?searchTerm=' + searchKey;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
return
|
|
29
|
+
return React.createElement(
|
|
30
30
|
Form,
|
|
31
31
|
{ inline: true, onSubmit: function onSubmit(e) {
|
|
32
32
|
return submitSearch(e);
|
|
33
33
|
} },
|
|
34
|
-
|
|
34
|
+
React.createElement(FormControl, {
|
|
35
35
|
className: device === 'mobile' ? 'mobile-search mr-sm-2' : 'mr-sm-2',
|
|
36
36
|
type: 'text',
|
|
37
37
|
placeholder: placeholder,
|
|
@@ -40,14 +40,14 @@ var Search = function Search(props) {
|
|
|
40
40
|
return setSearchKey(e.target.value);
|
|
41
41
|
}
|
|
42
42
|
}),
|
|
43
|
-
|
|
43
|
+
React.createElement(
|
|
44
44
|
Button,
|
|
45
45
|
{ variant: 'secondary', onClick: function onClick(e) {
|
|
46
46
|
return submitSearch(e);
|
|
47
47
|
} },
|
|
48
48
|
btnText
|
|
49
49
|
),
|
|
50
|
-
|
|
50
|
+
React.createElement(
|
|
51
51
|
'style',
|
|
52
52
|
{ jsx: 'true' },
|
|
53
53
|
'\n .mobile-search {\n width: 75%;\n margin-right: 15px;\n }\n '
|
package/dist/esm/SideFooter.js
CHANGED
|
@@ -4,7 +4,7 @@ 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
|
|
7
|
+
import React, { useRef, useEffect } from 'react';
|
|
8
8
|
import 'prop-types';
|
|
9
9
|
import './isSymbol-b7b7434f.js';
|
|
10
10
|
import './stringify-e30bc114.js';
|
|
@@ -13,19 +13,19 @@ import './_set-species-6f64f1c1.js';
|
|
|
13
13
|
import { S as Segment } from './beam-a25bd8fd.js';
|
|
14
14
|
import './_arrayMap-64cbe0e4.js';
|
|
15
15
|
import { g as get_1 } from './get-0eb56363.js';
|
|
16
|
-
import { r as reactSocialIcons_1 } from './react-social-icons-
|
|
16
|
+
import { r as reactSocialIcons_1 } from './react-social-icons-3822f1ce.js';
|
|
17
17
|
|
|
18
18
|
var year = new Date().getFullYear();
|
|
19
19
|
|
|
20
20
|
var renderLink = function renderLink(row) {
|
|
21
21
|
if (row.blank) {
|
|
22
|
-
return
|
|
22
|
+
return React.createElement(
|
|
23
23
|
'a',
|
|
24
24
|
{ href: row.url, needsegmentsupport: row.needSegmentSupport ? 'true' : '', target: '_blank', rel: 'noopener noreferrer' },
|
|
25
25
|
row.title
|
|
26
26
|
);
|
|
27
27
|
}
|
|
28
|
-
return
|
|
28
|
+
return React.createElement(
|
|
29
29
|
'a',
|
|
30
30
|
{ href: row.url, needsegmentsupport: row.needSegmentSupport ? 'true' : '' },
|
|
31
31
|
row.title
|
|
@@ -33,8 +33,8 @@ var renderLink = function renderLink(row) {
|
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
var SideFooter = function SideFooter(props) {
|
|
36
|
-
/*
|
|
37
|
-
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
36
|
+
/*
|
|
37
|
+
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
38
38
|
*/
|
|
39
39
|
var _get = get_1(props, 'cache.siteSettingCache', {}),
|
|
40
40
|
socialLinks = _get.socialLinks,
|
|
@@ -63,24 +63,24 @@ var SideFooter = function SideFooter(props) {
|
|
|
63
63
|
name = copyRightText;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
return
|
|
66
|
+
return React.createElement(
|
|
67
67
|
'div',
|
|
68
68
|
{ className: 'side-footer', ref: sfRef },
|
|
69
|
-
|
|
69
|
+
React.createElement(
|
|
70
70
|
'ul',
|
|
71
71
|
null,
|
|
72
72
|
footerLinks && footerLinks.map(function (row, index) {
|
|
73
|
-
return
|
|
73
|
+
return React.createElement(
|
|
74
74
|
'li',
|
|
75
75
|
{ key: index },
|
|
76
76
|
renderLink(row)
|
|
77
77
|
);
|
|
78
78
|
}),
|
|
79
|
-
|
|
79
|
+
React.createElement(
|
|
80
80
|
'li',
|
|
81
81
|
{ style: { marginTop: '10px' } },
|
|
82
82
|
socialLinks && socialLinks.map(function (row, index) {
|
|
83
|
-
return
|
|
83
|
+
return React.createElement(reactSocialIcons_1, {
|
|
84
84
|
target: row.blank ? '_blank' : '_self',
|
|
85
85
|
rel: 'noopener noreferrer',
|
|
86
86
|
key: index,
|
|
@@ -91,26 +91,26 @@ var SideFooter = function SideFooter(props) {
|
|
|
91
91
|
})
|
|
92
92
|
)
|
|
93
93
|
),
|
|
94
|
-
logo &&
|
|
94
|
+
logo && React.createElement(
|
|
95
95
|
'ul',
|
|
96
96
|
null,
|
|
97
|
-
|
|
97
|
+
React.createElement(
|
|
98
98
|
'li',
|
|
99
99
|
{ className: 'pt-2' },
|
|
100
|
-
|
|
100
|
+
React.createElement(
|
|
101
101
|
'a',
|
|
102
102
|
{ href: 'https://www.mjhlifesciences.com' },
|
|
103
|
-
|
|
103
|
+
React.createElement('img', { style: { maxWidth: '100%' }, alt: 'MJHLS Brand Logo', src: logo })
|
|
104
104
|
)
|
|
105
105
|
)
|
|
106
106
|
),
|
|
107
|
-
|
|
107
|
+
React.createElement(
|
|
108
108
|
'p',
|
|
109
109
|
null,
|
|
110
110
|
'\xA9 ',
|
|
111
111
|
year,
|
|
112
112
|
' MJH Life Sciences',
|
|
113
|
-
|
|
113
|
+
React.createElement(
|
|
114
114
|
'sup',
|
|
115
115
|
null,
|
|
116
116
|
'\u2122'
|
package/dist/esm/SocialIcons.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
|
|
3
3
|
// SVGs for light icons
|
|
4
4
|
var lightIcons = [{
|
|
@@ -51,12 +51,12 @@ var SocialIcons = function SocialIcons(props) {
|
|
|
51
51
|
if (icon) {
|
|
52
52
|
// Creating icon component
|
|
53
53
|
var Icon = function Icon() {
|
|
54
|
-
return
|
|
54
|
+
return React.createElement('p', { dangerouslySetInnerHTML: { __html: icon } });
|
|
55
55
|
};
|
|
56
|
-
return
|
|
56
|
+
return React.createElement(
|
|
57
57
|
'a',
|
|
58
58
|
{ href: link.url, target: link.blank ? '_blank' : '_self', style: { marginRight: '4px' } },
|
|
59
|
-
|
|
59
|
+
React.createElement(Icon, null)
|
|
60
60
|
);
|
|
61
61
|
} else return null;
|
|
62
62
|
});
|
|
@@ -70,12 +70,12 @@ var SocialIcons = function SocialIcons(props) {
|
|
|
70
70
|
if (icon) {
|
|
71
71
|
// Creating icon component
|
|
72
72
|
var Icon = function Icon() {
|
|
73
|
-
return
|
|
73
|
+
return React.createElement('p', { dangerouslySetInnerHTML: { __html: icon } });
|
|
74
74
|
};
|
|
75
|
-
return
|
|
75
|
+
return React.createElement(
|
|
76
76
|
'a',
|
|
77
77
|
{ href: link.url, target: link.blank ? '_blank' : '_self', style: { marginRight: '4px' } },
|
|
78
|
-
|
|
78
|
+
React.createElement(Icon, null)
|
|
79
79
|
);
|
|
80
80
|
} else return null;
|
|
81
81
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { r as reactSocialIcons_1 } from './react-social-icons-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { r as reactSocialIcons_1 } from './react-social-icons-3822f1ce.js';
|
|
3
3
|
|
|
4
4
|
var year = new Date().getFullYear();
|
|
5
5
|
|
|
@@ -7,26 +7,26 @@ var SocialNavFooter = function SocialNavFooter(props) {
|
|
|
7
7
|
var website = props.website,
|
|
8
8
|
showLogo = props.showLogo;
|
|
9
9
|
|
|
10
|
-
return
|
|
10
|
+
return React.createElement(
|
|
11
11
|
'div',
|
|
12
12
|
{ className: 'nav-footer' },
|
|
13
|
-
website && website.footerLinks && website.footerLinks.length &&
|
|
13
|
+
website && website.footerLinks && website.footerLinks.length && React.createElement(
|
|
14
14
|
'ul',
|
|
15
15
|
null,
|
|
16
16
|
website && website.footerLinks.map(function (content, index) {
|
|
17
17
|
if (content.url && content.title) {
|
|
18
|
-
return content.blank ?
|
|
18
|
+
return content.blank ? React.createElement(
|
|
19
19
|
'li',
|
|
20
20
|
{ key: index },
|
|
21
|
-
|
|
21
|
+
React.createElement(
|
|
22
22
|
'a',
|
|
23
23
|
{ target: '_blank', rel: 'noopener noreferrer', href: content.url, className: 'nav-link' },
|
|
24
24
|
content.title
|
|
25
25
|
)
|
|
26
|
-
) :
|
|
26
|
+
) : React.createElement(
|
|
27
27
|
'li',
|
|
28
28
|
{ key: index },
|
|
29
|
-
|
|
29
|
+
React.createElement(
|
|
30
30
|
'a',
|
|
31
31
|
{ href: content.url, className: 'nav-link' },
|
|
32
32
|
content.title
|
|
@@ -35,14 +35,14 @@ var SocialNavFooter = function SocialNavFooter(props) {
|
|
|
35
35
|
} else return null;
|
|
36
36
|
})
|
|
37
37
|
),
|
|
38
|
-
|
|
38
|
+
React.createElement(
|
|
39
39
|
'ul',
|
|
40
40
|
null,
|
|
41
|
-
|
|
41
|
+
React.createElement(
|
|
42
42
|
'li',
|
|
43
43
|
{ style: { marginTop: '10px' }, key: website.footerLinks ? website.footerLinks.length + 1 : 1 },
|
|
44
44
|
website.socialLinks && website.socialLinks.map(function (row, index) {
|
|
45
|
-
return
|
|
45
|
+
return React.createElement(reactSocialIcons_1, {
|
|
46
46
|
target: row.blank ? '_blank' : '_self',
|
|
47
47
|
rel: 'noopener noreferrer',
|
|
48
48
|
key: index,
|
|
@@ -52,17 +52,17 @@ var SocialNavFooter = function SocialNavFooter(props) {
|
|
|
52
52
|
});
|
|
53
53
|
})
|
|
54
54
|
),
|
|
55
|
-
showLogo &&
|
|
55
|
+
showLogo && React.createElement(
|
|
56
56
|
'li',
|
|
57
57
|
null,
|
|
58
|
-
|
|
58
|
+
React.createElement(
|
|
59
59
|
'a',
|
|
60
60
|
{ href: 'https://www.mjhlifesciences.com' },
|
|
61
|
-
|
|
61
|
+
React.createElement('img', { style: { maxWidth: '100%', height: '50px', margin: ' 10px 0', objectFit: 'contain' }, alt: 'MJHLS Brand Logo', src: 'https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' })
|
|
62
62
|
)
|
|
63
63
|
)
|
|
64
64
|
),
|
|
65
|
-
website && website.name &&
|
|
65
|
+
website && website.name && React.createElement(
|
|
66
66
|
'p',
|
|
67
67
|
{ className: 'nav-link' },
|
|
68
68
|
'\xA9 ',
|
package/dist/esm/SocialShare.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import Head from 'next/head';
|
|
3
3
|
import { FacebookShareButton, FacebookIcon, TwitterShareButton, TwitterIcon, LinkedinShareButton, LinkedinIcon, PinterestShareButton, PinterestIcon, EmailShareButton, EmailIcon } from 'react-share';
|
|
4
4
|
|
|
@@ -15,51 +15,51 @@ var SocialShare = function SocialShare(props) {
|
|
|
15
15
|
_props$disableMeta = props.disableMeta,
|
|
16
16
|
disableMeta = _props$disableMeta === undefined ? false : _props$disableMeta;
|
|
17
17
|
|
|
18
|
-
return
|
|
19
|
-
|
|
18
|
+
return React.createElement(
|
|
19
|
+
React.Fragment,
|
|
20
20
|
null,
|
|
21
|
-
!disableMeta &&
|
|
21
|
+
!disableMeta && React.createElement(
|
|
22
22
|
Head,
|
|
23
23
|
null,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
24
|
+
React.createElement('meta', { property: 'og:url', content: shareUrl, key: 'og:url' }),
|
|
25
|
+
React.createElement('meta', { property: 'og:title', content: shareTitle, key: 'og:title' }),
|
|
26
|
+
React.createElement('meta', { property: 'og:image', content: shareImage, key: 'og:image' }),
|
|
27
|
+
React.createElement('meta', { property: 'og:site_name', content: siteName, key: 'og:site_name' }),
|
|
28
|
+
React.createElement('meta', { property: 'og:description', content: shareSummary, key: 'og:description' }),
|
|
29
|
+
React.createElement('meta', { name: 'twitter:card', content: 'summary', key: 'og:card' }),
|
|
30
|
+
React.createElement('meta', { name: 'twitter:title', content: shareTitle, key: 'og:title' }),
|
|
31
|
+
React.createElement('meta', { name: 'twitter:image', content: shareImage, key: 'og:image' }),
|
|
32
|
+
React.createElement('meta', { name: 'twitter:site', content: twitterSiteName, key: 'og:site' }),
|
|
33
|
+
React.createElement('meta', { name: 'twitter:description', content: shareSummary, key: 'og:description' })
|
|
34
34
|
),
|
|
35
|
-
|
|
35
|
+
React.createElement(
|
|
36
36
|
FacebookShareButton,
|
|
37
37
|
{ url: shareUrl, quote: shareTitle },
|
|
38
|
-
|
|
38
|
+
React.createElement(FacebookIcon, { size: size, round: true })
|
|
39
39
|
),
|
|
40
|
-
|
|
40
|
+
React.createElement(
|
|
41
41
|
TwitterShareButton,
|
|
42
42
|
{ url: shareUrl, title: shareTitle, via: shareVia },
|
|
43
|
-
|
|
43
|
+
React.createElement(TwitterIcon, { size: size, round: true })
|
|
44
44
|
),
|
|
45
|
-
|
|
45
|
+
React.createElement(
|
|
46
46
|
LinkedinShareButton,
|
|
47
47
|
{ url: shareUrl, title: shareTitle, via: shareVia },
|
|
48
|
-
|
|
48
|
+
React.createElement(LinkedinIcon, { size: size, round: true })
|
|
49
49
|
),
|
|
50
|
-
!props.hidePinterest &&
|
|
50
|
+
!props.hidePinterest && React.createElement(
|
|
51
51
|
PinterestShareButton,
|
|
52
52
|
{ url: shareUrl, media: shareImage, description: shareSummary },
|
|
53
|
-
|
|
53
|
+
React.createElement(PinterestIcon, { size: size, round: true })
|
|
54
54
|
),
|
|
55
|
-
|
|
55
|
+
React.createElement(
|
|
56
56
|
EmailShareButton,
|
|
57
57
|
{ url: shareUrl, subject: shareSubject, body: shareSummary },
|
|
58
|
-
|
|
58
|
+
React.createElement(EmailIcon, { size: size, round: true })
|
|
59
59
|
)
|
|
60
60
|
);
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
var SocialShare$1 =
|
|
63
|
+
var SocialShare$1 = React.memo(SocialShare);
|
|
64
64
|
|
|
65
65
|
export default SocialShare$1;
|