@mjhls/mjh-framework 1.0.779-beta.0 → 1.0.779
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/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +28 -26
- package/dist/cjs/AD300x250x600.js +28 -26
- package/dist/cjs/AD728x90.js +31 -29
- package/dist/cjs/ADFloatingFooter.js +30 -28
- package/dist/cjs/ADFooter.js +15 -14
- package/dist/cjs/ADGutter.js +30 -28
- package/dist/cjs/{ADInfeed-5b042ade.js → ADInfeed-d1eceaf2.js} +15 -13
- package/dist/cjs/ADSkyscraper.js +30 -28
- package/dist/cjs/ADSponsoredResources.js +30 -28
- package/dist/cjs/ADWebcast.js +30 -28
- package/dist/cjs/ADWelcome.js +31 -29
- package/dist/cjs/{ADlgInfeed-e92b6f9f.js → ADlgInfeed-24c693d8.js} +11 -10
- package/dist/cjs/AccordionPanel.js +31 -29
- package/dist/cjs/AdSlot.js +33 -31
- package/dist/cjs/AdSlotsProvider.js +17 -15
- package/dist/cjs/AlphabeticList.js +25 -24
- package/dist/cjs/ArticleCarousel.js +24 -23
- package/dist/cjs/ArticleProgramLandingPage.js +57 -55
- package/dist/cjs/ArticleSeriesLandingPage.js +39 -37
- package/dist/cjs/ArticleSeriesListing.js +61 -60
- package/dist/cjs/Auth.js +820 -333
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-5fa89df5.js} +14 -13
- package/dist/cjs/Beam.js +9 -8
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-eca358e4.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +29 -27
- package/dist/cjs/CMEDeck.js +83 -82
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +36 -32
- package/dist/cjs/Column3.js +58 -54
- package/dist/cjs/ConferenceArticleCard.js +24 -23
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +98 -93
- package/dist/cjs/DeckQueue.js +91 -87
- package/dist/cjs/{Dfp-b807d8fa.js → Dfp-a17e00fa.js} +32 -31
- package/dist/cjs/EventsDeck.js +138 -131
- package/dist/cjs/ExternalResources.js +79 -77
- package/dist/cjs/Feature.js +27 -25
- package/dist/cjs/ForbesHero.js +41 -40
- package/dist/cjs/GridContent.js +182 -177
- package/dist/cjs/GridHero.js +43 -42
- package/dist/cjs/GroupDeck.js +59 -58
- package/dist/cjs/HamMagazine.js +136 -130
- package/dist/cjs/Header.js +13 -11
- package/dist/cjs/Hero.js +13 -12
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalArticleListing.js +71 -69
- package/dist/cjs/HorizontalHero.js +26 -25
- package/dist/cjs/IssueContentDeck.js +77 -72
- package/dist/cjs/IssueDeck.js +75 -70
- package/dist/cjs/IssueLanding.js +41 -39
- package/dist/cjs/LeftNav.js +38 -35
- package/dist/cjs/MasterDeck.js +71 -69
- package/dist/cjs/MediaSeriesLanding.js +41 -38
- package/dist/cjs/NavDvm.js +80 -74
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +143 -137
- package/dist/cjs/NavNative.js +135 -126
- package/dist/cjs/NavNormal.js +53 -47
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +67 -66
- package/dist/cjs/PageFilter.js +15 -14
- package/dist/cjs/PartnerDetailListing.js +107 -105
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +21 -19
- package/dist/cjs/PubSection.js +40 -38
- package/dist/cjs/PubToc.js +17 -15
- package/dist/cjs/PublicationDeck.js +66 -61
- package/dist/cjs/PublicationLanding.js +105 -175
- package/dist/cjs/QueueDeckExpanded.js +292 -291
- package/dist/cjs/RecentNews.js +24 -23
- package/dist/cjs/RelatedContent.js +25 -24
- package/dist/cjs/RelatedTopicsDropdown.js +22 -19
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +22 -18
- package/dist/cjs/Segment.js +7 -6
- package/dist/cjs/SeriesListingDeck.js +37 -37
- package/dist/cjs/{SeriesSlider-f662f1f5.js → SeriesSlider-193a2958.js} +38 -37
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +36 -34
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-8dd468fd.js → SocialSearchComponent-45c54bed.js} +40 -36
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +62 -57
- package/dist/cjs/TaxonomyDescription.js +54 -52
- package/dist/cjs/TemplateNormal.js +74 -72
- package/dist/cjs/ThumbnailCard.js +22 -20
- package/dist/cjs/Ustream.js +27 -26
- package/dist/cjs/VerticalHero.js +18 -17
- package/dist/cjs/VideoProgramLandingPage.js +76 -71
- package/dist/cjs/VideoSeriesCard.js +32 -31
- package/dist/cjs/VideoSeriesFilter.js +19 -18
- package/dist/cjs/VideoSeriesLandingPage.js +47 -45
- package/dist/cjs/VideoSeriesListing.js +78 -77
- package/dist/cjs/View.js +260 -256
- package/dist/cjs/YahooHero.js +40 -39
- package/dist/cjs/YoutubeGroup.js +63 -62
- package/dist/cjs/{_is-array-754e012d.js → _is-array-63ae4740.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-2613ffa1.js} +2 -2
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-c5bd707d.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-bec5fcf2.js} +1 -1
- package/dist/cjs/_set-species-a8cfdb84.js +57 -0
- package/dist/cjs/{_to-object-329a650b.js → _to-object-821a2927.js} +4 -4
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-2edcb6ad.js} +13 -61
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-b4615fd3.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-aff11f8a.js} +1 -1
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-d6fbb280.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-20d42c53.js} +2 -2
- package/dist/cjs/{extends-60837c34.js → extends-1e24fc8d.js} +1 -1
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +138 -75
- package/dist/cjs/getRootDocGroup.js +7 -6
- package/dist/cjs/getSerializers.js +44 -43
- package/dist/cjs/{getTargeting-9af0ef69.js → getTargeting-497b581d.js} +3 -3
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-8bf6c863.js → index-0e4427c8.js} +12 -11
- package/dist/cjs/{index-3294d3bc.js → index-4d74ffd6.js} +40 -41
- package/dist/cjs/{index-da796b8c.js → index-80f57cff.js} +17 -15
- package/dist/cjs/{index-76417d82.js → index-8ef858d4.js} +934 -911
- package/dist/cjs/{index-be0c82be.js → index-d48b231c.js} +31 -25
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
- package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +164 -160
- package/dist/cjs/{inherits-c9f99d47.js → inherits-2eb23889.js} +5 -5
- package/dist/cjs/{keys-a586b7a0.js → keys-95c064c9.js} +2 -2
- package/dist/cjs/{lodash-fc2922d0.js → lodash-4ef21f0f.js} +72 -23
- package/dist/cjs/{main-02daeefe.js → main-dc082238.js} +116 -80
- package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-db24842a.js} +4 -4
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/{stringify-7c5aff47.js → stringify-01cf47f7.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-cf0865fc.js} +4 -4
- package/dist/cjs/{typeof-725500bc.js → typeof-97065d40.js} +7 -7
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-4480325a.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +24 -23
- package/dist/esm/AD300x250x600.js +24 -23
- package/dist/esm/AD728x90.js +27 -26
- package/dist/esm/ADFloatingFooter.js +26 -25
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +26 -25
- package/dist/esm/{ADInfeed-eb7bdd41.js → ADInfeed-c12cd1ce.js} +9 -9
- package/dist/esm/ADSkyscraper.js +26 -25
- package/dist/esm/ADSponsoredResources.js +26 -25
- package/dist/esm/ADWebcast.js +26 -25
- package/dist/esm/ADWelcome.js +27 -26
- package/dist/esm/{ADlgInfeed-f2ac31d1.js → ADlgInfeed-246a8787.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +23 -22
- package/dist/esm/AdSlotsProvider.js +13 -12
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +53 -52
- package/dist/esm/ArticleSeriesLandingPage.js +35 -34
- package/dist/esm/ArticleSeriesListing.js +55 -55
- package/dist/esm/Auth.js +799 -316
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-c7ff069f.js} +11 -11
- package/dist/esm/Beam.js +9 -8
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-d8cd739c.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +79 -78
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +27 -26
- package/dist/esm/Column3.js +48 -47
- package/dist/esm/ConferenceArticleCard.js +19 -19
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +76 -75
- package/dist/esm/DeckQueue.js +65 -65
- package/dist/esm/{Dfp-ebc4b22f.js → Dfp-988dbcaa.js} +21 -21
- package/dist/esm/EventsDeck.js +84 -84
- package/dist/esm/ExternalResources.js +72 -71
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +140 -139
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +105 -104
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +67 -66
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +49 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +37 -36
- package/dist/esm/LeftNav.js +32 -31
- package/dist/esm/MasterDeck.js +64 -63
- package/dist/esm/MediaSeriesLanding.js +32 -31
- package/dist/esm/NavDvm.js +57 -56
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +114 -113
- package/dist/esm/NavNative.js +100 -99
- package/dist/esm/NavNormal.js +36 -35
- package/dist/esm/OncliveHero.js +16 -17
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +102 -101
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +36 -35
- package/dist/esm/PubToc.js +13 -12
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +65 -139
- package/dist/esm/QueueDeckExpanded.js +272 -271
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +19 -19
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +7 -6
- package/dist/esm/SeriesListingDeck.js +31 -31
- package/dist/esm/{SeriesSlider-9245785f.js → SeriesSlider-6a1081ff.js} +27 -27
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +31 -30
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-a2ae84d1.js → SocialSearchComponent-c3216d1a.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -41
- package/dist/esm/TaxonomyDescription.js +48 -47
- package/dist/esm/TemplateNormal.js +67 -66
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +23 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +62 -61
- package/dist/esm/VideoSeriesCard.js +24 -24
- package/dist/esm/VideoSeriesFilter.js +16 -15
- package/dist/esm/VideoSeriesLandingPage.js +39 -38
- package/dist/esm/VideoSeriesListing.js +71 -71
- package/dist/esm/View.js +240 -240
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +46 -46
- package/dist/esm/{_is-array-58e95429.js → _is-array-674f71ec.js} +6 -6
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-48516cd3.js} +2 -2
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-fd3054d0.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-8f409e54.js} +1 -1
- package/dist/esm/_set-species-494ed292.js +52 -0
- package/dist/esm/{_to-object-a4107da3.js → _to-object-97770c52.js} +5 -5
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-2bd4099a.js} +9 -53
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
- package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-d1d5ed02.js} +2 -2
- package/dist/esm/{define-property-8af5f002.js → define-property-ec6d528d.js} +1 -1
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-ea516b15.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-aa6068a3.js} +3 -3
- package/dist/esm/{extends-eb69e8ac.js → extends-31d65aba.js} +1 -1
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +133 -70
- package/dist/esm/getRootDocGroup.js +7 -6
- package/dist/esm/getSerializers.js +44 -43
- package/dist/esm/{getTargeting-7211f12c.js → getTargeting-2d402d66.js} +2 -2
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-73819142.js → index-3f5c03b2.js} +31 -25
- package/dist/esm/{index-5f9f807a.js → index-752d1dae.js} +10 -10
- package/dist/esm/{index-a9e53f80.js → index-888f9253.js} +6 -6
- package/dist/esm/{index-c1374f98.js → index-9b2f6ac4.js} +869 -853
- package/dist/esm/{index-ef6d5dcf.js → index-ccb770c7.js} +40 -41
- package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
- package/dist/esm/index.js +130 -129
- package/dist/esm/{inherits-fb9b6e8f.js → inherits-5906fbea.js} +5 -5
- package/dist/esm/{keys-8eda7a5c.js → keys-a0b0c7a4.js} +2 -2
- package/dist/esm/{lodash-17fdfebb.js → lodash-ad27652f.js} +72 -23
- package/dist/esm/{main-e4a934b2.js → main-1450d277.js} +113 -78
- package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-cdeaee08.js} +4 -4
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/{stringify-4330ccdc.js → stringify-d4839bab.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-fa2dcda7.js} +4 -4
- package/dist/esm/{typeof-6435ba1c.js → typeof-e9cea9e8.js} +7 -7
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-035980f3.js} +3 -3
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
4
|
-
var
|
|
5
|
-
|
|
4
|
+
var es6_string_iterator = require('./es6.string.iterator-20d42c53.js');
|
|
5
|
+
require('./web.dom.iterable-4480325a.js');
|
|
6
6
|
var _library = require('./_library-dd23b178.js');
|
|
7
|
-
var
|
|
8
|
-
var core_getIteratorMethod = require('./core.get-iterator-method-
|
|
9
|
-
require('./
|
|
7
|
+
var _toObject = require('./_to-object-821a2927.js');
|
|
8
|
+
var core_getIteratorMethod = require('./core.get-iterator-method-b4615fd3.js');
|
|
9
|
+
var _setSpecies = require('./_set-species-a8cfdb84.js');
|
|
10
|
+
var _iterDetect = require('./_iter-detect-2613ffa1.js');
|
|
10
11
|
|
|
11
12
|
var runtime = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
12
13
|
/**
|
|
@@ -39,7 +40,7 @@ var runtime = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
|
39
40
|
|
|
40
41
|
// Define the runtime globally (as expected by generated code) as either
|
|
41
42
|
// module.exports (if we're in a module) or a new, empty object.
|
|
42
|
-
runtime = global.regeneratorRuntime =
|
|
43
|
+
runtime = global.regeneratorRuntime = module.exports ;
|
|
43
44
|
|
|
44
45
|
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
45
46
|
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
@@ -773,34 +774,6 @@ if (hadRuntime) {
|
|
|
773
774
|
|
|
774
775
|
var regenerator = runtimeModule;
|
|
775
776
|
|
|
776
|
-
var _anInstance = function (it, Constructor, name, forbiddenField) {
|
|
777
|
-
if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
|
|
778
|
-
throw TypeError(name + ': incorrect invocation!');
|
|
779
|
-
} return it;
|
|
780
|
-
};
|
|
781
|
-
|
|
782
|
-
var _forOf = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
783
|
-
var BREAK = {};
|
|
784
|
-
var RETURN = {};
|
|
785
|
-
var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
|
|
786
|
-
var iterFn = ITERATOR ? function () { return iterable; } : core_getIteratorMethod.core_getIteratorMethod(iterable);
|
|
787
|
-
var f = _toObject._ctx(fn, that, entries ? 2 : 1);
|
|
788
|
-
var index = 0;
|
|
789
|
-
var length, step, iterator, result;
|
|
790
|
-
if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
|
|
791
|
-
// fast case for arrays with default iterator
|
|
792
|
-
if (_iterDetect._isArrayIter(iterFn)) for (length = _toObject._toLength(iterable.length); length > index; index++) {
|
|
793
|
-
result = entries ? f(_toObject._anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
|
|
794
|
-
if (result === BREAK || result === RETURN) return result;
|
|
795
|
-
} else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
|
|
796
|
-
result = _iterDetect._iterCall(iterator, f, step.value, entries);
|
|
797
|
-
if (result === BREAK || result === RETURN) return result;
|
|
798
|
-
}
|
|
799
|
-
};
|
|
800
|
-
exports.BREAK = BREAK;
|
|
801
|
-
exports.RETURN = RETURN;
|
|
802
|
-
});
|
|
803
|
-
|
|
804
777
|
// 7.3.20 SpeciesConstructor(O, defaultConstructor)
|
|
805
778
|
|
|
806
779
|
|
|
@@ -1020,23 +993,6 @@ var _promiseResolve = function (C, x) {
|
|
|
1020
993
|
return promiseCapability.promise;
|
|
1021
994
|
};
|
|
1022
995
|
|
|
1023
|
-
var _redefineAll = function (target, src, safe) {
|
|
1024
|
-
for (var key in src) {
|
|
1025
|
-
if (safe && target[key]) target[key] = src[key];
|
|
1026
|
-
else _toObject._hide(target, key, src[key]);
|
|
1027
|
-
} return target;
|
|
1028
|
-
};
|
|
1029
|
-
|
|
1030
|
-
var SPECIES$1 = es6_string_iterator._wks('species');
|
|
1031
|
-
|
|
1032
|
-
var _setSpecies = function (KEY) {
|
|
1033
|
-
var C = typeof _toObject._core[KEY] == 'function' ? _toObject._core[KEY] : _toObject._global[KEY];
|
|
1034
|
-
if (_toObject._descriptors && C && !C[SPECIES$1]) _toObject._objectDp.f(C, SPECIES$1, {
|
|
1035
|
-
configurable: true,
|
|
1036
|
-
get: function () { return this; }
|
|
1037
|
-
});
|
|
1038
|
-
};
|
|
1039
|
-
|
|
1040
996
|
var task = _task.set;
|
|
1041
997
|
var microtask = _microtask();
|
|
1042
998
|
|
|
@@ -1198,7 +1154,7 @@ var $resolve = function (value) {
|
|
|
1198
1154
|
if (!USE_NATIVE) {
|
|
1199
1155
|
// 25.4.3.1 Promise(executor)
|
|
1200
1156
|
$Promise = function Promise(executor) {
|
|
1201
|
-
_anInstance(this, $Promise, PROMISE, '_h');
|
|
1157
|
+
_setSpecies._anInstance(this, $Promise, PROMISE, '_h');
|
|
1202
1158
|
_toObject._aFunction(executor);
|
|
1203
1159
|
Internal.call(this);
|
|
1204
1160
|
try {
|
|
@@ -1217,7 +1173,7 @@ if (!USE_NATIVE) {
|
|
|
1217
1173
|
this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled
|
|
1218
1174
|
this._n = false; // <- notify
|
|
1219
1175
|
};
|
|
1220
|
-
Internal.prototype = _redefineAll($Promise.prototype, {
|
|
1176
|
+
Internal.prototype = _setSpecies._redefineAll($Promise.prototype, {
|
|
1221
1177
|
// 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
|
|
1222
1178
|
then: function then(onFulfilled, onRejected) {
|
|
1223
1179
|
var reaction = newPromiseCapability(_speciesConstructor(this, $Promise));
|
|
@@ -1249,7 +1205,7 @@ if (!USE_NATIVE) {
|
|
|
1249
1205
|
|
|
1250
1206
|
_toObject._export(_toObject._export.G + _toObject._export.W + _toObject._export.F * !USE_NATIVE, { Promise: $Promise });
|
|
1251
1207
|
es6_string_iterator._setToStringTag($Promise, PROMISE);
|
|
1252
|
-
_setSpecies(PROMISE);
|
|
1208
|
+
_setSpecies._setSpecies(PROMISE);
|
|
1253
1209
|
Wrapper = _toObject._core[PROMISE];
|
|
1254
1210
|
|
|
1255
1211
|
// statics
|
|
@@ -1265,7 +1221,7 @@ _toObject._export(_toObject._export.S + _toObject._export.F * !USE_NATIVE, PROMI
|
|
|
1265
1221
|
_toObject._export(_toObject._export.S + _toObject._export.F * (_library._library ), PROMISE, {
|
|
1266
1222
|
// 25.4.4.6 Promise.resolve(x)
|
|
1267
1223
|
resolve: function resolve(x) {
|
|
1268
|
-
return _promiseResolve(
|
|
1224
|
+
return _promiseResolve(this === Wrapper ? $Promise : this, x);
|
|
1269
1225
|
}
|
|
1270
1226
|
});
|
|
1271
1227
|
_toObject._export(_toObject._export.S + _toObject._export.F * !(USE_NATIVE && _iterDetect._iterDetect(function (iter) {
|
|
@@ -1281,7 +1237,7 @@ _toObject._export(_toObject._export.S + _toObject._export.F * !(USE_NATIVE && _i
|
|
|
1281
1237
|
var values = [];
|
|
1282
1238
|
var index = 0;
|
|
1283
1239
|
var remaining = 1;
|
|
1284
|
-
_forOf(iterable, false, function (promise) {
|
|
1240
|
+
_setSpecies._forOf(iterable, false, function (promise) {
|
|
1285
1241
|
var $index = index++;
|
|
1286
1242
|
var alreadyCalled = false;
|
|
1287
1243
|
values.push(undefined);
|
|
@@ -1304,7 +1260,7 @@ _toObject._export(_toObject._export.S + _toObject._export.F * !(USE_NATIVE && _i
|
|
|
1304
1260
|
var capability = newPromiseCapability(C);
|
|
1305
1261
|
var reject = capability.reject;
|
|
1306
1262
|
var result = _perform(function () {
|
|
1307
|
-
_forOf(iterable, false, function (promise) {
|
|
1263
|
+
_setSpecies._forOf(iterable, false, function (promise) {
|
|
1308
1264
|
C.resolve(promise).then(capability.resolve, reject);
|
|
1309
1265
|
});
|
|
1310
1266
|
});
|
|
@@ -1389,9 +1345,5 @@ exports.default = function (fn) {
|
|
|
1389
1345
|
var _asyncToGenerator = _commonjsHelpers.unwrapExports(asyncToGenerator);
|
|
1390
1346
|
|
|
1391
1347
|
exports._Promise = _Promise;
|
|
1392
|
-
exports._anInstance = _anInstance;
|
|
1393
1348
|
exports._asyncToGenerator = _asyncToGenerator;
|
|
1394
|
-
exports._forOf = _forOf;
|
|
1395
|
-
exports._redefineAll = _redefineAll;
|
|
1396
|
-
exports._setSpecies = _setSpecies;
|
|
1397
1349
|
exports.regenerator = regenerator;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
-
|
|
5
|
-
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
6
3
|
var React = require('react');
|
|
7
|
-
var
|
|
4
|
+
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
5
|
+
|
|
6
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
7
|
+
|
|
8
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
8
9
|
|
|
9
10
|
var slice = Array.prototype.slice;
|
|
10
11
|
|
|
@@ -630,7 +631,7 @@ if (typeof window !== "undefined") {
|
|
|
630
631
|
|
|
631
632
|
var window_1 = win;
|
|
632
633
|
|
|
633
|
-
/*! @name @brightcove/react-player-loader @version 1.4.
|
|
634
|
+
/*! @name @brightcove/react-player-loader @version 1.4.1 @license Apache-2.0 */
|
|
634
635
|
|
|
635
636
|
function _extends() {
|
|
636
637
|
_extends = Object.assign || function (target) {
|
|
@@ -664,7 +665,7 @@ function _assertThisInitialized(self) {
|
|
|
664
665
|
return self;
|
|
665
666
|
}
|
|
666
667
|
|
|
667
|
-
/*! @name @brightcove/player-loader @version 1.
|
|
668
|
+
/*! @name @brightcove/player-loader @version 1.8.0 @license Apache-2.0 */
|
|
668
669
|
|
|
669
670
|
function _extends$1() {
|
|
670
671
|
_extends$1 = Object.assign || function (target) {
|
|
@@ -684,7 +685,7 @@ function _extends$1() {
|
|
|
684
685
|
return _extends$1.apply(this, arguments);
|
|
685
686
|
}
|
|
686
687
|
|
|
687
|
-
var version = "1.
|
|
688
|
+
var version = "1.8.0";
|
|
688
689
|
|
|
689
690
|
/*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
|
|
690
691
|
var version$1 = "1.2.0";
|
|
@@ -1001,6 +1002,7 @@ var createInPageEmbed = function createInPageEmbed(params) {
|
|
|
1001
1002
|
deliveryConfigId: 'data-delivery-config-id',
|
|
1002
1003
|
playlistId: 'data-playlist-id',
|
|
1003
1004
|
playlistVideoId: 'data-playlist-video-id',
|
|
1005
|
+
poster: 'poster',
|
|
1004
1006
|
videoId: 'data-video-id'
|
|
1005
1007
|
};
|
|
1006
1008
|
var tagName = embedOptions && embedOptions.tagName || EMBED_TAG_NAME_VIDEOJS;
|
|
@@ -2221,10 +2223,10 @@ function (_React$Component) {
|
|
|
2221
2223
|
ref: this.setRefNode
|
|
2222
2224
|
});
|
|
2223
2225
|
|
|
2224
|
-
return React__default.createElement('div', props);
|
|
2226
|
+
return React__default['default'].createElement('div', props);
|
|
2225
2227
|
};
|
|
2226
2228
|
|
|
2227
2229
|
return ReactPlayerLoader;
|
|
2228
|
-
}(React__default.Component);
|
|
2230
|
+
}(React__default['default'].Component);
|
|
2229
2231
|
|
|
2230
2232
|
exports.ReactPlayerLoader = ReactPlayerLoader;
|
package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-b4615fd3.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _toObject = require('./_to-object-
|
|
4
|
-
var es6_string_iterator = require('./es6.string.iterator-
|
|
3
|
+
var _toObject = require('./_to-object-821a2927.js');
|
|
4
|
+
var es6_string_iterator = require('./es6.string.iterator-20d42c53.js');
|
|
5
5
|
|
|
6
6
|
// getting tag from 19.1.3.6 Object.prototype.toString()
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
4
|
-
var _toObject = require('./_to-object-
|
|
4
|
+
var _toObject = require('./_to-object-821a2927.js');
|
|
5
5
|
|
|
6
6
|
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
|
|
7
7
|
_toObject._export(_toObject._export.S + _toObject._export.F * !_toObject._descriptors, 'Object', { defineProperty: _toObject._objectDp.f });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
4
|
-
var defineProperty$1 = require('./define-property-
|
|
4
|
+
var defineProperty$1 = require('./define-property-aff11f8a.js');
|
|
5
5
|
|
|
6
6
|
var defineProperty = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var _toObject = require('./_to-object-821a2927.js');
|
|
3
4
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
4
|
-
var _toObject = require('./_to-object-329a650b.js');
|
|
5
5
|
|
|
6
6
|
// true -> String#at
|
|
7
7
|
// false -> String#codePointAt
|
|
@@ -164,7 +164,7 @@ var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORC
|
|
|
164
164
|
$default = function values() { return $native.call(this); };
|
|
165
165
|
}
|
|
166
166
|
// Define iterator
|
|
167
|
-
if ((
|
|
167
|
+
if ((FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
|
|
168
168
|
_toObject._hide(proto, ITERATOR, $default);
|
|
169
169
|
}
|
|
170
170
|
// Plug for library
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
4
|
-
var _toObject = require('./_to-object-
|
|
4
|
+
var _toObject = require('./_to-object-821a2927.js');
|
|
5
5
|
var _objectPie = require('./_object-pie-68c5bcbc.js');
|
|
6
6
|
|
|
7
7
|
// 19.1.2.1 Object.assign(target, source, ...)
|
package/dist/cjs/getQuery.js
CHANGED
|
@@ -14,7 +14,7 @@ var getQuery = function getQuery(type) {
|
|
|
14
14
|
case 'article':
|
|
15
15
|
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n } \n },\n articles[]{\n ...,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n \'path\': identifier.current\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n\n }';
|
|
16
16
|
case 'publication':
|
|
17
|
-
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n taxonomyMapping[]->,\n pdf{asset->}\n } | order(year desc, month desc)\n }';
|
|
17
|
+
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n taxonomyMapping[]->,\n pdf{asset->},\n \'articles\': *[\n _type == \'article\' \n && !(_id in path("drafts.**"))\n && defined(title)\n && is_visible\n && defined(url)\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock != true\n && references(^._id)\n ][0...1]{_id}\n } | order(year desc, month desc)\n }';
|
|
18
18
|
case 'issue':
|
|
19
19
|
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issue\': *[_type == \'publication\'\n && references(^._id)\n && identifier.current == $issue][0] {\n ...,\n \'articles\': *[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && is_visible\n && defined(url)\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock != true\n && references(^._id)] | order(published desc) {\n ...,\n authorMapping[0]->,\n contentCategory->,\n issueSection-> {\n name\n }\n }\n }\n }';
|
|
20
20
|
case 'externalResources':
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var asyncToGenerator = require('./asyncToGenerator-2edcb6ad.js');
|
|
3
4
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
4
|
-
require('./
|
|
5
|
-
require('./es6.string.iterator-cc0bbaa4.js');
|
|
6
|
-
require('./_library-dd23b178.js');
|
|
7
|
-
require('./_iter-detect-60b2f026.js');
|
|
8
|
-
require('./core.get-iterator-method-f62321d4.js');
|
|
9
|
-
require('./web.dom.iterable-a0e279c1.js');
|
|
10
|
-
var asyncToGenerator = require('./asyncToGenerator-140e5f89.js');
|
|
11
|
-
var index$5 = require('./index-bd6c9f56.js');
|
|
5
|
+
var index = require('./index-bd6c9f56.js');
|
|
12
6
|
var getQuery = require('./getQuery.js');
|
|
7
|
+
require('./es6.string.iterator-20d42c53.js');
|
|
8
|
+
require('./_to-object-821a2927.js');
|
|
9
|
+
require('./web.dom.iterable-4480325a.js');
|
|
10
|
+
require('./_library-dd23b178.js');
|
|
11
|
+
require('./core.get-iterator-method-b4615fd3.js');
|
|
12
|
+
require('./_set-species-a8cfdb84.js');
|
|
13
|
+
require('./_iter-detect-2613ffa1.js');
|
|
13
14
|
|
|
14
15
|
var defaultParseOptions = {
|
|
15
16
|
decodeValues: true,
|
|
@@ -31,9 +32,18 @@ function parseString(setCookieValue, options) {
|
|
|
31
32
|
? Object.assign({}, defaultParseOptions, options)
|
|
32
33
|
: defaultParseOptions;
|
|
33
34
|
|
|
35
|
+
try {
|
|
36
|
+
value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value
|
|
37
|
+
} catch (e) {
|
|
38
|
+
console.error(
|
|
39
|
+
`set-cookie-parser encountered an error while decoding a cookie with value '${value}'. Set options.decodeValues to false to disable this feature.`,
|
|
40
|
+
e
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
|
|
34
44
|
var cookie = {
|
|
35
45
|
name: name, // grab everything before the first =
|
|
36
|
-
value:
|
|
46
|
+
value: value,
|
|
37
47
|
};
|
|
38
48
|
|
|
39
49
|
parts.forEach(function (part) {
|
|
@@ -204,7 +214,7 @@ setCookie.parse = parse_1;
|
|
|
204
214
|
setCookie.parseString = parseString_1;
|
|
205
215
|
setCookie.splitCookiesString = splitCookiesString_1;
|
|
206
216
|
|
|
207
|
-
var
|
|
217
|
+
var utils = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
208
218
|
var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
|
|
209
219
|
__assign = Object.assign || function(t) {
|
|
210
220
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -217,10 +227,33 @@ var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlob
|
|
|
217
227
|
return __assign.apply(this, arguments);
|
|
218
228
|
};
|
|
219
229
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
220
|
-
exports.
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
230
|
+
exports.areCookiesEqual = exports.hasSameProperties = exports.createCookie = exports.isBrowser = void 0;
|
|
231
|
+
/**
|
|
232
|
+
* Tells whether we are in a browser or server.
|
|
233
|
+
*/
|
|
234
|
+
function isBrowser() {
|
|
235
|
+
return typeof window !== 'undefined';
|
|
236
|
+
}
|
|
237
|
+
exports.isBrowser = isBrowser;
|
|
238
|
+
/**
|
|
239
|
+
* Create an instance of the Cookie interface
|
|
240
|
+
*/
|
|
241
|
+
function createCookie(name, value, options) {
|
|
242
|
+
var sameSite = options.sameSite;
|
|
243
|
+
if (sameSite === true) {
|
|
244
|
+
sameSite = 'strict';
|
|
245
|
+
}
|
|
246
|
+
if (sameSite === undefined || sameSite === false) {
|
|
247
|
+
sameSite = 'lax';
|
|
248
|
+
}
|
|
249
|
+
var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
|
|
250
|
+
delete cookieToSet.encode;
|
|
251
|
+
return __assign({ name: name, value: value }, cookieToSet);
|
|
252
|
+
}
|
|
253
|
+
exports.createCookie = createCookie;
|
|
254
|
+
/**
|
|
255
|
+
* Tells whether given objects have the same properties.
|
|
256
|
+
*/
|
|
224
257
|
function hasSameProperties(a, b) {
|
|
225
258
|
var aProps = Object.getOwnPropertyNames(a);
|
|
226
259
|
var bProps = Object.getOwnPropertyNames(b);
|
|
@@ -235,8 +268,9 @@ function hasSameProperties(a, b) {
|
|
|
235
268
|
}
|
|
236
269
|
return true;
|
|
237
270
|
}
|
|
271
|
+
exports.hasSameProperties = hasSameProperties;
|
|
238
272
|
/**
|
|
239
|
-
* Compare the cookie and return true if the cookies
|
|
273
|
+
* Compare the cookie and return true if the cookies have equivalent
|
|
240
274
|
* options and the cookies would be overwritten in the browser storage.
|
|
241
275
|
*
|
|
242
276
|
* @param a first Cookie for comparison
|
|
@@ -249,104 +283,133 @@ function areCookiesEqual(a, b) {
|
|
|
249
283
|
}
|
|
250
284
|
return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
|
|
251
285
|
}
|
|
286
|
+
exports.areCookiesEqual = areCookiesEqual;
|
|
287
|
+
/* Functions */
|
|
288
|
+
|
|
289
|
+
});
|
|
290
|
+
|
|
291
|
+
_commonjsHelpers.unwrapExports(utils);
|
|
292
|
+
utils.areCookiesEqual;
|
|
293
|
+
utils.hasSameProperties;
|
|
294
|
+
utils.createCookie;
|
|
295
|
+
utils.isBrowser;
|
|
296
|
+
|
|
297
|
+
var dist = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
298
|
+
var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
|
|
299
|
+
__assign = Object.assign || function(t) {
|
|
300
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
301
|
+
s = arguments[i];
|
|
302
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
303
|
+
t[p] = s[p];
|
|
304
|
+
}
|
|
305
|
+
return t;
|
|
306
|
+
};
|
|
307
|
+
return __assign.apply(this, arguments);
|
|
308
|
+
};
|
|
309
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
310
|
+
exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
252
314
|
/**
|
|
253
|
-
* Create an instance of the Cookie interface
|
|
254
|
-
*
|
|
255
|
-
* @param name name of the Cookie
|
|
256
|
-
* @param value value of the Cookie
|
|
257
|
-
* @param options Cookie options
|
|
258
|
-
*/
|
|
259
|
-
function createCookie(name, value, options) {
|
|
260
|
-
var sameSite = options.sameSite;
|
|
261
|
-
if (sameSite === true) {
|
|
262
|
-
sameSite = 'strict';
|
|
263
|
-
}
|
|
264
|
-
if (sameSite === undefined || sameSite === false) {
|
|
265
|
-
sameSite = 'lax';
|
|
266
|
-
}
|
|
267
|
-
var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
|
|
268
|
-
delete cookieToSet.encode;
|
|
269
|
-
return __assign({ name: name, value: value }, cookieToSet);
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
*
|
|
273
315
|
* Parses cookies.
|
|
274
316
|
*
|
|
275
|
-
* @param ctx
|
|
276
|
-
* @param options
|
|
317
|
+
* @param ctx NextJS page or API context, express context, null or undefined.
|
|
318
|
+
* @param options Options that we pass down to `cookie` library.
|
|
277
319
|
*/
|
|
278
320
|
function parseCookies(ctx, options) {
|
|
279
|
-
|
|
280
|
-
|
|
321
|
+
var _a, _b;
|
|
322
|
+
if ((_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.req) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b.cookie) {
|
|
323
|
+
return index.cookie.parse(ctx.req.headers.cookie, options);
|
|
281
324
|
}
|
|
282
|
-
if (isBrowser()) {
|
|
283
|
-
return index
|
|
325
|
+
if (utils.isBrowser()) {
|
|
326
|
+
return index.cookie.parse(document.cookie, options);
|
|
284
327
|
}
|
|
285
328
|
return {};
|
|
286
329
|
}
|
|
287
330
|
exports.parseCookies = parseCookies;
|
|
288
331
|
/**
|
|
289
|
-
*
|
|
290
332
|
* Sets a cookie.
|
|
291
333
|
*
|
|
292
|
-
* @param ctx
|
|
293
|
-
* @param name
|
|
294
|
-
* @param value
|
|
295
|
-
* @param options
|
|
334
|
+
* @param ctx NextJS page or API context, express context, null or undefined.
|
|
335
|
+
* @param name The name of your cookie.
|
|
336
|
+
* @param value The value of your cookie.
|
|
337
|
+
* @param options Options that we pass down to `cookie` library.
|
|
296
338
|
*/
|
|
297
339
|
function setCookie$1(ctx, name, value, options) {
|
|
298
|
-
|
|
340
|
+
var _a, _b;
|
|
341
|
+
if (options === void 0) { options = {}; }
|
|
342
|
+
// SSR
|
|
343
|
+
if (((_a = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _a === void 0 ? void 0 : _a.getHeader) && ctx.res.setHeader) {
|
|
344
|
+
// Check if response has finished and warn about it.
|
|
345
|
+
if ((_b = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _b === void 0 ? void 0 : _b.finished) {
|
|
346
|
+
console.warn("Not setting \"" + name + "\" cookie. Response has finished.");
|
|
347
|
+
console.warn("You should set cookie before res.send()");
|
|
348
|
+
return {};
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Load existing cookies from the header and parse them.
|
|
352
|
+
*/
|
|
299
353
|
var cookies = ctx.res.getHeader('Set-Cookie') || [];
|
|
300
354
|
if (typeof cookies === 'string')
|
|
301
355
|
cookies = [cookies];
|
|
302
356
|
if (typeof cookies === 'number')
|
|
303
357
|
cookies = [];
|
|
304
|
-
|
|
358
|
+
/**
|
|
359
|
+
* Parse cookies but ignore values - we've already encoded
|
|
360
|
+
* them in the previous call.
|
|
361
|
+
*/
|
|
362
|
+
var parsedCookies = setCookie.parse(cookies, {
|
|
363
|
+
decodeValues: false,
|
|
364
|
+
});
|
|
365
|
+
/**
|
|
366
|
+
* We create the new cookie and make sure that none of
|
|
367
|
+
* the existing cookies match it.
|
|
368
|
+
*/
|
|
369
|
+
var newCookie_1 = utils.createCookie(name, value, options);
|
|
305
370
|
var cookiesToSet_1 = [];
|
|
306
371
|
parsedCookies.forEach(function (parsedCookie) {
|
|
307
|
-
if (!areCookiesEqual(parsedCookie,
|
|
308
|
-
|
|
372
|
+
if (!utils.areCookiesEqual(parsedCookie, newCookie_1)) {
|
|
373
|
+
/**
|
|
374
|
+
* We serialize the cookie back to the original format
|
|
375
|
+
* if it isn't the same as the new one.
|
|
376
|
+
*/
|
|
377
|
+
var serializedCookie = index.cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({
|
|
378
|
+
// we prevent reencoding by default, but you might override it
|
|
379
|
+
encode: function (val) { return val; } }, parsedCookie));
|
|
380
|
+
cookiesToSet_1.push(serializedCookie);
|
|
309
381
|
}
|
|
310
382
|
});
|
|
311
|
-
cookiesToSet_1.push(index
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
}
|
|
383
|
+
cookiesToSet_1.push(index.cookie.serialize(name, value, options));
|
|
384
|
+
// Update the header.
|
|
385
|
+
ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
|
|
315
386
|
}
|
|
316
|
-
|
|
387
|
+
// Browser
|
|
388
|
+
if (utils.isBrowser()) {
|
|
317
389
|
if (options && options.httpOnly) {
|
|
318
390
|
throw new Error('Can not set a httpOnly cookie in the browser.');
|
|
319
391
|
}
|
|
320
|
-
document.cookie = index
|
|
392
|
+
document.cookie = index.cookie.serialize(name, value, options);
|
|
321
393
|
}
|
|
322
394
|
return {};
|
|
323
395
|
}
|
|
324
396
|
exports.setCookie = setCookie$1;
|
|
325
397
|
/**
|
|
326
|
-
*
|
|
327
398
|
* Destroys a cookie with a particular name.
|
|
328
399
|
*
|
|
329
|
-
* @param ctx
|
|
330
|
-
* @param name
|
|
331
|
-
* @param options
|
|
400
|
+
* @param ctx NextJS page or API context, express context, null or undefined.
|
|
401
|
+
* @param name Cookie name.
|
|
402
|
+
* @param options Options that we pass down to `cookie` library.
|
|
332
403
|
*/
|
|
333
404
|
function destroyCookie(ctx, name, options) {
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
if (typeof cookies === 'number')
|
|
340
|
-
cookies = [];
|
|
341
|
-
cookies.push(index$5.cookie.serialize(name, '', opts));
|
|
342
|
-
ctx.res.setHeader('Set-Cookie', cookies);
|
|
343
|
-
}
|
|
344
|
-
if (isBrowser()) {
|
|
345
|
-
document.cookie = index$5.cookie.serialize(name, '', opts);
|
|
346
|
-
}
|
|
347
|
-
return {};
|
|
405
|
+
/**
|
|
406
|
+
* We forward the request destroy to setCookie function
|
|
407
|
+
* as it is the same function with modified maxAge value.
|
|
408
|
+
*/
|
|
409
|
+
return setCookie$1(ctx, name, '', __assign(__assign({}, (options || {})), { maxAge: -1 }));
|
|
348
410
|
}
|
|
349
411
|
exports.destroyCookie = destroyCookie;
|
|
412
|
+
/* Utility Exports */
|
|
350
413
|
exports.default = {
|
|
351
414
|
set: setCookie$1,
|
|
352
415
|
get: parseCookies,
|
|
@@ -356,7 +419,7 @@ exports.default = {
|
|
|
356
419
|
});
|
|
357
420
|
|
|
358
421
|
_commonjsHelpers.unwrapExports(dist);
|
|
359
|
-
|
|
422
|
+
dist.destroyCookie;
|
|
360
423
|
var dist_2 = dist.setCookie;
|
|
361
424
|
var dist_3 = dist.parseCookies;
|
|
362
425
|
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var asyncToGenerator = require('./asyncToGenerator-2edcb6ad.js');
|
|
3
4
|
require('./_commonjsHelpers-06173234.js');
|
|
4
|
-
require('./
|
|
5
|
-
require('./
|
|
5
|
+
require('./es6.string.iterator-20d42c53.js');
|
|
6
|
+
require('./_to-object-821a2927.js');
|
|
7
|
+
require('./web.dom.iterable-4480325a.js');
|
|
6
8
|
require('./_library-dd23b178.js');
|
|
7
|
-
require('./
|
|
8
|
-
require('./
|
|
9
|
-
require('./
|
|
10
|
-
var asyncToGenerator = require('./asyncToGenerator-140e5f89.js');
|
|
9
|
+
require('./core.get-iterator-method-b4615fd3.js');
|
|
10
|
+
require('./_set-species-a8cfdb84.js');
|
|
11
|
+
require('./_iter-detect-2613ffa1.js');
|
|
11
12
|
|
|
12
13
|
var _this = undefined;
|
|
13
14
|
|