@mjhls/mjh-framework 1.0.504 → 1.0.506
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 +172 -172
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +3 -3
- package/dist/cjs/AD300x250x600.js +3 -3
- package/dist/cjs/AD728x90.js +4 -4
- package/dist/cjs/ADFloatingFooter.js +2 -2
- package/dist/cjs/ADGutter.js +2 -2
- package/dist/cjs/ADSponsoredResources.js +2 -2
- package/dist/cjs/ADWebcast.js +2 -2
- package/dist/cjs/ADWelcome.js +2 -2
- package/dist/cjs/AdSlot.js +2 -2
- package/dist/cjs/AdSlotsProvider.js +1 -1
- package/dist/cjs/ArticleQueue.js +35 -11
- package/dist/cjs/Auth.js +301 -250
- package/dist/cjs/CMEDeck.js +5 -5
- package/dist/cjs/Column3.js +4 -4
- package/dist/cjs/ConferenceArticleCard.js +16 -16
- package/dist/cjs/DeckContent.js +14 -14
- package/dist/cjs/DeckQueue.js +5 -5
- package/dist/cjs/{Dfp-fcdeabc4.js → Dfp-fbe32b96.js} +1 -1
- package/dist/cjs/EventsDeck.js +22 -22
- package/dist/cjs/ExternalResources.js +4 -4
- package/dist/cjs/Feature.js +2 -2
- package/dist/cjs/ForbesHero.js +1 -1
- package/dist/cjs/GridContent.js +9 -9
- package/dist/cjs/GridHero.js +1 -1
- package/dist/cjs/GroupDeck.js +4 -4
- package/dist/cjs/HamMagazine.js +11 -11
- package/dist/cjs/HorizontalHero.js +1 -1
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/IssueLanding.js +35 -35
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +2 -2
- package/dist/cjs/MasterDeck.js +15 -15
- package/dist/cjs/NavMagazine.js +12 -12
- package/dist/cjs/NavNative.js +11 -11
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/OncliveLargeHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +6 -6
- package/dist/cjs/PublicationLanding.js +33 -33
- package/dist/cjs/QueueDeckExpanded.js +7 -7
- package/dist/cjs/RelatedContent.js +29 -29
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/TemplateNormal.js +2 -2
- package/dist/cjs/Ustream.js +2 -2
- package/dist/cjs/VerticalHero.js +1 -1
- package/dist/cjs/VideoSeriesFilter.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +3 -3
- package/dist/cjs/View.js +12 -12
- package/dist/cjs/YahooHero.js +1 -1
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +1 -1
- package/dist/cjs/getSerializers.js +4 -4
- package/dist/cjs/{getTargeting-86e68d62.js → getTargeting-b15993cb.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-1469fb8d.js → index-5be2866f.js} +1 -1
- package/dist/cjs/{index-fa3cec70.js → index-f7ee1612.js} +4 -6
- package/dist/cjs/{index.es-9110add6.js → index.es-ab3f2690.js} +3 -1
- package/dist/cjs/index.js +8 -8
- package/dist/cjs/{main-00905561.js → main-bc4db521.js} +61 -30
- package/dist/cjs/{moment-3cf060f6.js → moment-66a6a284.js} +5 -5
- package/dist/cjs/urlFor.js +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +3 -3
- package/dist/esm/AD300x250x600.js +3 -3
- package/dist/esm/AD728x90.js +4 -4
- package/dist/esm/ADFloatingFooter.js +2 -2
- package/dist/esm/ADGutter.js +2 -2
- package/dist/esm/ADSponsoredResources.js +2 -2
- package/dist/esm/ADWebcast.js +2 -2
- package/dist/esm/ADWelcome.js +2 -2
- package/dist/esm/AdSlot.js +2 -2
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/ArticleQueue.js +35 -11
- package/dist/esm/Auth.js +301 -250
- package/dist/esm/CMEDeck.js +5 -5
- package/dist/esm/Column3.js +4 -4
- package/dist/esm/ConferenceArticleCard.js +16 -16
- package/dist/esm/DeckContent.js +14 -14
- package/dist/esm/DeckQueue.js +5 -5
- package/dist/esm/{Dfp-58cfc45a.js → Dfp-6d2b24a0.js} +1 -1
- package/dist/esm/EventsDeck.js +22 -22
- package/dist/esm/ExternalResources.js +4 -4
- package/dist/esm/Feature.js +2 -2
- package/dist/esm/ForbesHero.js +1 -1
- package/dist/esm/GridContent.js +9 -9
- package/dist/esm/GridHero.js +1 -1
- package/dist/esm/GroupDeck.js +4 -4
- package/dist/esm/HamMagazine.js +11 -11
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/IssueLanding.js +35 -35
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +2 -2
- package/dist/esm/MasterDeck.js +15 -15
- package/dist/esm/NavMagazine.js +12 -12
- package/dist/esm/NavNative.js +11 -11
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +1 -1
- package/dist/esm/PartnerDetailListing.js +6 -6
- package/dist/esm/PublicationLanding.js +33 -33
- package/dist/esm/QueueDeckExpanded.js +7 -7
- package/dist/esm/RelatedContent.js +29 -29
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/TemplateNormal.js +2 -2
- package/dist/esm/Ustream.js +2 -2
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoSeriesFilter.js +1 -1
- package/dist/esm/VideoSeriesListing.js +3 -3
- package/dist/esm/View.js +12 -12
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +1 -1
- package/dist/esm/getSerializers.js +4 -4
- package/dist/esm/{getTargeting-1f2c61e3.js → getTargeting-1a0bd08d.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-3f4dd6f2.js → index-93ec3c59.js} +4 -6
- package/dist/esm/{index-f8655eb3.js → index-d2f90501.js} +1 -1
- package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
- package/dist/esm/index.js +8 -8
- package/dist/esm/{main-adf6ec37.js → main-7255814e.js} +60 -29
- package/dist/esm/{moment-49ae13fa.js → moment-12415288.js} +5 -5
- package/dist/esm/urlFor.js +1 -1
- package/package.json +107 -107
- /package/dist/cjs/{ADInfeed-be4cdcbe.js → ADInfeed-0ce661fa.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-fc008889.js → ADlgInfeed-3e685576.js} +0 -0
- /package/dist/esm/{ADInfeed-15266562.js → ADInfeed-c651007e.js} +0 -0
- /package/dist/esm/{ADlgInfeed-64346b44.js → ADlgInfeed-9ff12f94.js} +0 -0
package/dist/esm/MasterDeck.js
CHANGED
|
@@ -13,30 +13,30 @@ import './web.dom.iterable-46c95e52.js';
|
|
|
13
13
|
import './typeof-5f046efd.js';
|
|
14
14
|
import './_is-array-dd5523d6.js';
|
|
15
15
|
import React__default from 'react';
|
|
16
|
-
import { l as lib_3 } from './index-
|
|
16
|
+
import { l as lib_3 } from './index-93ec3c59.js';
|
|
17
17
|
import 'prop-types';
|
|
18
18
|
import Container from 'react-bootstrap/Container';
|
|
19
19
|
import 'react-bootstrap/Row';
|
|
20
20
|
import 'react-bootstrap/Col';
|
|
21
21
|
import 'react-bootstrap/Card';
|
|
22
|
-
import './moment-
|
|
22
|
+
import './moment-12415288.js';
|
|
23
23
|
import { withRouter } from 'next/router';
|
|
24
24
|
import './isSymbol-c1b9be80.js';
|
|
25
25
|
import { d as debounce_1 } from './debounce-8cd9e09c.js';
|
|
26
|
-
import { I as InfiniteScroll } from './index.es-
|
|
26
|
+
import { I as InfiniteScroll } from './index.es-938a3a58.js';
|
|
27
27
|
import 'react-dom';
|
|
28
28
|
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
29
29
|
import './index-51a80699.js';
|
|
30
|
-
import { m as
|
|
30
|
+
import { m as main_39 } from './main-7255814e.js';
|
|
31
31
|
import './slicedToArray-f1e40361.js';
|
|
32
32
|
import './stringify-e30bc114.js';
|
|
33
33
|
import { _ as _Promise } from './asyncToGenerator-0379e924.js';
|
|
34
34
|
import './_set-species-6f64f1c1.js';
|
|
35
35
|
import './beam-dd2b10c0.js';
|
|
36
36
|
import './AdSlot.js';
|
|
37
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
37
|
+
import { A as ADInfeed } from './ADInfeed-c651007e.js';
|
|
38
38
|
import { l as lodash } from './lodash-17fdfebb.js';
|
|
39
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
39
|
+
import { A as ADlgInfeed } from './ADlgInfeed-9ff12f94.js';
|
|
40
40
|
|
|
41
41
|
var MasterDeck = function (_React$Component) {
|
|
42
42
|
_inherits(MasterDeck, _React$Component);
|
|
@@ -187,14 +187,14 @@ var MasterDeck = function (_React$Component) {
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
// please leave this for later debug purpose : Yong Jun.
|
|
190
|
-
/* console.log('page change reported', {
|
|
191
|
-
currentPage: currentPage,
|
|
192
|
-
pageNumber: pageNumber,
|
|
193
|
-
pathname: pathname,
|
|
194
|
-
path: path,
|
|
195
|
-
newPath: newPath,
|
|
196
|
-
firstPage: pageNumber === 1,
|
|
197
|
-
queryString: queryString
|
|
190
|
+
/* console.log('page change reported', {
|
|
191
|
+
currentPage: currentPage,
|
|
192
|
+
pageNumber: pageNumber,
|
|
193
|
+
pathname: pathname,
|
|
194
|
+
path: path,
|
|
195
|
+
newPath: newPath,
|
|
196
|
+
firstPage: pageNumber === 1,
|
|
197
|
+
queryString: queryString
|
|
198
198
|
}) */
|
|
199
199
|
|
|
200
200
|
if (pageview) {
|
|
@@ -310,7 +310,7 @@ var MasterDeck = function (_React$Component) {
|
|
|
310
310
|
'div',
|
|
311
311
|
null,
|
|
312
312
|
React__default.createElement(_this2.Deck, { data: row, variant: variant, index: index, client: _this.props.client, defaultImage: _this.defaultImage }),
|
|
313
|
-
|
|
313
|
+
main_39 && _this.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React__default.createElement(
|
|
314
314
|
'div',
|
|
315
315
|
{ className: 'ad-container', style: { margin: '0 auto' } },
|
|
316
316
|
_this.renderMobileAd(index, numberOfItemsBeforeAd, _this.rightItems)
|
package/dist/esm/NavMagazine.js
CHANGED
|
@@ -7,7 +7,7 @@ import './web.dom.iterable-46c95e52.js';
|
|
|
7
7
|
import React__default, { useRef, useState, useEffect } from 'react';
|
|
8
8
|
import 'prop-types';
|
|
9
9
|
import Container from 'react-bootstrap/Container';
|
|
10
|
-
import { a as
|
|
10
|
+
import { a as main_40 } from './main-7255814e.js';
|
|
11
11
|
import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
12
12
|
import './stringify-e30bc114.js';
|
|
13
13
|
import './asyncToGenerator-0379e924.js';
|
|
@@ -28,16 +28,16 @@ import { N as NavFooter } from './NavFooter-e27bd93b.js';
|
|
|
28
28
|
import { S as SocialNavFooter } from './SocialNavFooter-4fb16720.js';
|
|
29
29
|
|
|
30
30
|
var NavMagazine = function NavMagazine(props) {
|
|
31
|
-
/*
|
|
32
|
-
Example Nav with acceptable props
|
|
33
|
-
|
|
34
|
-
showLogin
|
|
35
|
-
user={props.cache.user}
|
|
36
|
-
logo={props.settings.logo}
|
|
37
|
-
dataObject={props.cache.mainNavCache}
|
|
38
|
-
website={website}
|
|
39
|
-
subNav={props.cache.subNavCache}
|
|
40
|
-
/>
|
|
31
|
+
/*
|
|
32
|
+
Example Nav with acceptable props
|
|
33
|
+
<MagazineNav
|
|
34
|
+
showLogin
|
|
35
|
+
user={props.cache.user}
|
|
36
|
+
logo={props.settings.logo}
|
|
37
|
+
dataObject={props.cache.mainNavCache}
|
|
38
|
+
website={website}
|
|
39
|
+
subNav={props.cache.subNavCache}
|
|
40
|
+
/>
|
|
41
41
|
*/
|
|
42
42
|
|
|
43
43
|
var logo = props.logo,
|
|
@@ -237,7 +237,7 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
237
237
|
),
|
|
238
238
|
React__default.createElement(
|
|
239
239
|
Navbar,
|
|
240
|
-
{ id: 'navbar-ham', className:
|
|
240
|
+
{ id: 'navbar-ham', className: main_40 ? 'bottom-nav ios-nav' : 'bottom-nav ', variant: 'dark', expand: 'xl', bg: 'primary', sticky: 'top', ref: navRef },
|
|
241
241
|
React__default.createElement(
|
|
242
242
|
Container,
|
|
243
243
|
{ className: 'mobile-nav android-nav' },
|
package/dist/esm/NavNative.js
CHANGED
|
@@ -7,7 +7,7 @@ import './web.dom.iterable-46c95e52.js';
|
|
|
7
7
|
import React__default, { useRef, useState, useEffect } from 'react';
|
|
8
8
|
import 'prop-types';
|
|
9
9
|
import Container from 'react-bootstrap/Container';
|
|
10
|
-
import { a as
|
|
10
|
+
import { a as main_40 } from './main-7255814e.js';
|
|
11
11
|
import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
12
12
|
import './stringify-e30bc114.js';
|
|
13
13
|
import './asyncToGenerator-0379e924.js';
|
|
@@ -25,15 +25,15 @@ import { N as NavFooter } from './NavFooter-e27bd93b.js';
|
|
|
25
25
|
import { S as SocialNavFooter } from './SocialNavFooter-4fb16720.js';
|
|
26
26
|
|
|
27
27
|
var NavNative = function NavNative(props) {
|
|
28
|
-
/*
|
|
29
|
-
Example Nav with acceptable props
|
|
30
|
-
|
|
31
|
-
showLogin
|
|
32
|
-
logo={props.settings.logo}
|
|
33
|
-
dataObject={props.cache.mainNavCache}
|
|
34
|
-
website={website}
|
|
35
|
-
subNav={props.cache.subNavCache}
|
|
36
|
-
/>
|
|
28
|
+
/*
|
|
29
|
+
Example Nav with acceptable props
|
|
30
|
+
<MagazineNav
|
|
31
|
+
showLogin
|
|
32
|
+
logo={props.settings.logo}
|
|
33
|
+
dataObject={props.cache.mainNavCache}
|
|
34
|
+
website={website}
|
|
35
|
+
subNav={props.cache.subNavCache}
|
|
36
|
+
/>
|
|
37
37
|
*/
|
|
38
38
|
|
|
39
39
|
var logo = props.logo,
|
|
@@ -87,7 +87,7 @@ var NavNative = function NavNative(props) {
|
|
|
87
87
|
React__default.createElement(
|
|
88
88
|
Navbar,
|
|
89
89
|
{
|
|
90
|
-
className:
|
|
90
|
+
className: main_40 ? 'bottom-nav ios-nav' : 'bottom-nav android-nav',
|
|
91
91
|
variant: 'dark',
|
|
92
92
|
expand: 'lg',
|
|
93
93
|
bg: 'primary',
|
package/dist/esm/OncliveHero.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { m as moment } from './moment-
|
|
3
|
+
import { m as moment } from './moment-12415288.js';
|
|
4
4
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
5
5
|
import './iconBase-6ee2f2fb.js';
|
|
6
6
|
import 'react-bootstrap/Badge';
|
|
@@ -4,7 +4,7 @@ import './core.get-iterator-method-f5c0d66a.js';
|
|
|
4
4
|
import './web.dom.iterable-46c95e52.js';
|
|
5
5
|
import React__default from 'react';
|
|
6
6
|
import 'prop-types';
|
|
7
|
-
import { m as moment } from './moment-
|
|
7
|
+
import { m as moment } from './moment-12415288.js';
|
|
8
8
|
import 'react-dom';
|
|
9
9
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
10
10
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
@@ -11,19 +11,19 @@ import './web.dom.iterable-46c95e52.js';
|
|
|
11
11
|
import './typeof-5f046efd.js';
|
|
12
12
|
import './_is-array-dd5523d6.js';
|
|
13
13
|
import React__default from 'react';
|
|
14
|
-
import './index-
|
|
14
|
+
import './index-93ec3c59.js';
|
|
15
15
|
import 'prop-types';
|
|
16
16
|
import 'react-bootstrap/Card';
|
|
17
|
-
import { m as moment } from './moment-
|
|
17
|
+
import { m as moment } from './moment-12415288.js';
|
|
18
18
|
import 'next/router';
|
|
19
19
|
import './isSymbol-c1b9be80.js';
|
|
20
20
|
import './debounce-8cd9e09c.js';
|
|
21
|
-
import './index.es-
|
|
21
|
+
import './index.es-938a3a58.js';
|
|
22
22
|
import 'react-dom';
|
|
23
23
|
import './visibility-sensor-0baa4eea.js';
|
|
24
24
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
25
25
|
import './index-5f9f807a.js';
|
|
26
|
-
import './main-
|
|
26
|
+
import './main-7255814e.js';
|
|
27
27
|
import './entities-7cc3bf45.js';
|
|
28
28
|
import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
29
29
|
import './stringify-e30bc114.js';
|
|
@@ -31,9 +31,9 @@ import { a as _asyncToGenerator, r as regenerator, _ as _Promise } from './async
|
|
|
31
31
|
import './_set-species-6f64f1c1.js';
|
|
32
32
|
import './beam-dd2b10c0.js';
|
|
33
33
|
import './AdSlot.js';
|
|
34
|
-
import './ADInfeed-
|
|
34
|
+
import './ADInfeed-c651007e.js';
|
|
35
35
|
import './lodash-17fdfebb.js';
|
|
36
|
-
import './ADlgInfeed-
|
|
36
|
+
import './ADlgInfeed-9ff12f94.js';
|
|
37
37
|
import './AuthorComponent-158226c9.js';
|
|
38
38
|
import { B as BlockContent } from './BlockContent-a614acdf.js';
|
|
39
39
|
import './smoothscroll-4b699764.js';
|
|
@@ -367,39 +367,39 @@ module.exports = { "default": set, __esModule: true };
|
|
|
367
367
|
|
|
368
368
|
var _Set = unwrapExports(set$1);
|
|
369
369
|
|
|
370
|
-
/* usage & query
|
|
371
|
-
const Publication = (props) => {
|
|
372
|
-
const { cache, pub, year } = props
|
|
373
|
-
|
|
374
|
-
const targeting = {
|
|
375
|
-
content_placement: [`/journals/${pub.identifier.current}`],
|
|
376
|
-
document_url: [`/journals/${pub.identifier.current}`],
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
return (
|
|
380
|
-
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
381
|
-
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
382
|
-
</Shell>
|
|
383
|
-
)
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
Publication.getInitialProps = async (ctx) => {
|
|
387
|
-
const { query } = ctx
|
|
388
|
-
const {
|
|
389
|
-
query: { year },
|
|
390
|
-
} = ctx
|
|
391
|
-
const pub = await client.fetch(getQuery('publication'), query)
|
|
392
|
-
const builder = imageUrlBuilder(client)
|
|
393
|
-
const urlFor = (source) => {
|
|
394
|
-
return builder.image(source)
|
|
395
|
-
}
|
|
396
|
-
pub.issues.map((issue) => {
|
|
397
|
-
issue.thumbnail = urlFor(issue.thumbnail).url()
|
|
398
|
-
})
|
|
399
|
-
return { pub, year }
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
export default Publication
|
|
370
|
+
/* usage & query
|
|
371
|
+
const Publication = (props) => {
|
|
372
|
+
const { cache, pub, year } = props
|
|
373
|
+
|
|
374
|
+
const targeting = {
|
|
375
|
+
content_placement: [`/journals/${pub.identifier.current}`],
|
|
376
|
+
document_url: [`/journals/${pub.identifier.current}`],
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
return (
|
|
380
|
+
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
381
|
+
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
382
|
+
</Shell>
|
|
383
|
+
)
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
Publication.getInitialProps = async (ctx) => {
|
|
387
|
+
const { query } = ctx
|
|
388
|
+
const {
|
|
389
|
+
query: { year },
|
|
390
|
+
} = ctx
|
|
391
|
+
const pub = await client.fetch(getQuery('publication'), query)
|
|
392
|
+
const builder = imageUrlBuilder(client)
|
|
393
|
+
const urlFor = (source) => {
|
|
394
|
+
return builder.image(source)
|
|
395
|
+
}
|
|
396
|
+
pub.issues.map((issue) => {
|
|
397
|
+
issue.thumbnail = urlFor(issue.thumbnail).url()
|
|
398
|
+
})
|
|
399
|
+
return { pub, year }
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
export default Publication
|
|
403
403
|
*/
|
|
404
404
|
|
|
405
405
|
var PublicationLanding = function PublicationLanding(props) {
|
|
@@ -9,19 +9,19 @@ import './_object-pie-33c40e79.js';
|
|
|
9
9
|
import { _ as _extends } from './extends-6e00b262.js';
|
|
10
10
|
import './web.dom.iterable-46c95e52.js';
|
|
11
11
|
import React__default, { useEffect, useState, useRef } from 'react';
|
|
12
|
-
import { l as lib_3 } from './index-
|
|
12
|
+
import { l as lib_3 } from './index-93ec3c59.js';
|
|
13
13
|
import 'prop-types';
|
|
14
14
|
import 'react-bootstrap/Card';
|
|
15
|
-
import { m as moment } from './moment-
|
|
15
|
+
import { m as moment } from './moment-12415288.js';
|
|
16
16
|
import { useRouter } from 'next/router';
|
|
17
17
|
import './isSymbol-c1b9be80.js';
|
|
18
18
|
import './debounce-8cd9e09c.js';
|
|
19
|
-
import { I as InfiniteScroll } from './index.es-
|
|
19
|
+
import { I as InfiniteScroll } from './index.es-938a3a58.js';
|
|
20
20
|
import 'react-dom';
|
|
21
21
|
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
22
22
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
23
23
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
24
|
-
import { m as
|
|
24
|
+
import { m as main_39 } from './main-7255814e.js';
|
|
25
25
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
26
26
|
import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
27
27
|
import './stringify-e30bc114.js';
|
|
@@ -29,9 +29,9 @@ import './asyncToGenerator-0379e924.js';
|
|
|
29
29
|
import './_set-species-6f64f1c1.js';
|
|
30
30
|
import './beam-dd2b10c0.js';
|
|
31
31
|
import './AdSlot.js';
|
|
32
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
32
|
+
import { A as ADInfeed } from './ADInfeed-c651007e.js';
|
|
33
33
|
import { l as lodash } from './lodash-17fdfebb.js';
|
|
34
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
34
|
+
import { A as ADlgInfeed } from './ADlgInfeed-9ff12f94.js';
|
|
35
35
|
import { A as AuthorComponent } from './AuthorComponent-158226c9.js';
|
|
36
36
|
import { Container, Media } from 'react-bootstrap';
|
|
37
37
|
|
|
@@ -461,7 +461,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
461
461
|
} else if (article._type === 'brandInsightAd' && article.adUnit) {
|
|
462
462
|
return React__default.createElement(ADInfeed, { index: index, infeedAd: article });
|
|
463
463
|
}
|
|
464
|
-
if (
|
|
464
|
+
if (main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0) {
|
|
465
465
|
return renderMobileAd(index, numberOfItemsBeforeAd, rightItems);
|
|
466
466
|
}
|
|
467
467
|
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { m as moment } from './moment-
|
|
3
|
+
import { m as moment } from './moment-12415288.js';
|
|
4
4
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
5
5
|
import 'react-bootstrap/Media';
|
|
6
6
|
|
|
7
|
-
/*
|
|
8
|
-
Sample query
|
|
9
|
-
let references = ''
|
|
10
|
-
if(article.taxonomyMapping.length > 0){
|
|
11
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
12
|
-
references = references + `references('${ref._ref}') `
|
|
13
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
14
|
-
references = references + ` && `
|
|
15
|
-
}
|
|
16
|
-
})
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
20
|
-
...,
|
|
21
|
-
title,
|
|
22
|
-
summary,
|
|
23
|
-
thumbnail,
|
|
24
|
-
url,
|
|
25
|
-
published,
|
|
26
|
-
authorMapping[]->,
|
|
27
|
-
contentCategory->
|
|
28
|
-
}`
|
|
29
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
30
|
-
|
|
31
|
-
Sample usage
|
|
32
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
33
|
-
|
|
34
|
-
|
|
7
|
+
/*
|
|
8
|
+
Sample query
|
|
9
|
+
let references = ''
|
|
10
|
+
if(article.taxonomyMapping.length > 0){
|
|
11
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
12
|
+
references = references + `references('${ref._ref}') `
|
|
13
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
14
|
+
references = references + ` && `
|
|
15
|
+
}
|
|
16
|
+
})
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
20
|
+
...,
|
|
21
|
+
title,
|
|
22
|
+
summary,
|
|
23
|
+
thumbnail,
|
|
24
|
+
url,
|
|
25
|
+
published,
|
|
26
|
+
authorMapping[]->,
|
|
27
|
+
contentCategory->
|
|
28
|
+
}`
|
|
29
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
30
|
+
|
|
31
|
+
Sample usage
|
|
32
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
33
|
+
|
|
34
|
+
|
|
35
35
|
*/
|
|
36
36
|
var RelatedContent = function RelatedContent(props) {
|
|
37
37
|
var client = props.client,
|
|
@@ -14,16 +14,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14
14
|
_ref$className = _ref.className,
|
|
15
15
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
16
16
|
|
|
17
|
-
/*
|
|
18
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
19
|
-
example:
|
|
20
|
-
<RelatedTopicDropdown
|
|
21
|
-
page='/clinical'
|
|
22
|
-
exclude="clinical"
|
|
23
|
-
className='mb-3'
|
|
24
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
25
|
-
subTaxonomies={props.subTaxonomies}
|
|
26
|
-
/>
|
|
17
|
+
/*
|
|
18
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
19
|
+
example:
|
|
20
|
+
<RelatedTopicDropdown
|
|
21
|
+
page='/clinical'
|
|
22
|
+
exclude="clinical"
|
|
23
|
+
className='mb-3'
|
|
24
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
25
|
+
subTaxonomies={props.subTaxonomies}
|
|
26
|
+
/>
|
|
27
27
|
*/
|
|
28
28
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
29
29
|
if (parentTaxonomy.identifier == exclude) {
|
package/dist/esm/SideFooter.js
CHANGED
|
@@ -33,8 +33,8 @@ var renderLink = function renderLink(row) {
|
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
var SideFooter = function SideFooter(props) {
|
|
36
|
-
/*
|
|
37
|
-
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
36
|
+
/*
|
|
37
|
+
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
38
38
|
*/
|
|
39
39
|
var _get = get_1(props, 'cache.siteSettingCache', {}),
|
|
40
40
|
socialLinks = _get.socialLinks,
|
|
@@ -5,7 +5,7 @@ import './_library-528f1934.js';
|
|
|
5
5
|
import './_iter-detect-6e099a34.js';
|
|
6
6
|
import './web.dom.iterable-46c95e52.js';
|
|
7
7
|
import React__default, { useState, useEffect } from 'react';
|
|
8
|
-
import './index-
|
|
8
|
+
import './index-93ec3c59.js';
|
|
9
9
|
import 'prop-types';
|
|
10
10
|
import Container from 'react-bootstrap/Container';
|
|
11
11
|
import 'react-bootstrap/Row';
|
|
@@ -13,7 +13,7 @@ import 'react-bootstrap/Col';
|
|
|
13
13
|
import { useRouter } from 'next/router';
|
|
14
14
|
import './isSymbol-c1b9be80.js';
|
|
15
15
|
import './debounce-8cd9e09c.js';
|
|
16
|
-
import './main-
|
|
16
|
+
import './main-7255814e.js';
|
|
17
17
|
import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
18
18
|
import './stringify-e30bc114.js';
|
|
19
19
|
import './asyncToGenerator-0379e924.js';
|
package/dist/esm/Ustream.js
CHANGED
|
@@ -3,7 +3,7 @@ import './_to-object-16fd8b46.js';
|
|
|
3
3
|
import './core.get-iterator-method-f5c0d66a.js';
|
|
4
4
|
import './web.dom.iterable-46c95e52.js';
|
|
5
5
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
6
|
-
import { m as
|
|
6
|
+
import { m as main_39 } from './main-7255814e.js';
|
|
7
7
|
import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
8
8
|
import './iconBase-6ee2f2fb.js';
|
|
9
9
|
import { d as IoIosOpen } from './index.esm-b97cf389.js';
|
|
@@ -64,7 +64,7 @@ var Ustream = function Ustream(_ref) {
|
|
|
64
64
|
} catch (err) {}
|
|
65
65
|
}, []);
|
|
66
66
|
//return nothing if mobile
|
|
67
|
-
if (
|
|
67
|
+
if (main_39) {
|
|
68
68
|
return null;
|
|
69
69
|
}
|
|
70
70
|
return React__default.createElement(
|
package/dist/esm/VerticalHero.js
CHANGED
|
@@ -5,7 +5,7 @@ import './_library-528f1934.js';
|
|
|
5
5
|
import './_iter-detect-6e099a34.js';
|
|
6
6
|
import './web.dom.iterable-46c95e52.js';
|
|
7
7
|
import React__default, { useState, useEffect } from 'react';
|
|
8
|
-
import { m as moment } from './moment-
|
|
8
|
+
import { m as moment } from './moment-12415288.js';
|
|
9
9
|
import { withRouter } from 'next/router';
|
|
10
10
|
import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
11
11
|
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-0379e924.js';
|
|
@@ -10,14 +10,14 @@ import './web.dom.iterable-46c95e52.js';
|
|
|
10
10
|
import './typeof-5f046efd.js';
|
|
11
11
|
import './_is-array-dd5523d6.js';
|
|
12
12
|
import React__default from 'react';
|
|
13
|
-
import { l as lib_3 } from './index-
|
|
13
|
+
import { l as lib_3 } from './index-93ec3c59.js';
|
|
14
14
|
import 'prop-types';
|
|
15
15
|
import Container from 'react-bootstrap/Container';
|
|
16
|
-
import './moment-
|
|
16
|
+
import './moment-12415288.js';
|
|
17
17
|
import { withRouter } from 'next/router';
|
|
18
18
|
import './isSymbol-c1b9be80.js';
|
|
19
19
|
import { d as debounce_1 } from './debounce-8cd9e09c.js';
|
|
20
|
-
import { I as InfiniteScroll } from './index.es-
|
|
20
|
+
import { I as InfiniteScroll } from './index.es-938a3a58.js';
|
|
21
21
|
import 'react-dom';
|
|
22
22
|
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
23
23
|
import './index-51a80699.js';
|
package/dist/esm/View.js
CHANGED
|
@@ -13,17 +13,17 @@ import './web.dom.iterable-46c95e52.js';
|
|
|
13
13
|
import { _ as _typeof } from './typeof-5f046efd.js';
|
|
14
14
|
import './_is-array-dd5523d6.js';
|
|
15
15
|
import React__default, { useState, useEffect } from 'react';
|
|
16
|
-
import { l as lib_3 } from './index-
|
|
16
|
+
import { l as lib_3 } from './index-93ec3c59.js';
|
|
17
17
|
import 'prop-types';
|
|
18
|
-
import { m as moment } from './moment-
|
|
18
|
+
import { m as moment } from './moment-12415288.js';
|
|
19
19
|
import 'next/router';
|
|
20
20
|
import './isSymbol-c1b9be80.js';
|
|
21
21
|
import './debounce-8cd9e09c.js';
|
|
22
|
-
import { I as InfiniteScroll } from './index.es-
|
|
22
|
+
import { I as InfiniteScroll } from './index.es-938a3a58.js';
|
|
23
23
|
import 'react-dom';
|
|
24
24
|
import './index-51a80699.js';
|
|
25
25
|
import './index-5f9f807a.js';
|
|
26
|
-
import { m as
|
|
26
|
+
import { m as main_39 } from './main-7255814e.js';
|
|
27
27
|
import './entities-7cc3bf45.js';
|
|
28
28
|
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
29
29
|
import { _ as _JSON$stringify } from './stringify-e30bc114.js';
|
|
@@ -53,7 +53,7 @@ import { I as InscreenSensor, i as includes_1 } from './InscreenSensor-67905ed5.
|
|
|
53
53
|
import getKeywords from './getKeywords.js';
|
|
54
54
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
55
55
|
import getQuery from './getQuery.js';
|
|
56
|
-
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-
|
|
56
|
+
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-1a0bd08d.js';
|
|
57
57
|
import urlFor from './urlFor.js';
|
|
58
58
|
|
|
59
59
|
var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
@@ -93,7 +93,7 @@ var getDocumentGroupUrl = function getDocumentGroupUrl(docGroup) {
|
|
|
93
93
|
return null;
|
|
94
94
|
}
|
|
95
95
|
var url = void 0;
|
|
96
|
-
if (docGroup.path.includes('/')) {
|
|
96
|
+
if (docGroup.path && docGroup.path.includes('/')) {
|
|
97
97
|
return "/" + docGroup.path;
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -154,9 +154,9 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
154
154
|
style: { display: 'flex', flexDirection: 'column', padding: '0 1rem', justifyContent: thumbnailUrl ? 'center' : 'flex-start', alignItems: 'center' } },
|
|
155
155
|
thumbnailUrl && React__default.createElement('img', { style: { maxWidth: '220px', maxHeight: '100px', marginTop: '1rem' }, src: thumbnailUrl, alt: name }),
|
|
156
156
|
!thumbnailUrl && React__default.createElement('p', {
|
|
157
|
-
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' :
|
|
157
|
+
style: { maxWidth: '315px', margin: '0', color: 'var(--primary)', textAlign: thumbnailUrl ? 'center' : main_39 ? 'left' : 'right', marginTop: '.25rem' },
|
|
158
158
|
dangerouslySetInnerHTML: { __html: name } }),
|
|
159
|
-
|
|
159
|
+
main_39 && !thumbnailUrl && React__default.createElement(
|
|
160
160
|
'style',
|
|
161
161
|
{ jsx: 'true' },
|
|
162
162
|
'\n a.doc-group {\n display: block !important;\n padding: 0!important;\n }\n '
|
|
@@ -763,7 +763,7 @@ var Article = function Article(props) {
|
|
|
763
763
|
React__default.createElement(
|
|
764
764
|
'div',
|
|
765
765
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
766
|
-
|
|
766
|
+
main_39 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
767
767
|
if (index === 0) {
|
|
768
768
|
return React__default.createElement(
|
|
769
769
|
'div',
|
|
@@ -818,7 +818,7 @@ var Article = function Article(props) {
|
|
|
818
818
|
renderIsiContent(props.article)
|
|
819
819
|
)
|
|
820
820
|
),
|
|
821
|
-
|
|
821
|
+
main_39 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
822
822
|
if (index > 0) {
|
|
823
823
|
return React__default.createElement(
|
|
824
824
|
'div',
|
|
@@ -916,7 +916,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
916
916
|
});
|
|
917
917
|
var targeting = getTargeting({ article: activeArticle, cpModificationRequired: cpModificationRequired, position: props.position, prevUrl: prevUrl });
|
|
918
918
|
|
|
919
|
-
if (!
|
|
919
|
+
if (!main_39) {
|
|
920
920
|
lib_3.getGoogletag().then(function (googletag) {
|
|
921
921
|
if (window.googletag && googletag.pubadsReady) {
|
|
922
922
|
var slots = googletag.pubads().getSlots();
|
|
@@ -934,7 +934,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
934
934
|
});
|
|
935
935
|
}
|
|
936
936
|
//Refresh leaderboard ad on mobile
|
|
937
|
-
if (
|
|
937
|
+
if (main_39) {
|
|
938
938
|
var leaderboardSlotId = '';
|
|
939
939
|
lib_3.getGoogletag().then(function (googletag) {
|
|
940
940
|
if (window.googletag && googletag.pubadsReady) {
|
package/dist/esm/YahooHero.js
CHANGED
|
@@ -4,7 +4,7 @@ import './core.get-iterator-method-f5c0d66a.js';
|
|
|
4
4
|
import './web.dom.iterable-46c95e52.js';
|
|
5
5
|
import React__default from 'react';
|
|
6
6
|
import 'prop-types';
|
|
7
|
-
import { m as moment } from './moment-
|
|
7
|
+
import { m as moment } from './moment-12415288.js';
|
|
8
8
|
import 'react-dom';
|
|
9
9
|
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
10
10
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
package/dist/esm/YoutubeGroup.js
CHANGED
|
@@ -14,10 +14,10 @@ import { L as LazyLoad } from './index-5f9f807a.js';
|
|
|
14
14
|
import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
|
|
15
15
|
import { s as smoothscroll, g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
16
16
|
|
|
17
|
-
/*
|
|
18
|
-
GROQ query -
|
|
19
|
-
accepts an array of title, URL
|
|
20
|
-
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
17
|
+
/*
|
|
18
|
+
GROQ query -
|
|
19
|
+
accepts an array of title, URL
|
|
20
|
+
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
var YoutubeGroup = function YoutubeGroup(props) {
|
package/dist/esm/getQuery.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import { m as moment } from './moment-
|
|
2
|
+
import { m as moment } from './moment-12415288.js';
|
|
3
3
|
|
|
4
4
|
var getQuery = function getQuery(type) {
|
|
5
5
|
var conditions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|