@mjhls/mjh-framework 1.0.604-hamMagazine-v9 → 1.0.604
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/ADFloatingFooter.js +3 -3
- package/dist/cjs/AccordionPanel.js +1 -1
- package/dist/cjs/ArticleQueue.js +3 -3
- package/dist/cjs/Auth.js +5 -5
- package/dist/cjs/{BlockContent-c2168db0.js → BlockContent-77f81ffc.js} +1 -1
- package/dist/cjs/ConferenceArticleCard.js +16 -16
- package/dist/cjs/DeckContent.js +9 -9
- package/dist/cjs/DeckQueue.js +1 -1
- package/dist/cjs/EventsDeck.js +17 -17
- package/dist/cjs/ExternalResources.js +3 -3
- package/dist/cjs/Feature.js +1 -1
- package/dist/cjs/ForbesHero.js +1 -1
- package/dist/cjs/GridContent.js +2 -2
- package/dist/cjs/GridHero.js +1 -1
- package/dist/cjs/GroupDeck.js +5 -5
- package/dist/cjs/HamMagazine.js +35 -225
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalHero.js +1 -1
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/IssueLanding.js +31 -31
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/MasterDeck.js +10 -10
- package/dist/cjs/NavMagazine.js +14 -13
- package/dist/cjs/NavNative.js +12 -11
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/OncliveLargeHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +6 -6
- package/dist/cjs/PublicationDeck.js +2 -2
- package/dist/cjs/PublicationLanding.js +33 -33
- package/dist/cjs/QueueDeckExpanded.js +2 -2
- package/dist/cjs/RecentNews.js +1 -1
- package/dist/cjs/RelatedContent.js +29 -29
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{index.esm-d1259b34.js → SocialNavFooter-9a07520f.js} +0 -8
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +3 -2
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +1 -1
- package/dist/cjs/VerticalHero.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +2 -2
- package/dist/cjs/View.js +29 -29
- package/dist/cjs/YahooHero.js +1 -1
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/getSerializers.js +3 -3
- package/dist/cjs/{getTargeting-5a0b8ee4.js → getTargeting-5db63100.js} +11 -11
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-39beccb3.js → index-be0c82be.js} +1 -2
- package/dist/cjs/{index-af999dce.js → index-f745a50a.js} +436 -448
- package/dist/cjs/index.esm-0e5c6a9e.js +11 -0
- package/dist/cjs/{index.esm-876ca9ff.js → index.esm-fbd1f7e9.js} +5 -0
- package/dist/cjs/index.js +13 -7
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/urlFor.js +2 -2
- package/dist/esm/ADFloatingFooter.js +3 -3
- package/dist/esm/AccordionPanel.js +1 -1
- package/dist/esm/ArticleQueue.js +3 -3
- package/dist/esm/Auth.js +2 -2
- package/dist/esm/{BlockContent-c409aca5.js → BlockContent-e9b4ddcf.js} +1 -1
- package/dist/esm/ConferenceArticleCard.js +16 -16
- package/dist/esm/DeckContent.js +9 -9
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/EventsDeck.js +17 -17
- package/dist/esm/ExternalResources.js +3 -3
- package/dist/esm/Feature.js +1 -1
- package/dist/esm/ForbesHero.js +1 -1
- package/dist/esm/GridContent.js +2 -2
- package/dist/esm/GridHero.js +1 -1
- package/dist/esm/GroupDeck.js +5 -5
- package/dist/esm/HamMagazine.js +34 -224
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/IssueLanding.js +31 -31
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/MasterDeck.js +10 -10
- package/dist/esm/NavMagazine.js +13 -12
- package/dist/esm/NavNative.js +11 -10
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +1 -1
- package/dist/esm/PartnerDetailListing.js +4 -4
- package/dist/esm/PublicationDeck.js +2 -2
- package/dist/esm/PublicationLanding.js +33 -33
- package/dist/esm/QueueDeckExpanded.js +2 -2
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +29 -29
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/{index.esm-73e847d2.js → SocialNavFooter-4fb16720.js} +1 -8
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +3 -2
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoSeriesListing.js +2 -2
- package/dist/esm/View.js +5 -5
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +5 -5
- package/dist/esm/getSerializers.js +3 -3
- package/dist/esm/{getTargeting-962c9cf6.js → getTargeting-36bcd238.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-1c791baf.js → index-599efdf0.js} +436 -448
- package/dist/esm/{index-3849e3fe.js → index-73819142.js} +1 -2
- package/dist/esm/index.esm-16536e81.js +9 -0
- package/dist/esm/{index.esm-85cb09e6.js → index.esm-4b1d94b7.js} +5 -1
- package/dist/esm/index.js +12 -7
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/urlFor.js +2 -2
- package/package.json +107 -107
package/dist/esm/NavMagazine.js
CHANGED
|
@@ -15,29 +15,30 @@ import './_set-species-75f77d40.js';
|
|
|
15
15
|
import { S as Segment } from './beam-c40d77ae.js';
|
|
16
16
|
import './react-social-icons-a7d5c5c7.js';
|
|
17
17
|
import { I as IconContext } from './iconBase-602d52fe.js';
|
|
18
|
-
import { b as IoMdLogIn } from './index.esm-
|
|
18
|
+
import { b as IoMdLogIn } from './index.esm-4b1d94b7.js';
|
|
19
19
|
import Button from 'react-bootstrap/Button';
|
|
20
20
|
import Nav from 'react-bootstrap/Nav';
|
|
21
21
|
import Navbar from 'react-bootstrap/Navbar';
|
|
22
22
|
import NavDropdown from 'react-bootstrap/NavDropdown';
|
|
23
23
|
import { M as MdEmail } from './index.esm-b08f4b04.js';
|
|
24
24
|
import { N as NavFooter } from './NavFooter-e27bd93b.js';
|
|
25
|
-
import { S as SocialNavFooter
|
|
25
|
+
import { S as SocialNavFooter } from './SocialNavFooter-4fb16720.js';
|
|
26
26
|
import SocialIcons from './SocialIcons.js';
|
|
27
|
+
import { G as GoSearch } from './index.esm-16536e81.js';
|
|
27
28
|
import Form from 'react-bootstrap/Form';
|
|
28
29
|
import FormControl from 'react-bootstrap/FormControl';
|
|
29
30
|
|
|
30
31
|
var NavMagazine = function NavMagazine(props) {
|
|
31
|
-
/*
|
|
32
|
-
Example Nav with acceptable props
|
|
33
|
-
<MagazineNav
|
|
34
|
-
showLogin
|
|
35
|
-
user={props.cache.user}
|
|
36
|
-
logo={props.settings.logo}
|
|
37
|
-
dataObject={props.cache.mainNavCache}
|
|
38
|
-
website={website}
|
|
39
|
-
subNav={props.cache.subNavCache}
|
|
40
|
-
/>
|
|
32
|
+
/*
|
|
33
|
+
Example Nav with acceptable props
|
|
34
|
+
<MagazineNav
|
|
35
|
+
showLogin
|
|
36
|
+
user={props.cache.user}
|
|
37
|
+
logo={props.settings.logo}
|
|
38
|
+
dataObject={props.cache.mainNavCache}
|
|
39
|
+
website={website}
|
|
40
|
+
subNav={props.cache.subNavCache}
|
|
41
|
+
/>
|
|
41
42
|
*/
|
|
42
43
|
|
|
43
44
|
// Setting 'socialIconVariant' as 'light' as default to make the social icons and search icon black
|
package/dist/esm/NavNative.js
CHANGED
|
@@ -20,21 +20,22 @@ import Nav from 'react-bootstrap/Nav';
|
|
|
20
20
|
import Navbar from 'react-bootstrap/Navbar';
|
|
21
21
|
import NavDropdown from 'react-bootstrap/NavDropdown';
|
|
22
22
|
import { N as NavFooter } from './NavFooter-e27bd93b.js';
|
|
23
|
-
import { S as SocialNavFooter
|
|
23
|
+
import { S as SocialNavFooter } from './SocialNavFooter-4fb16720.js';
|
|
24
24
|
import SocialIcons from './SocialIcons.js';
|
|
25
|
+
import { G as GoSearch } from './index.esm-16536e81.js';
|
|
25
26
|
import Form from 'react-bootstrap/Form';
|
|
26
27
|
import FormControl from 'react-bootstrap/FormControl';
|
|
27
28
|
|
|
28
29
|
var NavNative = function NavNative(props) {
|
|
29
|
-
/*
|
|
30
|
-
Example Nav with acceptable props
|
|
31
|
-
<MagazineNav
|
|
32
|
-
showLogin
|
|
33
|
-
logo={props.settings.logo}
|
|
34
|
-
dataObject={props.cache.mainNavCache}
|
|
35
|
-
website={website}
|
|
36
|
-
subNav={props.cache.subNavCache}
|
|
37
|
-
/>
|
|
30
|
+
/*
|
|
31
|
+
Example Nav with acceptable props
|
|
32
|
+
<MagazineNav
|
|
33
|
+
showLogin
|
|
34
|
+
logo={props.settings.logo}
|
|
35
|
+
dataObject={props.cache.mainNavCache}
|
|
36
|
+
website={website}
|
|
37
|
+
subNav={props.cache.subNavCache}
|
|
38
|
+
/>
|
|
38
39
|
*/
|
|
39
40
|
// Setting 'socialIconVariant' as 'dark' as default to make the social icons and search icon black
|
|
40
41
|
var logo = props.logo,
|
package/dist/esm/OncliveHero.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { m as moment } from './moment-e2f9b20c.js';
|
|
4
|
-
import { i as imageUrlBuilder } from './index-
|
|
4
|
+
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
5
5
|
import './iconBase-602d52fe.js';
|
|
6
6
|
import 'react-bootstrap/Badge';
|
|
7
7
|
import './index.esm-9a4c8813.js';
|
|
@@ -6,7 +6,7 @@ import React__default from 'react';
|
|
|
6
6
|
import 'prop-types';
|
|
7
7
|
import { m as moment } from './moment-e2f9b20c.js';
|
|
8
8
|
import 'react-dom';
|
|
9
|
-
import { i as imageUrlBuilder } from './index-
|
|
9
|
+
import { i as imageUrlBuilder } from './index-73819142.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-a58d7edf.js';
|
|
@@ -24,7 +24,7 @@ import './debounce-a0d9abca.js';
|
|
|
24
24
|
import './index.es-29c1cef5.js';
|
|
25
25
|
import 'react-dom';
|
|
26
26
|
import './visibility-sensor-0baa4eea.js';
|
|
27
|
-
import { i as imageUrlBuilder } from './index-
|
|
27
|
+
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
28
28
|
import './index-5f9f807a.js';
|
|
29
29
|
import './main-d7ee6151.js';
|
|
30
30
|
import './entities-7cc3bf45.js';
|
|
@@ -35,16 +35,16 @@ import './_set-species-75f77d40.js';
|
|
|
35
35
|
import './beam-c40d77ae.js';
|
|
36
36
|
import './AdSlot.js';
|
|
37
37
|
import './ADInfeed-541eaae3.js';
|
|
38
|
-
import './lodash-
|
|
38
|
+
import './lodash-17fdfebb.js';
|
|
39
39
|
import './ADlgInfeed-25c3d142.js';
|
|
40
40
|
import './AuthorComponent-4ddf3533.js';
|
|
41
|
-
import { B as BlockContent } from './BlockContent-
|
|
41
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
42
42
|
import { s as smoothscroll } from './smoothscroll-4b699764.js';
|
|
43
43
|
import './GroupDeck.js';
|
|
44
44
|
import 'react-bootstrap';
|
|
45
45
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
46
46
|
import 'react-bootstrap/Button';
|
|
47
|
-
import { g as getSerializers } from './index-
|
|
47
|
+
import { g as getSerializers } from './index-599efdf0.js';
|
|
48
48
|
import './util-7700fc59.js';
|
|
49
49
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
50
50
|
import 'react-bootstrap/Pagination';
|
|
@@ -5,9 +5,9 @@ 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-73819142.js';
|
|
9
9
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
10
|
-
import { l as lodash } from './lodash-
|
|
10
|
+
import { l as lodash } from './lodash-17fdfebb.js';
|
|
11
11
|
import Button from 'react-bootstrap/Button';
|
|
12
12
|
|
|
13
13
|
var PublicationDeck = function PublicationDeck(props) {
|
|
@@ -369,39 +369,39 @@ module.exports = { "default": set, __esModule: true };
|
|
|
369
369
|
|
|
370
370
|
var _Set = unwrapExports(set$1);
|
|
371
371
|
|
|
372
|
-
/* usage & query
|
|
373
|
-
const Publication = (props) => {
|
|
374
|
-
const { cache, pub, year } = props
|
|
375
|
-
|
|
376
|
-
const targeting = {
|
|
377
|
-
content_placement: [`/journals/${pub.identifier.current}`],
|
|
378
|
-
document_url: [`/journals/${pub.identifier.current}`],
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
return (
|
|
382
|
-
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
383
|
-
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
384
|
-
</Shell>
|
|
385
|
-
)
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
Publication.getInitialProps = async (ctx) => {
|
|
389
|
-
const { query } = ctx
|
|
390
|
-
const {
|
|
391
|
-
query: { year },
|
|
392
|
-
} = ctx
|
|
393
|
-
const pub = await client.fetch(getQuery('publication'), query)
|
|
394
|
-
const builder = imageUrlBuilder(client)
|
|
395
|
-
const urlFor = (source) => {
|
|
396
|
-
return builder.image(source)
|
|
397
|
-
}
|
|
398
|
-
pub.issues.map((issue) => {
|
|
399
|
-
issue.thumbnail = urlFor(issue.thumbnail).url()
|
|
400
|
-
})
|
|
401
|
-
return { pub, year }
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
export default Publication
|
|
372
|
+
/* usage & query
|
|
373
|
+
const Publication = (props) => {
|
|
374
|
+
const { cache, pub, year } = props
|
|
375
|
+
|
|
376
|
+
const targeting = {
|
|
377
|
+
content_placement: [`/journals/${pub.identifier.current}`],
|
|
378
|
+
document_url: [`/journals/${pub.identifier.current}`],
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
return (
|
|
382
|
+
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
383
|
+
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
384
|
+
</Shell>
|
|
385
|
+
)
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
Publication.getInitialProps = async (ctx) => {
|
|
389
|
+
const { query } = ctx
|
|
390
|
+
const {
|
|
391
|
+
query: { year },
|
|
392
|
+
} = ctx
|
|
393
|
+
const pub = await client.fetch(getQuery('publication'), query)
|
|
394
|
+
const builder = imageUrlBuilder(client)
|
|
395
|
+
const urlFor = (source) => {
|
|
396
|
+
return builder.image(source)
|
|
397
|
+
}
|
|
398
|
+
pub.issues.map((issue) => {
|
|
399
|
+
issue.thumbnail = urlFor(issue.thumbnail).url()
|
|
400
|
+
})
|
|
401
|
+
return { pub, year }
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
export default Publication
|
|
405
405
|
*/
|
|
406
406
|
|
|
407
407
|
var PublicationLanding = function PublicationLanding(props) {
|
|
@@ -18,7 +18,7 @@ import './debounce-a0d9abca.js';
|
|
|
18
18
|
import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
19
19
|
import 'react-dom';
|
|
20
20
|
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
21
|
-
import { i as imageUrlBuilder } from './index-
|
|
21
|
+
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
22
22
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
23
23
|
import { m as main_36 } from './main-d7ee6151.js';
|
|
24
24
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
@@ -29,7 +29,7 @@ import './_set-species-75f77d40.js';
|
|
|
29
29
|
import './beam-c40d77ae.js';
|
|
30
30
|
import './AdSlot.js';
|
|
31
31
|
import { A as ADInfeed } from './ADInfeed-541eaae3.js';
|
|
32
|
-
import { l as lodash } from './lodash-
|
|
32
|
+
import { l as lodash } from './lodash-17fdfebb.js';
|
|
33
33
|
import { A as ADlgInfeed } from './ADlgInfeed-25c3d142.js';
|
|
34
34
|
import { A as AuthorComponent } from './AuthorComponent-4ddf3533.js';
|
|
35
35
|
import { Container, Media } from 'react-bootstrap';
|
package/dist/esm/RecentNews.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import './moment-e2f9b20c.js';
|
|
4
|
-
import { i as imageUrlBuilder } from './index-
|
|
4
|
+
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
5
5
|
import './iconBase-602d52fe.js';
|
|
6
6
|
import { a as FaLongArrowAltRight } from './index.esm-9a4c8813.js';
|
|
7
7
|
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { m as moment } from './moment-e2f9b20c.js';
|
|
4
|
-
import { i as imageUrlBuilder } from './index-
|
|
4
|
+
import { i as imageUrlBuilder } from './index-73819142.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,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
|
|
3
|
-
import { G as GenIcon } from './iconBase-602d52fe.js';
|
|
4
3
|
|
|
5
4
|
var year = new Date().getFullYear();
|
|
6
5
|
|
|
@@ -75,10 +74,4 @@ var SocialNavFooter = function SocialNavFooter(props) {
|
|
|
75
74
|
);
|
|
76
75
|
};
|
|
77
76
|
|
|
78
|
-
|
|
79
|
-
var GoSearch = function (props) {
|
|
80
|
-
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 16 16"},"child":[{"tag":"path","attr":{"fillRule":"evenodd","d":"M15.7 13.3l-3.81-3.83A5.93 5.93 0 0 0 13 6c0-3.31-2.69-6-6-6S1 2.69 1 6s2.69 6 6 6c1.3 0 2.48-.41 3.47-1.11l3.83 3.81c.19.2.45.3.7.3.25 0 .52-.09.7-.3a.996.996 0 0 0 0-1.41v.01zM7 10.7c-2.59 0-4.7-2.11-4.7-4.7 0-2.59 2.11-4.7 4.7-4.7 2.59 0 4.7 2.11 4.7 4.7 0 2.59-2.11 4.7-4.7 4.7z"}}]})(props);
|
|
81
|
-
};
|
|
82
|
-
GoSearch.displayName = "GoSearch";
|
|
83
|
-
|
|
84
|
-
export { GoSearch as G, SocialNavFooter as S };
|
|
77
|
+
export { SocialNavFooter as S };
|
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-73819142.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-e9b4ddcf.js';
|
|
15
15
|
import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
|
|
16
16
|
|
|
17
17
|
var TaxonomyCard = function TaxonomyCard(props) {
|
|
@@ -25,7 +25,7 @@ import './get-58d2f7cc.js';
|
|
|
25
25
|
import './react-social-icons-a7d5c5c7.js';
|
|
26
26
|
import 'react-bootstrap';
|
|
27
27
|
import './iconBase-602d52fe.js';
|
|
28
|
-
import './index.esm-
|
|
28
|
+
import './index.esm-4b1d94b7.js';
|
|
29
29
|
import 'react-bootstrap/Button';
|
|
30
30
|
import { Column1 } from './Column1.js';
|
|
31
31
|
import './SideFooter.js';
|
|
@@ -44,8 +44,9 @@ import 'react-bootstrap/Navbar';
|
|
|
44
44
|
import 'react-bootstrap/NavDropdown';
|
|
45
45
|
import './index.esm-b08f4b04.js';
|
|
46
46
|
import './NavFooter-e27bd93b.js';
|
|
47
|
-
import './
|
|
47
|
+
import './SocialNavFooter-4fb16720.js';
|
|
48
48
|
import './SocialIcons.js';
|
|
49
|
+
import './index.esm-16536e81.js';
|
|
49
50
|
import 'react-bootstrap/Form';
|
|
50
51
|
import 'react-bootstrap/FormControl';
|
|
51
52
|
import MagazineNav from './NavMagazine.js';
|
|
@@ -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-73819142.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
|
@@ -6,7 +6,7 @@ import React__default, { useState, useRef, useEffect } from 'react';
|
|
|
6
6
|
import { m as main_36 } from './main-d7ee6151.js';
|
|
7
7
|
import { _ as _slicedToArray } from './slicedToArray-a58d7edf.js';
|
|
8
8
|
import './iconBase-602d52fe.js';
|
|
9
|
-
import {
|
|
9
|
+
import { d as IoIosOpen } from './index.esm-4b1d94b7.js';
|
|
10
10
|
import { F as FaRegWindowClose } from './index.esm-9a4c8813.js';
|
|
11
11
|
|
|
12
12
|
var Ustream = function Ustream(_ref) {
|
package/dist/esm/VerticalHero.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import './moment-e2f9b20c.js';
|
|
4
|
-
import { i as imageUrlBuilder } from './index-
|
|
4
|
+
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
5
5
|
|
|
6
6
|
var VerticalHero = function VerticalHero(props) {
|
|
7
7
|
var client = props.client;
|
|
@@ -20,13 +20,13 @@ import { d as debounce_1 } from './debounce-a0d9abca.js';
|
|
|
20
20
|
import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
21
21
|
import 'react-dom';
|
|
22
22
|
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
23
|
-
import './index-
|
|
23
|
+
import './index-73819142.js';
|
|
24
24
|
import './index-5f9f807a.js';
|
|
25
25
|
import './slicedToArray-a58d7edf.js';
|
|
26
26
|
import './smoothscroll-4b699764.js';
|
|
27
27
|
import YoutubeGroup from './YoutubeGroup.js';
|
|
28
28
|
import './iconBase-602d52fe.js';
|
|
29
|
-
import { I as IoIosArrowForward } from './index.esm-
|
|
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
|
@@ -22,7 +22,7 @@ import './isSymbol-47f5ff3b.js';
|
|
|
22
22
|
import './debounce-a0d9abca.js';
|
|
23
23
|
import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
24
24
|
import 'react-dom';
|
|
25
|
-
import './index-
|
|
25
|
+
import './index-73819142.js';
|
|
26
26
|
import './index-5f9f807a.js';
|
|
27
27
|
import { m as main_36 } from './main-d7ee6151.js';
|
|
28
28
|
import './entities-7cc3bf45.js';
|
|
@@ -32,12 +32,12 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-d25
|
|
|
32
32
|
import './_set-species-75f77d40.js';
|
|
33
33
|
import './beam-c40d77ae.js';
|
|
34
34
|
import DFPAdSlot from './AdSlot.js';
|
|
35
|
-
import { B as BlockContent } from './BlockContent-
|
|
35
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
36
36
|
import './smoothscroll-4b699764.js';
|
|
37
37
|
import './GroupDeck.js';
|
|
38
38
|
import 'react-bootstrap';
|
|
39
39
|
import Button from 'react-bootstrap/Button';
|
|
40
|
-
import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-
|
|
40
|
+
import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-599efdf0.js';
|
|
41
41
|
import './util-7700fc59.js';
|
|
42
42
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
43
43
|
import 'react-bootstrap/Pagination';
|
|
@@ -53,7 +53,7 @@ import getSeriesDetail from './getSeriesDetail.js';
|
|
|
53
53
|
import './index-db3bb315.js';
|
|
54
54
|
import getRelatedArticle from './getRelatedArticle.js';
|
|
55
55
|
import getQuery from './getQuery.js';
|
|
56
|
-
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-
|
|
56
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-36bcd238.js';
|
|
57
57
|
import urlFor from './urlFor.js';
|
|
58
58
|
|
|
59
59
|
var getArticleSummary = function getArticleSummary(article) {
|
|
@@ -204,7 +204,7 @@ function styleInject(css, ref) {
|
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
var css = ".RelatedArticles-module_mediaContainer__10h9k {\
|
|
207
|
+
var css = ".RelatedArticles-module_mediaContainer__10h9k {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n margin: 0 -1rem;\n}\n.RelatedArticles-module_mediaCard__3wQbn {\n margin: 0 1rem 1rem;\n width: calc(33% - 1rem);\n display: column;\n flex-direction: row;\n margin-bottom: 0.75rem;\n padding-bottom: 0.75rem;\n border-bottom: none;\n}\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\n border-bottom: none;\n}\n.RelatedArticles-module_cardTitle__3P-Ib {\n font-weight: bold;\n color: #252525;\n margin-bottom: 0.25rem;\n font-size: 15px;\n}\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\n color: #000;\n font-weight: bold;\n}\n.RelatedArticles-module_cardDate__1wOR5 {\n color: var(--dark);\n display: block;\n background: #fff !important;\n margin-bottom: 0;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 {\n display: block;\n text-align: center;\n margin-bottom: 0.5rem;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\n height: 135px;\n width: 100%;\n object-fit: cover;\n object-position: center;\n}\n@media screen and (max-width: 1064px) {\n}\n@media screen and (max-width: 968px) {\n .RelatedArticles-module_mediaContainer__10h9k {\n flex-wrap: wrap;\n }\n .RelatedArticles-module_mediaCard__3wQbn {\n width: 100%;\n }\n .RelatedArticles-module_imgWrapper__5Jx_4 img {\n width: 100%;\n height: auto;\n\n max-height: 175px;\n object-fit: contain;\n margin-bottom: 1rem;\n }\n}\n";
|
|
208
208
|
var styles = { "mediaContainer": "RelatedArticles-module_mediaContainer__10h9k", "mediaCard": "RelatedArticles-module_mediaCard__3wQbn", "cardTitle": "RelatedArticles-module_cardTitle__3P-Ib", "authorListing": "RelatedArticles-module_authorListing__1EFg4", "text-muted": "RelatedArticles-module_text-muted__3b0zX", "cardDate": "RelatedArticles-module_cardDate__1wOR5", "imgWrapper": "RelatedArticles-module_imgWrapper__5Jx_4" };
|
|
209
209
|
styleInject(css);
|
|
210
210
|
|
package/dist/esm/YahooHero.js
CHANGED
|
@@ -6,7 +6,7 @@ import React__default from 'react';
|
|
|
6
6
|
import 'prop-types';
|
|
7
7
|
import { m as moment } from './moment-e2f9b20c.js';
|
|
8
8
|
import 'react-dom';
|
|
9
|
-
import { i as imageUrlBuilder } from './index-
|
|
9
|
+
import { i as imageUrlBuilder } from './index-73819142.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-a58d7edf.js';
|
package/dist/esm/YoutubeGroup.js
CHANGED
|
@@ -9,15 +9,15 @@ import './_is-array-ced12663.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-73819142.js';
|
|
13
13
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
14
14
|
import { _ as _slicedToArray } from './slicedToArray-a58d7edf.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) {
|
|
@@ -21,7 +21,7 @@ import 'next/router';
|
|
|
21
21
|
import './isSymbol-47f5ff3b.js';
|
|
22
22
|
import './debounce-a0d9abca.js';
|
|
23
23
|
import 'react-dom';
|
|
24
|
-
import './index-
|
|
24
|
+
import './index-73819142.js';
|
|
25
25
|
import './index-5f9f807a.js';
|
|
26
26
|
import './main-d7ee6151.js';
|
|
27
27
|
import './entities-7cc3bf45.js';
|
|
@@ -31,12 +31,12 @@ import './asyncToGenerator-d25aac66.js';
|
|
|
31
31
|
import './_set-species-75f77d40.js';
|
|
32
32
|
import './beam-c40d77ae.js';
|
|
33
33
|
import './AdSlot.js';
|
|
34
|
-
import './BlockContent-
|
|
34
|
+
import './BlockContent-e9b4ddcf.js';
|
|
35
35
|
import './smoothscroll-4b699764.js';
|
|
36
36
|
import './GroupDeck.js';
|
|
37
37
|
import 'react-bootstrap';
|
|
38
38
|
import 'react-bootstrap/Button';
|
|
39
|
-
export { g as default } from './index-
|
|
39
|
+
export { g as default } from './index-599efdf0.js';
|
|
40
40
|
import './util-7700fc59.js';
|
|
41
41
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
42
42
|
import 'react-bootstrap/Pagination';
|
|
@@ -2,18 +2,18 @@ import { _ as _toConsumableArray } from './toConsumableArray-2efd7c98.js';
|
|
|
2
2
|
import { _ as _extends } from './extends-229166d5.js';
|
|
3
3
|
|
|
4
4
|
var getContentPlacementUrl = function getContentPlacementUrl(cp) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
var cp_url = '';
|
|
6
|
+
if (cp.ancestor && typeof cp.ancestor == 'string') {
|
|
7
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
|
|
8
|
+
}
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
|
|
11
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.parent;
|
|
12
|
+
}
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.path;
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
return cp_url;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
var getTargeting = function getTargeting(props) {
|
package/dist/esm/getTargeting.js
CHANGED
|
@@ -5,4 +5,4 @@ import './_iter-detect-70af34ea.js';
|
|
|
5
5
|
import './toConsumableArray-2efd7c98.js';
|
|
6
6
|
import './_object-pie-33c40e79.js';
|
|
7
7
|
import './extends-229166d5.js';
|
|
8
|
-
export { g as default } from './getTargeting-
|
|
8
|
+
export { g as default } from './getTargeting-36bcd238.js';
|