@mjhls/mjh-framework 1.0.887-issue-pagination-v1 → 1.0.887-search-test
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 +16 -3
- 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/GridContentPaginated.js +2 -1
- package/dist/cjs/HamMagazine.js +14 -12
- package/dist/cjs/IssueLanding.js +29 -29
- 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-3d5c69ba.js → MediaSeriesCard-8b4efd28.js} +1 -1
- package/dist/cjs/MediaSeriesLanding.js +6 -6
- package/dist/cjs/MediaSeriesLandingPaginated.js +8 -7
- package/dist/cjs/NavMagazine.js +11 -11
- package/dist/cjs/NavNative.js +9 -9
- package/dist/cjs/Pagination-8f2038bf.js +53 -0
- package/dist/cjs/PartnerDetailListingPaginated.js +2 -1
- package/dist/cjs/PublicationLanding.js +26 -26
- 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/{SocialSearchComponent-4942ddfc.js → SocialSearchComponent-b7faaedc.js} +15 -3
- package/dist/cjs/TemplateNormal.js +1 -1
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/View.js +3 -3
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/{getTargeting-6d59cc5b.js → getTargeting-9d509319.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/index.js +3 -3
- package/dist/esm/AlgoliaSearch.js +16 -3
- 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/GridContentPaginated.js +2 -1
- package/dist/esm/HamMagazine.js +14 -12
- package/dist/esm/IssueLanding.js +29 -29
- 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-5b1d13dd.js → MediaSeriesCard-51ebf1c0.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +6 -6
- package/dist/esm/MediaSeriesLandingPaginated.js +8 -7
- package/dist/esm/NavMagazine.js +11 -11
- package/dist/esm/NavNative.js +9 -9
- package/dist/esm/Pagination-c0db7ca1.js +46 -0
- package/dist/esm/PartnerDetailListingPaginated.js +2 -1
- package/dist/esm/PublicationLanding.js +26 -26
- 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/{SocialSearchComponent-8e0fcf66.js → SocialSearchComponent-4b56cd8c.js} +15 -3
- package/dist/esm/TemplateNormal.js +1 -1
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/View.js +3 -3
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/{getTargeting-36031a00.js → getTargeting-4061f839.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/index.js +3 -3
- package/package.json +112 -112
- package/dist/cjs/Pagination-b5e8b8dc.js +0 -60
- package/dist/esm/Pagination-481eaaf5.js +0 -54
package/dist/cjs/IssueLanding.js
CHANGED
|
@@ -73,35 +73,35 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
73
73
|
|
|
74
74
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
75
75
|
|
|
76
|
-
/* usage
|
|
77
|
-
import Settings, { Ads } from '../../../../settings'
|
|
78
|
-
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
79
|
-
import client from '../../../../client'
|
|
80
|
-
import moment from 'moment'
|
|
81
|
-
import Shell from '../../../../components/2.0/Shell'
|
|
82
|
-
import { pageview } from '../../../../utilities/gtag'
|
|
83
|
-
|
|
84
|
-
const Issue = (props) => {
|
|
85
|
-
const { pubIssue, cache } = props
|
|
86
|
-
const targeting = {
|
|
87
|
-
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
88
|
-
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
89
|
-
}
|
|
90
|
-
return (
|
|
91
|
-
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
92
|
-
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
93
|
-
</Shell>
|
|
94
|
-
)
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
Issue.getInitialProps = async (ctx) => {
|
|
98
|
-
const { query } = ctx
|
|
99
|
-
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
100
|
-
)
|
|
101
|
-
return { pubIssue }
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export default Issue
|
|
76
|
+
/* usage
|
|
77
|
+
import Settings, { Ads } from '../../../../settings'
|
|
78
|
+
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
79
|
+
import client from '../../../../client'
|
|
80
|
+
import moment from 'moment'
|
|
81
|
+
import Shell from '../../../../components/2.0/Shell'
|
|
82
|
+
import { pageview } from '../../../../utilities/gtag'
|
|
83
|
+
|
|
84
|
+
const Issue = (props) => {
|
|
85
|
+
const { pubIssue, cache } = props
|
|
86
|
+
const targeting = {
|
|
87
|
+
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
88
|
+
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
89
|
+
}
|
|
90
|
+
return (
|
|
91
|
+
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
92
|
+
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
93
|
+
</Shell>
|
|
94
|
+
)
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
Issue.getInitialProps = async (ctx) => {
|
|
98
|
+
const { query } = ctx
|
|
99
|
+
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
100
|
+
)
|
|
101
|
+
return { pubIssue }
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export default Issue
|
|
105
105
|
*/
|
|
106
106
|
|
|
107
107
|
var IssueLanding = function IssueLanding(props) {
|
package/dist/cjs/KMTracker.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var KMTracker = function KMTracker(props) {
|
|
4
|
-
|
|
4
|
+
var id = props.id;
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
if (document && id) {
|
|
7
7
|
(function () {
|
|
8
|
-
|
|
8
|
+
var ecnJquery = document.createElement('script');
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
ecnJquery.type = 'text/javascript';
|
|
11
|
+
ecnJquery.async = true;
|
|
12
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
var ecnScript = document.createElement('script');
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
ecnScript.type = 'text/javascript';
|
|
17
|
+
ecnScript.async = true;
|
|
18
|
+
ecnScript.id = 'km-tracker';
|
|
19
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
document.head.appendChild(ecnJquery);
|
|
22
|
+
document.head.appendChild(ecnScript);
|
|
23
|
+
})();
|
|
24
|
+
}
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
module.exports = KMTracker;
|
package/dist/cjs/MasterDeck.js
CHANGED
|
@@ -230,14 +230,14 @@ var MasterDeck = function (_React$Component) {
|
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
// please leave this for later debug purpose : Yong Jun.
|
|
233
|
-
/* console.log('page change reported', {
|
|
234
|
-
currentPage: currentPage,
|
|
235
|
-
pageNumber: pageNumber,
|
|
236
|
-
pathname: pathname,
|
|
237
|
-
path: path,
|
|
238
|
-
newPath: newPath,
|
|
239
|
-
firstPage: pageNumber === 1,
|
|
240
|
-
queryString: queryString
|
|
233
|
+
/* console.log('page change reported', {
|
|
234
|
+
currentPage: currentPage,
|
|
235
|
+
pageNumber: pageNumber,
|
|
236
|
+
pathname: pathname,
|
|
237
|
+
path: path,
|
|
238
|
+
newPath: newPath,
|
|
239
|
+
firstPage: pageNumber === 1,
|
|
240
|
+
queryString: queryString
|
|
241
241
|
}) */
|
|
242
242
|
|
|
243
243
|
if (pageview) {
|
|
@@ -14,7 +14,7 @@ var lodash = require('./lodash-f0783643.js');
|
|
|
14
14
|
var main = require('./main-f1c77adb.js');
|
|
15
15
|
var ADlgInfeed = require('./ADlgInfeed-950b414b.js');
|
|
16
16
|
var ADInfeed = require('./ADInfeed-bce0ba07.js');
|
|
17
|
-
var Pagination = require('./Pagination-
|
|
17
|
+
var Pagination = require('./Pagination-8f2038bf.js');
|
|
18
18
|
require('./_commonjsHelpers-06173234.js');
|
|
19
19
|
require('./core.get-iterator-method-5643aa10.js');
|
|
20
20
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -35,6 +35,7 @@ require('./isSymbol-03abbdf0.js');
|
|
|
35
35
|
require('./toNumber-5e1fac58.js');
|
|
36
36
|
require('./Beam.js');
|
|
37
37
|
require('./Segment.js');
|
|
38
|
+
require('react-paginate');
|
|
38
39
|
|
|
39
40
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
40
41
|
|
|
@@ -112,14 +113,14 @@ var MasterDeck = function (_React$Component) {
|
|
|
112
113
|
}
|
|
113
114
|
|
|
114
115
|
// please leave this for later debug purpose : Yong Jun.
|
|
115
|
-
/* console.log('page change reported', {
|
|
116
|
-
currentPage: currentPage,
|
|
117
|
-
pageNumber: pageNumber,
|
|
118
|
-
pathname: pathname,
|
|
119
|
-
path: path,
|
|
120
|
-
newPath: newPath,
|
|
121
|
-
firstPage: pageNumber === 1,
|
|
122
|
-
queryString: queryString
|
|
116
|
+
/* console.log('page change reported', {
|
|
117
|
+
currentPage: currentPage,
|
|
118
|
+
pageNumber: pageNumber,
|
|
119
|
+
pathname: pathname,
|
|
120
|
+
path: path,
|
|
121
|
+
newPath: newPath,
|
|
122
|
+
firstPage: pageNumber === 1,
|
|
123
|
+
queryString: queryString
|
|
123
124
|
}) */
|
|
124
125
|
|
|
125
126
|
if (pageview) {
|
|
@@ -9435,7 +9435,7 @@ var Tooltip = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9435
9435
|
Tooltip.defaultProps = defaultProps;
|
|
9436
9436
|
Tooltip.displayName = 'Tooltip';
|
|
9437
9437
|
|
|
9438
|
-
var css = ".MediaSeriesCard-module_article__SAFYK {\
|
|
9438
|
+
var css = ".MediaSeriesCard-module_article__SAFYK {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.MediaSeriesCard-module_article__SAFYK a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.MediaSeriesCard-module_thumb__3jRAU {\n width: 25%;\n}\n.MediaSeriesCard-module_thumb__3jRAU img {\n width: 100%;\n height: auto;\n}\n.MediaSeriesCard-module_info__3L7_o {\n width: 75%;\n font-size: 1rem;\n}\n.MediaSeriesCard-module_info__3L7_o h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.MediaSeriesCard-module_published__E4oiz {\n color: #6d6d6d;\n margin: 0;\n}\n.MediaSeriesCard-module_summary__1xanh {\n margin: 0.5rem 0 0 0;\n}\n.MediaSeriesCard-module_author__e5fuR {\n margin: 0;\n}\n.MediaSeriesCard-module_author__e5fuR span {\n color: #6d6d6d;\n}\n.MediaSeriesCard-module_name__2m5KY {\n font-size: 1.3rem;\n font-weight: bold;\n}\n@media only screen and (max-width: 568px) {\n .MediaSeriesCard-module_article__SAFYK {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .MediaSeriesCard-module_article__SAFYK a {\n flex-direction: column;\n align-items: center;\n }\n .MediaSeriesCard-module_thumb__3jRAU {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .MediaSeriesCard-module_thumb__3jRAU img{\n border-radius: 10px 10px 0 0; \n }\n .MediaSeriesCard-module_thumb__3jRAU figure {\n margin: 0;\n }\n .MediaSeriesCard-module_info__3L7_o {\n width: 90%;\n padding: 0rem !important;\n }\n .MediaSeriesCard-module_info__3L7_o h2 {\n font-size: 1rem;\n }\n .MediaSeriesCard-module_name__2m5KY {\n font-size: 1rem;\n \n }\n}\n";
|
|
9439
9439
|
var styles = { "article": "MediaSeriesCard-module_article__SAFYK", "thumb": "MediaSeriesCard-module_thumb__3jRAU", "info": "MediaSeriesCard-module_info__3L7_o", "published": "MediaSeriesCard-module_published__E4oiz", "summary": "MediaSeriesCard-module_summary__1xanh", "author": "MediaSeriesCard-module_author__e5fuR", "name": "MediaSeriesCard-module_name__2m5KY" };
|
|
9440
9440
|
styleInject_es.styleInject(css);
|
|
9441
9441
|
|
|
@@ -6,7 +6,7 @@ var _typeof = require('./typeof-567e31ff.js');
|
|
|
6
6
|
var _extends = require('./extends-7c86182f.js');
|
|
7
7
|
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
8
8
|
var React = require('react');
|
|
9
|
-
var MediaSeriesCard = require('./MediaSeriesCard-
|
|
9
|
+
var MediaSeriesCard = require('./MediaSeriesCard-8b4efd28.js');
|
|
10
10
|
require('./index-50be6759.js');
|
|
11
11
|
require('react-dom');
|
|
12
12
|
var Link = require('next/link');
|
|
@@ -97,11 +97,11 @@ var Filter = function Filter(_ref) {
|
|
|
97
97
|
_useState6 = slicedToArray._slicedToArray(_useState5, 2),
|
|
98
98
|
grandChildData = _useState6[0],
|
|
99
99
|
setGrandChildData = _useState6[1];
|
|
100
|
-
/*
|
|
101
|
-
{parent: showAll,
|
|
102
|
-
chidlren: show selected from parent,
|
|
103
|
-
grandchildren: show selected from children
|
|
104
|
-
}
|
|
100
|
+
/*
|
|
101
|
+
{parent: showAll,
|
|
102
|
+
chidlren: show selected from parent,
|
|
103
|
+
grandchildren: show selected from children
|
|
104
|
+
}
|
|
105
105
|
*/
|
|
106
106
|
|
|
107
107
|
|
|
@@ -5,7 +5,7 @@ var _typeof = require('./typeof-567e31ff.js');
|
|
|
5
5
|
var _extends = require('./extends-7c86182f.js');
|
|
6
6
|
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
7
7
|
var React = require('react');
|
|
8
|
-
var MediaSeriesCard = require('./MediaSeriesCard-
|
|
8
|
+
var MediaSeriesCard = require('./MediaSeriesCard-8b4efd28.js');
|
|
9
9
|
require('./index-50be6759.js');
|
|
10
10
|
require('react-dom');
|
|
11
11
|
var Link = require('next/link');
|
|
@@ -46,7 +46,8 @@ require('./toNumber-5e1fac58.js');
|
|
|
46
46
|
require('./Beam.js');
|
|
47
47
|
require('./Segment.js');
|
|
48
48
|
require('./ADInfeed-bce0ba07.js');
|
|
49
|
-
require('./Pagination-
|
|
49
|
+
require('./Pagination-8f2038bf.js');
|
|
50
|
+
require('react-paginate');
|
|
50
51
|
require('react-bootstrap');
|
|
51
52
|
require('./index-187c967e.js');
|
|
52
53
|
require('./util-93a37fd0.js');
|
|
@@ -96,11 +97,11 @@ var Filter = function Filter(_ref) {
|
|
|
96
97
|
_useState6 = slicedToArray._slicedToArray(_useState5, 2),
|
|
97
98
|
grandChildData = _useState6[0],
|
|
98
99
|
setGrandChildData = _useState6[1];
|
|
99
|
-
/*
|
|
100
|
-
{parent: showAll,
|
|
101
|
-
chidlren: show selected from parent,
|
|
102
|
-
grandchildren: show selected from children
|
|
103
|
-
}
|
|
100
|
+
/*
|
|
101
|
+
{parent: showAll,
|
|
102
|
+
chidlren: show selected from parent,
|
|
103
|
+
grandchildren: show selected from children
|
|
104
|
+
}
|
|
104
105
|
*/
|
|
105
106
|
|
|
106
107
|
|
package/dist/cjs/NavMagazine.js
CHANGED
|
@@ -14,7 +14,7 @@ var NavFooter = require('./NavFooter-3dcd99a8.js');
|
|
|
14
14
|
var index_esm$2 = require('./index.esm-2bb721c8.js');
|
|
15
15
|
var main = require('./main-f1c77adb.js');
|
|
16
16
|
var Segment = require('./Segment.js');
|
|
17
|
-
var SocialSearchComponent = require('./SocialSearchComponent-
|
|
17
|
+
var SocialSearchComponent = require('./SocialSearchComponent-b7faaedc.js');
|
|
18
18
|
require('./_commonjsHelpers-06173234.js');
|
|
19
19
|
require('./web.dom.iterable-d98303e0.js');
|
|
20
20
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -38,16 +38,16 @@ var Navbar__default = /*#__PURE__*/_interopDefaultLegacy(Navbar);
|
|
|
38
38
|
var NavDropdown__default = /*#__PURE__*/_interopDefaultLegacy(NavDropdown);
|
|
39
39
|
|
|
40
40
|
var NavMagazine = function NavMagazine(props) {
|
|
41
|
-
/*
|
|
42
|
-
Example Nav with acceptable props
|
|
43
|
-
<MagazineNav
|
|
44
|
-
showLogin
|
|
45
|
-
user={props.cache.user}
|
|
46
|
-
logo={props.settings.logo}
|
|
47
|
-
dataObject={props.cache.mainNavCache}
|
|
48
|
-
website={website}
|
|
49
|
-
subNav={props.cache.subNavCache}
|
|
50
|
-
/>
|
|
41
|
+
/*
|
|
42
|
+
Example Nav with acceptable props
|
|
43
|
+
<MagazineNav
|
|
44
|
+
showLogin
|
|
45
|
+
user={props.cache.user}
|
|
46
|
+
logo={props.settings.logo}
|
|
47
|
+
dataObject={props.cache.mainNavCache}
|
|
48
|
+
website={website}
|
|
49
|
+
subNav={props.cache.subNavCache}
|
|
50
|
+
/>
|
|
51
51
|
*/
|
|
52
52
|
|
|
53
53
|
// Setting 'socialIconVariant' as 'light' as default to make the social icons and search icon black
|
package/dist/cjs/NavNative.js
CHANGED
|
@@ -315,15 +315,15 @@ function chunk(array, size, guard) {
|
|
|
315
315
|
var chunk_1 = chunk;
|
|
316
316
|
|
|
317
317
|
var NavNative = function NavNative(props) {
|
|
318
|
-
/*
|
|
319
|
-
Example Nav with acceptable props
|
|
320
|
-
<MagazineNav
|
|
321
|
-
showLogin
|
|
322
|
-
logo={props.settings.logo}
|
|
323
|
-
dataObject={props.cache.mainNavCache}
|
|
324
|
-
website={website}
|
|
325
|
-
subNav={props.cache.subNavCache}
|
|
326
|
-
/>
|
|
318
|
+
/*
|
|
319
|
+
Example Nav with acceptable props
|
|
320
|
+
<MagazineNav
|
|
321
|
+
showLogin
|
|
322
|
+
logo={props.settings.logo}
|
|
323
|
+
dataObject={props.cache.mainNavCache}
|
|
324
|
+
website={website}
|
|
325
|
+
subNav={props.cache.subNavCache}
|
|
326
|
+
/>
|
|
327
327
|
*/
|
|
328
328
|
// Setting 'socialIconVariant' as 'dark' as default to make the social icons and search icon black
|
|
329
329
|
var logo = props.logo,
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var ReactPaginate = require('react-paginate');
|
|
5
|
+
|
|
6
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
7
|
+
|
|
8
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
9
|
+
var ReactPaginate__default = /*#__PURE__*/_interopDefaultLegacy(ReactPaginate);
|
|
10
|
+
|
|
11
|
+
var Pagination = function Pagination(props) {
|
|
12
|
+
var pageCount = props.pageCount,
|
|
13
|
+
_props$marginPagesDis = props.marginPagesDisplayed,
|
|
14
|
+
marginPagesDisplayed = _props$marginPagesDis === undefined ? 1 : _props$marginPagesDis,
|
|
15
|
+
_props$pageRangeDispl = props.pageRangeDisplayed,
|
|
16
|
+
pageRangeDisplayed = _props$pageRangeDispl === undefined ? 5 : _props$pageRangeDispl,
|
|
17
|
+
_props$currentPage = props.currentPage,
|
|
18
|
+
currentPage = _props$currentPage === undefined ? 1 : _props$currentPage,
|
|
19
|
+
_onPageChange = props.onPageChange;
|
|
20
|
+
|
|
21
|
+
if (!pageCount || pageCount <= 1) return null;
|
|
22
|
+
return React__default['default'].createElement(
|
|
23
|
+
React__default['default'].Fragment,
|
|
24
|
+
null,
|
|
25
|
+
React__default['default'].createElement(ReactPaginate__default['default'], {
|
|
26
|
+
pageCount: pageCount,
|
|
27
|
+
marginPagesDisplayed: marginPagesDisplayed,
|
|
28
|
+
pageRangeDisplayed: pageRangeDisplayed,
|
|
29
|
+
forcePage: currentPage - 1,
|
|
30
|
+
onPageChange: function onPageChange(_ref) {
|
|
31
|
+
var selected = _ref.selected;
|
|
32
|
+
return _onPageChange(selected + 1);
|
|
33
|
+
},
|
|
34
|
+
hrefBuilder: function hrefBuilder(page) {
|
|
35
|
+
return '?page=' + page;
|
|
36
|
+
},
|
|
37
|
+
previousLabel: '<',
|
|
38
|
+
nextLabel: '>',
|
|
39
|
+
containerClassName: 'pagination-container',
|
|
40
|
+
previousLinkClassName: 'previous',
|
|
41
|
+
nextLinkClassName: 'next',
|
|
42
|
+
disabledClassName: 'disbaled',
|
|
43
|
+
activeClassName: 'active'
|
|
44
|
+
}),
|
|
45
|
+
React__default['default'].createElement(
|
|
46
|
+
'style',
|
|
47
|
+
{ jsx: 'true' },
|
|
48
|
+
'\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::-webkit-scrollbar {\n height: 6px;\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 border-color: #007bff;\n }\n .pagination-container .previous a {\n border-radius: 5px 0 0 5px;\n }\n .pagination-container .next a {\n border-radius: 0 5px 5px 0;\n }\n .pagination-container .disbaled a {\n cursor: default;\n }\n '
|
|
49
|
+
)
|
|
50
|
+
);
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
exports.Pagination = Pagination;
|
|
@@ -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-8f2038bf.js');
|
|
50
|
+
require('react-paginate');
|
|
50
51
|
require('./index-d48b231c.js');
|
|
51
52
|
require('react-bootstrap/Breadcrumb');
|
|
52
53
|
require('react-bootstrap/Carousel');
|
|
@@ -385,32 +385,32 @@ module.exports = { "default": set$1, __esModule: true };
|
|
|
385
385
|
|
|
386
386
|
var _Set = _commonjsHelpers.unwrapExports(set);
|
|
387
387
|
|
|
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
|
|
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
|
|
414
414
|
*/
|
|
415
415
|
|
|
416
416
|
var generateContentPlacements = function generateContentPlacements(issues) {
|
|
@@ -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-8f2038bf.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
|
|
|
42
43
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
43
44
|
|
|
@@ -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,
|
|
@@ -21,7 +21,9 @@ var SocialSearchComponent = function SocialSearchComponent(_ref) {
|
|
|
21
21
|
var type = _ref.type,
|
|
22
22
|
socialIconVariant = _ref.socialIconVariant,
|
|
23
23
|
website = _ref.website,
|
|
24
|
-
navID = _ref.navID
|
|
24
|
+
navID = _ref.navID,
|
|
25
|
+
_ref$searchIconUrl = _ref.searchIconUrl,
|
|
26
|
+
searchIconUrl = _ref$searchIconUrl === undefined ? null : _ref$searchIconUrl;
|
|
25
27
|
|
|
26
28
|
// Search Term
|
|
27
29
|
var _useState = React.useState(''),
|
|
@@ -105,7 +107,12 @@ var SocialSearchComponent = function SocialSearchComponent(_ref) {
|
|
|
105
107
|
{ style: { padding: '6px' }, inline: true, onSubmit: function onSubmit(e) {
|
|
106
108
|
return submitSearch(e);
|
|
107
109
|
} },
|
|
108
|
-
React__default['default'].createElement(
|
|
110
|
+
searchIconUrl && React__default['default'].createElement(
|
|
111
|
+
'div',
|
|
112
|
+
{ style: { maxWidth: '90px', marginRight: '.5rem' } },
|
|
113
|
+
React__default['default'].createElement('img', { className: 'img-fluid', src: searchIconUrl, alt: 'search icon' })
|
|
114
|
+
),
|
|
115
|
+
React__default['default'].createElement(FormControl__default['default'], { style: { width: '50%', flexGrow: '1' }, placeholder: 'Search', type: 'text', value: searchKey, onChange: function onChange(e) {
|
|
109
116
|
return setSearchKey(e.target.value);
|
|
110
117
|
} }),
|
|
111
118
|
React__default['default'].createElement(
|
|
@@ -152,7 +159,12 @@ var SocialSearchComponent = function SocialSearchComponent(_ref) {
|
|
|
152
159
|
{ inline: true, style: { padding: '6px', width: '100%' }, onSubmit: function onSubmit(e) {
|
|
153
160
|
return submitSearch(e);
|
|
154
161
|
} },
|
|
155
|
-
React__default['default'].createElement(
|
|
162
|
+
searchIconUrl && React__default['default'].createElement(
|
|
163
|
+
'div',
|
|
164
|
+
{ style: { maxWidth: '90px', marginRight: '.5rem' } },
|
|
165
|
+
React__default['default'].createElement('img', { className: 'img-fluid', src: searchIconUrl, alt: 'search icon' })
|
|
166
|
+
),
|
|
167
|
+
React__default['default'].createElement(FormControl__default['default'], { style: { width: '20%', flexGrow: '1' }, placeholder: 'Search', type: 'text', value: searchKey, onChange: function onChange(e) {
|
|
156
168
|
return setSearchKey(e.target.value);
|
|
157
169
|
} }),
|
|
158
170
|
React__default['default'].createElement(
|
|
@@ -57,7 +57,7 @@ require('./iconBase-be4097c0.js');
|
|
|
57
57
|
require('./index.esm-00a6aade.js');
|
|
58
58
|
require('./NavFooter-3dcd99a8.js');
|
|
59
59
|
require('./index.esm-2bb721c8.js');
|
|
60
|
-
require('./SocialSearchComponent-
|
|
60
|
+
require('./SocialSearchComponent-b7faaedc.js');
|
|
61
61
|
require('./SocialIcons.js');
|
|
62
62
|
require('react-bootstrap/Form');
|
|
63
63
|
require('react-bootstrap/FormControl');
|