@mjhls/mjh-framework 1.0.426 → 1.0.427
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 +172 -172
- package/dist/cjs/{ADInfeed-99f812f9.js → ADInfeed-494f5e6b.js} +1 -1
- package/dist/cjs/{AdSlot-6b3e5d3d.js → AdSlot-4d22aad4.js} +2 -2
- package/dist/cjs/DeckContent.js +17 -17
- package/dist/cjs/DeckQueue.js +8 -8
- package/dist/cjs/{Dfp-f62806bd.js → Dfp-2399639f.js} +1 -1
- package/dist/cjs/{Figure-7277baf0.js → Figure-9e886c5b.js} +1 -1
- package/dist/cjs/{GridContent-3acca2d2.js → GridContent-f401c40f.js} +12 -12
- package/dist/cjs/GridContent.js +10 -10
- package/dist/cjs/GroupDeck.js +8 -8
- package/dist/cjs/IssueContentDeck.js +2 -2
- package/dist/cjs/IssueDeck.js +2 -2
- package/dist/cjs/MasterDeck.js +15 -15
- package/dist/cjs/{Normal-e35862e5.js → Normal-405b758a.js} +39 -39
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +8 -8
- package/dist/cjs/{TaxonomyCard-bbf7530c.js → TaxonomyCard-eb928f05.js} +1 -1
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +5 -5
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +5 -5
- package/dist/cjs/YoutubeGroup.js +7 -7
- package/dist/cjs/{debounce-17653c0f.js → debounce-b088070c.js} +4 -6
- package/dist/cjs/{get-1f552668.js → get-5aa7468c.js} +1 -1
- package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
- package/dist/cjs/{index.es-9110add6.js → index.es-ab3f2690.js} +3 -1
- package/dist/cjs/index.js +1054 -976
- package/dist/cjs/{inherits-be4dfb6b.js → inherits-e793003e.js} +4 -4
- package/dist/cjs/{main-88348b15.js → main-bc4db521.js} +66 -35
- package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
- package/dist/esm/{ADInfeed-f1c1780e.js → ADInfeed-e5cefea5.js} +1 -1
- package/dist/esm/{AdSlot-4ca0419a.js → AdSlot-78e48a2c.js} +2 -2
- package/dist/esm/DeckContent.js +16 -16
- package/dist/esm/DeckQueue.js +7 -7
- package/dist/esm/{Dfp-d372854b.js → Dfp-d5fe1252.js} +1 -1
- package/dist/esm/{Figure-2d14847b.js → Figure-cc1affbe.js} +1 -1
- package/dist/esm/{GridContent-09330066.js → GridContent-e3224519.js} +11 -11
- package/dist/esm/GridContent.js +9 -9
- package/dist/esm/GroupDeck.js +5 -5
- package/dist/esm/IssueContentDeck.js +2 -2
- package/dist/esm/IssueDeck.js +2 -2
- package/dist/esm/MasterDeck.js +14 -14
- package/dist/esm/{Normal-7e1b2b80.js → Normal-c61851bf.js} +39 -39
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +8 -8
- package/dist/esm/{TaxonomyCard-d49aa67a.js → TaxonomyCard-b29aa7ac.js} +1 -1
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +5 -5
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/VideoSeriesListing.js +4 -4
- package/dist/esm/YoutubeGroup.js +5 -5
- package/dist/esm/{debounce-53693e2b.js → debounce-df468b0e.js} +4 -6
- package/dist/esm/{get-b3f4645d.js → get-53653403.js} +1 -1
- package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
- package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
- package/dist/esm/index.js +1051 -973
- package/dist/esm/{main-273675e1.js → main-7d1b3c98.js} +65 -34
- package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
- package/package.json +103 -103
|
@@ -3,10 +3,10 @@ import Container from 'react-bootstrap/Container';
|
|
|
3
3
|
import Row from 'react-bootstrap/Row';
|
|
4
4
|
import Col from 'react-bootstrap/Col';
|
|
5
5
|
import { useRouter } from 'next/router';
|
|
6
|
-
import { m as
|
|
6
|
+
import { m as main_39, c as main_40 } from './main-7d1b3c98.js';
|
|
7
7
|
import { _ as _slicedToArray } from './slicedToArray-04e02710.js';
|
|
8
|
-
import { D as DFPAdSlot } from './AdSlot-
|
|
9
|
-
import { g as get_1 } from './get-
|
|
8
|
+
import { D as DFPAdSlot } from './AdSlot-78e48a2c.js';
|
|
9
|
+
import { g as get_1 } from './get-53653403.js';
|
|
10
10
|
import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
|
|
11
11
|
import { Dropdown } from 'react-bootstrap';
|
|
12
12
|
import { G as GenIcon, b as IoMdLogIn, c as IoIosHome } from './index.esm-536609db.js';
|
|
@@ -60,8 +60,8 @@ var renderLink = function renderLink(row) {
|
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
var SideFooter = function SideFooter(props) {
|
|
63
|
-
/*
|
|
64
|
-
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
63
|
+
/*
|
|
64
|
+
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
65
65
|
*/
|
|
66
66
|
var _get = get_1(props, 'cache.siteSettingCache', {}),
|
|
67
67
|
socialLinks = _get.socialLinks,
|
|
@@ -424,7 +424,7 @@ var Column3 = function Column3(props) {
|
|
|
424
424
|
var adRef = useRef(null);
|
|
425
425
|
|
|
426
426
|
useEffect(function () {
|
|
427
|
-
if (!
|
|
427
|
+
if (!main_39 && window.innerWidth >= 768) {
|
|
428
428
|
var navbar = document.querySelector('.navbar');
|
|
429
429
|
var AdOffsetTop = adRef.current.getBoundingClientRect().top;
|
|
430
430
|
window.addEventListener('scroll', function () {
|
|
@@ -484,7 +484,7 @@ var Column3 = function Column3(props) {
|
|
|
484
484
|
{ jsx: 'true' },
|
|
485
485
|
'\n .filter-box {\n float: right;\n padding-top: 6px;\n padding-right: 18px;\n }\n @media only screen and (min-width: 768px) {\n .title-wrap {\n display: flex;\n justify-content: space-between;\n }\n }\n @media only screen and (max-width: 767px) {\n /* .filter-box {\n float: right;\n display: flex;\n justify-content: flex-end;\n } */\n .title-wrap {\n display: flex;\n flex-direction: column;\n margin-bottom: 10px;\n }\n }\n '
|
|
486
486
|
),
|
|
487
|
-
(!
|
|
487
|
+
(!main_39 || showRightAd) && React__default.createElement(
|
|
488
488
|
Col,
|
|
489
489
|
{ xs: 12, className: 'rightCol' },
|
|
490
490
|
website && website.conferenceBannerContent && React__default.createElement(ConferenceBanner, { website: website }),
|
|
@@ -720,16 +720,16 @@ var SocialNavFooter = function SocialNavFooter(props) {
|
|
|
720
720
|
};
|
|
721
721
|
|
|
722
722
|
var NavMagazine = function NavMagazine(props) {
|
|
723
|
-
/*
|
|
724
|
-
Example Nav with acceptable props
|
|
725
|
-
|
|
726
|
-
showLogin
|
|
727
|
-
user={props.cache.user}
|
|
728
|
-
logo={props.settings.logo}
|
|
729
|
-
dataObject={props.cache.mainNavCache}
|
|
730
|
-
website={website}
|
|
731
|
-
subNav={props.cache.subNavCache}
|
|
732
|
-
/>
|
|
723
|
+
/*
|
|
724
|
+
Example Nav with acceptable props
|
|
725
|
+
<MagazineNav
|
|
726
|
+
showLogin
|
|
727
|
+
user={props.cache.user}
|
|
728
|
+
logo={props.settings.logo}
|
|
729
|
+
dataObject={props.cache.mainNavCache}
|
|
730
|
+
website={website}
|
|
731
|
+
subNav={props.cache.subNavCache}
|
|
732
|
+
/>
|
|
733
733
|
*/
|
|
734
734
|
|
|
735
735
|
var logo = props.logo,
|
|
@@ -928,7 +928,7 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
928
928
|
),
|
|
929
929
|
React__default.createElement(
|
|
930
930
|
Navbar,
|
|
931
|
-
{ id: 'navbar-ham', className:
|
|
931
|
+
{ id: 'navbar-ham', className: main_40 ? 'bottom-nav ios-nav' : 'bottom-nav ', variant: 'dark', expand: 'xl', bg: 'primary', sticky: 'top', ref: navRef },
|
|
932
932
|
React__default.createElement(
|
|
933
933
|
Container,
|
|
934
934
|
{ className: 'mobile-nav android-nav' },
|
|
@@ -1119,15 +1119,15 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
1119
1119
|
var MagazineNav = React__default.memo(NavMagazine);
|
|
1120
1120
|
|
|
1121
1121
|
var NavNative = function NavNative(props) {
|
|
1122
|
-
/*
|
|
1123
|
-
Example Nav with acceptable props
|
|
1124
|
-
|
|
1125
|
-
showLogin
|
|
1126
|
-
logo={props.settings.logo}
|
|
1127
|
-
dataObject={props.cache.mainNavCache}
|
|
1128
|
-
website={website}
|
|
1129
|
-
subNav={props.cache.subNavCache}
|
|
1130
|
-
/>
|
|
1122
|
+
/*
|
|
1123
|
+
Example Nav with acceptable props
|
|
1124
|
+
<MagazineNav
|
|
1125
|
+
showLogin
|
|
1126
|
+
logo={props.settings.logo}
|
|
1127
|
+
dataObject={props.cache.mainNavCache}
|
|
1128
|
+
website={website}
|
|
1129
|
+
subNav={props.cache.subNavCache}
|
|
1130
|
+
/>
|
|
1131
1131
|
*/
|
|
1132
1132
|
|
|
1133
1133
|
var logo = props.logo,
|
|
@@ -1180,7 +1180,7 @@ var NavNative = function NavNative(props) {
|
|
|
1180
1180
|
React__default.createElement(
|
|
1181
1181
|
Navbar,
|
|
1182
1182
|
{
|
|
1183
|
-
className:
|
|
1183
|
+
className: main_40 ? 'bottom-nav ios-nav' : 'bottom-nav android-nav',
|
|
1184
1184
|
variant: 'dark',
|
|
1185
1185
|
expand: 'lg',
|
|
1186
1186
|
bg: 'primary',
|
|
@@ -1631,15 +1631,15 @@ var NavDvm = function NavDvm(props) {
|
|
|
1631
1631
|
};
|
|
1632
1632
|
|
|
1633
1633
|
var HamMagazine = function HamMagazine(props) {
|
|
1634
|
-
/*
|
|
1635
|
-
Example Nav with acceptable props
|
|
1636
|
-
<MagazineNav
|
|
1637
|
-
showLogin
|
|
1638
|
-
logo={props.settings.logo}
|
|
1639
|
-
dataObject={props.cache.mainNavCache}
|
|
1640
|
-
website={website}
|
|
1641
|
-
subNav={props.cache.subNavCache}
|
|
1642
|
-
/>
|
|
1634
|
+
/*
|
|
1635
|
+
Example Nav with acceptable props
|
|
1636
|
+
<MagazineNav
|
|
1637
|
+
showLogin
|
|
1638
|
+
logo={props.settings.logo}
|
|
1639
|
+
dataObject={props.cache.mainNavCache}
|
|
1640
|
+
website={website}
|
|
1641
|
+
subNav={props.cache.subNavCache}
|
|
1642
|
+
/>
|
|
1643
1643
|
*/
|
|
1644
1644
|
|
|
1645
1645
|
var logo = props.logo,
|
|
@@ -1791,7 +1791,7 @@ var HamMagazine = function HamMagazine(props) {
|
|
|
1791
1791
|
|
|
1792
1792
|
return React__default.createElement(
|
|
1793
1793
|
'header',
|
|
1794
|
-
{ className: !
|
|
1794
|
+
{ className: !main_39 && isOpen ? 'nav-open' : 'nav-close', style: { zIndex: '99999' } },
|
|
1795
1795
|
React__default.createElement(
|
|
1796
1796
|
Navbar,
|
|
1797
1797
|
{ expand: 'md', ref: topNavRef },
|
|
@@ -2083,7 +2083,7 @@ var AD728x90 = function AD728x90(_ref) {
|
|
|
2083
2083
|
|
|
2084
2084
|
|
|
2085
2085
|
var mobileView = false;
|
|
2086
|
-
if (
|
|
2086
|
+
if (main_39) {
|
|
2087
2087
|
pos = 'top-mobile';
|
|
2088
2088
|
mobileView = true;
|
|
2089
2089
|
}
|
|
@@ -5,7 +5,7 @@ import Row from 'react-bootstrap/Row';
|
|
|
5
5
|
import Col from 'react-bootstrap/Col';
|
|
6
6
|
import Card from 'react-bootstrap/Card';
|
|
7
7
|
import 'react-dom';
|
|
8
|
-
import { i as imageUrlBuilder } from './index-
|
|
8
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
9
9
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
10
10
|
import Button from 'react-bootstrap/Button';
|
|
11
11
|
|
|
@@ -7,22 +7,22 @@ import { _ as _toConsumableArray } from './toConsumableArray-c5e2fde8.js';
|
|
|
7
7
|
import './_object-pie-33c40e79.js';
|
|
8
8
|
import { _ as _extends } from './extends-92072fff.js';
|
|
9
9
|
import React__default, { useState, useEffect, useRef } from 'react';
|
|
10
|
-
import { l as lib_3 } from './debounce-
|
|
10
|
+
import { l as lib_3 } from './debounce-df468b0e.js';
|
|
11
11
|
import 'prop-types';
|
|
12
12
|
import 'react-bootstrap/Card';
|
|
13
|
-
import { m as moment } from './moment-
|
|
13
|
+
import { m as moment } from './moment-12415288.js';
|
|
14
14
|
import { useRouter } from 'next/router';
|
|
15
|
-
import { I as InfiniteScroll } from './index.es-
|
|
15
|
+
import { I as InfiniteScroll } from './index.es-938a3a58.js';
|
|
16
16
|
import 'react-dom';
|
|
17
17
|
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
18
|
-
import { i as imageUrlBuilder } from './index-
|
|
18
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
19
19
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
20
|
-
import { m as
|
|
20
|
+
import { m as main_39 } from './main-7d1b3c98.js';
|
|
21
21
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
22
22
|
import { _ as _slicedToArray } from './slicedToArray-04e02710.js';
|
|
23
|
-
import './AdSlot-
|
|
23
|
+
import './AdSlot-78e48a2c.js';
|
|
24
24
|
import './promise-2592a80a.js';
|
|
25
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
25
|
+
import { A as ADInfeed } from './ADInfeed-e5cefea5.js';
|
|
26
26
|
import { A as AuthorComponent } from './AuthorComponent-c9e46673.js';
|
|
27
27
|
import { Container, Media } from 'react-bootstrap';
|
|
28
28
|
|
|
@@ -334,7 +334,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
334
334
|
} else if (article._type === 'brandInsightAd' && article.adUnit) {
|
|
335
335
|
return React__default.createElement(ADInfeed, { index: index, infeedAd: article });
|
|
336
336
|
}
|
|
337
|
-
if (
|
|
337
|
+
if (main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0) {
|
|
338
338
|
return renderMobileAd(index, numberOfItemsBeforeAd, rightItems);
|
|
339
339
|
}
|
|
340
340
|
|
|
@@ -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-51a80699.js';
|
|
9
9
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
10
10
|
import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
|
|
11
11
|
|
package/dist/esm/TaxonomyCard.js
CHANGED
|
@@ -9,7 +9,7 @@ import 'react-bootstrap/Row';
|
|
|
9
9
|
import 'react-bootstrap/Col';
|
|
10
10
|
import 'react-bootstrap/Card';
|
|
11
11
|
import 'react-dom';
|
|
12
|
-
import './index-
|
|
12
|
+
import './index-51a80699.js';
|
|
13
13
|
import './index-5f9f807a.js';
|
|
14
|
-
export { T as default } from './TaxonomyCard-
|
|
14
|
+
export { T as default } from './TaxonomyCard-b29aa7ac.js';
|
|
15
15
|
import './react-social-icons-a7d5c5c7.js';
|
|
@@ -4,22 +4,22 @@ import './web.dom.iterable-e6bf2bf6.js';
|
|
|
4
4
|
import './_library-528f1934.js';
|
|
5
5
|
import './_iter-detect-7c281f0a.js';
|
|
6
6
|
import 'react';
|
|
7
|
-
import './debounce-
|
|
7
|
+
import './debounce-df468b0e.js';
|
|
8
8
|
import 'prop-types';
|
|
9
9
|
import 'react-bootstrap/Container';
|
|
10
10
|
import 'react-bootstrap/Row';
|
|
11
11
|
import 'react-bootstrap/Col';
|
|
12
12
|
import 'next/router';
|
|
13
|
-
import './main-
|
|
13
|
+
import './main-7d1b3c98.js';
|
|
14
14
|
import './slicedToArray-04e02710.js';
|
|
15
|
-
import './AdSlot-
|
|
15
|
+
import './AdSlot-78e48a2c.js';
|
|
16
16
|
import './promise-2592a80a.js';
|
|
17
|
-
import './get-
|
|
17
|
+
import './get-53653403.js';
|
|
18
18
|
import './react-social-icons-a7d5c5c7.js';
|
|
19
19
|
import 'react-bootstrap';
|
|
20
20
|
import './index.esm-536609db.js';
|
|
21
21
|
import 'react-bootstrap/Button';
|
|
22
|
-
export { T as default } from './Normal-
|
|
22
|
+
export { T as default } from './Normal-c61851bf.js';
|
|
23
23
|
import 'react-bootstrap/ListGroup';
|
|
24
24
|
import 'next/head';
|
|
25
25
|
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-51a80699.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';
|
|
@@ -7,15 +7,15 @@ import { _ as _extends } from './extends-92072fff.js';
|
|
|
7
7
|
import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _Object$getPrototypeOf, e as _createClass } from './inherits-dfba24f5.js';
|
|
8
8
|
import './typeof-e4b50250.js';
|
|
9
9
|
import React__default from 'react';
|
|
10
|
-
import { d as debounce_1, l as lib_3 } from './debounce-
|
|
10
|
+
import { d as debounce_1, l as lib_3 } from './debounce-df468b0e.js';
|
|
11
11
|
import 'prop-types';
|
|
12
12
|
import Container from 'react-bootstrap/Container';
|
|
13
|
-
import './moment-
|
|
13
|
+
import './moment-12415288.js';
|
|
14
14
|
import { withRouter } from 'next/router';
|
|
15
|
-
import { I as InfiniteScroll } from './index.es-
|
|
15
|
+
import { I as InfiniteScroll } from './index.es-938a3a58.js';
|
|
16
16
|
import 'react-dom';
|
|
17
17
|
import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
|
|
18
|
-
import './index-
|
|
18
|
+
import './index-51a80699.js';
|
|
19
19
|
import './index-5f9f807a.js';
|
|
20
20
|
import './slicedToArray-04e02710.js';
|
|
21
21
|
import './smoothscroll-4b699764.js';
|
package/dist/esm/YoutubeGroup.js
CHANGED
|
@@ -7,15 +7,15 @@ import { b as _typeof } from './typeof-e4b50250.js';
|
|
|
7
7
|
import React__default, { useRef, useState, useEffect } from 'react';
|
|
8
8
|
import 'prop-types';
|
|
9
9
|
import 'react-dom';
|
|
10
|
-
import { i as imageUrlBuilder } from './index-
|
|
10
|
+
import { i as imageUrlBuilder } from './index-51a80699.js';
|
|
11
11
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
12
12
|
import { _ as _slicedToArray } from './slicedToArray-04e02710.js';
|
|
13
13
|
import { s as smoothscroll, g as getYoutubeId } from './smoothscroll-4b699764.js';
|
|
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 YoutubeGroup = function YoutubeGroup(props) {
|
|
@@ -821,15 +821,13 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
821
821
|
});
|
|
822
822
|
|
|
823
823
|
if (_this5.lazyLoadIsEnabled()) {
|
|
824
|
-
var args = [];
|
|
825
|
-
|
|
826
824
|
var config = _this5.getLazyLoadConfig();
|
|
827
825
|
|
|
828
|
-
if (config
|
|
829
|
-
|
|
826
|
+
if (config) {
|
|
827
|
+
pubadsService.enableLazyLoad(config);
|
|
828
|
+
} else {
|
|
829
|
+
pubadsService.enableLazyLoad();
|
|
830
830
|
}
|
|
831
|
-
|
|
832
|
-
pubadsService.enableLazyLoad.call(args);
|
|
833
831
|
}
|
|
834
832
|
|
|
835
833
|
if (_this5.singleRequestIsEnabled()) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as isSymbol_1, g as isObject_1, _ as _baseGetTag, b as _root, h as _Symbol } from './debounce-
|
|
1
|
+
import { f as isSymbol_1, g as isObject_1, _ as _baseGetTag, b as _root, h as _Symbol } from './debounce-df468b0e.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Checks if `value` is classified as an `Array` object.
|
|
@@ -58,35 +58,35 @@ function parseSource(source) {
|
|
|
58
58
|
if (typeof source === 'string' && isUrl(source)) {
|
|
59
59
|
// Someone passed an existing image url?
|
|
60
60
|
image = {
|
|
61
|
-
asset: { _ref: urlToId(source) }
|
|
61
|
+
asset: { _ref: urlToId(source) },
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
else if (typeof source === 'string') {
|
|
65
65
|
// Just an asset id
|
|
66
66
|
image = {
|
|
67
|
-
asset: { _ref: source }
|
|
67
|
+
asset: { _ref: source },
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
else if (isRef(source)) {
|
|
71
71
|
// We just got passed an asset directly
|
|
72
72
|
image = {
|
|
73
|
-
asset: source
|
|
73
|
+
asset: source,
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
else if (isAsset(source)) {
|
|
77
77
|
// If we were passed an image asset document
|
|
78
78
|
image = {
|
|
79
79
|
asset: {
|
|
80
|
-
_ref: source._id || ''
|
|
81
|
-
}
|
|
80
|
+
_ref: source._id || '',
|
|
81
|
+
},
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
else if (isAssetStub(source)) {
|
|
85
85
|
// If we were passed a partial asset (`url`, but no `_id`)
|
|
86
86
|
image = {
|
|
87
87
|
asset: {
|
|
88
|
-
_ref: urlToId(source.asset.url)
|
|
89
|
-
}
|
|
88
|
+
_ref: urlToId(source.asset.url),
|
|
89
|
+
},
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
else if (typeof source.asset === 'object') {
|
|
@@ -127,7 +127,7 @@ function applyDefaults(image) {
|
|
|
127
127
|
left: 0,
|
|
128
128
|
top: 0,
|
|
129
129
|
bottom: 0,
|
|
130
|
-
right: 0
|
|
130
|
+
right: 0,
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
133
|
if (!result.hotspot) {
|
|
@@ -135,7 +135,7 @@ function applyDefaults(image) {
|
|
|
135
135
|
x: 0.5,
|
|
136
136
|
y: 0.5,
|
|
137
137
|
height: 1.0,
|
|
138
|
-
width: 1.0
|
|
138
|
+
width: 1.0,
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
return result;
|
|
@@ -182,7 +182,7 @@ exports.SPEC_NAME_TO_URL_NAME_MAPPINGS = [
|
|
|
182
182
|
['crop', 'crop'],
|
|
183
183
|
['saturation', 'sat'],
|
|
184
184
|
['auto', 'auto'],
|
|
185
|
-
['dpr', 'dpr']
|
|
185
|
+
['dpr', 'dpr'],
|
|
186
186
|
];
|
|
187
187
|
function urlForImage(options) {
|
|
188
188
|
var spec = __assign({}, (options || {}));
|
|
@@ -201,7 +201,7 @@ function urlForImage(options) {
|
|
|
201
201
|
left: cropLeft,
|
|
202
202
|
top: cropTop,
|
|
203
203
|
width: Math.round(asset.width - image.crop.right * asset.width - cropLeft),
|
|
204
|
-
height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop)
|
|
204
|
+
height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop),
|
|
205
205
|
};
|
|
206
206
|
// Compute hot spot rect in terms of pixel coordinates
|
|
207
207
|
var hotSpotVerticalRadius = (image.hotspot.height * asset.height) / 2;
|
|
@@ -212,7 +212,7 @@ function urlForImage(options) {
|
|
|
212
212
|
left: hotSpotCenterX - hotSpotHorizontalRadius,
|
|
213
213
|
top: hotSpotCenterY - hotSpotVerticalRadius,
|
|
214
214
|
right: hotSpotCenterX + hotSpotHorizontalRadius,
|
|
215
|
-
bottom: hotSpotCenterY + hotSpotVerticalRadius
|
|
215
|
+
bottom: hotSpotCenterY + hotSpotVerticalRadius,
|
|
216
216
|
};
|
|
217
217
|
// If irrelevant, or if we are requested to: don't perform crop/fit based on
|
|
218
218
|
// the crop/hotspot.
|
|
@@ -294,7 +294,7 @@ function fit(source, spec) {
|
|
|
294
294
|
left: Math.round(left),
|
|
295
295
|
top: Math.round(top_2),
|
|
296
296
|
width: Math.round(width),
|
|
297
|
-
height: Math.round(height)
|
|
297
|
+
height: Math.round(height),
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
300
|
else {
|
|
@@ -316,13 +316,13 @@ function fit(source, spec) {
|
|
|
316
316
|
left: Math.max(0, Math.floor(left)),
|
|
317
317
|
top: Math.max(0, Math.floor(top_3)),
|
|
318
318
|
width: Math.round(width),
|
|
319
|
-
height: Math.round(height)
|
|
319
|
+
height: Math.round(height),
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
322
|
return {
|
|
323
323
|
width: imgWidth,
|
|
324
324
|
height: imgHeight,
|
|
325
|
-
rect: cropRect
|
|
325
|
+
rect: cropRect,
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
328
|
|
|
@@ -375,11 +375,12 @@ 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,
|
|
382
|
-
dataset: dataset
|
|
383
|
+
dataset: dataset,
|
|
383
384
|
});
|
|
384
385
|
}
|
|
385
386
|
// Or just accept the options as given
|
|
@@ -392,7 +393,7 @@ var ImageUrlBuilder = /** @class */ (function () {
|
|
|
392
393
|
? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
|
|
393
394
|
}
|
|
394
395
|
ImageUrlBuilder.prototype.withOptions = function (options) {
|
|
395
|
-
var baseUrl = options.baseUrl ||
|
|
396
|
+
var baseUrl = options.baseUrl || this.options.baseUrl;
|
|
396
397
|
var newOptions = { baseUrl: baseUrl };
|
|
397
398
|
for (var key in options) {
|
|
398
399
|
if (options.hasOwnProperty(key)) {
|
|
@@ -520,7 +521,7 @@ var ImageUrlBuilder = /** @class */ (function () {
|
|
|
520
521
|
ImageUrlBuilder.prototype.url = function () {
|
|
521
522
|
return urlForImage_1$1.default(this.options);
|
|
522
523
|
};
|
|
523
|
-
//
|
|
524
|
+
// Alias for url()
|
|
524
525
|
ImageUrlBuilder.prototype.toString = function () {
|
|
525
526
|
return this.url();
|
|
526
527
|
};
|
|
@@ -263,6 +263,9 @@ var InfiniteScroll = /** @class */ (function (_super) {
|
|
|
263
263
|
_this.dragging = false;
|
|
264
264
|
if (_this.state.pullToRefreshThresholdBreached) {
|
|
265
265
|
_this.props.refreshFunction && _this.props.refreshFunction();
|
|
266
|
+
_this.setState({
|
|
267
|
+
pullToRefreshThresholdBreached: false,
|
|
268
|
+
});
|
|
266
269
|
}
|
|
267
270
|
requestAnimationFrame(function () {
|
|
268
271
|
// this._infScroll
|
|
@@ -369,7 +372,6 @@ var InfiniteScroll = /** @class */ (function (_super) {
|
|
|
369
372
|
// update state when new data was sent in
|
|
370
373
|
this.setState({
|
|
371
374
|
showLoader: false,
|
|
372
|
-
pullToRefreshThresholdBreached: false,
|
|
373
375
|
});
|
|
374
376
|
};
|
|
375
377
|
InfiniteScroll.prototype.isElementAtBottom = function (target, scrollThreshold) {
|