@mjhls/mjh-framework 1.0.866-youtube-group-v1 → 1.0.867
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 +22 -24
- package/dist/cjs/AD300x250x600.js +22 -24
- package/dist/cjs/AD728x90.js +25 -27
- package/dist/cjs/ADFloatingFooter.js +21 -23
- package/dist/cjs/ADFooter.js +4 -6
- package/dist/cjs/ADGutter.js +21 -23
- package/dist/cjs/{ADInfeed-25d48cc2.js → ADInfeed-7d13830e.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +21 -23
- package/dist/cjs/ADSponsoredResources.js +21 -23
- package/dist/cjs/ADWebcast.js +21 -23
- package/dist/cjs/ADWelcome.js +18 -20
- package/dist/cjs/{ADlgInfeed-a535a768.js → ADlgInfeed-d9dbfadc.js} +4 -4
- package/dist/cjs/AccordionPanel.js +6 -8
- package/dist/cjs/AdSlot.js +22 -24
- package/dist/cjs/AdSlotsProvider.js +11 -13
- package/dist/cjs/AlgoliaSearch.js +508 -500
- package/dist/cjs/AlphabeticList.js +8 -10
- package/dist/cjs/ArticleCarousel.js +13 -15
- package/dist/cjs/ArticleProgramLandingPage.js +48 -50
- package/dist/cjs/ArticleSeriesLandingPage.js +29 -31
- package/dist/cjs/ArticleSeriesListing.js +31 -33
- package/dist/cjs/Auth.js +482 -348
- package/dist/cjs/AuthWrapper.js +199 -240
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-39b37d84.js} +1 -1
- package/dist/cjs/Beam.js +6 -8
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-36e54d77.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +6 -8
- package/dist/cjs/CMEDeck.js +22 -24
- package/dist/cjs/Column2.js +14 -16
- package/dist/cjs/Column3.js +31 -33
- package/dist/cjs/ConferenceArticleCard.js +25 -22
- package/dist/cjs/DeckContent.js +40 -42
- package/dist/cjs/DeckQueue.js +30 -31
- package/dist/cjs/{Dfp-391fd124.js → Dfp-9be904d5.js} +13 -15
- package/dist/cjs/EventsDeck.js +44 -46
- package/dist/cjs/ExternalResources.js +45 -47
- package/dist/cjs/Feature.js +7 -4
- package/dist/cjs/ForbesHero.js +10 -12
- package/dist/cjs/GridContent.js +45 -47
- package/dist/cjs/GridHero.js +11 -13
- package/dist/cjs/GroupDeck.js +12 -14
- package/dist/cjs/HamMagazine.js +34 -36
- package/dist/cjs/Hero.js +7 -4
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +46 -48
- package/dist/cjs/HorizontalHero.js +7 -4
- package/dist/cjs/IssueContentDeck.js +11 -13
- package/dist/cjs/IssueDeck.js +14 -16
- package/dist/cjs/IssueLanding.js +82 -84
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +20 -22
- package/dist/cjs/MasterDeck.js +39 -41
- package/dist/cjs/MediaSeriesLanding.js +507 -465
- package/dist/cjs/NavDvm.js +11 -13
- package/dist/cjs/NavMagazine.js +38 -40
- package/dist/cjs/NavNative.js +39 -41
- package/dist/cjs/OncliveHero.js +7 -4
- package/dist/cjs/OncliveLargeHero.js +11 -13
- package/dist/cjs/PageFilter.js +4 -6
- package/dist/cjs/PartnerDetailListing.js +64 -2770
- package/dist/cjs/PdfDownload.js +1 -1
- package/dist/cjs/PopUpModal.js +4 -6
- package/dist/cjs/PubSection.js +32 -34
- package/dist/cjs/PubToc.js +6 -8
- package/dist/cjs/PublicationDeck.js +11 -8
- package/dist/cjs/PublicationLanding.js +76 -78
- package/dist/cjs/QueueDeckExpanded.js +36 -38
- package/dist/cjs/RecentNews.js +3 -3
- package/dist/cjs/RelatedContent.js +38 -35
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/Search.js +6 -8
- package/dist/cjs/Segment.js +4 -6
- package/dist/cjs/SeriesListingDeck.js +18 -20
- package/dist/cjs/{SeriesSlider-0d3bf265.js → SeriesSlider-ce3261cb.js} +14 -14
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +15 -17
- package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-a4ae7b88.js} +10 -10
- package/dist/cjs/TaxonomyCard.js +12 -10
- package/dist/cjs/TaxonomyDescription.js +44 -46
- package/dist/cjs/TemplateNormal.js +45 -47
- package/dist/cjs/ThumbnailCard.js +10 -7
- package/dist/cjs/Ustream.js +11 -13
- package/dist/cjs/VerticalHero.js +6 -3
- package/dist/cjs/VideoProgramLandingPage.js +50 -52
- package/dist/cjs/VideoSeriesCard.js +14 -14
- package/dist/cjs/VideoSeriesFilter.js +7 -9
- package/dist/cjs/VideoSeriesLandingPage.js +35 -37
- package/dist/cjs/VideoSeriesListing.js +31 -33
- package/dist/cjs/View.js +89 -92
- package/dist/cjs/YahooHero.js +13 -15
- package/dist/cjs/YoutubeGroup.js +25 -46
- package/dist/cjs/{_is-array-754e012d.js → _is-array-54228b29.js} +14 -14
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-b1df62f0.js} +9 -10
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/_object-sap-d1978572.js +16 -0
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-ce86cae7.js} +5 -5
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-77821af0.js} +82 -84
- package/dist/cjs/{_to-object-329a650b.js → core.get-iterator-method-5643aa10.js} +256 -20
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/define-property-e8404b64.js +20 -0
- package/dist/cjs/{defineProperty-55548b25.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-0a918631.js → extends-7c86182f.js} +13 -13
- package/dist/cjs/faundadb.js +5 -7
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +133 -71
- package/dist/cjs/getRootDocGroup.js +4 -6
- package/dist/cjs/getSerializers.js +43 -45
- package/dist/cjs/{getTargeting-a9a871f0.js → getTargeting-9d509319.js} +11 -11
- package/dist/cjs/getTargeting.js +6 -8
- package/dist/cjs/{index-e2e62963.js → index-8041a4eb.js} +11 -1
- package/dist/cjs/{index-f83a102a.js → index-ad4e6a69.js} +202 -181
- package/dist/cjs/{index-9d365128.js → index-eadd5035.js} +7 -7
- package/dist/cjs/{index-b5eb3ff8.js → index-efca863c.js} +16 -11
- package/dist/cjs/{index-6367b7bf.js → index-f86bb269.js} +35 -35
- package/dist/cjs/{index-2cf30c83.js → index-fc2f1ca2.js} +4 -4
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-8123cf40.js} +1 -1
- package/dist/cjs/index.js +139 -140
- package/dist/cjs/{inherits-0c7830c5.js → inherits-de66ea16.js} +25 -26
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/keys-e982b3fa.js +25 -0
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-f0783643.js} +58 -10
- package/dist/cjs/{main-7b5e57b0.js → main-025fdc78.js} +234 -159
- package/dist/cjs/{moment-ca3bd9fb.js → moment-aca40de1.js} +1 -1
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-af932527.js} +17 -17
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-067dd3bc.js} +17 -19
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/stringify-f7a37a8d.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-d7797c2b.js} +12 -14
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/{typeof-9d7f610f.js → typeof-567e31ff.js} +97 -98
- package/dist/cjs/urlFor.js +19 -2
- package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-3819e4aa.js} +4 -4
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-d98303e0.js} +8 -9
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +22 -24
- package/dist/esm/AD300x250x600.js +22 -24
- package/dist/esm/AD728x90.js +25 -27
- package/dist/esm/ADFloatingFooter.js +21 -23
- package/dist/esm/ADFooter.js +4 -6
- package/dist/esm/ADGutter.js +21 -23
- package/dist/esm/{ADInfeed-56a3db8b.js → ADInfeed-0cbd7bed.js} +4 -4
- package/dist/esm/ADSkyscraper.js +21 -23
- package/dist/esm/ADSponsoredResources.js +21 -23
- package/dist/esm/ADWebcast.js +21 -23
- package/dist/esm/ADWelcome.js +18 -20
- package/dist/esm/{ADlgInfeed-53edb995.js → ADlgInfeed-2d1a52d9.js} +4 -4
- package/dist/esm/AccordionPanel.js +6 -8
- package/dist/esm/AdSlot.js +22 -24
- package/dist/esm/AdSlotsProvider.js +11 -13
- package/dist/esm/AlgoliaSearch.js +507 -499
- package/dist/esm/AlphabeticList.js +8 -10
- package/dist/esm/ArticleCarousel.js +13 -15
- package/dist/esm/ArticleProgramLandingPage.js +48 -50
- package/dist/esm/ArticleSeriesLandingPage.js +29 -31
- package/dist/esm/ArticleSeriesListing.js +31 -33
- package/dist/esm/Auth.js +482 -348
- package/dist/esm/AuthWrapper.js +199 -240
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-46a745ba.js} +1 -1
- package/dist/esm/Beam.js +6 -8
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-52cf21c5.js} +34 -34
- package/dist/esm/Breadcrumbs.js +5 -7
- package/dist/esm/CMEDeck.js +22 -24
- package/dist/esm/Column2.js +14 -16
- package/dist/esm/Column3.js +31 -33
- package/dist/esm/ConferenceArticleCard.js +25 -22
- package/dist/esm/DeckContent.js +40 -42
- package/dist/esm/DeckQueue.js +30 -31
- package/dist/esm/{Dfp-2f9796e1.js → Dfp-4ca12f2e.js} +13 -15
- package/dist/esm/EventsDeck.js +41 -43
- package/dist/esm/ExternalResources.js +45 -47
- package/dist/esm/Feature.js +7 -4
- package/dist/esm/ForbesHero.js +10 -12
- package/dist/esm/GridContent.js +45 -47
- package/dist/esm/GridHero.js +11 -13
- package/dist/esm/GroupDeck.js +12 -14
- package/dist/esm/HamMagazine.js +34 -36
- package/dist/esm/Hero.js +7 -4
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +46 -48
- package/dist/esm/HorizontalHero.js +7 -4
- package/dist/esm/IssueContentDeck.js +11 -13
- package/dist/esm/IssueDeck.js +13 -15
- package/dist/esm/IssueLanding.js +82 -84
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +20 -22
- package/dist/esm/MasterDeck.js +39 -41
- package/dist/esm/MediaSeriesLanding.js +507 -465
- package/dist/esm/NavDvm.js +11 -13
- package/dist/esm/NavMagazine.js +38 -40
- package/dist/esm/NavNative.js +37 -39
- package/dist/esm/OncliveHero.js +7 -4
- package/dist/esm/OncliveLargeHero.js +11 -13
- package/dist/esm/PageFilter.js +4 -6
- package/dist/esm/PartnerDetailListing.js +62 -2767
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +4 -6
- package/dist/esm/PubSection.js +32 -34
- package/dist/esm/PubToc.js +6 -8
- package/dist/esm/PublicationDeck.js +10 -7
- package/dist/esm/PublicationLanding.js +52 -54
- package/dist/esm/QueueDeckExpanded.js +36 -38
- package/dist/esm/RecentNews.js +3 -3
- package/dist/esm/RelatedContent.js +38 -35
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/Search.js +5 -7
- package/dist/esm/Segment.js +4 -6
- package/dist/esm/SeriesListingDeck.js +18 -20
- package/dist/esm/{SeriesSlider-7d89f4d9.js → SeriesSlider-485f514e.js} +14 -14
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +15 -17
- package/dist/esm/{SocialSearchComponent-47815365.js → SocialSearchComponent-41b6b480.js} +9 -9
- package/dist/esm/TaxonomyCard.js +12 -10
- package/dist/esm/TaxonomyDescription.js +44 -46
- package/dist/esm/TemplateNormal.js +45 -47
- package/dist/esm/ThumbnailCard.js +10 -7
- package/dist/esm/Ustream.js +11 -13
- package/dist/esm/VerticalHero.js +6 -3
- package/dist/esm/VideoProgramLandingPage.js +49 -51
- package/dist/esm/VideoSeriesCard.js +14 -14
- package/dist/esm/VideoSeriesFilter.js +7 -9
- package/dist/esm/VideoSeriesLandingPage.js +35 -37
- package/dist/esm/VideoSeriesListing.js +31 -33
- package/dist/esm/View.js +88 -91
- package/dist/esm/YahooHero.js +13 -15
- package/dist/esm/YoutubeGroup.js +25 -46
- package/dist/esm/{_is-array-58e95429.js → _is-array-893ab020.js} +6 -6
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-f089461c.js} +7 -8
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-169d6272.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-50a6b9a3.js} +2 -2
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-b4dfe691.js} +30 -32
- package/dist/esm/{_to-object-a4107da3.js → core.get-iterator-method-e903ff31.js} +247 -18
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/define-property-99e66838.js +18 -0
- package/dist/esm/{defineProperty-94fd8bfc.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-6f2fcc99.js → extends-dc6a71fd.js} +7 -7
- package/dist/esm/faundadb.js +5 -7
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +133 -71
- package/dist/esm/getRootDocGroup.js +4 -6
- package/dist/esm/getSerializers.js +43 -45
- package/dist/esm/{getTargeting-bd800589.js → getTargeting-ff2c9409.js} +11 -11
- package/dist/esm/getTargeting.js +6 -8
- package/dist/esm/{index-51a80699.js → index-0dbff1d1.js} +16 -11
- package/dist/esm/{index-f7fb1e25.js → index-2446af28.js} +4 -4
- package/dist/esm/{index-6c12bdd5.js → index-35bdcc81.js} +6 -6
- package/dist/esm/{index-82fea143.js → index-61397130.js} +198 -177
- package/dist/esm/{index-aaa2dae0.js → index-67e1773f.js} +11 -2
- package/dist/esm/{index-c00b0bbb.js → index-79cfd25c.js} +35 -35
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-8016b507.js} +1 -1
- package/dist/esm/index.js +120 -121
- package/dist/esm/{inherits-75d45541.js → inherits-8a801a18.js} +18 -19
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/keys-425c8ab0.js +23 -0
- package/dist/esm/{lodash-ec8c6b48.js → lodash-f97fd99a.js} +58 -10
- package/dist/esm/{main-747e7d25.js → main-b5c5aac1.js} +228 -153
- package/dist/esm/{moment-b6f49411.js → moment-bc12cb97.js} +1 -1
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-91f9716f.js} +16 -16
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-ca2c8b8d.js} +12 -14
- 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-43aa614d.js → toConsumableArray-7b1c0e23.js} +7 -9
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/{typeof-af9c50d8.js → typeof-83d9eb10.js} +34 -35
- package/dist/esm/urlFor.js +19 -2
- package/dist/esm/{ustream-api-9a50644d.js → ustream-api-41166338.js} +4 -4
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-fdf034f5.js} +2 -3
- package/package.json +111 -111
- package/dist/cjs/_object-sap-5e74ba08.js +0 -16
- package/dist/cjs/core.get-iterator-method-f62321d4.js +0 -39
- package/dist/cjs/define-property-f4d12f4e.js +0 -20
- package/dist/cjs/es6.string.iterator-cc0bbaa4.js +0 -210
- package/dist/cjs/keys-a586b7a0.js +0 -25
- package/dist/cjs/stringify-7c5aff47.js +0 -17
- package/dist/esm/core.get-iterator-method-e1de7503.js +0 -36
- package/dist/esm/define-property-8af5f002.js +0 -18
- package/dist/esm/es6.string.iterator-c990c18c.js +0 -201
- package/dist/esm/keys-8eda7a5c.js +0 -23
- package/dist/esm/stringify-4330ccdc.js +0 -15
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-a195642e.js} +1 -1
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-b43c695a.js} +1 -1
package/dist/esm/PdfDownload.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { a as MdPictureAsPdf } from './index.esm-c6715e80.js';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import './iconBase-602d52fe.js';
|
|
3
|
-
import { a as MdPictureAsPdf } from './index.esm-c6715e80.js';
|
|
4
4
|
|
|
5
5
|
var PdfDownload = function PdfDownload(props) {
|
|
6
6
|
return React.createElement(
|
package/dist/esm/PopUpModal.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import './
|
|
2
|
-
import './_to-object-a4107da3.js';
|
|
3
|
-
import './es6.string.iterator-c990c18c.js';
|
|
4
|
-
import './core.get-iterator-method-e1de7503.js';
|
|
5
|
-
import './web.dom.iterable-4439f05a.js';
|
|
1
|
+
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
6
2
|
import React, { useState } from 'react';
|
|
7
|
-
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
8
3
|
import Modal from 'react-bootstrap/Modal';
|
|
4
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
5
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
6
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
9
7
|
|
|
10
8
|
var PopUpModal = function PopUpModal(props) {
|
|
11
9
|
var _ref = props.ModalImage ? useState(true) : useState(false),
|
package/dist/esm/PubSection.js
CHANGED
|
@@ -1,45 +1,43 @@
|
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-b4dfe691.js';
|
|
2
|
+
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
3
|
+
import { _ as _extends } from './extends-dc6a71fd.js';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
1
6
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
3
|
-
import './
|
|
7
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
8
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
4
9
|
import './_library-528f1934.js';
|
|
5
|
-
import './_iter-detect-
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import '
|
|
9
|
-
import
|
|
10
|
-
import './
|
|
11
|
-
import
|
|
10
|
+
import './_iter-detect-f089461c.js';
|
|
11
|
+
import './_object-pie-133f504a.js';
|
|
12
|
+
import './toConsumableArray-7b1c0e23.js';
|
|
13
|
+
import 'react-bootstrap';
|
|
14
|
+
import './urlFor.js';
|
|
15
|
+
import './index-0dbff1d1.js';
|
|
16
|
+
import './index.es-c6222053.js';
|
|
17
|
+
import './moment-bc12cb97.js';
|
|
18
|
+
import './visibility-sensor-f40c2564.js';
|
|
19
|
+
import 'react-dom';
|
|
20
|
+
import './index-2446af28.js';
|
|
12
21
|
import './events-6c3a7a63.js';
|
|
13
|
-
import './index-f7fb1e25.js';
|
|
14
22
|
import 'prop-types';
|
|
15
|
-
import 'react-bootstrap/Card';
|
|
16
|
-
import './moment-b6f49411.js';
|
|
17
23
|
import 'next/router';
|
|
18
|
-
import './
|
|
19
|
-
import './
|
|
20
|
-
import './
|
|
21
|
-
import './
|
|
22
|
-
import 'react-
|
|
23
|
-
import './visibility-sensor-f40c2564.js';
|
|
24
|
-
import './index-51a80699.js';
|
|
25
|
-
import './urlFor.js';
|
|
26
|
-
import './index-6c12bdd5.js';
|
|
27
|
-
import './main-747e7d25.js';
|
|
28
|
-
import './entities-7cc3bf45.js';
|
|
29
|
-
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
30
|
-
import './stringify-4330ccdc.js';
|
|
31
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
32
|
-
import './Segment.js';
|
|
33
|
-
import './Beam.js';
|
|
24
|
+
import './index-35bdcc81.js';
|
|
25
|
+
import './main-b5c5aac1.js';
|
|
26
|
+
import './entities-932b50cf.js';
|
|
27
|
+
import './ADInfeed-0cbd7bed.js';
|
|
28
|
+
import 'react-bootstrap/Card';
|
|
34
29
|
import './AdSlot.js';
|
|
35
|
-
import './
|
|
36
|
-
import './
|
|
37
|
-
import './
|
|
30
|
+
import './debounce-533d9748.js';
|
|
31
|
+
import './isSymbol-a7e9aafe.js';
|
|
32
|
+
import './toNumber-5aeba6e7.js';
|
|
33
|
+
import './Beam.js';
|
|
34
|
+
import './stringify-c21932b3.js';
|
|
35
|
+
import './Segment.js';
|
|
36
|
+
import './AuthorComponent-46a745ba.js';
|
|
37
|
+
import './lodash-f97fd99a.js';
|
|
38
|
+
import './ADlgInfeed-2d1a52d9.js';
|
|
38
39
|
import './getContentCategory-15dcc413.js';
|
|
39
|
-
import './AuthorComponent-8ffd4679.js';
|
|
40
|
-
import 'react-bootstrap';
|
|
41
40
|
import './timeDifferenceCalc.js';
|
|
42
|
-
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
43
41
|
|
|
44
42
|
var _this = undefined;
|
|
45
43
|
|
package/dist/esm/PubToc.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-b4dfe691.js';
|
|
2
|
+
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
3
|
+
import React from 'react';
|
|
1
4
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
3
|
-
import './
|
|
5
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
6
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
4
7
|
import './_library-528f1934.js';
|
|
5
|
-
import './_iter-detect-
|
|
6
|
-
import './core.get-iterator-method-e1de7503.js';
|
|
7
|
-
import './web.dom.iterable-4439f05a.js';
|
|
8
|
-
import React from 'react';
|
|
9
|
-
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
10
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
8
|
+
import './_iter-detect-f089461c.js';
|
|
11
9
|
|
|
12
10
|
var _this = undefined;
|
|
13
11
|
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import 'prop-types';
|
|
4
2
|
import Row from 'react-bootstrap/Row';
|
|
5
3
|
import Col from 'react-bootstrap/Col';
|
|
4
|
+
import Button from 'react-bootstrap/Button';
|
|
6
5
|
import Card from 'react-bootstrap/Card';
|
|
7
|
-
import '
|
|
8
|
-
import './index-51a80699.js';
|
|
6
|
+
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
9
7
|
import urlFor from './urlFor.js';
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import
|
|
8
|
+
import { l as lodash } from './lodash-f97fd99a.js';
|
|
9
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
10
|
+
import 'react-dom';
|
|
11
|
+
import 'prop-types';
|
|
12
|
+
import './slicedToArray-ca2c8b8d.js';
|
|
13
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
14
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
15
|
+
import './index-0dbff1d1.js';
|
|
13
16
|
|
|
14
17
|
var PublicationDeck = function PublicationDeck(props) {
|
|
15
18
|
var data = props.data,
|
|
@@ -1,32 +1,30 @@
|
|
|
1
|
+
import { b as _anInstance, c as _forOf, d as _redefineAll, e as _setSpecies, a as _asyncToGenerator, r as regenerator, _ as _Promise } from './asyncToGenerator-b4dfe691.js';
|
|
2
|
+
import { _ as _extends } from './extends-dc6a71fd.js';
|
|
3
|
+
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
1
4
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import { b as _isObject, c as
|
|
3
|
-
import { _ as
|
|
4
|
-
import './
|
|
5
|
-
import './
|
|
6
|
-
import { _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
7
|
-
import { _ as _classof } from './core.get-iterator-method-e1de7503.js';
|
|
8
|
-
import './_object-pie-33c40e79.js';
|
|
9
|
-
import { _ as _extends } from './extends-6f2fcc99.js';
|
|
10
|
-
import { _ as _iterStep } from './web.dom.iterable-4439f05a.js';
|
|
11
|
-
import { _ as _meta, a as _isArray } from './_is-array-58e95429.js';
|
|
5
|
+
import { b as _isObject, c as _objectCreate, d as _ctx, e as _descriptors, f as _iterDefine, g as _objectDp, h as _wks, i as _toObject, j as _iobject, k as _toLength, l as _global, m as _fails, n as _hide, o as _setToStringTag, _ as _export, p as _classof, q as _aFunction, a as _core } from './core.get-iterator-method-e903ff31.js';
|
|
6
|
+
import { _ as _iterStep } from './web.dom.iterable-fdf034f5.js';
|
|
7
|
+
import { _ as _meta, a as _isArray } from './_is-array-893ab020.js';
|
|
8
|
+
import { _ as _toConsumableArray } from './toConsumableArray-7b1c0e23.js';
|
|
12
9
|
import React, { useState, useEffect } from 'react';
|
|
13
|
-
import 'prop-types';
|
|
14
10
|
import Row from 'react-bootstrap/Row';
|
|
15
11
|
import Col from 'react-bootstrap/Col';
|
|
12
|
+
import Dropdown from 'react-bootstrap/Dropdown';
|
|
16
13
|
import Card from 'react-bootstrap/Card';
|
|
17
14
|
import { useRouter } from 'next/router';
|
|
15
|
+
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
16
|
+
import './_library-528f1934.js';
|
|
17
|
+
import './_iter-detect-f089461c.js';
|
|
18
|
+
import './_object-pie-133f504a.js';
|
|
18
19
|
import 'react-dom';
|
|
19
|
-
import
|
|
20
|
-
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
21
|
-
import { b as _anInstance, c as _forOf, d as _redefineAll, e as _setSpecies, a as _asyncToGenerator, r as regenerator, _ as _Promise } from './asyncToGenerator-fc1c2e29.js';
|
|
22
|
-
import Dropdown from 'react-bootstrap/Dropdown';
|
|
20
|
+
import 'prop-types';
|
|
23
21
|
|
|
24
22
|
var _validateCollection = function (it, TYPE) {
|
|
25
23
|
if (!_isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
|
|
26
24
|
return it;
|
|
27
25
|
};
|
|
28
26
|
|
|
29
|
-
var dP = _objectDp.f;
|
|
27
|
+
var dP$1 = _objectDp.f;
|
|
30
28
|
|
|
31
29
|
|
|
32
30
|
|
|
@@ -109,7 +107,7 @@ var _collectionStrong = {
|
|
|
109
107
|
return !!getEntry(_validateCollection(this, NAME), key);
|
|
110
108
|
}
|
|
111
109
|
});
|
|
112
|
-
if (_descriptors) dP(C.prototype, 'size', {
|
|
110
|
+
if (_descriptors) dP$1(C.prototype, 'size', {
|
|
113
111
|
get: function () {
|
|
114
112
|
return _validateCollection(this, NAME)[SIZE];
|
|
115
113
|
}
|
|
@@ -237,7 +235,7 @@ var _arrayMethods = function (TYPE, $create) {
|
|
|
237
235
|
};
|
|
238
236
|
};
|
|
239
237
|
|
|
240
|
-
var dP
|
|
238
|
+
var dP = _objectDp.f;
|
|
241
239
|
var each = _arrayMethods(0);
|
|
242
240
|
|
|
243
241
|
|
|
@@ -269,7 +267,7 @@ var _collection = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
|
|
|
269
267
|
return IS_ADDER ? this : result;
|
|
270
268
|
});
|
|
271
269
|
});
|
|
272
|
-
IS_WEAK || dP
|
|
270
|
+
IS_WEAK || dP(C.prototype, 'size', {
|
|
273
271
|
get: function () {
|
|
274
272
|
return this._c.size;
|
|
275
273
|
}
|
|
@@ -289,7 +287,7 @@ var _collection = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
|
|
|
289
287
|
var SET = 'Set';
|
|
290
288
|
|
|
291
289
|
// 23.2 Set Objects
|
|
292
|
-
|
|
290
|
+
_collection(SET, function (get) {
|
|
293
291
|
return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };
|
|
294
292
|
}, {
|
|
295
293
|
// 23.2.3.1 Set.prototype.add(value)
|
|
@@ -365,40 +363,40 @@ var _setCollectionFrom = function (COLLECTION) {
|
|
|
365
363
|
// https://tc39.github.io/proposal-setmap-offrom/#sec-set.from
|
|
366
364
|
_setCollectionFrom('Set');
|
|
367
365
|
|
|
368
|
-
var set = _core.Set;
|
|
366
|
+
var set$1 = _core.Set;
|
|
369
367
|
|
|
370
|
-
var set
|
|
371
|
-
module.exports = { "default": set, __esModule: true };
|
|
368
|
+
var set = createCommonjsModule(function (module) {
|
|
369
|
+
module.exports = { "default": set$1, __esModule: true };
|
|
372
370
|
});
|
|
373
371
|
|
|
374
|
-
var _Set = unwrapExports(set
|
|
375
|
-
|
|
376
|
-
/* usage & query
|
|
377
|
-
const Publication = (props) => {
|
|
378
|
-
const { cache, pub, year } = props
|
|
379
|
-
const targeting = {
|
|
380
|
-
content_placement: [`/journals/${pub.identifier.current}`],
|
|
381
|
-
document_url: [`/journals/${pub.identifier.current}`],
|
|
382
|
-
}
|
|
383
|
-
return (
|
|
384
|
-
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
385
|
-
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
386
|
-
</Shell>
|
|
387
|
-
)
|
|
388
|
-
}
|
|
389
|
-
Publication.getInitialProps = async (ctx) => {
|
|
390
|
-
const { query } = ctx
|
|
391
|
-
const {
|
|
392
|
-
query: { year },
|
|
393
|
-
} = ctx
|
|
394
|
-
const pub = await client.fetch(getQuery('publication'), query)
|
|
395
|
-
**import urlFor from framework**
|
|
396
|
-
pub.issues.map((issue) => {
|
|
397
|
-
issue.thumbnail = urlFor({client, source: issue.thumbnail})
|
|
398
|
-
})
|
|
399
|
-
return { pub, year }
|
|
400
|
-
}
|
|
401
|
-
export default Publication
|
|
372
|
+
var _Set = unwrapExports(set);
|
|
373
|
+
|
|
374
|
+
/* usage & query
|
|
375
|
+
const Publication = (props) => {
|
|
376
|
+
const { cache, pub, year } = props
|
|
377
|
+
const targeting = {
|
|
378
|
+
content_placement: [`/journals/${pub.identifier.current}`],
|
|
379
|
+
document_url: [`/journals/${pub.identifier.current}`],
|
|
380
|
+
}
|
|
381
|
+
return (
|
|
382
|
+
<Shell title={pub.name} cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3'>
|
|
383
|
+
<PublicationLanding publication={pub} year={year} href={'journals'} />
|
|
384
|
+
</Shell>
|
|
385
|
+
)
|
|
386
|
+
}
|
|
387
|
+
Publication.getInitialProps = async (ctx) => {
|
|
388
|
+
const { query } = ctx
|
|
389
|
+
const {
|
|
390
|
+
query: { year },
|
|
391
|
+
} = ctx
|
|
392
|
+
const pub = await client.fetch(getQuery('publication'), query)
|
|
393
|
+
**import urlFor from framework**
|
|
394
|
+
pub.issues.map((issue) => {
|
|
395
|
+
issue.thumbnail = urlFor({client, source: issue.thumbnail})
|
|
396
|
+
})
|
|
397
|
+
return { pub, year }
|
|
398
|
+
}
|
|
399
|
+
export default Publication
|
|
402
400
|
*/
|
|
403
401
|
|
|
404
402
|
var generateContentPlacements = function generateContentPlacements(issues) {
|
|
@@ -421,9 +419,9 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
421
419
|
var publication = props.publication,
|
|
422
420
|
_props$year = props.year,
|
|
423
421
|
year = _props$year === undefined ? '' : _props$year,
|
|
424
|
-
href = props.href
|
|
425
|
-
|
|
426
|
-
_props$contentPlaceme = props.contentPlacement,
|
|
422
|
+
href = props.href;
|
|
423
|
+
props.pdf;
|
|
424
|
+
var _props$contentPlaceme = props.contentPlacement,
|
|
427
425
|
contentPlacement = _props$contentPlaceme === undefined ? '' : _props$contentPlaceme,
|
|
428
426
|
client = props.client;
|
|
429
427
|
|
|
@@ -1,44 +1,42 @@
|
|
|
1
|
-
import './
|
|
2
|
-
import './
|
|
3
|
-
import './
|
|
4
|
-
import './_library-528f1934.js';
|
|
5
|
-
import './_iter-detect-5d49a330.js';
|
|
6
|
-
import { _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
7
|
-
import './core.get-iterator-method-e1de7503.js';
|
|
8
|
-
import './_object-pie-33c40e79.js';
|
|
9
|
-
import { _ as _extends } from './extends-6f2fcc99.js';
|
|
10
|
-
import './web.dom.iterable-4439f05a.js';
|
|
1
|
+
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
2
|
+
import { _ as _toConsumableArray } from './toConsumableArray-7b1c0e23.js';
|
|
3
|
+
import { _ as _extends } from './extends-dc6a71fd.js';
|
|
11
4
|
import React, { useEffect, useState, useRef } from 'react';
|
|
12
|
-
import '
|
|
13
|
-
import
|
|
14
|
-
import 'prop-types';
|
|
15
|
-
import 'react-bootstrap/Card';
|
|
16
|
-
import { m as moment } from './moment-b6f49411.js';
|
|
17
|
-
import { useRouter } from 'next/router';
|
|
18
|
-
import './isSymbol-1981418f.js';
|
|
19
|
-
import './debounce-9207d8ee.js';
|
|
20
|
-
import './toNumber-2f7a84cd.js';
|
|
5
|
+
import { Container, Media } from 'react-bootstrap';
|
|
6
|
+
import urlFor from './urlFor.js';
|
|
21
7
|
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
22
|
-
import '
|
|
8
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
23
9
|
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
24
|
-
import './index-
|
|
25
|
-
import
|
|
26
|
-
import { L as LazyLoad } from './index-
|
|
27
|
-
import { m as
|
|
28
|
-
import { c as clean_html_1 } from './entities-
|
|
29
|
-
import {
|
|
30
|
-
import './
|
|
31
|
-
import './
|
|
32
|
-
import './
|
|
33
|
-
import './Beam.js';
|
|
34
|
-
import './AdSlot.js';
|
|
35
|
-
import { A as ADInfeed } from './ADInfeed-56a3db8b.js';
|
|
36
|
-
import { l as lodash } from './lodash-ec8c6b48.js';
|
|
37
|
-
import { A as ADlgInfeed } from './ADlgInfeed-53edb995.js';
|
|
10
|
+
import { l as lib_3 } from './index-2446af28.js';
|
|
11
|
+
import { useRouter } from 'next/router';
|
|
12
|
+
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
13
|
+
import { m as main_43 } from './main-b5c5aac1.js';
|
|
14
|
+
import { c as clean_html_1 } from './entities-932b50cf.js';
|
|
15
|
+
import { A as ADInfeed } from './ADInfeed-0cbd7bed.js';
|
|
16
|
+
import { A as AuthorComponent } from './AuthorComponent-46a745ba.js';
|
|
17
|
+
import { l as lodash } from './lodash-f97fd99a.js';
|
|
18
|
+
import { A as ADlgInfeed } from './ADlgInfeed-2d1a52d9.js';
|
|
38
19
|
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
39
|
-
import { A as AuthorComponent } from './AuthorComponent-8ffd4679.js';
|
|
40
|
-
import { Container, Media } from 'react-bootstrap';
|
|
41
20
|
import timeDifferenceCalc from './timeDifferenceCalc.js';
|
|
21
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
22
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
23
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
24
|
+
import './_iter-detect-f089461c.js';
|
|
25
|
+
import './_object-pie-133f504a.js';
|
|
26
|
+
import './index-0dbff1d1.js';
|
|
27
|
+
import 'react-dom';
|
|
28
|
+
import './events-6c3a7a63.js';
|
|
29
|
+
import 'prop-types';
|
|
30
|
+
import 'react-bootstrap/Card';
|
|
31
|
+
import './AdSlot.js';
|
|
32
|
+
import './debounce-533d9748.js';
|
|
33
|
+
import './isSymbol-a7e9aafe.js';
|
|
34
|
+
import './toNumber-5aeba6e7.js';
|
|
35
|
+
import './Beam.js';
|
|
36
|
+
import './stringify-c21932b3.js';
|
|
37
|
+
import './asyncToGenerator-b4dfe691.js';
|
|
38
|
+
import './_library-528f1934.js';
|
|
39
|
+
import './Segment.js';
|
|
42
40
|
|
|
43
41
|
var renderCardImage = function renderCardImage(row, client) {
|
|
44
42
|
var imageHeight = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
@@ -765,7 +763,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
765
763
|
React.createElement(
|
|
766
764
|
'div',
|
|
767
765
|
null,
|
|
768
|
-
|
|
766
|
+
main_43 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
|
|
769
767
|
)
|
|
770
768
|
)
|
|
771
769
|
);
|
|
@@ -1271,7 +1269,7 @@ var cardLoader = function cardLoader(data, client, mapping, values, seoPaginate,
|
|
|
1271
1269
|
React.createElement(
|
|
1272
1270
|
'div',
|
|
1273
1271
|
null,
|
|
1274
|
-
|
|
1272
|
+
main_43 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && renderMobileAd(index, numberOfItemsBeforeAd, rightItems)
|
|
1275
1273
|
)
|
|
1276
1274
|
)
|
|
1277
1275
|
);
|
package/dist/esm/RecentNews.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import './iconBase-602d52fe.js';
|
|
3
2
|
import { a as FaLongArrowAltRight } from './index.esm-a8ff922c.js';
|
|
3
|
+
import './iconBase-602d52fe.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,
|
|
@@ -1,41 +1,44 @@
|
|
|
1
|
-
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import '
|
|
4
|
-
import { m as moment } from './moment-b6f49411.js';
|
|
5
|
-
import 'react-dom';
|
|
6
|
-
import './index-51a80699.js';
|
|
7
|
-
import urlFor from './urlFor.js';
|
|
8
|
-
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
2
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
9
3
|
import 'react-bootstrap/Media';
|
|
4
|
+
import urlFor from './urlFor.js';
|
|
5
|
+
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
6
|
+
import './_commonjsHelpers-0c4b6f40.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';
|
|
11
|
+
import 'react-dom';
|
|
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
|
+
|
|
10
41
|
|
|
11
|
-
/*
|
|
12
|
-
Sample query
|
|
13
|
-
let references = ''
|
|
14
|
-
if(article.taxonomyMapping.length > 0){
|
|
15
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
16
|
-
references = references + `references('${ref._ref}') `
|
|
17
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
18
|
-
references = references + ` && `
|
|
19
|
-
}
|
|
20
|
-
})
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
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] {
|
|
24
|
-
...,
|
|
25
|
-
title,
|
|
26
|
-
summary,
|
|
27
|
-
thumbnail,
|
|
28
|
-
url,
|
|
29
|
-
published,
|
|
30
|
-
authorMapping[]->,
|
|
31
|
-
contentCategory->
|
|
32
|
-
}`
|
|
33
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
34
|
-
|
|
35
|
-
Sample usage
|
|
36
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
37
|
-
|
|
38
|
-
|
|
39
42
|
*/
|
|
40
43
|
var RelatedContent = function RelatedContent(props) {
|
|
41
44
|
var client = props.client,
|
|
@@ -14,16 +14,16 @@ 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) {
|
package/dist/esm/Search.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import './
|
|
2
|
-
import './_to-object-a4107da3.js';
|
|
3
|
-
import './es6.string.iterator-c990c18c.js';
|
|
4
|
-
import './core.get-iterator-method-e1de7503.js';
|
|
5
|
-
import './web.dom.iterable-4439f05a.js';
|
|
1
|
+
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
6
2
|
import React, { useState } from 'react';
|
|
7
|
-
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
8
|
-
import Button from 'react-bootstrap/Button';
|
|
9
3
|
import Form from 'react-bootstrap/Form';
|
|
10
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';
|
|
11
9
|
|
|
12
10
|
var Search = function Search(props) {
|
|
13
11
|
var _props$placeholder = props.placeholder,
|
package/dist/esm/Segment.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-b4dfe691.js';
|
|
1
2
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
3
|
-
import './
|
|
3
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
4
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
4
5
|
import './_library-528f1934.js';
|
|
5
|
-
import './_iter-detect-
|
|
6
|
-
import './core.get-iterator-method-e1de7503.js';
|
|
7
|
-
import './web.dom.iterable-4439f05a.js';
|
|
8
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
6
|
+
import './_iter-detect-f089461c.js';
|
|
9
7
|
|
|
10
8
|
require('babel-polyfill');
|
|
11
9
|
|
|
@@ -1,28 +1,26 @@
|
|
|
1
|
-
import './
|
|
2
|
-
import './
|
|
3
|
-
import './
|
|
4
|
-
import './_iter-detect-5d49a330.js';
|
|
5
|
-
import { _ as _toConsumableArray } from './toConsumableArray-43aa614d.js';
|
|
6
|
-
import './core.get-iterator-method-e1de7503.js';
|
|
7
|
-
import './_object-pie-33c40e79.js';
|
|
8
|
-
import { _ as _extends } from './extends-6f2fcc99.js';
|
|
9
|
-
import './web.dom.iterable-4439f05a.js';
|
|
1
|
+
import { _ as _toConsumableArray } from './toConsumableArray-7b1c0e23.js';
|
|
2
|
+
import { _ as _extends } from './extends-dc6a71fd.js';
|
|
3
|
+
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
10
4
|
import React, { useState, useEffect, useRef } from 'react';
|
|
11
|
-
import './events-6c3a7a63.js';
|
|
12
|
-
import { l as lib_3 } from './index-f7fb1e25.js';
|
|
13
|
-
import 'prop-types';
|
|
14
5
|
import { useRouter } from 'next/router';
|
|
6
|
+
import { l as lib_3 } from './index-2446af28.js';
|
|
15
7
|
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
16
|
-
import '
|
|
8
|
+
import { S as SeriesSlider } from './SeriesSlider-485f514e.js';
|
|
17
9
|
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
18
|
-
import './
|
|
19
|
-
import './
|
|
20
|
-
import './
|
|
21
|
-
import './
|
|
22
|
-
import
|
|
10
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
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';
|
|
15
|
+
import './events-6c3a7a63.js';
|
|
16
|
+
import 'prop-types';
|
|
23
17
|
import './index-c7e2ac95.js';
|
|
24
|
-
import './
|
|
25
|
-
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-b5c5aac1.js';
|
|
26
24
|
|
|
27
25
|
var usePrevious = function usePrevious(value) {
|
|
28
26
|
var ref = useRef();
|