@mjhls/mjh-framework 1.0.1023 → 1.0.1024

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.
Files changed (172) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD300x250.js +1 -1
  3. package/dist/cjs/AD300x250x600.js +1 -1
  4. package/dist/cjs/AD728x90.js +1 -1
  5. package/dist/cjs/ADFloatingFooter.js +1 -1
  6. package/dist/cjs/ADGutter.js +1 -1
  7. package/dist/cjs/{ADInfeed-5dabd71d.js → ADInfeed-89488c41.js} +1 -1
  8. package/dist/cjs/ADSkyscraper.js +1 -1
  9. package/dist/cjs/ADSponsoredResources.js +1 -1
  10. package/dist/cjs/ADWebcast.js +1 -1
  11. package/dist/cjs/ADWelcome.js +1 -1
  12. package/dist/cjs/{ADlgInfeed-1766ce0a.js → ADlgInfeed-9d62050b.js} +1 -1
  13. package/dist/cjs/AdSlot.js +1 -1
  14. package/dist/cjs/AdSlotsProvider.js +1 -1
  15. package/dist/cjs/AlgoliaSearch.js +63 -91
  16. package/dist/cjs/ArticleCarousel.js +1 -1
  17. package/dist/cjs/ArticleProgramLandingPage.js +3 -3
  18. package/dist/cjs/ArticleSeriesLandingPage.js +3 -3
  19. package/dist/cjs/ArticleSeriesListing.js +1 -1
  20. package/dist/cjs/Auth.js +1492 -10
  21. package/dist/cjs/AuthWrapper.js +1476 -294
  22. package/dist/cjs/CEDeckSupabase.js +2 -2
  23. package/dist/cjs/CMEDeck.js +1 -1
  24. package/dist/cjs/Column3.js +1 -1
  25. package/dist/cjs/ConferenceArticleCard.js +15 -15
  26. package/dist/cjs/ContentCardPaginated.js +3 -3
  27. package/dist/cjs/DeckContent.js +11 -11
  28. package/dist/cjs/DeckQueue.js +2 -2
  29. package/dist/cjs/DeckQueuePaginated.js +2 -2
  30. package/dist/cjs/EventsDeck.js +18 -18
  31. package/dist/cjs/ExternalResources.js +3 -3
  32. package/dist/cjs/Feature.js +1 -1
  33. package/dist/cjs/GridContent.js +4 -4
  34. package/dist/cjs/GridContentPaginated.js +4 -4
  35. package/dist/cjs/GridHero.js +1 -1
  36. package/dist/cjs/HamMagazine.js +11 -11
  37. package/dist/cjs/HealthCareProfessionalModal.js +1 -1
  38. package/dist/cjs/Hero.js +1 -1
  39. package/dist/cjs/HorizontalArticleListing.js +3 -3
  40. package/dist/cjs/{ImageSlider-fd0cc91c.js → ImageSlider-17fdaf3b.js} +92 -149
  41. package/dist/cjs/IssueLanding.js +34 -34
  42. package/dist/cjs/KMTracker.js +15 -15
  43. package/dist/cjs/LeftNav.js +1 -1
  44. package/dist/cjs/MasterDeck.js +11 -11
  45. package/dist/cjs/MasterDeckPaginated.js +11 -11
  46. package/dist/cjs/{MediaSeriesCard-ae205d40.js → MediaSeriesCard-de7f7fcc.js} +2 -2
  47. package/dist/cjs/MediaSeriesLanding.js +13 -13
  48. package/dist/cjs/MediaSeriesLandingPaginated.js +13 -13
  49. package/dist/cjs/NavMagazine.js +12 -12
  50. package/dist/cjs/NavNative.js +10 -10
  51. package/dist/cjs/OncliveLargeHero.js +1 -1
  52. package/dist/cjs/PartnerDetailListing.js +7 -6
  53. package/dist/cjs/PartnerDetailListingPaginated.js +7 -6
  54. package/dist/cjs/PodcastsLanding.js +6 -6
  55. package/dist/cjs/PubSection.js +4 -4
  56. package/dist/cjs/PublicationLanding.js +26 -26
  57. package/dist/cjs/QueueDeckExpanded.js +4 -4
  58. package/dist/cjs/QueueDeckExpandedPaginated.js +4 -4
  59. package/dist/cjs/RelatedContent.js +28 -28
  60. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  61. package/dist/cjs/SeriesListingDeck.js +2 -2
  62. package/dist/cjs/{SeriesSlider-0b2a2775.js → SeriesSlider-fc6dd07d.js} +5 -5
  63. package/dist/cjs/SideFooter.js +2 -2
  64. package/dist/cjs/{SocialSearchComponent-6924a853.js → SocialSearchComponent-b99947d4.js} +1 -1
  65. package/dist/cjs/TaxonomyDescription.js +3 -3
  66. package/dist/cjs/TemplateNormal.js +2 -2
  67. package/dist/cjs/ThumbnailCard.js +1 -1
  68. package/dist/cjs/{Tooltip-980a1d1a.js → Tooltip-96fe6ef6.js} +264 -108
  69. package/dist/cjs/Ustream.js +1 -1
  70. package/dist/cjs/VideoProgramLandingPage.js +3 -3
  71. package/dist/cjs/VideoSeriesCard.js +1 -1
  72. package/dist/cjs/VideoSeriesLandingPage.js +3 -3
  73. package/dist/cjs/VideoSeriesListing.js +1 -1
  74. package/dist/cjs/View.js +7 -7
  75. package/dist/cjs/YahooHero.js +1 -1
  76. package/dist/cjs/YoutubeGroup.js +5 -5
  77. package/dist/cjs/defineProperty-e0fb52c5.js +73 -0
  78. package/dist/cjs/{entities-3f9d0f2f.js → entities-df1aed86.js} +4 -0
  79. package/dist/cjs/getSerializers.js +3 -3
  80. package/dist/cjs/{getTargeting-4439c99d.js → getTargeting-ba942d9a.js} +9 -9
  81. package/dist/cjs/getTargeting.js +1 -1
  82. package/dist/cjs/{index-b78ce702.js → index-3111bc4e.js} +2 -2
  83. package/dist/cjs/{index-8041a4eb.js → index-50be6759.js} +15 -9
  84. package/dist/cjs/index.js +12 -11
  85. package/dist/cjs/{main-47be4f9f.js → main-ae8472f3.js} +4 -9
  86. package/dist/cjs/typeof-1358762e.js +33 -0
  87. package/dist/esm/AD300x250.js +1 -1
  88. package/dist/esm/AD300x250x600.js +1 -1
  89. package/dist/esm/AD728x90.js +1 -1
  90. package/dist/esm/ADFloatingFooter.js +1 -1
  91. package/dist/esm/ADGutter.js +1 -1
  92. package/dist/esm/{ADInfeed-cfc4f7b2.js → ADInfeed-fb3b056f.js} +1 -1
  93. package/dist/esm/ADSkyscraper.js +1 -1
  94. package/dist/esm/ADSponsoredResources.js +1 -1
  95. package/dist/esm/ADWebcast.js +1 -1
  96. package/dist/esm/ADWelcome.js +1 -1
  97. package/dist/esm/{ADlgInfeed-74c975b9.js → ADlgInfeed-29f7b84c.js} +1 -1
  98. package/dist/esm/AdSlot.js +1 -1
  99. package/dist/esm/AdSlotsProvider.js +1 -1
  100. package/dist/esm/AlgoliaSearch.js +63 -91
  101. package/dist/esm/ArticleCarousel.js +1 -1
  102. package/dist/esm/ArticleProgramLandingPage.js +3 -3
  103. package/dist/esm/ArticleSeriesLandingPage.js +3 -3
  104. package/dist/esm/ArticleSeriesListing.js +1 -1
  105. package/dist/esm/Auth.js +1492 -9
  106. package/dist/esm/AuthWrapper.js +1470 -288
  107. package/dist/esm/CEDeckSupabase.js +2 -2
  108. package/dist/esm/CMEDeck.js +1 -1
  109. package/dist/esm/Column3.js +1 -1
  110. package/dist/esm/ConferenceArticleCard.js +15 -15
  111. package/dist/esm/ContentCardPaginated.js +3 -3
  112. package/dist/esm/DeckContent.js +11 -11
  113. package/dist/esm/DeckQueue.js +2 -2
  114. package/dist/esm/DeckQueuePaginated.js +2 -2
  115. package/dist/esm/EventsDeck.js +18 -18
  116. package/dist/esm/ExternalResources.js +3 -3
  117. package/dist/esm/Feature.js +1 -1
  118. package/dist/esm/GridContent.js +4 -4
  119. package/dist/esm/GridContentPaginated.js +4 -4
  120. package/dist/esm/GridHero.js +1 -1
  121. package/dist/esm/HamMagazine.js +11 -11
  122. package/dist/esm/HealthCareProfessionalModal.js +1 -1
  123. package/dist/esm/Hero.js +1 -1
  124. package/dist/esm/HorizontalArticleListing.js +3 -3
  125. package/dist/esm/{ImageSlider-c3a57384.js → ImageSlider-f84174cb.js} +10 -67
  126. package/dist/esm/IssueLanding.js +34 -34
  127. package/dist/esm/KMTracker.js +15 -15
  128. package/dist/esm/LeftNav.js +1 -1
  129. package/dist/esm/MasterDeck.js +11 -11
  130. package/dist/esm/MasterDeckPaginated.js +11 -11
  131. package/dist/esm/{MediaSeriesCard-957b218d.js → MediaSeriesCard-8ec69f60.js} +2 -2
  132. package/dist/esm/MediaSeriesLanding.js +13 -13
  133. package/dist/esm/MediaSeriesLandingPaginated.js +13 -13
  134. package/dist/esm/NavMagazine.js +12 -12
  135. package/dist/esm/NavNative.js +10 -10
  136. package/dist/esm/OncliveLargeHero.js +1 -1
  137. package/dist/esm/PartnerDetailListing.js +7 -6
  138. package/dist/esm/PartnerDetailListingPaginated.js +7 -6
  139. package/dist/esm/PodcastsLanding.js +6 -6
  140. package/dist/esm/PubSection.js +4 -4
  141. package/dist/esm/PublicationLanding.js +26 -26
  142. package/dist/esm/QueueDeckExpanded.js +4 -4
  143. package/dist/esm/QueueDeckExpandedPaginated.js +4 -4
  144. package/dist/esm/RelatedContent.js +28 -28
  145. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  146. package/dist/esm/SeriesListingDeck.js +2 -2
  147. package/dist/esm/{SeriesSlider-3f4d6012.js → SeriesSlider-771918ce.js} +5 -5
  148. package/dist/esm/SideFooter.js +2 -2
  149. package/dist/esm/{SocialSearchComponent-2451acd2.js → SocialSearchComponent-aedf8322.js} +1 -1
  150. package/dist/esm/TaxonomyDescription.js +3 -3
  151. package/dist/esm/TemplateNormal.js +2 -2
  152. package/dist/esm/ThumbnailCard.js +1 -1
  153. package/dist/esm/{Tooltip-51957f7c.js → Tooltip-bc98d17e.js} +264 -108
  154. package/dist/esm/Ustream.js +1 -1
  155. package/dist/esm/VideoProgramLandingPage.js +3 -3
  156. package/dist/esm/VideoSeriesCard.js +1 -1
  157. package/dist/esm/VideoSeriesLandingPage.js +3 -3
  158. package/dist/esm/VideoSeriesListing.js +1 -1
  159. package/dist/esm/View.js +7 -7
  160. package/dist/esm/YahooHero.js +1 -1
  161. package/dist/esm/YoutubeGroup.js +5 -5
  162. package/dist/esm/defineProperty-23a8f8cd.js +68 -0
  163. package/dist/esm/{entities-932b50cf.js → entities-6d9154b4.js} +4 -0
  164. package/dist/esm/getSerializers.js +3 -3
  165. package/dist/esm/{getTargeting-c6884f34.js → getTargeting-9bd28724.js} +9 -9
  166. package/dist/esm/getTargeting.js +1 -1
  167. package/dist/esm/{index-67e1773f.js → index-98ca9cec.js} +15 -9
  168. package/dist/esm/{index-f2f5b752.js → index-a71a6cc7.js} +2 -2
  169. package/dist/esm/index.js +12 -11
  170. package/dist/esm/{main-f97773b2.js → main-754d4992.js} +4 -9
  171. package/dist/esm/typeof-2f07d0e8.js +30 -0
  172. package/package.json +116 -116
@@ -11,34 +11,34 @@ import './index-3f5c03b2.js';
11
11
  import 'react-dom';
12
12
  import 'prop-types';
13
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
-
41
-
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
+
41
+
42
42
  */
43
43
  var RelatedContent = function RelatedContent(props) {
44
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) {
@@ -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-3f4d6012.js';
8
+ import { S as SeriesSlider } from './SeriesSlider-771918ce.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';
@@ -19,7 +19,7 @@ import 'react-dom';
19
19
  import './smoothscroll-fa4e3f8c.js';
20
20
  import './urlFor.js';
21
21
  import './index-3f5c03b2.js';
22
- import './main-f97773b2.js';
22
+ import './main-754d4992.js';
23
23
 
24
24
  var usePrevious = function usePrevious(value) {
25
25
  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-f97773b2.js';
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) {
@@ -31,8 +31,8 @@ var renderLink = function renderLink(row) {
31
31
  };
32
32
 
33
33
  var SideFooter = function SideFooter(props) {
34
- /*
35
- useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
34
+ /*
35
+ useage example: <SideFooter cache={props.cache} logo='https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png' />
36
36
  */
37
37
  var _get = get_1(props, 'cache.siteSettingCache', {}),
38
38
  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-f97773b2.js';
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-f2f5b752.js';
8
+ import { g as getSerializers } from './index-a71a6cc7.js';
9
9
  import './_commonjsHelpers-0c4b6f40.js';
10
10
  import './core.get-iterator-method-ea258bb1.js';
11
11
  import './_object-pie-133f504a.js';
@@ -22,7 +22,7 @@ import './util-8ed16d48.js';
22
22
  import './Beam.js';
23
23
  import './stringify-2b084bee.js';
24
24
  import './Segment.js';
25
- import './main-f97773b2.js';
25
+ import './main-754d4992.js';
26
26
  import './urlForFile-b69adffc.js';
27
27
  import './index-755f2cc2.js';
28
28
  import 'react-dom';
@@ -43,7 +43,7 @@ import './SocialShare.js';
43
43
  import 'react-share';
44
44
  import './toConsumableArray-f7074d7c.js';
45
45
  import 'react-bootstrap/Pagination';
46
- import './entities-932b50cf.js';
46
+ import './entities-6d9154b4.js';
47
47
  import './AdSlot.js';
48
48
  import './debounce-533d9748.js';
49
49
  import './isSymbol-a7e9aafe.js';
@@ -29,7 +29,7 @@ import './asyncToGenerator-958ef5fc.js';
29
29
  import './_library-528f1934.js';
30
30
  import './_iter-detect-98db3b07.js';
31
31
  import './Segment.js';
32
- import './main-f97773b2.js';
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-27a16f65.js';
56
56
  import './index.esm-06bf63a3.js';
57
- import './SocialSearchComponent-2451acd2.js';
57
+ import './SocialSearchComponent-aedf8322.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-932b50cf.js';
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';