@mjhls/mjh-framework 1.0.963-audio-autoplay-v2 → 1.0.963
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-b9374a2e.js → MediaSeriesCard-ba591c4b.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 +26 -32
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/{getTargeting-dab97fe1.js → getTargeting-3c5754ac.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-55f09340.js → index-dc2193aa.js} +5 -7
- 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-a4026c80.js → MediaSeriesCard-6ff7cf61.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-e495571f.js → SeriesSlider-f771e20d.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 +25 -32
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/{getTargeting-04d979c9.js → getTargeting-42f9b439.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-fca291be.js → index-75e169f5.js} +5 -7
- 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
|
@@ -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-f771e20d.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,
|
|
@@ -5,7 +5,7 @@ import React__default, { useState, useEffect } from 'react';
|
|
|
5
5
|
import { useRouter } from 'next/router';
|
|
6
6
|
import Head from 'next/head';
|
|
7
7
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
8
|
-
import { g as getSerializers } from './index-
|
|
8
|
+
import { g as getSerializers } from './index-75e169f5.js';
|
|
9
9
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
10
10
|
import './core.get-iterator-method-ea258bb1.js';
|
|
11
11
|
import './_object-pie-133f504a.js';
|
|
@@ -5,7 +5,7 @@ import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
|
5
5
|
import Col from 'react-bootstrap/Col';
|
|
6
6
|
import Form from 'react-bootstrap/Form';
|
|
7
7
|
import Button from 'react-bootstrap/Button';
|
|
8
|
-
import { g as getSerializers } from './index-
|
|
8
|
+
import { g as getSerializers } from './index-75e169f5.js';
|
|
9
9
|
import VideoSeriesListing from './VideoSeriesListing.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -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
|
|
package/dist/esm/View.js
CHANGED
|
@@ -15,10 +15,10 @@ import FormControl from 'react-bootstrap/FormControl';
|
|
|
15
15
|
import Button from 'react-bootstrap/Button';
|
|
16
16
|
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
17
17
|
import SocialShare from './SocialShare.js';
|
|
18
|
-
import { r as renderAuthor, g as getSerializers } from './index-
|
|
18
|
+
import { r as renderAuthor, g as getSerializers } from './index-75e169f5.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
|
-
import { S as SeriesSlider } from './SeriesSlider-
|
|
21
|
-
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-
|
|
20
|
+
import { S as SeriesSlider } from './SeriesSlider-f771e20d.js';
|
|
21
|
+
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-42f9b439.js';
|
|
22
22
|
import getKeywords from './getKeywords.js';
|
|
23
23
|
import urlFor from './urlFor.js';
|
|
24
24
|
import { u as urlForFile } from './urlForFile-b69adffc.js';
|
|
@@ -28,13 +28,14 @@ import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
|
28
28
|
import './index-755f2cc2.js';
|
|
29
29
|
import { DiscussionEmbed } from 'disqus-react';
|
|
30
30
|
import Schema from './Schema.js';
|
|
31
|
-
import
|
|
31
|
+
import FileSaver from 'file-saver';
|
|
32
32
|
import { _ as _Object$keys } from './keys-31dcdb31.js';
|
|
33
33
|
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
34
34
|
import { l as lib_3 } from './index-f0fc23eb.js';
|
|
35
35
|
import getRelatedArticle from './getRelatedArticle.js';
|
|
36
36
|
import getQuery from './getQuery.js';
|
|
37
37
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
38
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
38
39
|
import './core.get-iterator-method-ea258bb1.js';
|
|
39
40
|
import './web.dom.iterable-ab4dea5c.js';
|
|
40
41
|
import './_library-528f1934.js';
|
|
@@ -347,7 +348,7 @@ var ISI = function ISI(props) {
|
|
|
347
348
|
);
|
|
348
349
|
};
|
|
349
350
|
|
|
350
|
-
var css$1 = ".RelatedArticles-module_mediaContainer__10h9k {\
|
|
351
|
+
var css$1 = ".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";
|
|
351
352
|
var styles$1 = { "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" };
|
|
352
353
|
styleInject(css$1);
|
|
353
354
|
|
|
@@ -446,13 +447,7 @@ var getSocialShareDisableFlag = function getSocialShareDisableFlag(article) {
|
|
|
446
447
|
return showSocialShare;
|
|
447
448
|
};
|
|
448
449
|
|
|
449
|
-
var
|
|
450
|
-
(function(a,b){b();})(commonjsGlobal,function(){function b(a,b){return "undefined"==typeof b?b={autoBom:!1}:"object"!=typeof b&&(console.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}function c(a,b,c){var d=new XMLHttpRequest;d.open("GET",a),d.responseType="blob",d.onload=function(){g(d.response,b,c);},d.onerror=function(){console.error("could not download file");},d.send();}function d(a){var b=new XMLHttpRequest;b.open("HEAD",a,!1);try{b.send();}catch(a){}return 200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent("click"));}catch(c){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b);}}var f="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof commonjsGlobal&&commonjsGlobal.global===commonjsGlobal?commonjsGlobal:void 0,a=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=f.saveAs||("object"!=typeof window||window!==f?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement("a");g=g||b.name||"download",j.download=g,j.rel="noopener","string"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target="_blank")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href);},4E4),setTimeout(function(){e(j);},0));}:"msSaveOrOpenBlob"in navigator?function(f,g,h){if(g=g||f.name||"download","string"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else {var i=document.createElement("a");i.href=f,i.target="_blank",setTimeout(function(){e(i);});}}:function(b,d,e,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),"string"==typeof b)return c(b,d,e);var h="application/octet-stream"===b.type,i=/constructor/i.test(f.HTMLElement)||f.safari,j=/CriOS\/[\d]+/.test(navigator.userAgent);if((j||h&&i||a)&&"undefined"!=typeof FileReader){var k=new FileReader;k.onloadend=function(){var a=k.result;a=j?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=a:location=a,g=null;},k.readAsDataURL(b);}else {var l=f.URL||f.webkitURL,m=l.createObjectURL(b);g?g.location=m:location.href=m,g=null,setTimeout(function(){l.revokeObjectURL(m);},4E4);}});f.saveAs=g.saveAs=g,(module.exports=g);});
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
});
|
|
454
|
-
|
|
455
|
-
var css = ".RecommendedArticles-module_recommendTitle__2kUji {\r\n border-bottom: 2px solid var(--secondary-blue);\r\n font-size: 1.5rem;\r\n font-weight: bold;\r\n color: #0d335a;\r\n padding: 0.5rem;\r\n}\r\n.RecommendedArticles-module_recommendContainer__sZukI {\r\n display: flex;\r\n flex-direction: row;\r\n flex-wrap: wrap;\r\n margin: 0 -0.5rem;\r\n}\r\n.RecommendedArticles-module_recommendTop__1_yqw {\r\n margin: 0.5rem;\r\n width: 100%;\r\n flex-basis: 100%;\r\n display: flex;\r\n\r\n}\r\n.RecommendedArticles-module_recommendTopImg__1b9gu {\r\n min-width: 55%;\r\n width: 55%;\r\n height: 100%;\r\n}\r\n.RecommendedArticles-module_recommendTopImg__1b9gu img {\r\n width: 100%;\r\n height: 100%;\r\n object-fit: cover;\r\n}\r\n.RecommendedArticles-module_recommendTopBody__-13FI {\r\n margin-left: 1rem;\r\n line-height: 1.3;\r\n color: #121212;\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n.RecommendedArticles-module_topTitle__2EafN {\r\n font-size: 25px;\r\n font-weight: bold;\r\n margin-bottom: 0.5rem;\r\n}\r\n.RecommendedArticles-module_topBody__2_VNi {\r\n font-size: 19px;\r\n margin-bottom: 0.5rem;\r\n}\r\n.RecommendedArticles-module_topLink__2RnXu {\r\n font-size: 19px;\r\n color: rgb(43, 43, 151);\r\n text-decoration: underline;\r\n margin-top: auto;\r\n}\r\n.RecommendedArticles-module_smContainer__4byBO {\r\n width: calc(25% - 1rem);\r\n margin: 0 0.5rem;\r\n}\r\n.RecommendedArticles-module_smImage__TYZGY img {\r\n width: 100%;\r\n}\r\n.RecommendedArticles-module_title__3q1ud {\r\n margin-top: 1rem;\r\n line-height: 1.2;\r\n color: #121212;\r\n}\r\n.RecommendedArticles-module_category__2jRto {\r\n text-transform: uppercase;\r\n font-size: 16px;\r\n letter-spacing: 2px;\r\n margin: 0.25rem 0;\r\n}\r\n\r\n/* media query */\r\n\r\n@media screen and (max-width: 1399px) {\r\n .RecommendedArticles-module_topTitle__2EafN {\r\n font-size: 21px;\r\n }\r\n .RecommendedArticles-module_topBody__2_VNi {\r\n font-size: 15px;\r\n }\r\n}\r\n@media screen and (max-width: 1191px) {\r\n .RecommendedArticles-module_topTitle__2EafN {\r\n font-size: 23px;\r\n }\r\n .RecommendedArticles-module_topBody__2_VNi,\r\n .RecommendedArticles-module_topLink__2RnXu {\r\n font-size: 17px;\r\n }\r\n}\r\n@media screen and (max-width: 968px) {\r\n .RecommendedArticles-module_topTitle__2EafN {\r\n font-size: 18px;\r\n }\r\n .RecommendedArticles-module_topBody__2_VNi,\r\n .RecommendedArticles-module_topLink__2RnXu {\r\n font-size: 15px;\r\n }\r\n}\r\n@media screen and (max-width: 768px) {\r\n .RecommendedArticles-module_recommendTop__1_yqw {\r\n flex-direction: column;\r\n }\r\n .RecommendedArticles-module_recommendTopImg__1b9gu,\r\n .RecommendedArticles-module_recommendTopBody__-13FI {\r\n width: 100%;\r\n margin: 0;\r\n }\r\n .RecommendedArticles-module_recommendTopBody__-13FI {\r\n margin-bottom: 1rem;\r\n }\r\n .RecommendedArticles-module_smContainer__4byBO {\r\n width: calc(50% - 1rem);\r\n }\r\n}";
|
|
450
|
+
var css = ".RecommendedArticles-module_recommendTitle__2kUji {\n border-bottom: 2px solid var(--secondary-blue);\n font-size: 1.5rem;\n font-weight: bold;\n color: #0d335a;\n padding: 0.5rem;\n}\n.RecommendedArticles-module_recommendContainer__sZukI {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n margin: 0 -0.5rem;\n}\n.RecommendedArticles-module_recommendTop__1_yqw {\n margin: 0.5rem;\n width: 100%;\n flex-basis: 100%;\n display: flex;\n\n}\n.RecommendedArticles-module_recommendTopImg__1b9gu {\n min-width: 55%;\n width: 55%;\n height: 100%;\n}\n.RecommendedArticles-module_recommendTopImg__1b9gu img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n.RecommendedArticles-module_recommendTopBody__-13FI {\n margin-left: 1rem;\n line-height: 1.3;\n color: #121212;\n display: flex;\n flex-direction: column;\n}\n.RecommendedArticles-module_topTitle__2EafN {\n font-size: 25px;\n font-weight: bold;\n margin-bottom: 0.5rem;\n}\n.RecommendedArticles-module_topBody__2_VNi {\n font-size: 19px;\n margin-bottom: 0.5rem;\n}\n.RecommendedArticles-module_topLink__2RnXu {\n font-size: 19px;\n color: rgb(43, 43, 151);\n text-decoration: underline;\n margin-top: auto;\n}\n.RecommendedArticles-module_smContainer__4byBO {\n width: calc(25% - 1rem);\n margin: 0 0.5rem;\n}\n.RecommendedArticles-module_smImage__TYZGY img {\n width: 100%;\n}\n.RecommendedArticles-module_title__3q1ud {\n margin-top: 1rem;\n line-height: 1.2;\n color: #121212;\n}\n.RecommendedArticles-module_category__2jRto {\n text-transform: uppercase;\n font-size: 16px;\n letter-spacing: 2px;\n margin: 0.25rem 0;\n}\n\n/* media query */\n\n@media screen and (max-width: 1399px) {\n .RecommendedArticles-module_topTitle__2EafN {\n font-size: 21px;\n }\n .RecommendedArticles-module_topBody__2_VNi {\n font-size: 15px;\n }\n}\n@media screen and (max-width: 1191px) {\n .RecommendedArticles-module_topTitle__2EafN {\n font-size: 23px;\n }\n .RecommendedArticles-module_topBody__2_VNi,\n .RecommendedArticles-module_topLink__2RnXu {\n font-size: 17px;\n }\n}\n@media screen and (max-width: 968px) {\n .RecommendedArticles-module_topTitle__2EafN {\n font-size: 18px;\n }\n .RecommendedArticles-module_topBody__2_VNi,\n .RecommendedArticles-module_topLink__2RnXu {\n font-size: 15px;\n }\n}\n@media screen and (max-width: 768px) {\n .RecommendedArticles-module_recommendTop__1_yqw {\n flex-direction: column;\n }\n .RecommendedArticles-module_recommendTopImg__1b9gu,\n .RecommendedArticles-module_recommendTopBody__-13FI {\n width: 100%;\n margin: 0;\n }\n .RecommendedArticles-module_recommendTopBody__-13FI {\n margin-bottom: 1rem;\n }\n .RecommendedArticles-module_smContainer__4byBO {\n width: calc(50% - 1rem);\n }\n}";
|
|
456
451
|
var styles = { "recommendTitle": "RecommendedArticles-module_recommendTitle__2kUji", "recommendContainer": "RecommendedArticles-module_recommendContainer__sZukI", "recommendTop": "RecommendedArticles-module_recommendTop__1_yqw", "recommendTopImg": "RecommendedArticles-module_recommendTopImg__1b9gu", "recommendTopBody": "RecommendedArticles-module_recommendTopBody__-13FI", "topTitle": "RecommendedArticles-module_topTitle__2EafN", "topBody": "RecommendedArticles-module_topBody__2_VNi", "topLink": "RecommendedArticles-module_topLink__2RnXu", "smContainer": "RecommendedArticles-module_smContainer__4byBO", "smImage": "RecommendedArticles-module_smImage__TYZGY", "title": "RecommendedArticles-module_title__3q1ud", "category": "RecommendedArticles-module_category__2jRto" };
|
|
457
452
|
styleInject(css);
|
|
458
453
|
|
|
@@ -904,7 +899,6 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
904
899
|
currentPage = props.currentPage,
|
|
905
900
|
_props$showAuthorDeta = props.showAuthorDetails,
|
|
906
901
|
showAuthorDetails = _props$showAuthorDeta === undefined ? false : _props$showAuthorDeta,
|
|
907
|
-
audioAutoplay = props.audioAutoplay,
|
|
908
902
|
_props$article = props.article,
|
|
909
903
|
title = _props$article.title,
|
|
910
904
|
_props$article$passwo = _props$article.passwordLock,
|
|
@@ -1132,7 +1126,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1132
1126
|
var downloadRIS = function downloadRIS() {
|
|
1133
1127
|
var fileContent = generateRIS();
|
|
1134
1128
|
var file = new File([fileContent], 'citation-' + url + '.ris', { type: 'application/x-research-info-systems;charset=utf-8' });
|
|
1135
|
-
|
|
1129
|
+
FileSaver.saveAs(file, 'citation-' + url + '.ris');
|
|
1136
1130
|
};
|
|
1137
1131
|
|
|
1138
1132
|
var RelevantTopics = function RelevantTopics() {
|
|
@@ -1202,14 +1196,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1202
1196
|
return React__default.createElement(
|
|
1203
1197
|
'div',
|
|
1204
1198
|
null,
|
|
1205
|
-
useSegmentRecommendedArticles ? React__default.createElement(Recommended, {
|
|
1206
|
-
client: client,
|
|
1207
|
-
article: article,
|
|
1208
|
-
index: props.index,
|
|
1209
|
-
Settings: props.Settings,
|
|
1210
|
-
showRelatedArticleFallbackImage: props.showRelatedArticleFallbackImage,
|
|
1211
|
-
cpModificationRequired: cpModificationRequired
|
|
1212
|
-
}) : React__default.createElement(
|
|
1199
|
+
useSegmentRecommendedArticles ? React__default.createElement(Recommended, { client: client, article: article, index: props.index, Settings: props.Settings, showRelatedArticleFallbackImage: props.showRelatedArticleFallbackImage, cpModificationRequired: cpModificationRequired }) : React__default.createElement(
|
|
1213
1200
|
'section',
|
|
1214
1201
|
{ id: 'related-content-section', className: 'my-1' },
|
|
1215
1202
|
(article.relatedArticle || RelevantTopics()) && React__default.createElement(
|
|
@@ -1312,7 +1299,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1312
1299
|
React__default.Fragment,
|
|
1313
1300
|
null,
|
|
1314
1301
|
React__default.createElement(BlockContent, _extends({
|
|
1315
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1302
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1316
1303
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, selectedIndex))),
|
|
1317
1304
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1318
1305
|
}, client.config())),
|
|
@@ -1321,7 +1308,9 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1321
1308
|
React__default.createElement(
|
|
1322
1309
|
'div',
|
|
1323
1310
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
1324
|
-
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
1311
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
1312
|
+
refreshFlag: refreshFlag
|
|
1313
|
+
}))
|
|
1325
1314
|
),
|
|
1326
1315
|
React__default.createElement(
|
|
1327
1316
|
'style',
|
|
@@ -1335,7 +1324,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1335
1324
|
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsVideoAdFound }))
|
|
1336
1325
|
),
|
|
1337
1326
|
React__default.createElement(BlockContent, _extends({
|
|
1338
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1327
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1339
1328
|
blocks: [].concat(_toConsumableArray(articleBody.slice(selectedIndex))),
|
|
1340
1329
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1341
1330
|
}, client.config()))
|
|
@@ -1363,7 +1352,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1363
1352
|
React__default.Fragment,
|
|
1364
1353
|
null,
|
|
1365
1354
|
React__default.createElement(BlockContent, _extends({
|
|
1366
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1355
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1367
1356
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex))),
|
|
1368
1357
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1369
1358
|
}, client.config())),
|
|
@@ -1375,7 +1364,9 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1375
1364
|
React__default.createElement(
|
|
1376
1365
|
'div',
|
|
1377
1366
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
1378
|
-
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
1367
|
+
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualAD, {
|
|
1368
|
+
refreshFlag: refreshFlag
|
|
1369
|
+
}))
|
|
1379
1370
|
),
|
|
1380
1371
|
React__default.createElement(
|
|
1381
1372
|
'style',
|
|
@@ -1385,7 +1376,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1385
1376
|
),
|
|
1386
1377
|
contextualADFlag && React__default.createElement('span', { className: 'clearfix' }),
|
|
1387
1378
|
React__default.createElement(BlockContent, _extends({
|
|
1388
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1379
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1389
1380
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex))),
|
|
1390
1381
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1391
1382
|
}, client.config()))
|
|
@@ -1418,7 +1409,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1418
1409
|
React__default.Fragment,
|
|
1419
1410
|
null,
|
|
1420
1411
|
React__default.createElement(BlockContent, _extends({
|
|
1421
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1412
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, contextualADFlag, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1422
1413
|
blocks: [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex2))),
|
|
1423
1414
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1424
1415
|
}, client.config())),
|
|
@@ -1430,7 +1421,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1430
1421
|
React__default.createElement(DFPAdSlot, _extends({}, payload.contextualVideoAD, { refreshFlag: refreshFlag, checkIsAdFound: checkIsAdFound }))
|
|
1431
1422
|
),
|
|
1432
1423
|
React__default.createElement(BlockContent, _extends({
|
|
1433
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1424
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1434
1425
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex2))),
|
|
1435
1426
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1436
1427
|
}, client.config()))
|
|
@@ -1445,13 +1436,13 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1445
1436
|
'div',
|
|
1446
1437
|
null,
|
|
1447
1438
|
React__default.createElement(BlockContent, _extends({
|
|
1448
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1439
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, false, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1449
1440
|
blocks: article.documentGroup && article.documentGroup.isSeries ? [].concat(_toConsumableArray(articleBody.slice(0, _selectedIndex3))) : articleBody,
|
|
1450
1441
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1451
1442
|
}, client.config())),
|
|
1452
1443
|
article.documentGroup && article.documentGroup.isSeries && sliderData && seriesInfo.hasVideo && React__default.createElement(SeriesSlider, { dataset: sliderData, client: client, nowPlaying: article.title, displayEpisodeNumber: logicforDisplayingEpisodeNumber }),
|
|
1453
1444
|
article.documentGroup && article.documentGroup.isSeries && React__default.createElement(BlockContent, _extends({
|
|
1454
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight
|
|
1445
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, isMediaSeries, null, null, article.Ads, targeting, article, meta, authorPrefix, authorImgHeight),
|
|
1455
1446
|
blocks: [].concat(_toConsumableArray(articleBody.slice(_selectedIndex3))),
|
|
1456
1447
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
1457
1448
|
}, client.config()))
|
|
@@ -1559,6 +1550,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1559
1550
|
partialVisibility: true,
|
|
1560
1551
|
offset: { bottom: triggerOffset, top: containerHeight && containerHeight },
|
|
1561
1552
|
onChange: function onChange(isVisible) {
|
|
1553
|
+
|
|
1562
1554
|
if (isVisible && !isFirstArticle) {
|
|
1563
1555
|
var pageviewProperties = _extends({}, targeting, {
|
|
1564
1556
|
category: article && article.category ? article.category.name : ''
|
|
@@ -1861,6 +1853,7 @@ var _this$1 = undefined;
|
|
|
1861
1853
|
|
|
1862
1854
|
var ArticleQueue = function ArticleQueue(props) {
|
|
1863
1855
|
var router = useRouter();
|
|
1856
|
+
|
|
1864
1857
|
var _props$prevUrl = props.prevUrl,
|
|
1865
1858
|
prevUrl = _props$prevUrl === undefined ? '/' : _props$prevUrl,
|
|
1866
1859
|
Ads = props.Ads,
|
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) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './extends-6d8e3924.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { g as default } from './index-
|
|
3
|
+
export { g as default } from './index-75e169f5.js';
|
|
4
4
|
import './BlockContent-1e73bd2c.js';
|
|
5
5
|
import './entities-6d9154b4.js';
|
|
6
6
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
@@ -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-42f9b439.js';
|
|
4
4
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
5
5
|
import './core.get-iterator-method-ea258bb1.js';
|
|
6
6
|
import './_object-pie-133f504a.js';
|
|
@@ -7483,9 +7483,7 @@ _defineProperty(ReactPlayer, "canEnablePIP", function (url) {
|
|
|
7483
7483
|
var ReactPlayer = unwrapExports(ReactPlayer_1);
|
|
7484
7484
|
|
|
7485
7485
|
var Audio = function Audio(_ref) {
|
|
7486
|
-
var node = _ref.node
|
|
7487
|
-
_ref$audioAutoplay = _ref.audioAutoplay,
|
|
7488
|
-
audioAutoplay = _ref$audioAutoplay === undefined ? false : _ref$audioAutoplay;
|
|
7486
|
+
var node = _ref.node;
|
|
7489
7487
|
|
|
7490
7488
|
if (node.uploadAudio) {
|
|
7491
7489
|
return React__default.createElement(
|
|
@@ -7493,7 +7491,7 @@ var Audio = function Audio(_ref) {
|
|
|
7493
7491
|
{ className: 'audio d-block text-center mb-3' },
|
|
7494
7492
|
React__default.createElement(
|
|
7495
7493
|
'audio',
|
|
7496
|
-
{ controls: true, controlsList: 'nodownload', className: 'audio'
|
|
7494
|
+
{ controls: true, controlsList: 'nodownload', className: 'audio' },
|
|
7497
7495
|
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
|
|
7498
7496
|
React__default.createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
|
|
7499
7497
|
'Your browser does not support the audio element.'
|
|
@@ -10346,11 +10344,11 @@ var getSerializers = function getSerializers() {
|
|
|
10346
10344
|
article = props[12],
|
|
10347
10345
|
meta = props[13],
|
|
10348
10346
|
authorPrefix = props[14],
|
|
10349
|
-
authorImgHeight = props[15]
|
|
10350
|
-
audioAutoplay = props[16];
|
|
10347
|
+
authorImgHeight = props[15];
|
|
10351
10348
|
|
|
10352
10349
|
|
|
10353
10350
|
var nextVideo = article && article.nextVideo ? article.nextVideo : null;
|
|
10351
|
+
|
|
10354
10352
|
return {
|
|
10355
10353
|
types: {
|
|
10356
10354
|
undefined: function undefined$1() {
|
|
@@ -10443,7 +10441,7 @@ var getSerializers = function getSerializers() {
|
|
|
10443
10441
|
audio: function audio(_ref12) {
|
|
10444
10442
|
var node = _ref12.node;
|
|
10445
10443
|
|
|
10446
|
-
return React__default.createElement(Audio, { node: node
|
|
10444
|
+
return React__default.createElement(Audio, { node: node });
|
|
10447
10445
|
},
|
|
10448
10446
|
poll: function poll(_ref13) {
|
|
10449
10447
|
var node = _ref13.node;
|
package/dist/esm/index.js
CHANGED
|
@@ -86,7 +86,7 @@ export { default as VerticalHero } from './VerticalHero.js';
|
|
|
86
86
|
export { default as YahooHero } from './YahooHero.js';
|
|
87
87
|
export { default as GridHero } from './GridHero.js';
|
|
88
88
|
export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
|
|
89
|
-
export { g as getSerializers } from './index-
|
|
89
|
+
export { g as getSerializers } from './index-75e169f5.js';
|
|
90
90
|
export { default as Beam } from './Beam.js';
|
|
91
91
|
export { default as Segment } from './Segment.js';
|
|
92
92
|
export { default as KMTracker } from './KMTracker.js';
|
|
@@ -101,7 +101,7 @@ export { default as VideoSeriesLandingPage } from './VideoSeriesLandingPage.js';
|
|
|
101
101
|
export { default as ArticleProgramLandingPage } from './ArticleProgramLandingPage.js';
|
|
102
102
|
export { default as ArticleSeriesLandingPage } from './ArticleSeriesLandingPage.js';
|
|
103
103
|
export { default as Schema } from './Schema.js';
|
|
104
|
-
export { g as getTargeting } from './getTargeting-
|
|
104
|
+
export { g as getTargeting } from './getTargeting-42f9b439.js';
|
|
105
105
|
export { default as getKeywords } from './getKeywords.js';
|
|
106
106
|
export { default as getQuery } from './getQuery.js';
|
|
107
107
|
import './toConsumableArray-f7074d7c.js';
|
|
@@ -191,9 +191,10 @@ import 'swr';
|
|
|
191
191
|
import 'passport-local';
|
|
192
192
|
import 'mysql';
|
|
193
193
|
import './md5-4e42248e.js';
|
|
194
|
-
import './SeriesSlider-
|
|
194
|
+
import './SeriesSlider-f771e20d.js';
|
|
195
195
|
import './style-inject.es-1f59c1d0.js';
|
|
196
196
|
import 'disqus-react';
|
|
197
|
+
import 'file-saver';
|
|
197
198
|
import 'react-twitter-embed';
|
|
198
199
|
import './ImageSlider-f84174cb.js';
|
|
199
200
|
import './defineProperty-23a8f8cd.js';
|