@mjhls/mjh-framework 1.0.603 → 1.0.604-hamMagazine-v5
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 +12 -12
- package/dist/cjs/{BlockContent-77f81ffc.js → BlockContent-c2168db0.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 +215 -32
- 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 +13 -14
- package/dist/cjs/NavNative.js +11 -12
- 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/SocialShare.js +5 -3
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +2 -3
- 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 +39 -33
- package/dist/cjs/YahooHero.js +1 -1
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/getRelatedArticle.js +5 -354
- package/dist/cjs/getSerializers.js +3 -3
- package/dist/cjs/{getTargeting-5db63100.js → getTargeting-5a0b8ee4.js} +11 -11
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-be0c82be.js → index-39beccb3.js} +2 -1
- package/dist/cjs/{index-f745a50a.js → index-af999dce.js} +448 -436
- package/dist/cjs/{index.esm-fbd1f7e9.js → index.esm-876ca9ff.js} +0 -5
- package/dist/cjs/{SocialNavFooter-9a07520f.js → index.esm-d1259b34.js} +8 -0
- package/dist/cjs/index.js +11 -11
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- 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 +8 -8
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-c409aca5.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 +214 -31
- 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 +12 -13
- package/dist/esm/NavNative.js +10 -11
- 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/SocialShare.js +5 -3
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +2 -3
- 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 +15 -9
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +5 -5
- package/dist/esm/getRelatedArticle.js +5 -354
- package/dist/esm/getSerializers.js +3 -3
- package/dist/esm/{getTargeting-36bcd238.js → getTargeting-962c9cf6.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-599efdf0.js → index-1c791baf.js} +448 -436
- package/dist/esm/{index-73819142.js → index-3849e3fe.js} +2 -1
- package/dist/esm/{SocialNavFooter-4fb16720.js → index.esm-73e847d2.js} +8 -1
- package/dist/esm/{index.esm-4b1d94b7.js → index.esm-85cb09e6.js} +1 -5
- package/dist/esm/index.js +10 -10
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/urlFor.js +2 -2
- package/package.json +107 -107
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/cjs/index.esm-0e5c6a9e.js +0 -11
- package/dist/esm/index-db3bb315.js +0 -207
- package/dist/esm/index.esm-16536e81.js +0 -9
package/dist/esm/NavMagazine.js
CHANGED
|
@@ -15,30 +15,29 @@ 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-85cb09e6.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 } from './
|
|
25
|
+
import { S as SocialNavFooter, G as GoSearch } from './index.esm-73e847d2.js';
|
|
26
26
|
import SocialIcons from './SocialIcons.js';
|
|
27
|
-
import { G as GoSearch } from './index.esm-16536e81.js';
|
|
28
27
|
import Form from 'react-bootstrap/Form';
|
|
29
28
|
import FormControl from 'react-bootstrap/FormControl';
|
|
30
29
|
|
|
31
30
|
var NavMagazine = function NavMagazine(props) {
|
|
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
|
-
/>
|
|
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
|
+
/>
|
|
42
41
|
*/
|
|
43
42
|
|
|
44
43
|
// Setting 'socialIconVariant' as 'light' as default to make the social icons and search icon black
|
package/dist/esm/NavNative.js
CHANGED
|
@@ -20,22 +20,21 @@ 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 } from './
|
|
23
|
+
import { S as SocialNavFooter, G as GoSearch } from './index.esm-73e847d2.js';
|
|
24
24
|
import SocialIcons from './SocialIcons.js';
|
|
25
|
-
import { G as GoSearch } from './index.esm-16536e81.js';
|
|
26
25
|
import Form from 'react-bootstrap/Form';
|
|
27
26
|
import FormControl from 'react-bootstrap/FormControl';
|
|
28
27
|
|
|
29
28
|
var NavNative = function NavNative(props) {
|
|
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
|
-
/>
|
|
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
|
+
/>
|
|
39
38
|
*/
|
|
40
39
|
// Setting 'socialIconVariant' as 'dark' as default to make the social icons and search icon black
|
|
41
40
|
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-3849e3fe.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-3849e3fe.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-3849e3fe.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-ec8c6b48.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-c409aca5.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-1c791baf.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-3849e3fe.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-ec8c6b48.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-3849e3fe.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-ec8c6b48.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-3849e3fe.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-3849e3fe.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/SocialShare.js
CHANGED
|
@@ -13,7 +13,9 @@ var SocialShare = function SocialShare(props) {
|
|
|
13
13
|
siteName = props.siteName,
|
|
14
14
|
twitterSiteName = props.twitterSiteName,
|
|
15
15
|
_props$disableMeta = props.disableMeta,
|
|
16
|
-
disableMeta = _props$disableMeta === undefined ? false : _props$disableMeta
|
|
16
|
+
disableMeta = _props$disableMeta === undefined ? false : _props$disableMeta,
|
|
17
|
+
hidePinterest = props.hidePinterest,
|
|
18
|
+
hideFacebook = props.hideFacebook;
|
|
17
19
|
|
|
18
20
|
return React__default.createElement(
|
|
19
21
|
React__default.Fragment,
|
|
@@ -32,7 +34,7 @@ var SocialShare = function SocialShare(props) {
|
|
|
32
34
|
React__default.createElement('meta', { name: 'twitter:site', content: twitterSiteName, key: 'og:site' }),
|
|
33
35
|
React__default.createElement('meta', { name: 'twitter:description', content: shareSummary, key: 'og:description' })
|
|
34
36
|
),
|
|
35
|
-
React__default.createElement(
|
|
37
|
+
!hideFacebook && React__default.createElement(
|
|
36
38
|
FacebookShareButton,
|
|
37
39
|
{ url: shareUrl, quote: shareTitle },
|
|
38
40
|
React__default.createElement(FacebookIcon, { size: size, round: true })
|
|
@@ -47,7 +49,7 @@ var SocialShare = function SocialShare(props) {
|
|
|
47
49
|
{ url: shareUrl, title: shareTitle, via: shareVia },
|
|
48
50
|
React__default.createElement(LinkedinIcon, { size: size, round: true })
|
|
49
51
|
),
|
|
50
|
-
!
|
|
52
|
+
!hidePinterest && React__default.createElement(
|
|
51
53
|
PinterestShareButton,
|
|
52
54
|
{ url: shareUrl, media: shareImage, description: shareSummary },
|
|
53
55
|
React__default.createElement(PinterestIcon, { size: size, round: true })
|
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-3849e3fe.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-c409aca5.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-85cb09e6.js';
|
|
29
29
|
import 'react-bootstrap/Button';
|
|
30
30
|
import { Column1 } from './Column1.js';
|
|
31
31
|
import './SideFooter.js';
|
|
@@ -44,9 +44,8 @@ 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 './index.esm-73e847d2.js';
|
|
48
48
|
import './SocialIcons.js';
|
|
49
|
-
import './index.esm-16536e81.js';
|
|
50
49
|
import 'react-bootstrap/Form';
|
|
51
50
|
import 'react-bootstrap/FormControl';
|
|
52
51
|
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-3849e3fe.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 { c as IoIosOpen } from './index.esm-85cb09e6.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-3849e3fe.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-3849e3fe.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-85cb09e6.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-3849e3fe.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-c409aca5.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-1c791baf.js';
|
|
41
41
|
import './util-7700fc59.js';
|
|
42
42
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
43
43
|
import 'react-bootstrap/Pagination';
|
|
@@ -50,10 +50,10 @@ import { _ as _Object$keys } from './keys-941eccc4.js';
|
|
|
50
50
|
import 'react-bootstrap/Dropdown';
|
|
51
51
|
import getKeywords from './getKeywords.js';
|
|
52
52
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
53
|
-
import '
|
|
54
|
-
import getRelatedArticle from './getRelatedArticle.js';
|
|
53
|
+
import 'nookies';
|
|
55
54
|
import getQuery from './getQuery.js';
|
|
56
|
-
import
|
|
55
|
+
import getRelatedArticle from './getRelatedArticle.js';
|
|
56
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-962c9cf6.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 {\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";
|
|
207
|
+
var css = ".RelatedArticles-module_mediaContainer__10h9k {\r\n display: flex;\r\n flex-direction: row;\r\n flex-wrap: nowrap;\r\n margin: 0 -1rem;\r\n}\r\n.RelatedArticles-module_mediaCard__3wQbn {\r\n margin: 0 1rem 1rem;\r\n width: calc(33% - 1rem);\r\n display: column;\r\n flex-direction: row;\r\n margin-bottom: 0.75rem;\r\n padding-bottom: 0.75rem;\r\n border-bottom: none;\r\n}\r\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\r\n border-bottom: none;\r\n}\r\n.RelatedArticles-module_cardTitle__3P-Ib {\r\n font-weight: bold;\r\n color: #252525;\r\n margin-bottom: 0.25rem;\r\n font-size: 15px;\r\n}\r\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\r\n color: #000;\r\n font-weight: bold;\r\n}\r\n.RelatedArticles-module_cardDate__1wOR5 {\r\n color: var(--dark);\r\n display: block;\r\n background: #fff !important;\r\n margin-bottom: 0;\r\n}\r\n.RelatedArticles-module_imgWrapper__5Jx_4 {\r\n display: block;\r\n text-align: center;\r\n margin-bottom: 0.5rem;\r\n}\r\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\r\n height: 135px;\r\n width: 100%;\r\n object-fit: cover;\r\n object-position: center;\r\n}\r\n@media screen and (max-width: 1064px) {\r\n}\r\n@media screen and (max-width: 968px) {\r\n .RelatedArticles-module_mediaContainer__10h9k {\r\n flex-wrap: wrap;\r\n }\r\n .RelatedArticles-module_mediaCard__3wQbn {\r\n width: 100%;\r\n }\r\n .RelatedArticles-module_imgWrapper__5Jx_4 img {\r\n width: 100%;\r\n height: auto;\r\n\r\n max-height: 175px;\r\n object-fit: contain;\r\n margin-bottom: 1rem;\r\n }\r\n}\r\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
|
|
|
@@ -302,7 +302,11 @@ var Article = function Article(props) {
|
|
|
302
302
|
|
|
303
303
|
var article = props.article,
|
|
304
304
|
Ads = props.Ads,
|
|
305
|
-
showRelatedArticles = props.showRelatedArticles
|
|
305
|
+
showRelatedArticles = props.showRelatedArticles,
|
|
306
|
+
_props$hideFBShare = props.hideFBShare,
|
|
307
|
+
hideFBShare = _props$hideFBShare === undefined ? false : _props$hideFBShare,
|
|
308
|
+
_props$hidePinterestS = props.hidePinterestShare,
|
|
309
|
+
hidePinterestShare = _props$hidePinterestS === undefined ? false : _props$hidePinterestS;
|
|
306
310
|
var client = props.client,
|
|
307
311
|
pageview = props.pageview,
|
|
308
312
|
videoAccountIDs = props.videoAccountIDs,
|
|
@@ -848,7 +852,9 @@ var Article = function Article(props) {
|
|
|
848
852
|
size: 32,
|
|
849
853
|
siteName: siteName,
|
|
850
854
|
twitterSiteName: twitterSiteName,
|
|
851
|
-
disableMeta: true
|
|
855
|
+
disableMeta: true,
|
|
856
|
+
hidePinterest: hidePinterestShare,
|
|
857
|
+
hideFacebook: hideFBShare
|
|
852
858
|
})
|
|
853
859
|
)
|
|
854
860
|
),
|
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-3849e3fe.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-3849e3fe.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) {
|