@mjhls/mjh-framework 1.0.966-reference-serializer-v3 → 1.0.966-test-D4S-1873
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 +168 -168
- package/dist/cjs/AlgoliaSearch.js +13 -5
- package/dist/cjs/ArticleProgramLandingPage.js +2 -1
- package/dist/cjs/Auth.js +20 -17
- package/dist/cjs/AuthWrapper.js +19 -13
- package/dist/cjs/CMEDeck.js +5 -1
- package/dist/cjs/Column1.js +1 -1
- package/dist/cjs/Column2.js +1 -1
- package/dist/cjs/Column3.js +1 -1
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/DeckContent.js +8 -8
- package/dist/cjs/Dfp-9be904d5.js +1 -1
- package/dist/cjs/EventsDeck.js +17 -17
- package/dist/cjs/ExternalResources.js +2 -1
- package/dist/cjs/HamMagazine.js +10 -10
- package/dist/cjs/Header.js +1 -1
- package/dist/cjs/HealthCareProfessionalModal.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +2 -1
- package/dist/cjs/IssueLanding.js +31 -30
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +1 -1
- package/dist/cjs/MasterDeck.js +8 -8
- package/dist/cjs/MasterDeckPaginated.js +8 -8
- package/dist/cjs/{MediaSeriesCard-1420d4f2.js → MediaSeriesCard-200d270d.js} +66 -44
- package/dist/cjs/MediaSeriesLanding.js +8 -7
- package/dist/cjs/MediaSeriesLandingPaginated.js +8 -7
- package/dist/cjs/NavDvm.js +1 -1
- package/dist/cjs/NavMagazine.js +11 -11
- package/dist/cjs/NavNative.js +10 -10
- package/dist/cjs/PartnerDetailListing.js +2 -1
- package/dist/cjs/PartnerDetailListingPaginated.js +2 -1
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +1 -1
- package/dist/cjs/{SeriesSlider-74546d19.js → SeriesSlider-594b19eb.js} +4 -4
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/TaxonomyDescription.js +2 -1
- package/dist/cjs/VideoProgramLandingPage.js +2 -1
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/View.js +6 -5
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/getSerializers.js +2 -1
- package/dist/cjs/{getTargeting-dab97fe1.js → getTargeting-3c5754ac.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-3927ac32.js → index-6bab3b25.js} +91 -556
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/ustream-api-3819e4aa.js +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +1 -1
- package/dist/esm/AD300x250x600.js +1 -1
- package/dist/esm/AD728x90.js +1 -1
- package/dist/esm/ADFloatingFooter.js +1 -1
- package/dist/esm/ADFooter.js +1 -1
- package/dist/esm/ADGutter.js +1 -1
- package/dist/esm/ADSkyscraper.js +1 -1
- package/dist/esm/ADSponsoredResources.js +1 -1
- package/dist/esm/ADWebcast.js +1 -1
- package/dist/esm/ADWelcome.js +1 -1
- package/dist/esm/AccordionPanel.js +1 -1
- package/dist/esm/AdSlot.js +1 -1
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/AlgoliaSearch.js +14 -6
- package/dist/esm/AlphabeticList.js +1 -1
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +3 -2
- package/dist/esm/ArticleSeriesLandingPage.js +1 -1
- package/dist/esm/ArticleSeriesListing.js +1 -1
- package/dist/esm/Auth.js +20 -18
- package/dist/esm/AuthWrapper.js +20 -14
- package/dist/esm/Beam.js +1 -1
- package/dist/esm/Breadcrumbs.js +1 -1
- package/dist/esm/CMEDeck.js +6 -2
- package/dist/esm/Column1.js +1 -2
- package/dist/esm/Column2.js +1 -2
- package/dist/esm/Column3.js +1 -2
- package/dist/esm/ConferenceArticleCard.js +16 -16
- package/dist/esm/ContentCardPaginated.js +1 -1
- package/dist/esm/DeckContent.js +9 -9
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/DeckQueuePaginated.js +1 -1
- package/dist/esm/Dfp-102f0beb.js +1 -1
- package/dist/esm/EventsDeck.js +18 -18
- package/dist/esm/ExternalResources.js +3 -2
- package/dist/esm/Feature.js +1 -1
- package/dist/esm/ForbesHero.js +1 -1
- package/dist/esm/GridContent.js +1 -1
- package/dist/esm/GridContentPaginated.js +1 -1
- package/dist/esm/GridHero.js +1 -1
- package/dist/esm/GroupDeck.js +1 -1
- package/dist/esm/HamMagazine.js +10 -11
- package/dist/esm/Header.js +1 -2
- package/dist/esm/HealthCareProfessionalModal.js +2 -2
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HighlightenVideo.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +3 -2
- 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 +32 -31
- package/dist/esm/KMTracker.js +16 -16
- package/dist/esm/LeftNav.js +1 -2
- package/dist/esm/MasterDeck.js +9 -9
- package/dist/esm/MasterDeckPaginated.js +9 -9
- package/dist/esm/{MediaSeriesCard-ae1d3c37.js → MediaSeriesCard-0f93cf68.js} +66 -44
- package/dist/esm/MediaSeriesLanding.js +9 -8
- package/dist/esm/MediaSeriesLandingPaginated.js +9 -8
- package/dist/esm/NavDvm.js +1 -2
- package/dist/esm/NavMagazine.js +11 -12
- package/dist/esm/NavNative.js +10 -11
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +1 -1
- package/dist/esm/PageFilter.js +1 -1
- package/dist/esm/PartnerDetailListing.js +3 -2
- package/dist/esm/PartnerDetailListingPaginated.js +3 -2
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +1 -1
- package/dist/esm/PubSection.js +1 -1
- package/dist/esm/PubToc.js +1 -1
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/PublicationLanding.js +27 -27
- package/dist/esm/QueueDeckExpanded.js +1 -1
- package/dist/esm/QueueDeckExpandedPaginated.js +1 -1
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +29 -29
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +1 -1
- package/dist/esm/Schema.js +1 -1
- package/dist/esm/Search.js +1 -1
- package/dist/esm/Segment.js +1 -1
- package/dist/esm/SeriesListingDeck.js +2 -2
- package/dist/esm/{SeriesSlider-e495571f.js → SeriesSlider-f771e20d.js} +4 -4
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +3 -3
- package/dist/esm/SocialIcons.js +1 -1
- package/dist/esm/SocialShare.js +1 -1
- package/dist/esm/TaxonomyCard.js +1 -1
- package/dist/esm/TaxonomyDescription.js +3 -2
- package/dist/esm/TemplateNormal.js +1 -1
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +3 -2
- package/dist/esm/VideoSeriesCard.js +2 -2
- package/dist/esm/VideoSeriesFilter.js +1 -1
- package/dist/esm/VideoSeriesLandingPage.js +1 -1
- package/dist/esm/VideoSeriesListing.js +1 -1
- package/dist/esm/View.js +7 -6
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +5 -5
- package/dist/esm/getKeywords.js +1 -1
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +1 -1
- package/dist/esm/getRootDocGroup.js +1 -1
- package/dist/esm/getSerializers.js +2 -1
- package/dist/esm/getSeriesDetail.js +1 -1
- package/dist/esm/{getTargeting-04d979c9.js → getTargeting-42f9b439.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-e6489945.js → index-0074586c.js} +90 -556
- package/dist/esm/index.js +3 -3
- package/dist/esm/stringify-2b084bee.js +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/ustream-api-d3714624.js +1 -1
- package/package.json +115 -116
package/dist/esm/EventsDeck.js
CHANGED
|
@@ -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';
|
|
@@ -841,4 +841,4 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
841
841
|
}
|
|
842
842
|
};
|
|
843
843
|
|
|
844
|
-
export default
|
|
844
|
+
export { EventsDeck as default };
|
|
@@ -2,7 +2,7 @@ import { _ as _extends } from './extends-6d8e3924.js';
|
|
|
2
2
|
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
3
3
|
import React__default, { useState, useEffect } from 'react';
|
|
4
4
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
5
|
-
import { g as getSerializers } from './index-
|
|
5
|
+
import { g as getSerializers } from './index-0074586c.js';
|
|
6
6
|
import { m as momentTimezone } from './index-79cfd25c.js';
|
|
7
7
|
import { useRouter } from 'next/router';
|
|
8
8
|
import Button from 'react-bootstrap/Button';
|
|
@@ -33,6 +33,7 @@ import './_is-array-8d21b9e3.js';
|
|
|
33
33
|
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
34
34
|
import 'react-bootstrap/Modal';
|
|
35
35
|
import 'react-bootstrap/Form';
|
|
36
|
+
import 'react-ga';
|
|
36
37
|
import './GroupDeck.js';
|
|
37
38
|
import './smoothscroll-fa4e3f8c.js';
|
|
38
39
|
import './moment-bc12cb97.js';
|
|
@@ -208,4 +209,4 @@ var ExternalResources = function ExternalResources(props) {
|
|
|
208
209
|
);
|
|
209
210
|
};
|
|
210
211
|
|
|
211
|
-
export default
|
|
212
|
+
export { ExternalResources as default };
|
package/dist/esm/Feature.js
CHANGED
package/dist/esm/ForbesHero.js
CHANGED
package/dist/esm/GridContent.js
CHANGED
package/dist/esm/GridHero.js
CHANGED
package/dist/esm/GroupDeck.js
CHANGED
package/dist/esm/HamMagazine.js
CHANGED
|
@@ -26,15 +26,15 @@ import './_library-528f1934.js';
|
|
|
26
26
|
import './_iter-detect-98db3b07.js';
|
|
27
27
|
|
|
28
28
|
var HamMagazine = function HamMagazine(props) {
|
|
29
|
-
/*
|
|
30
|
-
Example Nav with acceptable props
|
|
31
|
-
<MagazineNav
|
|
32
|
-
showLogin
|
|
33
|
-
logo={props.settings.logo}
|
|
34
|
-
dataObject={props.cache.mainNavCache}
|
|
35
|
-
website={website}
|
|
36
|
-
subNav={props.cache.subNavCache}
|
|
37
|
-
/>
|
|
29
|
+
/*
|
|
30
|
+
Example Nav with acceptable props
|
|
31
|
+
<MagazineNav
|
|
32
|
+
showLogin
|
|
33
|
+
logo={props.settings.logo}
|
|
34
|
+
dataObject={props.cache.mainNavCache}
|
|
35
|
+
website={website}
|
|
36
|
+
subNav={props.cache.subNavCache}
|
|
37
|
+
/>
|
|
38
38
|
*/
|
|
39
39
|
|
|
40
40
|
// Setting 'socialIconVariant' as 'light' as default to make the social icons and search icon black
|
|
@@ -586,5 +586,4 @@ var HamMagazine = function HamMagazine(props) {
|
|
|
586
586
|
);
|
|
587
587
|
};
|
|
588
588
|
|
|
589
|
-
export default
|
|
590
|
-
export { HamMagazine };
|
|
589
|
+
export { HamMagazine, HamMagazine as default };
|
package/dist/esm/Header.js
CHANGED
|
@@ -4,7 +4,7 @@ import Modal from 'react-bootstrap/Modal';
|
|
|
4
4
|
import Button from 'react-bootstrap/Button';
|
|
5
5
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
6
6
|
|
|
7
|
-
var css = ".HealthcareProfessionalModal-module_container__HUaSr {\
|
|
7
|
+
var css = ".HealthcareProfessionalModal-module_container__HUaSr {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background: rgba(0,0,0,.1);\n z-index: 9999999999;\n display: grid;\n place-items: center;\n}\n.HealthcareProfessionalModal-module_modal__31CzM{\n background: #fff;\n padding: 1.5rem;\n text-align: center;\n position: relative;\n width: 400px;\n max-width: 90vw;\n\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n animation: HealthcareProfessionalModal-module_show__3soMo .5s forwards;\n transform: translateY(0);\n opacity:1;\n}\n.HealthcareProfessionalModal-module_header__3uIr7 {\n background-color: #0d335a;\nposition: absolute;\n padding: 1rem;\n width: 80%;\ntop: 0;\nleft: 50%;\ntransform: translateX(-50%) translateY(-50%) ;\n border-radius: 15px;\n}\n.HealthcareProfessionalModal-module_body__3bnyN {\n color: #202020;\n}\n.HealthcareProfessionalModal-module_body__3bnyN span{\n font-weight: bold;\n}\n.HealthcareProfessionalModal-module_body__3bnyN .HealthcareProfessionalModal-module_title__27l5n {\n font-size: 24px;\n margin-bottom: 1rem;\n}\n.HealthcareProfessionalModal-module_controls__1wXJl button {\n margin: 1.5rem 1rem;\n border-radius: 5px;\n font-size: 1rem;\n}\n@keyframes HealthcareProfessionalModal-module_show__3soMo {\n from{\n transform: translateY(25px);\n opacity: 0;\n }\n to {\n transform: translateY(0);\n opacity:1;\n }\n}";
|
|
8
8
|
var styles = { "container": "HealthcareProfessionalModal-module_container__HUaSr", "modal": "HealthcareProfessionalModal-module_modal__31CzM", "show": "HealthcareProfessionalModal-module_show__3soMo", "header": "HealthcareProfessionalModal-module_header__3uIr7", "body": "HealthcareProfessionalModal-module_body__3bnyN", "title": "HealthcareProfessionalModal-module_title__27l5n", "controls": "HealthcareProfessionalModal-module_controls__1wXJl" };
|
|
9
9
|
styleInject(css);
|
|
10
10
|
|
|
@@ -67,4 +67,4 @@ var HealthcareProfessionalModal = function HealthcareProfessionalModal(_ref) {
|
|
|
67
67
|
);
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
-
export default
|
|
70
|
+
export { HealthcareProfessionalModal as default };
|
package/dist/esm/Hero.js
CHANGED
|
@@ -3,7 +3,7 @@ import React__default from 'react';
|
|
|
3
3
|
import ArticleCarousel from './ArticleCarousel.js';
|
|
4
4
|
import { I as IoIosArrowForward } from './index.esm-eb1e8e80.js';
|
|
5
5
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
6
|
+
import { g as getSerializers } from './index-0074586c.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './core.get-iterator-method-ea258bb1.js';
|
|
9
9
|
import './_object-pie-133f504a.js';
|
|
@@ -37,6 +37,7 @@ import './brightcove-react-player-loader.es-57a70a56.js';
|
|
|
37
37
|
import 'react-bootstrap/Modal';
|
|
38
38
|
import 'react-bootstrap/Button';
|
|
39
39
|
import 'react-bootstrap/Form';
|
|
40
|
+
import 'react-ga';
|
|
40
41
|
import './GroupDeck.js';
|
|
41
42
|
import './moment-bc12cb97.js';
|
|
42
43
|
import './SocialShare.js';
|
|
@@ -157,4 +158,4 @@ function HorizontalArticleListing(_ref) {
|
|
|
157
158
|
);
|
|
158
159
|
}
|
|
159
160
|
|
|
160
|
-
export default
|
|
161
|
+
export { HorizontalArticleListing as default };
|
package/dist/esm/IssueDeck.js
CHANGED
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -3,7 +3,7 @@ import React__default from 'react';
|
|
|
3
3
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
4
4
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
5
5
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
6
|
+
import { g as getSerializers } from './index-0074586c.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './core.get-iterator-method-ea258bb1.js';
|
|
9
9
|
import './_object-pie-133f504a.js';
|
|
@@ -51,6 +51,7 @@ import './brightcove-react-player-loader.es-57a70a56.js';
|
|
|
51
51
|
import 'react-bootstrap/Modal';
|
|
52
52
|
import 'react-bootstrap/Button';
|
|
53
53
|
import 'react-bootstrap/Form';
|
|
54
|
+
import 'react-ga';
|
|
54
55
|
import './GroupDeck.js';
|
|
55
56
|
import './smoothscroll-fa4e3f8c.js';
|
|
56
57
|
import './SocialShare.js';
|
|
@@ -70,35 +71,35 @@ import 'react-bootstrap/OverlayTrigger';
|
|
|
70
71
|
import 'react-bootstrap/Tooltip';
|
|
71
72
|
import 'react-bootstrap/Popover';
|
|
72
73
|
|
|
73
|
-
/* usage
|
|
74
|
-
import Settings, { Ads } from '../../../../settings'
|
|
75
|
-
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
76
|
-
import client from '../../../../client'
|
|
77
|
-
import moment from 'moment'
|
|
78
|
-
import Shell from '../../../../components/2.0/Shell'
|
|
79
|
-
import { pageview } from '../../../../utilities/gtag'
|
|
80
|
-
|
|
81
|
-
const Issue = (props) => {
|
|
82
|
-
const { pubIssue, cache } = props
|
|
83
|
-
const targeting = {
|
|
84
|
-
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
85
|
-
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
86
|
-
}
|
|
87
|
-
return (
|
|
88
|
-
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
89
|
-
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
90
|
-
</Shell>
|
|
91
|
-
)
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
Issue.getInitialProps = async (ctx) => {
|
|
95
|
-
const { query } = ctx
|
|
96
|
-
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
97
|
-
)
|
|
98
|
-
return { pubIssue }
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export default Issue
|
|
74
|
+
/* usage
|
|
75
|
+
import Settings, { Ads } from '../../../../settings'
|
|
76
|
+
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
77
|
+
import client from '../../../../client'
|
|
78
|
+
import moment from 'moment'
|
|
79
|
+
import Shell from '../../../../components/2.0/Shell'
|
|
80
|
+
import { pageview } from '../../../../utilities/gtag'
|
|
81
|
+
|
|
82
|
+
const Issue = (props) => {
|
|
83
|
+
const { pubIssue, cache } = props
|
|
84
|
+
const targeting = {
|
|
85
|
+
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
86
|
+
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
87
|
+
}
|
|
88
|
+
return (
|
|
89
|
+
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
90
|
+
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
91
|
+
</Shell>
|
|
92
|
+
)
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
Issue.getInitialProps = async (ctx) => {
|
|
96
|
+
const { query } = ctx
|
|
97
|
+
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
98
|
+
)
|
|
99
|
+
return { pubIssue }
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export default Issue
|
|
102
103
|
*/
|
|
103
104
|
|
|
104
105
|
var IssueLanding = function IssueLanding(props) {
|
|
@@ -164,4 +165,4 @@ var IssueLanding = function IssueLanding(props) {
|
|
|
164
165
|
);
|
|
165
166
|
};
|
|
166
167
|
|
|
167
|
-
export default
|
|
168
|
+
export { IssueLanding as default };
|
package/dist/esm/KMTracker.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
var KMTracker = function KMTracker(props) {
|
|
2
|
-
|
|
2
|
+
var id = props.id;
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
if (document && id) {
|
|
5
5
|
(function () {
|
|
6
|
-
|
|
6
|
+
var ecnJquery = document.createElement('script');
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
ecnJquery.type = 'text/javascript';
|
|
9
|
+
ecnJquery.async = true;
|
|
10
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
var ecnScript = document.createElement('script');
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
ecnScript.type = 'text/javascript';
|
|
15
|
+
ecnScript.async = true;
|
|
16
|
+
ecnScript.id = 'km-tracker';
|
|
17
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
document.head.appendChild(ecnJquery);
|
|
20
|
+
document.head.appendChild(ecnScript);
|
|
21
|
+
})();
|
|
22
|
+
}
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
export default
|
|
25
|
+
export { KMTracker as default };
|
package/dist/esm/LeftNav.js
CHANGED
package/dist/esm/MasterDeck.js
CHANGED
|
@@ -223,14 +223,14 @@ var MasterDeck = function (_React$Component) {
|
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
// please leave this for later debug purpose : Yong Jun.
|
|
226
|
-
/* console.log('page change reported', {
|
|
227
|
-
currentPage: currentPage,
|
|
228
|
-
pageNumber: pageNumber,
|
|
229
|
-
pathname: pathname,
|
|
230
|
-
path: path,
|
|
231
|
-
newPath: newPath,
|
|
232
|
-
firstPage: pageNumber === 1,
|
|
233
|
-
queryString: queryString
|
|
226
|
+
/* console.log('page change reported', {
|
|
227
|
+
currentPage: currentPage,
|
|
228
|
+
pageNumber: pageNumber,
|
|
229
|
+
pathname: pathname,
|
|
230
|
+
path: path,
|
|
231
|
+
newPath: newPath,
|
|
232
|
+
firstPage: pageNumber === 1,
|
|
233
|
+
queryString: queryString
|
|
234
234
|
}) */
|
|
235
235
|
|
|
236
236
|
if (pageview) {
|
|
@@ -546,4 +546,4 @@ var MasterDeck = function (_React$Component) {
|
|
|
546
546
|
|
|
547
547
|
var MasterDeck$1 = withRouter(MasterDeck);
|
|
548
548
|
|
|
549
|
-
export
|
|
549
|
+
export { MasterDeck$1 as default };
|
|
@@ -107,14 +107,14 @@ var MasterDeck = function (_React$Component) {
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
// please leave this for later debug purpose : Yong Jun.
|
|
110
|
-
/* console.log('page change reported', {
|
|
111
|
-
currentPage: currentPage,
|
|
112
|
-
pageNumber: pageNumber,
|
|
113
|
-
pathname: pathname,
|
|
114
|
-
path: path,
|
|
115
|
-
newPath: newPath,
|
|
116
|
-
firstPage: pageNumber === 1,
|
|
117
|
-
queryString: queryString
|
|
110
|
+
/* console.log('page change reported', {
|
|
111
|
+
currentPage: currentPage,
|
|
112
|
+
pageNumber: pageNumber,
|
|
113
|
+
pathname: pathname,
|
|
114
|
+
path: path,
|
|
115
|
+
newPath: newPath,
|
|
116
|
+
firstPage: pageNumber === 1,
|
|
117
|
+
queryString: queryString
|
|
118
118
|
}) */
|
|
119
119
|
|
|
120
120
|
if (pageview) {
|
|
@@ -458,4 +458,4 @@ var MasterDeck = function (_React$Component) {
|
|
|
458
458
|
|
|
459
459
|
var MasterDeck$1 = withRouter(MasterDeck);
|
|
460
460
|
|
|
461
|
-
export
|
|
461
|
+
export { MasterDeck$1 as default };
|
|
@@ -9,7 +9,7 @@ import urlFor from './urlFor.js';
|
|
|
9
9
|
import { m as moment } from './moment-bc12cb97.js';
|
|
10
10
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
11
11
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
12
|
-
import { g as getSerializers } from './index-
|
|
12
|
+
import { g as getSerializers } from './index-0074586c.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -2626,45 +2626,6 @@ function getBasePlacement(placement) {
|
|
|
2626
2626
|
return placement.split('-')[0];
|
|
2627
2627
|
}
|
|
2628
2628
|
|
|
2629
|
-
function getBoundingClientRect(element) {
|
|
2630
|
-
var rect = element.getBoundingClientRect();
|
|
2631
|
-
return {
|
|
2632
|
-
width: rect.width,
|
|
2633
|
-
height: rect.height,
|
|
2634
|
-
top: rect.top,
|
|
2635
|
-
right: rect.right,
|
|
2636
|
-
bottom: rect.bottom,
|
|
2637
|
-
left: rect.left,
|
|
2638
|
-
x: rect.left,
|
|
2639
|
-
y: rect.top
|
|
2640
|
-
};
|
|
2641
|
-
}
|
|
2642
|
-
|
|
2643
|
-
// means it doesn't take into account transforms.
|
|
2644
|
-
|
|
2645
|
-
function getLayoutRect(element) {
|
|
2646
|
-
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2647
|
-
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2648
|
-
|
|
2649
|
-
var width = element.offsetWidth;
|
|
2650
|
-
var height = element.offsetHeight;
|
|
2651
|
-
|
|
2652
|
-
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2653
|
-
width = clientRect.width;
|
|
2654
|
-
}
|
|
2655
|
-
|
|
2656
|
-
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2657
|
-
height = clientRect.height;
|
|
2658
|
-
}
|
|
2659
|
-
|
|
2660
|
-
return {
|
|
2661
|
-
x: element.offsetLeft,
|
|
2662
|
-
y: element.offsetTop,
|
|
2663
|
-
width: width,
|
|
2664
|
-
height: height
|
|
2665
|
-
};
|
|
2666
|
-
}
|
|
2667
|
-
|
|
2668
2629
|
function getWindow(node) {
|
|
2669
2630
|
if (node == null) {
|
|
2670
2631
|
return window;
|
|
@@ -2698,6 +2659,59 @@ function isShadowRoot(node) {
|
|
|
2698
2659
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2699
2660
|
}
|
|
2700
2661
|
|
|
2662
|
+
var round$1 = Math.round;
|
|
2663
|
+
function getBoundingClientRect(element, includeScale) {
|
|
2664
|
+
if (includeScale === void 0) {
|
|
2665
|
+
includeScale = false;
|
|
2666
|
+
}
|
|
2667
|
+
|
|
2668
|
+
var rect = element.getBoundingClientRect();
|
|
2669
|
+
var scaleX = 1;
|
|
2670
|
+
var scaleY = 1;
|
|
2671
|
+
|
|
2672
|
+
if (isHTMLElement(element) && includeScale) {
|
|
2673
|
+
// Fallback to 1 in case both values are `0`
|
|
2674
|
+
scaleX = rect.width / element.offsetWidth || 1;
|
|
2675
|
+
scaleY = rect.height / element.offsetHeight || 1;
|
|
2676
|
+
}
|
|
2677
|
+
|
|
2678
|
+
return {
|
|
2679
|
+
width: round$1(rect.width / scaleX),
|
|
2680
|
+
height: round$1(rect.height / scaleY),
|
|
2681
|
+
top: round$1(rect.top / scaleY),
|
|
2682
|
+
right: round$1(rect.right / scaleX),
|
|
2683
|
+
bottom: round$1(rect.bottom / scaleY),
|
|
2684
|
+
left: round$1(rect.left / scaleX),
|
|
2685
|
+
x: round$1(rect.left / scaleX),
|
|
2686
|
+
y: round$1(rect.top / scaleY)
|
|
2687
|
+
};
|
|
2688
|
+
}
|
|
2689
|
+
|
|
2690
|
+
// means it doesn't take into account transforms.
|
|
2691
|
+
|
|
2692
|
+
function getLayoutRect(element) {
|
|
2693
|
+
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2694
|
+
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2695
|
+
|
|
2696
|
+
var width = element.offsetWidth;
|
|
2697
|
+
var height = element.offsetHeight;
|
|
2698
|
+
|
|
2699
|
+
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2700
|
+
width = clientRect.width;
|
|
2701
|
+
}
|
|
2702
|
+
|
|
2703
|
+
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2704
|
+
height = clientRect.height;
|
|
2705
|
+
}
|
|
2706
|
+
|
|
2707
|
+
return {
|
|
2708
|
+
x: element.offsetLeft,
|
|
2709
|
+
y: element.offsetTop,
|
|
2710
|
+
width: width,
|
|
2711
|
+
height: height
|
|
2712
|
+
};
|
|
2713
|
+
}
|
|
2714
|
+
|
|
2701
2715
|
function contains$1(parent, child) {
|
|
2702
2716
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2703
2717
|
|
|
@@ -3924,16 +3938,24 @@ function getNodeScroll(node) {
|
|
|
3924
3938
|
}
|
|
3925
3939
|
}
|
|
3926
3940
|
|
|
3941
|
+
function isElementScaled(element) {
|
|
3942
|
+
var rect = element.getBoundingClientRect();
|
|
3943
|
+
var scaleX = rect.width / element.offsetWidth || 1;
|
|
3944
|
+
var scaleY = rect.height / element.offsetHeight || 1;
|
|
3945
|
+
return scaleX !== 1 || scaleY !== 1;
|
|
3946
|
+
} // Returns the composite rect of an element relative to its offsetParent.
|
|
3927
3947
|
// Composite means it takes into account transforms as well as layout.
|
|
3928
3948
|
|
|
3949
|
+
|
|
3929
3950
|
function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
3930
3951
|
if (isFixed === void 0) {
|
|
3931
3952
|
isFixed = false;
|
|
3932
3953
|
}
|
|
3933
3954
|
|
|
3934
|
-
var documentElement = getDocumentElement(offsetParent);
|
|
3935
|
-
var rect = getBoundingClientRect(elementOrVirtualElement);
|
|
3936
3955
|
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
3956
|
+
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
3957
|
+
var documentElement = getDocumentElement(offsetParent);
|
|
3958
|
+
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
|
|
3937
3959
|
var scroll = {
|
|
3938
3960
|
scrollLeft: 0,
|
|
3939
3961
|
scrollTop: 0
|
|
@@ -3950,7 +3972,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
|
3950
3972
|
}
|
|
3951
3973
|
|
|
3952
3974
|
if (isHTMLElement(offsetParent)) {
|
|
3953
|
-
offsets = getBoundingClientRect(offsetParent);
|
|
3975
|
+
offsets = getBoundingClientRect(offsetParent, true);
|
|
3954
3976
|
offsets.x += offsetParent.clientLeft;
|
|
3955
3977
|
offsets.y += offsetParent.clientTop;
|
|
3956
3978
|
} else if (documentElement) {
|
|
@@ -9427,7 +9449,7 @@ var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
|
9427
9449
|
Tooltip.defaultProps = defaultProps;
|
|
9428
9450
|
Tooltip.displayName = 'Tooltip';
|
|
9429
9451
|
|
|
9430
|
-
var css = ".MediaSeriesCard-module_article__SAFYK {\
|
|
9452
|
+
var css = ".MediaSeriesCard-module_article__SAFYK {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.MediaSeriesCard-module_article__SAFYK a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.MediaSeriesCard-module_thumb__3jRAU {\n width: 25%;\n}\n.MediaSeriesCard-module_thumb__3jRAU img {\n width: 100%;\n height: auto;\n}\n.MediaSeriesCard-module_info__3L7_o {\n width: 75%;\n font-size: 1rem;\n}\n.MediaSeriesCard-module_info__3L7_o h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.MediaSeriesCard-module_published__E4oiz {\n color: #6d6d6d;\n margin: 0;\n}\n.MediaSeriesCard-module_summary__1xanh {\n margin: 0.5rem 0 0 0;\n}\n.MediaSeriesCard-module_author__e5fuR {\n margin: 0;\n}\n.MediaSeriesCard-module_author__e5fuR span {\n color: #6d6d6d;\n}\n.MediaSeriesCard-module_name__2m5KY {\n font-size: 1.3rem;\n font-weight: bold;\n}\n@media only screen and (max-width: 568px) {\n .MediaSeriesCard-module_article__SAFYK {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .MediaSeriesCard-module_article__SAFYK a {\n flex-direction: column;\n align-items: center;\n }\n .MediaSeriesCard-module_thumb__3jRAU {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .MediaSeriesCard-module_thumb__3jRAU img{\n border-radius: 10px 10px 0 0; \n }\n .MediaSeriesCard-module_thumb__3jRAU figure {\n margin: 0;\n }\n .MediaSeriesCard-module_info__3L7_o {\n width: 90%;\n padding: 0rem !important;\n }\n .MediaSeriesCard-module_info__3L7_o h2 {\n font-size: 1rem;\n }\n .MediaSeriesCard-module_name__2m5KY {\n font-size: 1rem;\n \n }\n}\n";
|
|
9431
9453
|
var styles = { "article": "MediaSeriesCard-module_article__SAFYK", "thumb": "MediaSeriesCard-module_thumb__3jRAU", "info": "MediaSeriesCard-module_info__3L7_o", "published": "MediaSeriesCard-module_published__E4oiz", "summary": "MediaSeriesCard-module_summary__1xanh", "author": "MediaSeriesCard-module_author__e5fuR", "name": "MediaSeriesCard-module_name__2m5KY" };
|
|
9432
9454
|
styleInject(css);
|
|
9433
9455
|
|
|
@@ -3,13 +3,13 @@ import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-6d8e3924.js';
|
|
4
4
|
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
5
5
|
import React__default, { useState, useEffect } from 'react';
|
|
6
|
-
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-
|
|
6
|
+
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-0f93cf68.js';
|
|
7
7
|
import './index-98ca9cec.js';
|
|
8
8
|
import 'react-dom';
|
|
9
9
|
import Link from 'next/link';
|
|
10
10
|
import MasterDeck from './MasterDeck.js';
|
|
11
11
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
12
|
-
import { g as getSerializers } from './index-
|
|
12
|
+
import { g as getSerializers } from './index-0074586c.js';
|
|
13
13
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
14
14
|
import './core.get-iterator-method-ea258bb1.js';
|
|
15
15
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -55,6 +55,7 @@ import './brightcove-react-player-loader.es-57a70a56.js';
|
|
|
55
55
|
import 'react-bootstrap/Modal';
|
|
56
56
|
import 'react-bootstrap/Button';
|
|
57
57
|
import 'react-bootstrap/Form';
|
|
58
|
+
import 'react-ga';
|
|
58
59
|
import './GroupDeck.js';
|
|
59
60
|
import './smoothscroll-fa4e3f8c.js';
|
|
60
61
|
import './SocialShare.js';
|
|
@@ -92,11 +93,11 @@ var Filter = function Filter(_ref) {
|
|
|
92
93
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
93
94
|
grandChildData = _useState6[0],
|
|
94
95
|
setGrandChildData = _useState6[1];
|
|
95
|
-
/*
|
|
96
|
-
{parent: showAll,
|
|
97
|
-
chidlren: show selected from parent,
|
|
98
|
-
grandchildren: show selected from children
|
|
99
|
-
}
|
|
96
|
+
/*
|
|
97
|
+
{parent: showAll,
|
|
98
|
+
chidlren: show selected from parent,
|
|
99
|
+
grandchildren: show selected from children
|
|
100
|
+
}
|
|
100
101
|
*/
|
|
101
102
|
|
|
102
103
|
|
|
@@ -495,4 +496,4 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
495
496
|
};
|
|
496
497
|
}();
|
|
497
498
|
|
|
498
|
-
export default
|
|
499
|
+
export { MediaSeriesLanding as default };
|