@mjhls/mjh-framework 1.0.1073-issue-test-v3 → 1.0.1073
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 +6 -6
- package/dist/cjs/AD300x250.js +5 -6
- package/dist/cjs/AD300x250x600.js +5 -6
- package/dist/cjs/AD728x90.js +6 -7
- package/dist/cjs/ADFloatingFooter.js +8 -9
- package/dist/cjs/ADFooter.js +5 -5
- package/dist/cjs/ADGutter.js +8 -9
- package/dist/cjs/{ADInfeed-3a68b356.js → ADInfeed-0519664d.js} +6 -6
- package/dist/cjs/ADSkyscraper.js +8 -9
- package/dist/cjs/ADSponsoredResources.js +8 -9
- package/dist/cjs/ADWebcast.js +8 -9
- package/dist/cjs/ADWelcome.js +12 -13
- package/dist/cjs/{ADlgInfeed-d88a0250.js → ADlgInfeed-e544ac1c.js} +4 -4
- package/dist/cjs/AccordionPanel.js +17 -17
- package/dist/cjs/AdSlot.js +9 -10
- package/dist/cjs/AdSlotsProvider.js +5 -6
- package/dist/cjs/AlgoliaSearch.js +1409 -896
- package/dist/cjs/AlphabeticList.js +12 -12
- package/dist/cjs/ArticleCarousel.js +5 -5
- package/dist/cjs/ArticleProgramLandingPage.js +15 -16
- package/dist/cjs/ArticleSeriesLandingPage.js +11 -12
- package/dist/cjs/ArticleSeriesListing.js +29 -30
- package/dist/cjs/AuthWrapper.js +315 -1497
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-7d00f6d5.js} +9 -9
- package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-96b44364.js} +18 -18
- package/dist/cjs/Breadcrumbs.js +17 -17
- package/dist/cjs/CEDeckSupabase.js +68 -69
- package/dist/cjs/CMEDeck.js +61 -62
- package/dist/cjs/Column1.js +6 -6
- package/dist/cjs/Column2.js +14 -14
- package/dist/cjs/Column3.js +26 -27
- package/dist/cjs/ConferenceArticleCard.js +27 -27
- package/dist/cjs/{ConferenceBanner-6c9e718a.js → ConferenceBanner-213003ce.js} +3 -3
- package/dist/cjs/ContentCardPaginated.js +50 -51
- package/dist/cjs/DeckContent.js +67 -68
- package/dist/cjs/DeckQueue.js +58 -59
- package/dist/cjs/DeckQueuePaginated.js +47 -48
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-67646058.js} +17 -18
- package/dist/cjs/EventsDeck.js +107 -107
- package/dist/cjs/ExternalResources.js +35 -36
- package/dist/cjs/Feature.js +17 -17
- package/dist/cjs/ForbesHero.js +25 -25
- package/dist/cjs/GridContent.js +135 -136
- package/dist/cjs/GridContentPaginated.js +122 -123
- package/dist/cjs/GridHero.js +27 -27
- package/dist/cjs/GroupDeck.js +33 -33
- package/dist/cjs/HamMagazine.js +120 -120
- package/dist/cjs/Header.js +25 -25
- package/dist/cjs/HealthCareProfessionalModal.js +18 -18
- package/dist/cjs/Hero.js +6 -6
- package/dist/cjs/HighlightenVideo.js +13 -13
- package/dist/cjs/HorizontalArticleListing.js +29 -30
- package/dist/cjs/HorizontalHero.js +17 -17
- package/dist/cjs/{ImageSlider-294d3fc0.js → ImageSlider-62a43659.js} +221 -164
- package/dist/cjs/IssueContentDeck.js +49 -49
- package/dist/cjs/IssueDeck.js +48 -48
- package/dist/cjs/IssueLanding.js +50 -51
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +17 -18
- package/dist/cjs/MasterDeck.js +47 -48
- package/dist/cjs/MasterDeckPaginated.js +37 -38
- package/dist/cjs/{MediaSeriesCard-1835d75a.js → MediaSeriesCard-a7e29435.js} +17 -17
- package/dist/cjs/MediaSeriesLanding.js +43 -44
- package/dist/cjs/MediaSeriesLandingPaginated.js +42 -43
- package/dist/cjs/NavDvm.js +57 -57
- package/dist/cjs/{NavFooter-fa5fae05.js → NavFooter-b7b16d48.js} +11 -11
- package/dist/cjs/NavMagazine.js +116 -116
- package/dist/cjs/NavNative.js +106 -106
- package/dist/cjs/OncliveHero.js +11 -11
- package/dist/cjs/OncliveLargeHero.js +50 -50
- package/dist/cjs/PageFilter.js +5 -5
- package/dist/cjs/{Pagination-2a3d0103.js → Pagination-6359861a.js} +13 -13
- package/dist/cjs/PartnerDetailListing.js +50 -52
- package/dist/cjs/PartnerDetailListingPaginated.js +49 -51
- package/dist/cjs/PdfDownload.js +4 -4
- package/dist/cjs/PixelTracking.js +9 -9
- package/dist/cjs/PodcastsLanding.js +23 -24
- package/dist/cjs/PopUpModal.js +9 -9
- package/dist/cjs/PtceDeck.js +13 -13
- package/dist/cjs/PubSection.js +14 -15
- package/dist/cjs/PubToc.js +4 -4
- package/dist/cjs/PublicationDeck.js +44 -44
- package/dist/cjs/{PublicationFeature-03de3225.js → PublicationFeature-e945bd55.js} +29 -29
- package/dist/cjs/PublicationLanding.js +101 -101
- package/dist/cjs/QueueDeckExpanded.js +246 -247
- package/dist/cjs/QueueDeckExpandedPaginated.js +223 -224
- package/dist/cjs/RecentNews.js +15 -15
- package/dist/cjs/RelatedContent.js +42 -42
- package/dist/cjs/RelatedTopicsDropdown.js +24 -24
- package/dist/cjs/RolesDeck.js +20 -20
- package/dist/cjs/Schema.js +1 -1
- package/dist/cjs/Search.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +18 -19
- package/dist/cjs/{SeriesSlider-621d0cbb.js → SeriesSlider-edcb8e4b.js} +26 -26
- package/dist/cjs/SideFooter.js +20 -20
- package/dist/cjs/SocialIcons.js +6 -6
- package/dist/cjs/{SocialSearchComponent-f874175b.js → SocialSearchComponent-e9ec9c63.js} +28 -28
- package/dist/cjs/SocialShare.js +25 -25
- package/dist/cjs/TaxonomyCard.js +44 -44
- package/dist/cjs/TaxonomyDescription.js +12 -13
- package/dist/cjs/TemplateNormal.js +27 -28
- package/dist/cjs/ThumbnailCard.js +11 -11
- package/dist/cjs/{Tooltip-f075b7ef.js → Tooltip-980a1d1a.js} +493 -608
- package/dist/cjs/Ustream.js +9 -9
- package/dist/cjs/VerticalHero.js +10 -10
- package/dist/cjs/VideoProgramLandingPage.js +29 -30
- package/dist/cjs/VideoSeriesCard.js +14 -14
- package/dist/cjs/VideoSeriesFilter.js +5 -5
- package/dist/cjs/VideoSeriesLandingPage.js +11 -12
- package/dist/cjs/VideoSeriesListing.js +46 -47
- package/dist/cjs/View.js +238 -239
- package/dist/cjs/YahooHero.js +23 -23
- package/dist/cjs/YoutubeGroup.js +37 -37
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-4c7825a1.js} +2 -2
- package/dist/cjs/{entities-df1aed86.js → entities-3f9d0f2f.js} +0 -4
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getSerializers.js +7 -8
- package/dist/cjs/{getTargeting-5b954783.js → getTargeting-45ffbee8.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-be4097c0.js +2 -4
- package/dist/cjs/{index-ee8ef012.js → index-43275e6f.js} +485 -485
- package/dist/cjs/{index-eadd5035.js → index-65621b6c.js} +5 -5
- package/dist/cjs/{index-fc2f1ca2.js → index-7435b964.js} +471 -6
- package/dist/cjs/{index-50be6759.js → index-8041a4eb.js} +9 -15
- package/dist/cjs/{index-f86bb269.js → index-96c331fd.js} +53 -52
- package/dist/cjs/{index.es-f3e47207.js → index.es-1ab8dda7.js} +4 -4
- package/dist/cjs/{index.esm-f51609ab.js → index.esm-2ea9e9ff.js} +14 -14
- package/dist/cjs/index.js +103 -106
- package/dist/cjs/{main-1ec1de84.js → main-47be4f9f.js} +13 -13
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-2c5c389a.js} +7 -7
- package/dist/cjs/ustream-api-3819e4aa.js +1 -1
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-56020df6.js} +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +1 -2
- package/dist/esm/AD300x250x600.js +1 -2
- package/dist/esm/AD728x90.js +1 -2
- package/dist/esm/ADFloatingFooter.js +1 -2
- package/dist/esm/ADGutter.js +1 -2
- package/dist/esm/ADSkyscraper.js +1 -2
- package/dist/esm/ADSponsoredResources.js +1 -2
- package/dist/esm/ADWebcast.js +1 -2
- package/dist/esm/ADWelcome.js +1 -2
- package/dist/esm/AdSlot.js +1 -2
- package/dist/esm/AdSlotsProvider.js +1 -2
- package/dist/esm/AlgoliaSearch.js +1026 -513
- package/dist/esm/ArticleProgramLandingPage.js +3 -4
- package/dist/esm/ArticleSeriesLandingPage.js +3 -4
- package/dist/esm/ArticleSeriesListing.js +1 -2
- package/dist/esm/AuthWrapper.js +288 -1470
- package/dist/esm/CEDeckSupabase.js +2 -3
- package/dist/esm/CMEDeck.js +1 -2
- package/dist/esm/Column3.js +1 -2
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/ContentCardPaginated.js +4 -5
- package/dist/esm/DeckContent.js +11 -12
- package/dist/esm/DeckQueue.js +2 -3
- package/dist/esm/DeckQueuePaginated.js +3 -4
- package/dist/esm/{Dfp-102f0beb.js → Dfp-cf85d203.js} +1 -2
- package/dist/esm/EventsDeck.js +18 -18
- package/dist/esm/ExternalResources.js +4 -5
- package/dist/esm/GridContent.js +4 -5
- package/dist/esm/GridContentPaginated.js +5 -6
- package/dist/esm/GridHero.js +1 -1
- package/dist/esm/HamMagazine.js +9 -9
- package/dist/esm/HealthCareProfessionalModal.js +1 -1
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +3 -4
- package/dist/esm/{ImageSlider-497e9c88.js → ImageSlider-aea3a615.js} +67 -10
- package/dist/esm/IssueLanding.js +34 -35
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +1 -2
- package/dist/esm/MasterDeck.js +11 -12
- package/dist/esm/MasterDeckPaginated.js +12 -13
- package/dist/esm/{MediaSeriesCard-a7084d7c.js → MediaSeriesCard-b47e2393.js} +2 -2
- package/dist/esm/MediaSeriesLanding.js +13 -14
- package/dist/esm/MediaSeriesLandingPaginated.js +14 -15
- package/dist/esm/NavMagazine.js +10 -10
- package/dist/esm/NavNative.js +9 -9
- package/dist/esm/OncliveLargeHero.js +1 -1
- package/dist/esm/{Pagination-dc30727b.js → Pagination-9fe9f61d.js} +1 -1
- package/dist/esm/PartnerDetailListing.js +6 -8
- package/dist/esm/PartnerDetailListingPaginated.js +7 -9
- package/dist/esm/PodcastsLanding.js +6 -7
- package/dist/esm/PubSection.js +4 -5
- package/dist/esm/PublicationLanding.js +26 -26
- package/dist/esm/QueueDeckExpanded.js +4 -5
- package/dist/esm/QueueDeckExpandedPaginated.js +5 -6
- package/dist/esm/RelatedContent.js +28 -28
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SeriesListingDeck.js +2 -3
- package/dist/esm/{SeriesSlider-07be99e0.js → SeriesSlider-2e83e861.js} +4 -4
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/TaxonomyDescription.js +3 -4
- package/dist/esm/TemplateNormal.js +1 -2
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/{Tooltip-95655b44.js → Tooltip-51957f7c.js} +55 -170
- package/dist/esm/VideoProgramLandingPage.js +3 -4
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesLandingPage.js +3 -4
- package/dist/esm/VideoSeriesListing.js +1 -2
- package/dist/esm/View.js +7 -8
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/{entities-6d9154b4.js → entities-932b50cf.js} +0 -4
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getSerializers.js +3 -4
- package/dist/esm/{getTargeting-5a281334.js → getTargeting-a569a9cc.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-79cfd25c.js → index-30a6257d.js} +53 -52
- package/dist/esm/{index-f0fc23eb.js → index-5cc7b406.js} +466 -1
- package/dist/esm/{index-98ca9cec.js → index-67e1773f.js} +9 -15
- package/dist/esm/{index-57eb68ee.js → index-983ef4ad.js} +2 -2
- package/dist/esm/index.js +10 -13
- package/package.json +116 -116
- package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/defineProperty-23a8f8cd.js +0 -68
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/typeof-2f07d0e8.js +0 -30
- /package/dist/esm/{ADInfeed-74cc728c.js → ADInfeed-c3f5613e.js} +0 -0
- /package/dist/esm/{ADlgInfeed-b6217567.js → ADlgInfeed-2b148f3f.js} +0 -0
|
@@ -3,15 +3,14 @@ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-1559c147.js';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import { TwitterTimelineEmbed } from 'react-twitter-embed';
|
|
6
|
-
import { I as ImageSlider, F as Facebook, P as Page } from './ImageSlider-
|
|
7
|
-
import './defineProperty-23a8f8cd.js';
|
|
6
|
+
import { I as ImageSlider, F as Facebook, P as Page } from './ImageSlider-aea3a615.js';
|
|
8
7
|
import { r as reactSocialIcons_1 } from './react-social-icons-9be47857.js';
|
|
9
8
|
import './moment-bc12cb97.js';
|
|
10
9
|
import QueueDeckExpanded from './QueueDeckExpandedPaginated.js';
|
|
11
10
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
12
11
|
import Feature from './Feature.js';
|
|
13
12
|
import urlFor from './urlFor.js';
|
|
14
|
-
import { g as getSerializers } from './index-
|
|
13
|
+
import { g as getSerializers } from './index-983ef4ad.js';
|
|
15
14
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
16
15
|
import { c as checkSisterSite } from './checkSisterSite-a7218fda.js';
|
|
17
16
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
@@ -24,15 +23,14 @@ import 'prop-types';
|
|
|
24
23
|
import './smoothscroll-fa4e3f8c.js';
|
|
25
24
|
import './toConsumableArray-f7074d7c.js';
|
|
26
25
|
import 'react-bootstrap';
|
|
27
|
-
import './index-
|
|
28
|
-
import './events-6c3a7a63.js';
|
|
26
|
+
import './index-5cc7b406.js';
|
|
29
27
|
import 'next/router';
|
|
30
28
|
import './index-755f2cc2.js';
|
|
31
29
|
import 'react-dom';
|
|
32
30
|
import './lodash-f97fd99a.js';
|
|
33
31
|
import './main-f97773b2.js';
|
|
34
|
-
import './entities-
|
|
35
|
-
import './ADInfeed-
|
|
32
|
+
import './entities-932b50cf.js';
|
|
33
|
+
import './ADInfeed-c3f5613e.js';
|
|
36
34
|
import 'react-bootstrap/Card';
|
|
37
35
|
import './AdSlot.js';
|
|
38
36
|
import './debounce-533d9748.js';
|
|
@@ -42,10 +40,10 @@ import './Beam.js';
|
|
|
42
40
|
import './stringify-2b084bee.js';
|
|
43
41
|
import './Segment.js';
|
|
44
42
|
import './AuthorComponent-11adff02.js';
|
|
45
|
-
import './ADlgInfeed-
|
|
43
|
+
import './ADlgInfeed-2b148f3f.js';
|
|
46
44
|
import './getContentCategory-15dcc413.js';
|
|
47
45
|
import './timeDifferenceCalc.js';
|
|
48
|
-
import './Pagination-
|
|
46
|
+
import './Pagination-9fe9f61d.js';
|
|
49
47
|
import 'react-bootstrap/Button';
|
|
50
48
|
import './index.esm-1bd8a0a8.js';
|
|
51
49
|
import './iconBase-ccc56b97.js';
|
|
@@ -4,9 +4,9 @@ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
|
4
4
|
import React__default, { useState } from 'react';
|
|
5
5
|
import Link from 'next/link';
|
|
6
6
|
import MasterDeck from './MasterDeck.js';
|
|
7
|
-
import { M as MediaSeriesCard } from './MediaSeriesCard-
|
|
7
|
+
import { M as MediaSeriesCard } from './MediaSeriesCard-b47e2393.js';
|
|
8
8
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
9
|
-
import { g as getSerializers } from './index-
|
|
9
|
+
import { g as getSerializers } from './index-983ef4ad.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './core.get-iterator-method-ea258bb1.js';
|
|
12
12
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -19,8 +19,7 @@ import './_object-sap-7cee6f84.js';
|
|
|
19
19
|
import './define-property-5f1bda73.js';
|
|
20
20
|
import './typeof-657f25da.js';
|
|
21
21
|
import './_is-array-8d21b9e3.js';
|
|
22
|
-
import './index-
|
|
23
|
-
import './events-6c3a7a63.js';
|
|
22
|
+
import './index-5cc7b406.js';
|
|
24
23
|
import 'prop-types';
|
|
25
24
|
import 'react-bootstrap/Container';
|
|
26
25
|
import 'react-bootstrap/Row';
|
|
@@ -36,13 +35,13 @@ import './index.es-a6137319.js';
|
|
|
36
35
|
import './visibility-sensor-72fd8f8b.js';
|
|
37
36
|
import 'react-dom';
|
|
38
37
|
import './index-3f5c03b2.js';
|
|
39
|
-
import './ADlgInfeed-
|
|
38
|
+
import './ADlgInfeed-2b148f3f.js';
|
|
40
39
|
import './AdSlot.js';
|
|
41
40
|
import './Beam.js';
|
|
42
41
|
import './stringify-2b084bee.js';
|
|
43
42
|
import './Segment.js';
|
|
44
43
|
import './main-f97773b2.js';
|
|
45
|
-
import './ADInfeed-
|
|
44
|
+
import './ADInfeed-c3f5613e.js';
|
|
46
45
|
import './index-755f2cc2.js';
|
|
47
46
|
import './urlFor.js';
|
|
48
47
|
import './style-inject.es-1f59c1d0.js';
|
|
@@ -62,7 +61,7 @@ import './SocialShare.js';
|
|
|
62
61
|
import 'next/head';
|
|
63
62
|
import 'react-share';
|
|
64
63
|
import 'react-bootstrap/Pagination';
|
|
65
|
-
import './entities-
|
|
64
|
+
import './entities-932b50cf.js';
|
|
66
65
|
import './index.esm-eb1e8e80.js';
|
|
67
66
|
import './iconBase-ccc56b97.js';
|
|
68
67
|
import 'react-bootstrap/Figure';
|
package/dist/esm/PubSection.js
CHANGED
|
@@ -17,14 +17,13 @@ import './index.es-a6137319.js';
|
|
|
17
17
|
import './moment-bc12cb97.js';
|
|
18
18
|
import './visibility-sensor-72fd8f8b.js';
|
|
19
19
|
import 'react-dom';
|
|
20
|
-
import './index-
|
|
21
|
-
import './events-6c3a7a63.js';
|
|
20
|
+
import './index-5cc7b406.js';
|
|
22
21
|
import 'prop-types';
|
|
23
22
|
import 'next/router';
|
|
24
23
|
import './index-755f2cc2.js';
|
|
25
24
|
import './main-f97773b2.js';
|
|
26
|
-
import './entities-
|
|
27
|
-
import './ADInfeed-
|
|
25
|
+
import './entities-932b50cf.js';
|
|
26
|
+
import './ADInfeed-c3f5613e.js';
|
|
28
27
|
import 'react-bootstrap/Card';
|
|
29
28
|
import './AdSlot.js';
|
|
30
29
|
import './debounce-533d9748.js';
|
|
@@ -35,7 +34,7 @@ import './stringify-2b084bee.js';
|
|
|
35
34
|
import './Segment.js';
|
|
36
35
|
import './AuthorComponent-11adff02.js';
|
|
37
36
|
import './lodash-f97fd99a.js';
|
|
38
|
-
import './ADlgInfeed-
|
|
37
|
+
import './ADlgInfeed-2b148f3f.js';
|
|
39
38
|
import './getContentCategory-15dcc413.js';
|
|
40
39
|
import './timeDifferenceCalc.js';
|
|
41
40
|
|
|
@@ -373,32 +373,32 @@ module.exports = { "default": set$1, __esModule: true };
|
|
|
373
373
|
|
|
374
374
|
var _Set = unwrapExports(set);
|
|
375
375
|
|
|
376
|
-
/* usage & query
|
|
377
|
-
const Publication = (props) => {
|
|
378
|
-
const { cache, pub, year } = props
|
|
379
|
-
const targeting = {
|
|
380
|
-
content_placement: [`/journals/${pub.identifier.current}`],
|
|
381
|
-
document_url: [`/journals/${pub.identifier.current}`],
|
|
382
|
-
}
|
|
383
|
-
return (
|
|
384
|
-
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
385
|
-
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
386
|
-
</Shell>
|
|
387
|
-
)
|
|
388
|
-
}
|
|
389
|
-
Publication.getInitialProps = async (ctx) => {
|
|
390
|
-
const { query } = ctx
|
|
391
|
-
const {
|
|
392
|
-
query: { year },
|
|
393
|
-
} = ctx
|
|
394
|
-
const pub = await client.fetch(getQuery('publication'), query)
|
|
395
|
-
**import urlFor from framework**
|
|
396
|
-
pub.issues.map((issue) => {
|
|
397
|
-
issue.thumbnail = urlFor({client, source: issue.thumbnail})
|
|
398
|
-
})
|
|
399
|
-
return { pub, year }
|
|
400
|
-
}
|
|
401
|
-
export default Publication
|
|
376
|
+
/* usage & query
|
|
377
|
+
const Publication = (props) => {
|
|
378
|
+
const { cache, pub, year } = props
|
|
379
|
+
const targeting = {
|
|
380
|
+
content_placement: [`/journals/${pub.identifier.current}`],
|
|
381
|
+
document_url: [`/journals/${pub.identifier.current}`],
|
|
382
|
+
}
|
|
383
|
+
return (
|
|
384
|
+
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
385
|
+
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
386
|
+
</Shell>
|
|
387
|
+
)
|
|
388
|
+
}
|
|
389
|
+
Publication.getInitialProps = async (ctx) => {
|
|
390
|
+
const { query } = ctx
|
|
391
|
+
const {
|
|
392
|
+
query: { year },
|
|
393
|
+
} = ctx
|
|
394
|
+
const pub = await client.fetch(getQuery('publication'), query)
|
|
395
|
+
**import urlFor from framework**
|
|
396
|
+
pub.issues.map((issue) => {
|
|
397
|
+
issue.thumbnail = urlFor({client, source: issue.thumbnail})
|
|
398
|
+
})
|
|
399
|
+
return { pub, year }
|
|
400
|
+
}
|
|
401
|
+
export default Publication
|
|
402
402
|
*/
|
|
403
403
|
|
|
404
404
|
var generateContentPlacements = function generateContentPlacements(issues) {
|
|
@@ -7,15 +7,15 @@ import urlFor from './urlFor.js';
|
|
|
7
7
|
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
8
8
|
import { m as moment } from './moment-bc12cb97.js';
|
|
9
9
|
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
10
|
-
import { l as lib_3 } from './index-
|
|
10
|
+
import { l as lib_3 } from './index-5cc7b406.js';
|
|
11
11
|
import { useRouter } from 'next/router';
|
|
12
12
|
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
13
13
|
import { m as main_43 } from './main-f97773b2.js';
|
|
14
|
-
import { c as clean_html_1 } from './entities-
|
|
15
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
14
|
+
import { c as clean_html_1 } from './entities-932b50cf.js';
|
|
15
|
+
import { A as ADInfeed } from './ADInfeed-c3f5613e.js';
|
|
16
16
|
import { A as AuthorComponent } from './AuthorComponent-11adff02.js';
|
|
17
17
|
import { l as lodash } from './lodash-f97fd99a.js';
|
|
18
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
18
|
+
import { A as ADlgInfeed } from './ADlgInfeed-2b148f3f.js';
|
|
19
19
|
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
20
20
|
import timeDifferenceCalc from './timeDifferenceCalc.js';
|
|
21
21
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
@@ -24,7 +24,6 @@ import './core.get-iterator-method-ea258bb1.js';
|
|
|
24
24
|
import './_iter-detect-98db3b07.js';
|
|
25
25
|
import './index-3f5c03b2.js';
|
|
26
26
|
import 'react-dom';
|
|
27
|
-
import './events-6c3a7a63.js';
|
|
28
27
|
import 'prop-types';
|
|
29
28
|
import 'react-bootstrap/Card';
|
|
30
29
|
import './AdSlot.js';
|
|
@@ -5,26 +5,25 @@ import { _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
|
|
|
5
5
|
import React__default, { useState, useEffect, useRef } from 'react';
|
|
6
6
|
import { Spinner, Container, Media } from 'react-bootstrap';
|
|
7
7
|
import { m as moment } from './moment-bc12cb97.js';
|
|
8
|
-
import { l as lib_3 } from './index-
|
|
8
|
+
import { l as lib_3 } from './index-5cc7b406.js';
|
|
9
9
|
import { useRouter } from 'next/router';
|
|
10
10
|
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
11
11
|
import { l as lodash } from './lodash-f97fd99a.js';
|
|
12
12
|
import { m as main_43 } from './main-f97773b2.js';
|
|
13
|
-
import { c as clean_html_1 } from './entities-
|
|
14
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
13
|
+
import { c as clean_html_1 } from './entities-932b50cf.js';
|
|
14
|
+
import { A as ADInfeed } from './ADInfeed-c3f5613e.js';
|
|
15
15
|
import { A as AuthorComponent } from './AuthorComponent-11adff02.js';
|
|
16
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
16
|
+
import { A as ADlgInfeed } from './ADlgInfeed-2b148f3f.js';
|
|
17
17
|
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
18
18
|
import timeDifferenceCalc from './timeDifferenceCalc.js';
|
|
19
19
|
import urlFor from './urlFor.js';
|
|
20
|
-
import { P as Pagination } from './Pagination-
|
|
20
|
+
import { P as Pagination } from './Pagination-9fe9f61d.js';
|
|
21
21
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
22
22
|
import './core.get-iterator-method-ea258bb1.js';
|
|
23
23
|
import './web.dom.iterable-ab4dea5c.js';
|
|
24
24
|
import './_library-528f1934.js';
|
|
25
25
|
import './_set-species-2cd9340f.js';
|
|
26
26
|
import './_iter-detect-98db3b07.js';
|
|
27
|
-
import './events-6c3a7a63.js';
|
|
28
27
|
import 'prop-types';
|
|
29
28
|
import 'react-dom';
|
|
30
29
|
import 'react-bootstrap/Card';
|
|
@@ -12,34 +12,34 @@ import './index-3f5c03b2.js';
|
|
|
12
12
|
import 'react-dom';
|
|
13
13
|
import 'prop-types';
|
|
14
14
|
|
|
15
|
-
/*
|
|
16
|
-
Sample query
|
|
17
|
-
let references = ''
|
|
18
|
-
if(article.taxonomyMapping.length > 0){
|
|
19
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
20
|
-
references = references + `references('${ref._ref}') `
|
|
21
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
22
|
-
references = references + ` && `
|
|
23
|
-
}
|
|
24
|
-
})
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
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] {
|
|
28
|
-
...,
|
|
29
|
-
title,
|
|
30
|
-
summary,
|
|
31
|
-
thumbnail,
|
|
32
|
-
url,
|
|
33
|
-
published,
|
|
34
|
-
authorMapping[]->,
|
|
35
|
-
contentCategory->
|
|
36
|
-
}`
|
|
37
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
38
|
-
|
|
39
|
-
Sample usage
|
|
40
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
41
|
-
|
|
42
|
-
|
|
15
|
+
/*
|
|
16
|
+
Sample query
|
|
17
|
+
let references = ''
|
|
18
|
+
if(article.taxonomyMapping.length > 0){
|
|
19
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
20
|
+
references = references + `references('${ref._ref}') `
|
|
21
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
22
|
+
references = references + ` && `
|
|
23
|
+
}
|
|
24
|
+
})
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
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] {
|
|
28
|
+
...,
|
|
29
|
+
title,
|
|
30
|
+
summary,
|
|
31
|
+
thumbnail,
|
|
32
|
+
url,
|
|
33
|
+
published,
|
|
34
|
+
authorMapping[]->,
|
|
35
|
+
contentCategory->
|
|
36
|
+
}`
|
|
37
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
38
|
+
|
|
39
|
+
Sample usage
|
|
40
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
41
|
+
|
|
42
|
+
|
|
43
43
|
*/
|
|
44
44
|
var RelatedContent = function RelatedContent(props) {
|
|
45
45
|
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) {
|
|
@@ -3,15 +3,14 @@ import { _ as _extends } from './extends-1559c147.js';
|
|
|
3
3
|
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
4
4
|
import React__default, { useState, useEffect, useRef } from 'react';
|
|
5
5
|
import { useRouter } from 'next/router';
|
|
6
|
-
import { l as lib_3 } from './index-
|
|
6
|
+
import { l as lib_3 } from './index-5cc7b406.js';
|
|
7
7
|
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
8
|
-
import { S as SeriesSlider } from './SeriesSlider-
|
|
8
|
+
import { S as SeriesSlider } from './SeriesSlider-2e83e861.js';
|
|
9
9
|
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './core.get-iterator-method-ea258bb1.js';
|
|
12
12
|
import './_iter-detect-98db3b07.js';
|
|
13
13
|
import './web.dom.iterable-ab4dea5c.js';
|
|
14
|
-
import './events-6c3a7a63.js';
|
|
15
14
|
import 'prop-types';
|
|
16
15
|
import './index-c7e2ac95.js';
|
|
17
16
|
import './index-755f2cc2.js';
|
|
@@ -6,10 +6,10 @@ import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
|
|
|
6
6
|
import urlFor from './urlFor.js';
|
|
7
7
|
import { m as main_43, a as main_49, b as main_42 } from './main-f97773b2.js';
|
|
8
8
|
|
|
9
|
-
/*
|
|
10
|
-
GROQ query -
|
|
11
|
-
accepts an array of title, URL
|
|
12
|
-
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
9
|
+
/*
|
|
10
|
+
GROQ query -
|
|
11
|
+
accepts an array of title, URL
|
|
12
|
+
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
var SeriesSlider = function SeriesSlider(_ref) {
|
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 React__default, { useState, useEffect } from 'react';
|
|
|
5
5
|
import { useRouter } from 'next/router';
|
|
6
6
|
import Head from 'next/head';
|
|
7
7
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
8
|
-
import { g as getSerializers } from './index-
|
|
8
|
+
import { g as getSerializers } from './index-983ef4ad.js';
|
|
9
9
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
10
10
|
import './core.get-iterator-method-ea258bb1.js';
|
|
11
11
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -16,8 +16,7 @@ import 'prop-types';
|
|
|
16
16
|
import './index-3f5c03b2.js';
|
|
17
17
|
import 'react-bootstrap';
|
|
18
18
|
import './urlFor.js';
|
|
19
|
-
import './index-
|
|
20
|
-
import './events-6c3a7a63.js';
|
|
19
|
+
import './index-5cc7b406.js';
|
|
21
20
|
import './index-c7e2ac95.js';
|
|
22
21
|
import './Beam.js';
|
|
23
22
|
import './stringify-2b084bee.js';
|
|
@@ -43,7 +42,7 @@ import './SocialShare.js';
|
|
|
43
42
|
import 'react-share';
|
|
44
43
|
import './toConsumableArray-f7074d7c.js';
|
|
45
44
|
import 'react-bootstrap/Pagination';
|
|
46
|
-
import './entities-
|
|
45
|
+
import './entities-932b50cf.js';
|
|
47
46
|
import './AdSlot.js';
|
|
48
47
|
import './debounce-533d9748.js';
|
|
49
48
|
import './isSymbol-a7e9aafe.js';
|
|
@@ -18,8 +18,7 @@ import './core.get-iterator-method-ea258bb1.js';
|
|
|
18
18
|
import './AdSlot.js';
|
|
19
19
|
import './extends-1559c147.js';
|
|
20
20
|
import 'prop-types';
|
|
21
|
-
import './index-
|
|
22
|
-
import './events-6c3a7a63.js';
|
|
21
|
+
import './index-5cc7b406.js';
|
|
23
22
|
import './debounce-533d9748.js';
|
|
24
23
|
import './isSymbol-a7e9aafe.js';
|
|
25
24
|
import './toNumber-5aeba6e7.js';
|
|
@@ -2,7 +2,7 @@ import React__default from 'react';
|
|
|
2
2
|
import Media from 'react-bootstrap/Media';
|
|
3
3
|
import urlFor from './urlFor.js';
|
|
4
4
|
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
5
|
-
import { c as clean_html_1 } from './entities-
|
|
5
|
+
import { c as clean_html_1 } from './entities-932b50cf.js';
|
|
6
6
|
import './slicedToArray-6ebcbfea.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './web.dom.iterable-ab4dea5c.js';
|