@mjhls/mjh-framework 1.0.775 → 1.0.776-block-table
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 +170 -169
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +21 -21
- package/dist/cjs/AD300x250x600.js +21 -21
- package/dist/cjs/AD728x90.js +24 -24
- package/dist/cjs/ADFloatingFooter.js +20 -20
- package/dist/cjs/ADFooter.js +6 -6
- package/dist/cjs/ADGutter.js +20 -20
- package/dist/cjs/{ADInfeed-d1eceaf2.js → ADInfeed-de972407.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +20 -20
- package/dist/cjs/ADSponsoredResources.js +20 -20
- package/dist/cjs/ADWebcast.js +20 -20
- package/dist/cjs/ADWelcome.js +17 -17
- package/dist/cjs/{ADlgInfeed-24c693d8.js → ADlgInfeed-6ab92047.js} +4 -4
- package/dist/cjs/AccordionPanel.js +8 -8
- package/dist/cjs/AdSlot.js +21 -21
- package/dist/cjs/AdSlotsProvider.js +12 -12
- package/dist/cjs/AlphabeticList.js +9 -9
- package/dist/cjs/ArticleCarousel.js +17 -17
- package/dist/cjs/ArticleProgramLandingPage.js +47 -47
- package/dist/cjs/ArticleSeriesLandingPage.js +30 -30
- package/dist/cjs/ArticleSeriesListing.js +31 -31
- package/dist/cjs/Auth.js +214 -647
- package/dist/cjs/{AuthorComponent-5fa89df5.js → AuthorComponent-ac8972ce.js} +1 -1
- package/dist/cjs/Beam.js +9 -9
- package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-8b494587.js} +1 -1
- package/dist/cjs/Breadcrumbs.js +8 -8
- package/dist/cjs/CMEDeck.js +24 -24
- package/dist/cjs/Column2.js +17 -17
- package/dist/cjs/Column3.js +31 -31
- package/dist/cjs/ConferenceArticleCard.js +22 -22
- package/dist/cjs/DeckContent.js +41 -41
- package/dist/cjs/DeckQueue.js +28 -28
- package/dist/cjs/{Dfp-a17e00fa.js → Dfp-c226037e.js} +13 -13
- package/dist/cjs/EventsDeck.js +41 -41
- package/dist/cjs/ExternalResources.js +46 -46
- package/dist/cjs/Feature.js +4 -4
- package/dist/cjs/ForbesHero.js +11 -11
- package/dist/cjs/GridContent.js +45 -45
- package/dist/cjs/GridHero.js +12 -12
- package/dist/cjs/GroupDeck.js +13 -13
- package/dist/cjs/HamMagazine.js +36 -36
- package/dist/cjs/Hero.js +3 -3
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +45 -45
- package/dist/cjs/HorizontalHero.js +4 -4
- package/dist/cjs/IssueContentDeck.js +12 -12
- package/dist/cjs/IssueDeck.js +16 -16
- package/dist/cjs/IssueLanding.js +62 -62
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +19 -19
- package/dist/cjs/MasterDeck.js +40 -40
- package/dist/cjs/MediaSeriesLanding.js +25 -25
- package/dist/cjs/NavDvm.js +14 -14
- package/dist/cjs/NavMagazine.js +41 -41
- package/dist/cjs/NavNative.js +38 -38
- package/dist/cjs/NavNormal.js +15 -15
- package/dist/cjs/OncliveHero.js +4 -4
- package/dist/cjs/OncliveLargeHero.js +12 -12
- package/dist/cjs/PageFilter.js +6 -6
- package/dist/cjs/PartnerDetailListing.js +54 -54
- package/dist/cjs/PdfDownload.js +1 -1
- package/dist/cjs/PopUpModal.js +6 -6
- package/dist/cjs/PubSection.js +31 -31
- package/dist/cjs/PubToc.js +9 -9
- package/dist/cjs/PublicationDeck.js +7 -7
- package/dist/cjs/PublicationLanding.js +50 -50
- package/dist/cjs/QueueDeckExpanded.js +35 -35
- package/dist/cjs/RecentNews.js +5 -5
- package/dist/cjs/RelatedContent.js +34 -34
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +8 -8
- package/dist/cjs/Segment.js +7 -7
- package/dist/cjs/SeriesListingDeck.js +19 -19
- package/dist/cjs/{SeriesSlider-193a2958.js → SeriesSlider-5e6108e0.js} +14 -14
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +16 -16
- package/dist/cjs/{SocialSearchComponent-45c54bed.js → SocialSearchComponent-fb784cc3.js} +8 -8
- package/dist/cjs/TaxonomyCard.js +9 -9
- package/dist/cjs/TaxonomyDescription.js +44 -44
- package/dist/cjs/TemplateNormal.js +45 -45
- package/dist/cjs/ThumbnailCard.js +6 -6
- package/dist/cjs/Ustream.js +9 -9
- package/dist/cjs/VerticalHero.js +3 -3
- package/dist/cjs/VideoProgramLandingPage.js +50 -50
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +10 -10
- package/dist/cjs/VideoSeriesLandingPage.js +35 -35
- package/dist/cjs/VideoSeriesListing.js +33 -33
- package/dist/cjs/View.js +169 -171
- package/dist/cjs/YahooHero.js +14 -14
- package/dist/cjs/YoutubeGroup.js +29 -29
- package/dist/cjs/{_is-array-63ae4740.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-2613ffa1.js → _iter-detect-60b2f026.js} +2 -2
- package/dist/cjs/{_object-sap-c5bd707d.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-bec5fcf2.js → _object-to-array-5762f850.js} +1 -1
- package/dist/cjs/{_set-species-a8cfdb84.js → _set-species-f92c67c5.js} +4 -4
- package/dist/cjs/{_to-object-821a2927.js → _to-object-329a650b.js} +4 -4
- package/dist/cjs/{asyncToGenerator-2edcb6ad.js → asyncToGenerator-533d476a.js} +8 -8
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-4ba0d3d5.js} +4 -5
- package/dist/cjs/{core.get-iterator-method-b4615fd3.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{define-property-aff11f8a.js → define-property-f4d12f4e.js} +1 -1
- package/dist/cjs/{defineProperty-d6fbb280.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{es6.string.iterator-20d42c53.js → es6.string.iterator-cc0bbaa4.js} +2 -2
- package/dist/cjs/{extends-1e24fc8d.js → extends-60837c34.js} +1 -1
- package/dist/cjs/getRelatedArticle.js +16 -14
- package/dist/cjs/getRootDocGroup.js +7 -7
- package/dist/cjs/getSerializers.js +44 -44
- package/dist/cjs/{getTargeting-497b581d.js → getTargeting-7c425fbf.js} +11 -11
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/{index-654bd07a.js → index-12bc7e08.js} +152 -111
- package/dist/cjs/{index-4d74ffd6.js → index-5be2866f.js} +41 -40
- package/dist/cjs/{index-80f57cff.js → index-8a3fb0bc.js} +7 -7
- package/dist/cjs/{index-d48b231c.js → index-b5eb3ff8.js} +6 -11
- package/dist/cjs/{index-0e4427c8.js → index-e08f00ce.js} +3 -3
- package/dist/cjs/{index.es-f3e47207.js → index.es-13533f24.js} +4 -20
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-3ffa049c.js} +1 -1
- package/dist/cjs/index.js +135 -135
- package/dist/cjs/{inherits-2eb23889.js → inherits-87492b40.js} +5 -5
- package/dist/cjs/{keys-95c064c9.js → keys-a586b7a0.js} +2 -2
- package/dist/cjs/{lodash-4ef21f0f.js → lodash-7fd85bcf.js} +1 -1
- package/dist/cjs/{main-dc082238.js → main-11ec04d2.js} +63 -67
- package/dist/cjs/{moment-aca40de1.js → moment-66a6a284.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-07939b41.js} +17 -17
- package/dist/cjs/{slicedToArray-db24842a.js → slicedToArray-8f385299.js} +4 -4
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-01cf47f7.js → stringify-7c5aff47.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-cf0865fc.js → toConsumableArray-9a3476fe.js} +4 -4
- package/dist/cjs/{typeof-97065d40.js → typeof-9d7f610f.js} +6 -6
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{web.dom.iterable-4480325a.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +21 -21
- package/dist/esm/AD300x250x600.js +21 -21
- package/dist/esm/AD728x90.js +24 -24
- package/dist/esm/ADFloatingFooter.js +20 -20
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +20 -20
- package/dist/esm/{ADInfeed-c12cd1ce.js → ADInfeed-1cba8312.js} +4 -4
- package/dist/esm/ADSkyscraper.js +20 -20
- package/dist/esm/ADSponsoredResources.js +20 -20
- package/dist/esm/ADWebcast.js +20 -20
- package/dist/esm/ADWelcome.js +17 -17
- package/dist/esm/{ADlgInfeed-246a8787.js → ADlgInfeed-fe7ad144.js} +4 -4
- package/dist/esm/AccordionPanel.js +8 -8
- package/dist/esm/AdSlot.js +21 -21
- package/dist/esm/AdSlotsProvider.js +12 -12
- package/dist/esm/AlphabeticList.js +9 -9
- package/dist/esm/ArticleCarousel.js +17 -17
- package/dist/esm/ArticleProgramLandingPage.js +47 -47
- package/dist/esm/ArticleSeriesLandingPage.js +30 -30
- package/dist/esm/ArticleSeriesListing.js +31 -31
- package/dist/esm/Auth.js +214 -647
- package/dist/esm/{AuthorComponent-c7ff069f.js → AuthorComponent-8ffd4679.js} +1 -1
- package/dist/esm/Beam.js +9 -9
- package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-d05b5b23.js} +1 -1
- package/dist/esm/Breadcrumbs.js +7 -7
- package/dist/esm/CMEDeck.js +24 -24
- package/dist/esm/Column2.js +17 -17
- package/dist/esm/Column3.js +31 -31
- package/dist/esm/ConferenceArticleCard.js +22 -22
- package/dist/esm/DeckContent.js +41 -41
- package/dist/esm/DeckQueue.js +28 -28
- package/dist/esm/{Dfp-988dbcaa.js → Dfp-c06b41fc.js} +13 -13
- package/dist/esm/EventsDeck.js +39 -39
- package/dist/esm/ExternalResources.js +46 -46
- package/dist/esm/Feature.js +4 -4
- package/dist/esm/ForbesHero.js +11 -11
- package/dist/esm/GridContent.js +45 -45
- package/dist/esm/GridHero.js +12 -12
- package/dist/esm/GroupDeck.js +13 -13
- package/dist/esm/HamMagazine.js +36 -36
- package/dist/esm/Hero.js +3 -3
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +45 -45
- package/dist/esm/HorizontalHero.js +4 -4
- package/dist/esm/IssueContentDeck.js +12 -12
- package/dist/esm/IssueDeck.js +15 -15
- package/dist/esm/IssueLanding.js +62 -62
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +19 -19
- package/dist/esm/MasterDeck.js +40 -40
- package/dist/esm/MediaSeriesLanding.js +25 -25
- package/dist/esm/NavDvm.js +14 -14
- package/dist/esm/NavMagazine.js +41 -41
- package/dist/esm/NavNative.js +36 -36
- package/dist/esm/NavNormal.js +15 -15
- package/dist/esm/OncliveHero.js +4 -4
- package/dist/esm/OncliveLargeHero.js +12 -12
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +54 -54
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +6 -6
- package/dist/esm/PubSection.js +31 -31
- package/dist/esm/PubToc.js +9 -9
- package/dist/esm/PublicationDeck.js +6 -6
- package/dist/esm/PublicationLanding.js +49 -49
- package/dist/esm/QueueDeckExpanded.js +35 -35
- package/dist/esm/RecentNews.js +5 -5
- package/dist/esm/RelatedContent.js +34 -34
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/Search.js +7 -7
- package/dist/esm/Segment.js +7 -7
- package/dist/esm/SeriesListingDeck.js +19 -19
- package/dist/esm/{SeriesSlider-6a1081ff.js → SeriesSlider-19a24623.js} +14 -14
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +16 -16
- package/dist/esm/{SocialSearchComponent-c3216d1a.js → SocialSearchComponent-2a4a7398.js} +7 -7
- package/dist/esm/TaxonomyCard.js +9 -9
- package/dist/esm/TaxonomyDescription.js +44 -44
- package/dist/esm/TemplateNormal.js +45 -45
- package/dist/esm/ThumbnailCard.js +6 -6
- package/dist/esm/Ustream.js +9 -9
- package/dist/esm/VerticalHero.js +3 -3
- package/dist/esm/VideoProgramLandingPage.js +49 -49
- package/dist/esm/VideoSeriesCard.js +13 -13
- package/dist/esm/VideoSeriesFilter.js +10 -10
- package/dist/esm/VideoSeriesLandingPage.js +35 -35
- package/dist/esm/VideoSeriesListing.js +33 -33
- package/dist/esm/View.js +168 -170
- package/dist/esm/YahooHero.js +14 -14
- package/dist/esm/YoutubeGroup.js +29 -29
- package/dist/esm/{_is-array-674f71ec.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-48516cd3.js → _iter-detect-5d49a330.js} +2 -2
- package/dist/esm/{_object-sap-fd3054d0.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-8f409e54.js → _object-to-array-7e804fce.js} +1 -1
- package/dist/esm/{_set-species-494ed292.js → _set-species-3f8319f5.js} +4 -4
- package/dist/esm/{_to-object-97770c52.js → _to-object-a4107da3.js} +5 -5
- package/dist/esm/{asyncToGenerator-2bd4099a.js → asyncToGenerator-502f13b4.js} +8 -8
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-e1c6b0f2.js} +4 -5
- package/dist/esm/{core.get-iterator-method-d1d5ed02.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{define-property-ec6d528d.js → define-property-8af5f002.js} +1 -1
- package/dist/esm/{defineProperty-ea516b15.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{es6.string.iterator-aa6068a3.js → es6.string.iterator-c990c18c.js} +3 -3
- package/dist/esm/{extends-31d65aba.js → extends-eb69e8ac.js} +1 -1
- package/dist/esm/getRelatedArticle.js +16 -14
- package/dist/esm/getRootDocGroup.js +7 -7
- package/dist/esm/getSerializers.js +44 -44
- package/dist/esm/{getTargeting-2d402d66.js → getTargeting-f22b76f5.js} +11 -11
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-928f03b5.js → index-236123b3.js} +150 -108
- package/dist/esm/{index-3f5c03b2.js → index-51a80699.js} +6 -11
- package/dist/esm/{index-888f9253.js → index-acfb8079.js} +3 -3
- package/dist/esm/{index-752d1dae.js → index-c5fd0af5.js} +6 -6
- package/dist/esm/{index-ccb770c7.js → index-d2f90501.js} +41 -40
- package/dist/esm/{index.es-c6222053.js → index.es-7dda2f0a.js} +4 -20
- package/dist/esm/{index.esm-8016b507.js → index.esm-8ee5ff72.js} +1 -1
- package/dist/esm/index.js +115 -115
- package/dist/esm/{inherits-5906fbea.js → inherits-0d8cda6e.js} +5 -5
- package/dist/esm/{keys-a0b0c7a4.js → keys-8eda7a5c.js} +2 -2
- package/dist/esm/{lodash-ad27652f.js → lodash-ec8c6b48.js} +1 -1
- package/dist/esm/{main-1450d277.js → main-aef58dbc.js} +63 -67
- package/dist/esm/{moment-bc12cb97.js → moment-12415288.js} +9 -11
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-3822f1ce.js} +16 -16
- package/dist/esm/{slicedToArray-cdeaee08.js → slicedToArray-641f241f.js} +4 -4
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/{stringify-d4839bab.js → stringify-4330ccdc.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-fa2dcda7.js → toConsumableArray-43aa614d.js} +4 -4
- package/dist/esm/{typeof-e9cea9e8.js → typeof-af9c50d8.js} +6 -6
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{web.dom.iterable-035980f3.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +107 -107
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
4
|
+
import './_library-528f1934.js';
|
|
5
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
6
|
+
import './_object-pie-33c40e79.js';
|
|
7
|
+
import { _ as _extends } from './extends-eb69e8ac.js';
|
|
8
|
+
import './_object-sap-964b6feb.js';
|
|
9
|
+
import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-0d8cda6e.js';
|
|
10
|
+
import './define-property-8af5f002.js';
|
|
11
|
+
import './web.dom.iterable-4439f05a.js';
|
|
12
|
+
import './typeof-af9c50d8.js';
|
|
13
|
+
import './_is-array-58e95429.js';
|
|
3
14
|
import React from 'react';
|
|
4
|
-
import { l as lib_3 } from './index-
|
|
15
|
+
import { l as lib_3 } from './index-acfb8079.js';
|
|
16
|
+
import 'prop-types';
|
|
5
17
|
import Container from 'react-bootstrap/Container';
|
|
6
|
-
import {
|
|
7
|
-
import { I as IoIosArrowForward } from './index.esm-3fdda599.js';
|
|
8
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
18
|
+
import { m as moment } from './moment-12415288.js';
|
|
9
19
|
import { withRouter } from 'next/router';
|
|
10
|
-
import
|
|
20
|
+
import './isSymbol-1981418f.js';
|
|
11
21
|
import { d as debounce_1 } from './debounce-9207d8ee.js';
|
|
12
|
-
import
|
|
13
|
-
import './
|
|
14
|
-
import './_to-object-97770c52.js';
|
|
15
|
-
import './_object-pie-33c40e79.js';
|
|
16
|
-
import './es6.string.iterator-aa6068a3.js';
|
|
17
|
-
import './_object-sap-fd3054d0.js';
|
|
18
|
-
import './define-property-ec6d528d.js';
|
|
19
|
-
import './typeof-e9cea9e8.js';
|
|
20
|
-
import './web.dom.iterable-035980f3.js';
|
|
21
|
-
import './_is-array-674f71ec.js';
|
|
22
|
-
import './_library-528f1934.js';
|
|
23
|
-
import 'prop-types';
|
|
22
|
+
import './toNumber-2f7a84cd.js';
|
|
23
|
+
import { I as InfiniteScroll } from './index.es-7dda2f0a.js';
|
|
24
24
|
import 'react-dom';
|
|
25
|
-
import './
|
|
26
|
-
import './
|
|
27
|
-
import './
|
|
25
|
+
import { V as VisibilitySensor } from './visibility-sensor-082c757b.js';
|
|
26
|
+
import './index-51a80699.js';
|
|
27
|
+
import './index-c5fd0af5.js';
|
|
28
|
+
import './main-aef58dbc.js';
|
|
29
|
+
import './slicedToArray-641f241f.js';
|
|
28
30
|
import './index-c7e2ac95.js';
|
|
29
|
-
import './
|
|
30
|
-
import './
|
|
31
|
-
import './
|
|
32
|
-
import './
|
|
33
|
-
import './isSymbol-1981418f.js';
|
|
34
|
-
import './toNumber-2f7a84cd.js';
|
|
31
|
+
import './smoothscroll-0cd4c7a6.js';
|
|
32
|
+
import YoutubeGroup from './YoutubeGroup.js';
|
|
33
|
+
import './iconBase-602d52fe.js';
|
|
34
|
+
import { I as IoIosArrowForward } from './index.esm-3fdda599.js';
|
|
35
35
|
|
|
36
36
|
var VideoSeriesListing = function (_React$Component) {
|
|
37
37
|
_inherits(VideoSeriesListing, _React$Component);
|
|
@@ -96,9 +96,9 @@ var VideoSeriesListing = function (_React$Component) {
|
|
|
96
96
|
}, 0), _this.loadData = function () {
|
|
97
97
|
var _this$state = _this.state,
|
|
98
98
|
from = _this$state.from,
|
|
99
|
-
to = _this$state.to
|
|
100
|
-
_this$state.data
|
|
101
|
-
|
|
99
|
+
to = _this$state.to,
|
|
100
|
+
data = _this$state.data,
|
|
101
|
+
query = _this$state.query,
|
|
102
102
|
page = _this$state.page;
|
|
103
103
|
var client = _this.props.client;
|
|
104
104
|
//this.changePageNumber(page)
|
|
@@ -223,10 +223,10 @@ var VideoSeriesListing = function (_React$Component) {
|
|
|
223
223
|
|
|
224
224
|
return React.createElement(
|
|
225
225
|
'div',
|
|
226
|
-
{ key: index, counter: itemCounter++ },
|
|
226
|
+
{ key: index, style: { marginBottom: '2rem' }, counter: itemCounter++ },
|
|
227
227
|
React.createElement(
|
|
228
228
|
'div',
|
|
229
|
-
{ className: 'video-title-banner', style: { fontWeight: 'bold', color: 'var(--primary)', padding: '.25rem 0', fontSize: '1.
|
|
229
|
+
{ className: 'video-title-banner', style: { fontWeight: 'bold', color: 'var(--primary)', padding: '.25rem 0', fontSize: '1.25rem', borderBottom: '1px solid #d4a64d' } },
|
|
230
230
|
React.createElement(
|
|
231
231
|
'a',
|
|
232
232
|
{ href: '/' + _this.props.page + '/' + docSeries.url.current },
|
package/dist/esm/View.js
CHANGED
|
@@ -1,73 +1,74 @@
|
|
|
1
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-2bd4099a.js';
|
|
2
|
-
import { _ as _extends, a as _Object$assign } from './extends-31d65aba.js';
|
|
3
|
-
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
|
|
4
|
-
import React, { useState, useRef, useEffect } from 'react';
|
|
5
|
-
import Head from 'next/head';
|
|
6
|
-
import { useRouter } from 'next/router';
|
|
7
|
-
import { _ as _JSON$stringify } from './stringify-d4839bab.js';
|
|
8
|
-
import { _ as _toConsumableArray } from './toConsumableArray-fa2dcda7.js';
|
|
9
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
10
|
-
import { B as BlockContent } from './BlockContent-d8cd739c.js';
|
|
11
|
-
import { m as main_40 } from './main-1450d277.js';
|
|
12
|
-
import 'react-bootstrap/Dropdown';
|
|
13
|
-
import Form from 'react-bootstrap/Form';
|
|
14
|
-
import FormControl from 'react-bootstrap/FormControl';
|
|
15
|
-
import Button from 'react-bootstrap/Button';
|
|
16
|
-
import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-928f03b5.js';
|
|
17
|
-
import SocialShare from './SocialShare.js';
|
|
18
|
-
import DFPAdSlot from './AdSlot.js';
|
|
19
|
-
import { S as SeriesSlider } from './SeriesSlider-6a1081ff.js';
|
|
20
|
-
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-2d402d66.js';
|
|
21
|
-
import getKeywords from './getKeywords.js';
|
|
22
|
-
import urlFor from './urlFor.js';
|
|
23
|
-
import { _ as _typeof } from './typeof-e9cea9e8.js';
|
|
24
|
-
import { b as FaMinus, c as FaPlus } from './index.esm-a8ff922c.js';
|
|
25
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
26
|
-
import './index-752d1dae.js';
|
|
27
|
-
import { DiscussionEmbed } from 'disqus-react';
|
|
28
|
-
import { _ as _Object$keys } from './keys-a0b0c7a4.js';
|
|
29
|
-
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
30
|
-
import { l as lib_3 } from './index-888f9253.js';
|
|
31
|
-
import getRelatedArticle from './getRelatedArticle.js';
|
|
32
|
-
import getQuery from './getQuery.js';
|
|
33
|
-
import getSeriesDetail from './getSeriesDetail.js';
|
|
34
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
35
|
-
import './
|
|
36
|
-
import './
|
|
37
|
-
import './web.dom.iterable-035980f3.js';
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
38
4
|
import './_library-528f1934.js';
|
|
39
|
-
import './
|
|
40
|
-
import './
|
|
41
|
-
import './
|
|
5
|
+
import './_iter-detect-5d49a330.js';
|
|
6
|
+
import { _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
7
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
42
8
|
import './_object-pie-33c40e79.js';
|
|
9
|
+
import { _ as _extends, a as _Object$assign } from './extends-eb69e8ac.js';
|
|
10
|
+
import './_object-sap-964b6feb.js';
|
|
11
|
+
import './inherits-0d8cda6e.js';
|
|
12
|
+
import './define-property-8af5f002.js';
|
|
13
|
+
import './web.dom.iterable-4439f05a.js';
|
|
14
|
+
import { _ as _typeof } from './typeof-af9c50d8.js';
|
|
15
|
+
import './_is-array-58e95429.js';
|
|
16
|
+
import React, { useState, useRef, useEffect, forwardRef } from 'react';
|
|
17
|
+
import { l as lib_3 } from './index-acfb8079.js';
|
|
43
18
|
import 'prop-types';
|
|
44
|
-
import './index-3f5c03b2.js';
|
|
45
|
-
import 'react-bootstrap';
|
|
46
|
-
import './index-c7e2ac95.js';
|
|
47
|
-
import './util-3ab476bf.js';
|
|
48
|
-
import './Beam.js';
|
|
49
|
-
import './Segment.js';
|
|
50
|
-
import './brightcove-react-player-loader.es-b43c695a.js';
|
|
51
|
-
import './GroupDeck.js';
|
|
52
|
-
import './smoothscroll-fa4e3f8c.js';
|
|
53
|
-
import './_is-array-674f71ec.js';
|
|
54
|
-
import './_object-to-array-8f409e54.js';
|
|
55
|
-
import 'react-bootstrap/Pagination';
|
|
56
|
-
import './entities-932b50cf.js';
|
|
57
19
|
import 'react-bootstrap/Row';
|
|
58
20
|
import 'react-bootstrap/Col';
|
|
59
|
-
import './
|
|
60
|
-
import '
|
|
61
|
-
import './define-property-ec6d528d.js';
|
|
62
|
-
import './index.esm-3fdda599.js';
|
|
63
|
-
import './iconBase-602d52fe.js';
|
|
64
|
-
import 'react-bootstrap/Figure';
|
|
65
|
-
import 'react-share';
|
|
66
|
-
import './debounce-9207d8ee.js';
|
|
21
|
+
import { m as moment } from './moment-12415288.js';
|
|
22
|
+
import { useRouter } from 'next/router';
|
|
67
23
|
import './isSymbol-1981418f.js';
|
|
24
|
+
import './debounce-9207d8ee.js';
|
|
68
25
|
import './toNumber-2f7a84cd.js';
|
|
26
|
+
import { I as InfiniteScroll } from './index.es-7dda2f0a.js';
|
|
69
27
|
import 'react-dom';
|
|
28
|
+
import { V as VisibilitySensor } from './visibility-sensor-082c757b.js';
|
|
29
|
+
import './index-51a80699.js';
|
|
30
|
+
import './index-c5fd0af5.js';
|
|
31
|
+
import { m as main_39 } from './main-aef58dbc.js';
|
|
32
|
+
import './entities-7cc3bf45.js';
|
|
33
|
+
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
34
|
+
import { _ as _JSON$stringify } from './stringify-4330ccdc.js';
|
|
35
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-502f13b4.js';
|
|
36
|
+
import './_set-species-3f8319f5.js';
|
|
37
|
+
import './Segment.js';
|
|
38
|
+
import './Beam.js';
|
|
39
|
+
import DFPAdSlot from './AdSlot.js';
|
|
40
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
41
|
+
import './index-c7e2ac95.js';
|
|
42
|
+
import './smoothscroll-0cd4c7a6.js';
|
|
43
|
+
import './GroupDeck.js';
|
|
44
|
+
import 'react-bootstrap';
|
|
45
|
+
import './iconBase-602d52fe.js';
|
|
46
|
+
import './index.esm-3fdda599.js';
|
|
47
|
+
import { r as renderAuthor, g as getSerializers } from './index-236123b3.js';
|
|
48
|
+
import './util-7700fc59.js';
|
|
49
|
+
import './brightcove-react-player-loader.es-e1c6b0f2.js';
|
|
50
|
+
import Head from 'next/head';
|
|
51
|
+
import 'react-share';
|
|
52
|
+
import SocialShare from './SocialShare.js';
|
|
53
|
+
import './_object-to-array-7e804fce.js';
|
|
54
|
+
import 'react-bootstrap/Pagination';
|
|
55
|
+
import Button from 'react-bootstrap/Button';
|
|
56
|
+
import 'react-bootstrap/Figure';
|
|
57
|
+
import Form from 'react-bootstrap/Form';
|
|
58
|
+
import FormControl from 'react-bootstrap/FormControl';
|
|
59
|
+
import { _ as _Object$keys } from './keys-8eda7a5c.js';
|
|
60
|
+
import 'react-bootstrap/Dropdown';
|
|
61
|
+
import { b as FaMinus, c as FaPlus } from './index.esm-a8ff922c.js';
|
|
62
|
+
import getSeriesDetail from './getSeriesDetail.js';
|
|
70
63
|
import './index-db3bb315.js';
|
|
64
|
+
import getRelatedArticle from './getRelatedArticle.js';
|
|
65
|
+
import getQuery from './getQuery.js';
|
|
66
|
+
import { S as SeriesSlider } from './SeriesSlider-19a24623.js';
|
|
67
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-f22b76f5.js';
|
|
68
|
+
import getKeywords from './getKeywords.js';
|
|
69
|
+
import urlFor from './urlFor.js';
|
|
70
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
71
|
+
import { DiscussionEmbed } from 'disqus-react';
|
|
71
72
|
|
|
72
73
|
var getArticleSummary = function getArticleSummary(article) {
|
|
73
74
|
if (article.summary && article.summary.length > 0) {
|
|
@@ -153,9 +154,9 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
153
154
|
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
154
155
|
thumbnailUrl && React.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
155
156
|
!thumbnailUrl && React.createElement('p', {
|
|
156
|
-
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' :
|
|
157
|
+
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_39 ? 'left' : 'right', marginTop: '.25rem' },
|
|
157
158
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
158
|
-
|
|
159
|
+
main_39 && !thumbnailUrl && React.createElement(
|
|
159
160
|
'style',
|
|
160
161
|
{ jsx: 'true' },
|
|
161
162
|
'\n a.doc-group {\n display: block !important;\n padding: 0 !important;\n }\n '
|
|
@@ -334,7 +335,7 @@ var ISI = function ISI(props) {
|
|
|
334
335
|
);
|
|
335
336
|
};
|
|
336
337
|
|
|
337
|
-
var css = ".RelatedArticles-module_mediaContainer__10h9k {\
|
|
338
|
+
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";
|
|
338
339
|
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" };
|
|
339
340
|
styleInject(css);
|
|
340
341
|
|
|
@@ -386,7 +387,7 @@ var RelatedArticle = function RelatedArticle(_ref) {
|
|
|
386
387
|
);
|
|
387
388
|
};
|
|
388
389
|
|
|
389
|
-
var Article = function
|
|
390
|
+
var Article = forwardRef(function (props, ref) {
|
|
390
391
|
var onVote = function () {
|
|
391
392
|
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(nodeKey, selectedChoice) {
|
|
392
393
|
var response, result;
|
|
@@ -487,10 +488,13 @@ var Article = function Article(props) {
|
|
|
487
488
|
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag,
|
|
488
489
|
_props$authorImgHeigh = props.authorImgHeight,
|
|
489
490
|
authorImgHeight = _props$authorImgHeigh === undefined ? 270 : _props$authorImgHeigh,
|
|
491
|
+
active = props.active,
|
|
492
|
+
containerHeight = props.containerHeight,
|
|
490
493
|
_props$refreshFlag = props.refreshFlag,
|
|
491
494
|
refreshFlag = _props$refreshFlag === undefined ? false : _props$refreshFlag,
|
|
492
495
|
disqusConfig = props.disqusConfig;
|
|
493
496
|
|
|
497
|
+
|
|
494
498
|
var targeting = getTargeting(props);
|
|
495
499
|
var onChangeArticle = props.onChangeArticle;
|
|
496
500
|
|
|
@@ -542,9 +546,9 @@ var Article = function Article(props) {
|
|
|
542
546
|
setArticleBody = _useState10[1];
|
|
543
547
|
|
|
544
548
|
var _useState11 = useState(true),
|
|
545
|
-
_useState12 = _slicedToArray(_useState11, 2)
|
|
546
|
-
_useState12[0]
|
|
547
|
-
|
|
549
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
550
|
+
previewAd = _useState12[0],
|
|
551
|
+
setPreviewAd = _useState12[1];
|
|
548
552
|
|
|
549
553
|
useEffect(function () {
|
|
550
554
|
var path = window && window.location && window.location.search;
|
|
@@ -913,8 +917,8 @@ var Article = function Article(props) {
|
|
|
913
917
|
shareSubject = shareOptions.shareSubject,
|
|
914
918
|
twitterSiteName = shareOptions.twitterSiteName,
|
|
915
919
|
shareImageDefault = shareOptions.shareImageDefault,
|
|
916
|
-
shareBaseUrl = shareOptions.shareBaseUrl
|
|
917
|
-
shareOptions.shareSiteTitle;
|
|
920
|
+
shareBaseUrl = shareOptions.shareBaseUrl,
|
|
921
|
+
shareSiteTitle = shareOptions.shareSiteTitle;
|
|
918
922
|
|
|
919
923
|
var shareUrl = shareBaseUrl + props.article.url.current;
|
|
920
924
|
var shareTitle = article.title;
|
|
@@ -948,29 +952,31 @@ var Article = function Article(props) {
|
|
|
948
952
|
return episode;
|
|
949
953
|
};
|
|
950
954
|
|
|
951
|
-
|
|
955
|
+
// pixels from bottom of window to change trigger visibility change
|
|
956
|
+
var triggerOffset = 10;
|
|
952
957
|
var isVideoSeries = checkIfVideoSeries(article);
|
|
958
|
+
var episodeNumber = fetchCurrentEpisode(props.sliderData, props.article);
|
|
953
959
|
var isMediaSeries = article.documentGroup && article.documentGroup.isSeries ? true : false;
|
|
954
960
|
var seriesInfo = checkIfMediaSeriesHasVideo(article);
|
|
955
961
|
return React.createElement(
|
|
956
962
|
React.Fragment,
|
|
957
963
|
null,
|
|
958
964
|
React.createElement(
|
|
959
|
-
|
|
965
|
+
VisibilitySensor,
|
|
960
966
|
{
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
967
|
+
partialVisibility: true,
|
|
968
|
+
offset: { bottom: triggerOffset, top: containerHeight - triggerOffset },
|
|
969
|
+
onChange: function onChange(isVisible) {
|
|
970
|
+
if (isVisible && queueData && queueData.length > 1) {
|
|
971
|
+
onChangeArticle(url, meta);
|
|
972
|
+
setVisibleFlag(function () {
|
|
973
|
+
return true;
|
|
974
|
+
});
|
|
969
975
|
}
|
|
970
976
|
} },
|
|
971
977
|
React.createElement(
|
|
972
978
|
'div',
|
|
973
|
-
{ id: 'article__block' },
|
|
979
|
+
{ id: 'article__block', ref: ref },
|
|
974
980
|
React.createElement(
|
|
975
981
|
'div',
|
|
976
982
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
@@ -1122,7 +1128,7 @@ var Article = function Article(props) {
|
|
|
1122
1128
|
React.createElement(
|
|
1123
1129
|
'div',
|
|
1124
1130
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
1125
|
-
|
|
1131
|
+
main_39 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1126
1132
|
if (index === 0) {
|
|
1127
1133
|
return React.createElement(
|
|
1128
1134
|
'div',
|
|
@@ -1190,17 +1196,17 @@ var Article = function Article(props) {
|
|
|
1190
1196
|
)
|
|
1191
1197
|
),
|
|
1192
1198
|
renderIsiContent(props.article)
|
|
1193
|
-
),
|
|
1194
|
-
showIsi && Array.isArray(isi) && isi.length > 0 && React.createElement(
|
|
1195
|
-
ISI,
|
|
1196
|
-
null,
|
|
1197
|
-
React.createElement(BlockContent, {
|
|
1198
|
-
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
1199
|
-
blocks: isi
|
|
1200
|
-
})
|
|
1201
1199
|
)
|
|
1202
1200
|
),
|
|
1203
|
-
|
|
1201
|
+
showIsi && Array.isArray(isi) && isi.length > 0 && React.createElement(
|
|
1202
|
+
ISI,
|
|
1203
|
+
null,
|
|
1204
|
+
React.createElement(BlockContent, {
|
|
1205
|
+
serializers: getSerializers(client, pageview, videoAccountIDs, onVote, true, drupalLeadSettings, currentPage, false, false, null, props.article.Ads, targeting),
|
|
1206
|
+
blocks: isi
|
|
1207
|
+
})
|
|
1208
|
+
),
|
|
1209
|
+
main_39 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1204
1210
|
if (index > 0) {
|
|
1205
1211
|
return React.createElement(
|
|
1206
1212
|
'div',
|
|
@@ -1236,7 +1242,7 @@ var Article = function Article(props) {
|
|
|
1236
1242
|
} else {
|
|
1237
1243
|
return detail();
|
|
1238
1244
|
}
|
|
1239
|
-
};
|
|
1245
|
+
});
|
|
1240
1246
|
|
|
1241
1247
|
var _this = undefined;
|
|
1242
1248
|
|
|
@@ -1245,15 +1251,34 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1245
1251
|
prevUrl = _props$prevUrl === undefined ? '/' : _props$prevUrl,
|
|
1246
1252
|
Ads = props.Ads,
|
|
1247
1253
|
_props$maxListLength = props.maxListLength,
|
|
1248
|
-
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength
|
|
1249
|
-
props.sponsoredTaxonomies
|
|
1250
|
-
|
|
1254
|
+
maxListLength = _props$maxListLength === undefined ? 10 : _props$maxListLength,
|
|
1255
|
+
_props$sponsoredTaxon = props.sponsoredTaxonomies,
|
|
1256
|
+
_props$cpModification = props.cpModificationRequired,
|
|
1251
1257
|
cpModificationRequired = _props$cpModification === undefined ? false : _props$cpModification,
|
|
1252
1258
|
_props$authorPrefix = props.authorPrefix,
|
|
1253
1259
|
authorPrefix = _props$authorPrefix === undefined ? 'authors' : _props$authorPrefix,
|
|
1254
1260
|
showRelatedArticles = props.showRelatedArticles,
|
|
1255
1261
|
canonicalTag = props.canonicalTag;
|
|
1256
1262
|
|
|
1263
|
+
var _useState = useState(0),
|
|
1264
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1265
|
+
containerHeight = _useState2[0],
|
|
1266
|
+
setContainerHeight = _useState2[1];
|
|
1267
|
+
|
|
1268
|
+
useEffect(function () {
|
|
1269
|
+
setContainerHeight(function () {
|
|
1270
|
+
return window.innerHeight;
|
|
1271
|
+
});
|
|
1272
|
+
var handleResize = function handleResize() {
|
|
1273
|
+
return setContainerHeight(function () {
|
|
1274
|
+
return window.innerHeight;
|
|
1275
|
+
});
|
|
1276
|
+
};
|
|
1277
|
+
window.addEventListener('resize', handleResize);
|
|
1278
|
+
return function () {
|
|
1279
|
+
return window.removeEventListener('resize', handleResize);
|
|
1280
|
+
};
|
|
1281
|
+
}, []);
|
|
1257
1282
|
|
|
1258
1283
|
var firstArticle = function firstArticle() {
|
|
1259
1284
|
var article = _Object$assign({}, props.article);
|
|
@@ -1262,24 +1287,27 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1262
1287
|
return article;
|
|
1263
1288
|
};
|
|
1264
1289
|
|
|
1265
|
-
var
|
|
1266
|
-
|
|
1267
|
-
queueData =
|
|
1268
|
-
setQueueData =
|
|
1290
|
+
var _useState3 = useState([firstArticle()]),
|
|
1291
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
1292
|
+
queueData = _useState4[0],
|
|
1293
|
+
setQueueData = _useState4[1];
|
|
1294
|
+
|
|
1295
|
+
var _useState5 = useState(queueData[0]._id),
|
|
1296
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
1297
|
+
active = _useState6[0],
|
|
1298
|
+
setActive = _useState6[1];
|
|
1269
1299
|
|
|
1270
1300
|
var refreshAD = function refreshAD(path) {
|
|
1271
1301
|
var activeArticle = queueData.find(function (item) {
|
|
1272
1302
|
return item.url.current === path;
|
|
1273
1303
|
});
|
|
1274
1304
|
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
1275
|
-
|
|
1276
|
-
if (!main_40) {
|
|
1305
|
+
if (!main_39) {
|
|
1277
1306
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1278
1307
|
if (window.googletag && googletag.pubadsReady) {
|
|
1279
1308
|
var slots = googletag.pubads().getSlots();
|
|
1280
1309
|
slots.forEach(function (slot) {
|
|
1281
1310
|
var pos = slot.getTargeting('pos');
|
|
1282
|
-
|
|
1283
1311
|
slot.clearTargeting();
|
|
1284
1312
|
_Object$keys(targeting).forEach(function (key) {
|
|
1285
1313
|
slot.setTargeting(key, targeting[key]);
|
|
@@ -1291,7 +1319,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1291
1319
|
});
|
|
1292
1320
|
}
|
|
1293
1321
|
//Refresh leaderboard ad on mobile
|
|
1294
|
-
if (
|
|
1322
|
+
if (main_39) {
|
|
1295
1323
|
var leaderboardSlotId = '';
|
|
1296
1324
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1297
1325
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -1314,27 +1342,6 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1314
1342
|
}
|
|
1315
1343
|
};
|
|
1316
1344
|
|
|
1317
|
-
var preVscroll = 0;
|
|
1318
|
-
var isScrollDown = true;
|
|
1319
|
-
|
|
1320
|
-
var scrollDirectionDetect = function scrollDirectionDetect(e) {
|
|
1321
|
-
var window = e.currentTarget;
|
|
1322
|
-
|
|
1323
|
-
if (preVscroll > window.scrollY) {
|
|
1324
|
-
isScrollDown = false;
|
|
1325
|
-
} else if (preVscroll < window.scrollY) {
|
|
1326
|
-
isScrollDown = true;
|
|
1327
|
-
}
|
|
1328
|
-
preVscroll = window.scrollY;
|
|
1329
|
-
};
|
|
1330
|
-
|
|
1331
|
-
useEffect(function () {
|
|
1332
|
-
window.addEventListener('scroll', scrollDirectionDetect);
|
|
1333
|
-
return function () {
|
|
1334
|
-
return window.removeEventListener('scroll', scrollDirectionDetect);
|
|
1335
|
-
};
|
|
1336
|
-
});
|
|
1337
|
-
|
|
1338
1345
|
var hasVerticalScroll = function hasVerticalScroll() {
|
|
1339
1346
|
if (window.innerHeight) {
|
|
1340
1347
|
return document.body.offsetHeight > window.innerHeight;
|
|
@@ -1441,55 +1448,45 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1441
1448
|
}
|
|
1442
1449
|
};
|
|
1443
1450
|
|
|
1444
|
-
var onChangeArticle = function onChangeArticle(path,
|
|
1445
|
-
var currentPath = window && window.location && window.location.pathname ? window.location.pathname.replace('/view/', '') : '';
|
|
1451
|
+
var onChangeArticle = function onChangeArticle(path, meta) {
|
|
1446
1452
|
var newPath = '/view/' + path;
|
|
1447
|
-
|
|
1453
|
+
var activeArticle = queueData.find(function (item) {
|
|
1454
|
+
return item.url.current === path;
|
|
1455
|
+
});
|
|
1456
|
+
setActive(function () {
|
|
1457
|
+
return activeArticle._id;
|
|
1458
|
+
});
|
|
1448
1459
|
// Change URL and do other changes
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
var activeArticle = queueData.find(function (item) {
|
|
1454
|
-
return item.url.current === path;
|
|
1455
|
-
});
|
|
1456
|
-
props.setCustomDimensions(activeArticle, '200', prevUrl);
|
|
1457
|
-
}
|
|
1458
|
-
if (props.pageview) props.pageview(newPath);
|
|
1459
|
-
refreshAD(path);
|
|
1460
|
-
};
|
|
1461
|
-
|
|
1462
|
-
if (currentPath !== path) {
|
|
1463
|
-
if (isScrollDown) {
|
|
1464
|
-
if (visibility === 'top') {
|
|
1465
|
-
doChanges();
|
|
1466
|
-
}
|
|
1467
|
-
} else {
|
|
1468
|
-
if (visibility === 'bottom') {
|
|
1469
|
-
doChanges();
|
|
1470
|
-
}
|
|
1471
|
-
}
|
|
1472
|
-
if (visibility === 'small-top') {
|
|
1473
|
-
doChanges();
|
|
1474
|
-
}
|
|
1460
|
+
window.history.pushState({ page: path }, meta.shareTitle, newPath);
|
|
1461
|
+
changeMeta(meta);
|
|
1462
|
+
if (props.setCustomDimensions) {
|
|
1463
|
+
props.setCustomDimensions(activeArticle, '200', prevUrl);
|
|
1475
1464
|
}
|
|
1465
|
+
if (props.pageview) props.pageview(newPath);
|
|
1466
|
+
refreshAD(path);
|
|
1476
1467
|
};
|
|
1477
1468
|
|
|
1478
1469
|
return React.createElement(
|
|
1479
1470
|
InfiniteScroll,
|
|
1480
|
-
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '
|
|
1471
|
+
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '40%', hasMore: true, style: { overflow: 'hidden' } },
|
|
1481
1472
|
queueData.map(function (article, index) {
|
|
1482
|
-
return React.createElement(
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1473
|
+
return React.createElement(
|
|
1474
|
+
React.Fragment,
|
|
1475
|
+
null,
|
|
1476
|
+
React.createElement(Article, _extends({
|
|
1477
|
+
key: index
|
|
1478
|
+
}, props, {
|
|
1479
|
+
containerHeight: containerHeight,
|
|
1480
|
+
onChangeArticle: onChangeArticle,
|
|
1481
|
+
authorPrfix: authorPrefix,
|
|
1482
|
+
article: article,
|
|
1483
|
+
cpModificationRequired: cpModificationRequired,
|
|
1484
|
+
active: active === article._id
|
|
1485
|
+
// Passing queueData to check for single article
|
|
1486
|
+
, queueData: queueData,
|
|
1487
|
+
showRelatedArticles: showRelatedArticles
|
|
1488
|
+
}))
|
|
1489
|
+
);
|
|
1493
1490
|
})
|
|
1494
1491
|
);
|
|
1495
1492
|
};
|
|
@@ -1501,9 +1498,9 @@ var View = function View(props) {
|
|
|
1501
1498
|
var shareOptions = props.shareOptions,
|
|
1502
1499
|
article = props.article,
|
|
1503
1500
|
_props$sponsoredFlag = props.sponsoredFlag,
|
|
1504
|
-
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag
|
|
1505
|
-
props.sponsoredTaxonomies
|
|
1506
|
-
|
|
1501
|
+
sponsoredFlag = _props$sponsoredFlag === undefined ? false : _props$sponsoredFlag,
|
|
1502
|
+
_props$sponsoredTaxon = props.sponsoredTaxonomies,
|
|
1503
|
+
Ads = props.Ads,
|
|
1507
1504
|
setCustomDimensions = props.setCustomDimensions,
|
|
1508
1505
|
statusCode = props.statusCode,
|
|
1509
1506
|
prevUrl = props.prevUrl,
|
|
@@ -1516,9 +1513,9 @@ var View = function View(props) {
|
|
|
1516
1513
|
infiniteScrollFlag = _props$infiniteScroll === undefined ? true : _props$infiniteScroll;
|
|
1517
1514
|
var _props$article = props.article,
|
|
1518
1515
|
_props$article$passwo = _props$article.passwordLock,
|
|
1519
|
-
passwordLock = _props$article$passwo === undefined ? false : _props$article$passwo
|
|
1520
|
-
_props$article.description
|
|
1521
|
-
|
|
1516
|
+
passwordLock = _props$article$passwo === undefined ? false : _props$article$passwo,
|
|
1517
|
+
description = _props$article.description,
|
|
1518
|
+
title = _props$article.title,
|
|
1522
1519
|
seriesShareOptions = _props$article.seriesShareOptions;
|
|
1523
1520
|
|
|
1524
1521
|
var _useState = useState(0),
|
|
@@ -1575,6 +1572,7 @@ var View = function View(props) {
|
|
|
1575
1572
|
var needInfiniteScroll = ['Articles', 'Videos', 'Podcasts'].includes(article.category.name) && article.taxonomyMapping && article.passwordLock !== true && !isVideoSeries && !isArticleSeries && !article.ExcludeFromInfiniteScroll && !sponsoredFlag && infiniteScrollFlag && !article.showIsi && (!article.documentGroup || !article.documentGroup.isSeries);
|
|
1576
1573
|
|
|
1577
1574
|
if (['Articles', 'Videos', 'Podcasts'].includes(article.category.name)) {
|
|
1575
|
+
description = null;
|
|
1578
1576
|
title = null;
|
|
1579
1577
|
}
|
|
1580
1578
|
|
package/dist/esm/YahooHero.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
3
|
-
import { i as imageUrlBuilder } from './index-3f5c03b2.js';
|
|
4
|
-
import { c as clean_html_1 } from './entities-932b50cf.js';
|
|
5
|
-
import { A as AuthorComponent } from './AuthorComponent-c7ff069f.js';
|
|
6
|
-
import { L as LazyLoad } from './index-752d1dae.js';
|
|
7
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
|
-
import './
|
|
9
|
-
import './
|
|
10
|
-
import './
|
|
11
|
-
import './
|
|
12
|
-
import '
|
|
13
|
-
import 'react-dom';
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
4
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
5
|
+
import './web.dom.iterable-4439f05a.js';
|
|
6
|
+
import React from 'react';
|
|
14
7
|
import 'prop-types';
|
|
8
|
+
import { m as moment } from './moment-12415288.js';
|
|
9
|
+
import 'react-dom';
|
|
10
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
11
|
+
import { L as LazyLoad } from './index-c5fd0af5.js';
|
|
12
|
+
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
13
|
+
import './slicedToArray-641f241f.js';
|
|
14
|
+
import { A as AuthorComponent } from './AuthorComponent-8ffd4679.js';
|
|
15
15
|
|
|
16
16
|
var YahooHero = function YahooHero(props) {
|
|
17
17
|
var removeTimeStamp = props.removeTimeStamp;
|
|
@@ -75,10 +75,10 @@ var YahooHero = function YahooHero(props) {
|
|
|
75
75
|
{ className: 'yh-sub-article-container' },
|
|
76
76
|
subArticles.map(function (article, index) {
|
|
77
77
|
var articleThumbnail = '';
|
|
78
|
-
article.title;
|
|
78
|
+
var articleAltText = article.title;
|
|
79
79
|
if (article.thumbnail && article.thumbnail.asset) {
|
|
80
80
|
articleThumbnail = urlFor(article.thumbnail.asset).width(250).url();
|
|
81
|
-
article.thumbnail.asset.originalFileName;
|
|
81
|
+
articleAltText = article.thumbnail.asset.originalFileName;
|
|
82
82
|
} else if (props.thumbnail) {
|
|
83
83
|
articleThumbnail = props.thumbnail;
|
|
84
84
|
}
|