@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/README.md
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React__default, { Component, useState, useEffect, useRef,
|
|
1
|
+
import React__default, { Component, useState, useEffect, useRef, createContext, createElement } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import reactDom from 'react-dom';
|
|
4
4
|
import Container from 'react-bootstrap/Container';
|
|
@@ -8,7 +8,7 @@ import Card from 'react-bootstrap/Card';
|
|
|
8
8
|
import Link from 'next/link';
|
|
9
9
|
import { withRouter, useRouter } from 'next/router';
|
|
10
10
|
import Media from 'react-bootstrap/Media';
|
|
11
|
-
import { Media as Media$1,
|
|
11
|
+
import { Media as Media$1, Container as Container$1, Figure, Carousel, Table } from 'react-bootstrap';
|
|
12
12
|
import moment from 'moment';
|
|
13
13
|
import ListGroup from 'react-bootstrap/ListGroup';
|
|
14
14
|
import Head from 'next/head';
|
|
@@ -6273,6 +6273,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index$$1, length
|
|
|
6273
6273
|
};
|
|
6274
6274
|
|
|
6275
6275
|
var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage) {
|
|
6276
|
+
|
|
6276
6277
|
return React__default.createElement(
|
|
6277
6278
|
'div',
|
|
6278
6279
|
null,
|
|
@@ -6287,13 +6288,22 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
6287
6288
|
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage);
|
|
6288
6289
|
} },
|
|
6289
6290
|
React__default.createElement(
|
|
6290
|
-
|
|
6291
|
-
|
|
6291
|
+
React__default.Fragment,
|
|
6292
|
+
null,
|
|
6292
6293
|
React__default.createElement(
|
|
6293
|
-
|
|
6294
|
-
|
|
6294
|
+
Media$1,
|
|
6295
|
+
{ key: article._id ? article._id : index$$1, style: { marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
6295
6296
|
React__default.createElement(
|
|
6296
|
-
|
|
6297
|
+
Link,
|
|
6298
|
+
{ href: mapping[contentCategoryName] + '/[url]', as: mapping[contentCategoryName] + '/' + article.url.current },
|
|
6299
|
+
React__default.createElement(
|
|
6300
|
+
'a',
|
|
6301
|
+
null,
|
|
6302
|
+
React__default.createElement('img', { width: 200, height: 130, className: 'mr-3', src: urlFor(builder, article.thumbnail.asset).url(), style: { objectFit: 'cover' }, alt: article.title })
|
|
6303
|
+
)
|
|
6304
|
+
),
|
|
6305
|
+
React__default.createElement(
|
|
6306
|
+
Media$1.Body,
|
|
6297
6307
|
null,
|
|
6298
6308
|
React__default.createElement(
|
|
6299
6309
|
Link,
|
|
@@ -6301,43 +6311,30 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
6301
6311
|
React__default.createElement(
|
|
6302
6312
|
'a',
|
|
6303
6313
|
null,
|
|
6304
|
-
|
|
6314
|
+
article.title && React__default.createElement(
|
|
6315
|
+
'h4',
|
|
6316
|
+
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
6317
|
+
article.title
|
|
6318
|
+
)
|
|
6305
6319
|
)
|
|
6306
6320
|
),
|
|
6307
|
-
React__default.createElement(
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
|
|
6323
|
-
article.published && React__default.createElement(
|
|
6324
|
-
'h6',
|
|
6325
|
-
{ className: 'card-text' },
|
|
6326
|
-
moment(article.published).format('MMMM DD, YYYY')
|
|
6327
|
-
),
|
|
6328
|
-
article.authorDetails && article.authorDetails.length > 0 && article.authorDetails.map(function (authorDetail, index$$1) {
|
|
6329
|
-
return React__default.createElement(
|
|
6330
|
-
'div',
|
|
6331
|
-
{ className: 'card-text d-inline', key: index$$1 },
|
|
6332
|
-
renderAuthor(authorDetail.displayName, authorDetail.url, index$$1, article.authorDetails.length)
|
|
6333
|
-
);
|
|
6334
|
-
})
|
|
6321
|
+
article.published && React__default.createElement(
|
|
6322
|
+
'p',
|
|
6323
|
+
{ className: 'card-text', style: { color: 'var(--gray)', marginBottom: '.25rem' } },
|
|
6324
|
+
moment(article.published).format('MMMM DD, YYYY')
|
|
6325
|
+
),
|
|
6326
|
+
article.authorDetails && article.authorDetails.length > 0 && article.authorDetails.map(function (authorDetail, index$$1) {
|
|
6327
|
+
return React__default.createElement(
|
|
6328
|
+
'div',
|
|
6329
|
+
{ className: 'card-text d-inline', key: index$$1 },
|
|
6330
|
+
renderAuthor(authorDetail.displayName, authorDetail.url, index$$1, article.authorDetails.length)
|
|
6331
|
+
);
|
|
6332
|
+
}),
|
|
6333
|
+
article.summary && React__default.createElement(
|
|
6334
|
+
'p',
|
|
6335
|
+
{ className: 'pt-2 card-text' },
|
|
6336
|
+
article.summary
|
|
6335
6337
|
)
|
|
6336
|
-
),
|
|
6337
|
-
article.summary && React__default.createElement(
|
|
6338
|
-
'p',
|
|
6339
|
-
{ className: 'pt-2 card-text' },
|
|
6340
|
-
article.summary
|
|
6341
6338
|
)
|
|
6342
6339
|
)
|
|
6343
6340
|
)
|
|
@@ -6372,6 +6369,7 @@ var usePrevious = function usePrevious(value) {
|
|
|
6372
6369
|
};
|
|
6373
6370
|
|
|
6374
6371
|
var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
6372
|
+
|
|
6375
6373
|
var router = useRouter();
|
|
6376
6374
|
var initialData = props.dataRecord,
|
|
6377
6375
|
client = props.client,
|
|
@@ -8426,13 +8424,13 @@ var FigureComponent = function FigureComponent(_ref) {
|
|
|
8426
8424
|
var imgFloat = alignment.toLowerCase() === 'center' ? 'none' : alignment.toLowerCase();
|
|
8427
8425
|
var figureMargin = void 0;
|
|
8428
8426
|
if (imgFloat === 'none') {
|
|
8429
|
-
figureMargin = '0 auto
|
|
8427
|
+
figureMargin = '0 auto 1rem';
|
|
8430
8428
|
}
|
|
8431
8429
|
if (imgFloat === 'left') {
|
|
8432
|
-
figureMargin = '0
|
|
8430
|
+
figureMargin = '0 1rem 1rem 10%';
|
|
8433
8431
|
}
|
|
8434
8432
|
if (imgFloat === 'right') {
|
|
8435
|
-
figureMargin = '0
|
|
8433
|
+
figureMargin = '0 10% 1rem 1rem';
|
|
8436
8434
|
}
|
|
8437
8435
|
return React__default.createElement(
|
|
8438
8436
|
Figure,
|
|
@@ -12042,13 +12040,13 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
12042
12040
|
content = _ref.content;
|
|
12043
12041
|
|
|
12044
12042
|
return React__default.createElement(
|
|
12045
|
-
|
|
12046
|
-
{ className: 'sidebar' },
|
|
12043
|
+
'article',
|
|
12044
|
+
{ className: 'sidebar', style: { background: '#eee', marginRight: '10%', marginLeft: '1rem', width: '40%', padding: '1rem 0 0' } },
|
|
12047
12045
|
React__default.createElement(
|
|
12048
|
-
|
|
12046
|
+
'div',
|
|
12049
12047
|
null,
|
|
12050
12048
|
React__default.createElement(
|
|
12051
|
-
|
|
12049
|
+
'h3',
|
|
12052
12050
|
null,
|
|
12053
12051
|
caption
|
|
12054
12052
|
),
|