@mjhls/mjh-framework 1.0.434 → 1.0.436
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 +1 -1
- package/dist/cjs/QueueDeckExpanded.js +2 -2
- package/dist/cjs/index.js +6 -6
- package/dist/esm/QueueDeckExpanded.js +2 -2
- package/dist/esm/index.js +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -382,7 +382,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
382
382
|
return renderMobileAd(index, numberOfItemsBeforeAd, rightItems);
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
-
if (index + 1 > heroContent + featureCount) {
|
|
385
|
+
if (brandInsightAd ? index > heroContent + featureCount : index + 1 > heroContent + featureCount) {
|
|
386
386
|
return React__default.createElement(
|
|
387
387
|
visibilitySensor.VisibilitySensor,
|
|
388
388
|
{
|
|
@@ -497,7 +497,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
497
497
|
React__default.createElement(
|
|
498
498
|
'style',
|
|
499
499
|
{ jsx: 'true' },
|
|
500
|
-
'\n .sanityDisplayLabel {\n margin: .5rem 0;\n border: 1px solid black;\n width: fit-content;\n padding: 5px;\n }\n .feature-media > .media-body {\n -webkit-box-flex: none;\n -ms-flex: none;\n flex: none;\n }\n .img-wrapper img {\n max-height: 240px;\n height: auto;\n width: 100%;\n object-fit: contain;\n }\n .feature-wrapper {\n height: 100%;\n width: 100%;\n }\n .feature-wrapper img {\n width: 100%;\n margin-bottom: 1em;\n }\n @media only screen and (min-width: 768px) {\n .img-wrapper > img {\n padding-right: 1em;\n }\n }\n @media only screen and (max-width: 767px) {\n .img-wrapper {\n width: 100%;\n }\n .img-wrapper img {\n padding-bottom: 1em;\n }\n .media {\n flex-direction: column !important;\n }\n }\n '
|
|
500
|
+
'\n .sanityDisplayLabel {\n margin: 0.5rem 0;\n border: 1px solid black;\n width: fit-content;\n padding: 5px;\n }\n .feature-media > .media-body {\n -webkit-box-flex: none;\n -ms-flex: none;\n flex: none;\n }\n .img-wrapper img {\n max-height: 240px;\n height: auto;\n width: 100%;\n object-fit: contain;\n }\n .feature-wrapper {\n height: 100%;\n width: 100%;\n }\n .feature-wrapper img {\n width: 100%;\n margin-bottom: 1em;\n }\n @media only screen and (min-width: 768px) {\n .img-wrapper > img {\n padding-right: 1em;\n }\n }\n @media only screen and (max-width: 767px) {\n .img-wrapper {\n width: 100%;\n }\n .img-wrapper img {\n padding-bottom: 1em;\n }\n .media {\n flex-direction: column !important;\n }\n }\n '
|
|
501
501
|
)
|
|
502
502
|
);
|
|
503
503
|
};
|
package/dist/cjs/index.js
CHANGED
|
@@ -17779,30 +17779,30 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
17779
17779
|
if (visibility === 'top') {
|
|
17780
17780
|
// router.push('/view/[url]', newPath, { shallow: true })
|
|
17781
17781
|
window.history.pushState({ page: path }, meta.shareTitle, newPath);
|
|
17782
|
+
changeMeta(meta);
|
|
17782
17783
|
if (props.pageview) {
|
|
17783
17784
|
props.pageview(newPath);
|
|
17784
17785
|
}
|
|
17785
17786
|
refreshAD(path);
|
|
17786
|
-
changeMeta(meta);
|
|
17787
17787
|
}
|
|
17788
17788
|
} else {
|
|
17789
17789
|
if (visibility === 'bottom') {
|
|
17790
17790
|
// router.push('/view/[url]', newPath, { shallow: true })
|
|
17791
17791
|
window.history.pushState({ page: path }, meta.shareTitle, newPath);
|
|
17792
|
+
changeMeta(meta);
|
|
17792
17793
|
if (props.pageview) {
|
|
17793
17794
|
props.pageview(newPath);
|
|
17794
17795
|
}
|
|
17795
17796
|
refreshAD(path);
|
|
17796
|
-
changeMeta(meta);
|
|
17797
17797
|
}
|
|
17798
17798
|
}
|
|
17799
17799
|
if (visibility === 'small-top') {
|
|
17800
17800
|
window.history.pushState({ page: path }, meta.shareTitle, newPath);
|
|
17801
|
+
changeMeta(meta);
|
|
17801
17802
|
if (props.pageview) {
|
|
17802
17803
|
props.pageview(newPath);
|
|
17803
17804
|
}
|
|
17804
17805
|
refreshAD(path);
|
|
17805
|
-
changeMeta(meta);
|
|
17806
17806
|
}
|
|
17807
17807
|
}
|
|
17808
17808
|
};
|
|
@@ -22863,30 +22863,30 @@ var ArticleQueue$1 = function ArticleQueue(props) {
|
|
|
22863
22863
|
if (visibility === 'top') {
|
|
22864
22864
|
// router.push('/view/[url]', newPath, { shallow: true })
|
|
22865
22865
|
window.history.pushState({ page: path }, meta.shareTitle, newPath);
|
|
22866
|
+
changeMeta(meta);
|
|
22866
22867
|
if (props.pageview) {
|
|
22867
22868
|
props.pageview(newPath);
|
|
22868
22869
|
}
|
|
22869
22870
|
refreshAD(path);
|
|
22870
|
-
changeMeta(meta);
|
|
22871
22871
|
}
|
|
22872
22872
|
} else {
|
|
22873
22873
|
if (visibility === 'bottom') {
|
|
22874
22874
|
// router.push('/view/[url]', newPath, { shallow: true })
|
|
22875
22875
|
window.history.pushState({ page: path }, meta.shareTitle, newPath);
|
|
22876
|
+
changeMeta(meta);
|
|
22876
22877
|
if (props.pageview) {
|
|
22877
22878
|
props.pageview(newPath);
|
|
22878
22879
|
}
|
|
22879
22880
|
refreshAD(path);
|
|
22880
|
-
changeMeta(meta);
|
|
22881
22881
|
}
|
|
22882
22882
|
}
|
|
22883
22883
|
if (visibility === 'small-top') {
|
|
22884
22884
|
window.history.pushState({ page: path }, meta.shareTitle, newPath);
|
|
22885
|
+
changeMeta(meta);
|
|
22885
22886
|
if (props.pageview) {
|
|
22886
22887
|
props.pageview(newPath);
|
|
22887
22888
|
}
|
|
22888
22889
|
refreshAD(path);
|
|
22889
|
-
changeMeta(meta);
|
|
22890
22890
|
}
|
|
22891
22891
|
}
|
|
22892
22892
|
};
|
|
@@ -376,7 +376,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
376
376
|
return renderMobileAd(index, numberOfItemsBeforeAd, rightItems);
|
|
377
377
|
}
|
|
378
378
|
|
|
379
|
-
if (index + 1 > heroContent + featureCount) {
|
|
379
|
+
if (brandInsightAd ? index > heroContent + featureCount : index + 1 > heroContent + featureCount) {
|
|
380
380
|
return React__default.createElement(
|
|
381
381
|
VisibilitySensor,
|
|
382
382
|
{
|
|
@@ -491,7 +491,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
491
491
|
React__default.createElement(
|
|
492
492
|
'style',
|
|
493
493
|
{ jsx: 'true' },
|
|
494
|
-
'\n .sanityDisplayLabel {\n margin: .5rem 0;\n border: 1px solid black;\n width: fit-content;\n padding: 5px;\n }\n .feature-media > .media-body {\n -webkit-box-flex: none;\n -ms-flex: none;\n flex: none;\n }\n .img-wrapper img {\n max-height: 240px;\n height: auto;\n width: 100%;\n object-fit: contain;\n }\n .feature-wrapper {\n height: 100%;\n width: 100%;\n }\n .feature-wrapper img {\n width: 100%;\n margin-bottom: 1em;\n }\n @media only screen and (min-width: 768px) {\n .img-wrapper > img {\n padding-right: 1em;\n }\n }\n @media only screen and (max-width: 767px) {\n .img-wrapper {\n width: 100%;\n }\n .img-wrapper img {\n padding-bottom: 1em;\n }\n .media {\n flex-direction: column !important;\n }\n }\n '
|
|
494
|
+
'\n .sanityDisplayLabel {\n margin: 0.5rem 0;\n border: 1px solid black;\n width: fit-content;\n padding: 5px;\n }\n .feature-media > .media-body {\n -webkit-box-flex: none;\n -ms-flex: none;\n flex: none;\n }\n .img-wrapper img {\n max-height: 240px;\n height: auto;\n width: 100%;\n object-fit: contain;\n }\n .feature-wrapper {\n height: 100%;\n width: 100%;\n }\n .feature-wrapper img {\n width: 100%;\n margin-bottom: 1em;\n }\n @media only screen and (min-width: 768px) {\n .img-wrapper > img {\n padding-right: 1em;\n }\n }\n @media only screen and (max-width: 767px) {\n .img-wrapper {\n width: 100%;\n }\n .img-wrapper img {\n padding-bottom: 1em;\n }\n .media {\n flex-direction: column !important;\n }\n }\n '
|
|
495
495
|
)
|
|
496
496
|
);
|
|
497
497
|
};
|
package/dist/esm/index.js
CHANGED
|
@@ -17777,30 +17777,30 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
17777
17777
|
if (visibility === 'top') {
|
|
17778
17778
|
// router.push('/view/[url]', newPath, { shallow: true })
|
|
17779
17779
|
window.history.pushState({ page: path }, meta.shareTitle, newPath);
|
|
17780
|
+
changeMeta(meta);
|
|
17780
17781
|
if (props.pageview) {
|
|
17781
17782
|
props.pageview(newPath);
|
|
17782
17783
|
}
|
|
17783
17784
|
refreshAD(path);
|
|
17784
|
-
changeMeta(meta);
|
|
17785
17785
|
}
|
|
17786
17786
|
} else {
|
|
17787
17787
|
if (visibility === 'bottom') {
|
|
17788
17788
|
// router.push('/view/[url]', newPath, { shallow: true })
|
|
17789
17789
|
window.history.pushState({ page: path }, meta.shareTitle, newPath);
|
|
17790
|
+
changeMeta(meta);
|
|
17790
17791
|
if (props.pageview) {
|
|
17791
17792
|
props.pageview(newPath);
|
|
17792
17793
|
}
|
|
17793
17794
|
refreshAD(path);
|
|
17794
|
-
changeMeta(meta);
|
|
17795
17795
|
}
|
|
17796
17796
|
}
|
|
17797
17797
|
if (visibility === 'small-top') {
|
|
17798
17798
|
window.history.pushState({ page: path }, meta.shareTitle, newPath);
|
|
17799
|
+
changeMeta(meta);
|
|
17799
17800
|
if (props.pageview) {
|
|
17800
17801
|
props.pageview(newPath);
|
|
17801
17802
|
}
|
|
17802
17803
|
refreshAD(path);
|
|
17803
|
-
changeMeta(meta);
|
|
17804
17804
|
}
|
|
17805
17805
|
}
|
|
17806
17806
|
};
|
|
@@ -22861,30 +22861,30 @@ var ArticleQueue$1 = function ArticleQueue(props) {
|
|
|
22861
22861
|
if (visibility === 'top') {
|
|
22862
22862
|
// router.push('/view/[url]', newPath, { shallow: true })
|
|
22863
22863
|
window.history.pushState({ page: path }, meta.shareTitle, newPath);
|
|
22864
|
+
changeMeta(meta);
|
|
22864
22865
|
if (props.pageview) {
|
|
22865
22866
|
props.pageview(newPath);
|
|
22866
22867
|
}
|
|
22867
22868
|
refreshAD(path);
|
|
22868
|
-
changeMeta(meta);
|
|
22869
22869
|
}
|
|
22870
22870
|
} else {
|
|
22871
22871
|
if (visibility === 'bottom') {
|
|
22872
22872
|
// router.push('/view/[url]', newPath, { shallow: true })
|
|
22873
22873
|
window.history.pushState({ page: path }, meta.shareTitle, newPath);
|
|
22874
|
+
changeMeta(meta);
|
|
22874
22875
|
if (props.pageview) {
|
|
22875
22876
|
props.pageview(newPath);
|
|
22876
22877
|
}
|
|
22877
22878
|
refreshAD(path);
|
|
22878
|
-
changeMeta(meta);
|
|
22879
22879
|
}
|
|
22880
22880
|
}
|
|
22881
22881
|
if (visibility === 'small-top') {
|
|
22882
22882
|
window.history.pushState({ page: path }, meta.shareTitle, newPath);
|
|
22883
|
+
changeMeta(meta);
|
|
22883
22884
|
if (props.pageview) {
|
|
22884
22885
|
props.pageview(newPath);
|
|
22885
22886
|
}
|
|
22886
22887
|
refreshAD(path);
|
|
22887
|
-
changeMeta(meta);
|
|
22888
22888
|
}
|
|
22889
22889
|
}
|
|
22890
22890
|
};
|