@mjhls/mjh-framework 1.0.537 → 1.0.539
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 +1 -1
- package/dist/cjs/AD300x250.js +3 -3
- package/dist/cjs/AD300x250x600.js +3 -3
- package/dist/cjs/AD728x90.js +5 -5
- package/dist/cjs/ADFloatingFooter.js +5 -5
- package/dist/cjs/ADGutter.js +2 -2
- package/dist/cjs/ADSponsoredResources.js +2 -2
- package/dist/cjs/ADWebcast.js +2 -2
- package/dist/cjs/ADWelcome.js +2 -2
- package/dist/cjs/AccordionPanel.js +2 -2
- package/dist/cjs/AdSlot.js +2 -2
- package/dist/cjs/AdSlotsProvider.js +1 -1
- package/dist/cjs/ArticleQueue.js +10 -10
- package/dist/cjs/Auth.js +507 -256
- package/dist/cjs/{BlockContent-77f81ffc.js → BlockContent-f942392e.js} +1 -1
- package/dist/cjs/CMEDeck.js +5 -5
- package/dist/cjs/Column3.js +4 -4
- package/dist/cjs/ConferenceArticleCard.js +17 -17
- package/dist/cjs/DeckContent.js +15 -15
- package/dist/cjs/DeckQueue.js +6 -6
- package/dist/cjs/{Dfp-fcdeabc4.js → Dfp-fbe32b96.js} +1 -1
- package/dist/cjs/EventsDeck.js +22 -22
- package/dist/cjs/ExternalResources.js +6 -6
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +2 -2
- package/dist/cjs/GridContent.js +10 -10
- package/dist/cjs/GridHero.js +2 -2
- package/dist/cjs/GroupDeck.js +5 -5
- package/dist/cjs/HamMagazine.js +218 -39
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalHero.js +5 -5
- package/dist/cjs/IssueContentDeck.js +2 -2
- package/dist/cjs/IssueDeck.js +2 -2
- package/dist/cjs/IssueLanding.js +36 -36
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +2 -2
- package/dist/cjs/MasterDeck.js +20 -23
- package/dist/cjs/NavDvm.js +214 -14
- package/dist/cjs/NavMagazine.js +212 -25
- package/dist/cjs/NavNative.js +201 -24
- package/dist/cjs/NavNormal.js +229 -10
- package/dist/cjs/OncliveHero.js +4 -4
- package/dist/cjs/OncliveLargeHero.js +2 -2
- package/dist/cjs/PartnerDetailListing.js +14 -1210
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/PublicationLanding.js +33 -33
- package/dist/cjs/QueueDeckExpanded.js +9 -9
- package/dist/cjs/RelatedContent.js +30 -30
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +9 -9
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +7 -7
- package/dist/cjs/VerticalHero.js +2 -2
- package/dist/cjs/VideoSeriesFilter.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +6 -6
- package/dist/cjs/View.js +38 -38
- package/dist/cjs/YahooHero.js +2 -2
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +6 -355
- package/dist/cjs/getSerializers.js +449 -437
- package/dist/cjs/{getTargeting-3d208b98.js → getTargeting-b15993cb.js} +11 -11
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{iconBase-637d3f1e.js → iconBase-68959171.js} +1 -0
- package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
- package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
- package/dist/cjs/{index-fa3cec70.js → index-f7ee1612.js} +4 -6
- package/dist/cjs/{index.es-9110add6.js → index.es-ab3f2690.js} +3 -1
- package/dist/cjs/index.esm-0e5c6a9e.js +11 -0
- package/dist/cjs/{index.esm-c0d8b44b.js → index.esm-66ffa47a.js} +1 -1
- package/dist/cjs/{index.esm-25423c2f.js → index.esm-89fabc47.js} +1 -1
- package/dist/cjs/{index.esm-fcdbd2c6.js → index.esm-fbd1f7e9.js} +1 -1
- package/dist/cjs/index.js +23 -21
- package/dist/cjs/{main-88348b15.js → main-bc4db521.js} +66 -35
- package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
- package/dist/cjs/urlFor.js +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +3 -3
- package/dist/esm/AD300x250x600.js +3 -3
- package/dist/esm/AD728x90.js +5 -5
- package/dist/esm/ADFloatingFooter.js +5 -5
- package/dist/esm/ADGutter.js +2 -2
- package/dist/esm/ADSponsoredResources.js +2 -2
- package/dist/esm/ADWebcast.js +2 -2
- package/dist/esm/ADWelcome.js +2 -2
- package/dist/esm/AccordionPanel.js +2 -2
- package/dist/esm/AdSlot.js +2 -2
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/ArticleQueue.js +10 -10
- package/dist/esm/Auth.js +499 -248
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-a614acdf.js} +1 -1
- package/dist/esm/CMEDeck.js +5 -5
- package/dist/esm/Column3.js +4 -4
- package/dist/esm/ConferenceArticleCard.js +17 -17
- package/dist/esm/DeckContent.js +15 -15
- package/dist/esm/DeckQueue.js +6 -6
- package/dist/esm/{Dfp-81a052c2.js → Dfp-ae9336e2.js} +1 -1
- package/dist/esm/EventsDeck.js +22 -22
- package/dist/esm/ExternalResources.js +6 -6
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +2 -2
- package/dist/esm/GridContent.js +10 -10
- package/dist/esm/GridHero.js +2 -2
- package/dist/esm/GroupDeck.js +5 -5
- package/dist/esm/HamMagazine.js +218 -39
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalHero.js +4 -4
- package/dist/esm/IssueContentDeck.js +2 -2
- package/dist/esm/IssueDeck.js +2 -2
- package/dist/esm/IssueLanding.js +36 -36
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +2 -2
- package/dist/esm/MasterDeck.js +20 -23
- package/dist/esm/NavDvm.js +215 -15
- package/dist/esm/NavMagazine.js +212 -25
- package/dist/esm/NavNative.js +201 -24
- package/dist/esm/NavNormal.js +230 -11
- package/dist/esm/OncliveHero.js +4 -4
- package/dist/esm/OncliveLargeHero.js +2 -2
- package/dist/esm/PartnerDetailListing.js +12 -1208
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/PublicationLanding.js +33 -33
- package/dist/esm/QueueDeckExpanded.js +9 -9
- package/dist/esm/RelatedContent.js +30 -30
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +9 -9
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +5 -5
- package/dist/esm/VerticalHero.js +2 -2
- package/dist/esm/VideoSeriesFilter.js +1 -1
- package/dist/esm/VideoSeriesListing.js +6 -6
- package/dist/esm/View.js +13 -13
- package/dist/esm/YahooHero.js +2 -2
- package/dist/esm/YoutubeGroup.js +5 -5
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +6 -355
- package/dist/esm/getSerializers.js +449 -437
- package/dist/esm/{getTargeting-1f2c61e3.js → getTargeting-1a0bd08d.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{iconBase-6ee2f2fb.js → iconBase-602d52fe.js} +1 -1
- package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
- package/dist/esm/{index-3f4dd6f2.js → index-93ec3c59.js} +4 -6
- package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
- package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
- package/dist/esm/index.esm-16536e81.js +9 -0
- package/dist/esm/{index.esm-b97cf389.js → index.esm-4b1d94b7.js} +1 -1
- package/dist/esm/{index.esm-a7ad65ba.js → index.esm-9a4c8813.js} +1 -1
- package/dist/esm/{index.esm-9d6faf80.js → index.esm-b08f4b04.js} +1 -1
- package/dist/esm/index.js +21 -19
- package/dist/esm/{main-d7ee6151.js → main-7255814e.js} +65 -34
- package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
- package/dist/esm/urlFor.js +2 -2
- package/package.json +107 -107
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/esm/index-db3bb315.js +0 -207
- /package/dist/cjs/{ADInfeed-d8e47444.js → ADInfeed-3404200f.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-947c3a47.js → ADlgInfeed-2611e1a9.js} +0 -0
- /package/dist/esm/{ADInfeed-2eb234ae.js → ADInfeed-27674dc6.js} +0 -0
- /package/dist/esm/{ADlgInfeed-17c13711.js → ADlgInfeed-43060a77.js} +0 -0
package/dist/esm/PdfDownload.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import './iconBase-
|
|
3
|
-
import { b as MdPictureAsPdf } from './index.esm-
|
|
2
|
+
import './iconBase-602d52fe.js';
|
|
3
|
+
import { b as MdPictureAsPdf } from './index.esm-b08f4b04.js';
|
|
4
4
|
|
|
5
5
|
var PdfDownload = function PdfDownload(props) {
|
|
6
6
|
return React__default.createElement(
|
|
@@ -5,7 +5,7 @@ import Row from 'react-bootstrap/Row';
|
|
|
5
5
|
import Col from 'react-bootstrap/Col';
|
|
6
6
|
import Card from 'react-bootstrap/Card';
|
|
7
7
|
import 'react-dom';
|
|
8
|
-
import { i as imageUrlBuilder } from './index-
|
|
8
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
9
9
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
10
10
|
import { l as lodash } from './lodash-17fdfebb.js';
|
|
11
11
|
import Button from 'react-bootstrap/Button';
|
|
@@ -367,39 +367,39 @@ module.exports = { "default": set, __esModule: true };
|
|
|
367
367
|
|
|
368
368
|
var _Set = unwrapExports(set$1);
|
|
369
369
|
|
|
370
|
-
/* usage & query
|
|
371
|
-
const Publication = (props) => {
|
|
372
|
-
const { cache, pub, year } = props
|
|
373
|
-
|
|
374
|
-
const targeting = {
|
|
375
|
-
content_placement: [`/journals/${pub.identifier.current}`],
|
|
376
|
-
document_url: [`/journals/${pub.identifier.current}`],
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
return (
|
|
380
|
-
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
381
|
-
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
382
|
-
</Shell>
|
|
383
|
-
)
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
Publication.getInitialProps = async (ctx) => {
|
|
387
|
-
const { query } = ctx
|
|
388
|
-
const {
|
|
389
|
-
query: { year },
|
|
390
|
-
} = ctx
|
|
391
|
-
const pub = await client.fetch(getQuery('publication'), query)
|
|
392
|
-
const builder = imageUrlBuilder(client)
|
|
393
|
-
const urlFor = (source) => {
|
|
394
|
-
return builder.image(source)
|
|
395
|
-
}
|
|
396
|
-
pub.issues.map((issue) => {
|
|
397
|
-
issue.thumbnail = urlFor(issue.thumbnail).url()
|
|
398
|
-
})
|
|
399
|
-
return { pub, year }
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
export default Publication
|
|
370
|
+
/* usage & query
|
|
371
|
+
const Publication = (props) => {
|
|
372
|
+
const { cache, pub, year } = props
|
|
373
|
+
|
|
374
|
+
const targeting = {
|
|
375
|
+
content_placement: [`/journals/${pub.identifier.current}`],
|
|
376
|
+
document_url: [`/journals/${pub.identifier.current}`],
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
return (
|
|
380
|
+
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
381
|
+
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
382
|
+
</Shell>
|
|
383
|
+
)
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
Publication.getInitialProps = async (ctx) => {
|
|
387
|
+
const { query } = ctx
|
|
388
|
+
const {
|
|
389
|
+
query: { year },
|
|
390
|
+
} = ctx
|
|
391
|
+
const pub = await client.fetch(getQuery('publication'), query)
|
|
392
|
+
const builder = imageUrlBuilder(client)
|
|
393
|
+
const urlFor = (source) => {
|
|
394
|
+
return builder.image(source)
|
|
395
|
+
}
|
|
396
|
+
pub.issues.map((issue) => {
|
|
397
|
+
issue.thumbnail = urlFor(issue.thumbnail).url()
|
|
398
|
+
})
|
|
399
|
+
return { pub, year }
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
export default Publication
|
|
403
403
|
*/
|
|
404
404
|
|
|
405
405
|
var PublicationLanding = function PublicationLanding(props) {
|
|
@@ -9,19 +9,19 @@ import './_object-pie-33c40e79.js';
|
|
|
9
9
|
import { _ as _extends } from './extends-6e00b262.js';
|
|
10
10
|
import './web.dom.iterable-46c95e52.js';
|
|
11
11
|
import React__default, { useEffect, useState, useRef } from 'react';
|
|
12
|
-
import { l as lib_3 } from './index-
|
|
12
|
+
import { l as lib_3 } from './index-93ec3c59.js';
|
|
13
13
|
import 'prop-types';
|
|
14
14
|
import 'react-bootstrap/Card';
|
|
15
|
-
import { m as moment } from './moment-
|
|
15
|
+
import { m as moment } from './moment-12415288.js';
|
|
16
16
|
import { useRouter } from 'next/router';
|
|
17
17
|
import './isSymbol-b7b7434f.js';
|
|
18
18
|
import './debounce-048d9cb6.js';
|
|
19
|
-
import { I as InfiniteScroll } from './index.es-
|
|
19
|
+
import { I as InfiniteScroll } from './index.es-938a3a58.js';
|
|
20
20
|
import 'react-dom';
|
|
21
21
|
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
22
|
-
import { i as imageUrlBuilder } from './index-
|
|
22
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
23
23
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
24
|
-
import { m as
|
|
24
|
+
import { m as main_39 } from './main-7255814e.js';
|
|
25
25
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
26
26
|
import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
27
27
|
import './stringify-e30bc114.js';
|
|
@@ -29,9 +29,9 @@ import './asyncToGenerator-0379e924.js';
|
|
|
29
29
|
import './_set-species-6f64f1c1.js';
|
|
30
30
|
import './beam-a25bd8fd.js';
|
|
31
31
|
import './AdSlot.js';
|
|
32
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
32
|
+
import { A as ADInfeed } from './ADInfeed-27674dc6.js';
|
|
33
33
|
import { l as lodash } from './lodash-17fdfebb.js';
|
|
34
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
34
|
+
import { A as ADlgInfeed } from './ADlgInfeed-43060a77.js';
|
|
35
35
|
import { A as AuthorComponent } from './AuthorComponent-158226c9.js';
|
|
36
36
|
import { Container, Media } from 'react-bootstrap';
|
|
37
37
|
|
|
@@ -462,7 +462,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
462
462
|
} else if (article._type === 'brandInsightAd' && article.adUnit) {
|
|
463
463
|
return React__default.createElement(ADInfeed, { index: index, infeedAd: article });
|
|
464
464
|
}
|
|
465
|
-
if (
|
|
465
|
+
if (main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0) {
|
|
466
466
|
return renderMobileAd(index, numberOfItemsBeforeAd, rightItems);
|
|
467
467
|
}
|
|
468
468
|
|
|
@@ -790,7 +790,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
790
790
|
} else if (article._type === 'brandInsightAd' && article.adUnit) {
|
|
791
791
|
return React__default.createElement(ADInfeed, { index: index, infeedAd: article });
|
|
792
792
|
}
|
|
793
|
-
if (
|
|
793
|
+
if (main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0) {
|
|
794
794
|
return renderMobileAd(index, numberOfItemsBeforeAd, rightItems);
|
|
795
795
|
}
|
|
796
796
|
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { m as moment } from './moment-
|
|
4
|
-
import { i as imageUrlBuilder } from './index-
|
|
3
|
+
import { m as moment } from './moment-12415288.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,
|
|
@@ -14,16 +14,16 @@ 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) {
|
package/dist/esm/SideFooter.js
CHANGED
|
@@ -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,
|
package/dist/esm/TaxonomyCard.js
CHANGED
|
@@ -9,9 +9,9 @@ import Row from 'react-bootstrap/Row';
|
|
|
9
9
|
import Col from 'react-bootstrap/Col';
|
|
10
10
|
import Card from 'react-bootstrap/Card';
|
|
11
11
|
import 'react-dom';
|
|
12
|
-
import { i as imageUrlBuilder } from './index-
|
|
12
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
13
13
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
14
|
-
import { B as BlockContent } from './BlockContent-
|
|
14
|
+
import { B as BlockContent } from './BlockContent-a614acdf.js';
|
|
15
15
|
import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
|
|
16
16
|
|
|
17
17
|
var TaxonomyCard = function TaxonomyCard(props) {
|
|
@@ -5,7 +5,7 @@ import './_library-528f1934.js';
|
|
|
5
5
|
import './_iter-detect-6e099a34.js';
|
|
6
6
|
import './web.dom.iterable-46c95e52.js';
|
|
7
7
|
import React__default, { useState, useEffect } from 'react';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-93ec3c59.js';
|
|
9
9
|
import 'prop-types';
|
|
10
10
|
import Container from 'react-bootstrap/Container';
|
|
11
11
|
import 'react-bootstrap/Row';
|
|
@@ -13,7 +13,7 @@ import 'react-bootstrap/Col';
|
|
|
13
13
|
import { useRouter } from 'next/router';
|
|
14
14
|
import './isSymbol-b7b7434f.js';
|
|
15
15
|
import './debounce-048d9cb6.js';
|
|
16
|
-
import './main-
|
|
16
|
+
import './main-7255814e.js';
|
|
17
17
|
import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
18
18
|
import './stringify-e30bc114.js';
|
|
19
19
|
import './asyncToGenerator-0379e924.js';
|
|
@@ -24,8 +24,8 @@ import './_arrayMap-64cbe0e4.js';
|
|
|
24
24
|
import './get-0eb56363.js';
|
|
25
25
|
import './react-social-icons-a7d5c5c7.js';
|
|
26
26
|
import 'react-bootstrap';
|
|
27
|
-
import './iconBase-
|
|
28
|
-
import './index.esm-
|
|
27
|
+
import './iconBase-602d52fe.js';
|
|
28
|
+
import './index.esm-4b1d94b7.js';
|
|
29
29
|
import 'react-bootstrap/Button';
|
|
30
30
|
import { Column1 } from './Column1.js';
|
|
31
31
|
import './SideFooter.js';
|
|
@@ -42,12 +42,12 @@ import Header from './Header.js';
|
|
|
42
42
|
import 'react-bootstrap/Nav';
|
|
43
43
|
import 'react-bootstrap/Navbar';
|
|
44
44
|
import 'react-bootstrap/NavDropdown';
|
|
45
|
-
import './index.esm-
|
|
46
|
-
import 'react-bootstrap/Form';
|
|
47
|
-
import 'react-bootstrap/FormControl';
|
|
48
|
-
import './Search.js';
|
|
45
|
+
import './index.esm-b08f4b04.js';
|
|
49
46
|
import './NavFooter-e27bd93b.js';
|
|
50
47
|
import './SocialNavFooter-4fb16720.js';
|
|
48
|
+
import './index.esm-16536e81.js';
|
|
49
|
+
import 'react-bootstrap/Form';
|
|
50
|
+
import 'react-bootstrap/FormControl';
|
|
51
51
|
import MagazineNav from './NavMagazine.js';
|
|
52
52
|
import { NavNative } from './NavNative.js';
|
|
53
53
|
import { NavNormal } from './NavNormal.js';
|
|
@@ -92,7 +92,7 @@ var TemplateNormal = function TemplateNormal(props) {
|
|
|
92
92
|
var navigation = function navigation() {
|
|
93
93
|
switch (config.navComponent) {
|
|
94
94
|
case 'normal':
|
|
95
|
-
return React__default.createElement(NavNormal, { logo: website.logo, dataObject: config.navItems });
|
|
95
|
+
return React__default.createElement(NavNormal, { logo: website.logo, dataObject: config.navItems, website: website });
|
|
96
96
|
case 'magazine':
|
|
97
97
|
return React__default.createElement(MagazineNav, { logo: website.logo, mobileLogo: website.mobileLogo, dataObject: config.navItems, subNav: config.leftItems, website: website });
|
|
98
98
|
case 'native':
|
|
@@ -2,7 +2,7 @@ import './_commonjsHelpers-0c4b6f40.js';
|
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import 'prop-types';
|
|
4
4
|
import 'react-dom';
|
|
5
|
-
import { i as imageUrlBuilder } from './index-
|
|
5
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
6
6
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
7
7
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
8
8
|
import Media from 'react-bootstrap/Media';
|
package/dist/esm/Ustream.js
CHANGED
|
@@ -3,11 +3,11 @@ import './_to-object-16fd8b46.js';
|
|
|
3
3
|
import './core.get-iterator-method-f5c0d66a.js';
|
|
4
4
|
import './web.dom.iterable-46c95e52.js';
|
|
5
5
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
6
|
-
import { m as
|
|
6
|
+
import { m as main_39 } from './main-7255814e.js';
|
|
7
7
|
import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
8
|
-
import './iconBase-
|
|
9
|
-
import { d as IoIosOpen } from './index.esm-
|
|
10
|
-
import { F as FaRegWindowClose } from './index.esm-
|
|
8
|
+
import './iconBase-602d52fe.js';
|
|
9
|
+
import { d as IoIosOpen } from './index.esm-4b1d94b7.js';
|
|
10
|
+
import { F as FaRegWindowClose } from './index.esm-9a4c8813.js';
|
|
11
11
|
|
|
12
12
|
var Ustream = function Ustream(_ref) {
|
|
13
13
|
var _ref$width = _ref.width,
|
|
@@ -64,7 +64,7 @@ var Ustream = function Ustream(_ref) {
|
|
|
64
64
|
} catch (err) {}
|
|
65
65
|
}, []);
|
|
66
66
|
//return nothing if mobile
|
|
67
|
-
if (
|
|
67
|
+
if (main_39) {
|
|
68
68
|
return null;
|
|
69
69
|
}
|
|
70
70
|
return React__default.createElement(
|
package/dist/esm/VerticalHero.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import './moment-
|
|
4
|
-
import { i as imageUrlBuilder } from './index-
|
|
3
|
+
import './moment-12415288.js';
|
|
4
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
5
5
|
|
|
6
6
|
var VerticalHero = function VerticalHero(props) {
|
|
7
7
|
var client = props.client;
|
|
@@ -5,7 +5,7 @@ import './_library-528f1934.js';
|
|
|
5
5
|
import './_iter-detect-6e099a34.js';
|
|
6
6
|
import './web.dom.iterable-46c95e52.js';
|
|
7
7
|
import React__default, { useState, useEffect } from 'react';
|
|
8
|
-
import { m as moment } from './moment-
|
|
8
|
+
import { m as moment } from './moment-12415288.js';
|
|
9
9
|
import { withRouter } from 'next/router';
|
|
10
10
|
import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
11
11
|
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-0379e924.js';
|
|
@@ -10,23 +10,23 @@ import './web.dom.iterable-46c95e52.js';
|
|
|
10
10
|
import './typeof-5f046efd.js';
|
|
11
11
|
import './_is-array-dd5523d6.js';
|
|
12
12
|
import React__default from 'react';
|
|
13
|
-
import { l as lib_3 } from './index-
|
|
13
|
+
import { l as lib_3 } from './index-93ec3c59.js';
|
|
14
14
|
import 'prop-types';
|
|
15
15
|
import Container from 'react-bootstrap/Container';
|
|
16
|
-
import './moment-
|
|
16
|
+
import './moment-12415288.js';
|
|
17
17
|
import { withRouter } from 'next/router';
|
|
18
18
|
import './isSymbol-b7b7434f.js';
|
|
19
19
|
import { d as debounce_1 } from './debounce-048d9cb6.js';
|
|
20
|
-
import { I as InfiniteScroll } from './index.es-
|
|
20
|
+
import { I as InfiniteScroll } from './index.es-938a3a58.js';
|
|
21
21
|
import 'react-dom';
|
|
22
22
|
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
23
|
-
import './index-
|
|
23
|
+
import './index-51a80699.js';
|
|
24
24
|
import './index-5f9f807a.js';
|
|
25
25
|
import './slicedToArray-f1e40361.js';
|
|
26
26
|
import './smoothscroll-4b699764.js';
|
|
27
27
|
import YoutubeGroup from './YoutubeGroup.js';
|
|
28
|
-
import './iconBase-
|
|
29
|
-
import { I as IoIosArrowForward } from './index.esm-
|
|
28
|
+
import './iconBase-602d52fe.js';
|
|
29
|
+
import { I as IoIosArrowForward } from './index.esm-4b1d94b7.js';
|
|
30
30
|
|
|
31
31
|
var VideoSeriesListing = function (_React$Component) {
|
|
32
32
|
_inherits(VideoSeriesListing, _React$Component);
|
package/dist/esm/View.js
CHANGED
|
@@ -13,17 +13,17 @@ import './web.dom.iterable-46c95e52.js';
|
|
|
13
13
|
import { _ as _typeof } from './typeof-5f046efd.js';
|
|
14
14
|
import './_is-array-dd5523d6.js';
|
|
15
15
|
import React__default, { useState, useEffect } from 'react';
|
|
16
|
-
import { l as lib_3 } from './index-
|
|
16
|
+
import { l as lib_3 } from './index-93ec3c59.js';
|
|
17
17
|
import 'prop-types';
|
|
18
|
-
import { m as moment } from './moment-
|
|
18
|
+
import { m as moment } from './moment-12415288.js';
|
|
19
19
|
import { useRouter } from 'next/router';
|
|
20
20
|
import './isSymbol-b7b7434f.js';
|
|
21
21
|
import './debounce-048d9cb6.js';
|
|
22
|
-
import { I as InfiniteScroll } from './index.es-
|
|
22
|
+
import { I as InfiniteScroll } from './index.es-938a3a58.js';
|
|
23
23
|
import 'react-dom';
|
|
24
|
-
import './index-
|
|
24
|
+
import './index-51a80699.js';
|
|
25
25
|
import './index-5f9f807a.js';
|
|
26
|
-
import { m as
|
|
26
|
+
import { m as main_39 } from './main-7255814e.js';
|
|
27
27
|
import './entities-7cc3bf45.js';
|
|
28
28
|
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
29
29
|
import { _ as _JSON$stringify } from './stringify-e30bc114.js';
|
|
@@ -31,7 +31,7 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-037
|
|
|
31
31
|
import './_set-species-6f64f1c1.js';
|
|
32
32
|
import './beam-a25bd8fd.js';
|
|
33
33
|
import DFPAdSlot from './AdSlot.js';
|
|
34
|
-
import { B as BlockContent } from './BlockContent-
|
|
34
|
+
import { B as BlockContent } from './BlockContent-a614acdf.js';
|
|
35
35
|
import './smoothscroll-4b699764.js';
|
|
36
36
|
import './GroupDeck.js';
|
|
37
37
|
import 'react-bootstrap';
|
|
@@ -51,7 +51,7 @@ import { I as InscreenSensor } from './InscreenSensor-280b2b10.js';
|
|
|
51
51
|
import getKeywords from './getKeywords.js';
|
|
52
52
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
53
53
|
import getQuery from './getQuery.js';
|
|
54
|
-
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-
|
|
54
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-1a0bd08d.js';
|
|
55
55
|
import urlFor from './urlFor.js';
|
|
56
56
|
|
|
57
57
|
var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
@@ -152,9 +152,9 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
152
152
|
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
153
153
|
thumbnailUrl && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
154
154
|
!thumbnailUrl && React__default.createElement('p', {
|
|
155
|
-
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' :
|
|
155
|
+
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_39 ? 'left' : 'right', marginTop: '.25rem' },
|
|
156
156
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
157
|
-
|
|
157
|
+
main_39 && !thumbnailUrl && React__default.createElement(
|
|
158
158
|
'style',
|
|
159
159
|
{ jsx: 'true' },
|
|
160
160
|
'\n a.doc-group {\n display: block !important;\n padding: 0!important;\n }\n '
|
|
@@ -774,7 +774,7 @@ var Article = function Article(props) {
|
|
|
774
774
|
React__default.createElement(
|
|
775
775
|
'div',
|
|
776
776
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
777
|
-
|
|
777
|
+
main_39 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
778
778
|
if (index === 0) {
|
|
779
779
|
return React__default.createElement(
|
|
780
780
|
'div',
|
|
@@ -829,7 +829,7 @@ var Article = function Article(props) {
|
|
|
829
829
|
renderIsiContent(props.article)
|
|
830
830
|
)
|
|
831
831
|
),
|
|
832
|
-
|
|
832
|
+
main_39 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
833
833
|
if (index > 0) {
|
|
834
834
|
return React__default.createElement(
|
|
835
835
|
'div',
|
|
@@ -926,7 +926,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
926
926
|
});
|
|
927
927
|
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
928
928
|
|
|
929
|
-
if (!
|
|
929
|
+
if (!main_39) {
|
|
930
930
|
lib_3.getGoogletag().then(function (googletag) {
|
|
931
931
|
if (window.googletag && googletag.pubadsReady) {
|
|
932
932
|
var slots = googletag.pubads().getSlots();
|
|
@@ -944,7 +944,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
944
944
|
});
|
|
945
945
|
}
|
|
946
946
|
//Refresh leaderboard ad on mobile
|
|
947
|
-
if (
|
|
947
|
+
if (main_39) {
|
|
948
948
|
var leaderboardSlotId = '';
|
|
949
949
|
lib_3.getGoogletag().then(function (googletag) {
|
|
950
950
|
if (window.googletag && googletag.pubadsReady) {
|
package/dist/esm/YahooHero.js
CHANGED
|
@@ -4,9 +4,9 @@ import './core.get-iterator-method-f5c0d66a.js';
|
|
|
4
4
|
import './web.dom.iterable-46c95e52.js';
|
|
5
5
|
import React__default from 'react';
|
|
6
6
|
import 'prop-types';
|
|
7
|
-
import { m as moment } from './moment-
|
|
7
|
+
import { m as moment } from './moment-12415288.js';
|
|
8
8
|
import 'react-dom';
|
|
9
|
-
import { i as imageUrlBuilder } from './index-
|
|
9
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
10
10
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
11
11
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
12
12
|
import './slicedToArray-f1e40361.js';
|
package/dist/esm/YoutubeGroup.js
CHANGED
|
@@ -9,15 +9,15 @@ import './_is-array-dd5523d6.js';
|
|
|
9
9
|
import React__default, { useRef, useState, useEffect } from 'react';
|
|
10
10
|
import 'prop-types';
|
|
11
11
|
import 'react-dom';
|
|
12
|
-
import { i as imageUrlBuilder } from './index-
|
|
12
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
13
13
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
14
14
|
import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
15
15
|
import { s as smoothscroll, g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
16
16
|
|
|
17
|
-
/*
|
|
18
|
-
GROQ query -
|
|
19
|
-
accepts an array of title, URL
|
|
20
|
-
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
17
|
+
/*
|
|
18
|
+
GROQ query -
|
|
19
|
+
accepts an array of title, URL
|
|
20
|
+
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
var YoutubeGroup = function YoutubeGroup(props) {
|
package/dist/esm/getQuery.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import { m as moment } from './moment-
|
|
2
|
+
import { m as moment } from './moment-12415288.js';
|
|
3
3
|
|
|
4
4
|
var getQuery = function getQuery(type) {
|
|
5
5
|
var conditions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|