@mjhls/mjh-framework 1.0.292 → 1.0.294
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 +171 -171
- package/dist/cjs/DeckContent.js +9 -9
- package/dist/cjs/DeckQueue.js +1 -1
- package/dist/cjs/{Figure-0681dd7d.js → Figure-167c0214.js} +1 -1
- package/dist/cjs/{GridContent-02acbd72.js → GridContent-fa2e1b56.js} +2 -2
- package/dist/cjs/GridContent.js +2 -2
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/MasterDeck.js +9 -9
- package/dist/cjs/{Normal-7b5f3f4e.js → Normal-61221bc6.js} +62 -647
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +1 -1
- package/dist/cjs/{TaxonomyCard-cf5bbc07.js → TaxonomyCard-4210753c.js} +104 -3
- package/dist/cjs/TaxonomyCard.js +3 -2
- package/dist/cjs/TemplateNormal.js +2 -1
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +14 -12
- package/dist/cjs/{YoutubeGroup-98ffbc57.js → YoutubeGroup-39eba427.js} +4 -4
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/{index-39beccb3.js → index-be0c82be.js} +1 -2
- package/dist/cjs/index.js +548 -564
- package/dist/cjs/react-social-icons-cd0d9d3b.js +614 -0
- package/dist/esm/DeckContent.js +9 -9
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/{Figure-cff72982.js → Figure-9f21ef27.js} +1 -1
- package/dist/esm/{GridContent-96716e42.js → GridContent-88ed988c.js} +1 -1
- package/dist/esm/GridContent.js +2 -2
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/MasterDeck.js +9 -9
- package/dist/esm/{Normal-3a3b672e.js → Normal-3a537c0a.js} +60 -645
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +1 -1
- package/dist/esm/{TaxonomyCard-ee1a22ae.js → TaxonomyCard-1d039949.js} +104 -3
- package/dist/esm/TaxonomyCard.js +3 -2
- package/dist/esm/TemplateNormal.js +2 -1
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/VideoSeriesListing.js +14 -12
- package/dist/esm/{YoutubeGroup-562ed456.js → YoutubeGroup-f59297bb.js} +4 -4
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/{index-3849e3fe.js → index-73819142.js} +1 -2
- package/dist/esm/index.js +551 -567
- package/dist/esm/react-social-icons-a7d5c5c7.js +609 -0
- package/package.json +103 -103
|
@@ -6,7 +6,7 @@ import Col from 'react-bootstrap/Col';
|
|
|
6
6
|
import Card from 'react-bootstrap/Card';
|
|
7
7
|
import 'next/link';
|
|
8
8
|
import 'react-dom';
|
|
9
|
-
import { i as imageUrlBuilder } from './index-
|
|
9
|
+
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
10
10
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
11
11
|
import Button from 'react-bootstrap/Button';
|
|
12
12
|
|
|
@@ -13,7 +13,7 @@ import { I as InfiniteScroll, V as VisibilitySensor, m as moment } from './visib
|
|
|
13
13
|
import 'next/link';
|
|
14
14
|
import { useRouter } from 'next/router';
|
|
15
15
|
import 'react-dom';
|
|
16
|
-
import { i as imageUrlBuilder } from './index-
|
|
16
|
+
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
17
17
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
18
18
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
19
19
|
import { _ as _slicedToArray } from './slicedToArray-d0a9593a.js';
|
|
@@ -5,8 +5,9 @@ import Container from 'react-bootstrap/Container';
|
|
|
5
5
|
import Row from 'react-bootstrap/Row';
|
|
6
6
|
import Col from 'react-bootstrap/Col';
|
|
7
7
|
import Card from 'react-bootstrap/Card';
|
|
8
|
-
import { n as node, i as imageUrlBuilder } from './index-
|
|
8
|
+
import { n as node, i as imageUrlBuilder } from './index-73819142.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
|
@@ -8,6 +8,7 @@ import 'react-bootstrap/Row';
|
|
|
8
8
|
import 'react-bootstrap/Col';
|
|
9
9
|
import 'react-bootstrap/Card';
|
|
10
10
|
import 'react-dom';
|
|
11
|
-
import './index-
|
|
11
|
+
import './index-73819142.js';
|
|
12
12
|
import './index-5f9f807a.js';
|
|
13
|
-
export { T as default } from './TaxonomyCard-
|
|
13
|
+
export { T as default } from './TaxonomyCard-1d039949.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-3a537c0a.js';
|
|
21
22
|
import 'react-bootstrap/ListGroup';
|
|
22
23
|
import 'next/head';
|
|
23
24
|
import 'react-bootstrap/Nav';
|
|
@@ -2,7 +2,7 @@ import './_commonjsHelpers-0c4b6f40.js';
|
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import 'prop-types';
|
|
4
4
|
import 'react-dom';
|
|
5
|
-
import { i as imageUrlBuilder } from './index-
|
|
5
|
+
import { i as imageUrlBuilder } from './index-73819142.js';
|
|
6
6
|
import { L as LazyLoad } from './index-5f9f807a.js';
|
|
7
7
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
8
8
|
import Media$1 from 'react-bootstrap/Media';
|
|
@@ -12,7 +12,7 @@ import 'next/link';
|
|
|
12
12
|
import { withRouter } from 'next/router';
|
|
13
13
|
import 'react-dom';
|
|
14
14
|
import './index-5f9f807a.js';
|
|
15
|
-
import { Y as YoutubeGroup } from './YoutubeGroup-
|
|
15
|
+
import { Y as YoutubeGroup } from './YoutubeGroup-f59297bb.js';
|
|
16
16
|
import { a as IoIosArrowForward } from './index.esm-536609db.js';
|
|
17
17
|
|
|
18
18
|
var VideoSeriesListing = function (_React$Component) {
|
|
@@ -60,8 +60,8 @@ var VideoSeriesListing = function (_React$Component) {
|
|
|
60
60
|
query = _this$state.query,
|
|
61
61
|
page = _this$state.page;
|
|
62
62
|
var client = _this.props.client;
|
|
63
|
+
//this.changePageNumber(page)
|
|
63
64
|
|
|
64
|
-
_this.changePageNumber(page);
|
|
65
65
|
var params = _extends({}, _this.params, { from: from, to: to
|
|
66
66
|
// const queryUpdated = query.replace('$from', params.from).replace('$to', params.to)
|
|
67
67
|
// const query = '*[_type == "article" && defined(title) && defined(thumbnail)][$from...$to] { title, summary, thumbnail { asset-> }, url }'
|
|
@@ -215,22 +215,24 @@ var VideoSeriesListing = function (_React$Component) {
|
|
|
215
215
|
|
|
216
216
|
return React__default.createElement(
|
|
217
217
|
InfiniteScroll,
|
|
218
|
-
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.
|
|
218
|
+
{ dataLength: this.state.data.length, next: this.loadMore, hasMore: this.state.scrolling, scrollThreshold: 0.8 },
|
|
219
219
|
React__default.createElement(
|
|
220
220
|
Container,
|
|
221
221
|
null,
|
|
222
222
|
this.state.data && this.state.data.map(function (series, index) {
|
|
223
|
-
var page = series[0].pageNumber !== 1 ? series[0].pageNumber :
|
|
223
|
+
var page = series[0].pageNumber !== 1 ? series[0].pageNumber : 1;
|
|
224
224
|
|
|
225
225
|
return React__default.createElement(
|
|
226
|
-
|
|
227
|
-
{
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
226
|
+
React__default.Fragment,
|
|
227
|
+
{ key: index },
|
|
228
|
+
React__default.createElement(
|
|
229
|
+
VisibilitySensor,
|
|
230
|
+
{
|
|
231
|
+
onChange: function onChange(isVisible) {
|
|
232
|
+
isVisible && _this2.changePageNumber(page);
|
|
233
|
+
} },
|
|
234
|
+
React__default.createElement('div', { className: 'visibility-sensor', style: { minHeight: '.25rem' } })
|
|
235
|
+
),
|
|
234
236
|
React__default.createElement(
|
|
235
237
|
'div',
|
|
236
238
|
null,
|
|
@@ -487,10 +487,10 @@ var smoothscroll_1 = smoothscroll.polyfill;
|
|
|
487
487
|
|
|
488
488
|
// kick off the polyfill!
|
|
489
489
|
|
|
490
|
-
/*
|
|
491
|
-
GROQ query -
|
|
492
|
-
accepts an array of title, URL
|
|
493
|
-
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
490
|
+
/*
|
|
491
|
+
GROQ query -
|
|
492
|
+
accepts an array of title, URL
|
|
493
|
+
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
494
494
|
*/
|
|
495
495
|
var YoutubeGroup = function YoutubeGroup(props) {
|
|
496
496
|
// Props should be an array of objects containing Thumbnail, title, and URL
|
package/dist/esm/YoutubeGroup.js
CHANGED
|
@@ -375,8 +375,7 @@ function urlBuilder(options) {
|
|
|
375
375
|
var client = options;
|
|
376
376
|
if (isSanityClient(client)) {
|
|
377
377
|
// Inherit config from client
|
|
378
|
-
var _a = client.clientConfig,
|
|
379
|
-
var apiHost = apiUrl || 'https://api.sanity.io';
|
|
378
|
+
var _a = client.clientConfig, apiHost = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
|
|
380
379
|
return new ImageUrlBuilder(null, {
|
|
381
380
|
baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
|
|
382
381
|
projectId: projectId,
|