@mjhls/mjh-framework 1.0.884-gridcontent-paginated-v2 → 1.0.884
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 +1 -1
- package/dist/cjs/AuthWrapper.js +1 -1
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/DeckContent.js +8 -8
- package/dist/cjs/EventsDeck.js +17 -17
- package/dist/cjs/GridContent.js +157 -44
- package/dist/cjs/HamMagazine.js +9 -9
- package/dist/cjs/IssueLanding.js +29 -29
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/MasterDeck.js +8 -8
- package/dist/cjs/MediaSeriesLanding.js +9524 -42
- package/dist/cjs/NavMagazine.js +10 -10
- package/dist/cjs/NavNative.js +9 -9
- package/dist/cjs/PartnerDetailListing.js +2807 -12
- package/dist/cjs/PublicationLanding.js +26 -26
- 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-de93a303.js → SeriesSlider-ba0c5d1a.js} +4 -4
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/View.js +3 -3
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/{getTargeting-6d59cc5b.js → getTargeting-9d509319.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/index.js +2 -4
- package/dist/esm/AlgoliaSearch.js +1 -1
- package/dist/esm/AuthWrapper.js +1 -1
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/DeckContent.js +8 -8
- package/dist/esm/EventsDeck.js +17 -17
- package/dist/esm/GridContent.js +114 -2
- package/dist/esm/HamMagazine.js +9 -9
- package/dist/esm/IssueLanding.js +29 -29
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/MasterDeck.js +8 -8
- package/dist/esm/MediaSeriesLanding.js +9518 -38
- package/dist/esm/NavMagazine.js +10 -10
- package/dist/esm/NavNative.js +9 -9
- package/dist/esm/PartnerDetailListing.js +2807 -13
- package/dist/esm/PublicationLanding.js +26 -26
- 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-98ad6d97.js → SeriesSlider-45adb8dc.js} +4 -4
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/View.js +3 -3
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/{getTargeting-36031a00.js → getTargeting-4061f839.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/index.js +2 -4
- package/package.json +111 -112
- package/dist/cjs/ContentCardPaginated.js +0 -413
- package/dist/cjs/DeckQueuePaginated.js +0 -344
- package/dist/cjs/GridContentPaginated.js +0 -703
- package/dist/cjs/ImageSlider-b96720eb.js +0 -2813
- package/dist/cjs/MasterDeckPaginated.js +0 -445
- package/dist/cjs/MediaSeriesCard-3d5c69ba.js +0 -9505
- package/dist/cjs/MediaSeriesLandingPaginated.js +0 -523
- package/dist/cjs/Pagination-b5e8b8dc.js +0 -60
- package/dist/cjs/PartnerDetailListingPaginated.js +0 -313
- package/dist/cjs/PublicationFeature-5ccf9b13.js +0 -130
- package/dist/cjs/QueueDeckExpandedPaginated.js +0 -1377
- package/dist/esm/ContentCardPaginated.js +0 -402
- package/dist/esm/DeckQueuePaginated.js +0 -333
- package/dist/esm/GridContentPaginated.js +0 -692
- package/dist/esm/ImageSlider-de7846ea.js +0 -2804
- package/dist/esm/MasterDeckPaginated.js +0 -437
- package/dist/esm/MediaSeriesCard-5b1d13dd.js +0 -9495
- package/dist/esm/MediaSeriesLandingPaginated.js +0 -516
- package/dist/esm/Pagination-481eaaf5.js +0 -54
- package/dist/esm/PartnerDetailListingPaginated.js +0 -307
- package/dist/esm/PublicationFeature-d88e76b9.js +0 -121
- package/dist/esm/QueueDeckExpandedPaginated.js +0 -1371
|
@@ -385,32 +385,32 @@ module.exports = { "default": set$1, __esModule: true };
|
|
|
385
385
|
|
|
386
386
|
var _Set = _commonjsHelpers.unwrapExports(set);
|
|
387
387
|
|
|
388
|
-
/* usage & query
|
|
389
|
-
const Publication = (props) => {
|
|
390
|
-
const { cache, pub, year } = props
|
|
391
|
-
const targeting = {
|
|
392
|
-
content_placement: [`/journals/${pub.identifier.current}`],
|
|
393
|
-
document_url: [`/journals/${pub.identifier.current}`],
|
|
394
|
-
}
|
|
395
|
-
return (
|
|
396
|
-
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
397
|
-
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
398
|
-
</Shell>
|
|
399
|
-
)
|
|
400
|
-
}
|
|
401
|
-
Publication.getInitialProps = async (ctx) => {
|
|
402
|
-
const { query } = ctx
|
|
403
|
-
const {
|
|
404
|
-
query: { year },
|
|
405
|
-
} = ctx
|
|
406
|
-
const pub = await client.fetch(getQuery('publication'), query)
|
|
407
|
-
**import urlFor from framework**
|
|
408
|
-
pub.issues.map((issue) => {
|
|
409
|
-
issue.thumbnail = urlFor({client, source: issue.thumbnail})
|
|
410
|
-
})
|
|
411
|
-
return { pub, year }
|
|
412
|
-
}
|
|
413
|
-
export default Publication
|
|
388
|
+
/* usage & query
|
|
389
|
+
const Publication = (props) => {
|
|
390
|
+
const { cache, pub, year } = props
|
|
391
|
+
const targeting = {
|
|
392
|
+
content_placement: [`/journals/${pub.identifier.current}`],
|
|
393
|
+
document_url: [`/journals/${pub.identifier.current}`],
|
|
394
|
+
}
|
|
395
|
+
return (
|
|
396
|
+
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
397
|
+
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
398
|
+
</Shell>
|
|
399
|
+
)
|
|
400
|
+
}
|
|
401
|
+
Publication.getInitialProps = async (ctx) => {
|
|
402
|
+
const { query } = ctx
|
|
403
|
+
const {
|
|
404
|
+
query: { year },
|
|
405
|
+
} = ctx
|
|
406
|
+
const pub = await client.fetch(getQuery('publication'), query)
|
|
407
|
+
**import urlFor from framework**
|
|
408
|
+
pub.issues.map((issue) => {
|
|
409
|
+
issue.thumbnail = urlFor({client, source: issue.thumbnail})
|
|
410
|
+
})
|
|
411
|
+
return { pub, year }
|
|
412
|
+
}
|
|
413
|
+
export default Publication
|
|
414
414
|
*/
|
|
415
415
|
|
|
416
416
|
var generateContentPlacements = function generateContentPlacements(issues) {
|
|
@@ -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-ba0c5d1a.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
|
@@ -38,8 +38,8 @@ var renderLink = function renderLink(row) {
|
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
var SideFooter = function SideFooter(props) {
|
|
41
|
-
/*
|
|
42
|
-
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
41
|
+
/*
|
|
42
|
+
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
43
43
|
*/
|
|
44
44
|
var _get = get.get_1(props, 'cache.siteSettingCache', {}),
|
|
45
45
|
socialLinks = _get.socialLinks,
|
|
@@ -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
|
|
package/dist/cjs/View.js
CHANGED
|
@@ -19,8 +19,8 @@ var visibilitySensor = require('./visibility-sensor-eb2c5b69.js');
|
|
|
19
19
|
var SocialShare = require('./SocialShare.js');
|
|
20
20
|
var getSerializers = require('./index-6f89aea7.js');
|
|
21
21
|
var AdSlot = require('./AdSlot.js');
|
|
22
|
-
var SeriesSlider = require('./SeriesSlider-
|
|
23
|
-
var getTargeting = require('./getTargeting-
|
|
22
|
+
var SeriesSlider = require('./SeriesSlider-ba0c5d1a.js');
|
|
23
|
+
var getTargeting = require('./getTargeting-9d509319.js');
|
|
24
24
|
var getKeywords = require('./getKeywords.js');
|
|
25
25
|
var urlFor = require('./urlFor.js');
|
|
26
26
|
var _typeof = require('./typeof-567e31ff.js');
|
|
@@ -346,7 +346,7 @@ var ISI = function ISI(props) {
|
|
|
346
346
|
);
|
|
347
347
|
};
|
|
348
348
|
|
|
349
|
-
var css = ".RelatedArticles-module_mediaContainer__10h9k {\
|
|
349
|
+
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_imgWrapper__5Jx_4 {\n display: none;\n }\n .RelatedArticles-module_mediaCard__3wQbn {\n width: 100%;\n margin-bottom: 0.5rem;\n padding: 0;\n }\n .RelatedArticles-module_cardTitle__3P-Ib {\n font-size: 0.75rem;\n margin-bottom: 0;\n }\n}\n";
|
|
350
350
|
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" };
|
|
351
351
|
styleInject_es.styleInject(css);
|
|
352
352
|
|
package/dist/cjs/YoutubeGroup.js
CHANGED
|
@@ -18,10 +18,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
18
18
|
|
|
19
19
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
20
20
|
|
|
21
|
-
/*
|
|
22
|
-
GROQ query -
|
|
23
|
-
accepts an array of title, URL
|
|
24
|
-
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
21
|
+
/*
|
|
22
|
+
GROQ query -
|
|
23
|
+
accepts an array of title, URL
|
|
24
|
+
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
var YoutubeGroup = function YoutubeGroup(props) {
|
|
@@ -4,18 +4,18 @@ var _extends = require('./extends-7c86182f.js');
|
|
|
4
4
|
var toConsumableArray = require('./toConsumableArray-d7797c2b.js');
|
|
5
5
|
|
|
6
6
|
var getContentPlacementUrl = function getContentPlacementUrl(cp) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
var cp_url = '';
|
|
8
|
+
if (cp.ancestor && typeof cp.ancestor == 'string') {
|
|
9
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
|
|
10
|
+
}
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
|
|
13
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.parent;
|
|
14
|
+
}
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
return cp_url;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
var getTargeting = function getTargeting(props) {
|
package/dist/cjs/getTargeting.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./extends-7c86182f.js');
|
|
4
4
|
require('./toConsumableArray-d7797c2b.js');
|
|
5
|
-
var getTargeting = require('./getTargeting-
|
|
5
|
+
var getTargeting = require('./getTargeting-9d509319.js');
|
|
6
6
|
require('./_commonjsHelpers-06173234.js');
|
|
7
7
|
require('./core.get-iterator-method-5643aa10.js');
|
|
8
8
|
require('./_object-pie-083f2dd6.js');
|
package/dist/cjs/index.js
CHANGED
|
@@ -96,7 +96,7 @@ var VideoProgramLandingPage = require('./VideoProgramLandingPage.js');
|
|
|
96
96
|
var VideoSeriesLandingPage = require('./VideoSeriesLandingPage.js');
|
|
97
97
|
var ArticleProgramLandingPage = require('./ArticleProgramLandingPage.js');
|
|
98
98
|
var ArticleSeriesLandingPage = require('./ArticleSeriesLandingPage.js');
|
|
99
|
-
var getTargeting = require('./getTargeting-
|
|
99
|
+
var getTargeting = require('./getTargeting-9d509319.js');
|
|
100
100
|
var getKeywords = require('./getKeywords.js');
|
|
101
101
|
var getQuery = require('./getQuery.js');
|
|
102
102
|
require('./toConsumableArray-d7797c2b.js');
|
|
@@ -135,7 +135,6 @@ require('./getContentCategory-f38a4c00.js');
|
|
|
135
135
|
require('./get-5839e5b5.js');
|
|
136
136
|
require('./eq-5fc26c07.js');
|
|
137
137
|
require('./AuthorComponent-39b37d84.js');
|
|
138
|
-
require('./PublicationFeature-5ccf9b13.js');
|
|
139
138
|
require('react-bootstrap/Button');
|
|
140
139
|
require('react-bootstrap/Media');
|
|
141
140
|
require('./BlockContent-9ebd251f.js');
|
|
@@ -191,11 +190,10 @@ require('swr');
|
|
|
191
190
|
require('passport-local');
|
|
192
191
|
require('mysql');
|
|
193
192
|
require('./md5-e1ca5797.js');
|
|
194
|
-
require('./SeriesSlider-
|
|
193
|
+
require('./SeriesSlider-ba0c5d1a.js');
|
|
195
194
|
require('./style-inject.es-dcee06b6.js');
|
|
196
195
|
require('disqus-react');
|
|
197
196
|
require('react-twitter-embed');
|
|
198
|
-
require('./ImageSlider-b96720eb.js');
|
|
199
197
|
require('./defineProperty-e0fb52c5.js');
|
|
200
198
|
require('./VideoSeriesCard.js');
|
|
201
199
|
|
package/dist/esm/AuthWrapper.js
CHANGED
|
@@ -1761,7 +1761,7 @@ client$1.Provider;
|
|
|
1761
1761
|
|
|
1762
1762
|
var client = client$1.default;
|
|
1763
1763
|
|
|
1764
|
-
var css = ".AuthWrapper-module_loginBox__3l-BE {\
|
|
1764
|
+
var css = ".AuthWrapper-module_loginBox__3l-BE {\n margin-bottom: 2rem;\n width: 350px;\n max-width: 90vw;\n margin-left: auto;\n margin-right: auto;\n /* box-shadow: 2px 5px 12px rgba(0, 0, 0, 0.15); */\n background: #fff;\n z-index: 1;\n}\n.AuthWrapper-module_loginBox_title__12rGD {\n margin-bottom: 2rem;\n text-align: center;\n}\n.AuthWrapper-module_bar__1dafn {\n background: #eee;\n margin-left: unset;\n margin-right: unset;\n}\n.AuthWrapper-module_bar__1dafn:nth-child(1) {\n float: left;\n border-right: 1rem solid #fff;\n background: rgb(245, 245, 245);\n height: 10rem;\n width: 25%;\n margin-left: auto;\n margin-right: auto;\n margin-bottom: 2rem;\n}\n.AuthWrapper-module_bar__1dafn:nth-child(2n) {\n width: 97%;\n height: 1.5rem;\n margin-bottom: 0.25rem;\n}\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(3n) {\n width: 96%;\n height: 1.5rem;\n margin-bottom: 1.5rem;\n}\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(4n) {\n width: 72%;\n height: 1.5rem;\n margin-bottom: 0.25rem;\n}\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(5n) {\n width: 88%;\n height: 1.5rem;\n margin-bottom: 0.25rem;\n}\n\n.AuthWrapper-module_iframe__2wDJW {\n margin-top: -3rem;\n border: none;\n width: 100%;\n height: 1900px;\n}";
|
|
1765
1765
|
var styles = { "loginBox": "AuthWrapper-module_loginBox__3l-BE", "loginBox_title": "AuthWrapper-module_loginBox_title__12rGD", "bar": "AuthWrapper-module_bar__1dafn", "iframe": "AuthWrapper-module_iframe__2wDJW" };
|
|
1766
1766
|
styleInject(css);
|
|
1767
1767
|
|
|
@@ -7,21 +7,21 @@ import './web.dom.iterable-ab4dea5c.js';
|
|
|
7
7
|
import './core.get-iterator-method-ea258bb1.js';
|
|
8
8
|
import './index-3f5c03b2.js';
|
|
9
9
|
|
|
10
|
-
/*
|
|
11
|
-
Example usage - targetedonc.com/latest-conference
|
|
12
|
-
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
13
|
-
...,
|
|
14
|
-
title,
|
|
15
|
-
summary,
|
|
16
|
-
thumbnail,
|
|
17
|
-
url,
|
|
18
|
-
published,
|
|
19
|
-
documentGroup->,
|
|
20
|
-
contentCategory->,
|
|
21
|
-
'pageNumber': ${currentPage}
|
|
22
|
-
}`
|
|
23
|
-
|
|
24
|
-
const posts = await client.fetch(query, params)
|
|
10
|
+
/*
|
|
11
|
+
Example usage - targetedonc.com/latest-conference
|
|
12
|
+
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
13
|
+
...,
|
|
14
|
+
title,
|
|
15
|
+
summary,
|
|
16
|
+
thumbnail,
|
|
17
|
+
url,
|
|
18
|
+
published,
|
|
19
|
+
documentGroup->,
|
|
20
|
+
contentCategory->,
|
|
21
|
+
'pageNumber': ${currentPage}
|
|
22
|
+
}`
|
|
23
|
+
|
|
24
|
+
const posts = await client.fetch(query, params)
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
package/dist/esm/DeckContent.js
CHANGED
|
@@ -172,14 +172,14 @@ var DeckContent = function (_React$Component) {
|
|
|
172
172
|
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
173
173
|
|
|
174
174
|
// please leave this for later debug purpose : Yong Jun.
|
|
175
|
-
/* console.log('page change reported', {
|
|
176
|
-
currentPage: currentPage,
|
|
177
|
-
pageNumber: pageNumber,
|
|
178
|
-
pathname: pathname,
|
|
179
|
-
path: path,
|
|
180
|
-
newPath: newPath,
|
|
181
|
-
firstPage: pageNumber === 1,
|
|
182
|
-
queryString: queryString
|
|
175
|
+
/* console.log('page change reported', {
|
|
176
|
+
currentPage: currentPage,
|
|
177
|
+
pageNumber: pageNumber,
|
|
178
|
+
pathname: pathname,
|
|
179
|
+
path: path,
|
|
180
|
+
newPath: newPath,
|
|
181
|
+
firstPage: pageNumber === 1,
|
|
182
|
+
queryString: queryString
|
|
183
183
|
}) */
|
|
184
184
|
|
|
185
185
|
if (pageview) {
|
package/dist/esm/EventsDeck.js
CHANGED
|
@@ -243,23 +243,23 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
243
243
|
if (cventAccessToken && cventAccessToken !== 'undefined') {
|
|
244
244
|
setAccessToken(cventAccessToken);
|
|
245
245
|
} else {
|
|
246
|
-
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
247
|
-
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
248
|
-
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
249
|
-
fetch(url, {
|
|
250
|
-
headers: {
|
|
251
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
252
|
-
Authorization: `Basic ${encodedData}`
|
|
253
|
-
},
|
|
254
|
-
method: 'POST',
|
|
255
|
-
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
256
|
-
})
|
|
257
|
-
.then((response) => response.json())
|
|
258
|
-
.then((json) => {
|
|
259
|
-
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
260
|
-
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
261
|
-
setAccessToken(json.access_token)
|
|
262
|
-
})
|
|
246
|
+
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
247
|
+
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
248
|
+
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
249
|
+
fetch(url, {
|
|
250
|
+
headers: {
|
|
251
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
252
|
+
Authorization: `Basic ${encodedData}`
|
|
253
|
+
},
|
|
254
|
+
method: 'POST',
|
|
255
|
+
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
256
|
+
})
|
|
257
|
+
.then((response) => response.json())
|
|
258
|
+
.then((json) => {
|
|
259
|
+
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
260
|
+
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
261
|
+
setAccessToken(json.access_token)
|
|
262
|
+
})
|
|
263
263
|
.catch((e) => console.log(e))*/
|
|
264
264
|
// hello
|
|
265
265
|
var url = 'https://beam.mjhlifesciences.com/api/cvent/token';
|
package/dist/esm/GridContent.js
CHANGED
|
@@ -23,7 +23,7 @@ import urlFor from './urlFor.js';
|
|
|
23
23
|
import { m as main_43 } from './main-1894c974.js';
|
|
24
24
|
import './AD.js';
|
|
25
25
|
import { A as AuthorComponent } from './AuthorComponent-11adff02.js';
|
|
26
|
-
import
|
|
26
|
+
import Button from 'react-bootstrap/Button';
|
|
27
27
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
28
28
|
import './core.get-iterator-method-ea258bb1.js';
|
|
29
29
|
import './_iter-detect-98db3b07.js';
|
|
@@ -47,7 +47,119 @@ import './isSymbol-a7e9aafe.js';
|
|
|
47
47
|
import './eq-bdcbf886.js';
|
|
48
48
|
import './toNumber-5aeba6e7.js';
|
|
49
49
|
import './index-3f5c03b2.js';
|
|
50
|
-
|
|
50
|
+
|
|
51
|
+
var PublicationFeature = function PublicationFeature(_ref) {
|
|
52
|
+
var data = _ref.data,
|
|
53
|
+
_ref$issueMapping = _ref.issueMapping,
|
|
54
|
+
issueMapping = _ref$issueMapping === undefined ? '/publications' : _ref$issueMapping,
|
|
55
|
+
defaultImage = _ref.defaultImage,
|
|
56
|
+
client = _ref.client;
|
|
57
|
+
|
|
58
|
+
var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
|
|
59
|
+
var _data$parent = data.parent;
|
|
60
|
+
_data$parent = _data$parent === undefined ? {} : _data$parent;
|
|
61
|
+
var _data$parent$identifi = _data$parent.identifier;
|
|
62
|
+
_data$parent$identifi = _data$parent$identifi === undefined ? {} : _data$parent$identifi;
|
|
63
|
+
var parentSlug = _data$parent$identifi.current,
|
|
64
|
+
_data$identifier = data.identifier;
|
|
65
|
+
_data$identifier = _data$identifier === undefined ? {} : _data$identifier;
|
|
66
|
+
var childSlug = _data$identifier.current,
|
|
67
|
+
name = data.name,
|
|
68
|
+
articles = data.articles,
|
|
69
|
+
month = data.month,
|
|
70
|
+
year = data.year,
|
|
71
|
+
thumbnail = data.thumbnail;
|
|
72
|
+
|
|
73
|
+
if (name && articles && articles.length > 0) {
|
|
74
|
+
return React__default.createElement(
|
|
75
|
+
'div',
|
|
76
|
+
{ className: 'publication-feature-container border rounded p-2' },
|
|
77
|
+
React__default.createElement(
|
|
78
|
+
Row,
|
|
79
|
+
null,
|
|
80
|
+
React__default.createElement(
|
|
81
|
+
Col,
|
|
82
|
+
{ xs: 12 },
|
|
83
|
+
React__default.createElement(
|
|
84
|
+
'h4',
|
|
85
|
+
null,
|
|
86
|
+
name,
|
|
87
|
+
month && year && React__default.createElement(
|
|
88
|
+
'span',
|
|
89
|
+
null,
|
|
90
|
+
' ',
|
|
91
|
+
'| ',
|
|
92
|
+
months[parseInt(month, 10)],
|
|
93
|
+
' ',
|
|
94
|
+
year
|
|
95
|
+
)
|
|
96
|
+
)
|
|
97
|
+
),
|
|
98
|
+
React__default.createElement(
|
|
99
|
+
Col,
|
|
100
|
+
{ xs: 12, sm: 4 },
|
|
101
|
+
React__default.createElement(
|
|
102
|
+
LazyLoad,
|
|
103
|
+
{ once: true },
|
|
104
|
+
React__default.createElement('img', { className: 'w-100 mb-2', src: thumbnail && thumbnail.asset && client ? urlFor({ client: client, source: thumbnail.asset }) : defaultImage, alt: name || '' })
|
|
105
|
+
)
|
|
106
|
+
),
|
|
107
|
+
React__default.createElement(
|
|
108
|
+
Col,
|
|
109
|
+
{ xs: 12, sm: 8 },
|
|
110
|
+
React__default.createElement(
|
|
111
|
+
Row,
|
|
112
|
+
null,
|
|
113
|
+
articles.map(function (article) {
|
|
114
|
+
return React__default.createElement(
|
|
115
|
+
Col,
|
|
116
|
+
{ key: article._id, xs: 12, sm: 6 },
|
|
117
|
+
article.issueSection && article.issueSection.name && React__default.createElement(
|
|
118
|
+
'h6',
|
|
119
|
+
{ className: 'text-primary m-0 p-0 text-uppercase font-weight-bold' },
|
|
120
|
+
article.issueSection.name
|
|
121
|
+
),
|
|
122
|
+
article.title && React__default.createElement(
|
|
123
|
+
React__default.Fragment,
|
|
124
|
+
null,
|
|
125
|
+
article.url && article.url.current ? React__default.createElement(
|
|
126
|
+
'a',
|
|
127
|
+
{ href: '/view/' + article.url.current },
|
|
128
|
+
React__default.createElement(
|
|
129
|
+
'h6',
|
|
130
|
+
{ className: 'text-break' },
|
|
131
|
+
article.title
|
|
132
|
+
)
|
|
133
|
+
) : React__default.createElement(
|
|
134
|
+
'h6',
|
|
135
|
+
{ className: 'text-break' },
|
|
136
|
+
article.title
|
|
137
|
+
)
|
|
138
|
+
)
|
|
139
|
+
);
|
|
140
|
+
})
|
|
141
|
+
)
|
|
142
|
+
),
|
|
143
|
+
issueMapping && parentSlug && childSlug && React__default.createElement(
|
|
144
|
+
Col,
|
|
145
|
+
{ xs: 12 },
|
|
146
|
+
React__default.createElement(
|
|
147
|
+
Button,
|
|
148
|
+
{ href: issueMapping + '/' + parentSlug + '/' + childSlug, className: 'float-right', variant: 'outline-primary' },
|
|
149
|
+
'More Articles ',
|
|
150
|
+
'>>'
|
|
151
|
+
)
|
|
152
|
+
)
|
|
153
|
+
),
|
|
154
|
+
React__default.createElement(
|
|
155
|
+
'style',
|
|
156
|
+
{ jsx: 'true' },
|
|
157
|
+
'\n .row {\n margin-top: -15px;\n margin-left: -15px;\n margin-right: 0;\n }\n .row > * {\n padding-top: 15px;\n padding-left: 15px;\n padding-right: 0;\n }\n '
|
|
158
|
+
)
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
return null;
|
|
162
|
+
};
|
|
51
163
|
|
|
52
164
|
var GridContent = function (_React$Component) {
|
|
53
165
|
_inherits(GridContent, _React$Component);
|
package/dist/esm/HamMagazine.js
CHANGED
|
@@ -26,15 +26,15 @@ import './_library-528f1934.js';
|
|
|
26
26
|
import './_iter-detect-98db3b07.js';
|
|
27
27
|
|
|
28
28
|
var HamMagazine = function HamMagazine(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
|
-
/>
|
|
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
|
+
/>
|
|
38
38
|
*/
|
|
39
39
|
|
|
40
40
|
// Setting 'socialIconVariant' as 'light' as default to make the social icons and search icon black
|