@mjhls/mjh-framework 1.0.973-pratner-listing-nojs-v1 → 1.0.973-ptce-test-v2

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 (154) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +2 -1
  4. package/dist/cjs/AD300x250x600.js +2 -1
  5. package/dist/cjs/AD728x90.js +2 -1
  6. package/dist/cjs/ADFloatingFooter.js +2 -1
  7. package/dist/cjs/ADGutter.js +2 -1
  8. package/dist/cjs/ADSkyscraper.js +2 -1
  9. package/dist/cjs/ADSponsoredResources.js +2 -1
  10. package/dist/cjs/ADWebcast.js +2 -1
  11. package/dist/cjs/ADWelcome.js +2 -1
  12. package/dist/cjs/AdSlot.js +2 -1
  13. package/dist/cjs/AdSlotsProvider.js +2 -1
  14. package/dist/cjs/AlgoliaSearch.js +14164 -17
  15. package/dist/cjs/ArticleProgramLandingPage.js +3 -2
  16. package/dist/cjs/ArticleSeriesLandingPage.js +4 -3
  17. package/dist/cjs/ArticleSeriesListing.js +2 -1
  18. package/dist/cjs/AuthWrapper.js +3 -29
  19. package/dist/cjs/CMEDeck.js +2 -1
  20. package/dist/cjs/Column3.js +2 -1
  21. package/dist/cjs/ConferenceArticleCard.js +15 -15
  22. package/dist/cjs/ContentCardPaginated.js +5 -3
  23. package/dist/cjs/DeckContent.js +11 -10
  24. package/dist/cjs/DeckQueue.js +2 -1
  25. package/dist/cjs/DeckQueuePaginated.js +4 -2
  26. package/dist/cjs/{Dfp-94f8ccdf.js → Dfp-9be904d5.js} +2 -1
  27. package/dist/cjs/EventsDeck.js +17 -17
  28. package/dist/cjs/ExternalResources.js +3 -2
  29. package/dist/cjs/GridContent.js +4 -3
  30. package/dist/cjs/GridContentPaginated.js +6 -4
  31. package/dist/cjs/HamMagazine.js +9 -9
  32. package/dist/cjs/HealthCareProfessionalModal.js +1 -1
  33. package/dist/cjs/HorizontalArticleListing.js +3 -2
  34. package/dist/cjs/IssueLanding.js +34 -33
  35. package/dist/cjs/KMTracker.js +15 -15
  36. package/dist/cjs/LeftNav.js +2 -1
  37. package/dist/cjs/MasterDeck.js +12 -11
  38. package/dist/cjs/MasterDeckPaginated.js +14 -12
  39. package/dist/cjs/{MediaSeriesCard-1a62916a.js → MediaSeriesCard-5bf9813e.js} +288 -384
  40. package/dist/cjs/MediaSeriesLanding.js +12 -10
  41. package/dist/cjs/MediaSeriesLandingPaginated.js +14 -11
  42. package/dist/cjs/NavMagazine.js +10 -10
  43. package/dist/cjs/NavNative.js +9 -9
  44. package/dist/cjs/Pagination-1e0d5f1d.js +90 -0
  45. package/dist/cjs/PartnerDetailListing.js +29 -29
  46. package/dist/cjs/PartnerDetailListingPaginated.js +7 -5
  47. package/dist/cjs/PtceDeck.js +223 -0
  48. package/dist/cjs/PubSection.js +4 -3
  49. package/dist/cjs/PublicationLanding.js +26 -26
  50. package/dist/cjs/QueueDeckExpanded.js +4 -3
  51. package/dist/cjs/QueueDeckExpandedPaginated.js +6 -4
  52. package/dist/cjs/RelatedContent.js +28 -28
  53. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  54. package/dist/cjs/SeriesListingDeck.js +3 -2
  55. package/dist/cjs/{SeriesSlider-74546d19.js → SeriesSlider-594b19eb.js} +4 -4
  56. package/dist/cjs/SideFooter.js +2 -2
  57. package/dist/cjs/TaxonomyDescription.js +3 -2
  58. package/dist/cjs/TemplateNormal.js +2 -1
  59. package/dist/cjs/VideoProgramLandingPage.js +3 -2
  60. package/dist/cjs/VideoSeriesCard.js +1 -1
  61. package/dist/cjs/VideoSeriesLandingPage.js +4 -3
  62. package/dist/cjs/VideoSeriesListing.js +2 -1
  63. package/dist/cjs/View.js +12 -14
  64. package/dist/cjs/YoutubeGroup.js +4 -4
  65. package/dist/cjs/events-1b438fe7.js +469 -0
  66. package/dist/cjs/getPtceActivities.js +78 -0
  67. package/dist/cjs/getSerializers.js +7 -6
  68. package/dist/cjs/{getTargeting-dab97fe1.js → getTargeting-3c5754ac.js} +9 -9
  69. package/dist/cjs/getTargeting.js +1 -1
  70. package/dist/cjs/index-50be6759.js +105 -0
  71. package/dist/cjs/{index-bb00ade7.js → index-eb1c583d.js} +30 -73
  72. package/dist/cjs/{index-0e4427c8.js → index-fc2f1ca2.js} +2 -467
  73. package/dist/cjs/index.js +10 -7
  74. package/dist/cjs/typeof-1358762e.js +33 -0
  75. package/dist/esm/AD.js +1 -1
  76. package/dist/esm/AD300x250.js +2 -1
  77. package/dist/esm/AD300x250x600.js +2 -1
  78. package/dist/esm/AD728x90.js +2 -1
  79. package/dist/esm/ADFloatingFooter.js +2 -1
  80. package/dist/esm/ADGutter.js +2 -1
  81. package/dist/esm/ADSkyscraper.js +2 -1
  82. package/dist/esm/ADSponsoredResources.js +2 -1
  83. package/dist/esm/ADWebcast.js +2 -1
  84. package/dist/esm/ADWelcome.js +2 -1
  85. package/dist/esm/AdSlot.js +2 -1
  86. package/dist/esm/AdSlotsProvider.js +2 -1
  87. package/dist/esm/AlgoliaSearch.js +14158 -11
  88. package/dist/esm/ArticleProgramLandingPage.js +3 -2
  89. package/dist/esm/ArticleSeriesLandingPage.js +4 -3
  90. package/dist/esm/ArticleSeriesListing.js +2 -1
  91. package/dist/esm/AuthWrapper.js +2 -28
  92. package/dist/esm/CMEDeck.js +2 -1
  93. package/dist/esm/Column3.js +2 -1
  94. package/dist/esm/ConferenceArticleCard.js +15 -15
  95. package/dist/esm/ContentCardPaginated.js +5 -3
  96. package/dist/esm/DeckContent.js +11 -10
  97. package/dist/esm/DeckQueue.js +2 -1
  98. package/dist/esm/DeckQueuePaginated.js +4 -2
  99. package/dist/esm/{Dfp-cf85d203.js → Dfp-102f0beb.js} +2 -1
  100. package/dist/esm/EventsDeck.js +17 -17
  101. package/dist/esm/ExternalResources.js +3 -2
  102. package/dist/esm/GridContent.js +4 -3
  103. package/dist/esm/GridContentPaginated.js +6 -4
  104. package/dist/esm/HamMagazine.js +9 -9
  105. package/dist/esm/HealthCareProfessionalModal.js +1 -1
  106. package/dist/esm/HorizontalArticleListing.js +3 -2
  107. package/dist/esm/IssueLanding.js +34 -33
  108. package/dist/esm/KMTracker.js +15 -15
  109. package/dist/esm/LeftNav.js +2 -1
  110. package/dist/esm/MasterDeck.js +12 -11
  111. package/dist/esm/MasterDeckPaginated.js +14 -12
  112. package/dist/esm/{MediaSeriesCard-146e08c8.js → MediaSeriesCard-305a9cb3.js} +3 -99
  113. package/dist/esm/MediaSeriesLanding.js +12 -10
  114. package/dist/esm/MediaSeriesLandingPaginated.js +14 -11
  115. package/dist/esm/NavMagazine.js +10 -10
  116. package/dist/esm/NavNative.js +9 -9
  117. package/dist/esm/Pagination-cd21f8c2.js +82 -0
  118. package/dist/esm/PartnerDetailListing.js +29 -29
  119. package/dist/esm/PartnerDetailListingPaginated.js +7 -5
  120. package/dist/esm/PtceDeck.js +215 -0
  121. package/dist/esm/PubSection.js +4 -3
  122. package/dist/esm/PublicationLanding.js +26 -26
  123. package/dist/esm/QueueDeckExpanded.js +4 -3
  124. package/dist/esm/QueueDeckExpandedPaginated.js +6 -4
  125. package/dist/esm/RelatedContent.js +28 -28
  126. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  127. package/dist/esm/SeriesListingDeck.js +3 -2
  128. package/dist/esm/{SeriesSlider-e495571f.js → SeriesSlider-f771e20d.js} +4 -4
  129. package/dist/esm/SideFooter.js +2 -2
  130. package/dist/esm/TaxonomyDescription.js +3 -2
  131. package/dist/esm/TemplateNormal.js +2 -1
  132. package/dist/esm/VideoProgramLandingPage.js +3 -2
  133. package/dist/esm/VideoSeriesCard.js +1 -1
  134. package/dist/esm/VideoSeriesLandingPage.js +4 -3
  135. package/dist/esm/VideoSeriesListing.js +2 -1
  136. package/dist/esm/View.js +11 -14
  137. package/dist/esm/YoutubeGroup.js +4 -4
  138. package/dist/esm/events-6c3a7a63.js +467 -0
  139. package/dist/esm/getPtceActivities.js +76 -0
  140. package/dist/esm/getSerializers.js +7 -6
  141. package/dist/esm/{getTargeting-04d979c9.js → getTargeting-42f9b439.js} +9 -9
  142. package/dist/esm/getTargeting.js +1 -1
  143. package/dist/esm/{index-e89d33c8.js → index-264bbd3c.js} +30 -73
  144. package/dist/esm/index-98ca9cec.js +100 -0
  145. package/dist/esm/{index-5cc7b406.js → index-f0fc23eb.js} +1 -466
  146. package/dist/esm/index.js +10 -7
  147. package/dist/esm/typeof-2f07d0e8.js +30 -0
  148. package/package.json +115 -115
  149. package/dist/cjs/Pagination-2a3d0103.js +0 -97
  150. package/dist/esm/Pagination-dc30727b.js +0 -90
  151. /package/dist/cjs/{ADInfeed-cf54cb8a.js → ADInfeed-81006615.js} +0 -0
  152. /package/dist/cjs/{ADlgInfeed-d06624d8.js → ADlgInfeed-0db07099.js} +0 -0
  153. /package/dist/esm/{ADInfeed-0852ff35.js → ADInfeed-6d1fc6bf.js} +0 -0
  154. /package/dist/esm/{ADlgInfeed-5fb3b724.js → ADlgInfeed-dc36c928.js} +0 -0
@@ -1,8 +1,9 @@
1
+ import { _ as _extends, b as _extends$1 } from './extends-6d8e3924.js';
1
2
  import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
2
3
  import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-6ebcbfea.js';
3
4
  import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button as Button$1, ProgressBar } from 'react-bootstrap';
4
5
  import urlFor from './urlFor.js';
5
- import { l as lib_3 } from './index-5cc7b406.js';
6
+ import { l as lib_3 } from './index-f0fc23eb.js';
6
7
  import Router, { useRouter } from 'next/router';
7
8
  import { g as getYoutubeId } from './index-c7e2ac95.js';
8
9
  import PropTypes from 'prop-types';
@@ -12,7 +13,6 @@ import './Beam.js';
12
13
  import Segment from './Segment.js';
13
14
  import { e as main_18, b as main_42, m as main_43 } from './main-1894c974.js';
14
15
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
15
- import { _ as _extends, b as _extends$1 } from './extends-6d8e3924.js';
16
16
  import { u as urlForFile } from './urlForFile-b69adffc.js';
17
17
  import { L as LazyLoad } from './index-755f2cc2.js';
18
18
  import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
@@ -10371,15 +10371,6 @@ var DigiohSmartTag = function DigiohSmartTag(props) {
10371
10371
  return React__default.createElement('div', { id: FormID });
10372
10372
  };
10373
10373
 
10374
- var siteArray = ['aestheticsauthority.com', 'ajmc.com', 'appliedclinicaltrialsonline.com', 'biopharminternational.com', 'cancernetwork.com', 'cannabissciencetech.com', 'centerforbiosimilars.com', 'chromatographyonline.com', 'contagionlive.com', 'contemporaryclinic.com', 'contemporaryobgyn.net', 'contemporarypediatrics.com', 'curetoday.com', 'dentalproductsreport.com', 'dermatologytimes.com', 'diagnosticimaging.com', 'drugtopics.com', 'dvm360.com', 'endocrinologynetwork.com', 'europe.ophthalmologytimes.com', 'formularywatch.com', 'hcplive.com', 'infectioncontroltoday.com', 'managedhealthcareexecutive.com', 'medicaleconomics.com', 'modernretina.com', 'neurologylive.com', 'nutritionaloutlook.com', 'onclive.com', 'oncnursingnews.com', 'ophthalmologytimes.com', 'optometrytimes.com', 'patientcareonline.com', 'pharmaceuticalcommerce.com', 'pharmacytimes.com', 'pharmexec.com', 'pharmtech.com', 'physicianspractice.com', 'practicalcardiology.com', 'psychiatrictimes.com', 'rheumatologynetwork.com', 'spectroscopyonline.com', 'targetedonc.com', 'turbomachinerymag.com', 'urologytimes.com'];
10375
-
10376
- var checkUrlIsExternal = function checkUrlIsExternal(url) {
10377
- if (/https?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|http?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|(^mailto)/i.test(url)) {
10378
- return true;
10379
- }
10380
- return false;
10381
- };
10382
-
10383
10374
  var ScrollToElement = function ScrollToElement(elementId) {
10384
10375
  var element = document.getElementById(elementId);
10385
10376
  if (element) {
@@ -10394,66 +10385,11 @@ var ScrollToElement = function ScrollToElement(elementId) {
10394
10385
  }
10395
10386
  };
10396
10387
 
10397
- var ExternalLink = function ExternalLink(props) {
10398
- var children = props.children,
10399
- _props$mark = props.mark,
10400
- href = _props$mark.href,
10401
- blank = _props$mark.blank,
10402
- color = _props$mark.color,
10403
- nofollow = _props$mark.nofollow;
10404
-
10405
- var _useState = useState(null),
10406
- _useState2 = _slicedToArray(_useState, 2),
10407
- ogUrl = _useState2[0],
10408
- setOgUrl = _useState2[1];
10409
-
10410
- useEffect(function () {
10411
- if (window.location.href) {
10412
- !ogUrl && setOgUrl(String(window.location.host).replace('www.', ''));
10413
- }
10414
- }, []);
10415
- var isExernalUrl = checkUrlIsExternal(href);
10416
- var checkBaseUrl = function checkBaseUrl(url) {
10417
- if (url.includes('http://') || url.includes('https://')) {
10418
- //to remove http:// or https:// to check URLs
10419
- url = url.replace('www.', '').split('/').slice(2, 3).join('/');
10420
- }
10421
- return ogUrl && ogUrl.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) || siteArray.includes(url.replace('www.', '').split('/').slice(0, 1).join('/')) ? true : false;
10422
- };
10423
- var checkNoFollow = function checkNoFollow(url, nofollow) {
10424
- if (url && !isExernalUrl || url && checkBaseUrl(url)) {
10425
- //if not external url, nofollow is disabled
10426
- return '';
10427
- } else if (url && nofollow) {
10428
- //if not external url and nofollow is enabled, nofollow
10429
- return 'nofollow';
10430
- } else {
10431
- //if not external url and nofollow is disabled, no nofollow
10432
- return '';
10433
- }
10434
- };
10435
-
10436
- if (href && href.charAt(0) === '#') {
10437
- var elementId = href.slice(1);
10438
- if (articleId) elementId = elementId + '-' + articleId;
10439
- return React__default.createElement(
10440
- 'a',
10441
- { onClick: function onClick() {
10442
- return ScrollToElement(elementId);
10443
- } },
10444
- children
10445
- );
10388
+ var checkUrlIsExternal = function checkUrlIsExternal(url) {
10389
+ if (/https?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|http?:\/\/((?:[\w\d-]+\.)+[\w\d]{2,})|(^mailto)/i.test(url)) {
10390
+ return true;
10446
10391
  }
10447
- var linkRel = checkNoFollow(href, nofollow) + ' ' + (blank && !checkBaseUrl(href) ? 'noreferrer noopener' : '');
10448
- return href ? linkRel.trim().length > 0 ? React__default.createElement(
10449
- 'a',
10450
- _extends({ rel: linkRel.trim(), href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
10451
- children
10452
- ) : React__default.createElement(
10453
- 'a',
10454
- _extends({ href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
10455
- children
10456
- ) : children;
10392
+ return false;
10457
10393
  };
10458
10394
 
10459
10395
  var convertEntities = function convertEntities(props) {
@@ -10496,8 +10432,8 @@ var getSerializers = function getSerializers() {
10496
10432
  authorImgHeight = props[15],
10497
10433
  audioAutoplay = props[16];
10498
10434
 
10499
- var nextVideo = article && article.nextVideo ? article.nextVideo : null;
10500
10435
 
10436
+ var nextVideo = article && article.nextVideo ? article.nextVideo : null;
10501
10437
  return {
10502
10438
  types: {
10503
10439
  undefined: function undefined$1() {
@@ -10681,9 +10617,30 @@ var getSerializers = function getSerializers() {
10681
10617
  },
10682
10618
  link: function link(props) {
10683
10619
  var children = props.children,
10684
- mark = props.mark;
10620
+ _props$mark = props.mark,
10621
+ href = _props$mark.href,
10622
+ blank = _props$mark.blank,
10623
+ color = _props$mark.color;
10624
+
10625
+
10626
+ if (href && href.charAt(0) === '#') {
10627
+ var elementId = href.slice(1);
10628
+ if (articleId) elementId = elementId + '-' + articleId;
10629
+ return React__default.createElement(
10630
+ 'a',
10631
+ { onClick: function onClick() {
10632
+ return ScrollToElement(elementId);
10633
+ } },
10634
+ children
10635
+ );
10636
+ }
10685
10637
 
10686
- return React__default.createElement(ExternalLink, { children: children, mark: mark });
10638
+ var isExernalUrl = checkUrlIsExternal(href);
10639
+ return href ? React__default.createElement(
10640
+ 'a',
10641
+ _extends({ rel: blank ? 'noopener' : '', href: isExernalUrl ? href : '/' + href, target: blank ? '_blank' : '_self' }, color && color.hex && { style: { color: color.hex } }),
10642
+ children
10643
+ ) : children;
10687
10644
  },
10688
10645
  alignleft: function alignleft(_ref23) {
10689
10646
  var children = _ref23.children;
@@ -0,0 +1,100 @@
1
+ import { c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
2
+
3
+ function _extends() {
4
+ _extends = Object.assign || function (target) {
5
+ for (var i = 1; i < arguments.length; i++) {
6
+ var source = arguments[i];
7
+
8
+ for (var key in source) {
9
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
10
+ target[key] = source[key];
11
+ }
12
+ }
13
+ }
14
+
15
+ return target;
16
+ };
17
+
18
+ return _extends.apply(this, arguments);
19
+ }
20
+
21
+ function _objectWithoutPropertiesLoose(source, excluded) {
22
+ if (source == null) return {};
23
+ var target = {};
24
+ var sourceKeys = Object.keys(source);
25
+ var key, i;
26
+
27
+ for (i = 0; i < sourceKeys.length; i++) {
28
+ key = sourceKeys[i];
29
+ if (excluded.indexOf(key) >= 0) continue;
30
+ target[key] = source[key];
31
+ }
32
+
33
+ return target;
34
+ }
35
+
36
+ function _setPrototypeOf(o, p) {
37
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
38
+ o.__proto__ = p;
39
+ return o;
40
+ };
41
+
42
+ return _setPrototypeOf(o, p);
43
+ }
44
+
45
+ var classnames = createCommonjsModule(function (module) {
46
+ /*!
47
+ Copyright (c) 2018 Jed Watson.
48
+ Licensed under the MIT License (MIT), see
49
+ http://jedwatson.github.io/classnames
50
+ */
51
+ /* global define */
52
+
53
+ (function () {
54
+
55
+ var hasOwn = {}.hasOwnProperty;
56
+
57
+ function classNames() {
58
+ var classes = [];
59
+
60
+ for (var i = 0; i < arguments.length; i++) {
61
+ var arg = arguments[i];
62
+ if (!arg) continue;
63
+
64
+ var argType = typeof arg;
65
+
66
+ if (argType === 'string' || argType === 'number') {
67
+ classes.push(arg);
68
+ } else if (Array.isArray(arg)) {
69
+ if (arg.length) {
70
+ var inner = classNames.apply(null, arg);
71
+ if (inner) {
72
+ classes.push(inner);
73
+ }
74
+ }
75
+ } else if (argType === 'object') {
76
+ if (arg.toString === Object.prototype.toString) {
77
+ for (var key in arg) {
78
+ if (hasOwn.call(arg, key) && arg[key]) {
79
+ classes.push(key);
80
+ }
81
+ }
82
+ } else {
83
+ classes.push(arg.toString());
84
+ }
85
+ }
86
+ }
87
+
88
+ return classes.join(' ');
89
+ }
90
+
91
+ if (module.exports) {
92
+ classNames.default = classNames;
93
+ module.exports = classNames;
94
+ } else {
95
+ window.classNames = classNames;
96
+ }
97
+ }());
98
+ });
99
+
100
+ export { _objectWithoutPropertiesLoose as _, _setPrototypeOf as a, _extends as b, classnames as c };