@mjhls/mjh-framework 1.0.880-beta.0 → 1.0.880
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 +10 -9
- package/dist/cjs/AD300x250.js +29 -28
- package/dist/cjs/AD300x250x600.js +29 -28
- package/dist/cjs/AD728x90.js +32 -31
- package/dist/cjs/ADFloatingFooter.js +31 -30
- package/dist/cjs/ADFooter.js +13 -12
- package/dist/cjs/ADGutter.js +31 -30
- package/dist/cjs/{ADInfeed-2e48af77.js → ADInfeed-9a2e923a.js} +15 -13
- package/dist/cjs/ADSkyscraper.js +31 -30
- package/dist/cjs/ADSponsoredResources.js +31 -30
- package/dist/cjs/ADWebcast.js +31 -30
- package/dist/cjs/ADWelcome.js +32 -31
- package/dist/cjs/{ADlgInfeed-c39c7131.js → ADlgInfeed-957a1996.js} +11 -10
- package/dist/cjs/AccordionPanel.js +29 -27
- package/dist/cjs/AdSlot.js +32 -31
- package/dist/cjs/AdSlotsProvider.js +18 -909
- package/dist/cjs/AlgoliaSearch.js +1391 -1272
- package/dist/cjs/AlphabeticList.js +24 -23
- package/dist/cjs/ArticleCarousel.js +21 -19
- package/dist/cjs/ArticleProgramLandingPage.js +61 -59
- package/dist/cjs/ArticleSeriesLandingPage.js +44 -38
- package/dist/cjs/ArticleSeriesListing.js +60 -58
- package/dist/cjs/Auth.js +680 -1504
- package/dist/cjs/AuthWrapper.js +309 -267
- package/dist/cjs/{AuthorComponent-02e827ae.js → AuthorComponent-39b37d84.js} +14 -13
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-9c6b07ad.js → BlockContent-36e54d77.js} +56 -55
- package/dist/cjs/Breadcrumbs.js +27 -25
- package/dist/cjs/CMEDeck.js +81 -81
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +34 -31
- package/dist/cjs/Column3.js +60 -57
- package/dist/cjs/ConferenceArticleCard.js +43 -41
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +105 -100
- package/dist/cjs/DeckQueue.js +91 -86
- package/dist/cjs/{Dfp-14d2455c.js → Dfp-9be904d5.js} +33 -32
- package/dist/cjs/EventsDeck.js +157 -150
- package/dist/cjs/ExternalResources.js +80 -78
- package/dist/cjs/Feature.js +31 -28
- package/dist/cjs/ForbesHero.js +43 -41
- package/dist/cjs/GridContent.js +237 -231
- package/dist/cjs/GridHero.js +45 -43
- package/dist/cjs/GroupDeck.js +60 -58
- package/dist/cjs/HamMagazine.js +143 -138
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +16 -14
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalArticleListing.js +72 -70
- package/dist/cjs/HorizontalHero.js +30 -28
- package/dist/cjs/IssueContentDeck.js +77 -71
- package/dist/cjs/IssueDeck.js +76 -70
- package/dist/cjs/IssueLanding.js +94 -91
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +39 -37
- package/dist/cjs/MasterDeck.js +355 -227
- package/dist/cjs/MediaSeriesLanding.js +1118 -1126
- package/dist/cjs/NavDvm.js +77 -72
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +150 -145
- package/dist/cjs/NavNative.js +145 -137
- package/dist/cjs/OncliveHero.js +24 -23
- package/dist/cjs/OncliveLargeHero.js +75 -73
- package/dist/cjs/PageFilter.js +13 -12
- package/dist/cjs/PartnerDetailListing.js +119 -3917
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +19 -17
- package/dist/cjs/PubSection.js +41 -38
- package/dist/cjs/PubToc.js +14 -13
- package/dist/cjs/PublicationDeck.js +71 -65
- package/dist/cjs/PublicationLanding.js +137 -133
- package/dist/cjs/QueueDeckExpanded.js +1173 -1001
- package/dist/cjs/RecentNews.js +22 -21
- package/dist/cjs/RelatedContent.js +59 -57
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +20 -16
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +37 -36
- package/dist/cjs/{SeriesSlider-ec146338.js → SeriesSlider-ce3261cb.js} +41 -40
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +37 -36
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-e8477ca3.js → SocialSearchComponent-5ec44406.js} +40 -36
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +67 -61
- package/dist/cjs/TaxonomyDescription.js +55 -53
- package/dist/cjs/TemplateNormal.js +73 -72
- package/dist/cjs/ThumbnailCard.js +26 -23
- package/dist/cjs/Ustream.js +28 -27
- package/dist/cjs/VerticalHero.js +22 -20
- package/dist/cjs/VideoProgramLandingPage.js +78 -73
- package/dist/cjs/VideoSeriesCard.js +34 -32
- package/dist/cjs/VideoSeriesFilter.js +16 -16
- package/dist/cjs/VideoSeriesLandingPage.js +52 -48
- package/dist/cjs/VideoSeriesListing.js +77 -75
- package/dist/cjs/View.js +275 -271
- package/dist/cjs/YahooHero.js +42 -40
- package/dist/cjs/YoutubeGroup.js +68 -66
- package/dist/cjs/{_is-array-aa52fa1e.js → _is-array-54228b29.js} +6 -6
- package/dist/cjs/{_iter-detect-05795553.js → _iter-detect-b1df62f0.js} +7 -7
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-171b9ea5.js → _object-sap-d1978572.js} +1 -1
- package/dist/cjs/{_object-to-array-9bac8737.js → _object-to-array-ce86cae7.js} +2 -2
- package/dist/cjs/{asyncToGenerator-df19209d.js → asyncToGenerator-77821af0.js} +30 -30
- 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-f3c44602.js → core.get-iterator-method-5643aa10.js} +35 -35
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-21887c62.js → define-property-e8404b64.js} +6 -6
- package/dist/cjs/{defineProperty-77a37684.js → defineProperty-9673846a.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{extends-eed4f016.js → extends-7c86182f.js} +7 -7
- package/dist/cjs/faundadb.js +19 -19
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +18 -18
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -42
- package/dist/cjs/{getTargeting-8874437b.js → getTargeting-9d509319.js} +12 -12
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-17c6af5a.js → index-22bdde81.js} +1093 -1067
- package/dist/cjs/{index-e2e62963.js → index-8041a4eb.js} +11 -1
- package/dist/cjs/{index-96b3db50.js → index-eadd5035.js} +17 -15
- package/dist/cjs/{urlFor-3a61226f.js → index-efca863c.js} +37 -88
- package/dist/cjs/{index-3294d3bc.js → index-f86bb269.js} +44 -45
- package/dist/cjs/{index-98e01cb9.js → index-fc2f1ca2.js} +13 -12
- 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-e32d3e8e.js → index.esm-44f3e2d0.js} +3 -6
- 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 +170 -164
- package/dist/cjs/{inherits-cba9c846.js → inherits-de66ea16.js} +19 -19
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/{keys-d207942e.js → keys-e982b3fa.js} +6 -6
- package/dist/cjs/{lodash-fc2922d0.js → lodash-f0783643.js} +128 -31
- package/dist/cjs/main-025fdc78.js +973 -0
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- 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-f6d4eaa8.js → slicedToArray-067dd3bc.js} +12 -12
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/{stringify-bbc68047.js → stringify-f7a37a8d.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-c9b8a0d0.js → toConsumableArray-d7797c2b.js} +7 -7
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/{typeof-5f52cf64.js → typeof-567e31ff.js} +35 -35
- package/dist/cjs/urlFor.js +59 -5
- package/dist/cjs/{ustream-api-9ebe112f.js → ustream-api-3819e4aa.js} +4 -4
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- package/dist/cjs/{web.dom.iterable-e34bf324.js → web.dom.iterable-d98303e0.js} +2 -2
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +25 -25
- package/dist/esm/AD300x250x600.js +25 -25
- package/dist/esm/AD728x90.js +28 -28
- package/dist/esm/ADFloatingFooter.js +27 -27
- package/dist/esm/ADFooter.js +9 -9
- package/dist/esm/ADGutter.js +27 -27
- package/dist/esm/{ADInfeed-0c13c803.js → ADInfeed-8c5f8c58.js} +11 -11
- package/dist/esm/ADSkyscraper.js +27 -27
- package/dist/esm/ADSponsoredResources.js +27 -27
- package/dist/esm/ADWebcast.js +27 -27
- package/dist/esm/ADWelcome.js +28 -28
- package/dist/esm/{ADlgInfeed-e4e2031a.js → ADlgInfeed-2316e091.js} +8 -8
- package/dist/esm/AccordionPanel.js +22 -22
- package/dist/esm/AdSlot.js +23 -23
- package/dist/esm/AdSlotsProvider.js +15 -907
- package/dist/esm/AlgoliaSearch.js +820 -702
- package/dist/esm/AlphabeticList.js +20 -20
- package/dist/esm/ArticleCarousel.js +17 -16
- package/dist/esm/ArticleProgramLandingPage.js +54 -53
- package/dist/esm/ArticleSeriesLandingPage.js +38 -33
- package/dist/esm/ArticleSeriesListing.js +55 -54
- package/dist/esm/Auth.js +659 -1487
- package/dist/esm/AuthWrapper.js +306 -265
- package/dist/esm/{AuthorComponent-e6f95c2f.js → AuthorComponent-46a745ba.js} +11 -11
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-f4515898.js → BlockContent-52cf21c5.js} +35 -35
- package/dist/esm/Breadcrumbs.js +15 -15
- package/dist/esm/CMEDeck.js +77 -77
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +28 -28
- package/dist/esm/Column3.js +54 -54
- package/dist/esm/ConferenceArticleCard.js +38 -37
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +96 -95
- package/dist/esm/DeckQueue.js +82 -81
- package/dist/esm/{Dfp-f867d061.js → Dfp-4ca12f2e.js} +20 -20
- package/dist/esm/EventsDeck.js +129 -129
- package/dist/esm/ExternalResources.js +73 -72
- package/dist/esm/Feature.js +22 -21
- package/dist/esm/ForbesHero.js +33 -32
- package/dist/esm/GridContent.js +199 -198
- package/dist/esm/GridHero.js +35 -34
- package/dist/esm/GroupDeck.js +45 -44
- package/dist/esm/HamMagazine.js +114 -114
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +13 -12
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +68 -67
- package/dist/esm/HorizontalHero.js +25 -24
- package/dist/esm/IssueContentDeck.js +59 -58
- package/dist/esm/IssueDeck.js +63 -62
- package/dist/esm/IssueLanding.js +90 -88
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +33 -33
- package/dist/esm/MasterDeck.js +350 -223
- package/dist/esm/MediaSeriesLanding.js +839 -850
- package/dist/esm/NavDvm.js +57 -57
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +124 -124
- package/dist/esm/NavNative.js +114 -114
- package/dist/esm/OncliveHero.js +20 -20
- package/dist/esm/OncliveLargeHero.js +58 -57
- package/dist/esm/PageFilter.js +10 -10
- package/dist/esm/PartnerDetailListing.js +112 -3910
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +12 -12
- package/dist/esm/PubSection.js +37 -35
- package/dist/esm/PubToc.js +10 -10
- package/dist/esm/PublicationDeck.js +56 -55
- package/dist/esm/PublicationLanding.js +120 -120
- package/dist/esm/QueueDeckExpanded.js +1166 -994
- package/dist/esm/RecentNews.js +19 -19
- package/dist/esm/RelatedContent.js +51 -50
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +11 -11
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +31 -30
- package/dist/esm/{SeriesSlider-d6561e33.js → SeriesSlider-7a6c45ce.js} +31 -31
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +32 -32
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-b5be0e6c.js → SocialSearchComponent-bdecba55.js} +30 -30
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +56 -55
- package/dist/esm/TaxonomyDescription.js +49 -48
- package/dist/esm/TemplateNormal.js +68 -68
- package/dist/esm/ThumbnailCard.js +17 -16
- package/dist/esm/Ustream.js +24 -24
- package/dist/esm/VerticalHero.js +17 -16
- package/dist/esm/VideoProgramLandingPage.js +65 -64
- package/dist/esm/VideoSeriesCard.js +26 -25
- package/dist/esm/VideoSeriesFilter.js +13 -13
- package/dist/esm/VideoSeriesLandingPage.js +42 -39
- package/dist/esm/VideoSeriesListing.js +72 -71
- package/dist/esm/View.js +246 -246
- package/dist/esm/YahooHero.js +33 -32
- package/dist/esm/YoutubeGroup.js +52 -51
- package/dist/esm/{_is-array-4df618a6.js → _is-array-893ab020.js} +6 -6
- package/dist/esm/{_iter-detect-130ee549.js → _iter-detect-f089461c.js} +7 -7
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-8b8ea5a9.js → _object-sap-169d6272.js} +1 -1
- package/dist/esm/{_object-to-array-c54dd835.js → _object-to-array-50a6b9a3.js} +2 -2
- package/dist/esm/{asyncToGenerator-64812e90.js → asyncToGenerator-b4dfe691.js} +31 -31
- 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-86d4db69.js → core.get-iterator-method-e903ff31.js} +36 -36
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-6d26cb48.js → define-property-99e66838.js} +6 -6
- package/dist/esm/{defineProperty-d7d9b577.js → defineProperty-8fa0bc8d.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{extends-5b1796d4.js → extends-dc6a71fd.js} +7 -7
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getRelatedArticle.js +12 -12
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +43 -42
- package/dist/esm/{getTargeting-277c801e.js → getTargeting-ff2c9409.js} +11 -11
- package/dist/esm/getTargeting.js +6 -6
- package/dist/esm/{urlFor-23b2244b.js → index-0dbff1d1.js} +37 -88
- package/dist/esm/{index-41a678ea.js → index-2446af28.js} +6 -6
- package/dist/esm/{index-5f7e79e7.js → index-35bdcc81.js} +10 -10
- package/dist/esm/{index-aaa2dae0.js → index-67e1773f.js} +11 -2
- package/dist/esm/{index-ef6d5dcf.js → index-79cfd25c.js} +44 -45
- package/dist/esm/{index-a35a5c39.js → index-c9bfc91f.js} +1017 -1001
- 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-f8aaeeeb.js → index.esm-c6715e80.js} +3 -6
- package/dist/esm/index.js +140 -137
- package/dist/esm/{inherits-2409637d.js → inherits-8a801a18.js} +18 -18
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-69989821.js → keys-425c8ab0.js} +6 -6
- package/dist/esm/{lodash-17fdfebb.js → lodash-f97fd99a.js} +128 -31
- package/dist/esm/main-4136096f.js +961 -0
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- 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-67a08c9c.js → slicedToArray-ca2c8b8d.js} +12 -12
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-c21932b3.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-32282905.js → toConsumableArray-7b1c0e23.js} +7 -7
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/{typeof-c05a82ba.js → typeof-83d9eb10.js} +35 -35
- package/dist/esm/urlFor.js +62 -4
- package/dist/esm/{ustream-api-4c4fe0ba.js → ustream-api-41166338.js} +4 -4
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-f8f967cd.js → web.dom.iterable-fdf034f5.js} +2 -2
- package/package.json +111 -112
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/Pagination-9cb60fba.js +0 -61
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/cjs/main-02daeefe.js +0 -862
- package/dist/esm/Pagination-256b60e5.js +0 -56
- package/dist/esm/inherits-77d5e4fc.js +0 -101
- package/dist/esm/main-c0612122.js +0 -851
- package/dist/esm/stringify-70b72959.js +0 -15
package/dist/esm/RecentNews.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { a as FaLongArrowAltRight } from './index.esm-a8ff922c.js';
|
|
2
3
|
import './iconBase-602d52fe.js';
|
|
3
|
-
import { a as FaLongArrowAltRight } from './index.esm-cf08bf18.js';
|
|
4
4
|
|
|
5
5
|
var RecentNews = function RecentNews(_ref) {
|
|
6
|
-
|
|
7
|
-
_ref$dataRecord = _ref.dataRecord,
|
|
6
|
+
_ref.client;
|
|
7
|
+
var _ref$dataRecord = _ref.dataRecord,
|
|
8
8
|
dataRecord = _ref$dataRecord === undefined ? [] : _ref$dataRecord,
|
|
9
9
|
_ref$linkTo = _ref.linkTo,
|
|
10
10
|
linkTo = _ref$linkTo === undefined ? '/news' : _ref$linkTo,
|
|
@@ -19,39 +19,39 @@ var RecentNews = function RecentNews(_ref) {
|
|
|
19
19
|
var topArticle = dataRecord[0];
|
|
20
20
|
var subArticles = dataRecord.slice(1, dataRecord.length);
|
|
21
21
|
|
|
22
|
-
return
|
|
22
|
+
return React.createElement(
|
|
23
23
|
'div',
|
|
24
24
|
{ className: 'recent-news-container', style: { border: '3px solid ' + borderColor } },
|
|
25
|
-
|
|
25
|
+
React.createElement(
|
|
26
26
|
'div',
|
|
27
27
|
{ className: 'recent-news-title' },
|
|
28
|
-
|
|
28
|
+
React.createElement(
|
|
29
29
|
'h2',
|
|
30
30
|
null,
|
|
31
31
|
heroTitle
|
|
32
32
|
),
|
|
33
|
-
|
|
33
|
+
React.createElement('div', null)
|
|
34
34
|
),
|
|
35
|
-
|
|
35
|
+
React.createElement(
|
|
36
36
|
'div',
|
|
37
37
|
{ className: 'recent-news-inner' },
|
|
38
|
-
|
|
38
|
+
React.createElement(
|
|
39
39
|
'div',
|
|
40
40
|
{ className: 'recent-article-wrap', style: { flexBasis: '100%' } },
|
|
41
|
-
|
|
41
|
+
React.createElement(
|
|
42
42
|
'a',
|
|
43
43
|
{ href: '/view/' + topArticle.url.current, className: 'recent-article' },
|
|
44
|
-
|
|
44
|
+
React.createElement(
|
|
45
45
|
'p',
|
|
46
46
|
null,
|
|
47
47
|
topArticle.title
|
|
48
48
|
)
|
|
49
49
|
),
|
|
50
50
|
subArticles.map(function (article, index) {
|
|
51
|
-
return
|
|
51
|
+
return React.createElement(
|
|
52
52
|
'a',
|
|
53
53
|
{ key: index, href: '/view/' + article.url.current, className: 'recent-article' },
|
|
54
|
-
|
|
54
|
+
React.createElement(
|
|
55
55
|
'p',
|
|
56
56
|
null,
|
|
57
57
|
article.title
|
|
@@ -60,21 +60,21 @@ var RecentNews = function RecentNews(_ref) {
|
|
|
60
60
|
})
|
|
61
61
|
)
|
|
62
62
|
),
|
|
63
|
-
linkTo &&
|
|
63
|
+
linkTo && React.createElement(
|
|
64
64
|
'div',
|
|
65
65
|
{ className: 'recent-view-more' },
|
|
66
|
-
|
|
66
|
+
React.createElement(
|
|
67
67
|
'a',
|
|
68
68
|
{ href: linkTo },
|
|
69
69
|
linkTitle,
|
|
70
|
-
|
|
70
|
+
React.createElement(
|
|
71
71
|
'span',
|
|
72
72
|
null,
|
|
73
|
-
|
|
73
|
+
React.createElement(FaLongArrowAltRight, { color: 'var(--primary)' })
|
|
74
74
|
)
|
|
75
75
|
)
|
|
76
76
|
),
|
|
77
|
-
|
|
77
|
+
React.createElement(
|
|
78
78
|
'style',
|
|
79
79
|
{ jsx: 'true' },
|
|
80
80
|
'\n .recent-news-container {\n margin-bottom: 1.7rem;\n margin-top: 1rem;\n position: relative;\n }\n .recent-news-title {\n position: absolute;\n top: -10px;\n background: white;\n z-index: 2;\n left: 10px;\n padding-right: 0.25rem;\n padding-left: 0.25rem;\n font-weight: bold;\n }\n .recent-news-title h2 {\n font-size: 0.9rem;\n font-weight: bold;\n }\n .recent-news-inner {\n display: flex;\n flex-direction: row;\n padding-top: 0.75rem;\n margin-top: 0.75rem;\n }\n .recent-article-wrap {\n padding: 0 0.5rem;\n }\n \n .recent-article {\n border-bottom: 1px solid #ccc;\n display: block;\n margin-bottom: 0.5rem;\n }\n .recent-article:last-child {\n border-bottom: none;\n }\n .recent-article:hover {\n background: #eee;\n }\n .recent-article p {\n font-size: 0.7rem;\n margin-bottom: 0.5rem;\n color: #252525;\n }\n .recent-view-more {\n position: absolute;\n right: 0;\n margin-top: 0.25rem;\n font-size: 0.7rem;\n font-weight: bold;\n }\n .recent-view-more span {\n display: inline-block;\n color: rgb(81, 116, 153);\n font-size: 0.7rem;\n }\n @media screen and (max-width: 1191px){\n \n .recent-article > p {\n font-size: 0.7rem;\n }\n }\n }\n @media screen and (max-width: 495px) {\n \n .recent-article > p {\n font-size: 0.7rem;\n }\n }\n '
|
|
@@ -1,43 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
3
|
+
import 'react-bootstrap/Media';
|
|
4
|
+
import urlFor from './urlFor.js';
|
|
5
|
+
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
1
6
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
3
|
-
import './web.dom.iterable-
|
|
4
|
-
import
|
|
5
|
-
import '
|
|
6
|
-
import { m as moment } from './moment-e2f9b20c.js';
|
|
7
|
+
import './slicedToArray-ca2c8b8d.js';
|
|
8
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
9
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
10
|
+
import './index-0dbff1d1.js';
|
|
7
11
|
import 'react-dom';
|
|
8
|
-
import '
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
import 'prop-types';
|
|
13
|
+
|
|
14
|
+
/*
|
|
15
|
+
Sample query
|
|
16
|
+
let references = ''
|
|
17
|
+
if(article.taxonomyMapping.length > 0){
|
|
18
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
19
|
+
references = references + `references('${ref._ref}') `
|
|
20
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
21
|
+
references = references + ` && `
|
|
22
|
+
}
|
|
23
|
+
})
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
27
|
+
...,
|
|
28
|
+
title,
|
|
29
|
+
summary,
|
|
30
|
+
thumbnail,
|
|
31
|
+
url,
|
|
32
|
+
published,
|
|
33
|
+
authorMapping[]->,
|
|
34
|
+
contentCategory->
|
|
35
|
+
}`
|
|
36
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
37
|
+
|
|
38
|
+
Sample usage
|
|
39
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
40
|
+
|
|
12
41
|
|
|
13
|
-
/*
|
|
14
|
-
Sample query
|
|
15
|
-
let references = ''
|
|
16
|
-
if(article.taxonomyMapping.length > 0){
|
|
17
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
18
|
-
references = references + `references('${ref._ref}') `
|
|
19
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
20
|
-
references = references + ` && `
|
|
21
|
-
}
|
|
22
|
-
})
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const relatedArticlesQuery = `*[!(_id in path("drafts.**")) && _type == "article" && title !='${article.title}' && defined(title) && is_visible == true && ( references('article.documentGroup._id') || ${references} ) && published <= '${today}'] | order(published desc) [0...4] {
|
|
26
|
-
...,
|
|
27
|
-
title,
|
|
28
|
-
summary,
|
|
29
|
-
thumbnail,
|
|
30
|
-
url,
|
|
31
|
-
published,
|
|
32
|
-
authorMapping[]->,
|
|
33
|
-
contentCategory->
|
|
34
|
-
}`
|
|
35
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
36
|
-
|
|
37
|
-
Sample usage
|
|
38
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
39
|
-
|
|
40
|
-
|
|
41
42
|
*/
|
|
42
43
|
var RelatedContent = function RelatedContent(props) {
|
|
43
44
|
var client = props.client,
|
|
@@ -46,47 +47,47 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
46
47
|
defaultImage = _props$defaultImage === undefined ? '' : _props$defaultImage;
|
|
47
48
|
|
|
48
49
|
|
|
49
|
-
return
|
|
50
|
+
return React.createElement(
|
|
50
51
|
'div',
|
|
51
52
|
null,
|
|
52
|
-
|
|
53
|
+
React.createElement(
|
|
53
54
|
'h1',
|
|
54
55
|
{ className: 'mb-4 pb-2', style: { borderBottom: '1px solid #ccc', fontSize: '1.2rem', fontWeight: 'bold', color: '#252525' } },
|
|
55
56
|
'Related Content'
|
|
56
57
|
),
|
|
57
|
-
|
|
58
|
+
React.createElement(
|
|
58
59
|
'div',
|
|
59
60
|
{ className: 'related-articles-container' },
|
|
60
61
|
dataRecord.map(function (article, index) {
|
|
61
|
-
return
|
|
62
|
+
return React.createElement(
|
|
62
63
|
'a',
|
|
63
64
|
{ key: index, href: '/view/' + article.url.current, className: 'related-article' },
|
|
64
|
-
|
|
65
|
+
React.createElement(
|
|
65
66
|
'figure',
|
|
66
67
|
null,
|
|
67
|
-
|
|
68
|
+
React.createElement(
|
|
68
69
|
LazyLoad,
|
|
69
70
|
{ once: true },
|
|
70
|
-
|
|
71
|
+
React.createElement('img', {
|
|
71
72
|
src: article.thumbnail ? urlFor({ client: client, source: article.thumbnail.asset, imageWidth: 500 }) : defaultImage,
|
|
72
73
|
alt: article.title
|
|
73
74
|
})
|
|
74
75
|
)
|
|
75
76
|
),
|
|
76
|
-
|
|
77
|
+
React.createElement(
|
|
77
78
|
'div',
|
|
78
79
|
{ className: 'related-article-body' },
|
|
79
|
-
|
|
80
|
-
props.showPublished &&
|
|
80
|
+
React.createElement('h4', { dangerouslySetInnerHTML: { __html: article.title } }),
|
|
81
|
+
props.showPublished && React.createElement(
|
|
81
82
|
'p',
|
|
82
83
|
{ className: 'pb-0 mb-0' },
|
|
83
84
|
moment(article.published).format('MMMM DD, YYYY hh:mma')
|
|
84
85
|
),
|
|
85
|
-
props.showAuthor && article.authorMapping && article.authorMapping[0] &&
|
|
86
|
+
props.showAuthor && article.authorMapping && article.authorMapping[0] && React.createElement(
|
|
86
87
|
'p',
|
|
87
88
|
null,
|
|
88
89
|
'By ',
|
|
89
|
-
|
|
90
|
+
React.createElement(
|
|
90
91
|
'b',
|
|
91
92
|
null,
|
|
92
93
|
article.authorMapping[0].displayName
|
|
@@ -95,7 +96,7 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
95
96
|
)
|
|
96
97
|
);
|
|
97
98
|
}),
|
|
98
|
-
|
|
99
|
+
React.createElement(
|
|
99
100
|
'style',
|
|
100
101
|
{ jsx: 'true' },
|
|
101
102
|
'\n .related-article {\n width: 100%;\n display: flex;\n flex-direction: ' + (props.reverse ? 'row-reverse' : 'row') + ';\n margin-bottom: 1rem;\n }\n .related-article figure {\n width: 165px;\n height: 110px;\n min-width: 165px;\n }\n .related-article figure img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n .related-article-body {\n flex: 1 1 auto;\n padding: 0 1rem;\n }\n .related-article-body h4 {\n font-weight: bold;\n font-size: 1.1rem;\n margin-bottom: 0.25rem;\n line-height: 1.3;\n }\n @media screen and (max-width: 430px) {\n .related-article {\n flex-direction: column;\n }\n .related-article figure {\n width: 80%;\n height: auto;\n min-width: 80%;\n margin: 0 auto;\n }\n .related-article figure img {\n width: 100%;\n height: auto;\n object-fit: cover;\n }\n }\n '
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import DropdownButton from 'react-bootstrap/DropdownButton';
|
|
3
3
|
import Dropdown from 'react-bootstrap/Dropdown';
|
|
4
4
|
|
|
@@ -14,36 +14,36 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
14
14
|
_ref$className = _ref.className,
|
|
15
15
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
16
16
|
|
|
17
|
-
/*
|
|
18
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
19
|
-
example:
|
|
20
|
-
<RelatedTopicDropdown
|
|
21
|
-
page='/clinical'
|
|
22
|
-
exclude="clinical"
|
|
23
|
-
className='mb-3'
|
|
24
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
25
|
-
subTaxonomies={props.subTaxonomies}
|
|
26
|
-
/>
|
|
17
|
+
/*
|
|
18
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
19
|
+
example:
|
|
20
|
+
<RelatedTopicDropdown
|
|
21
|
+
page='/clinical'
|
|
22
|
+
exclude="clinical"
|
|
23
|
+
className='mb-3'
|
|
24
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
25
|
+
subTaxonomies={props.subTaxonomies}
|
|
26
|
+
/>
|
|
27
27
|
*/
|
|
28
28
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
29
29
|
if (parentTaxonomy.identifier == exclude) {
|
|
30
30
|
return '';
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return React.createElement(
|
|
33
33
|
'div',
|
|
34
34
|
null,
|
|
35
|
-
|
|
35
|
+
React.createElement(
|
|
36
36
|
'style',
|
|
37
37
|
{ jsx: true },
|
|
38
38
|
'\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n top: auto !important;\n max-height: 50vh !important;\n box-shadow: 0px 0px 25px #ccc;\n z-index: 9999;\n transform: none !important;\n overflow: hidden;\n overflow-y: scroll;\n }\n @media only screen and (max-width: 720px) {\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n max-height: 30vh !important;\n max-width: 95vw;\n box-shadow: 0px 0px 25px #ccc;\n z-index: 9999;\n font-size: 0.85em;\n overflow: hidden;\n overflow-y: scroll;\n }\n }\n '
|
|
39
39
|
),
|
|
40
|
-
|
|
40
|
+
React.createElement(
|
|
41
41
|
'div',
|
|
42
42
|
{ id: 'related_dropdown', className: className },
|
|
43
|
-
|
|
43
|
+
React.createElement(
|
|
44
44
|
DropdownButton,
|
|
45
45
|
{ id: 'related_button', variant: variant, title: 'Related Topics' },
|
|
46
|
-
|
|
46
|
+
React.createElement(
|
|
47
47
|
Dropdown.Item,
|
|
48
48
|
{ href: parentTaxonomy.identifier },
|
|
49
49
|
parentTaxonomy.name
|
|
@@ -52,22 +52,22 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
52
52
|
)
|
|
53
53
|
);
|
|
54
54
|
} else {
|
|
55
|
-
return
|
|
55
|
+
return React.createElement(
|
|
56
56
|
'div',
|
|
57
57
|
null,
|
|
58
|
-
|
|
58
|
+
React.createElement(
|
|
59
59
|
'style',
|
|
60
60
|
{ jsx: true },
|
|
61
61
|
'\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n top: auto !important;\n max-height: 40vh !important;\n z-index: 9999;\n transform: none !important;\n overflow: hidden;\n overflow-y: scroll;\n }\n @media only screen and (max-width: 720px) {\n #related_dropdown > .dropdown > .dropdown-menu.show {\n position: absolute;\n max-height: 30vh !important;\n max-width: 95vw;\n z-index: 9999;\n font-size: 0.85em;\n overflow: hidden;\n overflow-y: scroll;\n }\n }\n '
|
|
62
62
|
),
|
|
63
|
-
|
|
63
|
+
React.createElement(
|
|
64
64
|
'div',
|
|
65
65
|
{ id: 'related_dropdown', className: className },
|
|
66
|
-
|
|
66
|
+
React.createElement(
|
|
67
67
|
DropdownButton,
|
|
68
68
|
{ id: 'related_button', variant: variant, title: 'Related Topics' },
|
|
69
69
|
subTaxonomies.length > 0 && subTaxonomies.map(function (taxonomy, index) {
|
|
70
|
-
return
|
|
70
|
+
return React.createElement(
|
|
71
71
|
Dropdown.Item,
|
|
72
72
|
{ key: index, href: page + '/' + taxonomy.identifier },
|
|
73
73
|
taxonomy.name
|
package/dist/esm/RolesDeck.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Container
|
|
3
|
-
import Row
|
|
4
|
-
import Col
|
|
5
|
-
import Card
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Container from 'react-bootstrap/Container';
|
|
3
|
+
import Row from 'react-bootstrap/Row';
|
|
4
|
+
import Col from 'react-bootstrap/Col';
|
|
5
|
+
import Card from 'react-bootstrap/Card';
|
|
6
6
|
|
|
7
7
|
var RolesDeck = function RolesDeck(props) {
|
|
8
8
|
var _props$icon = props.icon,
|
|
@@ -15,43 +15,43 @@ var RolesDeck = function RolesDeck(props) {
|
|
|
15
15
|
// dataRecord - data record to be shown in card.
|
|
16
16
|
// />
|
|
17
17
|
|
|
18
|
-
return
|
|
18
|
+
return React.createElement(
|
|
19
19
|
'div',
|
|
20
20
|
{ className: 'rolesDeck' },
|
|
21
|
-
|
|
22
|
-
Container
|
|
21
|
+
React.createElement(
|
|
22
|
+
Container,
|
|
23
23
|
null,
|
|
24
|
-
|
|
25
|
-
Row
|
|
24
|
+
React.createElement(
|
|
25
|
+
Row,
|
|
26
26
|
null,
|
|
27
27
|
data && data.map(function (row, index) {
|
|
28
28
|
if (row && row.url && row.name) {
|
|
29
|
-
return
|
|
30
|
-
Col
|
|
29
|
+
return React.createElement(
|
|
30
|
+
Col,
|
|
31
31
|
{ key: index, md: 12, lg: 6, counter: index++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
32
|
-
|
|
33
|
-
Card
|
|
32
|
+
React.createElement(
|
|
33
|
+
Card,
|
|
34
34
|
{ className: 'taxonomy-card', style: { position: 'relative', overflow: 'hidden', borderBottom: '3px solid var(--primary)' } },
|
|
35
|
-
|
|
36
|
-
Card
|
|
35
|
+
React.createElement(
|
|
36
|
+
Card.Link,
|
|
37
37
|
{ href: row.url },
|
|
38
|
-
|
|
39
|
-
Card
|
|
38
|
+
React.createElement(
|
|
39
|
+
Card.Body,
|
|
40
40
|
null,
|
|
41
|
-
|
|
42
|
-
Row
|
|
41
|
+
React.createElement(
|
|
42
|
+
Row,
|
|
43
43
|
null,
|
|
44
|
-
|
|
45
|
-
Col
|
|
44
|
+
React.createElement(
|
|
45
|
+
Col,
|
|
46
46
|
{ className: 'details-content-wrapper' },
|
|
47
|
-
|
|
47
|
+
React.createElement(
|
|
48
48
|
'div',
|
|
49
49
|
{ className: 'details-wrapper' },
|
|
50
50
|
row.name
|
|
51
51
|
)
|
|
52
52
|
)
|
|
53
53
|
),
|
|
54
|
-
icon &&
|
|
54
|
+
icon && React.createElement(
|
|
55
55
|
'span',
|
|
56
56
|
{
|
|
57
57
|
className: 'taxonomy-icon',
|
|
@@ -73,7 +73,7 @@ var RolesDeck = function RolesDeck(props) {
|
|
|
73
73
|
})
|
|
74
74
|
)
|
|
75
75
|
),
|
|
76
|
-
icon &&
|
|
76
|
+
icon && React.createElement(
|
|
77
77
|
'style',
|
|
78
78
|
{ jsx: 'true' },
|
|
79
79
|
'\n .taxonomy-card .taxonomy-icon {\n transform: translateY(-50%) translateX(10px) !important;\n }\n .taxonomy-card.card:hover .taxonomy-icon {\n transform: translateY(-50%) translateX(5px) scale(1.25) rotate(-180deg) !important;\n }\n '
|
package/dist/esm/Search.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import './
|
|
2
|
-
import '
|
|
3
|
-
import './web.dom.iterable-f8f967cd.js';
|
|
4
|
-
import React__default, { useState } from 'react';
|
|
5
|
-
import { _ as _slicedToArray } from './slicedToArray-67a08c9c.js';
|
|
6
|
-
import Button$1 from 'react-bootstrap/Button';
|
|
1
|
+
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
2
|
+
import React, { useState } from 'react';
|
|
7
3
|
import Form from 'react-bootstrap/Form';
|
|
8
4
|
import FormControl from 'react-bootstrap/FormControl';
|
|
5
|
+
import Button from 'react-bootstrap/Button';
|
|
6
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
7
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
8
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
9
9
|
|
|
10
10
|
var Search = function Search(props) {
|
|
11
11
|
var _props$placeholder = props.placeholder,
|
|
@@ -25,12 +25,12 @@ var Search = function Search(props) {
|
|
|
25
25
|
window.location.href = '/search?searchTerm=' + encodeURIComponent(searchKey);
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
return
|
|
28
|
+
return React.createElement(
|
|
29
29
|
Form,
|
|
30
30
|
{ inline: true, onSubmit: function onSubmit(e) {
|
|
31
31
|
return submitSearch(e);
|
|
32
32
|
} },
|
|
33
|
-
|
|
33
|
+
React.createElement(FormControl, {
|
|
34
34
|
className: device === 'mobile' ? 'mobile-search mr-sm-2' : 'mr-sm-2',
|
|
35
35
|
type: 'text',
|
|
36
36
|
placeholder: placeholder,
|
|
@@ -39,14 +39,14 @@ var Search = function Search(props) {
|
|
|
39
39
|
return setSearchKey(e.target.value);
|
|
40
40
|
}
|
|
41
41
|
}),
|
|
42
|
-
|
|
43
|
-
Button
|
|
42
|
+
React.createElement(
|
|
43
|
+
Button,
|
|
44
44
|
{ variant: 'secondary', onClick: function onClick(e) {
|
|
45
45
|
return submitSearch(e);
|
|
46
46
|
} },
|
|
47
47
|
btnText
|
|
48
48
|
),
|
|
49
|
-
|
|
49
|
+
React.createElement(
|
|
50
50
|
'style',
|
|
51
51
|
{ jsx: 'true' },
|
|
52
52
|
'\n .mobile-search {\n width: 75%;\n margin-right: 15px;\n }\n '
|
package/dist/esm/Segment.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-b4dfe691.js';
|
|
1
2
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './core.get-iterator-method-
|
|
3
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
4
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
3
5
|
import './_library-528f1934.js';
|
|
4
|
-
import './_iter-detect-
|
|
5
|
-
import './web.dom.iterable-f8f967cd.js';
|
|
6
|
-
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64812e90.js';
|
|
6
|
+
import './_iter-detect-f089461c.js';
|
|
7
7
|
|
|
8
8
|
require('babel-polyfill');
|
|
9
9
|
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
+
import { _ as _toConsumableArray } from './toConsumableArray-7b1c0e23.js';
|
|
2
|
+
import { _ as _extends } from './extends-dc6a71fd.js';
|
|
3
|
+
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
4
|
+
import React, { useState, useEffect, useRef } from 'react';
|
|
5
|
+
import { useRouter } from 'next/router';
|
|
6
|
+
import { l as lib_3 } from './index-2446af28.js';
|
|
7
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
8
|
+
import { S as SeriesSlider } from './SeriesSlider-7a6c45ce.js';
|
|
9
|
+
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
1
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './core.get-iterator-method-
|
|
3
|
-
import './_iter-detect-
|
|
4
|
-
import
|
|
5
|
-
import './
|
|
6
|
-
import { _ as _extends } from './extends-5b1796d4.js';
|
|
7
|
-
import './web.dom.iterable-f8f967cd.js';
|
|
8
|
-
import React__default, { useState, useEffect, useRef } from 'react';
|
|
11
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
12
|
+
import './_iter-detect-f089461c.js';
|
|
13
|
+
import './_object-pie-133f504a.js';
|
|
14
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
9
15
|
import './events-6c3a7a63.js';
|
|
10
|
-
import { l as lib_3 } from './index-41a678ea.js';
|
|
11
16
|
import 'prop-types';
|
|
12
|
-
import { useRouter } from 'next/router';
|
|
13
|
-
import { I as InfiniteScroll } from './index.es-29c1cef5.js';
|
|
14
|
-
import 'react-dom';
|
|
15
|
-
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
16
|
-
import { _ as _slicedToArray } from './slicedToArray-67a08c9c.js';
|
|
17
|
-
import './urlFor-23b2244b.js';
|
|
18
|
-
import './index-5f7e79e7.js';
|
|
19
|
-
import './main-c0612122.js';
|
|
20
17
|
import './index-c7e2ac95.js';
|
|
21
|
-
import './
|
|
22
|
-
import
|
|
18
|
+
import './index-35bdcc81.js';
|
|
19
|
+
import 'react-dom';
|
|
20
|
+
import './smoothscroll-fa4e3f8c.js';
|
|
21
|
+
import './urlFor.js';
|
|
22
|
+
import './index-0dbff1d1.js';
|
|
23
|
+
import './main-4136096f.js';
|
|
23
24
|
|
|
24
25
|
var usePrevious = function usePrevious(value) {
|
|
25
26
|
var ref = useRef();
|
|
@@ -181,19 +182,19 @@ var SeriesListingDeck = function SeriesListingDeck(props) {
|
|
|
181
182
|
}
|
|
182
183
|
}, [seriesData, setScrolling, count]);
|
|
183
184
|
|
|
184
|
-
return
|
|
185
|
+
return React.createElement(
|
|
185
186
|
InfiniteScroll,
|
|
186
187
|
{ dataLength: seriesData && seriesData.length, next: function next() {
|
|
187
188
|
return loadMore();
|
|
188
189
|
}, hasMore: scrolling, scrollThreshold: 0.9 },
|
|
189
|
-
|
|
190
|
+
React.createElement(
|
|
190
191
|
'div',
|
|
191
192
|
null,
|
|
192
|
-
seriesData && seriesData.length ?
|
|
193
|
+
seriesData && seriesData.length ? React.createElement(
|
|
193
194
|
'div',
|
|
194
195
|
null,
|
|
195
196
|
seriesData.map(function (series, index) {
|
|
196
|
-
return
|
|
197
|
+
return React.createElement(
|
|
197
198
|
VisibilitySensor,
|
|
198
199
|
{
|
|
199
200
|
key: series._id ? series._id : index,
|
|
@@ -201,34 +202,34 @@ var SeriesListingDeck = function SeriesListingDeck(props) {
|
|
|
201
202
|
onChange: function onChange(isVisible) {
|
|
202
203
|
isVisible && changePageNumber(currentPage, index, pageview);
|
|
203
204
|
} },
|
|
204
|
-
|
|
205
|
+
React.createElement(
|
|
205
206
|
'div',
|
|
206
207
|
{ className: 'mb-5', key: series.name },
|
|
207
|
-
|
|
208
|
+
React.createElement(
|
|
208
209
|
'div',
|
|
209
210
|
{ style: { fontSize: '20px', fontWeight: 'bold', borderBottom: '1px solid #eee', margin: '0 .5rem', color: '373a3c' } },
|
|
210
|
-
|
|
211
|
+
React.createElement(
|
|
211
212
|
'a',
|
|
212
213
|
{ href: '/' + parentIdentifier + '/' + series.identifier.current },
|
|
213
214
|
series.name
|
|
214
215
|
)
|
|
215
216
|
),
|
|
216
|
-
series.articles && series.articles.length == 0 &&
|
|
217
|
+
series.articles && series.articles.length == 0 && React.createElement(
|
|
217
218
|
'p',
|
|
218
219
|
{ className: 'mt-2 ml-2' },
|
|
219
220
|
'Please check back for more content.'
|
|
220
221
|
),
|
|
221
|
-
series.articles && series.articles.length > 0 &&
|
|
222
|
+
series.articles && series.articles.length > 0 && React.createElement(SeriesSlider, _extends({}, props, { dataset: series.articles, client: client }))
|
|
222
223
|
)
|
|
223
224
|
);
|
|
224
225
|
})
|
|
225
|
-
) :
|
|
226
|
+
) : React.createElement(
|
|
226
227
|
'div',
|
|
227
228
|
null,
|
|
228
|
-
|
|
229
|
+
React.createElement(
|
|
229
230
|
'h5',
|
|
230
231
|
null,
|
|
231
|
-
|
|
232
|
+
React.createElement(
|
|
232
233
|
'em',
|
|
233
234
|
{ className: 'pl-3' },
|
|
234
235
|
'New content coming soon, please check back later.'
|