@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
|
@@ -12,6 +12,7 @@ var Col = _interopDefault(require('react-bootstrap/Col'));
|
|
|
12
12
|
var Card = _interopDefault(require('react-bootstrap/Card'));
|
|
13
13
|
var index = require('./index-39beccb3.js');
|
|
14
14
|
var index$1 = require('./index-fa0fb52c.js');
|
|
15
|
+
var reactSocialIcons = require('./react-social-icons-cd0d9d3b.js');
|
|
15
16
|
|
|
16
17
|
/*
|
|
17
18
|
object-assign
|
|
@@ -932,7 +933,6 @@ var TaxonomyCard = function TaxonomyCard(props) {
|
|
|
932
933
|
imageWidth = props.imageWidth,
|
|
933
934
|
getSerializers = props.getSerializers;
|
|
934
935
|
|
|
935
|
-
|
|
936
936
|
var builder = index.imageUrlBuilder(client);
|
|
937
937
|
|
|
938
938
|
var urlFor = function urlFor(source) {
|
|
@@ -969,6 +969,26 @@ var TaxonomyCard = function TaxonomyCard(props) {
|
|
|
969
969
|
lgVar = 6;
|
|
970
970
|
}
|
|
971
971
|
var thumbnailURL = row.thumbnail && row.thumbnail.asset ? renderCardImage(row) : defaultImage;
|
|
972
|
+
var address1 = row.address1,
|
|
973
|
+
address2 = row.address2,
|
|
974
|
+
city = row.city,
|
|
975
|
+
zip = row.zip,
|
|
976
|
+
state = row.state,
|
|
977
|
+
country = row.country,
|
|
978
|
+
company = row.company,
|
|
979
|
+
website = row.website,
|
|
980
|
+
email = row.email,
|
|
981
|
+
extraURL1 = row.extraURL1,
|
|
982
|
+
extraURL2 = row.extraURL2,
|
|
983
|
+
extraURL3 = row.extraURL3,
|
|
984
|
+
extraURL4 = row.extraURL4,
|
|
985
|
+
linkedIn = row.linkedIn,
|
|
986
|
+
twitter = row.twitter,
|
|
987
|
+
facebook = row.facebook;
|
|
988
|
+
|
|
989
|
+
var socialLinks = [linkedIn, twitter, facebook];
|
|
990
|
+
var address = [address1, address2, city, state, zip, country];
|
|
991
|
+
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 }];
|
|
972
992
|
return React__default.createElement(
|
|
973
993
|
Col,
|
|
974
994
|
{ key: itemCounter, md: 12, lg: lgVar, counter: itemCounter++, style: { display: 'flex', flex: '1 0 auto' } },
|
|
@@ -987,7 +1007,20 @@ var TaxonomyCard = function TaxonomyCard(props) {
|
|
|
987
1007
|
React__default.createElement(
|
|
988
1008
|
index$1.LazyLoad,
|
|
989
1009
|
{ height: imageHeight },
|
|
990
|
-
React__default.createElement(
|
|
1010
|
+
row && row.thumbnail && React__default.createElement(
|
|
1011
|
+
'figure',
|
|
1012
|
+
null,
|
|
1013
|
+
row.thumbnail.link ? React__default.createElement(
|
|
1014
|
+
'a',
|
|
1015
|
+
{ href: row.thumbnail.link, target: row.thumbnail.blank ? '_blank' : '_self' },
|
|
1016
|
+
React__default.createElement(Card.Img, { variant: 'top', src: thumbnailURL, alt: row.thumbnail.alt ? row.thumbnail.alt : 'profile image' })
|
|
1017
|
+
) : React__default.createElement(Card.Img, { variant: 'top', src: thumbnailURL, alt: row.thumbnail.alt ? row.thumbnail.alt : 'profile image' }),
|
|
1018
|
+
row && row.thumbnail && row.thumbnail.caption && React__default.createElement(
|
|
1019
|
+
'figcaption',
|
|
1020
|
+
null,
|
|
1021
|
+
row.thumbnail.caption
|
|
1022
|
+
)
|
|
1023
|
+
)
|
|
991
1024
|
)
|
|
992
1025
|
),
|
|
993
1026
|
React__default.createElement(
|
|
@@ -1006,6 +1039,74 @@ var TaxonomyCard = function TaxonomyCard(props) {
|
|
|
1006
1039
|
null,
|
|
1007
1040
|
row.name
|
|
1008
1041
|
),
|
|
1042
|
+
(address && address.length || companyDetails && companyDetails.length) && React__default.createElement(
|
|
1043
|
+
'div',
|
|
1044
|
+
{ className: 'details-wrapper', style: { marginTop: '10px' } },
|
|
1045
|
+
companyDetails && companyDetails.length && React__default.createElement(
|
|
1046
|
+
'div',
|
|
1047
|
+
{ className: 'company-wrapper' },
|
|
1048
|
+
companyDetails.map(function (field, index) {
|
|
1049
|
+
if (field.value && field.key === 'company') {
|
|
1050
|
+
return React__default.createElement(
|
|
1051
|
+
'p',
|
|
1052
|
+
{ className: 'details-field', key: index },
|
|
1053
|
+
field.value
|
|
1054
|
+
);
|
|
1055
|
+
} else if (field.value && field.key === 'url') {
|
|
1056
|
+
return React__default.createElement(
|
|
1057
|
+
'a',
|
|
1058
|
+
{ className: 'details-field', href: field.value, key: index },
|
|
1059
|
+
field.value
|
|
1060
|
+
);
|
|
1061
|
+
} else if (field.value && field.key === 'email') {
|
|
1062
|
+
return React__default.createElement(
|
|
1063
|
+
'a',
|
|
1064
|
+
{ className: 'details-field', href: 'mailto:' + field.value, key: index },
|
|
1065
|
+
field.value
|
|
1066
|
+
);
|
|
1067
|
+
}
|
|
1068
|
+
})
|
|
1069
|
+
),
|
|
1070
|
+
address && address.length && React__default.createElement(
|
|
1071
|
+
'div',
|
|
1072
|
+
{ className: 'address-wrapper' },
|
|
1073
|
+
address.map(function (field, index) {
|
|
1074
|
+
if (field) {
|
|
1075
|
+
return React__default.createElement(
|
|
1076
|
+
'p',
|
|
1077
|
+
{ className: 'details-field', key: index },
|
|
1078
|
+
field
|
|
1079
|
+
);
|
|
1080
|
+
}
|
|
1081
|
+
})
|
|
1082
|
+
),
|
|
1083
|
+
React__default.createElement(
|
|
1084
|
+
'style',
|
|
1085
|
+
{ jsx: 'true' },
|
|
1086
|
+
'\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 '
|
|
1087
|
+
)
|
|
1088
|
+
),
|
|
1089
|
+
socialLinks && socialLinks.length && React__default.createElement(
|
|
1090
|
+
'div',
|
|
1091
|
+
{ className: 'social-icons' },
|
|
1092
|
+
socialLinks.map(function (url, index) {
|
|
1093
|
+
if (url && url.length) {
|
|
1094
|
+
return React__default.createElement(reactSocialIcons.reactSocialIcons_1, {
|
|
1095
|
+
target: '_blank',
|
|
1096
|
+
rel: 'noopener noreferrer',
|
|
1097
|
+
key: index,
|
|
1098
|
+
index: index,
|
|
1099
|
+
url: url,
|
|
1100
|
+
style: { width: 30, height: 30, marginRight: 10 }
|
|
1101
|
+
});
|
|
1102
|
+
}
|
|
1103
|
+
}),
|
|
1104
|
+
React__default.createElement(
|
|
1105
|
+
'style',
|
|
1106
|
+
{ jsx: 'true' },
|
|
1107
|
+
'\n .social-icons {\n margin-top: 20px;\n margin-bottom: 20px;\n }\n '
|
|
1108
|
+
)
|
|
1109
|
+
),
|
|
1009
1110
|
React__default.createElement(
|
|
1010
1111
|
Card.Text,
|
|
1011
1112
|
null,
|
package/dist/cjs/TaxonomyCard.js
CHANGED
|
@@ -12,7 +12,8 @@ require('react-bootstrap/Card');
|
|
|
12
12
|
require('react-dom');
|
|
13
13
|
require('./index-39beccb3.js');
|
|
14
14
|
require('./index-fa0fb52c.js');
|
|
15
|
-
var TaxonomyCard = require('./TaxonomyCard-
|
|
15
|
+
var TaxonomyCard = require('./TaxonomyCard-03364755.js');
|
|
16
|
+
require('./react-social-icons-cd0d9d3b.js');
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
|
|
@@ -16,10 +16,11 @@ require('./slicedToArray-e38fb29d.js');
|
|
|
16
16
|
require('./AdSlot-0cd6f861.js');
|
|
17
17
|
require('./promise-2c453658.js');
|
|
18
18
|
require('./get-de2660c3.js');
|
|
19
|
+
require('./react-social-icons-cd0d9d3b.js');
|
|
19
20
|
require('react-bootstrap');
|
|
20
21
|
require('./index.esm-340d3792.js');
|
|
21
22
|
require('react-bootstrap/Button');
|
|
22
|
-
var TemplateNormal = require('./Normal-
|
|
23
|
+
var TemplateNormal = require('./Normal-c6ad2f0a.js');
|
|
23
24
|
require('react-bootstrap/ListGroup');
|
|
24
25
|
require('next/head');
|
|
25
26
|
require('react-bootstrap/Nav');
|
package/dist/cjs/index.js
CHANGED
|
@@ -38,7 +38,8 @@ var GridContent = require('./GridContent-02acbd72.js');
|
|
|
38
38
|
var DeckQueue = require('./DeckQueue.js');
|
|
39
39
|
require('react-bootstrap/Media');
|
|
40
40
|
var ThumbnailCard = require('./ThumbnailCard.js');
|
|
41
|
-
var TaxonomyCard = require('./TaxonomyCard-
|
|
41
|
+
var TaxonomyCard = require('./TaxonomyCard-03364755.js');
|
|
42
|
+
require('./react-social-icons-cd0d9d3b.js');
|
|
42
43
|
var GroupDeck = require('./GroupDeck.js');
|
|
43
44
|
var YoutubeGroup = require('./YoutubeGroup-98ffbc57.js');
|
|
44
45
|
var reactBootstrap = require('react-bootstrap');
|
|
@@ -52,7 +53,7 @@ var IssueDeck = require('./IssueDeck.js');
|
|
|
52
53
|
require('react-bootstrap/Badge');
|
|
53
54
|
var IssueContentDeck = require('./IssueContentDeck.js');
|
|
54
55
|
var Spinner = _interopDefault(require('react-bootstrap/Spinner'));
|
|
55
|
-
var TemplateNormal = require('./Normal-
|
|
56
|
+
var TemplateNormal = require('./Normal-c6ad2f0a.js');
|
|
56
57
|
require('react-bootstrap/ListGroup');
|
|
57
58
|
var Head = _interopDefault(require('next/head'));
|
|
58
59
|
var Accordion = _interopDefault(require('react-bootstrap/Accordion'));
|
|
@@ -2798,7 +2799,8 @@ var AD300x250 = function AD300x250(_ref) {
|
|
|
2798
2799
|
tags: targeting.tags,
|
|
2799
2800
|
document_group: targeting.document_group,
|
|
2800
2801
|
document_url: targeting.document_url,
|
|
2801
|
-
pos: pos
|
|
2802
|
+
pos: pos,
|
|
2803
|
+
campaign_id: targeting.campaign_id
|
|
2802
2804
|
};
|
|
2803
2805
|
|
|
2804
2806
|
React.useEffect(function () {
|
|
@@ -2835,7 +2837,8 @@ var AD300x250x600 = function AD300x250x600(_ref) {
|
|
|
2835
2837
|
tags: targeting.tags,
|
|
2836
2838
|
document_group: targeting.document_group,
|
|
2837
2839
|
document_url: targeting.document_url,
|
|
2838
|
-
pos: pos
|
|
2840
|
+
pos: pos,
|
|
2841
|
+
campaign_id: targeting.campaign_id
|
|
2839
2842
|
};
|
|
2840
2843
|
|
|
2841
2844
|
React.useEffect(function () {
|
|
@@ -2898,8 +2901,7 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
|
|
|
2898
2901
|
dfpNetworkId: networkID,
|
|
2899
2902
|
targeting: targeting,
|
|
2900
2903
|
singleRequest: singleRequest,
|
|
2901
|
-
lazyLoad: { fetchMarginPercent: 500, renderMarginPercent: 200, mobileScaling: 2.0 },
|
|
2902
|
-
collapseEmptyDivs: true },
|
|
2904
|
+
lazyLoad: { fetchMarginPercent: 500, renderMarginPercent: 200, mobileScaling: 2.0 } },
|
|
2903
2905
|
children
|
|
2904
2906
|
);
|
|
2905
2907
|
};
|
|
@@ -2916,7 +2918,8 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
|
|
|
2916
2918
|
_floatingAd$position = floatingAd.position,
|
|
2917
2919
|
position = _floatingAd$position === undefined ? 'float' : _floatingAd$position,
|
|
2918
2920
|
networkID = floatingAd.networkID,
|
|
2919
|
-
sizes = floatingAd.sizes
|
|
2921
|
+
_floatingAd$sizes = floatingAd.sizes,
|
|
2922
|
+
sizes = _floatingAd$sizes === undefined ? [[728, 90]] : _floatingAd$sizes;
|
|
2920
2923
|
|
|
2921
2924
|
|
|
2922
2925
|
var adTargeting = {
|
|
@@ -2924,7 +2927,8 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
|
|
|
2924
2927
|
tags: targeting.tags,
|
|
2925
2928
|
document_group: targeting.document_group,
|
|
2926
2929
|
document_url: targeting.document_url,
|
|
2927
|
-
pos: position
|
|
2930
|
+
pos: position,
|
|
2931
|
+
campaign_id: targeting.campaign_id
|
|
2928
2932
|
};
|
|
2929
2933
|
|
|
2930
2934
|
var _useState = React.useState(false),
|
|
@@ -2986,7 +2990,8 @@ var ADGutter = function ADGutter(_ref) {
|
|
|
2986
2990
|
tags: targeting.tags,
|
|
2987
2991
|
document_group: targeting.document_group,
|
|
2988
2992
|
document_url: targeting.document_url,
|
|
2989
|
-
pos: position
|
|
2993
|
+
pos: position,
|
|
2994
|
+
campaign_id: targeting.campaign_id
|
|
2990
2995
|
};
|
|
2991
2996
|
|
|
2992
2997
|
var _useState = React.useState(false),
|
|
@@ -3043,7 +3048,8 @@ var ADWelcome = function ADWelcome(_ref) {
|
|
|
3043
3048
|
tags: targeting.tags,
|
|
3044
3049
|
document_group: targeting.document_group,
|
|
3045
3050
|
document_url: targeting.document_url,
|
|
3046
|
-
pos: position
|
|
3051
|
+
pos: position,
|
|
3052
|
+
campaign_id: targeting.campaign_id
|
|
3047
3053
|
};
|
|
3048
3054
|
var adRef = React.useRef(null);
|
|
3049
3055
|
|
|
@@ -16334,7 +16340,6 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16334
16340
|
var isScrollDown = true;
|
|
16335
16341
|
|
|
16336
16342
|
var _activeArticle$title = activeArticle.title,
|
|
16337
|
-
title = _activeArticle$title === undefined ? '' : _activeArticle$title,
|
|
16338
16343
|
_activeArticle$summar = activeArticle.summary,
|
|
16339
16344
|
summary = _activeArticle$summar === undefined ? '' : _activeArticle$summar;
|
|
16340
16345
|
|
|
@@ -16473,14 +16478,14 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16473
16478
|
if (window.googletag && googletag.pubadsReady) {
|
|
16474
16479
|
var slots = googletag.pubads().getSlots();
|
|
16475
16480
|
slots.forEach(function (slot) {
|
|
16481
|
+
var pos = slot.getTargeting('pos');
|
|
16476
16482
|
slot.clearTargeting();
|
|
16477
16483
|
_Object$keys(_targeting).forEach(function (key) {
|
|
16478
16484
|
slot.setTargeting(key, _targeting[key]);
|
|
16479
16485
|
});
|
|
16486
|
+
slot.setTargeting('pos', pos);
|
|
16480
16487
|
});
|
|
16481
|
-
|
|
16482
|
-
googletag.pubads().refresh();
|
|
16483
|
-
});
|
|
16488
|
+
debounce.lib_3.refresh();
|
|
16484
16489
|
}
|
|
16485
16490
|
});
|
|
16486
16491
|
}
|
|
@@ -16574,15 +16579,11 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16574
16579
|
|
|
16575
16580
|
if (prevUrl && prevUrl.length) {
|
|
16576
16581
|
return React__default.createElement(
|
|
16577
|
-
|
|
16578
|
-
{
|
|
16579
|
-
|
|
16580
|
-
|
|
16581
|
-
|
|
16582
|
-
queueData.map(function (article, index) {
|
|
16583
|
-
return React__default.createElement(Article, _extends$2._extends({ key: index }, props, { changeUrl: changeUrl, article: article }));
|
|
16584
|
-
})
|
|
16585
|
-
)
|
|
16582
|
+
visibilitySensor.InfiniteScroll,
|
|
16583
|
+
{ dataLength: queueData.length, next: loadmore, scrollThreshold: 0.8, hasMore: true },
|
|
16584
|
+
queueData.map(function (article, index) {
|
|
16585
|
+
return React__default.createElement(Article, _extends$2._extends({ key: index }, props, { changeUrl: changeUrl, article: article }));
|
|
16586
|
+
})
|
|
16586
16587
|
);
|
|
16587
16588
|
} else {
|
|
16588
16589
|
return null;
|