@mjhls/mjh-framework 1.0.222 → 1.0.223
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 +174 -174
- package/dist/cjs/DeckContent.js +11 -11
- package/dist/cjs/DeckQueue.js +3 -3
- package/dist/cjs/{Dfp-c4f1f12a.js → Dfp-8b6f25fe.js} +1 -1
- package/dist/cjs/{GridContent-1575c8db.js → GridContent-8b0ebfec.js} +4 -4
- package/dist/cjs/GridContent.js +4 -4
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/MasterDeck.js +11 -11
- package/dist/cjs/{Normal-2886d08f.js → Normal-78631b6e.js} +30 -30
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +3 -3
- package/dist/cjs/{TaxonomyCard-d97685e2.js → TaxonomyCard-f24d8ec9.js} +1 -1
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +2 -2
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +2 -2
- package/dist/cjs/{YoutubeGroup-ad994d02.js → YoutubeGroup-d2d9e57c.js} +4 -4
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/{index-a4c53ff4.js → index-eb596973.js} +18 -18
- package/dist/cjs/index.js +74 -74
- package/dist/cjs/{main-58839f4e.js → main-c1bd47fe.js} +6 -6
- package/dist/cjs/{visibility-sensor-bea3105d.js → visibility-sensor-59b2685c.js} +2501 -1437
- package/dist/esm/DeckContent.js +11 -11
- package/dist/esm/DeckQueue.js +3 -3
- package/dist/esm/{Dfp-6731ac01.js → Dfp-6c8d69e6.js} +1 -1
- package/dist/esm/{GridContent-e5cdc9da.js → GridContent-0777cc42.js} +4 -4
- package/dist/esm/GridContent.js +4 -4
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/MasterDeck.js +11 -11
- package/dist/esm/{Normal-4f059950.js → Normal-7d33c7bf.js} +30 -30
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +3 -3
- package/dist/esm/{TaxonomyCard-f9c93953.js → TaxonomyCard-ca8c7c8a.js} +1 -1
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +2 -2
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/VideoSeriesListing.js +2 -2
- package/dist/esm/{YoutubeGroup-1368335c.js → YoutubeGroup-d3b92eb5.js} +4 -4
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/{index-ca4ff5cb.js → index-b7bbf1d4.js} +18 -18
- package/dist/esm/index.js +77 -77
- package/dist/esm/{main-dea495b7.js → main-2504c03f.js} +6 -6
- package/dist/esm/{visibility-sensor-675d3fa1.js → visibility-sensor-61158020.js} +2501 -1437
- package/package.json +93 -93
package/dist/esm/index.js
CHANGED
|
@@ -6,30 +6,30 @@ import 'react-bootstrap/Container';
|
|
|
6
6
|
import 'react-bootstrap/Row';
|
|
7
7
|
import 'react-bootstrap/Col';
|
|
8
8
|
import 'react-bootstrap/Card';
|
|
9
|
-
import { m as moment, I as InfiniteScroll } from './visibility-sensor-
|
|
9
|
+
import { m as moment, I as InfiniteScroll } from './visibility-sensor-61158020.js';
|
|
10
10
|
import Link from 'next/link';
|
|
11
11
|
import Router, { useRouter } from 'next/router';
|
|
12
12
|
import './debounce-dc0c02e5.js';
|
|
13
13
|
import 'react-dom';
|
|
14
|
-
import { i as imageUrlBuilder } from './index-
|
|
14
|
+
import { i as imageUrlBuilder } from './index-b7bbf1d4.js';
|
|
15
15
|
import './index-3c1ee9ab.js';
|
|
16
|
-
import { m as main_35, a as main_36 } from './main-
|
|
16
|
+
import { m as main_35, a as main_36 } from './main-2504c03f.js';
|
|
17
17
|
import { h as html_decode_1, c as clean_html_1 } from './entities-e85d3a4a.js';
|
|
18
18
|
import { s as slicedToArray, _ as _extends$2, t as toConsumableArray, i as inherits$2, c as createClass, a as classCallCheck, p as possibleConstructorReturn } from './_babelHelpers-67c05996.js';
|
|
19
19
|
import { D as DFPAdSlot } from './AdSlot-b67f8534.js';
|
|
20
20
|
export { D as AdSlot } from './AdSlot-b67f8534.js';
|
|
21
21
|
export { default as DeckContent } from './DeckContent.js';
|
|
22
22
|
import './get-b074314b.js';
|
|
23
|
-
export { A as AD, G as GridContent } from './GridContent-
|
|
23
|
+
export { A as AD, G as GridContent } from './GridContent-0777cc42.js';
|
|
24
24
|
export { default as DeckQueue } from './DeckQueue.js';
|
|
25
25
|
import 'react-bootstrap/Media';
|
|
26
26
|
export { default as ThumbnailCard } from './ThumbnailCard.js';
|
|
27
|
-
import { B as BlockContent } from './TaxonomyCard-
|
|
28
|
-
export { T as TaxonomyCard } from './TaxonomyCard-
|
|
27
|
+
import { B as BlockContent } from './TaxonomyCard-ca8c7c8a.js';
|
|
28
|
+
export { T as TaxonomyCard } from './TaxonomyCard-ca8c7c8a.js';
|
|
29
29
|
import GroupDeck from './GroupDeck.js';
|
|
30
30
|
export { default as GroupDeck } from './GroupDeck.js';
|
|
31
|
-
import { g as getYoutubeId } from './YoutubeGroup-
|
|
32
|
-
export { Y as YoutubeGroup } from './YoutubeGroup-
|
|
31
|
+
import { g as getYoutubeId } from './YoutubeGroup-d3b92eb5.js';
|
|
32
|
+
export { Y as YoutubeGroup } from './YoutubeGroup-d3b92eb5.js';
|
|
33
33
|
import { Figure, Carousel, Table, Button, ProgressBar, Card } from 'react-bootstrap';
|
|
34
34
|
export { default as QueueDeckExpanded } from './QueueDeckExpanded.js';
|
|
35
35
|
import { I as IoMdArrowDropdown } from './index.esm-536609db.js';
|
|
@@ -40,8 +40,8 @@ export { default as PublicationDeck } from './PublicationDeck.js';
|
|
|
40
40
|
export { default as IssueDeck } from './IssueDeck.js';
|
|
41
41
|
import 'react-bootstrap/Badge';
|
|
42
42
|
export { default as IssueContentDeck } from './IssueContentDeck.js';
|
|
43
|
-
import { M as MdPictureAsPdf, T as TemplateNormal } from './Normal-
|
|
44
|
-
export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-
|
|
43
|
+
import { M as MdPictureAsPdf, T as TemplateNormal } from './Normal-7d33c7bf.js';
|
|
44
|
+
export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-7d33c7bf.js';
|
|
45
45
|
import 'react-bootstrap/ListGroup';
|
|
46
46
|
import Head from 'next/head';
|
|
47
47
|
import Accordion from 'react-bootstrap/Accordion';
|
|
@@ -11201,16 +11201,16 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
11201
11201
|
_ref$className = _ref.className,
|
|
11202
11202
|
className = _ref$className === undefined ? '' : _ref$className;
|
|
11203
11203
|
|
|
11204
|
-
/*
|
|
11205
|
-
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
11206
|
-
example:
|
|
11207
|
-
<RelatedTopicDropdown
|
|
11208
|
-
page='/clinical'
|
|
11209
|
-
exclude="clinical"
|
|
11210
|
-
className='mb-3'
|
|
11211
|
-
parentTaxonomy={props.parentTaxonomy}
|
|
11212
|
-
subTaxonomies={props.subTaxonomies}
|
|
11213
|
-
/>
|
|
11204
|
+
/*
|
|
11205
|
+
Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
|
|
11206
|
+
example:
|
|
11207
|
+
<RelatedTopicDropdown
|
|
11208
|
+
page='/clinical'
|
|
11209
|
+
exclude="clinical"
|
|
11210
|
+
className='mb-3'
|
|
11211
|
+
parentTaxonomy={props.parentTaxonomy}
|
|
11212
|
+
subTaxonomies={props.subTaxonomies}
|
|
11213
|
+
/>
|
|
11214
11214
|
*/
|
|
11215
11215
|
if (subTaxonomies.length === 0 && parentTaxonomy) {
|
|
11216
11216
|
if (parentTaxonomy.identifier == exclude) {
|
|
@@ -11248,19 +11248,19 @@ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
|
|
|
11248
11248
|
}
|
|
11249
11249
|
};
|
|
11250
11250
|
|
|
11251
|
-
/*
|
|
11252
|
-
This dropdown is used inside Article body to display related content placement pages
|
|
11253
|
-
sample usage: <ArticleDetailDropdown contentPlacement={content_placement} exclude={['News',]} />
|
|
11254
|
-
|
|
11255
|
-
in article query, need to add '...' to content_placement to retreive additional info needed
|
|
11256
|
-
|
|
11257
|
-
'content_placement': taxonomyMapping[]-> {
|
|
11258
|
-
...,
|
|
11259
|
-
'ancestor': parent->parent->identifier,
|
|
11260
|
-
'parent': parent->identifier,
|
|
11261
|
-
'path': identifier
|
|
11262
|
-
}
|
|
11263
|
-
|
|
11251
|
+
/*
|
|
11252
|
+
This dropdown is used inside Article body to display related content placement pages
|
|
11253
|
+
sample usage: <ArticleDetailDropdown contentPlacement={content_placement} exclude={['News',]} />
|
|
11254
|
+
|
|
11255
|
+
in article query, need to add '...' to content_placement to retreive additional info needed
|
|
11256
|
+
|
|
11257
|
+
'content_placement': taxonomyMapping[]-> {
|
|
11258
|
+
...,
|
|
11259
|
+
'ancestor': parent->parent->identifier,
|
|
11260
|
+
'parent': parent->identifier,
|
|
11261
|
+
'path': identifier
|
|
11262
|
+
}
|
|
11263
|
+
|
|
11264
11264
|
*/
|
|
11265
11265
|
|
|
11266
11266
|
var ArticleDetailDropdown = function ArticleDetailDropdown(props) {
|
|
@@ -11931,34 +11931,34 @@ var YahooHero = function YahooHero(props) {
|
|
|
11931
11931
|
);
|
|
11932
11932
|
};
|
|
11933
11933
|
|
|
11934
|
-
/*
|
|
11935
|
-
Sample query
|
|
11936
|
-
let references = ''
|
|
11937
|
-
if(article.taxonomyMapping.length > 0){
|
|
11938
|
-
article.taxonomyMapping.forEach((ref, index) => {
|
|
11939
|
-
references = references + `references('${ref._ref}') `
|
|
11940
|
-
if(index+1 !== article.taxonomyMapping.length){
|
|
11941
|
-
references = references + ` && `
|
|
11942
|
-
}
|
|
11943
|
-
})
|
|
11944
|
-
}
|
|
11945
|
-
|
|
11946
|
-
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] {
|
|
11947
|
-
...,
|
|
11948
|
-
title,
|
|
11949
|
-
summary,
|
|
11950
|
-
thumbnail,
|
|
11951
|
-
url,
|
|
11952
|
-
published,
|
|
11953
|
-
authorMapping[]->,
|
|
11954
|
-
contentCategory->
|
|
11955
|
-
}`
|
|
11956
|
-
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
11957
|
-
|
|
11958
|
-
Sample usage
|
|
11959
|
-
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
11960
|
-
|
|
11961
|
-
|
|
11934
|
+
/*
|
|
11935
|
+
Sample query
|
|
11936
|
+
let references = ''
|
|
11937
|
+
if(article.taxonomyMapping.length > 0){
|
|
11938
|
+
article.taxonomyMapping.forEach((ref, index) => {
|
|
11939
|
+
references = references + `references('${ref._ref}') `
|
|
11940
|
+
if(index+1 !== article.taxonomyMapping.length){
|
|
11941
|
+
references = references + ` && `
|
|
11942
|
+
}
|
|
11943
|
+
})
|
|
11944
|
+
}
|
|
11945
|
+
|
|
11946
|
+
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] {
|
|
11947
|
+
...,
|
|
11948
|
+
title,
|
|
11949
|
+
summary,
|
|
11950
|
+
thumbnail,
|
|
11951
|
+
url,
|
|
11952
|
+
published,
|
|
11953
|
+
authorMapping[]->,
|
|
11954
|
+
contentCategory->
|
|
11955
|
+
}`
|
|
11956
|
+
const relatedArticles = await client.fetch(relatedArticlesQuery)
|
|
11957
|
+
|
|
11958
|
+
Sample usage
|
|
11959
|
+
<RelatedContent dataRecord={props.relatedArticles} client={client} showAuthor showPublished reverse/>
|
|
11960
|
+
|
|
11961
|
+
|
|
11962
11962
|
*/
|
|
11963
11963
|
var RelatedContent = function RelatedContent(props) {
|
|
11964
11964
|
var client = props.client,
|
|
@@ -12025,21 +12025,21 @@ var RelatedContent = function RelatedContent(props) {
|
|
|
12025
12025
|
);
|
|
12026
12026
|
};
|
|
12027
12027
|
|
|
12028
|
-
/*
|
|
12029
|
-
Example usage - targetedonc.com/latest-conference
|
|
12030
|
-
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
12031
|
-
...,
|
|
12032
|
-
title,
|
|
12033
|
-
summary,
|
|
12034
|
-
thumbnail,
|
|
12035
|
-
url,
|
|
12036
|
-
published,
|
|
12037
|
-
documentGroup->,
|
|
12038
|
-
contentCategory->,
|
|
12039
|
-
'pageNumber': ${currentPage}
|
|
12040
|
-
}`
|
|
12041
|
-
|
|
12042
|
-
const posts = await client.fetch(query, params)
|
|
12028
|
+
/*
|
|
12029
|
+
Example usage - targetedonc.com/latest-conference
|
|
12030
|
+
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
12031
|
+
...,
|
|
12032
|
+
title,
|
|
12033
|
+
summary,
|
|
12034
|
+
thumbnail,
|
|
12035
|
+
url,
|
|
12036
|
+
published,
|
|
12037
|
+
documentGroup->,
|
|
12038
|
+
contentCategory->,
|
|
12039
|
+
'pageNumber': ${currentPage}
|
|
12040
|
+
}`
|
|
12041
|
+
|
|
12042
|
+
const posts = await client.fetch(query, params)
|
|
12043
12043
|
*/
|
|
12044
12044
|
|
|
12045
12045
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -12316,7 +12316,7 @@ var Article = function Article(props) {
|
|
|
12316
12316
|
renderIsiContent(props.article)
|
|
12317
12317
|
)
|
|
12318
12318
|
),
|
|
12319
|
-
|
|
12319
|
+
main_36 && React__default.createElement('hr', { className: 'add-seperater' }),
|
|
12320
12320
|
main_36 && props.article.Ads.map(function (ad, index) {
|
|
12321
12321
|
return React__default.createElement(
|
|
12322
12322
|
'div',
|
|
@@ -48,7 +48,7 @@ var getNavigatorInstance = function getNavigatorInstance() {
|
|
|
48
48
|
};
|
|
49
49
|
var isIOS13Check = function isIOS13Check(type) {
|
|
50
50
|
var nav = getNavigatorInstance();
|
|
51
|
-
return nav && (nav.platform.
|
|
51
|
+
return nav && (nav.platform.indexOf(type) !== -1 || nav.platform === 'MacIntel' && nav.maxTouchPoints > 1 && !window.MSStream);
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
function _typeof(obj) {
|
|
@@ -444,7 +444,7 @@ var isIEType = function isIEType() {
|
|
|
444
444
|
var isElectronType = function isElectronType() {
|
|
445
445
|
var nav = getNavigatorInstance();
|
|
446
446
|
var ua = nav && nav.userAgent.toLowerCase();
|
|
447
|
-
return typeof ua === 'string' ? ua
|
|
447
|
+
return typeof ua === 'string' ? /electron/.test(ua) : false;
|
|
448
448
|
};
|
|
449
449
|
|
|
450
450
|
var getIOS13 = function getIOS13() {
|
|
@@ -511,15 +511,15 @@ var getDeviceType = function getDeviceType() {
|
|
|
511
511
|
var isSmartTV = isSmartTVType();
|
|
512
512
|
var isConsole = isConsoleType();
|
|
513
513
|
var isWearable = isWearableType();
|
|
514
|
-
var isMobileSafari = isMobileSafariType();
|
|
514
|
+
var isMobileSafari = isMobileSafariType() || getIPad13();
|
|
515
515
|
var isChromium = isChromiumType();
|
|
516
|
-
var isMobile = isMobileAndTabletType();
|
|
516
|
+
var isMobile = isMobileAndTabletType() || getIPad13();
|
|
517
517
|
var isMobileOnly = isMobileType();
|
|
518
|
-
var isTablet = isTabletType();
|
|
518
|
+
var isTablet = isTabletType() || getIPad13();
|
|
519
519
|
var isBrowser = isBrowserType();
|
|
520
520
|
var isAndroid = isAndroidType();
|
|
521
521
|
var isWinPhone = isWinPhoneType();
|
|
522
|
-
var isIOS = isIOSType();
|
|
522
|
+
var isIOS = isIOSType() || getIPad13();
|
|
523
523
|
var isChrome = isChromeType();
|
|
524
524
|
var isFirefox = isFirefoxType();
|
|
525
525
|
var isSafari = isSafariType();
|