@mjhls/mjh-framework 1.0.287 → 1.0.288
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 +171 -171
- package/dist/cjs/DeckContent.js +9 -9
- package/dist/cjs/DeckQueue.js +1 -1
- package/dist/cjs/{Figure-8789df2d.js → Figure-a7cd5161.js} +1 -1
- package/dist/cjs/{GridContent-fa2e1b56.js → GridContent-02acbd72.js} +2 -2
- package/dist/cjs/GridContent.js +2 -2
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/MasterDeck.js +9 -9
- package/dist/cjs/{Normal-39da6300.js → Normal-c1e96654.js} +31 -31
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +1 -1
- package/dist/cjs/{TaxonomyCard-7ba4a872.js → TaxonomyCard-cf5bbc07.js} +1 -1
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +1 -1
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +1 -1
- package/dist/cjs/{YoutubeGroup-39eba427.js → YoutubeGroup-98ffbc57.js} +4 -4
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/{index-be0c82be.js → index-39beccb3.js} +2 -1
- package/dist/cjs/index.js +548 -536
- package/dist/esm/DeckContent.js +9 -9
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/{Figure-b5847ea2.js → Figure-d6e22818.js} +1 -1
- package/dist/esm/{GridContent-88ed988c.js → GridContent-96716e42.js} +1 -1
- package/dist/esm/GridContent.js +2 -2
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/MasterDeck.js +9 -9
- package/dist/esm/{Normal-246ae27e.js → Normal-1dd0edc6.js} +31 -31
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +1 -1
- package/dist/esm/{TaxonomyCard-2d0ab635.js → TaxonomyCard-ee1a22ae.js} +1 -1
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +1 -1
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/VideoSeriesListing.js +1 -1
- package/dist/esm/{YoutubeGroup-f59297bb.js → YoutubeGroup-562ed456.js} +4 -4
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/{index-73819142.js → index-3849e3fe.js} +2 -1
- package/dist/esm/index.js +551 -539
- package/package.json +103 -103
package/dist/esm/DeckContent.js
CHANGED
|
@@ -17,7 +17,7 @@ import { V as VisibilitySensor, m as moment, I as InfiniteScroll } from './visib
|
|
|
17
17
|
import 'next/link';
|
|
18
18
|
import { withRouter } from 'next/router';
|
|
19
19
|
import 'react-dom';
|
|
20
|
-
import { i as imageUrlBuilder } from './index-
|
|
20
|
+
import { i as imageUrlBuilder } from './index-3849e3fe.js';
|
|
21
21
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
22
22
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
23
23
|
import './slicedToArray-d0a9593a.js';
|
|
@@ -164,14 +164,14 @@ var DeckContent = function (_React$Component) {
|
|
|
164
164
|
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
165
165
|
|
|
166
166
|
// please leave this for later debug purpose : Yong Jun.
|
|
167
|
-
/* console.log('page change reported', {
|
|
168
|
-
currentPage: currentPage,
|
|
169
|
-
pageNumber: pageNumber,
|
|
170
|
-
pathname: pathname,
|
|
171
|
-
path: path,
|
|
172
|
-
newPath: newPath,
|
|
173
|
-
firstPage: pageNumber === 1,
|
|
174
|
-
queryString: queryString
|
|
167
|
+
/* console.log('page change reported', {
|
|
168
|
+
currentPage: currentPage,
|
|
169
|
+
pageNumber: pageNumber,
|
|
170
|
+
pathname: pathname,
|
|
171
|
+
path: path,
|
|
172
|
+
newPath: newPath,
|
|
173
|
+
firstPage: pageNumber === 1,
|
|
174
|
+
queryString: queryString
|
|
175
175
|
}) */
|
|
176
176
|
|
|
177
177
|
if (pageview) {
|
package/dist/esm/DeckQueue.js
CHANGED
|
@@ -17,7 +17,7 @@ import { V as VisibilitySensor, m as moment, I as InfiniteScroll } from './visib
|
|
|
17
17
|
import 'next/link';
|
|
18
18
|
import { withRouter } from 'next/router';
|
|
19
19
|
import 'react-dom';
|
|
20
|
-
import { i as imageUrlBuilder } from './index-
|
|
20
|
+
import { i as imageUrlBuilder } from './index-3849e3fe.js';
|
|
21
21
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
22
22
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
23
23
|
import { g as get_1 } from './get-9c285a85.js';
|
|
@@ -3,7 +3,7 @@ import './_to-object-b9b796ec.js';
|
|
|
3
3
|
import './web.dom.iterable-3be50d6c.js';
|
|
4
4
|
import './core.get-iterator-method-31c1fb1a.js';
|
|
5
5
|
import React__default, { useState } from 'react';
|
|
6
|
-
import { i as imageUrlBuilder } from './index-
|
|
6
|
+
import { i as imageUrlBuilder } from './index-3849e3fe.js';
|
|
7
7
|
import { _ as _slicedToArray } from './slicedToArray-d0a9593a.js';
|
|
8
8
|
import { Figure as Figure$1 } from 'react-bootstrap';
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ import Card from 'react-bootstrap/Card';
|
|
|
11
11
|
import { m as moment, V as VisibilitySensor, I as InfiniteScroll } from './visibility-sensor-336093e1.js';
|
|
12
12
|
import 'next/link';
|
|
13
13
|
import { withRouter } from 'next/router';
|
|
14
|
-
import { i as imageUrlBuilder } from './index-
|
|
14
|
+
import { i as imageUrlBuilder } from './index-3849e3fe.js';
|
|
15
15
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
16
16
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
17
17
|
import { A as ADInfeed } from './ADInfeed-ac3ac372.js';
|
package/dist/esm/GridContent.js
CHANGED
|
@@ -17,7 +17,7 @@ import './visibility-sensor-336093e1.js';
|
|
|
17
17
|
import 'next/link';
|
|
18
18
|
import 'next/router';
|
|
19
19
|
import 'react-dom';
|
|
20
|
-
import './index-
|
|
20
|
+
import './index-3849e3fe.js';
|
|
21
21
|
import './index-5f9f807a.js';
|
|
22
22
|
import './entities-7cc3bf45.js';
|
|
23
23
|
import './slicedToArray-d0a9593a.js';
|
|
@@ -25,4 +25,4 @@ import './AdSlot-03043ffb.js';
|
|
|
25
25
|
import './promise-e3480f1c.js';
|
|
26
26
|
import './ADInfeed-ac3ac372.js';
|
|
27
27
|
import './get-9c285a85.js';
|
|
28
|
-
export { G as default } from './GridContent-
|
|
28
|
+
export { G as default } from './GridContent-96716e42.js';
|
|
@@ -6,7 +6,7 @@ import Col from 'react-bootstrap/Col';
|
|
|
6
6
|
import Card from 'react-bootstrap/Card';
|
|
7
7
|
import 'next/link';
|
|
8
8
|
import 'react-dom';
|
|
9
|
-
import { i as imageUrlBuilder } from './index-
|
|
9
|
+
import { i as imageUrlBuilder } from './index-3849e3fe.js';
|
|
10
10
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
11
11
|
import Badge from 'react-bootstrap/Badge';
|
|
12
12
|
|
package/dist/esm/IssueDeck.js
CHANGED
|
@@ -6,7 +6,7 @@ import Col from 'react-bootstrap/Col';
|
|
|
6
6
|
import Card from 'react-bootstrap/Card';
|
|
7
7
|
import 'next/link';
|
|
8
8
|
import 'react-dom';
|
|
9
|
-
import { i as imageUrlBuilder } from './index-
|
|
9
|
+
import { i as imageUrlBuilder } from './index-3849e3fe.js';
|
|
10
10
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
11
11
|
import Button from 'react-bootstrap/Button';
|
|
12
12
|
|
package/dist/esm/MasterDeck.js
CHANGED
|
@@ -17,7 +17,7 @@ import { V as VisibilitySensor, I as InfiniteScroll } from './visibility-sensor-
|
|
|
17
17
|
import 'next/link';
|
|
18
18
|
import { withRouter } from 'next/router';
|
|
19
19
|
import 'react-dom';
|
|
20
|
-
import './index-
|
|
20
|
+
import './index-3849e3fe.js';
|
|
21
21
|
import { _ as _Promise } from './promise-e3480f1c.js';
|
|
22
22
|
|
|
23
23
|
var MasterDeck = function (_React$Component) {
|
|
@@ -163,14 +163,14 @@ var MasterDeck = function (_React$Component) {
|
|
|
163
163
|
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
164
164
|
|
|
165
165
|
// please leave this for later debug purpose : Yong Jun.
|
|
166
|
-
/* console.log('page change reported', {
|
|
167
|
-
currentPage: currentPage,
|
|
168
|
-
pageNumber: pageNumber,
|
|
169
|
-
pathname: pathname,
|
|
170
|
-
path: path,
|
|
171
|
-
newPath: newPath,
|
|
172
|
-
firstPage: pageNumber === 1,
|
|
173
|
-
queryString: queryString
|
|
166
|
+
/* console.log('page change reported', {
|
|
167
|
+
currentPage: currentPage,
|
|
168
|
+
pageNumber: pageNumber,
|
|
169
|
+
pathname: pathname,
|
|
170
|
+
path: path,
|
|
171
|
+
newPath: newPath,
|
|
172
|
+
firstPage: pageNumber === 1,
|
|
173
|
+
queryString: queryString
|
|
174
174
|
}) */
|
|
175
175
|
|
|
176
176
|
if (pageview) {
|
|
@@ -669,8 +669,8 @@ var renderLink = function renderLink(row) {
|
|
|
669
669
|
};
|
|
670
670
|
|
|
671
671
|
var SideFooter = function SideFooter(props) {
|
|
672
|
-
/*
|
|
673
|
-
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
672
|
+
/*
|
|
673
|
+
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
674
674
|
*/
|
|
675
675
|
var _get = get_1(props, 'cache.siteSettingCache', {}),
|
|
676
676
|
socialLinks = _get.socialLinks,
|
|
@@ -1243,15 +1243,15 @@ var SocialNavFooter = function SocialNavFooter(props) {
|
|
|
1243
1243
|
};
|
|
1244
1244
|
|
|
1245
1245
|
var NavMagazine = function NavMagazine(props) {
|
|
1246
|
-
/*
|
|
1247
|
-
Example Nav with acceptable props
|
|
1248
|
-
|
|
1249
|
-
showLogin
|
|
1250
|
-
logo={props.settings.logo}
|
|
1251
|
-
dataObject={props.cache.mainNavCache}
|
|
1252
|
-
website={website}
|
|
1253
|
-
subNav={props.cache.subNavCache}
|
|
1254
|
-
/>
|
|
1246
|
+
/*
|
|
1247
|
+
Example Nav with acceptable props
|
|
1248
|
+
<MagazineNav
|
|
1249
|
+
showLogin
|
|
1250
|
+
logo={props.settings.logo}
|
|
1251
|
+
dataObject={props.cache.mainNavCache}
|
|
1252
|
+
website={website}
|
|
1253
|
+
subNav={props.cache.subNavCache}
|
|
1254
|
+
/>
|
|
1255
1255
|
*/
|
|
1256
1256
|
|
|
1257
1257
|
var logo = props.logo,
|
|
@@ -1304,7 +1304,7 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
1304
1304
|
if (navRef.current && navRef.current.style) {
|
|
1305
1305
|
navRef.current.style.position = 'relative';
|
|
1306
1306
|
navRef.current.style.top = '';
|
|
1307
|
-
adSection.style.marginTop = '';
|
|
1307
|
+
if (adSection) adSection.style.marginTop = '';
|
|
1308
1308
|
}
|
|
1309
1309
|
}
|
|
1310
1310
|
});
|
|
@@ -1563,15 +1563,15 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
1563
1563
|
var MagazineNav = React__default.memo(NavMagazine);
|
|
1564
1564
|
|
|
1565
1565
|
var NavNative = function NavNative(props) {
|
|
1566
|
-
/*
|
|
1567
|
-
Example Nav with acceptable props
|
|
1568
|
-
|
|
1569
|
-
showLogin
|
|
1570
|
-
logo={props.settings.logo}
|
|
1571
|
-
dataObject={props.cache.mainNavCache}
|
|
1572
|
-
website={website}
|
|
1573
|
-
subNav={props.cache.subNavCache}
|
|
1574
|
-
/>
|
|
1566
|
+
/*
|
|
1567
|
+
Example Nav with acceptable props
|
|
1568
|
+
<MagazineNav
|
|
1569
|
+
showLogin
|
|
1570
|
+
logo={props.settings.logo}
|
|
1571
|
+
dataObject={props.cache.mainNavCache}
|
|
1572
|
+
website={website}
|
|
1573
|
+
subNav={props.cache.subNavCache}
|
|
1574
|
+
/>
|
|
1575
1575
|
*/
|
|
1576
1576
|
|
|
1577
1577
|
var logo = props.logo,
|
|
@@ -1965,15 +1965,15 @@ var NavDvm = function NavDvm(props) {
|
|
|
1965
1965
|
};
|
|
1966
1966
|
|
|
1967
1967
|
var HamMagazine = function HamMagazine(props) {
|
|
1968
|
-
/*
|
|
1969
|
-
Example Nav with acceptable props
|
|
1970
|
-
<MagazineNav
|
|
1971
|
-
showLogin
|
|
1972
|
-
logo={props.settings.logo}
|
|
1973
|
-
dataObject={props.cache.mainNavCache}
|
|
1974
|
-
website={website}
|
|
1975
|
-
subNav={props.cache.subNavCache}
|
|
1976
|
-
/>
|
|
1968
|
+
/*
|
|
1969
|
+
Example Nav with acceptable props
|
|
1970
|
+
<MagazineNav
|
|
1971
|
+
showLogin
|
|
1972
|
+
logo={props.settings.logo}
|
|
1973
|
+
dataObject={props.cache.mainNavCache}
|
|
1974
|
+
website={website}
|
|
1975
|
+
subNav={props.cache.subNavCache}
|
|
1976
|
+
/>
|
|
1977
1977
|
*/
|
|
1978
1978
|
|
|
1979
1979
|
var logo = props.logo,
|
|
@@ -2076,7 +2076,7 @@ var HamMagazine = function HamMagazine(props) {
|
|
|
2076
2076
|
if (navRef.current && navRef.current.style) {
|
|
2077
2077
|
navRef.current.style.position = 'relative';
|
|
2078
2078
|
navRef.current.style.top = '';
|
|
2079
|
-
adSection.style.marginTop = '';
|
|
2079
|
+
if (adSection) adSection.style.marginTop = '';
|
|
2080
2080
|
}
|
|
2081
2081
|
}
|
|
2082
2082
|
});
|
|
@@ -6,7 +6,7 @@ import Col from 'react-bootstrap/Col';
|
|
|
6
6
|
import Card from 'react-bootstrap/Card';
|
|
7
7
|
import 'next/link';
|
|
8
8
|
import 'react-dom';
|
|
9
|
-
import { i as imageUrlBuilder } from './index-
|
|
9
|
+
import { i as imageUrlBuilder } from './index-3849e3fe.js';
|
|
10
10
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
11
11
|
import Button from 'react-bootstrap/Button';
|
|
12
12
|
|
|
@@ -13,7 +13,7 @@ import { I as InfiniteScroll, V as VisibilitySensor, m as moment } from './visib
|
|
|
13
13
|
import 'next/link';
|
|
14
14
|
import { useRouter } from 'next/router';
|
|
15
15
|
import 'react-dom';
|
|
16
|
-
import { i as imageUrlBuilder } from './index-
|
|
16
|
+
import { i as imageUrlBuilder } from './index-3849e3fe.js';
|
|
17
17
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
18
18
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
19
19
|
import { _ as _slicedToArray } from './slicedToArray-d0a9593a.js';
|
|
@@ -5,7 +5,7 @@ import Container from 'react-bootstrap/Container';
|
|
|
5
5
|
import Row from 'react-bootstrap/Row';
|
|
6
6
|
import Col from 'react-bootstrap/Col';
|
|
7
7
|
import Card from 'react-bootstrap/Card';
|
|
8
|
-
import { n as node, i as imageUrlBuilder } from './index-
|
|
8
|
+
import { n as node, i as imageUrlBuilder } from './index-3849e3fe.js';
|
|
9
9
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
10
10
|
|
|
11
11
|
/*
|
package/dist/esm/TaxonomyCard.js
CHANGED
|
@@ -8,6 +8,6 @@ import 'react-bootstrap/Row';
|
|
|
8
8
|
import 'react-bootstrap/Col';
|
|
9
9
|
import 'react-bootstrap/Card';
|
|
10
10
|
import 'react-dom';
|
|
11
|
-
import './index-
|
|
11
|
+
import './index-3849e3fe.js';
|
|
12
12
|
import './index-5f9f807a.js';
|
|
13
|
-
export { T as default } from './TaxonomyCard-
|
|
13
|
+
export { T as default } from './TaxonomyCard-ee1a22ae.js';
|
|
@@ -17,7 +17,7 @@ import './get-9c285a85.js';
|
|
|
17
17
|
import 'react-bootstrap';
|
|
18
18
|
import './index.esm-536609db.js';
|
|
19
19
|
import 'react-bootstrap/Button';
|
|
20
|
-
export { T as default } from './Normal-
|
|
20
|
+
export { T as default } from './Normal-1dd0edc6.js';
|
|
21
21
|
import 'react-bootstrap/ListGroup';
|
|
22
22
|
import 'next/head';
|
|
23
23
|
import 'react-bootstrap/Nav';
|
|
@@ -2,7 +2,7 @@ import './_commonjsHelpers-0c4b6f40.js';
|
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import 'prop-types';
|
|
4
4
|
import 'react-dom';
|
|
5
|
-
import { i as imageUrlBuilder } from './index-
|
|
5
|
+
import { i as imageUrlBuilder } from './index-3849e3fe.js';
|
|
6
6
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
7
7
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
8
8
|
import Media$1 from 'react-bootstrap/Media';
|
|
@@ -12,7 +12,7 @@ import 'next/link';
|
|
|
12
12
|
import { withRouter } from 'next/router';
|
|
13
13
|
import 'react-dom';
|
|
14
14
|
import './index-5f9f807a.js';
|
|
15
|
-
import { Y as YoutubeGroup } from './YoutubeGroup-
|
|
15
|
+
import { Y as YoutubeGroup } from './YoutubeGroup-562ed456.js';
|
|
16
16
|
import { a as IoIosArrowForward } from './index.esm-536609db.js';
|
|
17
17
|
|
|
18
18
|
var VideoSeriesListing = function (_React$Component) {
|
|
@@ -487,10 +487,10 @@ var smoothscroll_1 = smoothscroll.polyfill;
|
|
|
487
487
|
|
|
488
488
|
// kick off the polyfill!
|
|
489
489
|
|
|
490
|
-
/*
|
|
491
|
-
GROQ query -
|
|
492
|
-
accepts an array of title, URL
|
|
493
|
-
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
490
|
+
/*
|
|
491
|
+
GROQ query -
|
|
492
|
+
accepts an array of title, URL
|
|
493
|
+
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
494
494
|
*/
|
|
495
495
|
var YoutubeGroup = function YoutubeGroup(props) {
|
|
496
496
|
// Props should be an array of objects containing Thumbnail, title, and URL
|
package/dist/esm/YoutubeGroup.js
CHANGED
|
@@ -375,7 +375,8 @@ function urlBuilder(options) {
|
|
|
375
375
|
var client = options;
|
|
376
376
|
if (isSanityClient(client)) {
|
|
377
377
|
// Inherit config from client
|
|
378
|
-
var _a = client.clientConfig,
|
|
378
|
+
var _a = client.clientConfig, apiUrl = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
|
|
379
|
+
var apiHost = apiUrl || 'https://api.sanity.io';
|
|
379
380
|
return new ImageUrlBuilder(null, {
|
|
380
381
|
baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
|
|
381
382
|
projectId: projectId,
|