@mjhls/mjh-framework 1.0.909-export-pub-featured-v1 → 1.0.910-exclude-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 +15 -131
- 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/GridContent.js +2 -2
- package/dist/cjs/GridContentPaginated.js +4 -3
- package/dist/cjs/HamMagazine.js +9 -9
- 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-68ae756e.js → MediaSeriesCard-d46317f0.js} +1 -1
- package/dist/cjs/MediaSeriesLanding.js +20 -12
- package/dist/cjs/MediaSeriesLandingPaginated.js +8 -7
- 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/PartnerDetailListingPaginated.js +2 -1
- package/dist/cjs/{PublicationFeature.js → PublicationFeature-5ccf9b13.js} +1 -8
- 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/VideoSeriesCard.js +1 -1
- package/dist/cjs/View.js +9 -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 +4 -5
- package/dist/esm/AlgoliaSearch.js +16 -132
- 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/GridContent.js +1 -1
- package/dist/esm/GridContentPaginated.js +3 -2
- package/dist/esm/HamMagazine.js +9 -9
- 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-ec988ce9.js → MediaSeriesCard-b1845b19.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +20 -12
- package/dist/esm/MediaSeriesLandingPaginated.js +8 -7
- 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/PartnerDetailListingPaginated.js +2 -1
- package/dist/esm/{PublicationFeature.js → PublicationFeature-d88e76b9.js} +1 -8
- 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/VideoSeriesCard.js +1 -1
- package/dist/esm/View.js +9 -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 +4 -4
- package/package.json +113 -113
- package/dist/cjs/Pagination-42f92f7c.js +0 -97
- package/dist/esm/Pagination-484b86c5.js +0 -90
package/dist/cjs/AuthWrapper.js
CHANGED
|
@@ -1767,7 +1767,7 @@ client$1.Provider;
|
|
|
1767
1767
|
|
|
1768
1768
|
var client = client$1.default;
|
|
1769
1769
|
|
|
1770
|
-
var css = ".AuthWrapper-module_loginBox__3l-BE {\
|
|
1770
|
+
var css = ".AuthWrapper-module_loginBox__3l-BE {\n margin-bottom: 2rem;\n width: 350px;\n max-width: 90vw;\n margin-left: auto;\n margin-right: auto;\n /* box-shadow: 2px 5px 12px rgba(0, 0, 0, 0.15); */\n background: #fff;\n z-index: 1;\n}\n.AuthWrapper-module_loginBox_title__12rGD {\n margin-bottom: 2rem;\n text-align: center;\n}\n.AuthWrapper-module_bar__1dafn {\n background: #eee;\n margin-left: unset;\n margin-right: unset;\n}\n.AuthWrapper-module_bar__1dafn:nth-child(1) {\n float: left;\n border-right: 1rem solid #fff;\n background: rgb(245, 245, 245);\n height: 10rem;\n width: 25%;\n margin-left: auto;\n margin-right: auto;\n margin-bottom: 2rem;\n}\n.AuthWrapper-module_bar__1dafn:nth-child(2n) {\n width: 97%;\n height: 1.5rem;\n margin-bottom: 0.25rem;\n}\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(3n) {\n width: 96%;\n height: 1.5rem;\n margin-bottom: 1.5rem;\n}\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(4n) {\n width: 72%;\n height: 1.5rem;\n margin-bottom: 0.25rem;\n}\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(5n) {\n width: 88%;\n height: 1.5rem;\n margin-bottom: 0.25rem;\n}\n\n.AuthWrapper-module_iframe__2wDJW {\n margin-top: -3rem;\n border: none;\n width: 100%;\n height: 1900px;\n}";
|
|
1771
1771
|
var styles = { "loginBox": "AuthWrapper-module_loginBox__3l-BE", "loginBox_title": "AuthWrapper-module_loginBox_title__12rGD", "bar": "AuthWrapper-module_bar__1dafn", "iframe": "AuthWrapper-module_iframe__2wDJW" };
|
|
1772
1772
|
styleInject_es.styleInject(css);
|
|
1773
1773
|
|
|
@@ -13,21 +13,21 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
13
|
|
|
14
14
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
15
|
|
|
16
|
-
/*
|
|
17
|
-
Example usage - targetedonc.com/latest-conference
|
|
18
|
-
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
19
|
-
...,
|
|
20
|
-
title,
|
|
21
|
-
summary,
|
|
22
|
-
thumbnail,
|
|
23
|
-
url,
|
|
24
|
-
published,
|
|
25
|
-
documentGroup->,
|
|
26
|
-
contentCategory->,
|
|
27
|
-
'pageNumber': ${currentPage}
|
|
28
|
-
}`
|
|
29
|
-
|
|
30
|
-
const posts = await client.fetch(query, params)
|
|
16
|
+
/*
|
|
17
|
+
Example usage - targetedonc.com/latest-conference
|
|
18
|
+
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
19
|
+
...,
|
|
20
|
+
title,
|
|
21
|
+
summary,
|
|
22
|
+
thumbnail,
|
|
23
|
+
url,
|
|
24
|
+
published,
|
|
25
|
+
documentGroup->,
|
|
26
|
+
contentCategory->,
|
|
27
|
+
'pageNumber': ${currentPage}
|
|
28
|
+
}`
|
|
29
|
+
|
|
30
|
+
const posts = await client.fetch(query, params)
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
33
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -17,7 +17,7 @@ var index$1 = require('./index-eadd5035.js');
|
|
|
17
17
|
var main = require('./main-f1c77adb.js');
|
|
18
18
|
var entities = require('./entities-df1aed86.js');
|
|
19
19
|
var ADInfeed = require('./ADInfeed-bce0ba07.js');
|
|
20
|
-
var Pagination = require('./Pagination-
|
|
20
|
+
var Pagination = require('./Pagination-885dcfbd.js');
|
|
21
21
|
var Spinner = require('react-bootstrap/Spinner');
|
|
22
22
|
require('./_commonjsHelpers-06173234.js');
|
|
23
23
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -41,6 +41,7 @@ require('./toNumber-5e1fac58.js');
|
|
|
41
41
|
require('./Beam.js');
|
|
42
42
|
require('./stringify-f7a37a8d.js');
|
|
43
43
|
require('./Segment.js');
|
|
44
|
+
require('react-paginate');
|
|
44
45
|
require('react-bootstrap/Button');
|
|
45
46
|
require('./index.esm-d51c9ac6.js');
|
|
46
47
|
require('./iconBase-be4097c0.js');
|
package/dist/cjs/DeckContent.js
CHANGED
|
@@ -182,14 +182,14 @@ var DeckContent = function (_React$Component) {
|
|
|
182
182
|
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
183
183
|
|
|
184
184
|
// please leave this for later debug purpose : Yong Jun.
|
|
185
|
-
/* console.log('page change reported', {
|
|
186
|
-
currentPage: currentPage,
|
|
187
|
-
pageNumber: pageNumber,
|
|
188
|
-
pathname: pathname,
|
|
189
|
-
path: path,
|
|
190
|
-
newPath: newPath,
|
|
191
|
-
firstPage: pageNumber === 1,
|
|
192
|
-
queryString: queryString
|
|
185
|
+
/* console.log('page change reported', {
|
|
186
|
+
currentPage: currentPage,
|
|
187
|
+
pageNumber: pageNumber,
|
|
188
|
+
pathname: pathname,
|
|
189
|
+
path: path,
|
|
190
|
+
newPath: newPath,
|
|
191
|
+
firstPage: pageNumber === 1,
|
|
192
|
+
queryString: queryString
|
|
193
193
|
}) */
|
|
194
194
|
|
|
195
195
|
if (pageview) {
|
|
@@ -18,7 +18,7 @@ var get = require('./get-5839e5b5.js');
|
|
|
18
18
|
var main = require('./main-f1c77adb.js');
|
|
19
19
|
var urlFor = require('./urlFor.js');
|
|
20
20
|
var entities = require('./entities-df1aed86.js');
|
|
21
|
-
var Pagination = require('./Pagination-
|
|
21
|
+
var Pagination = require('./Pagination-885dcfbd.js');
|
|
22
22
|
require('./_commonjsHelpers-06173234.js');
|
|
23
23
|
require('./core.get-iterator-method-5643aa10.js');
|
|
24
24
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -36,6 +36,7 @@ require('./isSymbol-03abbdf0.js');
|
|
|
36
36
|
require('./eq-5fc26c07.js');
|
|
37
37
|
require('./slicedToArray-067dd3bc.js');
|
|
38
38
|
require('./index-d48b231c.js');
|
|
39
|
+
require('react-paginate');
|
|
39
40
|
require('react-bootstrap/Button');
|
|
40
41
|
require('./index.esm-d51c9ac6.js');
|
|
41
42
|
require('./iconBase-be4097c0.js');
|
package/dist/cjs/EventsDeck.js
CHANGED
|
@@ -256,23 +256,23 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
256
256
|
if (cventAccessToken && cventAccessToken !== 'undefined') {
|
|
257
257
|
setAccessToken(cventAccessToken);
|
|
258
258
|
} else {
|
|
259
|
-
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
260
|
-
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
261
|
-
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
262
|
-
fetch(url, {
|
|
263
|
-
headers: {
|
|
264
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
265
|
-
Authorization: `Basic ${encodedData}`
|
|
266
|
-
},
|
|
267
|
-
method: 'POST',
|
|
268
|
-
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
269
|
-
})
|
|
270
|
-
.then((response) => response.json())
|
|
271
|
-
.then((json) => {
|
|
272
|
-
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
273
|
-
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
274
|
-
setAccessToken(json.access_token)
|
|
275
|
-
})
|
|
259
|
+
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
260
|
+
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
261
|
+
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
262
|
+
fetch(url, {
|
|
263
|
+
headers: {
|
|
264
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
265
|
+
Authorization: `Basic ${encodedData}`
|
|
266
|
+
},
|
|
267
|
+
method: 'POST',
|
|
268
|
+
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
269
|
+
})
|
|
270
|
+
.then((response) => response.json())
|
|
271
|
+
.then((json) => {
|
|
272
|
+
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
273
|
+
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
274
|
+
setAccessToken(json.access_token)
|
|
275
|
+
})
|
|
276
276
|
.catch((e) => console.log(e))*/
|
|
277
277
|
// hello
|
|
278
278
|
var url = 'https://beam.mjhlifesciences.com/api/cvent/token';
|
package/dist/cjs/GridContent.js
CHANGED
|
@@ -25,7 +25,7 @@ var urlFor = require('./urlFor.js');
|
|
|
25
25
|
var main = require('./main-f1c77adb.js');
|
|
26
26
|
require('./AD.js');
|
|
27
27
|
var AuthorComponent = require('./AuthorComponent-39b37d84.js');
|
|
28
|
-
var PublicationFeature = require('./PublicationFeature.js');
|
|
28
|
+
var PublicationFeature = require('./PublicationFeature-5ccf9b13.js');
|
|
29
29
|
require('./_commonjsHelpers-06173234.js');
|
|
30
30
|
require('./core.get-iterator-method-5643aa10.js');
|
|
31
31
|
require('./_iter-detect-b1df62f0.js');
|
|
@@ -625,7 +625,7 @@ var GridContent = function (_React$Component) {
|
|
|
625
625
|
return React__default['default'].createElement(ADlgInfeed.ADlgInfeed, _extends._extends({ index: index }, row));
|
|
626
626
|
} else if (row._type === 'brandInsightAd' && row.adUnit) {
|
|
627
627
|
return React__default['default'].createElement(ADInfeed.ADInfeed, { index: index, infeedAd: row });
|
|
628
|
-
} else if (row._type === 'publication') return React__default['default'].createElement(PublicationFeature, { data: row, defaultImage: _this2.defaultImage, issueMapping: _this2.props.issueMapping, client: _this2.client });
|
|
628
|
+
} else if (row._type === 'publication') return React__default['default'].createElement(PublicationFeature.PublicationFeature, { data: row, defaultImage: _this2.defaultImage, issueMapping: _this2.props.issueMapping, client: _this2.client });
|
|
629
629
|
if (index + 1 > heroContent + featureCount && (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type))) {
|
|
630
630
|
return React__default['default'].createElement(
|
|
631
631
|
React__default['default'].Fragment,
|
|
@@ -23,8 +23,8 @@ var get = require('./get-5839e5b5.js');
|
|
|
23
23
|
var urlFor = require('./urlFor.js');
|
|
24
24
|
var main = require('./main-f1c77adb.js');
|
|
25
25
|
var AuthorComponent = require('./AuthorComponent-39b37d84.js');
|
|
26
|
-
var PublicationFeature = require('./PublicationFeature.js');
|
|
27
|
-
var Pagination = require('./Pagination-
|
|
26
|
+
var PublicationFeature = require('./PublicationFeature-5ccf9b13.js');
|
|
27
|
+
var Pagination = require('./Pagination-885dcfbd.js');
|
|
28
28
|
var Spinner = require('react-bootstrap/Spinner');
|
|
29
29
|
require('./_commonjsHelpers-06173234.js');
|
|
30
30
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -49,6 +49,7 @@ require('./Segment.js');
|
|
|
49
49
|
require('./eq-5fc26c07.js');
|
|
50
50
|
require('./index-d48b231c.js');
|
|
51
51
|
require('react-bootstrap/Button');
|
|
52
|
+
require('react-paginate');
|
|
52
53
|
require('./index.esm-d51c9ac6.js');
|
|
53
54
|
require('./iconBase-be4097c0.js');
|
|
54
55
|
|
|
@@ -542,7 +543,7 @@ var GridContent = function (_React$Component) {
|
|
|
542
543
|
return React__default['default'].createElement(ADlgInfeed.ADlgInfeed, _extends._extends({ index: index }, row));
|
|
543
544
|
} else if (row._type === 'brandInsightAd' && row.adUnit) {
|
|
544
545
|
return React__default['default'].createElement(ADInfeed.ADInfeed, { index: index, infeedAd: row });
|
|
545
|
-
} else if (row._type === 'publication') return React__default['default'].createElement(PublicationFeature, { data: row, defaultImage: _this3.defaultImage, issueMapping: _this3.props.issueMapping, client: _this3.client });
|
|
546
|
+
} else if (row._type === 'publication') return React__default['default'].createElement(PublicationFeature.PublicationFeature, { data: row, defaultImage: _this3.defaultImage, issueMapping: _this3.props.issueMapping, client: _this3.client });
|
|
546
547
|
if (index + 1 > heroContent + featureCount && (!row._type || !['lg-infeed', 'brandInsightAd'].includes(row._type))) {
|
|
547
548
|
return React__default['default'].createElement(
|
|
548
549
|
React__default['default'].Fragment,
|
package/dist/cjs/HamMagazine.js
CHANGED
|
@@ -38,15 +38,15 @@ var Navbar__default = /*#__PURE__*/_interopDefaultLegacy(Navbar);
|
|
|
38
38
|
var NavDropdown__default = /*#__PURE__*/_interopDefaultLegacy(NavDropdown);
|
|
39
39
|
|
|
40
40
|
var HamMagazine = function HamMagazine(props) {
|
|
41
|
-
/*
|
|
42
|
-
Example Nav with acceptable props
|
|
43
|
-
<MagazineNav
|
|
44
|
-
showLogin
|
|
45
|
-
logo={props.settings.logo}
|
|
46
|
-
dataObject={props.cache.mainNavCache}
|
|
47
|
-
website={website}
|
|
48
|
-
subNav={props.cache.subNavCache}
|
|
49
|
-
/>
|
|
41
|
+
/*
|
|
42
|
+
Example Nav with acceptable props
|
|
43
|
+
<MagazineNav
|
|
44
|
+
showLogin
|
|
45
|
+
logo={props.settings.logo}
|
|
46
|
+
dataObject={props.cache.mainNavCache}
|
|
47
|
+
website={website}
|
|
48
|
+
subNav={props.cache.subNavCache}
|
|
49
|
+
/>
|
|
50
50
|
*/
|
|
51
51
|
|
|
52
52
|
// Setting 'socialIconVariant' as 'light' as default to make the social icons and search icon black
|
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-885dcfbd.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
|
require('react-bootstrap/Button');
|
|
39
40
|
require('./index.esm-d51c9ac6.js');
|
|
40
41
|
require('./iconBase-be4097c0.js');
|
|
@@ -115,14 +116,14 @@ var MasterDeck = function (_React$Component) {
|
|
|
115
116
|
}
|
|
116
117
|
|
|
117
118
|
// please leave this for later debug purpose : Yong Jun.
|
|
118
|
-
/* console.log('page change reported', {
|
|
119
|
-
currentPage: currentPage,
|
|
120
|
-
pageNumber: pageNumber,
|
|
121
|
-
pathname: pathname,
|
|
122
|
-
path: path,
|
|
123
|
-
newPath: newPath,
|
|
124
|
-
firstPage: pageNumber === 1,
|
|
125
|
-
queryString: queryString
|
|
119
|
+
/* console.log('page change reported', {
|
|
120
|
+
currentPage: currentPage,
|
|
121
|
+
pageNumber: pageNumber,
|
|
122
|
+
pathname: pathname,
|
|
123
|
+
path: path,
|
|
124
|
+
newPath: newPath,
|
|
125
|
+
firstPage: pageNumber === 1,
|
|
126
|
+
queryString: queryString
|
|
126
127
|
}) */
|
|
127
128
|
|
|
128
129
|
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
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var defineProperty = require('./defineProperty-9673846a.js');
|
|
4
3
|
var asyncToGenerator = require('./asyncToGenerator-77821af0.js');
|
|
5
4
|
var _typeof = require('./typeof-567e31ff.js');
|
|
6
5
|
var _extends = require('./extends-7c86182f.js');
|
|
7
6
|
var slicedToArray = require('./slicedToArray-067dd3bc.js');
|
|
8
7
|
var React = require('react');
|
|
9
|
-
var MediaSeriesCard = require('./MediaSeriesCard-
|
|
8
|
+
var MediaSeriesCard = require('./MediaSeriesCard-d46317f0.js');
|
|
10
9
|
require('./index-50be6759.js');
|
|
11
10
|
require('react-dom');
|
|
12
11
|
var Link = require('next/link');
|
|
@@ -14,7 +13,6 @@ var MasterDeck = require('./MasterDeck.js');
|
|
|
14
13
|
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
15
14
|
var getSerializers = require('./index-5ce5e821.js');
|
|
16
15
|
require('./_commonjsHelpers-06173234.js');
|
|
17
|
-
require('./define-property-e8404b64.js');
|
|
18
16
|
require('./core.get-iterator-method-5643aa10.js');
|
|
19
17
|
require('./web.dom.iterable-d98303e0.js');
|
|
20
18
|
require('./_library-dd23b178.js');
|
|
@@ -30,6 +28,7 @@ require('./style-inject.es-dcee06b6.js');
|
|
|
30
28
|
require('./toConsumableArray-d7797c2b.js');
|
|
31
29
|
require('./inherits-de66ea16.js');
|
|
32
30
|
require('./_object-sap-d1978572.js');
|
|
31
|
+
require('./define-property-e8404b64.js');
|
|
33
32
|
require('./index-fc2f1ca2.js');
|
|
34
33
|
require('./events-1b438fe7.js');
|
|
35
34
|
require('react-bootstrap/Container');
|
|
@@ -97,11 +96,11 @@ var Filter = function Filter(_ref) {
|
|
|
97
96
|
_useState6 = slicedToArray._slicedToArray(_useState5, 2),
|
|
98
97
|
grandChildData = _useState6[0],
|
|
99
98
|
setGrandChildData = _useState6[1];
|
|
100
|
-
/*
|
|
101
|
-
{parent: showAll,
|
|
102
|
-
chidlren: show selected from parent,
|
|
103
|
-
grandchildren: show selected from children
|
|
104
|
-
}
|
|
99
|
+
/*
|
|
100
|
+
{parent: showAll,
|
|
101
|
+
chidlren: show selected from parent,
|
|
102
|
+
grandchildren: show selected from children
|
|
103
|
+
}
|
|
105
104
|
*/
|
|
106
105
|
|
|
107
106
|
|
|
@@ -296,7 +295,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
296
295
|
filterQuery = filterTopicID !== 'all' ? ' && references(\'' + filterTopicID + '\')' : '';
|
|
297
296
|
}
|
|
298
297
|
|
|
299
|
-
seriesQuery = '*[_type == \'documentGroup\' && references(\'' + docGroupID + '\') ' + filterQuery + ' && isSeries != false && isShow != false && defined(published) && dateTime(published) <= dateTime(now())] | order(published desc) [$from...$to] {\n _id,\n name,\n identifier,\n published,\n thumbnail,\n description,\n topicMapping[]->,\n \'pageNumber\': ' + currentPage + ',\n \'parentUrl\': \'' + parentUrl + '\'\n }';
|
|
298
|
+
seriesQuery = '*[_type == \'documentGroup\' && references(\'' + docGroupID + '\') ' + filterQuery + ' && isSeries != false && isShow != false && defined(published) && dateTime(published) <= dateTime(now())] | order(published desc) [$from...$to] {\n _id,\n name,\n identifier,\n published,\n thumbnail{..., asset-> },\n description,\n topicMapping[]->,\n \'pageNumber\': ' + currentPage + ',\n \'parentUrl\': \'' + parentUrl + '\'\n }';
|
|
300
299
|
_context.next = 6;
|
|
301
300
|
return client.fetch(seriesQuery, newParams);
|
|
302
301
|
|
|
@@ -379,8 +378,6 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
379
378
|
|
|
380
379
|
MediaSeriesLanding.getInitialData = function () {
|
|
381
380
|
var _ref3 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee2(ctx, client, cache) {
|
|
382
|
-
var _ref4;
|
|
383
|
-
|
|
384
381
|
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
385
382
|
return asyncToGenerator.regenerator.wrap(function _callee2$(_context2) {
|
|
386
383
|
while (1) {
|
|
@@ -465,7 +462,18 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
465
462
|
statusCode = 404;
|
|
466
463
|
}
|
|
467
464
|
|
|
468
|
-
return _context2.abrupt('return',
|
|
465
|
+
return _context2.abrupt('return', {
|
|
466
|
+
seriesData: seriesData,
|
|
467
|
+
query: seriesQuery,
|
|
468
|
+
params: params,
|
|
469
|
+
currentPage: currentPage,
|
|
470
|
+
taxonomyFilter: taxonomyFilter,
|
|
471
|
+
identifier: identifier,
|
|
472
|
+
docGroupID: docGroupID._id,
|
|
473
|
+
parentUrl: identifier,
|
|
474
|
+
statusCode: statusCode,
|
|
475
|
+
docGroup: docGroupID
|
|
476
|
+
});
|
|
469
477
|
|
|
470
478
|
case 25:
|
|
471
479
|
case 'end':
|
|
@@ -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-d46317f0.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-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');
|
|
@@ -97,11 +98,11 @@ var Filter = function Filter(_ref) {
|
|
|
97
98
|
_useState6 = slicedToArray._slicedToArray(_useState5, 2),
|
|
98
99
|
grandChildData = _useState6[0],
|
|
99
100
|
setGrandChildData = _useState6[1];
|
|
100
|
-
/*
|
|
101
|
-
{parent: showAll,
|
|
102
|
-
chidlren: show selected from parent,
|
|
103
|
-
grandchildren: show selected from children
|
|
104
|
-
}
|
|
101
|
+
/*
|
|
102
|
+
{parent: showAll,
|
|
103
|
+
chidlren: show selected from parent,
|
|
104
|
+
grandchildren: show selected from children
|
|
105
|
+
}
|
|
105
106
|
*/
|
|
106
107
|
|
|
107
108
|
|
package/dist/cjs/NavMagazine.js
CHANGED
|
@@ -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,
|