@mjhls/mjh-framework 1.0.877 → 1.0.878
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/AD.js +1 -1
- package/dist/cjs/AD300x250.js +3 -2
- package/dist/cjs/AD300x250x600.js +3 -2
- package/dist/cjs/AD728x90.js +3 -2
- 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/AccordionPanel.js +2 -2
- package/dist/cjs/AdSlot.js +3 -2
- package/dist/cjs/AdSlotsProvider.js +3 -2
- package/dist/cjs/AlgoliaSearch.js +14098 -17
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +6 -5
- package/dist/cjs/ArticleSeriesLandingPage.js +5 -4
- package/dist/cjs/ArticleSeriesListing.js +5 -4
- package/dist/cjs/AuthWrapper.js +1 -1
- package/dist/cjs/CMEDeck.js +3 -2
- package/dist/cjs/Column3.js +3 -2
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/DeckContent.js +12 -11
- package/dist/cjs/DeckQueue.js +3 -2
- package/dist/cjs/{Dfp-94f8ccdf.js → Dfp-9be904d5.js} +2 -1
- package/dist/cjs/EventsDeck.js +26 -20
- package/dist/cjs/ExternalResources.js +6 -5
- package/dist/cjs/Feature.js +1 -1
- package/dist/cjs/GridContent.js +5 -4
- package/dist/cjs/HamMagazine.js +15 -15
- package/dist/cjs/HorizontalArticleListing.js +6 -5
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueLanding.js +37 -36
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +3 -2
- package/dist/cjs/MasterDeck.js +13 -12
- package/dist/cjs/MediaSeriesLanding.js +306 -406
- package/dist/cjs/NavMagazine.js +16 -16
- package/dist/cjs/NavNative.js +12 -12
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +8 -7
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PubSection.js +5 -4
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpanded.js +5 -4
- package/dist/cjs/RecentNews.js +2 -2
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +4 -3
- package/dist/cjs/{SeriesSlider-f9128638.js → SeriesSlider-ce3261cb.js} +5 -5
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-4942ddfc.js → SocialSearchComponent-5ec44406.js} +3 -3
- package/dist/cjs/TaxonomyDescription.js +6 -5
- package/dist/cjs/TemplateNormal.js +8 -7
- package/dist/cjs/Ustream.js +4 -4
- package/dist/cjs/VideoProgramLandingPage.js +6 -5
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +5 -4
- package/dist/cjs/VideoSeriesListing.js +5 -4
- package/dist/cjs/View.js +10 -9
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/getSerializers.js +6 -5
- package/dist/cjs/{getTargeting-6d59cc5b.js → getTargeting-9d509319.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +5 -2
- package/dist/cjs/index-8041a4eb.js +99 -0
- package/dist/cjs/{index-2a2528f6.js → index-e2ec2eae.js} +3 -3
- package/dist/cjs/{index-0e4427c8.js → index-fc2f1ca2.js} +2 -467
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-05850a2f.js} +1 -1
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-44f3e2d0.js} +1 -1
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-8123cf40.js} +1 -1
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-974f47d9.js} +1 -1
- package/dist/cjs/index.js +15 -14
- package/dist/cjs/{main-f1c77adb.js → main-025fdc78.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +7 -6
- package/dist/esm/AD300x250x600.js +7 -6
- package/dist/esm/AD728x90.js +8 -7
- package/dist/esm/ADFloatingFooter.js +10 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +10 -9
- package/dist/esm/{ADInfeed-c7b8f6be.js → ADInfeed-014c7bd1.js} +5 -5
- package/dist/esm/ADSkyscraper.js +10 -9
- package/dist/esm/ADSponsoredResources.js +10 -9
- package/dist/esm/ADWebcast.js +10 -9
- package/dist/esm/ADWelcome.js +14 -13
- package/dist/esm/{ADlgInfeed-1aea5403.js → ADlgInfeed-75e097f4.js} +4 -4
- package/dist/esm/AccordionPanel.js +18 -18
- package/dist/esm/AdSlot.js +6 -5
- package/dist/esm/AdSlotsProvider.js +5 -4
- package/dist/esm/AlgoliaSearch.js +14121 -40
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +6 -6
- package/dist/esm/ArticleProgramLandingPage.js +18 -17
- package/dist/esm/ArticleSeriesLandingPage.js +13 -12
- package/dist/esm/ArticleSeriesListing.js +32 -31
- package/dist/esm/Auth.js +70 -70
- package/dist/esm/AuthWrapper.js +26 -26
- package/dist/esm/{AuthorComponent-defe68b6.js → AuthorComponent-46a745ba.js} +10 -10
- package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-52cf21c5.js} +3 -3
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +62 -61
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +24 -23
- package/dist/esm/ConferenceArticleCard.js +28 -28
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +58 -57
- package/dist/esm/DeckQueue.js +43 -42
- package/dist/esm/{Dfp-4b99f79d.js → Dfp-4ca12f2e.js} +11 -10
- package/dist/esm/EventsDeck.js +89 -83
- package/dist/esm/ExternalResources.js +36 -35
- package/dist/esm/Feature.js +15 -15
- package/dist/esm/ForbesHero.js +26 -26
- package/dist/esm/GridContent.js +125 -124
- package/dist/esm/GridHero.js +27 -27
- package/dist/esm/GroupDeck.js +34 -34
- package/dist/esm/HamMagazine.js +95 -95
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +6 -6
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +32 -31
- package/dist/esm/HorizontalHero.js +20 -20
- package/dist/esm/IssueContentDeck.js +39 -39
- package/dist/esm/IssueDeck.js +33 -33
- package/dist/esm/IssueLanding.js +52 -51
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +17 -16
- package/dist/esm/MasterDeck.js +47 -46
- package/dist/esm/MediaSeriesLanding.js +332 -432
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +99 -99
- package/dist/esm/NavNative.js +86 -86
- package/dist/esm/OncliveHero.js +13 -13
- package/dist/esm/OncliveLargeHero.js +50 -50
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +67 -66
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +15 -14
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +33 -33
- package/dist/esm/PublicationLanding.js +75 -75
- package/dist/esm/QueueDeckExpanded.js +247 -246
- package/dist/esm/RecentNews.js +18 -18
- package/dist/esm/RelatedContent.js +43 -43
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +5 -5
- package/dist/esm/SeriesListingDeck.js +20 -19
- package/dist/esm/{SeriesSlider-98b7a870.js → SeriesSlider-7a6c45ce.js} +23 -23
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-9458fac6.js → SocialSearchComponent-bdecba55.js} +22 -22
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +35 -35
- package/dist/esm/TaxonomyDescription.js +14 -13
- package/dist/esm/TemplateNormal.js +30 -29
- package/dist/esm/ThumbnailCard.js +9 -9
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +11 -11
- package/dist/esm/VideoProgramLandingPage.js +25 -24
- package/dist/esm/VideoSeriesCard.js +15 -15
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +13 -12
- package/dist/esm/VideoSeriesListing.js +48 -47
- package/dist/esm/View.js +174 -173
- package/dist/esm/YahooHero.js +23 -23
- package/dist/esm/YoutubeGroup.js +38 -38
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-b43c695a.js} +3 -3
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/getSerializers.js +9 -8
- package/dist/esm/{getTargeting-3792eba9.js → getTargeting-ff2c9409.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-5cc7b406.js → index-2446af28.js} +4 -469
- package/dist/esm/{index-755f2cc2.js → index-35bdcc81.js} +4 -4
- package/dist/esm/index-67e1773f.js +94 -0
- package/dist/esm/{index-1d312e35.js → index-f2783f14.js} +419 -419
- package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
- package/dist/esm/{index.esm-f6156a57.js → index.esm-3fdda599.js} +1 -1
- package/dist/esm/{index.esm-37268dca.js → index.esm-8016b507.js} +16 -16
- package/dist/esm/{index.esm-d4932dea.js → index.esm-a8ff922c.js} +1 -1
- package/dist/esm/{index.esm-9b042655.js → index.esm-c6715e80.js} +1 -1
- package/dist/esm/index.js +40 -39
- package/dist/esm/{main-1894c974.js → main-4136096f.js} +19 -19
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-91f9716f.js} +5 -5
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/package.json +111 -111
- /package/dist/cjs/{ADInfeed-3c44e465.js → ADInfeed-f7e6956b.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-0c03dac2.js → ADlgInfeed-4df6d147.js} +0 -0
package/dist/esm/PopUpModal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
2
|
-
import
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
3
|
import Modal from 'react-bootstrap/Modal';
|
|
4
4
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
5
5
|
import './web.dom.iterable-fdf034f5.js';
|
|
@@ -16,22 +16,22 @@ var PopUpModal = function PopUpModal(props) {
|
|
|
16
16
|
setShow(false);
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
return
|
|
19
|
+
return React.createElement(
|
|
20
20
|
Modal,
|
|
21
21
|
{ show: show, onHide: function onHide() {
|
|
22
22
|
return setShow(false);
|
|
23
23
|
}, 'aria-labelledby': 'Popup-Modal' },
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
React.createElement(Modal.Title, null),
|
|
25
|
+
React.createElement(
|
|
26
26
|
Modal.Body,
|
|
27
27
|
null,
|
|
28
|
-
|
|
28
|
+
React.createElement(
|
|
29
29
|
'div',
|
|
30
30
|
{ className: 'modalImageHolder' },
|
|
31
|
-
|
|
31
|
+
React.createElement('img', { className: 'modalImage', src: props.ModalImage, onClick: function onClick() {
|
|
32
32
|
return launchModalButton();
|
|
33
33
|
} }),
|
|
34
|
-
|
|
34
|
+
React.createElement(
|
|
35
35
|
'div',
|
|
36
36
|
{ className: 'modalClose', onClick: function onClick() {
|
|
37
37
|
return setShow(false);
|
|
@@ -40,7 +40,7 @@ var PopUpModal = function PopUpModal(props) {
|
|
|
40
40
|
)
|
|
41
41
|
)
|
|
42
42
|
),
|
|
43
|
-
|
|
43
|
+
React.createElement(
|
|
44
44
|
'style',
|
|
45
45
|
{ jsx: 'true' },
|
|
46
46
|
'\n .modalImageHolder {\n display: flex;\n justify-content: center;\n }\n .modalClose {\n display: flex;\n justify-content: center;\n width: 25px;\n height: 25px;\n font-size: 1.25rem;\n color: #fff;\n cursor: pointer;\n }\n .modalImage {\n cursor: pointer;\n }\n '
|
package/dist/esm/PubSection.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-b4dfe691.js';
|
|
2
2
|
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
3
3
|
import { _ as _extends } from './extends-dc6a71fd.js';
|
|
4
|
-
import
|
|
4
|
+
import React from 'react';
|
|
5
5
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
6
6
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
7
7
|
import './core.get-iterator-method-e903ff31.js';
|
|
@@ -13,17 +13,18 @@ import './toConsumableArray-7b1c0e23.js';
|
|
|
13
13
|
import 'react-bootstrap';
|
|
14
14
|
import './urlFor.js';
|
|
15
15
|
import './index-0dbff1d1.js';
|
|
16
|
-
import './index.es-
|
|
16
|
+
import './index.es-c6222053.js';
|
|
17
17
|
import './moment-bc12cb97.js';
|
|
18
|
-
import './visibility-sensor-
|
|
18
|
+
import './visibility-sensor-f40c2564.js';
|
|
19
19
|
import 'react-dom';
|
|
20
|
-
import './index-
|
|
20
|
+
import './index-2446af28.js';
|
|
21
|
+
import './events-6c3a7a63.js';
|
|
21
22
|
import 'prop-types';
|
|
22
23
|
import 'next/router';
|
|
23
|
-
import './index-
|
|
24
|
-
import './main-
|
|
24
|
+
import './index-35bdcc81.js';
|
|
25
|
+
import './main-4136096f.js';
|
|
25
26
|
import './entities-932b50cf.js';
|
|
26
|
-
import './ADInfeed-
|
|
27
|
+
import './ADInfeed-014c7bd1.js';
|
|
27
28
|
import 'react-bootstrap/Card';
|
|
28
29
|
import './AdSlot.js';
|
|
29
30
|
import './debounce-533d9748.js';
|
|
@@ -32,9 +33,9 @@ import './toNumber-5aeba6e7.js';
|
|
|
32
33
|
import './Beam.js';
|
|
33
34
|
import './stringify-c21932b3.js';
|
|
34
35
|
import './Segment.js';
|
|
35
|
-
import './AuthorComponent-
|
|
36
|
+
import './AuthorComponent-46a745ba.js';
|
|
36
37
|
import './lodash-f97fd99a.js';
|
|
37
|
-
import './ADlgInfeed-
|
|
38
|
+
import './ADlgInfeed-75e097f4.js';
|
|
38
39
|
import './getContentCategory-15dcc413.js';
|
|
39
40
|
import './timeDifferenceCalc.js';
|
|
40
41
|
|
|
@@ -44,24 +45,24 @@ var PubSection = function PubSection(props) {
|
|
|
44
45
|
var pubSection = props.pubSection,
|
|
45
46
|
tocUrl = props.tocUrl;
|
|
46
47
|
|
|
47
|
-
return
|
|
48
|
+
return React.createElement(
|
|
48
49
|
'div',
|
|
49
50
|
{ id: 'pubSection' },
|
|
50
|
-
pubSection.publication && pubSection.publication.name &&
|
|
51
|
+
pubSection.publication && pubSection.publication.name && React.createElement(
|
|
51
52
|
'h2',
|
|
52
53
|
null,
|
|
53
54
|
pubSection.publication.name
|
|
54
55
|
),
|
|
55
|
-
|
|
56
|
+
React.createElement(
|
|
56
57
|
'p',
|
|
57
58
|
null,
|
|
58
|
-
|
|
59
|
+
React.createElement(
|
|
59
60
|
'a',
|
|
60
61
|
{ id: 'back', href: tocUrl ? tocUrl : 'toc' },
|
|
61
62
|
'Back to Table of Contents'
|
|
62
63
|
)
|
|
63
64
|
),
|
|
64
|
-
|
|
65
|
+
React.createElement(QueueDeckExpanded, _extends({ dataRecord: pubSection.articles }, props))
|
|
65
66
|
);
|
|
66
67
|
};
|
|
67
68
|
|
package/dist/esm/PubToc.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-b4dfe691.js';
|
|
2
2
|
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
3
|
-
import
|
|
3
|
+
import React from 'react';
|
|
4
4
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
5
5
|
import './core.get-iterator-method-e903ff31.js';
|
|
6
6
|
import './web.dom.iterable-fdf034f5.js';
|
|
@@ -12,17 +12,17 @@ var _this = undefined;
|
|
|
12
12
|
var PubToc = function PubToc(props) {
|
|
13
13
|
var toc = props.toc;
|
|
14
14
|
|
|
15
|
-
return
|
|
15
|
+
return React.createElement(
|
|
16
16
|
'div',
|
|
17
17
|
{ id: 'pubToc' },
|
|
18
|
-
|
|
18
|
+
React.createElement(
|
|
19
19
|
'ul',
|
|
20
20
|
null,
|
|
21
21
|
toc && toc.parentSection && Array.isArray(toc.parentSection.sections) && toc.parentSection.sections.map(function (s) {
|
|
22
|
-
return
|
|
22
|
+
return React.createElement(
|
|
23
23
|
'li',
|
|
24
24
|
{ key: s.identifier },
|
|
25
|
-
|
|
25
|
+
React.createElement(
|
|
26
26
|
'a',
|
|
27
27
|
{ href: s.identifier },
|
|
28
28
|
s.name
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import Row from 'react-bootstrap/Row';
|
|
3
3
|
import Col from 'react-bootstrap/Col';
|
|
4
4
|
import Button from 'react-bootstrap/Button';
|
|
5
5
|
import Card from 'react-bootstrap/Card';
|
|
6
|
-
import { L as LazyLoad } from './index-
|
|
6
|
+
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
7
7
|
import urlFor from './urlFor.js';
|
|
8
8
|
import { l as lodash } from './lodash-f97fd99a.js';
|
|
9
9
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
@@ -51,43 +51,43 @@ var PublicationDeck = function PublicationDeck(props) {
|
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
if (sortedRegPubs && sortedRegPubs.length || sortedLegacyPubs && sortedLegacyPubs.length) {
|
|
54
|
-
return
|
|
54
|
+
return React.createElement(
|
|
55
55
|
'div',
|
|
56
56
|
{ className: 'publication-wrapper', style: { paddingBottom: '150px' } },
|
|
57
|
-
sortedRegPubs && sortedRegPubs.length > 0 &&
|
|
57
|
+
sortedRegPubs && sortedRegPubs.length > 0 && React.createElement(
|
|
58
58
|
Row,
|
|
59
59
|
{ className: 'regular-publication-wrapper' },
|
|
60
60
|
sortedRegPubs.map(function (row, index) {
|
|
61
|
-
return row.identifier && row.identifier.current &&
|
|
61
|
+
return row.identifier && row.identifier.current && React.createElement(
|
|
62
62
|
Col,
|
|
63
63
|
{ xs: 6, sm: 6, md: 6, lg: 4, style: { display: 'flex', flex: '1 0 auto' }, key: index },
|
|
64
|
-
|
|
64
|
+
React.createElement(
|
|
65
65
|
Card,
|
|
66
66
|
{ className: 'block-card', style: { width: '200px' } },
|
|
67
|
-
|
|
67
|
+
React.createElement(
|
|
68
68
|
'a',
|
|
69
69
|
{ href: href + '/' + row.identifier.current },
|
|
70
|
-
row.childIssue && row.childIssue.thumbnail ?
|
|
70
|
+
row.childIssue && row.childIssue.thumbnail ? React.createElement(
|
|
71
71
|
LazyLoad,
|
|
72
72
|
{ height: imageHeight },
|
|
73
|
-
|
|
74
|
-
) :
|
|
75
|
-
|
|
73
|
+
React.createElement(Card.Img, { variant: 'top', src: renderCardImage(row.childIssue.thumbnail), style: { objectFit: 'contain', maxHeight: '200px', maxWidth: '200px' } })
|
|
74
|
+
) : React.createElement('p', { className: 'placeholder-tag' }),
|
|
75
|
+
React.createElement(
|
|
76
76
|
Card.Body,
|
|
77
77
|
{ style: { paddingTop: '0', paddingBottom: '2.75rem' } },
|
|
78
|
-
|
|
78
|
+
React.createElement(
|
|
79
79
|
Card.Title,
|
|
80
80
|
null,
|
|
81
81
|
row.name
|
|
82
82
|
),
|
|
83
|
-
|
|
83
|
+
React.createElement(
|
|
84
84
|
Button,
|
|
85
85
|
{ style: { position: 'absolute', bottom: '1rem', margin: '0px', width: '78%' }, variant: 'secondary' },
|
|
86
86
|
'Browse Issues'
|
|
87
87
|
)
|
|
88
88
|
)
|
|
89
89
|
),
|
|
90
|
-
|
|
90
|
+
React.createElement(
|
|
91
91
|
'style',
|
|
92
92
|
{ jsx: 'true' },
|
|
93
93
|
'\n .lazyload-placeholder {\n padding: 0 1.25rem 2.75rem;\n }\n .placeholder-tag {\n min-height: 200px;\n }\n '
|
|
@@ -96,53 +96,53 @@ var PublicationDeck = function PublicationDeck(props) {
|
|
|
96
96
|
);
|
|
97
97
|
})
|
|
98
98
|
),
|
|
99
|
-
sortedLegacyPubs && sortedLegacyPubs.length > 0 &&
|
|
100
|
-
|
|
99
|
+
sortedLegacyPubs && sortedLegacyPubs.length > 0 && React.createElement(
|
|
100
|
+
React.Fragment,
|
|
101
101
|
null,
|
|
102
|
-
|
|
102
|
+
React.createElement(
|
|
103
103
|
'div',
|
|
104
104
|
{ className: 'legacy-publication-title' },
|
|
105
|
-
|
|
105
|
+
React.createElement(
|
|
106
106
|
'h2',
|
|
107
107
|
null,
|
|
108
108
|
'Legacy'
|
|
109
109
|
),
|
|
110
|
-
|
|
110
|
+
React.createElement('hr', null)
|
|
111
111
|
),
|
|
112
|
-
|
|
112
|
+
React.createElement(
|
|
113
113
|
Row,
|
|
114
114
|
{ className: 'legacy-publication-wrapper' },
|
|
115
115
|
sortedLegacyPubs.map(function (row, index) {
|
|
116
|
-
return row.identifier && row.identifier.current &&
|
|
116
|
+
return row.identifier && row.identifier.current && React.createElement(
|
|
117
117
|
Col,
|
|
118
118
|
{ xs: 6, sm: 6, md: 6, lg: 4, style: { display: 'flex', flex: '1 0 auto' }, key: index },
|
|
119
|
-
|
|
119
|
+
React.createElement(
|
|
120
120
|
Card,
|
|
121
121
|
{ className: 'block-card', style: { width: '200px' } },
|
|
122
|
-
|
|
122
|
+
React.createElement(
|
|
123
123
|
'a',
|
|
124
124
|
{ href: href + '/' + row.identifier.current },
|
|
125
|
-
row.childIssue && row.childIssue.thumbnail ?
|
|
125
|
+
row.childIssue && row.childIssue.thumbnail ? React.createElement(
|
|
126
126
|
LazyLoad,
|
|
127
127
|
{ height: imageHeight },
|
|
128
|
-
|
|
129
|
-
) :
|
|
130
|
-
|
|
128
|
+
React.createElement(Card.Img, { variant: 'top', src: renderCardImage(row.childIssue.thumbnail), style: { objectFit: 'contain', maxHeight: '200px', maxWidth: '200px' } })
|
|
129
|
+
) : React.createElement('p', { className: 'placeholder-tag' }),
|
|
130
|
+
React.createElement(
|
|
131
131
|
Card.Body,
|
|
132
132
|
{ style: { paddingTop: '0', paddingBottom: '2.75rem' } },
|
|
133
|
-
|
|
133
|
+
React.createElement(
|
|
134
134
|
Card.Title,
|
|
135
135
|
null,
|
|
136
136
|
row.name
|
|
137
137
|
),
|
|
138
|
-
|
|
138
|
+
React.createElement(
|
|
139
139
|
Button,
|
|
140
140
|
{ style: { position: 'absolute', bottom: '1rem', margin: '0px', width: '78%' }, variant: 'secondary' },
|
|
141
141
|
'Browse Issues'
|
|
142
142
|
)
|
|
143
143
|
)
|
|
144
144
|
),
|
|
145
|
-
|
|
145
|
+
React.createElement(
|
|
146
146
|
'style',
|
|
147
147
|
{ jsx: 'true' },
|
|
148
148
|
'\n .lazyload-placeholder {\n padding: 0 1.25rem 2.75rem;\n }\n .placeholder-tag {\n min-height: 200px;\n }\n '
|
|
@@ -154,13 +154,13 @@ var PublicationDeck = function PublicationDeck(props) {
|
|
|
154
154
|
)
|
|
155
155
|
);
|
|
156
156
|
} else {
|
|
157
|
-
return
|
|
157
|
+
return React.createElement(
|
|
158
158
|
'div',
|
|
159
159
|
null,
|
|
160
|
-
|
|
160
|
+
React.createElement(
|
|
161
161
|
'h5',
|
|
162
162
|
null,
|
|
163
|
-
|
|
163
|
+
React.createElement(
|
|
164
164
|
'em',
|
|
165
165
|
{ className: 'pl-3' },
|
|
166
166
|
'New content coming soon, please check back later.'
|
|
@@ -6,13 +6,13 @@ import { b as _isObject, c as _objectCreate, d as _ctx, e as _descriptors, f as
|
|
|
6
6
|
import { _ as _iterStep } from './web.dom.iterable-fdf034f5.js';
|
|
7
7
|
import { _ as _meta, a as _isArray } from './_is-array-893ab020.js';
|
|
8
8
|
import { _ as _toConsumableArray } from './toConsumableArray-7b1c0e23.js';
|
|
9
|
-
import
|
|
9
|
+
import React, { useState, useEffect } from 'react';
|
|
10
10
|
import Row from 'react-bootstrap/Row';
|
|
11
11
|
import Col from 'react-bootstrap/Col';
|
|
12
12
|
import Dropdown from 'react-bootstrap/Dropdown';
|
|
13
13
|
import Card from 'react-bootstrap/Card';
|
|
14
14
|
import { useRouter } from 'next/router';
|
|
15
|
-
import { L as LazyLoad } from './index-
|
|
15
|
+
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
16
16
|
import './_library-528f1934.js';
|
|
17
17
|
import './_iter-detect-f089461c.js';
|
|
18
18
|
import './_object-pie-133f504a.js';
|
|
@@ -371,32 +371,32 @@ module.exports = { "default": set$1, __esModule: true };
|
|
|
371
371
|
|
|
372
372
|
var _Set = unwrapExports(set);
|
|
373
373
|
|
|
374
|
-
/* usage & query
|
|
375
|
-
const Publication = (props) => {
|
|
376
|
-
const { cache, pub, year } = props
|
|
377
|
-
const targeting = {
|
|
378
|
-
content_placement: [`/journals/${pub.identifier.current}`],
|
|
379
|
-
document_url: [`/journals/${pub.identifier.current}`],
|
|
380
|
-
}
|
|
381
|
-
return (
|
|
382
|
-
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
383
|
-
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
384
|
-
</Shell>
|
|
385
|
-
)
|
|
386
|
-
}
|
|
387
|
-
Publication.getInitialProps = async (ctx) => {
|
|
388
|
-
const { query } = ctx
|
|
389
|
-
const {
|
|
390
|
-
query: { year },
|
|
391
|
-
} = ctx
|
|
392
|
-
const pub = await client.fetch(getQuery('publication'), query)
|
|
393
|
-
**import urlFor from framework**
|
|
394
|
-
pub.issues.map((issue) => {
|
|
395
|
-
issue.thumbnail = urlFor({client, source: issue.thumbnail})
|
|
396
|
-
})
|
|
397
|
-
return { pub, year }
|
|
398
|
-
}
|
|
399
|
-
export default Publication
|
|
374
|
+
/* usage & query
|
|
375
|
+
const Publication = (props) => {
|
|
376
|
+
const { cache, pub, year } = props
|
|
377
|
+
const targeting = {
|
|
378
|
+
content_placement: [`/journals/${pub.identifier.current}`],
|
|
379
|
+
document_url: [`/journals/${pub.identifier.current}`],
|
|
380
|
+
}
|
|
381
|
+
return (
|
|
382
|
+
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
383
|
+
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
384
|
+
</Shell>
|
|
385
|
+
)
|
|
386
|
+
}
|
|
387
|
+
Publication.getInitialProps = async (ctx) => {
|
|
388
|
+
const { query } = ctx
|
|
389
|
+
const {
|
|
390
|
+
query: { year },
|
|
391
|
+
} = ctx
|
|
392
|
+
const pub = await client.fetch(getQuery('publication'), query)
|
|
393
|
+
**import urlFor from framework**
|
|
394
|
+
pub.issues.map((issue) => {
|
|
395
|
+
issue.thumbnail = urlFor({client, source: issue.thumbnail})
|
|
396
|
+
})
|
|
397
|
+
return { pub, year }
|
|
398
|
+
}
|
|
399
|
+
export default Publication
|
|
400
400
|
*/
|
|
401
401
|
|
|
402
402
|
var generateContentPlacements = function generateContentPlacements(issues) {
|
|
@@ -629,36 +629,36 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
629
629
|
}
|
|
630
630
|
}, [activeYear, activeContentPlacement, issueData]);
|
|
631
631
|
|
|
632
|
-
return
|
|
632
|
+
return React.createElement(
|
|
633
633
|
'div',
|
|
634
634
|
{ id: 'publicationLanding' },
|
|
635
|
-
|
|
635
|
+
React.createElement(
|
|
636
636
|
'style',
|
|
637
637
|
{ jsx: true },
|
|
638
638
|
'\n #pubYearFilter .dropdown-menu.show,\n #contentPlacementFilter .dropdown-menu.show {\n max-height: 25vh;\n overflow: auto;\n }\n '
|
|
639
639
|
),
|
|
640
|
-
|
|
640
|
+
React.createElement(
|
|
641
641
|
Row,
|
|
642
642
|
null,
|
|
643
|
-
issueData && issueData.length > 0 && years.length > 0 &&
|
|
643
|
+
issueData && issueData.length > 0 && years.length > 0 && React.createElement(
|
|
644
644
|
Col,
|
|
645
645
|
{ className: 'flex-grow-0 mb-3' },
|
|
646
|
-
|
|
646
|
+
React.createElement(
|
|
647
647
|
Dropdown,
|
|
648
648
|
{ id: 'pubYearFilter' },
|
|
649
|
-
|
|
649
|
+
React.createElement(
|
|
650
650
|
Dropdown.Toggle,
|
|
651
651
|
null,
|
|
652
652
|
activeYear && !isNaN(activeYear) ? activeYear : 'Select Year'
|
|
653
653
|
),
|
|
654
|
-
|
|
654
|
+
React.createElement(
|
|
655
655
|
Dropdown.Menu,
|
|
656
656
|
null,
|
|
657
|
-
|
|
657
|
+
React.createElement(Dropdown.Item, { style: { height: '2rem' }, onClick: function onClick() {
|
|
658
658
|
return setActiveYear('');
|
|
659
659
|
} }),
|
|
660
660
|
years.map(function (yr, key) {
|
|
661
|
-
return
|
|
661
|
+
return React.createElement(
|
|
662
662
|
Dropdown.Item,
|
|
663
663
|
{ key: key, onClick: function onClick() {
|
|
664
664
|
return setActiveYear(yr);
|
|
@@ -669,25 +669,25 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
669
669
|
)
|
|
670
670
|
)
|
|
671
671
|
),
|
|
672
|
-
contentPlacements && contentPlacements.length > 0 &&
|
|
672
|
+
contentPlacements && contentPlacements.length > 0 && React.createElement(
|
|
673
673
|
Col,
|
|
674
674
|
{ className: 'flex-grow-0 mb-3' },
|
|
675
|
-
|
|
675
|
+
React.createElement(
|
|
676
676
|
Dropdown,
|
|
677
677
|
{ id: 'contentPlacementFilter' },
|
|
678
|
-
|
|
678
|
+
React.createElement(
|
|
679
679
|
Dropdown.Toggle,
|
|
680
680
|
null,
|
|
681
681
|
activeContentPlacement && activeContentPlacement.name ? activeContentPlacement.name : 'Select Topic'
|
|
682
682
|
),
|
|
683
|
-
|
|
683
|
+
React.createElement(
|
|
684
684
|
Dropdown.Menu,
|
|
685
685
|
null,
|
|
686
|
-
|
|
686
|
+
React.createElement(Dropdown.Item, { style: { height: '2rem' }, onClick: function onClick() {
|
|
687
687
|
return setActiveContentPlacement('');
|
|
688
688
|
} }),
|
|
689
689
|
contentPlacements.map(function (cp) {
|
|
690
|
-
return
|
|
690
|
+
return React.createElement(
|
|
691
691
|
Dropdown.Item,
|
|
692
692
|
{
|
|
693
693
|
key: cp._id,
|
|
@@ -703,60 +703,60 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
703
703
|
)
|
|
704
704
|
),
|
|
705
705
|
sortedIssues && sortedIssues.length > 0 ? sortedIssues.map(function (issue, key) {
|
|
706
|
-
return
|
|
706
|
+
return React.createElement(
|
|
707
707
|
Card,
|
|
708
708
|
{ key: key, className: 'issueCard' },
|
|
709
|
-
|
|
709
|
+
React.createElement(
|
|
710
710
|
Row,
|
|
711
711
|
null,
|
|
712
|
-
|
|
712
|
+
React.createElement(
|
|
713
713
|
Col,
|
|
714
714
|
{ md: 3, id: 'issueThumbnail' },
|
|
715
|
-
|
|
715
|
+
React.createElement(
|
|
716
716
|
LazyLoad,
|
|
717
717
|
{ once: true },
|
|
718
|
-
|
|
718
|
+
React.createElement(Card.Img, { src: issue.thumbnail })
|
|
719
719
|
)
|
|
720
720
|
),
|
|
721
|
-
|
|
721
|
+
React.createElement(
|
|
722
722
|
Col,
|
|
723
723
|
{ md: 9, id: 'issueDetail' },
|
|
724
|
-
|
|
724
|
+
React.createElement(
|
|
725
725
|
Card.Body,
|
|
726
726
|
null,
|
|
727
|
-
|
|
727
|
+
React.createElement(
|
|
728
728
|
Card.Title,
|
|
729
729
|
null,
|
|
730
730
|
issue.name
|
|
731
731
|
),
|
|
732
|
-
issue.source &&
|
|
732
|
+
issue.source && React.createElement(
|
|
733
733
|
'div',
|
|
734
734
|
{ className: 'content-category-label' },
|
|
735
|
-
|
|
735
|
+
React.createElement(
|
|
736
736
|
'div',
|
|
737
737
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
738
738
|
issue.source
|
|
739
739
|
)
|
|
740
740
|
),
|
|
741
|
-
issue.volume && issue.number &&
|
|
741
|
+
issue.volume && issue.number && React.createElement(
|
|
742
742
|
'p',
|
|
743
743
|
null,
|
|
744
744
|
'Volume: ',
|
|
745
745
|
issue.volume,
|
|
746
|
-
|
|
746
|
+
React.createElement('br', null),
|
|
747
747
|
'Issue: ',
|
|
748
748
|
issue.number
|
|
749
749
|
)
|
|
750
750
|
),
|
|
751
|
-
|
|
751
|
+
React.createElement(
|
|
752
752
|
Card.Footer,
|
|
753
753
|
null,
|
|
754
|
-
issue && issue.articles && issue.articles.length > 0 ?
|
|
754
|
+
issue && issue.articles && issue.articles.length > 0 ? React.createElement(
|
|
755
755
|
'a',
|
|
756
756
|
{ href: publication.identifier.current + '/' + issue.identifier.current, className: 'btn btn-primary' },
|
|
757
757
|
'View Issue'
|
|
758
758
|
) : null,
|
|
759
|
-
issue.pdf && issue.pdf.asset && issue.pdf.asset.url &&
|
|
759
|
+
issue.pdf && issue.pdf.asset && issue.pdf.asset.url && React.createElement(
|
|
760
760
|
'a',
|
|
761
761
|
{ rel: 'noopener', href: issue.pdf.asset.url, target: '_blank', className: 'btn btn-primary' },
|
|
762
762
|
'Download Issue'
|
|
@@ -766,60 +766,60 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
766
766
|
)
|
|
767
767
|
);
|
|
768
768
|
}) : !activeContentPlacement && !activeYear && issueData && issueData.length > 0 ? issueData.map(function (issue, key) {
|
|
769
|
-
return
|
|
769
|
+
return React.createElement(
|
|
770
770
|
Card,
|
|
771
771
|
{ key: key, className: 'issueCard' },
|
|
772
|
-
|
|
772
|
+
React.createElement(
|
|
773
773
|
Row,
|
|
774
774
|
null,
|
|
775
|
-
|
|
775
|
+
React.createElement(
|
|
776
776
|
Col,
|
|
777
777
|
{ md: 3, id: 'issueThumbnail' },
|
|
778
|
-
|
|
778
|
+
React.createElement(
|
|
779
779
|
LazyLoad,
|
|
780
780
|
{ once: true },
|
|
781
|
-
|
|
781
|
+
React.createElement(Card.Img, { src: issue.thumbnail })
|
|
782
782
|
)
|
|
783
783
|
),
|
|
784
|
-
|
|
784
|
+
React.createElement(
|
|
785
785
|
Col,
|
|
786
786
|
{ md: 9, id: 'issueDetail' },
|
|
787
|
-
|
|
787
|
+
React.createElement(
|
|
788
788
|
Card.Body,
|
|
789
789
|
null,
|
|
790
|
-
|
|
790
|
+
React.createElement(
|
|
791
791
|
Card.Title,
|
|
792
792
|
null,
|
|
793
793
|
issue.name
|
|
794
794
|
),
|
|
795
|
-
issue.source &&
|
|
795
|
+
issue.source && React.createElement(
|
|
796
796
|
'div',
|
|
797
797
|
{ className: 'content-category-label' },
|
|
798
|
-
|
|
798
|
+
React.createElement(
|
|
799
799
|
'div',
|
|
800
800
|
{ className: 'mb-1 sanityDisplayLabel displayLabelThumb' },
|
|
801
801
|
issue.source
|
|
802
802
|
)
|
|
803
803
|
),
|
|
804
|
-
issue.volume && issue.number &&
|
|
804
|
+
issue.volume && issue.number && React.createElement(
|
|
805
805
|
'p',
|
|
806
806
|
null,
|
|
807
807
|
'Volume: ',
|
|
808
808
|
issue.volume,
|
|
809
|
-
|
|
809
|
+
React.createElement('br', null),
|
|
810
810
|
'Issue: ',
|
|
811
811
|
issue.number
|
|
812
812
|
)
|
|
813
813
|
),
|
|
814
|
-
|
|
814
|
+
React.createElement(
|
|
815
815
|
Card.Footer,
|
|
816
816
|
null,
|
|
817
|
-
issue && issue.articles && issue.articles.length > 0 ?
|
|
817
|
+
issue && issue.articles && issue.articles.length > 0 ? React.createElement(
|
|
818
818
|
'a',
|
|
819
819
|
{ href: publication.identifier.current + '/' + issue.identifier.current, className: 'btn btn-primary' },
|
|
820
820
|
'View Issue'
|
|
821
821
|
) : null,
|
|
822
|
-
issue.pdf && issue.pdf.asset && issue.pdf.asset.url &&
|
|
822
|
+
issue.pdf && issue.pdf.asset && issue.pdf.asset.url && React.createElement(
|
|
823
823
|
'a',
|
|
824
824
|
{ rel: 'noopener', href: issue.pdf.asset.url, target: '_blank', className: 'btn btn-primary' },
|
|
825
825
|
'Download Issue'
|
|
@@ -828,12 +828,12 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
828
828
|
)
|
|
829
829
|
)
|
|
830
830
|
);
|
|
831
|
-
}) :
|
|
831
|
+
}) : React.createElement(
|
|
832
832
|
'em',
|
|
833
833
|
null,
|
|
834
834
|
'New content coming soon, please check back later.'
|
|
835
835
|
),
|
|
836
|
-
|
|
836
|
+
React.createElement(
|
|
837
837
|
'style',
|
|
838
838
|
{ jsx: 'true' },
|
|
839
839
|
'\n .issueCard.card:hover {\n cursor: default;\n }\n .content-category-label {\n margin: 0.5rem 0;\n display: block;\n }\n .sanityDisplayLabel {\n margin: 0.5rem 0;\n border: 1px solid black;\n display: inline;\n width: 100%;\n padding: 5px;\n color: #484848;\n border-radius: 2px;\n }\n .dropdown-toggle {\n min-width: 5rem;\n }\n .dropdown-toggle:empty:after {\n margin-left: 4rem;\n }\n .card-footer {\n background-color: transparent;\n border-top: 0;\n }\n .card-footer a:not(:first-child) {\n margin-left: 1rem;\n }\n '
|