@mjhls/mjh-framework 1.0.292 → 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-7b5f3f4e.js → Normal-c6ad2f0a.js} +33 -618
- 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 +14 -18
- package/dist/cjs/react-social-icons-cd0d9d3b.js +614 -0
- package/dist/esm/{Normal-3a3b672e.js → Normal-73a8596f.js} +31 -616
- 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 +16 -20
- 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';
|
|
@@ -2898,8 +2899,7 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
|
|
|
2898
2899
|
dfpNetworkId: networkID,
|
|
2899
2900
|
targeting: targeting,
|
|
2900
2901
|
singleRequest: singleRequest,
|
|
2901
|
-
lazyLoad: { fetchMarginPercent: 500, renderMarginPercent: 200, mobileScaling: 2.0 },
|
|
2902
|
-
collapseEmptyDivs: true },
|
|
2902
|
+
lazyLoad: { fetchMarginPercent: 500, renderMarginPercent: 200, mobileScaling: 2.0 } },
|
|
2903
2903
|
children
|
|
2904
2904
|
);
|
|
2905
2905
|
};
|
|
@@ -2916,7 +2916,8 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
|
|
|
2916
2916
|
_floatingAd$position = floatingAd.position,
|
|
2917
2917
|
position = _floatingAd$position === undefined ? 'float' : _floatingAd$position,
|
|
2918
2918
|
networkID = floatingAd.networkID,
|
|
2919
|
-
sizes = floatingAd.sizes
|
|
2919
|
+
_floatingAd$sizes = floatingAd.sizes,
|
|
2920
|
+
sizes = _floatingAd$sizes === undefined ? [[728, 90]] : _floatingAd$sizes;
|
|
2920
2921
|
|
|
2921
2922
|
|
|
2922
2923
|
var adTargeting = {
|
|
@@ -16337,7 +16338,6 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16337
16338
|
var isScrollDown = true;
|
|
16338
16339
|
|
|
16339
16340
|
var _activeArticle$title = activeArticle.title,
|
|
16340
|
-
title = _activeArticle$title === undefined ? '' : _activeArticle$title,
|
|
16341
16341
|
_activeArticle$summar = activeArticle.summary,
|
|
16342
16342
|
summary = _activeArticle$summar === undefined ? '' : _activeArticle$summar;
|
|
16343
16343
|
|
|
@@ -16476,14 +16476,14 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16476
16476
|
if (window.googletag && googletag.pubadsReady) {
|
|
16477
16477
|
var slots = googletag.pubads().getSlots();
|
|
16478
16478
|
slots.forEach(function (slot) {
|
|
16479
|
+
var pos = slot.getTargeting('pos');
|
|
16479
16480
|
slot.clearTargeting();
|
|
16480
16481
|
_Object$keys(_targeting).forEach(function (key) {
|
|
16481
16482
|
slot.setTargeting(key, _targeting[key]);
|
|
16482
16483
|
});
|
|
16484
|
+
slot.setTargeting('pos', pos);
|
|
16483
16485
|
});
|
|
16484
|
-
|
|
16485
|
-
googletag.pubads().refresh();
|
|
16486
|
-
});
|
|
16486
|
+
lib_3.refresh();
|
|
16487
16487
|
}
|
|
16488
16488
|
});
|
|
16489
16489
|
}
|
|
@@ -16577,15 +16577,11 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16577
16577
|
|
|
16578
16578
|
if (prevUrl && prevUrl.length) {
|
|
16579
16579
|
return React__default.createElement(
|
|
16580
|
-
|
|
16581
|
-
{
|
|
16582
|
-
|
|
16583
|
-
|
|
16584
|
-
|
|
16585
|
-
queueData.map(function (article, index) {
|
|
16586
|
-
return React__default.createElement(Article, _extends$2({ key: index }, props, { changeUrl: changeUrl, article: article }));
|
|
16587
|
-
})
|
|
16588
|
-
)
|
|
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
|
+
})
|
|
16589
16585
|
);
|
|
16590
16586
|
} else {
|
|
16591
16587
|
return null;
|