@mjhls/mjh-framework 1.0.654-hamresize-v2 → 1.0.655

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 (144) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +3 -3
  4. package/dist/cjs/AD300x250x600.js +3 -3
  5. package/dist/cjs/AD728x90.js +4 -4
  6. package/dist/cjs/ADFloatingFooter.js +2 -2
  7. package/dist/cjs/ADGutter.js +2 -2
  8. package/dist/cjs/ADSkyscraper.js +2 -2
  9. package/dist/cjs/ADSponsoredResources.js +2 -2
  10. package/dist/cjs/ADWebcast.js +2 -2
  11. package/dist/cjs/ADWelcome.js +2 -2
  12. package/dist/cjs/AdSlot.js +2 -2
  13. package/dist/cjs/AdSlotsProvider.js +1 -1
  14. package/dist/cjs/ArticleSeriesListing.js +4 -4
  15. package/dist/cjs/Auth.js +506 -255
  16. package/dist/cjs/{BlockContent-80b15fac.js → BlockContent-88f69acd.js} +1 -1
  17. package/dist/cjs/CMEDeck.js +5 -5
  18. package/dist/cjs/Column3.js +4 -4
  19. package/dist/cjs/ConferenceArticleCard.js +2 -2
  20. package/dist/cjs/DeckContent.js +7 -7
  21. package/dist/cjs/DeckQueue.js +6 -6
  22. package/dist/cjs/{Dfp-390337bf.js → Dfp-b2bc3b97.js} +1 -1
  23. package/dist/cjs/EventsDeck.js +5 -5
  24. package/dist/cjs/ExternalResources.js +7 -7
  25. package/dist/cjs/Feature.js +3 -3
  26. package/dist/cjs/ForbesHero.js +2 -2
  27. package/dist/cjs/GridContent.js +11 -11
  28. package/dist/cjs/GridHero.js +2 -2
  29. package/dist/cjs/GroupDeck.js +1 -1
  30. package/dist/cjs/HamMagazine.js +6 -6
  31. package/dist/cjs/Hero.js +1 -1
  32. package/dist/cjs/HorizontalHero.js +2 -2
  33. package/dist/cjs/IssueContentDeck.js +2 -2
  34. package/dist/cjs/IssueDeck.js +2 -2
  35. package/dist/cjs/IssueLanding.js +8 -8
  36. package/dist/cjs/LeftNav.js +2 -2
  37. package/dist/cjs/MasterDeck.js +9 -9
  38. package/dist/cjs/NavMagazine.js +4 -4
  39. package/dist/cjs/NavNative.js +2 -2
  40. package/dist/cjs/OncliveHero.js +2 -2
  41. package/dist/cjs/OncliveLargeHero.js +2 -2
  42. package/dist/cjs/PartnerDetailListing.js +14 -1211
  43. package/dist/cjs/PublicationDeck.js +2 -2
  44. package/dist/cjs/QueueDeckExpanded.js +10 -10
  45. package/dist/cjs/RecentNews.js +2 -2
  46. package/dist/cjs/RelatedContent.js +2 -2
  47. package/dist/cjs/{SocialSearchComponent-81a50f81.js → SocialSearchComponent-962b1344.js} +5 -5
  48. package/dist/cjs/TaxonomyCard.js +2 -2
  49. package/dist/cjs/TemplateNormal.js +3 -3
  50. package/dist/cjs/ThumbnailCard.js +1 -1
  51. package/dist/cjs/Ustream.js +2 -2
  52. package/dist/cjs/VerticalHero.js +2 -2
  53. package/dist/cjs/VideoSeriesCard.js +2 -2
  54. package/dist/cjs/VideoSeriesListing.js +3 -3
  55. package/dist/cjs/View.js +15 -15
  56. package/dist/cjs/YahooHero.js +2 -2
  57. package/dist/cjs/YoutubeGroup.js +1 -1
  58. package/dist/cjs/getRelatedArticle.js +5 -354
  59. package/dist/cjs/getSerializers.js +6 -6
  60. package/dist/cjs/{index-099d45ae.js → index-2d0a4911.js} +4 -6
  61. package/dist/cjs/{index-9176613a.js → index-47e709f6.js} +97 -35
  62. package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
  63. package/dist/cjs/{index-39beccb3.js → index-b5eb3ff8.js} +18 -18
  64. package/dist/cjs/{index.es-9110add6.js → index.es-ab3f2690.js} +3 -1
  65. package/dist/cjs/index.js +16 -15
  66. package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
  67. package/dist/cjs/{main-a4cb15bb.js → main-b6c96c8d.js} +67 -36
  68. package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
  69. package/dist/cjs/urlFor.js +1 -1
  70. package/dist/esm/AD.js +1 -1
  71. package/dist/esm/AD300x250.js +3 -3
  72. package/dist/esm/AD300x250x600.js +3 -3
  73. package/dist/esm/AD728x90.js +4 -4
  74. package/dist/esm/ADFloatingFooter.js +2 -2
  75. package/dist/esm/ADGutter.js +2 -2
  76. package/dist/esm/ADSkyscraper.js +2 -2
  77. package/dist/esm/ADSponsoredResources.js +2 -2
  78. package/dist/esm/ADWebcast.js +2 -2
  79. package/dist/esm/ADWelcome.js +2 -2
  80. package/dist/esm/AdSlot.js +2 -2
  81. package/dist/esm/AdSlotsProvider.js +1 -1
  82. package/dist/esm/ArticleSeriesListing.js +4 -4
  83. package/dist/esm/Auth.js +501 -250
  84. package/dist/esm/{BlockContent-c409aca5.js → BlockContent-a614acdf.js} +1 -1
  85. package/dist/esm/CMEDeck.js +5 -5
  86. package/dist/esm/Column3.js +4 -4
  87. package/dist/esm/ConferenceArticleCard.js +2 -2
  88. package/dist/esm/DeckContent.js +7 -7
  89. package/dist/esm/DeckQueue.js +6 -6
  90. package/dist/esm/{Dfp-741c01be.js → Dfp-8a8fca18.js} +1 -1
  91. package/dist/esm/EventsDeck.js +5 -5
  92. package/dist/esm/ExternalResources.js +7 -7
  93. package/dist/esm/Feature.js +3 -3
  94. package/dist/esm/ForbesHero.js +2 -2
  95. package/dist/esm/GridContent.js +11 -11
  96. package/dist/esm/GridHero.js +2 -2
  97. package/dist/esm/GroupDeck.js +1 -1
  98. package/dist/esm/HamMagazine.js +6 -6
  99. package/dist/esm/Hero.js +1 -1
  100. package/dist/esm/HorizontalHero.js +2 -2
  101. package/dist/esm/IssueContentDeck.js +2 -2
  102. package/dist/esm/IssueDeck.js +2 -2
  103. package/dist/esm/IssueLanding.js +8 -8
  104. package/dist/esm/LeftNav.js +2 -2
  105. package/dist/esm/MasterDeck.js +9 -9
  106. package/dist/esm/NavMagazine.js +4 -4
  107. package/dist/esm/NavNative.js +2 -2
  108. package/dist/esm/OncliveHero.js +2 -2
  109. package/dist/esm/OncliveLargeHero.js +2 -2
  110. package/dist/esm/PartnerDetailListing.js +14 -1210
  111. package/dist/esm/PublicationDeck.js +2 -2
  112. package/dist/esm/QueueDeckExpanded.js +10 -10
  113. package/dist/esm/RecentNews.js +2 -2
  114. package/dist/esm/RelatedContent.js +2 -2
  115. package/dist/esm/{SocialSearchComponent-55960ec4.js → SocialSearchComponent-75527dfe.js} +5 -5
  116. package/dist/esm/TaxonomyCard.js +2 -2
  117. package/dist/esm/TemplateNormal.js +3 -3
  118. package/dist/esm/ThumbnailCard.js +1 -1
  119. package/dist/esm/Ustream.js +2 -2
  120. package/dist/esm/VerticalHero.js +2 -2
  121. package/dist/esm/VideoSeriesCard.js +2 -2
  122. package/dist/esm/VideoSeriesListing.js +3 -3
  123. package/dist/esm/View.js +15 -15
  124. package/dist/esm/YahooHero.js +2 -2
  125. package/dist/esm/YoutubeGroup.js +1 -1
  126. package/dist/esm/getRelatedArticle.js +5 -354
  127. package/dist/esm/getSerializers.js +6 -6
  128. package/dist/esm/{index-3849e3fe.js → index-51a80699.js} +18 -18
  129. package/dist/esm/{index-3f4dd6f2.js → index-93ec3c59.js} +4 -6
  130. package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
  131. package/dist/esm/{index-11dc87c2.js → index-ed279e5e.js} +97 -35
  132. package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
  133. package/dist/esm/index.js +15 -14
  134. package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
  135. package/dist/esm/{main-5d1e4bd3.js → main-0465b2a0.js} +65 -34
  136. package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
  137. package/dist/esm/urlFor.js +1 -1
  138. package/package.json +3 -3
  139. package/dist/cjs/index-bd6c9f56.js +0 -211
  140. package/dist/esm/index-db3bb315.js +0 -207
  141. /package/dist/cjs/{ADInfeed-f886da72.js → ADInfeed-eaa6c661.js} +0 -0
  142. /package/dist/cjs/{ADlgInfeed-7aa459cc.js → ADlgInfeed-f25eb4f7.js} +0 -0
  143. /package/dist/esm/{ADInfeed-67097b02.js → ADInfeed-c27997a3.js} +0 -0
  144. /package/dist/esm/{ADlgInfeed-0bd34fef.js → ADlgInfeed-41c3909c.js} +0 -0
@@ -4,20 +4,20 @@ import { _ as _extends } from './extends-cc5da797.js';
4
4
  import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-7ee3e0c1.js';
5
5
  import { _ as _typeof$1 } from './typeof-08f2c380.js';
6
6
  import React__default, { useState, useEffect, useRef } from 'react';
7
- import { l as lib_3 } from './index-3f4dd6f2.js';
7
+ import { l as lib_3 } from './index-93ec3c59.js';
8
8
  import PropTypes from 'prop-types';
9
9
  import Row from 'react-bootstrap/Row';
10
10
  import Col from 'react-bootstrap/Col';
11
- import { m as moment } from './moment-e2f9b20c.js';
11
+ import { m as moment } from './moment-12415288.js';
12
12
  import Router, { useRouter } from 'next/router';
13
- import { i as imageUrlBuilder } from './index-3849e3fe.js';
13
+ import { i as imageUrlBuilder } from './index-51a80699.js';
14
14
  import { L as LazyLoad } from './index-5f9f807a.js';
15
- import { b as main_16, c as main_35, m as main_36 } from './main-5d1e4bd3.js';
15
+ import { b as main_16, c as main_38, m as main_39 } from './main-0465b2a0.js';
16
16
  import { h as html_decode_1 } from './entities-7cc3bf45.js';
17
17
  import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
18
18
  import { B as Beam, S as Segment } from './beam-681a9749.js';
19
19
  import DFPAdSlot from './AdSlot.js';
20
- import { B as BlockContent } from './BlockContent-c409aca5.js';
20
+ import { B as BlockContent } from './BlockContent-a614acdf.js';
21
21
  import { g as getYoutubeId } from './smoothscroll-4b699764.js';
22
22
  import GroupDeck from './GroupDeck.js';
23
23
  import { Carousel, Table, Figure as Figure$1, Button, ProgressBar, Card, Row as Row$1, Col as Col$1 } from 'react-bootstrap';
@@ -7497,7 +7497,7 @@ var Poll = function Poll(_ref) {
7497
7497
  );
7498
7498
  };
7499
7499
 
7500
- var numberOfPaginations = main_35 ? 4 : 10;
7500
+ var numberOfPaginations = main_38 ? 4 : 10;
7501
7501
 
7502
7502
  var Quiz = function Quiz(_ref) {
7503
7503
  var quizzes = _ref.quizzes,
@@ -7610,7 +7610,7 @@ var Quiz = function Quiz(_ref) {
7610
7610
  var renderPagination = function renderPagination() {
7611
7611
  return React__default.createElement(
7612
7612
  Pagination,
7613
- { className: 'p-0 m-0', size: main_35 && 'sm' },
7613
+ { className: 'p-0 m-0', size: main_38 && 'sm' },
7614
7614
  React__default.createElement(Pagination.First, { onClick: function onClick() {
7615
7615
  return changePage('first');
7616
7616
  }, disabled: currentPage === 1 }),
@@ -8030,7 +8030,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8030
8030
  var refArray = useRef([]);
8031
8031
  var adRefArray = useRef([]);
8032
8032
 
8033
- var _ref2 = main_36 ? useState(100) : useState(-25),
8033
+ var _ref2 = main_39 ? useState(100) : useState(-25),
8034
8034
  _ref3 = _slicedToArray(_ref2, 2),
8035
8035
  NavoffsetTop = _ref3[0],
8036
8036
  setNavoffsetTop = _ref3[1];
@@ -8108,7 +8108,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8108
8108
 
8109
8109
  useEffect(function () {
8110
8110
  try {
8111
- if (main_36) {
8111
+ if (main_39) {
8112
8112
  setNavoffsetTop(document.getElementById('navbar-ham').offsetHeight - 15);
8113
8113
  }
8114
8114
  } catch (e) {}
@@ -8188,7 +8188,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8188
8188
 
8189
8189
  useEffect(function () {
8190
8190
  if (!firstLoad) {
8191
- if (main_36) {
8191
+ if (main_39) {
8192
8192
  grabLoadedAds();
8193
8193
  } else {
8194
8194
  scrollToArticle();
@@ -8212,7 +8212,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8212
8212
  //const activeArticle = path
8213
8213
  //let targeting = getTargeting({ article: activeArticle, cpModificationRequired, position: props.position, prevUrl })
8214
8214
 
8215
- if (!main_36) {
8215
+ if (!main_39) {
8216
8216
  lib_3.getGoogletag().then(function (googletag) {
8217
8217
  if (window.googletag && googletag.pubadsReady) {
8218
8218
  lib_3.refresh();
@@ -8220,7 +8220,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8220
8220
  });
8221
8221
  }
8222
8222
  //Refresh leaderboard ad on mobile
8223
- if (main_36) {
8223
+ if (main_39) {
8224
8224
  var leaderboardSlotId = '';
8225
8225
  lib_3.getGoogletag().then(function (googletag) {
8226
8226
  if (window.googletag && googletag.pubadsReady) {
@@ -8252,7 +8252,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8252
8252
  React__default.createElement(
8253
8253
  'div',
8254
8254
  { className: 'ad-box', style: { textAlign: 'center' } },
8255
- main_36 && Ads.map(function (ad, index) {
8255
+ main_39 && Ads.map(function (ad, index) {
8256
8256
  if (index === 0) {
8257
8257
  return React__default.createElement(
8258
8258
  'div',
@@ -8350,7 +8350,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8350
8350
  React__default.createElement(
8351
8351
  'div',
8352
8352
  { className: 'ad-box', style: { textAlign: 'center' } },
8353
- main_36 && nodes.articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8353
+ main_39 && nodes.articles.length - 1 !== index && Ads.map(function (ad, innerIndex) {
8354
8354
  if (innerIndex === 0) {
8355
8355
  return React__default.createElement(
8356
8356
  'div',
@@ -8384,16 +8384,6 @@ var ArticleSeries = function ArticleSeries(_ref) {
8384
8384
  );
8385
8385
  };
8386
8386
 
8387
- var urlFor$3 = function urlFor(source, client) {
8388
- var builder = imageUrlBuilder(client);
8389
- return builder.image(source).auto('format');
8390
- };
8391
-
8392
- var compareProps = function compareProps(prevProps, nextProps) {
8393
- if (nextProps.node.asset && nextProps.node.asset._ref) {
8394
- return prevProps.node.asset._ref === nextProps.node.asset._ref;
8395
- }
8396
- };
8397
8387
  function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
8398
8388
  useEffect(function () {
8399
8389
  function handleClickOutside(event) {
@@ -8408,6 +8398,34 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
8408
8398
  };
8409
8399
  }, [ref]);
8410
8400
  }
8401
+
8402
+ var renderLightbox = function renderLightbox(openImg, openImgSrc, setOpenImg, setOpenImgSrc) {
8403
+ var lightboxImage = useRef(null);
8404
+ var lightboxContainer = useRef(null);
8405
+ useOutsideAlerter(lightboxImage, lightboxContainer, setOpenImg, setOpenImgSrc);
8406
+ return React__default.createElement(
8407
+ 'div',
8408
+ { ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
8409
+ React__default.createElement('img', { ref: lightboxImage, src: openImgSrc }),
8410
+ React__default.createElement(
8411
+ 'style',
8412
+ { jsx: 'true' },
8413
+ '\n /*Eliminates padding, centers the thumbnail */\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
8414
+ )
8415
+ );
8416
+ };
8417
+
8418
+ var urlFor$3 = function urlFor(source, client) {
8419
+ var builder = imageUrlBuilder(client);
8420
+ return builder.image(source).auto('format');
8421
+ };
8422
+
8423
+ var compareProps = function compareProps(prevProps, nextProps) {
8424
+ if (nextProps.node.asset && nextProps.node.asset._ref) {
8425
+ return prevProps.node.asset._ref === nextProps.node.asset._ref;
8426
+ }
8427
+ };
8428
+
8411
8429
  var FigureComponent = function FigureComponent(props) {
8412
8430
  var _useState = useState(false),
8413
8431
  _useState2 = _slicedToArray(_useState, 2),
@@ -8419,11 +8437,32 @@ var FigureComponent = function FigureComponent(props) {
8419
8437
  openImgSrc = _useState4[0],
8420
8438
  setOpenImgSrc = _useState4[1];
8421
8439
 
8422
- var lightboxImage = useRef(null);
8423
- var lightboxContainer = useRef(null);
8424
- useOutsideAlerter(lightboxImage, lightboxContainer, setOpenImg, setOpenImgSrc);
8425
8440
  if (typeof window === 'undefined') return null;
8426
8441
 
8442
+ useEffect(function () {
8443
+ var lightboxCaptions = document.querySelectorAll('.lightbox-caption');
8444
+ if (lightboxCaptions && lightboxCaptions.length > 0) {
8445
+ lightboxCaptions.forEach(function (mediaLink) {
8446
+ var prevSibling = mediaLink.previousSibling;
8447
+ if (prevSibling && prevSibling.textContent && prevSibling.textContent !== '') {
8448
+ prevSibling.style.display = 'inline';
8449
+ prevSibling.style.paddingRight = '0';
8450
+ prevSibling.style.marginRight = '0';
8451
+ }
8452
+ var nextSibling = mediaLink.nextSibling;
8453
+ nextSibling.remove();
8454
+ var parentNode = mediaLink.parentNode;
8455
+ parentNode.appendChild(nextSibling);
8456
+ nextSibling = mediaLink.nextSibling;
8457
+ if (nextSibling && nextSibling.textContent && nextSibling.textContent !== '') {
8458
+ nextSibling.style.display = 'inline';
8459
+ nextSibling.style.paddingLeft = '0';
8460
+ nextSibling.style.marginLeft = '0';
8461
+ }
8462
+ });
8463
+ }
8464
+ }, []);
8465
+
8427
8466
  var node = props.node,
8428
8467
  client = props.client;
8429
8468
 
@@ -8439,7 +8478,9 @@ var FigureComponent = function FigureComponent(props) {
8439
8478
  _node$class_name = node.class_name,
8440
8479
  class_name = _node$class_name === undefined ? 'd-block' : _node$class_name,
8441
8480
  _node$disableTextWrap = node.disableTextWrap,
8442
- disableTextWrap = _node$disableTextWrap === undefined ? false : _node$disableTextWrap;
8481
+ disableTextWrap = _node$disableTextWrap === undefined ? false : _node$disableTextWrap,
8482
+ _node$lightBoxmode = node.lightBoxmode,
8483
+ lightBoxmode = _node$lightBoxmode === undefined ? false : _node$lightBoxmode;
8443
8484
  var _node$widthP = node.widthP,
8444
8485
  widthP = _node$widthP === undefined ? 'auto' : _node$widthP;
8445
8486
 
@@ -8490,6 +8531,31 @@ var FigureComponent = function FigureComponent(props) {
8490
8531
  margin: figureMargin
8491
8532
  };
8492
8533
 
8534
+ if (lightBoxmode) {
8535
+ if (link && caption) {
8536
+ return React__default.createElement(
8537
+ 'a',
8538
+ { target: blank ? '_blank' : '_self', href: link },
8539
+ React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
8540
+ );
8541
+ } else if (node && node.asset && node.asset._ref && caption) {
8542
+ return React__default.createElement(
8543
+ React__default.Fragment,
8544
+ null,
8545
+ React__default.createElement('div', {
8546
+ style: { display: 'inline', cursor: 'pointer', textDecoration: 'underline', paddingLeft: '0.25rem', paddingRight: '0.25rem' },
8547
+ className: 'lightbox-caption',
8548
+ onClick: function onClick() {
8549
+ setOpenImgSrc(urlFor$3(node, client).url());
8550
+ setOpenImg(true);
8551
+ },
8552
+ dangerouslySetInnerHTML: { __html: '<span>' + caption + '</span>' }
8553
+ }),
8554
+ renderLightbox(openImg, openImgSrc, setOpenImg, setOpenImgSrc)
8555
+ );
8556
+ }
8557
+ }
8558
+
8493
8559
  return React__default.createElement(
8494
8560
  React__default.Fragment,
8495
8561
  null,
@@ -8515,17 +8581,13 @@ var FigureComponent = function FigureComponent(props) {
8515
8581
  }
8516
8582
  }),
8517
8583
  caption && React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
8518
- )
8519
- ),
8520
- React__default.createElement(
8521
- 'div',
8522
- { ref: lightboxContainer, className: 'lightbox-target ' + (openImg ? 'open' : 'close') },
8523
- React__default.createElement('img', { ref: lightboxImage, src: openImgSrc })
8584
+ ),
8585
+ renderLightbox(openImg, openImgSrc, setOpenImg, setOpenImgSrc)
8524
8586
  ),
8525
8587
  React__default.createElement(
8526
8588
  'style',
8527
8589
  { jsx: 'true' },
8528
- '\n figure-caption {\n font-size: 90%;\n color: #6c757d;\n }\n /*Eliminates padding, centers the thumbnail */\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
8590
+ '\n .figure-caption {\n font-size: 90%;\n color: #6c757d;\n }\n '
8529
8591
  )
8530
8592
  );
8531
8593
  };
@@ -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) {
package/dist/esm/index.js CHANGED
@@ -14,22 +14,22 @@ import './web.dom.iterable-8956f9a5.js';
14
14
  import './typeof-08f2c380.js';
15
15
  import './_is-array-49698029.js';
16
16
  import 'react';
17
- import './index-3f4dd6f2.js';
17
+ import './index-93ec3c59.js';
18
18
  import 'prop-types';
19
19
  import 'react-bootstrap/Container';
20
20
  import 'react-bootstrap/Row';
21
21
  import 'react-bootstrap/Col';
22
22
  import 'react-bootstrap/Card';
23
- import './moment-e2f9b20c.js';
23
+ import './moment-12415288.js';
24
24
  import 'next/router';
25
25
  import './isSymbol-807e927e.js';
26
26
  import './debounce-1a993acf.js';
27
- import './index.es-29c1cef5.js';
27
+ import './index.es-938a3a58.js';
28
28
  import 'react-dom';
29
29
  import './visibility-sensor-0baa4eea.js';
30
- import './index-3849e3fe.js';
30
+ import './index-51a80699.js';
31
31
  import './index-5f9f807a.js';
32
- import './main-5d1e4bd3.js';
32
+ import './main-0465b2a0.js';
33
33
  import './entities-7cc3bf45.js';
34
34
  import './stringify-008c8802.js';
35
35
  import './slicedToArray-7021e5df.js';
@@ -37,10 +37,10 @@ import './asyncToGenerator-7c654f36.js';
37
37
  import './_set-species-cede29f8.js';
38
38
  export { B as Beam, S as Segment } from './beam-681a9749.js';
39
39
  export { default as AdSlot } from './AdSlot.js';
40
- import './ADInfeed-67097b02.js';
40
+ import './ADInfeed-c27997a3.js';
41
41
  export { default as DeckContent } from './DeckContent.js';
42
- import './lodash-ec8c6b48.js';
43
- import './ADlgInfeed-0bd34fef.js';
42
+ import './lodash-17fdfebb.js';
43
+ import './ADlgInfeed-41c3909c.js';
44
44
  import './getContentCategory-15dcc413.js';
45
45
  import './get-5ee14cda.js';
46
46
  export { default as AD } from './AD.js';
@@ -49,7 +49,7 @@ export { default as GridContent } from './GridContent.js';
49
49
  export { default as DeckQueue } from './DeckQueue.js';
50
50
  import 'react-bootstrap/Media';
51
51
  export { default as ThumbnailCard } from './ThumbnailCard.js';
52
- import './BlockContent-c409aca5.js';
52
+ import './BlockContent-a614acdf.js';
53
53
  import './react-social-icons-a7d5c5c7.js';
54
54
  export { default as TaxonomyCard } from './TaxonomyCard.js';
55
55
  export { default as RolesDeck } from './RolesDeck.js';
@@ -72,10 +72,10 @@ import './defineProperty-b798470d.js';
72
72
  export { default as EventsDeck } from './EventsDeck.js';
73
73
  import 'react-bootstrap/Spinner';
74
74
  import 'react-bootstrap/Form';
75
- import './index-ef6d5dcf.js';
75
+ import './index-d2f90501.js';
76
76
  import './js.cookie-6874175c.js';
77
77
  export { default as CMEDeck } from './CMEDeck.js';
78
- export { g as getSerializers } from './index-11dc87c2.js';
78
+ export { g as getSerializers } from './index-ed279e5e.js';
79
79
  import './util-7700fc59.js';
80
80
  import './brightcove-react-player-loader.es-83f53e4e.js';
81
81
  import 'react-bootstrap/Pagination';
@@ -106,7 +106,7 @@ import './NavFooter-e27bd93b.js';
106
106
  import './index.esm-73e847d2.js';
107
107
  export { default as SocialIcons } from './SocialIcons.js';
108
108
  import 'react-bootstrap/FormControl';
109
- import './SocialSearchComponent-55960ec4.js';
109
+ import './SocialSearchComponent-75527dfe.js';
110
110
  export { default as NavMagazine } from './NavMagazine.js';
111
111
  export { NavNative } from './NavNative.js';
112
112
  export { default as Search } from './Search.js';
@@ -153,9 +153,9 @@ export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
153
153
  export { default as KMTracker } from './KMTracker.js';
154
154
  export { default as getSeriesDetail } from './getSeriesDetail.js';
155
155
  export { default as SetCookie } from './SetCookie.js';
156
- import './index-db3bb315.js';
157
- export { default as getRelatedArticle } from './getRelatedArticle.js';
156
+ import 'nookies';
158
157
  export { default as getQuery } from './getQuery.js';
158
+ export { default as getRelatedArticle } from './getRelatedArticle.js';
159
159
  export { default as Auth } from './Auth.js';
160
160
  import 'swr';
161
161
  import 'passport-local';
@@ -165,4 +165,5 @@ export { default as View } from './View.js';
165
165
  export { default as getKeywords } from './getKeywords.js';
166
166
  export { default as urlFor } from './urlFor.js';
167
167
  import './style-inject.es-1f59c1d0.js';
168
+ import 'react-twitter-embed';
168
169
  export { default as PartnerDetailListing } from './PartnerDetailListing.js';
@@ -7,7 +7,7 @@ var lodash = createCommonjsModule(function (module, exports) {
7
7
  var undefined$1;
8
8
 
9
9
  /** Used as the semantic version number. */
10
- var VERSION = '4.17.20';
10
+ var VERSION = '4.17.15';
11
11
 
12
12
  /** Used as the size to enable large array optimizations. */
13
13
  var LARGE_ARRAY_SIZE = 200;
@@ -3714,21 +3714,8 @@ var lodash = createCommonjsModule(function (module, exports) {
3714
3714
  * @returns {Array} Returns the new sorted array.
3715
3715
  */
3716
3716
  function baseOrderBy(collection, iteratees, orders) {
3717
- if (iteratees.length) {
3718
- iteratees = arrayMap(iteratees, function(iteratee) {
3719
- if (isArray(iteratee)) {
3720
- return function(value) {
3721
- return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
3722
- }
3723
- }
3724
- return iteratee;
3725
- });
3726
- } else {
3727
- iteratees = [identity];
3728
- }
3729
-
3730
3717
  var index = -1;
3731
- iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
3718
+ iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee()));
3732
3719
 
3733
3720
  var result = baseMap(collection, function(value, key, collection) {
3734
3721
  var criteria = arrayMap(iteratees, function(iteratee) {
@@ -3985,10 +3972,6 @@ var lodash = createCommonjsModule(function (module, exports) {
3985
3972
  var key = toKey(path[index]),
3986
3973
  newValue = value;
3987
3974
 
3988
- if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
3989
- return object;
3990
- }
3991
-
3992
3975
  if (index != lastIndex) {
3993
3976
  var objValue = nested[key];
3994
3977
  newValue = customizer ? customizer(objValue, key, nested) : undefined$1;
@@ -4141,14 +4124,11 @@ var lodash = createCommonjsModule(function (module, exports) {
4141
4124
  * into `array`.
4142
4125
  */
4143
4126
  function baseSortedIndexBy(array, value, iteratee, retHighest) {
4144
- var low = 0,
4145
- high = array == null ? 0 : array.length;
4146
- if (high === 0) {
4147
- return 0;
4148
- }
4149
-
4150
4127
  value = iteratee(value);
4151
- var valIsNaN = value !== value,
4128
+
4129
+ var low = 0,
4130
+ high = array == null ? 0 : array.length,
4131
+ valIsNaN = value !== value,
4152
4132
  valIsNull = value === null,
4153
4133
  valIsSymbol = isSymbol(value),
4154
4134
  valIsUndefined = value === undefined$1;
@@ -5633,11 +5613,10 @@ var lodash = createCommonjsModule(function (module, exports) {
5633
5613
  if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
5634
5614
  return false;
5635
5615
  }
5636
- // Check that cyclic values are equal.
5637
- var arrStacked = stack.get(array);
5638
- var othStacked = stack.get(other);
5639
- if (arrStacked && othStacked) {
5640
- return arrStacked == other && othStacked == array;
5616
+ // Assume cyclic values are equal.
5617
+ var stacked = stack.get(array);
5618
+ if (stacked && stack.get(other)) {
5619
+ return stacked == other;
5641
5620
  }
5642
5621
  var index = -1,
5643
5622
  result = true,
@@ -5799,11 +5778,10 @@ var lodash = createCommonjsModule(function (module, exports) {
5799
5778
  return false;
5800
5779
  }
5801
5780
  }
5802
- // Check that cyclic values are equal.
5803
- var objStacked = stack.get(object);
5804
- var othStacked = stack.get(other);
5805
- if (objStacked && othStacked) {
5806
- return objStacked == other && othStacked == object;
5781
+ // Assume cyclic values are equal.
5782
+ var stacked = stack.get(object);
5783
+ if (stacked && stack.get(other)) {
5784
+ return stacked == other;
5807
5785
  }
5808
5786
  var result = true;
5809
5787
  stack.set(object, other);
@@ -9184,10 +9162,6 @@ var lodash = createCommonjsModule(function (module, exports) {
9184
9162
  * // The `_.property` iteratee shorthand.
9185
9163
  * _.filter(users, 'active');
9186
9164
  * // => objects for ['barney']
9187
- *
9188
- * // Combining several predicates using `_.overEvery` or `_.overSome`.
9189
- * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
9190
- * // => objects for ['fred', 'barney']
9191
9165
  */
9192
9166
  function filter(collection, predicate) {
9193
9167
  var func = isArray(collection) ? arrayFilter : baseFilter;
@@ -9937,15 +9911,15 @@ var lodash = createCommonjsModule(function (module, exports) {
9937
9911
  * var users = [
9938
9912
  * { 'user': 'fred', 'age': 48 },
9939
9913
  * { 'user': 'barney', 'age': 36 },
9940
- * { 'user': 'fred', 'age': 30 },
9914
+ * { 'user': 'fred', 'age': 40 },
9941
9915
  * { 'user': 'barney', 'age': 34 }
9942
9916
  * ];
9943
9917
  *
9944
9918
  * _.sortBy(users, [function(o) { return o.user; }]);
9945
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
9919
+ * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
9946
9920
  *
9947
9921
  * _.sortBy(users, ['user', 'age']);
9948
- * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
9922
+ * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
9949
9923
  */
9950
9924
  var sortBy = baseRest(function(collection, iteratees) {
9951
9925
  if (collection == null) {
@@ -14820,11 +14794,11 @@ var lodash = createCommonjsModule(function (module, exports) {
14820
14794
 
14821
14795
  // Use a sourceURL for easier debugging.
14822
14796
  // The sourceURL gets injected into the source that's eval-ed, so be careful
14823
- // to normalize all kinds of whitespace, so e.g. newlines (and unicode versions of it) can't sneak in
14824
- // and escape the comment, thus injecting code that gets evaled.
14797
+ // with lookup (in case of e.g. prototype pollution), and strip newlines if any.
14798
+ // A newline wouldn't be a valid sourceURL anyway, and it'd enable code injection.
14825
14799
  var sourceURL = '//# sourceURL=' +
14826
14800
  (hasOwnProperty.call(options, 'sourceURL')
14827
- ? (options.sourceURL + '').replace(/\s/g, ' ')
14801
+ ? (options.sourceURL + '').replace(/[\r\n]/g, ' ')
14828
14802
  : ('lodash.templateSources[' + (++templateCounter) + ']')
14829
14803
  ) + '\n';
14830
14804
 
@@ -14857,6 +14831,8 @@ var lodash = createCommonjsModule(function (module, exports) {
14857
14831
 
14858
14832
  // If `variable` is not specified wrap a with-statement around the generated
14859
14833
  // code to add the data object to the top of the scope chain.
14834
+ // Like with sourceURL, we take care to not check the option's prototype,
14835
+ // as this configuration is a code injection vector.
14860
14836
  var variable = hasOwnProperty.call(options, 'variable') && options.variable;
14861
14837
  if (!variable) {
14862
14838
  source = 'with (obj) {\n' + source + '\n}\n';
@@ -15563,9 +15539,6 @@ var lodash = createCommonjsModule(function (module, exports) {
15563
15539
  * values against any array or object value, respectively. See `_.isEqual`
15564
15540
  * for a list of supported value comparisons.
15565
15541
  *
15566
- * **Note:** Multiple values can be checked by combining several matchers
15567
- * using `_.overSome`
15568
- *
15569
15542
  * @static
15570
15543
  * @memberOf _
15571
15544
  * @since 3.0.0
@@ -15581,10 +15554,6 @@ var lodash = createCommonjsModule(function (module, exports) {
15581
15554
  *
15582
15555
  * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
15583
15556
  * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
15584
- *
15585
- * // Checking for several possible values
15586
- * _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));
15587
- * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
15588
15557
  */
15589
15558
  function matches(source) {
15590
15559
  return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
@@ -15599,9 +15568,6 @@ var lodash = createCommonjsModule(function (module, exports) {
15599
15568
  * `srcValue` values against any array or object value, respectively. See
15600
15569
  * `_.isEqual` for a list of supported value comparisons.
15601
15570
  *
15602
- * **Note:** Multiple values can be checked by combining several matchers
15603
- * using `_.overSome`
15604
- *
15605
15571
  * @static
15606
15572
  * @memberOf _
15607
15573
  * @since 3.2.0
@@ -15618,10 +15584,6 @@ var lodash = createCommonjsModule(function (module, exports) {
15618
15584
  *
15619
15585
  * _.find(objects, _.matchesProperty('a', 4));
15620
15586
  * // => { 'a': 4, 'b': 5, 'c': 6 }
15621
- *
15622
- * // Checking for several possible values
15623
- * _.filter(objects, _.overSome([_.matchesProperty('a', 1), _.matchesProperty('a', 4)]));
15624
- * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
15625
15587
  */
15626
15588
  function matchesProperty(path, srcValue) {
15627
15589
  return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));
@@ -15845,10 +15807,6 @@ var lodash = createCommonjsModule(function (module, exports) {
15845
15807
  * Creates a function that checks if **all** of the `predicates` return
15846
15808
  * truthy when invoked with the arguments it receives.
15847
15809
  *
15848
- * Following shorthands are possible for providing predicates.
15849
- * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.
15850
- * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
15851
- *
15852
15810
  * @static
15853
15811
  * @memberOf _
15854
15812
  * @since 4.0.0
@@ -15875,10 +15833,6 @@ var lodash = createCommonjsModule(function (module, exports) {
15875
15833
  * Creates a function that checks if **any** of the `predicates` return
15876
15834
  * truthy when invoked with the arguments it receives.
15877
15835
  *
15878
- * Following shorthands are possible for providing predicates.
15879
- * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.
15880
- * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
15881
- *
15882
15836
  * @static
15883
15837
  * @memberOf _
15884
15838
  * @since 4.0.0
@@ -15898,9 +15852,6 @@ var lodash = createCommonjsModule(function (module, exports) {
15898
15852
  *
15899
15853
  * func(NaN);
15900
15854
  * // => false
15901
- *
15902
- * var matchesFunc = _.overSome([{ 'a': 1 }, { 'a': 2 }])
15903
- * var matchesPropertyFunc = _.overSome([['a', 1], ['a', 2]])
15904
15855
  */
15905
15856
  var overSome = createOver(arraySome);
15906
15857