@mjhls/mjh-framework 1.0.819 → 1.0.821-url-pagination-v1
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 -170
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +4 -3
- package/dist/cjs/AD300x250x600.js +4 -3
- package/dist/cjs/AD728x90.js +5 -4
- package/dist/cjs/ADFloatingFooter.js +3 -2
- package/dist/cjs/ADGutter.js +3 -2
- package/dist/cjs/ADSkyscraper.js +3 -2
- package/dist/cjs/ADSponsoredResources.js +3 -2
- package/dist/cjs/ADWebcast.js +3 -2
- package/dist/cjs/ADWelcome.js +3 -2
- package/dist/cjs/AdSlot.js +3 -2
- package/dist/cjs/AdSlotsProvider.js +29 -6
- package/dist/cjs/AlgoliaSearch.js +14091 -17
- package/dist/cjs/ArticleCarousel.js +2 -1
- package/dist/cjs/ArticleProgramLandingPage.js +8 -6
- package/dist/cjs/ArticleSeriesLandingPage.js +7 -6
- package/dist/cjs/ArticleSeriesListing.js +6 -4
- package/dist/cjs/Auth.js +41 -6
- package/dist/cjs/AuthWrapper.js +228 -189
- package/dist/cjs/CMEDeck.js +5 -4
- package/dist/cjs/Column3.js +5 -4
- package/dist/cjs/ConferenceArticleCard.js +21 -26
- package/dist/cjs/DeckContent.js +23 -28
- package/dist/cjs/DeckQueue.js +14 -20
- package/dist/cjs/{Dfp-82f75e49.js → Dfp-391fd124.js} +2 -1
- package/dist/cjs/EventsDeck.js +21 -21
- package/dist/cjs/ExternalResources.js +8 -6
- package/dist/cjs/Feature.js +7 -11
- package/dist/cjs/ForbesHero.js +13 -15
- package/dist/cjs/GridContent.js +37 -36
- package/dist/cjs/GridHero.js +11 -20
- package/dist/cjs/GroupDeck.js +4 -8
- package/dist/cjs/HamMagazine.js +15 -15
- package/dist/cjs/Hero.js +3 -14
- package/dist/cjs/HighlightenVideo.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +7 -5
- package/dist/cjs/HorizontalHero.js +6 -7
- package/dist/cjs/IssueContentDeck.js +11 -28
- package/dist/cjs/IssueDeck.js +11 -13
- package/dist/cjs/IssueLanding.js +39 -37
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +3 -2
- package/dist/cjs/MasterDeck.js +16 -15
- package/dist/cjs/MediaSeriesLanding.js +441 -574
- package/dist/cjs/NavMagazine.js +14 -14
- package/dist/cjs/NavNative.js +12 -12
- package/dist/cjs/OncliveHero.js +6 -7
- package/dist/cjs/OncliveLargeHero.js +22 -23
- package/dist/cjs/PartnerDetailListing.js +14 -17
- package/dist/cjs/PubSection.js +8 -6
- package/dist/cjs/PublicationDeck.js +10 -12
- package/dist/cjs/PublicationLanding.js +26 -29
- package/dist/cjs/QueueDeckExpanded.js +81 -79
- package/dist/cjs/RecentNews.js +1 -4
- package/dist/cjs/RelatedContent.js +36 -39
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +6 -4
- package/dist/cjs/{SeriesSlider-b79e7df9.js → SeriesSlider-b94509d5.js} +12 -17
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-560a666e.js → SocialSearchComponent-42b9d251.js} +3 -3
- package/dist/cjs/TaxonomyCard.js +11 -14
- package/dist/cjs/TaxonomyDescription.js +7 -5
- package/dist/cjs/TemplateNormal.js +4 -3
- package/dist/cjs/ThumbnailCard.js +6 -10
- package/dist/cjs/Ustream.js +2 -2
- package/dist/cjs/VerticalHero.js +4 -8
- package/dist/cjs/VideoProgramLandingPage.js +8 -6
- package/dist/cjs/VideoSeriesCard.js +10 -9
- package/dist/cjs/VideoSeriesLandingPage.js +8 -6
- package/dist/cjs/VideoSeriesListing.js +7 -5
- package/dist/cjs/View.js +24 -23
- package/dist/cjs/YahooHero.js +12 -14
- package/dist/cjs/YoutubeGroup.js +14 -18
- package/dist/cjs/{brightcove-react-player-loader.es-4ba0d3d5.js → brightcove-react-player-loader.es-5c98aec7.js} +4 -3
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/getRelatedArticle.js +62 -126
- package/dist/cjs/getSerializers.js +7 -5
- package/dist/cjs/{getTargeting-ea2ea5e7.js → getTargeting-15ad167c.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-e08f00ce.js → index-2cf30c83.js} +2 -467
- package/dist/cjs/{index-5be2866f.js → index-6367b7bf.js} +16 -17
- package/dist/cjs/index-e2e62963.js +89 -0
- package/dist/cjs/{index-35099a60.js → index-f671ac14.js} +59 -103
- package/dist/cjs/{index.es-13533f24.js → index.es-f3e47207.js} +20 -4
- package/dist/cjs/index.js +18 -31
- package/dist/cjs/{main-11ec04d2.js → main-7b5e57b0.js} +32 -28
- package/dist/cjs/{moment-66a6a284.js → moment-ca3bd9fb.js} +10 -8
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/urlFor.js +34 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +4 -3
- package/dist/esm/AD300x250x600.js +4 -3
- package/dist/esm/AD728x90.js +5 -4
- package/dist/esm/ADFloatingFooter.js +3 -2
- package/dist/esm/ADGutter.js +3 -2
- package/dist/esm/ADSkyscraper.js +3 -2
- package/dist/esm/ADSponsoredResources.js +3 -2
- package/dist/esm/ADWebcast.js +3 -2
- package/dist/esm/ADWelcome.js +3 -2
- package/dist/esm/AdSlot.js +3 -2
- package/dist/esm/AdSlotsProvider.js +28 -6
- package/dist/esm/AlgoliaSearch.js +14093 -19
- package/dist/esm/ArticleCarousel.js +2 -1
- package/dist/esm/ArticleProgramLandingPage.js +8 -6
- package/dist/esm/ArticleSeriesLandingPage.js +7 -6
- package/dist/esm/ArticleSeriesListing.js +6 -4
- package/dist/esm/Auth.js +42 -7
- package/dist/esm/AuthWrapper.js +228 -189
- package/dist/esm/CMEDeck.js +5 -4
- package/dist/esm/Column3.js +5 -4
- package/dist/esm/ConferenceArticleCard.js +20 -25
- package/dist/esm/DeckContent.js +20 -25
- package/dist/esm/DeckQueue.js +11 -17
- package/dist/esm/{Dfp-cde02d85.js → Dfp-2f9796e1.js} +2 -1
- package/dist/esm/EventsDeck.js +21 -21
- package/dist/esm/ExternalResources.js +8 -6
- package/dist/esm/Feature.js +7 -11
- package/dist/esm/ForbesHero.js +7 -9
- package/dist/esm/GridContent.js +25 -24
- package/dist/esm/GridHero.js +5 -14
- package/dist/esm/GroupDeck.js +4 -8
- package/dist/esm/HamMagazine.js +15 -15
- package/dist/esm/Hero.js +3 -14
- package/dist/esm/HighlightenVideo.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +7 -5
- package/dist/esm/HorizontalHero.js +6 -7
- package/dist/esm/IssueContentDeck.js +11 -28
- package/dist/esm/IssueDeck.js +11 -13
- package/dist/esm/IssueLanding.js +39 -37
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +3 -2
- package/dist/esm/MasterDeck.js +16 -15
- package/dist/esm/MediaSeriesLanding.js +154 -287
- package/dist/esm/NavMagazine.js +14 -14
- package/dist/esm/NavNative.js +12 -12
- package/dist/esm/OncliveHero.js +6 -7
- package/dist/esm/OncliveLargeHero.js +9 -10
- package/dist/esm/PartnerDetailListing.js +14 -17
- package/dist/esm/PubSection.js +8 -6
- package/dist/esm/PublicationDeck.js +10 -12
- package/dist/esm/PublicationLanding.js +26 -29
- package/dist/esm/QueueDeckExpanded.js +39 -37
- package/dist/esm/RecentNews.js +1 -4
- package/dist/esm/RelatedContent.js +32 -35
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SeriesListingDeck.js +6 -4
- package/dist/esm/{SeriesSlider-1fa61a74.js → SeriesSlider-935e2b4e.js} +12 -17
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/{SocialSearchComponent-82ac7d6d.js → SocialSearchComponent-94f6554c.js} +3 -3
- package/dist/esm/TaxonomyCard.js +8 -11
- package/dist/esm/TaxonomyDescription.js +7 -5
- package/dist/esm/TemplateNormal.js +4 -3
- package/dist/esm/ThumbnailCard.js +3 -7
- package/dist/esm/Ustream.js +2 -2
- package/dist/esm/VerticalHero.js +4 -8
- package/dist/esm/VideoProgramLandingPage.js +8 -6
- package/dist/esm/VideoSeriesCard.js +6 -5
- package/dist/esm/VideoSeriesLandingPage.js +8 -6
- package/dist/esm/VideoSeriesListing.js +7 -5
- package/dist/esm/View.js +24 -23
- package/dist/esm/YahooHero.js +7 -9
- package/dist/esm/YoutubeGroup.js +14 -18
- package/dist/esm/{brightcove-react-player-loader.es-e1c6b0f2.js → brightcove-react-player-loader.es-4abff0b1.js} +4 -3
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/getRelatedArticle.js +62 -126
- package/dist/esm/getSerializers.js +7 -5
- package/dist/esm/{getTargeting-831bc794.js → getTargeting-82e86707.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-e887f3d1.js → index-7aec473d.js} +36 -80
- package/dist/esm/index-aaa2dae0.js +85 -0
- package/dist/esm/{index-d2f90501.js → index-c00b0bbb.js} +16 -17
- package/dist/esm/{index-acfb8079.js → index-f7fb1e25.js} +1 -466
- package/dist/esm/{index.es-7dda2f0a.js → index.es-c6222053.js} +20 -4
- package/dist/esm/index.js +18 -30
- package/dist/esm/{main-aef58dbc.js → main-747e7d25.js} +32 -28
- package/dist/esm/{moment-12415288.js → moment-b6f49411.js} +10 -8
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/urlFor.js +34 -2
- package/package.json +110 -110
- /package/dist/cjs/{ADInfeed-98f6bd26.js → ADInfeed-0158bee3.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-6055cb1b.js → ADlgInfeed-3583144f.js} +0 -0
- /package/dist/esm/{ADInfeed-ba59666b.js → ADInfeed-427022e9.js} +0 -0
- /package/dist/esm/{ADlgInfeed-995322a1.js → ADlgInfeed-28d3f944.js} +0 -0
|
@@ -9,7 +9,8 @@ import './extends-6f2fcc99.js';
|
|
|
9
9
|
import './define-property-8af5f002.js';
|
|
10
10
|
import './web.dom.iterable-4439f05a.js';
|
|
11
11
|
import React, { useState, useEffect } from 'react';
|
|
12
|
-
import './
|
|
12
|
+
import './events-6c3a7a63.js';
|
|
13
|
+
import './index-f7fb1e25.js';
|
|
13
14
|
import 'prop-types';
|
|
14
15
|
import Container from 'react-bootstrap/Container';
|
|
15
16
|
import 'react-bootstrap/Row';
|
|
@@ -18,7 +19,7 @@ import { useRouter } from 'next/router';
|
|
|
18
19
|
import './isSymbol-1981418f.js';
|
|
19
20
|
import './debounce-9207d8ee.js';
|
|
20
21
|
import './toNumber-2f7a84cd.js';
|
|
21
|
-
import './main-
|
|
22
|
+
import './main-747e7d25.js';
|
|
22
23
|
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
23
24
|
import './stringify-4330ccdc.js';
|
|
24
25
|
import './asyncToGenerator-fc1c2e29.js';
|
|
@@ -54,7 +55,7 @@ import './NavFooter-c29526b7.js';
|
|
|
54
55
|
import './index.esm-8ee5ff72.js';
|
|
55
56
|
import './SocialIcons.js';
|
|
56
57
|
import 'react-bootstrap/FormControl';
|
|
57
|
-
import './SocialSearchComponent-
|
|
58
|
+
import './SocialSearchComponent-94f6554c.js';
|
|
58
59
|
import MagazineNav from './NavMagazine.js';
|
|
59
60
|
import { NavNative } from './NavNative.js';
|
|
60
61
|
import './Search.js';
|
|
@@ -2,7 +2,8 @@ import './_commonjsHelpers-0c4b6f40.js';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import 'prop-types';
|
|
4
4
|
import 'react-dom';
|
|
5
|
-
import
|
|
5
|
+
import './index-51a80699.js';
|
|
6
|
+
import urlFor from './urlFor.js';
|
|
6
7
|
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
7
8
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
8
9
|
import Media from 'react-bootstrap/Media';
|
|
@@ -13,11 +14,6 @@ var ThumbnailCard = function ThumbnailCard(_ref) {
|
|
|
13
14
|
client = _ref.client,
|
|
14
15
|
defaultImage = _ref.defaultImage;
|
|
15
16
|
|
|
16
|
-
var builder = imageUrlBuilder(client);
|
|
17
|
-
|
|
18
|
-
var urlFor = function urlFor(source) {
|
|
19
|
-
return builder.image(source).auto('format');
|
|
20
|
-
};
|
|
21
17
|
|
|
22
18
|
return React.createElement(
|
|
23
19
|
'div',
|
|
@@ -29,7 +25,7 @@ var ThumbnailCard = function ThumbnailCard(_ref) {
|
|
|
29
25
|
React.createElement(
|
|
30
26
|
LazyLoad,
|
|
31
27
|
{ height: size },
|
|
32
|
-
React.createElement('img', { width: size, height: size, className: 'mr-3', src: item.thumbnail ? urlFor(item.thumbnail)
|
|
28
|
+
React.createElement('img', { width: size, height: size, className: 'mr-3', src: item.thumbnail ? urlFor({ client: client, source: item.thumbnail }) : defaultImage, alt: 'Generic placeholder' })
|
|
33
29
|
),
|
|
34
30
|
React.createElement(
|
|
35
31
|
Media.Body,
|
package/dist/esm/Ustream.js
CHANGED
|
@@ -6,7 +6,7 @@ import './_iter-detect-5d49a330.js';
|
|
|
6
6
|
import './core.get-iterator-method-e1de7503.js';
|
|
7
7
|
import './web.dom.iterable-4439f05a.js';
|
|
8
8
|
import React, { useState, useRef, useEffect } from 'react';
|
|
9
|
-
import { m as
|
|
9
|
+
import { m as main_40 } from './main-747e7d25.js';
|
|
10
10
|
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
11
11
|
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
12
12
|
import './iconBase-602d52fe.js';
|
|
@@ -119,7 +119,7 @@ var Ustream = function Ustream(_ref) {
|
|
|
119
119
|
}
|
|
120
120
|
}, [isMuted]);
|
|
121
121
|
//return nothing if mobile
|
|
122
|
-
if (
|
|
122
|
+
if (main_40) {
|
|
123
123
|
return null;
|
|
124
124
|
}
|
|
125
125
|
return React.createElement(
|
package/dist/esm/VerticalHero.js
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import './moment-
|
|
4
|
-
import
|
|
3
|
+
import './moment-b6f49411.js';
|
|
4
|
+
import './index-51a80699.js';
|
|
5
|
+
import urlFor from './urlFor.js';
|
|
5
6
|
|
|
6
7
|
var VerticalHero = function VerticalHero(props) {
|
|
7
8
|
var client = props.client;
|
|
8
|
-
|
|
9
|
-
var builder = imageUrlBuilder(client);
|
|
10
|
-
function urlFor(source) {
|
|
11
|
-
return builder.image(source).auto('format');
|
|
12
|
-
}
|
|
13
9
|
var _props$heroTitle = props.heroTitle,
|
|
14
10
|
heroTitle = _props$heroTitle === undefined ? '' : _props$heroTitle;
|
|
15
11
|
|
|
@@ -33,7 +29,7 @@ var VerticalHero = function VerticalHero(props) {
|
|
|
33
29
|
var articleThumbnail = '';
|
|
34
30
|
var articleAltText = article.title;
|
|
35
31
|
if (article.thumbnail && article.thumbnail.asset) {
|
|
36
|
-
articleThumbnail = urlFor(article.thumbnail.asset
|
|
32
|
+
articleThumbnail = urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 500 });
|
|
37
33
|
articleAltText = article.thumbnail.asset.originalFileName;
|
|
38
34
|
} else if (props.thumbnail) {
|
|
39
35
|
articleThumbnail = props.thumbnail;
|
|
@@ -14,22 +14,24 @@ import './web.dom.iterable-4439f05a.js';
|
|
|
14
14
|
import './typeof-af9c50d8.js';
|
|
15
15
|
import './_is-array-58e95429.js';
|
|
16
16
|
import React from 'react';
|
|
17
|
-
import './
|
|
17
|
+
import './events-6c3a7a63.js';
|
|
18
|
+
import './index-f7fb1e25.js';
|
|
18
19
|
import 'prop-types';
|
|
19
20
|
import 'react-bootstrap/Container';
|
|
20
21
|
import 'react-bootstrap/Row';
|
|
21
22
|
import Col from 'react-bootstrap/Col';
|
|
22
|
-
import './moment-
|
|
23
|
+
import './moment-b6f49411.js';
|
|
23
24
|
import 'next/router';
|
|
24
25
|
import './isSymbol-1981418f.js';
|
|
25
26
|
import './debounce-9207d8ee.js';
|
|
26
27
|
import './toNumber-2f7a84cd.js';
|
|
27
|
-
import './index.es-
|
|
28
|
+
import './index.es-c6222053.js';
|
|
28
29
|
import 'react-dom';
|
|
29
30
|
import './visibility-sensor-f40c2564.js';
|
|
30
31
|
import './index-51a80699.js';
|
|
32
|
+
import './urlFor.js';
|
|
31
33
|
import './index-6c12bdd5.js';
|
|
32
|
-
import './main-
|
|
34
|
+
import './main-747e7d25.js';
|
|
33
35
|
import './entities-7cc3bf45.js';
|
|
34
36
|
import './slicedToArray-641f241f.js';
|
|
35
37
|
import './stringify-4330ccdc.js';
|
|
@@ -46,9 +48,9 @@ import 'react-bootstrap';
|
|
|
46
48
|
import './iconBase-602d52fe.js';
|
|
47
49
|
import './index.esm-3fdda599.js';
|
|
48
50
|
import VideoSeriesListing from './VideoSeriesListing.js';
|
|
49
|
-
import { g as getSerializers } from './index-
|
|
51
|
+
import { g as getSerializers } from './index-7aec473d.js';
|
|
50
52
|
import './util-7700fc59.js';
|
|
51
|
-
import './brightcove-react-player-loader.es-
|
|
53
|
+
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
52
54
|
import 'next/head';
|
|
53
55
|
import 'react-share';
|
|
54
56
|
import './SocialShare.js';
|
|
@@ -8,13 +8,14 @@ import { _ as _typeof } from './typeof-af9c50d8.js';
|
|
|
8
8
|
import './_is-array-58e95429.js';
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import 'prop-types';
|
|
11
|
-
import { m as moment } from './moment-
|
|
11
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
12
12
|
import 'react-dom';
|
|
13
|
-
import
|
|
13
|
+
import './index-51a80699.js';
|
|
14
|
+
import urlFor from './urlFor.js';
|
|
14
15
|
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
15
16
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
16
17
|
|
|
17
|
-
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";
|
|
18
|
+
var css = ".VideoSeriesCard-module_article__Hlc3e {\r\n width: 100%;\r\n margin: 0 0 1rem 0;\r\n}\r\n.VideoSeriesCard-module_article__Hlc3e a {\r\n display: flex;\r\n width: 100%;\r\n color: #000000;\r\n}\r\n.VideoSeriesCard-module_thumb__3hGyJ {\r\n width: 25%;\r\n}\r\n.VideoSeriesCard-module_thumb__3hGyJ img {\r\n width: 100%;\r\n height: auto;\r\n}\r\n.VideoSeriesCard-module_info__2_i1N {\r\n width: 75%;\r\n font-size: 1rem;\r\n}\r\n.VideoSeriesCard-module_info__2_i1N h2 {\r\n font-weight: bold;\r\n font-size: 1.25rem;\r\n margin: 0;\r\n}\r\n.VideoSeriesCard-module_published__1fI0q {\r\n color: #6d6d6d;\r\n margin: 0;\r\n}\r\n.VideoSeriesCard-module_summary__3hWJT {\r\n margin: 0.5rem 0 0 0;\r\n}\r\n.VideoSeriesCard-module_author__aU35o {\r\n margin: 0;\r\n}\r\n.VideoSeriesCard-module_author__aU35o span {\r\n color: #6d6d6d;\r\n}\r\n@media only screen and (max-width: 568px) {\r\n .VideoSeriesCard-module_article__Hlc3e {\r\n margin: 1rem 0;\r\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\r\n }\r\n .VideoSeriesCard-module_article__Hlc3e a {\r\n flex-direction: column;\r\n align-items: center;\r\n }\r\n .VideoSeriesCard-module_thumb__3hGyJ {\r\n overflow: hidden;\r\n width: 100%;\r\n margin-bottom: 1rem;\r\n }\r\n .VideoSeriesCard-module_thumb__3hGyJ img{\r\n border-radius: 10px 10px 0 0; \r\n }\r\n .VideoSeriesCard-module_thumb__3hGyJ figure {\r\n margin: 0;\r\n }\r\n .VideoSeriesCard-module_info__2_i1N {\r\n width: 90%;\r\n padding: 1rem !important;\r\n }\r\n .VideoSeriesCard-module_info__2_i1N h2 {\r\n font-size: 1rem;\r\n }\r\n}\r\n";
|
|
18
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" };
|
|
19
20
|
styleInject(css);
|
|
20
21
|
|
|
@@ -26,7 +27,7 @@ var VideoSeriesCard = function VideoSeriesCard(props) {
|
|
|
26
27
|
index = props.index;
|
|
27
28
|
|
|
28
29
|
var episode = parseInt(index) + 1;
|
|
29
|
-
|
|
30
|
+
|
|
30
31
|
return React.createElement(
|
|
31
32
|
'div',
|
|
32
33
|
{ className: styles.article },
|
|
@@ -43,7 +44,7 @@ var VideoSeriesCard = function VideoSeriesCard(props) {
|
|
|
43
44
|
LazyLoad,
|
|
44
45
|
null,
|
|
45
46
|
React.createElement('img', {
|
|
46
|
-
src: data.thumbnail && data.thumbnail.asset ?
|
|
47
|
+
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
47
48
|
})
|
|
48
49
|
)
|
|
49
50
|
)
|
|
@@ -14,32 +14,34 @@ import './web.dom.iterable-4439f05a.js';
|
|
|
14
14
|
import { _ as _typeof } from './typeof-af9c50d8.js';
|
|
15
15
|
import './_is-array-58e95429.js';
|
|
16
16
|
import React from 'react';
|
|
17
|
-
import './
|
|
17
|
+
import './events-6c3a7a63.js';
|
|
18
|
+
import './index-f7fb1e25.js';
|
|
18
19
|
import 'prop-types';
|
|
19
20
|
import 'react-bootstrap/Container';
|
|
20
21
|
import 'react-bootstrap/Row';
|
|
21
22
|
import 'react-bootstrap/Col';
|
|
22
23
|
import 'react-bootstrap/Card';
|
|
23
|
-
import { m as moment } from './moment-
|
|
24
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
24
25
|
import 'next/router';
|
|
25
26
|
import './isSymbol-1981418f.js';
|
|
26
27
|
import './debounce-9207d8ee.js';
|
|
27
28
|
import './toNumber-2f7a84cd.js';
|
|
28
|
-
import './index.es-
|
|
29
|
+
import './index.es-c6222053.js';
|
|
29
30
|
import 'react-dom';
|
|
30
31
|
import './visibility-sensor-f40c2564.js';
|
|
31
32
|
import './index-51a80699.js';
|
|
33
|
+
import './urlFor.js';
|
|
32
34
|
import './index-6c12bdd5.js';
|
|
33
|
-
import './main-
|
|
35
|
+
import './main-747e7d25.js';
|
|
34
36
|
import './slicedToArray-641f241f.js';
|
|
35
37
|
import './stringify-4330ccdc.js';
|
|
36
38
|
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
37
39
|
import './Segment.js';
|
|
38
40
|
import './Beam.js';
|
|
39
41
|
import './AdSlot.js';
|
|
40
|
-
import './ADInfeed-
|
|
42
|
+
import './ADInfeed-427022e9.js';
|
|
41
43
|
import './lodash-ec8c6b48.js';
|
|
42
|
-
import './ADlgInfeed-
|
|
44
|
+
import './ADlgInfeed-28d3f944.js';
|
|
43
45
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
44
46
|
import MasterDeck from './MasterDeck.js';
|
|
45
47
|
import 'react-bootstrap/Breadcrumb';
|
|
@@ -12,20 +12,22 @@ import './web.dom.iterable-4439f05a.js';
|
|
|
12
12
|
import './typeof-af9c50d8.js';
|
|
13
13
|
import './_is-array-58e95429.js';
|
|
14
14
|
import React from 'react';
|
|
15
|
-
import
|
|
15
|
+
import './events-6c3a7a63.js';
|
|
16
|
+
import { l as lib_3 } from './index-f7fb1e25.js';
|
|
16
17
|
import 'prop-types';
|
|
17
18
|
import Container from 'react-bootstrap/Container';
|
|
18
|
-
import { m as moment } from './moment-
|
|
19
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
19
20
|
import { withRouter } from 'next/router';
|
|
20
21
|
import './isSymbol-1981418f.js';
|
|
21
22
|
import { d as debounce_1 } from './debounce-9207d8ee.js';
|
|
22
23
|
import './toNumber-2f7a84cd.js';
|
|
23
|
-
import { I as InfiniteScroll } from './index.es-
|
|
24
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
24
25
|
import 'react-dom';
|
|
25
26
|
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
26
27
|
import './index-51a80699.js';
|
|
28
|
+
import './urlFor.js';
|
|
27
29
|
import './index-6c12bdd5.js';
|
|
28
|
-
import './main-
|
|
30
|
+
import './main-747e7d25.js';
|
|
29
31
|
import './slicedToArray-641f241f.js';
|
|
30
32
|
import './index-c7e2ac95.js';
|
|
31
33
|
import './smoothscroll-0cd4c7a6.js';
|
|
@@ -252,7 +254,7 @@ var VideoSeriesListing = function (_React$Component) {
|
|
|
252
254
|
_createClass(VideoSeriesListing, [{
|
|
253
255
|
key: 'componentDidMount',
|
|
254
256
|
value: function componentDidMount() {
|
|
255
|
-
console.log(this.state)
|
|
257
|
+
// console.log(this.state)
|
|
256
258
|
}
|
|
257
259
|
}, {
|
|
258
260
|
key: 'render',
|
package/dist/esm/View.js
CHANGED
|
@@ -14,21 +14,23 @@ import './web.dom.iterable-4439f05a.js';
|
|
|
14
14
|
import { _ as _typeof } from './typeof-af9c50d8.js';
|
|
15
15
|
import './_is-array-58e95429.js';
|
|
16
16
|
import React, { useState, useRef, useEffect, forwardRef } from 'react';
|
|
17
|
-
import
|
|
17
|
+
import './events-6c3a7a63.js';
|
|
18
|
+
import { l as lib_3 } from './index-f7fb1e25.js';
|
|
18
19
|
import 'prop-types';
|
|
19
20
|
import 'react-bootstrap/Row';
|
|
20
21
|
import 'react-bootstrap/Col';
|
|
21
|
-
import { m as moment } from './moment-
|
|
22
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
22
23
|
import { useRouter } from 'next/router';
|
|
23
24
|
import './isSymbol-1981418f.js';
|
|
24
25
|
import './debounce-9207d8ee.js';
|
|
25
26
|
import './toNumber-2f7a84cd.js';
|
|
26
|
-
import { I as InfiniteScroll } from './index.es-
|
|
27
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
27
28
|
import 'react-dom';
|
|
28
29
|
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
29
30
|
import './index-51a80699.js';
|
|
31
|
+
import urlFor from './urlFor.js';
|
|
30
32
|
import './index-6c12bdd5.js';
|
|
31
|
-
import { m as
|
|
33
|
+
import { m as main_40 } from './main-747e7d25.js';
|
|
32
34
|
import './entities-7cc3bf45.js';
|
|
33
35
|
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
34
36
|
import { _ as _JSON$stringify } from './stringify-4330ccdc.js';
|
|
@@ -43,9 +45,9 @@ import './GroupDeck.js';
|
|
|
43
45
|
import 'react-bootstrap';
|
|
44
46
|
import './iconBase-602d52fe.js';
|
|
45
47
|
import './index.esm-3fdda599.js';
|
|
46
|
-
import { r as renderAuthor, g as getSerializers } from './index-
|
|
48
|
+
import { r as renderAuthor, g as getSerializers } from './index-7aec473d.js';
|
|
47
49
|
import './util-7700fc59.js';
|
|
48
|
-
import './brightcove-react-player-loader.es-
|
|
50
|
+
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
49
51
|
import Head from 'next/head';
|
|
50
52
|
import 'react-share';
|
|
51
53
|
import SocialShare from './SocialShare.js';
|
|
@@ -62,10 +64,9 @@ import getSeriesDetail from './getSeriesDetail.js';
|
|
|
62
64
|
import './index-db3bb315.js';
|
|
63
65
|
import getRelatedArticle from './getRelatedArticle.js';
|
|
64
66
|
import getQuery from './getQuery.js';
|
|
65
|
-
import { S as SeriesSlider } from './SeriesSlider-
|
|
66
|
-
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-
|
|
67
|
+
import { S as SeriesSlider } from './SeriesSlider-935e2b4e.js';
|
|
68
|
+
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-82e86707.js';
|
|
67
69
|
import getKeywords from './getKeywords.js';
|
|
68
|
-
import urlFor from './urlFor.js';
|
|
69
70
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
70
71
|
import { DiscussionEmbed } from 'disqus-react';
|
|
71
72
|
|
|
@@ -142,7 +143,7 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
142
143
|
var thumbnailUrl = false;
|
|
143
144
|
|
|
144
145
|
if (article.documentGroup.thumbnail) {
|
|
145
|
-
thumbnailUrl = urlFor(client, article.documentGroup.thumbnail)
|
|
146
|
+
thumbnailUrl = urlFor({ client: client, source: article.documentGroup.thumbnail });
|
|
146
147
|
}
|
|
147
148
|
|
|
148
149
|
return React.createElement(
|
|
@@ -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_40 ? 'left' : 'right', marginTop: '.25rem' },
|
|
157
158
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
158
|
-
|
|
159
|
+
main_40 && !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 '
|
|
@@ -234,7 +235,7 @@ var ISI = function ISI(props) {
|
|
|
234
235
|
var article_body = document.getElementById('article__block');
|
|
235
236
|
var isi = document.getElementById('isi');
|
|
236
237
|
var articleBottomPosition = article_body.getBoundingClientRect().bottom - window.innerHeight;
|
|
237
|
-
console.log(articleBottomPosition, bottomOfArticle)
|
|
238
|
+
// console.log(articleBottomPosition, bottomOfArticle)
|
|
238
239
|
if (articleBottomPosition < 30 && !isi.classList.contains('in-view')) {
|
|
239
240
|
setbottomOfArticle(true);
|
|
240
241
|
}
|
|
@@ -334,7 +335,7 @@ var ISI = function ISI(props) {
|
|
|
334
335
|
);
|
|
335
336
|
};
|
|
336
337
|
|
|
337
|
-
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
|
+
var css = ".RelatedArticles-module_mediaContainer__10h9k {\r\n display: flex;\r\n flex-direction: row;\r\n flex-wrap: nowrap;\r\n margin: 0 -1rem;\r\n}\r\n.RelatedArticles-module_mediaCard__3wQbn {\r\n margin: 0 1rem 1rem;\r\n width: calc(33% - 1rem);\r\n display: column;\r\n flex-direction: row;\r\n margin-bottom: 0.75rem;\r\n padding-bottom: 0.75rem;\r\n border-bottom: none;\r\n}\r\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\r\n border-bottom: none;\r\n}\r\n.RelatedArticles-module_cardTitle__3P-Ib {\r\n font-weight: bold;\r\n color: #252525;\r\n margin-bottom: 0.25rem;\r\n font-size: 15px;\r\n}\r\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\r\n color: #000;\r\n font-weight: bold;\r\n}\r\n.RelatedArticles-module_cardDate__1wOR5 {\r\n color: var(--dark);\r\n display: block;\r\n background: #fff !important;\r\n margin-bottom: 0;\r\n}\r\n.RelatedArticles-module_imgWrapper__5Jx_4 {\r\n display: block;\r\n text-align: center;\r\n margin-bottom: 0.5rem;\r\n}\r\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\r\n height: 135px;\r\n width: 100%;\r\n object-fit: cover;\r\n object-position: center;\r\n}\r\n@media screen and (max-width: 1064px) {\r\n}\r\n@media screen and (max-width: 968px) {\r\n .RelatedArticles-module_mediaContainer__10h9k {\r\n flex-wrap: wrap;\r\n }\r\n .RelatedArticles-module_imgWrapper__5Jx_4 {\r\n display: none;\r\n }\r\n .RelatedArticles-module_mediaCard__3wQbn {\r\n width: 100%;\r\n margin-bottom: 0.5rem;\r\n padding: 0;\r\n }\r\n .RelatedArticles-module_cardTitle__3P-Ib {\r\n font-size: 0.75rem;\r\n margin-bottom: 0;\r\n }\r\n}\r\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
|
|
|
@@ -360,7 +361,7 @@ var RelatedArticle = function RelatedArticle(_ref) {
|
|
|
360
361
|
{ className: styles.imgWrapper, href: '/view/' + (article.url ? article.url.current : '') },
|
|
361
362
|
article.thumbnail ? React.createElement('img', {
|
|
362
363
|
style: { objectFit: 'cover', objectPosition: 'center' },
|
|
363
|
-
src: article.thumbnail && urlFor(client, article.thumbnail.asset
|
|
364
|
+
src: article.thumbnail && urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 250 }),
|
|
364
365
|
alt: article.title
|
|
365
366
|
}) : React.createElement(
|
|
366
367
|
React.Fragment,
|
|
@@ -964,7 +965,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
964
965
|
var shareUrl = shareBaseUrl + props.article.url.current;
|
|
965
966
|
var shareTitle = article.title;
|
|
966
967
|
var shareSummary = article.summary;
|
|
967
|
-
var shareImage = thumbnail && thumbnail.asset ? urlFor(props.client, thumbnail.asset)
|
|
968
|
+
var shareImage = thumbnail && thumbnail.asset ? urlFor({ client: props.client, source: thumbnail.asset }) : shareImageDefault;
|
|
968
969
|
var siteName = props.website && props.website.title ? props.website.title : '';
|
|
969
970
|
var shareKeywords = getKeywords(props.article).join(',');
|
|
970
971
|
|
|
@@ -1063,7 +1064,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1063
1064
|
return React.createElement(
|
|
1064
1065
|
'span',
|
|
1065
1066
|
{ key: index },
|
|
1066
|
-
renderAuthor(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor(props.client, authorDetail.profileImage
|
|
1067
|
+
renderAuthor(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix, authorDetail.biography && renderAuthorBiography(authorDetail.biography[0]), authorDetail.profileImage && urlFor({ client: props.client, source: authorDetail.profileImage, imageHeight: authorImgHeight }))
|
|
1067
1068
|
);
|
|
1068
1069
|
}),
|
|
1069
1070
|
React.createElement(
|
|
@@ -1159,7 +1160,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1159
1160
|
React.createElement(
|
|
1160
1161
|
'div',
|
|
1161
1162
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
1162
|
-
|
|
1163
|
+
main_40 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1163
1164
|
if (index === 0) {
|
|
1164
1165
|
return React.createElement(
|
|
1165
1166
|
'div',
|
|
@@ -1243,7 +1244,7 @@ var Article = forwardRef(function (props, ref) {
|
|
|
1243
1244
|
blocks: isi
|
|
1244
1245
|
})
|
|
1245
1246
|
),
|
|
1246
|
-
|
|
1247
|
+
main_40 && !sponsoredFlag && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
1247
1248
|
if (index > 0) {
|
|
1248
1249
|
return React.createElement(
|
|
1249
1250
|
'div',
|
|
@@ -1339,7 +1340,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1339
1340
|
return item.url.current === path;
|
|
1340
1341
|
});
|
|
1341
1342
|
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
1342
|
-
if (!
|
|
1343
|
+
if (!main_40) {
|
|
1343
1344
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1344
1345
|
if (window.googletag && googletag.pubadsReady) {
|
|
1345
1346
|
var slots = googletag.pubads().getSlots();
|
|
@@ -1356,7 +1357,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
1356
1357
|
});
|
|
1357
1358
|
}
|
|
1358
1359
|
//Refresh leaderboard ad on mobile
|
|
1359
|
-
if (
|
|
1360
|
+
if (main_40) {
|
|
1360
1361
|
var leaderboardSlotId = '';
|
|
1361
1362
|
lib_3.getGoogletag().then(function (googletag) {
|
|
1362
1363
|
if (window.googletag && googletag.pubadsReady) {
|
|
@@ -1774,7 +1775,7 @@ View.returnGetInitialProps = function () {
|
|
|
1774
1775
|
seriesUrl: '?seriesArticle=' + seriesArticle,
|
|
1775
1776
|
seriesTitle: subArticle.title,
|
|
1776
1777
|
seriesSummary: subArticle.summary,
|
|
1777
|
-
seriesThumbnail: subArticle.thumbnail && subArticle.thumbnail.asset ? urlFor(client, subArticle.thumbnail.asset)
|
|
1778
|
+
seriesThumbnail: subArticle.thumbnail && subArticle.thumbnail.asset ? urlFor({ client: client, source: subArticle.thumbnail.asset }) : null
|
|
1778
1779
|
};
|
|
1779
1780
|
article.seriesShareOptions = seriesShareOptions;
|
|
1780
1781
|
}
|
|
@@ -1787,7 +1788,7 @@ View.returnGetInitialProps = function () {
|
|
|
1787
1788
|
seriesUrl: '?seriesVid=' + seriesVid,
|
|
1788
1789
|
seriesTitle: video.title,
|
|
1789
1790
|
seriesSummary: video.intro,
|
|
1790
|
-
seriesThumbnail: video.thumbnail && video.thumbnail.asset ? urlFor(client, video.thumbnail.asset)
|
|
1791
|
+
seriesThumbnail: video.thumbnail && video.thumbnail.asset ? urlFor({ client: client, source: video.thumbnail.asset }) : null
|
|
1791
1792
|
};
|
|
1792
1793
|
article.seriesShareOptions = seriesShareOptions;
|
|
1793
1794
|
}
|
package/dist/esm/YahooHero.js
CHANGED
|
@@ -5,9 +5,10 @@ import './core.get-iterator-method-e1de7503.js';
|
|
|
5
5
|
import './web.dom.iterable-4439f05a.js';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import 'prop-types';
|
|
8
|
-
import { m as moment } from './moment-
|
|
8
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
9
9
|
import 'react-dom';
|
|
10
|
-
import
|
|
10
|
+
import './index-51a80699.js';
|
|
11
|
+
import urlFor from './urlFor.js';
|
|
11
12
|
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
12
13
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
13
14
|
import './slicedToArray-641f241f.js';
|
|
@@ -20,15 +21,11 @@ var YahooHero = function YahooHero(props) {
|
|
|
20
21
|
var subArticles = props.dataRecord.slice(1, props.dataRecord.length);
|
|
21
22
|
var client = props.client;
|
|
22
23
|
|
|
23
|
-
var builder = imageUrlBuilder(client);
|
|
24
|
-
function urlFor(source) {
|
|
25
|
-
return builder.image(source).auto('format');
|
|
26
|
-
}
|
|
27
24
|
|
|
28
25
|
var topArticleThumbnail = '';
|
|
29
26
|
var topArticleAltText = topArticle.title;
|
|
30
27
|
if (topArticle.thumbnail && topArticle.thumbnail.asset) {
|
|
31
|
-
topArticleThumbnail = urlFor(topArticle.thumbnail.asset
|
|
28
|
+
topArticleThumbnail = urlFor({ client: client, source: topArticle.thumbnail.asset, imageWidth: 600 });
|
|
32
29
|
topArticleAltText = topArticle.thumbnail.asset.originalFileName;
|
|
33
30
|
} else if (props.thumbnail) {
|
|
34
31
|
topArticleThumbnail = props.thumbnail;
|
|
@@ -77,7 +74,8 @@ var YahooHero = function YahooHero(props) {
|
|
|
77
74
|
var articleThumbnail = '';
|
|
78
75
|
var articleAltText = article.title;
|
|
79
76
|
if (article.thumbnail && article.thumbnail.asset) {
|
|
80
|
-
articleThumbnail = urlFor(article.thumbnail.asset
|
|
77
|
+
articleThumbnail = urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 250 });
|
|
78
|
+
|
|
81
79
|
articleAltText = article.thumbnail.asset.originalFileName;
|
|
82
80
|
} else if (props.thumbnail) {
|
|
83
81
|
articleThumbnail = props.thumbnail;
|
|
@@ -116,7 +114,7 @@ var YahooHero = function YahooHero(props) {
|
|
|
116
114
|
React.createElement(
|
|
117
115
|
'style',
|
|
118
116
|
{ jsx: 'true' },
|
|
119
|
-
'\n .article-hero{\n padding-bottom:15px\n }\n .yh-top-article {\n display: flex;\n flex-direction: row;\n position: relative;\n font-family: Roboto, sans-serif;\n margin-bottom: 1rem;\n border-radius: 15px;\n overflow: hidden;\n min-height: 315px;\n }\n .yh-top-article--img {\n width: 100%;\n min-height: 240px;\n overflow: hidden;\n }\n .yh-top-article--img img {\n width: 100%;\n height: auto;\n min-height: 100%;\n max-height:
|
|
117
|
+
'\n .article-hero{\n padding-bottom:15px\n }\n .yh-top-article {\n display: flex;\n flex-direction: row;\n position: relative;\n font-family: Roboto, sans-serif;\n margin-bottom: 1rem;\n border-radius: 15px;\n overflow: hidden;\n min-height: 315px;\n }\n .yh-top-article--img {\n width: 100%;\n min-height: 240px;\n overflow: hidden;\n }\n .yh-top-article--img img {\n width: 100%;\n height: auto;\n min-height: 100%;\n max-height: 615px;\n object-fit: cover;\n }\n .yh-top-article--body {\n height: 100%;\n width: 40%;\n min-width: 320px;\n right: 0;\n position: absolute;\n color: white;\n padding: 1.75rem;\n height: 315px;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n flex-direction: column;\n }\n .yh-top-article--body h1 {\n color: white!important;\n font-size: 1.4rem;\n font-weight: 500;\n margin-bottom: 0.5rem;\n }\n .yh-top-article--body p {\n font-size: 0.9rem;\n margin-bottom: 0.5rem;\n }\n .yh-top-article--blur {\n height: 100%;\n width: 40%;\n right: 0;\n position: absolute;\n filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));\n background: rgba(0,0,0,.65);\n min-width: 320px;\n }\n .yh-sub-article-container {\n display: flex;\n justify-content: space-between;\n }\n .yh-sub-article {\n width: 23.25%;\n }\n .yh-sub-article p.yh-sub-article--title {\n font-weight: bold;\n }\n .yh-sub-article img {\n width: 100%;\n max-height: 150px;\n object-fit: cover;\n border-radius: 15px;\n }\n .yh-sub-article img[src=\'' + props.thumbnail + '\']{\n object-fit: contain;\n }\n .yh-sub-article--title {\n font-weight: bold;\n margin-top: .25rem;\n font-size: 1rem;\n margin-bottom: .25rem;\n }\n .yh-sub-article--info {\n font-size: .8rem;\n margin-bottom: 0;\n\n }\n @media screen and (max-width: 968px) {\n .yh-sub-article-container {\n flex-wrap: wrap;\n }\n .yh-sub-article {\n width: 48%;\n margin-bottom: 1rem;\n }\n }\n '
|
|
120
118
|
)
|
|
121
119
|
);
|
|
122
120
|
};
|
package/dist/esm/YoutubeGroup.js
CHANGED
|
@@ -10,17 +10,18 @@ import './_is-array-58e95429.js';
|
|
|
10
10
|
import React, { useRef, useState, useEffect } from 'react';
|
|
11
11
|
import 'prop-types';
|
|
12
12
|
import 'react-dom';
|
|
13
|
-
import
|
|
13
|
+
import './index-51a80699.js';
|
|
14
|
+
import urlFor from './urlFor.js';
|
|
14
15
|
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
15
|
-
import { m as
|
|
16
|
+
import { m as main_40, a as main_45, b as main_39 } from './main-747e7d25.js';
|
|
16
17
|
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
17
18
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
18
19
|
import { s as smoothscroll } from './smoothscroll-0cd4c7a6.js';
|
|
19
20
|
|
|
20
|
-
/*
|
|
21
|
-
GROQ query -
|
|
22
|
-
accepts an array of title, URL
|
|
23
|
-
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
21
|
+
/*
|
|
22
|
+
GROQ query -
|
|
23
|
+
accepts an array of title, URL
|
|
24
|
+
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
24
25
|
*/
|
|
25
26
|
|
|
26
27
|
var YoutubeGroup = function YoutubeGroup(props) {
|
|
@@ -50,11 +51,6 @@ var YoutubeGroup = function YoutubeGroup(props) {
|
|
|
50
51
|
tileHeight = _useState8[0],
|
|
51
52
|
setTileHeight = _useState8[1];
|
|
52
53
|
|
|
53
|
-
var urlFor = function urlFor(source, client) {
|
|
54
|
-
var builder = imageUrlBuilder(client);
|
|
55
|
-
return builder.image(source).auto('format');
|
|
56
|
-
};
|
|
57
|
-
|
|
58
54
|
useEffect(function () {
|
|
59
55
|
//IE11 Polyfill
|
|
60
56
|
smoothscroll.polyfill();
|
|
@@ -105,13 +101,13 @@ var YoutubeGroup = function YoutubeGroup(props) {
|
|
|
105
101
|
}
|
|
106
102
|
}
|
|
107
103
|
|
|
108
|
-
if (
|
|
104
|
+
if (main_40) {
|
|
109
105
|
thumbSize = Math.floor((viewableArea.current.clientWidth - tileDividerWidth) / 2);
|
|
110
106
|
if (props.dataset.length > 2) {
|
|
111
107
|
scrollerVisible = true;
|
|
112
108
|
}
|
|
113
109
|
}
|
|
114
|
-
if (
|
|
110
|
+
if (main_45) {
|
|
115
111
|
thumbSize = Math.floor((viewableArea.current.clientWidth - tileDividerWidth * 2) / 3);
|
|
116
112
|
if (props.dataset.length > 3) {
|
|
117
113
|
scrollerVisible = true;
|
|
@@ -174,10 +170,10 @@ var YoutubeGroup = function YoutubeGroup(props) {
|
|
|
174
170
|
if (viewableWindow.current.offsetWidth < 604) {
|
|
175
171
|
scrollDirection = innerSlider.current.offsetWidth - numberOfSlidesToScroll * 2;
|
|
176
172
|
}
|
|
177
|
-
if (
|
|
173
|
+
if (main_45) {
|
|
178
174
|
scrollDirection = innerSlider.current.offsetWidth - numberOfSlidesToScroll * 2;
|
|
179
175
|
}
|
|
180
|
-
if (
|
|
176
|
+
if (main_40) {
|
|
181
177
|
scrollDirection = innerSlider.current.offsetWidth - numberOfSlidesToScroll * 1;
|
|
182
178
|
}
|
|
183
179
|
}
|
|
@@ -248,7 +244,7 @@ var YoutubeGroup = function YoutubeGroup(props) {
|
|
|
248
244
|
var url = video.url;
|
|
249
245
|
var thumbnail = void 0;
|
|
250
246
|
if (video.thumbnail && video.thumbnail.asset) {
|
|
251
|
-
thumbnail = urlFor(video.thumbnail, props.client);
|
|
247
|
+
thumbnail = urlFor({ source: video.thumbnail, client: props.client });
|
|
252
248
|
} else if (_typeof(video.thumbnail == 'string')) {
|
|
253
249
|
thumbnail = video.thumbnail;
|
|
254
250
|
} else {
|
|
@@ -303,7 +299,7 @@ var YoutubeGroup = function YoutubeGroup(props) {
|
|
|
303
299
|
var _url = '' + video.link;
|
|
304
300
|
var _thumbnail = void 0;
|
|
305
301
|
if (video.thumbnail && video.thumbnail.asset) {
|
|
306
|
-
_thumbnail = urlFor(video.thumbnail, props.client);
|
|
302
|
+
_thumbnail = urlFor({ source: video.thumbnail, client: props.client });
|
|
307
303
|
} else {
|
|
308
304
|
_thumbnail = 'https://img.youtube.com/vi/' + getYoutubeId(video.url) + '/hqdefault.jpg';
|
|
309
305
|
}
|
|
@@ -350,7 +346,7 @@ var YoutubeGroup = function YoutubeGroup(props) {
|
|
|
350
346
|
React.createElement(
|
|
351
347
|
'style',
|
|
352
348
|
{ jsx: 'true' },
|
|
353
|
-
'\n #vid-slider * {\n box-sizing: border-box;\n -ms-overflow-style: none;\n }\n #vid-slider::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider {\n position: relative;\n -ms-overflow-style: none;\n padding: 0 2.5rem;\n margin-bottom: 2rem;\n }\n #vid-slider.col {\n padding: 0 2.5rem;\n }\n #vid-slider .now-playing {\n position: absolute;\n top: 0.5rem;\n left: 1rem;\n color: white;\n background: rgba(0, 0, 0, 0.75);\n }\n #vid-slider h1,\n #vid-slider p {\n text-align: center;\n width: 100%;\n max-width: 500px;\n margin: auto;\n }\n #vid-slider a:link,\n #vid-slider a:hover,\n #vid-slider a:active,\n #vid-slider a:visited {\n transition: color 150ms;\n color: #95a5a6;\n text-decoration: none;\n }\n #vid-slider .contain {\n width: 100%;\n }\n #vid-slider .row {\n overflow-x: hidden;\n width: 100%;\n -ms-overflow-style: none;\n overflow-y: hidden !important;\n }\n #vid-slider .tile__info {\n white-space: normal !important;\n position: absolute;\n width: 100%;\n text-align: center;\n color: ' + (props.dark ? 'white' : '#383838') + ';\n opacity: 1;\n font-size: 0.9rem;\n font-weight: normal;\n transition: opacity 0.25s;\n }\n #vid-slider .row__inner {\n display: flex;\n transition: 450ms -webkit-transform;\n transition: 450ms transform;\n transition: 450ms transform, 450ms -webkit-transform;\n font-size: 0;\n white-space: nowrap;\n margin-top: 1.5rem !important;\n padding-bottom: 10px;\n padding-left: 0;\n }\n #vid-slider .tile {\n position: relative;\n display: inline-block;\n height: 100%;\n margin-right: 0.5rem;\n font-size: 20px;\n cursor: pointer;\n transition: 450ms all;\n -webkit-transform-origin: center left;\n transform-origin: center left;\n }\n #vid-slider .tile:first-child {\n margin-left: 0;\n }\n #vid-slider .tile__img {\n height: auto;\n\n -o-object-fit: cover;\n object-fit: cover;\n object-position: center;\n }\n #vid-slider .tile__details {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n font-size: 10px;\n opacity: 0;\n background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);\n transition: 450ms opacity;\n }\n #vid-slider .tile__details:after,\n #vid-slider .tile__details:before {\n content: \'\';\n\n position: absolute;\n top: 50%;\n left: 50%;\n display: #000;\n }\n #vid-slider .tile__details:after {\n margin-top: -25px;\n margin-left: -25px;\n width: 50px;\n height: 50px;\n border: 3px solid #ecf0f1;\n line-height: 50px;\n text-align: center;\n border-radius: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1;\n }\n #vid-slider .tile__details:before {\n content: \'\';\n background: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 64 64\' width=\'64\' height=\'64\' fill=\'white\'><path d=\'M26 46 L46 32 L26 18 Z\'/></svg>")\n no-repeat center center;\n left: 0;\n width: 100%;\n height: 3rem;\n font-size: 30px;\n margin-right: 12px;\n margin-top: -24px;\n text-align: center;\n z-index: 2;\n color: white;\n }\n\n .tile__media {\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: flex-start;\n }\n\n #vid-slider .tile__title {\n white-space: normal !important;\n max-width: ' + tileSize + 'px;\n text-align: center;\n color: ' + (props.dark ? 'white' : '#383838') + ';\n opacity: 1;\n font-size: ' + (
|
|
349
|
+
'\n #vid-slider * {\n box-sizing: border-box;\n -ms-overflow-style: none;\n }\n #vid-slider::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider {\n position: relative;\n -ms-overflow-style: none;\n padding: 0 2.5rem;\n margin-bottom: 2rem;\n }\n #vid-slider.col {\n padding: 0 2.5rem;\n }\n #vid-slider .now-playing {\n position: absolute;\n top: 0.5rem;\n left: 1rem;\n color: white;\n background: rgba(0, 0, 0, 0.75);\n }\n #vid-slider h1,\n #vid-slider p {\n text-align: center;\n width: 100%;\n max-width: 500px;\n margin: auto;\n }\n #vid-slider a:link,\n #vid-slider a:hover,\n #vid-slider a:active,\n #vid-slider a:visited {\n transition: color 150ms;\n color: #95a5a6;\n text-decoration: none;\n }\n #vid-slider .contain {\n width: 100%;\n }\n #vid-slider .row {\n overflow-x: hidden;\n width: 100%;\n -ms-overflow-style: none;\n overflow-y: hidden !important;\n }\n #vid-slider .tile__info {\n white-space: normal !important;\n position: absolute;\n width: 100%;\n text-align: center;\n color: ' + (props.dark ? 'white' : '#383838') + ';\n opacity: 1;\n font-size: 0.9rem;\n font-weight: normal;\n transition: opacity 0.25s;\n }\n #vid-slider .row__inner {\n display: flex;\n transition: 450ms -webkit-transform;\n transition: 450ms transform;\n transition: 450ms transform, 450ms -webkit-transform;\n font-size: 0;\n white-space: nowrap;\n margin-top: 1.5rem !important;\n padding-bottom: 10px;\n padding-left: 0;\n }\n #vid-slider .tile {\n position: relative;\n display: inline-block;\n height: 100%;\n margin-right: 0.5rem;\n font-size: 20px;\n cursor: pointer;\n transition: 450ms all;\n -webkit-transform-origin: center left;\n transform-origin: center left;\n }\n #vid-slider .tile:first-child {\n margin-left: 0;\n }\n #vid-slider .tile__img {\n height: auto;\n\n -o-object-fit: cover;\n object-fit: cover;\n object-position: center;\n }\n #vid-slider .tile__details {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n font-size: 10px;\n opacity: 0;\n background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);\n transition: 450ms opacity;\n }\n #vid-slider .tile__details:after,\n #vid-slider .tile__details:before {\n content: \'\';\n\n position: absolute;\n top: 50%;\n left: 50%;\n display: #000;\n }\n #vid-slider .tile__details:after {\n margin-top: -25px;\n margin-left: -25px;\n width: 50px;\n height: 50px;\n border: 3px solid #ecf0f1;\n line-height: 50px;\n text-align: center;\n border-radius: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1;\n }\n #vid-slider .tile__details:before {\n content: \'\';\n background: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 64 64\' width=\'64\' height=\'64\' fill=\'white\'><path d=\'M26 46 L46 32 L26 18 Z\'/></svg>")\n no-repeat center center;\n left: 0;\n width: 100%;\n height: 3rem;\n font-size: 30px;\n margin-right: 12px;\n margin-top: -24px;\n text-align: center;\n z-index: 2;\n color: white;\n }\n\n .tile__media {\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: flex-start;\n }\n\n #vid-slider .tile__title {\n white-space: normal !important;\n max-width: ' + tileSize + 'px;\n text-align: center;\n color: ' + (props.dark ? 'white' : '#383838') + ';\n opacity: 1;\n font-size: ' + (main_39 ? '0.75rem' : '0.9rem') + ';\n font-weight: normal;\n transition: opacity 0.25s;\n -webkit-font-smoothing: antialiased;\n }\n\n #vid-slider .tile__slider-prev,\n #vid-slider .tile__slider-next {\n width: 30px;\n background: transparent;\n border: none;\n position: absolute;\n transform: translateY(-50%);\n z-index: 99;\n cursor: pointer;\n color: ' + (props.dark ? 'white' : 'black') + ';\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 2rem;\n }\n #vid-slider .tile__slider-prev {\n left: -0.5rem;\n padding: 1rem;\n }\n #vid-slider .tile__slider-next {\n right: -0.5rem;\n padding: 1rem;\n }\n #vid-slider,\n #vid-slider .row {\n margin: 0;\n padding-right: 0 1.2rem;\n }\n\n #vid-slider .row::-webkit-scrollbar-thumb {\n background-color: transparent !important;\n }\n #vid-slider i {\n border: solid ' + (props.dark ? 'white' : 'black') + ';\n border-width: 0 4px 4px 0;\n display: inline-block;\n padding: 4px;\n pointer-events: none;\n }\n #vid-slider .right {\n transform: rotate(-45deg);\n -webkit-transform: rotate(-45deg);\n }\n #vid-slider .left {\n transform: rotate(135deg);\n -webkit-transform: rotate(135deg);\n }\n @media screen and (max-width: 1399px) {\n #vid-slider,\n #vidHolder {\n }\n #vid-slider .tile__img {\n }\n }\n @media screen and (max-width: 1200px) {\n #vid-slider,\n #vidHolder {\n }\n }\n @media screen and (max-width: 967px) {\n #vid-slider {\n max-width: 100%;\n }\n #vid-slider .tile__img {\n }\n }\n\n @media screen and (max-width: 768px) {\n #vidHolder {\n position: unset;\n width: 100%;\n }\n\n #vid-slider .tile__img {\n }\n #vid-slider .row__inner {\n margin-top: 1.5rem !important;\n }\n }\n\n @media screen and (max-width: 590px) {\n #vid-slider .tile__img {\n }\n }\n '
|
|
354
350
|
)
|
|
355
351
|
);
|
|
356
352
|
};
|