@mjhls/mjh-framework 1.0.979-ris-update-v2 → 1.0.979
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 +2 -1
- package/dist/cjs/AD300x250x600.js +2 -1
- package/dist/cjs/AD728x90.js +2 -1
- package/dist/cjs/ADFloatingFooter.js +2 -1
- package/dist/cjs/ADGutter.js +2 -1
- package/dist/cjs/ADSkyscraper.js +2 -1
- package/dist/cjs/ADSponsoredResources.js +2 -1
- package/dist/cjs/ADWebcast.js +2 -1
- package/dist/cjs/ADWelcome.js +2 -1
- package/dist/cjs/AdSlot.js +2 -1
- package/dist/cjs/AdSlotsProvider.js +2 -1
- package/dist/cjs/AlgoliaSearch.js +14164 -17
- package/dist/cjs/ArticleProgramLandingPage.js +3 -2
- package/dist/cjs/ArticleSeriesLandingPage.js +4 -3
- package/dist/cjs/ArticleSeriesListing.js +2 -1
- package/dist/cjs/AuthWrapper.js +3 -29
- package/dist/cjs/CMEDeck.js +2 -1
- package/dist/cjs/Column3.js +2 -1
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/ContentCardPaginated.js +5 -3
- package/dist/cjs/DeckContent.js +11 -10
- package/dist/cjs/DeckQueue.js +2 -1
- package/dist/cjs/DeckQueuePaginated.js +4 -2
- package/dist/cjs/{Dfp-94f8ccdf.js → Dfp-9be904d5.js} +2 -1
- package/dist/cjs/EventsDeck.js +17 -17
- package/dist/cjs/ExternalResources.js +3 -2
- package/dist/cjs/GridContent.js +4 -3
- package/dist/cjs/GridContentPaginated.js +6 -4
- package/dist/cjs/HamMagazine.js +9 -9
- package/dist/cjs/HealthCareProfessionalModal.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +3 -2
- package/dist/cjs/IssueLanding.js +34 -33
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +2 -1
- package/dist/cjs/MasterDeck.js +12 -11
- package/dist/cjs/MasterDeckPaginated.js +14 -12
- package/dist/cjs/{MediaSeriesCard-1a62916a.js → MediaSeriesCard-a415ce94.js} +288 -384
- package/dist/cjs/MediaSeriesLanding.js +12 -10
- package/dist/cjs/MediaSeriesLandingPaginated.js +14 -11
- package/dist/cjs/NavMagazine.js +10 -10
- package/dist/cjs/NavNative.js +9 -9
- package/dist/cjs/Pagination-1e0d5f1d.js +90 -0
- package/dist/cjs/PartnerDetailListing.js +5 -4
- package/dist/cjs/PartnerDetailListingPaginated.js +7 -5
- package/dist/cjs/PubSection.js +4 -3
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpanded.js +4 -3
- package/dist/cjs/QueueDeckExpandedPaginated.js +6 -4
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +3 -2
- package/dist/cjs/{SeriesSlider-74546d19.js → SeriesSlider-594b19eb.js} +4 -4
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/TaxonomyDescription.js +3 -2
- package/dist/cjs/TemplateNormal.js +2 -1
- package/dist/cjs/VideoProgramLandingPage.js +3 -2
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +4 -3
- package/dist/cjs/VideoSeriesListing.js +2 -1
- package/dist/cjs/View.js +60 -90
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/getQuery.js +3 -3
- package/dist/cjs/getSerializers.js +3 -2
- package/dist/cjs/{getTargeting-dab97fe1.js → getTargeting-3c5754ac.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/index-50be6759.js +105 -0
- package/dist/cjs/{index-bb00ade7.js → index-d394c167.js} +1 -1
- package/dist/cjs/{index-0e4427c8.js → index-fc2f1ca2.js} +2 -467
- package/dist/cjs/index.js +10 -7
- package/dist/cjs/typeof-1358762e.js +33 -0
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +2 -1
- package/dist/esm/AD300x250x600.js +2 -1
- package/dist/esm/AD728x90.js +2 -1
- package/dist/esm/ADFloatingFooter.js +2 -1
- package/dist/esm/ADGutter.js +2 -1
- package/dist/esm/ADSkyscraper.js +2 -1
- package/dist/esm/ADSponsoredResources.js +2 -1
- package/dist/esm/ADWebcast.js +2 -1
- package/dist/esm/ADWelcome.js +2 -1
- package/dist/esm/AdSlot.js +2 -1
- package/dist/esm/AdSlotsProvider.js +2 -1
- package/dist/esm/AlgoliaSearch.js +14158 -11
- package/dist/esm/ArticleProgramLandingPage.js +3 -2
- package/dist/esm/ArticleSeriesLandingPage.js +4 -3
- package/dist/esm/ArticleSeriesListing.js +2 -1
- package/dist/esm/AuthWrapper.js +2 -28
- package/dist/esm/CMEDeck.js +2 -1
- package/dist/esm/Column3.js +2 -1
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/ContentCardPaginated.js +5 -3
- package/dist/esm/DeckContent.js +11 -10
- package/dist/esm/DeckQueue.js +2 -1
- package/dist/esm/DeckQueuePaginated.js +4 -2
- package/dist/esm/{Dfp-cf85d203.js → Dfp-102f0beb.js} +2 -1
- package/dist/esm/EventsDeck.js +17 -17
- package/dist/esm/ExternalResources.js +3 -2
- package/dist/esm/GridContent.js +4 -3
- package/dist/esm/GridContentPaginated.js +6 -4
- package/dist/esm/HamMagazine.js +9 -9
- package/dist/esm/HealthCareProfessionalModal.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +3 -2
- package/dist/esm/IssueLanding.js +34 -33
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +2 -1
- package/dist/esm/MasterDeck.js +12 -11
- package/dist/esm/MasterDeckPaginated.js +14 -12
- package/dist/esm/{MediaSeriesCard-146e08c8.js → MediaSeriesCard-c26423af.js} +3 -99
- package/dist/esm/MediaSeriesLanding.js +12 -10
- package/dist/esm/MediaSeriesLandingPaginated.js +14 -11
- package/dist/esm/NavMagazine.js +10 -10
- package/dist/esm/NavNative.js +9 -9
- package/dist/esm/Pagination-cd21f8c2.js +82 -0
- package/dist/esm/PartnerDetailListing.js +5 -4
- package/dist/esm/PartnerDetailListingPaginated.js +7 -5
- package/dist/esm/PubSection.js +4 -3
- package/dist/esm/PublicationLanding.js +26 -26
- package/dist/esm/QueueDeckExpanded.js +4 -3
- package/dist/esm/QueueDeckExpandedPaginated.js +6 -4
- package/dist/esm/RelatedContent.js +28 -28
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SeriesListingDeck.js +3 -2
- package/dist/esm/{SeriesSlider-e495571f.js → SeriesSlider-f771e20d.js} +4 -4
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/TaxonomyDescription.js +3 -2
- package/dist/esm/TemplateNormal.js +2 -1
- package/dist/esm/VideoProgramLandingPage.js +3 -2
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesLandingPage.js +4 -3
- package/dist/esm/VideoSeriesListing.js +2 -1
- package/dist/esm/View.js +59 -90
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/getQuery.js +3 -3
- package/dist/esm/getSerializers.js +3 -2
- package/dist/esm/{getTargeting-04d979c9.js → getTargeting-42f9b439.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/index-98ca9cec.js +100 -0
- package/dist/esm/{index-e89d33c8.js → index-c94edea2.js} +1 -1
- package/dist/esm/{index-5cc7b406.js → index-f0fc23eb.js} +1 -466
- package/dist/esm/index.js +10 -7
- package/dist/esm/typeof-2f07d0e8.js +30 -0
- package/package.json +115 -115
- package/dist/cjs/Pagination-2a3d0103.js +0 -97
- package/dist/esm/Pagination-dc30727b.js +0 -90
- /package/dist/cjs/{ADInfeed-cf54cb8a.js → ADInfeed-81006615.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-d06624d8.js → ADlgInfeed-0db07099.js} +0 -0
- /package/dist/esm/{ADInfeed-0852ff35.js → ADInfeed-6d1fc6bf.js} +0 -0
- /package/dist/esm/{ADlgInfeed-5fb3b724.js → ADlgInfeed-dc36c928.js} +0 -0
package/dist/esm/View.js
CHANGED
|
@@ -15,10 +15,10 @@ import FormControl from 'react-bootstrap/FormControl';
|
|
|
15
15
|
import Button from 'react-bootstrap/Button';
|
|
16
16
|
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
17
17
|
import SocialShare from './SocialShare.js';
|
|
18
|
-
import { r as renderAuthor, g as getSerializers } from './index-
|
|
18
|
+
import { r as renderAuthor, g as getSerializers } from './index-c94edea2.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
|
-
import { S as SeriesSlider } from './SeriesSlider-
|
|
21
|
-
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-
|
|
20
|
+
import { S as SeriesSlider } from './SeriesSlider-f771e20d.js';
|
|
21
|
+
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-42f9b439.js';
|
|
22
22
|
import getKeywords from './getKeywords.js';
|
|
23
23
|
import urlFor from './urlFor.js';
|
|
24
24
|
import { u as urlForFile } from './urlForFile-b69adffc.js';
|
|
@@ -28,14 +28,15 @@ import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
|
28
28
|
import './index-755f2cc2.js';
|
|
29
29
|
import { DiscussionEmbed } from 'disqus-react';
|
|
30
30
|
import Schema from './Schema.js';
|
|
31
|
-
import
|
|
31
|
+
import FileSaver from 'file-saver';
|
|
32
32
|
import { PixelTrackingArticle } from './PixelTracking.js';
|
|
33
33
|
import { _ as _Object$keys } from './keys-31dcdb31.js';
|
|
34
34
|
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
35
|
-
import { l as lib_3 } from './index-
|
|
35
|
+
import { l as lib_3 } from './index-f0fc23eb.js';
|
|
36
36
|
import getRelatedArticle from './getRelatedArticle.js';
|
|
37
37
|
import getQuery from './getQuery.js';
|
|
38
38
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
39
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
39
40
|
import './core.get-iterator-method-ea258bb1.js';
|
|
40
41
|
import './web.dom.iterable-ab4dea5c.js';
|
|
41
42
|
import './_library-528f1934.js';
|
|
@@ -73,6 +74,7 @@ import 'react-bootstrap/Popover';
|
|
|
73
74
|
import './debounce-533d9748.js';
|
|
74
75
|
import './isSymbol-a7e9aafe.js';
|
|
75
76
|
import './toNumber-5aeba6e7.js';
|
|
77
|
+
import './events-6c3a7a63.js';
|
|
76
78
|
import './index-db3bb315.js';
|
|
77
79
|
|
|
78
80
|
var getArticleSummary = function getArticleSummary(article) {
|
|
@@ -362,7 +364,7 @@ var ISI = function ISI(props) {
|
|
|
362
364
|
);
|
|
363
365
|
};
|
|
364
366
|
|
|
365
|
-
var css$1 = ".RelatedArticles-module_mediaContainer__10h9k {\
|
|
367
|
+
var css$1 = ".RelatedArticles-module_mediaContainer__10h9k {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n margin: 0 -1rem;\n}\n.RelatedArticles-module_mediaCard__3wQbn {\n margin: 0 1rem 1rem;\n width: calc(33% - 1rem);\n display: column;\n flex-direction: row;\n margin-bottom: 0.75rem;\n padding-bottom: 0.75rem;\n border-bottom: none;\n}\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\n border-bottom: none;\n}\n.RelatedArticles-module_cardTitle__3P-Ib {\n font-weight: bold;\n color: #252525;\n margin-bottom: 0.25rem;\n font-size: 15px;\n}\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\n color: #000;\n font-weight: bold;\n}\n.RelatedArticles-module_cardDate__1wOR5 {\n color: var(--dark);\n display: block;\n background: #fff !important;\n margin-bottom: 0;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 {\n display: block;\n text-align: center;\n margin-bottom: 0.5rem;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\n height: 135px;\n width: 100%;\n object-fit: cover;\n object-position: center;\n}\n@media screen and (max-width: 1064px) {\n}\n@media screen and (max-width: 968px) {\n .RelatedArticles-module_mediaContainer__10h9k {\n flex-wrap: wrap;\n }\n .RelatedArticles-module_imgWrapper__5Jx_4 {\n display: none;\n }\n .RelatedArticles-module_mediaCard__3wQbn {\n width: 100%;\n margin-bottom: 0.5rem;\n padding: 0;\n }\n .RelatedArticles-module_cardTitle__3P-Ib {\n font-size: 0.75rem;\n margin-bottom: 0;\n }\n}\n";
|
|
366
368
|
var styles$1 = { "mediaContainer": "RelatedArticles-module_mediaContainer__10h9k", "mediaCard": "RelatedArticles-module_mediaCard__3wQbn", "cardTitle": "RelatedArticles-module_cardTitle__3P-Ib", "authorListing": "RelatedArticles-module_authorListing__1EFg4", "text-muted": "RelatedArticles-module_text-muted__3b0zX", "cardDate": "RelatedArticles-module_cardDate__1wOR5", "imgWrapper": "RelatedArticles-module_imgWrapper__5Jx_4" };
|
|
367
369
|
styleInject(css$1);
|
|
368
370
|
|
|
@@ -461,13 +463,7 @@ var getSocialShareDisableFlag = function getSocialShareDisableFlag(article) {
|
|
|
461
463
|
return showSocialShare;
|
|
462
464
|
};
|
|
463
465
|
|
|
464
|
-
var
|
|
465
|
-
(function(a,b){b();})(commonjsGlobal,function(){function b(a,b){return "undefined"==typeof b?b={autoBom:!1}:"object"!=typeof b&&(console.warn("Deprecated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}function c(a,b,c){var d=new XMLHttpRequest;d.open("GET",a),d.responseType="blob",d.onload=function(){g(d.response,b,c);},d.onerror=function(){console.error("could not download file");},d.send();}function d(a){var b=new XMLHttpRequest;b.open("HEAD",a,!1);try{b.send();}catch(a){}return 200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent("click"));}catch(c){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b);}}var f="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof commonjsGlobal&&commonjsGlobal.global===commonjsGlobal?commonjsGlobal:void 0,a=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=f.saveAs||("object"!=typeof window||window!==f?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement("a");g=g||b.name||"download",j.download=g,j.rel="noopener","string"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target="_blank")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href);},4E4),setTimeout(function(){e(j);},0));}:"msSaveOrOpenBlob"in navigator?function(f,g,h){if(g=g||f.name||"download","string"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else {var i=document.createElement("a");i.href=f,i.target="_blank",setTimeout(function(){e(i);});}}:function(b,d,e,g){if(g=g||open("","_blank"),g&&(g.document.title=g.document.body.innerText="downloading..."),"string"==typeof b)return c(b,d,e);var h="application/octet-stream"===b.type,i=/constructor/i.test(f.HTMLElement)||f.safari,j=/CriOS\/[\d]+/.test(navigator.userAgent);if((j||h&&i||a)&&"undefined"!=typeof FileReader){var k=new FileReader;k.onloadend=function(){var a=k.result;a=j?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),g?g.location.href=a:location=a,g=null;},k.readAsDataURL(b);}else {var l=f.URL||f.webkitURL,m=l.createObjectURL(b);g?g.location=m:location.href=m,g=null,setTimeout(function(){l.revokeObjectURL(m);},4E4);}});f.saveAs=g.saveAs=g,(module.exports=g);});
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
});
|
|
469
|
-
|
|
470
|
-
var css = ".RecommendedArticles-module_recommendTitle__2kUji {\r\n border-bottom: 2px solid var(--secondary-blue);\r\n font-size: 1.5rem;\r\n font-weight: bold;\r\n color: #0d335a;\r\n padding: 0.5rem;\r\n}\r\n.RecommendedArticles-module_recommendContainer__sZukI {\r\n display: flex;\r\n flex-direction: row;\r\n flex-wrap: wrap;\r\n margin: 0 -0.5rem;\r\n}\r\n.RecommendedArticles-module_recommendTop__1_yqw {\r\n margin: 0.5rem;\r\n width: 100%;\r\n flex-basis: 100%;\r\n display: flex;\r\n\r\n}\r\n.RecommendedArticles-module_recommendTopImg__1b9gu {\r\n min-width: 55%;\r\n width: 55%;\r\n height: 100%;\r\n}\r\n.RecommendedArticles-module_recommendTopImg__1b9gu img {\r\n width: 100%;\r\n height: 100%;\r\n object-fit: cover;\r\n}\r\n.RecommendedArticles-module_recommendTopBody__-13FI {\r\n margin-left: 1rem;\r\n line-height: 1.3;\r\n color: #121212;\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n.RecommendedArticles-module_topTitle__2EafN {\r\n font-size: 25px;\r\n font-weight: bold;\r\n margin-bottom: 0.5rem;\r\n}\r\n.RecommendedArticles-module_topBody__2_VNi {\r\n font-size: 19px;\r\n margin-bottom: 0.5rem;\r\n}\r\n.RecommendedArticles-module_topLink__2RnXu {\r\n font-size: 19px;\r\n color: rgb(43, 43, 151);\r\n text-decoration: underline;\r\n margin-top: auto;\r\n}\r\n.RecommendedArticles-module_smContainer__4byBO {\r\n width: calc(25% - 1rem);\r\n margin: 0 0.5rem;\r\n}\r\n.RecommendedArticles-module_smImage__TYZGY img {\r\n width: 100%;\r\n}\r\n.RecommendedArticles-module_title__3q1ud {\r\n margin-top: 1rem;\r\n line-height: 1.2;\r\n color: #121212;\r\n}\r\n.RecommendedArticles-module_category__2jRto {\r\n text-transform: uppercase;\r\n font-size: 16px;\r\n letter-spacing: 2px;\r\n margin: 0.25rem 0;\r\n}\r\n\r\n/* media query */\r\n\r\n@media screen and (max-width: 1399px) {\r\n .RecommendedArticles-module_topTitle__2EafN {\r\n font-size: 21px;\r\n }\r\n .RecommendedArticles-module_topBody__2_VNi {\r\n font-size: 15px;\r\n }\r\n}\r\n@media screen and (max-width: 1191px) {\r\n .RecommendedArticles-module_topTitle__2EafN {\r\n font-size: 23px;\r\n }\r\n .RecommendedArticles-module_topBody__2_VNi,\r\n .RecommendedArticles-module_topLink__2RnXu {\r\n font-size: 17px;\r\n }\r\n}\r\n@media screen and (max-width: 968px) {\r\n .RecommendedArticles-module_topTitle__2EafN {\r\n font-size: 18px;\r\n }\r\n .RecommendedArticles-module_topBody__2_VNi,\r\n .RecommendedArticles-module_topLink__2RnXu {\r\n font-size: 15px;\r\n }\r\n}\r\n@media screen and (max-width: 768px) {\r\n .RecommendedArticles-module_recommendTop__1_yqw {\r\n flex-direction: column;\r\n }\r\n .RecommendedArticles-module_recommendTopImg__1b9gu,\r\n .RecommendedArticles-module_recommendTopBody__-13FI {\r\n width: 100%;\r\n margin: 0;\r\n }\r\n .RecommendedArticles-module_recommendTopBody__-13FI {\r\n margin-bottom: 1rem;\r\n }\r\n .RecommendedArticles-module_smContainer__4byBO {\r\n width: calc(50% - 1rem);\r\n }\r\n}";
|
|
466
|
+
var css = ".RecommendedArticles-module_recommendTitle__2kUji {\n border-bottom: 2px solid var(--secondary-blue);\n font-size: 1.5rem;\n font-weight: bold;\n color: #0d335a;\n padding: 0.5rem;\n}\n.RecommendedArticles-module_recommendContainer__sZukI {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n margin: 0 -0.5rem;\n}\n.RecommendedArticles-module_recommendTop__1_yqw {\n margin: 0.5rem;\n width: 100%;\n flex-basis: 100%;\n display: flex;\n\n}\n.RecommendedArticles-module_recommendTopImg__1b9gu {\n min-width: 55%;\n width: 55%;\n height: 100%;\n}\n.RecommendedArticles-module_recommendTopImg__1b9gu img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n.RecommendedArticles-module_recommendTopBody__-13FI {\n margin-left: 1rem;\n line-height: 1.3;\n color: #121212;\n display: flex;\n flex-direction: column;\n}\n.RecommendedArticles-module_topTitle__2EafN {\n font-size: 25px;\n font-weight: bold;\n margin-bottom: 0.5rem;\n}\n.RecommendedArticles-module_topBody__2_VNi {\n font-size: 19px;\n margin-bottom: 0.5rem;\n}\n.RecommendedArticles-module_topLink__2RnXu {\n font-size: 19px;\n color: rgb(43, 43, 151);\n text-decoration: underline;\n margin-top: auto;\n}\n.RecommendedArticles-module_smContainer__4byBO {\n width: calc(25% - 1rem);\n margin: 0 0.5rem;\n}\n.RecommendedArticles-module_smImage__TYZGY img {\n width: 100%;\n}\n.RecommendedArticles-module_title__3q1ud {\n margin-top: 1rem;\n line-height: 1.2;\n color: #121212;\n}\n.RecommendedArticles-module_category__2jRto {\n text-transform: uppercase;\n font-size: 16px;\n letter-spacing: 2px;\n margin: 0.25rem 0;\n}\n\n/* media query */\n\n@media screen and (max-width: 1399px) {\n .RecommendedArticles-module_topTitle__2EafN {\n font-size: 21px;\n }\n .RecommendedArticles-module_topBody__2_VNi {\n font-size: 15px;\n }\n}\n@media screen and (max-width: 1191px) {\n .RecommendedArticles-module_topTitle__2EafN {\n font-size: 23px;\n }\n .RecommendedArticles-module_topBody__2_VNi,\n .RecommendedArticles-module_topLink__2RnXu {\n font-size: 17px;\n }\n}\n@media screen and (max-width: 968px) {\n .RecommendedArticles-module_topTitle__2EafN {\n font-size: 18px;\n }\n .RecommendedArticles-module_topBody__2_VNi,\n .RecommendedArticles-module_topLink__2RnXu {\n font-size: 15px;\n }\n}\n@media screen and (max-width: 768px) {\n .RecommendedArticles-module_recommendTop__1_yqw {\n flex-direction: column;\n }\n .RecommendedArticles-module_recommendTopImg__1b9gu,\n .RecommendedArticles-module_recommendTopBody__-13FI {\n width: 100%;\n margin: 0;\n }\n .RecommendedArticles-module_recommendTopBody__-13FI {\n margin-bottom: 1rem;\n }\n .RecommendedArticles-module_smContainer__4byBO {\n width: calc(50% - 1rem);\n }\n}";
|
|
471
467
|
var styles = { "recommendTitle": "RecommendedArticles-module_recommendTitle__2kUji", "recommendContainer": "RecommendedArticles-module_recommendContainer__sZukI", "recommendTop": "RecommendedArticles-module_recommendTop__1_yqw", "recommendTopImg": "RecommendedArticles-module_recommendTopImg__1b9gu", "recommendTopBody": "RecommendedArticles-module_recommendTopBody__-13FI", "topTitle": "RecommendedArticles-module_topTitle__2EafN", "topBody": "RecommendedArticles-module_topBody__2_VNi", "topLink": "RecommendedArticles-module_topLink__2RnXu", "smContainer": "RecommendedArticles-module_smContainer__4byBO", "smImage": "RecommendedArticles-module_smImage__TYZGY", "title": "RecommendedArticles-module_title__3q1ud", "category": "RecommendedArticles-module_category__2jRto" };
|
|
472
468
|
styleInject(css);
|
|
473
469
|
|
|
@@ -851,6 +847,17 @@ var RelevantTopics = function RelevantTopics(props) {
|
|
|
851
847
|
return null;
|
|
852
848
|
};
|
|
853
849
|
|
|
850
|
+
var checkDocGroupMappingForSeries = function checkDocGroupMappingForSeries(docGroupArray) {
|
|
851
|
+
|
|
852
|
+
for (var i = 0; i < docGroupArray.length; i++) {
|
|
853
|
+
if (docGroupArray[i].isSeries) {
|
|
854
|
+
return docGroupArray[i];
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
return false;
|
|
859
|
+
};
|
|
860
|
+
|
|
854
861
|
var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
855
862
|
var onVote = function () {
|
|
856
863
|
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(nodeKey, selectedChoice) {
|
|
@@ -902,6 +909,16 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
902
909
|
};
|
|
903
910
|
}();
|
|
904
911
|
|
|
912
|
+
var article = props.article,
|
|
913
|
+
Ads = props.Ads,
|
|
914
|
+
showRelatedArticles = props.showRelatedArticles,
|
|
915
|
+
_props$hideFBShare = props.hideFBShare,
|
|
916
|
+
hideFBShare = _props$hideFBShare === undefined ? false : _props$hideFBShare,
|
|
917
|
+
_props$hidePinterestS = props.hidePinterestShare,
|
|
918
|
+
hidePinterestShare = _props$hidePinterestS === undefined ? false : _props$hidePinterestS,
|
|
919
|
+
onChangeArticle = props.onChangeArticle,
|
|
920
|
+
_props$showSocialShar = props.showSocialShare,
|
|
921
|
+
showSocialShare = _props$showSocialShar === undefined ? true : _props$showSocialShar;
|
|
905
922
|
var client = props.client,
|
|
906
923
|
pageview = props.pageview,
|
|
907
924
|
videoAccountIDs = props.videoAccountIDs,
|
|
@@ -910,7 +927,6 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
910
927
|
_props$showAuthorDeta = props.showAuthorDetails,
|
|
911
928
|
showAuthorDetails = _props$showAuthorDeta === undefined ? false : _props$showAuthorDeta,
|
|
912
929
|
audioAutoplay = props.audioAutoplay,
|
|
913
|
-
article = props.article,
|
|
914
930
|
_props$article = props.article,
|
|
915
931
|
title = _props$article.title,
|
|
916
932
|
_props$article$passwo = _props$article.passwordLock,
|
|
@@ -1077,13 +1093,6 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1077
1093
|
}, client.config()));
|
|
1078
1094
|
}
|
|
1079
1095
|
};
|
|
1080
|
-
var getAbstract = function getAbstract() {
|
|
1081
|
-
return article.abstract && article.abstract.map(function (block) {
|
|
1082
|
-
if (block.children) return block.children.map(function (child) {
|
|
1083
|
-
if (child._type === 'span') return child.text;
|
|
1084
|
-
});
|
|
1085
|
-
}).join(' ');
|
|
1086
|
-
};
|
|
1087
1096
|
var renderIsiContent = function renderIsiContent(article) {
|
|
1088
1097
|
var url = article.url.current;
|
|
1089
1098
|
|
|
@@ -1103,7 +1112,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1103
1112
|
}
|
|
1104
1113
|
if (authorDetails && authorDetails.length) {
|
|
1105
1114
|
authorDetails.map(function (authorDetail, index) {
|
|
1106
|
-
return fileContent += 'AU - ' +
|
|
1115
|
+
return fileContent += 'AU - ' + authorDetail.displayName + '\n';
|
|
1107
1116
|
} //Author
|
|
1108
1117
|
);
|
|
1109
1118
|
}
|
|
@@ -1111,14 +1120,10 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1111
1120
|
fileContent += 'T2 - ' + issue.publication.name + '\n'; //Secondary Title - T2
|
|
1112
1121
|
fileContent += 'JF - ' + issue.publication.name + '\n'; //Journal Name - JF
|
|
1113
1122
|
}
|
|
1114
|
-
if (issue.name) {
|
|
1115
|
-
fileContent += 'T3 - ' + issue.name + '\n'; //Issue Name - T3
|
|
1116
|
-
}
|
|
1117
1123
|
if (issue.abbreviatedJournal) {
|
|
1118
1124
|
fileContent += 'JO - ' + issue.abbreviatedJournal + '\n'; //Journal Name - JO
|
|
1119
1125
|
}
|
|
1120
|
-
if (article.
|
|
1121
|
-
if (article.abstract) fileContent += 'N2 - ' + getAbstract() + '\n'; //Abstract - N2
|
|
1126
|
+
if (article.fieldAbstract) fileContent += 'N2 - ' + article.fieldAbstract + '\n'; //Abstract - N2
|
|
1122
1127
|
if (issue.issueNumber) fileContent += 'IS - ' + issue.issueNumber + '\n'; //Issue Number - IS
|
|
1123
1128
|
fileContent += 'PB - MJH Life Sciences\n'; //Publisher - PB
|
|
1124
1129
|
if (issue.year) fileContent += 'PY - ' + issue.year + '\n'; //Published Year - PY
|
|
@@ -1146,20 +1151,10 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1146
1151
|
fileContent += 'ER -\n'; //End of Record
|
|
1147
1152
|
return fileContent;
|
|
1148
1153
|
};
|
|
1149
|
-
var getAuthorList = function getAuthorList() {
|
|
1150
|
-
var authorList = '';
|
|
1151
|
-
if (authorDetails && authorDetails.length > 0) {
|
|
1152
|
-
authorDetails.map(function (author) {
|
|
1153
|
-
if (author.lastName && author.firstName) authorList += author.lastName + ',' + author.firstName + ';';else if (author.displayName) authorList += author.displayName + ';';
|
|
1154
|
-
});
|
|
1155
|
-
}
|
|
1156
|
-
return authorList;
|
|
1157
|
-
};
|
|
1158
|
-
|
|
1159
1154
|
var downloadRIS = function downloadRIS() {
|
|
1160
1155
|
var fileContent = generateRIS();
|
|
1161
1156
|
var file = new File([fileContent], 'citation-' + url + '.ris', { type: 'application/x-research-info-systems;charset=utf-8' });
|
|
1162
|
-
|
|
1157
|
+
FileSaver.saveAs(file, 'citation-' + url + '.ris');
|
|
1163
1158
|
};
|
|
1164
1159
|
|
|
1165
1160
|
var RelevantTopics = function RelevantTopics() {
|
|
@@ -1622,17 +1617,6 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1622
1617
|
React__default.createElement(
|
|
1623
1618
|
'div',
|
|
1624
1619
|
{ className: 'video-detail', style: { marginBottom: isCutomPage(props.article) || showIsi && Array.isArray(isi) && isi.length > 0 ? '15rem' : 0 } },
|
|
1625
|
-
issue && React__default.createElement(
|
|
1626
|
-
Head,
|
|
1627
|
-
null,
|
|
1628
|
-
article.title && React__default.createElement('meta', { name: 'citation_title', content: article.title }),
|
|
1629
|
-
published && React__default.createElement('meta', { name: 'citation_date', content: moment(published).format('LL') }),
|
|
1630
|
-
issue.year && React__default.createElement('meta', { name: 'citation_year', content: issue.year }),
|
|
1631
|
-
issue.isbn_issn && React__default.createElement('meta', { name: 'citation_isbn', content: issue.isbn_issn }),
|
|
1632
|
-
article.abstract && React__default.createElement('meta', { name: 'citation_abstract', content: getAbstract() }),
|
|
1633
|
-
React__default.createElement('meta', { name: 'citation_author', content: getAuthorList() }),
|
|
1634
|
-
issue.pdf && React__default.createElement('meta', { name: 'citation_pdf_url', content: urlForFile({ asset: issue.pdf }) })
|
|
1635
|
-
),
|
|
1636
1620
|
isVideoSeries && renderBlockContent(article, meta, authorImgHeight),
|
|
1637
1621
|
!isVideoSeries && React__default.createElement(
|
|
1638
1622
|
'div',
|
|
@@ -1654,7 +1638,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1654
1638
|
React__default.createElement(
|
|
1655
1639
|
'style',
|
|
1656
1640
|
{ jsx: 'true' },
|
|
1657
|
-
'\n
|
|
1641
|
+
'\n @media screen and (max-width: 468px) {\n .video-detail .doc-group-container {\n flex-direction: column;\n align-items: flex-start !important;\n }\n .video-detail .doc-group {\n margin-top: 2rem;\n width: calc(100vw - 45px);\n align-items: center;\n }\n .video-detail .doc-group img,\n .doc-group p {\n max-width: calc(100vw - 45px) !important;\n }\n }\n .author-details-img {\n margin-right: 10px;\n max-height: 250px;\n min-height: 150px;\n max-width: 250px;\n min-width: 150px;\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n .author-details-img-container {\n text-align: center;\n }\n .author-details-col {\n padding-left: 25px;\n }\n '
|
|
1658
1642
|
),
|
|
1659
1643
|
React__default.createElement(
|
|
1660
1644
|
'div',
|
|
@@ -1738,34 +1722,23 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1738
1722
|
'Pages: ' + pageNumber
|
|
1739
1723
|
)
|
|
1740
1724
|
),
|
|
1741
|
-
React__default.createElement(
|
|
1742
|
-
'
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
hidePinterest: hidePinterestShare,
|
|
1759
|
-
hideFacebook: hideFBShare
|
|
1760
|
-
})
|
|
1761
|
-
),
|
|
1762
|
-
issue && downloadCitation && (!issue.hasOwnProperty('show_download_ris_button') || issue.show_download_ris_button !== false) && (!issue.publication || !issue.publication.hasOwnProperty('show_download_ris_button') || issue.publication.show_download_ris_button !== false) && React__default.createElement(
|
|
1763
|
-
Button,
|
|
1764
|
-
{ className: 'ris-download-button', onClick: function onClick() {
|
|
1765
|
-
return downloadRIS();
|
|
1766
|
-
} },
|
|
1767
|
-
'Download RIS'
|
|
1768
|
-
)
|
|
1725
|
+
!isVideoSeries && showSocialShare && React__default.createElement(
|
|
1726
|
+
'p',
|
|
1727
|
+
null,
|
|
1728
|
+
React__default.createElement(SocialShare, {
|
|
1729
|
+
shareUrl: shareUrl,
|
|
1730
|
+
shareTitle: shareTitle,
|
|
1731
|
+
shareVia: shareVia,
|
|
1732
|
+
shareSummary: shareSummary,
|
|
1733
|
+
shareSubject: shareSubject,
|
|
1734
|
+
shareImage: shareImage,
|
|
1735
|
+
size: 32,
|
|
1736
|
+
siteName: siteName,
|
|
1737
|
+
twitterSiteName: twitterSiteName,
|
|
1738
|
+
disableMeta: true,
|
|
1739
|
+
hidePinterest: hidePinterestShare,
|
|
1740
|
+
hideFacebook: hideFBShare
|
|
1741
|
+
})
|
|
1769
1742
|
)
|
|
1770
1743
|
),
|
|
1771
1744
|
React__default.createElement(
|
|
@@ -1833,6 +1806,13 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1833
1806
|
React__default.createElement(
|
|
1834
1807
|
'div',
|
|
1835
1808
|
{ className: 'downloads-container' },
|
|
1809
|
+
issue && downloadCitation && (!issue.hasOwnProperty('show_download_ris_button') || issue.show_download_ris_button !== false) && (!issue.publication || !issue.publication.hasOwnProperty('show_download_ris_button') || issue.publication.show_download_ris_button !== false) && React__default.createElement(
|
|
1810
|
+
Button,
|
|
1811
|
+
{ className: 'ris-download-button', onClick: function onClick() {
|
|
1812
|
+
return downloadRIS();
|
|
1813
|
+
} },
|
|
1814
|
+
'Download RIS'
|
|
1815
|
+
),
|
|
1836
1816
|
issue && issue.pdf && React__default.createElement(
|
|
1837
1817
|
'a',
|
|
1838
1818
|
{ rel: 'noopener', href: urlForFile({ asset: issue.pdf }), target: '_blank', title: 'Download issue' },
|
|
@@ -2207,17 +2187,6 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
2207
2187
|
);
|
|
2208
2188
|
};
|
|
2209
2189
|
|
|
2210
|
-
var checkDocGroupMappingForSeries$1 = function checkDocGroupMappingForSeries(docGroupArray) {
|
|
2211
|
-
|
|
2212
|
-
for (var i = 0; i < docGroupArray.length; i++) {
|
|
2213
|
-
if (docGroupArray[i].isSeries) {
|
|
2214
|
-
return docGroupArray[i];
|
|
2215
|
-
}
|
|
2216
|
-
}
|
|
2217
|
-
|
|
2218
|
-
return false;
|
|
2219
|
-
};
|
|
2220
|
-
|
|
2221
2190
|
var _this = undefined;
|
|
2222
2191
|
|
|
2223
2192
|
var View = function View(props) {
|
|
@@ -2310,7 +2279,7 @@ var View = function View(props) {
|
|
|
2310
2279
|
if (article.documentGroup && article.documentGroup.isSeries) {
|
|
2311
2280
|
isMediaSeries = true;
|
|
2312
2281
|
}
|
|
2313
|
-
if (!article.documentGroup && article.documentGroupMapping && checkDocGroupMappingForSeries
|
|
2282
|
+
if (!article.documentGroup && article.documentGroupMapping && checkDocGroupMappingForSeries(article.documentGroupMapping)) {
|
|
2314
2283
|
isMediaSeries = true;
|
|
2315
2284
|
}
|
|
2316
2285
|
|
package/dist/esm/YoutubeGroup.js
CHANGED
|
@@ -12,10 +12,10 @@ import 'react-dom';
|
|
|
12
12
|
import 'prop-types';
|
|
13
13
|
import './index-3f5c03b2.js';
|
|
14
14
|
|
|
15
|
-
/*
|
|
16
|
-
GROQ query -
|
|
17
|
-
accepts an array of title, URL
|
|
18
|
-
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
15
|
+
/*
|
|
16
|
+
GROQ query -
|
|
17
|
+
accepts an array of title, URL
|
|
18
|
+
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
var YoutubeGroup = function YoutubeGroup(props) {
|