@mjhls/mjh-framework 1.0.1029-rsi-test-v1 → 1.0.1030-disable-native-test
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/dist/cjs/AD.js +6 -6
- package/dist/cjs/AD300x250.js +5 -6
- package/dist/cjs/AD300x250x600.js +5 -6
- package/dist/cjs/AD728x90.js +6 -7
- package/dist/cjs/ADFloatingFooter.js +8 -9
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +8 -9
- package/dist/cjs/{ADInfeed-443475d9.js → ADInfeed-9aae73be.js} +6 -6
- package/dist/cjs/ADSkyscraper.js +8 -9
- package/dist/cjs/ADSponsoredResources.js +8 -9
- package/dist/cjs/ADWebcast.js +8 -9
- package/dist/cjs/ADWelcome.js +12 -13
- package/dist/cjs/{ADlgInfeed-f328a5d5.js → ADlgInfeed-0e40c762.js} +4 -4
- package/dist/cjs/AccordionPanel.js +17 -17
- package/dist/cjs/AdSlot.js +9 -10
- package/dist/cjs/AdSlotsProvider.js +5 -6
- package/dist/cjs/AlgoliaSearch.js +1451 -902
- package/dist/cjs/AlphabeticList.js +12 -12
- package/dist/cjs/ArticleCarousel.js +5 -5
- package/dist/cjs/ArticleProgramLandingPage.js +14 -15
- package/dist/cjs/ArticleSeriesLandingPage.js +11 -12
- package/dist/cjs/ArticleSeriesListing.js +29 -30
- package/dist/cjs/Auth.js +114 -85
- package/dist/cjs/AuthWrapper.js +113 -43
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-7d00f6d5.js} +9 -9
- package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-96b44364.js} +18 -18
- package/dist/cjs/Breadcrumbs.js +17 -17
- package/dist/cjs/CEDeckSupabase.js +66 -67
- package/dist/cjs/CMEDeck.js +61 -62
- package/dist/cjs/Column1.js +7 -7
- package/dist/cjs/Column2.js +15 -15
- package/dist/cjs/Column3.js +27 -28
- package/dist/cjs/ConferenceArticleCard.js +12 -12
- package/dist/cjs/{ConferenceBanner-6c9e718a.js → ConferenceBanner-213003ce.js} +3 -3
- package/dist/cjs/ContentCardPaginated.js +49 -50
- package/dist/cjs/DeckContent.js +58 -59
- package/dist/cjs/DeckQueue.js +57 -58
- package/dist/cjs/DeckQueuePaginated.js +46 -47
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-67646058.js} +17 -18
- package/dist/cjs/EventsDeck.js +90 -90
- package/dist/cjs/ExternalResources.js +34 -35
- package/dist/cjs/Feature.js +17 -17
- package/dist/cjs/ForbesHero.js +25 -25
- package/dist/cjs/GridContent.js +134 -135
- package/dist/cjs/GridContentPaginated.js +121 -122
- package/dist/cjs/GridHero.js +26 -26
- package/dist/cjs/GroupDeck.js +33 -33
- package/dist/cjs/HamMagazine.js +105 -105
- package/dist/cjs/Header.js +25 -25
- package/dist/cjs/HealthCareProfessionalModal.js +17 -17
- package/dist/cjs/Hero.js +5 -5
- package/dist/cjs/HighlightenVideo.js +13 -13
- package/dist/cjs/HorizontalArticleListing.js +28 -29
- package/dist/cjs/HorizontalHero.js +17 -17
- package/dist/cjs/{ImageSlider-6c00b878.js → ImageSlider-1ec0408b.js} +212 -172
- package/dist/cjs/IssueContentDeck.js +49 -49
- package/dist/cjs/IssueDeck.js +48 -48
- package/dist/cjs/IssueLanding.js +19 -20
- package/dist/cjs/LeftNav.js +17 -18
- package/dist/cjs/MasterDeck.js +39 -40
- package/dist/cjs/MasterDeckPaginated.js +29 -30
- package/dist/cjs/{MediaSeriesCard-3297db46.js → MediaSeriesCard-5c112798.js} +16 -16
- package/dist/cjs/MediaSeriesLanding.js +37 -38
- package/dist/cjs/MediaSeriesLandingPaginated.js +36 -37
- package/dist/cjs/NavDvm.js +57 -57
- package/dist/cjs/{NavFooter-302a24fc.js → NavFooter-257b5318.js} +11 -11
- package/dist/cjs/NavMagazine.js +106 -106
- package/dist/cjs/NavNative.js +97 -97
- package/dist/cjs/OncliveHero.js +11 -11
- package/dist/cjs/OncliveLargeHero.js +49 -49
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/{Pagination-2a3d0103.js → Pagination-6359861a.js} +13 -13
- package/dist/cjs/PartnerDetailListing.js +49 -51
- package/dist/cjs/PartnerDetailListingPaginated.js +48 -50
- package/dist/cjs/PdfDownload.js +4 -4
- package/dist/cjs/PixelTracking.js +9 -9
- package/dist/cjs/PodcastsLanding.js +22 -23
- package/dist/cjs/PopUpModal.js +9 -9
- package/dist/cjs/PtceDeck.js +13 -13
- package/dist/cjs/PubSection.js +13 -14
- package/dist/cjs/PubToc.js +4 -4
- package/dist/cjs/PublicationDeck.js +44 -44
- package/dist/cjs/{PublicationFeature-5ccf9b13.js → PublicationFeature-a989a2b3.js} +29 -29
- package/dist/cjs/PublicationLanding.js +73 -73
- package/dist/cjs/QueueDeckExpanded.js +245 -246
- package/dist/cjs/QueueDeckExpandedPaginated.js +222 -223
- package/dist/cjs/RecentNews.js +15 -15
- package/dist/cjs/RelatedContent.js +14 -14
- package/dist/cjs/RelatedTopicsDropdown.js +14 -14
- package/dist/cjs/RolesDeck.js +20 -20
- package/dist/cjs/Schema.js +1 -1
- package/dist/cjs/Search.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +18 -19
- package/dist/cjs/{SeriesSlider-8d294dee.js → SeriesSlider-fc6dd07d.js} +22 -22
- package/dist/cjs/SideFooter.js +18 -18
- package/dist/cjs/SocialIcons.js +6 -6
- package/dist/cjs/{SocialSearchComponent-e534517d.js → SocialSearchComponent-b99947d4.js} +28 -28
- package/dist/cjs/SocialShare.js +25 -25
- package/dist/cjs/TaxonomyCard.js +44 -44
- package/dist/cjs/TaxonomyDescription.js +11 -12
- package/dist/cjs/TemplateNormal.js +27 -28
- package/dist/cjs/ThumbnailCard.js +10 -10
- package/dist/cjs/{Tooltip-f075b7ef.js → Tooltip-71754b2a.js} +704 -621
- package/dist/cjs/Ustream.js +9 -9
- package/dist/cjs/VerticalHero.js +10 -10
- package/dist/cjs/VideoProgramLandingPage.js +28 -29
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +5 -5
- package/dist/cjs/VideoSeriesLandingPage.js +11 -12
- package/dist/cjs/VideoSeriesListing.js +46 -47
- package/dist/cjs/View.js +275 -238
- package/dist/cjs/YahooHero.js +22 -22
- package/dist/cjs/YoutubeGroup.js +33 -33
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-4c7825a1.js} +2 -2
- package/dist/cjs/getSerializers.js +6 -7
- package/dist/cjs/iconBase-be4097c0.js +2 -4
- package/dist/cjs/{index-f5945934.js → index-1a89a9de.js} +488 -488
- package/dist/cjs/{index-eadd5035.js → index-65621b6c.js} +5 -5
- package/dist/cjs/{index-fc2f1ca2.js → index-7435b964.js} +471 -6
- package/dist/cjs/{index-f86bb269.js → index-96c331fd.js} +53 -52
- package/dist/cjs/index-b95410f0.js +54 -0
- package/dist/cjs/{index.es-f3e47207.js → index.es-1ab8dda7.js} +4 -4
- package/dist/cjs/{index.esm-827b0006.js → index.esm-91e651b0.js} +14 -14
- package/dist/cjs/index.js +102 -105
- package/dist/cjs/{main-1ec1de84.js → main-ae8472f3.js} +17 -22
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-2c5c389a.js} +7 -7
- package/dist/cjs/ustream-api-3819e4aa.js +1 -1
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-56020df6.js} +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +2 -3
- package/dist/esm/AD300x250x600.js +2 -3
- package/dist/esm/AD728x90.js +2 -3
- package/dist/esm/ADFloatingFooter.js +2 -3
- package/dist/esm/ADGutter.js +2 -3
- package/dist/esm/{ADInfeed-25c623eb.js → ADInfeed-80914a61.js} +1 -1
- package/dist/esm/ADSkyscraper.js +2 -3
- package/dist/esm/ADSponsoredResources.js +2 -3
- package/dist/esm/ADWebcast.js +2 -3
- package/dist/esm/ADWelcome.js +2 -3
- package/dist/esm/{ADlgInfeed-f4c58df6.js → ADlgInfeed-55786341.js} +1 -1
- package/dist/esm/AdSlot.js +2 -3
- package/dist/esm/AdSlotsProvider.js +2 -3
- package/dist/esm/AlgoliaSearch.js +1065 -516
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +3 -4
- package/dist/esm/ArticleSeriesLandingPage.js +4 -5
- package/dist/esm/ArticleSeriesListing.js +2 -3
- package/dist/esm/Auth.js +40 -11
- package/dist/esm/AuthWrapper.js +86 -16
- package/dist/esm/CEDeckSupabase.js +2 -3
- package/dist/esm/CMEDeck.js +2 -3
- package/dist/esm/Column3.js +2 -3
- package/dist/esm/ContentCardPaginated.js +4 -5
- package/dist/esm/DeckContent.js +3 -4
- package/dist/esm/DeckQueue.js +2 -3
- package/dist/esm/DeckQueuePaginated.js +3 -4
- package/dist/esm/{Dfp-102f0beb.js → Dfp-cf85d203.js} +1 -2
- package/dist/esm/EventsDeck.js +2 -2
- package/dist/esm/ExternalResources.js +4 -5
- package/dist/esm/Feature.js +1 -1
- package/dist/esm/GridContent.js +4 -5
- package/dist/esm/GridContentPaginated.js +5 -6
- package/dist/esm/HamMagazine.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +3 -4
- package/dist/esm/{ImageSlider-f84174cb.js → ImageSlider-83913c4c.js} +157 -117
- package/dist/esm/IssueLanding.js +5 -6
- package/dist/esm/LeftNav.js +2 -3
- package/dist/esm/MasterDeck.js +4 -5
- package/dist/esm/MasterDeckPaginated.js +5 -6
- package/dist/esm/{MediaSeriesCard-f91eced9.js → MediaSeriesCard-febb981a.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +8 -9
- package/dist/esm/MediaSeriesLandingPaginated.js +9 -10
- package/dist/esm/NavMagazine.js +2 -2
- package/dist/esm/NavNative.js +1 -1
- package/dist/esm/{Pagination-dc30727b.js → Pagination-9fe9f61d.js} +1 -1
- package/dist/esm/PartnerDetailListing.js +6 -8
- package/dist/esm/PartnerDetailListingPaginated.js +7 -9
- package/dist/esm/PodcastsLanding.js +6 -7
- package/dist/esm/PubSection.js +4 -5
- package/dist/esm/QueueDeckExpanded.js +4 -5
- package/dist/esm/QueueDeckExpandedPaginated.js +5 -6
- package/dist/esm/SeriesListingDeck.js +3 -4
- package/dist/esm/{SeriesSlider-d64090f7.js → SeriesSlider-771918ce.js} +1 -1
- package/dist/esm/{SocialSearchComponent-2451acd2.js → SocialSearchComponent-aedf8322.js} +1 -1
- package/dist/esm/TaxonomyDescription.js +3 -4
- package/dist/esm/TemplateNormal.js +3 -4
- package/dist/esm/{Tooltip-95655b44.js → Tooltip-8307d9d1.js} +150 -67
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +3 -4
- package/dist/esm/VideoSeriesLandingPage.js +4 -5
- package/dist/esm/VideoSeriesListing.js +2 -3
- package/dist/esm/View.js +57 -20
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/getSerializers.js +3 -4
- package/dist/esm/{index-a76981e9.js → index-127807d3.js} +2 -2
- package/dist/esm/index-174b5baf.js +52 -0
- package/dist/esm/{index-79cfd25c.js → index-30a6257d.js} +53 -52
- package/dist/esm/{index-f0fc23eb.js → index-5cc7b406.js} +466 -1
- package/dist/esm/index.js +10 -13
- package/dist/esm/{main-f97773b2.js → main-754d4992.js} +4 -9
- package/package.json +1 -1
- package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/index-50be6759.js +0 -105
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/defineProperty-23a8f8cd.js +0 -68
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/index-98ca9cec.js +0 -100
- package/dist/esm/typeof-2f07d0e8.js +0 -30
package/dist/esm/View.js
CHANGED
|
@@ -8,16 +8,16 @@ import { _ as _JSON$stringify } from './stringify-2b084bee.js';
|
|
|
8
8
|
import { _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
|
|
9
9
|
import { m as moment } from './moment-bc12cb97.js';
|
|
10
10
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
11
|
-
import { m as main_43 } from './main-
|
|
11
|
+
import { m as main_43 } from './main-754d4992.js';
|
|
12
12
|
import 'react-bootstrap/Dropdown';
|
|
13
13
|
import Form from 'react-bootstrap/Form';
|
|
14
14
|
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-127807d3.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
|
-
import { S as SeriesSlider } from './SeriesSlider-
|
|
20
|
+
import { S as SeriesSlider } from './SeriesSlider-771918ce.js';
|
|
21
21
|
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-9bd28724.js';
|
|
22
22
|
import getKeywords from './getKeywords.js';
|
|
23
23
|
import urlFor from './urlFor.js';
|
|
@@ -33,7 +33,7 @@ import { PixelTrackingArticle } from './PixelTracking.js';
|
|
|
33
33
|
import './Segment.js';
|
|
34
34
|
import { _ as _Object$keys } from './keys-31dcdb31.js';
|
|
35
35
|
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
36
|
-
import { l as lib_3 } from './index-
|
|
36
|
+
import { l as lib_3 } from './index-5cc7b406.js';
|
|
37
37
|
import getRelatedArticle from './getRelatedArticle.js';
|
|
38
38
|
import getQuery from './getQuery.js';
|
|
39
39
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
@@ -75,7 +75,6 @@ import './checkSisterSite-a7218fda.js';
|
|
|
75
75
|
import './debounce-533d9748.js';
|
|
76
76
|
import './isSymbol-a7e9aafe.js';
|
|
77
77
|
import './toNumber-5aeba6e7.js';
|
|
78
|
-
import './events-6c3a7a63.js';
|
|
79
78
|
import './index-db3bb315.js';
|
|
80
79
|
|
|
81
80
|
var getArticleSummary = function getArticleSummary(article) {
|
|
@@ -1078,19 +1077,19 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1078
1077
|
}
|
|
1079
1078
|
|
|
1080
1079
|
// If sponsored flag, disable contextual ads
|
|
1081
|
-
if (sponsoredFlag) {
|
|
1080
|
+
if (sponsoredFlag || article.disableNativeAds) {
|
|
1082
1081
|
article.contextualVideoAD = false;
|
|
1083
1082
|
article.contextualAD = false;
|
|
1084
|
-
showRelatedArticles = false;
|
|
1085
1083
|
}
|
|
1086
|
-
|
|
1084
|
+
|
|
1085
|
+
if (article.disableRelatedContent || sponsoredFlag) {
|
|
1087
1086
|
showRelatedArticles = false;
|
|
1088
1087
|
}
|
|
1089
1088
|
// This was being done in ArticleQueue2 which wasnt effecting articles excluded from infinite scroll, moved inside article component
|
|
1090
1089
|
if (!sponsoredFlag && Ads.getVideoContextualAD) {
|
|
1091
1090
|
article.contextualVideoAD = Ads.getVideoContextualAD(getTargeting(props, 'in-context_video'));
|
|
1092
1091
|
}
|
|
1093
|
-
if (!sponsoredFlag && Ads.getNativeContextualAD) {
|
|
1092
|
+
if (!sponsoredFlag && Ads.getNativeContextualAD && !article.disableNativeAds) {
|
|
1094
1093
|
article.contextualAD = Ads.getNativeContextualAD(getTargeting(props, 'native-ad'));
|
|
1095
1094
|
}
|
|
1096
1095
|
|
|
@@ -1719,17 +1718,11 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1719
1718
|
null,
|
|
1720
1719
|
article.title && React__default.createElement('meta', { name: 'citation_title', content: article.title }),
|
|
1721
1720
|
published && React__default.createElement('meta', { name: 'citation_date', content: moment(published).format('LL') }),
|
|
1722
|
-
issue.publication && issue.publication.name && React__default.createElement('meta', { name: 'citation_Publication', content: issue.publication.name }),
|
|
1723
1721
|
issue.year && React__default.createElement('meta', { name: 'citation_year', content: issue.year }),
|
|
1724
|
-
issue.volume && React__default.createElement('meta', { name: 'citation_volume', content: issue.volume }),
|
|
1725
|
-
issue.issueNumber && React__default.createElement('meta', { name: 'citation_issue', content: issue.issueNumber }),
|
|
1726
|
-
pageNumber && React__default.createElement('meta', { name: 'citation_Pages', content: pageNumber }),
|
|
1727
|
-
issue.name && React__default.createElement('meta', { name: 'citation_Series', content: issue.name }),
|
|
1728
1722
|
issue.isbn_issn && React__default.createElement('meta', { name: 'citation_isbn', content: issue.isbn_issn }),
|
|
1729
1723
|
article.abstract && React__default.createElement('meta', { name: 'citation_abstract', content: getAbstract() }),
|
|
1730
1724
|
React__default.createElement('meta', { name: 'citation_author', content: getAuthorList() }),
|
|
1731
|
-
issue.pdf && React__default.createElement('meta', { name: 'citation_pdf_url', content: urlForFile({ asset: issue.pdf }) })
|
|
1732
|
-
React__default.createElement('meta', { name: 'citation_publisher', content: 'MJH Life Sciences' })
|
|
1725
|
+
issue.pdf && React__default.createElement('meta', { name: 'citation_pdf_url', content: urlForFile({ asset: issue.pdf }) })
|
|
1733
1726
|
),
|
|
1734
1727
|
isVideoSeries && renderBlockContent(article, meta, authorImgHeight),
|
|
1735
1728
|
!isVideoSeries && React__default.createElement(
|
|
@@ -1748,7 +1741,8 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1748
1741
|
),
|
|
1749
1742
|
React__default.createElement(
|
|
1750
1743
|
'div',
|
|
1751
|
-
{
|
|
1744
|
+
{
|
|
1745
|
+
className: 'mb-3 doc-group-container',
|
|
1752
1746
|
style: {
|
|
1753
1747
|
display: 'flex',
|
|
1754
1748
|
justifyContent: 'space-between',
|
|
@@ -2487,7 +2481,11 @@ var View = function View(props) {
|
|
|
2487
2481
|
),
|
|
2488
2482
|
metaDescriptionSanity ? React__default.createElement('meta', { name: 'description', key: 'description', content: metaDescriptionSanity }) : meta_description && React__default.createElement('meta', { name: 'description', key: 'description', content: meta_description }),
|
|
2489
2483
|
React__default.createElement('meta', { name: 'keywords', content: getKeywords(article).join(','), key: 'keywords' }),
|
|
2490
|
-
|
|
2484
|
+
passwordLock && React__default.createElement('meta', { name: 'robots', content: 'noindex, nofollow' }),
|
|
2485
|
+
!passwordLock && (article.applyNoIndexTag || article.applyNoFollowTag) && React__default.createElement('meta', {
|
|
2486
|
+
name: 'robots',
|
|
2487
|
+
content: article.applyNoIndexTag && article.applyNoFollowTag ? 'noindex, nofollow' : article.applyNoIndexTag && !article.applyNoFollowTag ? 'noindex' : 'nofollow'
|
|
2488
|
+
}),
|
|
2491
2489
|
React__default.createElement('meta', {
|
|
2492
2490
|
property: 'og:url',
|
|
2493
2491
|
content: seriesShareOptions && seriesShareOptions.seriesUrl ? shareOptions.shareUrl + seriesShareOptions.seriesUrl : shareOptions.shareUrl,
|
|
@@ -2530,7 +2528,16 @@ var View = function View(props) {
|
|
|
2530
2528
|
props.article.seriesDetail && props.article.seriesDetail.nextUrl && React__default.createElement('link', { rel: 'next', href: props.article.seriesDetail.nextUrl })
|
|
2531
2529
|
)
|
|
2532
2530
|
),
|
|
2533
|
-
!needInfiniteScroll ? React__default.createElement(Article, _extends({
|
|
2531
|
+
!needInfiniteScroll ? React__default.createElement(Article, _extends({
|
|
2532
|
+
infiniteScroll: false,
|
|
2533
|
+
showRelatedArticles: showRelatedArticles,
|
|
2534
|
+
showDisqus: showDisqus,
|
|
2535
|
+
emailList: emailList,
|
|
2536
|
+
articleRecs: articleRecs
|
|
2537
|
+
}, props, {
|
|
2538
|
+
showIssueNameOnly: article.issueGroup && article.issueGroup.parent ? article.issueGroup.parent.showIssueNameOnly : null,
|
|
2539
|
+
showPageNumber: article.issueGroup && article.issueGroup.parent ? article.issueGroup.parent.showPageNumber : null
|
|
2540
|
+
})) : React__default.createElement(ArticleQueue, _extends({
|
|
2534
2541
|
infiniteScroll: true,
|
|
2535
2542
|
showRelatedArticles: showRelatedArticles,
|
|
2536
2543
|
canonicalTag: canonicalTag,
|
|
@@ -2644,6 +2651,9 @@ View.returnGetInitialProps = function () {
|
|
|
2644
2651
|
if (x.applyNoIndexTag) {
|
|
2645
2652
|
article.applyNoIndexTag = true;
|
|
2646
2653
|
}
|
|
2654
|
+
if (x.applyNoFollowTag) {
|
|
2655
|
+
article.applyNoFollowTag = true;
|
|
2656
|
+
}
|
|
2647
2657
|
});
|
|
2648
2658
|
}
|
|
2649
2659
|
// check for disableAds flag on content category
|
|
@@ -2673,6 +2683,33 @@ View.returnGetInitialProps = function () {
|
|
|
2673
2683
|
article.relatedArticle = _context.sent;
|
|
2674
2684
|
|
|
2675
2685
|
case 35:
|
|
2686
|
+
|
|
2687
|
+
//check documentGroup and documentGroupMapping for disableNativeAds:true
|
|
2688
|
+
if (article.documentGroup && article.documentGroup.length) {
|
|
2689
|
+
article.documentGroup.forEach(function (docGroup) {
|
|
2690
|
+
var node = docGroup.parent ? docGroup.parent : null;
|
|
2691
|
+
if (docGroup.disableNativeAds) {
|
|
2692
|
+
article.disableNativeAds = true;
|
|
2693
|
+
}
|
|
2694
|
+
while (node) {
|
|
2695
|
+
if (node.disableNativeAds) [article.disableNativeAds = true];
|
|
2696
|
+
node = node.parent || null;
|
|
2697
|
+
}
|
|
2698
|
+
});
|
|
2699
|
+
}
|
|
2700
|
+
if (article.documentGroupMapping && article.documentGroupMapping.length) {
|
|
2701
|
+
article.documentGroupMapping.forEach(function (docGroup) {
|
|
2702
|
+
var node = docGroup.parent ? docGroup.parent : null;
|
|
2703
|
+
if (docGroup.disableNativeAds) {
|
|
2704
|
+
article.disableNativeAds = true;
|
|
2705
|
+
}
|
|
2706
|
+
while (node) {
|
|
2707
|
+
if (node.disableNativeAds) [article.disableNativeAds = true];
|
|
2708
|
+
node = node.parent || null;
|
|
2709
|
+
}
|
|
2710
|
+
});
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2676
2713
|
return _context.abrupt('return', {
|
|
2677
2714
|
url: url,
|
|
2678
2715
|
sao: sao,
|
|
@@ -2684,7 +2721,7 @@ View.returnGetInitialProps = function () {
|
|
|
2684
2721
|
sponsoredFlag: sponsoredFlag
|
|
2685
2722
|
});
|
|
2686
2723
|
|
|
2687
|
-
case
|
|
2724
|
+
case 38:
|
|
2688
2725
|
case 'end':
|
|
2689
2726
|
return _context.stop();
|
|
2690
2727
|
}
|
package/dist/esm/YoutubeGroup.js
CHANGED
|
@@ -4,7 +4,7 @@ import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
|
4
4
|
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
5
5
|
import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
|
|
6
6
|
import urlFor from './urlFor.js';
|
|
7
|
-
import { m as main_43, a as main_49, b as main_42 } from './main-
|
|
7
|
+
import { m as main_43, a as main_49, b as main_42 } from './main-754d4992.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './web.dom.iterable-ab4dea5c.js';
|
|
10
10
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
export { g as default } from './index-
|
|
2
|
+
export { g as default } from './index-127807d3.js';
|
|
3
3
|
import './BlockContent-1e73bd2c.js';
|
|
4
4
|
import './entities-6d9154b4.js';
|
|
5
5
|
import './slicedToArray-6ebcbfea.js';
|
|
@@ -9,8 +9,7 @@ import './core.get-iterator-method-ea258bb1.js';
|
|
|
9
9
|
import 'react-bootstrap';
|
|
10
10
|
import './urlFor.js';
|
|
11
11
|
import './index-3f5c03b2.js';
|
|
12
|
-
import './index-
|
|
13
|
-
import './events-6c3a7a63.js';
|
|
12
|
+
import './index-5cc7b406.js';
|
|
14
13
|
import 'prop-types';
|
|
15
14
|
import 'next/router';
|
|
16
15
|
import './index-c7e2ac95.js';
|
|
@@ -22,7 +21,7 @@ import './_library-528f1934.js';
|
|
|
22
21
|
import './_set-species-2cd9340f.js';
|
|
23
22
|
import './_iter-detect-98db3b07.js';
|
|
24
23
|
import './Segment.js';
|
|
25
|
-
import './main-
|
|
24
|
+
import './main-754d4992.js';
|
|
26
25
|
import './extends-6d8e3924.js';
|
|
27
26
|
import './_object-pie-133f504a.js';
|
|
28
27
|
import './urlForFile-b69adffc.js';
|
|
@@ -2,7 +2,7 @@ import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallba
|
|
|
2
2
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-6ebcbfea.js';
|
|
3
3
|
import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button as Button$1, ProgressBar } from 'react-bootstrap';
|
|
4
4
|
import urlFor from './urlFor.js';
|
|
5
|
-
import { l as lib_3 } from './index-
|
|
5
|
+
import { l as lib_3 } from './index-5cc7b406.js';
|
|
6
6
|
import Router, { useRouter } from 'next/router';
|
|
7
7
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -10,7 +10,7 @@ import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelper
|
|
|
10
10
|
import { u as util } from './util-8ed16d48.js';
|
|
11
11
|
import './Beam.js';
|
|
12
12
|
import Segment from './Segment.js';
|
|
13
|
-
import { f as main_18, b as main_42, m as main_43 } from './main-
|
|
13
|
+
import { f as main_18, b as main_42, m as main_43 } from './main-754d4992.js';
|
|
14
14
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
15
15
|
import { _ as _extends, b as _extends$1 } from './extends-6d8e3924.js';
|
|
16
16
|
import { u as urlForFile } from './urlForFile-b69adffc.js';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
|
|
3
|
+
var classnames = createCommonjsModule(function (module) {
|
|
4
|
+
/*!
|
|
5
|
+
Copyright (c) 2017 Jed Watson.
|
|
6
|
+
Licensed under the MIT License (MIT), see
|
|
7
|
+
http://jedwatson.github.io/classnames
|
|
8
|
+
*/
|
|
9
|
+
/* global define */
|
|
10
|
+
|
|
11
|
+
(function () {
|
|
12
|
+
|
|
13
|
+
var hasOwn = {}.hasOwnProperty;
|
|
14
|
+
|
|
15
|
+
function classNames () {
|
|
16
|
+
var classes = [];
|
|
17
|
+
|
|
18
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
19
|
+
var arg = arguments[i];
|
|
20
|
+
if (!arg) continue;
|
|
21
|
+
|
|
22
|
+
var argType = typeof arg;
|
|
23
|
+
|
|
24
|
+
if (argType === 'string' || argType === 'number') {
|
|
25
|
+
classes.push(arg);
|
|
26
|
+
} else if (Array.isArray(arg) && arg.length) {
|
|
27
|
+
var inner = classNames.apply(null, arg);
|
|
28
|
+
if (inner) {
|
|
29
|
+
classes.push(inner);
|
|
30
|
+
}
|
|
31
|
+
} else if (argType === 'object') {
|
|
32
|
+
for (var key in arg) {
|
|
33
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
34
|
+
classes.push(key);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return classes.join(' ');
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (module.exports) {
|
|
44
|
+
classNames.default = classNames;
|
|
45
|
+
module.exports = classNames;
|
|
46
|
+
} else {
|
|
47
|
+
window.classNames = classNames;
|
|
48
|
+
}
|
|
49
|
+
}());
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export { classnames as c };
|