@mjhls/mjh-framework 1.0.907 → 1.0.908-mediaseries-file-v1
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 +140 -18
- package/dist/cjs/AuthWrapper.js +1 -1
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/ContentCardPaginated.js +1 -2
- package/dist/cjs/DeckContent.js +8 -8
- package/dist/cjs/DeckQueuePaginated.js +1 -2
- package/dist/cjs/EventsDeck.js +17 -17
- package/dist/cjs/Feature.js +16 -6
- package/dist/cjs/GridContentPaginated.js +1 -2
- 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 +9 -10
- package/dist/cjs/{MediaSeriesCard-d46317f0.js → MediaSeriesCard-68ae756e.js} +1 -1
- package/dist/cjs/MediaSeriesLanding.js +20 -12
- package/dist/cjs/MediaSeriesLandingPaginated.js +7 -8
- package/dist/cjs/NavMagazine.js +10 -10
- package/dist/cjs/NavNative.js +9 -9
- package/dist/cjs/Pagination-42f92f7c.js +97 -0
- package/dist/cjs/PartnerDetailListingPaginated.js +1 -2
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpandedPaginated.js +1 -2
- 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-ba0c5d1a.js → SeriesSlider-de93a303.js} +4 -4
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/View.js +3 -3
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/{getTargeting-9d509319.js → getTargeting-6d59cc5b.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/esm/AlgoliaSearch.js +141 -19
- package/dist/esm/AuthWrapper.js +1 -1
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/ContentCardPaginated.js +1 -2
- package/dist/esm/DeckContent.js +8 -8
- package/dist/esm/DeckQueuePaginated.js +1 -2
- package/dist/esm/EventsDeck.js +17 -17
- package/dist/esm/Feature.js +16 -6
- package/dist/esm/GridContentPaginated.js +1 -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 +9 -10
- package/dist/esm/{MediaSeriesCard-b1845b19.js → MediaSeriesCard-ec988ce9.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +20 -12
- package/dist/esm/MediaSeriesLandingPaginated.js +7 -8
- package/dist/esm/NavMagazine.js +10 -10
- package/dist/esm/NavNative.js +9 -9
- package/dist/esm/Pagination-484b86c5.js +90 -0
- package/dist/esm/PartnerDetailListingPaginated.js +1 -2
- package/dist/esm/PublicationLanding.js +26 -26
- package/dist/esm/QueueDeckExpandedPaginated.js +1 -2
- 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-45adb8dc.js → SeriesSlider-98ad6d97.js} +4 -4
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/View.js +3 -3
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/{getTargeting-4061f839.js → getTargeting-36031a00.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/index.js +2 -2
- package/package.json +113 -112
- package/dist/cjs/Pagination-885dcfbd.js +0 -90
- package/dist/esm/Pagination-59436882.js +0 -82
package/dist/esm/DeckContent.js
CHANGED
|
@@ -172,14 +172,14 @@ var DeckContent = function (_React$Component) {
|
|
|
172
172
|
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
173
173
|
|
|
174
174
|
// please leave this for later debug purpose : Yong Jun.
|
|
175
|
-
/* console.log('page change reported', {
|
|
176
|
-
currentPage: currentPage,
|
|
177
|
-
pageNumber: pageNumber,
|
|
178
|
-
pathname: pathname,
|
|
179
|
-
path: path,
|
|
180
|
-
newPath: newPath,
|
|
181
|
-
firstPage: pageNumber === 1,
|
|
182
|
-
queryString: queryString
|
|
175
|
+
/* console.log('page change reported', {
|
|
176
|
+
currentPage: currentPage,
|
|
177
|
+
pageNumber: pageNumber,
|
|
178
|
+
pathname: pathname,
|
|
179
|
+
path: path,
|
|
180
|
+
newPath: newPath,
|
|
181
|
+
firstPage: pageNumber === 1,
|
|
182
|
+
queryString: queryString
|
|
183
183
|
}) */
|
|
184
184
|
|
|
185
185
|
if (pageview) {
|
|
@@ -16,7 +16,7 @@ import { g as get_1 } from './get-3c308da4.js';
|
|
|
16
16
|
import { m as main_43 } from './main-1894c974.js';
|
|
17
17
|
import urlFor from './urlFor.js';
|
|
18
18
|
import { c as clean_html_1 } from './entities-6d9154b4.js';
|
|
19
|
-
import { P as Pagination } from './Pagination-
|
|
19
|
+
import { P as Pagination } from './Pagination-484b86c5.js';
|
|
20
20
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
21
21
|
import './core.get-iterator-method-ea258bb1.js';
|
|
22
22
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -34,7 +34,6 @@ import './isSymbol-a7e9aafe.js';
|
|
|
34
34
|
import './eq-bdcbf886.js';
|
|
35
35
|
import './slicedToArray-6ebcbfea.js';
|
|
36
36
|
import './index-3f5c03b2.js';
|
|
37
|
-
import 'react-paginate';
|
|
38
37
|
import 'react-bootstrap/Button';
|
|
39
38
|
import './index.esm-1bd8a0a8.js';
|
|
40
39
|
import './iconBase-ccc56b97.js';
|
package/dist/esm/EventsDeck.js
CHANGED
|
@@ -243,23 +243,23 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
243
243
|
if (cventAccessToken && cventAccessToken !== 'undefined') {
|
|
244
244
|
setAccessToken(cventAccessToken);
|
|
245
245
|
} else {
|
|
246
|
-
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
247
|
-
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
248
|
-
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
249
|
-
fetch(url, {
|
|
250
|
-
headers: {
|
|
251
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
252
|
-
Authorization: `Basic ${encodedData}`
|
|
253
|
-
},
|
|
254
|
-
method: 'POST',
|
|
255
|
-
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
256
|
-
})
|
|
257
|
-
.then((response) => response.json())
|
|
258
|
-
.then((json) => {
|
|
259
|
-
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
260
|
-
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
261
|
-
setAccessToken(json.access_token)
|
|
262
|
-
})
|
|
246
|
+
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
247
|
+
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
248
|
+
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
249
|
+
fetch(url, {
|
|
250
|
+
headers: {
|
|
251
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
252
|
+
Authorization: `Basic ${encodedData}`
|
|
253
|
+
},
|
|
254
|
+
method: 'POST',
|
|
255
|
+
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
256
|
+
})
|
|
257
|
+
.then((response) => response.json())
|
|
258
|
+
.then((json) => {
|
|
259
|
+
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
260
|
+
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
261
|
+
setAccessToken(json.access_token)
|
|
262
|
+
})
|
|
263
263
|
.catch((e) => console.log(e))*/
|
|
264
264
|
// hello
|
|
265
265
|
var url = 'https://beam.mjhlifesciences.com/api/cvent/token';
|
package/dist/esm/Feature.js
CHANGED
|
@@ -32,7 +32,7 @@ var Feature = function Feature(props) {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
//image width updated.
|
|
35
|
-
var imageWidth =
|
|
35
|
+
var imageWidth = 900;
|
|
36
36
|
if (main_43) {
|
|
37
37
|
imageWidth = 225;
|
|
38
38
|
}
|
|
@@ -45,12 +45,12 @@ var Feature = function Feature(props) {
|
|
|
45
45
|
React__default.createElement(
|
|
46
46
|
'a',
|
|
47
47
|
{ href: feature_link, target: '_blank' },
|
|
48
|
-
React__default.createElement(
|
|
48
|
+
!!feature_title && React__default.createElement(
|
|
49
49
|
'h3',
|
|
50
50
|
{ style: { color: 'white' } },
|
|
51
51
|
feature_title
|
|
52
52
|
),
|
|
53
|
-
React__default.createElement(
|
|
53
|
+
!!feature_body && React__default.createElement(
|
|
54
54
|
'p',
|
|
55
55
|
{ style: { color: '#eee' } },
|
|
56
56
|
feature_body
|
|
@@ -62,12 +62,12 @@ var Feature = function Feature(props) {
|
|
|
62
62
|
return React__default.createElement(
|
|
63
63
|
'a',
|
|
64
64
|
{ href: feature_link },
|
|
65
|
-
React__default.createElement(
|
|
65
|
+
!!feature_title && React__default.createElement(
|
|
66
66
|
'h3',
|
|
67
67
|
{ style: { color: 'white' } },
|
|
68
68
|
feature_title
|
|
69
69
|
),
|
|
70
|
-
React__default.createElement(
|
|
70
|
+
!!feature_body && React__default.createElement(
|
|
71
71
|
'p',
|
|
72
72
|
{ style: { color: '#eee' } },
|
|
73
73
|
feature_body
|
|
@@ -75,6 +75,14 @@ var Feature = function Feature(props) {
|
|
|
75
75
|
);
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
+
var openLink = function openLink(feature_link) {
|
|
79
|
+
if (checkUrlIsExternal(feature_link)) {
|
|
80
|
+
window.open(feature_link, '_blank');
|
|
81
|
+
} else {
|
|
82
|
+
window.open(feature_link);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
|
|
78
86
|
return React__default.createElement(
|
|
79
87
|
'div',
|
|
80
88
|
null,
|
|
@@ -90,7 +98,9 @@ var Feature = function Feature(props) {
|
|
|
90
98
|
|
|
91
99
|
return React__default.createElement(
|
|
92
100
|
Carousel.Item,
|
|
93
|
-
{ key: index, style: { background: 'var(--primary)' }
|
|
101
|
+
{ key: index, style: { background: 'var(--primary)' }, onClick: function onClick() {
|
|
102
|
+
return openLink(feature_link);
|
|
103
|
+
} },
|
|
94
104
|
React__default.createElement('img', {
|
|
95
105
|
style: { maxHeight: '375px', minHeight: '300px', objectFit: 'cover', paddingLeft: '50%' },
|
|
96
106
|
className: 'd-block w-100',
|
|
@@ -22,7 +22,7 @@ import urlFor from './urlFor.js';
|
|
|
22
22
|
import { m as main_43 } from './main-1894c974.js';
|
|
23
23
|
import { A as AuthorComponent } from './AuthorComponent-11adff02.js';
|
|
24
24
|
import { P as PublicationFeature } from './PublicationFeature-d88e76b9.js';
|
|
25
|
-
import { P as Pagination } from './Pagination-
|
|
25
|
+
import { P as Pagination } from './Pagination-484b86c5.js';
|
|
26
26
|
import Spinner from 'react-bootstrap/Spinner';
|
|
27
27
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
28
28
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -47,7 +47,6 @@ import './Segment.js';
|
|
|
47
47
|
import './eq-bdcbf886.js';
|
|
48
48
|
import './index-3f5c03b2.js';
|
|
49
49
|
import 'react-bootstrap/Button';
|
|
50
|
-
import 'react-paginate';
|
|
51
50
|
import './index.esm-1bd8a0a8.js';
|
|
52
51
|
import './iconBase-ccc56b97.js';
|
|
53
52
|
|
package/dist/esm/HamMagazine.js
CHANGED
|
@@ -26,15 +26,15 @@ import './_library-528f1934.js';
|
|
|
26
26
|
import './_iter-detect-98db3b07.js';
|
|
27
27
|
|
|
28
28
|
var HamMagazine = function HamMagazine(props) {
|
|
29
|
-
/*
|
|
30
|
-
Example Nav with acceptable props
|
|
31
|
-
<MagazineNav
|
|
32
|
-
showLogin
|
|
33
|
-
logo={props.settings.logo}
|
|
34
|
-
dataObject={props.cache.mainNavCache}
|
|
35
|
-
website={website}
|
|
36
|
-
subNav={props.cache.subNavCache}
|
|
37
|
-
/>
|
|
29
|
+
/*
|
|
30
|
+
Example Nav with acceptable props
|
|
31
|
+
<MagazineNav
|
|
32
|
+
showLogin
|
|
33
|
+
logo={props.settings.logo}
|
|
34
|
+
dataObject={props.cache.mainNavCache}
|
|
35
|
+
website={website}
|
|
36
|
+
subNav={props.cache.subNavCache}
|
|
37
|
+
/>
|
|
38
38
|
*/
|
|
39
39
|
|
|
40
40
|
// Setting 'socialIconVariant' as 'light' as default to make the social icons and search icon black
|
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -67,35 +67,35 @@ import 'react-bootstrap/OverlayTrigger';
|
|
|
67
67
|
import 'react-bootstrap/Tooltip';
|
|
68
68
|
import 'react-bootstrap/Popover';
|
|
69
69
|
|
|
70
|
-
/* usage
|
|
71
|
-
import Settings, { Ads } from '../../../../settings'
|
|
72
|
-
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
73
|
-
import client from '../../../../client'
|
|
74
|
-
import moment from 'moment'
|
|
75
|
-
import Shell from '../../../../components/2.0/Shell'
|
|
76
|
-
import { pageview } from '../../../../utilities/gtag'
|
|
77
|
-
|
|
78
|
-
const Issue = (props) => {
|
|
79
|
-
const { pubIssue, cache } = props
|
|
80
|
-
const targeting = {
|
|
81
|
-
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
82
|
-
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
83
|
-
}
|
|
84
|
-
return (
|
|
85
|
-
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
86
|
-
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
87
|
-
</Shell>
|
|
88
|
-
)
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
Issue.getInitialProps = async (ctx) => {
|
|
92
|
-
const { query } = ctx
|
|
93
|
-
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
94
|
-
)
|
|
95
|
-
return { pubIssue }
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export default Issue
|
|
70
|
+
/* usage
|
|
71
|
+
import Settings, { Ads } from '../../../../settings'
|
|
72
|
+
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
73
|
+
import client from '../../../../client'
|
|
74
|
+
import moment from 'moment'
|
|
75
|
+
import Shell from '../../../../components/2.0/Shell'
|
|
76
|
+
import { pageview } from '../../../../utilities/gtag'
|
|
77
|
+
|
|
78
|
+
const Issue = (props) => {
|
|
79
|
+
const { pubIssue, cache } = props
|
|
80
|
+
const targeting = {
|
|
81
|
+
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
82
|
+
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
83
|
+
}
|
|
84
|
+
return (
|
|
85
|
+
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
86
|
+
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
87
|
+
</Shell>
|
|
88
|
+
)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
Issue.getInitialProps = async (ctx) => {
|
|
92
|
+
const { query } = ctx
|
|
93
|
+
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
94
|
+
)
|
|
95
|
+
return { pubIssue }
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export default Issue
|
|
99
99
|
*/
|
|
100
100
|
|
|
101
101
|
var IssueLanding = function IssueLanding(props) {
|
package/dist/esm/KMTracker.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
var KMTracker = function KMTracker(props) {
|
|
2
|
-
|
|
2
|
+
var id = props.id;
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
if (document && id) {
|
|
5
5
|
(function () {
|
|
6
|
-
|
|
6
|
+
var ecnJquery = document.createElement('script');
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
ecnJquery.type = 'text/javascript';
|
|
9
|
+
ecnJquery.async = true;
|
|
10
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
var ecnScript = document.createElement('script');
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
ecnScript.type = 'text/javascript';
|
|
15
|
+
ecnScript.async = true;
|
|
16
|
+
ecnScript.id = 'km-tracker';
|
|
17
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
document.head.appendChild(ecnJquery);
|
|
20
|
+
document.head.appendChild(ecnScript);
|
|
21
|
+
})();
|
|
22
|
+
}
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
export default KMTracker;
|
package/dist/esm/MasterDeck.js
CHANGED
|
@@ -223,14 +223,14 @@ var MasterDeck = function (_React$Component) {
|
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
// please leave this for later debug purpose : Yong Jun.
|
|
226
|
-
/* console.log('page change reported', {
|
|
227
|
-
currentPage: currentPage,
|
|
228
|
-
pageNumber: pageNumber,
|
|
229
|
-
pathname: pathname,
|
|
230
|
-
path: path,
|
|
231
|
-
newPath: newPath,
|
|
232
|
-
firstPage: pageNumber === 1,
|
|
233
|
-
queryString: queryString
|
|
226
|
+
/* console.log('page change reported', {
|
|
227
|
+
currentPage: currentPage,
|
|
228
|
+
pageNumber: pageNumber,
|
|
229
|
+
pathname: pathname,
|
|
230
|
+
path: path,
|
|
231
|
+
newPath: newPath,
|
|
232
|
+
firstPage: pageNumber === 1,
|
|
233
|
+
queryString: queryString
|
|
234
234
|
}) */
|
|
235
235
|
|
|
236
236
|
if (pageview) {
|
|
@@ -12,7 +12,7 @@ import { l as lodash } from './lodash-f97fd99a.js';
|
|
|
12
12
|
import { m as main_43 } from './main-1894c974.js';
|
|
13
13
|
import { A as ADlgInfeed } from './ADlgInfeed-013e1f4a.js';
|
|
14
14
|
import { A as ADInfeed } from './ADInfeed-0a55cd2d.js';
|
|
15
|
-
import { P as Pagination } from './Pagination-
|
|
15
|
+
import { P as Pagination } from './Pagination-484b86c5.js';
|
|
16
16
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
17
17
|
import './core.get-iterator-method-ea258bb1.js';
|
|
18
18
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -33,7 +33,6 @@ import './isSymbol-a7e9aafe.js';
|
|
|
33
33
|
import './toNumber-5aeba6e7.js';
|
|
34
34
|
import './Beam.js';
|
|
35
35
|
import './Segment.js';
|
|
36
|
-
import 'react-paginate';
|
|
37
36
|
import 'react-bootstrap/Button';
|
|
38
37
|
import './index.esm-1bd8a0a8.js';
|
|
39
38
|
import './iconBase-ccc56b97.js';
|
|
@@ -108,14 +107,14 @@ var MasterDeck = function (_React$Component) {
|
|
|
108
107
|
}
|
|
109
108
|
|
|
110
109
|
// please leave this for later debug purpose : Yong Jun.
|
|
111
|
-
/* console.log('page change reported', {
|
|
112
|
-
currentPage: currentPage,
|
|
113
|
-
pageNumber: pageNumber,
|
|
114
|
-
pathname: pathname,
|
|
115
|
-
path: path,
|
|
116
|
-
newPath: newPath,
|
|
117
|
-
firstPage: pageNumber === 1,
|
|
118
|
-
queryString: queryString
|
|
110
|
+
/* console.log('page change reported', {
|
|
111
|
+
currentPage: currentPage,
|
|
112
|
+
pageNumber: pageNumber,
|
|
113
|
+
pathname: pathname,
|
|
114
|
+
path: path,
|
|
115
|
+
newPath: newPath,
|
|
116
|
+
firstPage: pageNumber === 1,
|
|
117
|
+
queryString: queryString
|
|
119
118
|
}) */
|
|
120
119
|
|
|
121
120
|
if (pageview) {
|
|
@@ -9427,7 +9427,7 @@ var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
|
9427
9427
|
Tooltip.defaultProps = defaultProps;
|
|
9428
9428
|
Tooltip.displayName = 'Tooltip';
|
|
9429
9429
|
|
|
9430
|
-
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";
|
|
9430
|
+
var css = ".MediaSeriesCard-module_article__SAFYK {\r\n width: 100%;\r\n margin: 0 0 1rem 0;\r\n}\r\n.MediaSeriesCard-module_article__SAFYK a {\r\n display: flex;\r\n width: 100%;\r\n color: #000000;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU {\r\n width: 25%;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU img {\r\n width: 100%;\r\n height: auto;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o {\r\n width: 75%;\r\n font-size: 1rem;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o h2 {\r\n font-weight: bold;\r\n font-size: 1.25rem;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_published__E4oiz {\r\n color: #6d6d6d;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_summary__1xanh {\r\n margin: 0.5rem 0 0 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR {\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR span {\r\n color: #6d6d6d;\r\n}\r\n.MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1.3rem;\r\n font-weight: bold;\r\n}\r\n@media only screen and (max-width: 568px) {\r\n .MediaSeriesCard-module_article__SAFYK {\r\n margin: 1rem 0;\r\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\r\n }\r\n .MediaSeriesCard-module_article__SAFYK a {\r\n flex-direction: column;\r\n align-items: center;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU {\r\n overflow: hidden;\r\n width: 100%;\r\n margin-bottom: 1rem;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU img{\r\n border-radius: 10px 10px 0 0; \r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU figure {\r\n margin: 0;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o {\r\n width: 90%;\r\n padding: 0rem !important;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o h2 {\r\n font-size: 1rem;\r\n }\r\n .MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1rem;\r\n \r\n }\r\n}\r\n";
|
|
9431
9431
|
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" };
|
|
9432
9432
|
styleInject(css);
|
|
9433
9433
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './defineProperty-8c30428f.js';
|
|
2
1
|
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-5ef104a7.js';
|
|
3
2
|
import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
4
3
|
import { _ as _extends } from './extends-6d8e3924.js';
|
|
5
4
|
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
6
5
|
import React__default, { useState, useEffect } from 'react';
|
|
7
|
-
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-
|
|
6
|
+
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-ec988ce9.js';
|
|
8
7
|
import './index-98ca9cec.js';
|
|
9
8
|
import 'react-dom';
|
|
10
9
|
import Link from 'next/link';
|
|
@@ -12,7 +11,6 @@ import MasterDeck from './MasterDeck.js';
|
|
|
12
11
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
13
12
|
import { g as getSerializers } from './index-490f4f21.js';
|
|
14
13
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
15
|
-
import './define-property-5f1bda73.js';
|
|
16
14
|
import './core.get-iterator-method-ea258bb1.js';
|
|
17
15
|
import './web.dom.iterable-ab4dea5c.js';
|
|
18
16
|
import './_library-528f1934.js';
|
|
@@ -28,6 +26,7 @@ import './style-inject.es-1f59c1d0.js';
|
|
|
28
26
|
import './toConsumableArray-f7074d7c.js';
|
|
29
27
|
import './inherits-a6ba2ec4.js';
|
|
30
28
|
import './_object-sap-7cee6f84.js';
|
|
29
|
+
import './define-property-5f1bda73.js';
|
|
31
30
|
import './index-f0fc23eb.js';
|
|
32
31
|
import './events-6c3a7a63.js';
|
|
33
32
|
import 'react-bootstrap/Container';
|
|
@@ -90,11 +89,11 @@ var Filter = function Filter(_ref) {
|
|
|
90
89
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
91
90
|
grandChildData = _useState6[0],
|
|
92
91
|
setGrandChildData = _useState6[1];
|
|
93
|
-
/*
|
|
94
|
-
{parent: showAll,
|
|
95
|
-
chidlren: show selected from parent,
|
|
96
|
-
grandchildren: show selected from children
|
|
97
|
-
}
|
|
92
|
+
/*
|
|
93
|
+
{parent: showAll,
|
|
94
|
+
chidlren: show selected from parent,
|
|
95
|
+
grandchildren: show selected from children
|
|
96
|
+
}
|
|
98
97
|
*/
|
|
99
98
|
|
|
100
99
|
|
|
@@ -289,7 +288,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
289
288
|
filterQuery = filterTopicID !== 'all' ? ' && references(\'' + filterTopicID + '\')' : '';
|
|
290
289
|
}
|
|
291
290
|
|
|
292
|
-
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 }';
|
|
291
|
+
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 }';
|
|
293
292
|
_context.next = 6;
|
|
294
293
|
return client.fetch(seriesQuery, newParams);
|
|
295
294
|
|
|
@@ -372,8 +371,6 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
372
371
|
|
|
373
372
|
MediaSeriesLanding.getInitialData = function () {
|
|
374
373
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(ctx, client, cache) {
|
|
375
|
-
var _ref4;
|
|
376
|
-
|
|
377
374
|
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
378
375
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
379
376
|
while (1) {
|
|
@@ -458,7 +455,18 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
458
455
|
statusCode = 404;
|
|
459
456
|
}
|
|
460
457
|
|
|
461
|
-
return _context2.abrupt('return',
|
|
458
|
+
return _context2.abrupt('return', {
|
|
459
|
+
seriesData: seriesData,
|
|
460
|
+
query: seriesQuery,
|
|
461
|
+
params: params,
|
|
462
|
+
currentPage: currentPage,
|
|
463
|
+
taxonomyFilter: taxonomyFilter,
|
|
464
|
+
identifier: identifier,
|
|
465
|
+
docGroupID: docGroupID._id,
|
|
466
|
+
parentUrl: identifier,
|
|
467
|
+
statusCode: statusCode,
|
|
468
|
+
docGroup: docGroupID
|
|
469
|
+
});
|
|
462
470
|
|
|
463
471
|
case 25:
|
|
464
472
|
case 'end':
|
|
@@ -3,7 +3,7 @@ import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-6d8e3924.js';
|
|
4
4
|
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
5
5
|
import React__default, { useState, useEffect } from 'react';
|
|
6
|
-
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-
|
|
6
|
+
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-ec988ce9.js';
|
|
7
7
|
import './index-98ca9cec.js';
|
|
8
8
|
import 'react-dom';
|
|
9
9
|
import Link from 'next/link';
|
|
@@ -44,8 +44,7 @@ import './toNumber-5aeba6e7.js';
|
|
|
44
44
|
import './Beam.js';
|
|
45
45
|
import './Segment.js';
|
|
46
46
|
import './ADInfeed-0a55cd2d.js';
|
|
47
|
-
import './Pagination-
|
|
48
|
-
import 'react-paginate';
|
|
47
|
+
import './Pagination-484b86c5.js';
|
|
49
48
|
import 'react-bootstrap/Button';
|
|
50
49
|
import './index.esm-1bd8a0a8.js';
|
|
51
50
|
import './iconBase-ccc56b97.js';
|
|
@@ -91,11 +90,11 @@ var Filter = function Filter(_ref) {
|
|
|
91
90
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
92
91
|
grandChildData = _useState6[0],
|
|
93
92
|
setGrandChildData = _useState6[1];
|
|
94
|
-
/*
|
|
95
|
-
{parent: showAll,
|
|
96
|
-
chidlren: show selected from parent,
|
|
97
|
-
grandchildren: show selected from children
|
|
98
|
-
}
|
|
93
|
+
/*
|
|
94
|
+
{parent: showAll,
|
|
95
|
+
chidlren: show selected from parent,
|
|
96
|
+
grandchildren: show selected from children
|
|
97
|
+
}
|
|
99
98
|
*/
|
|
100
99
|
|
|
101
100
|
|
package/dist/esm/NavMagazine.js
CHANGED
|
@@ -26,16 +26,16 @@ import 'react-bootstrap/FormControl';
|
|
|
26
26
|
import 'react-bootstrap/Button';
|
|
27
27
|
|
|
28
28
|
var NavMagazine = function NavMagazine(props) {
|
|
29
|
-
/*
|
|
30
|
-
Example Nav with acceptable props
|
|
31
|
-
<MagazineNav
|
|
32
|
-
showLogin
|
|
33
|
-
user={props.cache.user}
|
|
34
|
-
logo={props.settings.logo}
|
|
35
|
-
dataObject={props.cache.mainNavCache}
|
|
36
|
-
website={website}
|
|
37
|
-
subNav={props.cache.subNavCache}
|
|
38
|
-
/>
|
|
29
|
+
/*
|
|
30
|
+
Example Nav with acceptable props
|
|
31
|
+
<MagazineNav
|
|
32
|
+
showLogin
|
|
33
|
+
user={props.cache.user}
|
|
34
|
+
logo={props.settings.logo}
|
|
35
|
+
dataObject={props.cache.mainNavCache}
|
|
36
|
+
website={website}
|
|
37
|
+
subNav={props.cache.subNavCache}
|
|
38
|
+
/>
|
|
39
39
|
*/
|
|
40
40
|
|
|
41
41
|
// Setting 'socialIconVariant' as 'light' as default to make the social icons and search icon black
|
package/dist/esm/NavNative.js
CHANGED
|
@@ -300,15 +300,15 @@ function chunk(array, size, guard) {
|
|
|
300
300
|
var chunk_1 = chunk;
|
|
301
301
|
|
|
302
302
|
var NavNative = function NavNative(props) {
|
|
303
|
-
/*
|
|
304
|
-
Example Nav with acceptable props
|
|
305
|
-
<MagazineNav
|
|
306
|
-
showLogin
|
|
307
|
-
logo={props.settings.logo}
|
|
308
|
-
dataObject={props.cache.mainNavCache}
|
|
309
|
-
website={website}
|
|
310
|
-
subNav={props.cache.subNavCache}
|
|
311
|
-
/>
|
|
303
|
+
/*
|
|
304
|
+
Example Nav with acceptable props
|
|
305
|
+
<MagazineNav
|
|
306
|
+
showLogin
|
|
307
|
+
logo={props.settings.logo}
|
|
308
|
+
dataObject={props.cache.mainNavCache}
|
|
309
|
+
website={website}
|
|
310
|
+
subNav={props.cache.subNavCache}
|
|
311
|
+
/>
|
|
312
312
|
*/
|
|
313
313
|
// Setting 'socialIconVariant' as 'dark' as default to make the social icons and search icon black
|
|
314
314
|
var logo = props.logo,
|