@mjhls/mjh-framework 1.0.893-video-series-listing-thumbnail-v2 → 1.0.893
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/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/GridContentPaginated.js +2 -1
- 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/MasterDeckPaginated.js +10 -9
- package/dist/cjs/{MediaSeriesCard-bc32a178.js → MediaSeriesCard-4c54faa5.js} +1 -1
- package/dist/cjs/MediaSeriesLanding.js +6 -6
- package/dist/cjs/MediaSeriesLandingPaginated.js +8 -7
- package/dist/cjs/NavMagazine.js +10 -10
- package/dist/cjs/NavNative.js +9 -9
- package/dist/cjs/Pagination-885dcfbd.js +90 -0
- package/dist/cjs/PartnerDetailListingPaginated.js +2 -1
- 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-de93a303.js → SeriesSlider-ba0c5d1a.js} +4 -4
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/VideoProgramLandingPage.js +1 -1
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesFilter.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 -2
- package/dist/esm/AlgoliaSearch.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/GridContentPaginated.js +2 -1
- 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/MasterDeckPaginated.js +10 -9
- package/dist/esm/{MediaSeriesCard-a6398bed.js → MediaSeriesCard-7898a5ae.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +6 -6
- package/dist/esm/MediaSeriesLandingPaginated.js +8 -7
- package/dist/esm/NavMagazine.js +10 -10
- package/dist/esm/NavNative.js +9 -9
- package/dist/esm/Pagination-59436882.js +82 -0
- package/dist/esm/PartnerDetailListingPaginated.js +2 -1
- 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-98ad6d97.js → SeriesSlider-45adb8dc.js} +4 -4
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/VideoProgramLandingPage.js +1 -1
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesFilter.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 -2
- package/package.json +112 -112
- package/dist/cjs/Pagination-42f92f7c.js +0 -97
- package/dist/esm/Pagination-484b86c5.js +0 -90
|
@@ -375,32 +375,32 @@ module.exports = { "default": set$1, __esModule: true };
|
|
|
375
375
|
|
|
376
376
|
var _Set = unwrapExports(set);
|
|
377
377
|
|
|
378
|
-
/* usage & query
|
|
379
|
-
const Publication = (props) => {
|
|
380
|
-
const { cache, pub, year } = props
|
|
381
|
-
const targeting = {
|
|
382
|
-
content_placement: [`/journals/${pub.identifier.current}`],
|
|
383
|
-
document_url: [`/journals/${pub.identifier.current}`],
|
|
384
|
-
}
|
|
385
|
-
return (
|
|
386
|
-
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
387
|
-
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
388
|
-
</Shell>
|
|
389
|
-
)
|
|
390
|
-
}
|
|
391
|
-
Publication.getInitialProps = async (ctx) => {
|
|
392
|
-
const { query } = ctx
|
|
393
|
-
const {
|
|
394
|
-
query: { year },
|
|
395
|
-
} = ctx
|
|
396
|
-
const pub = await client.fetch(getQuery('publication'), query)
|
|
397
|
-
**import urlFor from framework**
|
|
398
|
-
pub.issues.map((issue) => {
|
|
399
|
-
issue.thumbnail = urlFor({client, source: issue.thumbnail})
|
|
400
|
-
})
|
|
401
|
-
return { pub, year }
|
|
402
|
-
}
|
|
403
|
-
export default Publication
|
|
378
|
+
/* usage & query
|
|
379
|
+
const Publication = (props) => {
|
|
380
|
+
const { cache, pub, year } = props
|
|
381
|
+
const targeting = {
|
|
382
|
+
content_placement: [`/journals/${pub.identifier.current}`],
|
|
383
|
+
document_url: [`/journals/${pub.identifier.current}`],
|
|
384
|
+
}
|
|
385
|
+
return (
|
|
386
|
+
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
387
|
+
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
388
|
+
</Shell>
|
|
389
|
+
)
|
|
390
|
+
}
|
|
391
|
+
Publication.getInitialProps = async (ctx) => {
|
|
392
|
+
const { query } = ctx
|
|
393
|
+
const {
|
|
394
|
+
query: { year },
|
|
395
|
+
} = ctx
|
|
396
|
+
const pub = await client.fetch(getQuery('publication'), query)
|
|
397
|
+
**import urlFor from framework**
|
|
398
|
+
pub.issues.map((issue) => {
|
|
399
|
+
issue.thumbnail = urlFor({client, source: issue.thumbnail})
|
|
400
|
+
})
|
|
401
|
+
return { pub, year }
|
|
402
|
+
}
|
|
403
|
+
export default Publication
|
|
404
404
|
*/
|
|
405
405
|
|
|
406
406
|
var generateContentPlacements = function generateContentPlacements(issues) {
|
|
@@ -17,7 +17,7 @@ import { A as ADlgInfeed } from './ADlgInfeed-013e1f4a.js';
|
|
|
17
17
|
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
18
18
|
import timeDifferenceCalc from './timeDifferenceCalc.js';
|
|
19
19
|
import urlFor from './urlFor.js';
|
|
20
|
-
import { P as Pagination } from './Pagination-
|
|
20
|
+
import { P as Pagination } from './Pagination-59436882.js';
|
|
21
21
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
22
22
|
import './core.get-iterator-method-ea258bb1.js';
|
|
23
23
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -36,6 +36,7 @@ import './Beam.js';
|
|
|
36
36
|
import './stringify-2b084bee.js';
|
|
37
37
|
import './Segment.js';
|
|
38
38
|
import './index-3f5c03b2.js';
|
|
39
|
+
import 'react-paginate';
|
|
39
40
|
import 'react-bootstrap/Button';
|
|
40
41
|
import './index.esm-1bd8a0a8.js';
|
|
41
42
|
import './iconBase-ccc56b97.js';
|
|
@@ -11,34 +11,34 @@ import './index-3f5c03b2.js';
|
|
|
11
11
|
import 'react-dom';
|
|
12
12
|
import 'prop-types';
|
|
13
13
|
|
|
14
|
-
/*
|
|
15
|
-
Sample query
|
|
16
|
-
let references = ''
|
|
17
|
-
if(article.taxonomyMapping.length > 0){
|
|
18
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
19
|
-
references = references + `references('${ref._ref}') `
|
|
20
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
21
|
-
references = references + ` && `
|
|
22
|
-
}
|
|
23
|
-
})
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
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] {
|
|
27
|
-
...,
|
|
28
|
-
title,
|
|
29
|
-
summary,
|
|
30
|
-
thumbnail,
|
|
31
|
-
url,
|
|
32
|
-
published,
|
|
33
|
-
authorMapping[]->,
|
|
34
|
-
contentCategory->
|
|
35
|
-
}`
|
|
36
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
37
|
-
|
|
38
|
-
Sample usage
|
|
39
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
40
|
-
|
|
41
|
-
|
|
14
|
+
/*
|
|
15
|
+
Sample query
|
|
16
|
+
let references = ''
|
|
17
|
+
if(article.taxonomyMapping.length > 0){
|
|
18
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
19
|
+
references = references + `references('${ref._ref}') `
|
|
20
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
21
|
+
references = references + ` && `
|
|
22
|
+
}
|
|
23
|
+
})
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
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] {
|
|
27
|
+
...,
|
|
28
|
+
title,
|
|
29
|
+
summary,
|
|
30
|
+
thumbnail,
|
|
31
|
+
url,
|
|
32
|
+
published,
|
|
33
|
+
authorMapping[]->,
|
|
34
|
+
contentCategory->
|
|
35
|
+
}`
|
|
36
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
37
|
+
|
|
38
|
+
Sample usage
|
|
39
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
40
|
+
|
|
41
|
+
|
|
42
42
|
*/
|
|
43
43
|
var RelatedContent = function RelatedContent(props) {
|
|
44
44
|
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) {
|
|
@@ -5,7 +5,7 @@ import React__default, { useState, useEffect, useRef } from 'react';
|
|
|
5
5
|
import { useRouter } from 'next/router';
|
|
6
6
|
import { l as lib_3 } from './index-f0fc23eb.js';
|
|
7
7
|
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
8
|
-
import { S as SeriesSlider } from './SeriesSlider-
|
|
8
|
+
import { S as SeriesSlider } from './SeriesSlider-45adb8dc.js';
|
|
9
9
|
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -6,10 +6,10 @@ import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
|
|
|
6
6
|
import urlFor from './urlFor.js';
|
|
7
7
|
import { m as main_43, a as main_49, b as main_42 } from './main-1894c974.js';
|
|
8
8
|
|
|
9
|
-
/*
|
|
10
|
-
GROQ query -
|
|
11
|
-
accepts an array of title, URL
|
|
12
|
-
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
9
|
+
/*
|
|
10
|
+
GROQ query -
|
|
11
|
+
accepts an array of title, URL
|
|
12
|
+
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
var SeriesSlider = function SeriesSlider(_ref) {
|
package/dist/esm/SideFooter.js
CHANGED
|
@@ -32,8 +32,8 @@ var renderLink = function renderLink(row) {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
var SideFooter = function SideFooter(props) {
|
|
35
|
-
/*
|
|
36
|
-
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
35
|
+
/*
|
|
36
|
+
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
37
37
|
*/
|
|
38
38
|
var _get = get_1(props, 'cache.siteSettingCache', {}),
|
|
39
39
|
socialLinks = _get.socialLinks,
|
|
@@ -225,7 +225,7 @@ VideoProgramLandingPage.getInitialData = function () {
|
|
|
225
225
|
url: pathname
|
|
226
226
|
};
|
|
227
227
|
|
|
228
|
-
query = '*[\n _type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible == true\n && dateTime(published) <= dateTime(now())\n && references(\'' + taxonomyId + '\')\n ' + (topicId ? '&& references(\'' + topicId + '\')' : '') + '\n ] | order(published desc) [$from...$to]{\n \t\t...,\n \t\ttitle,\n \t\tsummary,\n \t\tpublished,\n \t\tthumbnail
|
|
228
|
+
query = '*[\n _type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible == true\n && dateTime(published) <= dateTime(now())\n && references(\'' + taxonomyId + '\')\n ' + (topicId ? '&& references(\'' + topicId + '\')' : '') + '\n ] | order(published desc) [$from...$to]{\n \t\t...,\n \t\ttitle,\n \t\tsummary,\n \t\tpublished,\n \t\tthumbnail,\n \t\turl,\n \t\ttaxonomy,\n \t\tcontentCategory->,\n \t\tbody[_type == "youtubeGallery"],\n \t\t\'pageNumber\': ' + currentPage + '\n \t}';
|
|
229
229
|
_context.next = 26;
|
|
230
230
|
return client.fetch(query, params);
|
|
231
231
|
|
|
@@ -15,7 +15,7 @@ import 'react-dom';
|
|
|
15
15
|
import './slicedToArray-6ebcbfea.js';
|
|
16
16
|
import './index-3f5c03b2.js';
|
|
17
17
|
|
|
18
|
-
var css = ".VideoSeriesCard-module_article__Hlc3e {\
|
|
18
|
+
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";
|
|
19
19
|
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" };
|
|
20
20
|
styleInject(css);
|
|
21
21
|
|
|
@@ -38,7 +38,7 @@ var VideoSeriesFilter = function VideoSeriesFilter(props) {
|
|
|
38
38
|
case 0:
|
|
39
39
|
loadingStatus && loadingStatus(true);
|
|
40
40
|
filteredList(null);
|
|
41
|
-
query = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url) ' + (filter.id ? ' && references(\'' + filter.id + '\')' : '') + '\n && references(\'' + taxonomyID + '\')\n && is_visible == true\n && published <= now()\n && passwordLock != true\n ] | order(published desc) [$from...$to]{\n ...,\n title,\n summary,\n published,\n thumbnail
|
|
41
|
+
query = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url) ' + (filter.id ? ' && references(\'' + filter.id + '\')' : '') + '\n && references(\'' + taxonomyID + '\')\n && is_visible == true\n && published <= now()\n && passwordLock != true\n ] | order(published desc) [$from...$to]{\n ...,\n title,\n summary,\n published,\n thumbnail,\n url,\n taxonomy,\n contentCategory->,\n body[_type == "youtubeGallery"],\n \'pageNumber\': ' + currentPage + '\n }';
|
|
42
42
|
_context.next = 5;
|
|
43
43
|
return client.fetch(query, params).then(function (res) {
|
|
44
44
|
filteredList({ posts: res, query: query });
|
package/dist/esm/View.js
CHANGED
|
@@ -17,8 +17,8 @@ import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
|
17
17
|
import SocialShare from './SocialShare.js';
|
|
18
18
|
import { r as renderAuthor, g as getSerializers } from './index-e622f708.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
|
-
import { S as SeriesSlider } from './SeriesSlider-
|
|
21
|
-
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-
|
|
20
|
+
import { S as SeriesSlider } from './SeriesSlider-45adb8dc.js';
|
|
21
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-4061f839.js';
|
|
22
22
|
import getKeywords from './getKeywords.js';
|
|
23
23
|
import urlFor from './urlFor.js';
|
|
24
24
|
import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
@@ -337,7 +337,7 @@ var ISI = function ISI(props) {
|
|
|
337
337
|
);
|
|
338
338
|
};
|
|
339
339
|
|
|
340
|
-
var css = ".RelatedArticles-module_mediaContainer__10h9k {\
|
|
340
|
+
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";
|
|
341
341
|
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" };
|
|
342
342
|
styleInject(css);
|
|
343
343
|
|
package/dist/esm/YoutubeGroup.js
CHANGED
|
@@ -12,10 +12,10 @@ import 'react-dom';
|
|
|
12
12
|
import 'prop-types';
|
|
13
13
|
import './index-3f5c03b2.js';
|
|
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 YoutubeGroup = function YoutubeGroup(props) {
|
|
@@ -2,18 +2,18 @@ import { _ as _extends } from './extends-6d8e3924.js';
|
|
|
2
2
|
import { _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
|
|
3
3
|
|
|
4
4
|
var getContentPlacementUrl = function getContentPlacementUrl(cp) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
var cp_url = '';
|
|
6
|
+
if (cp.ancestor && typeof cp.ancestor == 'string') {
|
|
7
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
|
|
8
|
+
}
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
|
|
11
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.parent;
|
|
12
|
+
}
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
return cp_url;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
var getTargeting = function getTargeting(props) {
|
package/dist/esm/getTargeting.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './extends-6d8e3924.js';
|
|
2
2
|
import './toConsumableArray-f7074d7c.js';
|
|
3
|
-
export { g as default } from './getTargeting-
|
|
3
|
+
export { g as default } from './getTargeting-4061f839.js';
|
|
4
4
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
5
5
|
import './core.get-iterator-method-ea258bb1.js';
|
|
6
6
|
import './_object-pie-133f504a.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -94,7 +94,7 @@ export { default as VideoSeriesLandingPage } from './VideoSeriesLandingPage.js';
|
|
|
94
94
|
export { default as ArticleProgramLandingPage } from './ArticleProgramLandingPage.js';
|
|
95
95
|
export { default as ArticleSeriesLandingPage } from './ArticleSeriesLandingPage.js';
|
|
96
96
|
export { default as Schema } from './Schema.js';
|
|
97
|
-
export { g as getTargeting } from './getTargeting-
|
|
97
|
+
export { g as getTargeting } from './getTargeting-4061f839.js';
|
|
98
98
|
export { default as getKeywords } from './getKeywords.js';
|
|
99
99
|
export { default as getQuery } from './getQuery.js';
|
|
100
100
|
import './toConsumableArray-f7074d7c.js';
|
|
@@ -189,7 +189,7 @@ import 'swr';
|
|
|
189
189
|
import 'passport-local';
|
|
190
190
|
import 'mysql';
|
|
191
191
|
import './md5-4e42248e.js';
|
|
192
|
-
import './SeriesSlider-
|
|
192
|
+
import './SeriesSlider-45adb8dc.js';
|
|
193
193
|
import './style-inject.es-1f59c1d0.js';
|
|
194
194
|
import 'disqus-react';
|
|
195
195
|
import 'react-twitter-embed';
|
package/package.json
CHANGED
|
@@ -1,112 +1,112 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@mjhls/mjh-framework",
|
|
3
|
-
"version": "1.0.893
|
|
4
|
-
"description": "Foundation Framework",
|
|
5
|
-
"author": "mjh-framework",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "https://github.com/MJHLS/mjh-framework.git"
|
|
10
|
-
},
|
|
11
|
-
"main": "dist/cjs/index.js",
|
|
12
|
-
"module": "dist/esm/index.js",
|
|
13
|
-
"engines": {
|
|
14
|
-
"node": ">=8",
|
|
15
|
-
"npm": ">=5"
|
|
16
|
-
},
|
|
17
|
-
"scripts": {
|
|
18
|
-
"clean": "rimraf dist",
|
|
19
|
-
"test": "cross-env CI=1 react-scripts test --env=jsdom",
|
|
20
|
-
"test:watch": "react-scripts test --env=jsdom",
|
|
21
|
-
"build": "npm run clean && rollup -c",
|
|
22
|
-
"start": "npm run clean && rollup -c -w",
|
|
23
|
-
"prepare": "yarn run build",
|
|
24
|
-
"predeploy": "cd example && yarn install && yarn run build",
|
|
25
|
-
"deploy": "gh-pages -d example/build"
|
|
26
|
-
},
|
|
27
|
-
"peerDependencies": {
|
|
28
|
-
"disqus-react": "^1.0.11",
|
|
29
|
-
"next": "^9.0.0",
|
|
30
|
-
"prop-types": "^15.5.4",
|
|
31
|
-
"react": "^15.0.0 || ^16.0.0",
|
|
32
|
-
"react-bootstrap": "^1.0.0-beta.14",
|
|
33
|
-
"react-dom": "^15.0.0 || ^16.0.0",
|
|
34
|
-
"react-share": "^4.0.1"
|
|
35
|
-
},
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"@brightcove/react-player-loader": "^1.4.0",
|
|
38
|
-
"@rollup/plugin-json": "^4.0.3",
|
|
39
|
-
"@sanity/block-content-to-react": "^2.0.7",
|
|
40
|
-
"@sanity/image-url": "^0.140.15",
|
|
41
|
-
"@svgr/rollup": "2.4.1",
|
|
42
|
-
"babel-core": "^6.26.3",
|
|
43
|
-
"babel-eslint": "^8.2.5",
|
|
44
|
-
"babel-plugin-external-helpers": "^6.22.0",
|
|
45
|
-
"babel-plugin-transform-runtime": "^6.23.0",
|
|
46
|
-
"babel-preset-env": "^1.7.0",
|
|
47
|
-
"babel-preset-react": "^6.24.1",
|
|
48
|
-
"babel-preset-stage-0": "^6.24.1",
|
|
49
|
-
"cross-env": "^5.1.4",
|
|
50
|
-
"eslint": "^5.0.1",
|
|
51
|
-
"eslint-config-standard": "^11.0.0",
|
|
52
|
-
"eslint-config-standard-react": "^6.0.0",
|
|
53
|
-
"eslint-plugin-import": "^2.13.0",
|
|
54
|
-
"eslint-plugin-node": "^7.0.1",
|
|
55
|
-
"eslint-plugin-promise": "^4.0.0",
|
|
56
|
-
"eslint-plugin-react": "^7.10.0",
|
|
57
|
-
"eslint-plugin-react-hooks": "^2.3.0",
|
|
58
|
-
"eslint-plugin-standard": "^3.1.0",
|
|
59
|
-
"get-youtube-id": "^1.0.1",
|
|
60
|
-
"gh-pages": "^1.2.0",
|
|
61
|
-
"lodash": "^4.17.15",
|
|
62
|
-
"md5": "^2.2.1",
|
|
63
|
-
"moment": "^2.26.0",
|
|
64
|
-
"moment-timezone": "^0.5.31",
|
|
65
|
-
"next": "^9.2.0",
|
|
66
|
-
"react": "^16.12.0",
|
|
67
|
-
"react-bootstrap": "1.4.0",
|
|
68
|
-
"react-device-detect": "^1.11.14",
|
|
69
|
-
"react-dfp": "^0.19.0",
|
|
70
|
-
"react-dom": "^16.12.0",
|
|
71
|
-
"react-icons": "^3.8.0",
|
|
72
|
-
"react-infinite-scroll-component": "^5.0.4",
|
|
73
|
-
"react-lazyload": "^2.6.5",
|
|
74
|
-
"react-paginate": "^7.1.3",
|
|
75
|
-
"react-player": "^1.15.2",
|
|
76
|
-
"react-scripts": "^1.1.4",
|
|
77
|
-
"react-share": "^4.0.1",
|
|
78
|
-
"react-social-icons": "^4.1.0",
|
|
79
|
-
"react-visibility-sensor": "^5.1.1",
|
|
80
|
-
"react-youtube": "^7.9.0",
|
|
81
|
-
"rimraf": "^3.0.2",
|
|
82
|
-
"rollup": "^2.7.3",
|
|
83
|
-
"rollup-plugin-babel": "3.0.7",
|
|
84
|
-
"rollup-plugin-commonjs": "9.3.4",
|
|
85
|
-
"rollup-plugin-node-builtins": "2.1.2",
|
|
86
|
-
"rollup-plugin-node-resolve": "3.4.0",
|
|
87
|
-
"rollup-plugin-postcss": "1.6.3",
|
|
88
|
-
"rollup-plugin-url": "1.4.0"
|
|
89
|
-
},
|
|
90
|
-
"files": [
|
|
91
|
-
"dist"
|
|
92
|
-
],
|
|
93
|
-
"dependencies": {
|
|
94
|
-
"babel-polyfill": "^6.26.0",
|
|
95
|
-
"cookie": "^0.4.1",
|
|
96
|
-
"disqus-react": "^1.0.11",
|
|
97
|
-
"faunadb": "^4.2.0",
|
|
98
|
-
"js-cookie": "^2.2.1",
|
|
99
|
-
"next-auth": "^3.2.0",
|
|
100
|
-
"next-cookies": "^2.0.3",
|
|
101
|
-
"nookies": "^2.4.0",
|
|
102
|
-
"react-cookies": "^0.1.1",
|
|
103
|
-
"react-facebook": "^8.1.4",
|
|
104
|
-
"react-instantsearch-dom": "^6.10.3",
|
|
105
|
-
"react-script-tag": "^1.1.2",
|
|
106
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
107
|
-
"shortid": "^2.2.15",
|
|
108
|
-
"smoothscroll-polyfill": "^0.4.4",
|
|
109
|
-
"striptags": "^3.1.1",
|
|
110
|
-
"superagent": "^5.2.2"
|
|
111
|
-
}
|
|
112
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@mjhls/mjh-framework",
|
|
3
|
+
"version": "1.0.893",
|
|
4
|
+
"description": "Foundation Framework",
|
|
5
|
+
"author": "mjh-framework",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/MJHLS/mjh-framework.git"
|
|
10
|
+
},
|
|
11
|
+
"main": "dist/cjs/index.js",
|
|
12
|
+
"module": "dist/esm/index.js",
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=8",
|
|
15
|
+
"npm": ">=5"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"clean": "rimraf dist",
|
|
19
|
+
"test": "cross-env CI=1 react-scripts test --env=jsdom",
|
|
20
|
+
"test:watch": "react-scripts test --env=jsdom",
|
|
21
|
+
"build": "npm run clean && rollup -c",
|
|
22
|
+
"start": "npm run clean && rollup -c -w",
|
|
23
|
+
"prepare": "yarn run build",
|
|
24
|
+
"predeploy": "cd example && yarn install && yarn run build",
|
|
25
|
+
"deploy": "gh-pages -d example/build"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"disqus-react": "^1.0.11",
|
|
29
|
+
"next": "^9.0.0",
|
|
30
|
+
"prop-types": "^15.5.4",
|
|
31
|
+
"react": "^15.0.0 || ^16.0.0",
|
|
32
|
+
"react-bootstrap": "^1.0.0-beta.14",
|
|
33
|
+
"react-dom": "^15.0.0 || ^16.0.0",
|
|
34
|
+
"react-share": "^4.0.1"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@brightcove/react-player-loader": "^1.4.0",
|
|
38
|
+
"@rollup/plugin-json": "^4.0.3",
|
|
39
|
+
"@sanity/block-content-to-react": "^2.0.7",
|
|
40
|
+
"@sanity/image-url": "^0.140.15",
|
|
41
|
+
"@svgr/rollup": "2.4.1",
|
|
42
|
+
"babel-core": "^6.26.3",
|
|
43
|
+
"babel-eslint": "^8.2.5",
|
|
44
|
+
"babel-plugin-external-helpers": "^6.22.0",
|
|
45
|
+
"babel-plugin-transform-runtime": "^6.23.0",
|
|
46
|
+
"babel-preset-env": "^1.7.0",
|
|
47
|
+
"babel-preset-react": "^6.24.1",
|
|
48
|
+
"babel-preset-stage-0": "^6.24.1",
|
|
49
|
+
"cross-env": "^5.1.4",
|
|
50
|
+
"eslint": "^5.0.1",
|
|
51
|
+
"eslint-config-standard": "^11.0.0",
|
|
52
|
+
"eslint-config-standard-react": "^6.0.0",
|
|
53
|
+
"eslint-plugin-import": "^2.13.0",
|
|
54
|
+
"eslint-plugin-node": "^7.0.1",
|
|
55
|
+
"eslint-plugin-promise": "^4.0.0",
|
|
56
|
+
"eslint-plugin-react": "^7.10.0",
|
|
57
|
+
"eslint-plugin-react-hooks": "^2.3.0",
|
|
58
|
+
"eslint-plugin-standard": "^3.1.0",
|
|
59
|
+
"get-youtube-id": "^1.0.1",
|
|
60
|
+
"gh-pages": "^1.2.0",
|
|
61
|
+
"lodash": "^4.17.15",
|
|
62
|
+
"md5": "^2.2.1",
|
|
63
|
+
"moment": "^2.26.0",
|
|
64
|
+
"moment-timezone": "^0.5.31",
|
|
65
|
+
"next": "^9.2.0",
|
|
66
|
+
"react": "^16.12.0",
|
|
67
|
+
"react-bootstrap": "1.4.0",
|
|
68
|
+
"react-device-detect": "^1.11.14",
|
|
69
|
+
"react-dfp": "^0.19.0",
|
|
70
|
+
"react-dom": "^16.12.0",
|
|
71
|
+
"react-icons": "^3.8.0",
|
|
72
|
+
"react-infinite-scroll-component": "^5.0.4",
|
|
73
|
+
"react-lazyload": "^2.6.5",
|
|
74
|
+
"react-paginate": "^7.1.3",
|
|
75
|
+
"react-player": "^1.15.2",
|
|
76
|
+
"react-scripts": "^1.1.4",
|
|
77
|
+
"react-share": "^4.0.1",
|
|
78
|
+
"react-social-icons": "^4.1.0",
|
|
79
|
+
"react-visibility-sensor": "^5.1.1",
|
|
80
|
+
"react-youtube": "^7.9.0",
|
|
81
|
+
"rimraf": "^3.0.2",
|
|
82
|
+
"rollup": "^2.7.3",
|
|
83
|
+
"rollup-plugin-babel": "3.0.7",
|
|
84
|
+
"rollup-plugin-commonjs": "9.3.4",
|
|
85
|
+
"rollup-plugin-node-builtins": "2.1.2",
|
|
86
|
+
"rollup-plugin-node-resolve": "3.4.0",
|
|
87
|
+
"rollup-plugin-postcss": "1.6.3",
|
|
88
|
+
"rollup-plugin-url": "1.4.0"
|
|
89
|
+
},
|
|
90
|
+
"files": [
|
|
91
|
+
"dist"
|
|
92
|
+
],
|
|
93
|
+
"dependencies": {
|
|
94
|
+
"babel-polyfill": "^6.26.0",
|
|
95
|
+
"cookie": "^0.4.1",
|
|
96
|
+
"disqus-react": "^1.0.11",
|
|
97
|
+
"faunadb": "^4.2.0",
|
|
98
|
+
"js-cookie": "^2.2.1",
|
|
99
|
+
"next-auth": "^3.2.0",
|
|
100
|
+
"next-cookies": "^2.0.3",
|
|
101
|
+
"nookies": "^2.4.0",
|
|
102
|
+
"react-cookies": "^0.1.1",
|
|
103
|
+
"react-facebook": "^8.1.4",
|
|
104
|
+
"react-instantsearch-dom": "^6.10.3",
|
|
105
|
+
"react-script-tag": "^1.1.2",
|
|
106
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
107
|
+
"shortid": "^2.2.15",
|
|
108
|
+
"smoothscroll-polyfill": "^0.4.4",
|
|
109
|
+
"striptags": "^3.1.1",
|
|
110
|
+
"superagent": "^5.2.2"
|
|
111
|
+
}
|
|
112
|
+
}
|