@mjhls/mjh-framework 1.0.291 → 1.0.293
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/{Normal-7d3472fe.js → Normal-c6ad2f0a.js} +35 -619
- package/dist/cjs/{TaxonomyCard-cf5bbc07.js → TaxonomyCard-03364755.js} +103 -2
- package/dist/cjs/TaxonomyCard.js +2 -1
- package/dist/cjs/TemplateNormal.js +2 -1
- package/dist/cjs/index.js +24 -23
- package/dist/cjs/react-social-icons-cd0d9d3b.js +614 -0
- package/dist/esm/{Normal-917ac787.js → Normal-73a8596f.js} +33 -617
- package/dist/esm/{TaxonomyCard-ee1a22ae.js → TaxonomyCard-8d8c0d6f.js} +103 -2
- package/dist/esm/TaxonomyCard.js +2 -1
- package/dist/esm/TemplateNormal.js +2 -1
- package/dist/esm/index.js +26 -25
- package/dist/esm/react-social-icons-a7d5c5c7.js +609 -0
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ import Col from 'react-bootstrap/Col';
|
|
|
7
7
|
import Card from 'react-bootstrap/Card';
|
|
8
8
|
import { n as node, i as imageUrlBuilder } from './index-3849e3fe.js';
|
|
9
9
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
10
|
+
import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
|
|
10
11
|
|
|
11
12
|
/*
|
|
12
13
|
object-assign
|
|
@@ -927,7 +928,6 @@ var TaxonomyCard = function TaxonomyCard(props) {
|
|
|
927
928
|
imageWidth = props.imageWidth,
|
|
928
929
|
getSerializers = props.getSerializers;
|
|
929
930
|
|
|
930
|
-
|
|
931
931
|
var builder = imageUrlBuilder(client);
|
|
932
932
|
|
|
933
933
|
var urlFor = function urlFor(source) {
|
|
@@ -964,6 +964,26 @@ var TaxonomyCard = function TaxonomyCard(props) {
|
|
|
964
964
|
lgVar = 6;
|
|
965
965
|
}
|
|
966
966
|
var thumbnailURL = row.thumbnail && row.thumbnail.asset ? renderCardImage(row) : defaultImage;
|
|
967
|
+
var address1 = row.address1,
|
|
968
|
+
address2 = row.address2,
|
|
969
|
+
city = row.city,
|
|
970
|
+
zip = row.zip,
|
|
971
|
+
state = row.state,
|
|
972
|
+
country = row.country,
|
|
973
|
+
company = row.company,
|
|
974
|
+
website = row.website,
|
|
975
|
+
email = row.email,
|
|
976
|
+
extraURL1 = row.extraURL1,
|
|
977
|
+
extraURL2 = row.extraURL2,
|
|
978
|
+
extraURL3 = row.extraURL3,
|
|
979
|
+
extraURL4 = row.extraURL4,
|
|
980
|
+
linkedIn = row.linkedIn,
|
|
981
|
+
twitter = row.twitter,
|
|
982
|
+
facebook = row.facebook;
|
|
983
|
+
|
|
984
|
+
var socialLinks = [linkedIn, twitter, facebook];
|
|
985
|
+
var address = [address1, address2, city, state, zip, country];
|
|
986
|
+
var companyDetails = [{ key: 'company', value: company }, { key: 'url', value: website }, { key: 'email', value: email }, { key: 'url', value: extraURL1 }, { key: 'url', value: extraURL2 }, { key: 'url', value: extraURL3 }, { key: 'url', value: extraURL4 }];
|
|
967
987
|
return React__default.createElement(
|
|
968
988
|
Col,
|
|
969
989
|
{ key: itemCounter, md: 12, lg: lgVar, counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
@@ -982,7 +1002,20 @@ var TaxonomyCard = function TaxonomyCard(props) {
|
|
|
982
1002
|
React__default.createElement(
|
|
983
1003
|
LazyLoad,
|
|
984
1004
|
{ height: imageHeight },
|
|
985
|
-
React__default.createElement(
|
|
1005
|
+
row && row.thumbnail && React__default.createElement(
|
|
1006
|
+
'figure',
|
|
1007
|
+
null,
|
|
1008
|
+
row.thumbnail.link ? React__default.createElement(
|
|
1009
|
+
'a',
|
|
1010
|
+
{ href: row.thumbnail.link, target: row.thumbnail.blank ? '_blank' : '_self' },
|
|
1011
|
+
React__default.createElement(Card.Img, { variant: 'top', src: thumbnailURL, alt: row.thumbnail.alt ? row.thumbnail.alt : 'profile image' })
|
|
1012
|
+
) : React__default.createElement(Card.Img, { variant: 'top', src: thumbnailURL, alt: row.thumbnail.alt ? row.thumbnail.alt : 'profile image' }),
|
|
1013
|
+
row && row.thumbnail && row.thumbnail.caption && React__default.createElement(
|
|
1014
|
+
'figcaption',
|
|
1015
|
+
null,
|
|
1016
|
+
row.thumbnail.caption
|
|
1017
|
+
)
|
|
1018
|
+
)
|
|
986
1019
|
)
|
|
987
1020
|
),
|
|
988
1021
|
React__default.createElement(
|
|
@@ -1001,6 +1034,74 @@ var TaxonomyCard = function TaxonomyCard(props) {
|
|
|
1001
1034
|
null,
|
|
1002
1035
|
row.name
|
|
1003
1036
|
),
|
|
1037
|
+
(address && address.length || companyDetails && companyDetails.length) && React__default.createElement(
|
|
1038
|
+
'div',
|
|
1039
|
+
{ className: 'details-wrapper', style: { marginTop: '10px' } },
|
|
1040
|
+
companyDetails && companyDetails.length && React__default.createElement(
|
|
1041
|
+
'div',
|
|
1042
|
+
{ className: 'company-wrapper' },
|
|
1043
|
+
companyDetails.map(function (field, index) {
|
|
1044
|
+
if (field.value && field.key === 'company') {
|
|
1045
|
+
return React__default.createElement(
|
|
1046
|
+
'p',
|
|
1047
|
+
{ className: 'details-field', key: index },
|
|
1048
|
+
field.value
|
|
1049
|
+
);
|
|
1050
|
+
} else if (field.value && field.key === 'url') {
|
|
1051
|
+
return React__default.createElement(
|
|
1052
|
+
'a',
|
|
1053
|
+
{ className: 'details-field', href: field.value, key: index },
|
|
1054
|
+
field.value
|
|
1055
|
+
);
|
|
1056
|
+
} else if (field.value && field.key === 'email') {
|
|
1057
|
+
return React__default.createElement(
|
|
1058
|
+
'a',
|
|
1059
|
+
{ className: 'details-field', href: 'mailto:' + field.value, key: index },
|
|
1060
|
+
field.value
|
|
1061
|
+
);
|
|
1062
|
+
}
|
|
1063
|
+
})
|
|
1064
|
+
),
|
|
1065
|
+
address && address.length && React__default.createElement(
|
|
1066
|
+
'div',
|
|
1067
|
+
{ className: 'address-wrapper' },
|
|
1068
|
+
address.map(function (field, index) {
|
|
1069
|
+
if (field) {
|
|
1070
|
+
return React__default.createElement(
|
|
1071
|
+
'p',
|
|
1072
|
+
{ className: 'details-field', key: index },
|
|
1073
|
+
field
|
|
1074
|
+
);
|
|
1075
|
+
}
|
|
1076
|
+
})
|
|
1077
|
+
),
|
|
1078
|
+
React__default.createElement(
|
|
1079
|
+
'style',
|
|
1080
|
+
{ jsx: 'true' },
|
|
1081
|
+
'\n .details-wrapper .details-field {\n margin: 0px;\n display: block;\n font-size: 1rem;\n margin-bottom: 3px;\n }\n .details-wrapper .company-wrapper {\n margin-right: 20px;\n display: inline-block;\n width: 50%;\n vertical-align: top;\n }\n .details-wrapper .address-wrapper {\n width: 45%;\n display: inline-block;\n }\n '
|
|
1082
|
+
)
|
|
1083
|
+
),
|
|
1084
|
+
socialLinks && socialLinks.length && React__default.createElement(
|
|
1085
|
+
'div',
|
|
1086
|
+
{ className: 'social-icons' },
|
|
1087
|
+
socialLinks.map(function (url, index) {
|
|
1088
|
+
if (url && url.length) {
|
|
1089
|
+
return React__default.createElement(reactSocialIcons_1, {
|
|
1090
|
+
target: '_blank',
|
|
1091
|
+
rel: 'noopener noreferrer',
|
|
1092
|
+
key: index,
|
|
1093
|
+
index: index,
|
|
1094
|
+
url: url,
|
|
1095
|
+
style: { width: 30, height: 30, marginRight: 10 }
|
|
1096
|
+
});
|
|
1097
|
+
}
|
|
1098
|
+
}),
|
|
1099
|
+
React__default.createElement(
|
|
1100
|
+
'style',
|
|
1101
|
+
{ jsx: 'true' },
|
|
1102
|
+
'\n .social-icons {\n margin-top: 20px;\n margin-bottom: 20px;\n }\n '
|
|
1103
|
+
)
|
|
1104
|
+
),
|
|
1004
1105
|
React__default.createElement(
|
|
1005
1106
|
Card.Text,
|
|
1006
1107
|
null,
|
package/dist/esm/TaxonomyCard.js
CHANGED
|
@@ -10,4 +10,5 @@ import 'react-bootstrap/Card';
|
|
|
10
10
|
import 'react-dom';
|
|
11
11
|
import './index-3849e3fe.js';
|
|
12
12
|
import './index-5f9f807a.js';
|
|
13
|
-
export { T as default } from './TaxonomyCard-
|
|
13
|
+
export { T as default } from './TaxonomyCard-8d8c0d6f.js';
|
|
14
|
+
import './react-social-icons-a7d5c5c7.js';
|
|
@@ -14,10 +14,11 @@ import './slicedToArray-d0a9593a.js';
|
|
|
14
14
|
import './AdSlot-03043ffb.js';
|
|
15
15
|
import './promise-e3480f1c.js';
|
|
16
16
|
import './get-9c285a85.js';
|
|
17
|
+
import './react-social-icons-a7d5c5c7.js';
|
|
17
18
|
import 'react-bootstrap';
|
|
18
19
|
import './index.esm-536609db.js';
|
|
19
20
|
import 'react-bootstrap/Button';
|
|
20
|
-
export { T as default } from './Normal-
|
|
21
|
+
export { T as default } from './Normal-73a8596f.js';
|
|
21
22
|
import 'react-bootstrap/ListGroup';
|
|
22
23
|
import 'next/head';
|
|
23
24
|
import 'react-bootstrap/Nav';
|
package/dist/esm/index.js
CHANGED
|
@@ -31,8 +31,9 @@ export { A as AD, G as GridContent } from './GridContent-96716e42.js';
|
|
|
31
31
|
export { default as DeckQueue } from './DeckQueue.js';
|
|
32
32
|
import 'react-bootstrap/Media';
|
|
33
33
|
export { default as ThumbnailCard } from './ThumbnailCard.js';
|
|
34
|
-
import { B as BlockContent } from './TaxonomyCard-
|
|
35
|
-
export { T as TaxonomyCard } from './TaxonomyCard-
|
|
34
|
+
import { B as BlockContent } from './TaxonomyCard-8d8c0d6f.js';
|
|
35
|
+
export { T as TaxonomyCard } from './TaxonomyCard-8d8c0d6f.js';
|
|
36
|
+
import './react-social-icons-a7d5c5c7.js';
|
|
36
37
|
import GroupDeck from './GroupDeck.js';
|
|
37
38
|
export { default as GroupDeck } from './GroupDeck.js';
|
|
38
39
|
import { g as getYoutubeId } from './YoutubeGroup-562ed456.js';
|
|
@@ -48,8 +49,8 @@ export { default as IssueDeck } from './IssueDeck.js';
|
|
|
48
49
|
import 'react-bootstrap/Badge';
|
|
49
50
|
export { default as IssueContentDeck } from './IssueContentDeck.js';
|
|
50
51
|
import Spinner from 'react-bootstrap/Spinner';
|
|
51
|
-
import { M as MdPictureAsPdf
|
|
52
|
-
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-
|
|
52
|
+
import { M as MdPictureAsPdf } from './Normal-73a8596f.js';
|
|
53
|
+
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-73a8596f.js';
|
|
53
54
|
import 'react-bootstrap/ListGroup';
|
|
54
55
|
import Head from 'next/head';
|
|
55
56
|
import Accordion from 'react-bootstrap/Accordion';
|
|
@@ -2796,7 +2797,8 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
2796
2797
|
tags: targeting.tags,
|
|
2797
2798
|
document_group: targeting.document_group,
|
|
2798
2799
|
document_url: targeting.document_url,
|
|
2799
|
-
pos: pos
|
|
2800
|
+
pos: pos,
|
|
2801
|
+
campaign_id: targeting.campaign_id
|
|
2800
2802
|
};
|
|
2801
2803
|
|
|
2802
2804
|
useEffect(function () {
|
|
@@ -2833,7 +2835,8 @@ var AD300x250x600 = function AD300x250x600(_ref) {
|
|
|
2833
2835
|
tags: targeting.tags,
|
|
2834
2836
|
document_group: targeting.document_group,
|
|
2835
2837
|
document_url: targeting.document_url,
|
|
2836
|
-
pos: pos
|
|
2838
|
+
pos: pos,
|
|
2839
|
+
campaign_id: targeting.campaign_id
|
|
2837
2840
|
};
|
|
2838
2841
|
|
|
2839
2842
|
useEffect(function () {
|
|
@@ -2896,8 +2899,7 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
|
|
|
2896
2899
|
dfpNetworkId: networkID,
|
|
2897
2900
|
targeting: targeting,
|
|
2898
2901
|
singleRequest: singleRequest,
|
|
2899
|
-
lazyLoad: { fetchMarginPercent: 500, renderMarginPercent: 200, mobileScaling: 2.0 },
|
|
2900
|
-
collapseEmptyDivs: true },
|
|
2902
|
+
lazyLoad: { fetchMarginPercent: 500, renderMarginPercent: 200, mobileScaling: 2.0 } },
|
|
2901
2903
|
children
|
|
2902
2904
|
);
|
|
2903
2905
|
};
|
|
@@ -2914,7 +2916,8 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
|
|
|
2914
2916
|
_floatingAd$position = floatingAd.position,
|
|
2915
2917
|
position = _floatingAd$position === undefined ? 'float' : _floatingAd$position,
|
|
2916
2918
|
networkID = floatingAd.networkID,
|
|
2917
|
-
sizes = floatingAd.sizes
|
|
2919
|
+
_floatingAd$sizes = floatingAd.sizes,
|
|
2920
|
+
sizes = _floatingAd$sizes === undefined ? [[728, 90]] : _floatingAd$sizes;
|
|
2918
2921
|
|
|
2919
2922
|
|
|
2920
2923
|
var adTargeting = {
|
|
@@ -2922,7 +2925,8 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
|
|
|
2922
2925
|
tags: targeting.tags,
|
|
2923
2926
|
document_group: targeting.document_group,
|
|
2924
2927
|
document_url: targeting.document_url,
|
|
2925
|
-
pos: position
|
|
2928
|
+
pos: position,
|
|
2929
|
+
campaign_id: targeting.campaign_id
|
|
2926
2930
|
};
|
|
2927
2931
|
|
|
2928
2932
|
var _useState = useState(false),
|
|
@@ -2984,7 +2988,8 @@ var ADGutter = function ADGutter(_ref) {
|
|
|
2984
2988
|
tags: targeting.tags,
|
|
2985
2989
|
document_group: targeting.document_group,
|
|
2986
2990
|
document_url: targeting.document_url,
|
|
2987
|
-
pos: position
|
|
2991
|
+
pos: position,
|
|
2992
|
+
campaign_id: targeting.campaign_id
|
|
2988
2993
|
};
|
|
2989
2994
|
|
|
2990
2995
|
var _useState = useState(false),
|
|
@@ -3041,7 +3046,8 @@ var ADWelcome = function ADWelcome(_ref) {
|
|
|
3041
3046
|
tags: targeting.tags,
|
|
3042
3047
|
document_group: targeting.document_group,
|
|
3043
3048
|
document_url: targeting.document_url,
|
|
3044
|
-
pos: position
|
|
3049
|
+
pos: position,
|
|
3050
|
+
campaign_id: targeting.campaign_id
|
|
3045
3051
|
};
|
|
3046
3052
|
var adRef = useRef(null);
|
|
3047
3053
|
|
|
@@ -16332,7 +16338,6 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16332
16338
|
var isScrollDown = true;
|
|
16333
16339
|
|
|
16334
16340
|
var _activeArticle$title = activeArticle.title,
|
|
16335
|
-
title = _activeArticle$title === undefined ? '' : _activeArticle$title,
|
|
16336
16341
|
_activeArticle$summar = activeArticle.summary,
|
|
16337
16342
|
summary = _activeArticle$summar === undefined ? '' : _activeArticle$summar;
|
|
16338
16343
|
|
|
@@ -16471,14 +16476,14 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16471
16476
|
if (window.googletag && googletag.pubadsReady) {
|
|
16472
16477
|
var slots = googletag.pubads().getSlots();
|
|
16473
16478
|
slots.forEach(function (slot) {
|
|
16479
|
+
var pos = slot.getTargeting('pos');
|
|
16474
16480
|
slot.clearTargeting();
|
|
16475
16481
|
_Object$keys(_targeting).forEach(function (key) {
|
|
16476
16482
|
slot.setTargeting(key, _targeting[key]);
|
|
16477
16483
|
});
|
|
16484
|
+
slot.setTargeting('pos', pos);
|
|
16478
16485
|
});
|
|
16479
|
-
|
|
16480
|
-
googletag.pubads().refresh();
|
|
16481
|
-
});
|
|
16486
|
+
lib_3.refresh();
|
|
16482
16487
|
}
|
|
16483
16488
|
});
|
|
16484
16489
|
}
|
|
@@ -16572,15 +16577,11 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16572
16577
|
|
|
16573
16578
|
if (prevUrl && prevUrl.length) {
|
|
16574
16579
|
return React__default.createElement(
|
|
16575
|
-
|
|
16576
|
-
{
|
|
16577
|
-
|
|
16578
|
-
|
|
16579
|
-
|
|
16580
|
-
queueData.map(function (article, index) {
|
|
16581
|
-
return React__default.createElement(Article, _extends$2({ key: index }, props, { changeUrl: changeUrl, article: article }));
|
|
16582
|
-
})
|
|
16583
|
-
)
|
|
16580
|
+
InfiniteScroll,
|
|
16581
|
+
{ dataLength: queueData.length, next: loadmore, scrollThreshold: 0.8, hasMore: true },
|
|
16582
|
+
queueData.map(function (article, index) {
|
|
16583
|
+
return React__default.createElement(Article, _extends$2({ key: index }, props, { changeUrl: changeUrl, article: article }));
|
|
16584
|
+
})
|
|
16584
16585
|
);
|
|
16585
16586
|
} else {
|
|
16586
16587
|
return null;
|