@mjhls/mjh-framework 1.0.1073 → 1.0.1074
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/AD300x250.js +1 -1
- package/dist/cjs/AD300x250x600.js +1 -1
- package/dist/cjs/AD728x90.js +1 -1
- package/dist/cjs/ADFloatingFooter.js +1 -1
- package/dist/cjs/ADGutter.js +1 -1
- package/dist/cjs/{ADInfeed-0519664d.js → ADInfeed-98ee4120.js} +1 -1
- package/dist/cjs/ADSkyscraper.js +1 -1
- package/dist/cjs/ADSponsoredResources.js +1 -1
- package/dist/cjs/ADWebcast.js +1 -1
- package/dist/cjs/ADWelcome.js +1 -1
- package/dist/cjs/{ADlgInfeed-e544ac1c.js → ADlgInfeed-55df7d69.js} +1 -1
- package/dist/cjs/AdSlot.js +1 -1
- package/dist/cjs/AdSlotsProvider.js +1 -1
- package/dist/cjs/AlgoliaSearch.js +63 -91
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +3 -3
- package/dist/cjs/ArticleSeriesLandingPage.js +3 -3
- package/dist/cjs/ArticleSeriesListing.js +1 -1
- package/dist/cjs/AuthWrapper.js +1476 -294
- package/dist/cjs/CEDeckSupabase.js +2 -2
- package/dist/cjs/CMEDeck.js +1 -1
- package/dist/cjs/Column3.js +1 -1
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/ContentCardPaginated.js +3 -3
- package/dist/cjs/DeckContent.js +11 -11
- package/dist/cjs/DeckQueue.js +2 -2
- package/dist/cjs/DeckQueuePaginated.js +2 -2
- package/dist/cjs/EventsDeck.js +18 -18
- package/dist/cjs/ExternalResources.js +3 -3
- package/dist/cjs/Feature.js +1 -1
- package/dist/cjs/GridContent.js +4 -4
- package/dist/cjs/GridContentPaginated.js +4 -4
- package/dist/cjs/GridHero.js +1 -1
- package/dist/cjs/HamMagazine.js +11 -11
- package/dist/cjs/HealthCareProfessionalModal.js +1 -1
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +3 -3
- package/dist/cjs/{ImageSlider-62a43659.js → ImageSlider-984a697b.js} +92 -149
- package/dist/cjs/IssueLanding.js +34 -34
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +1 -1
- package/dist/cjs/MasterDeck.js +11 -11
- package/dist/cjs/MasterDeckPaginated.js +11 -11
- package/dist/cjs/{MediaSeriesCard-a7e29435.js → MediaSeriesCard-19aab049.js} +2 -2
- package/dist/cjs/MediaSeriesLanding.js +13 -13
- package/dist/cjs/MediaSeriesLandingPaginated.js +13 -13
- package/dist/cjs/NavMagazine.js +12 -12
- package/dist/cjs/NavNative.js +10 -10
- package/dist/cjs/OncliveLargeHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +7 -6
- package/dist/cjs/PartnerDetailListingPaginated.js +7 -6
- package/dist/cjs/PodcastsLanding.js +6 -6
- package/dist/cjs/PubSection.js +4 -4
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpanded.js +4 -4
- package/dist/cjs/QueueDeckExpandedPaginated.js +4 -4
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +2 -2
- package/dist/cjs/{SeriesSlider-edcb8e4b.js → SeriesSlider-086a8319.js} +5 -5
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-e9ec9c63.js → SocialSearchComponent-d7e5d3a6.js} +1 -1
- package/dist/cjs/TaxonomyDescription.js +3 -3
- package/dist/cjs/TemplateNormal.js +2 -2
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/{Tooltip-980a1d1a.js → Tooltip-96fe6ef6.js} +264 -108
- package/dist/cjs/Ustream.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +3 -3
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +3 -3
- package/dist/cjs/VideoSeriesListing.js +1 -1
- package/dist/cjs/View.js +34 -27
- package/dist/cjs/YahooHero.js +1 -1
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/defineProperty-e0fb52c5.js +73 -0
- package/dist/cjs/{entities-3f9d0f2f.js → entities-df1aed86.js} +4 -0
- package/dist/cjs/getSerializers.js +3 -3
- package/dist/cjs/{getTargeting-45ffbee8.js → getTargeting-5b954783.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-8041a4eb.js → index-50be6759.js} +15 -9
- package/dist/cjs/{index-43275e6f.js → index-a075129d.js} +2 -2
- package/dist/cjs/index.js +12 -10
- package/dist/cjs/{main-47be4f9f.js → main-ae8472f3.js} +4 -9
- package/dist/cjs/typeof-1358762e.js +33 -0
- package/dist/esm/AD300x250.js +1 -1
- package/dist/esm/AD300x250x600.js +1 -1
- package/dist/esm/AD728x90.js +1 -1
- package/dist/esm/ADFloatingFooter.js +1 -1
- package/dist/esm/ADGutter.js +1 -1
- package/dist/esm/{ADInfeed-c3f5613e.js → ADInfeed-6d0c0856.js} +1 -1
- package/dist/esm/ADSkyscraper.js +1 -1
- package/dist/esm/ADSponsoredResources.js +1 -1
- package/dist/esm/ADWebcast.js +1 -1
- package/dist/esm/ADWelcome.js +1 -1
- package/dist/esm/{ADlgInfeed-2b148f3f.js → ADlgInfeed-93bc2250.js} +1 -1
- package/dist/esm/AdSlot.js +1 -1
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/AlgoliaSearch.js +63 -91
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +3 -3
- package/dist/esm/ArticleSeriesLandingPage.js +3 -3
- package/dist/esm/ArticleSeriesListing.js +1 -1
- package/dist/esm/AuthWrapper.js +1470 -288
- package/dist/esm/CEDeckSupabase.js +2 -2
- package/dist/esm/CMEDeck.js +1 -1
- package/dist/esm/Column3.js +1 -1
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/ContentCardPaginated.js +3 -3
- package/dist/esm/DeckContent.js +11 -11
- package/dist/esm/DeckQueue.js +2 -2
- package/dist/esm/DeckQueuePaginated.js +2 -2
- package/dist/esm/EventsDeck.js +18 -18
- package/dist/esm/ExternalResources.js +3 -3
- package/dist/esm/Feature.js +1 -1
- package/dist/esm/GridContent.js +4 -4
- package/dist/esm/GridContentPaginated.js +4 -4
- package/dist/esm/GridHero.js +1 -1
- package/dist/esm/HamMagazine.js +11 -11
- package/dist/esm/HealthCareProfessionalModal.js +1 -1
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +3 -3
- package/dist/esm/{ImageSlider-aea3a615.js → ImageSlider-497e9c88.js} +10 -67
- package/dist/esm/IssueLanding.js +34 -34
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +1 -1
- package/dist/esm/MasterDeck.js +11 -11
- package/dist/esm/MasterDeckPaginated.js +11 -11
- package/dist/esm/{MediaSeriesCard-b47e2393.js → MediaSeriesCard-6d08d387.js} +2 -2
- package/dist/esm/MediaSeriesLanding.js +13 -13
- package/dist/esm/MediaSeriesLandingPaginated.js +13 -13
- package/dist/esm/NavMagazine.js +12 -12
- package/dist/esm/NavNative.js +10 -10
- package/dist/esm/OncliveLargeHero.js +1 -1
- package/dist/esm/PartnerDetailListing.js +7 -6
- package/dist/esm/PartnerDetailListingPaginated.js +7 -6
- package/dist/esm/PodcastsLanding.js +6 -6
- package/dist/esm/PubSection.js +4 -4
- package/dist/esm/PublicationLanding.js +26 -26
- package/dist/esm/QueueDeckExpanded.js +4 -4
- package/dist/esm/QueueDeckExpandedPaginated.js +4 -4
- package/dist/esm/RelatedContent.js +28 -28
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SeriesListingDeck.js +2 -2
- package/dist/esm/{SeriesSlider-2e83e861.js → SeriesSlider-a6b1d617.js} +5 -5
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/{SocialSearchComponent-020f9e81.js → SocialSearchComponent-6065bff2.js} +1 -1
- package/dist/esm/TaxonomyDescription.js +3 -3
- package/dist/esm/TemplateNormal.js +2 -2
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/{Tooltip-51957f7c.js → Tooltip-bc98d17e.js} +264 -108
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +3 -3
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesLandingPage.js +3 -3
- package/dist/esm/VideoSeriesListing.js +1 -1
- package/dist/esm/View.js +34 -27
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +5 -5
- package/dist/esm/defineProperty-23a8f8cd.js +68 -0
- package/dist/esm/{entities-932b50cf.js → entities-6d9154b4.js} +4 -0
- package/dist/esm/getSerializers.js +3 -3
- package/dist/esm/{getTargeting-a569a9cc.js → getTargeting-5a281334.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-983ef4ad.js → index-6be9a1c4.js} +2 -2
- package/dist/esm/{index-67e1773f.js → index-98ca9cec.js} +15 -9
- package/dist/esm/index.js +12 -10
- package/dist/esm/{main-f97773b2.js → main-754d4992.js} +4 -9
- package/dist/esm/typeof-2f07d0e8.js +30 -0
- package/package.json +116 -116
|
@@ -12,34 +12,34 @@ import './index-3f5c03b2.js';
|
|
|
12
12
|
import 'react-dom';
|
|
13
13
|
import 'prop-types';
|
|
14
14
|
|
|
15
|
-
/*
|
|
16
|
-
Sample query
|
|
17
|
-
let references = ''
|
|
18
|
-
if(article.taxonomyMapping.length > 0){
|
|
19
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
20
|
-
references = references + `references('${ref._ref}') `
|
|
21
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
22
|
-
references = references + ` && `
|
|
23
|
-
}
|
|
24
|
-
})
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
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] {
|
|
28
|
-
...,
|
|
29
|
-
title,
|
|
30
|
-
summary,
|
|
31
|
-
thumbnail,
|
|
32
|
-
url,
|
|
33
|
-
published,
|
|
34
|
-
authorMapping[]->,
|
|
35
|
-
contentCategory->
|
|
36
|
-
}`
|
|
37
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
38
|
-
|
|
39
|
-
Sample usage
|
|
40
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
41
|
-
|
|
42
|
-
|
|
15
|
+
/*
|
|
16
|
+
Sample query
|
|
17
|
+
let references = ''
|
|
18
|
+
if(article.taxonomyMapping.length > 0){
|
|
19
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
20
|
+
references = references + `references('${ref._ref}') `
|
|
21
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
22
|
+
references = references + ` && `
|
|
23
|
+
}
|
|
24
|
+
})
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
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] {
|
|
28
|
+
...,
|
|
29
|
+
title,
|
|
30
|
+
summary,
|
|
31
|
+
thumbnail,
|
|
32
|
+
url,
|
|
33
|
+
published,
|
|
34
|
+
authorMapping[]->,
|
|
35
|
+
contentCategory->
|
|
36
|
+
}`
|
|
37
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
38
|
+
|
|
39
|
+
Sample usage
|
|
40
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
41
|
+
|
|
42
|
+
|
|
43
43
|
*/
|
|
44
44
|
var RelatedContent = function RelatedContent(props) {
|
|
45
45
|
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) {
|
|
@@ -5,7 +5,7 @@ import React__default, { useState, useEffect, useRef } from 'react';
|
|
|
5
5
|
import { useRouter } from 'next/router';
|
|
6
6
|
import { l as lib_3 } from './index-5cc7b406.js';
|
|
7
7
|
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
8
|
-
import { S as SeriesSlider } from './SeriesSlider-
|
|
8
|
+
import { S as SeriesSlider } from './SeriesSlider-a6b1d617.js';
|
|
9
9
|
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -18,7 +18,7 @@ import 'react-dom';
|
|
|
18
18
|
import './smoothscroll-fa4e3f8c.js';
|
|
19
19
|
import './urlFor.js';
|
|
20
20
|
import './index-3f5c03b2.js';
|
|
21
|
-
import './main-
|
|
21
|
+
import './main-754d4992.js';
|
|
22
22
|
|
|
23
23
|
var usePrevious = function usePrevious(value) {
|
|
24
24
|
var ref = useRef();
|
|
@@ -4,12 +4,12 @@ import { g as getYoutubeId } from './index-c7e2ac95.js';
|
|
|
4
4
|
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
5
5
|
import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
|
|
6
6
|
import urlFor from './urlFor.js';
|
|
7
|
-
import { m as main_43, a as main_49, b as main_42 } from './main-
|
|
7
|
+
import { m as main_43, a as main_49, b as main_42 } from './main-754d4992.js';
|
|
8
8
|
|
|
9
|
-
/*
|
|
10
|
-
GROQ query -
|
|
11
|
-
accepts an array of title, URL
|
|
12
|
-
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
9
|
+
/*
|
|
10
|
+
GROQ query -
|
|
11
|
+
accepts an array of title, URL
|
|
12
|
+
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
var SeriesSlider = function SeriesSlider(_ref) {
|
package/dist/esm/SideFooter.js
CHANGED
|
@@ -33,8 +33,8 @@ var renderLink = function renderLink(row) {
|
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
var SideFooter = function SideFooter(props) {
|
|
36
|
-
/*
|
|
37
|
-
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
36
|
+
/*
|
|
37
|
+
useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
|
|
38
38
|
*/
|
|
39
39
|
var _get = get_1(props, 'cache.siteSettingCache', {}),
|
|
40
40
|
socialLinks = _get.socialLinks,
|
|
@@ -6,7 +6,7 @@ import { I as IconContext } from './iconBase-ccc56b97.js';
|
|
|
6
6
|
import Form from 'react-bootstrap/Form';
|
|
7
7
|
import FormControl from 'react-bootstrap/FormControl';
|
|
8
8
|
import Button from 'react-bootstrap/Button';
|
|
9
|
-
import { g as main_34, c as main_44 } from './main-
|
|
9
|
+
import { g as main_34, c as main_44 } from './main-754d4992.js';
|
|
10
10
|
|
|
11
11
|
var SocialSearchComponent = function SocialSearchComponent(_ref) {
|
|
12
12
|
var type = _ref.type,
|
|
@@ -5,7 +5,7 @@ import React__default, { useState, useEffect } from 'react';
|
|
|
5
5
|
import { useRouter } from 'next/router';
|
|
6
6
|
import Head from 'next/head';
|
|
7
7
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
8
|
-
import { g as getSerializers } from './index-
|
|
8
|
+
import { g as getSerializers } from './index-6be9a1c4.js';
|
|
9
9
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
10
10
|
import './core.get-iterator-method-ea258bb1.js';
|
|
11
11
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -21,7 +21,7 @@ import './index-c7e2ac95.js';
|
|
|
21
21
|
import './Beam.js';
|
|
22
22
|
import './stringify-2b084bee.js';
|
|
23
23
|
import './Segment.js';
|
|
24
|
-
import './main-
|
|
24
|
+
import './main-754d4992.js';
|
|
25
25
|
import './urlForFile-f6485737.js';
|
|
26
26
|
import './index-755f2cc2.js';
|
|
27
27
|
import 'react-dom';
|
|
@@ -42,7 +42,7 @@ import './SocialShare.js';
|
|
|
42
42
|
import 'react-share';
|
|
43
43
|
import './toConsumableArray-f7074d7c.js';
|
|
44
44
|
import 'react-bootstrap/Pagination';
|
|
45
|
-
import './entities-
|
|
45
|
+
import './entities-6d9154b4.js';
|
|
46
46
|
import './AdSlot.js';
|
|
47
47
|
import './debounce-533d9748.js';
|
|
48
48
|
import './isSymbol-a7e9aafe.js';
|
|
@@ -29,7 +29,7 @@ import './_library-528f1934.js';
|
|
|
29
29
|
import './_set-species-2cd9340f.js';
|
|
30
30
|
import './_iter-detect-98db3b07.js';
|
|
31
31
|
import './Segment.js';
|
|
32
|
-
import './main-
|
|
32
|
+
import './main-754d4992.js';
|
|
33
33
|
import 'next/head';
|
|
34
34
|
import '@mjhls/mjh-framework/dist/cjs/urlFor';
|
|
35
35
|
import 'react-bootstrap/Row';
|
|
@@ -54,7 +54,7 @@ import './iconBase-ccc56b97.js';
|
|
|
54
54
|
import './index.esm-eb1e8e80.js';
|
|
55
55
|
import './NavFooter-1546a102.js';
|
|
56
56
|
import './index.esm-35a42e7d.js';
|
|
57
|
-
import './SocialSearchComponent-
|
|
57
|
+
import './SocialSearchComponent-6065bff2.js';
|
|
58
58
|
import './SocialIcons.js';
|
|
59
59
|
import 'react-bootstrap/Form';
|
|
60
60
|
import 'react-bootstrap/FormControl';
|
|
@@ -2,7 +2,7 @@ import React__default from 'react';
|
|
|
2
2
|
import Media from 'react-bootstrap/Media';
|
|
3
3
|
import urlFor from './urlFor.js';
|
|
4
4
|
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
5
|
-
import { c as clean_html_1 } from './entities-
|
|
5
|
+
import { c as clean_html_1 } from './entities-6d9154b4.js';
|
|
6
6
|
import './slicedToArray-6ebcbfea.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './web.dom.iterable-ab4dea5c.js';
|