@mjhls/mjh-framework 1.0.427 → 1.0.428

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.
Files changed (59) hide show
  1. package/README.md +172 -172
  2. package/dist/cjs/{ADInfeed-494f5e6b.js → ADInfeed-99f812f9.js} +1 -1
  3. package/dist/cjs/{AdSlot-4d22aad4.js → AdSlot-6b3e5d3d.js} +2 -2
  4. package/dist/cjs/DeckContent.js +17 -17
  5. package/dist/cjs/DeckQueue.js +8 -8
  6. package/dist/cjs/{Dfp-2399639f.js → Dfp-f62806bd.js} +1 -1
  7. package/dist/cjs/{Figure-9e886c5b.js → Figure-7277baf0.js} +1 -1
  8. package/dist/cjs/{GridContent-f401c40f.js → GridContent-3acca2d2.js} +12 -12
  9. package/dist/cjs/GridContent.js +10 -10
  10. package/dist/cjs/GroupDeck.js +8 -8
  11. package/dist/cjs/IssueContentDeck.js +2 -2
  12. package/dist/cjs/IssueDeck.js +2 -2
  13. package/dist/cjs/MasterDeck.js +15 -15
  14. package/dist/cjs/{Normal-405b758a.js → Normal-e35862e5.js} +39 -39
  15. package/dist/cjs/PublicationDeck.js +1 -1
  16. package/dist/cjs/QueueDeckExpanded.js +8 -8
  17. package/dist/cjs/{TaxonomyCard-eb928f05.js → TaxonomyCard-bbf7530c.js} +1 -1
  18. package/dist/cjs/TaxonomyCard.js +2 -2
  19. package/dist/cjs/TemplateNormal.js +5 -5
  20. package/dist/cjs/ThumbnailCard.js +1 -1
  21. package/dist/cjs/VideoSeriesListing.js +5 -5
  22. package/dist/cjs/YoutubeGroup.js +7 -7
  23. package/dist/cjs/{debounce-b088070c.js → debounce-17653c0f.js} +6 -4
  24. package/dist/cjs/{get-5aa7468c.js → get-1f552668.js} +1 -1
  25. package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
  26. package/dist/cjs/{index.es-ab3f2690.js → index.es-9110add6.js} +1 -3
  27. package/dist/cjs/index.js +859 -926
  28. package/dist/cjs/{inherits-e793003e.js → inherits-be4dfb6b.js} +4 -4
  29. package/dist/cjs/{main-bc4db521.js → main-88348b15.js} +35 -66
  30. package/dist/cjs/{moment-66a6a284.js → moment-575fe24c.js} +1 -1
  31. package/dist/esm/{ADInfeed-e5cefea5.js → ADInfeed-f1c1780e.js} +1 -1
  32. package/dist/esm/{AdSlot-78e48a2c.js → AdSlot-4ca0419a.js} +2 -2
  33. package/dist/esm/DeckContent.js +16 -16
  34. package/dist/esm/DeckQueue.js +7 -7
  35. package/dist/esm/{Dfp-d5fe1252.js → Dfp-d372854b.js} +1 -1
  36. package/dist/esm/{Figure-cc1affbe.js → Figure-2d14847b.js} +1 -1
  37. package/dist/esm/{GridContent-e3224519.js → GridContent-09330066.js} +11 -11
  38. package/dist/esm/GridContent.js +9 -9
  39. package/dist/esm/GroupDeck.js +5 -5
  40. package/dist/esm/IssueContentDeck.js +2 -2
  41. package/dist/esm/IssueDeck.js +2 -2
  42. package/dist/esm/MasterDeck.js +14 -14
  43. package/dist/esm/{Normal-c61851bf.js → Normal-7e1b2b80.js} +39 -39
  44. package/dist/esm/PublicationDeck.js +1 -1
  45. package/dist/esm/QueueDeckExpanded.js +8 -8
  46. package/dist/esm/{TaxonomyCard-b29aa7ac.js → TaxonomyCard-d49aa67a.js} +1 -1
  47. package/dist/esm/TaxonomyCard.js +2 -2
  48. package/dist/esm/TemplateNormal.js +5 -5
  49. package/dist/esm/ThumbnailCard.js +1 -1
  50. package/dist/esm/VideoSeriesListing.js +4 -4
  51. package/dist/esm/YoutubeGroup.js +5 -5
  52. package/dist/esm/{debounce-df468b0e.js → debounce-53693e2b.js} +6 -4
  53. package/dist/esm/{get-53653403.js → get-b3f4645d.js} +1 -1
  54. package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
  55. package/dist/esm/{index.es-938a3a58.js → index.es-29c1cef5.js} +1 -3
  56. package/dist/esm/index.js +856 -923
  57. package/dist/esm/{main-7d1b3c98.js → main-273675e1.js} +34 -65
  58. package/dist/esm/{moment-12415288.js → moment-e2f9b20c.js} +1 -1
  59. 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 main_39, c as main_40 } from './main-7d1b3c98.js';
6
+ import { m as main_36, c as main_37 } from './main-273675e1.js';
7
7
  import { _ as _slicedToArray } from './slicedToArray-04e02710.js';
8
- import { D as DFPAdSlot } from './AdSlot-78e48a2c.js';
9
- import { g as get_1 } from './get-53653403.js';
8
+ import { D as DFPAdSlot } from './AdSlot-4ca0419a.js';
9
+ import { g as get_1 } from './get-b3f4645d.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 (!main_39 && window.innerWidth >= 768) {
427
+ if (!main_36 && 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
- (!main_39 || showRightAd) && React__default.createElement(
487
+ (!main_36 || 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
- <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
- />
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: main_40 ? 'bottom-nav ios-nav' : 'bottom-nav ', variant: 'dark', expand: 'xl', bg: 'primary', sticky: 'top', ref: navRef },
931
+ { id: 'navbar-ham', className: main_37 ? '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
- <MagazineNav
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: main_40 ? 'bottom-nav ios-nav' : 'bottom-nav android-nav',
1183
+ className: main_37 ? '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: !main_39 && isOpen ? 'nav-open' : 'nav-close', style: { zIndex: '99999' } },
1794
+ { className: !main_36 && 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 (main_39) {
2086
+ if (main_36) {
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-51a80699.js';
8
+ import { i as imageUrlBuilder } from './index-73819142.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-df468b0e.js';
10
+ import { l as lib_3 } from './debounce-53693e2b.js';
11
11
  import 'prop-types';
12
12
  import 'react-bootstrap/Card';
13
- import { m as moment } from './moment-12415288.js';
13
+ import { m as moment } from './moment-e2f9b20c.js';
14
14
  import { useRouter } from 'next/router';
15
- import { I as InfiniteScroll } from './index.es-938a3a58.js';
15
+ import { I as InfiniteScroll } from './index.es-29c1cef5.js';
16
16
  import 'react-dom';
17
17
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
18
- import { i as imageUrlBuilder } from './index-51a80699.js';
18
+ import { i as imageUrlBuilder } from './index-73819142.js';
19
19
  import { L as LazyLoad } from './index-5f9f807a.js';
20
- import { m as main_39 } from './main-7d1b3c98.js';
20
+ import { m as main_36 } from './main-273675e1.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-78e48a2c.js';
23
+ import './AdSlot-4ca0419a.js';
24
24
  import './promise-2592a80a.js';
25
- import { A as ADInfeed } from './ADInfeed-e5cefea5.js';
25
+ import { A as ADInfeed } from './ADInfeed-f1c1780e.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 (main_39 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0) {
337
+ if (main_36 && 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-51a80699.js';
8
+ import { n as node, i as imageUrlBuilder } from './index-73819142.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
 
@@ -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-51a80699.js';
12
+ import './index-73819142.js';
13
13
  import './index-5f9f807a.js';
14
- export { T as default } from './TaxonomyCard-b29aa7ac.js';
14
+ export { T as default } from './TaxonomyCard-d49aa67a.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-df468b0e.js';
7
+ import './debounce-53693e2b.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-7d1b3c98.js';
13
+ import './main-273675e1.js';
14
14
  import './slicedToArray-04e02710.js';
15
- import './AdSlot-78e48a2c.js';
15
+ import './AdSlot-4ca0419a.js';
16
16
  import './promise-2592a80a.js';
17
- import './get-53653403.js';
17
+ import './get-b3f4645d.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-c61851bf.js';
22
+ export { T as default } from './Normal-7e1b2b80.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-51a80699.js';
5
+ import { i as imageUrlBuilder } from './index-73819142.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-df468b0e.js';
10
+ import { d as debounce_1, l as lib_3 } from './debounce-53693e2b.js';
11
11
  import 'prop-types';
12
12
  import Container from 'react-bootstrap/Container';
13
- import './moment-12415288.js';
13
+ import './moment-e2f9b20c.js';
14
14
  import { withRouter } from 'next/router';
15
- import { I as InfiniteScroll } from './index.es-938a3a58.js';
15
+ import { I as InfiniteScroll } from './index.es-29c1cef5.js';
16
16
  import 'react-dom';
17
17
  import { V as VisibilitySensor } from './visibility-sensor-0baa4eea.js';
18
- import './index-51a80699.js';
18
+ import './index-73819142.js';
19
19
  import './index-5f9f807a.js';
20
20
  import './slicedToArray-04e02710.js';
21
21
  import './smoothscroll-4b699764.js';
@@ -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-51a80699.js';
10
+ import { i as imageUrlBuilder } from './index-73819142.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,13 +821,15 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
821
821
  });
822
822
 
823
823
  if (_this5.lazyLoadIsEnabled()) {
824
+ var args = [];
825
+
824
826
  var config = _this5.getLazyLoadConfig();
825
827
 
826
- if (config) {
827
- pubadsService.enableLazyLoad(config);
828
- } else {
829
- pubadsService.enableLazyLoad();
828
+ if (config !== null) {
829
+ args.push(config);
830
830
  }
831
+
832
+ pubadsService.enableLazyLoad.call(args);
831
833
  }
832
834
 
833
835
  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-df468b0e.js';
1
+ import { f as isSymbol_1, g as isObject_1, _ as _baseGetTag, b as _root, h as _Symbol } from './debounce-53693e2b.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,12 +375,11 @@ function urlBuilder(options) {
375
375
  var client = options;
376
376
  if (isSanityClient(client)) {
377
377
  // Inherit config from client
378
- var _a = client.clientConfig, apiUrl = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
379
- var apiHost = apiUrl || 'https://api.sanity.io';
378
+ var _a = client.clientConfig, apiHost = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
380
379
  return new ImageUrlBuilder(null, {
381
380
  baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
382
381
  projectId: projectId,
383
- dataset: dataset,
382
+ dataset: dataset
384
383
  });
385
384
  }
386
385
  // Or just accept the options as given
@@ -393,7 +392,7 @@ var ImageUrlBuilder = /** @class */ (function () {
393
392
  ? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
394
393
  }
395
394
  ImageUrlBuilder.prototype.withOptions = function (options) {
396
- var baseUrl = options.baseUrl || this.options.baseUrl;
395
+ var baseUrl = options.baseUrl || '';
397
396
  var newOptions = { baseUrl: baseUrl };
398
397
  for (var key in options) {
399
398
  if (options.hasOwnProperty(key)) {
@@ -521,7 +520,7 @@ var ImageUrlBuilder = /** @class */ (function () {
521
520
  ImageUrlBuilder.prototype.url = function () {
522
521
  return urlForImage_1$1.default(this.options);
523
522
  };
524
- // Alias for url()
523
+ // Synonym for url()
525
524
  ImageUrlBuilder.prototype.toString = function () {
526
525
  return this.url();
527
526
  };
@@ -263,9 +263,6 @@ 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
- });
269
266
  }
270
267
  requestAnimationFrame(function () {
271
268
  // this._infScroll
@@ -372,6 +369,7 @@ var InfiniteScroll = /** @class */ (function (_super) {
372
369
  // update state when new data was sent in
373
370
  this.setState({
374
371
  showLoader: false,
372
+ pullToRefreshThresholdBreached: false,
375
373
  });
376
374
  };
377
375
  InfiniteScroll.prototype.isElementAtBottom = function (target, scrollThreshold) {