@mjhls/mjh-framework 1.0.1067-iframe-test → 1.0.1067

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 (176) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +1 -2
  4. package/dist/cjs/AD300x250x600.js +1 -2
  5. package/dist/cjs/AD728x90.js +1 -2
  6. package/dist/cjs/ADFloatingFooter.js +1 -2
  7. package/dist/cjs/ADGutter.js +1 -2
  8. package/dist/cjs/ADSkyscraper.js +1 -2
  9. package/dist/cjs/ADSponsoredResources.js +1 -2
  10. package/dist/cjs/ADWebcast.js +1 -2
  11. package/dist/cjs/ADWelcome.js +1 -2
  12. package/dist/cjs/AdSlot.js +1 -2
  13. package/dist/cjs/AdSlotsProvider.js +1 -2
  14. package/dist/cjs/AlgoliaSearch.js +1024 -513
  15. package/dist/cjs/ArticleProgramLandingPage.js +3 -4
  16. package/dist/cjs/ArticleSeriesLandingPage.js +3 -4
  17. package/dist/cjs/ArticleSeriesListing.js +1 -2
  18. package/dist/cjs/AuthWrapper.js +294 -1476
  19. package/dist/cjs/CEDeckSupabase.js +2 -3
  20. package/dist/cjs/CMEDeck.js +1 -2
  21. package/dist/cjs/Column3.js +1 -2
  22. package/dist/cjs/ConferenceArticleCard.js +15 -15
  23. package/dist/cjs/ContentCardPaginated.js +4 -5
  24. package/dist/cjs/DeckContent.js +11 -12
  25. package/dist/cjs/DeckQueue.js +2 -3
  26. package/dist/cjs/DeckQueuePaginated.js +3 -4
  27. package/dist/cjs/{Dfp-c313a700.js → Dfp-67646058.js} +1 -2
  28. package/dist/cjs/EventsDeck.js +18 -18
  29. package/dist/cjs/ExternalResources.js +4 -5
  30. package/dist/cjs/GridContent.js +5 -6
  31. package/dist/cjs/GridContentPaginated.js +6 -7
  32. package/dist/cjs/GridHero.js +1 -1
  33. package/dist/cjs/HamMagazine.js +9 -9
  34. package/dist/cjs/HealthCareProfessionalModal.js +1 -1
  35. package/dist/cjs/Hero.js +1 -1
  36. package/dist/cjs/HorizontalArticleListing.js +3 -4
  37. package/dist/cjs/{ImageSlider-68db9d26.js → ImageSlider-62a43659.js} +149 -92
  38. package/dist/cjs/IssueLanding.js +34 -35
  39. package/dist/cjs/KMTracker.js +15 -15
  40. package/dist/cjs/LeftNav.js +1 -2
  41. package/dist/cjs/MasterDeck.js +11 -12
  42. package/dist/cjs/MasterDeckPaginated.js +12 -13
  43. package/dist/cjs/{MediaSeriesCard-20fb87c6.js → MediaSeriesCard-ce34b9ee.js} +2 -2
  44. package/dist/cjs/MediaSeriesLanding.js +13 -14
  45. package/dist/cjs/MediaSeriesLandingPaginated.js +14 -15
  46. package/dist/cjs/NavMagazine.js +10 -10
  47. package/dist/cjs/NavNative.js +9 -9
  48. package/dist/cjs/OncliveLargeHero.js +1 -1
  49. package/dist/cjs/{Pagination-842c556f.js → Pagination-6359861a.js} +1 -1
  50. package/dist/cjs/PartnerDetailListing.js +6 -8
  51. package/dist/cjs/PartnerDetailListingPaginated.js +7 -9
  52. package/dist/cjs/PodcastsLanding.js +6 -7
  53. package/dist/cjs/PubSection.js +4 -5
  54. package/dist/cjs/PublicationLanding.js +26 -26
  55. package/dist/cjs/QueueDeckExpanded.js +4 -5
  56. package/dist/cjs/QueueDeckExpandedPaginated.js +5 -6
  57. package/dist/cjs/RelatedContent.js +28 -28
  58. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  59. package/dist/cjs/SeriesListingDeck.js +2 -3
  60. package/dist/cjs/{SeriesSlider-a3d45f7b.js → SeriesSlider-edcb8e4b.js} +4 -4
  61. package/dist/cjs/SideFooter.js +2 -2
  62. package/dist/cjs/TaxonomyDescription.js +3 -4
  63. package/dist/cjs/TemplateNormal.js +1 -2
  64. package/dist/cjs/ThumbnailCard.js +1 -1
  65. package/dist/cjs/{Tooltip-4cb8849a.js → Tooltip-980a1d1a.js} +55 -170
  66. package/dist/cjs/VideoProgramLandingPage.js +3 -4
  67. package/dist/cjs/VideoSeriesCard.js +1 -1
  68. package/dist/cjs/VideoSeriesLandingPage.js +3 -4
  69. package/dist/cjs/VideoSeriesListing.js +1 -2
  70. package/dist/cjs/View.js +7 -8
  71. package/dist/cjs/YahooHero.js +1 -1
  72. package/dist/cjs/YoutubeGroup.js +4 -4
  73. package/dist/cjs/{entities-df1aed86.js → entities-3f9d0f2f.js} +0 -4
  74. package/dist/cjs/getSerializers.js +3 -4
  75. package/dist/cjs/{getTargeting-5b954783.js → getTargeting-45ffbee8.js} +9 -9
  76. package/dist/cjs/getTargeting.js +1 -1
  77. package/dist/cjs/{index-825c2c02.js → index-58778b87.js} +19 -33
  78. package/dist/cjs/{index-d2a6ef75.js → index-7435b964.js} +467 -2
  79. package/dist/cjs/{index-50be6759.js → index-8041a4eb.js} +9 -15
  80. package/dist/cjs/{index-f86bb269.js → index-96c331fd.js} +53 -52
  81. package/dist/cjs/index.js +11 -14
  82. package/dist/cjs/urlFor.js +0 -1
  83. package/dist/esm/AD.js +1 -1
  84. package/dist/esm/AD300x250.js +1 -2
  85. package/dist/esm/AD300x250x600.js +1 -2
  86. package/dist/esm/AD728x90.js +1 -2
  87. package/dist/esm/ADFloatingFooter.js +1 -2
  88. package/dist/esm/ADGutter.js +1 -2
  89. package/dist/esm/ADSkyscraper.js +1 -2
  90. package/dist/esm/ADSponsoredResources.js +1 -2
  91. package/dist/esm/ADWebcast.js +1 -2
  92. package/dist/esm/ADWelcome.js +1 -2
  93. package/dist/esm/AdSlot.js +1 -2
  94. package/dist/esm/AdSlotsProvider.js +1 -2
  95. package/dist/esm/AlgoliaSearch.js +1024 -513
  96. package/dist/esm/ArticleProgramLandingPage.js +3 -4
  97. package/dist/esm/ArticleSeriesLandingPage.js +3 -4
  98. package/dist/esm/ArticleSeriesListing.js +1 -2
  99. package/dist/esm/AuthWrapper.js +288 -1470
  100. package/dist/esm/CEDeckSupabase.js +2 -3
  101. package/dist/esm/CMEDeck.js +1 -2
  102. package/dist/esm/Column3.js +1 -2
  103. package/dist/esm/ConferenceArticleCard.js +15 -15
  104. package/dist/esm/ContentCardPaginated.js +4 -5
  105. package/dist/esm/DeckContent.js +11 -12
  106. package/dist/esm/DeckQueue.js +2 -3
  107. package/dist/esm/DeckQueuePaginated.js +3 -4
  108. package/dist/esm/{Dfp-102f0beb.js → Dfp-cf85d203.js} +1 -2
  109. package/dist/esm/EventsDeck.js +18 -18
  110. package/dist/esm/ExternalResources.js +4 -5
  111. package/dist/esm/GridContent.js +5 -6
  112. package/dist/esm/GridContentPaginated.js +6 -7
  113. package/dist/esm/GridHero.js +1 -1
  114. package/dist/esm/HamMagazine.js +9 -9
  115. package/dist/esm/HealthCareProfessionalModal.js +1 -1
  116. package/dist/esm/Hero.js +1 -1
  117. package/dist/esm/HorizontalArticleListing.js +3 -4
  118. package/dist/esm/{ImageSlider-788daebb.js → ImageSlider-aea3a615.js} +67 -10
  119. package/dist/esm/IssueLanding.js +34 -35
  120. package/dist/esm/KMTracker.js +15 -15
  121. package/dist/esm/LeftNav.js +1 -2
  122. package/dist/esm/MasterDeck.js +11 -12
  123. package/dist/esm/MasterDeckPaginated.js +12 -13
  124. package/dist/esm/{MediaSeriesCard-cfdc313b.js → MediaSeriesCard-6a972372.js} +2 -2
  125. package/dist/esm/MediaSeriesLanding.js +13 -14
  126. package/dist/esm/MediaSeriesLandingPaginated.js +14 -15
  127. package/dist/esm/NavMagazine.js +10 -10
  128. package/dist/esm/NavNative.js +9 -9
  129. package/dist/esm/OncliveLargeHero.js +1 -1
  130. package/dist/esm/{Pagination-dc30727b.js → Pagination-9fe9f61d.js} +1 -1
  131. package/dist/esm/PartnerDetailListing.js +6 -8
  132. package/dist/esm/PartnerDetailListingPaginated.js +7 -9
  133. package/dist/esm/PodcastsLanding.js +6 -7
  134. package/dist/esm/PubSection.js +4 -5
  135. package/dist/esm/PublicationLanding.js +26 -26
  136. package/dist/esm/QueueDeckExpanded.js +4 -5
  137. package/dist/esm/QueueDeckExpandedPaginated.js +5 -6
  138. package/dist/esm/RelatedContent.js +28 -28
  139. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  140. package/dist/esm/SeriesListingDeck.js +2 -3
  141. package/dist/esm/{SeriesSlider-2eda1e45.js → SeriesSlider-2e83e861.js} +4 -4
  142. package/dist/esm/SideFooter.js +2 -2
  143. package/dist/esm/TaxonomyDescription.js +3 -4
  144. package/dist/esm/TemplateNormal.js +1 -2
  145. package/dist/esm/ThumbnailCard.js +1 -1
  146. package/dist/esm/{Tooltip-95655b44.js → Tooltip-51957f7c.js} +55 -170
  147. package/dist/esm/VideoProgramLandingPage.js +3 -4
  148. package/dist/esm/VideoSeriesCard.js +1 -1
  149. package/dist/esm/VideoSeriesLandingPage.js +3 -4
  150. package/dist/esm/VideoSeriesListing.js +1 -2
  151. package/dist/esm/View.js +7 -8
  152. package/dist/esm/YahooHero.js +1 -1
  153. package/dist/esm/YoutubeGroup.js +4 -4
  154. package/dist/esm/{entities-6d9154b4.js → entities-932b50cf.js} +0 -4
  155. package/dist/esm/getSerializers.js +3 -4
  156. package/dist/esm/{getTargeting-5a281334.js → getTargeting-a569a9cc.js} +9 -9
  157. package/dist/esm/getTargeting.js +1 -1
  158. package/dist/esm/{index-79cfd25c.js → index-30a6257d.js} +53 -52
  159. package/dist/esm/{index-f0fc23eb.js → index-5cc7b406.js} +466 -1
  160. package/dist/esm/{index-98ca9cec.js → index-67e1773f.js} +9 -15
  161. package/dist/esm/{index-30b512d6.js → index-b672e697.js} +23 -37
  162. package/dist/esm/index.js +11 -14
  163. package/dist/esm/urlFor.js +0 -1
  164. package/package.json +116 -116
  165. package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
  166. package/dist/cjs/events-1b438fe7.js +0 -469
  167. package/dist/cjs/typeof-1358762e.js +0 -33
  168. package/dist/esm/defineProperty-23a8f8cd.js +0 -68
  169. package/dist/esm/events-6c3a7a63.js +0 -467
  170. package/dist/esm/typeof-2f07d0e8.js +0 -30
  171. /package/dist/cjs/{ADInfeed-93cad44d.js → ADInfeed-0519664d.js} +0 -0
  172. /package/dist/cjs/{ADlgInfeed-80062861.js → ADlgInfeed-e544ac1c.js} +0 -0
  173. /package/dist/cjs/{PublicationFeature-2e15f1bb.js → PublicationFeature-e945bd55.js} +0 -0
  174. /package/dist/esm/{ADInfeed-74cc728c.js → ADInfeed-c3f5613e.js} +0 -0
  175. /package/dist/esm/{ADlgInfeed-b6217567.js → ADlgInfeed-2b148f3f.js} +0 -0
  176. /package/dist/esm/{PublicationFeature-b44a69eb.js → PublicationFeature-3cc370de.js} +0 -0
@@ -1,8 +1,8 @@
1
1
  import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
2
2
  import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-6ebcbfea.js';
3
- import { Carousel, Table, Figure, Card, Row, Col, Button as Button$1, ProgressBar } from 'react-bootstrap';
3
+ import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button as Button$1, ProgressBar } from 'react-bootstrap';
4
4
  import urlFor from './urlFor.js';
5
- import { l as lib_3 } from './index-f0fc23eb.js';
5
+ import { l as lib_3 } from './index-5cc7b406.js';
6
6
  import Router, { useRouter } from 'next/router';
7
7
  import { g as getYoutubeId } from './index-c7e2ac95.js';
8
8
  import PropTypes from 'prop-types';
@@ -30,14 +30,14 @@ import { m as moment } from './moment-bc12cb97.js';
30
30
  import SocialShare from './SocialShare.js';
31
31
  import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
32
32
  import Pagination from 'react-bootstrap/Pagination';
33
- import { h as html_decode_1 } from './entities-6d9154b4.js';
33
+ import { h as html_decode_1 } from './entities-932b50cf.js';
34
34
  import DFPAdSlot from './AdSlot.js';
35
35
  import Row$1 from 'react-bootstrap/Row';
36
36
  import Col$1 from 'react-bootstrap/Col';
37
37
  import Head from 'next/head';
38
38
  import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits$2 } from './inherits-d21b4ef9.js';
39
39
  import { c as IoIosArrowDropupCircle } from './index.esm-eb1e8e80.js';
40
- import Figure$1 from 'react-bootstrap/Figure';
40
+ import Figure$2 from 'react-bootstrap/Figure';
41
41
  import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
42
42
  import Tooltip from 'react-bootstrap/Tooltip';
43
43
  import Popover from 'react-bootstrap/Popover';
@@ -2745,7 +2745,7 @@ var Media = function Media(_ref) {
2745
2745
  };
2746
2746
 
2747
2747
  return React__default.createElement(
2748
- Figure,
2748
+ Figure$1,
2749
2749
  { className: 'd-block ' + className, style: figureStyle },
2750
2750
  React__default.createElement(
2751
2751
  'a',
@@ -2763,7 +2763,7 @@ var Media = function Media(_ref) {
2763
2763
  )
2764
2764
  ),
2765
2765
  caption && React__default.createElement(
2766
- Figure.Caption,
2766
+ Figure$1.Caption,
2767
2767
  { className: 'media-caption' },
2768
2768
  caption
2769
2769
  )
@@ -2787,32 +2787,14 @@ var Media = function Media(_ref) {
2787
2787
  var IFrame = function IFrame(_ref) {
2788
2788
  var url = _ref.url,
2789
2789
  _ref$needSegmentSuppo = _ref.needSegmentSupport,
2790
- needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo,
2791
- node = _ref.node;
2790
+ needSegmentSupport = _ref$needSegmentSuppo === undefined ? false : _ref$needSegmentSuppo;
2792
2791
 
2793
- console.log('node', node);
2794
2792
  url = Segment.getURL(url, { needSegmentSupport: needSegmentSupport });
2795
- // if (node.height) return null
2796
- // else {
2797
2793
  return React__default.createElement(
2798
2794
  'div',
2799
- null,
2800
- node.height ? React__default.createElement(
2801
- 'div',
2802
- null,
2803
- React__default.createElement('iframe', { id: 'iframe-block', className: 'w-100 iFrame-block', src: url, allowFullScreen: true, webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
2804
- ) : React__default.createElement(
2805
- 'div',
2806
- { className: 'd-block text-center mb-3' },
2807
- React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: true, webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
2808
- ),
2809
- React__default.createElement(
2810
- 'style',
2811
- { jsx: 'true' },
2812
- '\n #iframe-block {\n height: ' + node.height + ' !important;\n }\n '
2813
- )
2795
+ { className: 'd-block text-center mb-3' },
2796
+ React__default.createElement('iframe', { className: 'w-100 iFrame-block', src: url, allowFullScreen: true, webkitallowfullscreen: 'true', mozallowfullscreen: 'true', frameBorder: '0' })
2814
2797
  );
2815
- // }
2816
2798
  };
2817
2799
 
2818
2800
  // https://github.com/tc39/proposal-object-values-entries
@@ -10088,11 +10070,17 @@ var LightBox = function LightBox(_ref) {
10088
10070
  React__default.createElement(
10089
10071
  'style',
10090
10072
  { jsx: 'true' },
10091
- '\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 '
10073
+ '\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 '
10092
10074
  )
10093
10075
  );
10094
10076
  };
10095
10077
 
10078
+ var compareProps = function compareProps(prevProps, nextProps) {
10079
+ if (nextProps.node.asset && nextProps.node.asset._ref) {
10080
+ return prevProps.node.asset._ref === nextProps.node.asset._ref;
10081
+ }
10082
+ };
10083
+
10096
10084
  var FigureImage$1 = React__default.memo(function (_ref2) {
10097
10085
  var node = _ref2.node,
10098
10086
  client = _ref2.client,
@@ -10121,8 +10109,6 @@ var FigureImage$1 = React__default.memo(function (_ref2) {
10121
10109
  });
10122
10110
 
10123
10111
  var FigureComponent = function FigureComponent(props) {
10124
- console.log('props in Figure Component', props);
10125
-
10126
10112
  var _useState = useState(false),
10127
10113
  _useState2 = _slicedToArray(_useState, 2),
10128
10114
  showLightbox = _useState2[0],
@@ -10134,7 +10120,7 @@ var FigureComponent = function FigureComponent(props) {
10134
10120
  setLightboxImgSrc = _useState4[1];
10135
10121
 
10136
10122
  if (typeof window === 'undefined') return null;
10137
- console.log('props in FigureComp', props);
10123
+
10138
10124
  var node = props.node,
10139
10125
  client = props.client,
10140
10126
  getSerializers = props.getSerializers;
@@ -10191,8 +10177,6 @@ var FigureComponent = function FigureComponent(props) {
10191
10177
  link = _ref3.link,
10192
10178
  handleClickFigure = _ref3.handleClickFigure;
10193
10179
 
10194
- console.log('node in FImage', node);
10195
-
10196
10180
  var figureImageStyle = link ? { maxWidth: '100%' } : { maxWidth: '100%', cursor: 'pointer', width: 'auto' };
10197
10181
  var triggerAction = main_42 ? 'click' : 'hover';
10198
10182
  var placementLocation = main_42 ? 'top' : infoBox[0].alignment ? infoBox[0].alignment : 'right';
@@ -10295,7 +10279,7 @@ var FigureComponent = function FigureComponent(props) {
10295
10279
  React__default.Fragment,
10296
10280
  null,
10297
10281
  infoBox.length >= 1 ? React__default.createElement(
10298
- Figure$1,
10282
+ Figure$2,
10299
10283
  { className: '' + class_name, style: figureStyle },
10300
10284
  link ? React__default.createElement(
10301
10285
  'a',
@@ -10318,7 +10302,7 @@ var FigureComponent = function FigureComponent(props) {
10318
10302
  }
10319
10303
  })
10320
10304
  ) : React__default.createElement(
10321
- Figure$1,
10305
+ Figure$2,
10322
10306
  { className: '' + class_name, style: figureStyle },
10323
10307
  link ? React__default.createElement(
10324
10308
  'a',
@@ -10349,6 +10333,8 @@ var FigureComponent = function FigureComponent(props) {
10349
10333
  );
10350
10334
  };
10351
10335
 
10336
+ var Figure = React__default.memo(FigureComponent, compareProps);
10337
+
10352
10338
  function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
10353
10339
  useEffect(function () {
10354
10340
  function handleClickOutside(event) {
@@ -11205,7 +11191,7 @@ var getSerializers = function getSerializers() {
11205
11191
  figure: function figure(_ref4) {
11206
11192
  var node = _ref4.node;
11207
11193
 
11208
- return React__default.createElement(FigureComponent, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
11194
+ return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
11209
11195
  },
11210
11196
  multifigure: function multifigure(_ref5) {
11211
11197
  var node = _ref5.node;
@@ -11239,7 +11225,7 @@ var getSerializers = function getSerializers() {
11239
11225
  iframe: function iframe(_ref10) {
11240
11226
  var node = _ref10.node;
11241
11227
 
11242
- return React__default.createElement(IFrame, { url: node.url, node: node, needSegmentSupport: node.needSegmentSupport });
11228
+ return React__default.createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
11243
11229
  },
11244
11230
  video: function video(_ref11) {
11245
11231
  var node = _ref11.node;
package/dist/esm/index.js CHANGED
@@ -76,7 +76,7 @@ import { _ as _JSON$stringify } from './stringify-2b084bee.js';
76
76
  import { _ as _extends } from './extends-1559c147.js';
77
77
  import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
78
78
  import PropTypes from 'prop-types';
79
- import { m as momentTimezone } from './index-79cfd25c.js';
79
+ import { m as momentTimezone } from './index-30a6257d.js';
80
80
  import ProgressBar from 'react-bootstrap/ProgressBar';
81
81
  export { PixelTrackingArticle, PixelTrackingLandingPages } from './PixelTracking.js';
82
82
  export { default as ForbesHero } from './ForbesHero.js';
@@ -87,7 +87,7 @@ export { default as VerticalHero } from './VerticalHero.js';
87
87
  export { default as YahooHero } from './YahooHero.js';
88
88
  export { default as GridHero } from './GridHero.js';
89
89
  export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
90
- export { g as getSerializers } from './index-30b512d6.js';
90
+ export { g as getSerializers } from './index-b672e697.js';
91
91
  export { default as Beam } from './Beam.js';
92
92
  export { default as Segment } from './Segment.js';
93
93
  export { default as KMTracker } from './KMTracker.js';
@@ -101,7 +101,7 @@ export { default as VideoSeriesLandingPage } from './VideoSeriesLandingPage.js';
101
101
  export { default as ArticleProgramLandingPage } from './ArticleProgramLandingPage.js';
102
102
  export { default as ArticleSeriesLandingPage } from './ArticleSeriesLandingPage.js';
103
103
  export { default as Schema } from './Schema.js';
104
- export { g as getTargeting } from './getTargeting-5a281334.js';
104
+ export { g as getTargeting } from './getTargeting-a569a9cc.js';
105
105
  export { default as getKeywords } from './getKeywords.js';
106
106
  export { default as getQuery } from './getQuery.js';
107
107
  import './toConsumableArray-f7074d7c.js';
@@ -115,8 +115,7 @@ import './typeof-657f25da.js';
115
115
  import './web.dom.iterable-ab4dea5c.js';
116
116
  import './_is-array-8d21b9e3.js';
117
117
  import './_library-528f1934.js';
118
- import './index-f0fc23eb.js';
119
- import './events-6c3a7a63.js';
118
+ import './index-5cc7b406.js';
120
119
  import 'react-bootstrap/Container';
121
120
  import 'react-bootstrap/Card';
122
121
  import './moment-bc12cb97.js';
@@ -128,15 +127,15 @@ import './index.es-a6137319.js';
128
127
  import './visibility-sensor-72fd8f8b.js';
129
128
  import 'react-dom';
130
129
  import './main-f97773b2.js';
131
- import './entities-6d9154b4.js';
132
- import './ADInfeed-74cc728c.js';
130
+ import './entities-932b50cf.js';
131
+ import './ADInfeed-c3f5613e.js';
133
132
  import './lodash-f97fd99a.js';
134
- import './ADlgInfeed-b6217567.js';
133
+ import './ADlgInfeed-2b148f3f.js';
135
134
  import './getContentCategory-15dcc413.js';
136
135
  import './get-3c308da4.js';
137
136
  import './eq-bdcbf886.js';
138
137
  import './AuthorComponent-11adff02.js';
139
- import './PublicationFeature-b44a69eb.js';
138
+ import './PublicationFeature-3cc370de.js';
140
139
  import 'react-bootstrap/Button';
141
140
  import 'react-bootstrap/Media';
142
141
  import './BlockContent-1e73bd2c.js';
@@ -154,8 +153,7 @@ import './_object-to-array-b61d5965.js';
154
153
  import 'react-bootstrap/Spinner';
155
154
  import 'react-bootstrap/Form';
156
155
  import './js.cookie-6874175c.js';
157
- import './typeof-2f07d0e8.js';
158
- import './index-98ca9cec.js';
156
+ import './index-67e1773f.js';
159
157
  import './ConferenceBanner-8792ebd2.js';
160
158
  import 'next/head';
161
159
  import '@mjhls/mjh-framework/dist/cjs/urlFor';
@@ -187,12 +185,11 @@ import 'react-bootstrap/Figure';
187
185
  import 'react-bootstrap/OverlayTrigger';
188
186
  import 'react-bootstrap/Tooltip';
189
187
  import 'react-bootstrap/Popover';
190
- import './SeriesSlider-2eda1e45.js';
188
+ import './SeriesSlider-2e83e861.js';
191
189
  import './style-inject.es-1f59c1d0.js';
192
190
  import 'disqus-react';
193
191
  import 'react-twitter-embed';
194
- import './ImageSlider-788daebb.js';
195
- import './defineProperty-23a8f8cd.js';
192
+ import './ImageSlider-aea3a615.js';
196
193
  import './VideoSeriesCard.js';
197
194
 
198
195
  //Feature query to be used
@@ -44,7 +44,6 @@ function urlFor(_ref) {
44
44
  if (imageHeight) url = url.height(imageHeight);
45
45
  if (imageMaxHeight) url = url.maxHeight(imageMaxHeight);
46
46
  if (imageFit) url = url.fit(imageFit);
47
- console.log('url auto format', url.auto('format'));
48
47
  url = url.auto('format').url();
49
48
 
50
49
  // Appending file name in URL
package/package.json CHANGED
@@ -1,116 +1,116 @@
1
- {
2
- "name": "@mjhls/mjh-framework",
3
- "version": "1.0.1067-iframe-test",
4
- "description": "Foundation Framework",
5
- "author": "mjh-framework",
6
- "license": "MIT",
7
- "repository": {
8
- "type": "git",
9
- "url": "https://github.com/MJHLS/mjh-framework.git"
10
- },
11
- "main": "dist/cjs/index.js",
12
- "module": "dist/esm/index.js",
13
- "engines": {
14
- "node": ">=8",
15
- "npm": ">=5"
16
- },
17
- "scripts": {
18
- "clean": "rimraf dist",
19
- "test": "cross-env CI=1 react-scripts test --env=jsdom",
20
- "test:watch": "react-scripts test --env=jsdom",
21
- "build": "npm run clean && rollup -c",
22
- "start": "npm run clean && rollup -c -w",
23
- "prepare": "yarn run build",
24
- "predeploy": "cd example && yarn install && yarn run build",
25
- "deploy": "gh-pages -d example/build"
26
- },
27
- "peerDependencies": {
28
- "disqus-react": "^1.0.11",
29
- "next": "^9 || ^10 || ^11 || ^12",
30
- "prop-types": "^15.5.4",
31
- "react": "^15 || ^16 || ^17 || ^18",
32
- "react-bootstrap": "^1.0.0-beta.14 || ^2",
33
- "react-dom": "^15 || ^16 || ^17 || ^18",
34
- "react-share": "^4.0.1"
35
- },
36
- "devDependencies": {
37
- "@brightcove/react-player-loader": "^1.4.0",
38
- "@rollup/plugin-json": "^4.0.3",
39
- "@sanity/block-content-to-react": "^2.0.7",
40
- "@sanity/image-url": "^0.140.15",
41
- "@svgr/rollup": "2.4.1",
42
- "babel-core": "^6.26.3",
43
- "babel-eslint": "^8.2.5",
44
- "babel-plugin-external-helpers": "^6.22.0",
45
- "babel-plugin-transform-runtime": "^6.23.0",
46
- "babel-preset-env": "^1.7.0",
47
- "babel-preset-react": "^6.24.1",
48
- "babel-preset-stage-0": "^6.24.1",
49
- "cross-env": "^5.1.4",
50
- "eslint": "^5.0.1",
51
- "eslint-config-standard": "^11.0.0",
52
- "eslint-config-standard-react": "^6.0.0",
53
- "eslint-plugin-import": "^2.13.0",
54
- "eslint-plugin-node": "^7.0.1",
55
- "eslint-plugin-promise": "^4.0.0",
56
- "eslint-plugin-react": "^7.10.0",
57
- "eslint-plugin-react-hooks": "^2.3.0",
58
- "eslint-plugin-standard": "^3.1.0",
59
- "file-saver": "^2.0.5",
60
- "get-youtube-id": "^1.0.1",
61
- "gh-pages": "^1.2.0",
62
- "lodash": "^4.17.15",
63
- "md5": "^2.2.1",
64
- "moment": "^2.26.0",
65
- "moment-timezone": "^0.5.31",
66
- "next": "^9.2.0",
67
- "react": "^16.12.0",
68
- "react-bootstrap": "1.4.0",
69
- "react-device-detect": "^1.11.14",
70
- "react-dfp": "^0.19.0",
71
- "react-dom": "^16.12.0",
72
- "react-icons": "^3.8.0",
73
- "react-infinite-scroll-component": "^5.0.4",
74
- "react-lazyload": "^2.6.5",
75
- "react-paginate": "^7.1.3",
76
- "react-player": "^1.15.2",
77
- "react-scripts": "^1.1.4",
78
- "react-share": "^4.0.1",
79
- "react-social-icons": "^4.1.0",
80
- "react-visibility-sensor": "^5.1.1",
81
- "react-youtube": "^7.14.0",
82
- "rimraf": "^3.0.2",
83
- "rollup": "^2.7.3",
84
- "rollup-plugin-babel": "3.0.7",
85
- "rollup-plugin-commonjs": "9.3.4",
86
- "rollup-plugin-node-builtins": "2.1.2",
87
- "rollup-plugin-node-resolve": "3.4.0",
88
- "rollup-plugin-postcss": "1.6.3",
89
- "rollup-plugin-url": "1.4.0"
90
- },
91
- "files": [
92
- "dist"
93
- ],
94
- "dependencies": {
95
- "@supabase/supabase-js": "^1.29.4",
96
- "babel-polyfill": "^6.26.0",
97
- "cookie": "^0.4.1",
98
- "disqus-react": "^1.0.11",
99
- "faunadb": "^4.2.0",
100
- "js-cookie": "^2.2.1",
101
- "next-auth": "^3.2.0",
102
- "next-cookies": "^2.0.3",
103
- "node-fetch": "^2.6.1",
104
- "nookies": "^2.4.0",
105
- "react-cookies": "^0.1.1",
106
- "react-facebook": "^8.1.4",
107
- "react-instantsearch-dom": "^6.12.0",
108
- "react-script-tag": "^1.1.2",
109
- "rollup-plugin-peer-deps-external": "^2.2.4",
110
- "shortid": "^2.2.15",
111
- "smoothscroll-polyfill": "^0.4.4",
112
- "striptags": "^3.1.1",
113
- "superagent": "^5.2.2",
114
- "yarn": "^1.22.11"
115
- }
116
- }
1
+ {
2
+ "name": "@mjhls/mjh-framework",
3
+ "version": "1.0.1067",
4
+ "description": "Foundation Framework",
5
+ "author": "mjh-framework",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/MJHLS/mjh-framework.git"
10
+ },
11
+ "main": "dist/cjs/index.js",
12
+ "module": "dist/esm/index.js",
13
+ "engines": {
14
+ "node": ">=8",
15
+ "npm": ">=5"
16
+ },
17
+ "scripts": {
18
+ "clean": "rimraf dist",
19
+ "test": "cross-env CI=1 react-scripts test --env=jsdom",
20
+ "test:watch": "react-scripts test --env=jsdom",
21
+ "build": "npm run clean && rollup -c",
22
+ "start": "npm run clean && rollup -c -w",
23
+ "prepare": "yarn run build",
24
+ "predeploy": "cd example && yarn install && yarn run build",
25
+ "deploy": "gh-pages -d example/build"
26
+ },
27
+ "peerDependencies": {
28
+ "disqus-react": "^1.0.11",
29
+ "next": "^9 || ^10 || ^11 || ^12",
30
+ "prop-types": "^15.5.4",
31
+ "react": "^15 || ^16 || ^17 || ^18",
32
+ "react-bootstrap": "^1.0.0-beta.14 || ^2",
33
+ "react-dom": "^15 || ^16 || ^17 || ^18",
34
+ "react-share": "^4.0.1"
35
+ },
36
+ "devDependencies": {
37
+ "@brightcove/react-player-loader": "^1.4.0",
38
+ "@rollup/plugin-json": "^4.0.3",
39
+ "@sanity/block-content-to-react": "^2.0.7",
40
+ "@sanity/image-url": "^0.140.15",
41
+ "@svgr/rollup": "2.4.1",
42
+ "babel-core": "^6.26.3",
43
+ "babel-eslint": "^8.2.5",
44
+ "babel-plugin-external-helpers": "^6.22.0",
45
+ "babel-plugin-transform-runtime": "^6.23.0",
46
+ "babel-preset-env": "^1.7.0",
47
+ "babel-preset-react": "^6.24.1",
48
+ "babel-preset-stage-0": "^6.24.1",
49
+ "cross-env": "^5.1.4",
50
+ "eslint": "^5.0.1",
51
+ "eslint-config-standard": "^11.0.0",
52
+ "eslint-config-standard-react": "^6.0.0",
53
+ "eslint-plugin-import": "^2.13.0",
54
+ "eslint-plugin-node": "^7.0.1",
55
+ "eslint-plugin-promise": "^4.0.0",
56
+ "eslint-plugin-react": "^7.10.0",
57
+ "eslint-plugin-react-hooks": "^2.3.0",
58
+ "eslint-plugin-standard": "^3.1.0",
59
+ "file-saver": "^2.0.5",
60
+ "get-youtube-id": "^1.0.1",
61
+ "gh-pages": "^1.2.0",
62
+ "lodash": "^4.17.15",
63
+ "md5": "^2.2.1",
64
+ "moment": "^2.26.0",
65
+ "moment-timezone": "^0.5.31",
66
+ "next": "^9.2.0",
67
+ "react": "^16.12.0",
68
+ "react-bootstrap": "1.4.0",
69
+ "react-device-detect": "^1.11.14",
70
+ "react-dfp": "^0.19.0",
71
+ "react-dom": "^16.12.0",
72
+ "react-icons": "^3.8.0",
73
+ "react-infinite-scroll-component": "^5.0.4",
74
+ "react-lazyload": "^2.6.5",
75
+ "react-paginate": "^7.1.3",
76
+ "react-player": "^1.15.2",
77
+ "react-scripts": "^1.1.4",
78
+ "react-share": "^4.0.1",
79
+ "react-social-icons": "^4.1.0",
80
+ "react-visibility-sensor": "^5.1.1",
81
+ "react-youtube": "^7.14.0",
82
+ "rimraf": "^3.0.2",
83
+ "rollup": "^2.7.3",
84
+ "rollup-plugin-babel": "3.0.7",
85
+ "rollup-plugin-commonjs": "9.3.4",
86
+ "rollup-plugin-node-builtins": "2.1.2",
87
+ "rollup-plugin-node-resolve": "3.4.0",
88
+ "rollup-plugin-postcss": "1.6.3",
89
+ "rollup-plugin-url": "1.4.0"
90
+ },
91
+ "files": [
92
+ "dist"
93
+ ],
94
+ "dependencies": {
95
+ "@supabase/supabase-js": "^1.29.4",
96
+ "babel-polyfill": "^6.26.0",
97
+ "cookie": "^0.4.1",
98
+ "disqus-react": "^1.0.11",
99
+ "faunadb": "^4.2.0",
100
+ "js-cookie": "^2.2.1",
101
+ "next-auth": "^3.2.0",
102
+ "next-cookies": "^2.0.3",
103
+ "node-fetch": "^2.6.1",
104
+ "nookies": "^2.4.0",
105
+ "react-cookies": "^0.1.1",
106
+ "react-facebook": "^8.1.4",
107
+ "react-instantsearch-dom": "^6.12.0",
108
+ "react-script-tag": "^1.1.2",
109
+ "rollup-plugin-peer-deps-external": "^2.2.4",
110
+ "shortid": "^2.2.15",
111
+ "smoothscroll-polyfill": "^0.4.4",
112
+ "striptags": "^3.1.1",
113
+ "superagent": "^5.2.2",
114
+ "yarn": "^1.22.11"
115
+ }
116
+ }
@@ -1,73 +0,0 @@
1
- 'use strict';
2
-
3
- var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
-
5
- var asyncToGenerator = _commonjsHelpers.createCommonjsModule(function (module) {
6
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
7
- try {
8
- var info = gen[key](arg);
9
- var value = info.value;
10
- } catch (error) {
11
- reject(error);
12
- return;
13
- }
14
-
15
- if (info.done) {
16
- resolve(value);
17
- } else {
18
- Promise.resolve(value).then(_next, _throw);
19
- }
20
- }
21
-
22
- function _asyncToGenerator(fn) {
23
- return function () {
24
- var self = this,
25
- args = arguments;
26
- return new Promise(function (resolve, reject) {
27
- var gen = fn.apply(self, args);
28
-
29
- function _next(value) {
30
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
31
- }
32
-
33
- function _throw(err) {
34
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
35
- }
36
-
37
- _next(undefined);
38
- });
39
- };
40
- }
41
-
42
- module.exports = _asyncToGenerator;
43
- module.exports["default"] = module.exports, module.exports.__esModule = true;
44
- });
45
-
46
- var _asyncToGenerator = _commonjsHelpers.unwrapExports(asyncToGenerator);
47
-
48
- var defineProperty = _commonjsHelpers.createCommonjsModule(function (module) {
49
- function _defineProperty(obj, key, value) {
50
- if (key in obj) {
51
- Object.defineProperty(obj, key, {
52
- value: value,
53
- enumerable: true,
54
- configurable: true,
55
- writable: true
56
- });
57
- } else {
58
- obj[key] = value;
59
- }
60
-
61
- return obj;
62
- }
63
-
64
- module.exports = _defineProperty;
65
- module.exports["default"] = module.exports, module.exports.__esModule = true;
66
- });
67
-
68
- var _defineProperty = _commonjsHelpers.unwrapExports(defineProperty);
69
-
70
- exports._asyncToGenerator = _asyncToGenerator;
71
- exports._defineProperty = _defineProperty;
72
- exports.asyncToGenerator = asyncToGenerator;
73
- exports.defineProperty = defineProperty;