@mjhls/mjh-framework 1.0.915-filename-fix-v1 → 1.0.915
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AlgoliaSearch.js +15 -131
- package/dist/cjs/ArticleProgramLandingPage.js +1 -2
- package/dist/cjs/AuthWrapper.js +1 -1
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/ContentCardPaginated.js +2 -1
- package/dist/cjs/DeckContent.js +8 -8
- package/dist/cjs/DeckQueuePaginated.js +2 -1
- package/dist/cjs/EventsDeck.js +17 -17
- package/dist/cjs/ExternalResources.js +1 -2
- package/dist/cjs/GridContentPaginated.js +2 -1
- package/dist/cjs/HamMagazine.js +9 -9
- package/dist/cjs/HorizontalArticleListing.js +1 -2
- package/dist/cjs/IssueLanding.js +30 -31
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/MasterDeck.js +8 -8
- package/dist/cjs/MasterDeckPaginated.js +10 -9
- package/dist/cjs/{MediaSeriesCard-8b203571.js → MediaSeriesCard-d46317f0.js} +2 -2
- package/dist/cjs/MediaSeriesLanding.js +7 -8
- package/dist/cjs/MediaSeriesLandingPaginated.js +9 -9
- package/dist/cjs/NavMagazine.js +10 -10
- package/dist/cjs/NavNative.js +9 -9
- package/dist/cjs/Pagination-885dcfbd.js +90 -0
- package/dist/cjs/PartnerDetailListing.js +1 -2
- package/dist/cjs/PartnerDetailListingPaginated.js +3 -3
- package/dist/cjs/PublicationLanding.js +28 -29
- package/dist/cjs/QueueDeckExpandedPaginated.js +2 -1
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +1 -1
- package/dist/cjs/{SeriesSlider-de93a303.js → SeriesSlider-ba0c5d1a.js} +4 -4
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/TaxonomyDescription.js +1 -2
- package/dist/cjs/VideoProgramLandingPage.js +1 -2
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/View.js +10 -15
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getSerializers.js +1 -2
- package/dist/cjs/{getTargeting-dab97fe1.js → getTargeting-3c5754ac.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-f9f5f7c0.js → index-5ce5e821.js} +25 -5
- package/dist/cjs/index.js +4 -4
- package/dist/esm/AlgoliaSearch.js +16 -132
- package/dist/esm/ArticleProgramLandingPage.js +1 -2
- package/dist/esm/AuthWrapper.js +1 -1
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/ContentCardPaginated.js +2 -1
- package/dist/esm/DeckContent.js +8 -8
- package/dist/esm/DeckQueuePaginated.js +2 -1
- package/dist/esm/EventsDeck.js +17 -17
- package/dist/esm/ExternalResources.js +1 -2
- package/dist/esm/GridContentPaginated.js +2 -1
- package/dist/esm/HamMagazine.js +9 -9
- package/dist/esm/HorizontalArticleListing.js +1 -2
- package/dist/esm/IssueLanding.js +30 -31
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/MasterDeck.js +8 -8
- package/dist/esm/MasterDeckPaginated.js +10 -9
- package/dist/esm/{MediaSeriesCard-e1249ccb.js → MediaSeriesCard-b1845b19.js} +2 -2
- package/dist/esm/MediaSeriesLanding.js +7 -8
- package/dist/esm/MediaSeriesLandingPaginated.js +9 -9
- package/dist/esm/NavMagazine.js +10 -10
- package/dist/esm/NavNative.js +9 -9
- package/dist/esm/Pagination-59436882.js +82 -0
- package/dist/esm/PartnerDetailListing.js +1 -2
- package/dist/esm/PartnerDetailListingPaginated.js +3 -3
- package/dist/esm/PublicationLanding.js +28 -29
- package/dist/esm/QueueDeckExpandedPaginated.js +2 -1
- package/dist/esm/RelatedContent.js +28 -28
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SeriesListingDeck.js +1 -1
- package/dist/esm/{SeriesSlider-98ad6d97.js → SeriesSlider-45adb8dc.js} +4 -4
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/TaxonomyDescription.js +1 -2
- package/dist/esm/VideoProgramLandingPage.js +1 -2
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/View.js +9 -15
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getSerializers.js +1 -2
- package/dist/esm/{getTargeting-04d979c9.js → getTargeting-42f9b439.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-4d8a8743.js → index-490f4f21.js} +21 -1
- package/dist/esm/index.js +4 -4
- package/package.json +114 -114
- package/dist/cjs/Pagination-42f92f7c.js +0 -97
- package/dist/cjs/urlForFile-29d3815a.js +0 -24
- package/dist/esm/Pagination-484b86c5.js +0 -90
- package/dist/esm/urlForFile-b69adffc.js +0 -22
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var ReactPaginate = require('react-paginate');
|
|
5
|
+
var Button = require('react-bootstrap/Button');
|
|
6
|
+
var index_esm = require('./index.esm-d51c9ac6.js');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
|
+
var ReactPaginate__default = /*#__PURE__*/_interopDefaultLegacy(ReactPaginate);
|
|
12
|
+
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
13
|
+
|
|
14
|
+
var Pagination = function Pagination(props) {
|
|
15
|
+
var pageCount = props.pageCount,
|
|
16
|
+
_props$marginPagesDis = props.marginPagesDisplayed,
|
|
17
|
+
marginPagesDisplayed = _props$marginPagesDis === undefined ? 1 : _props$marginPagesDis,
|
|
18
|
+
_props$pageRangeDispl = props.pageRangeDisplayed,
|
|
19
|
+
pageRangeDisplayed = _props$pageRangeDispl === undefined ? 5 : _props$pageRangeDispl,
|
|
20
|
+
_props$currentPage = props.currentPage,
|
|
21
|
+
currentPage = _props$currentPage === undefined ? 1 : _props$currentPage,
|
|
22
|
+
_onPageChange = props.onPageChange,
|
|
23
|
+
_props$needLargePagin = props.needLargePaginateButtons,
|
|
24
|
+
needLargePaginateButtons = _props$needLargePagin === undefined ? false : _props$needLargePagin;
|
|
25
|
+
|
|
26
|
+
if (!pageCount || pageCount <= 1) return null;
|
|
27
|
+
return React__default['default'].createElement(
|
|
28
|
+
React__default['default'].Fragment,
|
|
29
|
+
null,
|
|
30
|
+
needLargePaginateButtons && React__default['default'].createElement(
|
|
31
|
+
'div',
|
|
32
|
+
{ className: 'pagination-lg-btn-nxt' },
|
|
33
|
+
React__default['default'].createElement(
|
|
34
|
+
Button__default['default'],
|
|
35
|
+
{
|
|
36
|
+
onClick: function onClick(e) {
|
|
37
|
+
e.preventDefault();
|
|
38
|
+
_onPageChange(currentPage + 1);
|
|
39
|
+
},
|
|
40
|
+
disabled: currentPage === pageCount,
|
|
41
|
+
href: '?page=' + (currentPage + 1) },
|
|
42
|
+
'NEXT PAGE',
|
|
43
|
+
React__default['default'].createElement(index_esm.FaArrowRight, { className: 'fa-arrow-right' })
|
|
44
|
+
)
|
|
45
|
+
),
|
|
46
|
+
React__default['default'].createElement(ReactPaginate__default['default'], {
|
|
47
|
+
pageCount: pageCount,
|
|
48
|
+
marginPagesDisplayed: marginPagesDisplayed,
|
|
49
|
+
pageRangeDisplayed: pageRangeDisplayed,
|
|
50
|
+
forcePage: currentPage - 1,
|
|
51
|
+
onPageChange: function onPageChange(_ref) {
|
|
52
|
+
var selected = _ref.selected;
|
|
53
|
+
return _onPageChange(selected + 1);
|
|
54
|
+
},
|
|
55
|
+
hrefBuilder: function hrefBuilder(page) {
|
|
56
|
+
return '?page=' + page;
|
|
57
|
+
},
|
|
58
|
+
previousLabel: '<',
|
|
59
|
+
nextLabel: '>',
|
|
60
|
+
containerClassName: 'pagination-container',
|
|
61
|
+
previousLinkClassName: 'previous',
|
|
62
|
+
nextLinkClassName: 'next',
|
|
63
|
+
disabledClassName: 'disbaled',
|
|
64
|
+
activeClassName: 'active'
|
|
65
|
+
}),
|
|
66
|
+
needLargePaginateButtons && React__default['default'].createElement(
|
|
67
|
+
'div',
|
|
68
|
+
{ className: 'pagination-lg-btn-prv' },
|
|
69
|
+
React__default['default'].createElement(
|
|
70
|
+
Button__default['default'],
|
|
71
|
+
{
|
|
72
|
+
onClick: function onClick(e) {
|
|
73
|
+
e.preventDefault();
|
|
74
|
+
_onPageChange(currentPage - 1);
|
|
75
|
+
},
|
|
76
|
+
disabled: currentPage === 1,
|
|
77
|
+
href: '?page=' + (currentPage - 1) },
|
|
78
|
+
React__default['default'].createElement(index_esm.FaArrowLeft, { className: 'fa-arrow-left' }),
|
|
79
|
+
'PREVIOUS PAGE'
|
|
80
|
+
)
|
|
81
|
+
),
|
|
82
|
+
React__default['default'].createElement(
|
|
83
|
+
'style',
|
|
84
|
+
{ jsx: 'true' },
|
|
85
|
+
'\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 '
|
|
86
|
+
)
|
|
87
|
+
);
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
exports.Pagination = Pagination;
|
|
@@ -13,7 +13,7 @@ var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
|
13
13
|
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
14
14
|
var Feature = require('./Feature.js');
|
|
15
15
|
var urlFor = require('./urlFor.js');
|
|
16
|
-
var getSerializers = require('./index-
|
|
16
|
+
var getSerializers = require('./index-5ce5e821.js');
|
|
17
17
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
18
18
|
require('./_commonjsHelpers-06173234.js');
|
|
19
19
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -53,7 +53,6 @@ require('react-bootstrap/Breadcrumb');
|
|
|
53
53
|
require('react-bootstrap/Carousel');
|
|
54
54
|
require('./index-187c967e.js');
|
|
55
55
|
require('./util-93a37fd0.js');
|
|
56
|
-
require('./urlForFile-29d3815a.js');
|
|
57
56
|
require('./typeof-567e31ff.js');
|
|
58
57
|
require('./_is-array-54228b29.js');
|
|
59
58
|
require('./brightcove-react-player-loader.es-a195642e.js');
|
|
@@ -13,7 +13,7 @@ var QueueDeckExpandedPaginated = require('./QueueDeckExpandedPaginated.js');
|
|
|
13
13
|
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
14
14
|
var Feature = require('./Feature.js');
|
|
15
15
|
var urlFor = require('./urlFor.js');
|
|
16
|
-
var getSerializers = require('./index-
|
|
16
|
+
var getSerializers = require('./index-5ce5e821.js');
|
|
17
17
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
18
18
|
require('./_commonjsHelpers-06173234.js');
|
|
19
19
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -46,7 +46,8 @@ require('./AuthorComponent-39b37d84.js');
|
|
|
46
46
|
require('./ADlgInfeed-950b414b.js');
|
|
47
47
|
require('./getContentCategory-f38a4c00.js');
|
|
48
48
|
require('./timeDifferenceCalc.js');
|
|
49
|
-
require('./Pagination-
|
|
49
|
+
require('./Pagination-885dcfbd.js');
|
|
50
|
+
require('react-paginate');
|
|
50
51
|
require('react-bootstrap/Button');
|
|
51
52
|
require('./index.esm-d51c9ac6.js');
|
|
52
53
|
require('./iconBase-be4097c0.js');
|
|
@@ -55,7 +56,6 @@ require('react-bootstrap/Breadcrumb');
|
|
|
55
56
|
require('react-bootstrap/Carousel');
|
|
56
57
|
require('./index-187c967e.js');
|
|
57
58
|
require('./util-93a37fd0.js');
|
|
58
|
-
require('./urlForFile-29d3815a.js');
|
|
59
59
|
require('./typeof-567e31ff.js');
|
|
60
60
|
require('./_is-array-54228b29.js');
|
|
61
61
|
require('./brightcove-react-player-loader.es-a195642e.js');
|
|
@@ -15,7 +15,6 @@ var Dropdown = require('react-bootstrap/Dropdown');
|
|
|
15
15
|
var Card = require('react-bootstrap/Card');
|
|
16
16
|
var Router = require('next/router');
|
|
17
17
|
var index = require('./index-eadd5035.js');
|
|
18
|
-
var urlForFile = require('./urlForFile-29d3815a.js');
|
|
19
18
|
require('./_library-dd23b178.js');
|
|
20
19
|
require('./_iter-detect-b1df62f0.js');
|
|
21
20
|
require('./_object-pie-083f2dd6.js');
|
|
@@ -386,32 +385,32 @@ module.exports = { "default": set$1, __esModule: true };
|
|
|
386
385
|
|
|
387
386
|
var _Set = _commonjsHelpers.unwrapExports(set);
|
|
388
387
|
|
|
389
|
-
/* usage & query
|
|
390
|
-
const Publication = (props) => {
|
|
391
|
-
const { cache, pub, year } = props
|
|
392
|
-
const targeting = {
|
|
393
|
-
content_placement: [`/journals/${pub.identifier.current}`],
|
|
394
|
-
document_url: [`/journals/${pub.identifier.current}`],
|
|
395
|
-
}
|
|
396
|
-
return (
|
|
397
|
-
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
398
|
-
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
399
|
-
</Shell>
|
|
400
|
-
)
|
|
401
|
-
}
|
|
402
|
-
Publication.getInitialProps = async (ctx) => {
|
|
403
|
-
const { query } = ctx
|
|
404
|
-
const {
|
|
405
|
-
query: { year },
|
|
406
|
-
} = ctx
|
|
407
|
-
const pub = await client.fetch(getQuery('publication'), query)
|
|
408
|
-
**import urlFor from framework**
|
|
409
|
-
pub.issues.map((issue) => {
|
|
410
|
-
issue.thumbnail = urlFor({client, source: issue.thumbnail})
|
|
411
|
-
})
|
|
412
|
-
return { pub, year }
|
|
413
|
-
}
|
|
414
|
-
export default Publication
|
|
388
|
+
/* usage & query
|
|
389
|
+
const Publication = (props) => {
|
|
390
|
+
const { cache, pub, year } = props
|
|
391
|
+
const targeting = {
|
|
392
|
+
content_placement: [`/journals/${pub.identifier.current}`],
|
|
393
|
+
document_url: [`/journals/${pub.identifier.current}`],
|
|
394
|
+
}
|
|
395
|
+
return (
|
|
396
|
+
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
397
|
+
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
398
|
+
</Shell>
|
|
399
|
+
)
|
|
400
|
+
}
|
|
401
|
+
Publication.getInitialProps = async (ctx) => {
|
|
402
|
+
const { query } = ctx
|
|
403
|
+
const {
|
|
404
|
+
query: { year },
|
|
405
|
+
} = ctx
|
|
406
|
+
const pub = await client.fetch(getQuery('publication'), query)
|
|
407
|
+
**import urlFor from framework**
|
|
408
|
+
pub.issues.map((issue) => {
|
|
409
|
+
issue.thumbnail = urlFor({client, source: issue.thumbnail})
|
|
410
|
+
})
|
|
411
|
+
return { pub, year }
|
|
412
|
+
}
|
|
413
|
+
export default Publication
|
|
415
414
|
*/
|
|
416
415
|
|
|
417
416
|
var generateContentPlacements = function generateContentPlacements(issues) {
|
|
@@ -771,7 +770,7 @@ asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.ma
|
|
|
771
770
|
) : null,
|
|
772
771
|
issue.pdf && issue.pdf.asset && issue.pdf.asset.url && React__default['default'].createElement(
|
|
773
772
|
'a',
|
|
774
|
-
{ rel: 'noopener', href:
|
|
773
|
+
{ rel: 'noopener', href: issue.pdf.asset.url, target: '_blank', className: 'btn btn-primary' },
|
|
775
774
|
'Download Issue'
|
|
776
775
|
)
|
|
777
776
|
)
|
|
@@ -834,7 +833,7 @@ asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.ma
|
|
|
834
833
|
) : null,
|
|
835
834
|
issue.pdf && issue.pdf.asset && issue.pdf.asset.url && React__default['default'].createElement(
|
|
836
835
|
'a',
|
|
837
|
-
{ rel: 'noopener', href:
|
|
836
|
+
{ rel: 'noopener', href: issue.pdf.asset.url, target: '_blank', className: 'btn btn-primary' },
|
|
838
837
|
'Download Issue'
|
|
839
838
|
)
|
|
840
839
|
)
|
|
@@ -19,7 +19,7 @@ var ADlgInfeed = require('./ADlgInfeed-950b414b.js');
|
|
|
19
19
|
var getContentCategory = require('./getContentCategory-f38a4c00.js');
|
|
20
20
|
var timeDifferenceCalc = require('./timeDifferenceCalc.js');
|
|
21
21
|
var urlFor = require('./urlFor.js');
|
|
22
|
-
var Pagination = require('./Pagination-
|
|
22
|
+
var Pagination = require('./Pagination-885dcfbd.js');
|
|
23
23
|
require('./_commonjsHelpers-06173234.js');
|
|
24
24
|
require('./core.get-iterator-method-5643aa10.js');
|
|
25
25
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -38,6 +38,7 @@ require('./Beam.js');
|
|
|
38
38
|
require('./stringify-f7a37a8d.js');
|
|
39
39
|
require('./Segment.js');
|
|
40
40
|
require('./index-d48b231c.js');
|
|
41
|
+
require('react-paginate');
|
|
41
42
|
require('react-bootstrap/Button');
|
|
42
43
|
require('./index.esm-d51c9ac6.js');
|
|
43
44
|
require('./iconBase-be4097c0.js');
|
|
@@ -17,34 +17,34 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
17
17
|
|
|
18
18
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
19
19
|
|
|
20
|
-
/*
|
|
21
|
-
Sample query
|
|
22
|
-
let references = ''
|
|
23
|
-
if(article.taxonomyMapping.length > 0){
|
|
24
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
25
|
-
references = references + `references('${ref._ref}') `
|
|
26
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
27
|
-
references = references + ` && `
|
|
28
|
-
}
|
|
29
|
-
})
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
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] {
|
|
33
|
-
...,
|
|
34
|
-
title,
|
|
35
|
-
summary,
|
|
36
|
-
thumbnail,
|
|
37
|
-
url,
|
|
38
|
-
published,
|
|
39
|
-
authorMapping[]->,
|
|
40
|
-
contentCategory->
|
|
41
|
-
}`
|
|
42
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
43
|
-
|
|
44
|
-
Sample usage
|
|
45
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
46
|
-
|
|
47
|
-
|
|
20
|
+
/*
|
|
21
|
+
Sample query
|
|
22
|
+
let references = ''
|
|
23
|
+
if(article.taxonomyMapping.length > 0){
|
|
24
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
25
|
+
references = references + `references('${ref._ref}') `
|
|
26
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
27
|
+
references = references + ` && `
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
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] {
|
|
33
|
+
...,
|
|
34
|
+
title,
|
|
35
|
+
summary,
|
|
36
|
+
thumbnail,
|
|
37
|
+
url,
|
|
38
|
+
published,
|
|
39
|
+
authorMapping[]->,
|
|
40
|
+
contentCategory->
|
|
41
|
+
}`
|
|
42
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
43
|
+
|
|
44
|
+
Sample usage
|
|
45
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
46
|
+
|
|
47
|
+
|
|
48
48
|
*/
|
|
49
49
|
var RelatedContent = function RelatedContent(props) {
|
|
50
50
|
var client = props.client,
|
|
@@ -22,16 +22,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
22
22
|
_ref$className = _ref.className,
|
|
23
23
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
24
24
|
|
|
25
|
-
/*
|
|
26
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
27
|
-
example:
|
|
28
|
-
<RelatedTopicDropdown
|
|
29
|
-
page='/clinical'
|
|
30
|
-
exclude="clinical"
|
|
31
|
-
className='mb-3'
|
|
32
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
33
|
-
subTaxonomies={props.subTaxonomies}
|
|
34
|
-
/>
|
|
25
|
+
/*
|
|
26
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
27
|
+
example:
|
|
28
|
+
<RelatedTopicDropdown
|
|
29
|
+
page='/clinical'
|
|
30
|
+
exclude="clinical"
|
|
31
|
+
className='mb-3'
|
|
32
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
33
|
+
subTaxonomies={props.subTaxonomies}
|
|
34
|
+
/>
|
|
35
35
|
*/
|
|
36
36
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
37
37
|
if (parentTaxonomy.identifier == exclude) {
|
|
@@ -7,7 +7,7 @@ var React = require('react');
|
|
|
7
7
|
var Router = require('next/router');
|
|
8
8
|
var index = require('./index-fc2f1ca2.js');
|
|
9
9
|
var index_es = require('./index.es-f3e47207.js');
|
|
10
|
-
var SeriesSlider = require('./SeriesSlider-
|
|
10
|
+
var SeriesSlider = require('./SeriesSlider-ba0c5d1a.js');
|
|
11
11
|
var visibilitySensor = require('./visibility-sensor-eb2c5b69.js');
|
|
12
12
|
require('./_commonjsHelpers-06173234.js');
|
|
13
13
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -12,10 +12,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
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 SeriesSlider = function SeriesSlider(_ref) {
|
package/dist/cjs/SideFooter.js
CHANGED
|
@@ -38,8 +38,8 @@ var renderLink = function renderLink(row) {
|
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
var SideFooter = function SideFooter(props) {
|
|
41
|
-
/*
|
|
42
|
-
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
41
|
+
/*
|
|
42
|
+
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
43
43
|
*/
|
|
44
44
|
var _get = get.get_1(props, 'cache.siteSettingCache', {}),
|
|
45
45
|
socialLinks = _get.socialLinks,
|
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var Router = require('next/router');
|
|
7
7
|
var Head = require('next/head');
|
|
8
8
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
9
|
-
var getSerializers = require('./index-
|
|
9
|
+
var getSerializers = require('./index-5ce5e821.js');
|
|
10
10
|
require('./_commonjsHelpers-06173234.js');
|
|
11
11
|
require('./core.get-iterator-method-5643aa10.js');
|
|
12
12
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -26,7 +26,6 @@ require('./Beam.js');
|
|
|
26
26
|
require('./stringify-f7a37a8d.js');
|
|
27
27
|
require('./Segment.js');
|
|
28
28
|
require('./main-f1c77adb.js');
|
|
29
|
-
require('./urlForFile-29d3815a.js');
|
|
30
29
|
require('./index-eadd5035.js');
|
|
31
30
|
require('react-dom');
|
|
32
31
|
require('./typeof-567e31ff.js');
|
|
@@ -7,7 +7,7 @@ var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
|
7
7
|
var Col = require('react-bootstrap/Col');
|
|
8
8
|
var Form = require('react-bootstrap/Form');
|
|
9
9
|
var Button = require('react-bootstrap/Button');
|
|
10
|
-
var getSerializers = require('./index-
|
|
10
|
+
var getSerializers = require('./index-5ce5e821.js');
|
|
11
11
|
var VideoSeriesListing = require('./VideoSeriesListing.js');
|
|
12
12
|
require('./_commonjsHelpers-06173234.js');
|
|
13
13
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -29,7 +29,6 @@ require('./Beam.js');
|
|
|
29
29
|
require('./stringify-f7a37a8d.js');
|
|
30
30
|
require('./Segment.js');
|
|
31
31
|
require('./main-f1c77adb.js');
|
|
32
|
-
require('./urlForFile-29d3815a.js');
|
|
33
32
|
require('./index-eadd5035.js');
|
|
34
33
|
require('react-dom');
|
|
35
34
|
require('./typeof-567e31ff.js');
|
|
@@ -21,7 +21,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
21
21
|
|
|
22
22
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
23
23
|
|
|
24
|
-
var css = ".VideoSeriesCard-module_article__Hlc3e {\
|
|
24
|
+
var css = ".VideoSeriesCard-module_article__Hlc3e {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.VideoSeriesCard-module_article__Hlc3e a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.VideoSeriesCard-module_thumb__3hGyJ {\n width: 25%;\n}\n.VideoSeriesCard-module_thumb__3hGyJ img {\n width: 100%;\n height: auto;\n}\n.VideoSeriesCard-module_info__2_i1N {\n width: 75%;\n font-size: 1rem;\n}\n.VideoSeriesCard-module_info__2_i1N h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.VideoSeriesCard-module_published__1fI0q {\n color: #6d6d6d;\n margin: 0;\n}\n.VideoSeriesCard-module_summary__3hWJT {\n margin: 0.5rem 0 0 0;\n}\n.VideoSeriesCard-module_author__aU35o {\n margin: 0;\n}\n.VideoSeriesCard-module_author__aU35o span {\n color: #6d6d6d;\n}\n@media only screen and (max-width: 568px) {\n .VideoSeriesCard-module_article__Hlc3e {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .VideoSeriesCard-module_article__Hlc3e a {\n flex-direction: column;\n align-items: center;\n }\n .VideoSeriesCard-module_thumb__3hGyJ {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .VideoSeriesCard-module_thumb__3hGyJ img{\n border-radius: 10px 10px 0 0; \n }\n .VideoSeriesCard-module_thumb__3hGyJ figure {\n margin: 0;\n }\n .VideoSeriesCard-module_info__2_i1N {\n width: 90%;\n padding: 1rem !important;\n }\n .VideoSeriesCard-module_info__2_i1N h2 {\n font-size: 1rem;\n }\n}\n";
|
|
25
25
|
var styles = { "article": "VideoSeriesCard-module_article__Hlc3e", "thumb": "VideoSeriesCard-module_thumb__3hGyJ", "info": "VideoSeriesCard-module_info__2_i1N", "published": "VideoSeriesCard-module_published__1fI0q", "summary": "VideoSeriesCard-module_summary__3hWJT", "author": "VideoSeriesCard-module_author__aU35o" };
|
|
26
26
|
styleInject_es.styleInject(css);
|
|
27
27
|
|
package/dist/cjs/View.js
CHANGED
|
@@ -17,26 +17,26 @@ var FormControl = require('react-bootstrap/FormControl');
|
|
|
17
17
|
var Button = require('react-bootstrap/Button');
|
|
18
18
|
var visibilitySensor = require('./visibility-sensor-eb2c5b69.js');
|
|
19
19
|
var SocialShare = require('./SocialShare.js');
|
|
20
|
-
var getSerializers = require('./index-
|
|
20
|
+
var getSerializers = require('./index-5ce5e821.js');
|
|
21
21
|
var AdSlot = require('./AdSlot.js');
|
|
22
|
-
var SeriesSlider = require('./SeriesSlider-
|
|
23
|
-
var getTargeting = require('./getTargeting-
|
|
22
|
+
var SeriesSlider = require('./SeriesSlider-ba0c5d1a.js');
|
|
23
|
+
var getTargeting = require('./getTargeting-3c5754ac.js');
|
|
24
24
|
var getKeywords = require('./getKeywords.js');
|
|
25
25
|
var urlFor = require('./urlFor.js');
|
|
26
|
-
var urlForFile = require('./urlForFile-29d3815a.js');
|
|
27
26
|
var _typeof = require('./typeof-567e31ff.js');
|
|
28
27
|
var index_esm = require('./index.esm-d51c9ac6.js');
|
|
29
28
|
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
30
29
|
require('./index-eadd5035.js');
|
|
31
30
|
var disqusReact = require('disqus-react');
|
|
32
31
|
var Schema = require('./Schema.js');
|
|
33
|
-
var
|
|
32
|
+
var FileSaver = require('file-saver');
|
|
34
33
|
var keys = require('./keys-e982b3fa.js');
|
|
35
34
|
var index_es = require('./index.es-f3e47207.js');
|
|
36
35
|
var index = require('./index-fc2f1ca2.js');
|
|
37
36
|
var getRelatedArticle = require('./getRelatedArticle.js');
|
|
38
37
|
var getQuery = require('./getQuery.js');
|
|
39
38
|
var getSeriesDetail = require('./getSeriesDetail.js');
|
|
39
|
+
require('./_commonjsHelpers-06173234.js');
|
|
40
40
|
require('./core.get-iterator-method-5643aa10.js');
|
|
41
41
|
require('./web.dom.iterable-d98303e0.js');
|
|
42
42
|
require('./_library-dd23b178.js');
|
|
@@ -82,6 +82,7 @@ var Head__default = /*#__PURE__*/_interopDefaultLegacy(Head);
|
|
|
82
82
|
var Form__default = /*#__PURE__*/_interopDefaultLegacy(Form);
|
|
83
83
|
var FormControl__default = /*#__PURE__*/_interopDefaultLegacy(FormControl);
|
|
84
84
|
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
85
|
+
var FileSaver__default = /*#__PURE__*/_interopDefaultLegacy(FileSaver);
|
|
85
86
|
|
|
86
87
|
var getArticleSummary = function getArticleSummary(article) {
|
|
87
88
|
if (article.summary && article.summary.length > 0) {
|
|
@@ -348,7 +349,7 @@ var ISI = function ISI(props) {
|
|
|
348
349
|
);
|
|
349
350
|
};
|
|
350
351
|
|
|
351
|
-
var css = ".RelatedArticles-module_mediaContainer__10h9k {\
|
|
352
|
+
var css = ".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";
|
|
352
353
|
var styles = { "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" };
|
|
353
354
|
styleInject_es.styleInject(css);
|
|
354
355
|
|
|
@@ -447,12 +448,6 @@ var getSocialShareDisableFlag = function getSocialShareDisableFlag(article) {
|
|
|
447
448
|
return showSocialShare;
|
|
448
449
|
};
|
|
449
450
|
|
|
450
|
-
var FileSaver_min = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
451
|
-
(function(a,b){b();})(_commonjsHelpers.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 _commonjsHelpers.commonjsGlobal&&_commonjsHelpers.commonjsGlobal.global===_commonjsHelpers.commonjsGlobal?_commonjsHelpers.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);});
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
});
|
|
455
|
-
|
|
456
451
|
var Article = React.forwardRef(function (props, ref) {
|
|
457
452
|
var onVote = function () {
|
|
458
453
|
var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(nodeKey, selectedChoice) {
|
|
@@ -720,7 +715,7 @@ var Article = React.forwardRef(function (props, ref) {
|
|
|
720
715
|
var downloadRIS = function downloadRIS() {
|
|
721
716
|
var fileContent = generateRIS();
|
|
722
717
|
var file = new File([fileContent], 'citation-' + url + '.ris', { type: 'application/x-research-info-systems;charset=utf-8' });
|
|
723
|
-
|
|
718
|
+
FileSaver__default['default'].saveAs(file, 'citation-' + url + '.ris');
|
|
724
719
|
};
|
|
725
720
|
|
|
726
721
|
var RelevantTopics = function RelevantTopics() {
|
|
@@ -1335,9 +1330,9 @@ var Article = React.forwardRef(function (props, ref) {
|
|
|
1335
1330
|
} },
|
|
1336
1331
|
'Download RIS'
|
|
1337
1332
|
),
|
|
1338
|
-
issue && issue.
|
|
1333
|
+
issue && issue.url && React__default['default'].createElement(
|
|
1339
1334
|
'a',
|
|
1340
|
-
{ rel: 'noopener', href:
|
|
1335
|
+
{ rel: 'noopener', href: issue.url, target: '_blank', title: 'Download issue' },
|
|
1341
1336
|
React__default['default'].createElement('img', { style: { margin: '1rem', maxHeight: '40px', maxWidth: '40px' }, src: '/download.png', alt: 'download issue' }),
|
|
1342
1337
|
'Download Issue : ',
|
|
1343
1338
|
issue.name
|
package/dist/cjs/YoutubeGroup.js
CHANGED
|
@@ -18,10 +18,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
18
18
|
|
|
19
19
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
20
20
|
|
|
21
|
-
/*
|
|
22
|
-
GROQ query -
|
|
23
|
-
accepts an array of title, URL
|
|
24
|
-
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
21
|
+
/*
|
|
22
|
+
GROQ query -
|
|
23
|
+
accepts an array of title, URL
|
|
24
|
+
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
var YoutubeGroup = function YoutubeGroup(props) {
|
package/dist/cjs/getQuery.js
CHANGED
|
@@ -10,9 +10,9 @@ var getQuery = function getQuery(type) {
|
|
|
10
10
|
|
|
11
11
|
switch (type) {
|
|
12
12
|
case 'related':
|
|
13
|
-
return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock!=true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n fieldAbstract,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds,\n showSocialShare\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url,\n
|
|
13
|
+
return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock!=true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n fieldAbstract,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds,\n showSocialShare\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url,\n isbn_issn,\n abbreviatedJournal,\n }\n }';
|
|
14
14
|
case 'article':
|
|
15
|
-
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible != false\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n fieldAbstract,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n },\n poster {\n _type,\n asset-> \n }\n },\n articles[]{\n ...,\n thumbnail{\n ...,\n asset-> \n },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n showSocialShare\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n year,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url,\n
|
|
15
|
+
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible != false\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n fieldAbstract,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n },\n poster {\n _type,\n asset-> \n }\n },\n articles[]{\n ...,\n thumbnail{\n ...,\n asset-> \n },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n showSocialShare\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n year,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url,\n isbn_issn,\n abbreviatedJournal,\n }\n\n }';
|
|
16
16
|
case 'publication':
|
|
17
17
|
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n thumbnail{ ..., asset-> },\n taxonomyMapping[]->,\n pdf{asset->},\n } | order(year desc, month desc)\n }';
|
|
18
18
|
case 'issue':
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./extends-7c86182f.js');
|
|
4
4
|
require('react');
|
|
5
|
-
var getSerializers = require('./index-
|
|
5
|
+
var getSerializers = require('./index-5ce5e821.js');
|
|
6
6
|
require('./BlockContent-9ebd251f.js');
|
|
7
7
|
require('./entities-df1aed86.js');
|
|
8
8
|
require('./_commonjsHelpers-06173234.js');
|
|
@@ -26,7 +26,6 @@ require('./_library-dd23b178.js');
|
|
|
26
26
|
require('./_iter-detect-b1df62f0.js');
|
|
27
27
|
require('./Segment.js');
|
|
28
28
|
require('./main-f1c77adb.js');
|
|
29
|
-
require('./urlForFile-29d3815a.js');
|
|
30
29
|
require('./index-eadd5035.js');
|
|
31
30
|
require('react-dom');
|
|
32
31
|
require('./typeof-567e31ff.js');
|