@mjhls/mjh-framework 1.0.993-topelement-v6 → 1.0.993

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 (156) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +1 -2
  4. package/dist/cjs/AD300x250x600.js +1 -2
  5. package/dist/cjs/AD728x90.js +1 -2
  6. package/dist/cjs/ADFloatingFooter.js +1 -2
  7. package/dist/cjs/ADGutter.js +1 -2
  8. package/dist/cjs/ADSkyscraper.js +1 -2
  9. package/dist/cjs/ADSponsoredResources.js +1 -2
  10. package/dist/cjs/ADWebcast.js +1 -2
  11. package/dist/cjs/ADWelcome.js +1 -2
  12. package/dist/cjs/AdSlot.js +1 -2
  13. package/dist/cjs/AdSlotsProvider.js +5 -5
  14. package/dist/cjs/AlgoliaSearch.js +738 -276
  15. package/dist/cjs/ArticleProgramLandingPage.js +4 -5
  16. package/dist/cjs/ArticleSeriesLandingPage.js +3 -4
  17. package/dist/cjs/ArticleSeriesListing.js +1 -2
  18. package/dist/cjs/Auth.js +26 -22830
  19. package/dist/cjs/AuthWrapper.js +16 -36
  20. package/dist/cjs/CMEDeck.js +1 -2
  21. package/dist/cjs/Column3.js +1 -2
  22. package/dist/cjs/ConferenceArticleCard.js +15 -15
  23. package/dist/cjs/ContentCardPaginated.js +2 -3
  24. package/dist/cjs/DeckContent.js +10 -11
  25. package/dist/cjs/DeckQueue.js +1 -2
  26. package/dist/cjs/DeckQueuePaginated.js +1 -2
  27. package/dist/cjs/{Dfp-c313a700.js → Dfp-67646058.js} +1 -2
  28. package/dist/cjs/EventsDeck.js +17 -17
  29. package/dist/cjs/ExternalResources.js +4 -5
  30. package/dist/cjs/GridContent.js +3 -4
  31. package/dist/cjs/GridContentPaginated.js +3 -4
  32. package/dist/cjs/HamMagazine.js +9 -9
  33. package/dist/cjs/HealthCareProfessionalModal.js +1 -1
  34. package/dist/cjs/HorizontalArticleListing.js +4 -5
  35. package/dist/cjs/{ImageSlider-ca708da8.js → ImageSlider-1ec0408b.js} +1 -1100
  36. package/dist/cjs/IssueLanding.js +35 -36
  37. package/dist/cjs/KMTracker.js +15 -15
  38. package/dist/cjs/LeftNav.js +1 -2
  39. package/dist/cjs/MasterDeck.js +11 -12
  40. package/dist/cjs/MasterDeckPaginated.js +11 -12
  41. package/dist/cjs/{MediaSeriesCard-f6db8f70.js → MediaSeriesCard-2645b00a.js} +227 -218
  42. package/dist/cjs/MediaSeriesLanding.js +13 -14
  43. package/dist/cjs/MediaSeriesLandingPaginated.js +13 -14
  44. package/dist/cjs/NavMagazine.js +10 -10
  45. package/dist/cjs/NavNative.js +9 -9
  46. package/dist/cjs/PartnerDetailListing.js +9 -10
  47. package/dist/cjs/PartnerDetailListingPaginated.js +9 -10
  48. package/dist/cjs/PubSection.js +3 -4
  49. package/dist/cjs/PublicationLanding.js +26 -26
  50. package/dist/cjs/QueueDeckExpanded.js +3 -4
  51. package/dist/cjs/QueueDeckExpandedPaginated.js +3 -4
  52. package/dist/cjs/RelatedContent.js +28 -28
  53. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  54. package/dist/cjs/Schema.js +1 -1
  55. package/dist/cjs/SeriesListingDeck.js +2 -3
  56. package/dist/cjs/{SeriesSlider-f5248377.js → SeriesSlider-18fc6e71.js} +4 -4
  57. package/dist/cjs/SideFooter.js +2 -2
  58. package/dist/cjs/TaxonomyDescription.js +4 -5
  59. package/dist/cjs/TemplateNormal.js +1 -2
  60. package/dist/cjs/VideoProgramLandingPage.js +4 -5
  61. package/dist/cjs/VideoSeriesCard.js +1 -1
  62. package/dist/cjs/VideoSeriesLandingPage.js +3 -4
  63. package/dist/cjs/VideoSeriesListing.js +1 -2
  64. package/dist/cjs/View.js +8 -9
  65. package/dist/cjs/YoutubeGroup.js +4 -4
  66. package/dist/cjs/getSerializers.js +4 -5
  67. package/dist/cjs/{getTargeting-4439c99d.js → getTargeting-ba942d9a.js} +9 -9
  68. package/dist/cjs/getTargeting.js +1 -1
  69. package/dist/cjs/{index-b10d6863.js → index-669d70bd.js} +15 -12
  70. package/dist/cjs/{index-d2a6ef75.js → index-7435b964.js} +467 -2
  71. package/dist/cjs/{index-9ec837cc.js → index-b95410f0.js} +0 -35
  72. package/dist/cjs/index.js +14 -12
  73. package/dist/{esm/empty-a8042e3c.js → cjs/util-93a37fd0.js} +3 -135
  74. package/dist/esm/AD.js +1 -1
  75. package/dist/esm/AD300x250.js +1 -2
  76. package/dist/esm/AD300x250x600.js +1 -2
  77. package/dist/esm/AD728x90.js +1 -2
  78. package/dist/esm/ADFloatingFooter.js +1 -2
  79. package/dist/esm/ADGutter.js +1 -2
  80. package/dist/esm/ADSkyscraper.js +1 -2
  81. package/dist/esm/ADSponsoredResources.js +1 -2
  82. package/dist/esm/ADWebcast.js +1 -2
  83. package/dist/esm/ADWelcome.js +1 -2
  84. package/dist/esm/AdSlot.js +1 -2
  85. package/dist/esm/AdSlotsProvider.js +2 -3
  86. package/dist/esm/AlgoliaSearch.js +474 -12
  87. package/dist/esm/ArticleProgramLandingPage.js +4 -5
  88. package/dist/esm/ArticleSeriesLandingPage.js +3 -4
  89. package/dist/esm/ArticleSeriesListing.js +1 -2
  90. package/dist/esm/Auth.js +18 -22825
  91. package/dist/esm/AuthWrapper.js +16 -36
  92. package/dist/esm/CMEDeck.js +1 -2
  93. package/dist/esm/Column3.js +1 -2
  94. package/dist/esm/ConferenceArticleCard.js +15 -15
  95. package/dist/esm/ContentCardPaginated.js +2 -3
  96. package/dist/esm/DeckContent.js +10 -11
  97. package/dist/esm/DeckQueue.js +1 -2
  98. package/dist/esm/DeckQueuePaginated.js +1 -2
  99. package/dist/esm/{Dfp-102f0beb.js → Dfp-cf85d203.js} +1 -2
  100. package/dist/esm/EventsDeck.js +17 -17
  101. package/dist/esm/ExternalResources.js +4 -5
  102. package/dist/esm/GridContent.js +3 -4
  103. package/dist/esm/GridContentPaginated.js +3 -4
  104. package/dist/esm/HamMagazine.js +9 -9
  105. package/dist/esm/HealthCareProfessionalModal.js +1 -1
  106. package/dist/esm/HorizontalArticleListing.js +4 -5
  107. package/dist/esm/{ImageSlider-fada4f0c.js → ImageSlider-83913c4c.js} +3 -1101
  108. package/dist/esm/IssueLanding.js +35 -36
  109. package/dist/esm/KMTracker.js +15 -15
  110. package/dist/esm/LeftNav.js +1 -2
  111. package/dist/esm/MasterDeck.js +11 -12
  112. package/dist/esm/MasterDeckPaginated.js +11 -12
  113. package/dist/esm/{MediaSeriesCard-96ac8ed4.js → MediaSeriesCard-2a9ff7f3.js} +227 -218
  114. package/dist/esm/MediaSeriesLanding.js +13 -14
  115. package/dist/esm/MediaSeriesLandingPaginated.js +13 -14
  116. package/dist/esm/NavMagazine.js +10 -10
  117. package/dist/esm/NavNative.js +9 -9
  118. package/dist/esm/PartnerDetailListing.js +8 -9
  119. package/dist/esm/PartnerDetailListingPaginated.js +8 -9
  120. package/dist/esm/PubSection.js +3 -4
  121. package/dist/esm/PublicationLanding.js +26 -26
  122. package/dist/esm/QueueDeckExpanded.js +3 -4
  123. package/dist/esm/QueueDeckExpandedPaginated.js +3 -4
  124. package/dist/esm/RelatedContent.js +28 -28
  125. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  126. package/dist/esm/Schema.js +1 -1
  127. package/dist/esm/SeriesListingDeck.js +2 -3
  128. package/dist/esm/{SeriesSlider-4875823e.js → SeriesSlider-5728e349.js} +4 -4
  129. package/dist/esm/SideFooter.js +2 -2
  130. package/dist/esm/TaxonomyDescription.js +4 -5
  131. package/dist/esm/TemplateNormal.js +1 -2
  132. package/dist/esm/VideoProgramLandingPage.js +4 -5
  133. package/dist/esm/VideoSeriesCard.js +1 -1
  134. package/dist/esm/VideoSeriesLandingPage.js +3 -4
  135. package/dist/esm/VideoSeriesListing.js +1 -2
  136. package/dist/esm/View.js +8 -9
  137. package/dist/esm/YoutubeGroup.js +4 -4
  138. package/dist/esm/getSerializers.js +4 -5
  139. package/dist/esm/{getTargeting-c6884f34.js → getTargeting-9bd28724.js} +9 -9
  140. package/dist/esm/getTargeting.js +1 -1
  141. package/dist/esm/{index-0ce54f8a.js → index-174b5baf.js} +1 -34
  142. package/dist/esm/{index-076baa11.js → index-4d0371dc.js} +7 -5
  143. package/dist/esm/{index-f0fc23eb.js → index-5cc7b406.js} +466 -1
  144. package/dist/esm/index.js +14 -12
  145. package/dist/{cjs/empty-559717f3.js → esm/util-8ed16d48.js} +1 -146
  146. package/package.json +114 -114
  147. package/dist/cjs/defineProperty-ad65f5f0.js +0 -110
  148. package/dist/cjs/events-1b438fe7.js +0 -469
  149. package/dist/cjs/index-0cf4c9fc.js +0 -904
  150. package/dist/esm/defineProperty-50094484.js +0 -101
  151. package/dist/esm/events-6c3a7a63.js +0 -467
  152. package/dist/esm/index-e7075467.js +0 -897
  153. /package/dist/cjs/{ADInfeed-f316b66a.js → ADInfeed-ef933a08.js} +0 -0
  154. /package/dist/cjs/{ADlgInfeed-2003306e.js → ADlgInfeed-0e931f24.js} +0 -0
  155. /package/dist/esm/{ADInfeed-777bb0b3.js → ADInfeed-f946441a.js} +0 -0
  156. /package/dist/esm/{ADlgInfeed-e7fd1bb6.js → ADlgInfeed-012e6f16.js} +0 -0
@@ -3,7 +3,7 @@ import React__default from 'react';
3
3
  import QueueDeckExpanded from './QueueDeckExpanded.js';
4
4
  import Breadcrumbs from './Breadcrumbs.js';
5
5
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
6
- import { g as getSerializers } from './index-076baa11.js';
6
+ import { g as getSerializers } from './index-4d0371dc.js';
7
7
  import './_commonjsHelpers-0c4b6f40.js';
8
8
  import './core.get-iterator-method-ea258bb1.js';
9
9
  import './_object-pie-133f504a.js';
@@ -18,14 +18,13 @@ import './index.es-a6137319.js';
18
18
  import './moment-bc12cb97.js';
19
19
  import './visibility-sensor-72fd8f8b.js';
20
20
  import 'react-dom';
21
- import './index-f0fc23eb.js';
22
- import './events-6c3a7a63.js';
21
+ import './index-5cc7b406.js';
23
22
  import 'prop-types';
24
23
  import 'next/router';
25
24
  import './index-755f2cc2.js';
26
25
  import './main-9f6806ea.js';
27
26
  import './entities-6d9154b4.js';
28
- import './ADInfeed-777bb0b3.js';
27
+ import './ADInfeed-f946441a.js';
29
28
  import 'react-bootstrap/Card';
30
29
  import './AdSlot.js';
31
30
  import './debounce-533d9748.js';
@@ -38,12 +37,12 @@ import './_library-528f1934.js';
38
37
  import './Segment.js';
39
38
  import './AuthorComponent-11adff02.js';
40
39
  import './lodash-f97fd99a.js';
41
- import './ADlgInfeed-e7fd1bb6.js';
40
+ import './ADlgInfeed-012e6f16.js';
42
41
  import './getContentCategory-15dcc413.js';
43
42
  import './timeDifferenceCalc.js';
44
43
  import 'react-bootstrap/Breadcrumb';
45
44
  import './index-c7e2ac95.js';
46
- import './empty-a8042e3c.js';
45
+ import './util-8ed16d48.js';
47
46
  import './urlForFile-b69adffc.js';
48
47
  import './typeof-e9fc0c5d.js';
49
48
  import './_is-array-8d21b9e3.js';
@@ -51,7 +50,7 @@ import './brightcove-react-player-loader.es-57a70a56.js';
51
50
  import 'react-bootstrap/Modal';
52
51
  import 'react-bootstrap/Button';
53
52
  import 'react-bootstrap/Form';
54
- import './index-e7075467.js';
53
+ import 'react-ga';
55
54
  import './GroupDeck.js';
56
55
  import './smoothscroll-fa4e3f8c.js';
57
56
  import './SocialShare.js';
@@ -72,35 +71,35 @@ import 'react-bootstrap/Tooltip';
72
71
  import 'react-bootstrap/Popover';
73
72
  import './checkSisterSite-baa4fb6b.js';
74
73
 
75
- /* usage
76
- import Settings, { Ads } from '../../../../settings'
77
- import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
78
- import client from '../../../../client'
79
- import moment from 'moment'
80
- import Shell from '../../../../components/2.0/Shell'
81
- import { pageview } from '../../../../utilities/gtag'
82
-
83
- const Issue = (props) => {
84
- const { pubIssue, cache } = props
85
- const targeting = {
86
- content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
87
- document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
88
- }
89
- return (
90
- <Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
91
- <IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
92
- </Shell>
93
- )
94
- }
95
-
96
- Issue.getInitialProps = async (ctx) => {
97
- const { query } = ctx
98
- const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
99
- )
100
- return { pubIssue }
101
- }
102
-
103
- export default Issue
74
+ /* usage
75
+ import Settings, { Ads } from '../../../../settings'
76
+ import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
77
+ import client from '../../../../client'
78
+ import moment from 'moment'
79
+ import Shell from '../../../../components/2.0/Shell'
80
+ import { pageview } from '../../../../utilities/gtag'
81
+
82
+ const Issue = (props) => {
83
+ const { pubIssue, cache } = props
84
+ const targeting = {
85
+ content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
86
+ document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
87
+ }
88
+ return (
89
+ <Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
90
+ <IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
91
+ </Shell>
92
+ )
93
+ }
94
+
95
+ Issue.getInitialProps = async (ctx) => {
96
+ const { query } = ctx
97
+ const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
98
+ )
99
+ return { pubIssue }
100
+ }
101
+
102
+ export default Issue
104
103
  */
105
104
 
106
105
  var IssueLanding = function IssueLanding(props) {
@@ -1,25 +1,25 @@
1
1
  var KMTracker = function KMTracker(props) {
2
- var id = props.id;
2
+ var id = props.id;
3
3
 
4
- if (document && id) {
4
+ if (document && id) {
5
5
  (function () {
6
- var ecnJquery = document.createElement('script');
6
+ var ecnJquery = document.createElement('script');
7
7
 
8
- ecnJquery.type = 'text/javascript';
9
- ecnJquery.async = true;
10
- ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
8
+ ecnJquery.type = 'text/javascript';
9
+ ecnJquery.async = true;
10
+ ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
11
11
 
12
- var ecnScript = document.createElement('script');
12
+ var ecnScript = document.createElement('script');
13
13
 
14
- ecnScript.type = 'text/javascript';
15
- ecnScript.async = true;
16
- ecnScript.id = 'km-tracker';
17
- ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
14
+ ecnScript.type = 'text/javascript';
15
+ ecnScript.async = true;
16
+ ecnScript.id = 'km-tracker';
17
+ ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
18
18
 
19
- document.head.appendChild(ecnJquery);
20
- document.head.appendChild(ecnScript);
21
- })();
22
- }
19
+ document.head.appendChild(ecnJquery);
20
+ document.head.appendChild(ecnScript);
21
+ })();
22
+ }
23
23
  };
24
24
 
25
25
  export { KMTracker as default };
@@ -11,8 +11,7 @@ import './AdSlot.js';
11
11
  import './extends-6d8e3924.js';
12
12
  import './_object-pie-133f504a.js';
13
13
  import 'prop-types';
14
- import './index-f0fc23eb.js';
15
- import './events-6c3a7a63.js';
14
+ import './index-5cc7b406.js';
16
15
  import './debounce-533d9748.js';
17
16
  import './isSymbol-a7e9aafe.js';
18
17
  import './toNumber-5aeba6e7.js';
@@ -3,7 +3,7 @@ import { a as _Promise } from './asyncToGenerator-958ef5fc.js';
3
3
  import { _ as _extends } from './extends-6d8e3924.js';
4
4
  import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-a6ba2ec4.js';
5
5
  import React__default from 'react';
6
- import { l as lib_3 } from './index-f0fc23eb.js';
6
+ import { l as lib_3 } from './index-5cc7b406.js';
7
7
  import Container from 'react-bootstrap/Container';
8
8
  import 'react-bootstrap/Row';
9
9
  import 'react-bootstrap/Col';
@@ -16,8 +16,8 @@ import { I as InfiniteScroll } from './index.es-a6137319.js';
16
16
  import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
17
17
  import './slicedToArray-6ebcbfea.js';
18
18
  import './index-3f5c03b2.js';
19
- import { A as ADlgInfeed } from './ADlgInfeed-e7fd1bb6.js';
20
- import { A as ADInfeed } from './ADInfeed-777bb0b3.js';
19
+ import { A as ADlgInfeed } from './ADlgInfeed-012e6f16.js';
20
+ import { A as ADInfeed } from './ADInfeed-f946441a.js';
21
21
  import './main-9f6806ea.js';
22
22
  import './_commonjsHelpers-0c4b6f40.js';
23
23
  import './core.get-iterator-method-ea258bb1.js';
@@ -29,7 +29,6 @@ import './_object-sap-7cee6f84.js';
29
29
  import './define-property-5f1bda73.js';
30
30
  import './typeof-e9fc0c5d.js';
31
31
  import './_is-array-8d21b9e3.js';
32
- import './events-6c3a7a63.js';
33
32
  import 'prop-types';
34
33
  import './isSymbol-a7e9aafe.js';
35
34
  import './toNumber-5aeba6e7.js';
@@ -223,14 +222,14 @@ var MasterDeck = function (_React$Component) {
223
222
  }
224
223
 
225
224
  // please leave this for later debug purpose : Yong Jun.
226
- /* console.log('page change reported', {
227
- currentPage: currentPage,
228
- pageNumber: pageNumber,
229
- pathname: pathname,
230
- path: path,
231
- newPath: newPath,
232
- firstPage: pageNumber === 1,
233
- queryString: queryString
225
+ /* console.log('page change reported', {
226
+ currentPage: currentPage,
227
+ pageNumber: pageNumber,
228
+ pathname: pathname,
229
+ path: path,
230
+ newPath: newPath,
231
+ firstPage: pageNumber === 1,
232
+ queryString: queryString
234
233
  }) */
235
234
 
236
235
  if (pageview) {
@@ -4,14 +4,14 @@ import { _ as _extends } from './extends-6d8e3924.js';
4
4
  import { _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
5
5
  import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, c as _Object$getPrototypeOf, d as _createClass } from './inherits-a6ba2ec4.js';
6
6
  import React__default from 'react';
7
- import { l as lib_3 } from './index-f0fc23eb.js';
7
+ import { l as lib_3 } from './index-5cc7b406.js';
8
8
  import Container from 'react-bootstrap/Container';
9
9
  import Spinner from 'react-bootstrap/Spinner';
10
10
  import { withRouter } from 'next/router';
11
11
  import { l as lodash } from './lodash-f97fd99a.js';
12
12
  import { m as main_43 } from './main-9f6806ea.js';
13
- import { A as ADlgInfeed } from './ADlgInfeed-e7fd1bb6.js';
14
- import { A as ADInfeed } from './ADInfeed-777bb0b3.js';
13
+ import { A as ADlgInfeed } from './ADlgInfeed-012e6f16.js';
14
+ import { A as ADInfeed } from './ADInfeed-f946441a.js';
15
15
  import { P as Pagination } from './Pagination-9fe9f61d.js';
16
16
  import './_commonjsHelpers-0c4b6f40.js';
17
17
  import './core.get-iterator-method-ea258bb1.js';
@@ -23,7 +23,6 @@ import './_object-sap-7cee6f84.js';
23
23
  import './define-property-5f1bda73.js';
24
24
  import './typeof-e9fc0c5d.js';
25
25
  import './_is-array-8d21b9e3.js';
26
- import './events-6c3a7a63.js';
27
26
  import 'prop-types';
28
27
  import './slicedToArray-6ebcbfea.js';
29
28
  import 'react-bootstrap/Card';
@@ -107,14 +106,14 @@ var MasterDeck = function (_React$Component) {
107
106
  }
108
107
 
109
108
  // please leave this for later debug purpose : Yong Jun.
110
- /* console.log('page change reported', {
111
- currentPage: currentPage,
112
- pageNumber: pageNumber,
113
- pathname: pathname,
114
- path: path,
115
- newPath: newPath,
116
- firstPage: pageNumber === 1,
117
- queryString: queryString
109
+ /* console.log('page change reported', {
110
+ currentPage: currentPage,
111
+ pageNumber: pageNumber,
112
+ pathname: pathname,
113
+ path: path,
114
+ newPath: newPath,
115
+ firstPage: pageNumber === 1,
116
+ queryString: queryString
118
117
  }) */
119
118
 
120
119
  if (pageview) {