@mjhls/mjh-framework 1.0.89 → 1.0.91
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/index.es.js +46 -48
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +44 -46
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6280,6 +6280,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index$$1, length
|
|
|
6280
6280
|
};
|
|
6281
6281
|
|
|
6282
6282
|
var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate, pageview, router$$1, currentPage, setCurrentPage) {
|
|
6283
|
+
|
|
6283
6284
|
return React__default.createElement(
|
|
6284
6285
|
'div',
|
|
6285
6286
|
null,
|
|
@@ -6294,13 +6295,22 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
6294
6295
|
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router$$1, currentPage, setCurrentPage);
|
|
6295
6296
|
} },
|
|
6296
6297
|
React__default.createElement(
|
|
6297
|
-
|
|
6298
|
-
|
|
6298
|
+
React__default.Fragment,
|
|
6299
|
+
null,
|
|
6299
6300
|
React__default.createElement(
|
|
6300
|
-
reactBootstrap.
|
|
6301
|
-
|
|
6301
|
+
reactBootstrap.Media,
|
|
6302
|
+
{ key: article._id ? article._id : index$$1, style: { marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
6302
6303
|
React__default.createElement(
|
|
6303
|
-
|
|
6304
|
+
Link,
|
|
6305
|
+
{ href: mapping[contentCategoryName] + '/[url]', as: mapping[contentCategoryName] + '/' + article.url.current },
|
|
6306
|
+
React__default.createElement(
|
|
6307
|
+
'a',
|
|
6308
|
+
null,
|
|
6309
|
+
React__default.createElement('img', { width: 200, height: 130, className: 'mr-3', src: urlFor(builder, article.thumbnail.asset).url(), style: { objectFit: 'cover' }, alt: article.title })
|
|
6310
|
+
)
|
|
6311
|
+
),
|
|
6312
|
+
React__default.createElement(
|
|
6313
|
+
reactBootstrap.Media.Body,
|
|
6304
6314
|
null,
|
|
6305
6315
|
React__default.createElement(
|
|
6306
6316
|
Link,
|
|
@@ -6308,43 +6318,30 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
6308
6318
|
React__default.createElement(
|
|
6309
6319
|
'a',
|
|
6310
6320
|
null,
|
|
6311
|
-
|
|
6321
|
+
article.title && React__default.createElement(
|
|
6322
|
+
'h4',
|
|
6323
|
+
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
6324
|
+
article.title
|
|
6325
|
+
)
|
|
6312
6326
|
)
|
|
6313
6327
|
),
|
|
6314
|
-
React__default.createElement(
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
article.published && React__default.createElement(
|
|
6331
|
-
'h6',
|
|
6332
|
-
{ className: 'card-text' },
|
|
6333
|
-
moment(article.published).format('MMMM DD, YYYY')
|
|
6334
|
-
),
|
|
6335
|
-
article.authorDetails && article.authorDetails.length > 0 && article.authorDetails.map(function (authorDetail, index$$1) {
|
|
6336
|
-
return React__default.createElement(
|
|
6337
|
-
'div',
|
|
6338
|
-
{ className: 'card-text d-inline', key: index$$1 },
|
|
6339
|
-
renderAuthor(authorDetail.displayName, authorDetail.url, index$$1, article.authorDetails.length)
|
|
6340
|
-
);
|
|
6341
|
-
})
|
|
6328
|
+
article.published && React__default.createElement(
|
|
6329
|
+
'p',
|
|
6330
|
+
{ className: 'card-text', style: { color: 'var(--gray)', marginBottom: '.25rem' } },
|
|
6331
|
+
moment(article.published).format('MMMM DD, YYYY')
|
|
6332
|
+
),
|
|
6333
|
+
article.authorDetails && article.authorDetails.length > 0 && article.authorDetails.map(function (authorDetail, index$$1) {
|
|
6334
|
+
return React__default.createElement(
|
|
6335
|
+
'div',
|
|
6336
|
+
{ className: 'card-text d-inline', key: index$$1 },
|
|
6337
|
+
renderAuthor(authorDetail.displayName, authorDetail.url, index$$1, article.authorDetails.length)
|
|
6338
|
+
);
|
|
6339
|
+
}),
|
|
6340
|
+
article.summary && React__default.createElement(
|
|
6341
|
+
'p',
|
|
6342
|
+
{ className: 'pt-2 card-text' },
|
|
6343
|
+
article.summary
|
|
6342
6344
|
)
|
|
6343
|
-
),
|
|
6344
|
-
article.summary && React__default.createElement(
|
|
6345
|
-
'p',
|
|
6346
|
-
{ className: 'pt-2 card-text' },
|
|
6347
|
-
article.summary
|
|
6348
6345
|
)
|
|
6349
6346
|
)
|
|
6350
6347
|
)
|
|
@@ -6379,6 +6376,7 @@ var usePrevious = function usePrevious(value) {
|
|
|
6379
6376
|
};
|
|
6380
6377
|
|
|
6381
6378
|
var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
6379
|
+
|
|
6382
6380
|
var router$$1 = router.useRouter();
|
|
6383
6381
|
var initialData = props.dataRecord,
|
|
6384
6382
|
client = props.client,
|
|
@@ -8433,13 +8431,13 @@ var FigureComponent = function FigureComponent(_ref) {
|
|
|
8433
8431
|
var imgFloat = alignment.toLowerCase() === 'center' ? 'none' : alignment.toLowerCase();
|
|
8434
8432
|
var figureMargin = void 0;
|
|
8435
8433
|
if (imgFloat === 'none') {
|
|
8436
|
-
figureMargin = '0 auto
|
|
8434
|
+
figureMargin = '0 auto 1rem';
|
|
8437
8435
|
}
|
|
8438
8436
|
if (imgFloat === 'left') {
|
|
8439
|
-
figureMargin = '0
|
|
8437
|
+
figureMargin = '0 1rem 1rem 10%';
|
|
8440
8438
|
}
|
|
8441
8439
|
if (imgFloat === 'right') {
|
|
8442
|
-
figureMargin = '0
|
|
8440
|
+
figureMargin = '0 10% 1rem 1rem';
|
|
8443
8441
|
}
|
|
8444
8442
|
return React__default.createElement(
|
|
8445
8443
|
reactBootstrap.Figure,
|
|
@@ -12049,13 +12047,13 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
12049
12047
|
content = _ref.content;
|
|
12050
12048
|
|
|
12051
12049
|
return React__default.createElement(
|
|
12052
|
-
|
|
12053
|
-
{ className: 'sidebar' },
|
|
12050
|
+
'article',
|
|
12051
|
+
{ className: 'sidebar', style: { background: '#eee', marginRight: '10%', marginLeft: '1rem', width: '40%', padding: '1rem 0 0' } },
|
|
12054
12052
|
React__default.createElement(
|
|
12055
|
-
|
|
12053
|
+
'div',
|
|
12056
12054
|
null,
|
|
12057
12055
|
React__default.createElement(
|
|
12058
|
-
|
|
12056
|
+
'h3',
|
|
12059
12057
|
null,
|
|
12060
12058
|
caption
|
|
12061
12059
|
),
|