@mjhls/mjh-framework 1.0.959-ris-update-v2 → 1.0.959-test-v2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AlgoliaSearch.js +15 -131
- package/dist/cjs/ArticleProgramLandingPage.js +1 -1
- package/dist/cjs/AuthWrapper.js +1 -1
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/ContentCardPaginated.js +2 -1
- package/dist/cjs/DeckContent.js +8 -8
- package/dist/cjs/DeckQueuePaginated.js +2 -1
- package/dist/cjs/EventsDeck.js +17 -17
- package/dist/cjs/ExternalResources.js +1 -1
- package/dist/cjs/GridContentPaginated.js +2 -1
- package/dist/cjs/HamMagazine.js +9 -9
- package/dist/cjs/HealthCareProfessionalModal.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +1 -1
- package/dist/cjs/IssueLanding.js +30 -30
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/MasterDeck.js +8 -8
- package/dist/cjs/MasterDeckPaginated.js +10 -9
- package/dist/cjs/{MediaSeriesCard-dffbfadb.js → MediaSeriesCard-8c2c8086.js} +2 -2
- package/dist/cjs/MediaSeriesLanding.js +7 -7
- package/dist/cjs/MediaSeriesLandingPaginated.js +9 -8
- package/dist/cjs/NavMagazine.js +10 -10
- package/dist/cjs/NavNative.js +9 -9
- package/dist/cjs/Pagination-c63770a3.js +90 -0
- package/dist/cjs/PartnerDetailListing.js +1 -1
- package/dist/cjs/PartnerDetailListingPaginated.js +3 -2
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpandedPaginated.js +2 -1
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +1 -1
- package/dist/cjs/{SeriesSlider-74546d19.js → SeriesSlider-594b19eb.js} +4 -4
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/TaxonomyDescription.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +1 -1
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/View.js +43 -85
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/getQuery.js +3 -3
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/{getTargeting-77bb50ae.js → getTargeting-232688b0.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-d92837fc.js → index-4f3a9831.js} +2 -1
- package/dist/cjs/index.js +4 -3
- package/dist/esm/AlgoliaSearch.js +16 -132
- package/dist/esm/ArticleProgramLandingPage.js +1 -1
- package/dist/esm/AuthWrapper.js +1 -1
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/ContentCardPaginated.js +2 -1
- package/dist/esm/DeckContent.js +8 -8
- package/dist/esm/DeckQueuePaginated.js +2 -1
- package/dist/esm/EventsDeck.js +17 -17
- package/dist/esm/ExternalResources.js +1 -1
- package/dist/esm/GridContentPaginated.js +2 -1
- package/dist/esm/HamMagazine.js +9 -9
- package/dist/esm/HealthCareProfessionalModal.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +1 -1
- package/dist/esm/IssueLanding.js +30 -30
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/MasterDeck.js +8 -8
- package/dist/esm/MasterDeckPaginated.js +10 -9
- package/dist/esm/{MediaSeriesCard-7003e532.js → MediaSeriesCard-f0939fa6.js} +2 -2
- package/dist/esm/MediaSeriesLanding.js +7 -7
- package/dist/esm/MediaSeriesLandingPaginated.js +9 -8
- package/dist/esm/NavMagazine.js +10 -10
- package/dist/esm/NavNative.js +9 -9
- package/dist/esm/Pagination-6f8d5327.js +82 -0
- package/dist/esm/PartnerDetailListing.js +1 -1
- package/dist/esm/PartnerDetailListingPaginated.js +3 -2
- package/dist/esm/PublicationLanding.js +26 -26
- package/dist/esm/QueueDeckExpandedPaginated.js +2 -1
- package/dist/esm/RelatedContent.js +28 -28
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SeriesListingDeck.js +1 -1
- package/dist/esm/{SeriesSlider-b853a8cf.js → SeriesSlider-19bf6ce4.js} +4 -4
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/TaxonomyDescription.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +1 -1
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/View.js +42 -85
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/getQuery.js +3 -3
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/{getTargeting-f8f94212.js → getTargeting-d519d2b6.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-8864f662.js → index-1a9e2285.js} +2 -1
- package/dist/esm/index.js +4 -3
- package/package.json +115 -115
- package/dist/cjs/Pagination-30bb1ca1.js +0 -97
- package/dist/esm/Pagination-194dd03f.js +0 -90
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var ReactPaginate = require('react-paginate');
|
|
5
|
+
var Button = require('react-bootstrap/Button');
|
|
6
|
+
var index_esm = require('./index.esm-d51c9ac6.js');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
|
+
var ReactPaginate__default = /*#__PURE__*/_interopDefaultLegacy(ReactPaginate);
|
|
12
|
+
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
13
|
+
|
|
14
|
+
var Pagination = function Pagination(props) {
|
|
15
|
+
var pageCount = props.pageCount,
|
|
16
|
+
_props$marginPagesDis = props.marginPagesDisplayed,
|
|
17
|
+
marginPagesDisplayed = _props$marginPagesDis === undefined ? 1 : _props$marginPagesDis,
|
|
18
|
+
_props$pageRangeDispl = props.pageRangeDisplayed,
|
|
19
|
+
pageRangeDisplayed = _props$pageRangeDispl === undefined ? 5 : _props$pageRangeDispl,
|
|
20
|
+
_props$currentPage = props.currentPage,
|
|
21
|
+
currentPage = _props$currentPage === undefined ? 1 : _props$currentPage,
|
|
22
|
+
_onPageChange = props.onPageChange,
|
|
23
|
+
_props$needLargePagin = props.needLargePaginateButtons,
|
|
24
|
+
needLargePaginateButtons = _props$needLargePagin === undefined ? false : _props$needLargePagin;
|
|
25
|
+
|
|
26
|
+
if (!pageCount || pageCount <= 1) return null;
|
|
27
|
+
return React__default['default'].createElement(
|
|
28
|
+
React__default['default'].Fragment,
|
|
29
|
+
null,
|
|
30
|
+
needLargePaginateButtons && React__default['default'].createElement(
|
|
31
|
+
'div',
|
|
32
|
+
{ className: 'pagination-lg-btn-nxt' },
|
|
33
|
+
React__default['default'].createElement(
|
|
34
|
+
Button__default['default'],
|
|
35
|
+
{
|
|
36
|
+
onClick: function onClick(e) {
|
|
37
|
+
e.preventDefault();
|
|
38
|
+
_onPageChange(currentPage + 1);
|
|
39
|
+
},
|
|
40
|
+
disabled: currentPage === pageCount,
|
|
41
|
+
href: '?page=' + (currentPage + 1) },
|
|
42
|
+
'NEXT PAGE',
|
|
43
|
+
React__default['default'].createElement(index_esm.FaArrowRight, { className: 'fa-arrow-right' })
|
|
44
|
+
)
|
|
45
|
+
),
|
|
46
|
+
React__default['default'].createElement(ReactPaginate__default['default'], {
|
|
47
|
+
pageCount: pageCount,
|
|
48
|
+
marginPagesDisplayed: marginPagesDisplayed,
|
|
49
|
+
pageRangeDisplayed: pageRangeDisplayed,
|
|
50
|
+
forcePage: currentPage - 1,
|
|
51
|
+
onPageChange: function onPageChange(_ref) {
|
|
52
|
+
var selected = _ref.selected;
|
|
53
|
+
return _onPageChange(selected + 1);
|
|
54
|
+
},
|
|
55
|
+
hrefBuilder: function hrefBuilder(page) {
|
|
56
|
+
return '?page=' + page;
|
|
57
|
+
},
|
|
58
|
+
previousLabel: '<',
|
|
59
|
+
nextLabel: '>',
|
|
60
|
+
containerClassName: 'pagination-container',
|
|
61
|
+
previousLinkClassName: 'previous',
|
|
62
|
+
nextLinkClassName: 'next',
|
|
63
|
+
disabledClassName: 'disabled',
|
|
64
|
+
activeClassName: 'active'
|
|
65
|
+
}),
|
|
66
|
+
needLargePaginateButtons && React__default['default'].createElement(
|
|
67
|
+
'div',
|
|
68
|
+
{ className: 'pagination-lg-btn-prv' },
|
|
69
|
+
React__default['default'].createElement(
|
|
70
|
+
Button__default['default'],
|
|
71
|
+
{
|
|
72
|
+
onClick: function onClick(e) {
|
|
73
|
+
e.preventDefault();
|
|
74
|
+
_onPageChange(currentPage - 1);
|
|
75
|
+
},
|
|
76
|
+
disabled: currentPage === 1,
|
|
77
|
+
href: currentPage <= 1 ? '?page=1' : '?page=' + (currentPage - 1) },
|
|
78
|
+
React__default['default'].createElement(index_esm.FaArrowLeft, { className: 'fa-arrow-left' }),
|
|
79
|
+
'PREVIOUS PAGE'
|
|
80
|
+
)
|
|
81
|
+
),
|
|
82
|
+
React__default['default'].createElement(
|
|
83
|
+
'style',
|
|
84
|
+
{ jsx: 'true' },
|
|
85
|
+
'\n .pagination-container {\n list-style: none;\n padding: 10px 0;\n margin: 0;\n display: flex;\n overflow: auto;\n }\n .pagination-container::before,\n .pagination-container::after {\n content: \'\';\n margin: 0 auto;\n }\n .pagination-container a {\n padding: 10px;\n border: 1px solid #dee2e6;\n }\n .pagination-container a:hover {\n text-decoration: none;\n background-color: #e9ecef;\n border-color: #dee2e6;\n }\n .pagination-container .active a {\n color: #fff;\n background-color: #666;\n background-color: var(--primary);\n }\n .pagination-container li:first-child a {\n border-radius: 5px 0 0 5px;\n }\n .pagination-container li:last-child a {\n border-radius: 0 5px 5px 0;\n }\n .pagination-container .disabled a {\n cursor: default;\n }\n .pagination-lg-btn-nxt,\n .pagination-lg-btn-prv {\n text-align: center;\n }\n .pagination-lg-btn-nxt .btn,\n .pagination-lg-btn-prv .btn {\n min-width: 80%;\n color: #000;\n color: var(--primary);\n background-color: transparent;\n border-color: #000;\n border-color: var(--primary);\n }\n .pagination-lg-btn-nxt {\n margin: 0 0 1.5rem;\n }\n .pagination-lg-btn-prv {\n margin: 1.5rem 0 0;\n }\n .pagination-lg-btn-nxt .btn:not(:disabled):not(.disabled).active,\n .pagination-lg-btn-prv .btn:not(:disabled):not(.disabled):active {\n color: #fff;\n background-color: #000;\n background-color: var(--primary);\n border-color: #000;\n border-color: var(--primary);\n }\n @media only screen and (min-width: 601px) {\n [class^=\'pagination-lg-btn\'] {\n display: none;\n }\n }\n .fa-arrow-left {\n margin-right: 0.5rem;\n }\n .fa-arrow-right {\n margin-left: 0.5rem;\n }\n .pagination-container::-webkit-scrollbar {\n height: 8px;\n }\n .pagination-container::-webkit-scrollbar-track,\n .pagination-container::-webkit-scrollbar-thumb {\n -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);\n border-radius: 4px;\n }\n .pagination-container::-webkit-scrollbar-track {\n background-color: rgba(0, 0, 0, 0.1);\n }\n .pagination-container::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.3);\n }\n '
|
|
86
|
+
)
|
|
87
|
+
);
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
exports.Pagination = Pagination;
|
|
@@ -13,7 +13,7 @@ var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
|
13
13
|
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
14
14
|
var Feature = require('./Feature.js');
|
|
15
15
|
var urlFor = require('./urlFor.js');
|
|
16
|
-
var getSerializers = require('./index-
|
|
16
|
+
var getSerializers = require('./index-4f3a9831.js');
|
|
17
17
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
18
18
|
require('./_commonjsHelpers-06173234.js');
|
|
19
19
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -13,7 +13,7 @@ var QueueDeckExpandedPaginated = require('./QueueDeckExpandedPaginated.js');
|
|
|
13
13
|
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
14
14
|
var Feature = require('./Feature.js');
|
|
15
15
|
var urlFor = require('./urlFor.js');
|
|
16
|
-
var getSerializers = require('./index-
|
|
16
|
+
var getSerializers = require('./index-4f3a9831.js');
|
|
17
17
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
18
18
|
require('./_commonjsHelpers-06173234.js');
|
|
19
19
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -47,7 +47,8 @@ require('./AuthorComponent-39b37d84.js');
|
|
|
47
47
|
require('./ADlgInfeed-c9bd09b8.js');
|
|
48
48
|
require('./getContentCategory-f38a4c00.js');
|
|
49
49
|
require('./timeDifferenceCalc.js');
|
|
50
|
-
require('./Pagination-
|
|
50
|
+
require('./Pagination-c63770a3.js');
|
|
51
|
+
require('react-paginate');
|
|
51
52
|
require('react-bootstrap/Button');
|
|
52
53
|
require('./index.esm-d51c9ac6.js');
|
|
53
54
|
require('./iconBase-be4097c0.js');
|
|
@@ -387,32 +387,32 @@ module.exports = { "default": set$1, __esModule: true };
|
|
|
387
387
|
|
|
388
388
|
var _Set = _commonjsHelpers.unwrapExports(set);
|
|
389
389
|
|
|
390
|
-
/* usage & query
|
|
391
|
-
const Publication = (props) => {
|
|
392
|
-
const { cache, pub, year } = props
|
|
393
|
-
const targeting = {
|
|
394
|
-
content_placement: [`/journals/${pub.identifier.current}`],
|
|
395
|
-
document_url: [`/journals/${pub.identifier.current}`],
|
|
396
|
-
}
|
|
397
|
-
return (
|
|
398
|
-
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
399
|
-
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
400
|
-
</Shell>
|
|
401
|
-
)
|
|
402
|
-
}
|
|
403
|
-
Publication.getInitialProps = async (ctx) => {
|
|
404
|
-
const { query } = ctx
|
|
405
|
-
const {
|
|
406
|
-
query: { year },
|
|
407
|
-
} = ctx
|
|
408
|
-
const pub = await client.fetch(getQuery('publication'), query)
|
|
409
|
-
**import urlFor from framework**
|
|
410
|
-
pub.issues.map((issue) => {
|
|
411
|
-
issue.thumbnail = urlFor({client, source: issue.thumbnail})
|
|
412
|
-
})
|
|
413
|
-
return { pub, year }
|
|
414
|
-
}
|
|
415
|
-
export default Publication
|
|
390
|
+
/* usage & query
|
|
391
|
+
const Publication = (props) => {
|
|
392
|
+
const { cache, pub, year } = props
|
|
393
|
+
const targeting = {
|
|
394
|
+
content_placement: [`/journals/${pub.identifier.current}`],
|
|
395
|
+
document_url: [`/journals/${pub.identifier.current}`],
|
|
396
|
+
}
|
|
397
|
+
return (
|
|
398
|
+
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
399
|
+
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
400
|
+
</Shell>
|
|
401
|
+
)
|
|
402
|
+
}
|
|
403
|
+
Publication.getInitialProps = async (ctx) => {
|
|
404
|
+
const { query } = ctx
|
|
405
|
+
const {
|
|
406
|
+
query: { year },
|
|
407
|
+
} = ctx
|
|
408
|
+
const pub = await client.fetch(getQuery('publication'), query)
|
|
409
|
+
**import urlFor from framework**
|
|
410
|
+
pub.issues.map((issue) => {
|
|
411
|
+
issue.thumbnail = urlFor({client, source: issue.thumbnail})
|
|
412
|
+
})
|
|
413
|
+
return { pub, year }
|
|
414
|
+
}
|
|
415
|
+
export default Publication
|
|
416
416
|
*/
|
|
417
417
|
|
|
418
418
|
var generateContentPlacements = function generateContentPlacements(issues) {
|
|
@@ -19,7 +19,7 @@ var ADlgInfeed = require('./ADlgInfeed-c9bd09b8.js');
|
|
|
19
19
|
var getContentCategory = require('./getContentCategory-f38a4c00.js');
|
|
20
20
|
var timeDifferenceCalc = require('./timeDifferenceCalc.js');
|
|
21
21
|
var urlFor = require('./urlFor.js');
|
|
22
|
-
var Pagination = require('./Pagination-
|
|
22
|
+
var Pagination = require('./Pagination-c63770a3.js');
|
|
23
23
|
require('./_commonjsHelpers-06173234.js');
|
|
24
24
|
require('./core.get-iterator-method-5643aa10.js');
|
|
25
25
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -39,6 +39,7 @@ require('./Beam.js');
|
|
|
39
39
|
require('./stringify-f7a37a8d.js');
|
|
40
40
|
require('./Segment.js');
|
|
41
41
|
require('./index-d48b231c.js');
|
|
42
|
+
require('react-paginate');
|
|
42
43
|
require('react-bootstrap/Button');
|
|
43
44
|
require('./index.esm-d51c9ac6.js');
|
|
44
45
|
require('./iconBase-be4097c0.js');
|
|
@@ -17,34 +17,34 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
17
17
|
|
|
18
18
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
19
19
|
|
|
20
|
-
/*
|
|
21
|
-
Sample query
|
|
22
|
-
let references = ''
|
|
23
|
-
if(article.taxonomyMapping.length > 0){
|
|
24
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
25
|
-
references = references + `references('${ref._ref}') `
|
|
26
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
27
|
-
references = references + ` && `
|
|
28
|
-
}
|
|
29
|
-
})
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
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] {
|
|
33
|
-
...,
|
|
34
|
-
title,
|
|
35
|
-
summary,
|
|
36
|
-
thumbnail,
|
|
37
|
-
url,
|
|
38
|
-
published,
|
|
39
|
-
authorMapping[]->,
|
|
40
|
-
contentCategory->
|
|
41
|
-
}`
|
|
42
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
43
|
-
|
|
44
|
-
Sample usage
|
|
45
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
46
|
-
|
|
47
|
-
|
|
20
|
+
/*
|
|
21
|
+
Sample query
|
|
22
|
+
let references = ''
|
|
23
|
+
if(article.taxonomyMapping.length > 0){
|
|
24
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
25
|
+
references = references + `references('${ref._ref}') `
|
|
26
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
27
|
+
references = references + ` && `
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
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] {
|
|
33
|
+
...,
|
|
34
|
+
title,
|
|
35
|
+
summary,
|
|
36
|
+
thumbnail,
|
|
37
|
+
url,
|
|
38
|
+
published,
|
|
39
|
+
authorMapping[]->,
|
|
40
|
+
contentCategory->
|
|
41
|
+
}`
|
|
42
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
43
|
+
|
|
44
|
+
Sample usage
|
|
45
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
46
|
+
|
|
47
|
+
|
|
48
48
|
*/
|
|
49
49
|
var RelatedContent = function RelatedContent(props) {
|
|
50
50
|
var client = props.client,
|
|
@@ -22,16 +22,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
22
22
|
_ref$className = _ref.className,
|
|
23
23
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
24
24
|
|
|
25
|
-
/*
|
|
26
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
27
|
-
example:
|
|
28
|
-
<RelatedTopicDropdown
|
|
29
|
-
page='/clinical'
|
|
30
|
-
exclude="clinical"
|
|
31
|
-
className='mb-3'
|
|
32
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
33
|
-
subTaxonomies={props.subTaxonomies}
|
|
34
|
-
/>
|
|
25
|
+
/*
|
|
26
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
27
|
+
example:
|
|
28
|
+
<RelatedTopicDropdown
|
|
29
|
+
page='/clinical'
|
|
30
|
+
exclude="clinical"
|
|
31
|
+
className='mb-3'
|
|
32
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
33
|
+
subTaxonomies={props.subTaxonomies}
|
|
34
|
+
/>
|
|
35
35
|
*/
|
|
36
36
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
37
37
|
if (parentTaxonomy.identifier == exclude) {
|
|
@@ -7,7 +7,7 @@ var React = require('react');
|
|
|
7
7
|
var Router = require('next/router');
|
|
8
8
|
var index = require('./index-fc2f1ca2.js');
|
|
9
9
|
var index_es = require('./index.es-f3e47207.js');
|
|
10
|
-
var SeriesSlider = require('./SeriesSlider-
|
|
10
|
+
var SeriesSlider = require('./SeriesSlider-594b19eb.js');
|
|
11
11
|
var visibilitySensor = require('./visibility-sensor-eb2c5b69.js');
|
|
12
12
|
require('./_commonjsHelpers-06173234.js');
|
|
13
13
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -12,10 +12,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
14
|
|
|
15
|
-
/*
|
|
16
|
-
GROQ query -
|
|
17
|
-
accepts an array of title, URL
|
|
18
|
-
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
15
|
+
/*
|
|
16
|
+
GROQ query -
|
|
17
|
+
accepts an array of title, URL
|
|
18
|
+
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
var SeriesSlider = function SeriesSlider(_ref) {
|
package/dist/cjs/SideFooter.js
CHANGED
|
@@ -40,8 +40,8 @@ var renderLink = function renderLink(row) {
|
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
var SideFooter = function SideFooter(props) {
|
|
43
|
-
/*
|
|
44
|
-
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
43
|
+
/*
|
|
44
|
+
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
45
45
|
*/
|
|
46
46
|
var _get = get.get_1(props, 'cache.siteSettingCache', {}),
|
|
47
47
|
socialLinks = _get.socialLinks,
|
|
@@ -8,7 +8,7 @@ var React = require('react');
|
|
|
8
8
|
var Router = require('next/router');
|
|
9
9
|
var Head = require('next/head');
|
|
10
10
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
11
|
-
var getSerializers = require('./index-
|
|
11
|
+
var getSerializers = require('./index-4f3a9831.js');
|
|
12
12
|
require('./_commonjsHelpers-06173234.js');
|
|
13
13
|
require('./core.get-iterator-method-5643aa10.js');
|
|
14
14
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -7,7 +7,7 @@ var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
|
7
7
|
var Col = require('react-bootstrap/Col');
|
|
8
8
|
var Form = require('react-bootstrap/Form');
|
|
9
9
|
var Button = require('react-bootstrap/Button');
|
|
10
|
-
var getSerializers = require('./index-
|
|
10
|
+
var getSerializers = require('./index-4f3a9831.js');
|
|
11
11
|
var VideoSeriesListing = require('./VideoSeriesListing.js');
|
|
12
12
|
require('./_commonjsHelpers-06173234.js');
|
|
13
13
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -21,7 +21,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
21
21
|
|
|
22
22
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
23
23
|
|
|
24
|
-
var css = ".VideoSeriesCard-module_article__Hlc3e {\
|
|
24
|
+
var css = ".VideoSeriesCard-module_article__Hlc3e {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.VideoSeriesCard-module_article__Hlc3e a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.VideoSeriesCard-module_thumb__3hGyJ {\n width: 25%;\n}\n.VideoSeriesCard-module_thumb__3hGyJ img {\n width: 100%;\n height: auto;\n}\n.VideoSeriesCard-module_info__2_i1N {\n width: 75%;\n font-size: 1rem;\n}\n.VideoSeriesCard-module_info__2_i1N h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.VideoSeriesCard-module_published__1fI0q {\n color: #6d6d6d;\n margin: 0;\n}\n.VideoSeriesCard-module_summary__3hWJT {\n margin: 0.5rem 0 0 0;\n}\n.VideoSeriesCard-module_author__aU35o {\n margin: 0;\n}\n.VideoSeriesCard-module_author__aU35o span {\n color: #6d6d6d;\n}\n@media only screen and (max-width: 568px) {\n .VideoSeriesCard-module_article__Hlc3e {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .VideoSeriesCard-module_article__Hlc3e a {\n flex-direction: column;\n align-items: center;\n }\n .VideoSeriesCard-module_thumb__3hGyJ {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .VideoSeriesCard-module_thumb__3hGyJ img{\n border-radius: 10px 10px 0 0; \n }\n .VideoSeriesCard-module_thumb__3hGyJ figure {\n margin: 0;\n }\n .VideoSeriesCard-module_info__2_i1N {\n width: 90%;\n padding: 1rem !important;\n }\n .VideoSeriesCard-module_info__2_i1N h2 {\n font-size: 1rem;\n }\n}\n";
|
|
25
25
|
var styles = { "article": "VideoSeriesCard-module_article__Hlc3e", "thumb": "VideoSeriesCard-module_thumb__3hGyJ", "info": "VideoSeriesCard-module_info__2_i1N", "published": "VideoSeriesCard-module_published__1fI0q", "summary": "VideoSeriesCard-module_summary__3hWJT", "author": "VideoSeriesCard-module_author__aU35o" };
|
|
26
26
|
styleInject_es.styleInject(css);
|
|
27
27
|
|