@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.
- package/README.md +168 -168
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +1 -2
- package/dist/cjs/AD300x250x600.js +1 -2
- package/dist/cjs/AD728x90.js +1 -2
- package/dist/cjs/ADFloatingFooter.js +1 -2
- package/dist/cjs/ADGutter.js +1 -2
- package/dist/cjs/ADSkyscraper.js +1 -2
- package/dist/cjs/ADSponsoredResources.js +1 -2
- package/dist/cjs/ADWebcast.js +1 -2
- package/dist/cjs/ADWelcome.js +1 -2
- package/dist/cjs/AdSlot.js +1 -2
- package/dist/cjs/AdSlotsProvider.js +1 -2
- package/dist/cjs/AlgoliaSearch.js +1024 -513
- package/dist/cjs/ArticleProgramLandingPage.js +3 -4
- package/dist/cjs/ArticleSeriesLandingPage.js +3 -4
- package/dist/cjs/ArticleSeriesListing.js +1 -2
- package/dist/cjs/AuthWrapper.js +294 -1476
- package/dist/cjs/CEDeckSupabase.js +2 -3
- package/dist/cjs/CMEDeck.js +1 -2
- package/dist/cjs/Column3.js +1 -2
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/ContentCardPaginated.js +4 -5
- package/dist/cjs/DeckContent.js +11 -12
- package/dist/cjs/DeckQueue.js +2 -3
- package/dist/cjs/DeckQueuePaginated.js +3 -4
- package/dist/cjs/{Dfp-c313a700.js → Dfp-67646058.js} +1 -2
- package/dist/cjs/EventsDeck.js +18 -18
- package/dist/cjs/ExternalResources.js +4 -5
- package/dist/cjs/GridContent.js +5 -6
- package/dist/cjs/GridContentPaginated.js +6 -7
- package/dist/cjs/GridHero.js +1 -1
- package/dist/cjs/HamMagazine.js +9 -9
- package/dist/cjs/HealthCareProfessionalModal.js +1 -1
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +3 -4
- package/dist/cjs/{ImageSlider-68db9d26.js → ImageSlider-62a43659.js} +149 -92
- package/dist/cjs/IssueLanding.js +34 -35
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +1 -2
- package/dist/cjs/MasterDeck.js +11 -12
- package/dist/cjs/MasterDeckPaginated.js +12 -13
- package/dist/cjs/{MediaSeriesCard-20fb87c6.js → MediaSeriesCard-ce34b9ee.js} +2 -2
- package/dist/cjs/MediaSeriesLanding.js +13 -14
- package/dist/cjs/MediaSeriesLandingPaginated.js +14 -15
- package/dist/cjs/NavMagazine.js +10 -10
- package/dist/cjs/NavNative.js +9 -9
- package/dist/cjs/OncliveLargeHero.js +1 -1
- package/dist/cjs/{Pagination-842c556f.js → Pagination-6359861a.js} +1 -1
- package/dist/cjs/PartnerDetailListing.js +6 -8
- package/dist/cjs/PartnerDetailListingPaginated.js +7 -9
- package/dist/cjs/PodcastsLanding.js +6 -7
- package/dist/cjs/PubSection.js +4 -5
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpanded.js +4 -5
- package/dist/cjs/QueueDeckExpandedPaginated.js +5 -6
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +2 -3
- package/dist/cjs/{SeriesSlider-a3d45f7b.js → SeriesSlider-edcb8e4b.js} +4 -4
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/TaxonomyDescription.js +3 -4
- package/dist/cjs/TemplateNormal.js +1 -2
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/{Tooltip-4cb8849a.js → Tooltip-980a1d1a.js} +55 -170
- package/dist/cjs/VideoProgramLandingPage.js +3 -4
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +3 -4
- package/dist/cjs/VideoSeriesListing.js +1 -2
- package/dist/cjs/View.js +7 -8
- package/dist/cjs/YahooHero.js +1 -1
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/{entities-df1aed86.js → entities-3f9d0f2f.js} +0 -4
- package/dist/cjs/getSerializers.js +3 -4
- package/dist/cjs/{getTargeting-5b954783.js → getTargeting-45ffbee8.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-825c2c02.js → index-58778b87.js} +19 -33
- package/dist/cjs/{index-d2a6ef75.js → index-7435b964.js} +467 -2
- package/dist/cjs/{index-50be6759.js → index-8041a4eb.js} +9 -15
- package/dist/cjs/{index-f86bb269.js → index-96c331fd.js} +53 -52
- package/dist/cjs/index.js +11 -14
- package/dist/cjs/urlFor.js +0 -1
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +1 -2
- package/dist/esm/AD300x250x600.js +1 -2
- package/dist/esm/AD728x90.js +1 -2
- package/dist/esm/ADFloatingFooter.js +1 -2
- package/dist/esm/ADGutter.js +1 -2
- package/dist/esm/ADSkyscraper.js +1 -2
- package/dist/esm/ADSponsoredResources.js +1 -2
- package/dist/esm/ADWebcast.js +1 -2
- package/dist/esm/ADWelcome.js +1 -2
- package/dist/esm/AdSlot.js +1 -2
- package/dist/esm/AdSlotsProvider.js +1 -2
- package/dist/esm/AlgoliaSearch.js +1024 -513
- package/dist/esm/ArticleProgramLandingPage.js +3 -4
- package/dist/esm/ArticleSeriesLandingPage.js +3 -4
- package/dist/esm/ArticleSeriesListing.js +1 -2
- package/dist/esm/AuthWrapper.js +288 -1470
- package/dist/esm/CEDeckSupabase.js +2 -3
- package/dist/esm/CMEDeck.js +1 -2
- package/dist/esm/Column3.js +1 -2
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/ContentCardPaginated.js +4 -5
- package/dist/esm/DeckContent.js +11 -12
- package/dist/esm/DeckQueue.js +2 -3
- package/dist/esm/DeckQueuePaginated.js +3 -4
- package/dist/esm/{Dfp-102f0beb.js → Dfp-cf85d203.js} +1 -2
- package/dist/esm/EventsDeck.js +18 -18
- package/dist/esm/ExternalResources.js +4 -5
- package/dist/esm/GridContent.js +5 -6
- package/dist/esm/GridContentPaginated.js +6 -7
- package/dist/esm/GridHero.js +1 -1
- package/dist/esm/HamMagazine.js +9 -9
- package/dist/esm/HealthCareProfessionalModal.js +1 -1
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +3 -4
- package/dist/esm/{ImageSlider-788daebb.js → ImageSlider-aea3a615.js} +67 -10
- package/dist/esm/IssueLanding.js +34 -35
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +1 -2
- package/dist/esm/MasterDeck.js +11 -12
- package/dist/esm/MasterDeckPaginated.js +12 -13
- package/dist/esm/{MediaSeriesCard-cfdc313b.js → MediaSeriesCard-6a972372.js} +2 -2
- package/dist/esm/MediaSeriesLanding.js +13 -14
- package/dist/esm/MediaSeriesLandingPaginated.js +14 -15
- package/dist/esm/NavMagazine.js +10 -10
- package/dist/esm/NavNative.js +9 -9
- package/dist/esm/OncliveLargeHero.js +1 -1
- package/dist/esm/{Pagination-dc30727b.js → Pagination-9fe9f61d.js} +1 -1
- package/dist/esm/PartnerDetailListing.js +6 -8
- package/dist/esm/PartnerDetailListingPaginated.js +7 -9
- package/dist/esm/PodcastsLanding.js +6 -7
- package/dist/esm/PubSection.js +4 -5
- package/dist/esm/PublicationLanding.js +26 -26
- package/dist/esm/QueueDeckExpanded.js +4 -5
- package/dist/esm/QueueDeckExpandedPaginated.js +5 -6
- package/dist/esm/RelatedContent.js +28 -28
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SeriesListingDeck.js +2 -3
- package/dist/esm/{SeriesSlider-2eda1e45.js → SeriesSlider-2e83e861.js} +4 -4
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/TaxonomyDescription.js +3 -4
- package/dist/esm/TemplateNormal.js +1 -2
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/{Tooltip-95655b44.js → Tooltip-51957f7c.js} +55 -170
- package/dist/esm/VideoProgramLandingPage.js +3 -4
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesLandingPage.js +3 -4
- package/dist/esm/VideoSeriesListing.js +1 -2
- package/dist/esm/View.js +7 -8
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/{entities-6d9154b4.js → entities-932b50cf.js} +0 -4
- package/dist/esm/getSerializers.js +3 -4
- package/dist/esm/{getTargeting-5a281334.js → getTargeting-a569a9cc.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-79cfd25c.js → index-30a6257d.js} +53 -52
- package/dist/esm/{index-f0fc23eb.js → index-5cc7b406.js} +466 -1
- package/dist/esm/{index-98ca9cec.js → index-67e1773f.js} +9 -15
- package/dist/esm/{index-30b512d6.js → index-b672e697.js} +23 -37
- package/dist/esm/index.js +11 -14
- package/dist/esm/urlFor.js +0 -1
- package/package.json +116 -116
- package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/defineProperty-23a8f8cd.js +0 -68
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/typeof-2f07d0e8.js +0 -30
- /package/dist/cjs/{ADInfeed-93cad44d.js → ADInfeed-0519664d.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-80062861.js → ADlgInfeed-e544ac1c.js} +0 -0
- /package/dist/cjs/{PublicationFeature-2e15f1bb.js → PublicationFeature-e945bd55.js} +0 -0
- /package/dist/esm/{ADInfeed-74cc728c.js → ADInfeed-c3f5613e.js} +0 -0
- /package/dist/esm/{ADlgInfeed-b6217567.js → ADlgInfeed-2b148f3f.js} +0 -0
- /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-
|
|
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-
|
|
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$
|
|
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
|
-
|
|
2800
|
-
|
|
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
|
|
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
|
-
|
|
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$
|
|
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$
|
|
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(
|
|
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,
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
132
|
-
import './ADInfeed-
|
|
130
|
+
import './entities-932b50cf.js';
|
|
131
|
+
import './ADInfeed-c3f5613e.js';
|
|
133
132
|
import './lodash-f97fd99a.js';
|
|
134
|
-
import './ADlgInfeed-
|
|
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-
|
|
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 './
|
|
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-
|
|
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-
|
|
195
|
-
import './defineProperty-23a8f8cd.js';
|
|
192
|
+
import './ImageSlider-aea3a615.js';
|
|
196
193
|
import './VideoSeriesCard.js';
|
|
197
194
|
|
|
198
195
|
//Feature query to be used
|
package/dist/esm/urlFor.js
CHANGED
|
@@ -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
|
|
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;
|