@mjhls/mjh-framework 1.0.950-metafix-v1 → 1.0.950
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/dist/cjs/AlgoliaSearch.js +18 -140
- package/dist/cjs/Auth.js +17 -20
- package/dist/cjs/AuthWrapper.js +12 -18
- package/dist/cjs/CMEDeck.js +1 -5
- package/dist/cjs/Column1.js +1 -1
- package/dist/cjs/Column2.js +1 -1
- package/dist/cjs/Column3.js +1 -1
- package/dist/cjs/ContentCardPaginated.js +2 -1
- package/dist/cjs/DeckQueuePaginated.js +2 -1
- package/dist/cjs/Dfp-9be904d5.js +1 -1
- package/dist/cjs/GridContentPaginated.js +2 -1
- package/dist/cjs/HamMagazine.js +1 -1
- package/dist/cjs/Header.js +1 -1
- package/dist/cjs/LeftNav.js +1 -1
- package/dist/cjs/MasterDeckPaginated.js +2 -1
- package/dist/cjs/{MediaSeriesCard-61651744.js → MediaSeriesCard-7a009439.js} +42 -64
- package/dist/cjs/MediaSeriesLanding.js +1 -1
- package/dist/cjs/MediaSeriesLandingPaginated.js +3 -2
- package/dist/cjs/NavDvm.js +1 -1
- package/dist/cjs/NavMagazine.js +1 -1
- package/dist/cjs/NavNative.js +1 -1
- package/dist/cjs/Pagination-885dcfbd.js +90 -0
- package/dist/cjs/PartnerDetailListingPaginated.js +2 -1
- package/dist/cjs/QueueDeckExpandedPaginated.js +2 -1
- package/dist/cjs/TaxonomyDescription.js +44 -57
- package/dist/cjs/View.js +4 -8
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/ustream-api-3819e4aa.js +1 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +1 -1
- package/dist/esm/AD300x250x600.js +1 -1
- package/dist/esm/AD728x90.js +1 -1
- package/dist/esm/ADFloatingFooter.js +1 -1
- package/dist/esm/ADFooter.js +1 -1
- package/dist/esm/ADGutter.js +1 -1
- package/dist/esm/ADSkyscraper.js +1 -1
- package/dist/esm/ADSponsoredResources.js +1 -1
- package/dist/esm/ADWebcast.js +1 -1
- package/dist/esm/ADWelcome.js +1 -1
- package/dist/esm/AccordionPanel.js +1 -1
- package/dist/esm/AdSlot.js +1 -1
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/AlgoliaSearch.js +20 -142
- package/dist/esm/AlphabeticList.js +1 -1
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +1 -1
- package/dist/esm/ArticleSeriesLandingPage.js +1 -1
- package/dist/esm/ArticleSeriesListing.js +1 -1
- package/dist/esm/Auth.js +18 -20
- package/dist/esm/AuthWrapper.js +13 -19
- package/dist/esm/Beam.js +1 -1
- package/dist/esm/Breadcrumbs.js +1 -1
- package/dist/esm/CMEDeck.js +2 -6
- package/dist/esm/Column1.js +2 -1
- package/dist/esm/Column2.js +2 -1
- package/dist/esm/Column3.js +2 -1
- package/dist/esm/ConferenceArticleCard.js +1 -1
- package/dist/esm/ContentCardPaginated.js +3 -2
- package/dist/esm/DeckContent.js +1 -1
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/DeckQueuePaginated.js +3 -2
- package/dist/esm/Dfp-102f0beb.js +1 -1
- package/dist/esm/EventsDeck.js +1 -1
- package/dist/esm/ExternalResources.js +1 -1
- package/dist/esm/Feature.js +1 -1
- package/dist/esm/ForbesHero.js +1 -1
- package/dist/esm/GridContent.js +1 -1
- package/dist/esm/GridContentPaginated.js +3 -2
- package/dist/esm/GridHero.js +1 -1
- package/dist/esm/GroupDeck.js +1 -1
- package/dist/esm/HamMagazine.js +2 -1
- package/dist/esm/Header.js +2 -1
- package/dist/esm/HealthCareProfessionalModal.js +1 -1
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HighlightenVideo.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +1 -1
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/IssueLanding.js +1 -1
- package/dist/esm/KMTracker.js +1 -1
- package/dist/esm/LeftNav.js +2 -1
- package/dist/esm/MasterDeck.js +1 -1
- package/dist/esm/MasterDeckPaginated.js +3 -2
- package/dist/esm/{MediaSeriesCard-692ca181.js → MediaSeriesCard-4a68f1cf.js} +42 -64
- package/dist/esm/MediaSeriesLanding.js +2 -2
- package/dist/esm/MediaSeriesLandingPaginated.js +4 -3
- package/dist/esm/NavDvm.js +2 -1
- package/dist/esm/NavMagazine.js +2 -1
- package/dist/esm/NavNative.js +2 -1
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +1 -1
- package/dist/esm/PageFilter.js +1 -1
- package/dist/esm/Pagination-59436882.js +82 -0
- package/dist/esm/PartnerDetailListing.js +1 -1
- package/dist/esm/PartnerDetailListingPaginated.js +3 -2
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +1 -1
- package/dist/esm/PubSection.js +1 -1
- package/dist/esm/PubToc.js +1 -1
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/PublicationLanding.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +1 -1
- package/dist/esm/QueueDeckExpandedPaginated.js +3 -2
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +1 -1
- package/dist/esm/RelatedTopicsDropdown.js +1 -1
- package/dist/esm/RolesDeck.js +1 -1
- package/dist/esm/Schema.js +1 -1
- package/dist/esm/Search.js +1 -1
- package/dist/esm/Segment.js +1 -1
- package/dist/esm/SeriesListingDeck.js +1 -1
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +1 -1
- package/dist/esm/SocialIcons.js +1 -1
- package/dist/esm/SocialShare.js +1 -1
- package/dist/esm/TaxonomyCard.js +1 -1
- package/dist/esm/TaxonomyDescription.js +46 -59
- package/dist/esm/TemplateNormal.js +1 -1
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +1 -1
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesFilter.js +1 -1
- package/dist/esm/VideoSeriesLandingPage.js +1 -1
- package/dist/esm/VideoSeriesListing.js +1 -1
- package/dist/esm/View.js +4 -9
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/getKeywords.js +1 -1
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +1 -1
- package/dist/esm/getRootDocGroup.js +1 -1
- package/dist/esm/getSeriesDetail.js +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/stringify-2b084bee.js +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/ustream-api-d3714624.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/Pagination-42f92f7c.js +0 -97
- package/dist/esm/Pagination-484b86c5.js +0 -90
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import ReactPaginate from 'react-paginate';
|
|
3
|
+
import Button from 'react-bootstrap/Button';
|
|
4
|
+
import { d as FaArrowRight, e as FaArrowLeft } from './index.esm-1bd8a0a8.js';
|
|
5
|
+
|
|
6
|
+
var Pagination = function Pagination(props) {
|
|
7
|
+
var pageCount = props.pageCount,
|
|
8
|
+
_props$marginPagesDis = props.marginPagesDisplayed,
|
|
9
|
+
marginPagesDisplayed = _props$marginPagesDis === undefined ? 1 : _props$marginPagesDis,
|
|
10
|
+
_props$pageRangeDispl = props.pageRangeDisplayed,
|
|
11
|
+
pageRangeDisplayed = _props$pageRangeDispl === undefined ? 5 : _props$pageRangeDispl,
|
|
12
|
+
_props$currentPage = props.currentPage,
|
|
13
|
+
currentPage = _props$currentPage === undefined ? 1 : _props$currentPage,
|
|
14
|
+
_onPageChange = props.onPageChange,
|
|
15
|
+
_props$needLargePagin = props.needLargePaginateButtons,
|
|
16
|
+
needLargePaginateButtons = _props$needLargePagin === undefined ? false : _props$needLargePagin;
|
|
17
|
+
|
|
18
|
+
if (!pageCount || pageCount <= 1) return null;
|
|
19
|
+
return React__default.createElement(
|
|
20
|
+
React__default.Fragment,
|
|
21
|
+
null,
|
|
22
|
+
needLargePaginateButtons && React__default.createElement(
|
|
23
|
+
'div',
|
|
24
|
+
{ className: 'pagination-lg-btn-nxt' },
|
|
25
|
+
React__default.createElement(
|
|
26
|
+
Button,
|
|
27
|
+
{
|
|
28
|
+
onClick: function onClick(e) {
|
|
29
|
+
e.preventDefault();
|
|
30
|
+
_onPageChange(currentPage + 1);
|
|
31
|
+
},
|
|
32
|
+
disabled: currentPage === pageCount,
|
|
33
|
+
href: '?page=' + (currentPage + 1) },
|
|
34
|
+
'NEXT PAGE',
|
|
35
|
+
React__default.createElement(FaArrowRight, { className: 'fa-arrow-right' })
|
|
36
|
+
)
|
|
37
|
+
),
|
|
38
|
+
React__default.createElement(ReactPaginate, {
|
|
39
|
+
pageCount: pageCount,
|
|
40
|
+
marginPagesDisplayed: marginPagesDisplayed,
|
|
41
|
+
pageRangeDisplayed: pageRangeDisplayed,
|
|
42
|
+
forcePage: currentPage - 1,
|
|
43
|
+
onPageChange: function onPageChange(_ref) {
|
|
44
|
+
var selected = _ref.selected;
|
|
45
|
+
return _onPageChange(selected + 1);
|
|
46
|
+
},
|
|
47
|
+
hrefBuilder: function hrefBuilder(page) {
|
|
48
|
+
return '?page=' + page;
|
|
49
|
+
},
|
|
50
|
+
previousLabel: '<',
|
|
51
|
+
nextLabel: '>',
|
|
52
|
+
containerClassName: 'pagination-container',
|
|
53
|
+
previousLinkClassName: 'previous',
|
|
54
|
+
nextLinkClassName: 'next',
|
|
55
|
+
disabledClassName: 'disbaled',
|
|
56
|
+
activeClassName: 'active'
|
|
57
|
+
}),
|
|
58
|
+
needLargePaginateButtons && React__default.createElement(
|
|
59
|
+
'div',
|
|
60
|
+
{ className: 'pagination-lg-btn-prv' },
|
|
61
|
+
React__default.createElement(
|
|
62
|
+
Button,
|
|
63
|
+
{
|
|
64
|
+
onClick: function onClick(e) {
|
|
65
|
+
e.preventDefault();
|
|
66
|
+
_onPageChange(currentPage - 1);
|
|
67
|
+
},
|
|
68
|
+
disabled: currentPage === 1,
|
|
69
|
+
href: '?page=' + (currentPage - 1) },
|
|
70
|
+
React__default.createElement(FaArrowLeft, { className: 'fa-arrow-left' }),
|
|
71
|
+
'PREVIOUS PAGE'
|
|
72
|
+
)
|
|
73
|
+
),
|
|
74
|
+
React__default.createElement(
|
|
75
|
+
'style',
|
|
76
|
+
{ jsx: 'true' },
|
|
77
|
+
'\n .pagination-container {\n list-style: none;\n padding: 10px 0;\n margin: 0;\n display: flex;\n overflow: auto;\n }\n .pagination-container::before,\n .pagination-container::after {\n content: \'\';\n margin: 0 auto;\n }\n .pagination-container a {\n padding: 10px;\n border: 1px solid #dee2e6;\n }\n .pagination-container a:hover {\n text-decoration: none;\n background-color: #e9ecef;\n border-color: #dee2e6;\n }\n .pagination-container .active a {\n color: #fff;\n background-color: #666;\n background-color: var(--primary);\n }\n .pagination-container li:first-child a {\n border-radius: 5px 0 0 5px;\n }\n .pagination-container li:last-child a {\n border-radius: 0 5px 5px 0;\n }\n .pagination-container .disbaled a {\n cursor: default;\n }\n .pagination-lg-btn-nxt,\n .pagination-lg-btn-prv {\n text-align: center;\n }\n .pagination-lg-btn-nxt .btn,\n .pagination-lg-btn-prv .btn {\n min-width: 80%;\n color: #000;\n color: var(--primary);\n background-color: transparent;\n border-color: #000;\n border-color: var(--primary);\n }\n .pagination-lg-btn-nxt {\n margin: 0 0 1.5rem;\n }\n .pagination-lg-btn-prv {\n margin: 1.5rem 0 0;\n }\n .pagination-lg-btn-nxt .btn:not(:disabled):not(.disabled).active,\n .pagination-lg-btn-prv .btn:not(:disabled):not(.disabled):active {\n color: #fff;\n background-color: #000;\n background-color: var(--primary);\n border-color: #000;\n border-color: var(--primary);\n }\n @media only screen and (min-width: 601px) {\n [class^=\'pagination-lg-btn\'] {\n display: none;\n }\n }\n .fa-arrow-left {\n margin-right: 0.5rem;\n }\n .fa-arrow-right {\n margin-left: 0.5rem;\n }\n .pagination-container::-webkit-scrollbar {\n height: 8px;\n }\n .pagination-container::-webkit-scrollbar-track,\n .pagination-container::-webkit-scrollbar-thumb {\n -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);\n border-radius: 4px;\n }\n .pagination-container::-webkit-scrollbar-track {\n background-color: rgba(0, 0, 0, 0.1);\n }\n .pagination-container::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.3);\n }\n '
|
|
78
|
+
)
|
|
79
|
+
);
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export { Pagination as P };
|
|
@@ -44,7 +44,8 @@ import './AuthorComponent-11adff02.js';
|
|
|
44
44
|
import './ADlgInfeed-ebcafb85.js';
|
|
45
45
|
import './getContentCategory-15dcc413.js';
|
|
46
46
|
import './timeDifferenceCalc.js';
|
|
47
|
-
import './Pagination-
|
|
47
|
+
import './Pagination-59436882.js';
|
|
48
|
+
import 'react-paginate';
|
|
48
49
|
import 'react-bootstrap/Button';
|
|
49
50
|
import './index.esm-1bd8a0a8.js';
|
|
50
51
|
import './iconBase-ccc56b97.js';
|
|
@@ -309,4 +310,4 @@ PartnerDetails.returnGetInitialProps = function () {
|
|
|
309
310
|
};
|
|
310
311
|
}();
|
|
311
312
|
|
|
312
|
-
export
|
|
313
|
+
export default PartnerDetails;
|
package/dist/esm/PdfDownload.js
CHANGED
package/dist/esm/PopUpModal.js
CHANGED
package/dist/esm/PubSection.js
CHANGED
package/dist/esm/PubToc.js
CHANGED
|
@@ -17,7 +17,7 @@ import { A as ADlgInfeed } from './ADlgInfeed-ebcafb85.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-59436882.js';
|
|
21
21
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
22
22
|
import './core.get-iterator-method-ea258bb1.js';
|
|
23
23
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -36,6 +36,7 @@ import './Beam.js';
|
|
|
36
36
|
import './stringify-2b084bee.js';
|
|
37
37
|
import './Segment.js';
|
|
38
38
|
import './index-3f5c03b2.js';
|
|
39
|
+
import 'react-paginate';
|
|
39
40
|
import 'react-bootstrap/Button';
|
|
40
41
|
import './index.esm-1bd8a0a8.js';
|
|
41
42
|
import './iconBase-ccc56b97.js';
|
|
@@ -1379,4 +1380,4 @@ var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
|
1379
1380
|
);
|
|
1380
1381
|
};
|
|
1381
1382
|
|
|
1382
|
-
export
|
|
1383
|
+
export default QueueDeckExpanded;
|
package/dist/esm/RecentNews.js
CHANGED
package/dist/esm/RolesDeck.js
CHANGED
package/dist/esm/Schema.js
CHANGED
package/dist/esm/Search.js
CHANGED
package/dist/esm/Segment.js
CHANGED
package/dist/esm/SetCookie.js
CHANGED
package/dist/esm/SideFooter.js
CHANGED
package/dist/esm/SocialIcons.js
CHANGED
package/dist/esm/SocialShare.js
CHANGED
package/dist/esm/TaxonomyCard.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { _ as _extends, a as _Object$assign } from './extends-6d8e3924.js';
|
|
2
1
|
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
|
|
3
|
-
import { _ as
|
|
4
|
-
import React__default
|
|
2
|
+
import { _ as _extends, a as _Object$assign } from './extends-6d8e3924.js';
|
|
3
|
+
import React__default from 'react';
|
|
5
4
|
import { useRouter } from 'next/router';
|
|
6
5
|
import Head from 'next/head';
|
|
7
6
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
8
7
|
import { g as getSerializers } from './index-497db308.js';
|
|
9
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
10
9
|
import './core.get-iterator-method-ea258bb1.js';
|
|
11
|
-
import './_object-pie-133f504a.js';
|
|
12
10
|
import './web.dom.iterable-ab4dea5c.js';
|
|
13
11
|
import './_library-528f1934.js';
|
|
14
12
|
import './_iter-detect-98db3b07.js';
|
|
13
|
+
import './_object-pie-133f504a.js';
|
|
15
14
|
import 'prop-types';
|
|
16
15
|
import './index-3f5c03b2.js';
|
|
16
|
+
import './slicedToArray-6ebcbfea.js';
|
|
17
17
|
import 'react-bootstrap';
|
|
18
18
|
import './urlFor.js';
|
|
19
19
|
import './index-f0fc23eb.js';
|
|
@@ -107,89 +107,76 @@ var TaxonomyDescription = function TaxonomyDescription(_ref) {
|
|
|
107
107
|
client = _ref.client;
|
|
108
108
|
|
|
109
109
|
var router = useRouter();
|
|
110
|
+
return data && data.length > 0 ? React__default.createElement(
|
|
111
|
+
'section',
|
|
112
|
+
{ className: 'taxonomy-description' },
|
|
113
|
+
setMetaDescription(data, router),
|
|
114
|
+
React__default.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: data, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
115
|
+
) : null;
|
|
116
|
+
};
|
|
110
117
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
var querySeoManager, description;
|
|
118
|
+
TaxonomyDescription.getDescription = function () {
|
|
119
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
120
|
+
var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
121
|
+
var client = arguments[1];
|
|
122
|
+
var currentPath = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
123
|
+
var query, summary, querySeoManager, description;
|
|
118
124
|
return regenerator.wrap(function _callee$(_context) {
|
|
119
125
|
while (1) {
|
|
120
126
|
switch (_context.prev = _context.next) {
|
|
121
127
|
case 0:
|
|
122
|
-
|
|
123
|
-
|
|
128
|
+
query = '*[_type == \'taxonomy\' && identifier == \'' + url + '\'][0].summary';
|
|
129
|
+
summary = [];
|
|
130
|
+
|
|
131
|
+
if (!currentPath) {
|
|
132
|
+
_context.next = 9;
|
|
124
133
|
break;
|
|
125
134
|
}
|
|
126
135
|
|
|
127
|
-
querySeoManager = '*[_type == \'seoManager\' && urlSeo == \'' +
|
|
128
|
-
_context.next =
|
|
136
|
+
querySeoManager = '*[_type == \'seoManager\' && urlSeo == \'' + currentPath + '\'][0].metaDescription';
|
|
137
|
+
_context.next = 6;
|
|
129
138
|
return client.fetch(querySeoManager);
|
|
130
139
|
|
|
131
|
-
case
|
|
140
|
+
case 6:
|
|
132
141
|
description = _context.sent;
|
|
133
142
|
|
|
134
|
-
if (description && description != null) {
|
|
135
|
-
|
|
143
|
+
if (!(description && description != null)) {
|
|
144
|
+
_context.next = 9;
|
|
145
|
+
break;
|
|
136
146
|
}
|
|
137
147
|
|
|
138
|
-
|
|
139
|
-
case 'end':
|
|
140
|
-
return _context.stop();
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}, _callee, _this);
|
|
144
|
-
})), []);
|
|
145
|
-
return data && data.length > 0 ? React__default.createElement(
|
|
146
|
-
'section',
|
|
147
|
-
{ className: 'taxonomy-description' },
|
|
148
|
-
changeDescription ? setMetaDescription(data, router) : null,
|
|
149
|
-
React__default.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: data, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config()))
|
|
150
|
-
) : null;
|
|
151
|
-
};
|
|
148
|
+
return _context.abrupt('return', description);
|
|
152
149
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
var client = arguments[1];
|
|
157
|
-
var query, summary;
|
|
158
|
-
return regenerator.wrap(function _callee2$(_context2) {
|
|
159
|
-
while (1) {
|
|
160
|
-
switch (_context2.prev = _context2.next) {
|
|
161
|
-
case 0:
|
|
162
|
-
query = '*[_type == \'taxonomy\' && identifier == \'' + url + '\'][0].summary';
|
|
163
|
-
summary = [];
|
|
164
|
-
_context2.prev = 2;
|
|
165
|
-
_context2.next = 5;
|
|
150
|
+
case 9:
|
|
151
|
+
_context.prev = 9;
|
|
152
|
+
_context.next = 12;
|
|
166
153
|
return client.fetch(query);
|
|
167
154
|
|
|
168
|
-
case
|
|
169
|
-
summary =
|
|
170
|
-
|
|
155
|
+
case 12:
|
|
156
|
+
summary = _context.sent;
|
|
157
|
+
_context.next = 18;
|
|
171
158
|
break;
|
|
172
159
|
|
|
173
|
-
case
|
|
174
|
-
|
|
175
|
-
|
|
160
|
+
case 15:
|
|
161
|
+
_context.prev = 15;
|
|
162
|
+
_context.t0 = _context['catch'](9);
|
|
176
163
|
|
|
177
|
-
console.error(
|
|
164
|
+
console.error(_context.t0);
|
|
178
165
|
|
|
179
|
-
case
|
|
180
|
-
return
|
|
166
|
+
case 18:
|
|
167
|
+
return _context.abrupt('return', summary);
|
|
181
168
|
|
|
182
|
-
case
|
|
169
|
+
case 19:
|
|
183
170
|
case 'end':
|
|
184
|
-
return
|
|
171
|
+
return _context.stop();
|
|
185
172
|
}
|
|
186
173
|
}
|
|
187
|
-
},
|
|
174
|
+
}, _callee, _this, [[9, 15]]);
|
|
188
175
|
}));
|
|
189
176
|
|
|
190
177
|
return function () {
|
|
191
|
-
return
|
|
178
|
+
return _ref2.apply(this, arguments);
|
|
192
179
|
};
|
|
193
180
|
}();
|
|
194
181
|
|
|
195
|
-
export
|
|
182
|
+
export default TaxonomyDescription;
|
package/dist/esm/Ustream.js
CHANGED
package/dist/esm/VerticalHero.js
CHANGED
package/dist/esm/View.js
CHANGED
|
@@ -28,13 +28,14 @@ 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 { _ as _Object$keys } from './keys-31dcdb31.js';
|
|
33
33
|
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
34
34
|
import { l as lib_3 } from './index-f0fc23eb.js';
|
|
35
35
|
import getRelatedArticle from './getRelatedArticle.js';
|
|
36
36
|
import getQuery from './getQuery.js';
|
|
37
37
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
38
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
38
39
|
import './core.get-iterator-method-ea258bb1.js';
|
|
39
40
|
import './web.dom.iterable-ab4dea5c.js';
|
|
40
41
|
import './_library-528f1934.js';
|
|
@@ -446,12 +447,6 @@ var getSocialShareDisableFlag = function getSocialShareDisableFlag(article) {
|
|
|
446
447
|
return showSocialShare;
|
|
447
448
|
};
|
|
448
449
|
|
|
449
|
-
var FileSaver_min = createCommonjsModule(function (module, exports) {
|
|
450
|
-
(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);});
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
});
|
|
454
|
-
|
|
455
450
|
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}";
|
|
456
451
|
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" };
|
|
457
452
|
styleInject(css);
|
|
@@ -1121,7 +1116,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1121
1116
|
var downloadRIS = function downloadRIS() {
|
|
1122
1117
|
var fileContent = generateRIS();
|
|
1123
1118
|
var file = new File([fileContent], 'citation-' + url + '.ris', { type: 'application/x-research-info-systems;charset=utf-8' });
|
|
1124
|
-
|
|
1119
|
+
FileSaver.saveAs(file, 'citation-' + url + '.ris');
|
|
1125
1120
|
};
|
|
1126
1121
|
|
|
1127
1122
|
var RelevantTopics = function RelevantTopics() {
|
|
@@ -2455,4 +2450,4 @@ View.returnGetInitialProps = function () {
|
|
|
2455
2450
|
};
|
|
2456
2451
|
}();
|
|
2457
2452
|
|
|
2458
|
-
export
|
|
2453
|
+
export default View;
|
package/dist/esm/YahooHero.js
CHANGED
package/dist/esm/YoutubeGroup.js
CHANGED
package/dist/esm/getKeywords.js
CHANGED
package/dist/esm/getQuery.js
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -194,6 +194,7 @@ import './md5-4e42248e.js';
|
|
|
194
194
|
import './SeriesSlider-45adb8dc.js';
|
|
195
195
|
import './style-inject.es-1f59c1d0.js';
|
|
196
196
|
import 'disqus-react';
|
|
197
|
+
import 'file-saver';
|
|
197
198
|
import 'react-twitter-embed';
|
|
198
199
|
import './ImageSlider-f84174cb.js';
|
|
199
200
|
import './defineProperty-23a8f8cd.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u as unwrapExports, c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import { a as _core } from './core.get-iterator-method-ea258bb1.js';
|
|
3
3
|
|
|
4
4
|
var $JSON = _core.JSON || (_core.JSON = { stringify: JSON.stringify });
|
package/dist/esm/urlFor.js
CHANGED