@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
package/dist/esm/DeckContent.js
CHANGED
|
@@ -14,23 +14,25 @@ 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 { l as lib_3 } from './index-f7fb1e25.js';
|
|
18
19
|
import 'prop-types';
|
|
19
20
|
import Container from 'react-bootstrap/Container';
|
|
20
21
|
import Row from 'react-bootstrap/Row';
|
|
21
22
|
import Col from 'react-bootstrap/Col';
|
|
22
23
|
import Card from 'react-bootstrap/Card';
|
|
23
|
-
import { m as moment } from './moment-
|
|
24
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
24
25
|
import { withRouter } from 'next/router';
|
|
25
26
|
import './isSymbol-1981418f.js';
|
|
26
27
|
import { d as debounce_1 } from './debounce-9207d8ee.js';
|
|
27
28
|
import './toNumber-2f7a84cd.js';
|
|
28
|
-
import { I as InfiniteScroll } from './index.es-
|
|
29
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
29
30
|
import 'react-dom';
|
|
30
31
|
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
31
|
-
import
|
|
32
|
+
import './index-51a80699.js';
|
|
33
|
+
import urlFor from './urlFor.js';
|
|
32
34
|
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
33
|
-
import { m as
|
|
35
|
+
import { m as main_40 } from './main-747e7d25.js';
|
|
34
36
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
35
37
|
import './slicedToArray-641f241f.js';
|
|
36
38
|
import './stringify-4330ccdc.js';
|
|
@@ -38,7 +40,7 @@ import './asyncToGenerator-fc1c2e29.js';
|
|
|
38
40
|
import './Segment.js';
|
|
39
41
|
import './Beam.js';
|
|
40
42
|
import './AdSlot.js';
|
|
41
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
43
|
+
import { A as ADInfeed } from './ADInfeed-427022e9.js';
|
|
42
44
|
|
|
43
45
|
var DeckContent = function (_React$Component) {
|
|
44
46
|
_inherits(DeckContent, _React$Component);
|
|
@@ -54,7 +56,7 @@ var DeckContent = function (_React$Component) {
|
|
|
54
56
|
args[_key] = arguments[_key];
|
|
55
57
|
}
|
|
56
58
|
|
|
57
|
-
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DeckContent.__proto__ || _Object$getPrototypeOf(DeckContent)).call.apply(_ref, [this].concat(args))), _this), _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord || [], _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.state = {
|
|
59
|
+
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DeckContent.__proto__ || _Object$getPrototypeOf(DeckContent)).call.apply(_ref, [this].concat(args))), _this), _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord || [], _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.client = _this.props.client, _this.state = {
|
|
58
60
|
data: _this.data,
|
|
59
61
|
dataKeptToCompareNewDatarecord: _this.data,
|
|
60
62
|
per: _this.params ? _this.params.to : 2,
|
|
@@ -115,17 +117,10 @@ var DeckContent = function (_React$Component) {
|
|
|
115
117
|
}
|
|
116
118
|
});
|
|
117
119
|
});
|
|
118
|
-
}, _this.urlFor = function (source) {
|
|
119
|
-
var client = _this.props.client;
|
|
120
|
-
|
|
121
|
-
var builder = imageUrlBuilder(client);
|
|
122
|
-
return builder.image(source).auto('format');
|
|
123
120
|
}, _this.renderCardImage = function (row, page) {
|
|
124
121
|
if (row.thumbnail && row.thumbnail.asset) {
|
|
125
|
-
var url = _this.
|
|
126
|
-
|
|
127
|
-
if (_this.props.imageWidth) url = url.width(_this.props.imageWidth);
|
|
128
|
-
return url.url();
|
|
122
|
+
var url = urlFor({ client: _this.client, source: row.thumbnail, imageHeight: _this.props.imageHeight || null, imageWidth: _this.props.imageWidth || null, imageFit: _this.props.imageFit || null });
|
|
123
|
+
return url;
|
|
129
124
|
} else {
|
|
130
125
|
return _this.defaultImage;
|
|
131
126
|
}
|
|
@@ -179,14 +174,14 @@ var DeckContent = function (_React$Component) {
|
|
|
179
174
|
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
180
175
|
|
|
181
176
|
// please leave this for later debug purpose : Yong Jun.
|
|
182
|
-
/* console.log('page change reported', {
|
|
183
|
-
currentPage: currentPage,
|
|
184
|
-
pageNumber: pageNumber,
|
|
185
|
-
pathname: pathname,
|
|
186
|
-
path: path,
|
|
187
|
-
newPath: newPath,
|
|
188
|
-
firstPage: pageNumber === 1,
|
|
189
|
-
queryString: queryString
|
|
177
|
+
/* console.log('page change reported', {
|
|
178
|
+
currentPage: currentPage,
|
|
179
|
+
pageNumber: pageNumber,
|
|
180
|
+
pathname: pathname,
|
|
181
|
+
path: path,
|
|
182
|
+
newPath: newPath,
|
|
183
|
+
firstPage: pageNumber === 1,
|
|
184
|
+
queryString: queryString
|
|
190
185
|
}) */
|
|
191
186
|
|
|
192
187
|
if (pageview) {
|
|
@@ -351,7 +346,7 @@ var DeckContent = function (_React$Component) {
|
|
|
351
346
|
)
|
|
352
347
|
)
|
|
353
348
|
),
|
|
354
|
-
|
|
349
|
+
main_40 && _this.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
355
350
|
);
|
|
356
351
|
}
|
|
357
352
|
})
|
package/dist/esm/DeckQueue.js
CHANGED
|
@@ -14,23 +14,25 @@ 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 { l as lib_3 } from './index-f7fb1e25.js';
|
|
18
19
|
import 'prop-types';
|
|
19
20
|
import Container from 'react-bootstrap/Container';
|
|
20
21
|
import Row from 'react-bootstrap/Row';
|
|
21
22
|
import Col from 'react-bootstrap/Col';
|
|
22
23
|
import Card from 'react-bootstrap/Card';
|
|
23
|
-
import { m as moment } from './moment-
|
|
24
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
24
25
|
import { withRouter } from 'next/router';
|
|
25
26
|
import './isSymbol-1981418f.js';
|
|
26
27
|
import { d as debounce_1 } from './debounce-9207d8ee.js';
|
|
27
28
|
import './toNumber-2f7a84cd.js';
|
|
28
|
-
import { I as InfiniteScroll } from './index.es-
|
|
29
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
29
30
|
import 'react-dom';
|
|
30
31
|
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
31
|
-
import
|
|
32
|
+
import './index-51a80699.js';
|
|
33
|
+
import urlFor from './urlFor.js';
|
|
32
34
|
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
33
|
-
import { m as
|
|
35
|
+
import { m as main_40 } from './main-747e7d25.js';
|
|
34
36
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
35
37
|
import { g as get_1 } from './get-1e515072.js';
|
|
36
38
|
import './eq-b470f743.js';
|
|
@@ -49,7 +51,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
49
51
|
args[_key] = arguments[_key];
|
|
50
52
|
}
|
|
51
53
|
|
|
52
|
-
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DeckQueue.__proto__ || _Object$getPrototypeOf(DeckQueue)).call.apply(_ref, [this].concat(args))), _this), _this.page = _this.props.page, _this.data = _this.props.dataRecord, _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.imageHeight = _this.props.imageHeight ? _this.props.imageHeight : 270, _this.state = {
|
|
54
|
+
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DeckQueue.__proto__ || _Object$getPrototypeOf(DeckQueue)).call.apply(_ref, [this].concat(args))), _this), _this.page = _this.props.page, _this.data = _this.props.dataRecord, _this.query = _this.props.query, _this.params = _this.props.params, _this.client = _this.props.client, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.imageHeight = _this.props.imageHeight ? _this.props.imageHeight : 270, _this.state = {
|
|
53
55
|
data: _this.data,
|
|
54
56
|
per: _this.params ? _this.params.to : 2,
|
|
55
57
|
page: _this.props.currentPage || 1,
|
|
@@ -79,7 +81,6 @@ var DeckQueue = function (_React$Component) {
|
|
|
79
81
|
data = _this$state.data,
|
|
80
82
|
query = _this$state.query,
|
|
81
83
|
page = _this$state.page;
|
|
82
|
-
var client = _this.props.client;
|
|
83
84
|
|
|
84
85
|
|
|
85
86
|
var params = _extends({}, _this.params, { from: from, to: to
|
|
@@ -108,17 +109,10 @@ var DeckQueue = function (_React$Component) {
|
|
|
108
109
|
}
|
|
109
110
|
});
|
|
110
111
|
});
|
|
111
|
-
}, _this.urlFor = function (source) {
|
|
112
|
-
var client = _this.props.client;
|
|
113
|
-
|
|
114
|
-
var builder = imageUrlBuilder(client);
|
|
115
|
-
return builder.image(source).auto('format');
|
|
116
112
|
}, _this.renderCardImage = function (row) {
|
|
117
113
|
if (row.thumbnail && row.thumbnail.asset) {
|
|
118
|
-
var url = _this.
|
|
119
|
-
|
|
120
|
-
if (_this.props.imageWidth) url = url.width(_this.props.imageWidth);
|
|
121
|
-
return url.url();
|
|
114
|
+
var url = urlFor({ client: _this.client, source: row.thumbnail, imageHeight: _this.imageHeight || null, imageWidth: _this.props.imageWidth || null, imageFit: _this.props.imageFit || null });
|
|
115
|
+
return url;
|
|
122
116
|
} else {
|
|
123
117
|
return _this.defaultImage;
|
|
124
118
|
}
|
|
@@ -302,7 +296,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
302
296
|
)
|
|
303
297
|
)
|
|
304
298
|
),
|
|
305
|
-
|
|
299
|
+
main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
306
300
|
);
|
|
307
301
|
})
|
|
308
302
|
);
|
|
@@ -4,7 +4,8 @@ import './es6.string.iterator-c990c18c.js';
|
|
|
4
4
|
import './core.get-iterator-method-e1de7503.js';
|
|
5
5
|
import './web.dom.iterable-4439f05a.js';
|
|
6
6
|
import React, { useState } from 'react';
|
|
7
|
-
import
|
|
7
|
+
import './events-6c3a7a63.js';
|
|
8
|
+
import { b as lib_1, a as lib_2 } from './index-f7fb1e25.js';
|
|
8
9
|
import PropTypes from 'prop-types';
|
|
9
10
|
import './isSymbol-1981418f.js';
|
|
10
11
|
import { d as debounce_1 } from './debounce-9207d8ee.js';
|
package/dist/esm/EventsDeck.js
CHANGED
|
@@ -13,10 +13,10 @@ import Container from 'react-bootstrap/Container';
|
|
|
13
13
|
import Row from 'react-bootstrap/Row';
|
|
14
14
|
import Col from 'react-bootstrap/Col';
|
|
15
15
|
import Card from 'react-bootstrap/Card';
|
|
16
|
-
import './moment-
|
|
16
|
+
import './moment-b6f49411.js';
|
|
17
17
|
import { useRouter } from 'next/router';
|
|
18
|
-
import { I as InfiniteScroll } from './index.es-
|
|
19
|
-
import './main-
|
|
18
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
19
|
+
import './main-747e7d25.js';
|
|
20
20
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
21
21
|
import { _ as _JSON$stringify } from './stringify-4330ccdc.js';
|
|
22
22
|
import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
|
|
@@ -24,7 +24,7 @@ import Button from 'react-bootstrap/Button';
|
|
|
24
24
|
import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
|
|
25
25
|
import Spinner from 'react-bootstrap/Spinner';
|
|
26
26
|
import Form from 'react-bootstrap/Form';
|
|
27
|
-
import { m as momentTimezone } from './index-
|
|
27
|
+
import { m as momentTimezone } from './index-c00b0bbb.js';
|
|
28
28
|
import { j as js_cookie } from './js.cookie-6874175c.js';
|
|
29
29
|
|
|
30
30
|
// https://github.com/tc39/proposal-object-values-entries
|
|
@@ -245,23 +245,23 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
245
245
|
if (cventAccessToken && cventAccessToken !== 'undefined') {
|
|
246
246
|
setAccessToken(cventAccessToken);
|
|
247
247
|
} else {
|
|
248
|
-
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
249
|
-
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
250
|
-
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
251
|
-
fetch(url, {
|
|
252
|
-
headers: {
|
|
253
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
254
|
-
Authorization: `Basic ${encodedData}`
|
|
255
|
-
},
|
|
256
|
-
method: 'POST',
|
|
257
|
-
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
258
|
-
})
|
|
259
|
-
.then((response) => response.json())
|
|
260
|
-
.then((json) => {
|
|
261
|
-
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
262
|
-
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
263
|
-
setAccessToken(json.access_token)
|
|
264
|
-
})
|
|
248
|
+
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
249
|
+
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
250
|
+
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
251
|
+
fetch(url, {
|
|
252
|
+
headers: {
|
|
253
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
254
|
+
Authorization: `Basic ${encodedData}`
|
|
255
|
+
},
|
|
256
|
+
method: 'POST',
|
|
257
|
+
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
258
|
+
})
|
|
259
|
+
.then((response) => response.json())
|
|
260
|
+
.then((json) => {
|
|
261
|
+
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
262
|
+
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
263
|
+
setAccessToken(json.access_token)
|
|
264
|
+
})
|
|
265
265
|
.catch((e) => console.log(e))*/
|
|
266
266
|
// hello
|
|
267
267
|
var url = 'https://beam.mjhlifesciences.com/api/cvent/token';
|
|
@@ -14,19 +14,21 @@ import './web.dom.iterable-4439f05a.js';
|
|
|
14
14
|
import './typeof-af9c50d8.js';
|
|
15
15
|
import './_is-array-58e95429.js';
|
|
16
16
|
import React, { useState, useEffect } from 'react';
|
|
17
|
-
import './
|
|
17
|
+
import './events-6c3a7a63.js';
|
|
18
|
+
import './index-f7fb1e25.js';
|
|
18
19
|
import 'prop-types';
|
|
19
20
|
import 'react-bootstrap/Row';
|
|
20
21
|
import 'react-bootstrap/Col';
|
|
21
|
-
import './moment-
|
|
22
|
+
import './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
27
|
import 'react-dom';
|
|
27
28
|
import './index-51a80699.js';
|
|
29
|
+
import './urlFor.js';
|
|
28
30
|
import './index-6c12bdd5.js';
|
|
29
|
-
import './main-
|
|
31
|
+
import './main-747e7d25.js';
|
|
30
32
|
import './entities-7cc3bf45.js';
|
|
31
33
|
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
32
34
|
import './stringify-4330ccdc.js';
|
|
@@ -41,9 +43,9 @@ import './GroupDeck.js';
|
|
|
41
43
|
import 'react-bootstrap';
|
|
42
44
|
import './iconBase-602d52fe.js';
|
|
43
45
|
import './index.esm-3fdda599.js';
|
|
44
|
-
import { g as getSerializers } from './index-
|
|
46
|
+
import { g as getSerializers } from './index-7aec473d.js';
|
|
45
47
|
import './util-7700fc59.js';
|
|
46
|
-
import './brightcove-react-player-loader.es-
|
|
48
|
+
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
47
49
|
import 'next/head';
|
|
48
50
|
import 'react-share';
|
|
49
51
|
import './SocialShare.js';
|
|
@@ -51,7 +53,7 @@ import './_object-to-array-7e804fce.js';
|
|
|
51
53
|
import 'react-bootstrap/Pagination';
|
|
52
54
|
import Button from 'react-bootstrap/Button';
|
|
53
55
|
import 'react-bootstrap/Figure';
|
|
54
|
-
import { m as momentTimezone } from './index-
|
|
56
|
+
import { m as momentTimezone } from './index-c00b0bbb.js';
|
|
55
57
|
|
|
56
58
|
var ExternalResources = function ExternalResources(props) {
|
|
57
59
|
var resources = props.resources,
|
package/dist/esm/Feature.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import './index-51a80699.js';
|
|
4
|
+
import urlFor from './urlFor.js';
|
|
5
|
+
import { m as main_40 } from './main-747e7d25.js';
|
|
5
6
|
import Carousel from 'react-bootstrap/Carousel';
|
|
6
7
|
|
|
7
8
|
//Feature query to be used
|
|
@@ -16,7 +17,8 @@ import Carousel from 'react-bootstrap/Carousel';
|
|
|
16
17
|
var Feature = function Feature(props) {
|
|
17
18
|
var dataset = props.dataset;
|
|
18
19
|
var _props$controls = props.controls,
|
|
19
|
-
controls = _props$controls === undefined ? false : _props$controls
|
|
20
|
+
controls = _props$controls === undefined ? false : _props$controls,
|
|
21
|
+
client = props.client;
|
|
20
22
|
|
|
21
23
|
|
|
22
24
|
var checkUrlIsExternal = function checkUrlIsExternal(url) {
|
|
@@ -26,15 +28,9 @@ var Feature = function Feature(props) {
|
|
|
26
28
|
return false;
|
|
27
29
|
};
|
|
28
30
|
|
|
29
|
-
var urlFor = function urlFor(source) {
|
|
30
|
-
var client = props.client;
|
|
31
|
-
|
|
32
|
-
var builder = imageUrlBuilder(client);
|
|
33
|
-
return builder.image(source).auto('format');
|
|
34
|
-
};
|
|
35
31
|
//image width updated.
|
|
36
32
|
var imageWidth = 450;
|
|
37
|
-
if (
|
|
33
|
+
if (main_40) {
|
|
38
34
|
imageWidth = 225;
|
|
39
35
|
}
|
|
40
36
|
|
|
@@ -95,7 +91,7 @@ var Feature = function Feature(props) {
|
|
|
95
91
|
React.createElement('img', {
|
|
96
92
|
style: { maxHeight: '375px', minHeight: '300px', objectFit: 'cover', paddingLeft: '50%' },
|
|
97
93
|
className: 'd-block w-100',
|
|
98
|
-
src: urlFor(feature_img
|
|
94
|
+
src: urlFor({ client: client, source: feature_img, imageWidth: imageWidth }),
|
|
99
95
|
alt: feature_alt
|
|
100
96
|
}),
|
|
101
97
|
React.createElement(
|
package/dist/esm/ForbesHero.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 './slicedToArray-641f241f.js';
|
|
13
14
|
import { A as AuthorComponent } from './AuthorComponent-8ffd4679.js';
|
|
@@ -20,15 +21,12 @@ var fbsHero = function fbsHero(props) {
|
|
|
20
21
|
|
|
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 });
|
|
29
|
+
|
|
32
30
|
topArticleAltText = topArticle.thumbnail.asset.originalFileName;
|
|
33
31
|
} else if (props.thumbnail) {
|
|
34
32
|
topArticleThumbnail = props.thumbnail;
|
|
@@ -84,7 +82,7 @@ var fbsHero = function fbsHero(props) {
|
|
|
84
82
|
var articleThumbnail = '';
|
|
85
83
|
var articleAltText = article.title;
|
|
86
84
|
if (article.thumbnail && article.thumbnail.asset) {
|
|
87
|
-
articleThumbnail = urlFor(article.thumbnail.asset
|
|
85
|
+
articleThumbnail = urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 250 });
|
|
88
86
|
articleAltText = article.thumbnail.asset.originalFileName;
|
|
89
87
|
} else if (props.thumbnail) {
|
|
90
88
|
articleThumbnail = props.thumbnail;
|
|
@@ -127,7 +125,7 @@ var fbsHero = function fbsHero(props) {
|
|
|
127
125
|
React.createElement(
|
|
128
126
|
'style',
|
|
129
127
|
{ jsx: 'true' },
|
|
130
|
-
'\n .author-wrapper {\n text-align: center;\n }\n .article-hero {\n margin-bottom: 1rem;\n border-bottom: 1px solid #ddd;\n padding-bottom: 0.5rem;\n }\n .fbs-top-article {\n width: 100%;\n margin-bottom: 1rem;\n padding-bottom: 1rem;\n border-bottom: 1px solid #ddd;\n }\n .fbs-top-article img {\n width: 100%;\n\n max-height:
|
|
128
|
+
'\n .author-wrapper {\n text-align: center;\n }\n .article-hero {\n margin-bottom: 1rem;\n border-bottom: 1px solid #ddd;\n padding-bottom: 0.5rem;\n }\n .fbs-top-article {\n width: 100%;\n margin-bottom: 1rem;\n padding-bottom: 1rem;\n border-bottom: 1px solid #ddd;\n }\n .fbs-top-article img {\n width: 100%;\n\n max-height: 400px;\n min-height: 275px;\n object-fit: cover;\n }\n\n .fbs-top-article--body {\n }\n .fbs-top-article--body h1 {\n color: #252525 !important;\n font-size: 1.6rem;\n font-weight: bold;\n text-align: center;\n margin-top: 1rem;\n }\n .fbs-top-article--body p {\n text-align: center;\n margin-bottom: 0;\n color: #252525;\n }\n .fbs-top-article--body p:first-of-type {\n font-size: 0.9rem;\n }\n .fbs-sub-article-container {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n\n padding-top: 1.75rem;\n margin-left: -1rem;\n margin-rigth: -1rem;\n }\n .fbs-sub-article {\n width: calc(50% - 2rem);\n min-width: 350px;\n display: flex;\n flex-direction: row;\n flex: 1 1 auto;\n margin: 0 1rem 1.75rem;\n }\n .fbs-sub-article img {\n margin-right: 1rem;\n width: 145px;\n min-width: 145px;\n max-height: 100px;\n object-fit: cover;\n }\n .fbs-sub-article p {\n margin-bottom: 0;\n font-size: 0.8rem;\n color: #252525;\n }\n .fbs-sub-article .fbs-sub-article--title {\n font-weight: bold;\n font-size: 1rem;\n color: #252525;\n }\n '
|
|
131
129
|
)
|
|
132
130
|
);
|
|
133
131
|
};
|
package/dist/esm/GridContent.js
CHANGED
|
@@ -14,23 +14,25 @@ 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 { l as lib_3 } from './index-f7fb1e25.js';
|
|
18
19
|
import 'prop-types';
|
|
19
20
|
import Container from 'react-bootstrap/Container';
|
|
20
21
|
import Row from 'react-bootstrap/Row';
|
|
21
22
|
import Col from 'react-bootstrap/Col';
|
|
22
23
|
import Card from 'react-bootstrap/Card';
|
|
23
|
-
import { m as moment } from './moment-
|
|
24
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
24
25
|
import { withRouter } from 'next/router';
|
|
25
26
|
import './isSymbol-1981418f.js';
|
|
26
27
|
import { d as debounce_1 } from './debounce-9207d8ee.js';
|
|
27
28
|
import './toNumber-2f7a84cd.js';
|
|
28
|
-
import { I as InfiniteScroll } from './index.es-
|
|
29
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
29
30
|
import 'react-dom';
|
|
30
31
|
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
31
|
-
import
|
|
32
|
+
import './index-51a80699.js';
|
|
33
|
+
import urlFor from './urlFor.js';
|
|
32
34
|
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
33
|
-
import { m as
|
|
35
|
+
import { m as main_40 } from './main-747e7d25.js';
|
|
34
36
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
35
37
|
import './slicedToArray-641f241f.js';
|
|
36
38
|
import './stringify-4330ccdc.js';
|
|
@@ -38,9 +40,9 @@ import './asyncToGenerator-fc1c2e29.js';
|
|
|
38
40
|
import './Segment.js';
|
|
39
41
|
import './Beam.js';
|
|
40
42
|
import './AdSlot.js';
|
|
41
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
43
|
+
import { A as ADInfeed } from './ADInfeed-427022e9.js';
|
|
42
44
|
import { l as lodash } from './lodash-ec8c6b48.js';
|
|
43
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
45
|
+
import { A as ADlgInfeed } from './ADlgInfeed-28d3f944.js';
|
|
44
46
|
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
45
47
|
import { g as get_1 } from './get-1e515072.js';
|
|
46
48
|
import './eq-b470f743.js';
|
|
@@ -61,7 +63,7 @@ var GridContent = function (_React$Component) {
|
|
|
61
63
|
args[_key] = arguments[_key];
|
|
62
64
|
}
|
|
63
65
|
|
|
64
|
-
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = GridContent.__proto__ || _Object$getPrototypeOf(GridContent)).call.apply(_ref, [this].concat(args))), _this), _this.page = _this.props.page, _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord, _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.state = {
|
|
66
|
+
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = GridContent.__proto__ || _Object$getPrototypeOf(GridContent)).call.apply(_ref, [this].concat(args))), _this), _this.page = _this.props.page, _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord, _this.query = _this.props.query, _this.params = _this.props.params, _this.client = _this.props.client, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.state = {
|
|
65
67
|
data: _this.data,
|
|
66
68
|
per: _this.params ? _this.params.to : 2,
|
|
67
69
|
page: _this.props.currentPage || 1,
|
|
@@ -148,17 +150,16 @@ var GridContent = function (_React$Component) {
|
|
|
148
150
|
}
|
|
149
151
|
});
|
|
150
152
|
});
|
|
151
|
-
}, _this.urlFor = function (source) {
|
|
152
|
-
var client = _this.props.client;
|
|
153
|
-
|
|
154
|
-
var builder = imageUrlBuilder(client);
|
|
155
|
-
return builder.image(source).auto('format');
|
|
156
153
|
}, _this.renderCardImage = function (row, page) {
|
|
157
154
|
if (row.thumbnail && row.thumbnail.asset) {
|
|
158
|
-
var url =
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
155
|
+
var url = urlFor({
|
|
156
|
+
client: _this.client,
|
|
157
|
+
source: row.thumbnail,
|
|
158
|
+
imageHeight: _this.props.imageHeight || null,
|
|
159
|
+
imageWidth: _this.props.imageWidth || null,
|
|
160
|
+
imageFit: _this.props.imageFit || null
|
|
161
|
+
});
|
|
162
|
+
return url;
|
|
162
163
|
} else {
|
|
163
164
|
return _this.defaultImage;
|
|
164
165
|
}
|
|
@@ -197,12 +198,12 @@ var GridContent = function (_React$Component) {
|
|
|
197
198
|
path += '?' + queryString;
|
|
198
199
|
}
|
|
199
200
|
|
|
200
|
-
|
|
201
|
+
pageNumber = parseInt(pageNumber);
|
|
201
202
|
|
|
202
|
-
|
|
203
|
-
|
|
203
|
+
// const index = Number(itemIndex)
|
|
204
|
+
// const perPage = Number(itemsPerPage)
|
|
204
205
|
|
|
205
|
-
pageNumber = Math.ceil((index + 1) / perPage)
|
|
206
|
+
// pageNumber = Math.ceil((index + 1) / perPage)
|
|
206
207
|
|
|
207
208
|
if (currentPage !== pageNumber) {
|
|
208
209
|
lib_3.refresh();
|
|
@@ -534,7 +535,7 @@ var GridContent = function (_React$Component) {
|
|
|
534
535
|
)
|
|
535
536
|
),
|
|
536
537
|
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
537
|
-
|
|
538
|
+
main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
538
539
|
);
|
|
539
540
|
} else {
|
|
540
541
|
return React.createElement(
|
|
@@ -598,7 +599,7 @@ var GridContent = function (_React$Component) {
|
|
|
598
599
|
)
|
|
599
600
|
),
|
|
600
601
|
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
601
|
-
|
|
602
|
+
main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
602
603
|
);
|
|
603
604
|
}
|
|
604
605
|
} else if (row._type === 'lg-infeed' && row.adUnit) {
|
|
@@ -686,7 +687,7 @@ var GridContent = function (_React$Component) {
|
|
|
686
687
|
)
|
|
687
688
|
),
|
|
688
689
|
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
689
|
-
|
|
690
|
+
main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
690
691
|
);
|
|
691
692
|
} else return null;
|
|
692
693
|
}) : React.createElement(
|
package/dist/esm/GridHero.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';
|
|
@@ -25,21 +26,11 @@ var GridHero = function GridHero(props) {
|
|
|
25
26
|
_props$subHeight = props.subHeight,
|
|
26
27
|
subHeight = _props$subHeight === undefined ? 270 : _props$subHeight;
|
|
27
28
|
|
|
28
|
-
var builder = imageUrlBuilder(client);
|
|
29
|
-
function urlFor(source) {
|
|
30
|
-
var imageWidth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
31
|
-
var imageHeight = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
32
|
-
|
|
33
|
-
var url = builder.image(source);
|
|
34
|
-
if (imageWidth) url = url.width(imageWidth);
|
|
35
|
-
if (imageHeight) url = url.height(imageHeight);
|
|
36
|
-
return url.auto('format').url();
|
|
37
|
-
}
|
|
38
29
|
|
|
39
30
|
var topArticleThumbnail = '';
|
|
40
31
|
var topArticleAltText = topArticle.title;
|
|
41
32
|
if (topArticle.thumbnail && topArticle.thumbnail.asset) {
|
|
42
|
-
topArticleThumbnail = urlFor(topArticle.thumbnail.asset, topWidth);
|
|
33
|
+
topArticleThumbnail = urlFor({ client: client, source: topArticle.thumbnail.asset, imageWidth: topWidth });
|
|
43
34
|
topArticleAltText = topArticle.thumbnail.asset.originalFileName;
|
|
44
35
|
} else if (props.thumbnail) {
|
|
45
36
|
topArticleThumbnail = props.thumbnail;
|
|
@@ -96,7 +87,7 @@ var GridHero = function GridHero(props) {
|
|
|
96
87
|
var articleThumbnail = '';
|
|
97
88
|
var articleAltText = article.title;
|
|
98
89
|
if (article.thumbnail && article.thumbnail.asset) {
|
|
99
|
-
articleThumbnail = urlFor(article.thumbnail.asset, subWidth, subHeight);
|
|
90
|
+
articleThumbnail = urlFor({ client: client, source: article.thumbnail.asset, imageWidth: subWidth, imageHeight: subHeight });
|
|
100
91
|
articleAltText = article.thumbnail.asset.originalFileName;
|
|
101
92
|
} else if (props.thumbnail) {
|
|
102
93
|
articleThumbnail = props.thumbnail;
|
package/dist/esm/GroupDeck.js
CHANGED
|
@@ -8,7 +8,8 @@ import './web.dom.iterable-4439f05a.js';
|
|
|
8
8
|
import { _ as _typeof } from './typeof-af9c50d8.js';
|
|
9
9
|
import './_is-array-58e95429.js';
|
|
10
10
|
import React, { useRef, useState, useEffect } from 'react';
|
|
11
|
-
import
|
|
11
|
+
import './index-51a80699.js';
|
|
12
|
+
import urlFor from './urlFor.js';
|
|
12
13
|
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
13
14
|
import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
14
15
|
import { s as smoothscroll } from './smoothscroll-0cd4c7a6.js';
|
|
@@ -34,11 +35,6 @@ var GroupDeck = function GroupDeck(props) {
|
|
|
34
35
|
scrollPosition = _useState6[0],
|
|
35
36
|
setScrollPosition = _useState6[1];
|
|
36
37
|
|
|
37
|
-
var urlFor = function urlFor(source, client) {
|
|
38
|
-
var builder = imageUrlBuilder(client);
|
|
39
|
-
return builder.image(source).auto('format');
|
|
40
|
-
};
|
|
41
|
-
|
|
42
38
|
useEffect(function () {
|
|
43
39
|
//IE11 Polyfill
|
|
44
40
|
smoothscroll.polyfill();
|
|
@@ -164,7 +160,7 @@ var GroupDeck = function GroupDeck(props) {
|
|
|
164
160
|
var thumbnail = void 0;
|
|
165
161
|
|
|
166
162
|
if (video.thumbnail && video.thumbnail.asset) {
|
|
167
|
-
thumbnail = urlFor(video.thumbnail, props.client);
|
|
163
|
+
thumbnail = urlFor({ source: video.thumbnail, client: props.client });
|
|
168
164
|
} else if (_typeof(video.thumbnail == 'string')) {
|
|
169
165
|
thumbnail = video.thumbnail;
|
|
170
166
|
} else {
|
|
@@ -238,7 +234,7 @@ var GroupDeck = function GroupDeck(props) {
|
|
|
238
234
|
var _url = '' + video.link;
|
|
239
235
|
var _thumbnail = void 0;
|
|
240
236
|
if (video.thumbnail && video.thumbnail.asset) {
|
|
241
|
-
_thumbnail = urlFor(video.thumbnail, props.client);
|
|
237
|
+
_thumbnail = urlFor({ source: video.thumbnail, client: props.client });
|
|
242
238
|
} else if (_typeof(video.thumbnail == 'string')) {
|
|
243
239
|
_thumbnail = video.thumbnail;
|
|
244
240
|
} else {
|